id
int64 1
100k
| stripped_content
stringlengths 1.97k
1.04M
| original_content
stringlengths 1.97k
1.05M
| tokenized
sequence | tokenized_section
sequence |
---|---|---|---|---|
72,757 | package raw
import (
"bytes"
"net"
"testing"
"time"
"unsafe"
"github.com/google/go-cmp/cmp"
"golang.org/x/net/bpf"
"golang.org/x/sys/unix"
)
type bindSocket struct {
bind unix.Sockaddr
noopSocket
}
func (s *bindSocket) Bind(sa unix.Sockaddr) error {
s.bind = sa
return nil
}
func Test_newPacketConnBind(t *testing.T) {
s := &bindSocket{}
ifIndex := 1
protocol := uint16(1)
_, err := newPacketConn(
&net.Interface{
Index: ifIndex,
},
s,
protocol,
)
if err != nil {
t.Fatal(err)
}
sall, ok := s.bind.(*unix.SockaddrLinklayer)
if !ok {
t.Fatalf("bind sockaddr has incorrect type: %T", s.bind)
}
if want, got := ifIndex, sall.Ifindex; want != got {
t.Fatalf("unexpected network interface index:\n- want: %v\n- got: %v", want, got)
}
if want, got := protocol, sall.Protocol; want != got {
t.Fatalf("unexpected protocol:\n- want: %v\n- got: %v", want, got)
}
}
type addrRecvfromSocket struct {
addr unix.Sockaddr
noopSocket
}
func (s *addrRecvfromSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
return 0, s.addr, nil
}
func Test_packetConnReadFromRecvfromInvalidSockaddr(t *testing.T) {
p, err := newPacketConn(
&net.Interface{},
&addrRecvfromSocket{
addr: &unix.SockaddrInet4{},
},
0,
)
if err != nil {
t.Fatal(err)
}
_, _, err = p.ReadFrom(nil)
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
func Test_packetConnReadFromRecvfromInvalidHardwareAddr(t *testing.T) {
p, err := newPacketConn(
&net.Interface{},
&addrRecvfromSocket{
addr: &unix.SockaddrLinklayer{
Halen: 5,
},
},
0,
)
if err != nil {
t.Fatal(err)
}
_, _, err = p.ReadFrom(nil)
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
type recvfromSocket struct {
p []byte
flags int
addr unix.Sockaddr
noopSocket
}
func (s *recvfromSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
copy(p, s.p)
s.flags = flags
return len(s.p), s.addr, nil
}
func Test_packetConnReadFromRecvfromOK(t *testing.T) {
const wantN = 4
data := []byte{0, 1, 2, 3}
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
s := &recvfromSocket{
p: data,
addr: &unix.SockaddrLinklayer{
Halen: 6,
Addr: [8]byte{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0x00, 0x00},
},
}
p, err := newPacketConn(
&net.Interface{},
s,
0,
)
if err != nil {
t.Fatal(err)
}
buf := make([]byte, 8)
n, addr, err := p.ReadFrom(buf)
if err != nil {
t.Fatal(err)
}
if want, got := 0, s.flags; want != got {
t.Fatalf("unexpected flags:\n- want: %v\n- got: %v", want, got)
}
raddr, ok := addr.(*Addr)
if !ok {
t.Fatalf("read sockaddr has incorrect type: %T", addr)
}
if want, got := deadbeefHW, raddr.HardwareAddr; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
if want, got := wantN, n; want != got {
t.Fatalf("unexpected data length:\n- want: %v\n- got: %v", want, got)
}
if want, got := data, buf[:n]; !bytes.Equal(want, got) {
t.Fatalf("unexpected data:\n- want: %v\n- got: %v", want, got)
}
}
func Test_packetConnWriteToInvalidSockaddr(t *testing.T) {
_, err := (&packetConn{}).WriteTo(nil, &net.IPAddr{})
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
func Test_packetConnWriteToInvalidHardwareAddr(t *testing.T) {
addrs := []net.HardwareAddr{
{0xde, 0xad, 0xbe, 0xef, 0xde},
nil,
}
for _, addr := range addrs {
_, err := (&packetConn{}).WriteTo(nil, &Addr{
HardwareAddr: addr,
})
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
}
type sendtoSocket struct {
p []byte
flags int
addr unix.Sockaddr
noopSocket
}
func (s *sendtoSocket) Sendto(p []byte, flags int, to unix.Sockaddr) error {
copy(s.p, p)
s.flags = flags
s.addr = to
return nil
}
func Test_packetConnWriteToSendtoOK(t *testing.T) {
const wantN = 4
data := []byte{0, 1, 2, 3}
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
s := &sendtoSocket{
p: make([]byte, wantN),
}
p, err := newPacketConn(
&net.Interface{},
s,
0,
)
if err != nil {
t.Fatal(err)
}
n, err := p.WriteTo(data, &Addr{
HardwareAddr: deadbeefHW,
})
if err != nil {
t.Fatal(err)
}
if want, got := 0, s.flags; want != got {
t.Fatalf("unexpected flags:\n- want: %v\n- got: %v", want, got)
}
if want, got := wantN, n; want != got {
t.Fatalf("unexpected data length:\n- want: %v\n- got: %v", want, got)
}
if want, got := data, s.p; !bytes.Equal(want, got) {
t.Fatalf("unexpected data:\n- want: %v\n- got: %v", want, got)
}
sall, ok := s.addr.(*unix.SockaddrLinklayer)
if !ok {
t.Fatalf("write sockaddr has incorrect type: %T", s.addr)
}
if want, got := deadbeefHW, sall.Addr[:][:sall.Halen]; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
}
type captureCloseSocket struct {
closed bool
noopSocket
}
func (s *captureCloseSocket) Close() error {
s.closed = true
return nil
}
func Test_packetConnClose(t *testing.T) {
s := &captureCloseSocket{}
p := &packetConn{
s: s,
}
if err := p.Close(); err != nil {
t.Fatal(err)
}
if !s.closed {
t.Fatalf("socket should be closed, but is not")
}
}
func Test_packetConnLocalAddr(t *testing.T) {
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
p := &packetConn{
ifi: &net.Interface{
HardwareAddr: deadbeefHW,
},
}
if want, got := deadbeefHW, p.LocalAddr().(*Addr).HardwareAddr; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
}
type setSockoptSocket struct {
setsockopt func(level, name int, v unsafe.Pointer, l uint32) error
noopSocket
}
func (s *setSockoptSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error {
return s.setsockopt(level, name, v, l)
}
func Test_packetConnSetBPF(t *testing.T) {
filter, err := bpf.Assemble([]bpf.Instruction{
bpf.RetConstant{Val: 0},
})
if err != nil {
t.Fatalf("failed to assemble filter: %v", err)
}
fn := func(level, name int, _ unsafe.Pointer, _ uint32) error {
if want, got := unix.SOL_SOCKET, level; want != got {
t.Fatalf("unexpected setsockopt level:\n- want: %v\n- got: %v", want, got)
}
if want, got := unix.SO_ATTACH_FILTER, name; want != got {
t.Fatalf("unexpected setsockopt name:\n- want: %v\n- got: %v", want, got)
}
return nil
}
s := &setSockoptSocket{
setsockopt: fn,
}
p := &packetConn{
s: s,
}
if err := p.SetBPF(filter); err != nil {
t.Fatalf("failed to attach filter: %v", err)
}
}
type setTimeoutSocket struct {
setTimeout func(timeout time.Duration) error
noopSocket
}
func (s *setTimeoutSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
return 0, &unix.SockaddrLinklayer{
Halen: 6,
}, nil
}
func (s *setTimeoutSocket) SetTimeout(timeout time.Duration) error {
return s.setTimeout(timeout)
}
func Test_packetConnNoTimeouts(t *testing.T) {
s := &setTimeoutSocket{
setTimeout: func(_ time.Duration) error {
panic("a timeout was set")
},
}
p := &packetConn{
s: s,
noTimeouts: true,
}
buf := make([]byte, 64)
if _, _, err := p.ReadFrom(buf); err != nil {
t.Fatalf("failed to read: %v", err)
}
}
func Test_packetConn_handleStats(t *testing.T) {
tests := []struct {
name string
noCumulative bool
stats []unix.TpacketStats
out []Stats
}{
{
name: "no cumulative",
noCumulative: true,
stats: []unix.TpacketStats{
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
out: []Stats{
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
},
{
name: "cumulative",
stats: []unix.TpacketStats{
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
out: []Stats{
{Packets: 1, Drops: 1},
{Packets: 3, Drops: 3},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
p := &packetConn{noCumulativeStats: tt.noCumulative}
if diff := cmp.Diff(len(tt.stats), len(tt.out)); diff != "" {
t.Fatalf("unexpected number of test cases (-want +got):\n%s", diff)
}
for i := 0; i < len(tt.stats); i++ {
out := *p.handleStats(tt.stats[i])
if diff := cmp.Diff(tt.out[i], out); diff != "" {
t.Fatalf("unexpected Stats[%02d] (-want +got):\n%s", i, diff)
}
}
})
}
}
type noopSocket struct{}
func (noopSocket) Bind(sa unix.Sockaddr) error { return nil }
func (noopSocket) Close() error { return nil }
func (noopSocket) FD() int { return 0 }
func (noopSocket) GetSockopt(level, name int, v unsafe.Pointer, l uintptr) error { return nil }
func (noopSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) { return 0, nil, nil }
func (noopSocket) Sendto(p []byte, flags int, to unix.Sockaddr) error { return nil }
func (noopSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error { return nil }
func (noopSocket) SetTimeout(timeout time.Duration) error { return nil } | // +build linux
package raw
import (
"bytes"
"net"
"testing"
"time"
"unsafe"
"github.com/google/go-cmp/cmp"
"golang.org/x/net/bpf"
"golang.org/x/sys/unix"
)
// Test to ensure that socket is bound with correct sockaddr_ll information
type bindSocket struct {
bind unix.Sockaddr
noopSocket
}
func (s *bindSocket) Bind(sa unix.Sockaddr) error {
s.bind = sa
return nil
}
func Test_newPacketConnBind(t *testing.T) {
s := &bindSocket{}
ifIndex := 1
protocol := uint16(1)
_, err := newPacketConn(
&net.Interface{
Index: ifIndex,
},
s,
protocol,
)
if err != nil {
t.Fatal(err)
}
sall, ok := s.bind.(*unix.SockaddrLinklayer)
if !ok {
t.Fatalf("bind sockaddr has incorrect type: %T", s.bind)
}
if want, got := ifIndex, sall.Ifindex; want != got {
t.Fatalf("unexpected network interface index:\n- want: %v\n- got: %v", want, got)
}
if want, got := protocol, sall.Protocol; want != got {
t.Fatalf("unexpected protocol:\n- want: %v\n- got: %v", want, got)
}
}
// Test for incorrect sockaddr type after recvfrom on a socket.
type addrRecvfromSocket struct {
addr unix.Sockaddr
noopSocket
}
func (s *addrRecvfromSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
return 0, s.addr, nil
}
func Test_packetConnReadFromRecvfromInvalidSockaddr(t *testing.T) {
p, err := newPacketConn(
&net.Interface{},
&addrRecvfromSocket{
addr: &unix.SockaddrInet4{},
},
0,
)
if err != nil {
t.Fatal(err)
}
_, _, err = p.ReadFrom(nil)
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
// Test for malformed hardware address after recvfrom on a socket
func Test_packetConnReadFromRecvfromInvalidHardwareAddr(t *testing.T) {
p, err := newPacketConn(
&net.Interface{},
&addrRecvfromSocket{
addr: &unix.SockaddrLinklayer{
Halen: 5,
},
},
0,
)
if err != nil {
t.Fatal(err)
}
_, _, err = p.ReadFrom(nil)
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
// Test for a correct ReadFrom with data and address.
type recvfromSocket struct {
p []byte
flags int
addr unix.Sockaddr
noopSocket
}
func (s *recvfromSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
copy(p, s.p)
s.flags = flags
return len(s.p), s.addr, nil
}
func Test_packetConnReadFromRecvfromOK(t *testing.T) {
const wantN = 4
data := []byte{0, 1, 2, 3}
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
s := &recvfromSocket{
p: data,
addr: &unix.SockaddrLinklayer{
Halen: 6,
Addr: [8]byte{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0x00, 0x00},
},
}
p, err := newPacketConn(
&net.Interface{},
s,
0,
)
if err != nil {
t.Fatal(err)
}
buf := make([]byte, 8)
n, addr, err := p.ReadFrom(buf)
if err != nil {
t.Fatal(err)
}
if want, got := 0, s.flags; want != got {
t.Fatalf("unexpected flags:\n- want: %v\n- got: %v", want, got)
}
raddr, ok := addr.(*Addr)
if !ok {
t.Fatalf("read sockaddr has incorrect type: %T", addr)
}
if want, got := deadbeefHW, raddr.HardwareAddr; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
if want, got := wantN, n; want != got {
t.Fatalf("unexpected data length:\n- want: %v\n- got: %v", want, got)
}
if want, got := data, buf[:n]; !bytes.Equal(want, got) {
t.Fatalf("unexpected data:\n- want: %v\n- got: %v", want, got)
}
}
// Test for incorrect sockaddr type for WriteTo.
func Test_packetConnWriteToInvalidSockaddr(t *testing.T) {
_, err := (&packetConn{}).WriteTo(nil, &net.IPAddr{})
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
// Test for malformed hardware address with WriteTo.
func Test_packetConnWriteToInvalidHardwareAddr(t *testing.T) {
addrs := []net.HardwareAddr{
// Too short.
{0xde, 0xad, 0xbe, 0xef, 0xde},
// Explicitly nil.
nil,
}
for _, addr := range addrs {
_, err := (&packetConn{}).WriteTo(nil, &Addr{
HardwareAddr: addr,
})
if want, got := unix.EINVAL, err; want != got {
t.Fatalf("unexpected error:\n- want: %v\n- got: %v", want, got)
}
}
}
// Test for a correct WriteTo with data and address.
type sendtoSocket struct {
p []byte
flags int
addr unix.Sockaddr
noopSocket
}
func (s *sendtoSocket) Sendto(p []byte, flags int, to unix.Sockaddr) error {
copy(s.p, p)
s.flags = flags
s.addr = to
return nil
}
func Test_packetConnWriteToSendtoOK(t *testing.T) {
const wantN = 4
data := []byte{0, 1, 2, 3}
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
s := &sendtoSocket{
p: make([]byte, wantN),
}
p, err := newPacketConn(
&net.Interface{},
s,
0,
)
if err != nil {
t.Fatal(err)
}
n, err := p.WriteTo(data, &Addr{
HardwareAddr: deadbeefHW,
})
if err != nil {
t.Fatal(err)
}
if want, got := 0, s.flags; want != got {
t.Fatalf("unexpected flags:\n- want: %v\n- got: %v", want, got)
}
if want, got := wantN, n; want != got {
t.Fatalf("unexpected data length:\n- want: %v\n- got: %v", want, got)
}
if want, got := data, s.p; !bytes.Equal(want, got) {
t.Fatalf("unexpected data:\n- want: %v\n- got: %v", want, got)
}
sall, ok := s.addr.(*unix.SockaddrLinklayer)
if !ok {
t.Fatalf("write sockaddr has incorrect type: %T", s.addr)
}
if want, got := deadbeefHW, sall.Addr[:][:sall.Halen]; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
}
// Test that socket close functions as intended.
type captureCloseSocket struct {
closed bool
noopSocket
}
func (s *captureCloseSocket) Close() error {
s.closed = true
return nil
}
func Test_packetConnClose(t *testing.T) {
s := &captureCloseSocket{}
p := &packetConn{
s: s,
}
if err := p.Close(); err != nil {
t.Fatal(err)
}
if !s.closed {
t.Fatalf("socket should be closed, but is not")
}
}
// Test that LocalAddr returns the hardware address of the network interface
// which is being used by the socket.
func Test_packetConnLocalAddr(t *testing.T) {
deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad}
p := &packetConn{
ifi: &net.Interface{
HardwareAddr: deadbeefHW,
},
}
if want, got := deadbeefHW, p.LocalAddr().(*Addr).HardwareAddr; !bytes.Equal(want, got) {
t.Fatalf("unexpected hardware address:\n- want: %v\n- got: %v", want, got)
}
}
// Test that BPF filter attachment works as intended.
type setSockoptSocket struct {
setsockopt func(level, name int, v unsafe.Pointer, l uint32) error
noopSocket
}
func (s *setSockoptSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error {
return s.setsockopt(level, name, v, l)
}
func Test_packetConnSetBPF(t *testing.T) {
filter, err := bpf.Assemble([]bpf.Instruction{
bpf.RetConstant{Val: 0},
})
if err != nil {
t.Fatalf("failed to assemble filter: %v", err)
}
fn := func(level, name int, _ unsafe.Pointer, _ uint32) error {
// Though we can't check the filter itself, we can check the setsockopt
// level and name for correctness.
if want, got := unix.SOL_SOCKET, level; want != got {
t.Fatalf("unexpected setsockopt level:\n- want: %v\n- got: %v", want, got)
}
if want, got := unix.SO_ATTACH_FILTER, name; want != got {
t.Fatalf("unexpected setsockopt name:\n- want: %v\n- got: %v", want, got)
}
return nil
}
s := &setSockoptSocket{
setsockopt: fn,
}
p := &packetConn{
s: s,
}
if err := p.SetBPF(filter); err != nil {
t.Fatalf("failed to attach filter: %v", err)
}
}
// Test that timeouts are not set when they are disabled.
type setTimeoutSocket struct {
setTimeout func(timeout time.Duration) error
noopSocket
}
func (s *setTimeoutSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) {
return 0, &unix.SockaddrLinklayer{
Halen: 6,
}, nil
}
func (s *setTimeoutSocket) SetTimeout(timeout time.Duration) error {
return s.setTimeout(timeout)
}
func Test_packetConnNoTimeouts(t *testing.T) {
s := &setTimeoutSocket{
setTimeout: func(_ time.Duration) error {
panic("a timeout was set")
},
}
p := &packetConn{
s: s,
noTimeouts: true,
}
buf := make([]byte, 64)
if _, _, err := p.ReadFrom(buf); err != nil {
t.Fatalf("failed to read: %v", err)
}
}
func Test_packetConn_handleStats(t *testing.T) {
tests := []struct {
name string
noCumulative bool
stats []unix.TpacketStats
out []Stats
}{
{
name: "no cumulative",
noCumulative: true,
stats: []unix.TpacketStats{
// Expect these exact outputs.
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
out: []Stats{
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
},
{
name: "cumulative",
stats: []unix.TpacketStats{
// Expect accumulation of structures.
{Packets: 1, Drops: 1},
{Packets: 2, Drops: 2},
},
out: []Stats{
{Packets: 1, Drops: 1},
{Packets: 3, Drops: 3},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
p := &packetConn{noCumulativeStats: tt.noCumulative}
if diff := cmp.Diff(len(tt.stats), len(tt.out)); diff != "" {
t.Fatalf("unexpected number of test cases (-want +got):\n%s", diff)
}
for i := 0; i < len(tt.stats); i++ {
out := *p.handleStats(tt.stats[i])
if diff := cmp.Diff(tt.out[i], out); diff != "" {
t.Fatalf("unexpected Stats[%02d] (-want +got):\n%s", i, diff)
}
}
})
}
}
// noopSocket is a socket implementation which noops every operation. It is
// the basis for more specific socket implementations.
type noopSocket struct{}
func (noopSocket) Bind(sa unix.Sockaddr) error { return nil }
func (noopSocket) Close() error { return nil }
func (noopSocket) FD() int { return 0 }
func (noopSocket) GetSockopt(level, name int, v unsafe.Pointer, l uintptr) error { return nil }
func (noopSocket) Recvfrom(p []byte, flags int) (int, unix.Sockaddr, error) { return 0, nil, nil }
func (noopSocket) Sendto(p []byte, flags int, to unix.Sockaddr) error { return nil }
func (noopSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error { return nil }
func (noopSocket) SetTimeout(timeout time.Duration) error { return nil }
| [
5786,
4971,
188,
188,
4747,
280,
188,
187,
4,
2186,
4,
188,
187,
4,
1291,
4,
188,
187,
4,
4342,
4,
188,
187,
4,
1149,
4,
188,
187,
4,
3331,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
2735,
17,
2035,
15,
3109,
17,
3109,
4,
188,
187,
4,
9161,
16,
1587,
17,
90,
17,
1291,
17,
12989,
4,
188,
187,
4,
9161,
16,
1587,
17,
90,
17,
2058,
17,
14970,
4,
188,
11,
188,
188,
558,
8215,
5674,
603,
275,
188,
187,
3801,
12927,
16,
9235,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
3801,
5674,
11,
19673,
10,
2559,
12927,
16,
9235,
11,
790,
275,
188,
187,
85,
16,
3801,
260,
9228,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
2214,
65,
1002,
4953,
5716,
8203,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
85,
721,
396,
3801,
5674,
2475,
188,
188,
187,
285,
1132,
721,
352,
188,
187,
5015,
721,
691,
559,
10,
19,
11,
188,
188,
187,
2256,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
93,
188,
350,
187,
1132,
28,
392,
1132,
14,
188,
187,
187,
519,
188,
187,
187,
85,
14,
188,
187,
187,
5015,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
85,
466,
14,
3164,
721,
298,
16,
3801,
9004,
14970,
16,
9235,
3162,
2886,
11,
188,
187,
285,
504,
1604,
275,
188,
187,
187,
86,
16,
8409,
435,
3801,
10146,
1590,
12050,
640,
28,
690,
54,
347,
298,
16,
3801,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
392,
1132,
14,
298,
466,
16,
33773,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
5530,
2251,
1536,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
187,
285,
3793,
14,
5604,
721,
5379,
14,
298,
466,
16,
5114,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
5379,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
3037,
16755,
1911,
5674,
603,
275,
188,
187,
1009,
12927,
16,
9235,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
1009,
16755,
1911,
5674,
11,
45236,
1911,
10,
82,
1397,
1212,
14,
1809,
388,
11,
280,
291,
14,
12927,
16,
9235,
14,
790,
11,
275,
188,
187,
397,
257,
14,
298,
16,
1009,
14,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
1933,
1699,
16755,
1911,
2918,
9235,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
82,
14,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
4364,
188,
187,
187,
8,
1009,
16755,
1911,
5674,
93,
188,
350,
187,
1009,
28,
396,
14970,
16,
46942,
22,
4364,
188,
187,
187,
519,
188,
187,
187,
18,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
2256,
2426,
497,
260,
289,
16,
1933,
1699,
10,
3974,
11,
188,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
1933,
1699,
16755,
1911,
2918,
18566,
3098,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
82,
14,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
4364,
188,
187,
187,
8,
1009,
16755,
1911,
5674,
93,
188,
350,
187,
1009,
28,
396,
14970,
16,
9235,
3162,
2886,
93,
188,
2054,
187,
14426,
259,
28,
915,
14,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
18,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
2256,
2426,
497,
260,
289,
16,
1933,
1699,
10,
3974,
11,
188,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
11911,
1911,
5674,
603,
275,
188,
187,
82,
209,
209,
209,
209,
1397,
1212,
188,
187,
1365,
388,
188,
187,
1009,
209,
12927,
16,
9235,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
48028,
5674,
11,
45236,
1911,
10,
82,
1397,
1212,
14,
1809,
388,
11,
280,
291,
14,
12927,
16,
9235,
14,
790,
11,
275,
188,
187,
2247,
10,
82,
14,
298,
16,
82,
11,
188,
187,
85,
16,
1365,
260,
1809,
188,
187,
397,
1005,
10,
85,
16,
82,
399,
298,
16,
1009,
14,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
1933,
1699,
16755,
1911,
2323,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
819,
3793,
48,
260,
710,
188,
187,
568,
721,
1397,
1212,
93,
18,
14,
352,
14,
444,
14,
678,
95,
188,
187,
13358,
37025,
3597,
721,
2043,
16,
18566,
3098,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
95,
188,
188,
187,
85,
721,
396,
48028,
5674,
93,
188,
187,
187,
82,
28,
859,
14,
188,
187,
187,
1009,
28,
396,
14970,
16,
9235,
3162,
2886,
93,
188,
350,
187,
14426,
259,
28,
1085,
14,
188,
350,
187,
3098,
28,
209,
545,
26,
63,
1212,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
14,
257,
90,
264,
14,
257,
90,
264,
519,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
82,
14,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
4364,
188,
187,
187,
85,
14,
188,
187,
187,
18,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
889,
721,
2311,
4661,
1212,
14,
1013,
11,
188,
187,
80,
14,
3037,
14,
497,
721,
289,
16,
1933,
1699,
10,
889,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
257,
14,
298,
16,
1365,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
1809,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
84,
1009,
14,
3164,
721,
3037,
9004,
3098,
11,
188,
187,
285,
504,
1604,
275,
188,
187,
187,
86,
16,
8409,
435,
695,
10146,
1590,
12050,
640,
28,
690,
54,
347,
3037,
11,
188,
187,
95,
188,
187,
285,
3793,
14,
5604,
721,
11372,
37025,
3597,
14,
470,
1009,
16,
18566,
3098,
29,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
6273,
2235,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
3793,
48,
14,
302,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
2036,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
859,
14,
2358,
3872,
80,
768,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
2918,
9235,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
2256,
497,
721,
7105,
3408,
5716,
25449,
37184,
10,
3974,
14,
396,
1291,
16,
948,
3098,
5494,
188,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
2918,
18566,
3098,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
15582,
721,
1397,
1291,
16,
18566,
3098,
93,
188,
188,
187,
187,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
519,
188,
188,
187,
187,
3974,
14,
188,
187,
95,
188,
188,
187,
529,
2426,
3037,
721,
2068,
36061,
275,
188,
187,
187,
2256,
497,
721,
7105,
3408,
5716,
25449,
37184,
10,
3974,
14,
396,
3098,
93,
188,
350,
187,
18566,
3098,
28,
3037,
14,
188,
187,
187,
1436,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
558,
3766,
490,
5674,
603,
275,
188,
187,
82,
209,
209,
209,
209,
1397,
1212,
188,
187,
1365,
388,
188,
187,
1009,
209,
12927,
16,
9235,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
38979,
5674,
11,
7289,
490,
10,
82,
1397,
1212,
14,
1809,
388,
14,
384,
12927,
16,
9235,
11,
790,
275,
188,
187,
2247,
10,
85,
16,
82,
14,
289,
11,
188,
187,
85,
16,
1365,
260,
1809,
188,
187,
85,
16,
1009,
260,
384,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
4365,
490,
2323,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
819,
3793,
48,
260,
710,
188,
187,
568,
721,
1397,
1212,
93,
18,
14,
352,
14,
444,
14,
678,
95,
188,
188,
187,
13358,
37025,
3597,
721,
2043,
16,
18566,
3098,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
95,
188,
188,
187,
85,
721,
396,
38979,
5674,
93,
188,
187,
187,
82,
28,
2311,
4661,
1212,
14,
3793,
48,
399,
188,
187,
95,
188,
188,
187,
82,
14,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
4364,
188,
187,
187,
85,
14,
188,
187,
187,
18,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
80,
14,
497,
721,
289,
16,
37184,
10,
568,
14,
396,
3098,
93,
188,
187,
187,
18566,
3098,
28,
11372,
37025,
3597,
14,
188,
187,
1436,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
257,
14,
298,
16,
1365,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
1809,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
3793,
48,
14,
302,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
2036,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
187,
285,
3793,
14,
5604,
721,
859,
14,
298,
16,
82,
29,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
85,
466,
14,
3164,
721,
298,
16,
1009,
9004,
14970,
16,
9235,
3162,
2886,
11,
188,
187,
285,
504,
1604,
275,
188,
187,
187,
86,
16,
8409,
435,
1114,
10146,
1590,
12050,
640,
28,
690,
54,
347,
298,
16,
1009,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
11372,
37025,
3597,
14,
298,
466,
16,
3098,
3872,
49074,
85,
466,
16,
14426,
259,
768,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
6273,
2235,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
10759,
4572,
5674,
603,
275,
188,
187,
13175,
1019,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
9508,
4572,
5674,
11,
9964,
336,
790,
275,
188,
187,
85,
16,
13175,
260,
868,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
4572,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
85,
721,
396,
9508,
4572,
5674,
2475,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
298,
14,
188,
187,
95,
188,
188,
187,
285,
497,
721,
289,
16,
4572,
491,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
285,
504,
85,
16,
13175,
275,
188,
187,
187,
86,
16,
8409,
435,
4959,
1468,
523,
9852,
14,
1652,
425,
655,
866,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
3437,
3098,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
13358,
37025,
3597,
721,
2043,
16,
18566,
3098,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
95,
188,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
962,
28,
396,
1291,
16,
2686,
93,
188,
350,
187,
18566,
3098,
28,
11372,
37025,
3597,
14,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
11372,
37025,
3597,
14,
289,
16,
3437,
3098,
26117,
3098,
717,
18566,
3098,
29,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
6273,
2235,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
755,
6598,
1934,
5674,
603,
275,
188,
187,
27412,
830,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
691,
419,
11,
790,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
387,
6598,
1934,
5674,
11,
1466,
6598,
1934,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
691,
419,
11,
790,
275,
188,
187,
397,
298,
16,
27412,
10,
2482,
14,
700,
14,
325,
14,
386,
11,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
853,
3860,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
2427,
14,
497,
721,
12076,
16,
2509,
18235,
4661,
12989,
16,
4417,
93,
188,
187,
187,
12989,
16,
4489,
3771,
93,
1400,
28,
257,
519,
188,
187,
1436,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
50220,
3020,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
188,
187,
2300,
721,
830,
10,
2482,
14,
700,
388,
14,
547,
4640,
16,
2007,
14,
547,
691,
419,
11,
790,
275,
188,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
11754,
65,
10854,
14,
3031,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
37438,
3031,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
1475,
65,
14703,
65,
5356,
14,
700,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
37438,
700,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
188,
187,
187,
397,
869,
188,
187,
95,
188,
188,
187,
85,
721,
396,
387,
6598,
1934,
5674,
93,
188,
187,
187,
27412,
28,
3094,
14,
188,
187,
95,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
298,
14,
188,
187,
95,
188,
188,
187,
285,
497,
721,
289,
16,
853,
3860,
10,
2427,
267,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
9539,
3020,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
558,
20867,
5674,
603,
275,
188,
187,
19875,
830,
10,
3650,
1247,
16,
5354,
11,
790,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
19875,
5674,
11,
45236,
1911,
10,
82,
1397,
1212,
14,
1809,
388,
11,
280,
291,
14,
12927,
16,
9235,
14,
790,
11,
275,
188,
187,
397,
257,
14,
396,
14970,
16,
9235,
3162,
2886,
93,
188,
187,
187,
14426,
259,
28,
1085,
14,
188,
187,
519,
869,
188,
95,
188,
188,
1857,
280,
85,
258,
19875,
5674,
11,
1466,
4280,
10,
3650,
1247,
16,
5354,
11,
790,
275,
188,
187,
397,
298,
16,
19875,
10,
3650,
11,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
2487,
4280,
85,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
85,
721,
396,
19875,
5674,
93,
188,
187,
187,
19875,
28,
830,
1706,
1247,
16,
5354,
11,
790,
275,
188,
350,
187,
7640,
435,
67,
4234,
2257,
755,
866,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
298,
14,
188,
187,
187,
1074,
4280,
85,
28,
868,
14,
188,
187,
95,
188,
188,
187,
889,
721,
2311,
4661,
1212,
14,
2797,
11,
188,
187,
285,
2426,
2426,
497,
721,
289,
16,
1933,
1699,
10,
889,
267,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
1415,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
65,
2069,
5807,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
7844,
721,
1397,
393,
275,
188,
187,
187,
579,
209,
209,
209,
209,
209,
209,
209,
209,
776,
188,
187,
187,
1074,
37,
24678,
1019,
188,
187,
187,
2894,
209,
209,
209,
209,
209,
209,
209,
1397,
14970,
16,
54,
3408,
5807,
188,
187,
187,
560,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1397,
5807,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1074,
45395,
347,
188,
350,
187,
1074,
37,
24678,
28,
868,
14,
188,
350,
187,
2894,
28,
1397,
14970,
16,
54,
3408,
5807,
93,
188,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
350,
187,
560,
28,
1397,
5807,
93,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
312,
69,
24678,
347,
188,
350,
187,
2894,
28,
1397,
14970,
16,
54,
3408,
5807,
93,
188,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
350,
187,
560,
28,
1397,
5807,
93,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
678,
14,
433,
18748,
28,
678,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
529,
2426,
7591,
721,
2068,
6390,
275,
188,
187,
187,
86,
16,
3103,
10,
3319,
16,
579,
14,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
82,
721,
396,
3408,
5716,
93,
1074,
37,
24678,
5807,
28,
7591,
16,
1074,
37,
24678,
95,
188,
188,
350,
187,
285,
7144,
721,
11390,
16,
8407,
10,
635,
10,
3319,
16,
2894,
399,
1005,
10,
3319,
16,
560,
619,
7144,
598,
3985,
275,
188,
2054,
187,
86,
16,
8409,
435,
14347,
1452,
427,
1086,
7685,
7477,
9267,
431,
9308,
1050,
62,
80,
7,
85,
347,
7144,
11,
188,
350,
187,
95,
188,
188,
350,
187,
529,
368,
721,
257,
29,
368,
360,
1005,
10,
3319,
16,
2894,
267,
368,
775,
275,
188,
2054,
187,
560,
721,
258,
82,
16,
2069,
5807,
10,
3319,
16,
2894,
61,
75,
1278,
188,
188,
2054,
187,
285,
7144,
721,
11390,
16,
8407,
10,
3319,
16,
560,
61,
75,
630,
880,
267,
7144,
598,
3985,
275,
188,
1263,
187,
86,
16,
8409,
435,
14347,
28827,
10688,
1052,
70,
63,
7477,
9267,
431,
9308,
1050,
62,
80,
7,
85,
347,
368,
14,
7144,
11,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
188,
187,
187,
1436,
188,
187,
95,
188,
95,
188,
188,
558,
24582,
5674,
603,
2475,
188,
188,
1857,
280,
16229,
5674,
11,
19673,
10,
2559,
12927,
16,
9235,
11,
790,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
869,
290,
188,
1857,
280,
16229,
5674,
11,
9964,
336,
790,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
869,
290,
188,
1857,
280,
16229,
5674,
11,
17447,
336,
388,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
257,
290,
188,
1857,
280,
16229,
5674,
11,
1301,
6598,
1934,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
1738,
11,
790,
275,
429,
869,
290,
188,
1857,
280,
16229,
5674,
11,
45236,
1911,
10,
82,
1397,
1212,
14,
1809,
388,
11,
280,
291,
14,
12927,
16,
9235,
14,
790,
11,
209,
209,
209,
209,
209,
275,
429,
257,
14,
869,
14,
869,
290,
188,
1857,
280,
16229,
5674,
11,
7289,
490,
10,
82,
1397,
1212,
14,
1809,
388,
14,
384,
12927,
16,
9235,
11,
790,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
869,
290,
188,
1857,
280,
16229,
5674,
11,
1466,
6598,
1934,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
691,
419,
11,
790,
209,
275,
429,
869,
290,
188,
1857,
280,
16229,
5674,
11,
1466,
4280,
10,
3650,
1247,
16,
5354,
11,
790,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
869,
290
] | [
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
2918,
9235,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
2256,
497,
721,
7105,
3408,
5716,
25449,
37184,
10,
3974,
14,
396,
1291,
16,
948,
3098,
5494,
188,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
2918,
18566,
3098,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
15582,
721,
1397,
1291,
16,
18566,
3098,
93,
188,
188,
187,
187,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
519,
188,
188,
187,
187,
3974,
14,
188,
187,
95,
188,
188,
187,
529,
2426,
3037,
721,
2068,
36061,
275,
188,
187,
187,
2256,
497,
721,
7105,
3408,
5716,
25449,
37184,
10,
3974,
14,
396,
3098,
93,
188,
350,
187,
18566,
3098,
28,
3037,
14,
188,
187,
187,
1436,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
3019,
14,
497,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
790,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
558,
3766,
490,
5674,
603,
275,
188,
187,
82,
209,
209,
209,
209,
1397,
1212,
188,
187,
1365,
388,
188,
187,
1009,
209,
12927,
16,
9235,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
38979,
5674,
11,
7289,
490,
10,
82,
1397,
1212,
14,
1809,
388,
14,
384,
12927,
16,
9235,
11,
790,
275,
188,
187,
2247,
10,
85,
16,
82,
14,
289,
11,
188,
187,
85,
16,
1365,
260,
1809,
188,
187,
85,
16,
1009,
260,
384,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
37184,
4365,
490,
2323,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
819,
3793,
48,
260,
710,
188,
187,
568,
721,
1397,
1212,
93,
18,
14,
352,
14,
444,
14,
678,
95,
188,
188,
187,
13358,
37025,
3597,
721,
2043,
16,
18566,
3098,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
95,
188,
188,
187,
85,
721,
396,
38979,
5674,
93,
188,
187,
187,
82,
28,
2311,
4661,
1212,
14,
3793,
48,
399,
188,
187,
95,
188,
188,
187,
82,
14,
497,
721,
605,
4953,
5716,
10,
188,
187,
187,
8,
1291,
16,
2686,
4364,
188,
187,
187,
85,
14,
188,
187,
187,
18,
14,
188,
187,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
80,
14,
497,
721,
289,
16,
37184,
10,
568,
14,
396,
3098,
93,
188,
187,
187,
18566,
3098,
28,
11372,
37025,
3597,
14,
188,
187,
1436,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
257,
14,
298,
16,
1365,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
1809,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
3793,
48,
14,
302,
29,
3793,
598,
5604,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
2036,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
187,
285,
3793,
14,
5604,
721,
859,
14,
298,
16,
82,
29,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
859,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
188,
187,
85,
466,
14,
3164,
721,
298,
16,
1009,
9004,
14970,
16,
9235,
3162,
2886,
11,
188,
187,
285,
504,
1604,
275,
188,
187,
187,
86,
16,
8409,
435,
1114,
10146,
1590,
12050,
640,
28,
690,
54,
347,
298,
16,
1009,
11,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
11372,
37025,
3597,
14,
298,
466,
16,
3098,
3872,
49074,
85,
466,
16,
14426,
259,
768,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
6273,
2235,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
10759,
4572,
5674,
603,
275,
188,
187,
13175,
1019,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
9508,
4572,
5674,
11,
9964,
336,
790,
275,
188,
187,
85,
16,
13175,
260,
868,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
4572,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
85,
721,
396,
9508,
4572,
5674,
2475,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
298,
14,
188,
187,
95,
188,
188,
187,
285,
497,
721,
289,
16,
4572,
491,
497,
598,
869,
275,
188,
187,
187,
86,
16,
5944,
10,
379,
11,
188,
187,
95,
188,
188,
187,
285,
504,
85,
16,
13175,
275,
188,
187,
187,
86,
16,
8409,
435,
4959,
1468,
523,
9852,
14,
1652,
425,
655,
866,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
3437,
3098,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
13358,
37025,
3597,
721,
2043,
16,
18566,
3098,
93,
18,
8549,
14,
257,
7783,
14,
257,
7398,
14,
257,
6827,
14,
257,
8549,
14,
257,
7783,
95,
188,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
962,
28,
396,
1291,
16,
2686,
93,
188,
350,
187,
18566,
3098,
28,
11372,
37025,
3597,
14,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
285,
3793,
14,
5604,
721,
11372,
37025,
3597,
14,
289,
16,
3437,
3098,
26117,
3098,
717,
18566,
3098,
29,
504,
2186,
16,
1567,
10,
9267,
14,
5604,
11,
275,
188,
187,
187,
86,
16,
8409,
435,
14347,
6273,
2235,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
95,
188,
95,
188,
188,
558,
755,
6598,
1934,
5674,
603,
275,
188,
187,
27412,
830,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
691,
419,
11,
790,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
387,
6598,
1934,
5674,
11,
1466,
6598,
1934,
10,
2482,
14,
700,
388,
14,
325,
4640,
16,
2007,
14,
386,
691,
419,
11,
790,
275,
188,
187,
397,
298,
16,
27412,
10,
2482,
14,
700,
14,
325,
14,
386,
11,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
853,
3860,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
2427,
14,
497,
721,
12076,
16,
2509,
18235,
4661,
12989,
16,
4417,
93,
188,
187,
187,
12989,
16,
4489,
3771,
93,
1400,
28,
257,
519,
188,
187,
1436,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
50220,
3020,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
188,
187,
2300,
721,
830,
10,
2482,
14,
700,
388,
14,
547,
4640,
16,
2007,
14,
547,
691,
419,
11,
790,
275,
188,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
11754,
65,
10854,
14,
3031,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
37438,
3031,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
187,
187,
285,
3793,
14,
5604,
721,
12927,
16,
1475,
65,
14703,
65,
5356,
14,
700,
29,
3793,
598,
5604,
275,
188,
350,
187,
86,
16,
8409,
435,
14347,
37438,
700,
6516,
80,
15,
3793,
28,
690,
88,
62,
80,
15,
209,
5604,
28,
690,
88,
347,
3793,
14,
5604,
11,
188,
187,
187,
95,
188,
188,
187,
187,
397,
869,
188,
187,
95,
188,
188,
187,
85,
721,
396,
387,
6598,
1934,
5674,
93,
188,
187,
187,
27412,
28,
3094,
14,
188,
187,
95,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
298,
14,
188,
187,
95,
188,
188,
187,
285,
497,
721,
289,
16,
853,
3860,
10,
2427,
267,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
9539,
3020,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
558,
20867,
5674,
603,
275,
188,
187,
19875,
830,
10,
3650,
1247,
16,
5354,
11,
790,
188,
187,
16229,
5674,
188,
95,
188,
188,
1857,
280,
85,
258,
19875,
5674,
11,
45236,
1911,
10,
82,
1397,
1212,
14,
1809,
388,
11,
280,
291,
14,
12927,
16,
9235,
14,
790,
11,
275,
188,
187,
397,
257,
14,
396,
14970,
16,
9235,
3162,
2886,
93,
188,
187,
187,
14426,
259,
28,
1085,
14,
188,
187,
519,
869,
188,
95,
188,
188,
1857,
280,
85,
258,
19875,
5674,
11,
1466,
4280,
10,
3650,
1247,
16,
5354,
11,
790,
275,
188,
187,
397,
298,
16,
19875,
10,
3650,
11,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
2487,
4280,
85,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
85,
721,
396,
19875,
5674,
93,
188,
187,
187,
19875,
28,
830,
1706,
1247,
16,
5354,
11,
790,
275,
188,
350,
187,
7640,
435,
67,
4234,
2257,
755,
866,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
82,
721,
396,
3408,
5716,
93,
188,
187,
187,
85,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
298,
14,
188,
187,
187,
1074,
4280,
85,
28,
868,
14,
188,
187,
95,
188,
188,
187,
889,
721,
2311,
4661,
1212,
14,
2797,
11,
188,
187,
285,
2426,
2426,
497,
721,
289,
16,
1933,
1699,
10,
889,
267,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
5177,
384,
1415,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
65,
3408,
5716,
65,
2069,
5807,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
7844,
721,
1397,
393,
275,
188,
187,
187,
579,
209,
209,
209,
209,
209,
209,
209,
209,
776,
188,
187,
187,
1074,
37,
24678,
1019,
188,
187,
187,
2894,
209,
209,
209,
209,
209,
209,
209,
1397,
14970,
16,
54,
3408,
5807,
188,
187,
187,
560,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1397,
5807,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1074,
45395,
347,
188,
350,
187,
1074,
37,
24678,
28,
868,
14,
188,
350,
187,
2894,
28,
1397,
14970,
16,
54,
3408,
5807,
93,
188,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
350,
187,
560,
28,
1397,
5807,
93,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
312,
69,
24678,
347,
188,
350,
187,
2894,
28,
1397,
14970,
16,
54,
3408,
5807,
93,
188,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
444,
14,
433,
18748,
28,
444,
519,
188,
350,
187,
519,
188,
350,
187,
560,
28,
1397,
5807,
93,
188,
2054,
187,
93,
27779,
28,
352,
14,
433,
18748,
28,
352,
519,
188,
2054,
187,
93,
27779,
28,
678,
14,
433,
18748,
28,
678,
519,
188,
350,
187,
519,
188,
187
] |
72,758 | package testing
import (
"fmt"
"net/http"
"testing"
fake "github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/common"
"github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/extensions/portsecurity"
"github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/networks"
"github.com/opentelekomcloud/gophertelekomcloud/pagination"
th "github.com/opentelekomcloud/gophertelekomcloud/testhelper"
)
func TestList(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, ListResponse)
})
client := fake.ServiceClient()
count := 0
_ = networks.List(client, networks.ListOpts{}).EachPage(func(page pagination.Page) (bool, error) {
count++
actual, err := networks.ExtractNetworks(page)
if err != nil {
t.Errorf("Failed to extract networks: %v", err)
return false, err
}
th.CheckDeepEquals(t, ExpectedNetworkSlice, actual)
return true, nil
})
if count != 1 {
t.Errorf("Expected 1 page, got %d", count)
}
}
func TestListWithExtensions(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, ListResponse)
})
client := fake.ServiceClient()
type networkWithExt struct {
networks.Network
portsecurity.PortSecurityExt
}
var allNetworks []networkWithExt
allPages, err := networks.List(client, networks.ListOpts{}).AllPages()
th.AssertNoErr(t, err)
err = networks.ExtractNetworksInto(allPages, &allNetworks)
th.AssertNoErr(t, err)
th.AssertEquals(t, allNetworks[0].Status, "ACTIVE")
th.AssertEquals(t, allNetworks[0].PortSecurityEnabled, true)
th.AssertEquals(t, allNetworks[0].Subnets[0], "54d6f61d-db07-451c-9ab3-b9609b6b6f0b")
th.AssertEquals(t, allNetworks[1].Subnets[0], "08eae331-0402-425a-923c-34f7cfe39c1b")
}
func TestGet(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/d32019d3-bc6e-4319-9c1d-6722fc136a22", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, GetResponse)
})
n, err := networks.Get(fake.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22").Extract()
th.AssertNoErr(t, err)
th.CheckDeepEquals(t, &Network1, n)
}
func TestGetWithExtensions(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/d32019d3-bc6e-4319-9c1d-6722fc136a22", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, GetResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
err := networks.Get(fake.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22").ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Status, "ACTIVE")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, true)
}
func TestCreate(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreateRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, CreateResponse)
})
iTrue := true
options := networks.CreateOpts{Name: "private", AdminStateUp: &iTrue}
n, err := networks.Create(fake.ServiceClient(), options).Extract()
th.AssertNoErr(t, err)
th.AssertEquals(t, n.Status, "ACTIVE")
th.AssertDeepEquals(t, &Network2, n)
}
func TestCreateWithOptionalFields(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreateOptionalFieldsRequest)
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, `{}`)
})
iTrue := true
options := networks.CreateOpts{
Name: "public",
AdminStateUp: &iTrue,
Shared: &iTrue,
TenantID: "12345",
AvailabilityZoneHints: []string{"zone1", "zone2"},
}
_, err := networks.Create(fake.ServiceClient(), options).Extract()
th.AssertNoErr(t, err)
}
func TestUpdate(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "PUT")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, UpdateRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, UpdateResponse)
})
iTrue, iFalse := true, false
options := networks.UpdateOpts{Name: "new_network_name", AdminStateUp: &iFalse, Shared: &iTrue}
n, err := networks.Update(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c", options).Extract()
th.AssertNoErr(t, err)
th.AssertEquals(t, n.Name, "new_network_name")
th.AssertEquals(t, n.AdminStateUp, false)
th.AssertEquals(t, n.Shared, true)
th.AssertEquals(t, n.ID, "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
}
func TestDelete(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.WriteHeader(http.StatusNoContent)
})
res := networks.Delete(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
th.AssertNoErr(t, res.Err)
}
func TestCreatePortSecurity(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreatePortSecurityRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, CreatePortSecurityResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
iTrue := true
iFalse := false
networkCreateOpts := networks.CreateOpts{Name: "private", AdminStateUp: &iTrue}
createOpts := portsecurity.NetworkCreateOptsExt{
CreateOptsBuilder: networkCreateOpts,
PortSecurityEnabled: &iFalse,
}
err := networks.Create(fake.ServiceClient(), createOpts).ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Status, "ACTIVE")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, false)
}
func TestUpdatePortSecurity(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "PUT")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, UpdatePortSecurityRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, UpdatePortSecurityResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
iFalse := false
networkUpdateOpts := networks.UpdateOpts{}
updateOpts := portsecurity.NetworkUpdateOptsExt{
UpdateOptsBuilder: networkUpdateOpts,
PortSecurityEnabled: &iFalse,
}
err := networks.Update(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c", updateOpts).ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Name, "private")
th.AssertEquals(t, networkWithExtensions.AdminStateUp, true)
th.AssertEquals(t, networkWithExtensions.Shared, false)
th.AssertEquals(t, networkWithExtensions.ID, "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, false)
} | package testing
import (
"fmt"
"net/http"
"testing"
fake "github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/common"
"github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/extensions/portsecurity"
"github.com/opentelekomcloud/gophertelekomcloud/openstack/networking/v2/networks"
"github.com/opentelekomcloud/gophertelekomcloud/pagination"
th "github.com/opentelekomcloud/gophertelekomcloud/testhelper"
)
func TestList(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, ListResponse)
})
client := fake.ServiceClient()
count := 0
_ = networks.List(client, networks.ListOpts{}).EachPage(func(page pagination.Page) (bool, error) {
count++
actual, err := networks.ExtractNetworks(page)
if err != nil {
t.Errorf("Failed to extract networks: %v", err)
return false, err
}
th.CheckDeepEquals(t, ExpectedNetworkSlice, actual)
return true, nil
})
if count != 1 {
t.Errorf("Expected 1 page, got %d", count)
}
}
func TestListWithExtensions(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, ListResponse)
})
client := fake.ServiceClient()
type networkWithExt struct {
networks.Network
portsecurity.PortSecurityExt
}
var allNetworks []networkWithExt
allPages, err := networks.List(client, networks.ListOpts{}).AllPages()
th.AssertNoErr(t, err)
err = networks.ExtractNetworksInto(allPages, &allNetworks)
th.AssertNoErr(t, err)
th.AssertEquals(t, allNetworks[0].Status, "ACTIVE")
th.AssertEquals(t, allNetworks[0].PortSecurityEnabled, true)
th.AssertEquals(t, allNetworks[0].Subnets[0], "54d6f61d-db07-451c-9ab3-b9609b6b6f0b")
th.AssertEquals(t, allNetworks[1].Subnets[0], "08eae331-0402-425a-923c-34f7cfe39c1b")
}
func TestGet(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/d32019d3-bc6e-4319-9c1d-6722fc136a22", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, GetResponse)
})
n, err := networks.Get(fake.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22").Extract()
th.AssertNoErr(t, err)
th.CheckDeepEquals(t, &Network1, n)
}
func TestGetWithExtensions(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/d32019d3-bc6e-4319-9c1d-6722fc136a22", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, GetResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
err := networks.Get(fake.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22").ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Status, "ACTIVE")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, true)
}
func TestCreate(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreateRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, CreateResponse)
})
iTrue := true
options := networks.CreateOpts{Name: "private", AdminStateUp: &iTrue}
n, err := networks.Create(fake.ServiceClient(), options).Extract()
th.AssertNoErr(t, err)
th.AssertEquals(t, n.Status, "ACTIVE")
th.AssertDeepEquals(t, &Network2, n)
}
func TestCreateWithOptionalFields(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreateOptionalFieldsRequest)
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, `{}`)
})
iTrue := true
options := networks.CreateOpts{
Name: "public",
AdminStateUp: &iTrue,
Shared: &iTrue,
TenantID: "12345",
AvailabilityZoneHints: []string{"zone1", "zone2"},
}
_, err := networks.Create(fake.ServiceClient(), options).Extract()
th.AssertNoErr(t, err)
}
func TestUpdate(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "PUT")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, UpdateRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, UpdateResponse)
})
iTrue, iFalse := true, false
options := networks.UpdateOpts{Name: "new_network_name", AdminStateUp: &iFalse, Shared: &iTrue}
n, err := networks.Update(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c", options).Extract()
th.AssertNoErr(t, err)
th.AssertEquals(t, n.Name, "new_network_name")
th.AssertEquals(t, n.AdminStateUp, false)
th.AssertEquals(t, n.Shared, true)
th.AssertEquals(t, n.ID, "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
}
func TestDelete(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
w.WriteHeader(http.StatusNoContent)
})
res := networks.Delete(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
th.AssertNoErr(t, res.Err)
}
func TestCreatePortSecurity(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, CreatePortSecurityRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
_, _ = fmt.Fprint(w, CreatePortSecurityResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
iTrue := true
iFalse := false
networkCreateOpts := networks.CreateOpts{Name: "private", AdminStateUp: &iTrue}
createOpts := portsecurity.NetworkCreateOptsExt{
CreateOptsBuilder: networkCreateOpts,
PortSecurityEnabled: &iFalse,
}
err := networks.Create(fake.ServiceClient(), createOpts).ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Status, "ACTIVE")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, false)
}
func TestUpdatePortSecurity(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
th.Mux.HandleFunc("/v2.0/networks/4e8e5957-649f-477b-9e5b-f1f75b21c03c", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "PUT")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
th.TestHeader(t, r, "Content-Type", "application/json")
th.TestHeader(t, r, "Accept", "application/json")
th.TestJSONRequest(t, r, UpdatePortSecurityRequest)
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = fmt.Fprint(w, UpdatePortSecurityResponse)
})
var networkWithExtensions struct {
networks.Network
portsecurity.PortSecurityExt
}
iFalse := false
networkUpdateOpts := networks.UpdateOpts{}
updateOpts := portsecurity.NetworkUpdateOptsExt{
UpdateOptsBuilder: networkUpdateOpts,
PortSecurityEnabled: &iFalse,
}
err := networks.Update(fake.ServiceClient(), "4e8e5957-649f-477b-9e5b-f1f75b21c03c", updateOpts).ExtractInto(&networkWithExtensions)
th.AssertNoErr(t, err)
th.AssertEquals(t, networkWithExtensions.Name, "private")
th.AssertEquals(t, networkWithExtensions.AdminStateUp, true)
th.AssertEquals(t, networkWithExtensions.Shared, false)
th.AssertEquals(t, networkWithExtensions.ID, "4e8e5957-649f-477b-9e5b-f1f75b21c03c")
th.AssertEquals(t, networkWithExtensions.PortSecurityEnabled, false)
}
| [
5786,
8927,
188,
188,
4747,
280,
188,
187,
4,
2763,
4,
188,
187,
4,
1291,
17,
1635,
4,
188,
187,
4,
4342,
4,
188,
188,
187,
9232,
312,
3140,
16,
817,
17,
443,
316,
18742,
77,
476,
6101,
17,
42397,
20208,
77,
476,
6101,
17,
2148,
3310,
17,
34823,
17,
88,
20,
17,
2670,
4,
188,
187,
4,
3140,
16,
817,
17,
443,
316,
18742,
77,
476,
6101,
17,
42397,
20208,
77,
476,
6101,
17,
2148,
3310,
17,
34823,
17,
88,
20,
17,
9423,
17,
616,
6082,
4,
188,
187,
4,
3140,
16,
817,
17,
443,
316,
18742,
77,
476,
6101,
17,
42397,
20208,
77,
476,
6101,
17,
2148,
3310,
17,
34823,
17,
88,
20,
17,
36266,
4,
188,
187,
4,
3140,
16,
817,
17,
443,
316,
18742,
77,
476,
6101,
17,
42397,
20208,
77,
476,
6101,
17,
29543,
4,
188,
187,
351,
312,
3140,
16,
817,
17,
443,
316,
18742,
77,
476,
6101,
17,
42397,
20208,
77,
476,
6101,
17,
1028,
5852,
4,
188,
11,
188,
188,
1857,
2214,
862,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
2299,
1597,
11,
188,
187,
1436,
188,
188,
187,
1617,
721,
11028,
16,
23916,
336,
188,
187,
1043,
721,
257,
188,
188,
187,
65,
260,
40567,
16,
862,
10,
1617,
14,
40567,
16,
862,
8958,
25449,
5814,
3003,
10,
1857,
10,
1848,
26958,
16,
3003,
11,
280,
2178,
14,
790,
11,
275,
188,
187,
187,
1043,
775,
188,
187,
187,
7147,
14,
497,
721,
40567,
16,
11043,
32223,
10,
1848,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
86,
16,
3587,
435,
4258,
384,
7066,
40567,
28,
690,
88,
347,
497,
11,
188,
350,
187,
397,
893,
14,
497,
188,
187,
187,
95,
188,
188,
187,
187,
351,
16,
2435,
7728,
2744,
10,
86,
14,
15679,
4603,
5149,
14,
4678,
11,
188,
188,
187,
187,
397,
868,
14,
869,
188,
187,
1436,
188,
188,
187,
285,
1975,
598,
352,
275,
188,
187,
187,
86,
16,
3587,
435,
7415,
352,
2529,
14,
5604,
690,
70,
347,
1975,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
862,
1748,
8918,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
2299,
1597,
11,
188,
187,
1436,
188,
188,
187,
1617,
721,
11028,
16,
23916,
336,
188,
188,
187,
558,
5530,
1748,
2808,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
828,
1408,
32223,
1397,
4868,
1748,
2808,
188,
188,
187,
466,
12646,
14,
497,
721,
40567,
16,
862,
10,
1617,
14,
40567,
16,
862,
8958,
25449,
2699,
12646,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
379,
260,
40567,
16,
11043,
32223,
6219,
10,
466,
12646,
14,
396,
466,
32223,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
3327,
4843,
3897,
14,
868,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
18771,
85,
61,
18,
630,
312,
1395,
70,
24,
72,
2382,
70,
15,
1184,
1446,
15,
26059,
69,
15,
27,
367,
21,
15,
68,
2485,
1551,
68,
24,
68,
24,
72,
18,
68,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
19,
913,
18771,
85,
61,
18,
630,
312,
1189,
71,
5020,
16648,
15,
9184,
20,
15,
22367,
67,
15,
30971,
69,
15,
1331,
72,
25,
40229,
1486,
69,
19,
68,
866,
188,
95,
188,
188,
1857,
2214,
901,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1301,
1597,
11,
188,
187,
1436,
188,
188,
187,
80,
14,
497,
721,
40567,
16,
901,
10,
9232,
16,
23916,
833,
312,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
3101,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
187,
351,
16,
2435,
7728,
2744,
10,
86,
14,
396,
4603,
19,
14,
302,
11,
188,
95,
188,
188,
1857,
2214,
901,
1748,
8918,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1301,
1597,
11,
188,
187,
1436,
188,
188,
187,
828,
5530,
1748,
8918,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
379,
721,
40567,
16,
901,
10,
9232,
16,
23916,
833,
312,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
3101,
11043,
6219,
699,
4868,
1748,
8918,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
3327,
4843,
3897,
14,
868,
11,
188,
95,
188,
188,
1857,
2214,
2272,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
5537,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
3122,
1222,
11,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
10257,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
3122,
1597,
11,
188,
187,
1436,
188,
188,
187,
75,
2898,
721,
868,
188,
187,
2086,
721,
40567,
16,
2272,
8958,
93,
613,
28,
312,
2194,
347,
20536,
1142,
1659,
28,
396,
75,
2898,
95,
188,
187,
80,
14,
497,
721,
40567,
16,
2272,
10,
9232,
16,
23916,
833,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
7728,
2744,
10,
86,
14,
396,
4603,
20,
14,
302,
11,
188,
95,
188,
188,
1857,
2214,
2272,
1748,
8250,
3778,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
5537,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
3122,
8250,
3778,
1222,
11,
188,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
10257,
11,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1083,
2475,
12841,
188,
187,
1436,
188,
188,
187,
75,
2898,
721,
868,
188,
187,
2086,
721,
40567,
16,
2272,
8958,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1629,
347,
188,
187,
187,
8164,
1142,
1659,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
396,
75,
2898,
14,
188,
187,
187,
7048,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
396,
75,
2898,
14,
188,
187,
187,
20626,
565,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
25387,
347,
188,
187,
187,
19736,
6985,
18842,
28,
1397,
530,
2315,
5372,
19,
347,
312,
5372,
20,
1782,
188,
187,
95,
188,
187,
2256,
497,
721,
40567,
16,
2272,
10,
9232,
16,
23916,
833,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
95,
188,
188,
1857,
2214,
2574,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
2804,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
4559,
1222,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
4559,
1597,
11,
188,
187,
1436,
188,
188,
187,
75,
2898,
14,
368,
4163,
721,
868,
14,
893,
188,
187,
2086,
721,
40567,
16,
2574,
8958,
93,
613,
28,
312,
1002,
65,
4868,
65,
579,
347,
20536,
1142,
1659,
28,
396,
75,
4163,
14,
13900,
28,
396,
75,
2898,
95,
188,
187,
80,
14,
497,
721,
40567,
16,
2574,
10,
9232,
16,
23916,
833,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
613,
14,
312,
1002,
65,
4868,
65,
579,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
8164,
1142,
1659,
14,
893,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
7048,
14,
868,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
565,
14,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
866,
188,
95,
188,
188,
1857,
2214,
3593,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
8989,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
2487,
2525,
11,
188,
187,
1436,
188,
188,
187,
492,
721,
40567,
16,
3593,
10,
9232,
16,
23916,
833,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
866,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
763,
16,
724,
11,
188,
95,
188,
188,
1857,
2214,
2272,
3327,
4843,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
5537,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
3122,
3327,
4843,
1222,
11,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
10257,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
3122,
3327,
4843,
1597,
11,
188,
187,
1436,
188,
188,
187,
828,
5530,
1748,
8918,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
75,
2898,
721,
868,
188,
187,
75,
4163,
721,
893,
188,
187,
4868,
2272,
8958,
721,
40567,
16,
2272,
8958,
93,
613,
28,
312,
2194,
347,
20536,
1142,
1659,
28,
396,
75,
2898,
95,
188,
187,
1634,
8958,
721,
2131,
6082,
16,
4603,
2272,
8958,
2808,
93,
188,
187,
187,
2272,
8958,
2362,
28,
209,
209,
5530,
2272,
8958,
14,
188,
187,
187,
3327,
4843,
3897,
28,
396,
75,
4163,
14,
188,
187,
95,
188,
188,
187,
379,
721,
40567,
16,
2272,
10,
9232,
16,
23916,
833,
2149,
8958,
717,
11043,
6219,
699,
4868,
1748,
8918,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
3327,
4843,
3897,
14,
893,
11,
188,
95,
188,
188,
1857,
2214,
2574,
3327,
4843,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
2804,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
4559,
3327,
4843,
1222,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
4559,
3327,
4843,
1597,
11,
188,
187,
1436,
188,
188,
187,
828,
5530,
1748,
8918,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
75,
4163,
721,
893,
188,
187,
4868,
2574,
8958,
721,
40567,
16,
2574,
8958,
2475,
188,
187,
2173,
8958,
721,
2131,
6082,
16,
4603,
2574,
8958,
2808,
93,
188,
187,
187,
2574,
8958,
2362,
28,
209,
209,
5530,
2574,
8958,
14,
188,
187,
187,
3327,
4843,
3897,
28,
396,
75,
4163,
14,
188,
187,
95,
188,
188,
187,
379,
721,
40567,
16,
2574,
10,
9232,
16,
23916,
833,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
2866,
8958,
717,
11043,
6219,
699,
4868,
1748,
8918,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
613,
14,
312,
2194,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
8164,
1142,
1659,
14,
868,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
7048,
14,
893,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
565,
14,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
3327,
4843,
3897,
14,
893,
11,
188,
95
] | [
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
2299,
1597,
11,
188,
187,
1436,
188,
188,
187,
1617,
721,
11028,
16,
23916,
336,
188,
188,
187,
558,
5530,
1748,
2808,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
828,
1408,
32223,
1397,
4868,
1748,
2808,
188,
188,
187,
466,
12646,
14,
497,
721,
40567,
16,
862,
10,
1617,
14,
40567,
16,
862,
8958,
25449,
2699,
12646,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
379,
260,
40567,
16,
11043,
32223,
6219,
10,
466,
12646,
14,
396,
466,
32223,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
3327,
4843,
3897,
14,
868,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
18,
913,
18771,
85,
61,
18,
630,
312,
1395,
70,
24,
72,
2382,
70,
15,
1184,
1446,
15,
26059,
69,
15,
27,
367,
21,
15,
68,
2485,
1551,
68,
24,
68,
24,
72,
18,
68,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
1408,
32223,
61,
19,
913,
18771,
85,
61,
18,
630,
312,
1189,
71,
5020,
16648,
15,
9184,
20,
15,
22367,
67,
15,
30971,
69,
15,
1331,
72,
25,
40229,
1486,
69,
19,
68,
866,
188,
95,
188,
188,
1857,
2214,
901,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1301,
1597,
11,
188,
187,
1436,
188,
188,
187,
80,
14,
497,
721,
40567,
16,
901,
10,
9232,
16,
23916,
833,
312,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
3101,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
187,
351,
16,
2435,
7728,
2744,
10,
86,
14,
396,
4603,
19,
14,
302,
11,
188,
95,
188,
188,
1857,
2214,
901,
1748,
8918,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
1726,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1301,
1597,
11,
188,
187,
1436,
188,
188,
187,
828,
5530,
1748,
8918,
603,
275,
188,
187,
187,
36266,
16,
4603,
188,
187,
187,
616,
6082,
16,
3327,
4843,
2808,
188,
187,
95,
188,
188,
187,
379,
721,
40567,
16,
901,
10,
9232,
16,
23916,
833,
312,
70,
419,
13678,
70,
21,
15,
3671,
24,
71,
15,
1760,
985,
15,
27,
69,
19,
70,
15,
1876,
1109,
1886,
9314,
67,
1109,
3101,
11043,
6219,
699,
4868,
1748,
8918,
11,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
5530,
1748,
8918,
16,
3327,
4843,
3897,
14,
868,
11,
188,
95,
188,
188,
1857,
2214,
2272,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
5537,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
3122,
1222,
11,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
10257,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
3122,
1597,
11,
188,
187,
1436,
188,
188,
187,
75,
2898,
721,
868,
188,
187,
2086,
721,
40567,
16,
2272,
8958,
93,
613,
28,
312,
2194,
347,
20536,
1142,
1659,
28,
396,
75,
2898,
95,
188,
187,
80,
14,
497,
721,
40567,
16,
2272,
10,
9232,
16,
23916,
833,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
1574,
14,
312,
5599,
866,
188,
187,
351,
16,
3917,
7728,
2744,
10,
86,
14,
396,
4603,
20,
14,
302,
11,
188,
95,
188,
188,
1857,
2214,
2272,
1748,
8250,
3778,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
5537,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
3122,
8250,
3778,
1222,
11,
188,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
1574,
10257,
11,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
1083,
2475,
12841,
188,
187,
1436,
188,
188,
187,
75,
2898,
721,
868,
188,
187,
2086,
721,
40567,
16,
2272,
8958,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1629,
347,
188,
187,
187,
8164,
1142,
1659,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
396,
75,
2898,
14,
188,
187,
187,
7048,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
396,
75,
2898,
14,
188,
187,
187,
20626,
565,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
25387,
347,
188,
187,
187,
19736,
6985,
18842,
28,
1397,
530,
2315,
5372,
19,
347,
312,
5372,
20,
1782,
188,
187,
95,
188,
187,
2256,
497,
721,
40567,
16,
2272,
10,
9232,
16,
23916,
833,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
95,
188,
188,
1857,
2214,
2574,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
351,
16,
7798,
5918,
336,
188,
187,
5303,
382,
16,
2388,
18595,
5918,
336,
188,
188,
187,
351,
16,
20935,
16,
2432,
3399,
6710,
88,
20,
16,
18,
17,
36266,
17,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
830,
10,
89,
1540,
16,
24036,
14,
470,
258,
1635,
16,
1222,
11,
275,
188,
187,
187,
351,
16,
20851,
10,
86,
14,
470,
14,
312,
2804,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
58,
15,
3228,
15,
2023,
347,
11028,
16,
2023,
565,
11,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
2540,
10,
86,
14,
470,
14,
312,
8808,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
351,
16,
1140,
3916,
1222,
10,
86,
14,
470,
14,
4559,
1222,
11,
188,
188,
187,
187,
89,
16,
2540,
1033,
1320,
435,
2525,
15,
563,
347,
312,
5853,
17,
1894,
866,
188,
187,
187,
89,
16,
42297,
10,
1635,
16,
25089,
11,
188,
188,
187,
187,
2256,
547,
260,
2764,
16,
40,
1065,
10,
89,
14,
4559,
1597,
11,
188,
187,
1436,
188,
188,
187,
75,
2898,
14,
368,
4163,
721,
868,
14,
893,
188,
187,
2086,
721,
40567,
16,
2574,
8958,
93,
613,
28,
312,
1002,
65,
4868,
65,
579,
347,
20536,
1142,
1659,
28,
396,
75,
4163,
14,
13900,
28,
396,
75,
2898,
95,
188,
187,
80,
14,
497,
721,
40567,
16,
2574,
10,
9232,
16,
23916,
833,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
347,
2423,
717,
11043,
336,
188,
187,
351,
16,
3917,
2487,
724,
10,
86,
14,
497,
11,
188,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
613,
14,
312,
1002,
65,
4868,
65,
579,
866,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
8164,
1142,
1659,
14,
893,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
7048,
14,
868,
11,
188,
187,
351,
16,
3917,
2744,
10,
86,
14,
302,
16,
565,
14,
312,
22,
71,
26,
71,
1661,
1805,
15,
15070,
72,
15,
26601,
68,
15,
27,
71,
23,
68,
15,
72,
19,
72,
2275,
68,
1290,
69,
935,
69,
866,
188,
95,
188,
188,
1857,
2214,
3593,
10,
86,
258,
4342,
16,
54,
11
] |
72,759 | package v2
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import envoy_api_v2_core "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/core"
import envoy_api_v2_endpoint "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/endpoint"
import google_protobuf3 "github.com/golang/protobuf/ptypes/duration"
import _ "github.com/lyft/protoc-gen-validate/validate"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2
type LoadStatsRequest struct {
Node *envoy_api_v2_core.Node `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
ClusterStats []*envoy_api_v2_endpoint.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats" json:"cluster_stats,omitempty"`
}
func (m *LoadStatsRequest) Reset() { *m = LoadStatsRequest{} }
func (m *LoadStatsRequest) String() string { return proto.CompactTextString(m) }
func (*LoadStatsRequest) ProtoMessage() {}
func (*LoadStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *LoadStatsRequest) GetNode() *envoy_api_v2_core.Node {
if m != nil {
return m.Node
}
return nil
}
func (m *LoadStatsRequest) GetClusterStats() []*envoy_api_v2_endpoint.ClusterStats {
if m != nil {
return m.ClusterStats
}
return nil
}
type LoadStatsResponse struct {
Clusters []string `protobuf:"bytes,1,rep,name=clusters" json:"clusters,omitempty"`
LoadReportingInterval *google_protobuf3.Duration `protobuf:"bytes,2,opt,name=load_reporting_interval,json=loadReportingInterval" json:"load_reporting_interval,omitempty"`
}
func (m *LoadStatsResponse) Reset() { *m = LoadStatsResponse{} }
func (m *LoadStatsResponse) String() string { return proto.CompactTextString(m) }
func (*LoadStatsResponse) ProtoMessage() {}
func (*LoadStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *LoadStatsResponse) GetClusters() []string {
if m != nil {
return m.Clusters
}
return nil
}
func (m *LoadStatsResponse) GetLoadReportingInterval() *google_protobuf3.Duration {
if m != nil {
return m.LoadReportingInterval
}
return nil
}
func init() {
proto.RegisterType((*LoadStatsRequest)(nil), "envoy.service.load_stats.v2.LoadStatsRequest")
proto.RegisterType((*LoadStatsResponse)(nil), "envoy.service.load_stats.v2.LoadStatsResponse")
}
var _ context.Context
var _ grpc.ClientConn
const _ = grpc.SupportPackageIsVersion4
type LoadReportingServiceClient interface {
StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error)
}
type loadReportingServiceClient struct {
cc *grpc.ClientConn
}
func NewLoadReportingServiceClient(cc *grpc.ClientConn) LoadReportingServiceClient {
return &loadReportingServiceClient{cc}
}
func (c *loadReportingServiceClient) StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_LoadReportingService_serviceDesc.Streams[0], c.cc, "/envoy.service.load_stats.v2.LoadReportingService/StreamLoadStats", opts...)
if err != nil {
return nil, err
}
x := &loadReportingServiceStreamLoadStatsClient{stream}
return x, nil
}
type LoadReportingService_StreamLoadStatsClient interface {
Send(*LoadStatsRequest) error
Recv() (*LoadStatsResponse, error)
grpc.ClientStream
}
type loadReportingServiceStreamLoadStatsClient struct {
grpc.ClientStream
}
func (x *loadReportingServiceStreamLoadStatsClient) Send(m *LoadStatsRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *loadReportingServiceStreamLoadStatsClient) Recv() (*LoadStatsResponse, error) {
m := new(LoadStatsResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
type LoadReportingServiceServer interface {
StreamLoadStats(LoadReportingService_StreamLoadStatsServer) error
}
func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer) {
s.RegisterService(&_LoadReportingService_serviceDesc, srv)
}
func _LoadReportingService_StreamLoadStats_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(LoadReportingServiceServer).StreamLoadStats(&loadReportingServiceStreamLoadStatsServer{stream})
}
type LoadReportingService_StreamLoadStatsServer interface {
Send(*LoadStatsResponse) error
Recv() (*LoadStatsRequest, error)
grpc.ServerStream
}
type loadReportingServiceStreamLoadStatsServer struct {
grpc.ServerStream
}
func (x *loadReportingServiceStreamLoadStatsServer) Send(m *LoadStatsResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *loadReportingServiceStreamLoadStatsServer) Recv() (*LoadStatsRequest, error) {
m := new(LoadStatsRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _LoadReportingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "envoy.service.load_stats.v2.LoadReportingService",
HandlerType: (*LoadReportingServiceServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamLoadStats",
Handler: _LoadReportingService_StreamLoadStats_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "envoy/service/load_stats/v2/lrs.proto",
}
func init() { proto.RegisterFile("envoy/service/load_stats/v2/lrs.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4d, 0x4e, 0xe3, 0x30,
0x1c, 0xc5, 0xc7, 0xe9, 0x7c, 0x74, 0xdc, 0x19, 0xcd, 0x4c, 0x34, 0xa3, 0x66, 0x0a, 0x42, 0x55,
0x11, 0x10, 0x09, 0x61, 0xa3, 0x70, 0x83, 0xc2, 0x02, 0xa4, 0x0a, 0x89, 0x74, 0xc7, 0xa6, 0x72,
0x93, 0x3f, 0x95, 0xa5, 0x60, 0x07, 0xdb, 0xb1, 0xc4, 0x0d, 0x60, 0xd3, 0x05, 0xc7, 0x61, 0xc5,
0x75, 0xb8, 0x05, 0x4a, 0x9c, 0x94, 0x94, 0x05, 0x62, 0x17, 0xeb, 0xfd, 0x5e, 0xfc, 0xde, 0x33,
0xde, 0x01, 0x61, 0xe5, 0x2d, 0xd5, 0xa0, 0x2c, 0x4f, 0x80, 0x66, 0x92, 0xa5, 0x33, 0x6d, 0x98,
0xd1, 0xd4, 0x46, 0x34, 0x53, 0x9a, 0xe4, 0x4a, 0x1a, 0xe9, 0x6f, 0x54, 0x18, 0xa9, 0x31, 0xf2,
0x8a, 0x11, 0x1b, 0x0d, 0x36, 0xdd, 0x3f, 0x58, 0xce, 0x4b, 0x53, 0x22, 0x15, 0xd0, 0x39, 0xd3,
0xe0, 0xac, 0x83, 0xbd, 0x35, 0x15, 0x44, 0x9a, 0x4b, 0x2e, 0x8c, 0xbb, 0x49, 0x41, 0x2e, 0x95,
0xa9, 0xc1, 0xad, 0x85, 0x94, 0x8b, 0x0c, 0x68, 0x75, 0x9a, 0x17, 0x57, 0x34, 0x2d, 0x14, 0x33,
0x5c, 0x8a, 0x5a, 0xef, 0x5b, 0x96, 0xf1, 0x94, 0x19, 0xa0, 0xcd, 0x87, 0x13, 0x46, 0xf7, 0x08,
0xff, 0x9e, 0x48, 0x96, 0x4e, 0xcb, 0x40, 0x31, 0xdc, 0x14, 0xa0, 0x8d, 0xbf, 0x8f, 0x3f, 0x0b,
0x99, 0x42, 0x80, 0x86, 0x28, 0xec, 0x45, 0x7d, 0xe2, 0x0a, 0xb0, 0x9c, 0x13, 0x1b, 0x91, 0x32,
0x23, 0x39, 0x97, 0x29, 0xc4, 0x15, 0xe4, 0x9f, 0xe2, 0x9f, 0x49, 0x56, 0x68, 0x03, 0xca, 0xb5,
0x0a, 0xbc, 0x61, 0x27, 0xec, 0x45, 0xdb, 0xeb, 0xae, 0x26, 0x3b, 0x39, 0x76, 0xac, 0xbb, 0xef,
0x47, 0xd2, 0x3a, 0x8d, 0x96, 0x08, 0xff, 0x69, 0x65, 0xd1, 0xb9, 0x14, 0x1a, 0xfc, 0x5d, 0xdc,
0xad, 0x29, 0x1d, 0xa0, 0x61, 0x27, 0xfc, 0x3e, 0xc6, 0x8f, 0xcf, 0x4f, 0x9d, 0x2f, 0x0f, 0xc8,
0xeb, 0xa2, 0x78, 0xa5, 0xf9, 0x17, 0xb8, 0xdf, 0xda, 0x85, 0x8b, 0xc5, 0x8c, 0x0b, 0x03, 0xca,
0xb2, 0x2c, 0xf0, 0xaa, 0x1e, 0xff, 0x89, 0x1b, 0x89, 0x34, 0x23, 0x91, 0x93, 0x7a, 0xa4, 0xf8,
0x5f, 0xe9, 0x8c, 0x1b, 0xe3, 0x59, 0xed, 0x8b, 0x96, 0x08, 0xff, 0x9d, 0xb4, 0x95, 0xa9, 0x7b,
0x43, 0xdf, 0xe2, 0x5f, 0x53, 0xa3, 0x80, 0x5d, 0xaf, 0xe2, 0xfa, 0x07, 0xe4, 0x9d, 0x67, 0x26,
0x6f, 0x27, 0x1e, 0x90, 0x8f, 0xe2, 0x6e, 0x85, 0xd1, 0xa7, 0x10, 0x1d, 0xa2, 0xf1, 0xb7, 0x4b,
0xcf, 0x46, 0x77, 0x08, 0xcd, 0xbf, 0x56, 0x1d, 0x8e, 0x5e, 0x02, 0x00, 0x00, 0xff, 0xff, 0xba,
0x59, 0x2c, 0xb2, 0x83, 0x02, 0x00, 0x00,
} | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/load_stats/v2/lrs.proto
/*
Package v2 is a generated protocol buffer package.
It is generated from these files:
envoy/service/load_stats/v2/lrs.proto
It has these top-level messages:
LoadStatsRequest
LoadStatsResponse
*/
package v2
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import envoy_api_v2_core "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/core"
import envoy_api_v2_endpoint "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/endpoint"
import google_protobuf3 "github.com/golang/protobuf/ptypes/duration"
import _ "github.com/lyft/protoc-gen-validate/validate"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A load report Envoy sends to the management server.
// [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
type LoadStatsRequest struct {
// Node identifier for Envoy instance.
Node *envoy_api_v2_core.Node `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
// A list of load stats to report.
ClusterStats []*envoy_api_v2_endpoint.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats" json:"cluster_stats,omitempty"`
}
func (m *LoadStatsRequest) Reset() { *m = LoadStatsRequest{} }
func (m *LoadStatsRequest) String() string { return proto.CompactTextString(m) }
func (*LoadStatsRequest) ProtoMessage() {}
func (*LoadStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *LoadStatsRequest) GetNode() *envoy_api_v2_core.Node {
if m != nil {
return m.Node
}
return nil
}
func (m *LoadStatsRequest) GetClusterStats() []*envoy_api_v2_endpoint.ClusterStats {
if m != nil {
return m.ClusterStats
}
return nil
}
// The management server sends envoy a LoadStatsResponse with all clusters it
// is interested in learning load stats about.
// [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
type LoadStatsResponse struct {
// Clusters to report stats for.
Clusters []string `protobuf:"bytes,1,rep,name=clusters" json:"clusters,omitempty"`
// The interval of time to collect stats. The default is 10 seconds.
LoadReportingInterval *google_protobuf3.Duration `protobuf:"bytes,2,opt,name=load_reporting_interval,json=loadReportingInterval" json:"load_reporting_interval,omitempty"`
}
func (m *LoadStatsResponse) Reset() { *m = LoadStatsResponse{} }
func (m *LoadStatsResponse) String() string { return proto.CompactTextString(m) }
func (*LoadStatsResponse) ProtoMessage() {}
func (*LoadStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *LoadStatsResponse) GetClusters() []string {
if m != nil {
return m.Clusters
}
return nil
}
func (m *LoadStatsResponse) GetLoadReportingInterval() *google_protobuf3.Duration {
if m != nil {
return m.LoadReportingInterval
}
return nil
}
func init() {
proto.RegisterType((*LoadStatsRequest)(nil), "envoy.service.load_stats.v2.LoadStatsRequest")
proto.RegisterType((*LoadStatsResponse)(nil), "envoy.service.load_stats.v2.LoadStatsResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for LoadReportingService service
type LoadReportingServiceClient interface {
// Advanced API to allow for multi-dimensional load balancing by remote
// server. For receiving LB assignments, the steps are:
// 1, The management server is configured with per cluster/zone/load metric
// capacity configuration. The capacity configuration definition is
// outside of the scope of this document.
// 2. Envoy issues a standard {Stream,Fetch}Endpoints request for the clusters
// to balance.
//
// Independently, Envoy will initiate a StreamLoadStats bidi stream with a
// management server:
// 1. Once a connection establishes, the management server publishes a
// LoadStatsResponse for all clusters it is interested in learning load
// stats about.
// 2. For each cluster, Envoy load balances incoming traffic to upstream hosts
// based on per-zone weights and/or per-instance weights (if specified)
// based on intra-zone LbPolicy. This information comes from the above
// {Stream,Fetch}Endpoints.
// 3. When upstream hosts reply, they optionally add header <define header
// name> with ASCII representation of EndpointLoadMetricStats.
// 4. Envoy aggregates load reports over the period of time given to it in
// LoadStatsResponse.load_reporting_interval. This includes aggregation
// stats Envoy maintains by itself (total_requests, rpc_errors etc.) as
// well as load metrics from upstream hosts.
// 5. When the timer of load_reporting_interval expires, Envoy sends new
// LoadStatsRequest filled with load reports for each cluster.
// 6. The management server uses the load reports from all reported Envoys
// from around the world, computes global assignment and prepares traffic
// assignment destined for each zone Envoys are located in. Goto 2.
StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error)
}
type loadReportingServiceClient struct {
cc *grpc.ClientConn
}
func NewLoadReportingServiceClient(cc *grpc.ClientConn) LoadReportingServiceClient {
return &loadReportingServiceClient{cc}
}
func (c *loadReportingServiceClient) StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_LoadReportingService_serviceDesc.Streams[0], c.cc, "/envoy.service.load_stats.v2.LoadReportingService/StreamLoadStats", opts...)
if err != nil {
return nil, err
}
x := &loadReportingServiceStreamLoadStatsClient{stream}
return x, nil
}
type LoadReportingService_StreamLoadStatsClient interface {
Send(*LoadStatsRequest) error
Recv() (*LoadStatsResponse, error)
grpc.ClientStream
}
type loadReportingServiceStreamLoadStatsClient struct {
grpc.ClientStream
}
func (x *loadReportingServiceStreamLoadStatsClient) Send(m *LoadStatsRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *loadReportingServiceStreamLoadStatsClient) Recv() (*LoadStatsResponse, error) {
m := new(LoadStatsResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// Server API for LoadReportingService service
type LoadReportingServiceServer interface {
// Advanced API to allow for multi-dimensional load balancing by remote
// server. For receiving LB assignments, the steps are:
// 1, The management server is configured with per cluster/zone/load metric
// capacity configuration. The capacity configuration definition is
// outside of the scope of this document.
// 2. Envoy issues a standard {Stream,Fetch}Endpoints request for the clusters
// to balance.
//
// Independently, Envoy will initiate a StreamLoadStats bidi stream with a
// management server:
// 1. Once a connection establishes, the management server publishes a
// LoadStatsResponse for all clusters it is interested in learning load
// stats about.
// 2. For each cluster, Envoy load balances incoming traffic to upstream hosts
// based on per-zone weights and/or per-instance weights (if specified)
// based on intra-zone LbPolicy. This information comes from the above
// {Stream,Fetch}Endpoints.
// 3. When upstream hosts reply, they optionally add header <define header
// name> with ASCII representation of EndpointLoadMetricStats.
// 4. Envoy aggregates load reports over the period of time given to it in
// LoadStatsResponse.load_reporting_interval. This includes aggregation
// stats Envoy maintains by itself (total_requests, rpc_errors etc.) as
// well as load metrics from upstream hosts.
// 5. When the timer of load_reporting_interval expires, Envoy sends new
// LoadStatsRequest filled with load reports for each cluster.
// 6. The management server uses the load reports from all reported Envoys
// from around the world, computes global assignment and prepares traffic
// assignment destined for each zone Envoys are located in. Goto 2.
StreamLoadStats(LoadReportingService_StreamLoadStatsServer) error
}
func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer) {
s.RegisterService(&_LoadReportingService_serviceDesc, srv)
}
func _LoadReportingService_StreamLoadStats_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(LoadReportingServiceServer).StreamLoadStats(&loadReportingServiceStreamLoadStatsServer{stream})
}
type LoadReportingService_StreamLoadStatsServer interface {
Send(*LoadStatsResponse) error
Recv() (*LoadStatsRequest, error)
grpc.ServerStream
}
type loadReportingServiceStreamLoadStatsServer struct {
grpc.ServerStream
}
func (x *loadReportingServiceStreamLoadStatsServer) Send(m *LoadStatsResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *loadReportingServiceStreamLoadStatsServer) Recv() (*LoadStatsRequest, error) {
m := new(LoadStatsRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _LoadReportingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "envoy.service.load_stats.v2.LoadReportingService",
HandlerType: (*LoadReportingServiceServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamLoadStats",
Handler: _LoadReportingService_StreamLoadStats_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "envoy/service/load_stats/v2/lrs.proto",
}
func init() { proto.RegisterFile("envoy/service/load_stats/v2/lrs.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 375 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4d, 0x4e, 0xe3, 0x30,
0x1c, 0xc5, 0xc7, 0xe9, 0x7c, 0x74, 0xdc, 0x19, 0xcd, 0x4c, 0x34, 0xa3, 0x66, 0x0a, 0x42, 0x55,
0x11, 0x10, 0x09, 0x61, 0xa3, 0x70, 0x83, 0xc2, 0x02, 0xa4, 0x0a, 0x89, 0x74, 0xc7, 0xa6, 0x72,
0x93, 0x3f, 0x95, 0xa5, 0x60, 0x07, 0xdb, 0xb1, 0xc4, 0x0d, 0x60, 0xd3, 0x05, 0xc7, 0x61, 0xc5,
0x75, 0xb8, 0x05, 0x4a, 0x9c, 0x94, 0x94, 0x05, 0x62, 0x17, 0xeb, 0xfd, 0x5e, 0xfc, 0xde, 0x33,
0xde, 0x01, 0x61, 0xe5, 0x2d, 0xd5, 0xa0, 0x2c, 0x4f, 0x80, 0x66, 0x92, 0xa5, 0x33, 0x6d, 0x98,
0xd1, 0xd4, 0x46, 0x34, 0x53, 0x9a, 0xe4, 0x4a, 0x1a, 0xe9, 0x6f, 0x54, 0x18, 0xa9, 0x31, 0xf2,
0x8a, 0x11, 0x1b, 0x0d, 0x36, 0xdd, 0x3f, 0x58, 0xce, 0x4b, 0x53, 0x22, 0x15, 0xd0, 0x39, 0xd3,
0xe0, 0xac, 0x83, 0xbd, 0x35, 0x15, 0x44, 0x9a, 0x4b, 0x2e, 0x8c, 0xbb, 0x49, 0x41, 0x2e, 0x95,
0xa9, 0xc1, 0xad, 0x85, 0x94, 0x8b, 0x0c, 0x68, 0x75, 0x9a, 0x17, 0x57, 0x34, 0x2d, 0x14, 0x33,
0x5c, 0x8a, 0x5a, 0xef, 0x5b, 0x96, 0xf1, 0x94, 0x19, 0xa0, 0xcd, 0x87, 0x13, 0x46, 0xf7, 0x08,
0xff, 0x9e, 0x48, 0x96, 0x4e, 0xcb, 0x40, 0x31, 0xdc, 0x14, 0xa0, 0x8d, 0xbf, 0x8f, 0x3f, 0x0b,
0x99, 0x42, 0x80, 0x86, 0x28, 0xec, 0x45, 0x7d, 0xe2, 0x0a, 0xb0, 0x9c, 0x13, 0x1b, 0x91, 0x32,
0x23, 0x39, 0x97, 0x29, 0xc4, 0x15, 0xe4, 0x9f, 0xe2, 0x9f, 0x49, 0x56, 0x68, 0x03, 0xca, 0xb5,
0x0a, 0xbc, 0x61, 0x27, 0xec, 0x45, 0xdb, 0xeb, 0xae, 0x26, 0x3b, 0x39, 0x76, 0xac, 0xbb, 0xef,
0x47, 0xd2, 0x3a, 0x8d, 0x96, 0x08, 0xff, 0x69, 0x65, 0xd1, 0xb9, 0x14, 0x1a, 0xfc, 0x5d, 0xdc,
0xad, 0x29, 0x1d, 0xa0, 0x61, 0x27, 0xfc, 0x3e, 0xc6, 0x8f, 0xcf, 0x4f, 0x9d, 0x2f, 0x0f, 0xc8,
0xeb, 0xa2, 0x78, 0xa5, 0xf9, 0x17, 0xb8, 0xdf, 0xda, 0x85, 0x8b, 0xc5, 0x8c, 0x0b, 0x03, 0xca,
0xb2, 0x2c, 0xf0, 0xaa, 0x1e, 0xff, 0x89, 0x1b, 0x89, 0x34, 0x23, 0x91, 0x93, 0x7a, 0xa4, 0xf8,
0x5f, 0xe9, 0x8c, 0x1b, 0xe3, 0x59, 0xed, 0x8b, 0x96, 0x08, 0xff, 0x9d, 0xb4, 0x95, 0xa9, 0x7b,
0x43, 0xdf, 0xe2, 0x5f, 0x53, 0xa3, 0x80, 0x5d, 0xaf, 0xe2, 0xfa, 0x07, 0xe4, 0x9d, 0x67, 0x26,
0x6f, 0x27, 0x1e, 0x90, 0x8f, 0xe2, 0x6e, 0x85, 0xd1, 0xa7, 0x10, 0x1d, 0xa2, 0xf1, 0xb7, 0x4b,
0xcf, 0x46, 0x77, 0x08, 0xcd, 0xbf, 0x56, 0x1d, 0x8e, 0x5e, 0x02, 0x00, 0x00, 0xff, 0xff, 0xba,
0x59, 0x2c, 0xb2, 0x83, 0x02, 0x00, 0x00,
}
| [
5786,
325,
20,
188,
188,
4747,
1853,
312,
3140,
16,
817,
17,
9161,
17,
3607,
17,
1633,
4,
188,
4747,
2764,
312,
2763,
4,
188,
4747,
8703,
312,
4964,
4,
188,
4747,
47084,
65,
1791,
65,
88,
20,
65,
1576,
312,
3140,
16,
817,
17,
69,
5762,
380,
17,
69,
5762,
380,
17,
5090,
17,
29265,
17,
29265,
17,
1791,
17,
88,
20,
17,
1576,
4,
188,
4747,
47084,
65,
1791,
65,
88,
20,
65,
6615,
312,
3140,
16,
817,
17,
69,
5762,
380,
17,
69,
5762,
380,
17,
5090,
17,
29265,
17,
29265,
17,
1791,
17,
88,
20,
17,
6615,
4,
188,
4747,
9729,
65,
3607,
21,
312,
3140,
16,
817,
17,
9161,
17,
3607,
17,
381,
1364,
17,
7346,
4,
188,
4747,
547,
312,
3140,
16,
817,
17,
711,
1610,
17,
15278,
15,
2901,
15,
5872,
17,
5872,
4,
188,
188,
4747,
280,
188,
187,
1609,
312,
9161,
16,
1587,
17,
90,
17,
1291,
17,
1609,
4,
188,
187,
7989,
312,
2735,
16,
9161,
16,
1587,
17,
7989,
4,
188,
11,
188,
188,
828,
547,
260,
1853,
16,
4647,
188,
828,
547,
260,
2764,
16,
3587,
188,
828,
547,
260,
8703,
16,
15146,
188,
188,
819,
547,
260,
1853,
16,
3244,
5403,
1556,
2013,
20,
263,
188,
558,
6346,
5807,
1222,
603,
275,
188,
188,
187,
1175,
258,
29265,
65,
1791,
65,
88,
20,
65,
1576,
16,
1175,
1083,
3607,
1172,
2186,
14,
19,
14,
1934,
14,
579,
31,
1091,
4,
3667,
1172,
1091,
14,
4213,
2537,
188,
188,
187,
4989,
5807,
8112,
29265,
65,
1791,
65,
88,
20,
65,
6615,
16,
4989,
5807,
1083,
3607,
1172,
2186,
14,
20,
14,
5572,
14,
579,
31,
6509,
65,
2894,
14,
1894,
31,
6509,
5807,
4,
3667,
1172,
6509,
65,
2894,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1222,
11,
5593,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
258,
79,
260,
6346,
5807,
1222,
2475,
290,
188,
1857,
280,
79,
258,
3645,
5807,
1222,
11,
1082,
336,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
1853,
16,
24157,
10,
79,
11,
290,
188,
1857,
1714,
3645,
5807,
1222,
11,
15555,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
2478,
188,
1857,
1714,
3645,
5807,
1222,
11,
9499,
336,
6784,
1212,
14,
1397,
291,
11,
275,
429,
14731,
18,
14,
1397,
291,
93,
18,
95,
290,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1222,
11,
1301,
1175,
336,
258,
29265,
65,
1791,
65,
88,
20,
65,
1576,
16,
1175,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
1175,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1222,
11,
1301,
4989,
5807,
336,
8112,
29265,
65,
1791,
65,
88,
20,
65,
6615,
16,
4989,
5807,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
4989,
5807,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
558,
6346,
5807,
1597,
603,
275,
188,
188,
187,
21933,
1397,
530,
1083,
3607,
1172,
2186,
14,
19,
14,
5572,
14,
579,
31,
17847,
4,
3667,
1172,
17847,
14,
4213,
2537,
188,
188,
187,
3645,
34858,
6572,
258,
2735,
65,
3607,
21,
16,
5354,
1083,
3607,
1172,
2186,
14,
20,
14,
1934,
14,
579,
31,
1281,
65,
28887,
65,
6309,
14,
1894,
31,
1281,
34858,
6572,
4,
3667,
1172,
1281,
65,
28887,
65,
6309,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1597,
11,
5593,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
258,
79,
260,
6346,
5807,
1597,
2475,
290,
188,
1857,
280,
79,
258,
3645,
5807,
1597,
11,
1082,
336,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
1853,
16,
24157,
10,
79,
11,
290,
188,
1857,
1714,
3645,
5807,
1597,
11,
15555,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
2478,
188,
1857,
1714,
3645,
5807,
1597,
11,
9499,
336,
6784,
1212,
14,
1397,
291,
11,
275,
429,
14731,
18,
14,
1397,
291,
93,
19,
95,
290,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1597,
11,
1301,
21933,
336,
1397,
530,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
21933,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
280,
79,
258,
3645,
5807,
1597,
11,
1301,
3645,
34858,
6572,
336,
258,
2735,
65,
3607,
21,
16,
5354,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
3645,
34858,
6572,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1777,
336,
275,
188,
187,
1633,
16,
16593,
9275,
3645,
5807,
1222,
1261,
3974,
399,
312,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
5807,
1222,
866,
188,
187,
1633,
16,
16593,
9275,
3645,
5807,
1597,
1261,
3974,
399,
312,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
5807,
1597,
866,
188,
95,
188,
188,
828,
547,
1701,
16,
1199,
188,
828,
547,
15100,
16,
29442,
188,
188,
819,
547,
260,
15100,
16,
4368,
5403,
1556,
2013,
22,
188,
188,
558,
6346,
34858,
23916,
2251,
275,
188,
188,
187,
1773,
3645,
5807,
10,
1167,
1701,
16,
1199,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
3645,
34858,
1700,
65,
1773,
3645,
5807,
1784,
14,
790,
11,
188,
95,
188,
188,
558,
3248,
34858,
23916,
603,
275,
188,
187,
685,
258,
7989,
16,
29442,
188,
95,
188,
188,
1857,
3409,
3645,
34858,
23916,
10,
685,
258,
7989,
16,
29442,
11,
6346,
34858,
23916,
275,
188,
187,
397,
396,
1281,
34858,
23916,
93,
685,
95,
188,
95,
188,
188,
1857,
280,
69,
258,
1281,
34858,
23916,
11,
7166,
3645,
5807,
10,
1167,
1701,
16,
1199,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
3645,
34858,
1700,
65,
1773,
3645,
5807,
1784,
14,
790,
11,
275,
188,
187,
1733,
14,
497,
721,
15100,
16,
1888,
1784,
1773,
10,
1167,
14,
12142,
3645,
34858,
1700,
65,
3627,
1625,
16,
11943,
61,
18,
630,
272,
16,
685,
14,
4273,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
34858,
1700,
17,
1773,
3645,
5807,
347,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
90,
721,
396,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
93,
1733,
95,
188,
187,
397,
754,
14,
869,
188,
95,
188,
188,
558,
6346,
34858,
1700,
65,
1773,
3645,
5807,
1784,
2251,
275,
188,
187,
4365,
1717,
3645,
5807,
1222,
11,
790,
188,
187,
16755,
336,
1714,
3645,
5807,
1597,
14,
790,
11,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
558,
3248,
34858,
1700,
1773,
3645,
5807,
1784,
603,
275,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
11,
7289,
10,
79,
258,
3645,
5807,
1222,
11,
790,
275,
188,
187,
397,
754,
16,
1784,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
11,
45236,
336,
1714,
3645,
5807,
1597,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
3645,
5807,
1597,
11,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
558,
6346,
34858,
1700,
2827,
2251,
275,
188,
188,
187,
1773,
3645,
5807,
10,
3645,
34858,
1700,
65,
1773,
3645,
5807,
2827,
11,
790,
188,
95,
188,
188,
1857,
2193,
3645,
34858,
1700,
2827,
10,
85,
258,
7989,
16,
2827,
14,
18873,
6346,
34858,
1700,
2827,
11,
275,
188,
187,
85,
16,
2184,
1700,
11508,
3645,
34858,
1700,
65,
3627,
1625,
14,
18873,
11,
188,
95,
188,
188,
1857,
547,
3645,
34858,
1700,
65,
1773,
3645,
5807,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
397,
18873,
7402,
3645,
34858,
1700,
2827,
717,
1773,
3645,
5807,
699,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
6346,
34858,
1700,
65,
1773,
3645,
5807,
2827,
2251,
275,
188,
187,
4365,
1717,
3645,
5807,
1597,
11,
790,
188,
187,
16755,
336,
1714,
3645,
5807,
1222,
14,
790,
11,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
3248,
34858,
1700,
1773,
3645,
5807,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
11,
7289,
10,
79,
258,
3645,
5807,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
11,
45236,
336,
1714,
3645,
5807,
1222,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
3645,
5807,
1222,
11,
188,
187,
285,
497,
721,
754,
16,
2827,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
828,
547,
3645,
34858,
1700,
65,
3627,
1625,
260,
15100,
16,
1700,
1625,
93,
188,
187,
23796,
28,
312,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
34858,
1700,
347,
188,
187,
2201,
563,
28,
1714,
3645,
34858,
1700,
2827,
1261,
3974,
399,
188,
187,
9337,
28,
209,
209,
209,
209,
1397,
7989,
16,
2152,
1625,
4364,
188,
187,
11943,
28,
1397,
7989,
16,
1773,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
1773,
3645,
5807,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
3645,
34858,
1700,
65,
1773,
3645,
5807,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
350,
187,
1784,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
4068,
28,
312,
29265,
17,
3627,
17,
1281,
65,
2894,
17,
88,
20,
17,
78,
3933,
16,
1633,
347,
188,
95,
188,
188,
1857,
1777,
336,
275,
1853,
16,
2184,
1165,
435,
29265,
17,
3627,
17,
1281,
65,
2894,
17,
88,
20,
17,
78,
3933,
16,
1633,
347,
14731,
18,
11,
290,
188,
188,
828,
14731,
18,
260,
1397,
1212,
93,
188,
188,
187,
18,
90,
19,
72,
14,
257,
90,
26,
68,
14,
257,
90,
1189,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
1052,
14,
257,
726,
14,
257,
90,
26,
69,
14,
257,
90,
2736,
14,
257,
90,
22,
70,
14,
257,
90,
22,
71,
14,
257,
1288,
21,
14,
257,
90,
1122,
14,
188,
187,
18,
90,
19,
69,
14,
257,
1125,
23,
14,
257,
1125,
25,
14,
257,
1288,
27,
14,
257,
90,
25,
69,
14,
257,
90,
1702,
14,
257,
9114,
14,
257,
90,
985,
14,
257,
8849,
14,
257,
90,
22,
69,
14,
257,
90,
1331,
14,
257,
1127,
21,
14,
257,
90,
1469,
14,
257,
90,
18,
67,
14,
257,
90,
2062,
14,
257,
90,
1061,
14,
188,
187,
18,
90,
631,
14,
257,
90,
588,
14,
257,
90,
1551,
14,
257,
90,
2382,
14,
257,
1127,
21,
14,
257,
90,
2334,
14,
257,
90,
2039,
14,
257,
1125,
20,
14,
257,
90,
1052,
14,
257,
1127,
22,
14,
257,
90,
18,
67,
14,
257,
90,
846,
14,
257,
90,
1702,
14,
257,
1125,
25,
14,
257,
1127,
24,
14,
257,
90,
2401,
14,
188,
187,
18,
90,
2766,
14,
257,
90,
21,
72,
14,
257,
90,
2414,
14,
257,
1127,
23,
14,
257,
90,
1959,
14,
257,
90,
1446,
14,
257,
8692,
14,
257,
1010,
19,
14,
257,
1125,
22,
14,
257,
90,
18,
70,
14,
257,
90,
1959,
14,
257,
1325,
21,
14,
257,
90,
1465,
14,
257,
1125,
25,
14,
257,
90,
2382,
14,
257,
1125,
23,
14,
188,
187,
18,
90,
2275,
14,
257,
1010,
26,
14,
257,
90,
1465,
14,
257,
90,
22,
67,
14,
257,
90,
27,
69,
14,
257,
90,
2582,
14,
257,
90,
2582,
14,
257,
90,
1465,
14,
257,
90,
2697,
14,
257,
90,
999,
14,
257,
8831,
14,
257,
7104,
14,
257,
90,
23,
71,
14,
257,
5514,
14,
257,
8549,
14,
257,
90,
1011,
14,
188,
187,
18,
8549,
14,
257,
90,
493,
14,
257,
90,
2382,
14,
257,
1288,
23,
14,
257,
90,
20,
70,
14,
257,
1325,
23,
14,
257,
1127,
18,
14,
257,
90,
20,
69,
14,
257,
90,
22,
72,
14,
257,
90,
741,
14,
257,
90,
1469,
14,
257,
90,
2770,
14,
257,
1127,
23,
14,
257,
90,
1011,
14,
257,
90,
24,
70,
14,
257,
90,
2733,
14,
188,
187,
18,
1325,
19,
14,
257,
1325,
22,
14,
257,
90,
2071,
14,
257,
90,
1331,
14,
257,
90,
2467,
14,
257,
90,
27,
67,
14,
257,
1288,
22,
14,
257,
90,
22,
67,
14,
257,
90,
19,
67,
14,
257,
1288,
27,
14,
257,
90,
24,
72,
14,
257,
90,
1395,
14,
257,
90,
927,
14,
257,
1127,
27,
14,
257,
90,
1421,
14,
257,
919,
20,
14,
188,
187,
18,
90,
26,
67,
14,
257,
90,
631,
14,
257,
90,
19,
68,
14,
257,
90,
18,
70,
14,
257,
90,
1363,
14,
257,
8107,
14,
257,
90,
21,
72,
14,
257,
90,
2569,
14,
257,
8369,
14,
257,
90,
22,
68,
14,
257,
90,
2467,
14,
257,
90,
1109,
14,
257,
90,
791,
14,
257,
1325,
18,
14,
257,
90,
1486,
14,
257,
1325,
21,
14,
188,
187,
18,
1288,
18,
14,
257,
7205,
14,
257,
90,
2039,
14,
257,
7053,
14,
257,
90,
1487,
14,
257,
90,
791,
14,
257,
90,
1277,
14,
257,
90,
27,
67,
14,
257,
90,
22,
68,
14,
257,
90,
20,
71,
14,
257,
90,
26,
69,
14,
257,
6707,
14,
257,
90,
1978,
14,
257,
90,
2397,
14,
257,
90,
20,
71,
14,
257,
90,
2414,
14,
188,
187,
18,
1127,
27,
14,
257,
1125,
19,
14,
257,
7783,
14,
257,
90,
1950,
14,
257,
90,
2582,
14,
257,
90,
26,
68,
14,
257,
90,
18,
69,
14,
257,
90,
2314,
14,
257,
90,
2275,
14,
257,
90,
27,
67,
14,
257,
90,
999,
14,
257,
90,
1805,
14,
257,
90,
1331,
14,
257,
90,
20,
70,
14,
257,
90,
832,
14,
257,
90,
1011,
14,
188,
187,
18,
90,
23,
69,
14,
257,
90,
26,
67,
14,
257,
90,
23,
67,
14,
257,
6827,
14,
257,
90,
23,
68,
14,
257,
90,
2485,
14,
257,
919,
19,
14,
257,
90,
2582,
14,
257,
90,
985,
14,
257,
1127,
18,
14,
257,
8849,
14,
257,
90,
1615,
14,
257,
90,
809,
14,
257,
90,
2071,
14,
257,
919,
25,
14,
257,
90,
1189,
14,
188,
187,
18,
726,
14,
257,
90,
27,
71,
14,
257,
90,
1882,
14,
257,
90,
2485,
14,
257,
90,
22,
71,
14,
257,
8546,
14,
257,
90,
894,
14,
257,
90,
1421,
14,
257,
9114,
14,
257,
90,
832,
14,
257,
1127,
18,
14,
257,
90,
26,
70,
14,
257,
4979,
14,
257,
90,
26,
72,
14,
257,
90,
21,
72,
14,
257,
90,
18,
68,
14,
188,
187,
18,
90,
1064,
14,
257,
90,
2062,
14,
257,
90,
741,
14,
257,
90,
1336,
14,
257,
90,
1137,
14,
257,
8320,
14,
257,
90,
2048,
14,
257,
90,
25,
70,
14,
257,
1288,
20,
14,
257,
90,
18,
67,
14,
257,
1010,
18,
14,
257,
90,
27,
69,
14,
257,
90,
809,
14,
257,
90,
19,
68,
14,
257,
90,
2736,
14,
257,
90,
419,
14,
188,
187,
18,
90,
773,
14,
257,
90,
1486,
14,
257,
90,
1905,
14,
257,
90,
1309,
14,
257,
1125,
22,
14,
257,
90,
791,
14,
257,
1288,
22,
14,
257,
90,
27,
72,
14,
257,
1288,
20,
14,
257,
90,
27,
72,
14,
257,
90,
1978,
14,
257,
90,
720,
14,
257,
90,
2314,
14,
257,
90,
935,
14,
257,
8998,
14,
257,
1010,
23,
14,
188,
187,
18,
90,
18,
67,
14,
257,
7425,
14,
257,
90,
2382,
14,
257,
90,
1252,
14,
257,
8320,
14,
257,
90,
2048,
14,
257,
8692,
14,
257,
8831,
14,
257,
8373,
14,
257,
90,
1286,
14,
257,
90,
21,
68,
14,
257,
90,
1486,
14,
257,
90,
2501,
14,
257,
7205,
14,
257,
6707,
14,
257,
6827,
14,
188,
187,
18,
90,
1953,
14,
257,
1325,
20,
14,
257,
90,
21,
67,
14,
257,
90,
26,
70,
14,
257,
90,
2485,
14,
257,
90,
1189,
14,
257,
726,
14,
257,
90,
1820,
14,
257,
90,
1754,
14,
257,
1325,
19,
14,
257,
1010,
27,
14,
257,
90,
832,
14,
257,
90,
19,
67,
14,
257,
5514,
14,
257,
90,
23,
70,
14,
257,
9114,
14,
188,
187,
18,
7783,
14,
257,
90,
1309,
14,
257,
90,
19,
70,
14,
257,
1127,
18,
14,
257,
90,
2382,
14,
257,
90,
1252,
14,
257,
5514,
14,
257,
90,
21,
71,
14,
257,
1125,
24,
14,
257,
90,
26,
72,
14,
257,
8033,
14,
257,
90,
22,
72,
14,
257,
90,
27,
70,
14,
257,
90,
20,
72,
14,
257,
90,
18,
72,
14,
257,
1125,
26,
14,
188,
187,
18,
8831,
14,
257,
1127,
20,
14,
257,
90,
2389,
14,
257,
1127,
23,
14,
257,
919,
27,
14,
257,
90,
999,
14,
257,
1010,
26,
14,
257,
8353,
14,
257,
9388,
14,
257,
90,
1950,
14,
257,
90,
26,
68,
14,
257,
1125,
23,
14,
257,
90,
26,
69,
14,
257,
90,
18,
68,
14,
257,
90,
935,
14,
257,
8998,
14,
188,
187,
18,
1010,
20,
14,
257,
90,
20,
69,
14,
257,
919,
18,
14,
257,
6195,
14,
257,
90,
19,
71,
14,
257,
726,
14,
257,
90,
846,
14,
257,
90,
19,
68,
14,
257,
90,
846,
14,
257,
90,
1331,
14,
257,
90,
773,
14,
257,
90,
2736,
14,
257,
90,
2766,
14,
257,
90,
25,
67,
14,
257,
1127,
22,
14,
257,
919,
26,
14,
188,
187,
18,
90,
23,
72,
14,
257,
1288,
27,
14,
257,
90,
26,
69,
14,
257,
90,
19,
68,
14,
257,
1288,
21,
14,
257,
90,
1661,
14,
257,
8484,
14,
257,
90,
26,
68,
14,
257,
90,
2485,
14,
257,
90,
1189,
14,
257,
726,
14,
257,
90,
27,
70,
14,
257,
1010,
22,
14,
257,
90,
2414,
14,
257,
1127,
27,
14,
257,
90,
25,
68,
14,
188,
187,
18,
90,
1760,
14,
257,
8353,
14,
257,
1288,
20,
14,
257,
90,
23,
72,
14,
257,
90,
2467,
14,
257,
1127,
21,
14,
257,
90,
741,
14,
257,
90,
23,
70,
14,
257,
6997,
14,
257,
1288,
20,
14,
257,
7611,
14,
257,
90,
1446,
14,
257,
1288,
22,
14,
257,
90,
27,
70,
14,
257,
90,
1876,
14,
257,
90,
1286,
14,
188,
187,
18,
90,
24,
72,
14,
257,
90,
1252,
14,
257,
90,
19,
71,
14,
257,
90,
2370,
14,
257,
90,
26,
72,
14,
257,
1288,
20,
14,
257,
90,
24,
71,
14,
257,
90,
1950,
14,
257,
1325,
19,
14,
257,
1127,
25,
14,
257,
90,
588,
14,
257,
90,
19,
70,
14,
257,
1127,
20,
14,
257,
919,
19,
14,
257,
1010,
25,
14,
257,
90,
22,
68,
14,
188,
187,
18,
8033,
14,
257,
90,
2071,
14,
257,
90,
1130,
14,
257,
90,
1189,
14,
257,
8849,
14,
257,
4979,
14,
257,
90,
720,
14,
257,
90,
19,
70,
14,
257,
90,
26,
71,
14,
257,
90,
23,
71,
14,
257,
90,
1052,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
726,
14,
257,
726,
14,
257,
4811,
14,
188,
187,
18,
90,
1661,
14,
257,
90,
20,
69,
14,
257,
1010,
20,
14,
257,
90,
2039,
14,
257,
90,
1052,
14,
257,
90,
264,
14,
257,
90,
264,
14,
188,
95
] | [
1700,
65,
1773,
3645,
5807,
1784,
14,
790,
11,
188,
95,
188,
188,
558,
3248,
34858,
23916,
603,
275,
188,
187,
685,
258,
7989,
16,
29442,
188,
95,
188,
188,
1857,
3409,
3645,
34858,
23916,
10,
685,
258,
7989,
16,
29442,
11,
6346,
34858,
23916,
275,
188,
187,
397,
396,
1281,
34858,
23916,
93,
685,
95,
188,
95,
188,
188,
1857,
280,
69,
258,
1281,
34858,
23916,
11,
7166,
3645,
5807,
10,
1167,
1701,
16,
1199,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
3645,
34858,
1700,
65,
1773,
3645,
5807,
1784,
14,
790,
11,
275,
188,
187,
1733,
14,
497,
721,
15100,
16,
1888,
1784,
1773,
10,
1167,
14,
12142,
3645,
34858,
1700,
65,
3627,
1625,
16,
11943,
61,
18,
630,
272,
16,
685,
14,
4273,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
34858,
1700,
17,
1773,
3645,
5807,
347,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
90,
721,
396,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
93,
1733,
95,
188,
187,
397,
754,
14,
869,
188,
95,
188,
188,
558,
6346,
34858,
1700,
65,
1773,
3645,
5807,
1784,
2251,
275,
188,
187,
4365,
1717,
3645,
5807,
1222,
11,
790,
188,
187,
16755,
336,
1714,
3645,
5807,
1597,
14,
790,
11,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
558,
3248,
34858,
1700,
1773,
3645,
5807,
1784,
603,
275,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
11,
7289,
10,
79,
258,
3645,
5807,
1222,
11,
790,
275,
188,
187,
397,
754,
16,
1784,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
1784,
11,
45236,
336,
1714,
3645,
5807,
1597,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
3645,
5807,
1597,
11,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
558,
6346,
34858,
1700,
2827,
2251,
275,
188,
188,
187,
1773,
3645,
5807,
10,
3645,
34858,
1700,
65,
1773,
3645,
5807,
2827,
11,
790,
188,
95,
188,
188,
1857,
2193,
3645,
34858,
1700,
2827,
10,
85,
258,
7989,
16,
2827,
14,
18873,
6346,
34858,
1700,
2827,
11,
275,
188,
187,
85,
16,
2184,
1700,
11508,
3645,
34858,
1700,
65,
3627,
1625,
14,
18873,
11,
188,
95,
188,
188,
1857,
547,
3645,
34858,
1700,
65,
1773,
3645,
5807,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
397,
18873,
7402,
3645,
34858,
1700,
2827,
717,
1773,
3645,
5807,
699,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
6346,
34858,
1700,
65,
1773,
3645,
5807,
2827,
2251,
275,
188,
187,
4365,
1717,
3645,
5807,
1597,
11,
790,
188,
187,
16755,
336,
1714,
3645,
5807,
1222,
14,
790,
11,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
3248,
34858,
1700,
1773,
3645,
5807,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
11,
7289,
10,
79,
258,
3645,
5807,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1281,
34858,
1700,
1773,
3645,
5807,
2827,
11,
45236,
336,
1714,
3645,
5807,
1222,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
3645,
5807,
1222,
11,
188,
187,
285,
497,
721,
754,
16,
2827,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
828,
547,
3645,
34858,
1700,
65,
3627,
1625,
260,
15100,
16,
1700,
1625,
93,
188,
187,
23796,
28,
312,
29265,
16,
3627,
16,
1281,
65,
2894,
16,
88,
20,
16,
3645,
34858,
1700,
347,
188,
187,
2201,
563,
28,
1714,
3645,
34858,
1700,
2827,
1261,
3974,
399,
188,
187,
9337,
28,
209,
209,
209,
209,
1397,
7989,
16,
2152,
1625,
4364,
188,
187,
11943,
28,
1397,
7989,
16,
1773,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
1773,
3645,
5807,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
3645,
34858,
1700,
65,
1773,
3645,
5807,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
350,
187,
1784,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
4068,
28,
312,
29265,
17,
3627,
17,
1281,
65,
2894,
17,
88,
20,
17,
78,
3933,
16,
1633,
347,
188,
95,
188,
188,
1857,
1777,
336,
275,
1853,
16,
2184,
1165,
435,
29265,
17,
3627,
17,
1281,
65,
2894,
17,
88,
20,
17,
78,
3933,
16,
1633,
347,
14731,
18,
11,
290,
188,
188,
828,
14731,
18,
260,
1397,
1212,
93,
188,
188,
187,
18,
90,
19,
72,
14,
257,
90,
26,
68,
14,
257,
90,
1189,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
1052,
14,
257,
726,
14,
257,
90,
26,
69,
14,
257,
90,
2736,
14,
257,
90,
22,
70,
14,
257,
90,
22,
71,
14,
257,
1288,
21,
14,
257,
90,
1122,
14,
188,
187,
18,
90,
19,
69,
14,
257,
1125,
23,
14,
257,
1125,
25,
14,
257,
1288,
27,
14,
257,
90,
25,
69,
14,
257,
90,
1702,
14,
257,
9114,
14,
257,
90,
985,
14,
257,
8849,
14,
257,
90,
22,
69,
14,
257,
90,
1331,
14,
257,
1127,
21,
14,
257,
90,
1469,
14,
257,
90,
18,
67,
14,
257,
90,
2062,
14,
257,
90,
1061,
14,
188,
187,
18,
90,
631,
14,
257,
90,
588,
14,
257,
90,
1551,
14,
257,
90,
2382,
14,
257,
1127,
21,
14,
257,
90,
2334,
14,
257,
90,
2039,
14,
257,
1125,
20,
14,
257,
90,
1052,
14,
257,
1127,
22,
14,
257,
90,
18,
67,
14,
257,
90,
846,
14,
257,
90,
1702,
14,
257,
1125,
25,
14,
257,
1127,
24,
14,
257,
90,
2401,
14,
188,
187,
18,
90,
2766,
14,
257,
90,
21,
72,
14,
257,
90,
2414,
14,
257,
1127,
23,
14,
257,
90,
1959,
14,
257,
90,
1446,
14,
257,
8692,
14,
257,
1010,
19,
14,
257,
1125,
22,
14,
257,
90,
18,
70,
14,
257,
90,
1959,
14,
257,
1325,
21,
14,
257,
90,
1465,
14,
257,
1125,
25,
14,
257,
90,
2382,
14,
257,
1125,
23,
14,
188,
187,
18,
90,
2275,
14,
257,
1010,
26,
14,
257,
90,
1465,
14,
257,
90,
22,
67,
14,
257,
90,
27,
69,
14,
257,
90,
2582,
14,
257,
90,
2582,
14,
257,
90,
1465,
14,
257,
90,
2697,
14,
257,
90,
999,
14,
257,
8831,
14,
257,
7104,
14,
257,
90,
23,
71,
14,
257,
5514,
14,
257,
8549,
14,
257,
90,
1011,
14,
188,
187,
18,
8549,
14,
257,
90,
493,
14,
257,
90,
2382,
14,
257,
1288,
23,
14,
257,
90,
20,
70,
14,
257,
1325,
23,
14,
257,
1127,
18,
14,
257,
90,
20,
69,
14,
257,
90,
22,
72,
14,
257,
90,
741,
14,
257,
90,
1469,
14,
257,
90,
2770,
14,
257,
1127,
23,
14,
257,
90,
1011,
14,
257,
90,
24,
70,
14,
257,
90,
2733,
14,
188,
187,
18,
1325,
19,
14,
257,
1325,
22,
14,
257,
90,
2071,
14,
257,
90,
1331,
14,
257,
90,
2467,
14,
257,
90,
27,
67,
14,
257,
1288,
22,
14,
257,
90,
22,
67,
14,
257,
90,
19,
67,
14,
257,
1288,
27,
14,
257,
90,
24,
72,
14,
257,
90,
1395,
14,
257,
90,
927,
14,
257,
1127,
27,
14,
257,
90,
1421,
14,
257,
919,
20,
14,
188,
187,
18,
90,
26,
67,
14,
257,
90,
631,
14,
257,
90,
19,
68,
14,
257,
90,
18,
70,
14,
257,
90,
1363,
14,
257,
8107,
14,
257,
90,
21,
72,
14,
257,
90,
2569,
14,
257,
8369,
14,
257,
90,
22,
68,
14,
257,
90,
2467,
14,
257,
90,
1109,
14,
257,
90,
791,
14,
257,
1325,
18,
14,
257,
90,
1486,
14,
257,
1325,
21,
14,
188,
187,
18,
1288,
18,
14,
257,
7205,
14,
257,
90,
2039,
14,
257,
7053,
14,
257,
90,
1487,
14,
257,
90,
791,
14,
257,
90,
1277,
14,
257,
90,
27,
67,
14,
257,
90,
22,
68,
14,
257,
90,
20,
71,
14,
257,
90,
26,
69,
14,
257,
6707,
14,
257,
90,
1978,
14,
257,
90,
2397,
14,
257,
90,
20,
71,
14,
257,
90,
2414,
14,
188,
187,
18,
1127,
27,
14,
257,
1125,
19,
14,
257,
7783,
14,
257,
90,
1950,
14,
257,
90,
2582,
14,
257,
90,
26,
68,
14,
257,
90,
18,
69,
14,
257,
90,
2314,
14,
257,
90,
2275,
14,
257,
90,
27,
67,
14,
257,
90,
999,
14,
257,
90,
1805,
14,
257,
90,
1331,
14,
257,
90,
20,
70,
14,
257,
90,
832,
14,
257,
90,
1011,
14,
188,
187,
18,
90,
23,
69,
14,
257,
90,
26,
67,
14,
257,
90,
23,
67,
14,
257,
6827,
14,
257,
90,
23,
68,
14,
257,
90,
2485,
14,
257,
919,
19,
14,
257,
90,
2582,
14,
257,
90,
985,
14,
257,
1127,
18,
14,
257,
8849,
14,
257,
90,
1615,
14,
257,
90,
809,
14,
257,
90,
2071,
14,
257,
919,
25,
14,
257,
90,
1189,
14,
188,
187,
18,
726,
14,
257,
90,
27,
71,
14,
257,
90,
1882,
14,
257,
90,
2485,
14,
257,
90,
22,
71,
14,
257,
8546,
14,
257,
90,
894,
14,
257,
90,
1421,
14,
257,
9114,
14,
257,
90,
832,
14,
257,
1127,
18,
14,
257,
90,
26,
70,
14,
257,
4979,
14,
257,
90,
26,
72,
14,
257,
90,
21,
72,
14,
257,
90,
18,
68,
14,
188,
187,
18,
90,
1064,
14,
257,
90,
2062,
14,
257,
90,
741,
14,
257,
90,
1336,
14,
257,
90,
1137,
14,
257,
8320,
14,
257,
90,
2048,
14,
257,
90,
25,
70,
14,
257,
1288,
20,
14,
257,
90,
18,
67,
14,
257,
1010,
18,
14,
257,
90,
27,
69,
14,
257,
90,
809,
14,
257,
90,
19,
68,
14,
257,
90,
2736,
14,
257,
90,
419,
14,
188,
187,
18,
90,
773,
14,
257,
90,
1486,
14,
257,
90,
1905,
14,
257,
90,
1309,
14,
257,
1125,
22,
14,
257,
90,
791,
14,
257,
1288,
22,
14,
257,
90,
27,
72,
14,
257,
1288,
20,
14,
257,
90,
27,
72,
14,
257,
90,
1978,
14,
257,
90,
720,
14,
257,
90,
2314,
14,
257,
90,
935,
14,
257,
8998,
14,
257,
1010,
23,
14,
188,
187,
18,
90,
18,
67,
14,
257,
7425,
14,
257,
90,
2382,
14,
257,
90,
1252,
14,
257,
8320,
14,
257,
90,
2048,
14,
257,
8692,
14,
257,
8831,
14,
257,
8373,
14,
257,
90,
1286,
14,
257,
90,
21,
68,
14,
257,
90,
1486,
14,
257,
90,
2501,
14,
257,
7205,
14,
257,
6707,
14,
257,
6827,
14,
188,
187,
18,
90,
1953,
14,
257,
1325,
20,
14,
257,
90,
21,
67,
14,
257,
90,
26,
70,
14,
257,
90,
2485,
14,
257,
90,
1189,
14,
257,
726,
14,
257,
90,
1820,
14,
257,
90,
1754,
14,
257,
1325,
19,
14,
257,
1010,
27,
14,
257,
90,
832,
14,
257,
90,
19,
67,
14,
257,
5514,
14,
257,
90,
23,
70,
14,
257,
9114,
14,
188,
187,
18,
7783,
14,
257,
90,
1309,
14,
257,
90,
19,
70,
14,
257,
1127,
18,
14,
257,
90,
2382,
14,
257,
90,
1252,
14,
257,
5514,
14,
257,
90,
21,
71,
14,
257,
1125,
24,
14,
257,
90,
26,
72,
14,
257,
8033,
14,
257,
90,
22,
72,
14,
257,
90,
27,
70,
14,
257,
90,
20,
72,
14,
257,
90,
18,
72,
14,
257,
1125,
26,
14,
188,
187,
18,
8831,
14,
257,
1127,
20,
14,
257,
90,
2389,
14,
257,
1127,
23,
14,
257,
919,
27,
14,
257,
90,
999
] |
72,761 | package otbuiltin
import (
"bytes"
"errors"
"strconv"
"strings"
"time"
"unsafe"
glib "github.com/ostreedev/ostree-go/pkg/glibobject"
)
import "C"
var pruneOpts pruneOptions
type pruneOptions struct {
NoPrune bool
RefsOnly bool
DeleteCommit string
KeepYoungerThan time.Time
Depth int
StaticDeltasOnly int
}
func NewPruneOptions() pruneOptions {
po := new(pruneOptions)
po.Depth = -1
return *po
}
func Prune(repoPath string, options pruneOptions) (string, error) {
pruneOpts = options
repo, err := OpenRepo(repoPath)
if err != nil {
return "", err
}
var pruneFlags C.OstreeRepoPruneFlags
var numObjectsTotal int
var numObjectsPruned int
var objSizeTotal uint64
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
var cancellable *glib.GCancellable
if !pruneOpts.NoPrune && !glib.GoBool(glib.GBoolean(C.ostree_repo_is_writable(repo.native(), &cerr))) {
return "", generateError(cerr)
}
cerr = nil
if strings.Compare(pruneOpts.DeleteCommit, "") != 0 {
if pruneOpts.NoPrune {
return "", errors.New("Cannot specify both pruneOptions.DeleteCommit and pruneOptions.NoPrune")
}
if pruneOpts.StaticDeltasOnly > 0 {
if glib.GoBool(glib.GBoolean(C.ostree_repo_prune_static_deltas(repo.native(), C.CString(pruneOpts.DeleteCommit), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return "", generateError(cerr)
}
} else if err = deleteCommit(repo, pruneOpts.DeleteCommit, cancellable); err != nil {
return "", err
}
}
if !pruneOpts.KeepYoungerThan.IsZero() {
if pruneOpts.NoPrune {
return "", errors.New("Cannot specify both pruneOptions.KeepYoungerThan and pruneOptions.NoPrune")
}
if err = pruneCommitsKeepYoungerThanDate(repo, pruneOpts.KeepYoungerThan, cancellable); err != nil {
return "", err
}
}
if pruneOpts.RefsOnly {
pruneFlags |= C.OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY
}
if pruneOpts.NoPrune {
pruneFlags |= C.OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE
}
formattedFreedSize := C.GoString((*C.char)(C.g_format_size_full((C.guint64)(objSizeTotal), 0)))
var buffer bytes.Buffer
buffer.WriteString("Total objects: ")
buffer.WriteString(strconv.Itoa(numObjectsTotal))
if numObjectsPruned == 0 {
buffer.WriteString("\nNo unreachable objects")
} else if pruneOpts.NoPrune {
buffer.WriteString("\nWould delete: ")
buffer.WriteString(strconv.Itoa(numObjectsPruned))
buffer.WriteString(" objects, freeing ")
buffer.WriteString(formattedFreedSize)
} else {
buffer.WriteString("\nDeleted ")
buffer.WriteString(strconv.Itoa(numObjectsPruned))
buffer.WriteString(" objects, ")
buffer.WriteString(formattedFreedSize)
buffer.WriteString(" freed")
}
return buffer.String(), nil
}
func deleteCommit(repo *Repo, commitToDelete string, cancellable *glib.GCancellable) error {
var refs *glib.GHashTable
var hashIter glib.GHashTableIter
var hashkey, hashvalue C.gpointer
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
if glib.GoBool(glib.GBoolean(C.ostree_repo_list_refs(repo.native(), nil, (**C.GHashTable)(refs.Ptr()), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
C.g_hash_table_iter_init((*C.GHashTableIter)(hashIter.Ptr()), (*C.GHashTable)(refs.Ptr()))
for C.g_hash_table_iter_next((*C.GHashTableIter)(hashIter.Ptr()), &hashkey, &hashvalue) != 0 {
var ref string = C.GoString((*C.char)(hashkey))
var commit string = C.GoString((*C.char)(hashvalue))
if strings.Compare(commitToDelete, commit) == 0 {
var buffer bytes.Buffer
buffer.WriteString("Commit ")
buffer.WriteString(commitToDelete)
buffer.WriteString(" is referenced by ")
buffer.WriteString(ref)
return errors.New(buffer.String())
}
}
if err := enableTombstoneCommits(repo); err != nil {
return err
}
if !glib.GoBool(glib.GBoolean(C.ostree_repo_delete_object(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, C.CString(commitToDelete), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
return nil
}
func pruneCommitsKeepYoungerThanDate(repo *Repo, date time.Time, cancellable *glib.GCancellable) error {
var objects *glib.GHashTable
defer C.free(unsafe.Pointer(objects))
var hashIter glib.GHashTableIter
var key, value C.gpointer
defer C.free(unsafe.Pointer(key))
defer C.free(unsafe.Pointer(value))
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
if err := enableTombstoneCommits(repo); err != nil {
return err
}
if !glib.GoBool(glib.GBoolean(C.ostree_repo_list_objects(repo.native(), C.OSTREE_REPO_LIST_OBJECTS_ALL, (**C.GHashTable)(objects.Ptr()), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
C.g_hash_table_iter_init((*C.GHashTableIter)(hashIter.Ptr()), (*C.GHashTable)(objects.Ptr()))
for C.g_hash_table_iter_next((*C.GHashTableIter)(hashIter.Ptr()), &key, &value) != 0 {
var serializedKey *glib.GVariant
defer C.free(unsafe.Pointer(serializedKey))
var checksum *C.char
defer C.free(unsafe.Pointer(checksum))
var objType C.OstreeObjectType
var commitTimestamp uint64
var commit *glib.GVariant = nil
C.ostree_object_name_deserialize((*C.GVariant)(serializedKey.Ptr()), &checksum, &objType)
if objType != C.OSTREE_OBJECT_TYPE_COMMIT {
continue
}
cerr = nil
if !glib.GoBool(glib.GBoolean(C.ostree_repo_load_variant(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, checksum, (**C.GVariant)(commit.Ptr()), &cerr))) {
return generateError(cerr)
}
commitTimestamp = (uint64)(C.ostree_commit_get_timestamp((*C.GVariant)(commit.Ptr())))
if commitTimestamp < (uint64)(date.Unix()) {
cerr = nil
if pruneOpts.StaticDeltasOnly != 0 {
if !glib.GoBool(glib.GBoolean(C.ostree_repo_prune_static_deltas(repo.native(), checksum, (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
} else {
if !glib.GoBool(glib.GBoolean(C.ostree_repo_delete_object(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, checksum, (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
}
}
}
return nil
} | package otbuiltin
import (
"bytes"
"errors"
"strconv"
"strings"
"time"
"unsafe"
glib "github.com/ostreedev/ostree-go/pkg/glibobject"
)
// #cgo pkg-config: ostree-1
// #include <stdlib.h>
// #include <glib.h>
// #include <ostree.h>
// #include "builtin.go.h"
import "C"
// Declare gobal variable for options
var pruneOpts pruneOptions
// Contains all of the options for pruning an ostree repo. Use
// NewPruneOptions() to initialize
type pruneOptions struct {
NoPrune bool // Only display unreachable objects; don't delete
RefsOnly bool // Only compute reachability via refs
DeleteCommit string // Specify a commit to delete
KeepYoungerThan time.Time // All commits older than this date will be pruned
Depth int // Only traverse depths (integer) parents for each commit (default: -1=infinite)
StaticDeltasOnly int // Change the behavior of --keep-younger-than and --delete-commit to prune only the static delta files
}
// Instantiates and returns a pruneOptions struct with default values set
func NewPruneOptions() pruneOptions {
po := new(pruneOptions)
po.Depth = -1
return *po
}
// Search for unreachable objects in the repository given by repoPath. Removes the
// objects unless pruneOptions.NoPrune is specified
func Prune(repoPath string, options pruneOptions) (string, error) {
pruneOpts = options
// attempt to open the repository
repo, err := OpenRepo(repoPath)
if err != nil {
return "", err
}
var pruneFlags C.OstreeRepoPruneFlags
var numObjectsTotal int
var numObjectsPruned int
var objSizeTotal uint64
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
var cancellable *glib.GCancellable
if !pruneOpts.NoPrune && !glib.GoBool(glib.GBoolean(C.ostree_repo_is_writable(repo.native(), &cerr))) {
return "", generateError(cerr)
}
cerr = nil
if strings.Compare(pruneOpts.DeleteCommit, "") != 0 {
if pruneOpts.NoPrune {
return "", errors.New("Cannot specify both pruneOptions.DeleteCommit and pruneOptions.NoPrune")
}
if pruneOpts.StaticDeltasOnly > 0 {
if glib.GoBool(glib.GBoolean(C.ostree_repo_prune_static_deltas(repo.native(), C.CString(pruneOpts.DeleteCommit), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return "", generateError(cerr)
}
} else if err = deleteCommit(repo, pruneOpts.DeleteCommit, cancellable); err != nil {
return "", err
}
}
if !pruneOpts.KeepYoungerThan.IsZero() {
if pruneOpts.NoPrune {
return "", errors.New("Cannot specify both pruneOptions.KeepYoungerThan and pruneOptions.NoPrune")
}
if err = pruneCommitsKeepYoungerThanDate(repo, pruneOpts.KeepYoungerThan, cancellable); err != nil {
return "", err
}
}
if pruneOpts.RefsOnly {
pruneFlags |= C.OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY
}
if pruneOpts.NoPrune {
pruneFlags |= C.OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE
}
formattedFreedSize := C.GoString((*C.char)(C.g_format_size_full((C.guint64)(objSizeTotal), 0)))
var buffer bytes.Buffer
buffer.WriteString("Total objects: ")
buffer.WriteString(strconv.Itoa(numObjectsTotal))
if numObjectsPruned == 0 {
buffer.WriteString("\nNo unreachable objects")
} else if pruneOpts.NoPrune {
buffer.WriteString("\nWould delete: ")
buffer.WriteString(strconv.Itoa(numObjectsPruned))
buffer.WriteString(" objects, freeing ")
buffer.WriteString(formattedFreedSize)
} else {
buffer.WriteString("\nDeleted ")
buffer.WriteString(strconv.Itoa(numObjectsPruned))
buffer.WriteString(" objects, ")
buffer.WriteString(formattedFreedSize)
buffer.WriteString(" freed")
}
return buffer.String(), nil
}
// Delete an unreachable commit from the repo
func deleteCommit(repo *Repo, commitToDelete string, cancellable *glib.GCancellable) error {
var refs *glib.GHashTable
var hashIter glib.GHashTableIter
var hashkey, hashvalue C.gpointer
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
if glib.GoBool(glib.GBoolean(C.ostree_repo_list_refs(repo.native(), nil, (**C.GHashTable)(refs.Ptr()), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
C.g_hash_table_iter_init((*C.GHashTableIter)(hashIter.Ptr()), (*C.GHashTable)(refs.Ptr()))
for C.g_hash_table_iter_next((*C.GHashTableIter)(hashIter.Ptr()), &hashkey, &hashvalue) != 0 {
var ref string = C.GoString((*C.char)(hashkey))
var commit string = C.GoString((*C.char)(hashvalue))
if strings.Compare(commitToDelete, commit) == 0 {
var buffer bytes.Buffer
buffer.WriteString("Commit ")
buffer.WriteString(commitToDelete)
buffer.WriteString(" is referenced by ")
buffer.WriteString(ref)
return errors.New(buffer.String())
}
}
if err := enableTombstoneCommits(repo); err != nil {
return err
}
if !glib.GoBool(glib.GBoolean(C.ostree_repo_delete_object(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, C.CString(commitToDelete), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
return nil
}
// Prune commits but keep any younger than the given date regardless of whether they
// are reachable
func pruneCommitsKeepYoungerThanDate(repo *Repo, date time.Time, cancellable *glib.GCancellable) error {
var objects *glib.GHashTable
defer C.free(unsafe.Pointer(objects))
var hashIter glib.GHashTableIter
var key, value C.gpointer
defer C.free(unsafe.Pointer(key))
defer C.free(unsafe.Pointer(value))
var gerr = glib.NewGError()
var cerr = (*C.GError)(gerr.Ptr())
defer C.free(unsafe.Pointer(cerr))
if err := enableTombstoneCommits(repo); err != nil {
return err
}
if !glib.GoBool(glib.GBoolean(C.ostree_repo_list_objects(repo.native(), C.OSTREE_REPO_LIST_OBJECTS_ALL, (**C.GHashTable)(objects.Ptr()), (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
C.g_hash_table_iter_init((*C.GHashTableIter)(hashIter.Ptr()), (*C.GHashTable)(objects.Ptr()))
for C.g_hash_table_iter_next((*C.GHashTableIter)(hashIter.Ptr()), &key, &value) != 0 {
var serializedKey *glib.GVariant
defer C.free(unsafe.Pointer(serializedKey))
var checksum *C.char
defer C.free(unsafe.Pointer(checksum))
var objType C.OstreeObjectType
var commitTimestamp uint64
var commit *glib.GVariant = nil
C.ostree_object_name_deserialize((*C.GVariant)(serializedKey.Ptr()), &checksum, &objType)
if objType != C.OSTREE_OBJECT_TYPE_COMMIT {
continue
}
cerr = nil
if !glib.GoBool(glib.GBoolean(C.ostree_repo_load_variant(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, checksum, (**C.GVariant)(commit.Ptr()), &cerr))) {
return generateError(cerr)
}
commitTimestamp = (uint64)(C.ostree_commit_get_timestamp((*C.GVariant)(commit.Ptr())))
if commitTimestamp < (uint64)(date.Unix()) {
cerr = nil
if pruneOpts.StaticDeltasOnly != 0 {
if !glib.GoBool(glib.GBoolean(C.ostree_repo_prune_static_deltas(repo.native(), checksum, (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
} else {
if !glib.GoBool(glib.GBoolean(C.ostree_repo_delete_object(repo.native(), C.OSTREE_OBJECT_TYPE_COMMIT, checksum, (*C.GCancellable)(cancellable.Ptr()), &cerr))) {
return generateError(cerr)
}
}
}
}
return nil
}
| [
5786,
21229,
7045,
188,
188,
4747,
280,
188,
187,
4,
2186,
4,
188,
187,
4,
4383,
4,
188,
187,
4,
20238,
4,
188,
187,
4,
6137,
4,
188,
187,
4,
1149,
4,
188,
187,
4,
3331,
4,
188,
188,
187,
33721,
312,
3140,
16,
817,
17,
761,
677,
436,
17,
761,
677,
15,
2035,
17,
5090,
17,
33721,
1647,
4,
188,
11,
188,
188,
4747,
312,
37,
4,
188,
188,
828,
46641,
8958,
46641,
1996,
188,
188,
558,
46641,
1996,
603,
275,
188,
187,
2487,
1839,
11071,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1019,
209,
209,
209,
209,
209,
263,
187,
20286,
4332,
209,
209,
209,
209,
209,
209,
209,
209,
1019,
209,
209,
209,
209,
209,
263,
187,
3593,
9807,
209,
209,
209,
209,
776,
209,
209,
209,
263,
187,
16862,
59,
589,
1048,
11229,
209,
1247,
16,
1136,
263,
187,
6290,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
388,
209,
209,
209,
209,
209,
209,
263,
187,
6506,
4113,
23005,
4332,
388,
209,
209,
209,
209,
209,
209,
209,
188,
95,
188,
188,
1857,
3409,
1839,
11071,
1996,
336,
46641,
1996,
275,
188,
187,
2080,
721,
605,
10,
39803,
1996,
11,
188,
187,
2080,
16,
6290,
260,
418,
19,
188,
187,
397,
258,
2080,
188,
95,
188,
188,
1857,
401,
16070,
10,
12941,
1461,
776,
14,
2423,
46641,
1996,
11,
280,
530,
14,
790,
11,
275,
188,
187,
39803,
8958,
260,
2423,
188,
188,
187,
12941,
14,
497,
721,
4168,
13789,
10,
12941,
1461,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
4114,
497,
188,
187,
95,
188,
188,
187,
828,
46641,
2973,
354,
16,
49,
23689,
13789,
1839,
11071,
2973,
188,
187,
828,
1855,
7316,
6467,
388,
188,
187,
828,
1855,
7316,
1839,
44451,
388,
188,
187,
828,
3063,
1079,
6467,
691,
535,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
187,
828,
10205,
438,
258,
33721,
16,
6824,
43210,
188,
188,
187,
285,
504,
39803,
8958,
16,
2487,
1839,
11071,
692,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
288,
65,
17955,
10,
12941,
16,
8024,
833,
396,
20100,
2135,
275,
188,
187,
187,
397,
4114,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
20100,
260,
869,
188,
187,
285,
4440,
16,
6953,
10,
39803,
8958,
16,
3593,
9807,
14,
9661,
598,
257,
275,
188,
187,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
350,
187,
397,
4114,
3955,
16,
1888,
435,
10018,
7094,
4969,
46641,
1996,
16,
3593,
9807,
509,
46641,
1996,
16,
2487,
1839,
11071,
866,
188,
187,
187,
95,
188,
188,
187,
187,
285,
46641,
8958,
16,
6506,
4113,
23005,
4332,
609,
257,
275,
188,
350,
187,
285,
482,
1906,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
39803,
65,
2941,
65,
47271,
10,
12941,
16,
8024,
833,
354,
16,
20042,
10,
39803,
8958,
16,
3593,
9807,
399,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
2054,
187,
397,
4114,
6002,
914,
10,
20100,
11,
188,
350,
187,
95,
188,
187,
187,
95,
730,
392,
497,
260,
3996,
9807,
10,
12941,
14,
46641,
8958,
16,
3593,
9807,
14,
10205,
438,
267,
497,
598,
869,
275,
188,
350,
187,
397,
4114,
497,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
504,
39803,
8958,
16,
16862,
59,
589,
1048,
11229,
16,
36468,
336,
275,
188,
187,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
350,
187,
397,
4114,
3955,
16,
1888,
435,
10018,
7094,
4969,
46641,
1996,
16,
16862,
59,
589,
1048,
11229,
509,
46641,
1996,
16,
2487,
1839,
11071,
866,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
260,
46641,
6085,
954,
16862,
59,
589,
1048,
11229,
2583,
10,
12941,
14,
46641,
8958,
16,
16862,
59,
589,
1048,
11229,
14,
10205,
438,
267,
497,
598,
869,
275,
188,
350,
187,
397,
4114,
497,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
46641,
8958,
16,
20286,
4332,
275,
188,
187,
187,
39803,
2973,
1749,
354,
16,
1077,
4032,
65,
405,
1450,
65,
1409,
27277,
65,
4534,
65,
35717,
65,
5952,
188,
187,
95,
188,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
187,
187,
39803,
2973,
1749,
354,
16,
1077,
4032,
65,
405,
1450,
65,
1409,
27277,
65,
4534,
65,
1250,
65,
1409,
27277,
188,
187,
95,
188,
188,
187,
18243,
40,
3665,
1079,
721,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
37,
16,
73,
65,
1864,
65,
632,
65,
3723,
931,
37,
16,
31786,
535,
1261,
1852,
1079,
6467,
399,
257,
2135,
188,
188,
187,
828,
1734,
2298,
16,
1698,
188,
188,
187,
1495,
16,
14664,
435,
6467,
4441,
28,
10003,
188,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
6467,
452,
188,
187,
285,
1855,
7316,
1839,
44451,
489,
257,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
2487,
27787,
4441,
866,
188,
187,
95,
730,
392,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
57,
1049,
3996,
28,
10003,
188,
187,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
1839,
44451,
452,
188,
187,
187,
1495,
16,
14664,
435,
4441,
14,
30719,
10003,
188,
187,
187,
1495,
16,
14664,
10,
18243,
40,
3665,
1079,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
15694,
10003,
188,
187,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
1839,
44451,
452,
188,
187,
187,
1495,
16,
14664,
435,
4441,
14,
10003,
188,
187,
187,
1495,
16,
14664,
10,
18243,
40,
3665,
1079,
11,
188,
187,
187,
1495,
16,
14664,
435,
13871,
866,
188,
187,
95,
188,
188,
187,
397,
1734,
16,
703,
833,
869,
188,
95,
188,
188,
1857,
3996,
9807,
10,
12941,
258,
13789,
14,
9444,
46038,
776,
14,
10205,
438,
258,
33721,
16,
6824,
43210,
11,
790,
275,
188,
187,
828,
26404,
258,
33721,
16,
41,
30036,
188,
187,
828,
3283,
2883,
482,
1906,
16,
41,
30036,
2883,
188,
187,
828,
3283,
689,
14,
3283,
731,
354,
16,
73,
4557,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
188,
187,
285,
482,
1906,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
986,
65,
9450,
10,
12941,
16,
8024,
833,
869,
14,
46206,
37,
16,
41,
30036,
1261,
9450,
16,
1865,
5058,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
37,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
989,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
1714,
37,
16,
41,
30036,
1261,
9450,
16,
1865,
5037,
188,
187,
529,
354,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
1537,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
396,
2421,
689,
14,
396,
2421,
731,
11,
598,
257,
275,
188,
187,
187,
828,
2376,
776,
260,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
2421,
689,
452,
188,
187,
187,
828,
9444,
776,
260,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
2421,
731,
452,
188,
187,
187,
285,
4440,
16,
6953,
10,
7012,
46038,
14,
9444,
11,
489,
257,
275,
188,
350,
187,
828,
1734,
2298,
16,
1698,
188,
350,
187,
1495,
16,
14664,
435,
9807,
10003,
188,
350,
187,
1495,
16,
14664,
10,
7012,
46038,
11,
188,
350,
187,
1495,
16,
14664,
435,
425,
14112,
683,
10003,
188,
350,
187,
1495,
16,
14664,
10,
813,
11,
188,
350,
187,
397,
3955,
16,
1888,
10,
1495,
16,
703,
1202,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
497,
721,
3268,
54,
17871,
16753,
6085,
954,
10,
12941,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
3554,
65,
1647,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
14,
354,
16,
20042,
10,
7012,
46038,
399,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
46641,
6085,
954,
16862,
59,
589,
1048,
11229,
2583,
10,
12941,
258,
13789,
14,
5063,
1247,
16,
1136,
14,
10205,
438,
258,
33721,
16,
6824,
43210,
11,
790,
275,
188,
187,
828,
4441,
258,
33721,
16,
41,
30036,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
7821,
452,
188,
187,
828,
3283,
2883,
482,
1906,
16,
41,
30036,
2883,
188,
187,
828,
1255,
14,
734,
354,
16,
73,
4557,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
689,
452,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
731,
452,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
188,
187,
285,
497,
721,
3268,
54,
17871,
16753,
6085,
954,
10,
12941,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
986,
65,
7821,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
405,
1450,
65,
2995,
65,
40231,
65,
1742,
14,
46206,
37,
16,
41,
30036,
1261,
7821,
16,
1865,
5058,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
37,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
989,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
1714,
37,
16,
41,
30036,
1261,
7821,
16,
1865,
5037,
188,
187,
529,
354,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
1537,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
396,
689,
14,
396,
731,
11,
598,
257,
275,
188,
187,
187,
828,
10749,
1031,
258,
33721,
16,
41,
8757,
188,
187,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
24352,
1031,
452,
188,
187,
187,
828,
11446,
258,
37,
16,
1205,
188,
187,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
13161,
452,
188,
187,
187,
828,
3063,
563,
354,
16,
49,
23689,
17668,
188,
187,
187,
828,
9444,
6946,
691,
535,
188,
187,
187,
828,
9444,
258,
33721,
16,
41,
8757,
260,
869,
188,
188,
187,
187,
37,
16,
761,
677,
65,
1647,
65,
579,
65,
11521,
9275,
37,
16,
41,
8757,
1261,
24352,
1031,
16,
1865,
5058,
396,
13161,
14,
396,
1852,
563,
11,
188,
188,
187,
187,
285,
3063,
563,
598,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
20100,
260,
869,
188,
187,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
1281,
65,
6728,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
14,
11446,
14,
46206,
37,
16,
41,
8757,
1261,
7012,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
350,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
187,
95,
188,
188,
187,
187,
7012,
6946,
260,
280,
898,
535,
1261,
37,
16,
761,
677,
65,
7012,
65,
372,
65,
7031,
9275,
37,
16,
41,
8757,
1261,
7012,
16,
1865,
28920,
188,
187,
187,
285,
9444,
6946,
360,
280,
898,
535,
1261,
1004,
16,
12471,
1202,
275,
188,
350,
187,
20100,
260,
869,
188,
350,
187,
285,
46641,
8958,
16,
6506,
4113,
23005,
4332,
598,
257,
275,
188,
2054,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
39803,
65,
2941,
65,
47271,
10,
12941,
16,
8024,
833,
11446,
14,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
1263,
187,
397,
6002,
914,
10,
20100,
11,
188,
2054,
187,
95,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
3554,
65,
1647,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
14,
11446,
14,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
1263,
187,
397,
6002,
914,
10,
20100,
11,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
869,
188,
95
] | [
11071,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1019,
209,
209,
209,
209,
209,
263,
187,
20286,
4332,
209,
209,
209,
209,
209,
209,
209,
209,
1019,
209,
209,
209,
209,
209,
263,
187,
3593,
9807,
209,
209,
209,
209,
776,
209,
209,
209,
263,
187,
16862,
59,
589,
1048,
11229,
209,
1247,
16,
1136,
263,
187,
6290,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
388,
209,
209,
209,
209,
209,
209,
263,
187,
6506,
4113,
23005,
4332,
388,
209,
209,
209,
209,
209,
209,
209,
188,
95,
188,
188,
1857,
3409,
1839,
11071,
1996,
336,
46641,
1996,
275,
188,
187,
2080,
721,
605,
10,
39803,
1996,
11,
188,
187,
2080,
16,
6290,
260,
418,
19,
188,
187,
397,
258,
2080,
188,
95,
188,
188,
1857,
401,
16070,
10,
12941,
1461,
776,
14,
2423,
46641,
1996,
11,
280,
530,
14,
790,
11,
275,
188,
187,
39803,
8958,
260,
2423,
188,
188,
187,
12941,
14,
497,
721,
4168,
13789,
10,
12941,
1461,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
4114,
497,
188,
187,
95,
188,
188,
187,
828,
46641,
2973,
354,
16,
49,
23689,
13789,
1839,
11071,
2973,
188,
187,
828,
1855,
7316,
6467,
388,
188,
187,
828,
1855,
7316,
1839,
44451,
388,
188,
187,
828,
3063,
1079,
6467,
691,
535,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
187,
828,
10205,
438,
258,
33721,
16,
6824,
43210,
188,
188,
187,
285,
504,
39803,
8958,
16,
2487,
1839,
11071,
692,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
288,
65,
17955,
10,
12941,
16,
8024,
833,
396,
20100,
2135,
275,
188,
187,
187,
397,
4114,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
20100,
260,
869,
188,
187,
285,
4440,
16,
6953,
10,
39803,
8958,
16,
3593,
9807,
14,
9661,
598,
257,
275,
188,
187,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
350,
187,
397,
4114,
3955,
16,
1888,
435,
10018,
7094,
4969,
46641,
1996,
16,
3593,
9807,
509,
46641,
1996,
16,
2487,
1839,
11071,
866,
188,
187,
187,
95,
188,
188,
187,
187,
285,
46641,
8958,
16,
6506,
4113,
23005,
4332,
609,
257,
275,
188,
350,
187,
285,
482,
1906,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
39803,
65,
2941,
65,
47271,
10,
12941,
16,
8024,
833,
354,
16,
20042,
10,
39803,
8958,
16,
3593,
9807,
399,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
2054,
187,
397,
4114,
6002,
914,
10,
20100,
11,
188,
350,
187,
95,
188,
187,
187,
95,
730,
392,
497,
260,
3996,
9807,
10,
12941,
14,
46641,
8958,
16,
3593,
9807,
14,
10205,
438,
267,
497,
598,
869,
275,
188,
350,
187,
397,
4114,
497,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
504,
39803,
8958,
16,
16862,
59,
589,
1048,
11229,
16,
36468,
336,
275,
188,
187,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
350,
187,
397,
4114,
3955,
16,
1888,
435,
10018,
7094,
4969,
46641,
1996,
16,
16862,
59,
589,
1048,
11229,
509,
46641,
1996,
16,
2487,
1839,
11071,
866,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
260,
46641,
6085,
954,
16862,
59,
589,
1048,
11229,
2583,
10,
12941,
14,
46641,
8958,
16,
16862,
59,
589,
1048,
11229,
14,
10205,
438,
267,
497,
598,
869,
275,
188,
350,
187,
397,
4114,
497,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
46641,
8958,
16,
20286,
4332,
275,
188,
187,
187,
39803,
2973,
1749,
354,
16,
1077,
4032,
65,
405,
1450,
65,
1409,
27277,
65,
4534,
65,
35717,
65,
5952,
188,
187,
95,
188,
187,
285,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
187,
187,
39803,
2973,
1749,
354,
16,
1077,
4032,
65,
405,
1450,
65,
1409,
27277,
65,
4534,
65,
1250,
65,
1409,
27277,
188,
187,
95,
188,
188,
187,
18243,
40,
3665,
1079,
721,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
37,
16,
73,
65,
1864,
65,
632,
65,
3723,
931,
37,
16,
31786,
535,
1261,
1852,
1079,
6467,
399,
257,
2135,
188,
188,
187,
828,
1734,
2298,
16,
1698,
188,
188,
187,
1495,
16,
14664,
435,
6467,
4441,
28,
10003,
188,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
6467,
452,
188,
187,
285,
1855,
7316,
1839,
44451,
489,
257,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
2487,
27787,
4441,
866,
188,
187,
95,
730,
392,
46641,
8958,
16,
2487,
1839,
11071,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
57,
1049,
3996,
28,
10003,
188,
187,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
1839,
44451,
452,
188,
187,
187,
1495,
16,
14664,
435,
4441,
14,
30719,
10003,
188,
187,
187,
1495,
16,
14664,
10,
18243,
40,
3665,
1079,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1495,
16,
14664,
5523,
80,
15694,
10003,
188,
187,
187,
1495,
16,
14664,
10,
20238,
16,
30672,
10,
1154,
7316,
1839,
44451,
452,
188,
187,
187,
1495,
16,
14664,
435,
4441,
14,
10003,
188,
187,
187,
1495,
16,
14664,
10,
18243,
40,
3665,
1079,
11,
188,
187,
187,
1495,
16,
14664,
435,
13871,
866,
188,
187,
95,
188,
188,
187,
397,
1734,
16,
703,
833,
869,
188,
95,
188,
188,
1857,
3996,
9807,
10,
12941,
258,
13789,
14,
9444,
46038,
776,
14,
10205,
438,
258,
33721,
16,
6824,
43210,
11,
790,
275,
188,
187,
828,
26404,
258,
33721,
16,
41,
30036,
188,
187,
828,
3283,
2883,
482,
1906,
16,
41,
30036,
2883,
188,
187,
828,
3283,
689,
14,
3283,
731,
354,
16,
73,
4557,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
188,
187,
285,
482,
1906,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
986,
65,
9450,
10,
12941,
16,
8024,
833,
869,
14,
46206,
37,
16,
41,
30036,
1261,
9450,
16,
1865,
5058,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
37,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
989,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
1714,
37,
16,
41,
30036,
1261,
9450,
16,
1865,
5037,
188,
187,
529,
354,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
1537,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
396,
2421,
689,
14,
396,
2421,
731,
11,
598,
257,
275,
188,
187,
187,
828,
2376,
776,
260,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
2421,
689,
452,
188,
187,
187,
828,
9444,
776,
260,
354,
16,
39724,
9275,
37,
16,
1205,
1261,
2421,
731,
452,
188,
187,
187,
285,
4440,
16,
6953,
10,
7012,
46038,
14,
9444,
11,
489,
257,
275,
188,
350,
187,
828,
1734,
2298,
16,
1698,
188,
350,
187,
1495,
16,
14664,
435,
9807,
10003,
188,
350,
187,
1495,
16,
14664,
10,
7012,
46038,
11,
188,
350,
187,
1495,
16,
14664,
435,
425,
14112,
683,
10003,
188,
350,
187,
1495,
16,
14664,
10,
813,
11,
188,
350,
187,
397,
3955,
16,
1888,
10,
1495,
16,
703,
1202,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
497,
721,
3268,
54,
17871,
16753,
6085,
954,
10,
12941,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
3554,
65,
1647,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
14,
354,
16,
20042,
10,
7012,
46038,
399,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
46641,
6085,
954,
16862,
59,
589,
1048,
11229,
2583,
10,
12941,
258,
13789,
14,
5063,
1247,
16,
1136,
14,
10205,
438,
258,
33721,
16,
6824,
43210,
11,
790,
275,
188,
187,
828,
4441,
258,
33721,
16,
41,
30036,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
7821,
452,
188,
187,
828,
3283,
2883,
482,
1906,
16,
41,
30036,
2883,
188,
187,
828,
1255,
14,
734,
354,
16,
73,
4557,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
689,
452,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
731,
452,
188,
187,
828,
482,
379,
260,
482,
1906,
16,
1888,
41,
914,
336,
188,
187,
828,
29929,
260,
1714,
37,
16,
41,
914,
1261,
73,
379,
16,
1865,
1202,
188,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
20100,
452,
188,
188,
187,
285,
497,
721,
3268,
54,
17871,
16753,
6085,
954,
10,
12941,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
986,
65,
7821,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
405,
1450,
65,
2995,
65,
40231,
65,
1742,
14,
46206,
37,
16,
41,
30036,
1261,
7821,
16,
1865,
5058,
1714,
37,
16,
6824,
43210,
1261,
69,
43210,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
187,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
95,
188,
188,
187,
37,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
989,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
1714,
37,
16,
41,
30036,
1261,
7821,
16,
1865,
5037,
188,
187,
529,
354,
16,
73,
65,
2421,
65,
1412,
65,
1593,
65,
1537,
9275,
37,
16,
41,
30036,
2883,
1261,
2421,
2883,
16,
1865,
5058,
396,
689,
14,
396,
731,
11,
598,
257,
275,
188,
187,
187,
828,
10749,
1031,
258,
33721,
16,
41,
8757,
188,
187,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
24352,
1031,
452,
188,
187,
187,
828,
11446,
258,
37,
16,
1205,
188,
187,
187,
5303,
354,
16,
1444,
10,
3331,
16,
2007,
10,
13161,
452,
188,
187,
187,
828,
3063,
563,
354,
16,
49,
23689,
17668,
188,
187,
187,
828,
9444,
6946,
691,
535,
188,
187,
187,
828,
9444,
258,
33721,
16,
41,
8757,
260,
869,
188,
188,
187,
187,
37,
16,
761,
677,
65,
1647,
65,
579,
65,
11521,
9275,
37,
16,
41,
8757,
1261,
24352,
1031,
16,
1865,
5058,
396,
13161,
14,
396,
1852,
563,
11,
188,
188,
187,
187,
285,
3063,
563,
598,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
20100,
260,
869,
188,
187,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
1281,
65,
6728,
10,
12941,
16,
8024,
833,
354,
16,
1077,
4032,
65,
5623,
65,
1139,
65,
22961,
14,
11446,
14,
46206,
37,
16,
41,
8757,
1261,
7012,
16,
1865,
5058,
396,
20100,
2135,
275,
188,
350,
187,
397,
6002,
914,
10,
20100,
11,
188,
187,
187,
95,
188,
188,
187,
187,
7012,
6946,
260,
280,
898,
535,
1261,
37,
16,
761,
677,
65,
7012,
65,
372,
65,
7031,
9275,
37,
16,
41,
8757,
1261,
7012,
16,
1865,
28920,
188,
187,
187,
285,
9444,
6946,
360,
280,
898,
535,
1261,
1004,
16,
12471,
1202,
275,
188,
350,
187,
20100,
260,
869,
188,
350,
187,
285,
46641,
8958,
16,
6506,
4113,
23005,
4332,
598,
257,
275,
188,
2054,
187,
285,
504,
33721,
16,
6774,
5311,
10,
33721,
16,
3227,
1498,
10,
37,
16,
761,
677,
65,
12941,
65,
39803,
65,
2941
] |
72,762 | package taskrun_test
import (
"context"
"strings"
"testing"
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/knative/build-pipeline/pkg/apis/pipeline/v1alpha1"
"github.com/knative/build-pipeline/pkg/reconciler/v1alpha1/taskrun"
"github.com/knative/build-pipeline/pkg/reconciler/v1alpha1/taskrun/resources"
"github.com/knative/build-pipeline/test"
buildv1alpha1 "github.com/knative/build/pkg/apis/build/v1alpha1"
duckv1alpha1 "github.com/knative/pkg/apis/duck/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
ktesting "k8s.io/client-go/testing"
"k8s.io/client-go/tools/cache"
)
var (
groupVersionKind = schema.GroupVersionKind{
Group: v1alpha1.SchemeGroupVersion.Group,
Version: v1alpha1.SchemeGroupVersion.Version,
Kind: "TaskRun",
}
)
const (
entrypointLocation = "/tools/entrypoint"
toolsMountName = "tools"
pvcSizeBytes = 5 * 1024 * 1024 * 1024
)
var toolsMount = corev1.VolumeMount{
Name: toolsMountName,
MountPath: "/tools",
}
var entrypointCopyStep = corev1.Container{
Name: "place-tools",
Image: resources.EntrypointImage,
Command: []string{"/bin/cp"},
Args: []string{"/entrypoint", entrypointLocation},
VolumeMounts: []corev1.VolumeMount{toolsMount},
}
func getExpectedPVC(tr *v1alpha1.TaskRun) *corev1.PersistentVolumeClaim {
return &corev1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Namespace: tr.Namespace,
Name: tr.Name,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(tr, groupVersionKind),
},
},
Spec: corev1.PersistentVolumeClaimSpec{
AccessModes: []corev1.PersistentVolumeAccessMode{
corev1.ReadWriteOnce,
},
Resources: corev1.ResourceRequirements{
Requests: map[corev1.ResourceName]resource.Quantity{
corev1.ResourceStorage: *resource.NewQuantity(pvcSizeBytes, resource.BinarySI),
},
},
},
}
}
var simpleTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "simple-step",
Image: "foo",
Command: []string{"/mycmd"},
},
},
},
},
}
var saTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-with-sa",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "sa-step",
Image: "foo",
Command: []string{"/mycmd"},
},
},
},
},
}
var templatedTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task-with-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
Inputs: &v1alpha1.Inputs{
Resources: []v1alpha1.TaskResource{{
Name: "workspace",
Type: "git",
}},
},
Outputs: &v1alpha1.Outputs{
Resources: []v1alpha1.TaskResource{{
Name: "myimage",
Type: "image",
}},
},
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "mycontainer",
Image: "myimage",
Command: []string{"/mycmd"},
Args: []string{
"--my-arg=${inputs.params.myarg}",
"--my-additional-arg=${outputs.resources.myimage.url}"},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Args: []string{"--my-other-arg=${inputs.resources.workspace.url}"},
},
},
},
},
}
var defaultTemplatedTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task-with-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
Inputs: &v1alpha1.Inputs{
Params: []v1alpha1.TaskParam{
{
Name: "myarg",
Description: "mydesc",
Default: "mydefault",
},
},
},
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "mycontainer",
Image: "myimage",
Command: []string{"/mycmd"},
Args: []string{"--my-arg=${inputs.params.myarg}"},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Args: []string{"--my-other-arg=${inputs.resources.git-resource.url}"},
},
},
},
},
}
var gitResource = &v1alpha1.PipelineResource{
ObjectMeta: metav1.ObjectMeta{
Name: "git-resource",
Namespace: "foo",
},
Spec: v1alpha1.PipelineResourceSpec{
Type: "git",
Params: []v1alpha1.Param{
{
Name: "URL",
Value: "https:
},
},
},
}
var imageResource = &v1alpha1.PipelineResource{
ObjectMeta: metav1.ObjectMeta{
Name: "image-resource",
Namespace: "foo",
},
Spec: v1alpha1.PipelineResourceSpec{
Type: "image",
Params: []v1alpha1.Param{
{
Name: "URL",
Value: "gcr.io/kristoff/sven",
},
},
},
}
func getToolsVolume(claimName string) corev1.Volume {
return corev1.Volume{
Name: toolsMountName,
VolumeSource: corev1.VolumeSource{
PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
ClaimName: claimName,
},
},
}
}
func getRunName(tr *v1alpha1.TaskRun) string {
return strings.Join([]string{tr.Namespace, tr.Name}, "/")
}
func TestReconcile(t *testing.T) {
taskruns := []*v1alpha1.TaskRun{
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: simpleTask.Name,
APIVersion: "a1",
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-with-sa-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
ServiceAccount: "test-sa",
TaskRef: v1alpha1.TaskRef{
Name: saTask.Name,
APIVersion: "a1",
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: templatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Params: []v1alpha1.Param{
{
Name: "myarg",
Value: "foo",
},
},
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: "workspace",
},
},
},
Outputs: v1alpha1.TaskRunOutputs{
Resources: []v1alpha1.TaskRunResourceVersion{{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: "image-resource",
APIVersion: "a1",
},
Version: "myversion",
Name: "myimage",
}},
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-overrides-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: defaultTemplatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Params: []v1alpha1.Param{
{
Name: "myarg",
Value: "foo",
},
},
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: gitResource.Name,
},
},
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: defaultTemplatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: gitResource.Name,
},
},
},
},
},
}
d := test.Data{
TaskRuns: taskruns,
Tasks: []*v1alpha1.Task{simpleTask, saTask, templatedTask, defaultTemplatedTask},
PipelineResources: []*v1alpha1.PipelineResource{gitResource, imageResource},
}
testcases := []struct {
name string
taskRun *v1alpha1.TaskRun
wantedBuildSpec buildv1alpha1.BuildSpec
}{
{
name: "success",
taskRun: taskruns[0],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "simple-step",
Image: "foo",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[0].Name),
},
},
},
{
name: "serviceaccount",
taskRun: taskruns[1],
wantedBuildSpec: buildv1alpha1.BuildSpec{
ServiceAccountName: "test-sa",
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "sa-step",
Image: "foo",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[1].Name),
},
},
},
{
name: "params",
taskRun: taskruns[2],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Source: &buildv1alpha1.SourceSpec{
Git: &buildv1alpha1.GitSourceSpec{
Url: "https:
Revision: "myversion",
},
},
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=foo","--my-additional-arg=gcr.io/kristoff/sven"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https:
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[2].Name),
},
},
},
{
name: "input-overrides-default-params",
taskRun: taskruns[3],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=foo"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https:
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[3].Name),
},
},
},
{
name: "default-params",
taskRun: taskruns[4],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=mydefault"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https:
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[4].Name),
},
},
},
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
c, _, clients := test.GetTaskRunController(d)
if err := c.Reconciler.Reconcile(context.Background(), getRunName(tc.taskRun)); err != nil {
t.Errorf("expected no error. Got error %v", err)
}
if len(clients.Build.Actions()) == 0 {
t.Errorf("Expected actions to be logged in the buildclient, got none")
}
build, err := clients.Build.BuildV1alpha1().Builds(tc.taskRun.Namespace).Get(tc.taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Failed to fetch build: %v", err)
}
if d := cmp.Diff(build.Spec, tc.wantedBuildSpec); d != "" {
t.Errorf("buildspec doesn't match, diff: %s", d)
}
condition := tc.taskRun.Status.GetCondition(duckv1alpha1.ConditionSucceeded)
if condition == nil || condition.Status != corev1.ConditionUnknown {
t.Errorf("Expected invalid TaskRun to have in progress status, but had %v", condition)
}
if condition != nil && condition.Reason != taskrun.ReasonRunning {
t.Errorf("Expected reason %q but was %s", taskrun.ReasonRunning, condition.Reason)
}
namespace, name, err := cache.SplitMetaNamespaceKey(tc.taskRun.Name)
if err != nil {
t.Errorf("Invalid resource key: %v", err)
}
if len(clients.Kube.Actions()) == 0 {
t.Fatalf("Expected actions to be logged in the kubeclient, got none")
}
pvc, err := clients.Kube.CoreV1().PersistentVolumeClaims(namespace).Get(name, metav1.GetOptions{})
if err != nil {
t.Errorf("Failed to fetch build: %v", err)
}
tr, err := clients.Pipeline.PipelineV1alpha1().TaskRuns(namespace).Get(name, metav1.GetOptions{})
if err != nil {
t.Errorf("Failed to fetch build: %v", err)
}
expectedVolume := getExpectedPVC(tr)
if d := cmp.Diff(pvc.Name, expectedVolume.Name); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if d := cmp.Diff(pvc.OwnerReferences, expectedVolume.OwnerReferences); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if d := cmp.Diff(pvc.Spec.AccessModes, expectedVolume.Spec.AccessModes); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if pvc.Spec.Resources.Requests["storage"] != expectedVolume.Spec.Resources.Requests["storage"] {
t.Errorf("pvc doesn't match, got: %v, expected: %v",
pvc.Spec.Resources.Requests["storage"],
expectedVolume.Spec.Resources.Requests["storage"])
}
})
}
}
func TestReconcile_InvalidTaskRuns(t *testing.T) {
taskRuns := []*v1alpha1.TaskRun{
&v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "notaskrun",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "notask",
APIVersion: "a1",
},
},
},
}
tasks := []*v1alpha1.Task{
simpleTask,
}
d := test.Data{
TaskRuns: taskRuns,
Tasks: tasks,
}
testcases := []struct {
name string
taskRun *v1alpha1.TaskRun
reason string
}{
{
name: "task run with no task",
taskRun: taskRuns[0],
reason: taskrun.ReasonFailedValidation,
},
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
c, _, clients := test.GetTaskRunController(d)
err := c.Reconciler.Reconcile(context.Background(), getRunName(tc.taskRun))
if err != nil {
t.Errorf("Did not expect to see error when reconciling invalid TaskRun but saw %q", err)
}
if len(clients.Build.Actions()) != 0 {
t.Errorf("expected no actions created by the reconciler, got %v", clients.Build.Actions())
}
condition := tc.taskRun.Status.GetCondition(duckv1alpha1.ConditionSucceeded)
if condition == nil || condition.Status != corev1.ConditionFalse {
t.Errorf("Expected invalid TaskRun to have failed status, but had %v", condition)
}
if condition != nil && condition.Reason != tc.reason {
t.Errorf("Expected failure to be because of reason %q but was %s", tc.reason, condition.Reason)
}
})
}
}
func TestReconcileBuildFetchError(t *testing.T) {
taskRun := &v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "test-task",
APIVersion: "a1",
},
},
}
d := test.Data{
TaskRuns: []*v1alpha1.TaskRun{
taskRun,
},
Tasks: []*v1alpha1.Task{simpleTask},
}
c, _, clients := test.GetTaskRunController(d)
reactor := func(action ktesting.Action) (handled bool, ret runtime.Object, err error) {
if action.GetVerb() == "get" && action.GetResource().Resource == "builds" {
return true, nil, fmt.Errorf("induce failure fetching builds")
}
return false, nil, nil
}
clients.Build.PrependReactor("*", "*", reactor)
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err == nil {
t.Fatal("expected error when reconciling a Task for which we couldn't get the corresponding Build but got nil")
}
}
func TestReconcileBuildUpdateStatus(t *testing.T) {
taskRun := &v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "test-task",
APIVersion: "a1",
},
},
}
build := &buildv1alpha1.Build{
ObjectMeta: metav1.ObjectMeta{
Name: taskRun.Name,
Namespace: taskRun.Namespace,
},
Spec: *simpleTask.Spec.BuildSpec,
}
buildSt := &duckv1alpha1.Condition{
Type: duckv1alpha1.ConditionSucceeded,
Status: corev1.ConditionUnknown,
Message: "Running build",
}
build.Status.SetCondition(buildSt)
d := test.Data{
TaskRuns: []*v1alpha1.TaskRun{
taskRun,
},
Tasks: []*v1alpha1.Task{simpleTask},
Builds: []*buildv1alpha1.Build{build},
}
c, _, clients := test.GetTaskRunController(d)
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err != nil {
t.Fatalf("Unexpected error when Reconcile() : %v", err)
}
newTr, err := clients.Pipeline.PipelineV1alpha1().TaskRuns(taskRun.Namespace).Get(taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Expected TaskRun %s to exist but instead got error when getting it: %v", taskRun.Name, err)
}
var ignoreLastTransitionTime = cmpopts.IgnoreTypes(duckv1alpha1.Condition{}.LastTransitionTime.Inner.Time)
if d := cmp.Diff(newTr.Status.GetCondition(duckv1alpha1.ConditionSucceeded), buildSt, ignoreLastTransitionTime); d != "" {
t.Fatalf("-want, +got: %v", d)
}
buildSt.Status = corev1.ConditionTrue
buildSt.Message = "Build completed"
build.Status.SetCondition(buildSt)
_, err = clients.Build.BuildV1alpha1().Builds(taskRun.Namespace).Update(build)
if err != nil {
t.Errorf("Unexpected error while creating build: %v", err)
}
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err != nil {
t.Fatalf("Unexpected error when Reconcile(): %v", err)
}
newTr, err = clients.Pipeline.PipelineV1alpha1().TaskRuns(taskRun.Namespace).Get(taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Unexpected error fetching taskrun: %v", err)
}
if d := cmp.Diff(newTr.Status.GetCondition(duckv1alpha1.ConditionSucceeded), buildSt, ignoreLastTransitionTime); d != "" {
t.Errorf("Taskrun Status diff -want, +got: %v", d)
}
} | /*
Copyright 2018 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package taskrun_test
import (
"context"
"strings"
"testing"
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/knative/build-pipeline/pkg/apis/pipeline/v1alpha1"
"github.com/knative/build-pipeline/pkg/reconciler/v1alpha1/taskrun"
"github.com/knative/build-pipeline/pkg/reconciler/v1alpha1/taskrun/resources"
"github.com/knative/build-pipeline/test"
buildv1alpha1 "github.com/knative/build/pkg/apis/build/v1alpha1"
duckv1alpha1 "github.com/knative/pkg/apis/duck/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
ktesting "k8s.io/client-go/testing"
"k8s.io/client-go/tools/cache"
)
var (
groupVersionKind = schema.GroupVersionKind{
Group: v1alpha1.SchemeGroupVersion.Group,
Version: v1alpha1.SchemeGroupVersion.Version,
Kind: "TaskRun",
}
)
const (
entrypointLocation = "/tools/entrypoint"
toolsMountName = "tools"
pvcSizeBytes = 5 * 1024 * 1024 * 1024 // 5 GBs
)
var toolsMount = corev1.VolumeMount{
Name: toolsMountName,
MountPath: "/tools",
}
var entrypointCopyStep = corev1.Container{
Name: "place-tools",
Image: resources.EntrypointImage,
Command: []string{"/bin/cp"},
Args: []string{"/entrypoint", entrypointLocation},
VolumeMounts: []corev1.VolumeMount{toolsMount},
}
func getExpectedPVC(tr *v1alpha1.TaskRun) *corev1.PersistentVolumeClaim {
return &corev1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Namespace: tr.Namespace,
// This pvc is specific to this TaskRun, so we'll use the same name
Name: tr.Name,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(tr, groupVersionKind),
},
},
Spec: corev1.PersistentVolumeClaimSpec{
AccessModes: []corev1.PersistentVolumeAccessMode{
corev1.ReadWriteOnce,
},
Resources: corev1.ResourceRequirements{
Requests: map[corev1.ResourceName]resource.Quantity{
corev1.ResourceStorage: *resource.NewQuantity(pvcSizeBytes, resource.BinarySI),
},
},
},
}
}
var simpleTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "simple-step",
Image: "foo",
Command: []string{"/mycmd"},
},
},
},
},
}
var saTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-with-sa",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "sa-step",
Image: "foo",
Command: []string{"/mycmd"},
},
},
},
},
}
var templatedTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task-with-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
Inputs: &v1alpha1.Inputs{
Resources: []v1alpha1.TaskResource{{
Name: "workspace",
Type: "git",
}},
},
Outputs: &v1alpha1.Outputs{
Resources: []v1alpha1.TaskResource{{
Name: "myimage",
Type: "image",
}},
},
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "mycontainer",
Image: "myimage",
Command: []string{"/mycmd"},
Args: []string{
"--my-arg=${inputs.params.myarg}",
"--my-additional-arg=${outputs.resources.myimage.url}"},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Args: []string{"--my-other-arg=${inputs.resources.workspace.url}"},
},
},
},
},
}
var defaultTemplatedTask = &v1alpha1.Task{
ObjectMeta: metav1.ObjectMeta{
Name: "test-task-with-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskSpec{
Inputs: &v1alpha1.Inputs{
Params: []v1alpha1.TaskParam{
{
Name: "myarg",
Description: "mydesc",
Default: "mydefault",
},
},
},
BuildSpec: &buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
{
Name: "mycontainer",
Image: "myimage",
Command: []string{"/mycmd"},
Args: []string{"--my-arg=${inputs.params.myarg}"},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Args: []string{"--my-other-arg=${inputs.resources.git-resource.url}"},
},
},
},
},
}
var gitResource = &v1alpha1.PipelineResource{
ObjectMeta: metav1.ObjectMeta{
Name: "git-resource",
Namespace: "foo",
},
Spec: v1alpha1.PipelineResourceSpec{
Type: "git",
Params: []v1alpha1.Param{
{
Name: "URL",
Value: "https://foo.git",
},
},
},
}
var imageResource = &v1alpha1.PipelineResource{
ObjectMeta: metav1.ObjectMeta{
Name: "image-resource",
Namespace: "foo",
},
Spec: v1alpha1.PipelineResourceSpec{
Type: "image",
Params: []v1alpha1.Param{
{
Name: "URL",
Value: "gcr.io/kristoff/sven",
},
},
},
}
func getToolsVolume(claimName string) corev1.Volume {
return corev1.Volume{
Name: toolsMountName,
VolumeSource: corev1.VolumeSource{
PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
ClaimName: claimName,
},
},
}
}
func getRunName(tr *v1alpha1.TaskRun) string {
return strings.Join([]string{tr.Namespace, tr.Name}, "/")
}
func TestReconcile(t *testing.T) {
taskruns := []*v1alpha1.TaskRun{
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: simpleTask.Name,
APIVersion: "a1",
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-with-sa-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
ServiceAccount: "test-sa",
TaskRef: v1alpha1.TaskRef{
Name: saTask.Name,
APIVersion: "a1",
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: templatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Params: []v1alpha1.Param{
{
Name: "myarg",
Value: "foo",
},
},
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: "workspace",
},
},
},
Outputs: v1alpha1.TaskRunOutputs{
Resources: []v1alpha1.TaskRunResourceVersion{{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: "image-resource",
APIVersion: "a1",
},
Version: "myversion",
Name: "myimage",
}},
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-overrides-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: defaultTemplatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Params: []v1alpha1.Param{
{
Name: "myarg",
Value: "foo",
},
},
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: gitResource.Name,
},
},
},
},
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-default-templating",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: defaultTemplatedTask.Name,
APIVersion: "a1",
},
Inputs: v1alpha1.TaskRunInputs{
Resources: []v1alpha1.TaskRunResourceVersion{
{
ResourceRef: v1alpha1.PipelineResourceRef{
Name: gitResource.Name,
APIVersion: "a1",
},
Version: "myversion",
Name: gitResource.Name,
},
},
},
},
},
}
d := test.Data{
TaskRuns: taskruns,
Tasks: []*v1alpha1.Task{simpleTask, saTask, templatedTask, defaultTemplatedTask},
PipelineResources: []*v1alpha1.PipelineResource{gitResource, imageResource},
}
testcases := []struct {
name string
taskRun *v1alpha1.TaskRun
wantedBuildSpec buildv1alpha1.BuildSpec
}{
{
name: "success",
taskRun: taskruns[0],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "simple-step",
Image: "foo",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[0].Name),
},
},
},
{
name: "serviceaccount",
taskRun: taskruns[1],
wantedBuildSpec: buildv1alpha1.BuildSpec{
ServiceAccountName: "test-sa",
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "sa-step",
Image: "foo",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[1].Name),
},
},
},
{
name: "params",
taskRun: taskruns[2],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Source: &buildv1alpha1.SourceSpec{
Git: &buildv1alpha1.GitSourceSpec{
Url: "https://foo.git",
Revision: "myversion",
},
},
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=foo","--my-additional-arg=gcr.io/kristoff/sven"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https://foo.git"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[2].Name),
},
},
},
{
name: "input-overrides-default-params",
taskRun: taskruns[3],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=foo"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https://foo.git"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[3].Name),
},
},
},
{
name: "default-params",
taskRun: taskruns[4],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Steps: []corev1.Container{
entrypointCopyStep,
{
Name: "mycontainer",
Image: "myimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["/mycmd","--my-arg=mydefault"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
{
Name: "myothercontainer",
Image: "myotherimage",
Command: []string{entrypointLocation},
Args: []string{},
Env: []corev1.EnvVar{
{
Name: "ENTRYPOINT_OPTIONS",
Value: `{"args":["--my-other-arg=https://foo.git"],"process_log":"/tools/process-log.txt","marker_file":"/tools/marker-file.txt"}`,
},
},
VolumeMounts: []corev1.VolumeMount{toolsMount},
},
},
Volumes: []corev1.Volume{
getToolsVolume(taskruns[4].Name),
},
},
},
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
c, _, clients := test.GetTaskRunController(d)
if err := c.Reconciler.Reconcile(context.Background(), getRunName(tc.taskRun)); err != nil {
t.Errorf("expected no error. Got error %v", err)
}
if len(clients.Build.Actions()) == 0 {
t.Errorf("Expected actions to be logged in the buildclient, got none")
}
// check error
build, err := clients.Build.BuildV1alpha1().Builds(tc.taskRun.Namespace).Get(tc.taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Failed to fetch build: %v", err)
}
if d := cmp.Diff(build.Spec, tc.wantedBuildSpec); d != "" {
t.Errorf("buildspec doesn't match, diff: %s", d)
}
// This TaskRun is in progress now and the status should reflect that
condition := tc.taskRun.Status.GetCondition(duckv1alpha1.ConditionSucceeded)
if condition == nil || condition.Status != corev1.ConditionUnknown {
t.Errorf("Expected invalid TaskRun to have in progress status, but had %v", condition)
}
if condition != nil && condition.Reason != taskrun.ReasonRunning {
t.Errorf("Expected reason %q but was %s", taskrun.ReasonRunning, condition.Reason)
}
namespace, name, err := cache.SplitMetaNamespaceKey(tc.taskRun.Name)
if err != nil {
t.Errorf("Invalid resource key: %v", err)
}
//Command, Args, Env, VolumeMounts
if len(clients.Kube.Actions()) == 0 {
t.Fatalf("Expected actions to be logged in the kubeclient, got none")
}
// 3. check that volume was created
pvc, err := clients.Kube.CoreV1().PersistentVolumeClaims(namespace).Get(name, metav1.GetOptions{})
if err != nil {
t.Errorf("Failed to fetch build: %v", err)
}
// get related TaskRun to populate expected PVC
tr, err := clients.Pipeline.PipelineV1alpha1().TaskRuns(namespace).Get(name, metav1.GetOptions{})
if err != nil {
t.Errorf("Failed to fetch build: %v", err)
}
expectedVolume := getExpectedPVC(tr)
if d := cmp.Diff(pvc.Name, expectedVolume.Name); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if d := cmp.Diff(pvc.OwnerReferences, expectedVolume.OwnerReferences); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if d := cmp.Diff(pvc.Spec.AccessModes, expectedVolume.Spec.AccessModes); d != "" {
t.Errorf("pvc doesn't match, diff: %s", d)
}
if pvc.Spec.Resources.Requests["storage"] != expectedVolume.Spec.Resources.Requests["storage"] {
t.Errorf("pvc doesn't match, got: %v, expected: %v",
pvc.Spec.Resources.Requests["storage"],
expectedVolume.Spec.Resources.Requests["storage"])
}
})
}
}
func TestReconcile_InvalidTaskRuns(t *testing.T) {
taskRuns := []*v1alpha1.TaskRun{
&v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "notaskrun",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "notask",
APIVersion: "a1",
},
},
},
}
tasks := []*v1alpha1.Task{
simpleTask,
}
d := test.Data{
TaskRuns: taskRuns,
Tasks: tasks,
}
testcases := []struct {
name string
taskRun *v1alpha1.TaskRun
reason string
}{
{
name: "task run with no task",
taskRun: taskRuns[0],
reason: taskrun.ReasonFailedValidation,
},
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
c, _, clients := test.GetTaskRunController(d)
err := c.Reconciler.Reconcile(context.Background(), getRunName(tc.taskRun))
// When a TaskRun is invalid and can't run, we don't want to return an error because
// an error will tell the Reconciler to keep trying to reconcile; instead we want to stop
// and forget about the Run.
if err != nil {
t.Errorf("Did not expect to see error when reconciling invalid TaskRun but saw %q", err)
}
if len(clients.Build.Actions()) != 0 {
t.Errorf("expected no actions created by the reconciler, got %v", clients.Build.Actions())
}
// Since the TaskRun is invalid, the status should say it has failed
condition := tc.taskRun.Status.GetCondition(duckv1alpha1.ConditionSucceeded)
if condition == nil || condition.Status != corev1.ConditionFalse {
t.Errorf("Expected invalid TaskRun to have failed status, but had %v", condition)
}
if condition != nil && condition.Reason != tc.reason {
t.Errorf("Expected failure to be because of reason %q but was %s", tc.reason, condition.Reason)
}
})
}
}
func TestReconcileBuildFetchError(t *testing.T) {
taskRun := &v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "test-task",
APIVersion: "a1",
},
},
}
d := test.Data{
TaskRuns: []*v1alpha1.TaskRun{
taskRun,
},
Tasks: []*v1alpha1.Task{simpleTask},
}
c, _, clients := test.GetTaskRunController(d)
reactor := func(action ktesting.Action) (handled bool, ret runtime.Object, err error) {
if action.GetVerb() == "get" && action.GetResource().Resource == "builds" {
// handled fetching builds
return true, nil, fmt.Errorf("induce failure fetching builds")
}
return false, nil, nil
}
clients.Build.PrependReactor("*", "*", reactor)
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err == nil {
t.Fatal("expected error when reconciling a Task for which we couldn't get the corresponding Build but got nil")
}
}
func TestReconcileBuildUpdateStatus(t *testing.T) {
taskRun := &v1alpha1.TaskRun{
ObjectMeta: metav1.ObjectMeta{
Name: "test-taskrun-run-success",
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
Name: "test-task",
APIVersion: "a1",
},
},
}
build := &buildv1alpha1.Build{
ObjectMeta: metav1.ObjectMeta{
Name: taskRun.Name,
Namespace: taskRun.Namespace,
},
Spec: *simpleTask.Spec.BuildSpec,
}
buildSt := &duckv1alpha1.Condition{
Type: duckv1alpha1.ConditionSucceeded,
// build is not completed
Status: corev1.ConditionUnknown,
Message: "Running build",
}
build.Status.SetCondition(buildSt)
d := test.Data{
TaskRuns: []*v1alpha1.TaskRun{
taskRun,
},
Tasks: []*v1alpha1.Task{simpleTask},
Builds: []*buildv1alpha1.Build{build},
}
c, _, clients := test.GetTaskRunController(d)
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err != nil {
t.Fatalf("Unexpected error when Reconcile() : %v", err)
}
newTr, err := clients.Pipeline.PipelineV1alpha1().TaskRuns(taskRun.Namespace).Get(taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Expected TaskRun %s to exist but instead got error when getting it: %v", taskRun.Name, err)
}
var ignoreLastTransitionTime = cmpopts.IgnoreTypes(duckv1alpha1.Condition{}.LastTransitionTime.Inner.Time)
if d := cmp.Diff(newTr.Status.GetCondition(duckv1alpha1.ConditionSucceeded), buildSt, ignoreLastTransitionTime); d != "" {
t.Fatalf("-want, +got: %v", d)
}
// update build status and trigger reconcile
buildSt.Status = corev1.ConditionTrue
buildSt.Message = "Build completed"
build.Status.SetCondition(buildSt)
_, err = clients.Build.BuildV1alpha1().Builds(taskRun.Namespace).Update(build)
if err != nil {
t.Errorf("Unexpected error while creating build: %v", err)
}
if err := c.Reconciler.Reconcile(context.Background(), fmt.Sprintf("%s/%s", taskRun.Namespace, taskRun.Name)); err != nil {
t.Fatalf("Unexpected error when Reconcile(): %v", err)
}
newTr, err = clients.Pipeline.PipelineV1alpha1().TaskRuns(taskRun.Namespace).Get(taskRun.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Unexpected error fetching taskrun: %v", err)
}
if d := cmp.Diff(newTr.Status.GetCondition(duckv1alpha1.ConditionSucceeded), buildSt, ignoreLastTransitionTime); d != "" {
t.Errorf("Taskrun Status diff -want, +got: %v", d)
}
}
| [
5786,
3339,
2650,
65,
1028,
188,
188,
4747,
280,
188,
187,
4,
1609,
4,
188,
187,
4,
6137,
4,
188,
187,
4,
4342,
4,
188,
188,
187,
4,
2763,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
2735,
17,
2035,
15,
3109,
17,
3109,
4,
188,
187,
4,
3140,
16,
817,
17,
2735,
17,
2035,
15,
3109,
17,
3109,
17,
3109,
4573,
4,
188,
187,
4,
3140,
16,
817,
17,
77,
8024,
17,
3216,
15,
10372,
17,
5090,
17,
8848,
17,
10372,
17,
88,
19,
4806,
19,
4,
188,
187,
4,
3140,
16,
817,
17,
77,
8024,
17,
3216,
15,
10372,
17,
5090,
17,
251,
42062,
17,
88,
19,
4806,
19,
17,
3010,
2650,
4,
188,
187,
4,
3140,
16,
817,
17,
77,
8024,
17,
3216,
15,
10372,
17,
5090,
17,
251,
42062,
17,
88,
19,
4806,
19,
17,
3010,
2650,
17,
5892,
4,
188,
187,
4,
3140,
16,
817,
17,
77,
8024,
17,
3216,
15,
10372,
17,
1028,
4,
188,
187,
3216,
88,
19,
4806,
19,
312,
3140,
16,
817,
17,
77,
8024,
17,
3216,
17,
5090,
17,
8848,
17,
3216,
17,
88,
19,
4806,
19,
4,
188,
187,
49223,
88,
19,
4806,
19,
312,
3140,
16,
817,
17,
77,
8024,
17,
5090,
17,
8848,
17,
49223,
17,
88,
19,
4806,
19,
4,
188,
187,
23410,
19,
312,
77,
26,
85,
16,
626,
17,
1791,
17,
1576,
17,
88,
19,
4,
188,
187,
4,
77,
26,
85,
16,
626,
17,
10079,
17,
5090,
17,
1791,
17,
2683,
4,
188,
187,
14926,
19,
312,
77,
26,
85,
16,
626,
17,
10079,
17,
5090,
17,
8848,
17,
4671,
17,
88,
19,
4,
188,
187,
4,
77,
26,
85,
16,
626,
17,
10079,
17,
5090,
17,
3915,
4,
188,
187,
4,
77,
26,
85,
16,
626,
17,
10079,
17,
5090,
17,
3915,
17,
5270,
4,
188,
187,
77,
4342,
312,
77,
26,
85,
16,
626,
17,
1617,
15,
2035,
17,
4342,
4,
188,
187,
4,
77,
26,
85,
16,
626,
17,
1617,
15,
2035,
17,
7138,
17,
2091,
4,
188,
11,
188,
188,
828,
280,
188,
187,
1578,
2013,
3401,
260,
6164,
16,
28680,
93,
188,
187,
187,
1665,
28,
209,
209,
325,
19,
4806,
19,
16,
50098,
16,
1665,
14,
188,
187,
187,
2013,
28,
325,
19,
4806,
19,
16,
50098,
16,
2013,
14,
188,
187,
187,
3401,
28,
209,
209,
209,
312,
2915,
3103,
347,
188,
187,
95,
188,
11,
188,
188,
819,
280,
188,
187,
20911,
36561,
2935,
260,
4273,
7138,
17,
20911,
36561,
4,
188,
187,
7138,
11968,
613,
209,
209,
209,
209,
260,
312,
7138,
4,
188,
187,
82,
3910,
48521,
209,
209,
209,
209,
209,
209,
260,
915,
258,
6667,
258,
6667,
258,
6667,
209,
188,
11,
188,
188,
828,
17482,
11968,
260,
43106,
19,
16,
4478,
11968,
93,
188,
187,
613,
28,
209,
209,
209,
209,
209,
17482,
11968,
613,
14,
188,
187,
11968,
1461,
28,
4273,
7138,
347,
188,
95,
188,
188,
828,
2511,
84,
36561,
3194,
5668,
260,
43106,
19,
16,
3487,
93,
188,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
209,
312,
2123,
15,
7138,
347,
188,
187,
2395,
28,
209,
209,
209,
209,
209,
209,
209,
6791,
16,
762,
333,
36561,
2395,
14,
188,
187,
2710,
28,
209,
209,
209,
209,
209,
1397,
530,
2315,
17,
4247,
17,
885,
1782,
188,
187,
3566,
28,
209,
209,
209,
209,
209,
209,
209,
209,
1397,
530,
2315,
17,
20911,
36561,
347,
2511,
84,
36561,
2935,
519,
188,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
95,
188,
188,
1857,
740,
7415,
50,
5140,
10,
333,
258,
88,
19,
4806,
19,
16,
2915,
3103,
11,
258,
23410,
19,
16,
35737,
275,
188,
187,
397,
396,
23410,
19,
16,
35737,
93,
188,
187,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
350,
187,
5309,
28,
585,
16,
5309,
14,
188,
188,
350,
187,
613,
28,
585,
16,
613,
14,
188,
350,
187,
49590,
28,
1397,
14926,
19,
16,
6624,
3611,
93,
188,
2054,
187,
12,
14926,
19,
16,
1888,
4109,
1990,
10,
333,
14,
2506,
2013,
3401,
399,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
2515,
28,
43106,
19,
16,
35737,
2515,
93,
188,
350,
187,
2387,
17791,
28,
1397,
23410,
19,
16,
22470,
32566,
93,
188,
2054,
187,
23410,
19,
16,
7244,
12209,
14,
188,
350,
187,
519,
188,
350,
187,
6883,
28,
43106,
19,
16,
2019,
26198,
93,
188,
2054,
187,
10882,
28,
1929,
61,
23410,
19,
16,
25047,
63,
2683,
16,
16489,
93,
188,
1263,
187,
23410,
19,
16,
2019,
4166,
28,
258,
2683,
16,
1888,
16489,
10,
82,
3910,
48521,
14,
2503,
16,
6732,
618,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
95,
188,
188,
828,
6469,
2915,
260,
396,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
2515,
93,
188,
187,
187,
5343,
2515,
28,
396,
3216,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
350,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
312,
7143,
15,
4131,
347,
188,
1263,
187,
2395,
28,
209,
209,
312,
3856,
347,
188,
1263,
187,
2710,
28,
1397,
530,
2315,
17,
2737,
1602,
1782,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
828,
9228,
2915,
260,
396,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3022,
15,
2559,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
2515,
93,
188,
187,
187,
5343,
2515,
28,
396,
3216,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
350,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
312,
2559,
15,
4131,
347,
188,
1263,
187,
2395,
28,
209,
209,
312,
3856,
347,
188,
1263,
187,
2710,
28,
1397,
530,
2315,
17,
2737,
1602,
1782,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
828,
40179,
783,
2915,
260,
396,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
15,
3022,
15,
38065,
2536,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
2515,
93,
188,
187,
187,
14576,
28,
396,
88,
19,
4806,
19,
16,
14576,
93,
188,
350,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
2019,
4107,
188,
2054,
187,
613,
28,
312,
16375,
347,
188,
2054,
187,
563,
28,
312,
9466,
347,
188,
350,
187,
2598,
188,
187,
187,
519,
188,
187,
187,
13823,
28,
396,
88,
19,
4806,
19,
16,
13823,
93,
188,
350,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
2019,
4107,
188,
2054,
187,
613,
28,
312,
2737,
2760,
347,
188,
2054,
187,
563,
28,
312,
2760,
347,
188,
350,
187,
2598,
188,
187,
187,
519,
188,
187,
187,
5343,
2515,
28,
396,
3216,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
350,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
1263,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
1263,
187,
2710,
28,
1397,
530,
2315,
17,
2737,
1602,
1782,
188,
1263,
187,
3566,
28,
1397,
530,
93,
188,
5520,
187,
47802,
2737,
15,
601,
30681,
9270,
16,
1989,
16,
2737,
601,
7494,
188,
5520,
187,
47802,
2737,
15,
16693,
15,
601,
30681,
12463,
16,
5892,
16,
2737,
2760,
16,
1837,
95,
1782,
188,
2054,
187,
519,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
312,
2737,
2994,
4222,
347,
188,
1263,
187,
2395,
28,
312,
2737,
2994,
2760,
347,
188,
1263,
187,
3566,
28,
209,
1397,
530,
2315,
270,
2737,
15,
2994,
15,
601,
30681,
9270,
16,
5892,
16,
16375,
16,
1837,
95,
1782,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
828,
1448,
2388,
824,
783,
2915,
260,
396,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
15,
3022,
15,
1509,
15,
38065,
2536,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
2515,
93,
188,
187,
187,
14576,
28,
396,
88,
19,
4806,
19,
16,
14576,
93,
188,
350,
187,
2911,
28,
1397,
88,
19,
4806,
19,
16,
2915,
3082,
93,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
312,
2737,
601,
347,
188,
1263,
187,
3906,
28,
312,
2737,
1418,
347,
188,
1263,
187,
2320,
28,
209,
209,
209,
209,
312,
2737,
1509,
347,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
5343,
2515,
28,
396,
3216,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
350,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
1263,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
1263,
187,
2710,
28,
1397,
530,
2315,
17,
2737,
1602,
1782,
188,
1263,
187,
3566,
28,
209,
209,
209,
1397,
530,
2315,
270,
2737,
15,
601,
30681,
9270,
16,
1989,
16,
2737,
601,
95,
1782,
188,
2054,
187,
519,
188,
2054,
187,
93,
188,
1263,
187,
613,
28,
209,
312,
2737,
2994,
4222,
347,
188,
1263,
187,
2395,
28,
312,
2737,
2994,
2760,
347,
188,
1263,
187,
3566,
28,
209,
1397,
530,
2315,
270,
2737,
15,
2994,
15,
601,
30681,
9270,
16,
5892,
16,
9466,
15,
2683,
16,
1837,
95,
1782,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
828,
19326,
2019,
260,
396,
88,
19,
4806,
19,
16,
9015,
2019,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
9466,
15,
2683,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
9015,
2019,
2515,
93,
188,
187,
187,
563,
28,
312,
9466,
347,
188,
187,
187,
2911,
28,
1397,
88,
19,
4806,
19,
16,
3082,
93,
188,
350,
187,
93,
188,
2054,
187,
613,
28,
209,
312,
3382,
347,
188,
2054,
187,
842,
28,
312,
4118,
28,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
828,
3113,
2019,
260,
396,
88,
19,
4806,
19,
16,
9015,
2019,
93,
188,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
187,
187,
613,
28,
209,
209,
209,
209,
209,
312,
2760,
15,
2683,
347,
188,
187,
187,
5309,
28,
312,
3856,
347,
188,
187,
519,
188,
187,
2515,
28,
325,
19,
4806,
19,
16,
9015,
2019,
2515,
93,
188,
187,
187,
563,
28,
312,
2760,
347,
188,
187,
187,
2911,
28,
1397,
88,
19,
4806,
19,
16,
3082,
93,
188,
350,
187,
93,
188,
2054,
187,
613,
28,
209,
312,
3382,
347,
188,
2054,
187,
842,
28,
312,
73,
2082,
16,
626,
17,
16528,
404,
2491,
17,
3202,
259,
347,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
519,
188,
95,
188,
188,
1857,
740,
10707,
4478,
10,
12532,
613,
776,
11,
43106,
19,
16,
4478,
275,
188,
187,
397,
43106,
19,
16,
4478,
93,
188,
187,
187,
613,
28,
17482,
11968,
613,
14,
188,
187,
187,
15564,
28,
43106,
19,
16,
15564,
93,
188,
350,
187,
35737,
28,
396,
23410,
19,
16,
35737,
15564,
93,
188,
2054,
187,
16207,
613,
28,
18306,
613,
14,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
95,
188,
188,
1857,
740,
3103,
613,
10,
333,
258,
88,
19,
4806,
19,
16,
2915,
3103,
11,
776,
275,
188,
187,
397,
4440,
16,
6675,
4661,
530,
93,
333,
16,
5309,
14,
585,
16,
613,
519,
41826,
188,
95,
188,
188,
1857,
2214,
410,
33106,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
28674,
721,
8112,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
2650,
15,
6369,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
6469,
2915,
16,
613,
14,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
3022,
15,
2559,
15,
2650,
15,
6369,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
24853,
28,
312,
1028,
15,
2559,
347,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
9228,
2915,
16,
613,
14,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
38065,
2536,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
40179,
783,
2915,
16,
613,
14,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
2054,
187,
14576,
28,
325,
19,
4806,
19,
16,
2915,
3103,
14576,
93,
188,
1263,
187,
2911,
28,
1397,
88,
19,
4806,
19,
16,
3082,
93,
188,
5520,
187,
93,
188,
8446,
187,
613,
28,
209,
312,
2737,
601,
347,
188,
8446,
187,
842,
28,
312,
3856,
347,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
1263,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
3103,
35500,
93,
188,
5520,
187,
93,
188,
8446,
187,
2019,
1990,
28,
325,
19,
4806,
19,
16,
9015,
2019,
1990,
93,
188,
11137,
187,
613,
28,
209,
209,
209,
209,
209,
209,
19326,
2019,
16,
613,
14,
188,
11137,
187,
25049,
28,
312,
67,
19,
347,
188,
8446,
187,
519,
188,
8446,
187,
2013,
28,
312,
2737,
1814,
347,
188,
8446,
187,
613,
28,
209,
209,
209,
312,
16375,
347,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
13823,
28,
325,
19,
4806,
19,
16,
2915,
3103,
13823,
93,
188,
1263,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
3103,
35500,
4107,
188,
5520,
187,
2019,
1990,
28,
325,
19,
4806,
19,
16,
9015,
2019,
1990,
93,
188,
8446,
187,
613,
28,
209,
209,
209,
209,
209,
209,
312,
2760,
15,
2683,
347,
188,
8446,
187,
25049,
28,
312,
67,
19,
347,
188,
5520,
187,
519,
188,
5520,
187,
2013,
28,
312,
2737,
1814,
347,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2760,
347,
188,
1263,
187,
2598,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
31934,
15,
1509,
15,
38065,
2536,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
1448,
2388,
824,
783,
2915,
16,
613,
14,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
2054,
187,
14576,
28,
325,
19,
4806,
19,
16,
2915,
3103,
14576,
93,
188,
1263,
187,
2911,
28,
1397,
88,
19,
4806,
19,
16,
3082,
93,
188,
5520,
187,
93,
188,
8446,
187,
613,
28,
209,
312,
2737,
601,
347,
188,
8446,
187,
842,
28,
312,
3856,
347,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
1263,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
3103,
35500,
93,
188,
5520,
187,
93,
188,
8446,
187,
2019,
1990,
28,
325,
19,
4806,
19,
16,
9015,
2019,
1990,
93,
188,
11137,
187,
613,
28,
209,
209,
209,
209,
209,
209,
19326,
2019,
16,
613,
14,
188,
11137,
187,
25049,
28,
312,
67,
19,
347,
188,
8446,
187,
519,
188,
8446,
187,
2013,
28,
312,
2737,
1814,
347,
188,
8446,
187,
613,
28,
209,
209,
209,
19326,
2019,
16,
613,
14,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
1509,
15,
38065,
2536,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
1448,
2388,
824,
783,
2915,
16,
613,
14,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
2054,
187,
14576,
28,
325,
19,
4806,
19,
16,
2915,
3103,
14576,
93,
188,
1263,
187,
6883,
28,
1397,
88,
19,
4806,
19,
16,
2915,
3103,
35500,
93,
188,
5520,
187,
93,
188,
8446,
187,
2019,
1990,
28,
325,
19,
4806,
19,
16,
9015,
2019,
1990,
93,
188,
11137,
187,
613,
28,
209,
209,
209,
209,
209,
209,
19326,
2019,
16,
613,
14,
188,
11137,
187,
25049,
28,
312,
67,
19,
347,
188,
8446,
187,
519,
188,
8446,
187,
2013,
28,
312,
2737,
1814,
347,
188,
8446,
187,
613,
28,
209,
209,
209,
19326,
2019,
16,
613,
14,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
70,
721,
1086,
16,
883,
93,
188,
187,
187,
2915,
28229,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
3339,
28674,
14,
188,
187,
187,
9452,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
8112,
88,
19,
4806,
19,
16,
2915,
93,
7143,
2915,
14,
9228,
2915,
14,
40179,
783,
2915,
14,
1448,
2388,
824,
783,
2915,
519,
188,
187,
187,
9015,
6883,
28,
8112,
88,
19,
4806,
19,
16,
9015,
2019,
93,
9466,
2019,
14,
3113,
2019,
519,
188,
187,
95,
188,
187,
1028,
19642,
721,
1397,
393,
275,
188,
187,
187,
579,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
188,
187,
187,
3010,
3103,
209,
209,
209,
209,
209,
209,
209,
209,
258,
88,
19,
4806,
19,
16,
2915,
3103,
188,
187,
187,
26339,
5343,
2515,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
6369,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
18,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
7143,
15,
4131,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
3856,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
18,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
3627,
6246,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
19,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
24853,
613,
28,
312,
1028,
15,
2559,
347,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2559,
15,
4131,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
3856,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
19,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
1989,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
20,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
2109,
28,
396,
3216,
88,
19,
4806,
19,
16,
2109,
2515,
93,
188,
1263,
187,
19189,
28,
396,
3216,
88,
19,
4806,
19,
16,
19189,
2109,
2515,
93,
188,
5520,
187,
3681,
28,
209,
209,
209,
209,
209,
312,
4118,
28,
188,
5520,
187,
10000,
28,
312,
2737,
1814,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
886,
270,
2737,
15,
601,
31,
3856,
886,
270,
2737,
15,
16693,
15,
601,
31,
73,
2082,
16,
626,
17,
16528,
404,
2491,
17,
3202,
259,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2994,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2994,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
270,
2737,
15,
2994,
15,
601,
31,
4118,
28,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
20,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
1624,
15,
31934,
15,
1509,
15,
1989,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
21,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
886,
270,
2737,
15,
601,
31,
3856,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2994,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2994,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
270,
2737,
15,
2994,
15,
601,
31,
4118,
28,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
21,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
1509,
15,
1989,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
22,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
886,
270,
2737,
15,
601,
31,
2737,
1509,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2994,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2994,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
270,
2737,
15,
2994,
15,
601,
31,
4118,
28,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
22,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
529,
2426,
8106,
721,
2068,
1086,
19642,
275,
188,
187,
187,
86,
16,
3103,
10,
3478,
16,
579,
14,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
350,
187,
285,
497,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
740,
3103,
613,
10,
3478,
16,
3010,
3103,
619,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
2297,
1463,
790,
16,
25595,
790,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
1005,
10,
19219,
16,
5343,
16,
9563,
1202,
489,
257,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
11184,
384,
523,
21325,
353,
306,
4117,
1617,
14,
5604,
8562,
866,
188,
350,
187,
95,
188,
188,
350,
187,
3216,
14,
497,
721,
14462,
16,
5343,
16,
5343,
56,
19,
4806,
19,
1033,
5343,
85,
10,
3478,
16,
3010,
3103,
16,
5309,
717,
901,
10,
3478,
16,
3010,
3103,
16,
613,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
8409,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
3216,
16,
2515,
14,
8106,
16,
26339,
5343,
2515,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
3216,
2262,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
188,
350,
187,
7485,
721,
8106,
16,
3010,
3103,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
11,
188,
350,
187,
285,
6474,
489,
869,
875,
6474,
16,
1574,
598,
43106,
19,
16,
5699,
4864,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
3918,
6296,
3103,
384,
1447,
353,
8403,
1941,
14,
1652,
12693,
690,
88,
347,
6474,
11,
188,
350,
187,
95,
188,
350,
187,
285,
6474,
598,
869,
692,
6474,
16,
8641,
598,
3339,
2650,
16,
8641,
12247,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
6628,
690,
83,
1652,
2257,
690,
85,
347,
3339,
2650,
16,
8641,
12247,
14,
6474,
16,
8641,
11,
188,
350,
187,
95,
188,
188,
350,
187,
5512,
14,
700,
14,
497,
721,
2964,
16,
7546,
3787,
5309,
1031,
10,
3478,
16,
3010,
3103,
16,
613,
11,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
2918,
2503,
1255,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
188,
350,
187,
285,
1005,
10,
19219,
16,
28015,
16,
9563,
1202,
489,
257,
275,
188,
2054,
187,
86,
16,
8409,
435,
7415,
11184,
384,
523,
21325,
353,
306,
26179,
1617,
14,
5604,
8562,
866,
188,
350,
187,
95,
188,
188,
350,
187,
82,
3910,
14,
497,
721,
14462,
16,
28015,
16,
49435,
19,
1033,
22470,
30326,
10,
5512,
717,
901,
10,
579,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
188,
350,
187,
333,
14,
497,
721,
14462,
16,
9015,
16,
9015,
56,
19,
4806,
19,
1033,
2915,
28229,
10,
5512,
717,
901,
10,
579,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
2297,
4478,
721,
740,
7415,
50,
5140,
10,
333,
11,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
613,
14,
2556,
4478,
16,
613,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
49590,
14,
2556,
4478,
16,
49590,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
2515,
16,
2387,
17791,
14,
2556,
4478,
16,
2515,
16,
2387,
17791,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
289,
3910,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
2678,
598,
2556,
4478,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
2678,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
5604,
28,
690,
88,
14,
2556,
28,
690,
88,
347,
188,
1263,
187,
82,
3910,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
4279,
188,
1263,
187,
2297,
4478,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
13015,
188,
350,
187,
95,
188,
187,
187,
1436,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
410,
33106,
65,
2918,
2915,
28229,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
28229,
721,
8112,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
8,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1718,
718,
2650,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
312,
1718,
718,
347,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
12348,
721,
8112,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
187,
7143,
2915,
14,
188,
187,
95,
188,
188,
187,
70,
721,
1086,
16,
883,
93,
188,
187,
187,
2915,
28229,
28,
3339,
28229,
14,
188,
187,
187,
9452,
28,
209,
209,
209,
12214,
14,
188,
187,
95,
188,
188,
187,
1028,
19642,
721,
1397,
393,
275,
188,
187,
187,
579,
209,
209,
209,
776,
188,
187,
187,
3010,
3103,
258,
88,
19,
4806,
19,
16,
2915,
3103,
188,
187,
187,
8452,
209,
776,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
3010,
2443,
670,
1463,
3339,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28229,
61,
18,
630,
188,
350,
187,
8452,
28,
209,
3339,
2650,
16,
8641,
4258,
7464,
14,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
529,
2426,
8106,
721,
2068,
1086,
19642,
275,
188,
187,
187,
86,
16,
3103,
10,
3478,
16,
579,
14,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
350,
187,
379,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
740,
3103,
613,
10,
3478,
16,
3010,
3103,
452,
188,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
17427,
655,
2992,
384,
3142,
790,
1655,
303,
16602,
15135,
3918,
6296,
3103,
1652,
38869,
690,
83,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
1005,
10,
19219,
16,
5343,
16,
9563,
1202,
598,
257,
275,
188,
2054,
187,
86,
16,
3587,
435,
2297,
1463,
11184,
4584,
683,
306,
303,
42062,
14,
5604,
690,
88,
347,
14462,
16,
5343,
16,
9563,
1202,
188,
350,
187,
95,
188,
188,
350,
187,
7485,
721,
8106,
16,
3010,
3103,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
11,
188,
350,
187,
285,
6474,
489,
869,
875,
6474,
16,
1574,
598,
43106,
19,
16,
5699,
4163,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
3918,
6296,
3103,
384,
1447,
2985,
1941,
14,
1652,
12693,
690,
88,
347,
6474,
11,
188,
350,
187,
95,
188,
350,
187,
285,
6474,
598,
869,
692,
6474,
16,
8641,
598,
8106,
16,
8452,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
5602,
384,
523,
3958,
427,
6628,
690,
83,
1652,
2257,
690,
85,
347,
8106,
16,
8452,
14,
6474,
16,
8641,
11,
188,
350,
187,
95,
188,
187,
187,
1436,
188,
187,
95,
188,
188,
95,
188,
188,
1857,
2214,
410,
33106,
5343,
11492,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
3103,
721,
396,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
350,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
2650,
15,
6369,
347,
188,
350,
187,
5309,
28,
312,
3856,
347,
188,
187,
187,
519,
188,
187,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
350,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
347,
188,
2054,
187,
25049,
28,
312,
67,
19,
347,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
70,
721,
1086,
16,
883,
93,
188,
187,
187,
2915,
28229,
28,
8112,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
350,
187,
3010,
3103,
14,
188,
187,
187,
519,
188,
187,
187,
9452,
28,
8112,
88,
19,
4806,
19,
16,
2915,
93,
7143,
2915,
519,
188,
187,
95,
188,
188,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
188,
187,
251,
3347,
721,
830,
10,
1548,
884,
4342,
16,
2271,
11,
280,
13481,
1019,
14,
1289,
5894,
16,
1026,
14,
497,
790,
11,
275,
188,
187,
187,
285,
3536,
16,
901,
21539,
336,
489,
312,
372,
4,
692,
3536,
16,
43776,
1033,
2019,
489,
312,
3216,
85,
4,
275,
188,
188,
350,
187,
397,
868,
14,
869,
14,
2764,
16,
3587,
435,
625,
12128,
5602,
39256,
23565,
866,
188,
187,
187,
95,
188,
187,
187,
397,
893,
14,
869,
14,
869,
188,
187,
95,
188,
188,
187,
19219,
16,
5343,
16,
2748,
4229,
43095,
22037,
347,
45572,
42564,
11,
188,
188,
187,
285,
497,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
2764,
16,
5696,
3297,
85,
9230,
85,
347,
3339,
3103,
16,
5309,
14,
3339,
3103,
16,
613,
619,
497,
489,
869,
275,
188,
187,
187,
86,
16,
5944,
435,
2297,
790,
1655,
303,
16602,
15135,
301,
6296,
446,
1767,
1020,
28153,
1596,
740,
306,
6388,
7962,
1652,
5604,
869,
866,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
410,
33106,
5343,
2574,
1574,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
3103,
721,
396,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
350,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
2650,
15,
2650,
15,
6369,
347,
188,
350,
187,
5309,
28,
312,
3856,
347,
188,
187,
187,
519,
188,
187,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
350,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
209,
312,
1028,
15,
3010,
347,
188,
2054,
187,
25049,
28,
312,
67,
19,
347,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
3216,
721,
396,
3216,
88,
19,
4806,
19,
16,
5343,
93,
188,
187,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
350,
187,
613,
28,
209,
209,
209,
209,
209,
3339,
3103,
16,
613,
14,
188,
350,
187,
5309,
28,
3339,
3103,
16,
5309,
14,
188,
187,
187,
519,
188,
187,
187,
2515,
28,
258,
7143,
2915,
16,
2515,
16,
5343,
2515,
14,
188,
187,
95,
188,
187,
3216,
511,
721,
396,
49223,
88,
19,
4806,
19,
16,
5699,
93,
188,
187,
187,
563,
28,
349,
1806,
88,
19,
4806,
19,
16,
5699,
25445,
14,
188,
188,
187,
187,
1574,
28,
209,
43106,
19,
16,
5699,
4864,
14,
188,
187,
187,
1564,
28,
312,
12247,
4117,
347,
188,
187,
95,
188,
187,
3216,
16,
1574,
16,
853,
5699,
10,
3216,
511,
11,
188,
187,
70,
721,
1086,
16,
883,
93,
188,
187,
187,
2915,
28229,
28,
8112,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
350,
187,
3010,
3103,
14,
188,
187,
187,
519,
188,
187,
187,
9452,
28,
209,
8112,
88,
19,
4806,
19,
16,
2915,
93,
7143,
2915,
519,
188,
187,
187,
5343,
85,
28,
8112,
3216,
88,
19,
4806,
19,
16,
5343,
93,
3216,
519,
188,
187,
95,
188,
188,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
188,
187,
285,
497,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
2764,
16,
5696,
3297,
85,
9230,
85,
347,
3339,
3103,
16,
5309,
14,
3339,
3103,
16,
613,
619,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
4781,
790,
1655,
807,
33106,
336,
477,
690,
88,
347,
497,
11,
188,
187,
95,
188,
187,
1002,
960,
14,
497,
721,
14462,
16,
9015,
16,
9015,
56,
19,
4806,
19,
1033,
2915,
28229,
10,
3010,
3103,
16,
5309,
717,
901,
10,
3010,
3103,
16,
613,
14,
13205,
19,
16,
30137,
5494,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
7415,
6296,
3103,
690,
85,
384,
4092,
1652,
4712,
5604,
790,
1655,
13721,
656,
28,
690,
88,
347,
3339,
3103,
16,
613,
14,
497,
11,
188,
187,
95,
188,
187,
828,
4537,
43863,
260,
11390,
4573,
16,
7378,
2963,
10,
49223,
88,
19,
4806,
19,
16,
5699,
30323,
43863,
16,
8391,
16,
1136,
11,
188,
187,
285,
349,
721,
11390,
16,
8407,
10,
1002,
960,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
399,
4117,
511,
14,
4537,
43863,
267,
349,
598,
3985,
275,
188,
187,
187,
86,
16,
8409,
11986,
9267,
14,
431,
9308,
28,
690,
88,
347,
349,
11,
188,
187,
95,
188,
188,
187,
3216,
511,
16,
1574,
260,
43106,
19,
16,
5699,
2898,
188,
187,
3216,
511,
16,
1564,
260,
312,
5343,
8984,
4,
188,
187,
3216,
16,
1574,
16,
853,
5699,
10,
3216,
511,
11,
188,
188,
187,
2256,
497,
260,
14462,
16,
5343,
16,
5343,
56,
19,
4806,
19,
1033,
5343,
85,
10,
3010,
3103,
16,
5309,
717,
2574,
10,
3216,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
3587,
435,
4781,
790,
2027,
8413,
4117,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
188,
187,
285,
497,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
2764,
16,
5696,
3297,
85,
9230,
85,
347,
3339,
3103,
16,
5309,
14,
3339,
3103,
16,
613,
619,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
4781,
790,
1655,
807,
33106,
3721,
690,
88,
347,
497,
11,
188,
187,
95,
188,
188,
187,
1002,
960,
14,
497,
260,
14462,
16,
9015,
16,
9015,
56,
19,
4806,
19,
1033,
2915,
28229,
10,
3010,
3103,
16,
5309,
717,
901,
10,
3010,
3103,
16,
613,
14,
13205,
19,
16,
30137,
5494,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
86,
16,
8409,
435,
4781,
790,
39256,
3339,
2650,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
187,
285,
349,
721,
11390,
16,
8407,
10,
1002,
960,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
399,
4117,
511,
14,
4537,
43863,
267,
349,
598,
3985,
275,
188,
187,
187,
86,
16,
3587,
435,
2915,
2650,
4343,
7144,
418,
9267,
14,
431,
9308,
28,
690,
88,
347,
349,
11,
188,
187,
95,
188,
95
] | [
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2994,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2994,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
270,
2737,
15,
2994,
15,
601,
31,
4118,
28,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
21,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
1509,
15,
1989,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28674,
61,
22,
630,
188,
350,
187,
26339,
5343,
2515,
28,
4117,
88,
19,
4806,
19,
16,
5343,
2515,
93,
188,
2054,
187,
19709,
28,
1397,
23410,
19,
16,
3487,
93,
188,
1263,
187,
20911,
36561,
3194,
5668,
14,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
17,
2737,
1602,
886,
270,
2737,
15,
601,
31,
2737,
1509,
24732,
2919,
65,
1151,
2519,
17,
7138,
17,
2919,
15,
1151,
16,
3789,
886,
10389,
65,
933,
2519,
17,
7138,
17,
10389,
15,
933,
16,
3789,
6629,
3838,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
613,
28,
209,
209,
209,
312,
2737,
2994,
4222,
347,
188,
5520,
187,
2395,
28,
209,
209,
312,
2737,
2994,
2760,
347,
188,
5520,
187,
2710,
28,
1397,
530,
93,
20911,
36561,
2935,
519,
188,
5520,
187,
3566,
28,
209,
209,
209,
1397,
530,
4364,
188,
5520,
187,
4495,
28,
1397,
23410,
19,
16,
38147,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
209,
312,
2969,
5506,
65,
13419,
347,
188,
11137,
187,
842,
28,
1083,
2315,
1770,
28796,
270,
2737,
15,
2994,
15,
601,
31,
4118,
28,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
5520,
187,
4478,
47745,
28,
1397,
23410,
19,
16,
4478,
11968,
93,
7138,
11968,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
2054,
187,
24076,
28,
1397,
23410,
19,
16,
4478,
93,
188,
1263,
187,
372,
10707,
4478,
10,
3010,
28674,
61,
22,
913,
613,
399,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
529,
2426,
8106,
721,
2068,
1086,
19642,
275,
188,
187,
187,
86,
16,
3103,
10,
3478,
16,
579,
14,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
350,
187,
285,
497,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
740,
3103,
613,
10,
3478,
16,
3010,
3103,
619,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
2297,
1463,
790,
16,
25595,
790,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
1005,
10,
19219,
16,
5343,
16,
9563,
1202,
489,
257,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
11184,
384,
523,
21325,
353,
306,
4117,
1617,
14,
5604,
8562,
866,
188,
350,
187,
95,
188,
188,
350,
187,
3216,
14,
497,
721,
14462,
16,
5343,
16,
5343,
56,
19,
4806,
19,
1033,
5343,
85,
10,
3478,
16,
3010,
3103,
16,
5309,
717,
901,
10,
3478,
16,
3010,
3103,
16,
613,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
8409,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
3216,
16,
2515,
14,
8106,
16,
26339,
5343,
2515,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
3216,
2262,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
188,
350,
187,
7485,
721,
8106,
16,
3010,
3103,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
11,
188,
350,
187,
285,
6474,
489,
869,
875,
6474,
16,
1574,
598,
43106,
19,
16,
5699,
4864,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
3918,
6296,
3103,
384,
1447,
353,
8403,
1941,
14,
1652,
12693,
690,
88,
347,
6474,
11,
188,
350,
187,
95,
188,
350,
187,
285,
6474,
598,
869,
692,
6474,
16,
8641,
598,
3339,
2650,
16,
8641,
12247,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
6628,
690,
83,
1652,
2257,
690,
85,
347,
3339,
2650,
16,
8641,
12247,
14,
6474,
16,
8641,
11,
188,
350,
187,
95,
188,
188,
350,
187,
5512,
14,
700,
14,
497,
721,
2964,
16,
7546,
3787,
5309,
1031,
10,
3478,
16,
3010,
3103,
16,
613,
11,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
2918,
2503,
1255,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
188,
350,
187,
285,
1005,
10,
19219,
16,
28015,
16,
9563,
1202,
489,
257,
275,
188,
2054,
187,
86,
16,
8409,
435,
7415,
11184,
384,
523,
21325,
353,
306,
26179,
1617,
14,
5604,
8562,
866,
188,
350,
187,
95,
188,
188,
350,
187,
82,
3910,
14,
497,
721,
14462,
16,
28015,
16,
49435,
19,
1033,
22470,
30326,
10,
5512,
717,
901,
10,
579,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
188,
350,
187,
333,
14,
497,
721,
14462,
16,
9015,
16,
9015,
56,
19,
4806,
19,
1033,
2915,
28229,
10,
5512,
717,
901,
10,
579,
14,
13205,
19,
16,
30137,
5494,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
4258,
384,
9066,
4117,
28,
690,
88,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
2297,
4478,
721,
740,
7415,
50,
5140,
10,
333,
11,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
613,
14,
2556,
4478,
16,
613,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
49590,
14,
2556,
4478,
16,
49590,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
349,
721,
11390,
16,
8407,
10,
82,
3910,
16,
2515,
16,
2387,
17791,
14,
2556,
4478,
16,
2515,
16,
2387,
17791,
267,
349,
598,
3985,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
7144,
28,
690,
85,
347,
349,
11,
188,
350,
187,
95,
188,
350,
187,
285,
289,
3910,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
2678,
598,
2556,
4478,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
2678,
275,
188,
2054,
187,
86,
16,
3587,
435,
82,
3910,
5068,
1596,
2366,
14,
5604,
28,
690,
88,
14,
2556,
28,
690,
88,
347,
188,
1263,
187,
82,
3910,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
4279,
188,
1263,
187,
2297,
4478,
16,
2515,
16,
6883,
16,
10882,
2107,
5129,
13015,
188,
350,
187,
95,
188,
187,
187,
1436,
188,
187,
95,
188,
95,
188,
188,
1857,
2214,
410,
33106,
65,
2918,
2915,
28229,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
28229,
721,
8112,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
8,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
350,
187,
10641,
28,
13205,
19,
16,
10641,
93,
188,
2054,
187,
613,
28,
209,
209,
209,
209,
209,
312,
1718,
718,
2650,
347,
188,
2054,
187,
5309,
28,
312,
3856,
347,
188,
350,
187,
519,
188,
350,
187,
2515,
28,
325,
19,
4806,
19,
16,
2915,
3103,
2515,
93,
188,
2054,
187,
2915,
1990,
28,
325,
19,
4806,
19,
16,
2915,
1990,
93,
188,
1263,
187,
613,
28,
209,
209,
209,
209,
209,
209,
312,
1718,
718,
347,
188,
1263,
187,
25049,
28,
312,
67,
19,
347,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
12348,
721,
8112,
88,
19,
4806,
19,
16,
2915,
93,
188,
187,
187,
7143,
2915,
14,
188,
187,
95,
188,
188,
187,
70,
721,
1086,
16,
883,
93,
188,
187,
187,
2915,
28229,
28,
3339,
28229,
14,
188,
187,
187,
9452,
28,
209,
209,
209,
12214,
14,
188,
187,
95,
188,
188,
187,
1028,
19642,
721,
1397,
393,
275,
188,
187,
187,
579,
209,
209,
209,
776,
188,
187,
187,
3010,
3103,
258,
88,
19,
4806,
19,
16,
2915,
3103,
188,
187,
187,
8452,
209,
776,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
579,
28,
209,
209,
209,
312,
3010,
2443,
670,
1463,
3339,
347,
188,
350,
187,
3010,
3103,
28,
3339,
28229,
61,
18,
630,
188,
350,
187,
8452,
28,
209,
3339,
2650,
16,
8641,
4258,
7464,
14,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
529,
2426,
8106,
721,
2068,
1086,
19642,
275,
188,
187,
187,
86,
16,
3103,
10,
3478,
16,
579,
14,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
69,
14,
2426,
14462,
721,
1086,
16,
901,
2915,
3103,
4109,
10,
70,
11,
188,
350,
187,
379,
721,
272,
16,
410,
42062,
16,
410,
33106,
10,
1609,
16,
7404,
833,
740,
3103,
613,
10,
3478,
16,
3010,
3103,
452,
188,
188,
350,
187,
285,
497,
598,
869,
275,
188,
2054,
187,
86,
16,
3587,
435,
17427,
655,
2992,
384,
3142,
790,
1655,
303,
16602,
15135,
3918,
6296,
3103,
1652,
38869,
690,
83,
347,
497,
11,
188,
350,
187,
95,
188,
350,
187,
285,
1005,
10,
19219,
16,
5343,
16,
9563,
1202,
598,
257,
275,
188,
2054,
187,
86,
16,
3587,
435,
2297,
1463,
11184,
4584,
683,
306,
303,
42062,
14,
5604,
690,
88,
347,
14462,
16,
5343,
16,
9563,
1202,
188,
350,
187,
95,
188,
188,
350,
187,
7485,
721,
8106,
16,
3010,
3103,
16,
1574,
16,
901,
5699,
10,
49223,
88,
19,
4806,
19,
16,
5699,
25445,
11,
188,
350,
187,
285,
6474,
489,
869,
875,
6474,
16,
1574,
598,
43106,
19,
16,
5699,
4163,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
3918,
6296,
3103,
384,
1447,
2985,
1941,
14,
1652,
12693,
690,
88,
347,
6474,
11,
188,
350,
187,
95,
188,
350,
187,
285,
6474,
598,
869,
692,
6474,
16,
8641,
598,
8106,
16,
8452,
275,
188,
2054,
187,
86,
16,
3587,
435,
7415,
5602,
384,
523,
3958,
427,
6628,
690,
83,
1652,
2257,
690,
85,
347,
8106,
16,
8452,
14,
6474,
16,
8641,
11,
188,
350,
187,
95,
188,
187,
187,
1436,
188,
187,
95,
188,
188,
95,
188,
188,
1857,
2214,
410,
33106,
5343,
11492,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
3010,
3103,
721,
396,
88,
19,
4806,
19,
16,
2915,
3103,
93,
188,
187,
187,
10641
] |
72,767 | package mwitkow_testproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "context"
grpc "google.golang.org/grpc"
)
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2
type Empty struct {
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type PingRequest struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
SleepTimeMs int32 `protobuf:"varint,2,opt,name=sleep_time_ms,json=sleepTimeMs" json:"sleep_time_ms,omitempty"`
ErrorCodeReturned uint32 `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned" json:"error_code_returned,omitempty"`
}
func (m *PingRequest) Reset() { *m = PingRequest{} }
func (m *PingRequest) String() string { return proto.CompactTextString(m) }
func (*PingRequest) ProtoMessage() {}
func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *PingRequest) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *PingRequest) GetSleepTimeMs() int32 {
if m != nil {
return m.SleepTimeMs
}
return 0
}
func (m *PingRequest) GetErrorCodeReturned() uint32 {
if m != nil {
return m.ErrorCodeReturned
}
return 0
}
type PingResponse struct {
Value string `protobuf:"bytes,1,opt,name=Value,json=value" json:"Value,omitempty"`
Counter int32 `protobuf:"varint,2,opt,name=counter" json:"counter,omitempty"`
}
func (m *PingResponse) Reset() { *m = PingResponse{} }
func (m *PingResponse) String() string { return proto.CompactTextString(m) }
func (*PingResponse) ProtoMessage() {}
func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *PingResponse) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *PingResponse) GetCounter() int32 {
if m != nil {
return m.Counter
}
return 0
}
func init() {
proto.RegisterType((*Empty)(nil), "mwitkow.testproto.Empty")
proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest")
proto.RegisterType((*PingResponse)(nil), "mwitkow.testproto.PingResponse")
}
var _ context.Context
var _ grpc.ClientConn
const _ = grpc.SupportPackageIsVersion4
type TestServiceClient interface {
PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error)
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error)
PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error)
PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error)
}
type testServiceClient struct {
cc *grpc.ClientConn
}
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient {
return &testServiceClient{cc}
}
func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) {
out := new(PingResponse)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/PingEmpty", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
out := new(PingResponse)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/Ping", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/PingError", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) {
stream, err := grpc.NewClientStream(ctx, &_TestService_serviceDesc.Streams[0], c.cc, "/mwitkow.testproto.TestService/PingList", opts...)
if err != nil {
return nil, err
}
x := &testServicePingListClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type TestService_PingListClient interface {
Recv() (*PingResponse, error)
grpc.ClientStream
}
type testServicePingListClient struct {
grpc.ClientStream
}
func (x *testServicePingListClient) Recv() (*PingResponse, error) {
m := new(PingResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *testServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) {
stream, err := grpc.NewClientStream(ctx, &_TestService_serviceDesc.Streams[1], c.cc, "/mwitkow.testproto.TestService/PingStream", opts...)
if err != nil {
return nil, err
}
x := &testServicePingStreamClient{stream}
return x, nil
}
type TestService_PingStreamClient interface {
Send(*PingRequest) error
Recv() (*PingResponse, error)
grpc.ClientStream
}
type testServicePingStreamClient struct {
grpc.ClientStream
}
func (x *testServicePingStreamClient) Send(m *PingRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *testServicePingStreamClient) Recv() (*PingResponse, error) {
m := new(PingResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
type TestServiceServer interface {
PingEmpty(context.Context, *Empty) (*PingResponse, error)
Ping(context.Context, *PingRequest) (*PingResponse, error)
PingError(context.Context, *PingRequest) (*Empty, error)
PingList(*PingRequest, TestService_PingListServer) error
PingStream(TestService_PingStreamServer) error
}
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
s.RegisterService(&_TestService_serviceDesc, srv)
}
func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).PingEmpty(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/PingEmpty",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).PingEmpty(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).Ping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/Ping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).PingError(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/PingError",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).PingError(ctx, req.(*PingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(PingRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(TestServiceServer).PingList(m, &testServicePingListServer{stream})
}
type TestService_PingListServer interface {
Send(*PingResponse) error
grpc.ServerStream
}
type testServicePingListServer struct {
grpc.ServerStream
}
func (x *testServicePingListServer) Send(m *PingResponse) error {
return x.ServerStream.SendMsg(m)
}
func _TestService_PingStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(TestServiceServer).PingStream(&testServicePingStreamServer{stream})
}
type TestService_PingStreamServer interface {
Send(*PingResponse) error
Recv() (*PingRequest, error)
grpc.ServerStream
}
type testServicePingStreamServer struct {
grpc.ServerStream
}
func (x *testServicePingStreamServer) Send(m *PingResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *testServicePingStreamServer) Recv() (*PingRequest, error) {
m := new(PingRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _TestService_serviceDesc = grpc.ServiceDesc{
ServiceName: "mwitkow.testproto.TestService",
HandlerType: (*TestServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PingEmpty",
Handler: _TestService_PingEmpty_Handler,
},
{
MethodName: "Ping",
Handler: _TestService_Ping_Handler,
},
{
MethodName: "PingError",
Handler: _TestService_PingError_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "PingList",
Handler: _TestService_PingList_Handler,
ServerStreams: true,
},
{
StreamName: "PingStream",
Handler: _TestService_PingStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "test.proto",
}
func init() { proto.RegisterFile("test.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x90, 0x4f, 0x4b, 0xfb, 0x30,
0x18, 0xc7, 0x97, 0xdf, 0x7e, 0x75, 0xee, 0xa9, 0x3b, 0x2c, 0x7a, 0x28, 0x1e, 0xb4, 0xe4, 0xd4,
0x53, 0x19, 0x7a, 0xf7, 0x22, 0xa2, 0x82, 0xa2, 0xb4, 0xc3, 0x6b, 0x99, 0xed, 0x83, 0x04, 0x97,
0xa6, 0x26, 0x4f, 0x57, 0x7c, 0x19, 0xbe, 0x63, 0x49, 0x56, 0x41, 0x98, 0x43, 0x0f, 0x3b, 0xe6,
0xfb, 0x79, 0xf8, 0xfe, 0x09, 0x00, 0xa1, 0xa5, 0xb4, 0x31, 0x9a, 0x34, 0x9f, 0xaa, 0x4e, 0xd2,
0xab, 0xee, 0x52, 0xa7, 0x79, 0x49, 0x8c, 0x20, 0xb8, 0x52, 0x0d, 0xbd, 0x8b, 0x0e, 0xc2, 0x47,
0x59, 0xbf, 0x64, 0xf8, 0xd6, 0xa2, 0x25, 0x7e, 0x04, 0xc1, 0x6a, 0xb1, 0x6c, 0x31, 0x62, 0x31,
0x4b, 0xc6, 0xd9, 0xfa, 0xc1, 0x05, 0x4c, 0xec, 0x12, 0xb1, 0x29, 0x48, 0x2a, 0x2c, 0x94, 0x8d,
0xfe, 0xc5, 0x2c, 0x09, 0xb2, 0xd0, 0x8b, 0x73, 0xa9, 0xf0, 0xde, 0xf2, 0x14, 0x0e, 0xd1, 0x18,
0x6d, 0x8a, 0x52, 0x57, 0x58, 0x18, 0xa4, 0xd6, 0xd4, 0x58, 0x45, 0xc3, 0x98, 0x25, 0x93, 0x6c,
0xea, 0xd1, 0xa5, 0xae, 0x30, 0xeb, 0x81, 0xb8, 0x80, 0x83, 0x75, 0xb0, 0x6d, 0x74, 0x6d, 0xd1,
0x25, 0x3f, 0x6d, 0x26, 0x47, 0x30, 0x2a, 0x75, 0x5b, 0x13, 0x9a, 0x3e, 0xf3, 0xeb, 0x79, 0xf6,
0x31, 0x84, 0x70, 0x8e, 0x96, 0x72, 0x34, 0x2b, 0x59, 0x22, 0xbf, 0x81, 0xb1, 0xf3, 0xf3, 0xab,
0x78, 0x94, 0x6e, 0x4c, 0x4e, 0x3d, 0x39, 0x3e, 0xfd, 0x81, 0x7c, 0xef, 0x21, 0x06, 0xfc, 0x16,
0xfe, 0x3b, 0x85, 0x9f, 0x6c, 0x3d, 0xf5, 0x7f, 0xf5, 0x17, 0xab, 0xeb, 0xbe, 0x94, 0x5b, 0xff,
0xab, 0xdf, 0xd6, 0xd2, 0x62, 0xc0, 0x1f, 0x60, 0xdf, 0x9d, 0xde, 0x49, 0x4b, 0x3b, 0xe8, 0x35,
0x63, 0x3c, 0x07, 0x70, 0x5a, 0x4e, 0x06, 0x17, 0x6a, 0x07, 0x96, 0x09, 0x9b, 0xb1, 0xe7, 0x3d,
0x4f, 0xce, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x2a, 0x8a, 0x7b, 0x7d, 0x02, 0x00, 0x00,
} | // Code generated by protoc-gen-go.
// source: test.proto
// DO NOT EDIT!
/*
Package mwitkow_testproto is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Empty
PingRequest
PingResponse
*/
package mwitkow_testproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Empty struct {
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type PingRequest struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
SleepTimeMs int32 `protobuf:"varint,2,opt,name=sleep_time_ms,json=sleepTimeMs" json:"sleep_time_ms,omitempty"`
ErrorCodeReturned uint32 `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned" json:"error_code_returned,omitempty"`
}
func (m *PingRequest) Reset() { *m = PingRequest{} }
func (m *PingRequest) String() string { return proto.CompactTextString(m) }
func (*PingRequest) ProtoMessage() {}
func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *PingRequest) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *PingRequest) GetSleepTimeMs() int32 {
if m != nil {
return m.SleepTimeMs
}
return 0
}
func (m *PingRequest) GetErrorCodeReturned() uint32 {
if m != nil {
return m.ErrorCodeReturned
}
return 0
}
type PingResponse struct {
Value string `protobuf:"bytes,1,opt,name=Value,json=value" json:"Value,omitempty"`
Counter int32 `protobuf:"varint,2,opt,name=counter" json:"counter,omitempty"`
}
func (m *PingResponse) Reset() { *m = PingResponse{} }
func (m *PingResponse) String() string { return proto.CompactTextString(m) }
func (*PingResponse) ProtoMessage() {}
func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *PingResponse) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *PingResponse) GetCounter() int32 {
if m != nil {
return m.Counter
}
return 0
}
func init() {
proto.RegisterType((*Empty)(nil), "mwitkow.testproto.Empty")
proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest")
proto.RegisterType((*PingResponse)(nil), "mwitkow.testproto.PingResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for TestService service
type TestServiceClient interface {
PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error)
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error)
PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error)
PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error)
}
type testServiceClient struct {
cc *grpc.ClientConn
}
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient {
return &testServiceClient{cc}
}
func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) {
out := new(PingResponse)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/PingEmpty", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
out := new(PingResponse)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/Ping", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := grpc.Invoke(ctx, "/mwitkow.testproto.TestService/PingError", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) {
stream, err := grpc.NewClientStream(ctx, &_TestService_serviceDesc.Streams[0], c.cc, "/mwitkow.testproto.TestService/PingList", opts...)
if err != nil {
return nil, err
}
x := &testServicePingListClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type TestService_PingListClient interface {
Recv() (*PingResponse, error)
grpc.ClientStream
}
type testServicePingListClient struct {
grpc.ClientStream
}
func (x *testServicePingListClient) Recv() (*PingResponse, error) {
m := new(PingResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *testServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) {
stream, err := grpc.NewClientStream(ctx, &_TestService_serviceDesc.Streams[1], c.cc, "/mwitkow.testproto.TestService/PingStream", opts...)
if err != nil {
return nil, err
}
x := &testServicePingStreamClient{stream}
return x, nil
}
type TestService_PingStreamClient interface {
Send(*PingRequest) error
Recv() (*PingResponse, error)
grpc.ClientStream
}
type testServicePingStreamClient struct {
grpc.ClientStream
}
func (x *testServicePingStreamClient) Send(m *PingRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *testServicePingStreamClient) Recv() (*PingResponse, error) {
m := new(PingResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// Server API for TestService service
type TestServiceServer interface {
PingEmpty(context.Context, *Empty) (*PingResponse, error)
Ping(context.Context, *PingRequest) (*PingResponse, error)
PingError(context.Context, *PingRequest) (*Empty, error)
PingList(*PingRequest, TestService_PingListServer) error
PingStream(TestService_PingStreamServer) error
}
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
s.RegisterService(&_TestService_serviceDesc, srv)
}
func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).PingEmpty(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/PingEmpty",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).PingEmpty(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).Ping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/Ping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestServiceServer).PingError(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mwitkow.testproto.TestService/PingError",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestServiceServer).PingError(ctx, req.(*PingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(PingRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(TestServiceServer).PingList(m, &testServicePingListServer{stream})
}
type TestService_PingListServer interface {
Send(*PingResponse) error
grpc.ServerStream
}
type testServicePingListServer struct {
grpc.ServerStream
}
func (x *testServicePingListServer) Send(m *PingResponse) error {
return x.ServerStream.SendMsg(m)
}
func _TestService_PingStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(TestServiceServer).PingStream(&testServicePingStreamServer{stream})
}
type TestService_PingStreamServer interface {
Send(*PingResponse) error
Recv() (*PingRequest, error)
grpc.ServerStream
}
type testServicePingStreamServer struct {
grpc.ServerStream
}
func (x *testServicePingStreamServer) Send(m *PingResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *testServicePingStreamServer) Recv() (*PingRequest, error) {
m := new(PingRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _TestService_serviceDesc = grpc.ServiceDesc{
ServiceName: "mwitkow.testproto.TestService",
HandlerType: (*TestServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PingEmpty",
Handler: _TestService_PingEmpty_Handler,
},
{
MethodName: "Ping",
Handler: _TestService_Ping_Handler,
},
{
MethodName: "PingError",
Handler: _TestService_PingError_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "PingList",
Handler: _TestService_PingList_Handler,
ServerStreams: true,
},
{
StreamName: "PingStream",
Handler: _TestService_PingStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "test.proto",
}
func init() { proto.RegisterFile("test.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 288 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x90, 0x4f, 0x4b, 0xfb, 0x30,
0x18, 0xc7, 0x97, 0xdf, 0x7e, 0x75, 0xee, 0xa9, 0x3b, 0x2c, 0x7a, 0x28, 0x1e, 0xb4, 0xe4, 0xd4,
0x53, 0x19, 0x7a, 0xf7, 0x22, 0xa2, 0x82, 0xa2, 0xb4, 0xc3, 0x6b, 0x99, 0xed, 0x83, 0x04, 0x97,
0xa6, 0x26, 0x4f, 0x57, 0x7c, 0x19, 0xbe, 0x63, 0x49, 0x56, 0x41, 0x98, 0x43, 0x0f, 0x3b, 0xe6,
0xfb, 0x79, 0xf8, 0xfe, 0x09, 0x00, 0xa1, 0xa5, 0xb4, 0x31, 0x9a, 0x34, 0x9f, 0xaa, 0x4e, 0xd2,
0xab, 0xee, 0x52, 0xa7, 0x79, 0x49, 0x8c, 0x20, 0xb8, 0x52, 0x0d, 0xbd, 0x8b, 0x0e, 0xc2, 0x47,
0x59, 0xbf, 0x64, 0xf8, 0xd6, 0xa2, 0x25, 0x7e, 0x04, 0xc1, 0x6a, 0xb1, 0x6c, 0x31, 0x62, 0x31,
0x4b, 0xc6, 0xd9, 0xfa, 0xc1, 0x05, 0x4c, 0xec, 0x12, 0xb1, 0x29, 0x48, 0x2a, 0x2c, 0x94, 0x8d,
0xfe, 0xc5, 0x2c, 0x09, 0xb2, 0xd0, 0x8b, 0x73, 0xa9, 0xf0, 0xde, 0xf2, 0x14, 0x0e, 0xd1, 0x18,
0x6d, 0x8a, 0x52, 0x57, 0x58, 0x18, 0xa4, 0xd6, 0xd4, 0x58, 0x45, 0xc3, 0x98, 0x25, 0x93, 0x6c,
0xea, 0xd1, 0xa5, 0xae, 0x30, 0xeb, 0x81, 0xb8, 0x80, 0x83, 0x75, 0xb0, 0x6d, 0x74, 0x6d, 0xd1,
0x25, 0x3f, 0x6d, 0x26, 0x47, 0x30, 0x2a, 0x75, 0x5b, 0x13, 0x9a, 0x3e, 0xf3, 0xeb, 0x79, 0xf6,
0x31, 0x84, 0x70, 0x8e, 0x96, 0x72, 0x34, 0x2b, 0x59, 0x22, 0xbf, 0x81, 0xb1, 0xf3, 0xf3, 0xab,
0x78, 0x94, 0x6e, 0x4c, 0x4e, 0x3d, 0x39, 0x3e, 0xfd, 0x81, 0x7c, 0xef, 0x21, 0x06, 0xfc, 0x16,
0xfe, 0x3b, 0x85, 0x9f, 0x6c, 0x3d, 0xf5, 0x7f, 0xf5, 0x17, 0xab, 0xeb, 0xbe, 0x94, 0x5b, 0xff,
0xab, 0xdf, 0xd6, 0xd2, 0x62, 0xc0, 0x1f, 0x60, 0xdf, 0x9d, 0xde, 0x49, 0x4b, 0x3b, 0xe8, 0x35,
0x63, 0x3c, 0x07, 0x70, 0x5a, 0x4e, 0x06, 0x17, 0x6a, 0x07, 0x96, 0x09, 0x9b, 0xb1, 0xe7, 0x3d,
0x4f, 0xce, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x2a, 0x8a, 0x7b, 0x7d, 0x02, 0x00, 0x00,
}
| [
5786,
36349,
42655,
500,
65,
1028,
1633,
188,
188,
4747,
1853,
312,
3140,
16,
817,
17,
9161,
17,
3607,
17,
1633,
4,
188,
4747,
2764,
312,
2763,
4,
188,
4747,
8703,
312,
4964,
4,
188,
188,
4747,
280,
188,
187,
1609,
312,
1609,
4,
188,
187,
7989,
312,
2735,
16,
9161,
16,
1587,
17,
7989,
4,
188,
11,
188,
188,
828,
547,
260,
1853,
16,
4647,
188,
828,
547,
260,
2764,
16,
3587,
188,
828,
547,
260,
8703,
16,
15146,
188,
188,
819,
547,
260,
1853,
16,
3244,
5403,
1556,
2013,
20,
263,
188,
558,
12509,
603,
275,
188,
95,
188,
188,
1857,
280,
79,
258,
3274,
11,
5593,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
258,
79,
260,
12509,
2475,
290,
188,
1857,
280,
79,
258,
3274,
11,
1082,
336,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
1853,
16,
24157,
10,
79,
11,
290,
188,
1857,
1714,
3274,
11,
15555,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
2478,
188,
1857,
1714,
3274,
11,
9499,
336,
6784,
1212,
14,
1397,
291,
11,
275,
429,
14731,
18,
14,
1397,
291,
93,
18,
95,
290,
188,
188,
558,
42756,
1222,
603,
275,
188,
187,
842,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
3607,
1172,
2186,
14,
19,
14,
1934,
14,
579,
31,
731,
4,
3667,
1172,
731,
14,
4213,
2537,
188,
187,
14519,
1136,
9516,
209,
209,
209,
209,
209,
209,
388,
419,
209,
1083,
3607,
1172,
14798,
14,
20,
14,
1934,
14,
579,
31,
8061,
65,
1149,
65,
684,
14,
1894,
31,
8061,
1136,
9516,
4,
3667,
1172,
8061,
65,
1149,
65,
684,
14,
4213,
2537,
188,
187,
7933,
32310,
691,
419,
1083,
3607,
1172,
14798,
14,
21,
14,
1934,
14,
579,
31,
1096,
65,
713,
65,
28555,
14,
1894,
31,
22028,
32310,
4,
3667,
1172,
1096,
65,
713,
65,
28555,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
79,
258,
21669,
1222,
11,
5593,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
258,
79,
260,
42756,
1222,
2475,
290,
188,
1857,
280,
79,
258,
21669,
1222,
11,
1082,
336,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
1853,
16,
24157,
10,
79,
11,
290,
188,
1857,
1714,
21669,
1222,
11,
15555,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
2478,
188,
1857,
1714,
21669,
1222,
11,
9499,
336,
6784,
1212,
14,
1397,
291,
11,
275,
429,
14731,
18,
14,
1397,
291,
93,
19,
95,
290,
188,
188,
1857,
280,
79,
258,
21669,
1222,
11,
29596,
336,
776,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
842,
188,
187,
95,
188,
187,
397,
3985,
188,
95,
188,
188,
1857,
280,
79,
258,
21669,
1222,
11,
1301,
14519,
1136,
9516,
336,
388,
419,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
14519,
1136,
9516,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
1857,
280,
79,
258,
21669,
1222,
11,
1301,
7933,
32310,
336,
691,
419,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
7933,
32310,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
558,
42756,
1597,
603,
275,
188,
187,
842,
209,
209,
776,
1083,
3607,
1172,
2186,
14,
19,
14,
1934,
14,
579,
31,
842,
14,
1894,
31,
731,
4,
3667,
1172,
842,
14,
4213,
2537,
188,
187,
6257,
388,
419,
209,
1083,
3607,
1172,
14798,
14,
20,
14,
1934,
14,
579,
31,
4241,
4,
3667,
1172,
4241,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
79,
258,
21669,
1597,
11,
5593,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
258,
79,
260,
42756,
1597,
2475,
290,
188,
1857,
280,
79,
258,
21669,
1597,
11,
1082,
336,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
275,
429,
1853,
16,
24157,
10,
79,
11,
290,
188,
1857,
1714,
21669,
1597,
11,
15555,
336,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
2478,
188,
1857,
1714,
21669,
1597,
11,
9499,
336,
6784,
1212,
14,
1397,
291,
11,
275,
429,
14731,
18,
14,
1397,
291,
93,
20,
95,
290,
188,
188,
1857,
280,
79,
258,
21669,
1597,
11,
29596,
336,
776,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
842,
188,
187,
95,
188,
187,
397,
3985,
188,
95,
188,
188,
1857,
280,
79,
258,
21669,
1597,
11,
1301,
6257,
336,
388,
419,
275,
188,
187,
285,
328,
598,
869,
275,
188,
187,
187,
397,
328,
16,
6257,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
1857,
1777,
336,
275,
188,
187,
1633,
16,
16593,
9275,
3274,
1261,
3974,
399,
312,
14234,
42655,
500,
16,
1028,
1633,
16,
3274,
866,
188,
187,
1633,
16,
16593,
9275,
21669,
1222,
1261,
3974,
399,
312,
14234,
42655,
500,
16,
1028,
1633,
16,
21669,
1222,
866,
188,
187,
1633,
16,
16593,
9275,
21669,
1597,
1261,
3974,
399,
312,
14234,
42655,
500,
16,
1028,
1633,
16,
21669,
1597,
866,
188,
95,
188,
188,
828,
547,
1701,
16,
1199,
188,
828,
547,
15100,
16,
29442,
188,
188,
819,
547,
260,
15100,
16,
4368,
5403,
1556,
2013,
22,
188,
188,
558,
2214,
23916,
2251,
275,
188,
187,
21669,
3274,
10,
1167,
1701,
16,
1199,
14,
353,
258,
3274,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
21669,
1597,
14,
790,
11,
188,
187,
21669,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
21669,
1597,
14,
790,
11,
188,
187,
21669,
914,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
3274,
14,
790,
11,
188,
187,
21669,
862,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
1140,
1700,
65,
21669,
862,
1784,
14,
790,
11,
188,
187,
21669,
1773,
10,
1167,
1701,
16,
1199,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
1140,
1700,
65,
21669,
1773,
1784,
14,
790,
11,
188,
95,
188,
188,
558,
1086,
23916,
603,
275,
188,
187,
685,
258,
7989,
16,
29442,
188,
95,
188,
188,
1857,
3409,
1140,
23916,
10,
685,
258,
7989,
16,
29442,
11,
2214,
23916,
275,
188,
187,
397,
396,
1028,
23916,
93,
685,
95,
188,
95,
188,
188,
1857,
280,
69,
258,
1028,
23916,
11,
42756,
3274,
10,
1167,
1701,
16,
1199,
14,
353,
258,
3274,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
21669,
1597,
14,
790,
11,
275,
188,
187,
560,
721,
605,
10,
21669,
1597,
11,
188,
187,
379,
721,
15100,
16,
10548,
10,
1167,
14,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
3274,
347,
353,
14,
880,
14,
272,
16,
685,
14,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
880,
14,
869,
188,
95,
188,
188,
1857,
280,
69,
258,
1028,
23916,
11,
42756,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
21669,
1597,
14,
790,
11,
275,
188,
187,
560,
721,
605,
10,
21669,
1597,
11,
188,
187,
379,
721,
15100,
16,
10548,
10,
1167,
14,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
347,
353,
14,
880,
14,
272,
16,
685,
14,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
880,
14,
869,
188,
95,
188,
188,
1857,
280,
69,
258,
1028,
23916,
11,
42756,
914,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
1714,
3274,
14,
790,
11,
275,
188,
187,
560,
721,
605,
10,
3274,
11,
188,
187,
379,
721,
15100,
16,
10548,
10,
1167,
14,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
914,
347,
353,
14,
880,
14,
272,
16,
685,
14,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
880,
14,
869,
188,
95,
188,
188,
1857,
280,
69,
258,
1028,
23916,
11,
42756,
862,
10,
1167,
1701,
16,
1199,
14,
353,
258,
21669,
1222,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
1140,
1700,
65,
21669,
862,
1784,
14,
790,
11,
275,
188,
187,
1733,
14,
497,
721,
15100,
16,
1888,
1784,
1773,
10,
1167,
14,
12142,
1140,
1700,
65,
3627,
1625,
16,
11943,
61,
18,
630,
272,
16,
685,
14,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
862,
347,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
90,
721,
396,
1028,
1700,
21669,
862,
1784,
93,
1733,
95,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
4365,
3464,
10,
248,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
4572,
4365,
491,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
754,
14,
869,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
862,
1784,
2251,
275,
188,
187,
16755,
336,
1714,
21669,
1597,
14,
790,
11,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
862,
1784,
603,
275,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
862,
1784,
11,
45236,
336,
1714,
21669,
1597,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
21669,
1597,
11,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
1857,
280,
69,
258,
1028,
23916,
11,
42756,
1773,
10,
1167,
1701,
16,
1199,
14,
5164,
2895,
7989,
16,
23702,
11,
280,
1140,
1700,
65,
21669,
1773,
1784,
14,
790,
11,
275,
188,
187,
1733,
14,
497,
721,
15100,
16,
1888,
1784,
1773,
10,
1167,
14,
12142,
1140,
1700,
65,
3627,
1625,
16,
11943,
61,
19,
630,
272,
16,
685,
14,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
1773,
347,
5164,
5013,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
90,
721,
396,
1028,
1700,
21669,
1773,
1784,
93,
1733,
95,
188,
187,
397,
754,
14,
869,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
1773,
1784,
2251,
275,
188,
187,
4365,
1717,
21669,
1222,
11,
790,
188,
187,
16755,
336,
1714,
21669,
1597,
14,
790,
11,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
1773,
1784,
603,
275,
188,
187,
7989,
16,
1784,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
1784,
11,
7289,
10,
79,
258,
21669,
1222,
11,
790,
275,
188,
187,
397,
754,
16,
1784,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
1784,
11,
45236,
336,
1714,
21669,
1597,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
21669,
1597,
11,
188,
187,
285,
497,
721,
754,
16,
1784,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
558,
2214,
1700,
2827,
2251,
275,
188,
187,
21669,
3274,
10,
1609,
16,
1199,
14,
258,
3274,
11,
1714,
21669,
1597,
14,
790,
11,
188,
187,
21669,
10,
1609,
16,
1199,
14,
258,
21669,
1222,
11,
1714,
21669,
1597,
14,
790,
11,
188,
187,
21669,
914,
10,
1609,
16,
1199,
14,
258,
21669,
1222,
11,
1714,
3274,
14,
790,
11,
188,
187,
21669,
862,
1717,
21669,
1222,
14,
2214,
1700,
65,
21669,
862,
2827,
11,
790,
188,
187,
21669,
1773,
10,
1140,
1700,
65,
21669,
1773,
2827,
11,
790,
188,
95,
188,
188,
1857,
2193,
1140,
1700,
2827,
10,
85,
258,
7989,
16,
2827,
14,
18873,
2214,
1700,
2827,
11,
275,
188,
187,
85,
16,
2184,
1700,
11508,
1140,
1700,
65,
3627,
1625,
14,
18873,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
3274,
65,
2201,
10,
13547,
2251,
4364,
2952,
1701,
16,
1199,
14,
5350,
830,
10,
3314,
5494,
790,
14,
25492,
15100,
16,
14601,
2827,
18552,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
248,
721,
605,
10,
3274,
11,
188,
187,
285,
497,
721,
5350,
10,
248,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
285,
25492,
489,
869,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
3274,
10,
1167,
14,
353,
11,
188,
187,
95,
188,
187,
766,
721,
396,
7989,
16,
14601,
38231,
93,
188,
187,
187,
2827,
28,
209,
209,
209,
209,
18873,
14,
188,
187,
187,
4963,
2152,
28,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
3274,
347,
188,
187,
95,
188,
187,
3132,
721,
830,
10,
1167,
1701,
16,
1199,
14,
3524,
2251,
5494,
280,
3314,
4364,
790,
11,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
3274,
10,
1167,
14,
3524,
9004,
3274,
452,
188,
187,
95,
188,
187,
397,
25492,
10,
1167,
14,
353,
14,
2405,
14,
4021,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
65,
2201,
10,
13547,
2251,
4364,
2952,
1701,
16,
1199,
14,
5350,
830,
10,
3314,
5494,
790,
14,
25492,
15100,
16,
14601,
2827,
18552,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
248,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
5350,
10,
248,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
285,
25492,
489,
869,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
10,
1167,
14,
353,
11,
188,
187,
95,
188,
187,
766,
721,
396,
7989,
16,
14601,
38231,
93,
188,
187,
187,
2827,
28,
209,
209,
209,
209,
18873,
14,
188,
187,
187,
4963,
2152,
28,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
347,
188,
187,
95,
188,
187,
3132,
721,
830,
10,
1167,
1701,
16,
1199,
14,
3524,
2251,
5494,
280,
3314,
4364,
790,
11,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
10,
1167,
14,
3524,
9004,
21669,
1222,
452,
188,
187,
95,
188,
187,
397,
25492,
10,
1167,
14,
353,
14,
2405,
14,
4021,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
914,
65,
2201,
10,
13547,
2251,
4364,
2952,
1701,
16,
1199,
14,
5350,
830,
10,
3314,
5494,
790,
14,
25492,
15100,
16,
14601,
2827,
18552,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
248,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
5350,
10,
248,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
285,
25492,
489,
869,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
914,
10,
1167,
14,
353,
11,
188,
187,
95,
188,
187,
766,
721,
396,
7989,
16,
14601,
38231,
93,
188,
187,
187,
2827,
28,
209,
209,
209,
209,
18873,
14,
188,
187,
187,
4963,
2152,
28,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
914,
347,
188,
187,
95,
188,
187,
3132,
721,
830,
10,
1167,
1701,
16,
1199,
14,
3524,
2251,
5494,
280,
3314,
4364,
790,
11,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
914,
10,
1167,
14,
3524,
9004,
21669,
1222,
452,
188,
187,
95,
188,
187,
397,
25492,
10,
1167,
14,
353,
14,
2405,
14,
4021,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
862,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
79,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
2690,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
862,
10,
79,
14,
396,
1028,
1700,
21669,
862,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
862,
2827,
2251,
275,
188,
187,
4365,
1717,
21669,
1597,
11,
790,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
862,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
862,
2827,
11,
7289,
10,
79,
258,
21669,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
1773,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
1773,
699,
1028,
1700,
21669,
1773,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
1773,
2827,
2251,
275,
188,
187,
4365,
1717,
21669,
1597,
11,
790,
188,
187,
16755,
336,
1714,
21669,
1222,
14,
790,
11,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
1773,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
2827,
11,
7289,
10,
79,
258,
21669,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
2827,
11,
45236,
336,
1714,
21669,
1222,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
754,
16,
2827,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
828,
547,
1140,
1700,
65,
3627,
1625,
260,
15100,
16,
1700,
1625,
93,
188,
187,
23796,
28,
312,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
347,
188,
187,
2201,
563,
28,
1714,
1140,
1700,
2827,
1261,
3974,
399,
188,
187,
9337,
28,
1397,
7989,
16,
2152,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
3274,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
3274,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
914,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
914,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
11943,
28,
1397,
7989,
16,
1773,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
21669,
862,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
1140,
1700,
65,
21669,
862,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
21669,
1773,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
1140,
1700,
65,
21669,
1773,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
350,
187,
1784,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
4068,
28,
312,
1028,
16,
1633,
347,
188,
95,
188,
188,
1857,
1777,
336,
275,
1853,
16,
2184,
1165,
435,
1028,
16,
1633,
347,
14731,
18,
11,
290,
188,
188,
828,
14731,
18,
260,
1397,
1212,
93,
188,
188,
187,
18,
90,
19,
72,
14,
257,
90,
26,
68,
14,
257,
90,
1189,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
1551,
14,
257,
90,
24,
71,
14,
257,
90,
1236,
14,
257,
90,
1052,
14,
257,
726,
14,
257,
7205,
14,
257,
90,
2370,
14,
257,
90,
22,
72,
14,
257,
90,
22,
68,
14,
257,
6017,
14,
257,
90,
1122,
14,
188,
187,
18,
90,
927,
14,
257,
1125,
25,
14,
257,
90,
1905,
14,
257,
8353,
14,
257,
90,
25,
71,
14,
257,
90,
2275,
14,
257,
8602,
14,
257,
1127,
27,
14,
257,
90,
21,
68,
14,
257,
90,
20,
69,
14,
257,
90,
25,
67,
14,
257,
90,
1137,
14,
257,
90,
19,
71,
14,
257,
1010,
22,
14,
257,
1288,
22,
14,
257,
1325,
22,
14,
188,
187,
18,
90,
2467,
14,
257,
90,
985,
14,
257,
90,
25,
67,
14,
257,
919,
25,
14,
257,
90,
1109,
14,
257,
1127,
20,
14,
257,
90,
2138,
14,
257,
1127,
20,
14,
257,
1010,
22,
14,
257,
1125,
21,
14,
257,
90,
24,
68,
14,
257,
90,
1064,
14,
257,
8484,
14,
257,
90,
2039,
14,
257,
90,
1025,
14,
257,
90,
1905,
14,
188,
187,
18,
1127,
24,
14,
257,
90,
1286,
14,
257,
90,
22,
72,
14,
257,
90,
1805,
14,
257,
90,
25,
69,
14,
257,
90,
985,
14,
257,
7398,
14,
257,
90,
2282,
14,
257,
90,
1978,
14,
257,
90,
720,
14,
257,
90,
2397,
14,
257,
90,
2733,
14,
257,
90,
1760,
14,
257,
90,
18,
72,
14,
257,
90,
21,
68,
14,
257,
1288,
24,
14,
188,
187,
18,
6017,
14,
257,
90,
2264,
14,
257,
919,
26,
14,
257,
4170,
14,
257,
90,
1551,
14,
257,
90,
264,
14,
257,
1127,
19,
14,
257,
1127,
23,
14,
257,
1010,
22,
14,
257,
90,
1421,
14,
257,
90,
27,
67,
14,
257,
90,
1331,
14,
257,
90,
27,
72,
14,
257,
6195,
14,
257,
90,
22,
71,
14,
257,
1325,
20,
14,
188,
187,
18,
7496,
14,
257,
8602,
14,
257,
90,
2484,
14,
257,
1127,
25,
14,
257,
90,
2264,
14,
257,
90,
1978,
14,
257,
90,
26,
69,
14,
257,
90,
722,
14,
257,
1010,
26,
14,
257,
90,
2484,
14,
257,
90,
18,
70,
14,
257,
7053,
14,
257,
90,
26,
68,
14,
257,
90,
18,
71,
14,
257,
1125,
20,
14,
257,
90,
1953,
14,
188,
187,
18,
90,
1661,
14,
257,
4979,
14,
257,
90,
535,
14,
257,
919,
26,
14,
257,
1325,
24,
14,
257,
1127,
20,
14,
257,
90,
953,
14,
257,
90,
25,
71,
14,
257,
90,
1025,
14,
257,
1125,
19,
14,
257,
90,
24,
67,
14,
257,
1010,
19,
14,
257,
90,
24,
69,
14,
257,
90,
1421,
14,
257,
90,
2697,
14,
257,
90,
1421,
14,
188,
187,
18,
90,
22,
68,
14,
257,
1125,
24,
14,
257,
1325,
27,
14,
257,
7611,
14,
257,
1125,
19,
14,
257,
90,
1465,
14,
257,
90,
22,
69,
14,
257,
8320,
14,
257,
90,
594,
14,
257,
1010,
19,
14,
257,
90,
1309,
14,
257,
90,
1882,
14,
257,
90,
20,
67,
14,
257,
90,
20,
69,
14,
257,
90,
2582,
14,
257,
90,
26,
70,
14,
188,
187,
18,
4170,
14,
257,
1125,
23,
14,
257,
90,
20,
69,
14,
257,
90,
1551,
14,
257,
1010,
20,
14,
257,
1325,
18,
14,
257,
90,
26,
68,
14,
257,
90,
2633,
14,
257,
1127,
27,
14,
257,
919,
18,
14,
257,
8549,
14,
257,
919,
20,
14,
257,
90,
832,
14,
257,
90,
18,
71,
14,
257,
1325,
19,
14,
257,
90,
927,
14,
188,
187,
18,
90,
24,
70,
14,
257,
90,
26,
67,
14,
257,
90,
2484,
14,
257,
90,
1805,
14,
257,
90,
2569,
14,
257,
90,
927,
14,
257,
1127,
22,
14,
257,
1325,
24,
14,
257,
1325,
22,
14,
257,
90,
2569,
14,
257,
90,
2048,
14,
257,
1125,
21,
14,
257,
90,
2733,
14,
257,
90,
953,
14,
257,
90,
2766,
14,
257,
90,
24,
69,
14,
188,
187,
18,
8905,
14,
257,
1325,
19,
14,
257,
1127,
23,
14,
257,
8373,
14,
257,
90,
1122,
14,
257,
8831,
14,
257,
90,
2088,
14,
257,
1010,
26,
14,
257,
90,
741,
14,
257,
90,
2039,
14,
257,
90,
2275,
14,
257,
1010,
18,
14,
257,
90,
24,
70,
14,
257,
90,
1702,
14,
257,
90,
24,
70,
14,
257,
1325,
19,
14,
188,
187,
18,
90,
953,
14,
257,
90,
21,
72,
14,
257,
90,
24,
70,
14,
257,
90,
1286,
14,
257,
90,
1953,
14,
257,
90,
1122,
14,
257,
90,
20,
67,
14,
257,
90,
2275,
14,
257,
90,
23,
68,
14,
257,
90,
809,
14,
257,
90,
27,
67,
14,
257,
90,
21,
71,
14,
257,
919,
21,
14,
257,
8831,
14,
257,
90,
2264,
14,
257,
919,
24,
14,
188,
187,
18,
90,
1421,
14,
257,
90,
1674,
14,
257,
90,
2334,
14,
257,
90,
26,
71,
14,
257,
90,
2485,
14,
257,
90,
2401,
14,
257,
90,
1331,
14,
257,
90,
20,
68,
14,
257,
90,
1661,
14,
257,
90,
1109,
14,
257,
4979,
14,
257,
90,
2088,
14,
257,
1010,
19,
14,
257,
919,
21,
14,
257,
919,
21,
14,
257,
7496,
14,
188,
187,
18,
90,
2389,
14,
257,
90,
2582,
14,
257,
90,
24,
71,
14,
257,
90,
22,
69,
14,
257,
90,
22,
71,
14,
257,
90,
21,
70,
14,
257,
90,
1486,
14,
257,
90,
21,
71,
14,
257,
7104,
14,
257,
90,
2088,
14,
257,
90,
25,
69,
14,
257,
6827,
14,
257,
90,
1290,
14,
257,
90,
1403,
14,
257,
5514,
14,
257,
90,
559,
14,
188,
187,
18,
4170,
14,
257,
90,
21,
68,
14,
257,
90,
1950,
14,
257,
90,
27,
72,
14,
257,
90,
24,
69,
14,
257,
90,
21,
70,
14,
257,
919,
23,
14,
257,
90,
25,
72,
14,
257,
919,
23,
14,
257,
90,
999,
14,
257,
7496,
14,
257,
8831,
14,
257,
7398,
14,
257,
90,
2582,
14,
257,
90,
23,
68,
14,
257,
726,
14,
188,
187,
18,
7496,
14,
257,
8353,
14,
257,
1325,
24,
14,
257,
1325,
20,
14,
257,
90,
2697,
14,
257,
1125,
18,
14,
257,
90,
19,
72,
14,
257,
90,
1959,
14,
257,
8353,
14,
257,
90,
27,
70,
14,
257,
8549,
14,
257,
90,
1978,
14,
257,
90,
22,
68,
14,
257,
90,
21,
68,
14,
257,
1288,
26,
14,
257,
90,
1487,
14,
188,
187,
18,
90,
2282,
14,
257,
90,
21,
69,
14,
257,
90,
1446,
14,
257,
90,
2334,
14,
257,
90,
23,
67,
14,
257,
90,
22,
71,
14,
257,
90,
1403,
14,
257,
90,
999,
14,
257,
90,
24,
67,
14,
257,
90,
1446,
14,
257,
90,
2485,
14,
257,
90,
1551,
14,
257,
90,
27,
68,
14,
257,
1010,
19,
14,
257,
1288,
25,
14,
257,
90,
21,
70,
14,
188,
187,
18,
90,
22,
72,
14,
257,
8369,
14,
257,
90,
21,
72,
14,
257,
90,
935,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
726,
14,
257,
726,
14,
257,
90,
21,
72,
14,
257,
90,
20,
67,
14,
257,
90,
26,
67,
14,
257,
90,
25,
68,
14,
257,
90,
25,
70,
14,
257,
90,
1052,
14,
257,
90,
264,
14,
257,
90,
264,
14,
188,
95
] | [
347,
188,
187,
95,
188,
187,
3132,
721,
830,
10,
1167,
1701,
16,
1199,
14,
3524,
2251,
5494,
280,
3314,
4364,
790,
11,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
10,
1167,
14,
3524,
9004,
21669,
1222,
452,
188,
187,
95,
188,
187,
397,
25492,
10,
1167,
14,
353,
14,
2405,
14,
4021,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
914,
65,
2201,
10,
13547,
2251,
4364,
2952,
1701,
16,
1199,
14,
5350,
830,
10,
3314,
5494,
790,
14,
25492,
15100,
16,
14601,
2827,
18552,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
248,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
5350,
10,
248,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
285,
25492,
489,
869,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
914,
10,
1167,
14,
353,
11,
188,
187,
95,
188,
187,
766,
721,
396,
7989,
16,
14601,
38231,
93,
188,
187,
187,
2827,
28,
209,
209,
209,
209,
18873,
14,
188,
187,
187,
4963,
2152,
28,
4273,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
17,
21669,
914,
347,
188,
187,
95,
188,
187,
3132,
721,
830,
10,
1167,
1701,
16,
1199,
14,
3524,
2251,
5494,
280,
3314,
4364,
790,
11,
275,
188,
187,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
914,
10,
1167,
14,
3524,
9004,
21669,
1222,
452,
188,
187,
95,
188,
187,
397,
25492,
10,
1167,
14,
353,
14,
2405,
14,
4021,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
862,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
79,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
2690,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
862,
10,
79,
14,
396,
1028,
1700,
21669,
862,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
862,
2827,
2251,
275,
188,
187,
4365,
1717,
21669,
1597,
11,
790,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
862,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
862,
2827,
11,
7289,
10,
79,
258,
21669,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
547,
1140,
1700,
65,
21669,
1773,
65,
2201,
10,
13547,
2251,
4364,
2690,
15100,
16,
2827,
1773,
11,
790,
275,
188,
187,
397,
18873,
7402,
1140,
1700,
2827,
717,
21669,
1773,
699,
1028,
1700,
21669,
1773,
2827,
93,
1733,
1436,
188,
95,
188,
188,
558,
2214,
1700,
65,
21669,
1773,
2827,
2251,
275,
188,
187,
4365,
1717,
21669,
1597,
11,
790,
188,
187,
16755,
336,
1714,
21669,
1222,
14,
790,
11,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
558,
1086,
1700,
21669,
1773,
2827,
603,
275,
188,
187,
7989,
16,
2827,
1773,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
2827,
11,
7289,
10,
79,
258,
21669,
1597,
11,
790,
275,
188,
187,
397,
754,
16,
2827,
1773,
16,
4365,
3464,
10,
79,
11,
188,
95,
188,
188,
1857,
280,
90,
258,
1028,
1700,
21669,
1773,
2827,
11,
45236,
336,
1714,
21669,
1222,
14,
790,
11,
275,
188,
187,
79,
721,
605,
10,
21669,
1222,
11,
188,
187,
285,
497,
721,
754,
16,
2827,
1773,
16,
16755,
3464,
10,
79,
267,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
328,
14,
869,
188,
95,
188,
188,
828,
547,
1140,
1700,
65,
3627,
1625,
260,
15100,
16,
1700,
1625,
93,
188,
187,
23796,
28,
312,
14234,
42655,
500,
16,
1028,
1633,
16,
1140,
1700,
347,
188,
187,
2201,
563,
28,
1714,
1140,
1700,
2827,
1261,
3974,
399,
188,
187,
9337,
28,
1397,
7989,
16,
2152,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
3274,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
3274,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
23055,
28,
312,
21669,
914,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
547,
1140,
1700,
65,
21669,
914,
65,
2201,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
11943,
28,
1397,
7989,
16,
1773,
1625,
93,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
21669,
862,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
1140,
1700,
65,
21669,
862,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
1773,
613,
28,
209,
209,
209,
312,
21669,
1773,
347,
188,
350,
187,
2201,
28,
209,
209,
209,
209,
209,
209,
547,
1140,
1700,
65,
21669,
1773,
65,
2201,
14,
188,
350,
187,
2827,
11943,
28,
868,
14,
188,
350,
187,
1784,
11943,
28,
868,
14,
188,
187,
187,
519,
188,
187,
519,
188,
187,
4068,
28,
312,
1028,
16,
1633,
347,
188,
95,
188,
188,
1857,
1777,
336,
275,
1853,
16,
2184,
1165,
435,
1028,
16,
1633,
347,
14731,
18,
11,
290,
188,
188,
828,
14731,
18,
260,
1397,
1212,
93,
188,
188,
187,
18,
90,
19,
72,
14,
257,
90,
26,
68,
14,
257,
90,
1189,
14,
257,
90,
264,
14,
257,
90,
264,
14,
257,
90,
1551,
14,
257,
90,
24,
71,
14,
257,
90,
1236,
14,
257,
90,
1052,
14,
257,
726,
14,
257,
7205,
14,
257,
90,
2370,
14,
257,
90,
22,
72,
14,
257,
90,
22,
68,
14,
257,
6017,
14,
257,
90,
1122,
14,
188,
187,
18,
90,
927,
14,
257,
1125,
25,
14,
257,
90,
1905,
14,
257,
8353,
14,
257,
90,
25,
71,
14,
257,
90,
2275,
14,
257,
8602,
14,
257,
1127,
27,
14,
257,
90,
21,
68,
14,
257,
90,
20,
69,
14,
257,
90,
25,
67,
14,
257,
90,
1137,
14,
257,
90,
19,
71,
14,
257,
1010,
22,
14,
257,
1288,
22,
14,
257,
1325,
22,
14,
188,
187,
18,
90,
2467,
14,
257,
90,
985,
14,
257,
90,
25,
67,
14,
257,
919,
25,
14,
257,
90,
1109,
14,
257,
1127,
20,
14,
257,
90,
2138,
14,
257,
1127,
20,
14,
257,
1010,
22,
14,
257,
1125,
21,
14,
257,
90,
24,
68,
14,
257,
90,
1064,
14,
257,
8484,
14,
257,
90,
2039,
14,
257,
90,
1025,
14,
257,
90,
1905,
14,
188,
187,
18,
1127,
24,
14,
257,
90,
1286,
14,
257,
90,
22,
72,
14,
257,
90,
1805,
14,
257,
90,
25,
69,
14,
257,
90,
985,
14,
257,
7398,
14,
257,
90,
2282,
14,
257,
90,
1978,
14,
257,
90,
720,
14,
257,
90,
2397,
14,
257,
90,
2733,
14,
257,
90,
1760,
14,
257,
90,
18,
72,
14,
257,
90,
21,
68,
14,
257,
1288,
24,
14,
188,
187,
18,
6017,
14,
257,
90,
2264,
14,
257,
919,
26,
14,
257,
4170,
14,
257,
90,
1551,
14,
257,
90,
264,
14,
257,
1127,
19,
14,
257,
1127,
23,
14,
257,
1010,
22,
14,
257,
90,
1421,
14,
257,
90,
27,
67,
14,
257,
90,
1331,
14,
257,
90,
27,
72,
14,
257,
6195,
14,
257,
90,
22,
71,
14,
257,
1325,
20,
14,
188,
187,
18,
7496,
14,
257,
8602,
14,
257,
90,
2484,
14,
257,
1127,
25,
14,
257,
90,
2264,
14,
257,
90,
1978,
14,
257,
90,
26,
69,
14,
257,
90,
722,
14,
257,
1010,
26,
14,
257,
90,
2484,
14,
257,
90,
18,
70,
14,
257,
7053,
14,
257,
90,
26,
68,
14,
257,
90,
18,
71,
14,
257,
1125,
20,
14,
257,
90,
1953,
14,
188,
187,
18,
90,
1661,
14,
257,
4979,
14,
257,
90,
535,
14,
257,
919,
26,
14,
257,
1325,
24,
14,
257,
1127,
20,
14,
257,
90,
953,
14,
257,
90,
25,
71,
14,
257,
90,
1025,
14,
257,
1125,
19,
14,
257,
90,
24,
67,
14,
257,
1010,
19,
14,
257,
90,
24,
69,
14,
257,
90,
1421,
14,
257,
90,
2697,
14,
257,
90,
1421,
14,
188,
187,
18,
90,
22,
68,
14,
257,
1125,
24,
14,
257,
1325,
27,
14,
257,
7611,
14,
257,
1125,
19,
14,
257,
90,
1465,
14,
257,
90,
22,
69,
14,
257,
8320,
14,
257,
90,
594,
14,
257,
1010,
19,
14,
257,
90,
1309,
14,
257,
90,
1882,
14,
257,
90,
20,
67,
14,
257,
90,
20,
69,
14,
257,
90,
2582,
14,
257,
90,
26,
70,
14,
188,
187,
18,
4170,
14,
257,
1125,
23,
14,
257,
90,
20,
69,
14,
257,
90,
1551,
14,
257,
1010,
20,
14,
257,
1325,
18,
14,
257,
90,
26,
68,
14,
257,
90,
2633,
14,
257,
1127,
27,
14,
257,
919,
18,
14,
257,
8549,
14,
257,
919,
20,
14,
257,
90,
832,
14,
257,
90,
18,
71,
14,
257,
1325,
19,
14,
257,
90,
927,
14,
188,
187,
18,
90,
24,
70,
14,
257,
90,
26,
67,
14,
257,
90,
2484,
14,
257,
90,
1805,
14,
257,
90,
2569,
14,
257,
90,
927,
14,
257,
1127,
22,
14,
257,
1325,
24,
14,
257,
1325,
22,
14,
257,
90,
2569,
14,
257,
90,
2048,
14,
257,
1125,
21,
14,
257,
90,
2733,
14,
257,
90,
953,
14,
257,
90,
2766,
14,
257,
90,
24,
69,
14,
188,
187,
18,
8905,
14,
257,
1325,
19,
14,
257,
1127,
23,
14,
257,
8373,
14,
257,
90,
1122,
14,
257,
8831,
14,
257,
90,
2088,
14,
257,
1010,
26,
14,
257,
90,
741,
14,
257,
90,
2039,
14,
257,
90,
2275,
14,
257,
1010,
18,
14,
257,
90,
24,
70,
14,
257,
90,
1702,
14,
257,
90,
24,
70,
14,
257,
1325,
19,
14,
188,
187,
18,
90,
953,
14,
257,
90,
21,
72,
14,
257,
90,
24,
70,
14,
257,
90,
1286,
14,
257,
90,
1953,
14,
257,
90,
1122,
14,
257,
90,
20,
67,
14,
257,
90,
2275,
14,
257,
90,
23,
68,
14,
257,
90,
809,
14,
257,
90,
27,
67,
14,
257,
90,
21,
71,
14,
257,
919,
21,
14,
257,
8831,
14,
257,
90,
2264,
14,
257,
919,
24,
14,
188,
187,
18,
90,
1421,
14,
257,
90,
1674,
14,
257,
90,
2334,
14,
257,
90,
26,
71,
14,
257,
90,
2485,
14,
257,
90,
2401,
14,
257,
90,
1331,
14,
257,
90,
20,
68,
14,
257,
90,
1661,
14,
257,
90,
1109,
14,
257,
4979,
14,
257,
90,
2088,
14,
257,
1010,
19,
14,
257,
919,
21,
14,
257,
919,
21,
14,
257,
7496,
14,
188,
187,
18,
90,
2389,
14,
257,
90,
2582,
14,
257,
90,
24,
71,
14,
257,
90,
22,
69,
14,
257,
90,
22,
71,
14,
257,
90,
21,
70,
14,
257,
90,
1486,
14,
257,
90,
21,
71,
14,
257,
7104,
14,
257,
90,
2088,
14,
257,
90,
25,
69,
14,
257,
6827,
14,
257,
90,
1290,
14,
257,
90,
1403,
14,
257,
5514,
14,
257,
90,
559,
14,
188,
187,
18,
4170,
14,
257,
90,
21,
68,
14,
257,
90,
1950,
14,
257,
90,
27,
72,
14,
257,
90,
24,
69,
14,
257,
90,
21,
70,
14,
257,
919,
23,
14,
257,
90,
25,
72,
14,
257,
919,
23,
14,
257,
90,
999,
14,
257,
7496,
14,
257,
8831,
14,
257,
7398,
14,
257,
90,
2582,
14,
257,
90,
23,
68,
14,
257,
726,
14,
188,
187,
18,
7496,
14,
257,
8353,
14,
257,
1325,
24,
14,
257,
1325,
20,
14,
257,
90,
2697,
14,
257,
1125,
18,
14,
257,
90,
19,
72,
14,
257,
90,
1959,
14,
257,
8353,
14,
257,
90,
27,
70,
14,
257,
8549,
14,
257,
90,
1978,
14,
257,
90,
22,
68,
14,
257,
90,
21,
68,
14,
257,
1288,
26,
14,
257,
90,
1487,
14
] |
72,770 | package main
import (
"bufio"
"context"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strconv"
"strings"
"sync"
"github.com/rs/xid"
yaml "gopkg.in/yaml.v2"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/alittlebrighter/coach"
models "github.com/alittlebrighter/coach/gen/proto"
"github.com/alittlebrighter/coach/storage/database"
)
func appMain(cmd *cobra.Command, args []string) {
cmd.Help()
}
func session(cmd *cobra.Command, args []string) {
}
func history(cmd *cobra.Command, args []string) {
record, rErr := cmd.Flags().GetString("record")
all, _ := cmd.Flags().GetBool("all")
query, qErr := cmd.Flags().GetString("query")
hImport, _ := cmd.Flags().GetBool("import")
switch {
case rErr == nil && len(record) > 0:
dupeCount := viper.GetInt("history.reps_pre_doc_prompt")
store := coach.GetStore(false)
if enoughDupes, _ := coach.SaveHistory(record, dupeCount, store); enoughDupes {
fmt.Printf("\n---\nThis command has been used %d+ times.\n`coach lib [alias] "+
"[tags] [comment...]` to save and document this command.\n`coach ignore` to silence "+
"this output for this command.\n",
dupeCount)
}
store.Close()
case hImport:
store := coach.GetStore(false)
defer store.Close()
lines, err := coach.GetRecentHistory(1, true, store)
if err != nil {
handleErr(err)
}
if len(lines) > 0 {
fmt.Print("You already have saved history, are you sure you want to import? (y/n): ")
response, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil || len(response) == 0 || !strings.HasPrefix(strings.ToLower(response), "y") {
handleErr(err)
return
}
}
handleErr(coach.ImportHistory(store))
case qErr == nil && len(query) > 0:
store := coach.GetStore(false)
defer store.Close()
lines, err := coach.QueryHistory(query, all, store)
if err != nil {
handleErrExit(err, true)
}
printHistoryLines(lines, all)
default:
store := coach.GetStore(true)
defer store.Close()
count := 10
var err error
if args != nil && len(args) >= 1 {
if count, err = strconv.Atoi(args[0]); err != nil {
count = 10
}
}
lines, err := coach.GetRecentHistory(count, all, store)
if err != nil {
fmt.Println("Could not retrieve history for this session! ERROR:", err)
break
}
printHistoryLines(lines, all)
}
}
func printHistoryLines(lines []models.HistoryRecord, all bool) {
for _, line := range lines {
id, err := xid.FromBytes(line.GetId())
if err != nil {
continue
}
if all {
fmt.Printf("%s %s@%s - %s\n", id.Time().Format(viper.GetString("timestamp_format")), line.User, line.GetTty(),
line.GetFullCommand())
} else {
fmt.Printf("%s - %s\n", id.Time().Format(viper.GetString("timestamp_format")),
line.GetFullCommand())
}
}
}
func doc(cmd *cobra.Command, args []string) {
query, qErr := cmd.Flags().GetString("query")
script, cErr := cmd.Flags().GetString("script")
edit, eErr := cmd.Flags().GetString("edit")
hLines, _ := cmd.Flags().GetInt("history-lines")
delete, _ := cmd.Flags().GetString("delete")
restore, _ := cmd.Flags().GetString("restore")
emptyTrash, _ := cmd.Flags().GetBool("empty-trash")
switch {
case len(args) >= 3:
store := coach.GetStore(false)
if cErr != nil || len(script) == 0 {
if lines, err := coach.GetRecentHistory(hLines, false, store); err == nil && len(lines) > 0 {
for _, line := range lines {
script += line.GetFullCommand() + "\n"
}
}
}
err := coach.SaveScript(models.DocumentedScript{
Alias: args[0],
Tags: strings.Split(args[1], ","),
Documentation: strings.Join(args[2:], " "),
Script: &models.Script{Content: script, Shell: viper.GetString("default_shell")}},
false, store)
if err != nil {
handleErr(err)
return
}
store.Close()
case eErr == nil && len(edit) > 0:
newScript, err := coach.EditScript(edit, coach.GetStore(true))
if err != nil {
handleErr(err)
return
}
overwrite := true
if newScript.GetAlias() != edit {
overwrite = false
}
save := func(ovrwrt bool) error {
store := coach.GetStore(false)
defer store.Close()
err := coach.SaveScript(*newScript, ovrwrt, store)
if newScript.GetAlias() != edit && err == nil {
store.DeleteScript([]byte(edit))
}
return err
}
stdin := bufio.NewReader(os.Stdin)
for err = save(overwrite); err == database.ErrAlreadyExists; err = save(overwrite) {
fmt.Printf("The alias '%s' already exists.\n", newScript.GetAlias())
fmt.Printf("Enter '%s' again to overwrite, or try something else: ", newScript.GetAlias())
in, inErr := stdin.ReadString('\n')
if inErr != nil || len(strings.TrimSpace(in)) == 0 {
overwrite = false
continue
}
input := strings.Fields(in)[0]
if input == newScript.GetAlias() || input == edit {
overwrite = true
continue
} else {
newScript.Alias = input
overwrite = false
}
}
if err != nil {
handleErr(err)
return
}
case len(restore) > 0:
store := coach.GetStore(false)
var restored *models.DocumentedScript
var err error
overwrite := false
stdinReader := bufio.NewReader(os.Stdin)
for restored, err = coach.RestoreScript(restore, store); err == database.ErrAlreadyExists; err = coach.SaveScript(*restored, overwrite, store) {
store.Close()
if restored == nil {
break
}
fmt.Printf("The alias '%s' already exists.\n", restored.GetAlias())
fmt.Printf("Enter '%s' again to overwrite, or try something else: ", restored.GetAlias())
in, inErr := stdinReader.ReadString('\n')
if inErr != nil || len(strings.TrimSpace(in)) == 0 {
overwrite = false
continue
}
input := strings.Fields(in)[0]
if input == restored.GetAlias() {
overwrite = true
store = coach.GetStore(false)
continue
} else {
restored.Alias = input
overwrite = false
}
store = coach.GetStore(false)
}
if err != nil {
coach.GetStore(false)
restored.Alias = restored.GetAlias() + xid.New().String()
coach.SaveScript(*restored, true, store)
}
store.Close()
handleErr(err)
case len(delete) > 0:
store := coach.GetStore(false)
err := coach.DeleteScript(delete, store)
handleErr(err)
store.Close()
case emptyTrash:
store := coach.GetStore(true)
trashed, err := coach.QueryScripts(database.TrashTag, store)
if err != nil {
handleErr(err)
store.Close()
return
}
store.Close()
if len(trashed) == 0 {
fmt.Println("Trash is empty.")
return
}
fmt.Printf("Trash contents: %d script(s) found\n", len(trashed))
for _, script := range trashed {
fmt.Println("\t" + strings.TrimPrefix(script.GetAlias(), database.TrashTag+"."))
}
empty := "empty-trash"
fmt.Printf("\nType '%s' to completely erase these scripts: ", empty)
in, err := bufio.NewReader(os.Stdin).ReadString('\n')
input := strings.Fields(in)
if err != nil || len(input) == 0 || input[0] != empty {
fmt.Println("Not emptying trash.")
return
}
fmt.Println("Emptying trash now.")
store = coach.GetStore(false)
wg := sync.WaitGroup{}
wg.Add(len(trashed))
for _, script := range trashed {
go func() {
store.DeleteScript(script.GetId())
wg.Done()
}()
}
wg.Wait()
store.Close()
case qErr == nil && len(query) > 0:
store := coach.GetStore(true)
defer store.Close()
cmds, err := coach.QueryScripts(query, store)
if err != nil {
handleErr(err)
return
}
for _, sCmd := range cmds {
if sCmd.GetId() == nil || len(sCmd.GetId()) == 0 {
continue
}
fmt.Printf("%14s: %s\n%14s: %s\n%14s: %s\n%14s: %s\n%17s\n",
"Script", Slugify(sCmd.GetScript().GetContent(), 48),
"Alias", sCmd.GetAlias(),
"Tags", strings.Join(sCmd.GetTags(), ","),
"Documentation", sCmd.GetDocumentation(),
"---",
)
}
}
return
}
func ignore(cmd *cobra.Command, args []string) {
store := coach.GetStore(false)
defer store.Close()
lineCount, err := cmd.Flags().GetInt("history-lines")
if err != nil {
lineCount = 1
}
allVariations, _ := cmd.Flags().GetBool("all")
remove, _ := cmd.Flags().GetBool("remove")
err = coach.IgnoreHistory(lineCount, allVariations, remove, store)
handleErr(err)
return
}
func run(cmd *cobra.Command, args []string) {
if args == nil || len(args) == 0 {
fmt.Println("No alias specified.")
}
store := coach.GetStore(true)
toRun := store.GetScript([]byte(args[0]))
store.Close()
if toRun == nil {
handleErr(database.ErrNotFound)
return
}
scriptArgs := []string{}
if len(args) > 1 {
scriptArgs = args[1:]
}
if check, _ := cmd.Flags().GetBool("check"); check {
fmt.Printf("Command '%s' found:\n###\n%s\n###\n$ %s\n\n", toRun.GetAlias(), toRun.GetDocumentation(), Slugify(toRun.GetScript().GetContent(), 48))
fmt.Print("Run now? [y/n] ")
in, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil || (len(in) >= 1 && in[0] != byte('y')) {
fmt.Println("Not running command.")
return
}
}
ctx := context.Background()
var cancel context.CancelFunc
timeout, _ := cmd.Flags().GetDuration("timeout")
if timeout > 0 {
ctx, cancel = context.WithTimeout(ctx, timeout)
defer cancel()
}
err := coach.RunScript(ctx, *toRun, scriptArgs, configureIO)
handleErrExit(err, true)
return
}
func config(cmd *cobra.Command, args []string) {
for _, arg := range args {
keyAndValue := strings.Split(arg, "=")
if len(keyAndValue) >= 2 {
viper.Set(keyAndValue[0], keyAndValue[1])
}
defaults := viper.AllSettings()
data, _ := yaml.Marshal(&defaults)
ioutil.WriteFile(home+"/config.yaml", data, database.FilePerms)
}
}
func handleErr(e error) {
handleErrExit(e, false)
}
func handleErrExit(e error, shouldExit bool) {
if e != nil {
fmt.Println("\nERROR:", e)
if shouldExit {
os.Exit(1)
}
}
}
func configureIO(cmd *exec.Cmd) error {
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return nil
}
func Slugify(content string, length uint) string {
lines := strings.Split(content, "\n")
scriptStr := strings.TrimSpace(lines[0])
if len(scriptStr) > int(length) {
scriptStr = scriptStr[:length] + "..."
} else if len(lines) > 1 {
scriptStr += "..."
}
return scriptStr
} | // Copyright (c) 2018, Adam Bright <[email protected]>
// See LICENSE for licensing information
package main
import (
"bufio"
"context"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strconv"
"strings"
"sync"
"github.com/rs/xid"
yaml "gopkg.in/yaml.v2"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/alittlebrighter/coach"
models "github.com/alittlebrighter/coach/gen/proto"
"github.com/alittlebrighter/coach/storage/database"
)
func appMain(cmd *cobra.Command, args []string) {
cmd.Help()
}
func session(cmd *cobra.Command, args []string) {
}
func history(cmd *cobra.Command, args []string) {
record, rErr := cmd.Flags().GetString("record")
all, _ := cmd.Flags().GetBool("all")
query, qErr := cmd.Flags().GetString("query")
hImport, _ := cmd.Flags().GetBool("import")
switch {
case rErr == nil && len(record) > 0:
dupeCount := viper.GetInt("history.reps_pre_doc_prompt")
store := coach.GetStore(false)
if enoughDupes, _ := coach.SaveHistory(record, dupeCount, store); enoughDupes {
fmt.Printf("\n---\nThis command has been used %d+ times.\n`coach lib [alias] "+
"[tags] [comment...]` to save and document this command.\n`coach ignore` to silence "+
"this output for this command.\n",
dupeCount)
}
store.Close()
case hImport:
store := coach.GetStore(false)
defer store.Close()
lines, err := coach.GetRecentHistory(1, true, store)
if err != nil {
handleErr(err)
}
if len(lines) > 0 {
fmt.Print("You already have saved history, are you sure you want to import? (y/n): ")
response, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil || len(response) == 0 || !strings.HasPrefix(strings.ToLower(response), "y") {
handleErr(err)
return
}
}
handleErr(coach.ImportHistory(store))
case qErr == nil && len(query) > 0:
store := coach.GetStore(false)
defer store.Close()
lines, err := coach.QueryHistory(query, all, store)
if err != nil {
handleErrExit(err, true)
}
printHistoryLines(lines, all)
default:
store := coach.GetStore(true)
defer store.Close()
count := 10
var err error
if args != nil && len(args) >= 1 {
if count, err = strconv.Atoi(args[0]); err != nil {
count = 10
}
}
lines, err := coach.GetRecentHistory(count, all, store)
if err != nil {
fmt.Println("Could not retrieve history for this session! ERROR:", err)
break
}
printHistoryLines(lines, all)
}
}
func printHistoryLines(lines []models.HistoryRecord, all bool) {
for _, line := range lines {
id, err := xid.FromBytes(line.GetId())
if err != nil {
continue
}
if all {
fmt.Printf("%s %s@%s - %s\n", id.Time().Format(viper.GetString("timestamp_format")), line.User, line.GetTty(),
line.GetFullCommand())
} else {
fmt.Printf("%s - %s\n", id.Time().Format(viper.GetString("timestamp_format")),
line.GetFullCommand())
}
}
}
func doc(cmd *cobra.Command, args []string) {
query, qErr := cmd.Flags().GetString("query")
script, cErr := cmd.Flags().GetString("script")
edit, eErr := cmd.Flags().GetString("edit")
hLines, _ := cmd.Flags().GetInt("history-lines")
delete, _ := cmd.Flags().GetString("delete")
restore, _ := cmd.Flags().GetString("restore")
emptyTrash, _ := cmd.Flags().GetBool("empty-trash")
switch {
case len(args) >= 3:
store := coach.GetStore(false)
if cErr != nil || len(script) == 0 {
if lines, err := coach.GetRecentHistory(hLines, false, store); err == nil && len(lines) > 0 {
for _, line := range lines {
script += line.GetFullCommand() + "\n"
}
}
}
err := coach.SaveScript(models.DocumentedScript{
Alias: args[0],
Tags: strings.Split(args[1], ","),
Documentation: strings.Join(args[2:], " "),
Script: &models.Script{Content: script, Shell: viper.GetString("default_shell")}},
false, store)
if err != nil {
handleErr(err)
return
}
store.Close()
case eErr == nil && len(edit) > 0:
newScript, err := coach.EditScript(edit, coach.GetStore(true))
if err != nil {
handleErr(err)
return
}
overwrite := true
if newScript.GetAlias() != edit {
overwrite = false
}
save := func(ovrwrt bool) error {
store := coach.GetStore(false)
defer store.Close()
err := coach.SaveScript(*newScript, ovrwrt, store)
if newScript.GetAlias() != edit && err == nil {
store.DeleteScript([]byte(edit))
}
return err
}
stdin := bufio.NewReader(os.Stdin)
for err = save(overwrite); err == database.ErrAlreadyExists; err = save(overwrite) {
fmt.Printf("The alias '%s' already exists.\n", newScript.GetAlias())
fmt.Printf("Enter '%s' again to overwrite, or try something else: ", newScript.GetAlias())
in, inErr := stdin.ReadString('\n')
if inErr != nil || len(strings.TrimSpace(in)) == 0 {
overwrite = false
continue
}
input := strings.Fields(in)[0]
if input == newScript.GetAlias() || input == edit {
overwrite = true
continue
} else {
newScript.Alias = input
overwrite = false
}
}
if err != nil {
handleErr(err)
return
}
case len(restore) > 0:
store := coach.GetStore(false)
var restored *models.DocumentedScript
var err error
overwrite := false
stdinReader := bufio.NewReader(os.Stdin)
for restored, err = coach.RestoreScript(restore, store); err == database.ErrAlreadyExists; err = coach.SaveScript(*restored, overwrite, store) {
store.Close()
if restored == nil {
break
}
fmt.Printf("The alias '%s' already exists.\n", restored.GetAlias())
fmt.Printf("Enter '%s' again to overwrite, or try something else: ", restored.GetAlias())
in, inErr := stdinReader.ReadString('\n')
if inErr != nil || len(strings.TrimSpace(in)) == 0 {
overwrite = false
continue
}
input := strings.Fields(in)[0]
if input == restored.GetAlias() {
overwrite = true
store = coach.GetStore(false)
continue
} else {
restored.Alias = input
overwrite = false
}
store = coach.GetStore(false)
}
if err != nil {
coach.GetStore(false)
restored.Alias = restored.GetAlias() + xid.New().String()
coach.SaveScript(*restored, true, store)
}
store.Close()
handleErr(err)
case len(delete) > 0:
store := coach.GetStore(false)
err := coach.DeleteScript(delete, store)
handleErr(err)
store.Close()
case emptyTrash:
store := coach.GetStore(true)
trashed, err := coach.QueryScripts(database.TrashTag, store)
if err != nil {
handleErr(err)
store.Close()
return
}
store.Close()
if len(trashed) == 0 {
fmt.Println("Trash is empty.")
return
}
fmt.Printf("Trash contents: %d script(s) found\n", len(trashed))
for _, script := range trashed {
fmt.Println("\t" + strings.TrimPrefix(script.GetAlias(), database.TrashTag+"."))
}
empty := "empty-trash"
fmt.Printf("\nType '%s' to completely erase these scripts: ", empty)
in, err := bufio.NewReader(os.Stdin).ReadString('\n')
input := strings.Fields(in)
if err != nil || len(input) == 0 || input[0] != empty {
fmt.Println("Not emptying trash.")
return
}
fmt.Println("Emptying trash now.")
store = coach.GetStore(false)
wg := sync.WaitGroup{}
wg.Add(len(trashed))
for _, script := range trashed {
go func() {
store.DeleteScript(script.GetId())
wg.Done()
}()
}
wg.Wait()
store.Close()
case qErr == nil && len(query) > 0:
store := coach.GetStore(true)
defer store.Close()
cmds, err := coach.QueryScripts(query, store)
if err != nil {
handleErr(err)
return
}
for _, sCmd := range cmds {
if sCmd.GetId() == nil || len(sCmd.GetId()) == 0 {
continue
}
fmt.Printf("%14s: %s\n%14s: %s\n%14s: %s\n%14s: %s\n%17s\n",
"Script", Slugify(sCmd.GetScript().GetContent(), 48),
"Alias", sCmd.GetAlias(),
"Tags", strings.Join(sCmd.GetTags(), ","),
"Documentation", sCmd.GetDocumentation(),
"---",
)
}
}
return
}
func ignore(cmd *cobra.Command, args []string) {
store := coach.GetStore(false)
defer store.Close()
lineCount, err := cmd.Flags().GetInt("history-lines")
if err != nil {
lineCount = 1
}
allVariations, _ := cmd.Flags().GetBool("all")
remove, _ := cmd.Flags().GetBool("remove")
err = coach.IgnoreHistory(lineCount, allVariations, remove, store)
handleErr(err)
return
}
func run(cmd *cobra.Command, args []string) {
if args == nil || len(args) == 0 {
fmt.Println("No alias specified.")
}
store := coach.GetStore(true)
toRun := store.GetScript([]byte(args[0]))
store.Close()
if toRun == nil {
handleErr(database.ErrNotFound)
return
}
scriptArgs := []string{}
if len(args) > 1 {
scriptArgs = args[1:]
}
if check, _ := cmd.Flags().GetBool("check"); check {
fmt.Printf("Command '%s' found:\n###\n%s\n###\n$ %s\n\n", toRun.GetAlias(), toRun.GetDocumentation(), Slugify(toRun.GetScript().GetContent(), 48))
fmt.Print("Run now? [y/n] ")
in, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil || (len(in) >= 1 && in[0] != byte('y')) {
fmt.Println("Not running command.")
return
}
}
ctx := context.Background()
var cancel context.CancelFunc
timeout, _ := cmd.Flags().GetDuration("timeout")
if timeout > 0 {
ctx, cancel = context.WithTimeout(ctx, timeout)
defer cancel()
}
err := coach.RunScript(ctx, *toRun, scriptArgs, configureIO)
handleErrExit(err, true)
return
}
func config(cmd *cobra.Command, args []string) {
for _, arg := range args {
keyAndValue := strings.Split(arg, "=")
if len(keyAndValue) >= 2 {
viper.Set(keyAndValue[0], keyAndValue[1])
}
defaults := viper.AllSettings()
data, _ := yaml.Marshal(&defaults)
ioutil.WriteFile(home+"/config.yaml", data, database.FilePerms)
}
}
func handleErr(e error) {
handleErrExit(e, false)
}
func handleErrExit(e error, shouldExit bool) {
if e != nil {
fmt.Println("\nERROR:", e)
if shouldExit {
os.Exit(1)
}
}
}
func configureIO(cmd *exec.Cmd) error {
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return nil
}
func Slugify(content string, length uint) string {
lines := strings.Split(content, "\n")
scriptStr := strings.TrimSpace(lines[0])
if len(scriptStr) > int(length) {
scriptStr = scriptStr[:length] + "..."
} else if len(lines) > 1 {
scriptStr += "..."
}
return scriptStr
}
| [
5786,
3635,
188,
188,
4747,
280,
188,
187,
4,
32809,
4,
188,
187,
4,
1609,
4,
188,
187,
4,
2763,
4,
188,
187,
4,
626,
17,
28125,
4,
188,
187,
4,
549,
4,
188,
187,
4,
549,
17,
5186,
4,
188,
187,
4,
20238,
4,
188,
187,
4,
6137,
4,
188,
187,
4,
2044,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
3933,
17,
20128,
4,
188,
187,
7309,
312,
22059,
6850,
16,
248,
17,
7309,
16,
88,
20,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
27263,
809,
17,
31679,
4,
188,
187,
4,
3140,
16,
817,
17,
27263,
809,
17,
88,
20343,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
266,
9805,
2029,
27546,
17,
346,
961,
4,
188,
187,
6561,
312,
3140,
16,
817,
17,
266,
9805,
2029,
27546,
17,
346,
961,
17,
2901,
17,
1633,
4,
188,
187,
4,
3140,
16,
817,
17,
266,
9805,
2029,
27546,
17,
346,
961,
17,
5129,
17,
9181,
4,
188,
11,
188,
188,
1857,
1579,
7086,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
1602,
16,
8057,
336,
188,
95,
188,
188,
1857,
4502,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
188,
95,
188,
188,
1857,
12969,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
4726,
14,
470,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
4726,
866,
188,
187,
466,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
466,
866,
188,
187,
1830,
14,
1500,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
1830,
866,
188,
187,
74,
5664,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
4747,
866,
188,
188,
187,
2349,
275,
188,
187,
888,
470,
724,
489,
869,
692,
1005,
10,
4726,
11,
609,
257,
28,
188,
187,
187,
1893,
315,
1632,
721,
325,
20343,
16,
25925,
435,
10517,
16,
49429,
65,
1265,
65,
2671,
65,
19271,
866,
188,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
188,
187,
187,
285,
7637,
18104,
304,
14,
547,
721,
2988,
961,
16,
6640,
8734,
10,
4726,
14,
21716,
315,
1632,
14,
3276,
267,
7637,
18104,
304,
275,
188,
350,
187,
2763,
16,
9724,
5523,
80,
3901,
62,
80,
3054,
2577,
1590,
3231,
1385,
690,
70,
13,
6408,
3836,
80,
66,
346,
961,
2623,
545,
6328,
63,
6454,
188,
2054,
187,
20997,
7034,
63,
545,
5808,
1510,
43042,
384,
5392,
509,
2865,
486,
2577,
3836,
80,
66,
346,
961,
4537,
66,
384,
41784,
6454,
188,
2054,
187,
4,
577,
1851,
446,
486,
2577,
3836,
80,
347,
188,
2054,
187,
1893,
315,
1632,
11,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
428,
5664,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
187,
5505,
14,
497,
721,
2988,
961,
16,
901,
25310,
8734,
10,
19,
14,
868,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
1005,
10,
5505,
11,
609,
257,
275,
188,
350,
187,
2763,
16,
4169,
435,
12741,
3582,
1447,
8490,
12969,
14,
955,
1439,
5124,
1439,
3793,
384,
676,
33,
280,
91,
17,
80,
1050,
10003,
188,
350,
187,
2828,
14,
497,
721,
45651,
16,
26213,
10,
549,
16,
41904,
717,
46415,
13417,
80,
1359,
188,
350,
187,
285,
497,
598,
869,
875,
1005,
10,
2828,
11,
489,
257,
875,
504,
6137,
16,
24125,
10,
6137,
16,
23084,
10,
2828,
399,
312,
91,
866,
275,
188,
2054,
187,
2069,
724,
10,
379,
11,
188,
2054,
187,
397,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
2069,
724,
10,
346,
961,
16,
5664,
8734,
10,
2161,
452,
188,
187,
888,
1500,
724,
489,
869,
692,
1005,
10,
1830,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
187,
5505,
14,
497,
721,
2988,
961,
16,
2066,
8734,
10,
1830,
14,
1408,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
7759,
10,
379,
14,
868,
11,
188,
187,
187,
95,
188,
188,
187,
187,
1065,
8734,
9133,
10,
5505,
14,
1408,
11,
188,
188,
187,
1509,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
187,
1043,
721,
1639,
188,
187,
187,
828,
497,
790,
188,
187,
187,
285,
2647,
598,
869,
692,
1005,
10,
1770,
11,
1474,
352,
275,
188,
350,
187,
285,
1975,
14,
497,
260,
12601,
16,
37713,
10,
1770,
61,
18,
1678,
497,
598,
869,
275,
188,
2054,
187,
1043,
260,
1639,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
5505,
14,
497,
721,
2988,
961,
16,
901,
25310,
8734,
10,
1043,
14,
1408,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2763,
16,
14124,
435,
10732,
655,
11378,
12969,
446,
486,
4502,
3,
209,
6926,
10035,
497,
11,
188,
350,
187,
1176,
188,
187,
187,
95,
188,
188,
187,
187,
1065,
8734,
9133,
10,
5505,
14,
1408,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2471,
8734,
9133,
10,
5505,
1397,
6561,
16,
8734,
3628,
14,
1408,
1019,
11,
275,
188,
187,
529,
2426,
2061,
721,
2068,
6859,
275,
188,
187,
187,
311,
14,
497,
721,
33992,
16,
1699,
3040,
10,
864,
16,
44325,
1202,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
187,
187,
285,
1408,
275,
188,
350,
187,
2763,
16,
9724,
3297,
85,
690,
85,
38339,
85,
418,
690,
85,
62,
80,
347,
1419,
16,
1136,
1033,
2051,
10,
88,
20343,
16,
11895,
435,
7031,
65,
1864,
10483,
2061,
16,
2116,
14,
2061,
16,
901,
54,
1015,
833,
188,
2054,
187,
864,
16,
901,
4963,
2710,
1202,
188,
187,
187,
95,
730,
275,
188,
350,
187,
2763,
16,
9724,
3297,
85,
418,
690,
85,
62,
80,
347,
1419,
16,
1136,
1033,
2051,
10,
88,
20343,
16,
11895,
435,
7031,
65,
1864,
10483,
188,
2054,
187,
864,
16,
901,
4963,
2710,
1202,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
5864,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
1830,
14,
1500,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
1830,
866,
188,
187,
4498,
14,
272,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
4498,
866,
188,
187,
6283,
14,
461,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
6283,
866,
188,
187,
74,
9133,
14,
547,
721,
3335,
16,
2973,
1033,
25925,
435,
10517,
15,
5505,
866,
188,
187,
3554,
14,
547,
721,
3335,
16,
2973,
1033,
11895,
435,
3554,
866,
188,
187,
4922,
14,
547,
721,
3335,
16,
2973,
1033,
11895,
435,
4922,
866,
188,
187,
2912,
960,
1037,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
2912,
15,
35868,
866,
188,
188,
187,
2349,
275,
188,
187,
888,
1005,
10,
1770,
11,
1474,
678,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
188,
187,
187,
285,
272,
724,
598,
869,
875,
1005,
10,
4498,
11,
489,
257,
275,
188,
350,
187,
285,
6859,
14,
497,
721,
2988,
961,
16,
901,
25310,
8734,
10,
74,
9133,
14,
893,
14,
3276,
267,
497,
489,
869,
692,
1005,
10,
5505,
11,
609,
257,
275,
188,
2054,
187,
529,
2426,
2061,
721,
2068,
6859,
275,
188,
1263,
187,
4498,
1159,
2061,
16,
901,
4963,
2710,
336,
431,
1818,
80,
4,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
379,
721,
2988,
961,
16,
6640,
4102,
10,
6561,
16,
3720,
299,
4102,
93,
188,
350,
187,
8952,
28,
209,
209,
209,
209,
209,
209,
209,
209,
2647,
61,
18,
630,
188,
350,
187,
6295,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
4440,
16,
7546,
10,
1770,
61,
19,
630,
3525,
1557,
188,
350,
187,
27521,
28,
4440,
16,
6675,
10,
1770,
61,
20,
12653,
312,
19941,
188,
350,
187,
4102,
28,
209,
209,
209,
209,
209,
209,
209,
396,
6561,
16,
4102,
93,
2525,
28,
5437,
14,
28894,
28,
325,
20343,
16,
11895,
435,
1509,
65,
15452,
866,
2598,
188,
350,
187,
2543,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
461,
724,
489,
869,
692,
1005,
10,
6283,
11,
609,
257,
28,
188,
187,
187,
1002,
4102,
14,
497,
721,
2988,
961,
16,
5323,
4102,
10,
6283,
14,
2988,
961,
16,
901,
3835,
10,
2239,
452,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
29800,
721,
868,
188,
187,
187,
285,
605,
4102,
16,
901,
8952,
336,
598,
8611,
275,
188,
350,
187,
29800,
260,
893,
188,
187,
187,
95,
188,
188,
187,
187,
3474,
721,
830,
10,
3333,
5691,
1344,
1019,
11,
790,
275,
188,
350,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
350,
187,
5303,
3276,
16,
4572,
336,
188,
188,
350,
187,
379,
721,
2988,
961,
16,
6640,
4102,
1717,
1002,
4102,
14,
15675,
5691,
1344,
14,
3276,
11,
188,
188,
350,
187,
285,
605,
4102,
16,
901,
8952,
336,
598,
8611,
692,
497,
489,
869,
275,
188,
2054,
187,
2161,
16,
3593,
4102,
4661,
1212,
10,
6283,
452,
188,
350,
187,
95,
188,
350,
187,
397,
497,
188,
187,
187,
95,
188,
188,
187,
187,
26202,
721,
45651,
16,
26213,
10,
549,
16,
41904,
11,
188,
187,
187,
529,
497,
260,
5392,
10,
29800,
267,
497,
489,
6132,
16,
724,
33794,
29,
497,
260,
5392,
10,
29800,
11,
275,
188,
350,
187,
2763,
16,
9724,
435,
2413,
9104,
6022,
85,
9,
3582,
6322,
3836,
80,
347,
605,
4102,
16,
901,
8952,
1202,
188,
350,
187,
2763,
16,
9724,
435,
9596,
6022,
85,
9,
5151,
384,
18563,
14,
551,
2295,
9925,
730,
28,
3525,
605,
4102,
16,
901,
8952,
1202,
188,
350,
187,
248,
14,
353,
724,
721,
26405,
16,
46415,
13417,
80,
1359,
188,
350,
187,
285,
353,
724,
598,
869,
875,
1005,
10,
6137,
16,
33239,
10,
248,
452,
489,
257,
275,
188,
2054,
187,
29800,
260,
893,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1624,
721,
4440,
16,
3778,
10,
248,
5080,
18,
63,
188,
188,
350,
187,
285,
1628,
489,
605,
4102,
16,
901,
8952,
336,
875,
1628,
489,
8611,
275,
188,
2054,
187,
29800,
260,
868,
188,
2054,
187,
3691,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
1002,
4102,
16,
8952,
260,
1628,
188,
2054,
187,
29800,
260,
893,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
888,
1005,
10,
4922,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
828,
29374,
258,
6561,
16,
3720,
299,
4102,
188,
187,
187,
828,
497,
790,
188,
187,
187,
29800,
721,
893,
188,
188,
187,
187,
26202,
3715,
721,
45651,
16,
26213,
10,
549,
16,
41904,
11,
188,
187,
187,
529,
29374,
14,
497,
260,
2988,
961,
16,
13669,
4102,
10,
4922,
14,
3276,
267,
497,
489,
6132,
16,
724,
33794,
29,
497,
260,
2988,
961,
16,
6640,
4102,
1717,
4922,
70,
14,
18563,
14,
3276,
11,
275,
188,
350,
187,
2161,
16,
4572,
336,
188,
350,
187,
285,
29374,
489,
869,
275,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
350,
187,
2763,
16,
9724,
435,
2413,
9104,
6022,
85,
9,
3582,
6322,
3836,
80,
347,
29374,
16,
901,
8952,
1202,
188,
350,
187,
2763,
16,
9724,
435,
9596,
6022,
85,
9,
5151,
384,
18563,
14,
551,
2295,
9925,
730,
28,
3525,
29374,
16,
901,
8952,
1202,
188,
350,
187,
248,
14,
353,
724,
721,
26405,
3715,
16,
46415,
13417,
80,
1359,
188,
350,
187,
285,
353,
724,
598,
869,
875,
1005,
10,
6137,
16,
33239,
10,
248,
452,
489,
257,
275,
188,
2054,
187,
29800,
260,
893,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1624,
721,
4440,
16,
3778,
10,
248,
5080,
18,
63,
188,
188,
350,
187,
285,
1628,
489,
29374,
16,
901,
8952,
336,
275,
188,
2054,
187,
29800,
260,
868,
188,
2054,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
2054,
187,
3691,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
4922,
70,
16,
8952,
260,
1628,
188,
2054,
187,
29800,
260,
893,
188,
350,
187,
95,
188,
350,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
346,
961,
16,
901,
3835,
10,
2543,
11,
188,
350,
187,
4922,
70,
16,
8952,
260,
29374,
16,
901,
8952,
336,
431,
33992,
16,
1888,
1033,
703,
336,
188,
350,
187,
346,
961,
16,
6640,
4102,
1717,
4922,
70,
14,
868,
14,
3276,
11,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
188,
187,
187,
2069,
724,
10,
379,
11,
188,
187,
888,
1005,
10,
3554,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
379,
721,
2988,
961,
16,
3593,
4102,
10,
3554,
14,
3276,
11,
188,
187,
187,
2069,
724,
10,
379,
11,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
3190,
960,
1037,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
187,
333,
24560,
14,
497,
721,
2988,
961,
16,
2066,
28667,
10,
9181,
16,
960,
1037,
2343,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
2161,
16,
4572,
336,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
188,
187,
187,
285,
1005,
10,
333,
24560,
11,
489,
257,
275,
188,
350,
187,
2763,
16,
14124,
435,
960,
1037,
425,
3190,
11313,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
2763,
16,
9724,
435,
960,
1037,
7040,
28,
690,
70,
5437,
10,
85,
11,
2721,
62,
80,
347,
1005,
10,
333,
24560,
452,
188,
187,
187,
529,
2426,
5437,
721,
2068,
585,
24560,
275,
188,
350,
187,
2763,
16,
14124,
5523,
86,
4,
431,
4440,
16,
13168,
4985,
10,
4498,
16,
901,
8952,
833,
6132,
16,
960,
1037,
2343,
33623,
2646,
188,
187,
187,
95,
188,
188,
187,
187,
2912,
721,
312,
2912,
15,
35868,
4,
188,
187,
187,
2763,
16,
9724,
5523,
80,
563,
6022,
85,
9,
384,
18341,
13199,
4626,
21899,
28,
3525,
3190,
11,
188,
187,
187,
248,
14,
497,
721,
45651,
16,
26213,
10,
549,
16,
41904,
717,
46415,
13417,
80,
1359,
188,
187,
187,
1624,
721,
4440,
16,
3778,
10,
248,
11,
188,
187,
187,
285,
497,
598,
869,
875,
1005,
10,
1624,
11,
489,
257,
875,
1628,
61,
18,
63,
598,
3190,
275,
188,
350,
187,
2763,
16,
14124,
435,
1875,
3190,
296,
585,
1037,
11313,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
2763,
16,
14124,
435,
3274,
296,
585,
1037,
3965,
11313,
188,
187,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
13815,
721,
6202,
16,
5425,
1665,
2475,
188,
187,
187,
13815,
16,
1320,
10,
635,
10,
333,
24560,
452,
188,
187,
187,
529,
2426,
5437,
721,
2068,
585,
24560,
275,
188,
350,
187,
2035,
830,
336,
275,
188,
2054,
187,
2161,
16,
3593,
4102,
10,
4498,
16,
44325,
1202,
188,
2054,
187,
13815,
16,
9160,
336,
188,
350,
187,
15970,
188,
187,
187,
95,
188,
187,
187,
13815,
16,
5425,
336,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
1500,
724,
489,
869,
692,
1005,
10,
1830,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
187,
14498,
14,
497,
721,
2988,
961,
16,
2066,
28667,
10,
1830,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
298,
4266,
721,
2068,
38462,
275,
188,
350,
187,
285,
298,
4266,
16,
44325,
336,
489,
869,
875,
1005,
10,
85,
4266,
16,
44325,
1202,
489,
257,
275,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
188,
350,
187,
2763,
16,
9724,
3297,
832,
85,
28,
690,
85,
62,
80,
7,
832,
85,
28,
690,
85,
62,
80,
7,
832,
85,
28,
690,
85,
62,
80,
7,
832,
85,
28,
690,
85,
62,
80,
7,
999,
85,
62,
80,
347,
188,
2054,
187,
4,
4102,
347,
331,
9688,
1198,
10,
85,
4266,
16,
901,
4102,
1033,
901,
2525,
833,
5555,
399,
188,
2054,
187,
4,
8952,
347,
298,
4266,
16,
901,
8952,
833,
188,
2054,
187,
4,
6295,
347,
4440,
16,
6675,
10,
85,
4266,
16,
901,
6295,
833,
3525,
1557,
188,
2054,
187,
4,
27521,
347,
298,
4266,
16,
901,
27521,
833,
188,
2054,
187,
4,
3901,
347,
188,
350,
187,
11,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
188,
95,
188,
188,
1857,
4537,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
864,
1632,
14,
497,
721,
3335,
16,
2973,
1033,
25925,
435,
10517,
15,
5505,
866,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
864,
1632,
260,
352,
188,
187,
95,
188,
187,
466,
1983,
25881,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
466,
866,
188,
187,
2351,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
2351,
866,
188,
188,
187,
379,
260,
2988,
961,
16,
7378,
8734,
10,
864,
1632,
14,
1408,
1983,
25881,
14,
4089,
14,
3276,
11,
188,
187,
2069,
724,
10,
379,
11,
188,
187,
397,
188,
95,
188,
188,
1857,
2443,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
285,
2647,
489,
869,
875,
1005,
10,
1770,
11,
489,
257,
275,
188,
187,
187,
2763,
16,
14124,
435,
2487,
9104,
2645,
11313,
188,
187,
95,
188,
188,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
490,
3103,
721,
3276,
16,
901,
4102,
4661,
1212,
10,
1770,
61,
18,
5293,
188,
187,
2161,
16,
4572,
336,
188,
187,
285,
384,
3103,
489,
869,
275,
188,
187,
187,
2069,
724,
10,
9181,
16,
724,
6937,
11,
188,
187,
187,
397,
188,
187,
95,
188,
188,
187,
4498,
3566,
721,
1397,
530,
2475,
188,
187,
285,
1005,
10,
1770,
11,
609,
352,
275,
188,
187,
187,
4498,
3566,
260,
2647,
61,
19,
10550,
188,
187,
95,
188,
188,
187,
285,
1586,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
1798,
638,
1586,
275,
188,
187,
187,
2763,
16,
9724,
435,
2710,
6022,
85,
9,
2721,
6516,
80,
5650,
62,
80,
7,
85,
62,
80,
5650,
62,
80,
6,
690,
85,
62,
80,
62,
80,
347,
384,
3103,
16,
901,
8952,
833,
384,
3103,
16,
901,
27521,
833,
331,
9688,
1198,
10,
490,
3103,
16,
901,
4102,
1033,
901,
2525,
833,
5555,
452,
188,
187,
187,
2763,
16,
4169,
435,
3103,
3965,
33,
545,
91,
17,
80,
63,
10003,
188,
187,
187,
248,
14,
497,
721,
45651,
16,
26213,
10,
549,
16,
41904,
717,
46415,
13417,
80,
1359,
188,
187,
187,
285,
497,
598,
869,
875,
280,
635,
10,
248,
11,
1474,
352,
692,
353,
61,
18,
63,
598,
2292,
831,
91,
5544,
275,
188,
350,
187,
2763,
16,
14124,
435,
1875,
6443,
2577,
11313,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
1167,
721,
1701,
16,
7404,
336,
188,
187,
828,
8919,
1701,
16,
8270,
3399,
188,
187,
3650,
14,
547,
721,
3335,
16,
2973,
1033,
901,
5354,
435,
3650,
866,
188,
187,
285,
4234,
609,
257,
275,
188,
187,
187,
1167,
14,
8919,
260,
1701,
16,
46937,
10,
1167,
14,
4234,
11,
188,
187,
187,
5303,
8919,
336,
188,
187,
95,
188,
188,
187,
379,
721,
2988,
961,
16,
3103,
4102,
10,
1167,
14,
258,
490,
3103,
14,
5437,
3566,
14,
9834,
891,
11,
188,
187,
2069,
724,
7759,
10,
379,
14,
868,
11,
188,
188,
187,
397,
188,
95,
188,
188,
1857,
1601,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
529,
2426,
1071,
721,
2068,
2647,
275,
188,
187,
187,
689,
2606,
842,
721,
4440,
16,
7546,
10,
601,
14,
9311,
866,
188,
188,
187,
187,
285,
1005,
10,
689,
2606,
842,
11,
1474,
444,
275,
188,
350,
187,
88,
20343,
16,
853,
10,
689,
2606,
842,
61,
18,
630,
1255,
2606,
842,
61,
19,
1278,
188,
187,
187,
95,
188,
187,
187,
11272,
721,
325,
20343,
16,
2699,
3532,
336,
188,
187,
187,
568,
14,
547,
721,
7110,
16,
4647,
699,
11272,
11,
188,
187,
187,
28125,
16,
38287,
10,
10116,
22979,
1231,
16,
7309,
347,
859,
14,
6132,
16,
1165,
2369,
684,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2340,
724,
10,
71,
790,
11,
275,
188,
187,
2069,
724,
7759,
10,
71,
14,
893,
11,
188,
95,
188,
188,
1857,
2340,
724,
7759,
10,
71,
790,
14,
1468,
7759,
1019,
11,
275,
188,
187,
285,
461,
598,
869,
275,
188,
187,
187,
2763,
16,
14124,
5523,
80,
1569,
10035,
461,
11,
188,
188,
187,
187,
285,
1468,
7759,
275,
188,
350,
187,
549,
16,
7759,
10,
19,
11,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
9834,
891,
10,
1602,
258,
5186,
16,
4266,
11,
790,
275,
188,
187,
1602,
16,
41904,
260,
3639,
16,
41904,
188,
187,
1602,
16,
26716,
260,
3639,
16,
26716,
188,
187,
1602,
16,
23886,
260,
3639,
16,
23886,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
331,
9688,
1198,
10,
2787,
776,
14,
2036,
691,
11,
776,
275,
188,
187,
5505,
721,
4440,
16,
7546,
10,
2787,
14,
1818,
80,
866,
188,
187,
4498,
1719,
721,
4440,
16,
33239,
10,
5505,
61,
18,
1278,
188,
187,
285,
1005,
10,
4498,
1719,
11,
609,
388,
10,
1128,
11,
275,
188,
187,
187,
4498,
1719,
260,
5437,
1719,
3872,
1128,
63,
431,
312,
32233,
188,
187,
95,
730,
392,
1005,
10,
5505,
11,
609,
352,
275,
188,
187,
187,
4498,
1719,
1159,
312,
32233,
188,
187,
95,
188,
187,
397,
5437,
1719,
188,
95
] | [
869,
275,
188,
2054,
187,
1043,
260,
1639,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
5505,
14,
497,
721,
2988,
961,
16,
901,
25310,
8734,
10,
1043,
14,
1408,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2763,
16,
14124,
435,
10732,
655,
11378,
12969,
446,
486,
4502,
3,
209,
6926,
10035,
497,
11,
188,
350,
187,
1176,
188,
187,
187,
95,
188,
188,
187,
187,
1065,
8734,
9133,
10,
5505,
14,
1408,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
2471,
8734,
9133,
10,
5505,
1397,
6561,
16,
8734,
3628,
14,
1408,
1019,
11,
275,
188,
187,
529,
2426,
2061,
721,
2068,
6859,
275,
188,
187,
187,
311,
14,
497,
721,
33992,
16,
1699,
3040,
10,
864,
16,
44325,
1202,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
187,
187,
285,
1408,
275,
188,
350,
187,
2763,
16,
9724,
3297,
85,
690,
85,
38339,
85,
418,
690,
85,
62,
80,
347,
1419,
16,
1136,
1033,
2051,
10,
88,
20343,
16,
11895,
435,
7031,
65,
1864,
10483,
2061,
16,
2116,
14,
2061,
16,
901,
54,
1015,
833,
188,
2054,
187,
864,
16,
901,
4963,
2710,
1202,
188,
187,
187,
95,
730,
275,
188,
350,
187,
2763,
16,
9724,
3297,
85,
418,
690,
85,
62,
80,
347,
1419,
16,
1136,
1033,
2051,
10,
88,
20343,
16,
11895,
435,
7031,
65,
1864,
10483,
188,
2054,
187,
864,
16,
901,
4963,
2710,
1202,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
5864,
10,
1602,
258,
31679,
16,
2710,
14,
2647,
1397,
530,
11,
275,
188,
187,
1830,
14,
1500,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
1830,
866,
188,
187,
4498,
14,
272,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
4498,
866,
188,
187,
6283,
14,
461,
724,
721,
3335,
16,
2973,
1033,
11895,
435,
6283,
866,
188,
187,
74,
9133,
14,
547,
721,
3335,
16,
2973,
1033,
25925,
435,
10517,
15,
5505,
866,
188,
187,
3554,
14,
547,
721,
3335,
16,
2973,
1033,
11895,
435,
3554,
866,
188,
187,
4922,
14,
547,
721,
3335,
16,
2973,
1033,
11895,
435,
4922,
866,
188,
187,
2912,
960,
1037,
14,
547,
721,
3335,
16,
2973,
1033,
39548,
435,
2912,
15,
35868,
866,
188,
188,
187,
2349,
275,
188,
187,
888,
1005,
10,
1770,
11,
1474,
678,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
188,
187,
187,
285,
272,
724,
598,
869,
875,
1005,
10,
4498,
11,
489,
257,
275,
188,
350,
187,
285,
6859,
14,
497,
721,
2988,
961,
16,
901,
25310,
8734,
10,
74,
9133,
14,
893,
14,
3276,
267,
497,
489,
869,
692,
1005,
10,
5505,
11,
609,
257,
275,
188,
2054,
187,
529,
2426,
2061,
721,
2068,
6859,
275,
188,
1263,
187,
4498,
1159,
2061,
16,
901,
4963,
2710,
336,
431,
1818,
80,
4,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
379,
721,
2988,
961,
16,
6640,
4102,
10,
6561,
16,
3720,
299,
4102,
93,
188,
350,
187,
8952,
28,
209,
209,
209,
209,
209,
209,
209,
209,
2647,
61,
18,
630,
188,
350,
187,
6295,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
4440,
16,
7546,
10,
1770,
61,
19,
630,
3525,
1557,
188,
350,
187,
27521,
28,
4440,
16,
6675,
10,
1770,
61,
20,
12653,
312,
19941,
188,
350,
187,
4102,
28,
209,
209,
209,
209,
209,
209,
209,
396,
6561,
16,
4102,
93,
2525,
28,
5437,
14,
28894,
28,
325,
20343,
16,
11895,
435,
1509,
65,
15452,
866,
2598,
188,
350,
187,
2543,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
461,
724,
489,
869,
692,
1005,
10,
6283,
11,
609,
257,
28,
188,
187,
187,
1002,
4102,
14,
497,
721,
2988,
961,
16,
5323,
4102,
10,
6283,
14,
2988,
961,
16,
901,
3835,
10,
2239,
452,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
29800,
721,
868,
188,
187,
187,
285,
605,
4102,
16,
901,
8952,
336,
598,
8611,
275,
188,
350,
187,
29800,
260,
893,
188,
187,
187,
95,
188,
188,
187,
187,
3474,
721,
830,
10,
3333,
5691,
1344,
1019,
11,
790,
275,
188,
350,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
350,
187,
5303,
3276,
16,
4572,
336,
188,
188,
350,
187,
379,
721,
2988,
961,
16,
6640,
4102,
1717,
1002,
4102,
14,
15675,
5691,
1344,
14,
3276,
11,
188,
188,
350,
187,
285,
605,
4102,
16,
901,
8952,
336,
598,
8611,
692,
497,
489,
869,
275,
188,
2054,
187,
2161,
16,
3593,
4102,
4661,
1212,
10,
6283,
452,
188,
350,
187,
95,
188,
350,
187,
397,
497,
188,
187,
187,
95,
188,
188,
187,
187,
26202,
721,
45651,
16,
26213,
10,
549,
16,
41904,
11,
188,
187,
187,
529,
497,
260,
5392,
10,
29800,
267,
497,
489,
6132,
16,
724,
33794,
29,
497,
260,
5392,
10,
29800,
11,
275,
188,
350,
187,
2763,
16,
9724,
435,
2413,
9104,
6022,
85,
9,
3582,
6322,
3836,
80,
347,
605,
4102,
16,
901,
8952,
1202,
188,
350,
187,
2763,
16,
9724,
435,
9596,
6022,
85,
9,
5151,
384,
18563,
14,
551,
2295,
9925,
730,
28,
3525,
605,
4102,
16,
901,
8952,
1202,
188,
350,
187,
248,
14,
353,
724,
721,
26405,
16,
46415,
13417,
80,
1359,
188,
350,
187,
285,
353,
724,
598,
869,
875,
1005,
10,
6137,
16,
33239,
10,
248,
452,
489,
257,
275,
188,
2054,
187,
29800,
260,
893,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1624,
721,
4440,
16,
3778,
10,
248,
5080,
18,
63,
188,
188,
350,
187,
285,
1628,
489,
605,
4102,
16,
901,
8952,
336,
875,
1628,
489,
8611,
275,
188,
2054,
187,
29800,
260,
868,
188,
2054,
187,
3691,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
1002,
4102,
16,
8952,
260,
1628,
188,
2054,
187,
29800,
260,
893,
188,
350,
187,
95,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
888,
1005,
10,
4922,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
828,
29374,
258,
6561,
16,
3720,
299,
4102,
188,
187,
187,
828,
497,
790,
188,
187,
187,
29800,
721,
893,
188,
188,
187,
187,
26202,
3715,
721,
45651,
16,
26213,
10,
549,
16,
41904,
11,
188,
187,
187,
529,
29374,
14,
497,
260,
2988,
961,
16,
13669,
4102,
10,
4922,
14,
3276,
267,
497,
489,
6132,
16,
724,
33794,
29,
497,
260,
2988,
961,
16,
6640,
4102,
1717,
4922,
70,
14,
18563,
14,
3276,
11,
275,
188,
350,
187,
2161,
16,
4572,
336,
188,
350,
187,
285,
29374,
489,
869,
275,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
350,
187,
2763,
16,
9724,
435,
2413,
9104,
6022,
85,
9,
3582,
6322,
3836,
80,
347,
29374,
16,
901,
8952,
1202,
188,
350,
187,
2763,
16,
9724,
435,
9596,
6022,
85,
9,
5151,
384,
18563,
14,
551,
2295,
9925,
730,
28,
3525,
29374,
16,
901,
8952,
1202,
188,
350,
187,
248,
14,
353,
724,
721,
26405,
3715,
16,
46415,
13417,
80,
1359,
188,
350,
187,
285,
353,
724,
598,
869,
875,
1005,
10,
6137,
16,
33239,
10,
248,
452,
489,
257,
275,
188,
2054,
187,
29800,
260,
893,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1624,
721,
4440,
16,
3778,
10,
248,
5080,
18,
63,
188,
188,
350,
187,
285,
1628,
489,
29374,
16,
901,
8952,
336,
275,
188,
2054,
187,
29800,
260,
868,
188,
2054,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
2054,
187,
3691,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
4922,
70,
16,
8952,
260,
1628,
188,
2054,
187,
29800,
260,
893,
188,
350,
187,
95,
188,
350,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
346,
961,
16,
901,
3835,
10,
2543,
11,
188,
350,
187,
4922,
70,
16,
8952,
260,
29374,
16,
901,
8952,
336,
431,
33992,
16,
1888,
1033,
703,
336,
188,
350,
187,
346,
961,
16,
6640,
4102,
1717,
4922,
70,
14,
868,
14,
3276,
11,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
188,
187,
187,
2069,
724,
10,
379,
11,
188,
187,
888,
1005,
10,
3554,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
379,
721,
2988,
961,
16,
3593,
4102,
10,
3554,
14,
3276,
11,
188,
187,
187,
2069,
724,
10,
379,
11,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
3190,
960,
1037,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
187,
333,
24560,
14,
497,
721,
2988,
961,
16,
2066,
28667,
10,
9181,
16,
960,
1037,
2343,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
2161,
16,
4572,
336,
188,
350,
187,
397,
188,
187,
187,
95,
188,
187,
187,
2161,
16,
4572,
336,
188,
188,
187,
187,
285,
1005,
10,
333,
24560,
11,
489,
257,
275,
188,
350,
187,
2763,
16,
14124,
435,
960,
1037,
425,
3190,
11313,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
2763,
16,
9724,
435,
960,
1037,
7040,
28,
690,
70,
5437,
10,
85,
11,
2721,
62,
80,
347,
1005,
10,
333,
24560,
452,
188,
187,
187,
529,
2426,
5437,
721,
2068,
585,
24560,
275,
188,
350,
187,
2763,
16,
14124,
5523,
86,
4,
431,
4440,
16,
13168,
4985,
10,
4498,
16,
901,
8952,
833,
6132,
16,
960,
1037,
2343,
33623,
2646,
188,
187,
187,
95,
188,
188,
187,
187,
2912,
721,
312,
2912,
15,
35868,
4,
188,
187,
187,
2763,
16,
9724,
5523,
80,
563,
6022,
85,
9,
384,
18341,
13199,
4626,
21899,
28,
3525,
3190,
11,
188,
187,
187,
248,
14,
497,
721,
45651,
16,
26213,
10,
549,
16,
41904,
717,
46415,
13417,
80,
1359,
188,
187,
187,
1624,
721,
4440,
16,
3778,
10,
248,
11,
188,
187,
187,
285,
497,
598,
869,
875,
1005,
10,
1624,
11,
489,
257,
875,
1628,
61,
18,
63,
598,
3190,
275,
188,
350,
187,
2763,
16,
14124,
435,
1875,
3190,
296,
585,
1037,
11313,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
2763,
16,
14124,
435,
3274,
296,
585,
1037,
3965,
11313,
188,
187,
187,
2161,
260,
2988,
961,
16,
901,
3835,
10,
2543,
11,
188,
187,
187,
13815,
721,
6202,
16,
5425,
1665,
2475,
188,
187,
187,
13815,
16,
1320,
10,
635,
10,
333,
24560,
452,
188,
187,
187,
529,
2426,
5437,
721,
2068,
585,
24560,
275,
188,
350,
187,
2035,
830,
336,
275,
188,
2054,
187,
2161,
16,
3593,
4102,
10,
4498,
16,
44325,
1202,
188,
2054,
187,
13815,
16,
9160,
336,
188,
350,
187,
15970,
188,
187,
187,
95,
188,
187,
187,
13815,
16,
5425,
336,
188,
187,
187,
2161,
16,
4572,
336,
188,
187,
888,
1500,
724,
489,
869,
692,
1005,
10,
1830,
11,
609,
257,
28,
188,
187,
187,
2161,
721,
2988,
961,
16,
901,
3835,
10,
2239,
11,
188,
187,
187,
5303,
3276,
16,
4572,
336,
188,
188,
187,
187,
14498,
14,
497,
721,
2988,
961,
16,
2066,
28667,
10,
1830,
14,
3276,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
2069,
724,
10,
379,
11,
188,
350,
187,
397,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
298,
4266,
721,
2068,
38462,
275,
188,
350,
187,
285,
298,
4266,
16,
44325,
336,
489,
869,
875,
1005,
10,
85,
4266,
16,
44325,
1202,
489,
257,
275,
188,
2054,
187,
3691,
188,
350,
187
] |
72,772 | package quotasfakes
import (
"sync"
"code.cloudfoundry.org/cli/cf/api/quotas"
"code.cloudfoundry.org/cli/cf/models"
)
type FakeQuotaRepository struct {
FindAllStub func() (quotas []models.QuotaFields, apiErr error)
findAllMutex sync.RWMutex
findAllArgsForCall []struct{}
findAllReturns struct {
result1 []models.QuotaFields
result2 error
}
FindByNameStub func(name string) (quota models.QuotaFields, apiErr error)
findByNameMutex sync.RWMutex
findByNameArgsForCall []struct {
name string
}
findByNameReturns struct {
result1 models.QuotaFields
result2 error
}
AssignQuotaToOrgStub func(orgGUID, quotaGUID string) error
assignQuotaToOrgMutex sync.RWMutex
assignQuotaToOrgArgsForCall []struct {
orgGUID string
quotaGUID string
}
assignQuotaToOrgReturns struct {
result1 error
}
CreateStub func(quota models.QuotaFields) error
createMutex sync.RWMutex
createArgsForCall []struct {
quota models.QuotaFields
}
createReturns struct {
result1 error
}
UpdateStub func(quota models.QuotaFields) error
updateMutex sync.RWMutex
updateArgsForCall []struct {
quota models.QuotaFields
}
updateReturns struct {
result1 error
}
DeleteStub func(quotaGUID string) error
deleteMutex sync.RWMutex
deleteArgsForCall []struct {
quotaGUID string
}
deleteReturns struct {
result1 error
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeQuotaRepository) FindAll() (quotas []models.QuotaFields, apiErr error) {
fake.findAllMutex.Lock()
fake.findAllArgsForCall = append(fake.findAllArgsForCall, struct{}{})
fake.recordInvocation("FindAll", []interface{}{})
fake.findAllMutex.Unlock()
if fake.FindAllStub != nil {
return fake.FindAllStub()
} else {
return fake.findAllReturns.result1, fake.findAllReturns.result2
}
}
func (fake *FakeQuotaRepository) FindAllCallCount() int {
fake.findAllMutex.RLock()
defer fake.findAllMutex.RUnlock()
return len(fake.findAllArgsForCall)
}
func (fake *FakeQuotaRepository) FindAllReturns(result1 []models.QuotaFields, result2 error) {
fake.FindAllStub = nil
fake.findAllReturns = struct {
result1 []models.QuotaFields
result2 error
}{result1, result2}
}
func (fake *FakeQuotaRepository) FindByName(name string) (quota models.QuotaFields, apiErr error) {
fake.findByNameMutex.Lock()
fake.findByNameArgsForCall = append(fake.findByNameArgsForCall, struct {
name string
}{name})
fake.recordInvocation("FindByName", []interface{}{name})
fake.findByNameMutex.Unlock()
if fake.FindByNameStub != nil {
return fake.FindByNameStub(name)
} else {
return fake.findByNameReturns.result1, fake.findByNameReturns.result2
}
}
func (fake *FakeQuotaRepository) FindByNameCallCount() int {
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
return len(fake.findByNameArgsForCall)
}
func (fake *FakeQuotaRepository) FindByNameArgsForCall(i int) string {
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
return fake.findByNameArgsForCall[i].name
}
func (fake *FakeQuotaRepository) FindByNameReturns(result1 models.QuotaFields, result2 error) {
fake.FindByNameStub = nil
fake.findByNameReturns = struct {
result1 models.QuotaFields
result2 error
}{result1, result2}
}
func (fake *FakeQuotaRepository) AssignQuotaToOrg(orgGUID string, quotaGUID string) error {
fake.assignQuotaToOrgMutex.Lock()
fake.assignQuotaToOrgArgsForCall = append(fake.assignQuotaToOrgArgsForCall, struct {
orgGUID string
quotaGUID string
}{orgGUID, quotaGUID})
fake.recordInvocation("AssignQuotaToOrg", []interface{}{orgGUID, quotaGUID})
fake.assignQuotaToOrgMutex.Unlock()
if fake.AssignQuotaToOrgStub != nil {
return fake.AssignQuotaToOrgStub(orgGUID, quotaGUID)
} else {
return fake.assignQuotaToOrgReturns.result1
}
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgCallCount() int {
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
return len(fake.assignQuotaToOrgArgsForCall)
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgArgsForCall(i int) (string, string) {
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
return fake.assignQuotaToOrgArgsForCall[i].orgGUID, fake.assignQuotaToOrgArgsForCall[i].quotaGUID
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgReturns(result1 error) {
fake.AssignQuotaToOrgStub = nil
fake.assignQuotaToOrgReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Create(quota models.QuotaFields) error {
fake.createMutex.Lock()
fake.createArgsForCall = append(fake.createArgsForCall, struct {
quota models.QuotaFields
}{quota})
fake.recordInvocation("Create", []interface{}{quota})
fake.createMutex.Unlock()
if fake.CreateStub != nil {
return fake.CreateStub(quota)
} else {
return fake.createReturns.result1
}
}
func (fake *FakeQuotaRepository) CreateCallCount() int {
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
return len(fake.createArgsForCall)
}
func (fake *FakeQuotaRepository) CreateArgsForCall(i int) models.QuotaFields {
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
return fake.createArgsForCall[i].quota
}
func (fake *FakeQuotaRepository) CreateReturns(result1 error) {
fake.CreateStub = nil
fake.createReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Update(quota models.QuotaFields) error {
fake.updateMutex.Lock()
fake.updateArgsForCall = append(fake.updateArgsForCall, struct {
quota models.QuotaFields
}{quota})
fake.recordInvocation("Update", []interface{}{quota})
fake.updateMutex.Unlock()
if fake.UpdateStub != nil {
return fake.UpdateStub(quota)
} else {
return fake.updateReturns.result1
}
}
func (fake *FakeQuotaRepository) UpdateCallCount() int {
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
return len(fake.updateArgsForCall)
}
func (fake *FakeQuotaRepository) UpdateArgsForCall(i int) models.QuotaFields {
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
return fake.updateArgsForCall[i].quota
}
func (fake *FakeQuotaRepository) UpdateReturns(result1 error) {
fake.UpdateStub = nil
fake.updateReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Delete(quotaGUID string) error {
fake.deleteMutex.Lock()
fake.deleteArgsForCall = append(fake.deleteArgsForCall, struct {
quotaGUID string
}{quotaGUID})
fake.recordInvocation("Delete", []interface{}{quotaGUID})
fake.deleteMutex.Unlock()
if fake.DeleteStub != nil {
return fake.DeleteStub(quotaGUID)
} else {
return fake.deleteReturns.result1
}
}
func (fake *FakeQuotaRepository) DeleteCallCount() int {
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return len(fake.deleteArgsForCall)
}
func (fake *FakeQuotaRepository) DeleteArgsForCall(i int) string {
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return fake.deleteArgsForCall[i].quotaGUID
}
func (fake *FakeQuotaRepository) DeleteReturns(result1 error) {
fake.DeleteStub = nil
fake.deleteReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.findAllMutex.RLock()
defer fake.findAllMutex.RUnlock()
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return fake.invocations
}
func (fake *FakeQuotaRepository) recordInvocation(key string, args []interface{}) {
fake.invocationsMutex.Lock()
defer fake.invocationsMutex.Unlock()
if fake.invocations == nil {
fake.invocations = map[string][][]interface{}{}
}
if fake.invocations[key] == nil {
fake.invocations[key] = [][]interface{}{}
}
fake.invocations[key] = append(fake.invocations[key], args)
}
var _ quotas.QuotaRepository = new(FakeQuotaRepository) | // This file was generated by counterfeiter
package quotasfakes
import (
"sync"
"code.cloudfoundry.org/cli/cf/api/quotas"
"code.cloudfoundry.org/cli/cf/models"
)
type FakeQuotaRepository struct {
FindAllStub func() (quotas []models.QuotaFields, apiErr error)
findAllMutex sync.RWMutex
findAllArgsForCall []struct{}
findAllReturns struct {
result1 []models.QuotaFields
result2 error
}
FindByNameStub func(name string) (quota models.QuotaFields, apiErr error)
findByNameMutex sync.RWMutex
findByNameArgsForCall []struct {
name string
}
findByNameReturns struct {
result1 models.QuotaFields
result2 error
}
AssignQuotaToOrgStub func(orgGUID, quotaGUID string) error
assignQuotaToOrgMutex sync.RWMutex
assignQuotaToOrgArgsForCall []struct {
orgGUID string
quotaGUID string
}
assignQuotaToOrgReturns struct {
result1 error
}
CreateStub func(quota models.QuotaFields) error
createMutex sync.RWMutex
createArgsForCall []struct {
quota models.QuotaFields
}
createReturns struct {
result1 error
}
UpdateStub func(quota models.QuotaFields) error
updateMutex sync.RWMutex
updateArgsForCall []struct {
quota models.QuotaFields
}
updateReturns struct {
result1 error
}
DeleteStub func(quotaGUID string) error
deleteMutex sync.RWMutex
deleteArgsForCall []struct {
quotaGUID string
}
deleteReturns struct {
result1 error
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeQuotaRepository) FindAll() (quotas []models.QuotaFields, apiErr error) {
fake.findAllMutex.Lock()
fake.findAllArgsForCall = append(fake.findAllArgsForCall, struct{}{})
fake.recordInvocation("FindAll", []interface{}{})
fake.findAllMutex.Unlock()
if fake.FindAllStub != nil {
return fake.FindAllStub()
} else {
return fake.findAllReturns.result1, fake.findAllReturns.result2
}
}
func (fake *FakeQuotaRepository) FindAllCallCount() int {
fake.findAllMutex.RLock()
defer fake.findAllMutex.RUnlock()
return len(fake.findAllArgsForCall)
}
func (fake *FakeQuotaRepository) FindAllReturns(result1 []models.QuotaFields, result2 error) {
fake.FindAllStub = nil
fake.findAllReturns = struct {
result1 []models.QuotaFields
result2 error
}{result1, result2}
}
func (fake *FakeQuotaRepository) FindByName(name string) (quota models.QuotaFields, apiErr error) {
fake.findByNameMutex.Lock()
fake.findByNameArgsForCall = append(fake.findByNameArgsForCall, struct {
name string
}{name})
fake.recordInvocation("FindByName", []interface{}{name})
fake.findByNameMutex.Unlock()
if fake.FindByNameStub != nil {
return fake.FindByNameStub(name)
} else {
return fake.findByNameReturns.result1, fake.findByNameReturns.result2
}
}
func (fake *FakeQuotaRepository) FindByNameCallCount() int {
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
return len(fake.findByNameArgsForCall)
}
func (fake *FakeQuotaRepository) FindByNameArgsForCall(i int) string {
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
return fake.findByNameArgsForCall[i].name
}
func (fake *FakeQuotaRepository) FindByNameReturns(result1 models.QuotaFields, result2 error) {
fake.FindByNameStub = nil
fake.findByNameReturns = struct {
result1 models.QuotaFields
result2 error
}{result1, result2}
}
func (fake *FakeQuotaRepository) AssignQuotaToOrg(orgGUID string, quotaGUID string) error {
fake.assignQuotaToOrgMutex.Lock()
fake.assignQuotaToOrgArgsForCall = append(fake.assignQuotaToOrgArgsForCall, struct {
orgGUID string
quotaGUID string
}{orgGUID, quotaGUID})
fake.recordInvocation("AssignQuotaToOrg", []interface{}{orgGUID, quotaGUID})
fake.assignQuotaToOrgMutex.Unlock()
if fake.AssignQuotaToOrgStub != nil {
return fake.AssignQuotaToOrgStub(orgGUID, quotaGUID)
} else {
return fake.assignQuotaToOrgReturns.result1
}
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgCallCount() int {
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
return len(fake.assignQuotaToOrgArgsForCall)
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgArgsForCall(i int) (string, string) {
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
return fake.assignQuotaToOrgArgsForCall[i].orgGUID, fake.assignQuotaToOrgArgsForCall[i].quotaGUID
}
func (fake *FakeQuotaRepository) AssignQuotaToOrgReturns(result1 error) {
fake.AssignQuotaToOrgStub = nil
fake.assignQuotaToOrgReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Create(quota models.QuotaFields) error {
fake.createMutex.Lock()
fake.createArgsForCall = append(fake.createArgsForCall, struct {
quota models.QuotaFields
}{quota})
fake.recordInvocation("Create", []interface{}{quota})
fake.createMutex.Unlock()
if fake.CreateStub != nil {
return fake.CreateStub(quota)
} else {
return fake.createReturns.result1
}
}
func (fake *FakeQuotaRepository) CreateCallCount() int {
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
return len(fake.createArgsForCall)
}
func (fake *FakeQuotaRepository) CreateArgsForCall(i int) models.QuotaFields {
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
return fake.createArgsForCall[i].quota
}
func (fake *FakeQuotaRepository) CreateReturns(result1 error) {
fake.CreateStub = nil
fake.createReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Update(quota models.QuotaFields) error {
fake.updateMutex.Lock()
fake.updateArgsForCall = append(fake.updateArgsForCall, struct {
quota models.QuotaFields
}{quota})
fake.recordInvocation("Update", []interface{}{quota})
fake.updateMutex.Unlock()
if fake.UpdateStub != nil {
return fake.UpdateStub(quota)
} else {
return fake.updateReturns.result1
}
}
func (fake *FakeQuotaRepository) UpdateCallCount() int {
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
return len(fake.updateArgsForCall)
}
func (fake *FakeQuotaRepository) UpdateArgsForCall(i int) models.QuotaFields {
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
return fake.updateArgsForCall[i].quota
}
func (fake *FakeQuotaRepository) UpdateReturns(result1 error) {
fake.UpdateStub = nil
fake.updateReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Delete(quotaGUID string) error {
fake.deleteMutex.Lock()
fake.deleteArgsForCall = append(fake.deleteArgsForCall, struct {
quotaGUID string
}{quotaGUID})
fake.recordInvocation("Delete", []interface{}{quotaGUID})
fake.deleteMutex.Unlock()
if fake.DeleteStub != nil {
return fake.DeleteStub(quotaGUID)
} else {
return fake.deleteReturns.result1
}
}
func (fake *FakeQuotaRepository) DeleteCallCount() int {
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return len(fake.deleteArgsForCall)
}
func (fake *FakeQuotaRepository) DeleteArgsForCall(i int) string {
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return fake.deleteArgsForCall[i].quotaGUID
}
func (fake *FakeQuotaRepository) DeleteReturns(result1 error) {
fake.DeleteStub = nil
fake.deleteReturns = struct {
result1 error
}{result1}
}
func (fake *FakeQuotaRepository) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.findAllMutex.RLock()
defer fake.findAllMutex.RUnlock()
fake.findByNameMutex.RLock()
defer fake.findByNameMutex.RUnlock()
fake.assignQuotaToOrgMutex.RLock()
defer fake.assignQuotaToOrgMutex.RUnlock()
fake.createMutex.RLock()
defer fake.createMutex.RUnlock()
fake.updateMutex.RLock()
defer fake.updateMutex.RUnlock()
fake.deleteMutex.RLock()
defer fake.deleteMutex.RUnlock()
return fake.invocations
}
func (fake *FakeQuotaRepository) recordInvocation(key string, args []interface{}) {
fake.invocationsMutex.Lock()
defer fake.invocationsMutex.Unlock()
if fake.invocations == nil {
fake.invocations = map[string][][]interface{}{}
}
if fake.invocations[key] == nil {
fake.invocations[key] = [][]interface{}{}
}
fake.invocations[key] = append(fake.invocations[key], args)
}
var _ quotas.QuotaRepository = new(FakeQuotaRepository)
| [
5786,
13103,
38270,
5389,
188,
188,
4747,
280,
188,
187,
4,
2044,
4,
188,
188,
187,
4,
713,
16,
6101,
488,
293,
21840,
16,
1587,
17,
8912,
17,
1737,
17,
1791,
17,
8127,
332,
4,
188,
187,
4,
713,
16,
6101,
488,
293,
21840,
16,
1587,
17,
8912,
17,
1737,
17,
6561,
4,
188,
11,
188,
188,
558,
20355,
14614,
6475,
603,
275,
188,
187,
6112,
2699,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
336,
280,
8127,
332,
1397,
6561,
16,
14614,
3778,
14,
6538,
724,
790,
11,
188,
187,
45902,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
45902,
44051,
1397,
393,
2475,
188,
187,
45902,
10072,
209,
209,
209,
209,
603,
275,
188,
187,
187,
1275,
19,
1397,
6561,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
95,
188,
187,
6112,
10704,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
579,
776,
11,
280,
16252,
11060,
16,
14614,
3778,
14,
6538,
724,
790,
11,
188,
187,
2625,
10704,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
2625,
10704,
44051,
1397,
393,
275,
188,
187,
187,
579,
776,
188,
187,
95,
188,
187,
2625,
10704,
10072,
603,
275,
188,
187,
187,
1275,
19,
11060,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
95,
188,
187,
9380,
14614,
805,
9327,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
1587,
10311,
14,
18278,
10311,
776,
11,
790,
188,
187,
6009,
14614,
805,
9327,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
6009,
14614,
805,
9327,
44051,
1397,
393,
275,
188,
187,
187,
1587,
10311,
209,
209,
776,
188,
187,
187,
16252,
10311,
776,
188,
187,
95,
188,
187,
6009,
14614,
805,
9327,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
2272,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
188,
187,
1634,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
1634,
44051,
1397,
393,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
95,
188,
187,
1634,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
2574,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
188,
187,
2173,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
2173,
44051,
1397,
393,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
95,
188,
187,
2173,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
3593,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
10311,
776,
11,
790,
188,
187,
3554,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
3554,
44051,
1397,
393,
275,
188,
187,
187,
16252,
10311,
776,
188,
187,
95,
188,
187,
3554,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
6584,
13992,
209,
209,
209,
209,
209,
1929,
61,
530,
63,
13326,
3314,
2475,
188,
187,
6584,
13992,
8751,
6202,
16,
40285,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
336,
280,
8127,
332,
1397,
6561,
16,
14614,
3778,
14,
6538,
724,
790,
11,
275,
188,
187,
9232,
16,
45902,
8751,
16,
3503,
336,
188,
187,
9232,
16,
45902,
44051,
260,
3343,
10,
9232,
16,
45902,
44051,
14,
603,
2475,
5494,
188,
187,
9232,
16,
4726,
14572,
435,
6112,
2699,
347,
1397,
3314,
2475,
5494,
188,
187,
9232,
16,
45902,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
6112,
2699,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
6112,
2699,
7925,
336,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
45902,
10072,
16,
1275,
19,
14,
11028,
16,
45902,
10072,
16,
1275,
20,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
41350,
336,
388,
275,
188,
187,
9232,
16,
45902,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
45902,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
45902,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
10072,
10,
1275,
19,
1397,
6561,
16,
14614,
3778,
14,
1146,
20,
790,
11,
275,
188,
187,
9232,
16,
6112,
2699,
7925,
260,
869,
188,
187,
9232,
16,
45902,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
1397,
6561,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
12508,
1275,
19,
14,
1146,
20,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
10,
579,
776,
11,
280,
16252,
11060,
16,
14614,
3778,
14,
6538,
724,
790,
11,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
3503,
336,
188,
187,
9232,
16,
2625,
10704,
44051,
260,
3343,
10,
9232,
16,
2625,
10704,
44051,
14,
603,
275,
188,
187,
187,
579,
776,
188,
187,
12508,
579,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
6112,
10704,
347,
1397,
3314,
14582,
579,
1436,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
6112,
10704,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
6112,
10704,
7925,
10,
579,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
2625,
10704,
10072,
16,
1275,
19,
14,
11028,
16,
2625,
10704,
10072,
16,
1275,
20,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
41350,
336,
388,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2625,
10704,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
2625,
10704,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
44051,
10,
75,
388,
11,
776,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2625,
10704,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
2625,
10704,
44051,
61,
75,
913,
579,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
10072,
10,
1275,
19,
11060,
16,
14614,
3778,
14,
1146,
20,
790,
11,
275,
188,
187,
9232,
16,
6112,
10704,
7925,
260,
869,
188,
187,
9232,
16,
2625,
10704,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
11060,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
12508,
1275,
19,
14,
1146,
20,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
10,
1587,
10311,
776,
14,
18278,
10311,
776,
11,
790,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
3503,
336,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
44051,
260,
3343,
10,
9232,
16,
6009,
14614,
805,
9327,
44051,
14,
603,
275,
188,
187,
187,
1587,
10311,
209,
209,
776,
188,
187,
187,
16252,
10311,
776,
188,
187,
12508,
1587,
10311,
14,
18278,
10311,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
9380,
14614,
805,
9327,
347,
1397,
3314,
14582,
1587,
10311,
14,
18278,
10311,
1436,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
9380,
14614,
805,
9327,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
9380,
14614,
805,
9327,
7925,
10,
1587,
10311,
14,
18278,
10311,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
6009,
14614,
805,
9327,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
41350,
336,
388,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6009,
14614,
805,
9327,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
6009,
14614,
805,
9327,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
44051,
10,
75,
388,
11,
280,
530,
14,
776,
11,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6009,
14614,
805,
9327,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
6009,
14614,
805,
9327,
44051,
61,
75,
913,
1587,
10311,
14,
11028,
16,
6009,
14614,
805,
9327,
44051,
61,
75,
913,
16252,
10311,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
9380,
14614,
805,
9327,
7925,
260,
869,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
275,
188,
187,
9232,
16,
1634,
8751,
16,
3503,
336,
188,
187,
9232,
16,
1634,
44051,
260,
3343,
10,
9232,
16,
1634,
44051,
14,
603,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
12508,
16252,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
2272,
347,
1397,
3314,
14582,
16252,
1436,
188,
187,
9232,
16,
1634,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
2272,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
2272,
7925,
10,
16252,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
1634,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
41350,
336,
388,
275,
188,
187,
9232,
16,
1634,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
1634,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
1634,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
44051,
10,
75,
388,
11,
11060,
16,
14614,
3778,
275,
188,
187,
9232,
16,
1634,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
1634,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
1634,
44051,
61,
75,
913,
16252,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
2272,
7925,
260,
869,
188,
187,
9232,
16,
1634,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
275,
188,
187,
9232,
16,
2173,
8751,
16,
3503,
336,
188,
187,
9232,
16,
2173,
44051,
260,
3343,
10,
9232,
16,
2173,
44051,
14,
603,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
12508,
16252,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
2574,
347,
1397,
3314,
14582,
16252,
1436,
188,
187,
9232,
16,
2173,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
2574,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
2574,
7925,
10,
16252,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
2173,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
41350,
336,
388,
275,
188,
187,
9232,
16,
2173,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2173,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
2173,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
44051,
10,
75,
388,
11,
11060,
16,
14614,
3778,
275,
188,
187,
9232,
16,
2173,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2173,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
2173,
44051,
61,
75,
913,
16252,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
2574,
7925,
260,
869,
188,
187,
9232,
16,
2173,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6193,
10,
16252,
10311,
776,
11,
790,
275,
188,
187,
9232,
16,
3554,
8751,
16,
3503,
336,
188,
187,
9232,
16,
3554,
44051,
260,
3343,
10,
9232,
16,
3554,
44051,
14,
603,
275,
188,
187,
187,
16252,
10311,
776,
188,
187,
12508,
16252,
10311,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
3593,
347,
1397,
3314,
14582,
16252,
10311,
1436,
188,
187,
9232,
16,
3554,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
3593,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
3593,
7925,
10,
16252,
10311,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
3554,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6193,
41350,
336,
388,
275,
188,
187,
9232,
16,
3554,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
3554,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
3554,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6193,
44051,
10,
75,
388,
11,
776,
275,
188,
187,
9232,
16,
3554,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
3554,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
3554,
44051,
61,
75,
913,
16252,
10311,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6193,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
3593,
7925,
260,
869,
188,
187,
9232,
16,
3554,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
14877,
13992,
336,
1929,
61,
530,
63,
13326,
3314,
2475,
275,
188,
187,
9232,
16,
6584,
13992,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6584,
13992,
8751,
16,
26256,
336,
188,
187,
9232,
16,
45902,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
45902,
8751,
16,
26256,
336,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2625,
10704,
8751,
16,
26256,
336,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6009,
14614,
805,
9327,
8751,
16,
26256,
336,
188,
187,
9232,
16,
1634,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
1634,
8751,
16,
26256,
336,
188,
187,
9232,
16,
2173,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2173,
8751,
16,
26256,
336,
188,
187,
9232,
16,
3554,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
3554,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
6584,
13992,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4207,
14572,
10,
689,
776,
14,
2647,
1397,
3314,
5494,
275,
188,
187,
9232,
16,
6584,
13992,
8751,
16,
3503,
336,
188,
187,
5303,
11028,
16,
6584,
13992,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
6584,
13992,
489,
869,
275,
188,
187,
187,
9232,
16,
6584,
13992,
260,
1929,
61,
530,
63,
13326,
3314,
29866,
188,
187,
95,
188,
187,
285,
11028,
16,
6584,
13992,
61,
689,
63,
489,
869,
275,
188,
187,
187,
9232,
16,
6584,
13992,
61,
689,
63,
260,
30413,
3314,
29866,
188,
187,
95,
188,
187,
9232,
16,
6584,
13992,
61,
689,
63,
260,
3343,
10,
9232,
16,
6584,
13992,
61,
689,
630,
2647,
11,
188,
95,
188,
188,
828,
547,
13103,
332,
16,
14614,
6475,
260,
605,
10,
10337,
14614,
6475,
11
] | [
1397,
6561,
16,
14614,
3778,
14,
6538,
724,
790,
11,
188,
187,
45902,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
45902,
44051,
1397,
393,
2475,
188,
187,
45902,
10072,
209,
209,
209,
209,
603,
275,
188,
187,
187,
1275,
19,
1397,
6561,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
95,
188,
187,
6112,
10704,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
579,
776,
11,
280,
16252,
11060,
16,
14614,
3778,
14,
6538,
724,
790,
11,
188,
187,
2625,
10704,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
2625,
10704,
44051,
1397,
393,
275,
188,
187,
187,
579,
776,
188,
187,
95,
188,
187,
2625,
10704,
10072,
603,
275,
188,
187,
187,
1275,
19,
11060,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
95,
188,
187,
9380,
14614,
805,
9327,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
1587,
10311,
14,
18278,
10311,
776,
11,
790,
188,
187,
6009,
14614,
805,
9327,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
6009,
14614,
805,
9327,
44051,
1397,
393,
275,
188,
187,
187,
1587,
10311,
209,
209,
776,
188,
187,
187,
16252,
10311,
776,
188,
187,
95,
188,
187,
6009,
14614,
805,
9327,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
2272,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
188,
187,
1634,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
1634,
44051,
1397,
393,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
95,
188,
187,
1634,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
2574,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
188,
187,
2173,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
2173,
44051,
1397,
393,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
95,
188,
187,
2173,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
3593,
7925,
209,
209,
209,
209,
209,
209,
209,
830,
10,
16252,
10311,
776,
11,
790,
188,
187,
3554,
8751,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
188,
187,
3554,
44051,
1397,
393,
275,
188,
187,
187,
16252,
10311,
776,
188,
187,
95,
188,
187,
3554,
10072,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
95,
188,
187,
6584,
13992,
209,
209,
209,
209,
209,
1929,
61,
530,
63,
13326,
3314,
2475,
188,
187,
6584,
13992,
8751,
6202,
16,
40285,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
336,
280,
8127,
332,
1397,
6561,
16,
14614,
3778,
14,
6538,
724,
790,
11,
275,
188,
187,
9232,
16,
45902,
8751,
16,
3503,
336,
188,
187,
9232,
16,
45902,
44051,
260,
3343,
10,
9232,
16,
45902,
44051,
14,
603,
2475,
5494,
188,
187,
9232,
16,
4726,
14572,
435,
6112,
2699,
347,
1397,
3314,
2475,
5494,
188,
187,
9232,
16,
45902,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
6112,
2699,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
6112,
2699,
7925,
336,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
45902,
10072,
16,
1275,
19,
14,
11028,
16,
45902,
10072,
16,
1275,
20,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
41350,
336,
388,
275,
188,
187,
9232,
16,
45902,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
45902,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
45902,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
2699,
10072,
10,
1275,
19,
1397,
6561,
16,
14614,
3778,
14,
1146,
20,
790,
11,
275,
188,
187,
9232,
16,
6112,
2699,
7925,
260,
869,
188,
187,
9232,
16,
45902,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
1397,
6561,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
12508,
1275,
19,
14,
1146,
20,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
10,
579,
776,
11,
280,
16252,
11060,
16,
14614,
3778,
14,
6538,
724,
790,
11,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
3503,
336,
188,
187,
9232,
16,
2625,
10704,
44051,
260,
3343,
10,
9232,
16,
2625,
10704,
44051,
14,
603,
275,
188,
187,
187,
579,
776,
188,
187,
12508,
579,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
6112,
10704,
347,
1397,
3314,
14582,
579,
1436,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
6112,
10704,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
6112,
10704,
7925,
10,
579,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
2625,
10704,
10072,
16,
1275,
19,
14,
11028,
16,
2625,
10704,
10072,
16,
1275,
20,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
41350,
336,
388,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2625,
10704,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
2625,
10704,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
44051,
10,
75,
388,
11,
776,
275,
188,
187,
9232,
16,
2625,
10704,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2625,
10704,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
2625,
10704,
44051,
61,
75,
913,
579,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6842,
10704,
10072,
10,
1275,
19,
11060,
16,
14614,
3778,
14,
1146,
20,
790,
11,
275,
188,
187,
9232,
16,
6112,
10704,
7925,
260,
869,
188,
187,
9232,
16,
2625,
10704,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
11060,
16,
14614,
3778,
188,
187,
187,
1275,
20,
790,
188,
187,
12508,
1275,
19,
14,
1146,
20,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
10,
1587,
10311,
776,
14,
18278,
10311,
776,
11,
790,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
3503,
336,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
44051,
260,
3343,
10,
9232,
16,
6009,
14614,
805,
9327,
44051,
14,
603,
275,
188,
187,
187,
1587,
10311,
209,
209,
776,
188,
187,
187,
16252,
10311,
776,
188,
187,
12508,
1587,
10311,
14,
18278,
10311,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
9380,
14614,
805,
9327,
347,
1397,
3314,
14582,
1587,
10311,
14,
18278,
10311,
1436,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
9380,
14614,
805,
9327,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
9380,
14614,
805,
9327,
7925,
10,
1587,
10311,
14,
18278,
10311,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
6009,
14614,
805,
9327,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
41350,
336,
388,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6009,
14614,
805,
9327,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
6009,
14614,
805,
9327,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
44051,
10,
75,
388,
11,
280,
530,
14,
776,
11,
275,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
6009,
14614,
805,
9327,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
6009,
14614,
805,
9327,
44051,
61,
75,
913,
1587,
10311,
14,
11028,
16,
6009,
14614,
805,
9327,
44051,
61,
75,
913,
16252,
10311,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
18281,
14614,
805,
9327,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
9380,
14614,
805,
9327,
7925,
260,
869,
188,
187,
9232,
16,
6009,
14614,
805,
9327,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
275,
188,
187,
9232,
16,
1634,
8751,
16,
3503,
336,
188,
187,
9232,
16,
1634,
44051,
260,
3343,
10,
9232,
16,
1634,
44051,
14,
603,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
12508,
16252,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
2272,
347,
1397,
3314,
14582,
16252,
1436,
188,
187,
9232,
16,
1634,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
2272,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
2272,
7925,
10,
16252,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
1634,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
41350,
336,
388,
275,
188,
187,
9232,
16,
1634,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
1634,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
1634,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
44051,
10,
75,
388,
11,
11060,
16,
14614,
3778,
275,
188,
187,
9232,
16,
1634,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
1634,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
1634,
44051,
61,
75,
913,
16252,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
3122,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
2272,
7925,
260,
869,
188,
187,
9232,
16,
1634,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
10,
16252,
11060,
16,
14614,
3778,
11,
790,
275,
188,
187,
9232,
16,
2173,
8751,
16,
3503,
336,
188,
187,
9232,
16,
2173,
44051,
260,
3343,
10,
9232,
16,
2173,
44051,
14,
603,
275,
188,
187,
187,
16252,
11060,
16,
14614,
3778,
188,
187,
12508,
16252,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
2574,
347,
1397,
3314,
14582,
16252,
1436,
188,
187,
9232,
16,
2173,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
2574,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
2574,
7925,
10,
16252,
11,
188,
187,
95,
730,
275,
188,
187,
187,
397,
11028,
16,
2173,
10072,
16,
1275,
19,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
41350,
336,
388,
275,
188,
187,
9232,
16,
2173,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2173,
8751,
16,
26256,
336,
188,
187,
397,
1005,
10,
9232,
16,
2173,
44051,
11,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
44051,
10,
75,
388,
11,
11060,
16,
14614,
3778,
275,
188,
187,
9232,
16,
2173,
8751,
16,
25918,
336,
188,
187,
5303,
11028,
16,
2173,
8751,
16,
26256,
336,
188,
187,
397,
11028,
16,
2173,
44051,
61,
75,
913,
16252,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
4559,
10072,
10,
1275,
19,
790,
11,
275,
188,
187,
9232,
16,
2574,
7925,
260,
869,
188,
187,
9232,
16,
2173,
10072,
260,
603,
275,
188,
187,
187,
1275,
19,
790,
188,
187,
12508,
1275,
19,
95,
188,
95,
188,
188,
1857,
280,
9232,
258,
10337,
14614,
6475,
11,
6193,
10,
16252,
10311,
776,
11,
790,
275,
188,
187,
9232,
16,
3554,
8751,
16,
3503,
336,
188,
187,
9232,
16,
3554,
44051,
260,
3343,
10,
9232,
16,
3554,
44051,
14,
603,
275,
188,
187,
187,
16252,
10311,
776,
188,
187,
12508,
16252,
10311,
1436,
188,
187,
9232,
16,
4726,
14572,
435,
3593,
347,
1397,
3314,
14582,
16252,
10311,
1436,
188,
187,
9232,
16,
3554,
8751,
16,
7871,
336,
188,
187,
285,
11028,
16,
3593,
7925,
598,
869,
275,
188,
187,
187,
397,
11028,
16,
3593,
7925,
10,
16252,
10311,
11,
188,
187,
95
] |
72,777 | package topology
import (
"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"log"
"math"
"net/http"
"net/url"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/olivere/elastic"
"github.com/recallsong/go-utils/conv"
"github.com/erda-project/erda-infra/providers/httpserver"
"github.com/erda-project/erda-infra/providers/i18n"
"github.com/erda-project/erda/modules/core/monitor/metric/query/metricq"
"github.com/erda-project/erda/modules/core/monitor/metric/query/query"
apm "github.com/erda-project/erda/modules/monitor/apm/common"
"github.com/erda-project/erda/modules/monitor/common/db"
"github.com/erda-project/erda/modules/monitor/common/permission"
api "github.com/erda-project/erda/pkg/common/httpapi"
)
type Vo struct {
StartTime int64 `query:"startTime"`
EndTime int64 `query:"endTime"`
TerminusKey string `query:"terminusKey" validate:"required"`
Tags []string `query:"tags"`
Debug bool `query:"debug"`
}
type Response struct {
Nodes []*Node `json:"nodes"`
}
func GetTopologyPermission(db *db.DB) httpserver.Interceptor {
return permission.Intercepter(
permission.ScopeProject, permission.TkFromParams(db),
apm.MonitorTopology, permission.ActionGet,
)
}
const TimeLayout = "2006-01-02 15:04:05"
type Node struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
AddonId string `json:"addonId,omitempty"`
AddonType string `json:"addonType,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
ApplicationName string `json:"applicationName,omitempty"`
RuntimeId string `json:"runtimeId,omitempty"`
RuntimeName string `json:"runtimeName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
DashboardId string `json:"dashboardId"`
Metric *Metric `json:"metric"`
Parents []*Node `json:"parents"`
}
const (
topologyNodeService = "topology_node_service"
topologyNodeGateway = "topology_node_gateway"
topologyNodeDb = "topology_node_db"
topologyNodeCache = "topology_node_cache"
topologyNodeMq = "topology_node_mq"
topologyNodeOther = "topology_node_other"
processAnalysisNodejs = "process_analysis_nodejs"
processAnalysisJava = "process_analysis_java"
)
const (
JavaProcessType = "jvm_memory"
NodeJsProcessType = "nodejs_memory"
)
var ProcessTypes = []string{
JavaProcessType,
NodeJsProcessType,
}
const (
TypeService = "Service"
TypeMysql = "Mysql"
TypeRedis = "Redis"
TypeRocketMQ = "RocketMQ"
TypeHttp = "Http"
TypeDubbo = "Dubbo"
TypeSidecar = "SideCar"
TypeGateway = "APIGateway"
TypeRegisterCenter = "RegisterCenter"
TypeConfigCenter = "ConfigCenter"
TypeNoticeCenter = "NoticeCenter"
TypeElasticsearch = "Elasticsearch"
)
type SearchTag struct {
Tag string `json:"tag"`
Label string `json:"label"`
Type string `json:"type"`
}
var (
ApplicationSearchTag = SearchTag{
Tag: "application",
Label: "应用名称",
Type: "select",
}
ServiceSearchTag = SearchTag{
Tag: "service",
Label: "服务名称",
Type: "select",
}
)
var ErrorReqMetricNames = []string{
"application_http_error",
"application_rpc_error",
"application_cache_error",
"application_db_error",
"application_mq_error",
}
var ReqMetricNames = []string{
"application_http_service",
"application_rpc_service",
"application_cache_service",
"application_db_service",
"application_mq_service",
}
var ReqMetricNamesDesc = map[string]string{
"application_http_service": "HTTP 请求",
"application_rpc_service": "RPC 请求",
"application_cache_service": "缓存请求",
"application_db_service": "数据库请求",
"application_mq_service": "MQ 请求",
}
type Field struct {
ELapsedCount float64 `json:"elapsed_count,omitempty"`
ELapsedMax float64 `json:"elapsed_max,omitempty"`
ELapsedMean float64 `json:"elapsed_mean,omitempty"`
ELapsedMin float64 `json:"elapsed_min,omitempty"`
ELapsedSum float64 `json:"elapsed_sum,omitempty"`
CountSum float64 `json:"count_sum,omitempty"`
ErrorsSum float64 `json:"errors_sum,omitempty"`
}
type Tag struct {
Component string `json:"component,omitempty"`
Host string `json:"host,omitempty"`
SourceProjectId string `json:"source_project_id,omitempty"`
SourceProjectName string `json:"source_project_name,omitempty"`
SourceWorkspace string `json:"source_workspace,omitempty"`
SourceTerminusKey string `json:"source_terminus_key,omitempty"`
SourceApplicationId string `json:"source_application_id,omitempty"`
SourceApplicationName string `json:"source_application_name,omitempty"`
SourceRuntimeId string `json:"source_runtime_id,omitempty"`
SourceRuntimeName string `json:"source_runtime_name,omitempty"`
SourceServiceName string `json:"source_service_name,omitempty"`
SourceServiceId string `json:"source_service_id,omitempty"`
SourceAddonID string `json:"source_addon_id,omitempty"`
SourceAddonType string `json:"source_addon_type,omitempty"`
TargetInstanceId string `json:"target_instance_id,omitempty"`
TargetProjectId string `json:"target_project_id,omitempty"`
TargetProjectName string `json:"target_project_name,omitempty"`
TargetWorkspace string `json:"target_workspace,omitempty"`
TargetTerminusKey string `json:"target_terminus_key,omitempty"`
TargetApplicationId string `json:"target_application_id,omitempty"`
TargetApplicationName string `json:"target_application_name,omitempty"`
TargetRuntimeId string `json:"target_runtime_id,omitempty"`
TargetRuntimeName string `json:"target_runtime_name,omitempty"`
TargetServiceName string `json:"target_service_name,omitempty"`
TargetServiceId string `json:"target_service_id,omitempty"`
TargetAddonID string `json:"target_addon_id,omitempty"`
TargetAddonType string `json:"target_addon_type,omitempty"`
TerminusKey string `json:"terminus_key,omitempty"`
ProjectId string `json:"project_id,omitempty"`
ProjectName string `json:"project_name,omitempty"`
Workspace string `json:"workspace,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
ApplicationName string `json:"application_name,omitempty"`
RuntimeId string `json:"runtime_id,omitempty"`
RuntimeName string `json:"runtime_name,omitempty"`
ServiceName string `json:"service_name,omitempty"`
ServiceId string `json:"service_id,omitempty"`
ServiceInstanceId string `json:"service_instance_id,omitempty"`
ServiceIp string `json:"service_ip,omitempty"`
Type string `json:"type,omitempty"`
}
type TopologyNodeRelation struct {
Name string `json:"name,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Tags Tag `json:"tags,omitempty"`
Fields Field `json:"fields,omitempty"`
Parents []*TopologyNodeRelation `json:"parents,omitempty"`
Metric *Metric `json:"metric,omitempty"`
}
type Metric struct {
Count int64 `json:"count"`
HttpError int64 `json:"http_error"`
RT float64 `json:"rt"`
ErrorRate float64 `json:"error_rate"`
Replicas float64 `json:"replicas,omitempty"`
Running float64 `json:"running"`
Stopped float64 `json:"stopped"`
}
const (
Application = "application"
Service = "service"
HttpIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "http" + apm.Sep3 + Service
RpcIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "rpc" + apm.Sep3 + Service
MicroIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "micro" + apm.Sep3 + Service
MqIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "mq" + apm.Sep3 + Service
DbIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "db" + apm.Sep3 + Service
CacheIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "cache" + apm.Sep3 + Service
ServiceNodeIndex = apm.Spot + apm.Sep1 + "service_node"
)
var IndexPrefix = []string{
HttpIndex, RpcIndex, MicroIndex,
MqIndex, DbIndex, CacheIndex,
ServiceNodeIndex,
}
var NodeTypes = []string{
TypeService, TypeMysql, TypeRedis,
TypeHttp, TypeDubbo, TypeSidecar,
TypeGateway, TypeRegisterCenter, TypeConfigCenter,
TypeNoticeCenter, TypeElasticsearch,
}
type ServiceDashboard struct {
Id string `json:"service_id"`
Name string `json:"service_name"`
ReqCount int64 `json:"req_count"`
ReqErrorCount int64 `json:"req_error_count"`
ART float64 `json:"avg_req_time"`
RSInstanceCount string `json:"running_stopped_instance_count"`
RuntimeId string `json:"runtime_id"`
RuntimeName string `json:"runtime_name"`
ApplicationId string `json:"application_id"`
ApplicationName string `json:"application_name"`
}
func createTypologyIndices(startTimeMs int64, endTimeMs int64) map[string][]string {
indices := make(map[string][]string)
if startTimeMs > endTimeMs {
indices[apm.EmptyIndex] = []string{apm.EmptyIndex}
}
for _, prefix := range IndexPrefix {
index := prefix + apm.Sep1 + apm.Sep2
if ReHttpRpcMicro.MatchString(prefix) {
fillingIndex(indices, index, HttpRecMircoIndexType)
}
if ReMqDbCache.MatchString(prefix) {
fillingIndex(indices, index, MQDBCacheIndexType)
}
if ReServiceNode.MatchString(prefix) {
fillingIndex(indices, index, ServiceNodeIndexType)
}
}
if len(indices) <= 0 {
indices[apm.EmptyIndex] = []string{apm.EmptyIndex}
}
return indices
}
func fillingIndex(indices map[string][]string, index string, indexType string) {
i := indices[indexType]
if i == nil {
indices[indexType] = []string{index}
} else {
indices[indexType] = append(i, index)
}
}
func (topology *provider) indexExist(indices []string) *elastic.IndicesExistsService {
exists := topology.es.IndexExists(indices...)
return exists
}
var (
ReServiceNode = regexp.MustCompile("^" + ServiceNodeIndex + "(.*)$")
ReHttpRpcMicro = regexp.MustCompile("^(" + HttpIndex + "|" + RpcIndex + "|" + MicroIndex + ")(.*)$")
ReMqDbCache = regexp.MustCompile("^(" + MqIndex + "|" + DbIndex + "|" + CacheIndex + ")(.*)$")
)
type NodeType struct {
Type string
GroupByField *GroupByField
SourceFields []string
Filter *elastic.BoolQuery
Aggregation map[string]*elastic.SumAggregation
}
type GroupByField struct {
Name string
SubField *GroupByField
}
var (
TargetServiceNodeType *NodeType
SourceServiceNodeType *NodeType
TargetAddonNodeType *NodeType
SourceAddonNodeType *NodeType
TargetComponentNodeType *NodeType
TargetOtherNodeType *NodeType
SourceMQNodeType *NodeType
TargetMQServiceNodeType *NodeType
OtherNodeType *NodeType
ServiceNodeAggregation map[string]*elastic.SumAggregation
NodeAggregation map[string]*elastic.SumAggregation
)
type NodeRelation struct {
Source []*NodeType
Target *NodeType
}
const (
TargetServiceNode = "TargetServiceNode"
SourceServiceNode = "SourceServiceNode"
TargetAddonNode = "TargetAddonNode"
SourceAddonNode = "SourceAddonNode"
TargetComponentNode = "TargetComponentNode"
TargetOtherNode = "TargetOtherNode"
SourceMQNode = "SourceMQNode"
TargetMQServiceNode = "TargetMQServiceNode"
OtherNode = "OtherNode"
)
func init() {
ServiceNodeAggregation = map[string]*elastic.SumAggregation{
apm.FieldsCountSum: elastic.NewSumAggregation().Field(apm.FieldsCountSum),
apm.FieldElapsedSum: elastic.NewSumAggregation().Field(apm.FieldElapsedSum),
apm.FieldsErrorsSum: elastic.NewSumAggregation().Field(apm.FieldsErrorsSum),
}
NodeAggregation = map[string]*elastic.SumAggregation{
apm.FieldsCountSum: elastic.NewSumAggregation().Field(apm.FieldsCountSum),
apm.FieldElapsedSum: elastic.NewSumAggregation().Field(apm.FieldElapsedSum),
}
TargetServiceNodeType = &NodeType{
Type: TargetServiceNode,
GroupByField: &GroupByField{Name: apm.TagsTargetApplicationId, SubField: &GroupByField{Name: apm.TagsTargetRuntimeName, SubField: &GroupByField{Name: apm.TagsTargetServiceName}}},
SourceFields: []string{apm.TagsTargetApplicationId, apm.TagsTargetRuntimeName, apm.TagsTargetServiceName, apm.TagsTargetServiceId, apm.TagsTargetApplicationName, apm.TagsTargetRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: ServiceNodeAggregation,
}
SourceServiceNodeType = &NodeType{
Type: SourceServiceNode,
GroupByField: &GroupByField{Name: apm.TagsSourceApplicationId, SubField: &GroupByField{Name: apm.TagsSourceRuntimeName, SubField: &GroupByField{Name: apm.TagsSourceServiceName}}},
SourceFields: []string{apm.TagsSourceApplicationId, apm.TagsSourceRuntimeName, apm.TagsSourceServiceName, apm.TagsSourceServiceId, apm.TagsSourceApplicationName, apm.TagsSourceRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsSourceAddonType)),
Aggregation: ServiceNodeAggregation,
}
TargetAddonNodeType = &NodeType{
Type: TargetAddonNode,
GroupByField: &GroupByField{Name: apm.TagsTargetAddonType, SubField: &GroupByField{Name: apm.TagsTargetAddonId}},
SourceFields: []string{apm.TagsTargetAddonType, apm.TagsTargetAddonId, apm.TagsTargetAddonGroup},
Filter: elastic.NewBoolQuery().Filter(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: NodeAggregation,
}
SourceAddonNodeType = &NodeType{
Type: SourceAddonNode,
GroupByField: &GroupByField{Name: apm.TagsSourceAddonType, SubField: &GroupByField{Name: apm.TagsSourceAddonId}},
SourceFields: []string{apm.TagsSourceAddonType, apm.TagsSourceAddonId, apm.TagsSourceAddonGroup},
Filter: elastic.NewBoolQuery().Filter(elastic.NewExistsQuery(apm.TagsSourceAddonType)),
Aggregation: NodeAggregation,
}
TargetComponentNodeType = &NodeType{
Type: TargetComponentNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost, apm.TagsTargetAddonGroup},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType),
elastic.NewExistsQuery(apm.TagsTargetApplicationId)),
Aggregation: NodeAggregation,
}
TargetOtherNodeType = &NodeType{
Type: TargetOtherNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType),
elastic.NewExistsQuery(apm.TagsTargetApplicationId)),
Aggregation: NodeAggregation,
}
SourceMQNodeType = &NodeType{
Type: SourceMQNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost},
Filter: elastic.NewBoolQuery().Filter(elastic.NewTermQuery("name", "application_mq_service")).
MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: NodeAggregation,
}
TargetMQServiceNodeType = &NodeType{
Type: TargetMQServiceNode,
GroupByField: &GroupByField{Name: apm.TagsTargetApplicationId, SubField: &GroupByField{Name: apm.TagsTargetRuntimeName, SubField: &GroupByField{Name: apm.TagsTargetServiceName}}},
SourceFields: []string{apm.TagsTargetApplicationId, apm.TagsTargetRuntimeName, apm.TagsTargetServiceName, apm.TagsTargetServiceId, apm.TagsTargetApplicationName, apm.TagsTargetRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
}
OtherNodeType = &NodeType{
Type: OtherNode,
GroupByField: &GroupByField{Name: apm.TagsApplicationId, SubField: &GroupByField{Name: apm.TagsRuntimeName, SubField: &GroupByField{Name: apm.TagsServiceName}}},
SourceFields: []string{apm.TagsApplicationId, apm.TagsRuntimeName, apm.TagsServiceName, apm.TagsServiceId, apm.TagsApplicationName, apm.TagsRuntimeId},
Filter: elastic.NewBoolQuery().Must(elastic.NewExistsQuery(apm.TagsApplicationId)),
}
NodeRelations = map[string][]*NodeRelation{
HttpRecMircoIndexType: {
{Source: []*NodeType{SourceServiceNodeType, SourceAddonNodeType}, Target: TargetServiceNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetAddonNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetOtherNodeType},
},
MQDBCacheIndexType: {
{Source: []*NodeType{SourceMQNodeType}, Target: TargetMQServiceNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetComponentNodeType},
},
ServiceNodeIndexType: {
{Target: OtherNodeType},
},
}
Aggregations = map[string]*AggregationCondition{
HttpRecMircoIndexType: {Aggregation: toEsAggregation(NodeRelations[HttpRecMircoIndexType])},
MQDBCacheIndexType: {Aggregation: toEsAggregation(NodeRelations[MQDBCacheIndexType])},
ServiceNodeIndexType: {Aggregation: toEsAggregation(NodeRelations[ServiceNodeIndexType])},
}
}
var NodeRelations map[string][]*NodeRelation
var Aggregations map[string]*AggregationCondition
const (
HttpRecMircoIndexType = "http-rpc-mirco"
MQDBCacheIndexType = "mq-db-cache"
ServiceNodeIndexType = "service-node"
)
type RequestTransaction struct {
RequestType string `json:"requestType"`
RequestCount float64 `json:"requestCount"`
RequestAvgTime float64 `json:"requestAvgTime"`
RequestErrorRate float64 `json:"requestErrorRate"`
}
type AggregationCondition struct {
Aggregation map[string]*elastic.FilterAggregation
}
func toEsAggregation(nodeRelations []*NodeRelation) map[string]*elastic.FilterAggregation {
m := make(map[string]*elastic.FilterAggregation)
for _, relation := range nodeRelations {
nodeType := relation.Target
key := encodeTypeToKey(nodeType.Type)
if nodeType != nil {
childAggregation := elastic.NewFilterAggregation()
m[key] = childAggregation
end := overlay(nodeType, childAggregation)
sources := relation.Source
if sources != nil {
for _, source := range sources {
sourceKey := encodeTypeToKey(source.Type)
childAggregation := elastic.NewFilterAggregation()
overlay(source, childAggregation)
end.SubAggregation(sourceKey, childAggregation)
}
}
}
}
return m
}
func encodeTypeToKey(nodeType string) string {
md := sha256.New()
md.Write([]byte(nodeType))
mdSum := md.Sum(nil)
key := hex.EncodeToString(mdSum)
return key
}
func overlay(nodeType *NodeType, childAggregation *elastic.FilterAggregation) *elastic.TermsAggregation {
filter := nodeType.Filter
if filter != nil {
childAggregation.Filter(filter)
}
field := nodeType.GroupByField
start, end := toChildrenAggregation(nodeType.GroupByField, nil)
childAggregation.SubAggregation(field.Name, start)
sourceFields := nodeType.SourceFields
if sourceFields != nil {
end.SubAggregation(apm.Columns,
elastic.NewTopHitsAggregation().From(0).Size(1).Sort(apm.Timestamp, false).Explain(false).
FetchSourceContext(elastic.NewFetchSourceContext(true).Include(sourceFields...)))
}
aggs := nodeType.Aggregation
if aggs != nil {
for key, sumAggregation := range aggs {
end.SubAggregation(key, sumAggregation)
}
}
return end
}
func toChildrenAggregation(field *GroupByField, termEnd *elastic.TermsAggregation) (*elastic.TermsAggregation, *elastic.TermsAggregation) {
if field == nil {
log.Fatal("field can't nil")
}
termStart := elastic.NewTermsAggregation().Field(field.Name).Size(100)
if field.SubField != nil {
start, end := toChildrenAggregation(field.SubField, termEnd)
termStart.SubAggregation(field.SubField.Name, start).Size(100)
termEnd = end
} else {
termEnd = termStart
}
return termStart, termEnd
}
func queryConditions(indexType string, params Vo) *elastic.BoolQuery {
boolQuery := elastic.NewBoolQuery()
boolQuery.Filter(elastic.NewRangeQuery(apm.Timestamp).Gte(params.StartTime * 1e6).Lte(params.EndTime * 1e6))
if ServiceNodeIndexType == indexType {
boolQuery.Filter(elastic.NewTermQuery(apm.TagsTerminusKey, params.TerminusKey))
} else {
boolQuery.Filter(elastic.NewBoolQuery().Should(elastic.NewTermQuery(apm.TagsTargetTerminusKey, params.TerminusKey)).
Should(elastic.NewTermQuery(apm.TagsSourceTerminusKey, params.TerminusKey)))
}
not := elastic.NewBoolQuery().MustNot(elastic.NewTermQuery(apm.TagsComponent, "registerCenter")).
MustNot(elastic.NewTermQuery(apm.TagsComponent, "configCenter")).
MustNot(elastic.NewTermQuery(apm.TagsComponent, "noticeCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "registerCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "configCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "noticeCenter"))
if params.Tags != nil && len(params.Tags) > 0 {
sbq := elastic.NewBoolQuery()
for _, v := range params.Tags {
tagInfo := strings.Split(v, ":")
tag := tagInfo[0]
value := tagInfo[1]
switch tag {
case ApplicationSearchTag.Tag:
sbq.Should(elastic.NewTermQuery(apm.TagsApplicationName, value)).
Should(elastic.NewTermQuery(apm.TagsTargetApplicationName, value)).
Should(elastic.NewTermQuery(apm.TagsSourceApplicationName, value))
case ServiceSearchTag.Tag:
sbq.Should(elastic.NewTermQuery(apm.TagsServiceId, value)).
Should(elastic.NewTermQuery(apm.TagsTargetServiceId, value)).
Should(elastic.NewTermQuery(apm.TagsSourceServiceId, value))
}
}
boolQuery.Filter(sbq)
}
boolQuery.Filter(not)
return boolQuery
}
type ExceptionDescription struct {
InstanceId string `json:"instance_id"`
ExceptionType string `json:"exception_type"`
Class string `json:"class"`
Method string `json:"method"`
Message string `json:"message"`
Time string `json:"time"`
Count int64 `json:"count"`
}
type ExceptionDescriptionsCountSort []ExceptionDescription
func (e ExceptionDescriptionsCountSort) Len() int {
return len(e)
}
func (e ExceptionDescriptionsCountSort) Less(i, j int) bool {
return e[i].Count > e[j].Count
}
func (e ExceptionDescriptionsCountSort) Swap(i, j int) {
e[i], e[j] = e[j], e[i]
}
type ExceptionDescriptionsTimeSort []ExceptionDescription
func (e ExceptionDescriptionsTimeSort) Len() int {
return len(e)
}
func (e ExceptionDescriptionsTimeSort) Less(i, j int) bool {
iTime, err := time.Parse(TimeLayout, e[i].Time)
jTime, err := time.Parse(TimeLayout, e[j].Time)
if err != nil {
return false
}
return iTime.UnixNano() > jTime.UnixNano()
}
func (e ExceptionDescriptionsTimeSort) Swap(i, j int) {
e[i], e[j] = e[j], e[i]
}
const (
ExceptionTimeSortStrategy = "time"
ExceptionCountSortStrategy = "count"
)
func (topology *provider) GetExceptionTypes(language i18n.LanguageCodes, params ServiceParams) ([]string, interface{}) {
descriptions, err := topology.GetExceptionDescription(language, params, 50, "", "")
if err != nil {
return nil, err
}
typeMap := make(map[string]string)
for _, description := range descriptions {
if typeMap[description.ExceptionType] == "" {
typeMap[description.ExceptionType] = description.ExceptionType
}
}
types := make([]string, 0)
for _, _type := range typeMap {
types = append(types, _type)
}
return types, nil
}
func ExceptionOrderByTimeStrategy(exceptions ExceptionDescriptionsTimeSort) []ExceptionDescription {
sort.Sort(exceptions)
return exceptions
}
func ExceptionOrderByCountStrategy(exceptions ExceptionDescriptionsCountSort) []ExceptionDescription {
sort.Sort(exceptions)
return exceptions
}
func ExceptionOrderByStrategyExecute(exceptionType string, exceptions []ExceptionDescription) []ExceptionDescription {
switch exceptionType {
case ExceptionCountSortStrategy:
return ExceptionOrderByCountStrategy(exceptions)
case ExceptionTimeSortStrategy:
return ExceptionOrderByTimeStrategy(exceptions)
default:
return ExceptionOrderByTimeStrategy(exceptions)
}
}
type ReadWriteBytes struct {
Timestamp int64 `json:"timestamp"`
ReadBytes float64 `json:"readBytes"`
WriteBytes float64 `json:"writeBytes"`
}
type ReadWriteBytesSpeed struct {
Timestamp int64 `json:"timestamp"`
ReadBytesSpeed float64 `json:"readBytesSpeed"`
WriteBytesSpeed float64 `json:"writeBytesSpeed"`
}
func (topology *provider) GetProcessDiskIo(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT parse_time(time(),'2006-01-02T15:04:05Z'),round_float(avg(blk_read_bytes::field), 2),round_float(avg(blk_write_bytes::field), 2) FROM docker_container_summary WHERE terminus_key=$terminus_key AND service_id=$service_id %s GROUP BY time()"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
if params.InstanceId != "" {
statement = fmt.Sprintf(statement, "AND instance_id=$instance_id")
queryParams["instance_id"] = params.InstanceId
} else {
statement = fmt.Sprintf(statement, "")
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
itemResultSpeed := handleSpeed(rows)
return itemResultSpeed, nil
}
func (topology *provider) GetProcessNetIo(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT parse_time(time(),'2006-01-02T15:04:05Z'),round_float(avg(rx_bytes::field), 2),round_float(avg(tx_bytes::field), 2) FROM docker_container_summary WHERE terminus_key=$terminus_key AND service_id=$service_id %s GROUP BY time()"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
if params.InstanceId != "" {
statement = fmt.Sprintf(statement, "AND instance_id=$instance_id")
queryParams["instance_id"] = params.InstanceId
} else {
statement = fmt.Sprintf(statement, "")
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
itemResultSpeed := handleSpeed(rows)
return itemResultSpeed, nil
}
func handleSpeed(rows [][]interface{}) []ReadWriteBytesSpeed {
var itemResult []ReadWriteBytes
for _, row := range rows {
timeMs := row[1].(time.Time).UnixNano() / 1e6
rxBytes := conv.ToFloat64(row[2], 0)
txBytes := conv.ToFloat64(row[3], 0)
writeBytes := ReadWriteBytes{
Timestamp: timeMs,
ReadBytes: rxBytes,
WriteBytes: txBytes,
}
itemResult = append(itemResult, writeBytes)
}
var itemResultSpeed []ReadWriteBytesSpeed
for i, curr := range itemResult {
if i+1 >= len(itemResult) {
break
}
next := itemResult[i+1]
speed := ReadWriteBytesSpeed{}
speed.Timestamp = (curr.Timestamp + next.Timestamp) / 2
speed.ReadBytesSpeed = calculateSpeed(curr.ReadBytes, next.ReadBytes, curr.Timestamp, next.Timestamp)
speed.WriteBytesSpeed = calculateSpeed(curr.WriteBytes, next.WriteBytes, curr.Timestamp, next.Timestamp)
itemResultSpeed = append(itemResultSpeed, speed)
}
return itemResultSpeed
}
func calculateSpeed(curr, next float64, currTime, nextTime int64) float64 {
if curr != next {
if next == 0 || next < curr {
return 0
}
if nextTime-currTime <= 0 {
return 0
}
return toTwoDecimalPlaces((next - curr) / (float64(nextTime) - float64(currTime)))
}
return 0
}
func (topology *provider) GetExceptionMessage(language i18n.LanguageCodes, params ServiceParams, limit int64, sort, exceptionType string) ([]ExceptionDescription, error) {
result := []ExceptionDescription{}
descriptions, err := topology.GetExceptionDescription(language, params, limit, sort, exceptionType)
if exceptionType != "" {
for _, description := range descriptions {
if description.ExceptionType == exceptionType {
result = append(result, description)
}
}
} else {
result = descriptions
}
if err != nil {
return nil, err
}
return result, nil
}
func (topology *provider) GetExceptionDescription(language i18n.LanguageCodes, params ServiceParams, limit int64, sort, exceptionType string) ([]ExceptionDescription, error) {
if limit <= 0 || limit > 50 {
limit = 10
}
if sort != ExceptionTimeSortStrategy && sort != ExceptionCountSortStrategy {
sort = ExceptionTimeSortStrategy
}
if sort == ExceptionTimeSortStrategy {
sort = "max(timestamp) DESC"
}
if sort == ExceptionCountSortStrategy {
sort = "sum(count::field) DESC"
}
var filter bytes.Buffer
if exceptionType != "" {
filter.WriteString(" AND type::tag=$type")
}
sql := fmt.Sprintf("SELECT instance_id::tag,method::tag,class::tag,exception_message::tag,type::tag,max(timestamp),sum(count::field) FROM error_alert WHERE service_id::tag=$service_id AND terminus_key::tag=$terminus_key %s GROUP BY error_id::tag ORDER BY %s LIMIT %v", filter.String(), sort, limit)
paramMap := map[string]interface{}{
"service_id": params.ServiceId,
"type": exceptionType,
"terminus_key": params.ScopeId,
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.StartTime, 10))
options.Set("end", strconv.FormatInt(params.EndTime, 10))
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
paramMap,
options)
if err != nil {
return nil, err
}
var exceptionDescriptions []ExceptionDescription
for _, detail := range source.ResultSet.Rows {
var exceptionDescription ExceptionDescription
exceptionDescription.InstanceId = conv.ToString(detail[0])
exceptionDescription.Method = conv.ToString(detail[1])
exceptionDescription.Class = conv.ToString(detail[2])
exceptionDescription.Message = conv.ToString(detail[3])
exceptionDescription.ExceptionType = conv.ToString(detail[4])
exceptionDescription.Time = time.Unix(0, int64(conv.ToFloat64(detail[5], 0))).Format(TimeLayout)
exceptionDescription.Count = int64(conv.ToFloat64(detail[6], 0))
exceptionDescriptions = append(exceptionDescriptions, exceptionDescription)
}
return exceptionDescriptions, nil
}
func (topology *provider) GetDashBoardByServiceType(params ProcessParams) (string, error) {
for _, processType := range ProcessTypes {
metricsParams := url.Values{}
statement := fmt.Sprintf("SELECT terminus_key::tag FROM %s WHERE terminus_key=$terminus_key "+
"AND service_name=$service_name LIMIT 1", processType)
queryParams := map[string]interface{}{
"terminus_key": params.TerminusKey,
"service_name": params.ServiceName,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return "", err
}
rows := response.ResultSet.Rows
if len(rows) == 1 {
return getDashboardId(processType), nil
}
}
return "", nil
}
func (topology *provider) GetProcessType(language string, params ServiceParams) (interface{}, error) {
return nil, nil
}
type InstanceInfo struct {
Id string `json:"instanceId"`
Ip string `json:"ip"`
Status bool `json:"status"`
}
func (topology *provider) GetServiceInstanceIds(language i18n.LanguageCodes, params ServiceParams) (interface{}, interface{}) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT service_instance_id::tag,service_ip::tag,if(gt(now()-timestamp,300000000000),'false','true') FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
instanceList := topology.handleInstanceInfo(response)
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
instanceListForStatus := topology.handleInstanceInfo(response)
filterInstance(instanceList, instanceListForStatus)
return instanceList, nil
}
func filterInstance(instanceList []*InstanceInfo, instanceListForStatus []*InstanceInfo) {
for _, instance := range instanceList {
for i, statusInstance := range instanceListForStatus {
if instance.Id == statusInstance.Id {
instance.Status = statusInstance.Status
instanceListForStatus = append(instanceListForStatus[:i], instanceListForStatus[i+1:]...)
i--
break
}
}
}
}
func (topology *provider) handleInstanceInfo(response *query.ResultSet) []*InstanceInfo {
rows := response.ResultSet.Rows
instanceIds := []*InstanceInfo{}
for _, row := range rows {
status, err := strconv.ParseBool(conv.ToString(row[2]))
if err != nil {
status = false
}
instance := InstanceInfo{
Id: conv.ToString(row[0]),
Ip: conv.ToString(row[1]),
Status: status,
}
instanceIds = append(instanceIds, &instance)
}
return instanceIds
}
func (topology *provider) GetServiceInstances(language i18n.LanguageCodes, params ServiceParams) (interface{}, interface{}) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT service_instance_id::tag,service_agent_platform::tag,format_time(start_time_mean::field*1000000,'2006-01-02 15:04:05') " +
"AS start_time,format_time(timestamp,'2006-01-02 15:04:05') AS last_heartbeat_time FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []*ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceInstanceId: conv.ToString(row[0]),
PlatformVersion: conv.ToString(row[1]),
StartTime: conv.ToString(row[2]),
LastHeartbeatTime: conv.ToString(row[3]),
}
result = append(result, &instance)
}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement = "SELECT service_instance_id::tag,if(gt(now()-timestamp,300000000000),'false','true') AS state FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
for _, instance := range result {
for i, row := range rows {
if conv.ToString(row[0]) == instance.ServiceInstanceId {
state, err := strconv.ParseBool(conv.ToString(row[1]))
if err != nil {
return nil, err
}
if state {
instance.InstanceState = topology.t.Text(language, "serviceInstanceStateRunning")
} else {
instance.InstanceState = topology.t.Text(language, "serviceInstanceStateStopped")
}
rows = append(rows[:i], rows[i+1:]...)
break
}
}
}
return result, nil
}
func (topology *provider) GetServiceRequest(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
var translations []RequestTransaction
for _, metricName := range ReqMetricNames {
translation, err := topology.serviceReqInfo(metricName, topology.t.Text(language, metricName+"_request"), params, metricsParams)
if err != nil {
return nil, err
}
translations = append(translations, *translation)
}
return translations, nil
}
func (topology *provider) GetServiceOverview(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
dashboardData := make([]map[string]interface{}, 0, 10)
serviceOverviewMap := make(map[string]interface{})
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
instanceMetricsParams := url.Values{}
instanceMetricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
instanceMetricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement := "SELECT service_name::tag,service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_name=$service_name AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, instanceMetricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceName: conv.ToString(row[0]),
ServiceInstanceName: conv.ToString(row[1]),
InstanceState: conv.ToString(row[2]),
}
result = append(result, instance)
}
runningCount := 0
stoppedCount := 0
for _, instance := range result {
if instance.InstanceState == "running" {
runningCount += 1
} else if instance.InstanceState == "stopping" {
stoppedCount += 1
}
}
serviceOverviewMap["running_instances"] = runningCount
serviceOverviewMap["stopped_instances"] = stoppedCount
errorCount := 0.0
for _, metricName := range ReqMetricNames {
count, err := topology.serviceReqErrorCount(metricName, params, metricsParams)
if err != nil {
return nil, err
}
errorCount += count
}
serviceOverviewMap["service_error_req_count"] = errorCount
statement = "SELECT sum(count) FROM error_count WHERE terminus_key=$terminus_key AND service_name=$service_name AND service_id=$service_id"
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
expCount := rows[0][0]
serviceOverviewMap["service_exception_count"] = expCount
statement = "SELECT count(alert_id::tag) FROM analyzer_alert WHERE terminus_key=$terminus_key AND service_name=$service_name"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
alertCount := rows[0][0]
serviceOverviewMap["alert_count"] = alertCount
dashboardData = append(dashboardData, serviceOverviewMap)
return dashboardData, nil
}
func (topology *provider) GetOverview(language i18n.LanguageCodes, params GlobalParams) (interface{}, error) {
result := make(map[string]interface{})
dashboardData := make([]map[string]interface{}, 0, 10)
overviewMap := make(map[string]interface{})
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT distinct(service_name::tag) FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
serviceCount := float64(0)
for _, row := range rows {
count := conv.ToFloat64(row[0], 0)
serviceCount += count
}
overviewMap["service_count"] = serviceCount
instanceMetricsParams := url.Values{}
instanceMetricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
instanceMetricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement = "SELECT service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_instance_id::tag"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, instanceMetricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
serviceRunningInstanceCount := float64(0)
for _, row := range rows {
if row[1] == "running" {
serviceRunningInstanceCount += 1
}
}
overviewMap["service_running_instance_count"] = serviceRunningInstanceCount
errorCount := 0.0
for _, errorReqMetricName := range ReqMetricNames {
count, err := topology.globalReqCount(errorReqMetricName, params, metricsParams)
if err != nil {
return nil, err
}
errorCount += count
}
overviewMap["service_error_req_count"] = errorCount
statement = "SELECT sum(count) FROM error_count WHERE terminus_key=$terminus_key"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
expCount := rows[0][0]
overviewMap["service_exception_count"] = expCount
statement = "SELECT count(alert_id::tag) FROM analyzer_alert WHERE terminus_key=$terminus_key"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
alertCount := rows[0][0]
overviewMap["alert_count"] = alertCount
dashboardData = append(dashboardData, overviewMap)
result["data"] = dashboardData
return result, nil
}
func (topology *provider) globalReqCount(metricScopeName string, params GlobalParams, metricsParams url.Values) (float64, error) {
statement := fmt.Sprintf("SELECT sum(errors_sum::field) FROM %s WHERE target_terminus_key::tag=$terminus_key", metricScopeName)
queryParams := map[string]interface{}{
"metric": metricScopeName,
"terminus_key": params.ScopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return 0, err
}
rows := conv.ToFloat64(response.ResultSet.Rows[0][0], 0)
return rows, nil
}
func toTwoDecimalPlaces(num float64) float64 {
temp, err := strconv.ParseFloat(fmt.Sprintf("%.2f", num), 64)
if err != nil {
temp = 0
}
return temp
}
func (topology *provider) serviceReqInfo(metricScopeName, metricScopeNameDesc string, params ServiceParams, metricsParams url.Values) (*RequestTransaction, error) {
var requestTransaction RequestTransaction
metricType := "target_service_name"
tkType := "target_terminus_key"
serviceIdType := "target_service_id"
if metricScopeName == ReqMetricNames[2] || metricScopeName == ReqMetricNames[3] || metricScopeName == ReqMetricNames[4] {
metricType = "source_service_name"
serviceIdType = "source_service_id"
tkType = "source_terminus_key"
}
statement := fmt.Sprintf("SELECT sum(count_sum),sum(elapsed_sum)/sum(count_sum),sum(errors_sum)/sum(count_sum) FROM %s WHERE %s=$terminus_key AND %s=$service_name AND %s=$service_id",
metricScopeName, tkType, metricType, serviceIdType)
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
row := response.ResultSet.Rows
requestTransaction.RequestCount = conv.ToFloat64(row[0][0], 0)
if row[0][1] != nil {
requestTransaction.RequestAvgTime = toTwoDecimalPlaces(conv.ToFloat64(row[0][1], 0) / 1e6)
} else {
requestTransaction.RequestAvgTime = 0
}
if row[0][2] != nil {
requestTransaction.RequestErrorRate = toTwoDecimalPlaces(conv.ToFloat64(row[0][2], 0) * 100)
} else {
requestTransaction.RequestErrorRate = 0
}
requestTransaction.RequestType = metricScopeNameDesc
return &requestTransaction, nil
}
func (topology *provider) serviceReqErrorCount(metricScopeName string, params ServiceParams, metricsParams url.Values) (float64, error) {
metricType := "target_service_name"
tkType := "target_terminus_key"
serviceIdType := "target_service_id"
if metricScopeName == ReqMetricNames[2] || metricScopeName == ReqMetricNames[3] || metricScopeName == ReqMetricNames[4] {
metricType = "source_service_name"
serviceIdType = "source_service_id"
tkType = "source_terminus_key"
}
statement := fmt.Sprintf("SELECT sum(errors_sum) FROM %s WHERE %s=$terminus_key AND %s=$service_name AND %s=$service_id",
metricScopeName, tkType, metricType, serviceIdType)
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return 0, err
}
rows := conv.ToFloat64(response.ResultSet.Rows[0][0], 0)
return rows, nil
}
func (topology *provider) GetSearchTags(r *http.Request) []SearchTag {
lang := api.Language(r)
label := topology.t.Text(lang, ApplicationSearchTag.Tag)
if label != "" {
ApplicationSearchTag.Label = label
}
return []SearchTag{
ApplicationSearchTag,
}
}
func searchApplicationTag(topology *provider, scopeId string, startTime, endTime int64) ([]string, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(startTime, 10))
metricsParams.Set("end", strconv.FormatInt(endTime, 10))
statement := "SELECT application_name::tag FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY application_name::tag"
queryParams := map[string]interface{}{
"terminus_key": scopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var itemResult []string
for _, name := range rows {
itemResult = append(itemResult, conv.ToString(name[0]))
}
return itemResult, nil
}
func (topology *provider) ComposeTopologyNode(r *http.Request, params Vo) ([]*Node, error) {
nodes := topology.GetTopology(params)
instances, err := topology.GetInstances(api.Language(r), params)
if err != nil {
return nil, err
}
for _, node := range nodes {
key := node.ServiceId
serviceInstances := instances[key]
for _, instance := range serviceInstances {
if instance.ServiceId == node.ServiceId {
if instance.InstanceState == "running" {
node.Metric.Running += 1
} else {
node.Metric.Stopped += 1
}
}
}
}
return nodes, nil
}
func (topology *provider) Services(serviceName string, nodes []*Node) []ServiceDashboard {
var serviceDashboards []ServiceDashboard
for _, node := range nodes {
if node.ServiceName == "" {
continue
}
if serviceName != "" && !strings.Contains(node.ServiceName, serviceName) {
continue
}
var serviceDashboard ServiceDashboard
serviceDashboard.Name = node.ServiceName
serviceDashboard.ReqCount = node.Metric.Count
serviceDashboard.ReqErrorCount = node.Metric.HttpError
serviceDashboard.ART = toTwoDecimalPlaces(node.Metric.RT)
serviceDashboard.RSInstanceCount = fmt.Sprintf("%v", node.Metric.Running)
serviceDashboard.RuntimeId = node.RuntimeId
serviceDashboard.Id = node.ServiceId
serviceDashboard.RuntimeName = node.RuntimeName
serviceDashboard.ApplicationId = node.ApplicationId
serviceDashboard.ApplicationName = node.ApplicationName
serviceDashboards = append(serviceDashboards, serviceDashboard)
}
return serviceDashboards
}
type ServiceInstance struct {
ApplicationName string `json:"applicationName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
ServiceInstanceName string `json:"serviceInstanceName,omitempty"`
ServiceInstanceId string `json:"serviceInstanceId,omitempty"`
InstanceState string `json:"instanceState,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
StartTime string `json:"startTime,omitempty"`
LastHeartbeatTime string `json:"lastHeartbeatTime,omitempty"`
}
func (topology *provider) GetInstances(language i18n.LanguageCodes, params Vo) (map[string][]ServiceInstance, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement := "SELECT service_id::tag,service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_id::tag,service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.TerminusKey,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceId: conv.ToString(row[0]),
ServiceInstanceName: conv.ToString(row[1]),
InstanceState: conv.ToString(row[2]),
}
result = append(result, instance)
}
instanceResult := make(map[string][]ServiceInstance)
for _, instance := range result {
key := instance.ServiceId
if instanceResult[key] == nil {
var serviceInstance []ServiceInstance
serviceInstance = append(serviceInstance, instance)
instanceResult[key] = serviceInstance
} else {
serviceInstances := instanceResult[key]
serviceInstances = append(serviceInstances, instance)
instanceResult[key] = serviceInstances
}
}
return instanceResult, nil
}
func (topology *provider) GetSearchTagv(r *http.Request, tag, scopeId string, startTime, endTime int64) ([]string, error) {
switch tag {
case ApplicationSearchTag.Tag:
return searchApplicationTag(topology, scopeId, startTime, endTime)
default:
return nil, errors.New("search tag not support")
}
}
func (topology *provider) GetTopology(param Vo) []*Node {
indices := createTypologyIndices(param.StartTime, param.EndTime)
ctx := context.Background()
nodes := make([]*Node, 0)
for key, typeIndices := range indices {
aggregationConditions, relations := selectRelation(key)
query := queryConditions(key, param)
searchSource := elastic.NewSearchSource()
searchSource.Query(query).Size(0)
if aggregationConditions == nil {
log.Fatal("aggregation conditions can't nil")
}
for key, aggregation := range aggregationConditions.Aggregation {
searchSource.Aggregation(key, aggregation)
}
searchResult, err := topology.es.Search(typeIndices...).
Header("content-type", "application/json").
SearchSource(searchSource).
Do(ctx)
if err != nil {
continue
}
if param.Debug {
source, _ := searchSource.Source()
data, _ := json.Marshal(source)
fmt.Print("indices: ")
fmt.Println(typeIndices)
fmt.Println("request body: " + string(data))
fmt.Println()
}
parseToTypologyNode(searchResult, relations, &nodes)
}
return nodes
}
func (topology *provider) FilterNodeByTags(tags []string, nodes []*Node) []*Node {
if tags != nil && len(tags) > 0 {
for _, v := range tags {
tagInfo := strings.Split(v, ":")
tag := tagInfo[0]
value := tagInfo[1]
switch tag {
case ApplicationSearchTag.Tag:
for i, node := range nodes {
if strings.ToLower(node.Name) == strings.ToLower(TypeGateway) {
continue
}
for _, parentNode := range node.Parents {
if node.ApplicationName != value && parentNode.ApplicationName != value {
nodes = append(nodes[:i], nodes[i+1:]...)
i--
}
}
}
case ServiceSearchTag.Tag:
for i, node := range nodes {
if node.ServiceName != value {
nodes = append(nodes[:i], nodes[i+1:]...)
i--
}
}
}
}
}
return nodes
}
func selectRelation(indexType string) (*AggregationCondition, []*NodeRelation) {
var aggregationConditions *AggregationCondition
var relations []*NodeRelation
aggregationConditions = Aggregations[indexType]
relations = NodeRelations[indexType]
return aggregationConditions, relations
}
func parseToTypologyNode(searchResult *elastic.SearchResult, relations []*NodeRelation, topologyNodes *[]*Node) {
for _, nodeRelation := range relations {
targetNodeType := nodeRelation.Target
sourceNodeTypes := nodeRelation.Source
key := encodeTypeToKey(targetNodeType.Type)
aggregations := searchResult.Aggregations
if aggregations != nil {
filter, b := aggregations.Filter(key)
if b {
field := targetNodeType.GroupByField
buckets := findDataBuckets(&filter.Aggregations, field)
for _, item := range *buckets {
target := item.Aggregations
termsColumns, ok := target.TopHits(apm.Columns)
if !ok {
continue
}
if len(termsColumns.Hits.Hits) <= 0 && termsColumns.Hits.Hits[0].Source != nil {
continue
}
targetNode := &TopologyNodeRelation{}
err := json.Unmarshal(*termsColumns.Hits.Hits[0].Source, &targetNode)
if err != nil {
log.Println("parser error")
}
node := columnsParser(targetNodeType.Type, targetNode)
metric := metricParser(targetNodeType, target)
node.Metric = metric
exist := false
for _, n := range *topologyNodes {
if n.Id == node.Id {
n.Metric.Count += node.Metric.Count
n.Metric.HttpError += node.Metric.HttpError
n.Metric.ErrorRate += node.Metric.ErrorRate
n.Metric.RT += node.Metric.RT
if n.RuntimeId == "" {
n.RuntimeId = node.RuntimeId
}
exist = true
node = n
break
}
}
if !exist {
*topologyNodes = append(*topologyNodes, node)
node.Parents = []*Node{}
}
for _, nodeType := range sourceNodeTypes {
key := encodeTypeToKey(nodeType.Type)
bucket, found := target.Filter(key)
if !found {
continue
}
a := bucket.Aggregations
items := findDataBuckets(&a, nodeType.GroupByField)
for _, keyItem := range *items {
source := keyItem.Aggregations
sourceTermsColumns, ok := source.TopHits(apm.Columns)
if !ok {
continue
}
if len(sourceTermsColumns.Hits.Hits) <= 0 && sourceTermsColumns.Hits.Hits[0].Source != nil {
continue
}
sourceNodeInfo := &TopologyNodeRelation{}
err := json.Unmarshal(*sourceTermsColumns.Hits.Hits[0].Source, &sourceNodeInfo)
if err != nil {
log.Println("parser error")
}
sourceNode := columnsParser(nodeType.Type, sourceNodeInfo)
sourceMetric := metricParser(nodeType, source)
sourceNode.Metric = sourceMetric
sourceNode.Parents = []*Node{}
node.Parents = append(node.Parents, sourceNode)
}
}
}
}
}
}
}
func metricParser(targetNodeType *NodeType, target elastic.Aggregations) *Metric {
aggregation := targetNodeType.Aggregation
metric := Metric{}
inner := make(map[string]*float64)
field := Field{}
if aggregation == nil {
return &metric
}
for key := range aggregation {
sum, _ := target.Sum(key)
split := strings.Split(key, ".")
s2 := split[1]
value := sum.Value
inner[s2] = value
}
marshal, err := json.Marshal(inner)
if err != nil {
return &metric
}
err = json.Unmarshal(marshal, &field)
if err != nil {
return &metric
}
countSum := field.CountSum
metric.Count = int64(countSum)
metric.HttpError = int64(field.ErrorsSum)
if countSum != 0 {
metric.RT = toTwoDecimalPlaces(field.ELapsedSum / countSum / 1e6)
metric.ErrorRate = math.Round(float64(metric.HttpError)/countSum*1e4) / 1e2
}
return &metric
}
func getDashboardId(nodeType string) string {
switch strings.ToLower(nodeType) {
case strings.ToLower(TypeService):
return topologyNodeService
case strings.ToLower(TypeGateway):
return topologyNodeGateway
case strings.ToLower(TypeMysql):
return topologyNodeDb
case strings.ToLower(TypeRedis):
return topologyNodeCache
case strings.ToLower(TypeRocketMQ):
return topologyNodeMq
case strings.ToLower(JavaProcessType):
return processAnalysisJava
case strings.ToLower(NodeJsProcessType):
return processAnalysisNodejs
case strings.ToLower(TypeHttp):
return topologyNodeOther
default:
return ""
}
}
func columnsParser(nodeType string, nodeRelation *TopologyNodeRelation) *Node {
node := Node{}
tags := nodeRelation.Tags
switch nodeType {
case TargetServiceNode:
node.Type = TypeService
node.ApplicationId = tags.TargetApplicationId
node.ApplicationName = tags.TargetApplicationName
node.ServiceName = tags.TargetServiceName
node.ServiceId = tags.TargetServiceId
node.Name = node.ServiceName
node.RuntimeId = tags.TargetRuntimeId
node.RuntimeName = tags.TargetRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case SourceServiceNode:
node.Type = TypeService
node.ApplicationId = tags.SourceApplicationId
node.ApplicationName = tags.SourceApplicationName
node.ServiceId = tags.SourceServiceId
node.ServiceName = tags.SourceServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.SourceRuntimeId
node.RuntimeName = tags.SourceRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case TargetAddonNode:
if strings.ToLower(tags.Component) == strings.ToLower("Http") {
node.Type = TypeElasticsearch
} else {
node.Type = tags.TargetAddonType
}
node.AddonId = tags.TargetAddonID
node.Name = tags.TargetAddonID
node.AddonType = tags.TargetAddonType
node.Id = encodeTypeToKey(node.AddonId + apm.Sep1 + node.AddonType)
case SourceAddonNode:
node.Type = tags.SourceAddonType
node.AddonId = tags.SourceAddonID
node.AddonType = tags.SourceAddonType
node.Name = tags.SourceAddonID
node.Id = encodeTypeToKey(node.AddonId + apm.Sep1 + node.AddonType)
case TargetComponentNode:
node.Type = tags.Component
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Type + apm.Sep1 + node.Name)
case SourceMQNode:
node.Type = tags.Component
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Type + apm.Sep1 + node.Name)
case TargetMQServiceNode:
node.Type = TypeService
node.ApplicationId = tags.TargetApplicationId
node.ApplicationName = tags.TargetApplicationName
node.ServiceId = tags.TargetServiceId
node.ServiceName = tags.TargetServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.TargetRuntimeId
node.RuntimeName = tags.TargetRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case TargetOtherNode:
if strings.ToLower(tags.Component) == strings.ToLower("Http") && strings.HasPrefix(tags.Host, "terminus-elasticsearch") {
node.Type = TypeElasticsearch
} else {
node.Type = tags.Component
}
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Name + apm.Sep1 + node.Type)
case OtherNode:
node.Type = TypeService
node.ApplicationId = tags.ApplicationId
node.ApplicationName = tags.ApplicationName
node.ServiceId = tags.ServiceId
node.ServiceName = tags.ServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.RuntimeId
node.RuntimeName = tags.RuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
}
node.DashboardId = getDashboardId(node.Type)
return &node
}
func findDataBuckets(filter *elastic.Aggregations, field *GroupByField) *[]*elastic.AggregationBucketKeyItem {
var nodeBuckets []*elastic.AggregationBucketKeyItem
termAggs, _ := filter.Terms(field.Name)
findNodeBuckets(termAggs.Buckets, field, &nodeBuckets)
return &nodeBuckets
}
func findNodeBuckets(bucketKeyItems []*elastic.AggregationBucketKeyItem, field *GroupByField, nodeBuckets *[]*elastic.AggregationBucketKeyItem) {
for _, buckets := range bucketKeyItems {
if field != nil && field.SubField != nil {
aggregations := buckets.Aggregations
bucket, _ := aggregations.Terms(field.SubField.Name)
findNodeBuckets(bucket.Buckets, field.SubField.SubField, nodeBuckets)
continue
}
if field == nil {
*nodeBuckets = append(*nodeBuckets, buckets)
} else {
bucketsAgg := buckets.Aggregations
terms, _ := bucketsAgg.Terms(field.Name)
*nodeBuckets = append(*nodeBuckets, terms.Buckets...)
}
}
}
func (topology *provider) translation(r *http.Request, params translation) interface{} {
if params.Layer != "http" && params.Layer != "rpc" {
return api.Errors.Internal(errors.New("not supported layer name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
var where bytes.Buffer
var orderby string
var field string
param := map[string]interface{}{
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
}
switch params.Layer {
case "http":
field = "http_path::tag"
if params.Search != "" {
param["field"] = map[string]interface{}{"regex": ".*" + params.Search + ".*"}
where.WriteString(" AND http_path::tag=~$field")
}
case "rpc":
field = "dubbo_method::tag"
if params.Search != "" {
param["field"] = map[string]interface{}{
"regex": ".*" + params.Search + ".*",
}
where.WriteString(" AND dubbo_method::tag=~$field")
}
default:
return api.Errors.InvalidParameter(errors.New("not support layer name"))
}
if params.Sort == 0 {
orderby = " ORDER BY count(error::tag) DESC"
}
if params.Sort == 1 {
orderby = " ORDER BY sum(elapsed_count::field) DESC"
}
sql := fmt.Sprintf("SELECT %s,sum(elapsed_count::field),count(error::tag),format_duration(avg(elapsed_mean::field),'',2) "+
"FROM application_%s WHERE target_service_id::tag=$serviceId AND target_service_name::tag=$filterServiceName "+
"AND target_terminus_key::tag=$terminusKey %s GROUP BY %s", field, params.Layer, where.String(), field+orderby)
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
param,
options)
if err != nil {
return api.Errors.Internal(err)
}
result := make(map[string]interface{}, 0)
cols := []map[string]interface{}{
{"flag": "tag|gropuby", "key": "translation_name", "_key": "tags.http_path"},
{"flag": "field|func|agg", "key": "elapsed_count", "_key": ""},
{"flag": "tag|func|agg", "key": "error_count", "_key": ""},
{"flag": "tag|func|agg", "key": "slow_elapsed_count", "_key": ""},
{"flag": "tag|func|agg", "key": "avg_elapsed", "_key": ""},
}
result["cols"] = cols
data := make([]map[string]interface{}, 0)
for _, r := range source.ResultSet.Rows {
itemResult := make(map[string]interface{})
itemResult["translation_name"] = r[0]
itemResult["elapsed_count"] = r[1]
itemResult["error_count"] = r[2]
itemResult["avg_elapsed"] = r[3]
sql = fmt.Sprintf("SELECT sum(elapsed_count::field) FROM application_%s_slow WHERE target_service_id::tag=$serviceId "+
"AND target_service_name::tag=$filterServiceName AND %s=$field AND target_terminus_key::tag=$terminusKey ", params.Layer, field)
slowElapsedCount, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
map[string]interface{}{
"field": conv.ToString(r[0]),
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
for _, item := range slowElapsedCount.ResultSet.Rows {
itemResult["slow_elapsed_count"] = item[0]
}
data = append(data, itemResult)
}
result["data"] = data
return api.Success(result)
}
func (topology *provider) dbTransaction(r *http.Request, params translation) interface{} {
if params.Layer != "db" && params.Layer != "cache" {
return api.Errors.Internal(errors.New("not supported layer name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
var where bytes.Buffer
var orderby string
param := make(map[string]interface{})
param["terminusKey"] = params.TerminusKey
param["filterServiceName"] = params.FilterServiceName
param["serviceId"] = params.ServiceId
if params.Search != "" {
where.WriteString(" AND db_statement::tag=~$field")
param["field"] = map[string]interface{}{"regex": ".*" + params.Search + ".*"}
}
if params.Sort == 1 {
orderby = " ORDER BY sum(elapsed_count::field) DESC"
}
sql := fmt.Sprintf("SELECT db_statement::tag,db_type::tag,db_instance::tag,host::tag,sum(elapsed_count::field),"+
"format_duration(avg(elapsed_mean::field),'',2) FROM application_%s WHERE source_service_id::tag=$serviceId AND "+
"source_service_name::tag=$filterServiceName AND source_terminus_key::tag=$terminusKey %s GROUP BY db_statement::tag %s",
params.Layer, where.String(), orderby)
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
param,
options)
if err != nil {
return api.Errors.Internal(err)
}
result := make(map[string]interface{}, 0)
cols := []map[string]interface{}{
{"_key": "tags.db_statement", "flag": "tag|groupby", "key": "operation"},
{"_key": "tags.db_type", "flag": "tag", "key": "db_type"},
{"_key": "tags.db_instance", "flag": "tag", "key": "instance_type"},
{"_key": "tags.host", "flag": "tag", "key": "db_host"},
{"_key": "", "flag": "field|func|agg", "key": "call_count"},
{"_key": "", "flag": "field|func|agg", "key": "avg_elapsed"},
{"_key": "", "flag": "field|func|agg", "key": "slow_elapsed_count"},
}
result["cols"] = cols
data := make([]map[string]interface{}, 0)
for _, r := range source.ResultSet.Rows {
itemResult := make(map[string]interface{})
itemResult["operation"] = r[0]
itemResult["db_type"] = r[1]
itemResult["db_instance"] = r[2]
itemResult["db_host"] = r[3]
itemResult["call_count"] = r[4]
itemResult["avg_elapsed"] = r[5]
sql := fmt.Sprintf("SELECT sum(elapsed_count::field) FROM application_%s_slow WHERE source_service_id::tag=$serviceId "+
"AND source_service_name::tag=$filterServiceName AND db_statement::tag=$field AND target_terminus_key::tag=$terminusKey", params.Layer)
slowElapsedCount, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
map[string]interface{}{
"field": conv.ToString(r[0]),
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
for _, item := range slowElapsedCount.ResultSet.Rows {
itemResult["slow_elapsed_count"] = item[0]
}
data = append(data, itemResult)
}
result["data"] = data
return api.Success(result)
}
func (topology *provider) slowTranslationTrace(r *http.Request, params struct {
Start int64 `query:"start" validate:"required"`
End int64 `query:"end" validate:"required"`
ServiceName string `query:"serviceName" validate:"required"`
TerminusKey string `query:"terminusKey" validate:"required"`
Operation string `query:"operation" validate:"required"`
ServiceId string `query:"serviceId" validate:"required"`
Sort string `default:"DESC" query:"sort"`
}) interface{} {
if params.Sort != "ASC" && params.Sort != "DESC" {
return api.Errors.Internal(errors.New("not supported sort name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
sql := fmt.Sprintf("SELECT trace_id::tag,format_time(timestamp,'2006-01-02 15:04:05'),round_float(if(lt(end_time::field-start_time::field,0),0,end_time::field-start_time::field)/1000000,2) FROM trace WHERE service_ids::field=$serviceId AND service_names::field=$serviceName AND terminus_keys::field=$terminusKey AND (http_paths::field=$operation OR dubbo_methods::field=$operation) ORDER BY timestamp %s", params.Sort)
details, err := topology.metricq.Query(metricq.InfluxQL,
sql,
map[string]interface{}{
"serviceName": params.ServiceName,
"terminusKey": params.TerminusKey,
"operation": params.Operation,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
var data []map[string]interface{}
for _, detail := range details.ResultSet.Rows {
detailMap := make(map[string]interface{})
detailMap["requestId"] = detail[0]
detailMap["time"] = detail[1]
detailMap["avgElapsed"] = detail[2]
data = append(data, detailMap)
}
result := map[string]interface{}{
"cols": []map[string]interface{}{
{"title": "请求ID", "index": "requestId"},
{"title": "时间", "index": "time"},
{"title": "耗时(ms)", "index": "avgElapsed"},
},
"data": data,
}
return api.Success(result)
} | // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package topology
import (
"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"log"
"math"
"net/http"
"net/url"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/olivere/elastic"
"github.com/recallsong/go-utils/conv"
"github.com/erda-project/erda-infra/providers/httpserver"
"github.com/erda-project/erda-infra/providers/i18n"
"github.com/erda-project/erda/modules/core/monitor/metric/query/metricq"
"github.com/erda-project/erda/modules/core/monitor/metric/query/query"
apm "github.com/erda-project/erda/modules/monitor/apm/common"
"github.com/erda-project/erda/modules/monitor/common/db"
"github.com/erda-project/erda/modules/monitor/common/permission"
api "github.com/erda-project/erda/pkg/common/httpapi"
)
type Vo struct {
StartTime int64 `query:"startTime"`
EndTime int64 `query:"endTime"`
TerminusKey string `query:"terminusKey" validate:"required"`
Tags []string `query:"tags"`
Debug bool `query:"debug"`
}
type Response struct {
Nodes []*Node `json:"nodes"`
}
func GetTopologyPermission(db *db.DB) httpserver.Interceptor {
return permission.Intercepter(
permission.ScopeProject, permission.TkFromParams(db),
apm.MonitorTopology, permission.ActionGet,
)
}
const TimeLayout = "2006-01-02 15:04:05"
type Node struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
AddonId string `json:"addonId,omitempty"`
AddonType string `json:"addonType,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
ApplicationName string `json:"applicationName,omitempty"`
RuntimeId string `json:"runtimeId,omitempty"`
RuntimeName string `json:"runtimeName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
DashboardId string `json:"dashboardId"`
Metric *Metric `json:"metric"`
Parents []*Node `json:"parents"`
}
const (
topologyNodeService = "topology_node_service"
topologyNodeGateway = "topology_node_gateway"
topologyNodeDb = "topology_node_db"
topologyNodeCache = "topology_node_cache"
topologyNodeMq = "topology_node_mq"
topologyNodeOther = "topology_node_other"
processAnalysisNodejs = "process_analysis_nodejs"
processAnalysisJava = "process_analysis_java"
)
const (
JavaProcessType = "jvm_memory"
NodeJsProcessType = "nodejs_memory"
)
var ProcessTypes = []string{
JavaProcessType,
NodeJsProcessType,
}
const (
TypeService = "Service"
TypeMysql = "Mysql"
TypeRedis = "Redis"
TypeRocketMQ = "RocketMQ"
TypeHttp = "Http"
TypeDubbo = "Dubbo"
TypeSidecar = "SideCar"
TypeGateway = "APIGateway"
TypeRegisterCenter = "RegisterCenter"
TypeConfigCenter = "ConfigCenter"
TypeNoticeCenter = "NoticeCenter"
TypeElasticsearch = "Elasticsearch"
)
type SearchTag struct {
Tag string `json:"tag"`
Label string `json:"label"`
Type string `json:"type"`
}
var (
ApplicationSearchTag = SearchTag{
Tag: "application",
Label: "应用名称",
Type: "select",
}
ServiceSearchTag = SearchTag{
Tag: "service",
Label: "服务名称",
Type: "select",
}
)
var ErrorReqMetricNames = []string{
"application_http_error",
"application_rpc_error",
"application_cache_error",
"application_db_error",
"application_mq_error",
}
var ReqMetricNames = []string{
"application_http_service",
"application_rpc_service",
"application_cache_service",
"application_db_service",
"application_mq_service",
}
var ReqMetricNamesDesc = map[string]string{
"application_http_service": "HTTP 请求",
"application_rpc_service": "RPC 请求",
"application_cache_service": "缓存请求",
"application_db_service": "数据库请求",
"application_mq_service": "MQ 请求",
}
type Field struct {
ELapsedCount float64 `json:"elapsed_count,omitempty"`
ELapsedMax float64 `json:"elapsed_max,omitempty"`
ELapsedMean float64 `json:"elapsed_mean,omitempty"`
ELapsedMin float64 `json:"elapsed_min,omitempty"`
ELapsedSum float64 `json:"elapsed_sum,omitempty"`
CountSum float64 `json:"count_sum,omitempty"`
ErrorsSum float64 `json:"errors_sum,omitempty"`
}
type Tag struct {
Component string `json:"component,omitempty"`
Host string `json:"host,omitempty"`
SourceProjectId string `json:"source_project_id,omitempty"`
SourceProjectName string `json:"source_project_name,omitempty"`
SourceWorkspace string `json:"source_workspace,omitempty"`
SourceTerminusKey string `json:"source_terminus_key,omitempty"`
SourceApplicationId string `json:"source_application_id,omitempty"`
SourceApplicationName string `json:"source_application_name,omitempty"`
SourceRuntimeId string `json:"source_runtime_id,omitempty"`
SourceRuntimeName string `json:"source_runtime_name,omitempty"`
SourceServiceName string `json:"source_service_name,omitempty"`
SourceServiceId string `json:"source_service_id,omitempty"`
SourceAddonID string `json:"source_addon_id,omitempty"`
SourceAddonType string `json:"source_addon_type,omitempty"`
TargetInstanceId string `json:"target_instance_id,omitempty"`
TargetProjectId string `json:"target_project_id,omitempty"`
TargetProjectName string `json:"target_project_name,omitempty"`
TargetWorkspace string `json:"target_workspace,omitempty"`
TargetTerminusKey string `json:"target_terminus_key,omitempty"`
TargetApplicationId string `json:"target_application_id,omitempty"`
TargetApplicationName string `json:"target_application_name,omitempty"`
TargetRuntimeId string `json:"target_runtime_id,omitempty"`
TargetRuntimeName string `json:"target_runtime_name,omitempty"`
TargetServiceName string `json:"target_service_name,omitempty"`
TargetServiceId string `json:"target_service_id,omitempty"`
TargetAddonID string `json:"target_addon_id,omitempty"`
TargetAddonType string `json:"target_addon_type,omitempty"`
TerminusKey string `json:"terminus_key,omitempty"`
ProjectId string `json:"project_id,omitempty"`
ProjectName string `json:"project_name,omitempty"`
Workspace string `json:"workspace,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
ApplicationName string `json:"application_name,omitempty"`
RuntimeId string `json:"runtime_id,omitempty"`
RuntimeName string `json:"runtime_name,omitempty"`
ServiceName string `json:"service_name,omitempty"`
ServiceId string `json:"service_id,omitempty"`
ServiceInstanceId string `json:"service_instance_id,omitempty"`
ServiceIp string `json:"service_ip,omitempty"`
Type string `json:"type,omitempty"`
}
type TopologyNodeRelation struct {
Name string `json:"name,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Tags Tag `json:"tags,omitempty"`
Fields Field `json:"fields,omitempty"`
Parents []*TopologyNodeRelation `json:"parents,omitempty"`
Metric *Metric `json:"metric,omitempty"`
}
type Metric struct {
Count int64 `json:"count"`
HttpError int64 `json:"http_error"`
RT float64 `json:"rt"`
ErrorRate float64 `json:"error_rate"`
Replicas float64 `json:"replicas,omitempty"`
Running float64 `json:"running"`
Stopped float64 `json:"stopped"`
}
const (
Application = "application"
Service = "service"
HttpIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "http" + apm.Sep3 + Service
RpcIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "rpc" + apm.Sep3 + Service
MicroIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "micro" + apm.Sep3 + Service
MqIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "mq" + apm.Sep3 + Service
DbIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "db" + apm.Sep3 + Service
CacheIndex = apm.Spot + apm.Sep1 + Application + apm.Sep3 + "cache" + apm.Sep3 + Service
ServiceNodeIndex = apm.Spot + apm.Sep1 + "service_node"
)
var IndexPrefix = []string{
HttpIndex, RpcIndex, MicroIndex,
MqIndex, DbIndex, CacheIndex,
ServiceNodeIndex,
}
var NodeTypes = []string{
TypeService, TypeMysql, TypeRedis,
TypeHttp, TypeDubbo, TypeSidecar,
TypeGateway, TypeRegisterCenter, TypeConfigCenter,
TypeNoticeCenter, TypeElasticsearch,
}
type ServiceDashboard struct {
Id string `json:"service_id"`
Name string `json:"service_name"`
ReqCount int64 `json:"req_count"`
ReqErrorCount int64 `json:"req_error_count"`
ART float64 `json:"avg_req_time"` // avg response time
RSInstanceCount string `json:"running_stopped_instance_count"` // running / stopped
RuntimeId string `json:"runtime_id"`
RuntimeName string `json:"runtime_name"`
ApplicationId string `json:"application_id"`
ApplicationName string `json:"application_name"`
}
func createTypologyIndices(startTimeMs int64, endTimeMs int64) map[string][]string {
// HttpRecMircoIndexType = "http-rpc-mirco"
// MQDBCacheIndexType = "mq-db-cache"
// ServiceNodeIndexType = "service-node"
indices := make(map[string][]string)
if startTimeMs > endTimeMs {
indices[apm.EmptyIndex] = []string{apm.EmptyIndex}
}
for _, prefix := range IndexPrefix {
index := prefix + apm.Sep1 + apm.Sep2
if ReHttpRpcMicro.MatchString(prefix) {
fillingIndex(indices, index, HttpRecMircoIndexType)
}
if ReMqDbCache.MatchString(prefix) {
fillingIndex(indices, index, MQDBCacheIndexType)
}
if ReServiceNode.MatchString(prefix) {
fillingIndex(indices, index, ServiceNodeIndexType)
}
}
if len(indices) <= 0 {
indices[apm.EmptyIndex] = []string{apm.EmptyIndex}
}
return indices
}
func fillingIndex(indices map[string][]string, index string, indexType string) {
i := indices[indexType]
if i == nil {
indices[indexType] = []string{index}
} else {
indices[indexType] = append(i, index)
}
}
func (topology *provider) indexExist(indices []string) *elastic.IndicesExistsService {
exists := topology.es.IndexExists(indices...)
return exists
}
var (
ReServiceNode = regexp.MustCompile("^" + ServiceNodeIndex + "(.*)$")
ReHttpRpcMicro = regexp.MustCompile("^(" + HttpIndex + "|" + RpcIndex + "|" + MicroIndex + ")(.*)$")
ReMqDbCache = regexp.MustCompile("^(" + MqIndex + "|" + DbIndex + "|" + CacheIndex + ")(.*)$")
)
type NodeType struct {
Type string
GroupByField *GroupByField
SourceFields []string
Filter *elastic.BoolQuery
Aggregation map[string]*elastic.SumAggregation
}
type GroupByField struct {
Name string
SubField *GroupByField
}
var (
TargetServiceNodeType *NodeType
SourceServiceNodeType *NodeType
TargetAddonNodeType *NodeType
SourceAddonNodeType *NodeType
TargetComponentNodeType *NodeType
TargetOtherNodeType *NodeType
SourceMQNodeType *NodeType
TargetMQServiceNodeType *NodeType
OtherNodeType *NodeType
ServiceNodeAggregation map[string]*elastic.SumAggregation
NodeAggregation map[string]*elastic.SumAggregation
)
type NodeRelation struct {
Source []*NodeType
Target *NodeType
}
const (
TargetServiceNode = "TargetServiceNode"
SourceServiceNode = "SourceServiceNode"
TargetAddonNode = "TargetAddonNode"
SourceAddonNode = "SourceAddonNode"
TargetComponentNode = "TargetComponentNode"
TargetOtherNode = "TargetOtherNode"
SourceMQNode = "SourceMQNode"
TargetMQServiceNode = "TargetMQServiceNode"
OtherNode = "OtherNode"
)
func init() {
ServiceNodeAggregation = map[string]*elastic.SumAggregation{
apm.FieldsCountSum: elastic.NewSumAggregation().Field(apm.FieldsCountSum),
apm.FieldElapsedSum: elastic.NewSumAggregation().Field(apm.FieldElapsedSum),
apm.FieldsErrorsSum: elastic.NewSumAggregation().Field(apm.FieldsErrorsSum),
}
NodeAggregation = map[string]*elastic.SumAggregation{
apm.FieldsCountSum: elastic.NewSumAggregation().Field(apm.FieldsCountSum),
apm.FieldElapsedSum: elastic.NewSumAggregation().Field(apm.FieldElapsedSum),
}
TargetServiceNodeType = &NodeType{
Type: TargetServiceNode,
GroupByField: &GroupByField{Name: apm.TagsTargetApplicationId, SubField: &GroupByField{Name: apm.TagsTargetRuntimeName, SubField: &GroupByField{Name: apm.TagsTargetServiceName}}},
SourceFields: []string{apm.TagsTargetApplicationId, apm.TagsTargetRuntimeName, apm.TagsTargetServiceName, apm.TagsTargetServiceId, apm.TagsTargetApplicationName, apm.TagsTargetRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: ServiceNodeAggregation,
}
SourceServiceNodeType = &NodeType{
Type: SourceServiceNode,
GroupByField: &GroupByField{Name: apm.TagsSourceApplicationId, SubField: &GroupByField{Name: apm.TagsSourceRuntimeName, SubField: &GroupByField{Name: apm.TagsSourceServiceName}}},
SourceFields: []string{apm.TagsSourceApplicationId, apm.TagsSourceRuntimeName, apm.TagsSourceServiceName, apm.TagsSourceServiceId, apm.TagsSourceApplicationName, apm.TagsSourceRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsSourceAddonType)),
Aggregation: ServiceNodeAggregation,
}
TargetAddonNodeType = &NodeType{
Type: TargetAddonNode,
GroupByField: &GroupByField{Name: apm.TagsTargetAddonType, SubField: &GroupByField{Name: apm.TagsTargetAddonId}},
SourceFields: []string{apm.TagsTargetAddonType, apm.TagsTargetAddonId, apm.TagsTargetAddonGroup},
Filter: elastic.NewBoolQuery().Filter(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: NodeAggregation,
}
SourceAddonNodeType = &NodeType{
Type: SourceAddonNode,
GroupByField: &GroupByField{Name: apm.TagsSourceAddonType, SubField: &GroupByField{Name: apm.TagsSourceAddonId}},
SourceFields: []string{apm.TagsSourceAddonType, apm.TagsSourceAddonId, apm.TagsSourceAddonGroup},
Filter: elastic.NewBoolQuery().Filter(elastic.NewExistsQuery(apm.TagsSourceAddonType)),
Aggregation: NodeAggregation,
}
TargetComponentNodeType = &NodeType{
Type: TargetComponentNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost, apm.TagsTargetAddonGroup},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType),
elastic.NewExistsQuery(apm.TagsTargetApplicationId)),
Aggregation: NodeAggregation,
}
TargetOtherNodeType = &NodeType{
Type: TargetOtherNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType),
elastic.NewExistsQuery(apm.TagsTargetApplicationId)),
Aggregation: NodeAggregation,
}
SourceMQNodeType = &NodeType{
Type: SourceMQNode,
GroupByField: &GroupByField{Name: apm.TagsComponent, SubField: &GroupByField{Name: apm.TagsHost}},
SourceFields: []string{apm.TagsComponent, apm.TagsHost},
Filter: elastic.NewBoolQuery().Filter(elastic.NewTermQuery("name", "application_mq_service")).
MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
Aggregation: NodeAggregation,
}
TargetMQServiceNodeType = &NodeType{
Type: TargetMQServiceNode,
GroupByField: &GroupByField{Name: apm.TagsTargetApplicationId, SubField: &GroupByField{Name: apm.TagsTargetRuntimeName, SubField: &GroupByField{Name: apm.TagsTargetServiceName}}},
SourceFields: []string{apm.TagsTargetApplicationId, apm.TagsTargetRuntimeName, apm.TagsTargetServiceName, apm.TagsTargetServiceId, apm.TagsTargetApplicationName, apm.TagsTargetRuntimeId},
Filter: elastic.NewBoolQuery().MustNot(elastic.NewExistsQuery(apm.TagsTargetAddonType)),
}
OtherNodeType = &NodeType{
Type: OtherNode,
GroupByField: &GroupByField{Name: apm.TagsApplicationId, SubField: &GroupByField{Name: apm.TagsRuntimeName, SubField: &GroupByField{Name: apm.TagsServiceName}}},
SourceFields: []string{apm.TagsApplicationId, apm.TagsRuntimeName, apm.TagsServiceName, apm.TagsServiceId, apm.TagsApplicationName, apm.TagsRuntimeId},
Filter: elastic.NewBoolQuery().Must(elastic.NewExistsQuery(apm.TagsApplicationId)),
}
NodeRelations = map[string][]*NodeRelation{
HttpRecMircoIndexType: {
// Topology Relation (Addon: ApiGateway...)
// 1.SourceService -> TargetService 2.SourceAddon -> TargetService
// SourceService -> TargetAddon
// SourceService -> TargetOther
{Source: []*NodeType{SourceServiceNodeType, SourceAddonNodeType}, Target: TargetServiceNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetAddonNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetOtherNodeType},
},
MQDBCacheIndexType: {
// Topology Relation (Component: Mysql Redis MQ)
// SourceMQService -> TargetMQService
// SourceService -> TargetComponent
{Source: []*NodeType{SourceMQNodeType}, Target: TargetMQServiceNodeType},
{Source: []*NodeType{SourceServiceNodeType}, Target: TargetComponentNodeType},
},
ServiceNodeIndexType: {
// Topology Relation
// OtherNode
{Target: OtherNodeType},
},
}
Aggregations = map[string]*AggregationCondition{
HttpRecMircoIndexType: {Aggregation: toEsAggregation(NodeRelations[HttpRecMircoIndexType])},
MQDBCacheIndexType: {Aggregation: toEsAggregation(NodeRelations[MQDBCacheIndexType])},
ServiceNodeIndexType: {Aggregation: toEsAggregation(NodeRelations[ServiceNodeIndexType])},
}
}
var NodeRelations map[string][]*NodeRelation
var Aggregations map[string]*AggregationCondition
const (
HttpRecMircoIndexType = "http-rpc-mirco"
MQDBCacheIndexType = "mq-db-cache"
ServiceNodeIndexType = "service-node"
)
type RequestTransaction struct {
RequestType string `json:"requestType"`
RequestCount float64 `json:"requestCount"`
RequestAvgTime float64 `json:"requestAvgTime"`
RequestErrorRate float64 `json:"requestErrorRate"`
}
type AggregationCondition struct {
Aggregation map[string]*elastic.FilterAggregation
}
func toEsAggregation(nodeRelations []*NodeRelation) map[string]*elastic.FilterAggregation {
m := make(map[string]*elastic.FilterAggregation)
for _, relation := range nodeRelations {
nodeType := relation.Target
key := encodeTypeToKey(nodeType.Type)
if nodeType != nil {
childAggregation := elastic.NewFilterAggregation()
m[key] = childAggregation
end := overlay(nodeType, childAggregation)
sources := relation.Source
if sources != nil {
for _, source := range sources {
sourceKey := encodeTypeToKey(source.Type)
childAggregation := elastic.NewFilterAggregation()
overlay(source, childAggregation)
end.SubAggregation(sourceKey, childAggregation)
}
}
}
}
return m
}
// encode
func encodeTypeToKey(nodeType string) string {
md := sha256.New()
md.Write([]byte(nodeType))
mdSum := md.Sum(nil)
key := hex.EncodeToString(mdSum)
//fmt.Printf("type: %s, key: %s \n", nodeType, key)
return key
}
func overlay(nodeType *NodeType, childAggregation *elastic.FilterAggregation) *elastic.TermsAggregation {
// filter
filter := nodeType.Filter
if filter != nil {
childAggregation.Filter(filter)
}
// groupBy
field := nodeType.GroupByField
start, end := toChildrenAggregation(nodeType.GroupByField, nil)
childAggregation.SubAggregation(field.Name, start)
// columns
sourceFields := nodeType.SourceFields
if sourceFields != nil {
end.SubAggregation(apm.Columns,
elastic.NewTopHitsAggregation().From(0).Size(1).Sort(apm.Timestamp, false).Explain(false).
FetchSourceContext(elastic.NewFetchSourceContext(true).Include(sourceFields...)))
}
// agg
aggs := nodeType.Aggregation
if aggs != nil {
for key, sumAggregation := range aggs {
end.SubAggregation(key, sumAggregation)
}
}
return end
}
func toChildrenAggregation(field *GroupByField, termEnd *elastic.TermsAggregation) (*elastic.TermsAggregation, *elastic.TermsAggregation) {
if field == nil {
log.Fatal("field can't nil")
}
termStart := elastic.NewTermsAggregation().Field(field.Name).Size(100)
if field.SubField != nil {
start, end := toChildrenAggregation(field.SubField, termEnd)
termStart.SubAggregation(field.SubField.Name, start).Size(100)
termEnd = end
} else {
termEnd = termStart
}
return termStart, termEnd
}
func queryConditions(indexType string, params Vo) *elastic.BoolQuery {
boolQuery := elastic.NewBoolQuery()
boolQuery.Filter(elastic.NewRangeQuery(apm.Timestamp).Gte(params.StartTime * 1e6).Lte(params.EndTime * 1e6))
if ServiceNodeIndexType == indexType {
boolQuery.Filter(elastic.NewTermQuery(apm.TagsTerminusKey, params.TerminusKey))
} else {
boolQuery.Filter(elastic.NewBoolQuery().Should(elastic.NewTermQuery(apm.TagsTargetTerminusKey, params.TerminusKey)).
Should(elastic.NewTermQuery(apm.TagsSourceTerminusKey, params.TerminusKey)))
}
//filter: RegisterCenter ConfigCenter NoticeCenter
not := elastic.NewBoolQuery().MustNot(elastic.NewTermQuery(apm.TagsComponent, "registerCenter")).
MustNot(elastic.NewTermQuery(apm.TagsComponent, "configCenter")).
MustNot(elastic.NewTermQuery(apm.TagsComponent, "noticeCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "registerCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "configCenter")).
MustNot(elastic.NewTermQuery(apm.TagsTargetAddonType, "noticeCenter"))
if params.Tags != nil && len(params.Tags) > 0 {
sbq := elastic.NewBoolQuery()
for _, v := range params.Tags {
tagInfo := strings.Split(v, ":")
tag := tagInfo[0]
value := tagInfo[1]
switch tag {
case ApplicationSearchTag.Tag:
sbq.Should(elastic.NewTermQuery(apm.TagsApplicationName, value)).
Should(elastic.NewTermQuery(apm.TagsTargetApplicationName, value)).
Should(elastic.NewTermQuery(apm.TagsSourceApplicationName, value))
case ServiceSearchTag.Tag:
sbq.Should(elastic.NewTermQuery(apm.TagsServiceId, value)).
Should(elastic.NewTermQuery(apm.TagsTargetServiceId, value)).
Should(elastic.NewTermQuery(apm.TagsSourceServiceId, value))
}
}
boolQuery.Filter(sbq)
}
boolQuery.Filter(not)
return boolQuery
}
type ExceptionDescription struct {
InstanceId string `json:"instance_id"`
ExceptionType string `json:"exception_type"`
Class string `json:"class"`
Method string `json:"method"`
Message string `json:"message"`
Time string `json:"time"`
Count int64 `json:"count"`
}
type ExceptionDescriptionsCountSort []ExceptionDescription
func (e ExceptionDescriptionsCountSort) Len() int {
return len(e)
}
//Less() by count
func (e ExceptionDescriptionsCountSort) Less(i, j int) bool {
return e[i].Count > e[j].Count
}
//Swap()
func (e ExceptionDescriptionsCountSort) Swap(i, j int) {
e[i], e[j] = e[j], e[i]
}
type ExceptionDescriptionsTimeSort []ExceptionDescription
func (e ExceptionDescriptionsTimeSort) Len() int {
return len(e)
}
//Less() by time
func (e ExceptionDescriptionsTimeSort) Less(i, j int) bool {
iTime, err := time.Parse(TimeLayout, e[i].Time)
jTime, err := time.Parse(TimeLayout, e[j].Time)
if err != nil {
return false
}
return iTime.UnixNano() > jTime.UnixNano()
}
//Swap()
func (e ExceptionDescriptionsTimeSort) Swap(i, j int) {
e[i], e[j] = e[j], e[i]
}
const (
ExceptionTimeSortStrategy = "time"
ExceptionCountSortStrategy = "count"
)
func (topology *provider) GetExceptionTypes(language i18n.LanguageCodes, params ServiceParams) ([]string, interface{}) {
descriptions, err := topology.GetExceptionDescription(language, params, 50, "", "")
if err != nil {
return nil, err
}
typeMap := make(map[string]string)
for _, description := range descriptions {
if typeMap[description.ExceptionType] == "" {
typeMap[description.ExceptionType] = description.ExceptionType
}
}
types := make([]string, 0)
for _, _type := range typeMap {
types = append(types, _type)
}
return types, nil
}
func ExceptionOrderByTimeStrategy(exceptions ExceptionDescriptionsTimeSort) []ExceptionDescription {
sort.Sort(exceptions)
return exceptions
}
func ExceptionOrderByCountStrategy(exceptions ExceptionDescriptionsCountSort) []ExceptionDescription {
sort.Sort(exceptions)
return exceptions
}
func ExceptionOrderByStrategyExecute(exceptionType string, exceptions []ExceptionDescription) []ExceptionDescription {
switch exceptionType {
case ExceptionCountSortStrategy:
return ExceptionOrderByCountStrategy(exceptions)
case ExceptionTimeSortStrategy:
return ExceptionOrderByTimeStrategy(exceptions)
default:
return ExceptionOrderByTimeStrategy(exceptions)
}
}
type ReadWriteBytes struct {
Timestamp int64 `json:"timestamp"` // unit: s
ReadBytes float64 `json:"readBytes"` // unit: b
WriteBytes float64 `json:"writeBytes"` // unit: b
}
type ReadWriteBytesSpeed struct {
Timestamp int64 `json:"timestamp"` // format: yyyy-MM-dd HH:mm:ss
ReadBytesSpeed float64 `json:"readBytesSpeed"` // unit: b/s
WriteBytesSpeed float64 `json:"writeBytesSpeed"` // unit: b/s
}
func (topology *provider) GetProcessDiskIo(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT parse_time(time(),'2006-01-02T15:04:05Z'),round_float(avg(blk_read_bytes::field), 2),round_float(avg(blk_write_bytes::field), 2) FROM docker_container_summary WHERE terminus_key=$terminus_key AND service_id=$service_id %s GROUP BY time()"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
if params.InstanceId != "" {
statement = fmt.Sprintf(statement, "AND instance_id=$instance_id")
queryParams["instance_id"] = params.InstanceId
} else {
statement = fmt.Sprintf(statement, "")
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
itemResultSpeed := handleSpeed(rows)
return itemResultSpeed, nil
}
func (topology *provider) GetProcessNetIo(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT parse_time(time(),'2006-01-02T15:04:05Z'),round_float(avg(rx_bytes::field), 2),round_float(avg(tx_bytes::field), 2) FROM docker_container_summary WHERE terminus_key=$terminus_key AND service_id=$service_id %s GROUP BY time()"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
if params.InstanceId != "" {
statement = fmt.Sprintf(statement, "AND instance_id=$instance_id")
queryParams["instance_id"] = params.InstanceId
} else {
statement = fmt.Sprintf(statement, "")
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
itemResultSpeed := handleSpeed(rows)
return itemResultSpeed, nil
}
// handleSpeed The result is processed into ReadWriteBytesSpeed
func handleSpeed(rows [][]interface{}) []ReadWriteBytesSpeed {
var itemResult []ReadWriteBytes
for _, row := range rows {
timeMs := row[1].(time.Time).UnixNano() / 1e6
rxBytes := conv.ToFloat64(row[2], 0)
txBytes := conv.ToFloat64(row[3], 0)
writeBytes := ReadWriteBytes{
Timestamp: timeMs,
ReadBytes: rxBytes,
WriteBytes: txBytes,
}
itemResult = append(itemResult, writeBytes)
}
var itemResultSpeed []ReadWriteBytesSpeed
for i, curr := range itemResult {
if i+1 >= len(itemResult) {
break
}
next := itemResult[i+1]
speed := ReadWriteBytesSpeed{}
speed.Timestamp = (curr.Timestamp + next.Timestamp) / 2
speed.ReadBytesSpeed = calculateSpeed(curr.ReadBytes, next.ReadBytes, curr.Timestamp, next.Timestamp)
speed.WriteBytesSpeed = calculateSpeed(curr.WriteBytes, next.WriteBytes, curr.Timestamp, next.Timestamp)
itemResultSpeed = append(itemResultSpeed, speed)
}
return itemResultSpeed
}
//calculateSpeed Calculate the speed through the two metric values before and after.
func calculateSpeed(curr, next float64, currTime, nextTime int64) float64 {
if curr != next {
if next == 0 || next < curr {
return 0
}
if nextTime-currTime <= 0 { // by zero
return 0
}
return toTwoDecimalPlaces((next - curr) / (float64(nextTime) - float64(currTime)))
}
return 0
}
func (topology *provider) GetExceptionMessage(language i18n.LanguageCodes, params ServiceParams, limit int64, sort, exceptionType string) ([]ExceptionDescription, error) {
result := []ExceptionDescription{}
descriptions, err := topology.GetExceptionDescription(language, params, limit, sort, exceptionType)
if exceptionType != "" {
for _, description := range descriptions {
if description.ExceptionType == exceptionType {
result = append(result, description)
}
}
} else {
result = descriptions
}
if err != nil {
return nil, err
}
return result, nil
}
func (topology *provider) GetExceptionDescription(language i18n.LanguageCodes, params ServiceParams, limit int64, sort, exceptionType string) ([]ExceptionDescription, error) {
if limit <= 0 || limit > 50 {
limit = 10
}
if sort != ExceptionTimeSortStrategy && sort != ExceptionCountSortStrategy {
sort = ExceptionTimeSortStrategy
}
if sort == ExceptionTimeSortStrategy {
sort = "max(timestamp) DESC"
}
if sort == ExceptionCountSortStrategy {
sort = "sum(count::field) DESC"
}
var filter bytes.Buffer
if exceptionType != "" {
filter.WriteString(" AND type::tag=$type")
}
sql := fmt.Sprintf("SELECT instance_id::tag,method::tag,class::tag,exception_message::tag,type::tag,max(timestamp),sum(count::field) FROM error_alert WHERE service_id::tag=$service_id AND terminus_key::tag=$terminus_key %s GROUP BY error_id::tag ORDER BY %s LIMIT %v", filter.String(), sort, limit)
paramMap := map[string]interface{}{
"service_id": params.ServiceId,
"type": exceptionType,
"terminus_key": params.ScopeId,
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.StartTime, 10))
options.Set("end", strconv.FormatInt(params.EndTime, 10))
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
paramMap,
options)
if err != nil {
return nil, err
}
var exceptionDescriptions []ExceptionDescription
for _, detail := range source.ResultSet.Rows {
var exceptionDescription ExceptionDescription
exceptionDescription.InstanceId = conv.ToString(detail[0])
exceptionDescription.Method = conv.ToString(detail[1])
exceptionDescription.Class = conv.ToString(detail[2])
exceptionDescription.Message = conv.ToString(detail[3])
exceptionDescription.ExceptionType = conv.ToString(detail[4])
exceptionDescription.Time = time.Unix(0, int64(conv.ToFloat64(detail[5], 0))).Format(TimeLayout)
exceptionDescription.Count = int64(conv.ToFloat64(detail[6], 0))
exceptionDescriptions = append(exceptionDescriptions, exceptionDescription)
}
return exceptionDescriptions, nil
}
func (topology *provider) GetDashBoardByServiceType(params ProcessParams) (string, error) {
for _, processType := range ProcessTypes {
metricsParams := url.Values{}
statement := fmt.Sprintf("SELECT terminus_key::tag FROM %s WHERE terminus_key=$terminus_key "+
"AND service_name=$service_name LIMIT 1", processType)
queryParams := map[string]interface{}{
"terminus_key": params.TerminusKey,
"service_name": params.ServiceName,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return "", err
}
rows := response.ResultSet.Rows
if len(rows) == 1 {
return getDashboardId(processType), nil
}
}
return "", nil
}
func (topology *provider) GetProcessType(language string, params ServiceParams) (interface{}, error) {
return nil, nil
}
type InstanceInfo struct {
Id string `json:"instanceId"`
Ip string `json:"ip"`
Status bool `json:"status"`
}
func (topology *provider) GetServiceInstanceIds(language i18n.LanguageCodes, params ServiceParams) (interface{}, interface{}) {
// instance list
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT service_instance_id::tag,service_ip::tag,if(gt(now()-timestamp,300000000000),'false','true') FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
instanceList := topology.handleInstanceInfo(response)
// instance status
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
instanceListForStatus := topology.handleInstanceInfo(response)
filterInstance(instanceList, instanceListForStatus)
return instanceList, nil
}
func filterInstance(instanceList []*InstanceInfo, instanceListForStatus []*InstanceInfo) {
for _, instance := range instanceList {
for i, statusInstance := range instanceListForStatus {
if instance.Id == statusInstance.Id {
instance.Status = statusInstance.Status
instanceListForStatus = append(instanceListForStatus[:i], instanceListForStatus[i+1:]...)
i--
break
}
}
}
}
func (topology *provider) handleInstanceInfo(response *query.ResultSet) []*InstanceInfo {
rows := response.ResultSet.Rows
instanceIds := []*InstanceInfo{}
for _, row := range rows {
status, err := strconv.ParseBool(conv.ToString(row[2]))
if err != nil {
status = false
}
instance := InstanceInfo{
Id: conv.ToString(row[0]),
Ip: conv.ToString(row[1]),
Status: status,
}
instanceIds = append(instanceIds, &instance)
}
return instanceIds
}
func (topology *provider) GetServiceInstances(language i18n.LanguageCodes, params ServiceParams) (interface{}, interface{}) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT service_instance_id::tag,service_agent_platform::tag,format_time(start_time_mean::field*1000000,'2006-01-02 15:04:05') " +
"AS start_time,format_time(timestamp,'2006-01-02 15:04:05') AS last_heartbeat_time FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []*ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceInstanceId: conv.ToString(row[0]),
PlatformVersion: conv.ToString(row[1]),
StartTime: conv.ToString(row[2]),
LastHeartbeatTime: conv.ToString(row[3]),
}
result = append(result, &instance)
}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement = "SELECT service_instance_id::tag,if(gt(now()-timestamp,300000000000),'false','true') AS state FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_id=$service_id GROUP BY service_instance_id::tag"
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
for _, instance := range result {
for i, row := range rows {
if conv.ToString(row[0]) == instance.ServiceInstanceId {
state, err := strconv.ParseBool(conv.ToString(row[1]))
if err != nil {
return nil, err
}
if state {
instance.InstanceState = topology.t.Text(language, "serviceInstanceStateRunning")
} else {
instance.InstanceState = topology.t.Text(language, "serviceInstanceStateStopped")
}
rows = append(rows[:i], rows[i+1:]...)
break
}
}
}
return result, nil
}
func (topology *provider) GetServiceRequest(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
var translations []RequestTransaction
for _, metricName := range ReqMetricNames {
translation, err := topology.serviceReqInfo(metricName, topology.t.Text(language, metricName+"_request"), params, metricsParams)
if err != nil {
return nil, err
}
translations = append(translations, *translation)
}
return translations, nil
}
func (topology *provider) GetServiceOverview(language i18n.LanguageCodes, params ServiceParams) (interface{}, error) {
dashboardData := make([]map[string]interface{}, 0, 10)
serviceOverviewMap := make(map[string]interface{})
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
instanceMetricsParams := url.Values{}
instanceMetricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
instanceMetricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement := "SELECT service_name::tag,service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node " +
"WHERE terminus_key=$terminus_key AND service_name=$service_name AND service_id=$service_id GROUP BY service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, instanceMetricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceName: conv.ToString(row[0]),
ServiceInstanceName: conv.ToString(row[1]),
InstanceState: conv.ToString(row[2]),
}
result = append(result, instance)
}
runningCount := 0
stoppedCount := 0
for _, instance := range result {
if instance.InstanceState == "running" {
runningCount += 1
} else if instance.InstanceState == "stopping" {
stoppedCount += 1
}
}
serviceOverviewMap["running_instances"] = runningCount
serviceOverviewMap["stopped_instances"] = stoppedCount
// error req count
errorCount := 0.0
for _, metricName := range ReqMetricNames {
count, err := topology.serviceReqErrorCount(metricName, params, metricsParams)
if err != nil {
return nil, err
}
errorCount += count
}
serviceOverviewMap["service_error_req_count"] = errorCount
// exception count
statement = "SELECT sum(count) FROM error_count WHERE terminus_key=$terminus_key AND service_name=$service_name AND service_id=$service_id"
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
expCount := rows[0][0]
serviceOverviewMap["service_exception_count"] = expCount
// alert count
statement = "SELECT count(alert_id::tag) FROM analyzer_alert WHERE terminus_key=$terminus_key AND service_name=$service_name"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
alertCount := rows[0][0]
serviceOverviewMap["alert_count"] = alertCount
dashboardData = append(dashboardData, serviceOverviewMap)
return dashboardData, nil
}
func (topology *provider) GetOverview(language i18n.LanguageCodes, params GlobalParams) (interface{}, error) {
result := make(map[string]interface{})
dashboardData := make([]map[string]interface{}, 0, 10)
overviewMap := make(map[string]interface{})
// service count
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(params.EndTime, 10))
statement := "SELECT distinct(service_name::tag) FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
serviceCount := float64(0)
for _, row := range rows {
count := conv.ToFloat64(row[0], 0)
serviceCount += count
}
overviewMap["service_count"] = serviceCount
// running service instance count
instanceMetricsParams := url.Values{}
instanceMetricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
instanceMetricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement = "SELECT service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_instance_id::tag"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, instanceMetricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
serviceRunningInstanceCount := float64(0)
for _, row := range rows {
if row[1] == "running" {
serviceRunningInstanceCount += 1
}
}
overviewMap["service_running_instance_count"] = serviceRunningInstanceCount
// error request count
errorCount := 0.0
for _, errorReqMetricName := range ReqMetricNames {
count, err := topology.globalReqCount(errorReqMetricName, params, metricsParams)
if err != nil {
return nil, err
}
errorCount += count
}
overviewMap["service_error_req_count"] = errorCount
// service exception count
statement = "SELECT sum(count) FROM error_count WHERE terminus_key=$terminus_key"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
expCount := rows[0][0]
overviewMap["service_exception_count"] = expCount
// alert count
statement = "SELECT count(alert_id::tag) FROM analyzer_alert WHERE terminus_key=$terminus_key"
queryParams = map[string]interface{}{
"terminus_key": params.ScopeId,
}
response, err = topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows = response.ResultSet.Rows
alertCount := rows[0][0]
overviewMap["alert_count"] = alertCount
dashboardData = append(dashboardData, overviewMap)
result["data"] = dashboardData
return result, nil
}
func (topology *provider) globalReqCount(metricScopeName string, params GlobalParams, metricsParams url.Values) (float64, error) {
statement := fmt.Sprintf("SELECT sum(errors_sum::field) FROM %s WHERE target_terminus_key::tag=$terminus_key", metricScopeName)
queryParams := map[string]interface{}{
"metric": metricScopeName,
"terminus_key": params.ScopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return 0, err
}
rows := conv.ToFloat64(response.ResultSet.Rows[0][0], 0)
return rows, nil
}
//toTwoDecimalPlaces Two decimal places
func toTwoDecimalPlaces(num float64) float64 {
temp, err := strconv.ParseFloat(fmt.Sprintf("%.2f", num), 64)
if err != nil {
temp = 0
}
return temp
}
func (topology *provider) serviceReqInfo(metricScopeName, metricScopeNameDesc string, params ServiceParams, metricsParams url.Values) (*RequestTransaction, error) {
var requestTransaction RequestTransaction
metricType := "target_service_name"
tkType := "target_terminus_key"
serviceIdType := "target_service_id"
if metricScopeName == ReqMetricNames[2] || metricScopeName == ReqMetricNames[3] || metricScopeName == ReqMetricNames[4] {
metricType = "source_service_name"
serviceIdType = "source_service_id"
tkType = "source_terminus_key"
}
statement := fmt.Sprintf("SELECT sum(count_sum),sum(elapsed_sum)/sum(count_sum),sum(errors_sum)/sum(count_sum) FROM %s WHERE %s=$terminus_key AND %s=$service_name AND %s=$service_id",
metricScopeName, tkType, metricType, serviceIdType)
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
row := response.ResultSet.Rows
requestTransaction.RequestCount = conv.ToFloat64(row[0][0], 0)
if row[0][1] != nil {
requestTransaction.RequestAvgTime = toTwoDecimalPlaces(conv.ToFloat64(row[0][1], 0) / 1e6)
} else {
requestTransaction.RequestAvgTime = 0
}
if row[0][2] != nil {
requestTransaction.RequestErrorRate = toTwoDecimalPlaces(conv.ToFloat64(row[0][2], 0) * 100)
} else {
requestTransaction.RequestErrorRate = 0
}
requestTransaction.RequestType = metricScopeNameDesc
return &requestTransaction, nil
}
func (topology *provider) serviceReqErrorCount(metricScopeName string, params ServiceParams, metricsParams url.Values) (float64, error) {
metricType := "target_service_name"
tkType := "target_terminus_key"
serviceIdType := "target_service_id"
if metricScopeName == ReqMetricNames[2] || metricScopeName == ReqMetricNames[3] || metricScopeName == ReqMetricNames[4] {
metricType = "source_service_name"
serviceIdType = "source_service_id"
tkType = "source_terminus_key"
}
statement := fmt.Sprintf("SELECT sum(errors_sum) FROM %s WHERE %s=$terminus_key AND %s=$service_name AND %s=$service_id",
metricScopeName, tkType, metricType, serviceIdType)
queryParams := map[string]interface{}{
"terminus_key": params.ScopeId,
"service_name": params.ServiceName,
"service_id": params.ServiceId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return 0, err
}
rows := conv.ToFloat64(response.ResultSet.Rows[0][0], 0)
return rows, nil
}
func (topology *provider) GetSearchTags(r *http.Request) []SearchTag {
lang := api.Language(r)
label := topology.t.Text(lang, ApplicationSearchTag.Tag)
if label != "" {
ApplicationSearchTag.Label = label
}
return []SearchTag{
ApplicationSearchTag,
}
}
func searchApplicationTag(topology *provider, scopeId string, startTime, endTime int64) ([]string, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(startTime, 10))
metricsParams.Set("end", strconv.FormatInt(endTime, 10))
statement := "SELECT application_name::tag FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY application_name::tag"
queryParams := map[string]interface{}{
"terminus_key": scopeId,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var itemResult []string
for _, name := range rows {
itemResult = append(itemResult, conv.ToString(name[0]))
}
return itemResult, nil
}
func (topology *provider) ComposeTopologyNode(r *http.Request, params Vo) ([]*Node, error) {
nodes := topology.GetTopology(params)
// instance count info
instances, err := topology.GetInstances(api.Language(r), params)
if err != nil {
return nil, err
}
for _, node := range nodes {
key := node.ServiceId
serviceInstances := instances[key]
for _, instance := range serviceInstances {
if instance.ServiceId == node.ServiceId {
if instance.InstanceState == "running" {
node.Metric.Running += 1
} else {
node.Metric.Stopped += 1
}
}
}
}
return nodes, nil
}
func (topology *provider) Services(serviceName string, nodes []*Node) []ServiceDashboard {
var serviceDashboards []ServiceDashboard
for _, node := range nodes {
if node.ServiceName == "" {
continue
}
if serviceName != "" && !strings.Contains(node.ServiceName, serviceName) {
continue
}
var serviceDashboard ServiceDashboard
serviceDashboard.Name = node.ServiceName
serviceDashboard.ReqCount = node.Metric.Count
serviceDashboard.ReqErrorCount = node.Metric.HttpError
serviceDashboard.ART = toTwoDecimalPlaces(node.Metric.RT)
serviceDashboard.RSInstanceCount = fmt.Sprintf("%v", node.Metric.Running)
serviceDashboard.RuntimeId = node.RuntimeId
serviceDashboard.Id = node.ServiceId
serviceDashboard.RuntimeName = node.RuntimeName
serviceDashboard.ApplicationId = node.ApplicationId
serviceDashboard.ApplicationName = node.ApplicationName
serviceDashboards = append(serviceDashboards, serviceDashboard)
}
return serviceDashboards
}
type ServiceInstance struct {
ApplicationName string `json:"applicationName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
ServiceInstanceName string `json:"serviceInstanceName,omitempty"`
ServiceInstanceId string `json:"serviceInstanceId,omitempty"`
InstanceState string `json:"instanceState,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
StartTime string `json:"startTime,omitempty"`
LastHeartbeatTime string `json:"lastHeartbeatTime,omitempty"`
}
func (topology *provider) GetInstances(language i18n.LanguageCodes, params Vo) (map[string][]ServiceInstance, error) {
metricsParams := url.Values{}
metricsParams.Set("start", strconv.FormatInt(params.StartTime, 10))
metricsParams.Set("end", strconv.FormatInt(time.Now().UnixNano()/1e6, 10))
statement := "SELECT service_id::tag,service_instance_id::tag,if(gt(now()-timestamp,300000000000),'stopping','running') FROM application_service_node WHERE terminus_key=$terminus_key GROUP BY service_id::tag,service_instance_id::tag"
queryParams := map[string]interface{}{
"terminus_key": params.TerminusKey,
}
response, err := topology.metricq.Query("influxql", statement, queryParams, metricsParams)
if err != nil {
return nil, err
}
rows := response.ResultSet.Rows
var result []ServiceInstance
for _, row := range rows {
instance := ServiceInstance{
ServiceId: conv.ToString(row[0]),
ServiceInstanceName: conv.ToString(row[1]),
InstanceState: conv.ToString(row[2]),
}
result = append(result, instance)
}
instanceResult := make(map[string][]ServiceInstance)
for _, instance := range result {
key := instance.ServiceId
if instanceResult[key] == nil {
var serviceInstance []ServiceInstance
serviceInstance = append(serviceInstance, instance)
instanceResult[key] = serviceInstance
} else {
serviceInstances := instanceResult[key]
serviceInstances = append(serviceInstances, instance)
instanceResult[key] = serviceInstances
}
}
return instanceResult, nil
}
func (topology *provider) GetSearchTagv(r *http.Request, tag, scopeId string, startTime, endTime int64) ([]string, error) {
switch tag {
case ApplicationSearchTag.Tag:
return searchApplicationTag(topology, scopeId, startTime, endTime)
default:
return nil, errors.New("search tag not support")
}
}
func (topology *provider) GetTopology(param Vo) []*Node {
indices := createTypologyIndices(param.StartTime, param.EndTime)
ctx := context.Background()
nodes := make([]*Node, 0)
for key, typeIndices := range indices {
aggregationConditions, relations := selectRelation(key)
query := queryConditions(key, param)
searchSource := elastic.NewSearchSource()
searchSource.Query(query).Size(0)
if aggregationConditions == nil {
log.Fatal("aggregation conditions can't nil")
}
for key, aggregation := range aggregationConditions.Aggregation {
searchSource.Aggregation(key, aggregation)
}
searchResult, err := topology.es.Search(typeIndices...).
Header("content-type", "application/json").
SearchSource(searchSource).
Do(ctx)
if err != nil {
continue
}
//debug
if param.Debug {
source, _ := searchSource.Source()
data, _ := json.Marshal(source)
fmt.Print("indices: ")
fmt.Println(typeIndices)
fmt.Println("request body: " + string(data))
fmt.Println()
}
parseToTypologyNode(searchResult, relations, &nodes)
}
//debug
//nodesData, _ := json.Marshal(nodes)
//fmt.Println(string(nodesData))
return nodes
}
// FilterNodeByTags
func (topology *provider) FilterNodeByTags(tags []string, nodes []*Node) []*Node {
if tags != nil && len(tags) > 0 {
for _, v := range tags {
tagInfo := strings.Split(v, ":")
tag := tagInfo[0]
value := tagInfo[1]
switch tag {
case ApplicationSearchTag.Tag:
for i, node := range nodes {
if strings.ToLower(node.Name) == strings.ToLower(TypeGateway) {
continue
}
for _, parentNode := range node.Parents {
if node.ApplicationName != value && parentNode.ApplicationName != value {
nodes = append(nodes[:i], nodes[i+1:]...)
i--
}
}
}
case ServiceSearchTag.Tag:
for i, node := range nodes {
if node.ServiceName != value {
nodes = append(nodes[:i], nodes[i+1:]...)
i--
}
}
}
}
}
return nodes
}
func selectRelation(indexType string) (*AggregationCondition, []*NodeRelation) {
var aggregationConditions *AggregationCondition
var relations []*NodeRelation
aggregationConditions = Aggregations[indexType]
relations = NodeRelations[indexType]
return aggregationConditions, relations
}
func parseToTypologyNode(searchResult *elastic.SearchResult, relations []*NodeRelation, topologyNodes *[]*Node) {
for _, nodeRelation := range relations {
targetNodeType := nodeRelation.Target
sourceNodeTypes := nodeRelation.Source
key := encodeTypeToKey(targetNodeType.Type) // targetNodeType key
aggregations := searchResult.Aggregations
if aggregations != nil {
filter, b := aggregations.Filter(key)
if b {
field := targetNodeType.GroupByField
buckets := findDataBuckets(&filter.Aggregations, field)
// handler
for _, item := range *buckets {
// node
target := item.Aggregations
// columns
termsColumns, ok := target.TopHits(apm.Columns)
if !ok {
continue
}
if len(termsColumns.Hits.Hits) <= 0 && termsColumns.Hits.Hits[0].Source != nil {
continue
}
targetNode := &TopologyNodeRelation{}
err := json.Unmarshal(*termsColumns.Hits.Hits[0].Source, &targetNode)
if err != nil {
log.Println("parser error")
}
node := columnsParser(targetNodeType.Type, targetNode)
// aggs
metric := metricParser(targetNodeType, target)
node.Metric = metric
// merge same node
exist := false
for _, n := range *topologyNodes {
if n.Id == node.Id {
n.Metric.Count += node.Metric.Count
n.Metric.HttpError += node.Metric.HttpError
n.Metric.ErrorRate += node.Metric.ErrorRate
n.Metric.RT += node.Metric.RT
if n.RuntimeId == "" {
n.RuntimeId = node.RuntimeId
}
exist = true
node = n
break
}
}
if !exist {
*topologyNodes = append(*topologyNodes, node)
node.Parents = []*Node{}
}
//tNode, _ := json.Marshal(node)
//fmt.Println("target:", string(tNode))
// sourceNodeTypes
for _, nodeType := range sourceNodeTypes {
key := encodeTypeToKey(nodeType.Type) // sourceNodeTypes key
bucket, found := target.Filter(key)
if !found {
continue
}
a := bucket.Aggregations
items := findDataBuckets(&a, nodeType.GroupByField)
for _, keyItem := range *items {
// node
source := keyItem.Aggregations
// columns
sourceTermsColumns, ok := source.TopHits(apm.Columns)
if !ok {
continue
}
if len(sourceTermsColumns.Hits.Hits) <= 0 && sourceTermsColumns.Hits.Hits[0].Source != nil {
continue
}
sourceNodeInfo := &TopologyNodeRelation{}
err := json.Unmarshal(*sourceTermsColumns.Hits.Hits[0].Source, &sourceNodeInfo)
if err != nil {
log.Println("parser error")
}
sourceNode := columnsParser(nodeType.Type, sourceNodeInfo)
// aggs
sourceMetric := metricParser(nodeType, source)
sourceNode.Metric = sourceMetric
sourceNode.Parents = []*Node{}
//sNode, _ := json.Marshal(sourceNode)
//fmt.Println("source:", string(sNode))
node.Parents = append(node.Parents, sourceNode)
}
}
}
}
}
}
}
func metricParser(targetNodeType *NodeType, target elastic.Aggregations) *Metric {
aggregation := targetNodeType.Aggregation
metric := Metric{}
inner := make(map[string]*float64)
field := Field{}
if aggregation == nil {
return &metric
}
for key := range aggregation {
sum, _ := target.Sum(key)
split := strings.Split(key, ".")
s2 := split[1]
value := sum.Value
inner[s2] = value
}
marshal, err := json.Marshal(inner)
if err != nil {
return &metric
}
err = json.Unmarshal(marshal, &field)
if err != nil {
return &metric
}
countSum := field.CountSum
metric.Count = int64(countSum)
metric.HttpError = int64(field.ErrorsSum)
if countSum != 0 { // by zero
metric.RT = toTwoDecimalPlaces(field.ELapsedSum / countSum / 1e6)
metric.ErrorRate = math.Round(float64(metric.HttpError)/countSum*1e4) / 1e2
}
return &metric
}
func getDashboardId(nodeType string) string {
switch strings.ToLower(nodeType) {
case strings.ToLower(TypeService):
return topologyNodeService
case strings.ToLower(TypeGateway):
return topologyNodeGateway
case strings.ToLower(TypeMysql):
return topologyNodeDb
case strings.ToLower(TypeRedis):
return topologyNodeCache
case strings.ToLower(TypeRocketMQ):
return topologyNodeMq
case strings.ToLower(JavaProcessType):
return processAnalysisJava
case strings.ToLower(NodeJsProcessType):
return processAnalysisNodejs
case strings.ToLower(TypeHttp):
return topologyNodeOther
default:
return ""
}
}
func columnsParser(nodeType string, nodeRelation *TopologyNodeRelation) *Node {
// TypeService = "Service"
// TypeMysql = "Mysql"
// TypeRedis = "Redis"
// TypeHttp = "Http"
// TypeDubbo = "Dubbo"
// TypeSidecar = "SideCar"
// TypeGateway = "APIGateway"
// TypeRegisterCenter = "RegisterCenter"
// TypeConfigCenter = "ConfigCenter"
// TypeNoticeCenter = "NoticeCenter"
// TypeElasticsearch = "Elasticsearch"
node := Node{}
tags := nodeRelation.Tags
switch nodeType {
case TargetServiceNode:
node.Type = TypeService
node.ApplicationId = tags.TargetApplicationId
node.ApplicationName = tags.TargetApplicationName
node.ServiceName = tags.TargetServiceName
node.ServiceId = tags.TargetServiceId
node.Name = node.ServiceName
node.RuntimeId = tags.TargetRuntimeId
node.RuntimeName = tags.TargetRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case SourceServiceNode:
node.Type = TypeService
node.ApplicationId = tags.SourceApplicationId
node.ApplicationName = tags.SourceApplicationName
node.ServiceId = tags.SourceServiceId
node.ServiceName = tags.SourceServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.SourceRuntimeId
node.RuntimeName = tags.SourceRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case TargetAddonNode:
if strings.ToLower(tags.Component) == strings.ToLower("Http") {
node.Type = TypeElasticsearch
} else {
node.Type = tags.TargetAddonType
}
node.AddonId = tags.TargetAddonID
node.Name = tags.TargetAddonID
node.AddonType = tags.TargetAddonType
node.Id = encodeTypeToKey(node.AddonId + apm.Sep1 + node.AddonType)
case SourceAddonNode:
node.Type = tags.SourceAddonType
node.AddonId = tags.SourceAddonID
node.AddonType = tags.SourceAddonType
node.Name = tags.SourceAddonID
node.Id = encodeTypeToKey(node.AddonId + apm.Sep1 + node.AddonType)
case TargetComponentNode:
node.Type = tags.Component
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Type + apm.Sep1 + node.Name)
case SourceMQNode:
node.Type = tags.Component
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Type + apm.Sep1 + node.Name)
case TargetMQServiceNode:
node.Type = TypeService
node.ApplicationId = tags.TargetApplicationId
node.ApplicationName = tags.TargetApplicationName
node.ServiceId = tags.TargetServiceId
node.ServiceName = tags.TargetServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.TargetRuntimeId
node.RuntimeName = tags.TargetRuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
case TargetOtherNode:
if strings.ToLower(tags.Component) == strings.ToLower("Http") && strings.HasPrefix(tags.Host, "terminus-elasticsearch") {
node.Type = TypeElasticsearch
} else {
node.Type = tags.Component
}
node.Name = tags.Host
node.Id = encodeTypeToKey(node.Name + apm.Sep1 + node.Type)
case OtherNode:
node.Type = TypeService
node.ApplicationId = tags.ApplicationId
node.ApplicationName = tags.ApplicationName
node.ServiceId = tags.ServiceId
node.ServiceName = tags.ServiceName
node.Name = node.ServiceName
node.RuntimeId = tags.RuntimeId
node.RuntimeName = tags.RuntimeName
node.Id = encodeTypeToKey(node.ApplicationId + apm.Sep1 + node.RuntimeName + apm.Sep1 + node.ServiceName)
}
node.DashboardId = getDashboardId(node.Type)
return &node
}
func findDataBuckets(filter *elastic.Aggregations, field *GroupByField) *[]*elastic.AggregationBucketKeyItem {
var nodeBuckets []*elastic.AggregationBucketKeyItem
termAggs, _ := filter.Terms(field.Name)
findNodeBuckets(termAggs.Buckets, field, &nodeBuckets)
return &nodeBuckets
}
func findNodeBuckets(bucketKeyItems []*elastic.AggregationBucketKeyItem, field *GroupByField, nodeBuckets *[]*elastic.AggregationBucketKeyItem) {
for _, buckets := range bucketKeyItems {
if field != nil && field.SubField != nil {
aggregations := buckets.Aggregations
bucket, _ := aggregations.Terms(field.SubField.Name)
findNodeBuckets(bucket.Buckets, field.SubField.SubField, nodeBuckets)
continue
}
if field == nil {
*nodeBuckets = append(*nodeBuckets, buckets)
} else {
bucketsAgg := buckets.Aggregations
terms, _ := bucketsAgg.Terms(field.Name)
*nodeBuckets = append(*nodeBuckets, terms.Buckets...)
}
}
}
// http/rpc
func (topology *provider) translation(r *http.Request, params translation) interface{} {
if params.Layer != "http" && params.Layer != "rpc" {
return api.Errors.Internal(errors.New("not supported layer name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
var where bytes.Buffer
var orderby string
var field string
param := map[string]interface{}{
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
}
switch params.Layer {
case "http":
field = "http_path::tag"
if params.Search != "" {
param["field"] = map[string]interface{}{"regex": ".*" + params.Search + ".*"}
where.WriteString(" AND http_path::tag=~$field")
}
case "rpc":
field = "dubbo_method::tag"
if params.Search != "" {
param["field"] = map[string]interface{}{
"regex": ".*" + params.Search + ".*",
}
where.WriteString(" AND dubbo_method::tag=~$field")
}
default:
return api.Errors.InvalidParameter(errors.New("not support layer name"))
}
if params.Sort == 0 {
orderby = " ORDER BY count(error::tag) DESC"
}
if params.Sort == 1 {
orderby = " ORDER BY sum(elapsed_count::field) DESC"
}
sql := fmt.Sprintf("SELECT %s,sum(elapsed_count::field),count(error::tag),format_duration(avg(elapsed_mean::field),'',2) "+
"FROM application_%s WHERE target_service_id::tag=$serviceId AND target_service_name::tag=$filterServiceName "+
"AND target_terminus_key::tag=$terminusKey %s GROUP BY %s", field, params.Layer, where.String(), field+orderby)
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
param,
options)
if err != nil {
return api.Errors.Internal(err)
}
result := make(map[string]interface{}, 0)
cols := []map[string]interface{}{
{"flag": "tag|gropuby", "key": "translation_name", "_key": "tags.http_path"},
{"flag": "field|func|agg", "key": "elapsed_count", "_key": ""},
{"flag": "tag|func|agg", "key": "error_count", "_key": ""},
{"flag": "tag|func|agg", "key": "slow_elapsed_count", "_key": ""},
{"flag": "tag|func|agg", "key": "avg_elapsed", "_key": ""},
}
result["cols"] = cols
data := make([]map[string]interface{}, 0)
for _, r := range source.ResultSet.Rows {
itemResult := make(map[string]interface{})
itemResult["translation_name"] = r[0]
itemResult["elapsed_count"] = r[1]
itemResult["error_count"] = r[2]
itemResult["avg_elapsed"] = r[3]
sql = fmt.Sprintf("SELECT sum(elapsed_count::field) FROM application_%s_slow WHERE target_service_id::tag=$serviceId "+
"AND target_service_name::tag=$filterServiceName AND %s=$field AND target_terminus_key::tag=$terminusKey ", params.Layer, field)
slowElapsedCount, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
map[string]interface{}{
"field": conv.ToString(r[0]),
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
for _, item := range slowElapsedCount.ResultSet.Rows {
itemResult["slow_elapsed_count"] = item[0]
}
data = append(data, itemResult)
}
result["data"] = data
return api.Success(result)
}
// db/cache
func (topology *provider) dbTransaction(r *http.Request, params translation) interface{} {
if params.Layer != "db" && params.Layer != "cache" {
return api.Errors.Internal(errors.New("not supported layer name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
var where bytes.Buffer
var orderby string
param := make(map[string]interface{})
param["terminusKey"] = params.TerminusKey
param["filterServiceName"] = params.FilterServiceName
param["serviceId"] = params.ServiceId
if params.Search != "" {
where.WriteString(" AND db_statement::tag=~$field")
param["field"] = map[string]interface{}{"regex": ".*" + params.Search + ".*"}
}
if params.Sort == 1 {
orderby = " ORDER BY sum(elapsed_count::field) DESC"
}
sql := fmt.Sprintf("SELECT db_statement::tag,db_type::tag,db_instance::tag,host::tag,sum(elapsed_count::field),"+
"format_duration(avg(elapsed_mean::field),'',2) FROM application_%s WHERE source_service_id::tag=$serviceId AND "+
"source_service_name::tag=$filterServiceName AND source_terminus_key::tag=$terminusKey %s GROUP BY db_statement::tag %s",
params.Layer, where.String(), orderby)
source, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
param,
options)
if err != nil {
return api.Errors.Internal(err)
}
result := make(map[string]interface{}, 0)
cols := []map[string]interface{}{
{"_key": "tags.db_statement", "flag": "tag|groupby", "key": "operation"},
{"_key": "tags.db_type", "flag": "tag", "key": "db_type"},
{"_key": "tags.db_instance", "flag": "tag", "key": "instance_type"},
{"_key": "tags.host", "flag": "tag", "key": "db_host"},
{"_key": "", "flag": "field|func|agg", "key": "call_count"},
{"_key": "", "flag": "field|func|agg", "key": "avg_elapsed"},
{"_key": "", "flag": "field|func|agg", "key": "slow_elapsed_count"},
}
result["cols"] = cols
data := make([]map[string]interface{}, 0)
for _, r := range source.ResultSet.Rows {
itemResult := make(map[string]interface{})
itemResult["operation"] = r[0]
itemResult["db_type"] = r[1]
itemResult["db_instance"] = r[2]
itemResult["db_host"] = r[3]
itemResult["call_count"] = r[4]
itemResult["avg_elapsed"] = r[5]
sql := fmt.Sprintf("SELECT sum(elapsed_count::field) FROM application_%s_slow WHERE source_service_id::tag=$serviceId "+
"AND source_service_name::tag=$filterServiceName AND db_statement::tag=$field AND target_terminus_key::tag=$terminusKey", params.Layer)
slowElapsedCount, err := topology.metricq.Query(
metricq.InfluxQL,
sql,
map[string]interface{}{
"field": conv.ToString(r[0]),
"terminusKey": params.TerminusKey,
"filterServiceName": params.FilterServiceName,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
for _, item := range slowElapsedCount.ResultSet.Rows {
itemResult["slow_elapsed_count"] = item[0]
}
data = append(data, itemResult)
}
result["data"] = data
return api.Success(result)
}
func (topology *provider) slowTranslationTrace(r *http.Request, params struct {
Start int64 `query:"start" validate:"required"`
End int64 `query:"end" validate:"required"`
ServiceName string `query:"serviceName" validate:"required"`
TerminusKey string `query:"terminusKey" validate:"required"`
Operation string `query:"operation" validate:"required"`
ServiceId string `query:"serviceId" validate:"required"`
Sort string `default:"DESC" query:"sort"`
}) interface{} {
if params.Sort != "ASC" && params.Sort != "DESC" {
return api.Errors.Internal(errors.New("not supported sort name"))
}
options := url.Values{}
options.Set("start", strconv.FormatInt(params.Start, 10))
options.Set("end", strconv.FormatInt(params.End, 10))
sql := fmt.Sprintf("SELECT trace_id::tag,format_time(timestamp,'2006-01-02 15:04:05'),round_float(if(lt(end_time::field-start_time::field,0),0,end_time::field-start_time::field)/1000000,2) FROM trace WHERE service_ids::field=$serviceId AND service_names::field=$serviceName AND terminus_keys::field=$terminusKey AND (http_paths::field=$operation OR dubbo_methods::field=$operation) ORDER BY timestamp %s", params.Sort)
details, err := topology.metricq.Query(metricq.InfluxQL,
sql,
map[string]interface{}{
"serviceName": params.ServiceName,
"terminusKey": params.TerminusKey,
"operation": params.Operation,
"serviceId": params.ServiceId,
},
options)
if err != nil {
return api.Errors.Internal(err)
}
var data []map[string]interface{}
for _, detail := range details.ResultSet.Rows {
detailMap := make(map[string]interface{})
detailMap["requestId"] = detail[0]
detailMap["time"] = detail[1]
detailMap["avgElapsed"] = detail[2]
data = append(data, detailMap)
}
result := map[string]interface{}{
"cols": []map[string]interface{}{
{"title": "请求ID", "index": "requestId"},
{"title": "时间", "index": "time"},
{"title": "耗时(ms)", "index": "avgElapsed"},
},
"data": data,
}
return api.Success(result)
}
| [
5786,
23133,
188,
188,
4747,
280,
188,
187,
4,
2186,
4,
188,
187,
4,
1609,
4,
188,
187,
4,
6253,
17,
7350,
2337,
4,
188,
187,
4,
6534,
17,
7690,
4,
188,
187,
4,
6534,
17,
1894,
4,
188,
187,
4,
4383,
4,
188,
187,
4,
2763,
4,
188,
187,
4,
1151,
4,
188,
187,
4,
4964,
4,
188,
187,
4,
1291,
17,
1635,
4,
188,
187,
4,
1291,
17,
1837,
4,
188,
187,
4,
16568,
4,
188,
187,
4,
4223,
4,
188,
187,
4,
20238,
4,
188,
187,
4,
6137,
4,
188,
187,
4,
1149,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
365,
395,
1062,
17,
13236,
4,
188,
187,
4,
3140,
16,
817,
17,
251,
13371,
728,
17,
2035,
15,
3885,
17,
5543,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
15,
38887,
17,
14757,
17,
1635,
2839,
4,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
15,
38887,
17,
14757,
17,
75,
927,
80,
4,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
6664,
17,
1576,
17,
9827,
17,
8041,
17,
1830,
17,
8041,
83,
4,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
6664,
17,
1576,
17,
9827,
17,
8041,
17,
1830,
17,
1830,
4,
188,
187,
27124,
312,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
6664,
17,
9827,
17,
27124,
17,
2670,
4,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
6664,
17,
9827,
17,
2670,
17,
1184,
4,
188,
187,
4,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
6664,
17,
9827,
17,
2670,
17,
14894,
4,
188,
187,
1791,
312,
3140,
16,
817,
17,
250,
2273,
15,
4720,
17,
250,
2273,
17,
5090,
17,
2670,
17,
1635,
1791,
4,
188,
11,
188,
188,
558,
40527,
603,
275,
188,
187,
17118,
209,
209,
388,
535,
209,
209,
209,
1083,
1830,
1172,
22591,
2537,
188,
187,
24249,
209,
209,
209,
209,
388,
535,
209,
209,
209,
1083,
1830,
1172,
36146,
2537,
188,
187,
12812,
423,
1031,
776,
209,
209,
1083,
1830,
1172,
5700,
423,
1031,
4,
7177,
1172,
6671,
2537,
188,
187,
6295,
209,
209,
209,
209,
209,
209,
209,
1397,
530,
1083,
1830,
1172,
7034,
2537,
188,
187,
3468,
209,
209,
209,
209,
209,
209,
1019,
209,
209,
209,
209,
1083,
1830,
1172,
2244,
2537,
188,
95,
188,
188,
558,
8337,
603,
275,
188,
187,
5884,
8112,
1175,
1083,
1894,
1172,
5421,
2537,
188,
95,
188,
188,
1857,
1301,
20535,
8765,
10,
1184,
258,
1184,
16,
1414,
11,
1540,
2839,
16,
18552,
275,
188,
187,
397,
5175,
16,
33795,
250,
10,
188,
187,
187,
14894,
16,
4755,
4812,
14,
5175,
16,
29354,
1699,
2911,
10,
1184,
399,
188,
187,
187,
27124,
16,
8616,
20535,
14,
5175,
16,
2271,
901,
14,
188,
187,
11,
188,
95,
188,
188,
819,
3731,
3629,
260,
312,
15794,
15,
493,
15,
1052,
2818,
28,
1025,
28,
1465,
4,
188,
188,
558,
4400,
603,
275,
188,
187,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
311,
14,
4213,
2537,
188,
187,
613,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
579,
14,
4213,
2537,
188,
187,
563,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
558,
14,
4213,
2537,
188,
187,
35810,
810,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
30178,
810,
14,
4213,
2537,
188,
187,
35810,
563,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
30178,
563,
14,
4213,
2537,
188,
187,
5173,
810,
209,
209,
776,
209,
1083,
1894,
1172,
5853,
810,
14,
4213,
2537,
188,
187,
5173,
613,
776,
209,
1083,
1894,
1172,
5853,
613,
14,
4213,
2537,
188,
187,
4382,
810,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3915,
810,
14,
4213,
2537,
188,
187,
4382,
613,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3915,
613,
14,
4213,
2537,
188,
187,
1700,
810,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3627,
810,
14,
4213,
2537,
188,
187,
23796,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
28115,
14,
4213,
2537,
188,
187,
24754,
810,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
26120,
810,
2537,
188,
187,
6484,
209,
209,
209,
209,
209,
209,
209,
209,
209,
258,
6484,
1083,
1894,
1172,
8041,
2537,
188,
187,
35836,
209,
209,
209,
209,
209,
209,
209,
209,
8112,
1175,
1083,
1894,
1172,
11239,
2537,
188,
95,
188,
188,
819,
280,
188,
187,
17975,
1175,
1700,
209,
209,
260,
312,
17975,
65,
1091,
65,
3627,
4,
188,
187,
17975,
1175,
9775,
209,
209,
260,
312,
17975,
65,
1091,
65,
16397,
4,
188,
187,
17975,
1175,
6406,
209,
209,
209,
209,
209,
209,
209,
260,
312,
17975,
65,
1091,
65,
1184,
4,
188,
187,
17975,
1175,
2874,
209,
209,
209,
209,
260,
312,
17975,
65,
1091,
65,
2091,
4,
188,
187,
17975,
1175,
37415,
209,
209,
209,
209,
209,
209,
209,
260,
312,
17975,
65,
1091,
65,
9274,
4,
188,
187,
17975,
1175,
9121,
209,
209,
209,
209,
260,
312,
17975,
65,
1091,
65,
2994,
4,
188,
187,
2919,
10193,
1175,
3060,
260,
312,
2919,
65,
17049,
65,
1091,
3060,
4,
188,
187,
2919,
10193,
7712,
209,
209,
260,
312,
2919,
65,
17049,
65,
3939,
4,
188,
11,
188,
188,
819,
280,
188,
187,
7712,
3167,
563,
209,
209,
260,
312,
29021,
65,
4134,
4,
188,
187,
1175,
13443,
3167,
563,
260,
312,
1091,
3060,
65,
4134,
4,
188,
11,
188,
188,
828,
6059,
2963,
260,
1397,
530,
93,
188,
187,
7712,
3167,
563,
14,
188,
187,
1175,
13443,
3167,
563,
14,
188,
95,
188,
188,
819,
280,
188,
187,
563,
1700,
209,
209,
209,
209,
209,
209,
209,
260,
312,
1700,
4,
188,
187,
563,
47981,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
312,
47981,
4,
188,
187,
563,
19776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
312,
19776,
4,
188,
187,
563,
52,
2398,
9785,
209,
209,
209,
209,
209,
209,
260,
312,
52,
2398,
9785,
4,
188,
187,
563,
4120,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
312,
4120,
4,
188,
187,
563,
38,
47442,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
312,
38,
47442,
4,
188,
187,
563,
9190,
7507,
209,
209,
209,
209,
209,
209,
209,
260,
312,
9190,
15263,
4,
188,
187,
563,
9775,
209,
209,
209,
209,
209,
209,
209,
260,
312,
1992,
9775,
4,
188,
187,
563,
2184,
9358,
260,
312,
2184,
9358,
4,
188,
187,
563,
1224,
9358,
209,
209,
260,
312,
1224,
9358,
4,
188,
187,
563,
31723,
9358,
209,
209,
260,
312,
31723,
9358,
4,
188,
187,
563,
39080,
209,
260,
312,
39080,
4,
188,
11,
188,
188,
558,
10220,
2343,
603,
275,
188,
187,
2343,
209,
209,
776,
1083,
1894,
1172,
2060,
2537,
188,
187,
2948,
776,
1083,
1894,
1172,
2640,
2537,
188,
187,
563,
209,
776,
1083,
1894,
1172,
558,
2537,
188,
95,
188,
188,
828,
280,
188,
187,
5173,
4648,
2343,
260,
10220,
2343,
93,
188,
187,
187,
2343,
28,
209,
209,
312,
5853,
347,
188,
187,
187,
2948,
28,
312,
24780,
8586,
28187,
347,
188,
187,
187,
563,
28,
209,
312,
3391,
347,
188,
187,
95,
188,
188,
187,
1700,
4648,
2343,
260,
10220,
2343,
93,
188,
187,
187,
2343,
28,
209,
209,
312,
3627,
347,
188,
187,
187,
2948,
28,
312,
30504,
28187,
347,
188,
187,
187,
563,
28,
209,
312,
3391,
347,
188,
187,
95,
188,
11,
188,
188,
828,
3166,
7351,
6484,
3959,
260,
1397,
530,
93,
188,
187,
4,
5853,
65,
1635,
65,
1096,
347,
188,
187,
4,
5853,
65,
6370,
65,
1096,
347,
188,
187,
4,
5853,
65,
2091,
65,
1096,
347,
188,
187,
4,
5853,
65,
1184,
65,
1096,
347,
188,
187,
4,
5853,
65,
9274,
65,
1096,
347,
188,
95,
188,
188,
828,
43812,
6484,
3959,
260,
1397,
530,
93,
188,
187,
4,
5853,
65,
1635,
65,
3627,
347,
188,
187,
4,
5853,
65,
6370,
65,
3627,
347,
188,
187,
4,
5853,
65,
2091,
65,
3627,
347,
188,
187,
4,
5853,
65,
1184,
65,
3627,
347,
188,
187,
4,
5853,
65,
9274,
65,
3627,
347,
188,
95,
188,
188,
828,
43812,
6484,
3959,
1625,
260,
1929,
61,
530,
63,
530,
93,
188,
187,
4,
5853,
65,
1635,
65,
3627,
788,
209,
312,
5918,
209,
18616,
347,
188,
187,
4,
5853,
65,
6370,
65,
3627,
788,
209,
209,
312,
6805,
209,
18616,
347,
188,
187,
4,
5853,
65,
2091,
65,
3627,
788,
312,
46996,
18616,
347,
188,
187,
4,
5853,
65,
1184,
65,
3627,
788,
209,
209,
209,
312,
16383,
32692,
18616,
347,
188,
187,
4,
5853,
65,
9274,
65,
3627,
788,
209,
209,
209,
312,
9785,
209,
18616,
347,
188,
95,
188,
188,
558,
5305,
603,
275,
188,
187,
1757,
11692,
1632,
1787,
535,
1083,
1894,
1172,
20959,
65,
1043,
14,
4213,
2537,
188,
187,
1757,
11692,
2459,
209,
209,
1787,
535,
1083,
1894,
1172,
20959,
65,
1264,
14,
4213,
2537,
188,
187,
1757,
11692,
20752,
209,
1787,
535,
1083,
1894,
1172,
20959,
65,
11857,
14,
4213,
2537,
188,
187,
1757,
11692,
2958,
209,
209,
1787,
535,
1083,
1894,
1172,
20959,
65,
1191,
14,
4213,
2537,
188,
187,
1757,
11692,
5463,
209,
209,
1787,
535,
1083,
1894,
1172,
20959,
65,
1157,
14,
4213,
2537,
188,
187,
1632,
5463,
209,
209,
209,
209,
1787,
535,
1083,
1894,
1172,
1043,
65,
1157,
14,
4213,
2537,
188,
187,
7633,
5463,
209,
209,
209,
1787,
535,
1083,
1894,
1172,
4383,
65,
1157,
14,
4213,
2537,
188,
95,
188,
188,
558,
7009,
603,
275,
188,
187,
2660,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3486,
14,
4213,
2537,
188,
187,
3699,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
1917,
14,
4213,
2537,
188,
187,
2109,
42195,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
4720,
65,
311,
14,
4213,
2537,
188,
187,
2109,
4812,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
4720,
65,
579,
14,
4213,
2537,
188,
187,
2109,
14313,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
16375,
14,
4213,
2537,
188,
187,
2109,
12812,
423,
1031,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
5700,
423,
65,
689,
14,
4213,
2537,
188,
187,
2109,
5173,
810,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
5853,
65,
311,
14,
4213,
2537,
188,
187,
2109,
5173,
613,
776,
1083,
1894,
1172,
2594,
65,
5853,
65,
579,
14,
4213,
2537,
188,
187,
2109,
4382,
810,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
3915,
65,
311,
14,
4213,
2537,
188,
187,
2109,
4382,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
3915,
65,
579,
14,
4213,
2537,
188,
187,
2109,
23796,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
3627,
65,
579,
14,
4213,
2537,
188,
187,
2109,
1700,
810,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
3627,
65,
311,
14,
4213,
2537,
188,
187,
2109,
35810,
565,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
30178,
65,
311,
14,
4213,
2537,
188,
187,
2109,
35810,
563,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2594,
65,
30178,
65,
558,
14,
4213,
2537,
188,
187,
2785,
20180,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
2989,
65,
311,
14,
4213,
2537,
188,
187,
2785,
42195,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
4720,
65,
311,
14,
4213,
2537,
188,
187,
2785,
4812,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
4720,
65,
579,
14,
4213,
2537,
188,
187,
2785,
14313,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
16375,
14,
4213,
2537,
188,
187,
2785,
12812,
423,
1031,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
5700,
423,
65,
689,
14,
4213,
2537,
188,
187,
2785,
5173,
810,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
5853,
65,
311,
14,
4213,
2537,
188,
187,
2785,
5173,
613,
776,
1083,
1894,
1172,
2213,
65,
5853,
65,
579,
14,
4213,
2537,
188,
187,
2785,
4382,
810,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
3915,
65,
311,
14,
4213,
2537,
188,
187,
2785,
4382,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
3915,
65,
579,
14,
4213,
2537,
188,
187,
2785,
23796,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
3627,
65,
579,
14,
4213,
2537,
188,
187,
2785,
1700,
810,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
3627,
65,
311,
14,
4213,
2537,
188,
187,
2785,
35810,
565,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
30178,
65,
311,
14,
4213,
2537,
188,
187,
2785,
35810,
563,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2213,
65,
30178,
65,
558,
14,
4213,
2537,
188,
187,
12812,
423,
1031,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
5700,
423,
65,
689,
14,
4213,
2537,
188,
187,
42195,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
4720,
65,
311,
14,
4213,
2537,
188,
187,
4812,
613,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
4720,
65,
579,
14,
4213,
2537,
188,
187,
14313,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
16375,
14,
4213,
2537,
188,
187,
5173,
810,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
5853,
65,
311,
14,
4213,
2537,
188,
187,
5173,
613,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
5853,
65,
579,
14,
4213,
2537,
188,
187,
4382,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3915,
65,
311,
14,
4213,
2537,
188,
187,
4382,
613,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3915,
65,
579,
14,
4213,
2537,
188,
187,
23796,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
65,
579,
14,
4213,
2537,
188,
187,
1700,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
65,
311,
14,
4213,
2537,
188,
187,
1700,
20180,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
65,
2989,
65,
311,
14,
4213,
2537,
188,
187,
1700,
8365,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
65,
555,
14,
4213,
2537,
188,
187,
563,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
558,
14,
4213,
2537,
188,
95,
188,
188,
558,
12121,
9845,
1175,
10621,
603,
275,
188,
187,
613,
209,
209,
209,
209,
209,
776,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1083,
1894,
1172,
579,
14,
4213,
2537,
188,
187,
6946,
388,
535,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1083,
1894,
1172,
7031,
14,
4213,
2537,
188,
187,
6295,
209,
209,
209,
209,
209,
7009,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1083,
1894,
1172,
7034,
14,
4213,
2537,
188,
187,
3778,
209,
209,
209,
5305,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1083,
1894,
1172,
4244,
14,
4213,
2537,
188,
187,
35836,
209,
209,
8112,
20535,
1175,
10621,
1083,
1894,
1172,
11239,
14,
4213,
2537,
188,
187,
6484,
209,
209,
209,
258,
6484,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1083,
1894,
1172,
8041,
14,
4213,
2537,
188,
95,
188,
188,
558,
19438,
603,
275,
188,
187,
1632,
209,
209,
209,
209,
388,
535,
209,
209,
1083,
1894,
1172,
1043,
2537,
188,
187,
4120,
914,
388,
535,
209,
209,
1083,
1894,
1172,
1635,
65,
1096,
2537,
188,
187,
2172,
209,
209,
209,
209,
209,
209,
209,
1787,
535,
1083,
1894,
1172,
1344,
2537,
188,
187,
914,
5439,
1787,
535,
1083,
1894,
1172,
1096,
65,
2347,
2537,
188,
187,
15997,
209,
1787,
535,
1083,
1894,
1172,
38651,
14,
4213,
2537,
188,
187,
12247,
209,
209,
1787,
535,
1083,
1894,
1172,
8990,
2537,
188,
187,
19226,
209,
209,
1787,
535,
1083,
1894,
1172,
16147,
2537,
188,
95,
188,
188,
819,
280,
188,
187,
5173,
260,
312,
5853,
4,
188,
187,
1700,
209,
209,
209,
209,
260,
312,
3627,
4,
188,
188,
187,
4120,
1132,
209,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
1635,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
10694,
1132,
209,
209,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
6370,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
16871,
1132,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
12052,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
37415,
1132,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
9274,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
6406,
1132,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
1184,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
2874,
1132,
209,
209,
209,
209,
209,
209,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
9714,
431,
2155,
79,
16,
23310,
21,
431,
312,
2091,
4,
431,
2155,
79,
16,
23310,
21,
431,
6569,
188,
187,
1700,
48894,
260,
2155,
79,
16,
19780,
431,
2155,
79,
16,
23310,
19,
431,
312,
3627,
65,
1091,
4,
188,
11,
188,
188,
828,
4854,
4985,
260,
1397,
530,
93,
188,
187,
4120,
1132,
14,
27064,
1132,
14,
13897,
1132,
14,
188,
187,
37415,
1132,
14,
18854,
1132,
14,
10909,
1132,
14,
188,
187,
1700,
48894,
14,
188,
95,
188,
188,
828,
4400,
2963,
260,
1397,
530,
93,
188,
187,
563,
1700,
14,
2962,
47981,
14,
2962,
19776,
14,
188,
187,
563,
4120,
14,
2962,
38,
47442,
14,
2962,
9190,
7507,
14,
188,
187,
563,
9775,
14,
2962,
2184,
9358,
14,
2962,
1224,
9358,
14,
188,
187,
563,
31723,
9358,
14,
2962,
39080,
14,
188,
95,
188,
188,
558,
6569,
24754,
603,
275,
188,
187,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3627,
65,
311,
2537,
188,
187,
613,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3627,
65,
579,
2537,
188,
187,
7351,
1632,
209,
209,
209,
209,
209,
209,
209,
388,
535,
209,
209,
1083,
1894,
1172,
1410,
65,
1043,
2537,
188,
187,
7351,
914,
1632,
209,
209,
388,
535,
209,
209,
1083,
1894,
1172,
1410,
65,
1096,
65,
1043,
2537,
188,
187,
1156,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
1787,
535,
1083,
1894,
1172,
11417,
65,
1410,
65,
1149,
2537,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
263,
187,
4377,
2146,
1632,
776,
209,
1083,
1894,
1172,
8990,
65,
16147,
65,
2989,
65,
1043,
2537,
263,
187,
4382,
810,
209,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3915,
65,
311,
2537,
188,
187,
4382,
613,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
3915,
65,
579,
2537,
188,
187,
5173,
810,
209,
209,
776,
209,
1083,
1894,
1172,
5853,
65,
311,
2537,
188,
187,
5173,
613,
776,
209,
1083,
1894,
1172,
5853,
65,
579,
2537,
188,
95,
188,
188,
1857,
2149,
21135,
9845,
10609,
10,
22591,
9516,
388,
535,
14,
35844,
9516,
388,
535,
11,
1929,
61,
530,
22209,
530,
275,
188,
188,
187,
7603,
721,
2311,
10,
806,
61,
530,
22209,
530,
11,
188,
187,
285,
24271,
9516,
609,
35844,
9516,
275,
188,
187,
187,
7603,
61,
27124,
16,
3274,
1132,
63,
260,
1397,
530,
93,
27124,
16,
3274,
1132,
95,
188,
187,
95,
188,
188,
187,
529,
2426,
4732,
721,
2068,
4854,
4985,
275,
188,
187,
187,
1126,
721,
4732,
431,
2155,
79,
16,
23310,
19,
431,
2155,
79,
16,
23310,
20,
188,
187,
187,
285,
807,
4120,
10694,
16871,
16,
3292,
703,
10,
4348,
11,
275,
188,
350,
187,
4566,
296,
1132,
10,
7603,
14,
1536,
14,
6970,
6444,
44585,
346,
42747,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
807,
37415,
6406,
2874,
16,
3292,
703,
10,
4348,
11,
275,
188,
350,
187,
4566,
296,
1132,
10,
7603,
14,
1536,
14,
32434,
1414,
2874,
42747,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
807,
1700,
1175,
16,
3292,
703,
10,
4348,
11,
275,
188,
350,
187,
4566,
296,
1132,
10,
7603,
14,
1536,
14,
6569,
1175,
42747,
11,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
1005,
10,
7603,
11,
1928,
257,
275,
188,
187,
187,
7603,
61,
27124,
16,
3274,
1132,
63,
260,
1397,
530,
93,
27124,
16,
3274,
1132,
95,
188,
187,
95,
188,
187,
397,
9483,
188,
95,
188,
188,
1857,
39497,
1132,
10,
7603,
1929,
61,
530,
22209,
530,
14,
1536,
776,
14,
1536,
563,
776,
11,
275,
188,
187,
75,
721,
9483,
61,
1126,
563,
63,
188,
187,
285,
368,
489,
869,
275,
188,
187,
187,
7603,
61,
1126,
563,
63,
260,
1397,
530,
93,
1126,
95,
188,
187,
95,
730,
275,
188,
187,
187,
7603,
61,
1126,
563,
63,
260,
3343,
10,
75,
14,
1536,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1536,
10457,
10,
7603,
1397,
530,
11,
258,
13236,
16,
10609,
7670,
1700,
275,
188,
187,
6438,
721,
23133,
16,
304,
16,
1132,
7670,
10,
7603,
5013,
188,
187,
397,
6322,
188,
95,
188,
188,
828,
280,
188,
187,
410,
1700,
1175,
209,
260,
19963,
16,
33356,
20611,
4,
431,
6569,
48894,
431,
9876,
35900,
6,
866,
188,
187,
410,
4120,
10694,
16871,
260,
19963,
16,
33356,
20611,
435,
431,
6970,
1132,
431,
312,
23676,
431,
27064,
1132,
431,
312,
23676,
431,
13897,
1132,
431,
312,
1261,
35900,
6,
866,
188,
187,
410,
37415,
6406,
2874,
209,
209,
209,
260,
19963,
16,
33356,
20611,
435,
431,
437,
83,
1132,
431,
312,
23676,
431,
18854,
1132,
431,
312,
23676,
431,
10909,
1132,
431,
312,
1261,
35900,
6,
866,
188,
11,
188,
188,
558,
46122,
603,
275,
188,
187,
563,
209,
209,
209,
209,
209,
209,
209,
209,
776,
188,
187,
42351,
1221,
258,
42351,
1221,
188,
187,
2109,
3778,
1397,
530,
188,
187,
2454,
209,
209,
209,
209,
209,
209,
258,
13236,
16,
5311,
2066,
188,
187,
18576,
209,
1929,
61,
530,
5717,
13236,
16,
5463,
18576,
188,
95,
188,
188,
558,
7000,
1232,
1221,
603,
275,
188,
187,
613,
209,
209,
209,
209,
776,
188,
187,
2032,
1221,
258,
42351,
1221,
188,
95,
188,
188,
828,
280,
188,
187,
2785,
1700,
19042,
209,
209,
258,
19042,
188,
187,
2109,
1700,
19042,
209,
209,
258,
19042,
188,
187,
2785,
35810,
19042,
209,
209,
209,
209,
258,
19042,
188,
187,
2109,
35810,
19042,
209,
209,
209,
209,
258,
19042,
188,
187,
2785,
2660,
19042,
258,
19042,
188,
187,
2785,
9121,
19042,
209,
209,
209,
209,
258,
19042,
188,
187,
2109,
9785,
19042,
209,
209,
209,
209,
209,
209,
209,
258,
19042,
188,
187,
2785,
9785,
1700,
19042,
258,
19042,
188,
187,
9121,
19042,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
258,
19042,
188,
188,
187,
1700,
1175,
18576,
1929,
61,
530,
5717,
13236,
16,
5463,
18576,
188,
187,
1175,
18576,
209,
209,
209,
209,
209,
209,
209,
1929,
61,
530,
5717,
13236,
16,
5463,
18576,
188,
11,
188,
188,
558,
4400,
10621,
603,
275,
188,
187,
2109,
8112,
19042,
188,
187,
2785,
258,
19042,
188,
95,
188,
188,
819,
280,
188,
187,
2785,
1700,
1175,
209,
209,
260,
312,
2785,
1700,
1175,
4,
188,
187,
2109,
1700,
1175,
209,
209,
260,
312,
2109,
1700,
1175,
4,
188,
187,
2785,
35810,
1175,
209,
209,
209,
209,
260,
312,
2785,
35810,
1175,
4,
188,
187,
2109,
35810,
1175,
209,
209,
209,
209,
260,
312,
2109,
35810,
1175,
4,
188,
187,
2785,
2660,
1175,
260,
312,
2785,
2660,
1175,
4,
188,
187,
2785,
9121,
1175,
209,
209,
209,
209,
260,
312,
2785,
9121,
1175,
4,
188,
187,
2109,
9785,
1175,
209,
209,
209,
209,
209,
209,
209,
260,
312,
2109,
9785,
1175,
4,
188,
187,
2785,
9785,
1700,
1175,
260,
312,
2785,
9785,
1700,
1175,
4,
188,
187,
9121,
1175,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
260,
312,
9121,
1175,
4,
188,
11,
188,
188,
1857,
1777,
336,
275,
188,
187,
1700,
1175,
18576,
260,
1929,
61,
530,
5717,
13236,
16,
5463,
18576,
93,
188,
187,
187,
27124,
16,
3778,
1632,
5463,
28,
209,
39333,
16,
1888,
5463,
18576,
1033,
1221,
10,
27124,
16,
3778,
1632,
5463,
399,
188,
187,
187,
27124,
16,
1221,
25028,
5463,
28,
39333,
16,
1888,
5463,
18576,
1033,
1221,
10,
27124,
16,
1221,
25028,
5463,
399,
188,
187,
187,
27124,
16,
3778,
7633,
5463,
28,
39333,
16,
1888,
5463,
18576,
1033,
1221,
10,
27124,
16,
3778,
7633,
5463,
399,
188,
187,
95,
188,
187,
1175,
18576,
260,
1929,
61,
530,
5717,
13236,
16,
5463,
18576,
93,
188,
187,
187,
27124,
16,
3778,
1632,
5463,
28,
209,
39333,
16,
1888,
5463,
18576,
1033,
1221,
10,
27124,
16,
3778,
1632,
5463,
399,
188,
187,
187,
27124,
16,
1221,
25028,
5463,
28,
39333,
16,
1888,
5463,
18576,
1033,
1221,
10,
27124,
16,
1221,
25028,
5463,
399,
188,
187,
95,
188,
188,
187,
2785,
1700,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
8328,
1700,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
5173,
810,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
4382,
613,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
23796,
13349,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2785,
5173,
810,
14,
2155,
79,
16,
6295,
2785,
4382,
613,
14,
2155,
79,
16,
6295,
2785,
23796,
14,
2155,
79,
16,
6295,
2785,
1700,
810,
14,
2155,
79,
16,
6295,
2785,
5173,
613,
14,
2155,
79,
16,
6295,
2785,
4382,
810,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
2056,
188,
187,
187,
18576,
28,
209,
6569,
1175,
18576,
14,
188,
187,
95,
188,
187,
2109,
1700,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
4911,
1700,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2109,
5173,
810,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2109,
4382,
613,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2109,
23796,
13349,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2109,
5173,
810,
14,
2155,
79,
16,
6295,
2109,
4382,
613,
14,
2155,
79,
16,
6295,
2109,
23796,
14,
2155,
79,
16,
6295,
2109,
1700,
810,
14,
2155,
79,
16,
6295,
2109,
5173,
613,
14,
2155,
79,
16,
6295,
2109,
4382,
810,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2109,
35810,
563,
2056,
188,
187,
187,
18576,
28,
209,
6569,
1175,
18576,
14,
188,
187,
95,
188,
187,
2785,
35810,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
8328,
35810,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
35810,
563,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
35810,
810,
2598,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2785,
35810,
563,
14,
2155,
79,
16,
6295,
2785,
35810,
810,
14,
2155,
79,
16,
6295,
2785,
35810,
1665,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
2454,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
2056,
188,
187,
187,
18576,
28,
209,
4400,
18576,
14,
188,
187,
95,
188,
187,
2109,
35810,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
4911,
35810,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2109,
35810,
563,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2109,
35810,
810,
2598,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2109,
35810,
563,
14,
2155,
79,
16,
6295,
2109,
35810,
810,
14,
2155,
79,
16,
6295,
2109,
35810,
1665,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
2454,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2109,
35810,
563,
2056,
188,
187,
187,
18576,
28,
209,
4400,
18576,
14,
188,
187,
95,
188,
187,
2785,
2660,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
8328,
2660,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2660,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
3699,
2598,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2660,
14,
2155,
79,
16,
6295,
3699,
14,
2155,
79,
16,
6295,
2785,
35810,
1665,
519,
188,
187,
187,
2454,
28,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
399,
188,
350,
187,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
5173,
810,
2056,
188,
187,
187,
18576,
28,
4400,
18576,
14,
188,
187,
95,
188,
187,
2785,
9121,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
8328,
9121,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2660,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
3699,
2598,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2660,
14,
2155,
79,
16,
6295,
3699,
519,
188,
187,
187,
2454,
28,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
399,
188,
350,
187,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
5173,
810,
2056,
188,
187,
187,
18576,
28,
4400,
18576,
14,
188,
187,
95,
188,
187,
2109,
9785,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
4911,
9785,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2660,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
3699,
2598,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2660,
14,
2155,
79,
16,
6295,
3699,
519,
188,
187,
187,
2454,
28,
39333,
16,
1888,
5311,
2066,
1033,
2454,
10,
13236,
16,
1888,
7549,
2066,
435,
579,
347,
312,
5853,
65,
9274,
65,
3627,
15616,
188,
350,
187,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
2056,
188,
187,
187,
18576,
28,
4400,
18576,
14,
188,
187,
95,
188,
187,
2785,
9785,
1700,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
8328,
9785,
1700,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
5173,
810,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
4382,
613,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
2785,
23796,
13349,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
2785,
5173,
810,
14,
2155,
79,
16,
6295,
2785,
4382,
613,
14,
2155,
79,
16,
6295,
2785,
23796,
14,
2155,
79,
16,
6295,
2785,
1700,
810,
14,
2155,
79,
16,
6295,
2785,
5173,
613,
14,
2155,
79,
16,
6295,
2785,
4382,
810,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
2056,
188,
187,
95,
188,
187,
9121,
19042,
260,
396,
19042,
93,
188,
187,
187,
563,
28,
209,
209,
209,
209,
209,
209,
209,
209,
6367,
1175,
14,
188,
187,
187,
42351,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
5173,
810,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
4382,
613,
14,
5191,
1221,
28,
396,
42351,
1221,
93,
613,
28,
2155,
79,
16,
6295,
23796,
13349,
188,
187,
187,
2109,
3778,
28,
1397,
530,
93,
27124,
16,
6295,
5173,
810,
14,
2155,
79,
16,
6295,
4382,
613,
14,
2155,
79,
16,
6295,
23796,
14,
2155,
79,
16,
6295,
1700,
810,
14,
2155,
79,
16,
6295,
5173,
613,
14,
2155,
79,
16,
6295,
4382,
810,
519,
188,
187,
187,
2454,
28,
209,
209,
209,
209,
209,
209,
39333,
16,
1888,
5311,
2066,
1033,
11837,
10,
13236,
16,
1888,
7670,
2066,
10,
27124,
16,
6295,
5173,
810,
2056,
188,
187,
95,
188,
188,
187,
1175,
40659,
260,
1929,
61,
530,
22209,
12,
1175,
10621,
93,
188,
187,
187,
4120,
6444,
44585,
346,
42747,
28,
275,
188,
188,
350,
187,
93,
2109,
28,
8112,
19042,
93,
2109,
1700,
19042,
14,
4911,
35810,
19042,
519,
8328,
28,
8328,
1700,
19042,
519,
188,
350,
187,
93,
2109,
28,
8112,
19042,
93,
2109,
1700,
19042,
519,
8328,
28,
8328,
35810,
19042,
519,
188,
350,
187,
93,
2109,
28,
8112,
19042,
93,
2109,
1700,
19042,
519,
8328,
28,
8328,
9121,
19042,
519,
188,
187,
187,
519,
188,
187,
187,
9785,
1414,
2874,
42747,
28,
275,
188,
188,
350,
187,
93,
2109,
28,
8112,
19042,
93,
2109,
9785,
19042,
519,
8328,
28,
8328,
9785,
1700,
19042,
519,
188,
350,
187,
93,
2109,
28,
8112,
19042,
93,
2109,
1700,
19042,
519,
8328,
28,
8328,
2660,
19042,
519,
188,
187,
187,
519,
188,
187,
187,
1700,
1175,
42747,
28,
275,
188,
188,
350,
187,
93,
2785,
28,
6367,
19042,
519,
188,
187,
187,
519,
188,
187,
95,
188,
188,
187,
2666,
38886,
260,
1929,
61,
530,
5717,
18576,
5699,
93,
188,
187,
187,
4120,
6444,
44585,
346,
42747,
28,
275,
18576,
28,
384,
22972,
18576,
10,
1175,
40659,
61,
4120,
6444,
44585,
346,
42747,
45320,
188,
187,
187,
9785,
1414,
2874,
42747,
28,
209,
209,
209,
275,
18576,
28,
384,
22972,
18576,
10,
1175,
40659,
61,
9785,
1414,
2874,
42747,
45320,
188,
187,
187,
1700,
1175,
42747,
28,
209,
275,
18576,
28,
384,
22972,
18576,
10,
1175,
40659,
61,
1700,
1175,
42747,
45320,
188,
187,
95,
188,
95,
188,
188,
828,
4400,
40659,
1929,
61,
530,
22209,
12,
1175,
10621,
188,
828,
14485,
38886,
1929,
61,
530,
5717,
18576,
5699,
188,
188,
819,
280,
188,
187,
4120,
6444,
44585,
346,
42747,
260,
312,
1635,
15,
6370,
15,
30685,
346,
4,
188,
187,
9785,
1414,
2874,
42747,
209,
209,
209,
260,
312,
9274,
15,
1184,
15,
2091,
4,
188,
187,
1700,
1175,
42747,
209,
260,
312,
3627,
15,
1091,
4,
188,
11,
188,
188,
558,
5398,
5433,
603,
275,
188,
187,
32291,
209,
209,
209,
209,
209,
776,
209,
1083,
1894,
1172,
1703,
563,
2537,
188,
187,
1222,
1632,
209,
209,
209,
209,
1787,
535,
1083,
1894,
1172,
1703,
1632,
2537,
188,
187,
1222,
22191,
1136,
209,
209,
1787,
535,
1083,
1894,
1172,
1703,
22191,
1136,
2537,
188,
187,
28590,
5439,
1787,
535,
1083,
1894,
1172,
1703,
914,
5439,
2537,
188,
95,
188,
188,
558,
47518,
5699,
603,
275,
188,
187,
18576,
1929,
61,
530,
5717,
13236,
16,
2454,
18576,
188,
95,
188,
188,
1857,
384,
22972,
18576,
10,
1091,
40659,
8112,
1175,
10621,
11,
1929,
61,
530,
5717,
13236,
16,
2454,
18576,
275,
188,
187,
79,
721,
2311,
10,
806,
61,
530,
5717,
13236,
16,
2454,
18576,
11,
188,
187,
529,
2426,
12933,
721,
2068,
1575,
40659,
275,
188,
188,
187,
187,
10294,
721,
12933,
16,
2785,
188,
187,
187,
689,
721,
6245,
563,
805,
1031,
10,
10294,
16,
563,
11,
188,
187,
187,
285,
39405,
598,
869,
275,
188,
350,
187,
2373,
18576,
721,
39333,
16,
1888,
2454,
18576,
336,
188,
350,
187,
79,
61,
689,
63,
260,
3455,
18576,
188,
350,
187,
417,
721,
16342,
10,
10294,
14,
3455,
18576,
11,
188,
188,
350,
187,
15137,
721,
12933,
16,
2109,
188,
350,
187,
285,
13057,
598,
869,
275,
188,
2054,
187,
529,
2426,
1756,
721,
2068,
13057,
275,
188,
1263,
187,
2594,
1031,
721,
6245,
563,
805,
1031,
10,
2594,
16,
563,
11,
188,
1263,
187,
2373,
18576,
721,
39333,
16,
1888,
2454,
18576,
336,
188,
1263,
187,
12801,
10,
2594,
14,
3455,
18576,
11,
188,
1263,
187,
417,
16,
2032,
18576,
10,
2594,
1031,
14,
3455,
18576,
11,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
328,
188,
95,
188,
188,
1857,
6245,
563,
805,
1031,
10,
10294,
776,
11,
776,
275,
188,
187,
908,
721,
14073,
2337,
16,
1888,
336,
188,
187,
908,
16,
2016,
4661,
1212,
10,
10294,
452,
188,
187,
908,
5463,
721,
6779,
16,
5463,
10,
3974,
11,
188,
187,
689,
721,
11349,
16,
7379,
5502,
10,
908,
5463,
11,
188,
188,
187,
397,
1255,
188,
95,
188,
188,
1857,
16342,
10,
10294,
258,
19042,
14,
3455,
18576,
258,
13236,
16,
2454,
18576,
11,
258,
13236,
16,
24548,
18576,
275,
188,
188,
187,
2427,
721,
39405,
16,
2454,
188,
187,
285,
3020,
598,
869,
275,
188,
187,
187,
2373,
18576,
16,
2454,
10,
2427,
11,
188,
187,
95,
188,
188,
187,
1488,
721,
39405,
16,
42351,
1221,
188,
187,
1182,
14,
1116,
721,
384,
7740,
18576,
10,
10294,
16,
42351,
1221,
14,
869,
11,
188,
187,
2373,
18576,
16,
2032,
18576,
10,
1488,
16,
613,
14,
1589,
11,
188,
188,
187,
2594,
3778,
721,
39405,
16,
2109,
3778,
188,
187,
285,
1756,
3778,
598,
869,
275,
188,
187,
187,
417,
16,
2032,
18576,
10,
27124,
16,
8578,
14,
188,
350,
187,
13236,
16,
1888,
4033,
27084,
18576,
1033,
1699,
10,
18,
717,
1079,
10,
19,
717,
6032,
10,
27124,
16,
6946,
14,
893,
717,
36098,
10,
2543,
717,
188,
2054,
187,
11492,
47839,
10,
13236,
16,
1888,
11492,
47839,
10,
2239,
717,
9973,
10,
2594,
3778,
1510,
2135,
188,
187,
95,
188,
188,
187,
341,
4515,
721,
39405,
16,
18576,
188,
187,
285,
2174,
4515,
598,
869,
275,
188,
187,
187,
529,
1255,
14,
4962,
18576,
721,
2068,
2174,
4515,
275,
188,
350,
187,
417,
16,
2032,
18576,
10,
689,
14,
4962,
18576,
11,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
1116,
188,
95,
188,
188,
1857,
384,
7740,
18576,
10,
1488,
258,
42351,
1221,
14,
7693,
2097,
258,
13236,
16,
24548,
18576,
11,
1714,
13236,
16,
24548,
18576,
14,
258,
13236,
16,
24548,
18576,
11,
275,
188,
187,
285,
1334,
489,
869,
275,
188,
187,
187,
1151,
16,
5944,
435,
1488,
1047,
1596,
869,
866,
188,
187,
95,
188,
187,
4167,
2163,
721,
39333,
16,
1888,
24548,
18576,
1033,
1221,
10,
1488,
16,
613,
717,
1079,
10,
1801,
11,
188,
187,
285,
1334,
16,
2032,
1221,
598,
869,
275,
188,
187,
187,
1182,
14,
1116,
721,
384,
7740,
18576,
10,
1488,
16,
2032,
1221,
14,
7693,
2097,
11,
188,
187,
187,
4167,
2163,
16,
2032,
18576,
10,
1488,
16,
2032,
1221,
16,
613,
14,
1589,
717,
1079,
10,
1801,
11,
188,
187,
187,
4167,
2097,
260,
1116,
188,
187,
95,
730,
275,
188,
187,
187,
4167,
2097,
260,
7693,
2163,
188,
187,
95,
188,
188,
187,
397,
7693,
2163,
14,
7693,
2097,
188,
95,
188,
188,
1857,
3599,
14766,
10,
1126,
563,
776,
14,
3654,
40527,
11,
258,
13236,
16,
5311,
2066,
275,
188,
187,
2178,
2066,
721,
39333,
16,
1888,
5311,
2066,
336,
188,
187,
2178,
2066,
16,
2454,
10,
13236,
16,
1888,
2394,
2066,
10,
27124,
16,
6946,
717,
41,
421,
10,
1989,
16,
17118,
258,
352,
71,
24,
717,
46,
421,
10,
1989,
16,
24249,
258,
352,
71,
24,
452,
188,
187,
285,
6569,
1175,
42747,
489,
1536,
563,
275,
188,
187,
187,
2178,
2066,
16,
2454,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
12812,
423,
1031,
14,
3654,
16,
12812,
423,
1031,
452,
188,
187,
95,
730,
275,
188,
187,
187,
2178,
2066,
16,
2454,
10,
13236,
16,
1888,
5311,
2066,
1033,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
12812,
423,
1031,
14,
3654,
16,
12812,
423,
1031,
4518,
188,
350,
187,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2109,
12812,
423,
1031,
14,
3654,
16,
12812,
423,
1031,
2135,
188,
187,
95,
188,
188,
187,
1718,
721,
39333,
16,
1888,
5311,
2066,
1033,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2660,
14,
312,
2205,
9358,
15616,
188,
187,
187,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2660,
14,
312,
1231,
9358,
15616,
188,
187,
187,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2660,
14,
312,
20429,
9358,
15616,
188,
187,
187,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
14,
312,
2205,
9358,
15616,
188,
187,
187,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
14,
312,
1231,
9358,
15616,
188,
187,
187,
11837,
1875,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
35810,
563,
14,
312,
20429,
9358,
2646,
188,
188,
187,
285,
3654,
16,
6295,
598,
869,
692,
1005,
10,
1989,
16,
6295,
11,
609,
257,
275,
188,
187,
187,
2286,
83,
721,
39333,
16,
1888,
5311,
2066,
336,
188,
187,
187,
529,
2426,
325,
721,
2068,
3654,
16,
6295,
275,
188,
350,
187,
2060,
1034,
721,
4440,
16,
7546,
10,
88,
14,
9333,
866,
188,
350,
187,
2060,
721,
2730,
1034,
61,
18,
63,
188,
350,
187,
731,
721,
2730,
1034,
61,
19,
63,
188,
350,
187,
2349,
2730,
275,
188,
350,
187,
888,
9714,
4648,
2343,
16,
2343,
28,
188,
2054,
187,
2286,
83,
16,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
5173,
613,
14,
734,
4518,
188,
1263,
187,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
5173,
613,
14,
734,
4518,
188,
1263,
187,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2109,
5173,
613,
14,
734,
452,
188,
350,
187,
888,
6569,
4648,
2343,
16,
2343,
28,
188,
2054,
187,
2286,
83,
16,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
1700,
810,
14,
734,
4518,
188,
1263,
187,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2785,
1700,
810,
14,
734,
4518,
188,
1263,
187,
8364,
10,
13236,
16,
1888,
7549,
2066,
10,
27124,
16,
6295,
2109,
1700,
810,
14,
734,
452,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
187,
2178,
2066,
16,
2454,
10,
2286,
83,
11,
188,
187,
95,
188,
188,
187,
2178,
2066,
16,
2454,
10,
1718,
11,
188,
187,
397,
1019,
2066,
188,
95,
188,
188,
558,
3746,
3906,
603,
275,
188,
187,
20180,
209,
209,
209,
776,
1083,
1894,
1172,
2989,
65,
311,
2537,
188,
187,
1066,
563,
776,
1083,
1894,
1172,
3417,
65,
558,
2537,
188,
187,
1470,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
1213,
2537,
188,
187,
2152,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2627,
2537,
188,
187,
1564,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2182,
2537,
188,
187,
1136,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
1149,
2537,
188,
187,
1632,
209,
209,
209,
209,
209,
209,
209,
209,
388,
535,
209,
1083,
1894,
1172,
1043,
2537,
188,
95,
188,
188,
558,
3746,
31864,
1632,
6032,
1397,
1066,
3906,
188,
188,
1857,
280,
71,
3746,
31864,
1632,
6032,
11,
8225,
336,
388,
275,
188,
187,
397,
1005,
10,
71,
11,
188,
95,
188,
188,
1857,
280,
71,
3746,
31864,
1632,
6032,
11,
6089,
10,
75,
14,
727,
388,
11,
1019,
275,
188,
187,
397,
461,
61,
75,
913,
1632,
609,
461,
61,
76,
913,
1632,
188,
95,
188,
188,
1857,
280,
71,
3746,
31864,
1632,
6032,
11,
19185,
10,
75,
14,
727,
388,
11,
275,
188,
187,
71,
61,
75,
630,
461,
61,
76,
63,
260,
461,
61,
76,
630,
461,
61,
75,
63,
188,
95,
188,
188,
558,
3746,
31864,
1136,
6032,
1397,
1066,
3906,
188,
188,
1857,
280,
71,
3746,
31864,
1136,
6032,
11,
8225,
336,
388,
275,
188,
187,
397,
1005,
10,
71,
11,
188,
95,
188,
188,
1857,
280,
71,
3746,
31864,
1136,
6032,
11,
6089,
10,
75,
14,
727,
388,
11,
1019,
275,
188,
187,
75,
1136,
14,
497,
721,
1247,
16,
4227,
10,
1136,
3629,
14,
461,
61,
75,
913,
1136,
11,
188,
187,
76,
1136,
14,
497,
721,
1247,
16,
4227,
10,
1136,
3629,
14,
461,
61,
76,
913,
1136,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
893,
188,
187,
95,
188,
187,
397,
368,
1136,
16,
23642,
336,
609,
727,
1136,
16,
23642,
336,
188,
95,
188,
188,
1857,
280,
71,
3746,
31864,
1136,
6032,
11,
19185,
10,
75,
14,
727,
388,
11,
275,
188,
187,
71,
61,
75,
630,
461,
61,
76,
63,
260,
461,
61,
76,
630,
461,
61,
75,
63,
188,
95,
188,
188,
819,
280,
188,
187,
1066,
1136,
6032,
7042,
209,
260,
312,
1149,
4,
188,
187,
1066,
1632,
6032,
7042,
260,
312,
1043,
4,
188,
11,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1066,
2963,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
6784,
530,
14,
2251,
5494,
275,
188,
187,
1418,
9283,
14,
497,
721,
23133,
16,
901,
1066,
3906,
10,
7547,
14,
3654,
14,
5619,
14,
4114,
9661,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
558,
1324,
721,
2311,
10,
806,
61,
530,
63,
530,
11,
188,
188,
187,
529,
2426,
4834,
721,
2068,
34688,
275,
188,
187,
187,
285,
640,
1324,
61,
4425,
16,
1066,
563,
63,
489,
3985,
275,
188,
350,
187,
558,
1324,
61,
4425,
16,
1066,
563,
63,
260,
4834,
16,
1066,
563,
188,
187,
187,
95,
188,
187,
95,
188,
187,
2820,
721,
2311,
4661,
530,
14,
257,
11,
188,
187,
529,
2426,
547,
558,
721,
2068,
640,
1324,
275,
188,
187,
187,
2820,
260,
3343,
10,
2820,
14,
547,
558,
11,
188,
187,
95,
188,
188,
187,
397,
3427,
14,
869,
188,
95,
188,
188,
1857,
3746,
26963,
1136,
7042,
10,
11933,
3746,
31864,
1136,
6032,
11,
1397,
1066,
3906,
275,
188,
187,
4223,
16,
6032,
10,
11933,
11,
188,
187,
397,
13256,
188,
95,
188,
188,
1857,
3746,
26963,
1632,
7042,
10,
11933,
3746,
31864,
1632,
6032,
11,
1397,
1066,
3906,
275,
188,
187,
4223,
16,
6032,
10,
11933,
11,
188,
187,
397,
13256,
188,
95,
188,
188,
1857,
3746,
26963,
7042,
8638,
10,
3417,
563,
776,
14,
13256,
1397,
1066,
3906,
11,
1397,
1066,
3906,
275,
188,
187,
2349,
3734,
563,
275,
188,
187,
888,
3746,
1632,
6032,
7042,
28,
188,
187,
187,
397,
3746,
26963,
1632,
7042,
10,
11933,
11,
188,
187,
888,
3746,
1136,
6032,
7042,
28,
188,
187,
187,
397,
3746,
26963,
1136,
7042,
10,
11933,
11,
188,
187,
1509,
28,
188,
187,
187,
397,
3746,
26963,
1136,
7042,
10,
11933,
11,
188,
187,
95,
188,
95,
188,
188,
558,
3638,
2016,
3040,
603,
275,
188,
187,
6946,
209,
388,
535,
209,
209,
1083,
1894,
1172,
7031,
2537,
209,
263,
187,
1933,
3040,
209,
1787,
535,
1083,
1894,
1172,
695,
3040,
2537,
209,
263,
187,
2016,
3040,
1787,
535,
1083,
1894,
1172,
1114,
3040,
2537,
209,
188,
95,
188,
558,
3638,
2016,
3040,
9794,
603,
275,
188,
187,
6946,
209,
209,
209,
209,
209,
209,
388,
535,
209,
209,
1083,
1894,
1172,
7031,
2537,
209,
209,
209,
209,
209,
209,
263,
187,
1933,
3040,
9794,
209,
1787,
535,
1083,
1894,
1172,
695,
3040,
9794,
2537,
209,
263,
187,
2016,
3040,
9794,
1787,
535,
1083,
1894,
1172,
1114,
3040,
9794,
2537,
209,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
3167,
9178,
7833,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
3518,
65,
1149,
10,
1149,
833,
9,
15794,
15,
493,
15,
1052,
54,
791,
28,
1025,
28,
1465,
60,
3033,
2653,
65,
1879,
10,
11417,
10,
4358,
65,
695,
65,
2186,
358,
1488,
399,
444,
399,
2653,
65,
1879,
10,
11417,
10,
4358,
65,
1114,
65,
2186,
358,
1488,
399,
444,
11,
6414,
28024,
65,
4222,
65,
1525,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
690,
85,
21186,
2765,
1247,
32059,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
285,
3654,
16,
20180,
598,
3985,
275,
188,
187,
187,
13020,
260,
2764,
16,
5696,
10,
13020,
14,
312,
2159,
2136,
65,
311,
13470,
2989,
65,
311,
866,
188,
187,
187,
1830,
2911,
2107,
2989,
65,
311,
2678,
260,
3654,
16,
20180,
188,
187,
95,
730,
275,
188,
187,
187,
13020,
260,
2764,
16,
5696,
10,
13020,
14,
9661,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
1386,
1658,
9794,
721,
2340,
9794,
10,
2518,
11,
188,
187,
397,
2513,
1658,
9794,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
3167,
3059,
7833,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
3518,
65,
1149,
10,
1149,
833,
9,
15794,
15,
493,
15,
1052,
54,
791,
28,
1025,
28,
1465,
60,
3033,
2653,
65,
1879,
10,
11417,
10,
1907,
65,
2186,
358,
1488,
399,
444,
399,
2653,
65,
1879,
10,
11417,
10,
1022,
65,
2186,
358,
1488,
399,
444,
11,
6414,
28024,
65,
4222,
65,
1525,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
690,
85,
21186,
2765,
1247,
32059,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
285,
3654,
16,
20180,
598,
3985,
275,
188,
187,
187,
13020,
260,
2764,
16,
5696,
10,
13020,
14,
312,
2159,
2136,
65,
311,
13470,
2989,
65,
311,
866,
188,
187,
187,
1830,
2911,
2107,
2989,
65,
311,
2678,
260,
3654,
16,
20180,
188,
187,
95,
730,
275,
188,
187,
187,
13020,
260,
2764,
16,
5696,
10,
13020,
14,
9661,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
1386,
1658,
9794,
721,
2340,
9794,
10,
2518,
11,
188,
188,
187,
397,
2513,
1658,
9794,
14,
869,
188,
95,
188,
188,
1857,
2340,
9794,
10,
2518,
30413,
3314,
5494,
1397,
7244,
3040,
9794,
275,
188,
187,
828,
2513,
1658,
1397,
7244,
3040,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
1149,
9516,
721,
3413,
61,
19,
42227,
1149,
16,
1136,
717,
23642,
336,
348,
352,
71,
24,
188,
187,
187,
1907,
3040,
721,
12987,
16,
38362,
535,
10,
771,
61,
20,
630,
257,
11,
188,
187,
187,
1022,
3040,
721,
12987,
16,
38362,
535,
10,
771,
61,
21,
630,
257,
11,
188,
187,
187,
1114,
3040,
721,
3638,
2016,
3040,
93,
188,
350,
187,
6946,
28,
209,
1247,
9516,
14,
188,
350,
187,
1933,
3040,
28,
209,
4891,
3040,
14,
188,
350,
187,
2016,
3040,
28,
3726,
3040,
14,
188,
187,
187,
95,
188,
187,
187,
1386,
1658,
260,
3343,
10,
1386,
1658,
14,
2089,
3040,
11,
188,
187,
95,
188,
187,
828,
2513,
1658,
9794,
1397,
7244,
3040,
9794,
188,
187,
529,
368,
14,
9297,
721,
2068,
2513,
1658,
275,
188,
187,
187,
285,
368,
13,
19,
1474,
1005,
10,
1386,
1658,
11,
275,
188,
350,
187,
1176,
188,
187,
187,
95,
188,
187,
187,
1537,
721,
2513,
1658,
61,
75,
13,
19,
63,
188,
187,
187,
5275,
721,
3638,
2016,
3040,
9794,
2475,
188,
187,
187,
5275,
16,
6946,
260,
280,
6424,
16,
6946,
431,
2198,
16,
6946,
11,
348,
444,
188,
188,
187,
187,
5275,
16,
1933,
3040,
9794,
260,
10353,
9794,
10,
6424,
16,
1933,
3040,
14,
2198,
16,
1933,
3040,
14,
9297,
16,
6946,
14,
2198,
16,
6946,
11,
188,
187,
187,
5275,
16,
2016,
3040,
9794,
260,
10353,
9794,
10,
6424,
16,
2016,
3040,
14,
2198,
16,
2016,
3040,
14,
9297,
16,
6946,
14,
2198,
16,
6946,
11,
188,
188,
187,
187,
1386,
1658,
9794,
260,
3343,
10,
1386,
1658,
9794,
14,
6923,
11,
188,
187,
95,
188,
187,
397,
2513,
1658,
9794,
188,
95,
188,
188,
1857,
10353,
9794,
10,
6424,
14,
2198,
1787,
535,
14,
9297,
1136,
14,
2198,
1136,
388,
535,
11,
1787,
535,
275,
188,
187,
285,
9297,
598,
2198,
275,
188,
187,
187,
285,
2198,
489,
257,
875,
2198,
360,
9297,
275,
188,
350,
187,
397,
257,
188,
187,
187,
95,
188,
187,
187,
285,
2198,
1136,
15,
6424,
1136,
1928,
257,
275,
263,
350,
187,
397,
257,
188,
187,
187,
95,
188,
187,
187,
397,
384,
10755,
8833,
4442,
3071,
931,
1537,
418,
9297,
11,
348,
280,
1879,
535,
10,
1537,
1136,
11,
418,
1787,
535,
10,
6424,
1136,
2135,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1066,
1564,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
14,
2557,
388,
535,
14,
5029,
14,
3734,
563,
776,
11,
6784,
1066,
3906,
14,
790,
11,
275,
188,
187,
1275,
721,
1397,
1066,
3906,
2475,
188,
187,
1418,
9283,
14,
497,
721,
23133,
16,
901,
1066,
3906,
10,
7547,
14,
3654,
14,
2557,
14,
5029,
14,
3734,
563,
11,
188,
187,
285,
3734,
563,
598,
3985,
275,
188,
187,
187,
529,
2426,
4834,
721,
2068,
34688,
275,
188,
350,
187,
285,
4834,
16,
1066,
563,
489,
3734,
563,
275,
188,
2054,
187,
1275,
260,
3343,
10,
1275,
14,
4834,
11,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
730,
275,
188,
187,
187,
1275,
260,
34688,
188,
187,
95,
188,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
1146,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1066,
3906,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
14,
2557,
388,
535,
14,
5029,
14,
3734,
563,
776,
11,
6784,
1066,
3906,
14,
790,
11,
275,
188,
187,
285,
2557,
1928,
257,
875,
2557,
609,
5619,
275,
188,
187,
187,
3583,
260,
1639,
188,
187,
95,
188,
188,
187,
285,
5029,
598,
3746,
1136,
6032,
7042,
692,
5029,
598,
3746,
1632,
6032,
7042,
275,
188,
187,
187,
4223,
260,
3746,
1136,
6032,
7042,
188,
187,
95,
188,
188,
187,
285,
5029,
489,
3746,
1136,
6032,
7042,
275,
188,
187,
187,
4223,
260,
312,
1264,
10,
7031,
11,
18881,
4,
188,
187,
95,
188,
188,
187,
285,
5029,
489,
3746,
1632,
6032,
7042,
275,
188,
187,
187,
4223,
260,
312,
1157,
10,
1043,
358,
1488,
11,
18881,
4,
188,
187,
95,
188,
188,
187,
828,
3020,
2298,
16,
1698,
188,
187,
285,
3734,
563,
598,
3985,
275,
188,
187,
187,
2427,
16,
14664,
435,
2824,
640,
358,
2060,
13470,
558,
866,
188,
187,
95,
188,
187,
4220,
721,
2764,
16,
5696,
435,
5371,
2136,
65,
311,
358,
2060,
14,
2627,
358,
2060,
14,
1213,
358,
2060,
14,
3417,
65,
2182,
358,
2060,
14,
558,
358,
2060,
14,
1264,
10,
7031,
399,
1157,
10,
1043,
358,
1488,
11,
6414,
790,
65,
11768,
12932,
3491,
65,
311,
358,
2060,
13470,
3627,
65,
311,
2824,
7918,
423,
65,
689,
358,
2060,
13470,
5700,
423,
65,
689,
690,
85,
21186,
2765,
790,
65,
311,
358,
2060,
21863,
2765,
690,
85,
4473,
690,
88,
347,
3020,
16,
703,
833,
5029,
14,
2557,
11,
188,
188,
187,
628,
1324,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
187,
4,
558,
788,
209,
209,
209,
209,
209,
209,
209,
209,
3734,
563,
14,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
188,
187,
2086,
721,
4231,
16,
3589,
2475,
188,
187,
2086,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
2086,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
2594,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
188,
187,
187,
8041,
83,
16,
364,
24003,
3387,
14,
188,
187,
187,
4220,
14,
188,
187,
187,
628,
1324,
14,
188,
187,
187,
2086,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
828,
3734,
31864,
1397,
1066,
3906,
188,
188,
187,
529,
2426,
2167,
721,
2068,
1756,
16,
21560,
16,
7011,
275,
188,
187,
187,
828,
3734,
3906,
3746,
3906,
188,
187,
187,
3417,
3906,
16,
20180,
260,
12987,
16,
5502,
10,
3696,
61,
18,
1278,
188,
187,
187,
3417,
3906,
16,
2152,
260,
12987,
16,
5502,
10,
3696,
61,
19,
1278,
188,
187,
187,
3417,
3906,
16,
1470,
260,
12987,
16,
5502,
10,
3696,
61,
20,
1278,
188,
187,
187,
3417,
3906,
16,
1564,
260,
12987,
16,
5502,
10,
3696,
61,
21,
1278,
188,
187,
187,
3417,
3906,
16,
1066,
563,
260,
12987,
16,
5502,
10,
3696,
61,
22,
1278,
188,
187,
187,
3417,
3906,
16,
1136,
260,
1247,
16,
12471,
10,
18,
14,
388,
535,
10,
5543,
16,
38362,
535,
10,
3696,
61,
23,
630,
257,
31091,
2051,
10,
1136,
3629,
11,
188,
187,
187,
3417,
3906,
16,
1632,
260,
388,
535,
10,
5543,
16,
38362,
535,
10,
3696,
61,
24,
630,
257,
452,
188,
187,
187,
3417,
31864,
260,
3343,
10,
3417,
31864,
14,
3734,
3906,
11,
188,
187,
95,
188,
188,
187,
397,
3734,
31864,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
15427,
18197,
1232,
1700,
563,
10,
1989,
6059,
2911,
11,
280,
530,
14,
790,
11,
275,
188,
188,
187,
529,
2426,
2657,
563,
721,
2068,
6059,
2963,
275,
188,
187,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
7918,
423,
65,
689,
358,
2060,
6414,
690,
85,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
6454,
188,
350,
187,
4,
2159,
3491,
65,
579,
13470,
3627,
65,
579,
4473,
352,
347,
2657,
563,
11,
188,
187,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
350,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
12812,
423,
1031,
14,
188,
350,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
95,
188,
187,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
4114,
497,
188,
187,
187,
95,
188,
187,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
187,
285,
1005,
10,
2518,
11,
489,
352,
275,
188,
350,
187,
397,
740,
24754,
810,
10,
2919,
563,
399,
869,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
4114,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
3167,
563,
10,
7547,
776,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
397,
869,
14,
869,
188,
95,
188,
188,
558,
9428,
1034,
603,
275,
188,
187,
810,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2989,
810,
2537,
188,
187,
8365,
209,
209,
209,
209,
776,
1083,
1894,
1172,
555,
2537,
188,
187,
1574,
1019,
209,
209,
1083,
1894,
1172,
1341,
2537,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1700,
2146,
6244,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
2251,
5494,
275,
188,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
188,
187,
13020,
721,
312,
5371,
3491,
65,
2989,
65,
311,
358,
2060,
14,
3627,
65,
555,
358,
2060,
14,
285,
10,
3048,
10,
3594,
16463,
7031,
14,
21,
14870,
399,
9,
2543,
1242,
2239,
1359,
6414,
5390,
65,
3627,
65,
1091,
312,
431,
188,
187,
187,
4,
28384,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
21186,
2765,
3491,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2989,
862,
721,
23133,
16,
2069,
2146,
1034,
10,
2828,
11,
188,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71,
24,
14,
1639,
452,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
2989,
862,
1642,
1574,
721,
23133,
16,
2069,
2146,
1034,
10,
2828,
11,
188,
188,
187,
2427,
2146,
10,
2989,
862,
14,
2136,
862,
1642,
1574,
11,
188,
188,
187,
397,
2136,
862,
14,
869,
188,
95,
188,
188,
1857,
3020,
2146,
10,
2989,
862,
8112,
2146,
1034,
14,
2136,
862,
1642,
1574,
8112,
2146,
1034,
11,
275,
188,
187,
529,
2426,
2136,
721,
2068,
2136,
862,
275,
188,
187,
187,
529,
368,
14,
1941,
2146,
721,
2068,
2136,
862,
1642,
1574,
275,
188,
350,
187,
285,
2136,
16,
810,
489,
1941,
2146,
16,
810,
275,
188,
2054,
187,
2989,
16,
1574,
260,
1941,
2146,
16,
1574,
188,
2054,
187,
2989,
862,
1642,
1574,
260,
3343,
10,
2989,
862,
1642,
1574,
3872,
75,
630,
2136,
862,
1642,
1574,
61,
75,
13,
19,
10550,
5013,
188,
2054,
187,
75,
270,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
2340,
2146,
1034,
10,
2828,
258,
1830,
16,
21560,
11,
8112,
2146,
1034,
275,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
2989,
6244,
721,
8112,
2146,
1034,
2475,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
188,
187,
187,
1341,
14,
497,
721,
12601,
16,
4227,
5311,
10,
5543,
16,
5502,
10,
771,
61,
20,
5293,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1341,
260,
893,
188,
187,
187,
95,
188,
187,
187,
2989,
721,
9428,
1034,
93,
188,
350,
187,
810,
28,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
18,
5053,
188,
350,
187,
8365,
28,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
19,
5053,
188,
350,
187,
1574,
28,
1941,
14,
188,
187,
187,
95,
188,
187,
187,
2989,
6244,
260,
3343,
10,
2989,
6244,
14,
396,
2989,
11,
188,
187,
95,
188,
187,
397,
2136,
6244,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1700,
11664,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
2251,
5494,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
3491,
65,
2989,
65,
311,
358,
2060,
14,
3627,
65,
6497,
65,
4050,
358,
2060,
14,
1864,
65,
1149,
10,
1182,
65,
1149,
65,
11857,
358,
1488,
12,
14818,
10737,
15794,
15,
493,
15,
1052,
2818,
28,
1025,
28,
1465,
1359,
312,
431,
188,
187,
187,
4,
1155,
1589,
65,
1149,
14,
1864,
65,
1149,
10,
7031,
10737,
15794,
15,
493,
15,
1052,
2818,
28,
1025,
28,
1465,
1359,
7788,
2238,
65,
25152,
65,
1149,
6414,
5390,
65,
3627,
65,
1091,
312,
431,
188,
187,
187,
4,
28384,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
21186,
2765,
3491,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
828,
1146,
8112,
1700,
2146,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
2989,
721,
6569,
2146,
93,
188,
350,
187,
1700,
20180,
28,
12987,
16,
5502,
10,
771,
61,
18,
5053,
188,
350,
187,
6821,
2013,
28,
209,
209,
12987,
16,
5502,
10,
771,
61,
19,
5053,
188,
350,
187,
17118,
28,
209,
209,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
20,
5053,
188,
350,
187,
3911,
34779,
1136,
28,
12987,
16,
5502,
10,
771,
61,
21,
5053,
188,
187,
187,
95,
188,
187,
187,
1275,
260,
3343,
10,
1275,
14,
396,
2989,
11,
188,
187,
95,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71,
24,
14,
1639,
452,
188,
187,
13020,
260,
312,
5371,
3491,
65,
2989,
65,
311,
358,
2060,
14,
285,
10,
3048,
10,
3594,
16463,
7031,
14,
21,
14870,
399,
9,
2543,
1242,
2239,
1359,
7788,
1460,
6414,
5390,
65,
3627,
65,
1091,
312,
431,
188,
187,
187,
4,
28384,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
21186,
2765,
3491,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
529,
2426,
2136,
721,
2068,
1146,
275,
188,
187,
187,
529,
368,
14,
3413,
721,
2068,
7176,
275,
188,
350,
187,
285,
12987,
16,
5502,
10,
771,
61,
18,
1278,
489,
2136,
16,
1700,
20180,
275,
188,
2054,
187,
956,
14,
497,
721,
12601,
16,
4227,
5311,
10,
5543,
16,
5502,
10,
771,
61,
19,
5293,
188,
2054,
187,
285,
497,
598,
869,
275,
188,
1263,
187,
397,
869,
14,
497,
188,
2054,
187,
95,
188,
2054,
187,
285,
1460,
275,
188,
1263,
187,
2989,
16,
28642,
260,
23133,
16,
86,
16,
1388,
10,
7547,
14,
312,
3627,
28642,
12247,
866,
188,
2054,
187,
95,
730,
275,
188,
1263,
187,
2989,
16,
28642,
260,
23133,
16,
86,
16,
1388,
10,
7547,
14,
312,
3627,
28642,
19226,
866,
188,
2054,
187,
95,
188,
2054,
187,
2518,
260,
3343,
10,
2518,
3872,
75,
630,
7176,
61,
75,
13,
19,
10550,
5013,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
1146,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
36786,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
828,
40607,
1397,
1222,
5433,
188,
187,
529,
2426,
10697,
613,
721,
2068,
43812,
6484,
3959,
275,
188,
188,
187,
187,
17384,
14,
497,
721,
23133,
16,
3627,
7351,
1034,
10,
8041,
613,
14,
23133,
16,
86,
16,
1388,
10,
7547,
14,
10697,
613,
31262,
1703,
1557,
3654,
14,
10810,
2911,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
39822,
260,
3343,
10,
39822,
14,
258,
17384,
11,
188,
187,
95,
188,
187,
397,
40607,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
1700,
33191,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
6569,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
26120,
883,
721,
2311,
4661,
806,
61,
530,
63,
3314,
4364,
257,
14,
1639,
11,
188,
187,
3627,
33191,
1324,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
188,
187,
2989,
7528,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
2989,
7528,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
2989,
7528,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71,
24,
14,
1639,
452,
188,
188,
187,
13020,
721,
312,
5371,
3491,
65,
579,
358,
2060,
14,
3627,
65,
2989,
65,
311,
358,
2060,
14,
285,
10,
3048,
10,
3594,
16463,
7031,
14,
21,
14870,
399,
9,
3406,
3334,
1242,
8990,
1359,
6414,
5390,
65,
3627,
65,
1091,
312,
431,
188,
187,
187,
4,
28384,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
579,
13470,
3627,
65,
579,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
21186,
2765,
3491,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
2136,
7528,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
828,
1146,
1397,
1700,
2146,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
2989,
721,
6569,
2146,
93,
188,
350,
187,
23796,
28,
209,
209,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
18,
5053,
188,
350,
187,
1700,
43123,
28,
12987,
16,
5502,
10,
771,
61,
19,
5053,
188,
350,
187,
28642,
28,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
20,
5053,
188,
187,
187,
95,
188,
187,
187,
1275,
260,
3343,
10,
1275,
14,
2136,
11,
188,
187,
95,
188,
187,
8990,
1632,
721,
257,
188,
187,
16147,
1632,
721,
257,
188,
187,
529,
2426,
2136,
721,
2068,
1146,
275,
188,
187,
187,
285,
2136,
16,
28642,
489,
312,
8990,
4,
275,
188,
350,
187,
8990,
1632,
1159,
352,
188,
187,
187,
95,
730,
392,
2136,
16,
28642,
489,
312,
3406,
3334,
4,
275,
188,
350,
187,
16147,
1632,
1159,
352,
188,
187,
187,
95,
188,
187,
95,
188,
187,
3627,
33191,
1324,
2107,
8990,
65,
16085,
2678,
260,
6443,
1632,
188,
187,
3627,
33191,
1324,
2107,
16147,
65,
16085,
2678,
260,
15243,
1632,
188,
188,
187,
1096,
1632,
721,
257,
16,
18,
188,
187,
529,
2426,
10697,
613,
721,
2068,
43812,
6484,
3959,
275,
188,
187,
187,
1043,
14,
497,
721,
23133,
16,
3627,
7351,
914,
1632,
10,
8041,
613,
14,
3654,
14,
10810,
2911,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
1096,
1632,
1159,
1975,
188,
187,
95,
188,
188,
187,
3627,
33191,
1324,
2107,
3627,
65,
1096,
65,
1410,
65,
1043,
2678,
260,
790,
1632,
188,
188,
187,
13020,
260,
312,
5371,
4962,
10,
1043,
11,
6414,
790,
65,
1043,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
579,
13470,
3627,
65,
579,
2824,
3491,
65,
311,
13470,
3627,
65,
311,
4,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
2762,
1632,
721,
7176,
61,
18,
1811,
18,
63,
188,
188,
187,
3627,
33191,
1324,
2107,
3627,
65,
3417,
65,
1043,
2678,
260,
2698,
1632,
188,
188,
187,
13020,
260,
312,
5371,
1975,
10,
11768,
65,
311,
358,
2060,
11,
6414,
36920,
65,
11768,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
2824,
3491,
65,
579,
13470,
3627,
65,
579,
4,
188,
187,
1830,
2911,
260,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
11768,
1632,
721,
7176,
61,
18,
1811,
18,
63,
188,
188,
187,
3627,
33191,
1324,
2107,
11768,
65,
1043,
2678,
260,
15774,
1632,
188,
187,
26120,
883,
260,
3343,
10,
26120,
883,
14,
3491,
33191,
1324,
11,
188,
188,
187,
397,
40895,
883,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
33191,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
9199,
2911,
11,
280,
3314,
4364,
790,
11,
275,
188,
187,
1275,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
26120,
883,
721,
2311,
4661,
806,
61,
530,
63,
3314,
4364,
257,
14,
1639,
11,
188,
187,
32537,
1324,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
24249,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
25306,
10,
3627,
65,
579,
358,
2060,
11,
6414,
5390,
65,
3627,
65,
1091,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
21186,
2765,
3491,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
3627,
1632,
721,
1787,
535,
10,
18,
11,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
1043,
721,
12987,
16,
38362,
535,
10,
771,
61,
18,
630,
257,
11,
188,
187,
187,
3627,
1632,
1159,
1975,
188,
187,
95,
188,
187,
32537,
1324,
2107,
3627,
65,
1043,
2678,
260,
3491,
1632,
188,
188,
187,
2989,
7528,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
2989,
7528,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
2989,
7528,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71,
24,
14,
1639,
452,
188,
187,
13020,
260,
312,
5371,
3491,
65,
2989,
65,
311,
358,
2060,
14,
285,
10,
3048,
10,
3594,
16463,
7031,
14,
21,
14870,
399,
9,
3406,
3334,
1242,
8990,
1359,
6414,
5390,
65,
3627,
65,
1091,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
21186,
2765,
3491,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
260,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
2136,
7528,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
3627,
12247,
2146,
1632,
721,
1787,
535,
10,
18,
11,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
285,
3413,
61,
19,
63,
489,
312,
8990,
4,
275,
188,
350,
187,
3627,
12247,
2146,
1632,
1159,
352,
188,
187,
187,
95,
188,
187,
95,
188,
187,
32537,
1324,
2107,
3627,
65,
8990,
65,
2989,
65,
1043,
2678,
260,
3491,
12247,
2146,
1632,
188,
188,
187,
1096,
1632,
721,
257,
16,
18,
188,
187,
529,
2426,
790,
7351,
42831,
721,
2068,
43812,
6484,
3959,
275,
188,
187,
187,
1043,
14,
497,
721,
23133,
16,
3652,
7351,
1632,
10,
1096,
7351,
42831,
14,
3654,
14,
10810,
2911,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
1096,
1632,
1159,
1975,
188,
187,
95,
188,
187,
32537,
1324,
2107,
3627,
65,
1096,
65,
1410,
65,
1043,
2678,
260,
790,
1632,
188,
188,
187,
13020,
260,
312,
5371,
4962,
10,
1043,
11,
6414,
790,
65,
1043,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
4,
188,
187,
1830,
2911,
260,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
2762,
1632,
721,
7176,
61,
18,
1811,
18,
63,
188,
187,
32537,
1324,
2107,
3627,
65,
3417,
65,
1043,
2678,
260,
2698,
1632,
188,
188,
187,
13020,
260,
312,
5371,
1975,
10,
11768,
65,
311,
358,
2060,
11,
6414,
36920,
65,
11768,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
4,
188,
187,
1830,
2911,
260,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
260,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
260,
2468,
16,
21560,
16,
7011,
188,
187,
11768,
1632,
721,
7176,
61,
18,
1811,
18,
63,
188,
187,
32537,
1324,
2107,
11768,
65,
1043,
2678,
260,
15774,
1632,
188,
187,
26120,
883,
260,
3343,
10,
26120,
883,
14,
47615,
1324,
11,
188,
188,
187,
1275,
2107,
568,
2678,
260,
40895,
883,
188,
188,
187,
397,
1146,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
3811,
7351,
1632,
10,
8041,
4755,
613,
776,
14,
3654,
9199,
2911,
14,
10810,
2911,
4231,
16,
3589,
11,
280,
1879,
535,
14,
790,
11,
275,
188,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
4383,
65,
1157,
358,
1488,
11,
6414,
690,
85,
12932,
2126,
65,
5700,
423,
65,
689,
358,
2060,
13470,
5700,
423,
65,
689,
347,
10697,
4755,
613,
11,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
8041,
788,
209,
209,
209,
209,
209,
209,
10697,
4755,
613,
14,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
257,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
12987,
16,
38362,
535,
10,
2828,
16,
21560,
16,
7011,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
397,
7176,
14,
869,
188,
95,
188,
188,
1857,
384,
10755,
8833,
4442,
3071,
10,
1154,
1787,
535,
11,
1787,
535,
275,
188,
187,
2338,
14,
497,
721,
12601,
16,
4227,
3477,
10,
2763,
16,
5696,
3297,
16,
20,
72,
347,
1855,
399,
2797,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
2338,
260,
257,
188,
187,
95,
188,
187,
397,
3169,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
3491,
7351,
1034,
10,
8041,
4755,
613,
14,
10697,
4755,
613,
1625,
776,
14,
3654,
6569,
2911,
14,
10810,
2911,
4231,
16,
3589,
11,
1714,
1222,
5433,
14,
790,
11,
275,
188,
187,
828,
1362,
5433,
5398,
5433,
188,
187,
8041,
563,
721,
312,
2213,
65,
3627,
65,
579,
4,
188,
187,
4099,
563,
721,
312,
2213,
65,
5700,
423,
65,
689,
4,
188,
187,
3627,
37703,
721,
312,
2213,
65,
3627,
65,
311,
4,
188,
187,
285,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
20,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
21,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
22,
63,
275,
188,
187,
187,
8041,
563,
260,
312,
2594,
65,
3627,
65,
579,
4,
188,
187,
187,
3627,
37703,
260,
312,
2594,
65,
3627,
65,
311,
4,
188,
187,
187,
4099,
563,
260,
312,
2594,
65,
5700,
423,
65,
689,
4,
188,
187,
95,
188,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
1043,
65,
1157,
399,
1157,
10,
20959,
65,
1157,
5043,
1157,
10,
1043,
65,
1157,
399,
1157,
10,
4383,
65,
1157,
5043,
1157,
10,
1043,
65,
1157,
11,
6414,
690,
85,
12932,
690,
85,
13470,
5700,
423,
65,
689,
2824,
690,
85,
13470,
3627,
65,
579,
2824,
690,
85,
13470,
3627,
65,
311,
347,
188,
187,
187,
8041,
4755,
613,
14,
23978,
563,
14,
10697,
563,
14,
3491,
37703,
11,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
771,
721,
2468,
16,
21560,
16,
7011,
188,
187,
1703,
5433,
16,
1222,
1632,
260,
12987,
16,
38362,
535,
10,
771,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
285,
3413,
61,
18,
1811,
19,
63,
598,
869,
275,
188,
187,
187,
1703,
5433,
16,
1222,
22191,
1136,
260,
384,
10755,
8833,
4442,
3071,
10,
5543,
16,
38362,
535,
10,
771,
61,
18,
1811,
19,
630,
257,
11,
348,
352,
71,
24,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1703,
5433,
16,
1222,
22191,
1136,
260,
257,
188,
187,
95,
188,
187,
285,
3413,
61,
18,
1811,
20,
63,
598,
869,
275,
188,
187,
187,
1703,
5433,
16,
28590,
5439,
260,
384,
10755,
8833,
4442,
3071,
10,
5543,
16,
38362,
535,
10,
771,
61,
18,
1811,
20,
630,
257,
11,
258,
3449,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1703,
5433,
16,
28590,
5439,
260,
257,
188,
187,
95,
188,
187,
1703,
5433,
16,
32291,
260,
10697,
4755,
613,
1625,
188,
187,
397,
396,
1703,
5433,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
3491,
7351,
914,
1632,
10,
8041,
4755,
613,
776,
14,
3654,
6569,
2911,
14,
10810,
2911,
4231,
16,
3589,
11,
280,
1879,
535,
14,
790,
11,
275,
188,
187,
8041,
563,
721,
312,
2213,
65,
3627,
65,
579,
4,
188,
187,
4099,
563,
721,
312,
2213,
65,
5700,
423,
65,
689,
4,
188,
187,
3627,
37703,
721,
312,
2213,
65,
3627,
65,
311,
4,
188,
187,
285,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
20,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
21,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
22,
63,
275,
188,
187,
187,
8041,
563,
260,
312,
2594,
65,
3627,
65,
579,
4,
188,
187,
187,
3627,
37703,
260,
312,
2594,
65,
3627,
65,
311,
4,
188,
187,
187,
4099,
563,
260,
312,
2594,
65,
5700,
423,
65,
689,
4,
188,
187,
95,
188,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
4383,
65,
1157,
11,
6414,
690,
85,
12932,
690,
85,
13470,
5700,
423,
65,
689,
2824,
690,
85,
13470,
3627,
65,
579,
2824,
690,
85,
13470,
3627,
65,
311,
347,
188,
187,
187,
8041,
4755,
613,
14,
23978,
563,
14,
10697,
563,
14,
3491,
37703,
11,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
257,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
12987,
16,
38362,
535,
10,
2828,
16,
21560,
16,
7011,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
397,
7176,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
4648,
6295,
10,
84,
258,
1635,
16,
1222,
11,
1397,
4648,
2343,
275,
188,
187,
3364,
721,
6538,
16,
7606,
10,
84,
11,
188,
187,
2640,
721,
23133,
16,
86,
16,
1388,
10,
3364,
14,
9714,
4648,
2343,
16,
2343,
11,
188,
187,
285,
3426,
598,
3985,
275,
188,
187,
187,
5173,
4648,
2343,
16,
2948,
260,
3426,
188,
187,
95,
188,
187,
397,
1397,
4648,
2343,
93,
188,
187,
187,
5173,
4648,
2343,
14,
188,
187,
95,
188,
95,
188,
188,
1857,
4772,
5173,
2343,
10,
17975,
258,
7653,
14,
5746,
810,
776,
14,
24271,
14,
35844,
388,
535,
11,
6784,
530,
14,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
22591,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
36146,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
5390,
65,
579,
358,
2060,
6414,
5390,
65,
3627,
65,
1091,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
21186,
2765,
5390,
65,
579,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
5746,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
828,
2513,
1658,
1397,
530,
188,
187,
529,
2426,
700,
721,
2068,
7176,
275,
188,
187,
187,
1386,
1658,
260,
3343,
10,
1386,
1658,
14,
12987,
16,
5502,
10,
579,
61,
18,
5293,
188,
187,
95,
188,
187,
397,
2513,
1658,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
2544,
3158,
20535,
1175,
10,
84,
258,
1635,
16,
1222,
14,
3654,
40527,
11,
38870,
1175,
14,
790,
11,
275,
188,
187,
5421,
721,
23133,
16,
901,
20535,
10,
1989,
11,
188,
188,
187,
16085,
14,
497,
721,
23133,
16,
901,
11664,
10,
1791,
16,
7606,
10,
84,
399,
3654,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
529,
2426,
1575,
721,
2068,
5549,
275,
188,
187,
187,
689,
721,
1575,
16,
1700,
810,
188,
187,
187,
3627,
11664,
721,
10033,
61,
689,
63,
188,
187,
187,
529,
2426,
2136,
721,
2068,
3491,
11664,
275,
188,
350,
187,
285,
2136,
16,
1700,
810,
489,
1575,
16,
1700,
810,
275,
188,
2054,
187,
285,
2136,
16,
28642,
489,
312,
8990,
4,
275,
188,
1263,
187,
1091,
16,
6484,
16,
12247,
1159,
352,
188,
2054,
187,
95,
730,
275,
188,
1263,
187,
1091,
16,
6484,
16,
19226,
1159,
352,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
5549,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
20277,
10,
28115,
776,
14,
5549,
8112,
1175,
11,
1397,
1700,
24754,
275,
188,
187,
828,
3491,
24754,
85,
1397,
1700,
24754,
188,
187,
529,
2426,
1575,
721,
2068,
5549,
275,
188,
187,
187,
285,
1575,
16,
23796,
489,
3985,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
285,
31089,
598,
3985,
692,
504,
6137,
16,
7978,
10,
1091,
16,
23796,
14,
31089,
11,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
828,
3491,
24754,
6569,
24754,
188,
187,
187,
3627,
24754,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
3627,
24754,
16,
7351,
1632,
260,
1575,
16,
6484,
16,
1632,
188,
187,
187,
3627,
24754,
16,
7351,
914,
1632,
260,
1575,
16,
6484,
16,
4120,
914,
188,
187,
187,
3627,
24754,
16,
1156,
260,
384,
10755,
8833,
4442,
3071,
10,
1091,
16,
6484,
16,
2172,
11,
188,
187,
187,
3627,
24754,
16,
4377,
2146,
1632,
260,
2764,
16,
5696,
3297,
88,
347,
1575,
16,
6484,
16,
12247,
11,
188,
187,
187,
3627,
24754,
16,
4382,
810,
260,
1575,
16,
4382,
810,
188,
187,
187,
3627,
24754,
16,
810,
260,
1575,
16,
1700,
810,
188,
187,
187,
3627,
24754,
16,
4382,
613,
260,
1575,
16,
4382,
613,
188,
187,
187,
3627,
24754,
16,
5173,
810,
260,
1575,
16,
5173,
810,
188,
187,
187,
3627,
24754,
16,
5173,
613,
260,
1575,
16,
5173,
613,
188,
187,
187,
3627,
24754,
85,
260,
3343,
10,
3627,
24754,
85,
14,
3491,
24754,
11,
188,
187,
95,
188,
187,
397,
3491,
24754,
85,
188,
95,
188,
188,
558,
6569,
2146,
603,
275,
188,
187,
5173,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
5853,
613,
14,
4213,
2537,
188,
187,
1700,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
810,
14,
4213,
2537,
188,
187,
23796,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
28115,
14,
4213,
2537,
188,
187,
1700,
43123,
776,
1083,
1894,
1172,
3627,
43123,
14,
4213,
2537,
188,
187,
1700,
20180,
209,
209,
776,
1083,
1894,
1172,
3627,
20180,
14,
4213,
2537,
188,
187,
28642,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2989,
1142,
14,
4213,
2537,
188,
187,
6821,
2013,
209,
209,
209,
209,
776,
1083,
1894,
1172,
4050,
2013,
14,
4213,
2537,
188,
187,
17118,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
22591,
14,
4213,
2537,
188,
187,
3911,
34779,
1136,
209,
209,
776,
1083,
1894,
1172,
2153,
34779,
1136,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
11664,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
40527,
11,
280,
806,
61,
530,
22209,
1700,
2146,
14,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71,
24,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
3491,
65,
311,
358,
2060,
14,
3627,
65,
2989,
65,
311,
358,
2060,
14,
285,
10,
3048,
10,
3594,
16463,
7031,
14,
21,
14870,
399,
9,
3406,
3334,
1242,
8990,
1359,
6414,
5390,
65,
3627,
65,
1091,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
21186,
2765,
3491,
65,
311,
358,
2060,
14,
3627,
65,
2989,
65,
311,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
12812,
423,
1031,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
828,
1146,
1397,
1700,
2146,
188,
187,
529,
2426,
3413,
721,
2068,
7176,
275,
188,
187,
187,
2989,
721,
6569,
2146,
93,
188,
350,
187,
1700,
810,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
18,
5053,
188,
350,
187,
1700,
43123,
28,
12987,
16,
5502,
10,
771,
61,
19,
5053,
188,
350,
187,
28642,
28,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
771,
61,
20,
5053,
188,
187,
187,
95,
188,
187,
187,
1275,
260,
3343,
10,
1275,
14,
2136,
11,
188,
187,
95,
188,
187,
2989,
1658,
721,
2311,
10,
806,
61,
530,
22209,
1700,
2146,
11,
188,
187,
529,
2426,
2136,
721,
2068,
1146,
275,
188,
187,
187,
689,
721,
2136,
16,
1700,
810,
188,
187,
187,
285,
2136,
1658,
61,
689,
63,
489,
869,
275,
188,
350,
187,
828,
3491,
2146,
1397,
1700,
2146,
188,
350,
187,
3627,
2146,
260,
3343,
10,
3627,
2146,
14,
2136,
11,
188,
350,
187,
2989,
1658,
61,
689,
63,
260,
3491,
2146,
188,
187,
187,
95,
730,
275,
188,
350,
187,
3627,
11664,
721,
2136,
1658,
61,
689,
63,
188,
350,
187,
3627,
11664,
260,
3343,
10,
3627,
11664,
14,
2136,
11,
188,
350,
187,
2989,
1658,
61,
689,
63,
260,
3491,
11664,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
2136,
1658,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
4648,
2343,
88,
10,
84,
258,
1635,
16,
1222,
14,
2730,
14,
5746,
810,
776,
14,
24271,
14,
35844,
388,
535,
11,
6784,
530,
14,
790,
11,
275,
188,
187,
2349,
2730,
275,
188,
187,
888,
9714,
4648,
2343,
16,
2343,
28,
188,
187,
187,
397,
4772,
5173,
2343,
10,
17975,
14,
5746,
810,
14,
24271,
14,
35844,
11,
188,
187,
1509,
28,
188,
187,
187,
397,
869,
14,
3955,
16,
1888,
435,
3647,
2730,
655,
2139,
866,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
20535,
10,
628,
40527,
11,
8112,
1175,
275,
188,
188,
187,
7603,
721,
2149,
21135,
9845,
10609,
10,
628,
16,
17118,
14,
4551,
16,
24249,
11,
188,
187,
1167,
721,
1701,
16,
7404,
336,
188,
188,
187,
5421,
721,
2311,
27302,
1175,
14,
257,
11,
188,
187,
529,
1255,
14,
640,
10609,
721,
2068,
9483,
275,
188,
188,
187,
187,
37139,
14766,
14,
44073,
721,
4751,
10621,
10,
689,
11,
188,
188,
187,
187,
1830,
721,
3599,
14766,
10,
689,
14,
4551,
11,
188,
187,
187,
3647,
2109,
721,
39333,
16,
1888,
4648,
2109,
336,
188,
187,
187,
3647,
2109,
16,
2066,
10,
1830,
717,
1079,
10,
18,
11,
188,
187,
187,
285,
27035,
14766,
489,
869,
275,
188,
350,
187,
1151,
16,
5944,
435,
37139,
3351,
1047,
1596,
869,
866,
188,
187,
187,
95,
188,
187,
187,
529,
1255,
14,
27035,
721,
2068,
27035,
14766,
16,
18576,
275,
188,
350,
187,
3647,
2109,
16,
18576,
10,
689,
14,
27035,
11,
188,
187,
187,
95,
188,
188,
187,
187,
3647,
1658,
14,
497,
721,
23133,
16,
304,
16,
4648,
10,
558,
10609,
48483,
188,
350,
187,
2540,
435,
2787,
15,
558,
347,
312,
5853,
17,
1894,
3101,
188,
350,
187,
4648,
2109,
10,
3647,
2109,
717,
188,
350,
187,
3174,
10,
1167,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
285,
4551,
16,
3468,
275,
188,
350,
187,
2594,
14,
547,
721,
4772,
2109,
16,
2109,
336,
188,
350,
187,
568,
14,
547,
721,
3667,
16,
4647,
10,
2594,
11,
188,
350,
187,
2763,
16,
4169,
435,
7603,
28,
10003,
188,
350,
187,
2763,
16,
14124,
10,
558,
10609,
11,
188,
350,
187,
2763,
16,
14124,
435,
1703,
4707,
28,
312,
431,
776,
10,
568,
452,
188,
350,
187,
2763,
16,
14124,
336,
188,
187,
187,
95,
188,
188,
187,
187,
2309,
805,
21135,
9845,
1175,
10,
3647,
1658,
14,
44073,
14,
396,
5421,
11,
188,
187,
95,
188,
188,
187,
397,
5549,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
7059,
1175,
1232,
6295,
10,
7034,
1397,
530,
14,
5549,
8112,
1175,
11,
8112,
1175,
275,
188,
187,
285,
7731,
598,
869,
692,
1005,
10,
7034,
11,
609,
257,
275,
188,
187,
187,
529,
2426,
325,
721,
2068,
7731,
275,
188,
350,
187,
2060,
1034,
721,
4440,
16,
7546,
10,
88,
14,
9333,
866,
188,
350,
187,
2060,
721,
2730,
1034,
61,
18,
63,
188,
350,
187,
731,
721,
2730,
1034,
61,
19,
63,
188,
350,
187,
2349,
2730,
275,
188,
350,
187,
888,
9714,
4648,
2343,
16,
2343,
28,
188,
2054,
187,
529,
368,
14,
1575,
721,
2068,
5549,
275,
188,
1263,
187,
285,
4440,
16,
23084,
10,
1091,
16,
613,
11,
489,
4440,
16,
23084,
10,
563,
9775,
11,
275,
188,
5520,
187,
3691,
188,
1263,
187,
95,
188,
1263,
187,
529,
2426,
47932,
721,
2068,
1575,
16,
35836,
275,
188,
5520,
187,
285,
1575,
16,
5173,
613,
598,
734,
692,
47932,
16,
5173,
613,
598,
734,
275,
188,
8446,
187,
5421,
260,
3343,
10,
5421,
3872,
75,
630,
5549,
61,
75,
13,
19,
10550,
5013,
188,
8446,
187,
75,
270,
188,
5520,
187,
95,
188,
1263,
187,
95,
188,
188,
2054,
187,
95,
188,
350,
187,
888,
6569,
4648,
2343,
16,
2343,
28,
188,
2054,
187,
529,
368,
14,
1575,
721,
2068,
5549,
275,
188,
1263,
187,
285,
1575,
16,
23796,
598,
734,
275,
188,
5520,
187,
5421,
260,
3343,
10,
5421,
3872,
75,
630,
5549,
61,
75,
13,
19,
10550,
5013,
188,
5520,
187,
75,
270,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
5549,
188,
95,
188,
188,
1857,
4751,
10621,
10,
1126,
563,
776,
11,
1714,
18576,
5699,
14,
8112,
1175,
10621,
11,
275,
188,
187,
828,
27035,
14766,
258,
18576,
5699,
188,
187,
828,
44073,
8112,
1175,
10621,
188,
187,
37139,
14766,
260,
14485,
38886,
61,
1126,
563,
63,
188,
187,
38808,
260,
4400,
40659,
61,
1126,
563,
63,
188,
187,
397,
27035,
14766,
14,
44073,
188,
95,
188,
188,
1857,
3518,
805,
21135,
9845,
1175,
10,
3647,
1658,
258,
13236,
16,
39505,
14,
44073,
8112,
1175,
10621,
14,
23133,
5884,
19341,
12,
1175,
11,
275,
188,
187,
529,
2426,
1575,
10621,
721,
2068,
44073,
275,
188,
187,
187,
2213,
19042,
721,
1575,
10621,
16,
2785,
188,
187,
187,
2594,
1175,
2963,
721,
1575,
10621,
16,
2109,
188,
188,
187,
187,
689,
721,
6245,
563,
805,
1031,
10,
2213,
19042,
16,
563,
11,
263,
187,
187,
341,
38886,
721,
4772,
1658,
16,
2666,
38886,
188,
187,
187,
285,
2174,
38886,
598,
869,
275,
188,
350,
187,
2427,
14,
305,
721,
2174,
38886,
16,
2454,
10,
689,
11,
188,
350,
187,
285,
305,
275,
188,
2054,
187,
1488,
721,
2126,
19042,
16,
42351,
1221,
188,
2054,
187,
17091,
721,
3352,
883,
22340,
699,
2427,
16,
2666,
38886,
14,
1334,
11,
188,
188,
2054,
187,
529,
2426,
2513,
721,
2068,
258,
17091,
275,
188,
188,
1263,
187,
2213,
721,
2513,
16,
2666,
38886,
188,
188,
1263,
187,
19789,
8578,
14,
3164,
721,
2126,
16,
4033,
27084,
10,
27124,
16,
8578,
11,
188,
1263,
187,
285,
504,
1604,
275,
188,
5520,
187,
3691,
188,
1263,
187,
95,
188,
1263,
187,
285,
1005,
10,
19789,
8578,
16,
27084,
16,
27084,
11,
1928,
257,
692,
2862,
8578,
16,
27084,
16,
27084,
61,
18,
913,
2109,
598,
869,
275,
188,
5520,
187,
3691,
188,
1263,
187,
95,
188,
1263,
187,
2213,
1175,
721,
396,
20535,
1175,
10621,
2475,
188,
1263,
187,
379,
721,
3667,
16,
5742,
1717,
19789,
8578,
16,
27084,
16,
27084,
61,
18,
913,
2109,
14,
396,
2213,
1175,
11,
188,
1263,
187,
285,
497,
598,
869,
275,
188,
5520,
187,
1151,
16,
14124,
435,
3849,
790,
866,
188,
1263,
187,
95,
188,
188,
1263,
187,
1091,
721,
8196,
4491,
10,
2213,
19042,
16,
563,
14,
2126,
1175,
11,
188,
188,
1263,
187,
8041,
721,
10697,
4491,
10,
2213,
19042,
14,
2126,
11,
188,
188,
1263,
187,
1091,
16,
6484,
260,
10697,
188,
188,
1263,
187,
4910,
721,
893,
188,
1263,
187,
529,
2426,
302,
721,
2068,
258,
17975,
5884,
275,
188,
5520,
187,
285,
302,
16,
810,
489,
1575,
16,
810,
275,
188,
8446,
187,
80,
16,
6484,
16,
1632,
1159,
1575,
16,
6484,
16,
1632,
188,
8446,
187,
80,
16,
6484,
16,
4120,
914,
1159,
1575,
16,
6484,
16,
4120,
914,
188,
8446,
187,
80,
16,
6484,
16,
914,
5439,
1159,
1575,
16,
6484,
16,
914,
5439,
188,
8446,
187,
80,
16,
6484,
16,
2172,
1159,
1575,
16,
6484,
16,
2172,
188,
8446,
187,
285,
302,
16,
4382,
810,
489,
3985,
275,
188,
11137,
187,
80,
16,
4382,
810,
260,
1575,
16,
4382,
810,
188,
8446,
187,
95,
188,
8446,
187,
4910,
260,
868,
188,
8446,
187,
1091,
260,
302,
188,
8446,
187,
1176,
188,
5520,
187,
95,
188,
1263,
187,
95,
188,
1263,
187,
285,
504,
4910,
275,
188,
5520,
187,
12,
17975,
5884,
260,
3343,
1717,
17975,
5884,
14,
1575,
11,
188,
5520,
187,
1091,
16,
35836,
260,
8112,
1175,
2475,
188,
1263,
187,
95,
188,
188,
1263,
187,
529,
2426,
39405,
721,
2068,
1756,
1175,
2963,
275,
188,
5520,
187,
689,
721,
6245,
563,
805,
1031,
10,
10294,
16,
563,
11,
263,
5520,
187,
6566,
14,
2721,
721,
2126,
16,
2454,
10,
689,
11,
188,
5520,
187,
285,
504,
5886,
275,
188,
8446,
187,
3691,
188,
5520,
187,
95,
188,
5520,
187,
67,
721,
7778,
16,
2666,
38886,
188,
5520,
187,
3249,
721,
3352,
883,
22340,
699,
67,
14,
39405,
16,
42351,
1221,
11,
188,
188,
5520,
187,
529,
2426,
1255,
1716,
721,
2068,
258,
3249,
275,
188,
188,
8446,
187,
2594,
721,
1255,
1716,
16,
2666,
38886,
188,
188,
8446,
187,
2594,
24548,
8578,
14,
3164,
721,
1756,
16,
4033,
27084,
10,
27124,
16,
8578,
11,
188,
8446,
187,
285,
504,
1604,
275,
188,
11137,
187,
3691,
188,
8446,
187,
95,
188,
8446,
187,
285,
1005,
10,
2594,
24548,
8578,
16,
27084,
16,
27084,
11,
1928,
257,
692,
1756,
24548,
8578,
16,
27084,
16,
27084,
61,
18,
913,
2109,
598,
869,
275,
188,
11137,
187,
3691,
188,
8446,
187,
95,
188,
8446,
187,
2594,
31644,
721,
396,
20535,
1175,
10621,
2475,
188,
8446,
187,
379,
721,
3667,
16,
5742,
1717,
2594,
24548,
8578,
16,
27084,
16,
27084,
61,
18,
913,
2109,
14,
396,
2594,
31644,
11,
188,
8446,
187,
285,
497,
598,
869,
275,
188,
11137,
187,
1151,
16,
14124,
435,
3849,
790,
866,
188,
8446,
187,
95,
188,
188,
8446,
187,
2594,
1175,
721,
8196,
4491,
10,
10294,
16,
563,
14,
1756,
31644,
11,
188,
188,
8446,
187,
2594,
6484,
721,
10697,
4491,
10,
10294,
14,
1756,
11,
188,
188,
8446,
187,
2594,
1175,
16,
6484,
260,
1756,
6484,
188,
8446,
187,
2594,
1175,
16,
35836,
260,
8112,
1175,
2475,
188,
188,
8446,
187,
1091,
16,
35836,
260,
3343,
10,
1091,
16,
35836,
14,
1756,
1175,
11,
188,
5520,
187,
95,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
10697,
4491,
10,
2213,
19042,
258,
19042,
14,
2126,
39333,
16,
2666,
38886,
11,
258,
6484,
275,
188,
187,
37139,
721,
2126,
19042,
16,
18576,
188,
187,
8041,
721,
19438,
2475,
188,
188,
187,
5148,
721,
2311,
10,
806,
61,
530,
5717,
1879,
535,
11,
188,
187,
1488,
721,
5305,
2475,
188,
187,
285,
27035,
489,
869,
275,
188,
187,
187,
397,
396,
8041,
188,
187,
95,
188,
187,
529,
1255,
721,
2068,
27035,
275,
188,
187,
187,
1157,
14,
547,
721,
2126,
16,
5463,
10,
689,
11,
188,
187,
187,
4239,
721,
4440,
16,
7546,
10,
689,
14,
46196,
188,
187,
187,
85,
20,
721,
7122,
61,
19,
63,
188,
187,
187,
731,
721,
4962,
16,
842,
188,
187,
187,
5148,
61,
85,
20,
63,
260,
734,
188,
187,
95,
188,
187,
3898,
14,
497,
721,
3667,
16,
4647,
10,
5148,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
396,
8041,
188,
187,
95,
188,
187,
379,
260,
3667,
16,
5742,
10,
3898,
14,
396,
1488,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
396,
8041,
188,
187,
95,
188,
188,
187,
1043,
5463,
721,
1334,
16,
1632,
5463,
188,
187,
8041,
16,
1632,
260,
388,
535,
10,
1043,
5463,
11,
188,
187,
8041,
16,
4120,
914,
260,
388,
535,
10,
1488,
16,
7633,
5463,
11,
188,
187,
285,
1975,
5463,
598,
257,
275,
263,
187,
187,
8041,
16,
2172,
260,
384,
10755,
8833,
4442,
3071,
10,
1488,
16,
1757,
11692,
5463,
348,
1975,
5463,
348,
352,
71,
24,
11,
188,
187,
187,
8041,
16,
914,
5439,
260,
8703,
16,
11140,
10,
1879,
535,
10,
8041,
16,
4120,
914,
5043,
1043,
5463,
12,
19,
71,
22,
11,
348,
352,
71,
20,
188,
187,
95,
188,
188,
187,
397,
396,
8041,
188,
95,
188,
188,
1857,
740,
24754,
810,
10,
10294,
776,
11,
776,
275,
188,
188,
187,
2349,
4440,
16,
23084,
10,
10294,
11,
275,
188,
187,
888,
4440,
16,
23084,
10,
563,
1700,
1050,
188,
187,
187,
397,
23133,
1175,
1700,
188,
187,
888,
4440,
16,
23084,
10,
563,
9775,
1050,
188,
187,
187,
397,
23133,
1175,
9775,
188,
187,
888,
4440,
16,
23084,
10,
563,
47981,
1050,
188,
187,
187,
397,
23133,
1175,
6406,
188,
187,
888,
4440,
16,
23084,
10,
563,
19776,
1050,
188,
187,
187,
397,
23133,
1175,
2874,
188,
187,
888,
4440,
16,
23084,
10,
563,
52,
2398,
9785,
1050,
188,
187,
187,
397,
23133,
1175,
37415,
188,
187,
888,
4440,
16,
23084,
10,
7712,
3167,
563,
1050,
188,
187,
187,
397,
2657,
10193,
7712,
188,
187,
888,
4440,
16,
23084,
10,
1175,
13443,
3167,
563,
1050,
188,
187,
187,
397,
2657,
10193,
1175,
3060,
188,
187,
888,
4440,
16,
23084,
10,
563,
4120,
1050,
188,
187,
187,
397,
23133,
1175,
9121,
188,
187,
1509,
28,
188,
187,
187,
397,
3985,
188,
187,
95,
188,
95,
188,
188,
1857,
8196,
4491,
10,
10294,
776,
14,
1575,
10621,
258,
20535,
1175,
10621,
11,
258,
1175,
275,
188,
188,
187,
1091,
721,
4400,
2475,
188,
187,
7034,
721,
1575,
10621,
16,
6295,
188,
188,
187,
2349,
39405,
275,
188,
187,
888,
8328,
1700,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
2962,
1700,
188,
187,
187,
1091,
16,
5173,
810,
260,
7731,
16,
2785,
5173,
810,
188,
187,
187,
1091,
16,
5173,
613,
260,
7731,
16,
2785,
5173,
613,
188,
187,
187,
1091,
16,
23796,
260,
7731,
16,
2785,
23796,
188,
187,
187,
1091,
16,
1700,
810,
260,
7731,
16,
2785,
1700,
810,
188,
187,
187,
1091,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
1091,
16,
4382,
810,
260,
7731,
16,
2785,
4382,
810,
188,
187,
187,
1091,
16,
4382,
613,
260,
7731,
16,
2785,
4382,
613,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
5173,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
4382,
613,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
23796,
11,
188,
187,
888,
4911,
1700,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
2962,
1700,
188,
187,
187,
1091,
16,
5173,
810,
260,
7731,
16,
2109,
5173,
810,
188,
187,
187,
1091,
16,
5173,
613,
260,
7731,
16,
2109,
5173,
613,
188,
187,
187,
1091,
16,
1700,
810,
260,
7731,
16,
2109,
1700,
810,
188,
187,
187,
1091,
16,
23796,
260,
7731,
16,
2109,
23796,
188,
187,
187,
1091,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
1091,
16,
4382,
810,
260,
7731,
16,
2109,
4382,
810,
188,
187,
187,
1091,
16,
4382,
613,
260,
7731,
16,
2109,
4382,
613,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
5173,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
4382,
613,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
23796,
11,
188,
187,
888,
8328,
35810,
1175,
28,
188,
187,
187,
285,
4440,
16,
23084,
10,
7034,
16,
2660,
11,
489,
4440,
16,
23084,
435,
4120,
866,
275,
188,
350,
187,
1091,
16,
563,
260,
2962,
39080,
188,
187,
187,
95,
730,
275,
188,
350,
187,
1091,
16,
563,
260,
7731,
16,
2785,
35810,
563,
188,
187,
187,
95,
188,
187,
187,
1091,
16,
35810,
810,
260,
7731,
16,
2785,
35810,
565,
188,
187,
187,
1091,
16,
613,
260,
7731,
16,
2785,
35810,
565,
188,
187,
187,
1091,
16,
35810,
563,
260,
7731,
16,
2785,
35810,
563,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
35810,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
35810,
563,
11,
188,
187,
888,
4911,
35810,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
7731,
16,
2109,
35810,
563,
188,
187,
187,
1091,
16,
35810,
810,
260,
7731,
16,
2109,
35810,
565,
188,
187,
187,
1091,
16,
35810,
563,
260,
7731,
16,
2109,
35810,
563,
188,
187,
187,
1091,
16,
613,
260,
7731,
16,
2109,
35810,
565,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
35810,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
35810,
563,
11,
188,
187,
888,
8328,
2660,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
7731,
16,
2660,
188,
187,
187,
1091,
16,
613,
260,
7731,
16,
3699,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
563,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
613,
11,
188,
187,
888,
4911,
9785,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
7731,
16,
2660,
188,
187,
187,
1091,
16,
613,
260,
7731,
16,
3699,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
563,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
613,
11,
188,
187,
888,
8328,
9785,
1700,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
2962,
1700,
188,
187,
187,
1091,
16,
5173,
810,
260,
7731,
16,
2785,
5173,
810,
188,
187,
187,
1091,
16,
5173,
613,
260,
7731,
16,
2785,
5173,
613,
188,
187,
187,
1091,
16,
1700,
810,
260,
7731,
16,
2785,
1700,
810,
188,
187,
187,
1091,
16,
23796,
260,
7731,
16,
2785,
23796,
188,
187,
187,
1091,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
1091,
16,
4382,
810,
260,
7731,
16,
2785,
4382,
810,
188,
187,
187,
1091,
16,
4382,
613,
260,
7731,
16,
2785,
4382,
613,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
5173,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
4382,
613,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
23796,
11,
188,
187,
888,
8328,
9121,
1175,
28,
188,
187,
187,
285,
4440,
16,
23084,
10,
7034,
16,
2660,
11,
489,
4440,
16,
23084,
435,
4120,
866,
692,
4440,
16,
24125,
10,
7034,
16,
3699,
14,
312,
5700,
423,
15,
18258,
866,
275,
188,
350,
187,
1091,
16,
563,
260,
2962,
39080,
188,
187,
187,
95,
730,
275,
188,
350,
187,
1091,
16,
563,
260,
7731,
16,
2660,
188,
187,
187,
95,
188,
187,
187,
1091,
16,
613,
260,
7731,
16,
3699,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
613,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
563,
11,
188,
187,
888,
6367,
1175,
28,
188,
187,
187,
1091,
16,
563,
260,
2962,
1700,
188,
187,
187,
1091,
16,
5173,
810,
260,
7731,
16,
5173,
810,
188,
187,
187,
1091,
16,
5173,
613,
260,
7731,
16,
5173,
613,
188,
187,
187,
1091,
16,
1700,
810,
260,
7731,
16,
1700,
810,
188,
187,
187,
1091,
16,
23796,
260,
7731,
16,
23796,
188,
187,
187,
1091,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
1091,
16,
4382,
810,
260,
7731,
16,
4382,
810,
188,
187,
187,
1091,
16,
4382,
613,
260,
7731,
16,
4382,
613,
188,
187,
187,
1091,
16,
810,
260,
6245,
563,
805,
1031,
10,
1091,
16,
5173,
810,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
4382,
613,
431,
2155,
79,
16,
23310,
19,
431,
1575,
16,
23796,
11,
188,
187,
95,
188,
187,
1091,
16,
24754,
810,
260,
740,
24754,
810,
10,
1091,
16,
563,
11,
188,
187,
397,
396,
1091,
188,
95,
188,
188,
1857,
3352,
883,
22340,
10,
2427,
258,
13236,
16,
2666,
38886,
14,
1334,
258,
42351,
1221,
11,
19341,
12,
13236,
16,
18576,
6793,
1031,
1716,
275,
188,
188,
187,
828,
1575,
22340,
8112,
13236,
16,
18576,
6793,
1031,
1716,
188,
187,
4167,
2666,
4515,
14,
547,
721,
3020,
16,
24548,
10,
1488,
16,
613,
11,
188,
187,
2625,
1175,
22340,
10,
4167,
2666,
4515,
16,
22340,
14,
1334,
14,
396,
1091,
22340,
11,
188,
187,
397,
396,
1091,
22340,
188,
95,
188,
188,
1857,
3352,
1175,
22340,
10,
6566,
1031,
4278,
8112,
13236,
16,
18576,
6793,
1031,
1716,
14,
1334,
258,
42351,
1221,
14,
1575,
22340,
19341,
12,
13236,
16,
18576,
6793,
1031,
1716,
11,
275,
188,
187,
529,
2426,
22198,
721,
2068,
7778,
1031,
4278,
275,
188,
187,
187,
285,
1334,
598,
869,
692,
1334,
16,
2032,
1221,
598,
869,
275,
188,
350,
187,
341,
38886,
721,
22198,
16,
2666,
38886,
188,
350,
187,
6566,
14,
547,
721,
2174,
38886,
16,
24548,
10,
1488,
16,
2032,
1221,
16,
613,
11,
188,
350,
187,
2625,
1175,
22340,
10,
6566,
16,
22340,
14,
1334,
16,
2032,
1221,
16,
2032,
1221,
14,
1575,
22340,
11,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
187,
187,
285,
1334,
489,
869,
275,
188,
350,
187,
12,
1091,
22340,
260,
3343,
1717,
1091,
22340,
14,
22198,
11,
188,
187,
187,
95,
730,
275,
188,
350,
187,
17091,
30816,
721,
22198,
16,
2666,
38886,
188,
350,
187,
19789,
14,
547,
721,
22198,
30816,
16,
24548,
10,
1488,
16,
613,
11,
188,
350,
187,
12,
1091,
22340,
260,
3343,
1717,
1091,
22340,
14,
2862,
16,
22340,
5013,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
13617,
10,
84,
258,
1635,
16,
1222,
14,
3654,
13617,
11,
2251,
2475,
275,
188,
187,
285,
3654,
16,
5251,
598,
312,
1635,
4,
692,
3654,
16,
5251,
598,
312,
6370,
4,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
4383,
16,
1888,
435,
1718,
4011,
5902,
700,
2646,
188,
187,
95,
188,
187,
2086,
721,
4231,
16,
3589,
2475,
188,
187,
2086,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2163,
14,
1639,
452,
188,
187,
2086,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2097,
14,
1639,
452,
188,
187,
828,
3407,
2298,
16,
1698,
188,
187,
828,
2902,
867,
776,
188,
187,
828,
1334,
776,
188,
187,
628,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
1031,
788,
209,
209,
209,
209,
209,
209,
3654,
16,
12812,
423,
1031,
14,
188,
187,
187,
4,
2427,
23796,
788,
3654,
16,
2454,
23796,
14,
188,
187,
187,
4,
3627,
810,
788,
209,
209,
209,
209,
209,
209,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2349,
3654,
16,
5251,
275,
188,
187,
888,
312,
1635,
788,
188,
187,
187,
1488,
260,
312,
1635,
65,
1147,
358,
2060,
4,
188,
187,
187,
285,
3654,
16,
4648,
598,
3985,
275,
188,
350,
187,
628,
2107,
1488,
2678,
260,
1929,
61,
530,
63,
3314,
43502,
7482,
788,
312,
3494,
4,
431,
3654,
16,
4648,
431,
312,
3494,
6629,
188,
350,
187,
7072,
16,
14664,
435,
2824,
1540,
65,
1147,
358,
2060,
31,
96,
6,
1488,
866,
188,
187,
187,
95,
188,
187,
888,
312,
6370,
788,
188,
187,
187,
1488,
260,
312,
70,
47442,
65,
2627,
358,
2060,
4,
188,
187,
187,
285,
3654,
16,
4648,
598,
3985,
275,
188,
350,
187,
628,
2107,
1488,
2678,
260,
1929,
61,
530,
63,
3314,
14582,
188,
2054,
187,
4,
7482,
788,
312,
3494,
4,
431,
3654,
16,
4648,
431,
312,
3494,
347,
188,
350,
187,
95,
188,
350,
187,
7072,
16,
14664,
435,
2824,
349,
47442,
65,
2627,
358,
2060,
31,
96,
6,
1488,
866,
188,
187,
187,
95,
188,
187,
1509,
28,
188,
187,
187,
397,
6538,
16,
7633,
16,
29342,
10,
4383,
16,
1888,
435,
1718,
2139,
5902,
700,
2646,
188,
187,
95,
188,
187,
285,
3654,
16,
6032,
489,
257,
275,
188,
187,
187,
48780,
260,
312,
21863,
2765,
1975,
10,
1096,
358,
2060,
11,
18881,
4,
188,
187,
95,
188,
187,
285,
3654,
16,
6032,
489,
352,
275,
188,
187,
187,
48780,
260,
312,
21863,
2765,
4962,
10,
20959,
65,
1043,
358,
1488,
11,
18881,
4,
188,
187,
95,
188,
187,
4220,
721,
2764,
16,
5696,
435,
5371,
690,
85,
14,
1157,
10,
20959,
65,
1043,
358,
1488,
399,
1043,
10,
1096,
358,
2060,
399,
1864,
65,
7346,
10,
11417,
10,
20959,
65,
11857,
358,
1488,
399,
9,
463,
20,
11,
6454,
188,
187,
187,
4,
7789,
5390,
15747,
85,
12932,
2126,
65,
3627,
65,
311,
358,
2060,
13470,
3627,
810,
2824,
2126,
65,
3627,
65,
579,
358,
2060,
13470,
2427,
23796,
6454,
188,
187,
187,
4,
2159,
2126,
65,
5700,
423,
65,
689,
358,
2060,
13470,
5700,
423,
1031,
690,
85,
21186,
2765,
690,
85,
347,
1334,
14,
3654,
16,
5251,
14,
3407,
16,
703,
833,
1334,
13,
48780,
11,
188,
187,
2594,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
188,
187,
187,
8041,
83,
16,
364,
24003,
3387,
14,
188,
187,
187,
4220,
14,
188,
187,
187,
628,
14,
188,
187,
187,
2086,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
379,
11,
188,
187,
95,
188,
188,
187,
1275,
721,
2311,
10,
806,
61,
530,
63,
3314,
4364,
257,
11,
188,
187,
8618,
721,
1397,
806,
61,
530,
63,
3314,
14582,
188,
187,
187,
2315,
3353,
788,
312,
2060,
94,
73,
2930,
10736,
347,
312,
689,
788,
312,
17384,
65,
579,
347,
7715,
689,
788,
312,
7034,
16,
1635,
65,
1147,
1782,
188,
187,
187,
2315,
3353,
788,
312,
1488,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
20959,
65,
1043,
347,
7715,
689,
788,
23406,
188,
187,
187,
2315,
3353,
788,
312,
2060,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
1096,
65,
1043,
347,
7715,
689,
788,
23406,
188,
187,
187,
2315,
3353,
788,
312,
2060,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
16663,
65,
20959,
65,
1043,
347,
7715,
689,
788,
23406,
188,
187,
187,
2315,
3353,
788,
312,
2060,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
11417,
65,
20959,
347,
7715,
689,
788,
23406,
188,
187,
95,
188,
187,
1275,
2107,
8618,
2678,
260,
15753,
188,
187,
568,
721,
2311,
4661,
806,
61,
530,
63,
3314,
4364,
257,
11,
188,
187,
529,
2426,
470,
721,
2068,
1756,
16,
21560,
16,
7011,
275,
188,
187,
187,
1386,
1658,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
187,
1386,
1658,
2107,
17384,
65,
579,
2678,
260,
470,
61,
18,
63,
188,
187,
187,
1386,
1658,
2107,
20959,
65,
1043,
2678,
260,
470,
61,
19,
63,
188,
187,
187,
1386,
1658,
2107,
1096,
65,
1043,
2678,
260,
470,
61,
20,
63,
188,
187,
187,
1386,
1658,
2107,
11417,
65,
20959,
2678,
260,
470,
61,
21,
63,
188,
187,
187,
4220,
260,
2764,
16,
5696,
435,
5371,
4962,
10,
20959,
65,
1043,
358,
1488,
11,
6414,
5390,
15747,
85,
65,
16663,
12932,
2126,
65,
3627,
65,
311,
358,
2060,
13470,
3627,
810,
6454,
188,
350,
187,
4,
2159,
2126,
65,
3627,
65,
579,
358,
2060,
13470,
2427,
23796,
2824,
690,
85,
13470,
1488,
2824,
2126,
65,
5700,
423,
65,
689,
358,
2060,
13470,
5700,
423,
1031,
3525,
3654,
16,
5251,
14,
1334,
11,
188,
187,
187,
16663,
25028,
1632,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
188,
350,
187,
8041,
83,
16,
364,
24003,
3387,
14,
188,
350,
187,
4220,
14,
188,
350,
187,
806,
61,
530,
63,
3314,
14582,
188,
2054,
187,
4,
1488,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
84,
61,
18,
5053,
188,
2054,
187,
4,
5700,
423,
1031,
788,
209,
209,
209,
209,
209,
209,
3654,
16,
12812,
423,
1031,
14,
188,
2054,
187,
4,
2427,
23796,
788,
3654,
16,
2454,
23796,
14,
188,
2054,
187,
4,
3627,
810,
788,
209,
209,
209,
209,
209,
209,
209,
209,
3654,
16,
1700,
810,
14,
188,
350,
187,
519,
188,
350,
187,
2086,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
6538,
16,
7633,
16,
3977,
10,
379,
11,
188,
187,
187,
95,
188,
187,
187,
529,
2426,
2513,
721,
2068,
14227,
25028,
1632,
16,
21560,
16,
7011,
275,
188,
350,
187,
1386,
1658,
2107,
16663,
65,
20959,
65,
1043,
2678,
260,
2513,
61,
18,
63,
188,
187,
187,
95,
188,
187,
187,
568,
260,
3343,
10,
568,
14,
2513,
1658,
11,
188,
187,
95,
188,
187,
1275,
2107,
568,
2678,
260,
859,
188,
187,
397,
6538,
16,
6225,
10,
1275,
11,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
4243,
5433,
10,
84,
258,
1635,
16,
1222,
14,
3654,
13617,
11,
2251,
2475,
275,
188,
187,
285,
3654,
16,
5251,
598,
312,
1184,
4,
692,
3654,
16,
5251,
598,
312,
2091,
4,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
4383,
16,
1888,
435,
1718,
4011,
5902,
700,
2646,
188,
187,
95,
188,
187,
2086,
721,
4231,
16,
3589,
2475,
188,
187,
2086,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2163,
14,
1639,
452,
188,
187,
2086,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2097,
14,
1639,
452,
188,
187,
828,
3407,
2298,
16,
1698,
188,
187,
828,
2902,
867,
776,
188,
187,
628,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
628,
2107,
5700,
423,
1031,
2678,
260,
3654,
16,
12812,
423,
1031,
188,
187,
628,
2107,
2427,
23796,
2678,
260,
3654,
16,
2454,
23796,
188,
187,
628,
2107,
3627,
810,
2678,
260,
3654,
16,
1700,
810,
188,
187,
285,
3654,
16,
4648,
598,
3985,
275,
188,
187,
187,
7072,
16,
14664,
435,
2824,
4243,
65,
13020,
358,
2060,
31,
96,
6,
1488,
866,
188,
187,
187,
628,
2107,
1488,
2678,
260,
1929,
61,
530,
63,
3314,
43502,
7482,
788,
312,
3494,
4,
431,
3654,
16,
4648,
431,
312,
3494,
6629,
188,
187,
95,
188,
187,
285,
3654,
16,
6032,
489,
352,
275,
188,
187,
187,
48780,
260,
312,
21863,
2765,
4962,
10,
20959,
65,
1043,
358,
1488,
11,
18881,
4,
188,
187,
95,
188,
187,
4220,
721,
2764,
16,
5696,
435,
5371,
4243,
65,
13020,
358,
2060,
14,
1184,
65,
558,
358,
2060,
14,
1184,
65,
2989,
358,
2060,
14,
1917,
358,
2060,
14,
1157,
10,
20959,
65,
1043,
358,
1488,
399,
1849,
188,
187,
187,
4,
1864,
65,
7346,
10,
11417,
10,
20959,
65,
11857,
358,
1488,
399,
9,
463,
20,
11,
6414,
5390,
15747,
85,
12932,
1756,
65,
3627,
65,
311,
358,
2060,
13470,
3627,
810,
2824,
6454,
188,
187,
187,
4,
2594,
65,
3627,
65,
579,
358,
2060,
13470,
2427,
23796,
2824,
1756,
65,
5700,
423,
65,
689,
358,
2060,
13470,
5700,
423,
1031,
690,
85,
21186,
2765,
4243,
65,
13020,
358,
2060,
690,
85,
347,
188,
187,
187,
1989,
16,
5251,
14,
3407,
16,
703,
833,
2902,
867,
11,
188,
187,
2594,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
188,
187,
187,
8041,
83,
16,
364,
24003,
3387,
14,
188,
187,
187,
4220,
14,
188,
187,
187,
628,
14,
188,
187,
187,
2086,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
379,
11,
188,
187,
95,
188,
188,
187,
1275,
721,
2311,
10,
806,
61,
530,
63,
3314,
4364,
257,
11,
188,
187,
8618,
721,
1397,
806,
61,
530,
63,
3314,
14582,
188,
187,
187,
2315,
65,
689,
788,
312,
7034,
16,
1184,
65,
13020,
347,
312,
3353,
788,
312,
2060,
94,
1578,
867,
347,
312,
689,
788,
312,
6447,
1782,
188,
187,
187,
2315,
65,
689,
788,
312,
7034,
16,
1184,
65,
558,
347,
312,
3353,
788,
312,
2060,
347,
312,
689,
788,
312,
1184,
65,
558,
1782,
188,
187,
187,
2315,
65,
689,
788,
312,
7034,
16,
1184,
65,
2989,
347,
312,
3353,
788,
312,
2060,
347,
312,
689,
788,
312,
2989,
65,
558,
1782,
188,
187,
187,
2315,
65,
689,
788,
312,
7034,
16,
1917,
347,
312,
3353,
788,
312,
2060,
347,
312,
689,
788,
312,
1184,
65,
1917,
1782,
188,
187,
187,
2315,
65,
689,
788,
4114,
312,
3353,
788,
312,
1488,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
1613,
65,
1043,
1782,
188,
187,
187,
2315,
65,
689,
788,
4114,
312,
3353,
788,
312,
1488,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
11417,
65,
20959,
1782,
188,
187,
187,
2315,
65,
689,
788,
4114,
312,
3353,
788,
312,
1488,
94,
1857,
94,
15201,
347,
312,
689,
788,
312,
16663,
65,
20959,
65,
1043,
1782,
188,
187,
95,
188,
187,
1275,
2107,
8618,
2678,
260,
15753,
188,
187,
568,
721,
2311,
4661,
806,
61,
530,
63,
3314,
4364,
257,
11,
188,
187,
529,
2426,
470,
721,
2068,
1756,
16,
21560,
16,
7011,
275,
188,
187,
187,
1386,
1658,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
187,
1386,
1658,
2107,
6447,
2678,
260,
470,
61,
18,
63,
188,
187,
187,
1386,
1658,
2107,
1184,
65,
558,
2678,
260,
470,
61,
19,
63,
188,
187,
187,
1386,
1658,
2107,
1184,
65,
2989,
2678,
260,
470,
61,
20,
63,
188,
187,
187,
1386,
1658,
2107,
1184,
65,
1917,
2678,
260,
470,
61,
21,
63,
188,
187,
187,
1386,
1658,
2107,
1613,
65,
1043,
2678,
260,
470,
61,
22,
63,
188,
187,
187,
1386,
1658,
2107,
11417,
65,
20959,
2678,
260,
470,
61,
23,
63,
188,
187,
187,
4220,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
20959,
65,
1043,
358,
1488,
11,
6414,
5390,
15747,
85,
65,
16663,
12932,
1756,
65,
3627,
65,
311,
358,
2060,
13470,
3627,
810,
6454,
188,
350,
187,
4,
2159,
1756,
65,
3627,
65,
579,
358,
2060,
13470,
2427,
23796,
2824,
4243,
65,
13020,
358,
2060,
13470,
1488,
2824,
2126,
65,
5700,
423,
65,
689,
358,
2060,
13470,
5700,
423,
1031,
347,
3654,
16,
5251,
11,
188,
187,
187,
16663,
25028,
1632,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
188,
350,
187,
8041,
83,
16,
364,
24003,
3387,
14,
188,
350,
187,
4220,
14,
188,
350,
187,
806,
61,
530,
63,
3314,
14582,
188,
2054,
187,
4,
1488,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12987,
16,
5502,
10,
84,
61,
18,
5053,
188,
2054,
187,
4,
5700,
423,
1031,
788,
209,
209,
209,
209,
209,
209,
3654,
16,
12812,
423,
1031,
14,
188,
2054,
187,
4,
2427,
23796,
788,
3654,
16,
2454,
23796,
14,
188,
2054,
187,
4,
3627,
810,
788,
209,
209,
209,
209,
209,
209,
209,
209,
3654,
16,
1700,
810,
14,
188,
350,
187,
519,
188,
350,
187,
2086,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
6538,
16,
7633,
16,
3977,
10,
379,
11,
188,
187,
187,
95,
188,
187,
187,
529,
2426,
2513,
721,
2068,
14227,
25028,
1632,
16,
21560,
16,
7011,
275,
188,
350,
187,
1386,
1658,
2107,
16663,
65,
20959,
65,
1043,
2678,
260,
2513,
61,
18,
63,
188,
187,
187,
95,
188,
187,
187,
568,
260,
3343,
10,
568,
14,
2513,
1658,
11,
188,
187,
95,
188,
187,
1275,
2107,
568,
2678,
260,
859,
188,
187,
397,
6538,
16,
6225,
10,
1275,
11,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
14227,
13616,
5279,
10,
84,
258,
1635,
16,
1222,
14,
3654,
603,
275,
188,
187,
2163,
209,
209,
209,
209,
209,
209,
388,
535,
209,
1083,
1830,
1172,
1182,
4,
7177,
1172,
6671,
2537,
188,
187,
2097,
209,
209,
209,
209,
209,
209,
209,
209,
388,
535,
209,
1083,
1830,
1172,
417,
4,
7177,
1172,
6671,
2537,
188,
187,
23796,
776,
1083,
1830,
1172,
28115,
4,
7177,
1172,
6671,
2537,
188,
187,
12812,
423,
1031,
776,
1083,
1830,
1172,
5700,
423,
1031,
4,
7177,
1172,
6671,
2537,
188,
187,
3631,
209,
209,
776,
1083,
1830,
1172,
6447,
4,
7177,
1172,
6671,
2537,
188,
187,
1700,
810,
209,
209,
776,
1083,
1830,
1172,
3627,
810,
4,
7177,
1172,
6671,
2537,
188,
187,
6032,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1509,
1172,
4539,
4,
3599,
1172,
4223,
2537,
188,
1436,
2251,
2475,
275,
188,
187,
285,
3654,
16,
6032,
598,
312,
20924,
4,
692,
3654,
16,
6032,
598,
312,
4539,
4,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
4383,
16,
1888,
435,
1718,
4011,
5029,
700,
2646,
188,
187,
95,
188,
187,
2086,
721,
4231,
16,
3589,
2475,
188,
187,
2086,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2163,
14,
1639,
452,
188,
187,
2086,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
2097,
14,
1639,
452,
188,
187,
4220,
721,
2764,
16,
5696,
435,
5371,
6185,
65,
311,
358,
2060,
14,
1864,
65,
1149,
10,
7031,
10737,
15794,
15,
493,
15,
1052,
2818,
28,
1025,
28,
1465,
3033,
2653,
65,
1879,
10,
285,
10,
3545,
10,
417,
65,
1149,
358,
1488,
15,
1182,
65,
1149,
358,
1488,
14,
18,
399,
18,
14,
417,
65,
1149,
358,
1488,
15,
1182,
65,
1149,
358,
1488,
5043,
14818,
14,
20,
11,
6414,
6185,
12932,
3491,
65,
3961,
358,
1488,
13470,
3627,
810,
2824,
3491,
65,
4606,
358,
1488,
13470,
28115,
2824,
7918,
423,
65,
4067,
358,
1488,
13470,
5700,
423,
1031,
2824,
280,
1635,
65,
11087,
358,
1488,
13470,
6447,
1241,
349,
47442,
65,
11402,
358,
1488,
13470,
6447,
11,
21863,
2765,
7668,
690,
85,
347,
3654,
16,
6032,
11,
188,
187,
7669,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
10,
8041,
83,
16,
364,
24003,
3387,
14,
188,
187,
187,
4220,
14,
188,
187,
187,
806,
61,
530,
63,
3314,
14582,
188,
350,
187,
4,
28115,
788,
3654,
16,
23796,
14,
188,
350,
187,
4,
5700,
423,
1031,
788,
3654,
16,
12812,
423,
1031,
14,
188,
350,
187,
4,
6447,
788,
209,
209,
3654,
16,
3631,
14,
188,
350,
187,
4,
3627,
810,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
187,
519,
188,
187,
187,
2086,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
6538,
16,
7633,
16,
3977,
10,
379,
11,
188,
187,
95,
188,
187,
828,
859,
1397,
806,
61,
530,
63,
3314,
2475,
188,
187,
529,
2426,
2167,
721,
2068,
3213,
16,
21560,
16,
7011,
275,
188,
187,
187,
3696,
1324,
721,
2311,
10,
806,
61,
530,
63,
3314,
5494,
188,
187,
187,
3696,
1324,
2107,
38650,
2678,
260,
2167,
61,
18,
63,
188,
187,
187,
3696,
1324,
2107,
1149,
2678,
260,
2167,
61,
19,
63,
188,
187,
187,
3696,
1324,
2107,
11417,
25028,
2678,
260,
2167,
61,
20,
63,
188,
187,
187,
568,
260,
3343,
10,
568,
14,
2167,
1324,
11,
188,
187,
95,
188,
187,
1275,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
8618,
788,
1397,
806,
61,
530,
63,
3314,
14582,
188,
350,
187,
2315,
3804,
788,
312,
18616,
565,
347,
312,
1126,
788,
312,
38650,
1782,
188,
350,
187,
2315,
3804,
788,
312,
22013,
347,
312,
1126,
788,
312,
1149,
1782,
188,
350,
187,
2315,
3804,
788,
312,
19688,
234,
11439,
10,
684,
4395,
312,
1126,
788,
312,
11417,
25028,
1782,
188,
187,
187,
519,
188,
187,
187,
4,
568,
788,
859,
14,
188,
187,
95,
188,
187,
397,
6538,
16,
6225,
10,
1275,
11,
188,
95
] | [
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
257,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
12987,
16,
38362,
535,
10,
2828,
16,
21560,
16,
7011,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
397,
7176,
14,
869,
188,
95,
188,
188,
1857,
384,
10755,
8833,
4442,
3071,
10,
1154,
1787,
535,
11,
1787,
535,
275,
188,
187,
2338,
14,
497,
721,
12601,
16,
4227,
3477,
10,
2763,
16,
5696,
3297,
16,
20,
72,
347,
1855,
399,
2797,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
2338,
260,
257,
188,
187,
95,
188,
187,
397,
3169,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
3491,
7351,
1034,
10,
8041,
4755,
613,
14,
10697,
4755,
613,
1625,
776,
14,
3654,
6569,
2911,
14,
10810,
2911,
4231,
16,
3589,
11,
1714,
1222,
5433,
14,
790,
11,
275,
188,
187,
828,
1362,
5433,
5398,
5433,
188,
187,
8041,
563,
721,
312,
2213,
65,
3627,
65,
579,
4,
188,
187,
4099,
563,
721,
312,
2213,
65,
5700,
423,
65,
689,
4,
188,
187,
3627,
37703,
721,
312,
2213,
65,
3627,
65,
311,
4,
188,
187,
285,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
20,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
21,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
22,
63,
275,
188,
187,
187,
8041,
563,
260,
312,
2594,
65,
3627,
65,
579,
4,
188,
187,
187,
3627,
37703,
260,
312,
2594,
65,
3627,
65,
311,
4,
188,
187,
187,
4099,
563,
260,
312,
2594,
65,
5700,
423,
65,
689,
4,
188,
187,
95,
188,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
1043,
65,
1157,
399,
1157,
10,
20959,
65,
1157,
5043,
1157,
10,
1043,
65,
1157,
399,
1157,
10,
4383,
65,
1157,
5043,
1157,
10,
1043,
65,
1157,
11,
6414,
690,
85,
12932,
690,
85,
13470,
5700,
423,
65,
689,
2824,
690,
85,
13470,
3627,
65,
579,
2824,
690,
85,
13470,
3627,
65,
311,
347,
188,
187,
187,
8041,
4755,
613,
14,
23978,
563,
14,
10697,
563,
14,
3491,
37703,
11,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
771,
721,
2468,
16,
21560,
16,
7011,
188,
187,
1703,
5433,
16,
1222,
1632,
260,
12987,
16,
38362,
535,
10,
771,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
285,
3413,
61,
18,
1811,
19,
63,
598,
869,
275,
188,
187,
187,
1703,
5433,
16,
1222,
22191,
1136,
260,
384,
10755,
8833,
4442,
3071,
10,
5543,
16,
38362,
535,
10,
771,
61,
18,
1811,
19,
630,
257,
11,
348,
352,
71,
24,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1703,
5433,
16,
1222,
22191,
1136,
260,
257,
188,
187,
95,
188,
187,
285,
3413,
61,
18,
1811,
20,
63,
598,
869,
275,
188,
187,
187,
1703,
5433,
16,
28590,
5439,
260,
384,
10755,
8833,
4442,
3071,
10,
5543,
16,
38362,
535,
10,
771,
61,
18,
1811,
20,
630,
257,
11,
258,
3449,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1703,
5433,
16,
28590,
5439,
260,
257,
188,
187,
95,
188,
187,
1703,
5433,
16,
32291,
260,
10697,
4755,
613,
1625,
188,
187,
397,
396,
1703,
5433,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
3491,
7351,
914,
1632,
10,
8041,
4755,
613,
776,
14,
3654,
6569,
2911,
14,
10810,
2911,
4231,
16,
3589,
11,
280,
1879,
535,
14,
790,
11,
275,
188,
187,
8041,
563,
721,
312,
2213,
65,
3627,
65,
579,
4,
188,
187,
4099,
563,
721,
312,
2213,
65,
5700,
423,
65,
689,
4,
188,
187,
3627,
37703,
721,
312,
2213,
65,
3627,
65,
311,
4,
188,
187,
285,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
20,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
21,
63,
875,
10697,
4755,
613,
489,
43812,
6484,
3959,
61,
22,
63,
275,
188,
187,
187,
8041,
563,
260,
312,
2594,
65,
3627,
65,
579,
4,
188,
187,
187,
3627,
37703,
260,
312,
2594,
65,
3627,
65,
311,
4,
188,
187,
187,
4099,
563,
260,
312,
2594,
65,
5700,
423,
65,
689,
4,
188,
187,
95,
188,
187,
13020,
721,
2764,
16,
5696,
435,
5371,
4962,
10,
4383,
65,
1157,
11,
6414,
690,
85,
12932,
690,
85,
13470,
5700,
423,
65,
689,
2824,
690,
85,
13470,
3627,
65,
579,
2824,
690,
85,
13470,
3627,
65,
311,
347,
188,
187,
187,
8041,
4755,
613,
14,
23978,
563,
14,
10697,
563,
14,
3491,
37703,
11,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
3654,
16,
4755,
810,
14,
188,
187,
187,
4,
3627,
65,
579,
788,
3654,
16,
23796,
14,
188,
187,
187,
4,
3627,
65,
311,
788,
209,
209,
3654,
16,
1700,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
257,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
12987,
16,
38362,
535,
10,
2828,
16,
21560,
16,
7011,
61,
18,
1811,
18,
630,
257,
11,
188,
187,
397,
7176,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
4648,
6295,
10,
84,
258,
1635,
16,
1222,
11,
1397,
4648,
2343,
275,
188,
187,
3364,
721,
6538,
16,
7606,
10,
84,
11,
188,
187,
2640,
721,
23133,
16,
86,
16,
1388,
10,
3364,
14,
9714,
4648,
2343,
16,
2343,
11,
188,
187,
285,
3426,
598,
3985,
275,
188,
187,
187,
5173,
4648,
2343,
16,
2948,
260,
3426,
188,
187,
95,
188,
187,
397,
1397,
4648,
2343,
93,
188,
187,
187,
5173,
4648,
2343,
14,
188,
187,
95,
188,
95,
188,
188,
1857,
4772,
5173,
2343,
10,
17975,
258,
7653,
14,
5746,
810,
776,
14,
24271,
14,
35844,
388,
535,
11,
6784,
530,
14,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
22591,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
36146,
14,
1639,
452,
188,
187,
13020,
721,
312,
5371,
5390,
65,
579,
358,
2060,
6414,
5390,
65,
3627,
65,
1091,
12932,
7918,
423,
65,
689,
13470,
5700,
423,
65,
689,
21186,
2765,
5390,
65,
579,
358,
2060,
4,
188,
187,
1830,
2911,
721,
1929,
61,
530,
63,
3314,
14582,
188,
187,
187,
4,
5700,
423,
65,
689,
788,
5746,
810,
14,
188,
187,
95,
188,
187,
2828,
14,
497,
721,
23133,
16,
8041,
83,
16,
2066,
435,
48763,
1957,
347,
8780,
14,
3599,
2911,
14,
10810,
2911,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
2518,
721,
2468,
16,
21560,
16,
7011,
188,
187,
828,
2513,
1658,
1397,
530,
188,
187,
529,
2426,
700,
721,
2068,
7176,
275,
188,
187,
187,
1386,
1658,
260,
3343,
10,
1386,
1658,
14,
12987,
16,
5502,
10,
579,
61,
18,
5293,
188,
187,
95,
188,
187,
397,
2513,
1658,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
2544,
3158,
20535,
1175,
10,
84,
258,
1635,
16,
1222,
14,
3654,
40527,
11,
38870,
1175,
14,
790,
11,
275,
188,
187,
5421,
721,
23133,
16,
901,
20535,
10,
1989,
11,
188,
188,
187,
16085,
14,
497,
721,
23133,
16,
901,
11664,
10,
1791,
16,
7606,
10,
84,
399,
3654,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
529,
2426,
1575,
721,
2068,
5549,
275,
188,
187,
187,
689,
721,
1575,
16,
1700,
810,
188,
187,
187,
3627,
11664,
721,
10033,
61,
689,
63,
188,
187,
187,
529,
2426,
2136,
721,
2068,
3491,
11664,
275,
188,
350,
187,
285,
2136,
16,
1700,
810,
489,
1575,
16,
1700,
810,
275,
188,
2054,
187,
285,
2136,
16,
28642,
489,
312,
8990,
4,
275,
188,
1263,
187,
1091,
16,
6484,
16,
12247,
1159,
352,
188,
2054,
187,
95,
730,
275,
188,
1263,
187,
1091,
16,
6484,
16,
19226,
1159,
352,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
5549,
14,
869,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
20277,
10,
28115,
776,
14,
5549,
8112,
1175,
11,
1397,
1700,
24754,
275,
188,
187,
828,
3491,
24754,
85,
1397,
1700,
24754,
188,
187,
529,
2426,
1575,
721,
2068,
5549,
275,
188,
187,
187,
285,
1575,
16,
23796,
489,
3985,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
285,
31089,
598,
3985,
692,
504,
6137,
16,
7978,
10,
1091,
16,
23796,
14,
31089,
11,
275,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
828,
3491,
24754,
6569,
24754,
188,
187,
187,
3627,
24754,
16,
613,
260,
1575,
16,
23796,
188,
187,
187,
3627,
24754,
16,
7351,
1632,
260,
1575,
16,
6484,
16,
1632,
188,
187,
187,
3627,
24754,
16,
7351,
914,
1632,
260,
1575,
16,
6484,
16,
4120,
914,
188,
187,
187,
3627,
24754,
16,
1156,
260,
384,
10755,
8833,
4442,
3071,
10,
1091,
16,
6484,
16,
2172,
11,
188,
187,
187,
3627,
24754,
16,
4377,
2146,
1632,
260,
2764,
16,
5696,
3297,
88,
347,
1575,
16,
6484,
16,
12247,
11,
188,
187,
187,
3627,
24754,
16,
4382,
810,
260,
1575,
16,
4382,
810,
188,
187,
187,
3627,
24754,
16,
810,
260,
1575,
16,
1700,
810,
188,
187,
187,
3627,
24754,
16,
4382,
613,
260,
1575,
16,
4382,
613,
188,
187,
187,
3627,
24754,
16,
5173,
810,
260,
1575,
16,
5173,
810,
188,
187,
187,
3627,
24754,
16,
5173,
613,
260,
1575,
16,
5173,
613,
188,
187,
187,
3627,
24754,
85,
260,
3343,
10,
3627,
24754,
85,
14,
3491,
24754,
11,
188,
187,
95,
188,
187,
397,
3491,
24754,
85,
188,
95,
188,
188,
558,
6569,
2146,
603,
275,
188,
187,
5173,
613,
209,
209,
209,
209,
776,
1083,
1894,
1172,
5853,
613,
14,
4213,
2537,
188,
187,
1700,
810,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
3627,
810,
14,
4213,
2537,
188,
187,
23796,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
28115,
14,
4213,
2537,
188,
187,
1700,
43123,
776,
1083,
1894,
1172,
3627,
43123,
14,
4213,
2537,
188,
187,
1700,
20180,
209,
209,
776,
1083,
1894,
1172,
3627,
20180,
14,
4213,
2537,
188,
187,
28642,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
2989,
1142,
14,
4213,
2537,
188,
187,
6821,
2013,
209,
209,
209,
209,
776,
1083,
1894,
1172,
4050,
2013,
14,
4213,
2537,
188,
187,
17118,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
776,
1083,
1894,
1172,
22591,
14,
4213,
2537,
188,
187,
3911,
34779,
1136,
209,
209,
776,
1083,
1894,
1172,
2153,
34779,
1136,
14,
4213,
2537,
188,
95,
188,
188,
1857,
280,
17975,
258,
7653,
11,
1301,
11664,
10,
7547,
368,
927,
80,
16,
7606,
13230,
14,
3654,
40527,
11,
280,
806,
61,
530,
22209,
1700,
2146,
14,
790,
11,
275,
188,
187,
10395,
2911,
721,
4231,
16,
3589,
2475,
188,
187,
10395,
2911,
16,
853,
435,
1182,
347,
12601,
16,
2051,
1355,
10,
1989,
16,
17118,
14,
1639,
452,
188,
187,
10395,
2911,
16,
853,
435,
417,
347,
12601,
16,
2051,
1355,
10,
1149,
16,
8176,
1033,
23642,
23414,
19,
71
] |
72,779 | package arc
import (
"context"
"fmt"
"math"
"time"
"chromiumos/tast/errors"
"chromiumos/tast/local/android/ui"
"chromiumos/tast/local/arc"
"chromiumos/tast/local/chrome"
"chromiumos/tast/local/chrome/ash"
"chromiumos/tast/local/chrome/display"
chromeui "chromiumos/tast/local/chrome/ui"
"chromiumos/tast/local/chrome/ui/mouse"
"chromiumos/tast/local/chrome/ui/quicksettings"
"chromiumos/tast/local/coords"
"chromiumos/tast/local/input"
"chromiumos/tast/local/screenshot"
"chromiumos/tast/testing"
)
const (
pipTestPkgName = "org.chromium.arc.testapp.pictureinpicture"
collisionWindowWorkAreaInsetsDP = 8
pipPositionErrorMarginPX = 3
missedByGestureControllerDP = 50
)
type borderType int
const (
left borderType = iota
right
top
bottom
)
type initializationType uint
const (
doNothing initializationType = iota
startActivity
enterPip
)
type pipTestFunc func(context.Context, *chrome.TestConn, *arc.ARC, *arc.Activity, *ui.Device, *display.DisplayMode) error
type pipTestParams struct {
name string
fn pipTestFunc
initMethod initializationType
}
var pipTests = []pipTestParams{
{name: "PIP Move", fn: testPIPMove, initMethod: enterPip},
{name: "PIP Resize To Max", fn: testPIPResizeToMax, initMethod: enterPip},
{name: "PIP GravityQuickSettings", fn: testPIPGravityQuickSettings, initMethod: enterPip},
{name: "PIP AutoPIP New Chrome Window", fn: testPIPAutoPIPNewChromeWindow, initMethod: startActivity},
{name: "PIP AutoPIP New Android Window", fn: testPIPAutoPIPNewAndroidWindow, initMethod: doNothing},
{name: "PIP AutoPIP Minimize", fn: testPIPAutoPIPMinimize, initMethod: startActivity},
{name: "PIP ExpandPIP Shelf Icon", fn: testPIPExpandViaShelfIcon, initMethod: startActivity},
{name: "PIP ExpandPIP Menu Touch", fn: testPIPExpandViaMenuTouch, initMethod: startActivity},
{name: "PIP Toggle Tablet mode", fn: testPIPToggleTabletMode, initMethod: enterPip},
}
func init() {
testing.AddTest(&testing.Test{
Func: PIP,
Desc: "Checks that ARC++ Picture-in-Picture works as expected",
Contacts: []string{"[email protected]", "[email protected]"},
Attr: []string{"group:mainline", "informational"},
SoftwareDeps: []string{"chrome"},
Pre: arc.Booted(),
Timeout: 5 * time.Minute,
Params: []testing.Param{{
Val: pipTests,
ExtraSoftwareDeps: []string{"android_p"},
}, {
Name: "vm",
Val: pipTests,
ExtraSoftwareDeps: []string{"android_vm"},
}},
})
}
func PIP(ctx context.Context, s *testing.State) {
must := func(err error) {
if err != nil {
s.Fatal("Failed: ", err)
}
}
cr := s.PreValue().(arc.PreData).Chrome
tconn, err := cr.TestAPIConn(ctx)
if err != nil {
s.Fatal("Failed to create Test API connection: ", err)
}
a := s.PreValue().(arc.PreData).ARC
const apkName = "ArcPipTest.apk"
s.Log("Installing ", apkName)
if err := a.Install(ctx, arc.APKPath(apkName)); err != nil {
s.Fatal("Failed installing app: ", err)
}
pipAct, err := arc.NewActivity(a, pipTestPkgName, ".PipActivity")
if err != nil {
s.Fatal("Failed to create PIP activity: ", err)
}
defer pipAct.Close()
maPIPBaseAct, err := arc.NewActivity(a, pipTestPkgName, ".MaPipBaseActivity")
if err != nil {
s.Fatal("Failed to create multi activity PIP base activity: ", err)
}
defer maPIPBaseAct.Close()
dev, err := a.NewUIDevice(ctx)
if err != nil {
s.Fatal("Failed initializing UI Automator: ", err)
}
defer dev.Close(ctx)
dispInfo, err := display.GetInternalInfo(ctx, tconn)
if err != nil {
s.Fatal("Failed to get internal display info: ", err)
}
origShelfAlignment, err := ash.GetShelfAlignment(ctx, tconn, dispInfo.ID)
if err != nil {
s.Fatal("Failed to get shelf alignment: ", err)
}
if err := ash.SetShelfAlignment(ctx, tconn, dispInfo.ID, ash.ShelfAlignmentBottom); err != nil {
s.Fatal("Failed to set shelf alignment to Bottom: ", err)
}
defer ash.SetShelfAlignment(ctx, tconn, dispInfo.ID, origShelfAlignment)
origShelfBehavior, err := ash.GetShelfBehavior(ctx, tconn, dispInfo.ID)
if err != nil {
s.Fatal("Failed to get shelf behavior: ", err)
}
if err := ash.SetShelfBehavior(ctx, tconn, dispInfo.ID, ash.ShelfBehaviorNeverAutoHide); err != nil {
s.Fatal("Failed to set shelf behavior to Never Auto Hide: ", err)
}
defer ash.SetShelfBehavior(ctx, tconn, dispInfo.ID, origShelfBehavior)
tabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
s.Fatal("Failed to get tablet mode: ", err)
}
defer ash.SetTabletModeEnabled(ctx, tconn, tabletModeEnabled)
dispMode, err := ash.InternalDisplayMode(ctx, tconn)
if err != nil {
s.Fatal("Failed to get display mode: ", err)
}
tabletModes := []bool{false, true}
enableMultiActivityPIP := []bool{true, false}
sdkVer, err := arc.SDKVersion()
if err != nil {
s.Fatal("Failed to get the SDK version: ", err)
}
for _, tabletMode := range tabletModes {
s.Logf("Running tests with tablet mode enabled=%t", tabletMode)
if err := ash.SetTabletModeEnabled(ctx, tconn, tabletMode); err != nil {
s.Fatalf("Failed to set tablet mode enabled to %t: %v", tabletMode, err)
}
for _, multiActivityPIP := range enableMultiActivityPIP {
if !multiActivityPIP && tabletMode && sdkVer == arc.SDKR {
continue
}
s.Logf("Running tests with tablet mode enabled=%t and MAPIP enabled=%t", tabletMode, multiActivityPIP)
for idx, test := range s.Param().([]pipTestParams) {
testing.ContextLog(ctx, "About to run test: ", test.name)
if test.initMethod == startActivity || test.initMethod == enterPip {
if multiActivityPIP {
must(maPIPBaseAct.Start(ctx, tconn))
}
must(pipAct.Start(ctx, tconn))
if multiActivityPIP {
if err := testing.Sleep(ctx, time.Second); err != nil {
s.Fatal("Failed to sleep waiting for MAPIP: ", err)
}
}
}
if test.initMethod == enterPip {
testing.ContextLog(ctx, "Test requires PIP initial state, entering PIP via minimize")
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
s.Fatal("Failed to minimize app into PIP: ", err)
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
s.Fatal("Did not enter PIP mode: ", err)
}
}
if err := test.fn(ctx, tconn, a, pipAct, dev, dispMode); err != nil {
path := fmt.Sprintf("%s/screenshot-pip-failed-test-%d.png", s.OutDir(), idx)
if err := screenshot.CaptureChrome(ctx, cr, path); err != nil {
s.Log("Failed to capture screenshot: ", err)
}
s.Errorf("%s test with tablet mode(%t) and multi-activity(%t) failed: %v", test.name, tabletMode, multiActivityPIP, err)
}
must(pipAct.Stop(ctx, tconn))
if multiActivityPIP {
must(maPIPBaseAct.Stop(ctx, tconn))
}
}
}
}
}
func testPIPMove(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
const (
movementDuration = 2 * time.Second
totalMovements = 3
)
missedByGestureControllerPX := int(math.Round(missedByGestureControllerDP * dispMode.DeviceScaleFactor))
testing.ContextLog(ctx, "Using: missedByGestureControllerPX = ", missedByGestureControllerPX)
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "failed to wait for PIP window")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Initial PIP bounds: %+v", origBounds)
deltaX := dispMode.WidthInNativePixels / (totalMovements + 1)
for i := 0; i < totalMovements; i++ {
newWindow, err := getPIPWindow(ctx, tconn)
movedBounds := coords.ConvertBoundsFromDPToPX(newWindow.BoundsInRoot, dispMode.DeviceScaleFactor)
newBounds := movedBounds
newBounds.Left -= deltaX
if err := pipAct.MoveWindow(ctx, tconn, movementDuration, newBounds, movedBounds); err != nil {
return errors.Wrap(err, "could not move PIP window")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, newBounds.Left, left, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX+missedByGestureControllerPX); err != nil {
return errors.Wrap(err, "failed to move PIP to left")
}
}
return nil
}
func testPIPResizeToMax(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
if err := dev.PressKeyCode(ctx, ui.KEYCODE_WINDOW, 0); err != nil {
return errors.Wrap(err, "could not activate PIP menu")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Bounds before resize: %+v", bounds)
testing.ContextLog(ctx, "Resizing window to x=0, y=0")
if err := pipAct.ResizeWindow(ctx, tconn, arc.BorderTopLeft, coords.NewPoint(0, 0), time.Second); err != nil {
return errors.Wrap(err, "could not resize PIP window")
}
window, err = getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds = coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
const pipMaxSizeFactor = 2
if dispMode.HeightInNativePixels < dispMode.WidthInNativePixels {
if bounds.Height > dispMode.HeightInNativePixels/pipMaxSizeFactor+pipPositionErrorMarginPX {
return errors.Wrap(err, "the maximum size of the PIP window must be half of the display height")
}
} else {
if bounds.Width > dispMode.WidthInNativePixels/pipMaxSizeFactor+pipPositionErrorMarginPX {
return errors.Wrap(err, "the maximum size of the PIP window must be half of the display width")
}
}
return nil
}
func testPIPGravityQuickSettings(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
collisionWindowWorkAreaInsetsPX := int(math.Round(collisionWindowWorkAreaInsetsDP * dispMode.DeviceScaleFactor))
testing.ContextLog(ctx, "Using: collisionWindowWorkAreaInsetsPX = ", collisionWindowWorkAreaInsetsPX)
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "failed to wait for PIP window")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
if err = waitForNewBoundsWithMargin(ctx, tconn, dispMode.WidthInNativePixels-collisionWindowWorkAreaInsetsPX, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must be along the right edge of the display")
}
testing.ContextLog(ctx, "Showing Quick Settings area")
if err := quicksettings.Show(ctx, tconn); err != nil {
return err
}
defer quicksettings.Hide(ctx, tconn)
statusRectDP, err := quicksettings.Rect(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get quick settings rect")
}
statusLeftPX := int(math.Round(float64(statusRectDP.Left) * dispMode.DeviceScaleFactor))
if err = waitForNewBoundsWithMargin(ctx, tconn, statusLeftPX-collisionWindowWorkAreaInsetsPX, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must move to the left when Quick Settings gets shown")
}
testing.ContextLog(ctx, "Dismissing Quick Settings")
if err := quicksettings.Hide(ctx, tconn); err != nil {
return err
}
if err = waitForNewBoundsWithMargin(ctx, tconn, bounds.Left+bounds.Width, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must go back to the original position when Quick Settings gets hidden")
}
return nil
}
func testPIPToggleTabletMode(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
destBounds := coords.NewRect(origBounds.Left, 0, origBounds.Width, origBounds.Height)
if err := act.MoveWindow(ctx, tconn, time.Second, destBounds, origBounds); err != nil {
return errors.Wrap(err, "could not move PIP window")
}
missedByGestureControllerPX := int(math.Round(missedByGestureControllerDP * dispMode.DeviceScaleFactor))
if err = waitForNewBoundsWithMargin(ctx, tconn, 0, top, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX+missedByGestureControllerPX); err != nil {
return errors.Wrap(err, "failed to move PIP to left")
}
window, err = getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds = coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Initial bounds: %+v", origBounds)
tabletEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.New("failed to get whether tablet mode is enabled")
}
defer ash.SetTabletModeEnabled(ctx, tconn, tabletEnabled)
testing.Sleep(ctx, time.Second)
testing.ContextLogf(ctx, "Setting 'tablet mode enabled = %t'", !tabletEnabled)
if err := ash.SetTabletModeEnabled(ctx, tconn, !tabletEnabled); err != nil {
return errors.New("failed to set tablet mode")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, origBounds.Left, left, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "failed swipe to left")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, origBounds.Top, top, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "failed swipe to left")
}
return nil
}
func testPIPAutoPIPMinimize(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to set window state to minimized")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP")
}
return nil
}
func minimizePIP(ctx context.Context, tconn *chrome.TestConn, pipAct *arc.Activity) error {
if err := pipAct.SetWindowState(ctx, tconn, arc.WindowStateMinimized); err != nil {
return errors.Wrap(err, "failed to set window state to minimized")
}
return nil
}
func testPIPExpandViaMenuTouch(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
isTabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get tablet mode")
}
initialWindowState := arc.WindowStateNormal
if isTabletModeEnabled {
initialWindowState = arc.WindowStateMaximized
}
initialAshWindowState, err := initialWindowState.ToAshWindowState()
if err != nil {
return errors.Wrap(err, "failed to get ash window state")
}
if err := pipAct.SetWindowState(ctx, tconn, initialWindowState); err != nil {
return errors.Wrap(err, "failed to set initial window state")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState); err != nil {
return errors.Wrap(err, "did not enter initial window state")
}
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to minimize app into PIP")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP mode")
}
if err := expandPIPViaMenuTouch(ctx, tconn, pipAct, dev, dispMode, initialAshWindowState); err != nil {
return errors.Wrap(err, "could not expand PIP")
}
return ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState)
}
func testPIPExpandViaShelfIcon(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
isTabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get tablet mode")
}
initialWindowState := arc.WindowStateNormal
if isTabletModeEnabled {
initialWindowState = arc.WindowStateMaximized
}
initialAshWindowState, err := initialWindowState.ToAshWindowState()
if err != nil {
return errors.Wrap(err, "failed to get ash window state")
}
if err := pipAct.SetWindowState(ctx, tconn, initialWindowState); err != nil {
return errors.Wrap(err, "failed to set initial window state")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState); err != nil {
return errors.Wrap(err, "did not enter initial window state")
}
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to minimize app into PIP")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP mode")
}
if err := pressShelfIcon(ctx, tconn); err != nil {
return errors.Wrap(err, "could not expand PIP")
}
return ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState)
}
func testPIPAutoPIPNewAndroidWindow(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
const (
settingPkgName = "com.android.settings"
settingActName = ".Settings"
)
settingAct, err := arc.NewActivity(a, settingPkgName, settingActName)
if err != nil {
return errors.Wrap(err, "could not create Settings Activity")
}
defer settingAct.Close()
if err := settingAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start Settings Activity")
}
defer settingAct.Stop(ctx, tconn)
if err := settingAct.SetWindowState(ctx, tconn, arc.WindowStateMaximized); err != nil {
return errors.Wrap(err, "failed to set window state of Settings Activity to maximized")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, settingPkgName, ash.WindowStateMaximized); err != nil {
return errors.Wrap(err, "did not maximize")
}
if err := settingAct.Stop(ctx, tconn); err != nil {
return errors.Wrap(err, "could not stop Settings Activity while setting initial window state")
}
if err := pipAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start MainActivity")
}
if err := settingAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start Settings Activity")
}
return waitForPIPWindow(ctx, tconn)
}
func testPIPAutoPIPNewChromeWindow(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
if err := tconn.Eval(ctx, `tast.promisify(chrome.windows.create)({state: "maximized"})`, nil); err != nil {
return errors.Wrap(err, "could not open maximized Chrome window")
}
defer tconn.Call(ctx, nil, `async () => {
let window = await tast.promisify(chrome.windows.getLastFocused)({});
await tast.promisify(chrome.windows.remove)(window.id);
}`)
return waitForPIPWindow(ctx, tconn)
}
func expandPIPViaMenuTouch(ctx context.Context, tconn *chrome.TestConn, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode, restoreWindowState ash.WindowStateType) error {
sdkVer, err := arc.SDKVersion()
if err != nil {
return errors.Wrap(err, "failed to get the SDK version")
}
switch sdkVer {
case arc.SDKP:
return expandPIPViaMenuTouchP(ctx, tconn, act, dev, dispMode, restoreWindowState)
case arc.SDKR:
return expandPIPViaMenuTouchR(ctx, tconn, restoreWindowState)
default:
return errors.Errorf("unsupported SDK version: %d", sdkVer)
}
}
func expandPIPViaMenuTouchP(ctx context.Context, tconn *chrome.TestConn, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode, restoreWindowState ash.WindowStateType) error {
tsw, err := input.Touchscreen(ctx)
if err != nil {
return errors.Wrap(err, "failed to open touchscreen device")
}
defer tsw.Close()
stw, err := tsw.NewSingleTouchWriter()
if err != nil {
return errors.Wrap(err, "could not create TouchEventWriter")
}
defer stw.Close()
dispW := dispMode.WidthInNativePixels
dispH := dispMode.HeightInNativePixels
pixelToTuxelX := float64(tsw.Width()) / float64(dispW)
pixelToTuxelY := float64(tsw.Height()) / float64(dispH)
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window bounds")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
pixelX := float64(bounds.Left + bounds.Width/2)
pixelY := float64(bounds.Top + bounds.Height/2)
x := input.TouchCoord(pixelX * pixelToTuxelX)
y := input.TouchCoord(pixelY * pixelToTuxelY)
testing.ContextLogf(ctx, "Injecting touch event to {%f, %f} to expand PIP; display {%d, %d}, PIP bounds {(%d, %d), %dx%d}",
pixelX, pixelY, dispW, dispH, bounds.Left, bounds.Top, bounds.Width, bounds.Height)
return testing.Poll(ctx, func(ctx context.Context) error {
if err := stw.Move(x, y); err != nil {
return errors.Wrap(err, "failed to execute touch gesture")
}
if err := stw.End(); err != nil {
return errors.Wrap(err, "failed to finish swipe gesture")
}
windowState, err := ash.GetARCAppWindowState(ctx, tconn, pipTestPkgName)
if err != nil {
return testing.PollBreak(errors.Wrap(err, "failed to get Ash window state"))
}
if windowState != restoreWindowState {
return errors.New("the window isn't expanded yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second, Interval: 500 * time.Millisecond})
}
func expandPIPViaMenuTouchR(ctx context.Context, tconn *chrome.TestConn, restoreWindowState ash.WindowStateType) error {
return testing.Poll(ctx, func(ctx context.Context) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return testing.PollBreak(errors.Wrap(err, "could not get PIP window bounds"))
}
bounds := window.BoundsInRoot
if err := mouse.Move(ctx, tconn, coords.NewPoint(bounds.Left+bounds.Width/2, bounds.Top+bounds.Height/2), 0); err != nil {
return testing.PollBreak(err)
}
if err := testing.Sleep(ctx, time.Second); err != nil {
return testing.PollBreak(err)
}
if err := mouse.Press(ctx, tconn, mouse.LeftButton); err != nil {
return testing.PollBreak(err)
}
if err := mouse.Release(ctx, tconn, mouse.LeftButton); err != nil {
return testing.PollBreak(err)
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipTestPkgName, restoreWindowState); err != nil {
return errors.Wrap(err, "did not expand to restore window state")
}
return nil
}, &testing.PollOptions{Timeout: 20 * time.Second, Interval: 500 * time.Millisecond})
}
func waitForPIPWindow(ctx context.Context, tconn *chrome.TestConn) error {
return testing.Poll(ctx, func(ctx context.Context) error {
_, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "the PIP window hasn't been created yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second})
}
func getPIPWindow(ctx context.Context, tconn *chrome.TestConn) (*ash.Window, error) {
return ash.FindWindow(ctx, tconn, func(w *ash.Window) bool { return w.State == ash.WindowStatePIP })
}
func pressShelfIcon(ctx context.Context, tconn *chrome.TestConn) error {
var icon *chromeui.Node
if err := testing.Poll(ctx, func(ctx context.Context) error {
var err error
icon, err = chromeui.FindWithTimeout(ctx, tconn, chromeui.FindParams{Name: "ArcPipTest", ClassName: "ash/ShelfAppButton"}, 15*time.Second)
if err != nil {
return errors.Wrap(err, "no shelf icon has been created yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second}); err != nil {
return errors.Wrap(err, "failed to locate shelf icons")
}
defer icon.Release(ctx)
return icon.LeftClick(ctx)
}
func waitForNewBoundsWithMargin(ctx context.Context, tconn *chrome.TestConn, expectedValue int, border borderType, dsf float64, margin int) error {
return testing.Poll(ctx, func(ctx context.Context) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.New("failed to Get PIP window")
}
bounds := window.BoundsInRoot
isAnimating := window.IsAnimating
if isAnimating {
return errors.New("the window is still animating")
}
var currentValue int
switch border {
case left:
currentValue = int(math.Round(float64(bounds.Left) * dsf))
case top:
currentValue = int(math.Round(float64(bounds.Top) * dsf))
case right:
currentValue = int(math.Round(float64(bounds.Left+bounds.Width) * dsf))
case bottom:
currentValue = int(math.Round(float64(bounds.Top+bounds.Height) * dsf))
default:
return testing.PollBreak(errors.Errorf("unknown border type %v", border))
}
if int(math.Abs(float64(expectedValue-currentValue))) > margin {
return errors.Errorf("the PIP window doesn't have the expected bounds yet; got %d, want %d", currentValue, expectedValue)
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second})
} | // Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package arc
import (
"context"
"fmt"
"math"
"time"
"chromiumos/tast/errors"
"chromiumos/tast/local/android/ui"
"chromiumos/tast/local/arc"
"chromiumos/tast/local/chrome"
"chromiumos/tast/local/chrome/ash"
"chromiumos/tast/local/chrome/display"
chromeui "chromiumos/tast/local/chrome/ui"
"chromiumos/tast/local/chrome/ui/mouse"
"chromiumos/tast/local/chrome/ui/quicksettings"
"chromiumos/tast/local/coords"
"chromiumos/tast/local/input"
"chromiumos/tast/local/screenshot"
"chromiumos/tast/testing"
)
const (
pipTestPkgName = "org.chromium.arc.testapp.pictureinpicture"
// kCollisionWindowWorkAreaInsetsDp is hardcoded to 8dp.
// See: https://cs.chromium.org/chromium/src/ash/wm/collision_detection/collision_detection_utils.h
// TODO(crbug.com/949754): Get this value in runtime.
collisionWindowWorkAreaInsetsDP = 8
// pipPositionErrorMarginPX represents the error margin in pixels when comparing positions.
// With some calculation, we expect the error could be a maximum of 2 pixels, but we use 1-pixel larger value just in case.
// See b/129976114 for more info.
// TODO(ricardoq): Remove this constant once the bug gets fixed.
pipPositionErrorMarginPX = 3
// When the drag-move sequence is started, the gesture controller might miss a few pixels before it finally
// recognizes it as a drag-move gesture. This is specially true for PIP windows.
// The value varies depending on acceleration/speed of the gesture. 35 works for our purpose.
missedByGestureControllerDP = 50
)
type borderType int
const (
left borderType = iota
right
top
bottom
)
type initializationType uint
const (
doNothing initializationType = iota
startActivity
enterPip
)
type pipTestFunc func(context.Context, *chrome.TestConn, *arc.ARC, *arc.Activity, *ui.Device, *display.DisplayMode) error
type pipTestParams struct {
name string
fn pipTestFunc
initMethod initializationType
}
var pipTests = []pipTestParams{
{name: "PIP Move", fn: testPIPMove, initMethod: enterPip},
{name: "PIP Resize To Max", fn: testPIPResizeToMax, initMethod: enterPip},
{name: "PIP GravityQuickSettings", fn: testPIPGravityQuickSettings, initMethod: enterPip},
{name: "PIP AutoPIP New Chrome Window", fn: testPIPAutoPIPNewChromeWindow, initMethod: startActivity},
{name: "PIP AutoPIP New Android Window", fn: testPIPAutoPIPNewAndroidWindow, initMethod: doNothing},
{name: "PIP AutoPIP Minimize", fn: testPIPAutoPIPMinimize, initMethod: startActivity},
{name: "PIP ExpandPIP Shelf Icon", fn: testPIPExpandViaShelfIcon, initMethod: startActivity},
{name: "PIP ExpandPIP Menu Touch", fn: testPIPExpandViaMenuTouch, initMethod: startActivity},
{name: "PIP Toggle Tablet mode", fn: testPIPToggleTabletMode, initMethod: enterPip},
}
func init() {
testing.AddTest(&testing.Test{
Func: PIP,
Desc: "Checks that ARC++ Picture-in-Picture works as expected",
Contacts: []string{"[email protected]", "[email protected]"},
Attr: []string{"group:mainline", "informational"},
SoftwareDeps: []string{"chrome"},
Pre: arc.Booted(),
Timeout: 5 * time.Minute,
Params: []testing.Param{{
Val: pipTests,
ExtraSoftwareDeps: []string{"android_p"},
}, {
Name: "vm",
Val: pipTests,
ExtraSoftwareDeps: []string{"android_vm"},
}},
})
}
func PIP(ctx context.Context, s *testing.State) {
// TODO(takise): This can hide the line number on which the test actually fails. Remove this.
must := func(err error) {
if err != nil {
s.Fatal("Failed: ", err)
}
}
// For debugging, create a Chrome session with chrome.ExtraArgs("--show-taps")
cr := s.PreValue().(arc.PreData).Chrome
tconn, err := cr.TestAPIConn(ctx)
if err != nil {
s.Fatal("Failed to create Test API connection: ", err)
}
a := s.PreValue().(arc.PreData).ARC
const apkName = "ArcPipTest.apk"
s.Log("Installing ", apkName)
if err := a.Install(ctx, arc.APKPath(apkName)); err != nil {
s.Fatal("Failed installing app: ", err)
}
pipAct, err := arc.NewActivity(a, pipTestPkgName, ".PipActivity")
if err != nil {
s.Fatal("Failed to create PIP activity: ", err)
}
defer pipAct.Close()
maPIPBaseAct, err := arc.NewActivity(a, pipTestPkgName, ".MaPipBaseActivity")
if err != nil {
s.Fatal("Failed to create multi activity PIP base activity: ", err)
}
defer maPIPBaseAct.Close()
dev, err := a.NewUIDevice(ctx)
if err != nil {
s.Fatal("Failed initializing UI Automator: ", err)
}
defer dev.Close(ctx)
dispInfo, err := display.GetInternalInfo(ctx, tconn)
if err != nil {
s.Fatal("Failed to get internal display info: ", err)
}
origShelfAlignment, err := ash.GetShelfAlignment(ctx, tconn, dispInfo.ID)
if err != nil {
s.Fatal("Failed to get shelf alignment: ", err)
}
if err := ash.SetShelfAlignment(ctx, tconn, dispInfo.ID, ash.ShelfAlignmentBottom); err != nil {
s.Fatal("Failed to set shelf alignment to Bottom: ", err)
}
// Be nice and restore shelf alignment to its original state on exit.
defer ash.SetShelfAlignment(ctx, tconn, dispInfo.ID, origShelfAlignment)
origShelfBehavior, err := ash.GetShelfBehavior(ctx, tconn, dispInfo.ID)
if err != nil {
s.Fatal("Failed to get shelf behavior: ", err)
}
if err := ash.SetShelfBehavior(ctx, tconn, dispInfo.ID, ash.ShelfBehaviorNeverAutoHide); err != nil {
s.Fatal("Failed to set shelf behavior to Never Auto Hide: ", err)
}
// Be nice and restore shelf behavior to its original state on exit.
defer ash.SetShelfBehavior(ctx, tconn, dispInfo.ID, origShelfBehavior)
tabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
s.Fatal("Failed to get tablet mode: ", err)
}
// Be nice and restore tablet mode to its original state on exit.
defer ash.SetTabletModeEnabled(ctx, tconn, tabletModeEnabled)
dispMode, err := ash.InternalDisplayMode(ctx, tconn)
if err != nil {
s.Fatal("Failed to get display mode: ", err)
}
tabletModes := []bool{false, true}
enableMultiActivityPIP := []bool{true, false}
sdkVer, err := arc.SDKVersion()
if err != nil {
s.Fatal("Failed to get the SDK version: ", err)
}
// Run all subtests twice. First, with tablet mode disabled. And then, with it enabled.
for _, tabletMode := range tabletModes {
s.Logf("Running tests with tablet mode enabled=%t", tabletMode)
if err := ash.SetTabletModeEnabled(ctx, tconn, tabletMode); err != nil {
s.Fatalf("Failed to set tablet mode enabled to %t: %v", tabletMode, err)
}
// There are two types of PIP: single activity PIP and multi activity PIP. Run each test with both types by default.
for _, multiActivityPIP := range enableMultiActivityPIP {
if !multiActivityPIP && tabletMode && sdkVer == arc.SDKR {
// TODO(b:156685602) There are still some tests not yet working in tablet mode. Remove these checks once R is fully working.
continue
}
s.Logf("Running tests with tablet mode enabled=%t and MAPIP enabled=%t", tabletMode, multiActivityPIP)
for idx, test := range s.Param().([]pipTestParams) {
testing.ContextLog(ctx, "About to run test: ", test.name)
if test.initMethod == startActivity || test.initMethod == enterPip {
if multiActivityPIP {
must(maPIPBaseAct.Start(ctx, tconn))
}
must(pipAct.Start(ctx, tconn))
if multiActivityPIP {
// Wait for pipAct to finish settling on top of the base activity. Minimize could be called before on the base activity
// otherwise.
if err := testing.Sleep(ctx, time.Second); err != nil {
s.Fatal("Failed to sleep waiting for MAPIP: ", err)
}
}
}
if test.initMethod == enterPip {
// Make the app PIP via minimize.
// We have some other ways to PIP an app, but for now this is the most reliable.
testing.ContextLog(ctx, "Test requires PIP initial state, entering PIP via minimize")
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
s.Fatal("Failed to minimize app into PIP: ", err)
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
s.Fatal("Did not enter PIP mode: ", err)
}
}
if err := test.fn(ctx, tconn, a, pipAct, dev, dispMode); err != nil {
path := fmt.Sprintf("%s/screenshot-pip-failed-test-%d.png", s.OutDir(), idx)
if err := screenshot.CaptureChrome(ctx, cr, path); err != nil {
s.Log("Failed to capture screenshot: ", err)
}
s.Errorf("%s test with tablet mode(%t) and multi-activity(%t) failed: %v", test.name, tabletMode, multiActivityPIP, err)
}
must(pipAct.Stop(ctx, tconn))
if multiActivityPIP {
must(maPIPBaseAct.Stop(ctx, tconn))
}
}
}
}
}
// testPIPMove verifies that drag-moving the PIP window works as expected.
// It does that by drag-moving that PIP window horizontally 3 times and verifying that the position is correct.
func testPIPMove(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
const (
movementDuration = 2 * time.Second
totalMovements = 3
)
missedByGestureControllerPX := int(math.Round(missedByGestureControllerDP * dispMode.DeviceScaleFactor))
testing.ContextLog(ctx, "Using: missedByGestureControllerPX = ", missedByGestureControllerPX)
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "failed to wait for PIP window")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Initial PIP bounds: %+v", origBounds)
deltaX := dispMode.WidthInNativePixels / (totalMovements + 1)
for i := 0; i < totalMovements; i++ {
newWindow, err := getPIPWindow(ctx, tconn)
movedBounds := coords.ConvertBoundsFromDPToPX(newWindow.BoundsInRoot, dispMode.DeviceScaleFactor)
newBounds := movedBounds
newBounds.Left -= deltaX
if err := pipAct.MoveWindow(ctx, tconn, movementDuration, newBounds, movedBounds); err != nil {
return errors.Wrap(err, "could not move PIP window")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, newBounds.Left, left, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX+missedByGestureControllerPX); err != nil {
return errors.Wrap(err, "failed to move PIP to left")
}
}
return nil
}
// testPIPResizeToMax verifies that resizing the PIP window to a big size doesn't break its size constraints.
// It performs a drag-resize from PIP's left-top corner and compares the resized-PIP size with the expected one.
func testPIPResizeToMax(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
// Activate PIP "resize handler", otherwise resize will fail. See:
// https://android.googlesource.com/platform/frameworks/base/+/refs/heads/pie-release/services/core/java/com/android/server/policy/PhoneWindowManager.java#6387
if err := dev.PressKeyCode(ctx, ui.KEYCODE_WINDOW, 0); err != nil {
return errors.Wrap(err, "could not activate PIP menu")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Bounds before resize: %+v", bounds)
testing.ContextLog(ctx, "Resizing window to x=0, y=0")
// Resizing PIP to x=0, y=0, but it should stop once it reaches its max size.
if err := pipAct.ResizeWindow(ctx, tconn, arc.BorderTopLeft, coords.NewPoint(0, 0), time.Second); err != nil {
return errors.Wrap(err, "could not resize PIP window")
}
// Retrieve the PIP bounds again.
window, err = getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds = coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
// Max PIP window size relative to the display size, as defined in WindowPosition.getMaximumSizeForPip().
// See: https://cs.corp.google.com/pi-arc-dev/frameworks/base/services/core/arc/java/com/android/server/am/WindowPositioner.java
// Dividing by integer 2 could loose the fraction, but so does the Java implementation.
// TODO(crbug.com/949754): Get this value in runtime.
const pipMaxSizeFactor = 2
// Currently we have a synchronization issue, where the min/max value Android sends is incorrect because
// an app enters PIP at the same time as the size of the shelf changes.
// This issue is causing no problem in real use cases, but disallowing us to check the exact bounds here.
// So, here we just check whether the maximum size we can set is smaller than the half size of the display, which must hold all the time.
if dispMode.HeightInNativePixels < dispMode.WidthInNativePixels {
if bounds.Height > dispMode.HeightInNativePixels/pipMaxSizeFactor+pipPositionErrorMarginPX {
return errors.Wrap(err, "the maximum size of the PIP window must be half of the display height")
}
} else {
if bounds.Width > dispMode.WidthInNativePixels/pipMaxSizeFactor+pipPositionErrorMarginPX {
return errors.Wrap(err, "the maximum size of the PIP window must be half of the display width")
}
}
return nil
}
// testPIPGravityQuickSettings tests that PIP windows moves accordingly when Quick Settings is hidden / displayed.
func testPIPGravityQuickSettings(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
// testPIPGravityQuickSettings verifies that:
// 1) The PIP window moves to the left of the Quick Settings area when it is shown.
// 2) The PIP window returns close the right border when the Quick Settings area is dismissed.
collisionWindowWorkAreaInsetsPX := int(math.Round(collisionWindowWorkAreaInsetsDP * dispMode.DeviceScaleFactor))
testing.ContextLog(ctx, "Using: collisionWindowWorkAreaInsetsPX = ", collisionWindowWorkAreaInsetsPX)
// 0) Validity check. Verify that PIP window is in the expected initial position and that Quick Settings is hidden.
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "failed to wait for PIP window")
}
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
if err = waitForNewBoundsWithMargin(ctx, tconn, dispMode.WidthInNativePixels-collisionWindowWorkAreaInsetsPX, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must be along the right edge of the display")
}
// 1) The PIP window should move to the left of the Quick Settings area.
testing.ContextLog(ctx, "Showing Quick Settings area")
if err := quicksettings.Show(ctx, tconn); err != nil {
return err
}
// Be nice, and no matter what happens, hide Quick Settings on exit.
defer quicksettings.Hide(ctx, tconn)
statusRectDP, err := quicksettings.Rect(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get quick settings rect")
}
statusLeftPX := int(math.Round(float64(statusRectDP.Left) * dispMode.DeviceScaleFactor))
if err = waitForNewBoundsWithMargin(ctx, tconn, statusLeftPX-collisionWindowWorkAreaInsetsPX, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must move to the left when Quick Settings gets shown")
}
// 2) The PIP window should move close the right border when Quick Settings is dismissed.
testing.ContextLog(ctx, "Dismissing Quick Settings")
if err := quicksettings.Hide(ctx, tconn); err != nil {
return err
}
if err = waitForNewBoundsWithMargin(ctx, tconn, bounds.Left+bounds.Width, right, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "the PIP window must go back to the original position when Quick Settings gets hidden")
}
return nil
}
// testPIPToggleTabletMode verifies that the window position is the same after toggling tablet mode.
func testPIPToggleTabletMode(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
destBounds := coords.NewRect(origBounds.Left, 0, origBounds.Width, origBounds.Height)
// Move the PIP window upwards as much as possible to avoid possible interaction with shelf.
if err := act.MoveWindow(ctx, tconn, time.Second, destBounds, origBounds); err != nil {
return errors.Wrap(err, "could not move PIP window")
}
missedByGestureControllerPX := int(math.Round(missedByGestureControllerDP * dispMode.DeviceScaleFactor))
if err = waitForNewBoundsWithMargin(ctx, tconn, 0, top, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX+missedByGestureControllerPX); err != nil {
return errors.Wrap(err, "failed to move PIP to left")
}
// Update origBounds as we moved the window above.
window, err = getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window")
}
origBounds = coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
testing.ContextLogf(ctx, "Initial bounds: %+v", origBounds)
tabletEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.New("failed to get whether tablet mode is enabled")
}
defer ash.SetTabletModeEnabled(ctx, tconn, tabletEnabled)
// TODO(takise): Currently there's no way to know if "everything's been done and nothing's changed on both Chrome and Android side".
// We are thinking of adding a new sync logic for Tast tests, but until it gets done, we need to sleep for a while here.
testing.Sleep(ctx, time.Second)
testing.ContextLogf(ctx, "Setting 'tablet mode enabled = %t'", !tabletEnabled)
if err := ash.SetTabletModeEnabled(ctx, tconn, !tabletEnabled); err != nil {
return errors.New("failed to set tablet mode")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, origBounds.Left, left, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "failed swipe to left")
}
if err = waitForNewBoundsWithMargin(ctx, tconn, origBounds.Top, top, dispMode.DeviceScaleFactor, pipPositionErrorMarginPX); err != nil {
return errors.Wrap(err, "failed swipe to left")
}
return nil
}
// testPIPAutoPIPMinimize verifies that minimizing an auto-PIP window will trigger PIP.
func testPIPAutoPIPMinimize(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
// TODO(edcourtney): Test minimize via shelf icon, keyboard shortcut (alt-minus), and caption.
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to set window state to minimized")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP")
}
return nil
}
func minimizePIP(ctx context.Context, tconn *chrome.TestConn, pipAct *arc.Activity) error {
if err := pipAct.SetWindowState(ctx, tconn, arc.WindowStateMinimized); err != nil {
return errors.Wrap(err, "failed to set window state to minimized")
}
return nil
}
// testPIPExpandViaMenuTouch verifies that PIP window is properly expanded by touching menu.
func testPIPExpandViaMenuTouch(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
isTabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get tablet mode")
}
initialWindowState := arc.WindowStateNormal
if isTabletModeEnabled {
initialWindowState = arc.WindowStateMaximized
}
initialAshWindowState, err := initialWindowState.ToAshWindowState()
if err != nil {
return errors.Wrap(err, "failed to get ash window state")
}
if err := pipAct.SetWindowState(ctx, tconn, initialWindowState); err != nil {
return errors.Wrap(err, "failed to set initial window state")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState); err != nil {
return errors.Wrap(err, "did not enter initial window state")
}
// Enter PIP via minimize.
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to minimize app into PIP")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP mode")
}
if err := expandPIPViaMenuTouch(ctx, tconn, pipAct, dev, dispMode, initialAshWindowState); err != nil {
return errors.Wrap(err, "could not expand PIP")
}
return ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState)
}
// testPIPExpandViaShelfIcon verifies that PIP window is properly expanded by pressing shelf icon.
func testPIPExpandViaShelfIcon(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
isTabletModeEnabled, err := ash.TabletModeEnabled(ctx, tconn)
if err != nil {
return errors.Wrap(err, "failed to get tablet mode")
}
initialWindowState := arc.WindowStateNormal
if isTabletModeEnabled {
initialWindowState = arc.WindowStateMaximized
}
initialAshWindowState, err := initialWindowState.ToAshWindowState()
if err != nil {
return errors.Wrap(err, "failed to get ash window state")
}
if err := pipAct.SetWindowState(ctx, tconn, initialWindowState); err != nil {
return errors.Wrap(err, "failed to set initial window state")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState); err != nil {
return errors.Wrap(err, "did not enter initial window state")
}
// Enter PIP via minimize.
if err := minimizePIP(ctx, tconn, pipAct); err != nil {
return errors.Wrap(err, "failed to minimize app into PIP")
}
if err := waitForPIPWindow(ctx, tconn); err != nil {
return errors.Wrap(err, "did not enter PIP mode")
}
if err := pressShelfIcon(ctx, tconn); err != nil {
return errors.Wrap(err, "could not expand PIP")
}
return ash.WaitForARCAppWindowState(ctx, tconn, pipAct.PackageName(), initialAshWindowState)
}
// testPIPAutoPIPNewAndroidWindow verifies that creating a new Android window that occludes an auto-PIP window will trigger PIP.
func testPIPAutoPIPNewAndroidWindow(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
const (
settingPkgName = "com.android.settings"
settingActName = ".Settings"
)
settingAct, err := arc.NewActivity(a, settingPkgName, settingActName)
if err != nil {
return errors.Wrap(err, "could not create Settings Activity")
}
defer settingAct.Close()
if err := settingAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start Settings Activity")
}
defer settingAct.Stop(ctx, tconn)
// Make sure the window will have an initial maximized state.
if err := settingAct.SetWindowState(ctx, tconn, arc.WindowStateMaximized); err != nil {
return errors.Wrap(err, "failed to set window state of Settings Activity to maximized")
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, settingPkgName, ash.WindowStateMaximized); err != nil {
return errors.Wrap(err, "did not maximize")
}
if err := settingAct.Stop(ctx, tconn); err != nil {
return errors.Wrap(err, "could not stop Settings Activity while setting initial window state")
}
// Start the main activity that should enter PIP.
if err := pipAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start MainActivity")
}
// Start Settings Activity again, this time with the guaranteed correct window state.
if err := settingAct.Start(ctx, tconn); err != nil {
return errors.Wrap(err, "could not start Settings Activity")
}
// Wait for MainActivity to enter PIP.
// TODO(edcourtney): Until we can identify multiple Android windows from the same package, just wait for
// the Android state here. Ideally, we should wait for the Chrome side state, but we don't need to do anything after
// this on the Chrome side so it's okay for now. See crbug.com/1010671.
return waitForPIPWindow(ctx, tconn)
}
// testPIPAutoPIPNewChromeWindow verifies that creating a new Chrome window that occludes an auto-PIP window will trigger PIP.
func testPIPAutoPIPNewChromeWindow(ctx context.Context, tconn *chrome.TestConn, a *arc.ARC, pipAct *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode) error {
// Open a maximized Chrome window and close at the end of the test.
if err := tconn.Eval(ctx, `tast.promisify(chrome.windows.create)({state: "maximized"})`, nil); err != nil {
return errors.Wrap(err, "could not open maximized Chrome window")
}
defer tconn.Call(ctx, nil, `async () => {
let window = await tast.promisify(chrome.windows.getLastFocused)({});
await tast.promisify(chrome.windows.remove)(window.id);
}`)
// Wait for MainActivity to enter PIP.
// TODO(edcourtney): Until we can identify multiple Android windows from the same package, just wait for
// the Android state here. Ideally, we should wait for the Chrome side state, but we don't need to do anything after
// this on the Chrome side so it's okay for now. See crbug.com/1010671.
return waitForPIPWindow(ctx, tconn)
}
// helper functions
// expandPIPViaMenuTouch expands PIP.
func expandPIPViaMenuTouch(ctx context.Context, tconn *chrome.TestConn, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode, restoreWindowState ash.WindowStateType) error {
sdkVer, err := arc.SDKVersion()
if err != nil {
return errors.Wrap(err, "failed to get the SDK version")
}
switch sdkVer {
case arc.SDKP:
return expandPIPViaMenuTouchP(ctx, tconn, act, dev, dispMode, restoreWindowState)
case arc.SDKR:
return expandPIPViaMenuTouchR(ctx, tconn, restoreWindowState)
default:
return errors.Errorf("unsupported SDK version: %d", sdkVer)
}
}
// expandPIPViaMenuTouchP injects touch events to the center of PIP window and expands PIP.
// The first touch event shows PIP menu and subsequent events expand PIP.
func expandPIPViaMenuTouchP(ctx context.Context, tconn *chrome.TestConn, act *arc.Activity, dev *ui.Device, dispMode *display.DisplayMode, restoreWindowState ash.WindowStateType) error {
tsw, err := input.Touchscreen(ctx)
if err != nil {
return errors.Wrap(err, "failed to open touchscreen device")
}
defer tsw.Close()
stw, err := tsw.NewSingleTouchWriter()
if err != nil {
return errors.Wrap(err, "could not create TouchEventWriter")
}
defer stw.Close()
dispW := dispMode.WidthInNativePixels
dispH := dispMode.HeightInNativePixels
pixelToTuxelX := float64(tsw.Width()) / float64(dispW)
pixelToTuxelY := float64(tsw.Height()) / float64(dispH)
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "could not get PIP window bounds")
}
bounds := coords.ConvertBoundsFromDPToPX(window.BoundsInRoot, dispMode.DeviceScaleFactor)
pixelX := float64(bounds.Left + bounds.Width/2)
pixelY := float64(bounds.Top + bounds.Height/2)
x := input.TouchCoord(pixelX * pixelToTuxelX)
y := input.TouchCoord(pixelY * pixelToTuxelY)
testing.ContextLogf(ctx, "Injecting touch event to {%f, %f} to expand PIP; display {%d, %d}, PIP bounds {(%d, %d), %dx%d}",
pixelX, pixelY, dispW, dispH, bounds.Left, bounds.Top, bounds.Width, bounds.Height)
return testing.Poll(ctx, func(ctx context.Context) error {
if err := stw.Move(x, y); err != nil {
return errors.Wrap(err, "failed to execute touch gesture")
}
if err := stw.End(); err != nil {
return errors.Wrap(err, "failed to finish swipe gesture")
}
windowState, err := ash.GetARCAppWindowState(ctx, tconn, pipTestPkgName)
if err != nil {
return testing.PollBreak(errors.Wrap(err, "failed to get Ash window state"))
}
if windowState != restoreWindowState {
return errors.New("the window isn't expanded yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second, Interval: 500 * time.Millisecond})
}
// expandPIPViaMenuTouchR performs a mouse click to the center of PIP window and expands PIP.
// After moving the mouse to the center of the PIP window it waits for a second so that the pip
// menu appears and the expand icon can be clicked.
func expandPIPViaMenuTouchR(ctx context.Context, tconn *chrome.TestConn, restoreWindowState ash.WindowStateType) error {
return testing.Poll(ctx, func(ctx context.Context) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return testing.PollBreak(errors.Wrap(err, "could not get PIP window bounds"))
}
bounds := window.BoundsInRoot
if err := mouse.Move(ctx, tconn, coords.NewPoint(bounds.Left+bounds.Width/2, bounds.Top+bounds.Height/2), 0); err != nil {
return testing.PollBreak(err)
}
// Need to wait for the menu to appear.
if err := testing.Sleep(ctx, time.Second); err != nil {
return testing.PollBreak(err)
}
if err := mouse.Press(ctx, tconn, mouse.LeftButton); err != nil {
return testing.PollBreak(err)
}
if err := mouse.Release(ctx, tconn, mouse.LeftButton); err != nil {
return testing.PollBreak(err)
}
if err := ash.WaitForARCAppWindowState(ctx, tconn, pipTestPkgName, restoreWindowState); err != nil {
return errors.Wrap(err, "did not expand to restore window state")
}
return nil
}, &testing.PollOptions{Timeout: 20 * time.Second, Interval: 500 * time.Millisecond})
}
// waitForPIPWindow keeps looking for a PIP window until it appears on the Chrome side.
func waitForPIPWindow(ctx context.Context, tconn *chrome.TestConn) error {
return testing.Poll(ctx, func(ctx context.Context) error {
_, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.Wrap(err, "the PIP window hasn't been created yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second})
}
// getPIPWindow returns the PIP window if any.
func getPIPWindow(ctx context.Context, tconn *chrome.TestConn) (*ash.Window, error) {
return ash.FindWindow(ctx, tconn, func(w *ash.Window) bool { return w.State == ash.WindowStatePIP })
}
// pressShelfIcon press the shelf icon of PIP window.
func pressShelfIcon(ctx context.Context, tconn *chrome.TestConn) error {
var icon *chromeui.Node
// Make sure that at least one shelf icon exists.
// Depending the test order, the status area might not be ready at this point.
if err := testing.Poll(ctx, func(ctx context.Context) error {
var err error
icon, err = chromeui.FindWithTimeout(ctx, tconn, chromeui.FindParams{Name: "ArcPipTest", ClassName: "ash/ShelfAppButton"}, 15*time.Second)
if err != nil {
return errors.Wrap(err, "no shelf icon has been created yet")
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second}); err != nil {
return errors.Wrap(err, "failed to locate shelf icons")
}
defer icon.Release(ctx)
return icon.LeftClick(ctx)
}
// waitForNewBoundsWithMargin waits until Chrome animation finishes completely and check the position of an edge of the PIP window.
// More specifically, this checks the edge of the window bounds specified by the border parameter matches the expectedValue parameter,
// allowing an error within the margin parameter.
// The window bounds is returned in DP, so dsf is used to convert it to PX.
func waitForNewBoundsWithMargin(ctx context.Context, tconn *chrome.TestConn, expectedValue int, border borderType, dsf float64, margin int) error {
return testing.Poll(ctx, func(ctx context.Context) error {
window, err := getPIPWindow(ctx, tconn)
if err != nil {
return errors.New("failed to Get PIP window")
}
bounds := window.BoundsInRoot
isAnimating := window.IsAnimating
if isAnimating {
return errors.New("the window is still animating")
}
var currentValue int
switch border {
case left:
currentValue = int(math.Round(float64(bounds.Left) * dsf))
case top:
currentValue = int(math.Round(float64(bounds.Top) * dsf))
case right:
currentValue = int(math.Round(float64(bounds.Left+bounds.Width) * dsf))
case bottom:
currentValue = int(math.Round(float64(bounds.Top+bounds.Height) * dsf))
default:
return testing.PollBreak(errors.Errorf("unknown border type %v", border))
}
if int(math.Abs(float64(expectedValue-currentValue))) > margin {
return errors.Errorf("the PIP window doesn't have the expected bounds yet; got %d, want %d", currentValue, expectedValue)
}
return nil
}, &testing.PollOptions{Timeout: 10 * time.Second})
}
| [
5786,
14627,
188,
188,
4747,
280,
188,
187,
4,
1609,
4,
188,
187,
4,
2763,
4,
188,
187,
4,
4964,
4,
188,
187,
4,
1149,
4,
188,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
4383,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
7091,
17,
2119,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
10484,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
17,
1037,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
17,
3747,
4,
188,
187,
32394,
2119,
312,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
17,
2119,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
17,
2119,
17,
5953,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
32394,
17,
2119,
17,
18365,
4493,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
13519,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
1624,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
1592,
17,
5877,
4270,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
4342,
4,
188,
11,
188,
188,
819,
280,
188,
187,
19527,
1140,
19001,
613,
260,
312,
1587,
16,
48080,
16,
10484,
16,
1028,
1041,
16,
19511,
248,
19511,
4,
188,
188,
187,
22949,
2229,
3796,
6635,
28314,
3289,
260,
1013,
188,
188,
187,
19527,
3369,
914,
11316,
12429,
260,
678,
188,
188,
187,
35618,
1232,
24884,
4109,
3289,
260,
5619,
188,
11,
188,
188,
558,
9053,
563,
388,
188,
188,
819,
280,
188,
187,
2754,
9053,
563,
260,
29028,
188,
187,
1035,
188,
187,
2605,
188,
187,
6813,
188,
11,
188,
188,
558,
9193,
563,
691,
188,
188,
819,
280,
188,
187,
1572,
29992,
9193,
563,
260,
29028,
188,
187,
1182,
5978,
188,
187,
4016,
50,
555,
188,
11,
188,
188,
558,
28380,
1140,
3399,
830,
10,
1609,
16,
1199,
14,
258,
32394,
16,
1140,
5716,
14,
258,
10484,
16,
13090,
14,
258,
10484,
16,
5978,
14,
258,
2119,
16,
2668,
14,
258,
3747,
16,
38455,
11,
790,
188,
188,
558,
28380,
1140,
2911,
603,
275,
188,
187,
579,
209,
209,
209,
209,
209,
209,
776,
188,
187,
2300,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
1140,
3399,
188,
187,
989,
2152,
9193,
563,
188,
95,
188,
188,
828,
28380,
6998,
260,
1397,
19527,
1140,
2911,
93,
188,
187,
93,
579,
28,
312,
25329,
11735,
347,
3094,
28,
1086,
649,
2880,
3356,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
35172,
3481,
5351,
347,
3094,
28,
1086,
25329,
13794,
805,
2459,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
7142,
17828,
13975,
3532,
347,
3094,
28,
1086,
25329,
32466,
13975,
3532,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
3409,
29808,
5933,
347,
3094,
28,
1086,
649,
1739,
1374,
25329,
1888,
34592,
2229,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
3409,
14136,
5933,
347,
3094,
28,
1086,
649,
1739,
1374,
25329,
1888,
12501,
2229,
14,
1777,
2152,
28,
916,
29992,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
7123,
16906,
347,
3094,
28,
1086,
649,
1739,
1374,
649,
2880,
248,
16906,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
23429,
25329,
331,
281,
629,
19722,
347,
3094,
28,
1086,
25329,
13264,
28560,
39199,
629,
5092,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
23429,
25329,
15847,
30224,
347,
3094,
28,
1086,
25329,
13264,
28560,
3969,
11720,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
27090,
7118,
86,
1708,
347,
3094,
28,
1086,
25329,
14523,
45275,
1988,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
95,
188,
188,
1857,
1777,
336,
275,
188,
187,
4342,
16,
1320,
1140,
699,
4342,
16,
1140,
93,
188,
187,
187,
3399,
28,
209,
209,
209,
209,
209,
209,
209,
209,
401,
948,
14,
188,
187,
187,
1625,
28,
209,
209,
209,
209,
209,
209,
209,
209,
312,
20636,
758,
30615,
775,
44365,
15,
248,
15,
20510,
8729,
784,
2556,
347,
188,
187,
187,
28210,
28,
209,
209,
209,
209,
1397,
530,
2315,
299,
12461,
13361,
1008,
34,
48080,
16,
1587,
347,
312,
10484,
15,
4984,
13,
86,
682,
34,
2735,
16,
817,
1782,
188,
187,
187,
3896,
28,
209,
209,
209,
209,
209,
209,
209,
209,
1397,
530,
2315,
1578,
28,
2742,
864,
347,
312,
17639,
266,
1782,
188,
187,
187,
9654,
38649,
28,
1397,
530,
2315,
32394,
1782,
188,
187,
187,
2748,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
14627,
16,
11835,
299,
833,
188,
187,
187,
4280,
28,
209,
209,
209,
209,
209,
915,
258,
1247,
16,
22707,
14,
188,
187,
187,
2911,
28,
1397,
4342,
16,
3082,
4107,
188,
350,
187,
1400,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
6998,
14,
188,
350,
187,
9727,
9654,
38649,
28,
1397,
530,
2315,
7091,
65,
82,
1782,
188,
187,
187,
519,
275,
188,
350,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1585,
347,
188,
350,
187,
1400,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
6998,
14,
188,
350,
187,
9727,
9654,
38649,
28,
1397,
530,
2315,
7091,
65,
1585,
1782,
188,
187,
187,
2598,
188,
187,
1436,
188,
95,
188,
188,
1857,
401,
948,
10,
1167,
1701,
16,
1199,
14,
298,
258,
4342,
16,
1142,
11,
275,
188,
188,
187,
10958,
721,
830,
10,
379,
790,
11,
275,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
85,
16,
5944,
435,
4258,
28,
3525,
497,
11,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
2082,
721,
298,
16,
2748,
842,
30996,
10484,
16,
2748,
883,
717,
34592,
188,
188,
187,
86,
1904,
14,
497,
721,
6843,
16,
1140,
1992,
5716,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
2214,
2677,
3859,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
67,
721,
298,
16,
2748,
842,
30996,
10484,
16,
2748,
883,
717,
13090,
188,
188,
187,
819,
2155,
77,
613,
260,
312,
14367,
50,
555,
1140,
16,
362,
77,
4,
188,
187,
85,
16,
1783,
435,
10850,
296,
3525,
2155,
77,
613,
11,
188,
187,
285,
497,
721,
301,
16,
10850,
10,
1167,
14,
14627,
16,
1093,
45,
1461,
10,
362,
77,
613,
619,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
10312,
296,
1579,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
19527,
2533,
14,
497,
721,
14627,
16,
1888,
5978,
10,
67,
14,
28380,
1140,
19001,
613,
14,
6381,
50,
555,
5978,
866,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
401,
948,
12910,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
28380,
2533,
16,
4572,
336,
188,
188,
187,
561,
25329,
1881,
2533,
14,
497,
721,
14627,
16,
1888,
5978,
10,
67,
14,
28380,
1140,
19001,
613,
14,
6381,
26403,
50,
555,
1881,
5978,
866,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
8476,
12910,
401,
948,
1856,
12910,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
19247,
25329,
1881,
2533,
16,
4572,
336,
188,
188,
187,
436,
14,
497,
721,
301,
16,
1888,
3697,
30655,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
27189,
10169,
15532,
476,
697,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
1962,
16,
4572,
10,
1167,
11,
188,
188,
187,
9424,
1034,
14,
497,
721,
4197,
16,
901,
3977,
1034,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
2812,
4197,
2405,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
7569,
39199,
629,
10226,
14,
497,
721,
301,
645,
16,
901,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
33802,
629,
9513,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
853,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
301,
645,
16,
39199,
629,
10226,
10093,
267,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
755,
33802,
629,
9513,
384,
36485,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
9923,
39199,
629,
10226,
11,
188,
188,
187,
7569,
39199,
629,
12618,
14,
497,
721,
301,
645,
16,
901,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
33802,
629,
8386,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
853,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
301,
645,
16,
39199,
629,
12618,
23983,
4839,
16767,
267,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
755,
33802,
629,
8386,
384,
35084,
9024,
35509,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
9923,
39199,
629,
12618,
11,
188,
188,
187,
44930,
1988,
3897,
14,
497,
721,
301,
645,
16,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
2077,
86,
1708,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
2077,
86,
1988,
3897,
11,
188,
188,
187,
9424,
1988,
14,
497,
721,
301,
645,
16,
3977,
38455,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
4197,
1708,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
44930,
17791,
721,
1397,
2178,
93,
2543,
14,
868,
95,
188,
187,
2553,
5626,
5978,
25329,
721,
1397,
2178,
93,
2239,
14,
893,
95,
188,
187,
8161,
5218,
14,
497,
721,
14627,
16,
14643,
2013,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
306,
12156,
1478,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
529,
2426,
2077,
86,
1988,
721,
2068,
2077,
86,
17791,
275,
188,
187,
187,
85,
16,
32602,
435,
12247,
6390,
670,
2077,
86,
1708,
4250,
3493,
86,
347,
2077,
86,
1988,
11,
188,
187,
187,
285,
497,
721,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
2077,
86,
1988,
267,
497,
598,
869,
275,
188,
350,
187,
85,
16,
8409,
435,
4258,
384,
755,
2077,
86,
1708,
4250,
384,
690,
86,
28,
690,
88,
347,
2077,
86,
1988,
14,
497,
11,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
8476,
5978,
25329,
721,
2068,
3268,
5626,
5978,
25329,
275,
188,
350,
187,
285,
504,
6599,
5978,
25329,
692,
2077,
86,
1988,
692,
26849,
5218,
489,
14627,
16,
14643,
52,
275,
188,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
188,
350,
187,
85,
16,
32602,
435,
12247,
6390,
670,
2077,
86,
1708,
4250,
3493,
86,
509,
437,
1992,
50,
4250,
3493,
86,
347,
2077,
86,
1988,
14,
8476,
5978,
25329,
11,
188,
350,
187,
529,
3990,
14,
1086,
721,
2068,
298,
16,
3082,
1033,
4661,
19527,
1140,
2911,
11,
275,
188,
2054,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
25889,
384,
2443,
1086,
28,
3525,
1086,
16,
579,
11,
188,
188,
2054,
187,
285,
1086,
16,
989,
2152,
489,
1589,
5978,
875,
1086,
16,
989,
2152,
489,
9734,
50,
555,
275,
188,
1263,
187,
285,
8476,
5978,
25329,
275,
188,
5520,
187,
10958,
10,
561,
25329,
1881,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
452,
188,
1263,
187,
95,
188,
188,
1263,
187,
10958,
10,
19527,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
452,
188,
188,
1263,
187,
285,
8476,
5978,
25329,
275,
188,
188,
5520,
187,
285,
497,
721,
8927,
16,
14519,
10,
1167,
14,
1247,
16,
7386,
267,
497,
598,
869,
275,
188,
8446,
187,
85,
16,
5944,
435,
4258,
384,
10326,
9954,
446,
437,
1992,
50,
28,
3525,
497,
11,
188,
5520,
187,
95,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
188,
2054,
187,
285,
1086,
16,
989,
2152,
489,
9734,
50,
555,
275,
188,
188,
1263,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
1140,
7625,
401,
948,
5116,
1460,
14,
31516,
401,
948,
6158,
36883,
866,
188,
1263,
187,
285,
497,
721,
36883,
25329,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
267,
497,
598,
869,
275,
188,
5520,
187,
85,
16,
5944,
435,
4258,
384,
36883,
1579,
2449,
401,
948,
28,
3525,
497,
11,
188,
1263,
187,
95,
188,
1263,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
5520,
187,
85,
16,
5944,
435,
17427,
655,
9734,
401,
948,
1708,
28,
3525,
497,
11,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
188,
2054,
187,
285,
497,
721,
1086,
16,
2300,
10,
1167,
14,
255,
1904,
14,
301,
14,
28380,
2533,
14,
1962,
14,
19504,
1988,
267,
497,
598,
869,
275,
188,
1263,
187,
1147,
721,
2764,
16,
5696,
3297,
85,
17,
5877,
4270,
15,
19527,
15,
5177,
15,
1028,
12321,
70,
16,
4688,
347,
298,
16,
1538,
3559,
833,
3990,
11,
188,
1263,
187,
285,
497,
721,
8047,
4270,
16,
9238,
34592,
10,
1167,
14,
6843,
14,
1944,
267,
497,
598,
869,
275,
188,
5520,
187,
85,
16,
1783,
435,
4258,
384,
10759,
8047,
4270,
28,
3525,
497,
11,
188,
1263,
187,
95,
188,
1263,
187,
85,
16,
3587,
3297,
85,
1086,
670,
2077,
86,
1708,
5616,
86,
11,
509,
8476,
15,
11739,
5616,
86,
11,
2985,
28,
690,
88,
347,
1086,
16,
579,
14,
2077,
86,
1988,
14,
8476,
5978,
25329,
14,
497,
11,
188,
2054,
187,
95,
188,
188,
2054,
187,
10958,
10,
19527,
2533,
16,
5732,
10,
1167,
14,
255,
1904,
452,
188,
2054,
187,
285,
8476,
5978,
25329,
275,
188,
1263,
187,
10958,
10,
561,
25329,
1881,
2533,
16,
5732,
10,
1167,
14,
255,
1904,
452,
188,
2054,
187,
95,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
95,
188,
188,
1857,
1086,
649,
2880,
3356,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
187,
819,
280,
188,
187,
187,
47437,
5354,
260,
444,
258,
1247,
16,
7386,
188,
187,
187,
3926,
6152,
2428,
209,
209,
260,
678,
188,
187,
11,
188,
188,
187,
35618,
1232,
24884,
4109,
12429,
721,
388,
10,
4964,
16,
11140,
10,
35618,
1232,
24884,
4109,
3289,
258,
19504,
1988,
16,
2668,
46583,
452,
188,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
14044,
28,
40732,
1232,
24884,
4109,
12429,
260,
3525,
40732,
1232,
24884,
4109,
12429,
11,
188,
188,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
3751,
446,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
7569,
7570,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
187,
4342,
16,
1199,
32602,
10,
1167,
14,
312,
10640,
401,
948,
9410,
28,
23795,
88,
347,
9923,
7570,
11,
188,
188,
187,
5719,
58,
721,
19504,
1988,
16,
2823,
364,
7333,
15894,
348,
280,
3926,
6152,
2428,
431,
352,
11,
188,
187,
529,
368,
721,
257,
29,
368,
360,
4319,
6152,
2428,
29,
368,
775,
275,
188,
187,
187,
1002,
2229,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
187,
4794,
7570,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
1002,
2229,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
187,
187,
1002,
7570,
721,
15040,
7570,
188,
187,
187,
1002,
7570,
16,
4160,
3395,
6411,
58,
188,
187,
187,
285,
497,
721,
28380,
2533,
16,
6152,
2229,
10,
1167,
14,
255,
1904,
14,
29191,
5354,
14,
605,
7570,
14,
15040,
7570,
267,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
5859,
401,
948,
3218,
866,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
605,
7570,
16,
4160,
14,
3689,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
13,
35618,
1232,
24884,
4109,
12429,
267,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
5859,
401,
948,
384,
3689,
866,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1086,
25329,
13794,
805,
2459,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
188,
187,
285,
497,
721,
1962,
16,
11783,
33092,
10,
1167,
14,
6550,
16,
20257,
65,
9636,
14,
257,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
21124,
401,
948,
7945,
866,
188,
187,
95,
188,
188,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
10791,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
187,
4342,
16,
1199,
32602,
10,
1167,
14,
312,
7570,
2855,
15273,
28,
23795,
88,
347,
9410,
11,
188,
188,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
744,
11375,
3218,
384,
754,
31,
18,
14,
767,
31,
18,
866,
188,
188,
187,
285,
497,
721,
28380,
2533,
16,
13794,
2229,
10,
1167,
14,
255,
1904,
14,
14627,
16,
8402,
49176,
14,
19274,
16,
1888,
2211,
10,
18,
14,
257,
399,
1247,
16,
7386,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
15273,
401,
948,
3218,
866,
188,
187,
95,
188,
188,
187,
3340,
14,
497,
260,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
10791,
260,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
188,
187,
819,
28380,
31559,
8381,
260,
444,
188,
188,
187,
285,
19504,
1988,
16,
3471,
364,
7333,
15894,
360,
19504,
1988,
16,
2823,
364,
7333,
15894,
275,
188,
187,
187,
285,
9410,
16,
3471,
609,
19504,
1988,
16,
3471,
364,
7333,
15894,
17,
19527,
31559,
8381,
13,
19527,
3369,
914,
11316,
12429,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
5428,
769,
427,
306,
401,
948,
3218,
1686,
523,
8585,
427,
306,
4197,
3848,
866,
188,
187,
187,
95,
188,
187,
95,
730,
275,
188,
187,
187,
285,
9410,
16,
2823,
609,
19504,
1988,
16,
2823,
364,
7333,
15894,
17,
19527,
31559,
8381,
13,
19527,
3369,
914,
11316,
12429,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
5428,
769,
427,
306,
401,
948,
3218,
1686,
523,
8585,
427,
306,
4197,
3290,
866,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1086,
25329,
32466,
13975,
3532,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
188,
187,
22949,
2229,
3796,
6635,
28314,
12429,
721,
388,
10,
4964,
16,
11140,
10,
22949,
2229,
3796,
6635,
28314,
3289,
258,
19504,
1988,
16,
2668,
46583,
452,
188,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
14044,
28,
20632,
2229,
3796,
6635,
28314,
12429,
260,
3525,
20632,
2229,
3796,
6635,
28314,
12429,
11,
188,
188,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
3751,
446,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
10791,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
19504,
1988,
16,
2823,
364,
7333,
15894,
15,
22949,
2229,
3796,
6635,
28314,
12429,
14,
2052,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
401,
948,
3218,
1686,
523,
4236,
306,
2052,
5919,
427,
306,
4197,
866,
188,
187,
95,
188,
188,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
43755,
15394,
13029,
7067,
866,
188,
187,
285,
497,
721,
16399,
4493,
16,
6453,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
5303,
16399,
4493,
16,
16767,
10,
1167,
14,
255,
1904,
11,
188,
188,
187,
1341,
3782,
3289,
14,
497,
721,
16399,
4493,
16,
3782,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
16399,
4909,
6686,
866,
188,
187,
95,
188,
187,
1341,
4160,
12429,
721,
388,
10,
4964,
16,
11140,
10,
1879,
535,
10,
1341,
3782,
3289,
16,
4160,
11,
258,
19504,
1988,
16,
2668,
46583,
452,
188,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
1941,
4160,
12429,
15,
22949,
2229,
3796,
6635,
28314,
12429,
14,
2052,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
401,
948,
3218,
1686,
5859,
384,
306,
3689,
1655,
15394,
13029,
9586,
16233,
866,
188,
187,
95,
188,
188,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
1793,
10829,
15394,
13029,
866,
188,
187,
285,
497,
721,
16399,
4493,
16,
16767,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
9410,
16,
4160,
13,
10791,
16,
2823,
14,
2052,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
401,
948,
3218,
1686,
3761,
2656,
384,
306,
4421,
3539,
1655,
15394,
13029,
9586,
12550,
866,
188,
187,
95,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1086,
25329,
14523,
45275,
1988,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
2130,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
7569,
7570,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
187,
2508,
7570,
721,
19274,
16,
1888,
3782,
10,
7569,
7570,
16,
4160,
14,
257,
14,
9923,
7570,
16,
2823,
14,
9923,
7570,
16,
3471,
11,
188,
188,
187,
285,
497,
721,
2130,
16,
6152,
2229,
10,
1167,
14,
255,
1904,
14,
1247,
16,
7386,
14,
3180,
7570,
14,
9923,
7570,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
5859,
401,
948,
3218,
866,
188,
187,
95,
188,
187,
35618,
1232,
24884,
4109,
12429,
721,
388,
10,
4964,
16,
11140,
10,
35618,
1232,
24884,
4109,
3289,
258,
19504,
1988,
16,
2668,
46583,
452,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
257,
14,
3982,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
13,
35618,
1232,
24884,
4109,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
5859,
401,
948,
384,
3689,
866,
188,
187,
95,
188,
188,
187,
3340,
14,
497,
260,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
866,
188,
187,
95,
188,
188,
187,
7569,
7570,
260,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
187,
4342,
16,
1199,
32602,
10,
1167,
14,
312,
10640,
9410,
28,
23795,
88,
347,
9923,
7570,
11,
188,
188,
187,
44930,
3897,
14,
497,
721,
301,
645,
16,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
1888,
435,
5177,
384,
740,
3920,
2077,
86,
1708,
425,
4250,
866,
188,
187,
95,
188,
187,
5303,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
2077,
86,
3897,
11,
188,
188,
187,
4342,
16,
14519,
10,
1167,
14,
1247,
16,
7386,
11,
188,
188,
187,
4342,
16,
1199,
32602,
10,
1167,
14,
312,
8052,
377,
44930,
1708,
4250,
260,
690,
86,
12290,
504,
44930,
3897,
11,
188,
187,
285,
497,
721,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
504,
44930,
3897,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
1888,
435,
5177,
384,
755,
2077,
86,
1708,
866,
188,
187,
95,
188,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
9923,
7570,
16,
4160,
14,
3689,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
2215,
3043,
384,
3689,
866,
188,
187,
95,
188,
187,
285,
497,
260,
24803,
1888,
7570,
1748,
11316,
10,
1167,
14,
255,
1904,
14,
9923,
7570,
16,
4033,
14,
3982,
14,
19504,
1988,
16,
2668,
46583,
14,
28380,
3369,
914,
11316,
12429,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
2215,
3043,
384,
3689,
866,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1086,
649,
1739,
1374,
649,
2880,
248,
16906,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
188,
187,
285,
497,
721,
36883,
25329,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
755,
3218,
1460,
384,
2266,
32512,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
9734,
401,
948,
866,
188,
187,
95,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
36883,
25329,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
28380,
2533,
258,
10484,
16,
5978,
11,
790,
275,
188,
187,
285,
497,
721,
28380,
2533,
16,
36030,
1142,
10,
1167,
14,
255,
1904,
14,
14627,
16,
2229,
1142,
2958,
32512,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
755,
3218,
1460,
384,
2266,
32512,
866,
188,
187,
95,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
1086,
25329,
13264,
28560,
3969,
11720,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
187,
288,
45275,
1988,
3897,
14,
497,
721,
301,
645,
16,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
2077,
86,
1708,
866,
188,
187,
95,
188,
188,
187,
7758,
2229,
1142,
721,
14627,
16,
2229,
1142,
5890,
188,
187,
285,
425,
45275,
1988,
3897,
275,
188,
187,
187,
7758,
2229,
1142,
260,
14627,
16,
2229,
1142,
2459,
32512,
188,
187,
95,
188,
188,
187,
7758,
35,
645,
2229,
1142,
14,
497,
721,
5116,
2229,
1142,
16,
805,
35,
645,
2229,
1142,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
301,
645,
3218,
1460,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
28380,
2533,
16,
36030,
1142,
10,
1167,
14,
255,
1904,
14,
5116,
2229,
1142,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
755,
5116,
3218,
1460,
866,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
16,
25510,
833,
5116,
35,
645,
2229,
1142,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
9734,
5116,
3218,
1460,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
36883,
25329,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
36883,
1579,
2449,
401,
948,
866,
188,
187,
95,
188,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
9734,
401,
948,
1708,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
10173,
649,
13810,
1800,
3969,
11720,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
14,
1962,
14,
19504,
1988,
14,
5116,
35,
645,
2229,
1142,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
10173,
401,
948,
866,
188,
187,
95,
188,
188,
187,
397,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
16,
25510,
833,
5116,
35,
645,
2229,
1142,
11,
188,
95,
188,
188,
1857,
1086,
25329,
13264,
28560,
39199,
629,
5092,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
187,
288,
45275,
1988,
3897,
14,
497,
721,
301,
645,
16,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
2077,
86,
1708,
866,
188,
187,
95,
188,
188,
187,
7758,
2229,
1142,
721,
14627,
16,
2229,
1142,
5890,
188,
187,
285,
425,
45275,
1988,
3897,
275,
188,
187,
187,
7758,
2229,
1142,
260,
14627,
16,
2229,
1142,
2459,
32512,
188,
187,
95,
188,
188,
187,
7758,
35,
645,
2229,
1142,
14,
497,
721,
5116,
2229,
1142,
16,
805,
35,
645,
2229,
1142,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
301,
645,
3218,
1460,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
28380,
2533,
16,
36030,
1142,
10,
1167,
14,
255,
1904,
14,
5116,
2229,
1142,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
755,
5116,
3218,
1460,
866,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
16,
25510,
833,
5116,
35,
645,
2229,
1142,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
9734,
5116,
3218,
1460,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
36883,
25329,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
36883,
1579,
2449,
401,
948,
866,
188,
187,
95,
188,
187,
285,
497,
721,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
9734,
401,
948,
1708,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
18215,
39199,
629,
5092,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
10173,
401,
948,
866,
188,
187,
95,
188,
188,
187,
397,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
2533,
16,
25510,
833,
5116,
35,
645,
2229,
1142,
11,
188,
95,
188,
188,
1857,
1086,
649,
1739,
1374,
25329,
1888,
12501,
2229,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
187,
819,
280,
188,
187,
187,
8665,
19001,
613,
260,
312,
817,
16,
7091,
16,
4493,
4,
188,
187,
187,
8665,
2533,
613,
260,
6381,
3532,
4,
188,
187,
11,
188,
188,
187,
8665,
2533,
14,
497,
721,
14627,
16,
1888,
5978,
10,
67,
14,
5509,
19001,
613,
14,
5509,
2533,
613,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
2149,
13029,
18316,
866,
188,
187,
95,
188,
187,
5303,
5509,
2533,
16,
4572,
336,
188,
188,
187,
285,
497,
721,
5509,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
1589,
13029,
18316,
866,
188,
187,
95,
188,
187,
5303,
5509,
2533,
16,
5732,
10,
1167,
14,
255,
1904,
11,
188,
188,
187,
285,
497,
721,
5509,
2533,
16,
36030,
1142,
10,
1167,
14,
255,
1904,
14,
14627,
16,
2229,
1142,
2459,
32512,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
755,
3218,
1460,
427,
13029,
18316,
384,
1640,
32512,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
5509,
19001,
613,
14,
301,
645,
16,
2229,
1142,
2459,
32512,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
1640,
16906,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
5509,
2533,
16,
5732,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
4818,
13029,
18316,
2027,
5509,
5116,
3218,
1460,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
28380,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
1589,
11073,
5978,
866,
188,
187,
95,
188,
188,
187,
285,
497,
721,
5509,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
1589,
13029,
18316,
866,
188,
187,
95,
188,
188,
187,
397,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
95,
188,
188,
1857,
1086,
649,
1739,
1374,
25329,
1888,
34592,
2229,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
301,
258,
10484,
16,
13090,
14,
28380,
2533,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
11,
790,
275,
188,
188,
187,
285,
497,
721,
255,
1904,
16,
13645,
10,
1167,
14,
1083,
86,
682,
16,
5575,
288,
1198,
10,
32394,
16,
10642,
16,
1634,
1261,
93,
956,
28,
312,
1264,
32512,
17470,
3838,
869,
267,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
3507,
1640,
32512,
29808,
3218,
866,
188,
187,
95,
188,
187,
5303,
255,
1904,
16,
1771,
10,
1167,
14,
869,
14,
1083,
5060,
2610,
706,
275,
188,
9125,
2285,
3218,
260,
4253,
255,
682,
16,
5575,
288,
1198,
10,
32394,
16,
10642,
16,
21790,
25892,
1261,
26987,
188,
9125,
4253,
255,
682,
16,
5575,
288,
1198,
10,
32394,
16,
10642,
16,
2351,
1261,
3340,
16,
311,
267,
188,
187,
39762,
188,
188,
187,
397,
24803,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
95,
188,
188,
1857,
10173,
649,
13810,
1800,
3969,
11720,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
2130,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
14,
9349,
2229,
1142,
301,
645,
16,
2229,
1142,
563,
11,
790,
275,
188,
187,
8161,
5218,
14,
497,
721,
14627,
16,
14643,
2013,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
306,
12156,
1478,
866,
188,
187,
95,
188,
188,
187,
2349,
26849,
5218,
275,
188,
187,
888,
14627,
16,
2094,
8418,
28,
188,
187,
187,
397,
10173,
649,
13810,
1800,
3969,
11720,
50,
10,
1167,
14,
255,
1904,
14,
2130,
14,
1962,
14,
19504,
1988,
14,
9349,
2229,
1142,
11,
188,
187,
888,
14627,
16,
14643,
52,
28,
188,
187,
187,
397,
10173,
649,
13810,
1800,
3969,
11720,
52,
10,
1167,
14,
255,
1904,
14,
9349,
2229,
1142,
11,
188,
187,
1509,
28,
188,
187,
187,
397,
3955,
16,
3587,
435,
20389,
12156,
1478,
28,
690,
70,
347,
26849,
5218,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
10173,
649,
13810,
1800,
3969,
11720,
50,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
2130,
258,
10484,
16,
5978,
14,
1962,
258,
2119,
16,
2668,
14,
19504,
1988,
258,
3747,
16,
38455,
14,
9349,
2229,
1142,
301,
645,
16,
2229,
1142,
563,
11,
790,
275,
188,
187,
86,
1276,
14,
497,
721,
1628,
16,
11720,
5877,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
3507,
13006,
5877,
1660,
866,
188,
187,
95,
188,
187,
5303,
255,
1276,
16,
4572,
336,
188,
188,
187,
253,
89,
14,
497,
721,
255,
1276,
16,
1888,
6122,
11720,
3724,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
2149,
30224,
1284,
3724,
866,
188,
187,
95,
188,
187,
5303,
369,
89,
16,
4572,
336,
188,
188,
187,
9424,
57,
721,
19504,
1988,
16,
2823,
364,
7333,
15894,
188,
187,
9424,
42,
721,
19504,
1988,
16,
3471,
364,
7333,
15894,
188,
187,
5214,
805,
54,
1078,
340,
58,
721,
1787,
535,
10,
86,
1276,
16,
2823,
1202,
348,
1787,
535,
10,
9424,
57,
11,
188,
187,
5214,
805,
54,
1078,
340,
59,
721,
1787,
535,
10,
86,
1276,
16,
3471,
1202,
348,
1787,
535,
10,
9424,
42,
11,
188,
188,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
9410,
866,
188,
187,
95,
188,
187,
10791,
721,
19274,
16,
6565,
7570,
1699,
3289,
805,
12429,
10,
3340,
16,
7570,
364,
4293,
14,
19504,
1988,
16,
2668,
46583,
11,
188,
188,
187,
5214,
58,
721,
1787,
535,
10,
10791,
16,
4160,
431,
9410,
16,
2823,
17,
20,
11,
188,
187,
5214,
59,
721,
1787,
535,
10,
10791,
16,
4033,
431,
9410,
16,
3471,
17,
20,
11,
188,
187,
90,
721,
1628,
16,
11720,
7151,
10,
5214,
58,
258,
5349,
805,
54,
1078,
340,
58,
11,
188,
187,
91,
721,
1628,
16,
11720,
7151,
10,
5214,
59,
258,
5349,
805,
54,
1078,
340,
59,
11,
188,
188,
187,
4342,
16,
1199,
32602,
10,
1167,
14,
312,
18804,
296,
13006,
1710,
384,
46232,
72,
14,
690,
72,
95,
384,
10173,
401,
948,
29,
4197,
46232,
70,
14,
690,
70,
519,
401,
948,
9410,
275,
5616,
70,
14,
690,
70,
399,
690,
6603,
7,
70,
7494,
188,
187,
187,
5214,
58,
14,
5349,
59,
14,
19504,
57,
14,
19504,
42,
14,
9410,
16,
4160,
14,
9410,
16,
4033,
14,
9410,
16,
2823,
14,
9410,
16,
3471,
11,
188,
188,
187,
397,
8927,
16,
13510,
10,
1167,
14,
830,
10,
1167,
1701,
16,
1199,
11,
790,
275,
188,
187,
187,
285,
497,
721,
369,
89,
16,
6152,
10,
90,
14,
767,
267,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
7519,
13006,
46936,
866,
188,
187,
187,
95,
188,
187,
187,
285,
497,
721,
369,
89,
16,
2097,
491,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
11537,
2215,
3043,
46936,
866,
188,
187,
187,
95,
188,
188,
187,
187,
3340,
1142,
14,
497,
721,
301,
645,
16,
901,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
1140,
19001,
613,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
4383,
16,
9610,
10,
379,
14,
312,
5177,
384,
740,
361,
645,
3218,
1460,
2646,
188,
187,
187,
95,
188,
187,
187,
285,
3218,
1142,
598,
9349,
2229,
1142,
275,
188,
350,
187,
397,
3955,
16,
1888,
435,
1753,
3218,
8424,
1596,
19884,
7065,
866,
188,
187,
187,
95,
188,
188,
187,
187,
397,
869,
188,
187,
519,
396,
4342,
16,
13510,
1996,
93,
4280,
28,
1639,
258,
1247,
16,
7386,
14,
22870,
28,
7237,
258,
1247,
16,
28370,
1436,
188,
188,
95,
188,
188,
1857,
10173,
649,
13810,
1800,
3969,
11720,
52,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
9349,
2229,
1142,
301,
645,
16,
2229,
1142,
563,
11,
790,
275,
188,
187,
397,
8927,
16,
13510,
10,
1167,
14,
830,
10,
1167,
1701,
16,
1199,
11,
790,
275,
188,
187,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
4383,
16,
9610,
10,
379,
14,
312,
15302,
655,
740,
401,
948,
3218,
9410,
2646,
188,
187,
187,
95,
188,
188,
187,
187,
10791,
721,
3218,
16,
7570,
364,
4293,
188,
188,
187,
187,
285,
497,
721,
9019,
16,
6152,
10,
1167,
14,
255,
1904,
14,
19274,
16,
1888,
2211,
10,
10791,
16,
4160,
13,
10791,
16,
2823,
17,
20,
14,
9410,
16,
4033,
13,
10791,
16,
3471,
17,
20,
399,
257,
267,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
379,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
721,
8927,
16,
14519,
10,
1167,
14,
1247,
16,
7386,
267,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
379,
11,
188,
187,
187,
95,
188,
187,
187,
285,
497,
721,
9019,
16,
11783,
10,
1167,
14,
255,
1904,
14,
9019,
16,
4160,
3086,
267,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
379,
11,
188,
187,
187,
95,
188,
187,
187,
285,
497,
721,
9019,
16,
6239,
10,
1167,
14,
255,
1904,
14,
9019,
16,
4160,
3086,
267,
497,
598,
869,
275,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
379,
11,
188,
187,
187,
95,
188,
188,
187,
187,
285,
497,
721,
301,
645,
16,
18414,
13090,
2189,
2229,
1142,
10,
1167,
14,
255,
1904,
14,
28380,
1140,
19001,
613,
14,
9349,
2229,
1142,
267,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
15919,
655,
10173,
384,
9349,
3218,
1460,
866,
188,
187,
187,
95,
188,
187,
187,
397,
869,
188,
187,
519,
396,
4342,
16,
13510,
1996,
93,
4280,
28,
2884,
258,
1247,
16,
7386,
14,
22870,
28,
7237,
258,
1247,
16,
28370,
1436,
188,
95,
188,
188,
1857,
24803,
25329,
2229,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
11,
790,
275,
188,
187,
397,
8927,
16,
13510,
10,
1167,
14,
830,
10,
1167,
1701,
16,
1199,
11,
790,
275,
188,
187,
187,
2256,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1753,
401,
948,
3218,
22468,
1596,
3231,
4584,
7065,
866,
188,
187,
187,
95,
188,
187,
187,
397,
869,
188,
187,
519,
396,
4342,
16,
13510,
1996,
93,
4280,
28,
1639,
258,
1247,
16,
7386,
1436,
188,
95,
188,
188,
1857,
740,
25329,
2229,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
11,
1714,
1037,
16,
2229,
14,
790,
11,
275,
188,
187,
397,
301,
645,
16,
6112,
2229,
10,
1167,
14,
255,
1904,
14,
830,
10,
89,
258,
1037,
16,
2229,
11,
1019,
275,
429,
344,
16,
1142,
489,
301,
645,
16,
2229,
1142,
25329,
3784,
188,
95,
188,
188,
1857,
18215,
39199,
629,
5092,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
11,
790,
275,
188,
187,
828,
8296,
258,
32394,
2119,
16,
1175,
188,
188,
187,
285,
497,
721,
8927,
16,
13510,
10,
1167,
14,
830,
10,
1167,
1701,
16,
1199,
11,
790,
275,
188,
187,
187,
828,
497,
790,
188,
187,
187,
3757,
14,
497,
260,
42330,
2119,
16,
6112,
46937,
10,
1167,
14,
255,
1904,
14,
42330,
2119,
16,
6112,
2911,
93,
613,
28,
312,
14367,
50,
555,
1140,
347,
4351,
613,
28,
312,
1037,
17,
39199,
629,
2189,
3086,
1782,
2818,
12,
1149,
16,
7386,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
1074,
33802,
629,
8296,
1590,
3231,
4584,
7065,
866,
188,
187,
187,
95,
188,
187,
187,
397,
869,
188,
187,
519,
396,
4342,
16,
13510,
1996,
93,
4280,
28,
1639,
258,
1247,
16,
7386,
4246,
497,
598,
869,
275,
188,
187,
187,
397,
3955,
16,
9610,
10,
379,
14,
312,
5177,
384,
26271,
33802,
629,
37971,
866,
188,
187,
95,
188,
187,
5303,
8296,
16,
6239,
10,
1167,
11,
188,
188,
187,
397,
8296,
16,
4160,
5628,
10,
1167,
11,
188,
95,
188,
188,
1857,
24803,
1888,
7570,
1748,
11316,
10,
1167,
1701,
16,
1199,
14,
255,
1904,
258,
32394,
16,
1140,
5716,
14,
2556,
842,
388,
14,
9053,
9053,
563,
14,
349,
5815,
1787,
535,
14,
11854,
388,
11,
790,
275,
188,
187,
397,
8927,
16,
13510,
10,
1167,
14,
830,
10,
1167,
1701,
16,
1199,
11,
790,
275,
188,
187,
187,
3340,
14,
497,
721,
740,
25329,
2229,
10,
1167,
14,
255,
1904,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
1888,
435,
5177,
384,
1301,
401,
948,
3218,
866,
188,
187,
187,
95,
188,
187,
187,
10791,
721,
3218,
16,
7570,
364,
4293,
188,
187,
187,
288,
8130,
2536,
721,
3218,
16,
1556,
8130,
2536,
188,
188,
187,
187,
285,
425,
8130,
2536,
275,
188,
350,
187,
397,
3955,
16,
1888,
435,
1753,
3218,
425,
6379,
15927,
2536,
866,
188,
187,
187,
95,
188,
188,
187,
187,
828,
1689,
842,
388,
188,
187,
187,
2349,
9053,
275,
188,
187,
187,
888,
3689,
28,
188,
350,
187,
1892,
842,
260,
388,
10,
4964,
16,
11140,
10,
1879,
535,
10,
10791,
16,
4160,
11,
258,
349,
5815,
452,
188,
187,
187,
888,
3982,
28,
188,
350,
187,
1892,
842,
260,
388,
10,
4964,
16,
11140,
10,
1879,
535,
10,
10791,
16,
4033,
11,
258,
349,
5815,
452,
188,
187,
187,
888,
2052,
28,
188,
350,
187,
1892,
842,
260,
388,
10,
4964,
16,
11140,
10,
1879,
535,
10,
10791,
16,
4160,
13,
10791,
16,
2823,
11,
258,
349,
5815,
452,
188,
187,
187,
888,
8782,
28,
188,
350,
187,
1892,
842,
260,
388,
10,
4964,
16,
11140,
10,
1879,
535,
10,
10791,
16,
4033,
13,
10791,
16,
3471,
11,
258,
349,
5815,
452,
188,
187,
187,
1509,
28,
188,
350,
187,
397,
8927,
16,
13510,
8790,
10,
4383,
16,
3587,
435,
6162,
9053,
640,
690,
88,
347,
9053,
452,
188,
187,
187,
95,
188,
187,
187,
285,
388,
10,
4964,
16,
7791,
10,
1879,
535,
10,
2297,
842,
15,
1892,
842,
2135,
609,
11854,
275,
188,
350,
187,
397,
3955,
16,
3587,
435,
1753,
401,
948,
3218,
5068,
1596,
1447,
306,
2556,
9410,
7065,
29,
5604,
690,
70,
14,
3793,
690,
70,
347,
1689,
842,
14,
2556,
842,
11,
188,
187,
187,
95,
188,
188,
187,
187,
397,
869,
188,
187,
519,
396,
4342,
16,
13510,
1996,
93,
4280,
28,
1639,
258,
1247,
16,
7386,
1436,
188,
95
] | [
1592,
17,
5877,
4270,
4,
188,
187,
4,
48080,
549,
17,
86,
682,
17,
4342,
4,
188,
11,
188,
188,
819,
280,
188,
187,
19527,
1140,
19001,
613,
260,
312,
1587,
16,
48080,
16,
10484,
16,
1028,
1041,
16,
19511,
248,
19511,
4,
188,
188,
187,
22949,
2229,
3796,
6635,
28314,
3289,
260,
1013,
188,
188,
187,
19527,
3369,
914,
11316,
12429,
260,
678,
188,
188,
187,
35618,
1232,
24884,
4109,
3289,
260,
5619,
188,
11,
188,
188,
558,
9053,
563,
388,
188,
188,
819,
280,
188,
187,
2754,
9053,
563,
260,
29028,
188,
187,
1035,
188,
187,
2605,
188,
187,
6813,
188,
11,
188,
188,
558,
9193,
563,
691,
188,
188,
819,
280,
188,
187,
1572,
29992,
9193,
563,
260,
29028,
188,
187,
1182,
5978,
188,
187,
4016,
50,
555,
188,
11,
188,
188,
558,
28380,
1140,
3399,
830,
10,
1609,
16,
1199,
14,
258,
32394,
16,
1140,
5716,
14,
258,
10484,
16,
13090,
14,
258,
10484,
16,
5978,
14,
258,
2119,
16,
2668,
14,
258,
3747,
16,
38455,
11,
790,
188,
188,
558,
28380,
1140,
2911,
603,
275,
188,
187,
579,
209,
209,
209,
209,
209,
209,
776,
188,
187,
2300,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
1140,
3399,
188,
187,
989,
2152,
9193,
563,
188,
95,
188,
188,
828,
28380,
6998,
260,
1397,
19527,
1140,
2911,
93,
188,
187,
93,
579,
28,
312,
25329,
11735,
347,
3094,
28,
1086,
649,
2880,
3356,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
35172,
3481,
5351,
347,
3094,
28,
1086,
25329,
13794,
805,
2459,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
7142,
17828,
13975,
3532,
347,
3094,
28,
1086,
25329,
32466,
13975,
3532,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
3409,
29808,
5933,
347,
3094,
28,
1086,
649,
1739,
1374,
25329,
1888,
34592,
2229,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
3409,
14136,
5933,
347,
3094,
28,
1086,
649,
1739,
1374,
25329,
1888,
12501,
2229,
14,
1777,
2152,
28,
916,
29992,
519,
188,
187,
93,
579,
28,
312,
25329,
9024,
25329,
7123,
16906,
347,
3094,
28,
1086,
649,
1739,
1374,
649,
2880,
248,
16906,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
23429,
25329,
331,
281,
629,
19722,
347,
3094,
28,
1086,
25329,
13264,
28560,
39199,
629,
5092,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
23429,
25329,
15847,
30224,
347,
3094,
28,
1086,
25329,
13264,
28560,
3969,
11720,
14,
1777,
2152,
28,
1589,
5978,
519,
188,
187,
93,
579,
28,
312,
25329,
27090,
7118,
86,
1708,
347,
3094,
28,
1086,
25329,
14523,
45275,
1988,
14,
1777,
2152,
28,
9734,
50,
555,
519,
188,
95,
188,
188,
1857,
1777,
336,
275,
188,
187,
4342,
16,
1320,
1140,
699,
4342,
16,
1140,
93,
188,
187,
187,
3399,
28,
209,
209,
209,
209,
209,
209,
209,
209,
401,
948,
14,
188,
187,
187,
1625,
28,
209,
209,
209,
209,
209,
209,
209,
209,
312,
20636,
758,
30615,
775,
44365,
15,
248,
15,
20510,
8729,
784,
2556,
347,
188,
187,
187,
28210,
28,
209,
209,
209,
209,
1397,
530,
2315,
299,
12461,
13361,
1008,
34,
48080,
16,
1587,
347,
312,
10484,
15,
4984,
13,
86,
682,
34,
2735,
16,
817,
1782,
188,
187,
187,
3896,
28,
209,
209,
209,
209,
209,
209,
209,
209,
1397,
530,
2315,
1578,
28,
2742,
864,
347,
312,
17639,
266,
1782,
188,
187,
187,
9654,
38649,
28,
1397,
530,
2315,
32394,
1782,
188,
187,
187,
2748,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
14627,
16,
11835,
299,
833,
188,
187,
187,
4280,
28,
209,
209,
209,
209,
209,
915,
258,
1247,
16,
22707,
14,
188,
187,
187,
2911,
28,
1397,
4342,
16,
3082,
4107,
188,
350,
187,
1400,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
6998,
14,
188,
350,
187,
9727,
9654,
38649,
28,
1397,
530,
2315,
7091,
65,
82,
1782,
188,
187,
187,
519,
275,
188,
350,
187,
613,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
312,
1585,
347,
188,
350,
187,
1400,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
28380,
6998,
14,
188,
350,
187,
9727,
9654,
38649,
28,
1397,
530,
2315,
7091,
65,
1585,
1782,
188,
187,
187,
2598,
188,
187,
1436,
188,
95,
188,
188,
1857,
401,
948,
10,
1167,
1701,
16,
1199,
14,
298,
258,
4342,
16,
1142,
11,
275,
188,
188,
187,
10958,
721,
830,
10,
379,
790,
11,
275,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
85,
16,
5944,
435,
4258,
28,
3525,
497,
11,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
2082,
721,
298,
16,
2748,
842,
30996,
10484,
16,
2748,
883,
717,
34592,
188,
188,
187,
86,
1904,
14,
497,
721,
6843,
16,
1140,
1992,
5716,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
2214,
2677,
3859,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
67,
721,
298,
16,
2748,
842,
30996,
10484,
16,
2748,
883,
717,
13090,
188,
188,
187,
819,
2155,
77,
613,
260,
312,
14367,
50,
555,
1140,
16,
362,
77,
4,
188,
187,
85,
16,
1783,
435,
10850,
296,
3525,
2155,
77,
613,
11,
188,
187,
285,
497,
721,
301,
16,
10850,
10,
1167,
14,
14627,
16,
1093,
45,
1461,
10,
362,
77,
613,
619,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
10312,
296,
1579,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
19527,
2533,
14,
497,
721,
14627,
16,
1888,
5978,
10,
67,
14,
28380,
1140,
19001,
613,
14,
6381,
50,
555,
5978,
866,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
401,
948,
12910,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
28380,
2533,
16,
4572,
336,
188,
188,
187,
561,
25329,
1881,
2533,
14,
497,
721,
14627,
16,
1888,
5978,
10,
67,
14,
28380,
1140,
19001,
613,
14,
6381,
26403,
50,
555,
1881,
5978,
866,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
2149,
8476,
12910,
401,
948,
1856,
12910,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
19247,
25329,
1881,
2533,
16,
4572,
336,
188,
188,
187,
436,
14,
497,
721,
301,
16,
1888,
3697,
30655,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
27189,
10169,
15532,
476,
697,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
5303,
1962,
16,
4572,
10,
1167,
11,
188,
188,
187,
9424,
1034,
14,
497,
721,
4197,
16,
901,
3977,
1034,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
2812,
4197,
2405,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
7569,
39199,
629,
10226,
14,
497,
721,
301,
645,
16,
901,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
33802,
629,
9513,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
853,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
301,
645,
16,
39199,
629,
10226,
10093,
267,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
755,
33802,
629,
9513,
384,
36485,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
39199,
629,
10226,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
9923,
39199,
629,
10226,
11,
188,
188,
187,
7569,
39199,
629,
12618,
14,
497,
721,
301,
645,
16,
901,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
33802,
629,
8386,
28,
3525,
497,
11,
188,
187,
95,
188,
187,
285,
497,
721,
301,
645,
16,
853,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
301,
645,
16,
39199,
629,
12618,
23983,
4839,
16767,
267,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
755,
33802,
629,
8386,
384,
35084,
9024,
35509,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
39199,
629,
12618,
10,
1167,
14,
255,
1904,
14,
19504,
1034,
16,
565,
14,
9923,
39199,
629,
12618,
11,
188,
188,
187,
44930,
1988,
3897,
14,
497,
721,
301,
645,
16,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
2077,
86,
1708,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
5303,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
2077,
86,
1988,
3897,
11,
188,
188,
187,
9424,
1988,
14,
497,
721,
301,
645,
16,
3977,
38455,
10,
1167,
14,
255,
1904,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
4197,
1708,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
44930,
17791,
721,
1397,
2178,
93,
2543,
14,
868,
95,
188,
187,
2553,
5626,
5978,
25329,
721,
1397,
2178,
93,
2239,
14,
893,
95,
188,
187,
8161,
5218,
14,
497,
721,
14627,
16,
14643,
2013,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
85,
16,
5944,
435,
4258,
384,
740,
306,
12156,
1478,
28,
3525,
497,
11,
188,
187,
95,
188,
188,
187,
529,
2426,
2077,
86,
1988,
721,
2068,
2077,
86,
17791,
275,
188,
187,
187,
85,
16,
32602,
435,
12247,
6390,
670,
2077,
86,
1708,
4250,
3493,
86,
347,
2077,
86,
1988,
11,
188,
187,
187,
285,
497,
721,
301,
645,
16,
853,
45275,
1988,
3897,
10,
1167,
14,
255,
1904,
14,
2077,
86,
1988,
267,
497,
598,
869,
275,
188,
350,
187,
85,
16,
8409,
435,
4258,
384,
755,
2077,
86,
1708,
4250,
384,
690,
86,
28,
690,
88,
347,
2077,
86,
1988,
14,
497,
11,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
8476,
5978,
25329,
721,
2068,
3268,
5626,
5978,
25329,
275,
188,
350,
187,
285,
504,
6599,
5978,
25329,
692,
2077,
86,
1988,
692,
26849,
5218,
489,
14627,
16,
14643,
52,
275,
188,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
188,
350,
187,
85,
16,
32602,
435,
12247,
6390,
670,
2077,
86,
1708,
4250,
3493,
86,
509,
437,
1992,
50,
4250,
3493,
86,
347,
2077,
86,
1988,
14,
8476,
5978,
25329,
11,
188,
350,
187,
529,
3990,
14,
1086,
721,
2068,
298,
16,
3082,
1033,
4661,
19527,
1140,
2911,
11,
275,
188,
2054,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
25889,
384,
2443,
1086,
28,
3525,
1086,
16,
579,
11,
188,
188,
2054,
187,
285,
1086,
16,
989,
2152,
489,
1589,
5978,
875,
1086,
16,
989,
2152,
489,
9734,
50,
555,
275,
188,
1263,
187,
285,
8476,
5978,
25329,
275,
188,
5520,
187,
10958,
10,
561,
25329,
1881,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
452,
188,
1263,
187,
95,
188,
188,
1263,
187,
10958,
10,
19527,
2533,
16,
2163,
10,
1167,
14,
255,
1904,
452,
188,
188,
1263,
187,
285,
8476,
5978,
25329,
275,
188,
188,
5520,
187,
285,
497,
721,
8927,
16,
14519,
10,
1167,
14,
1247,
16,
7386,
267,
497,
598,
869,
275,
188,
8446,
187,
85,
16,
5944,
435,
4258,
384,
10326,
9954,
446,
437,
1992,
50,
28,
3525,
497,
11,
188,
5520,
187,
95,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
188,
2054,
187,
285,
1086,
16,
989,
2152,
489,
9734,
50,
555,
275,
188,
188,
1263,
187,
4342,
16,
1199,
1783,
10,
1167,
14,
312,
1140,
7625,
401,
948,
5116,
1460,
14,
31516,
401,
948
] |
72,792 | package common
import (
"context"
"fmt"
"sync"
"time"
"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
vim25types "github.com/vmware/govmomi/vim25/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
cnsvsphere "sigs.k8s.io/vsphere-csi-driver/pkg/common/cns-lib/vsphere"
"sigs.k8s.io/vsphere-csi-driver/pkg/csi/service/logger"
)
type AuthorizationService interface {
GetDatastoreMapForBlockVolumes(ctx context.Context) map[string]*cnsvsphere.DatastoreInfo
GetFsEnabledClusterToDsMap(ctx context.Context) map[string][]*cnsvsphere.DatastoreInfo
ResetvCenterInstance(ctx context.Context, vCenter *cnsvsphere.VirtualCenter)
}
type AuthManager struct {
datastoreMapForBlockVolumes map[string]*cnsvsphere.DatastoreInfo
fsEnabledClusterToDsMap map[string][]*cnsvsphere.DatastoreInfo
rwMutex sync.RWMutex
vcenter *cnsvsphere.VirtualCenter
}
var onceForAuthorizationService sync.Once
var authManagerInstance *AuthManager
func GetAuthorizationService(ctx context.Context, vc *cnsvsphere.VirtualCenter) (AuthorizationService, error) {
log := logger.GetLogger(ctx)
onceForAuthorizationService.Do(func() {
log.Info("Initializing authorization service...")
authManagerInstance = &AuthManager{
datastoreMapForBlockVolumes: make(map[string]*cnsvsphere.DatastoreInfo),
fsEnabledClusterToDsMap: make(map[string][]*cnsvsphere.DatastoreInfo),
rwMutex: sync.RWMutex{},
vcenter: vc,
}
})
log.Info("authorization service initialized")
return authManagerInstance, nil
}
func (authManager *AuthManager) GetDatastoreMapForBlockVolumes(ctx context.Context) map[string]*cnsvsphere.DatastoreInfo {
datastoreMapForBlockVolumes := make(map[string]*cnsvsphere.DatastoreInfo)
authManager.rwMutex.RLock()
defer authManager.rwMutex.RUnlock()
for dsURL, dsInfo := range authManager.datastoreMapForBlockVolumes {
datastoreMapForBlockVolumes[dsURL] = dsInfo
}
return datastoreMapForBlockVolumes
}
func (authManager *AuthManager) GetFsEnabledClusterToDsMap(ctx context.Context) map[string][]*cnsvsphere.DatastoreInfo {
fsEnabledClusterToDsMap := make(map[string][]*cnsvsphere.DatastoreInfo)
authManager.rwMutex.RLock()
defer authManager.rwMutex.RUnlock()
for clusterID, datastores := range authManager.fsEnabledClusterToDsMap {
fsEnabledClusterToDsMap[clusterID] = datastores
}
return fsEnabledClusterToDsMap
}
func (authManager *AuthManager) ResetvCenterInstance(ctx context.Context, vCenter *cnsvsphere.VirtualCenter) {
log := logger.GetLogger(ctx)
log.Info("Resetting vCenter Instance in the AuthManager")
authManager.vcenter = vCenter
}
func (authManager *AuthManager) refreshDatastoreMapForBlockVolumes() {
ctx, log := logger.GetNewContextWithLogger()
log.Debug("auth manager: refreshDatastoreMapForBlockVolumes is triggered")
newDatastoreMapForBlockVolumes, err := GenerateDatastoreMapForBlockVolumes(ctx, authManager.vcenter)
if err == nil {
authManager.rwMutex.Lock()
defer authManager.rwMutex.Unlock()
authManager.datastoreMapForBlockVolumes = newDatastoreMapForBlockVolumes
log.Debugf("auth manager: datastoreMapForBlockVolumes is updated to %v", newDatastoreMapForBlockVolumes)
} else {
log.Warnf("auth manager: failed to get updated datastoreMapForBlockVolumes, Err: %v", err)
}
}
func (authManager *AuthManager) refreshFSEnabledClustersToDsMap() {
ctx, log := logger.GetNewContextWithLogger()
log.Debug("auth manager: refreshDatastoreMapsForFileVolumes is triggered")
newFsEnabledClusterToDsMap, err := GenerateFSEnabledClustersToDsMap(ctx, authManager.vcenter)
if err == nil {
authManager.rwMutex.Lock()
defer authManager.rwMutex.Unlock()
authManager.fsEnabledClusterToDsMap = newFsEnabledClusterToDsMap
log.Debugf("auth manager: newFsEnabledClusterToDsMap is updated to %v", newFsEnabledClusterToDsMap)
} else {
log.Warnf("auth manager: failed to get updated datastoreMapForFileVolumes, Err: %v", err)
}
}
func ComputeDatastoreMapForBlockVolumes(authManager *AuthManager, authCheckInterval int) {
log := logger.GetLoggerWithNoContext()
log.Info("auth manager: ComputeDatastoreMapForBlockVolumes enter")
ticker := time.NewTicker(time.Duration(authCheckInterval) * time.Minute)
for ; true; <-ticker.C {
authManager.refreshDatastoreMapForBlockVolumes()
}
}
func ComputeFSEnabledClustersToDsMap(authManager *AuthManager, authCheckInterval int) {
log := logger.GetLoggerWithNoContext()
log.Info("auth manager: ComputeFSEnabledClustersToDsMap enter")
ticker := time.NewTicker(time.Duration(authCheckInterval) * time.Minute)
for ; true; <-ticker.C {
authManager.refreshFSEnabledClustersToDsMap()
}
}
func GenerateDatastoreMapForBlockVolumes(ctx context.Context, vc *cnsvsphere.VirtualCenter) (map[string]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
dcList, err := vc.GetDatacenters(ctx)
if err != nil {
msg := fmt.Sprintf("failed to get datacenter list. err: %+v", err)
log.Error(msg)
return nil, status.Errorf(codes.Internal, msg)
}
var dsURLTodsInfoMap map[string]*cnsvsphere.DatastoreInfo
var dsURLs []string
var dsInfos []*cnsvsphere.DatastoreInfo
var entities []vim25types.ManagedObjectReference
for _, dc := range dcList {
dsURLTodsInfoMap, err = dc.GetAllDatastores(ctx)
if err != nil {
msg := fmt.Sprintf("failed to get dsURLTodsInfoMap. err: %+v", err)
log.Error(msg)
}
for dsURL, dsInfo := range dsURLTodsInfoMap {
dsURLs = append(dsURLs, dsURL)
dsInfos = append(dsInfos, dsInfo)
dsMoRef := dsInfo.Reference()
entities = append(entities, dsMoRef)
}
}
dsURLToInfoMap, err := getDatastoresWithBlockVolumePrivs(ctx, vc, dsURLs, dsInfos, entities)
if err != nil {
log.Errorf("failed to get datastores with required priv. Error: %+v", err)
return nil, err
}
return dsURLToInfoMap, nil
}
func GenerateFSEnabledClustersToDsMap(ctx context.Context, vc *cnsvsphere.VirtualCenter) (map[string][]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
clusterToDsInfoListMap := make(map[string][]*cnsvsphere.DatastoreInfo)
datacenters, err := vc.ListDatacenters(ctx)
if err != nil {
log.Errorf("failed to find datacenters from VC: %q, Error: %+v", vc.Config.Host, err)
return nil, err
}
vsanDsURLToInfoMap, err := vc.GetVsanDatastores(ctx, datacenters)
if err != nil {
log.Errorf("failed to get vSAN datastores with error %+v", err)
return nil, err
}
if len(vsanDsURLToInfoMap) == 0 {
log.Debug("No vSAN datastores found")
return clusterToDsInfoListMap, nil
}
err = vc.ConnectVsan(ctx)
if err != nil {
log.Errorf("error occurred while connecting to VSAN, err: %+v", err)
return nil, err
}
fsEnabledClusterToDsURLsMap, err := getFSEnabledClusterToDsURLsMap(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get file service enabled clusters map with error %+v", err)
return nil, err
}
for clusterMoID, dsURLs := range fsEnabledClusterToDsURLsMap {
for _, dsURL := range dsURLs {
if dsInfo, ok := vsanDsURLToInfoMap[dsURL]; ok {
log.Debugf("Adding vSAN datastore %q to the list for FS enabled cluster %q", dsURL, clusterMoID)
clusterToDsInfoListMap[clusterMoID] = append(clusterToDsInfoListMap[clusterMoID], dsInfo)
}
}
}
log.Debugf("clusterToDsInfoListMap is %+v", clusterToDsInfoListMap)
return clusterToDsInfoListMap, nil
}
func IsFileServiceEnabled(ctx context.Context, datastoreUrls []string, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string]bool, error) {
log := logger.GetLogger(ctx)
err := vc.Connect(ctx)
if err != nil {
log.Errorf("failed to connect to VirtualCenter. err=%v", err)
return nil, err
}
err = vc.ConnectVsan(ctx)
if err != nil {
log.Errorf("error occurred while connecting to VSAN, err: %+v", err)
return nil, err
}
dsToFileServiceEnabledMap, err := getDsToFileServiceEnabledMap(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to query if file service is enabled on vsan datastores or not. error: %+v", err)
return nil, err
}
log.Debugf("dsToFileServiceEnabledMap is %+v", dsToFileServiceEnabledMap)
dsToFSEnabledMapToReturn := make(map[string]bool)
for _, datastoreURL := range datastoreUrls {
if val, ok := dsToFileServiceEnabledMap[datastoreURL]; ok {
if !val {
msg := fmt.Sprintf("File service is not enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = false
} else {
msg := fmt.Sprintf("File service is enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = true
}
} else {
msg := fmt.Sprintf("File service is not enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = false
}
}
return dsToFSEnabledMapToReturn, nil
}
func getDatastoresWithBlockVolumePrivs(ctx context.Context, vc *cnsvsphere.VirtualCenter,
dsURLs []string, dsInfos []*cnsvsphere.DatastoreInfo, entities []vim25types.ManagedObjectReference) (map[string]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
log.Debugf("auth manager: file - dsURLs %v dsInfos %v", dsURLs, dsInfos)
dsURLToInfoMap := make(map[string]*cnsvsphere.DatastoreInfo)
authMgr := object.NewAuthorizationManager(vc.Client.Client)
privIds := []string{DsPriv, SysReadPriv}
userName := vc.Config.Username
result, err := authMgr.HasUserPrivilegeOnEntities(ctx, entities, userName, privIds)
if err != nil {
log.Errorf("auth manager: failed to check privilege %v on entities %v for user %s", privIds, entities, userName)
return nil, err
}
log.Debugf("auth manager: HasUserPrivilegeOnEntities returns %v when checking privileges %v on entities %v for user %s", result, privIds, entities, userName)
for index, entityPriv := range result {
hasPriv := true
privAvails := entityPriv.PrivAvailability
for _, privAvail := range privAvails {
if !privAvail.IsGranted {
hasPriv = false
break
}
}
if hasPriv {
dsURLToInfoMap[dsURLs[index]] = dsInfos[index]
log.Debugf("auth manager: datastore with URL %s and name %s has privileges and is added to dsURLToInfoMap", dsInfos[index].Info.Name, dsURLs[index])
}
}
return dsURLToInfoMap, nil
}
func getDsToFileServiceEnabledMap(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string]bool, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the cluster to file service status (enabled/disabled) map.")
vSANFSClustersWithPriv, err := getFSEnabledClustersWithPriv(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get the file service enabled clusters with privileges. error: %+v", err)
return nil, err
}
dsToFileServiceEnabledMap := make(map[string]bool)
for _, cluster := range vSANFSClustersWithPriv {
dsMoList, err := getDatastoreMOsFromCluster(ctx, vc, cluster)
if err != nil {
log.Errorf("failed to get datastores for cluster %q. error: %+v", cluster.Reference().Value, err)
return nil, err
}
for _, dsMo := range dsMoList {
if dsMo.Summary.Type == VsanDatastoreType {
dsToFileServiceEnabledMap[dsMo.Info.GetDatastoreInfo().Url] = true
}
}
}
return dsToFileServiceEnabledMap, nil
}
func getFSEnabledClusterToDsURLsMap(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string][]string, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the map for vSAN FS enabled clusters to datastore URLS.")
vSANFSClustersWithPriv, err := getFSEnabledClustersWithPriv(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get the file service enabled clusters with privileges. error: %+v", err)
return nil, err
}
fsEnabledClusterToDsMap := make(map[string][]string)
for _, cluster := range vSANFSClustersWithPriv {
clusterMoID := cluster.Reference().Value
dsMoList, err := getDatastoreMOsFromCluster(ctx, vc, cluster)
if err != nil {
log.Errorf("failed to get datastores for cluster %q. error: %+v", clusterMoID, err)
return nil, err
}
for _, dsMo := range dsMoList {
if dsMo.Summary.Type == VsanDatastoreType {
fsEnabledClusterToDsMap[clusterMoID] =
append(fsEnabledClusterToDsMap[clusterMoID], dsMo.Info.GetDatastoreInfo().Url)
}
}
}
return fsEnabledClusterToDsMap, nil
}
func getFSEnabledClustersWithPriv(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) ([]*object.ClusterComputeResource, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the clusters with vSAN file services enabled and Host.Config.Storage privileges")
clusterComputeResources := []*object.ClusterComputeResource{}
for _, datacenter := range datacenters {
finder := find.NewFinder(datacenter.Datacenter.Client(), false)
finder.SetDatacenter(datacenter.Datacenter)
clusterComputeResource, err := finder.ClusterComputeResourceList(ctx, "*")
if err != nil {
if _, ok := err.(*find.NotFoundError); ok {
log.Debugf("No clusterComputeResource found in dc: %+v. error: %+v", datacenter, err)
continue
}
log.Errorf("Error occurred while getting clusterComputeResource. error: %+v", err)
return nil, err
}
clusterComputeResources = append(clusterComputeResources, clusterComputeResource...)
}
authMgr := object.NewAuthorizationManager(vc.Client.Client)
privIds := []string{HostConfigStoragePriv}
userName := vc.Config.Username
var entities []vim25types.ManagedObjectReference
clusterComputeResourcesMap := make(map[string]*object.ClusterComputeResource)
for _, cluster := range clusterComputeResources {
entities = append(entities, cluster.Reference())
clusterComputeResourcesMap[cluster.Reference().Value] = cluster
}
result, err := authMgr.HasUserPrivilegeOnEntities(ctx, entities, userName, privIds)
if err != nil {
log.Errorf("auth manager: failed to check privilege %v on entities %v for user %s", privIds, entities, userName)
return nil, err
}
log.Debugf("auth manager: HasUserPrivilegeOnEntities returns %v when checking privileges %v on entities %v for user %s", result, privIds, entities, userName)
clusterComputeResourceWithPriv := []*object.ClusterComputeResource{}
for _, entityPriv := range result {
hasPriv := true
privAvails := entityPriv.PrivAvailability
for _, privAvail := range privAvails {
if !privAvail.IsGranted {
hasPriv = false
break
}
}
if hasPriv {
clusterComputeResourceWithPriv = append(clusterComputeResourceWithPriv, clusterComputeResourcesMap[entityPriv.Entity.Value])
}
}
log.Debugf("Clusters with priv: %s are : %+v", HostConfigStoragePriv, clusterComputeResourceWithPriv)
clusterComputeResourceWithPrivAndFS := []*object.ClusterComputeResource{}
for _, cluster := range clusterComputeResourceWithPriv {
config, err := vc.VsanClient.VsanClusterGetConfig(ctx, cluster.Reference())
if err != nil {
log.Errorf("failed to get the vsan cluster config. error: %+v", err)
return nil, err
}
if !(*config.Enabled) {
log.Debugf("cluster: %+v is a non-vSAN cluster. Skipping this cluster", cluster)
continue
} else if config.FileServiceConfig == nil {
log.Debugf("VsanClusterGetConfig.FileServiceConfig is empty. Skipping this cluster: %+v with config: %+v",
cluster, config)
continue
}
log.Debugf("cluster: %+v has vSAN file services enabled: %t", cluster, config.FileServiceConfig.Enabled)
if config.FileServiceConfig.Enabled {
clusterComputeResourceWithPrivAndFS = append(clusterComputeResourceWithPrivAndFS, cluster)
}
}
return clusterComputeResourceWithPrivAndFS, nil
}
func getDatastoreMOsFromCluster(ctx context.Context, vc *cnsvsphere.VirtualCenter,
cluster *object.ClusterComputeResource) ([]mo.Datastore, error) {
log := logger.GetLogger(ctx)
datastores, err := cluster.Datastores(ctx)
if err != nil {
log.Errorf("Error occurred while getting datastores from cluster %q. error: %+v", cluster.Reference().Value, err)
return nil, err
}
pc := property.DefaultCollector(vc.Client.Client)
properties := []string{"info", "summary"}
var dsList []vim25types.ManagedObjectReference
var dsMoList []mo.Datastore
for _, datastore := range datastores {
dsList = append(dsList, datastore.Reference())
}
err = pc.Retrieve(ctx, dsList, properties, &dsMoList)
if err != nil {
log.Errorf("failed to retrieve datastores. dsObjList: %+v, properties: %+v, err: %v", dsList, properties, err)
return nil, err
}
return dsMoList, nil
} | /*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package common
import (
"context"
"fmt"
"sync"
"time"
"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
vim25types "github.com/vmware/govmomi/vim25/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
cnsvsphere "sigs.k8s.io/vsphere-csi-driver/pkg/common/cns-lib/vsphere"
"sigs.k8s.io/vsphere-csi-driver/pkg/csi/service/logger"
)
// AuthorizationService exposes interfaces to support authorization check on datastores and get datastores
// which will be used by create volume
type AuthorizationService interface {
// GetDatastoreMapForBlockVolumes returns a map of datastore URL to datastore info for only those
// datastores the CSI VC user has Datastore.FileManagement privilege for.
GetDatastoreMapForBlockVolumes(ctx context.Context) map[string]*cnsvsphere.DatastoreInfo
// GetFsEnabledClusterToDsMap returns a map of cluster ID to datastores info objects for vSAN clusters with
// file services enabled. The datastores are those on which the CSI VC user has Host.Config.Storage privilege.
GetFsEnabledClusterToDsMap(ctx context.Context) map[string][]*cnsvsphere.DatastoreInfo
// ResetvCenterInstance sets new vCenter instance for AuthorizationService
ResetvCenterInstance(ctx context.Context, vCenter *cnsvsphere.VirtualCenter)
}
// AuthManager maintains an internal map to track the datastores that need to be used by create volume
type AuthManager struct {
// map the datastore url to datastore info which need to be used when invoking CNS CreateVolume API
datastoreMapForBlockVolumes map[string]*cnsvsphere.DatastoreInfo
// map the vSAN file services enabled cluster ID to list of datastore info for that cluster.
// The datastore info objects are to be used when invoking CNS CreateVolume API
fsEnabledClusterToDsMap map[string][]*cnsvsphere.DatastoreInfo
// this mutex is to make sure the update for datastoreMap is mutually exclusive
rwMutex sync.RWMutex
// vCenter Instance
vcenter *cnsvsphere.VirtualCenter
}
// onceForAuthorizationService is used for initializing the AuthorizationService singleton.
var onceForAuthorizationService sync.Once
// authManagerIntance is instance of authManager and implements interface for AuthorizationService
var authManagerInstance *AuthManager
// GetAuthorizationService returns the singleton AuthorizationService
func GetAuthorizationService(ctx context.Context, vc *cnsvsphere.VirtualCenter) (AuthorizationService, error) {
log := logger.GetLogger(ctx)
onceForAuthorizationService.Do(func() {
log.Info("Initializing authorization service...")
authManagerInstance = &AuthManager{
datastoreMapForBlockVolumes: make(map[string]*cnsvsphere.DatastoreInfo),
fsEnabledClusterToDsMap: make(map[string][]*cnsvsphere.DatastoreInfo),
rwMutex: sync.RWMutex{},
vcenter: vc,
}
})
log.Info("authorization service initialized")
return authManagerInstance, nil
}
// GetDatastoreMapForBlockVolumes returns a DatastoreMapForBlockVolumes. This map maps datastore url to datastore info
// which need to be used when creating block volume.
func (authManager *AuthManager) GetDatastoreMapForBlockVolumes(ctx context.Context) map[string]*cnsvsphere.DatastoreInfo {
datastoreMapForBlockVolumes := make(map[string]*cnsvsphere.DatastoreInfo)
authManager.rwMutex.RLock()
defer authManager.rwMutex.RUnlock()
for dsURL, dsInfo := range authManager.datastoreMapForBlockVolumes {
datastoreMapForBlockVolumes[dsURL] = dsInfo
}
return datastoreMapForBlockVolumes
}
// GetFsEnabledClusterToDsMap returns a map of cluster ID with vSAN file services enabled to its datastore info objects.
func (authManager *AuthManager) GetFsEnabledClusterToDsMap(ctx context.Context) map[string][]*cnsvsphere.DatastoreInfo {
fsEnabledClusterToDsMap := make(map[string][]*cnsvsphere.DatastoreInfo)
authManager.rwMutex.RLock()
defer authManager.rwMutex.RUnlock()
for clusterID, datastores := range authManager.fsEnabledClusterToDsMap {
fsEnabledClusterToDsMap[clusterID] = datastores
}
return fsEnabledClusterToDsMap
}
// ResetvCenterInstance sets new vCenter instance for AuthorizationService
func (authManager *AuthManager) ResetvCenterInstance(ctx context.Context, vCenter *cnsvsphere.VirtualCenter) {
log := logger.GetLogger(ctx)
log.Info("Resetting vCenter Instance in the AuthManager")
authManager.vcenter = vCenter
}
// refreshDatastoreMapForBlockVolumes scans all datastores in vCenter to check privileges, and compute the
// datastoreMapForBlockVolumes
func (authManager *AuthManager) refreshDatastoreMapForBlockVolumes() {
ctx, log := logger.GetNewContextWithLogger()
log.Debug("auth manager: refreshDatastoreMapForBlockVolumes is triggered")
newDatastoreMapForBlockVolumes, err := GenerateDatastoreMapForBlockVolumes(ctx, authManager.vcenter)
if err == nil {
authManager.rwMutex.Lock()
defer authManager.rwMutex.Unlock()
authManager.datastoreMapForBlockVolumes = newDatastoreMapForBlockVolumes
log.Debugf("auth manager: datastoreMapForBlockVolumes is updated to %v", newDatastoreMapForBlockVolumes)
} else {
log.Warnf("auth manager: failed to get updated datastoreMapForBlockVolumes, Err: %v", err)
}
}
// refreshFSEnabledClustersToDsMap scans all clusters with vSAN FS enabled in vCenter to
// check privileges, and compute the fsEnabledClusterToDsMap
func (authManager *AuthManager) refreshFSEnabledClustersToDsMap() {
ctx, log := logger.GetNewContextWithLogger()
log.Debug("auth manager: refreshDatastoreMapsForFileVolumes is triggered")
newFsEnabledClusterToDsMap, err := GenerateFSEnabledClustersToDsMap(ctx, authManager.vcenter)
if err == nil {
authManager.rwMutex.Lock()
defer authManager.rwMutex.Unlock()
authManager.fsEnabledClusterToDsMap = newFsEnabledClusterToDsMap
log.Debugf("auth manager: newFsEnabledClusterToDsMap is updated to %v", newFsEnabledClusterToDsMap)
} else {
log.Warnf("auth manager: failed to get updated datastoreMapForFileVolumes, Err: %v", err)
}
}
// ComputeDatastoreMapForBlockVolumes refreshes DatastoreMapForBlockVolumes periodically
func ComputeDatastoreMapForBlockVolumes(authManager *AuthManager, authCheckInterval int) {
log := logger.GetLoggerWithNoContext()
log.Info("auth manager: ComputeDatastoreMapForBlockVolumes enter")
ticker := time.NewTicker(time.Duration(authCheckInterval) * time.Minute)
for ; true; <-ticker.C {
authManager.refreshDatastoreMapForBlockVolumes()
}
}
// ComputeFSEnabledClustersToDsMap refreshes fsEnabledClusterToDsMap periodically
func ComputeFSEnabledClustersToDsMap(authManager *AuthManager, authCheckInterval int) {
log := logger.GetLoggerWithNoContext()
log.Info("auth manager: ComputeFSEnabledClustersToDsMap enter")
ticker := time.NewTicker(time.Duration(authCheckInterval) * time.Minute)
for ; true; <-ticker.C {
authManager.refreshFSEnabledClustersToDsMap()
}
}
// GenerateDatastoreMapForBlockVolumes scans all datastores in Vcenter and do privilege check on those datastoes
// It will return datastores which has the privileges for creating block volume
func GenerateDatastoreMapForBlockVolumes(ctx context.Context, vc *cnsvsphere.VirtualCenter) (map[string]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
// get all datastores from VC
dcList, err := vc.GetDatacenters(ctx)
if err != nil {
msg := fmt.Sprintf("failed to get datacenter list. err: %+v", err)
log.Error(msg)
return nil, status.Errorf(codes.Internal, msg)
}
var dsURLTodsInfoMap map[string]*cnsvsphere.DatastoreInfo
var dsURLs []string
var dsInfos []*cnsvsphere.DatastoreInfo
var entities []vim25types.ManagedObjectReference
for _, dc := range dcList {
dsURLTodsInfoMap, err = dc.GetAllDatastores(ctx)
if err != nil {
msg := fmt.Sprintf("failed to get dsURLTodsInfoMap. err: %+v", err)
log.Error(msg)
}
for dsURL, dsInfo := range dsURLTodsInfoMap {
dsURLs = append(dsURLs, dsURL)
dsInfos = append(dsInfos, dsInfo)
dsMoRef := dsInfo.Reference()
entities = append(entities, dsMoRef)
}
}
dsURLToInfoMap, err := getDatastoresWithBlockVolumePrivs(ctx, vc, dsURLs, dsInfos, entities)
if err != nil {
log.Errorf("failed to get datastores with required priv. Error: %+v", err)
return nil, err
}
return dsURLToInfoMap, nil
}
// GenerateFSEnabledClustersToDsMap scans all clusters in VC and do privilege check on them.
// It will return a map of cluster id to the list of datastore objects.
// The key is cluster moid with vSAN FS enabled and Host.Config.Storage privilege.
// The value is a list of vSAN datastoreInfo objects for each cluster.
func GenerateFSEnabledClustersToDsMap(ctx context.Context, vc *cnsvsphere.VirtualCenter) (map[string][]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
clusterToDsInfoListMap := make(map[string][]*cnsvsphere.DatastoreInfo)
datacenters, err := vc.ListDatacenters(ctx)
if err != nil {
log.Errorf("failed to find datacenters from VC: %q, Error: %+v", vc.Config.Host, err)
return nil, err
}
// get all vSAN datastores from VC
vsanDsURLToInfoMap, err := vc.GetVsanDatastores(ctx, datacenters)
if err != nil {
log.Errorf("failed to get vSAN datastores with error %+v", err)
return nil, err
}
// Return empty map if no vSAN datastores are found.
if len(vsanDsURLToInfoMap) == 0 {
log.Debug("No vSAN datastores found")
return clusterToDsInfoListMap, nil
}
// Initialize vsan client
err = vc.ConnectVsan(ctx)
if err != nil {
log.Errorf("error occurred while connecting to VSAN, err: %+v", err)
return nil, err
}
fsEnabledClusterToDsURLsMap, err := getFSEnabledClusterToDsURLsMap(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get file service enabled clusters map with error %+v", err)
return nil, err
}
// Create a map of cluster to dsInfo objects. These objects are used while calling CNS
// API to create file volumes
for clusterMoID, dsURLs := range fsEnabledClusterToDsURLsMap {
for _, dsURL := range dsURLs {
if dsInfo, ok := vsanDsURLToInfoMap[dsURL]; ok {
log.Debugf("Adding vSAN datastore %q to the list for FS enabled cluster %q", dsURL, clusterMoID)
clusterToDsInfoListMap[clusterMoID] = append(clusterToDsInfoListMap[clusterMoID], dsInfo)
}
}
}
log.Debugf("clusterToDsInfoListMap is %+v", clusterToDsInfoListMap)
return clusterToDsInfoListMap, nil
}
// IsFileServiceEnabled checks if file service is enabled on the specified datastoreUrls.
func IsFileServiceEnabled(ctx context.Context, datastoreUrls []string, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string]bool, error) {
// Compute this map during controller init. Re use the map every other time.
log := logger.GetLogger(ctx)
err := vc.Connect(ctx)
if err != nil {
log.Errorf("failed to connect to VirtualCenter. err=%v", err)
return nil, err
}
err = vc.ConnectVsan(ctx)
if err != nil {
log.Errorf("error occurred while connecting to VSAN, err: %+v", err)
return nil, err
}
// This gets the datastore to file service enabled map for all vsan datastores
// belonging to clusters with vSAN FS enabled and Host.Config.Storage privileges
dsToFileServiceEnabledMap, err := getDsToFileServiceEnabledMap(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to query if file service is enabled on vsan datastores or not. error: %+v", err)
return nil, err
}
log.Debugf("dsToFileServiceEnabledMap is %+v", dsToFileServiceEnabledMap)
// Now create a map of datastores which are queried in the method.
dsToFSEnabledMapToReturn := make(map[string]bool)
for _, datastoreURL := range datastoreUrls {
if val, ok := dsToFileServiceEnabledMap[datastoreURL]; ok {
if !val {
msg := fmt.Sprintf("File service is not enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = false
} else {
msg := fmt.Sprintf("File service is enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = true
}
} else {
msg := fmt.Sprintf("File service is not enabled on the datastore: %s", datastoreURL)
log.Debugf(msg)
dsToFSEnabledMapToReturn[datastoreURL] = false
}
}
return dsToFSEnabledMapToReturn, nil
}
// getDatastoresWithBlockVolumePrivs gets datastores with required priv for CSI user
func getDatastoresWithBlockVolumePrivs(ctx context.Context, vc *cnsvsphere.VirtualCenter,
dsURLs []string, dsInfos []*cnsvsphere.DatastoreInfo, entities []vim25types.ManagedObjectReference) (map[string]*cnsvsphere.DatastoreInfo, error) {
log := logger.GetLogger(ctx)
log.Debugf("auth manager: file - dsURLs %v dsInfos %v", dsURLs, dsInfos)
// dsURLToInfoMap will store a list of vSAN datastores with vSAN FS enabled for which
// CSI user has privilege to
dsURLToInfoMap := make(map[string]*cnsvsphere.DatastoreInfo)
// get authMgr
authMgr := object.NewAuthorizationManager(vc.Client.Client)
privIds := []string{DsPriv, SysReadPriv}
userName := vc.Config.Username
// invoke authMgr function HasUserPrivilegeOnEntities
result, err := authMgr.HasUserPrivilegeOnEntities(ctx, entities, userName, privIds)
if err != nil {
log.Errorf("auth manager: failed to check privilege %v on entities %v for user %s", privIds, entities, userName)
return nil, err
}
log.Debugf("auth manager: HasUserPrivilegeOnEntities returns %v when checking privileges %v on entities %v for user %s", result, privIds, entities, userName)
for index, entityPriv := range result {
hasPriv := true
privAvails := entityPriv.PrivAvailability
for _, privAvail := range privAvails {
// required privilege is not grant for this entity
if !privAvail.IsGranted {
hasPriv = false
break
}
}
if hasPriv {
dsURLToInfoMap[dsURLs[index]] = dsInfos[index]
log.Debugf("auth manager: datastore with URL %s and name %s has privileges and is added to dsURLToInfoMap", dsInfos[index].Info.Name, dsURLs[index])
}
}
return dsURLToInfoMap, nil
}
// Creates a map of vsan datastores to file service enabled status.
// Since only datastores belonging to clusters with vSAN FS enabled and Host.Config.Storage privileges are returned,
// file service enabled status will be true for them.
func getDsToFileServiceEnabledMap(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string]bool, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the cluster to file service status (enabled/disabled) map.")
//Get clusters with vSAN FS enabled and privileges
vSANFSClustersWithPriv, err := getFSEnabledClustersWithPriv(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get the file service enabled clusters with privileges. error: %+v", err)
return nil, err
}
dsToFileServiceEnabledMap := make(map[string]bool)
for _, cluster := range vSANFSClustersWithPriv {
dsMoList, err := getDatastoreMOsFromCluster(ctx, vc, cluster)
if err != nil {
log.Errorf("failed to get datastores for cluster %q. error: %+v", cluster.Reference().Value, err)
return nil, err
}
// TODO: Also identify which vSAN datastore is management
// and which one is a workload datastore to support file volumes on VMC
for _, dsMo := range dsMoList {
if dsMo.Summary.Type == VsanDatastoreType {
dsToFileServiceEnabledMap[dsMo.Info.GetDatastoreInfo().Url] = true
}
}
}
return dsToFileServiceEnabledMap, nil
}
// Creates a map of cluster id to datastore urls.
// The key is cluster moid with vSAN FS enabled and Host.Config.Storage privilege.
// The value is a list of vSAN datastore URLs for each cluster.
func getFSEnabledClusterToDsURLsMap(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) (map[string][]string, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the map for vSAN FS enabled clusters to datastore URLS.")
//Get clusters with vSAN FS enabled and privileges
vSANFSClustersWithPriv, err := getFSEnabledClustersWithPriv(ctx, vc, datacenters)
if err != nil {
log.Errorf("failed to get the file service enabled clusters with privileges. error: %+v", err)
return nil, err
}
fsEnabledClusterToDsMap := make(map[string][]string)
for _, cluster := range vSANFSClustersWithPriv {
clusterMoID := cluster.Reference().Value
dsMoList, err := getDatastoreMOsFromCluster(ctx, vc, cluster)
if err != nil {
log.Errorf("failed to get datastores for cluster %q. error: %+v", clusterMoID, err)
return nil, err
}
for _, dsMo := range dsMoList {
if dsMo.Summary.Type == VsanDatastoreType {
fsEnabledClusterToDsMap[clusterMoID] =
append(fsEnabledClusterToDsMap[clusterMoID], dsMo.Info.GetDatastoreInfo().Url)
}
}
}
return fsEnabledClusterToDsMap, nil
}
// Returns a list of clusters with Host.Config.Storage privilege and vSAN file services enabled.
func getFSEnabledClustersWithPriv(ctx context.Context, vc *cnsvsphere.VirtualCenter, datacenters []*cnsvsphere.Datacenter) ([]*object.ClusterComputeResource, error) {
log := logger.GetLogger(ctx)
log.Debugf("Computing the clusters with vSAN file services enabled and Host.Config.Storage privileges")
// Get clusters from datacenters
clusterComputeResources := []*object.ClusterComputeResource{}
for _, datacenter := range datacenters {
finder := find.NewFinder(datacenter.Datacenter.Client(), false)
finder.SetDatacenter(datacenter.Datacenter)
clusterComputeResource, err := finder.ClusterComputeResourceList(ctx, "*")
if err != nil {
if _, ok := err.(*find.NotFoundError); ok {
log.Debugf("No clusterComputeResource found in dc: %+v. error: %+v", datacenter, err)
continue
}
log.Errorf("Error occurred while getting clusterComputeResource. error: %+v", err)
return nil, err
}
clusterComputeResources = append(clusterComputeResources, clusterComputeResource...)
}
// Get Clusters with HostConfigStoragePriv
authMgr := object.NewAuthorizationManager(vc.Client.Client)
privIds := []string{HostConfigStoragePriv}
userName := vc.Config.Username
var entities []vim25types.ManagedObjectReference
clusterComputeResourcesMap := make(map[string]*object.ClusterComputeResource)
for _, cluster := range clusterComputeResources {
entities = append(entities, cluster.Reference())
clusterComputeResourcesMap[cluster.Reference().Value] = cluster
}
// invoke authMgr function HasUserPrivilegeOnEntities
result, err := authMgr.HasUserPrivilegeOnEntities(ctx, entities, userName, privIds)
if err != nil {
log.Errorf("auth manager: failed to check privilege %v on entities %v for user %s", privIds, entities, userName)
return nil, err
}
log.Debugf("auth manager: HasUserPrivilegeOnEntities returns %v when checking privileges %v on entities %v for user %s", result, privIds, entities, userName)
clusterComputeResourceWithPriv := []*object.ClusterComputeResource{}
for _, entityPriv := range result {
hasPriv := true
privAvails := entityPriv.PrivAvailability
for _, privAvail := range privAvails {
// required privilege is not grant for this entity
if !privAvail.IsGranted {
hasPriv = false
break
}
}
if hasPriv {
clusterComputeResourceWithPriv = append(clusterComputeResourceWithPriv, clusterComputeResourcesMap[entityPriv.Entity.Value])
}
}
log.Debugf("Clusters with priv: %s are : %+v", HostConfigStoragePriv, clusterComputeResourceWithPriv)
// Get clusters which are vSAN and have vSAN FS enabled
clusterComputeResourceWithPrivAndFS := []*object.ClusterComputeResource{}
// Get all the vsan datastores with vsan FS from these clusters and add it to map.
for _, cluster := range clusterComputeResourceWithPriv {
// Get the cluster config to know if file service is enabled on it or not.
config, err := vc.VsanClient.VsanClusterGetConfig(ctx, cluster.Reference())
if err != nil {
log.Errorf("failed to get the vsan cluster config. error: %+v", err)
return nil, err
}
if !(*config.Enabled) {
log.Debugf("cluster: %+v is a non-vSAN cluster. Skipping this cluster", cluster)
continue
} else if config.FileServiceConfig == nil {
log.Debugf("VsanClusterGetConfig.FileServiceConfig is empty. Skipping this cluster: %+v with config: %+v",
cluster, config)
continue
}
log.Debugf("cluster: %+v has vSAN file services enabled: %t", cluster, config.FileServiceConfig.Enabled)
if config.FileServiceConfig.Enabled {
clusterComputeResourceWithPrivAndFS = append(clusterComputeResourceWithPrivAndFS, cluster)
}
}
return clusterComputeResourceWithPrivAndFS, nil
}
// Returns datastore managed objects with info & summary properties for a given cluster
func getDatastoreMOsFromCluster(ctx context.Context, vc *cnsvsphere.VirtualCenter,
cluster *object.ClusterComputeResource) ([]mo.Datastore, error) {
log := logger.GetLogger(ctx)
datastores, err := cluster.Datastores(ctx)
if err != nil {
log.Errorf("Error occurred while getting datastores from cluster %q. error: %+v", cluster.Reference().Value, err)
return nil, err
}
// Get datastore properties
pc := property.DefaultCollector(vc.Client.Client)
properties := []string{"info", "summary"}
var dsList []vim25types.ManagedObjectReference
var dsMoList []mo.Datastore
for _, datastore := range datastores {
dsList = append(dsList, datastore.Reference())
}
err = pc.Retrieve(ctx, dsList, properties, &dsMoList)
if err != nil {
log.Errorf("failed to retrieve datastores. dsObjList: %+v, properties: %+v, err: %v", dsList, properties, err)
return nil, err
}
return dsMoList, nil
}
| [
5786,
5534,
188,
188,
4747,
280,
188,
187,
4,
1609,
4,
188,
187,
4,
2763,
4,
188,
187,
4,
2044,
4,
188,
187,
4,
1149,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
35847,
17,
2035,
1585,
29047,
17,
2625,
4,
188,
187,
4,
3140,
16,
817,
17,
35847,
17,
2035,
1585,
29047,
17,
1647,
4,
188,
187,
4,
3140,
16,
817,
17,
35847,
17,
2035,
1585,
29047,
17,
3299,
4,
188,
187,
4,
3140,
16,
817,
17,
35847,
17,
2035,
1585,
29047,
17,
32949,
953,
17,
839,
4,
188,
187,
32949,
953,
2820,
312,
3140,
16,
817,
17,
35847,
17,
2035,
1585,
29047,
17,
32949,
953,
17,
2820,
4,
188,
187,
4,
2735,
16,
9161,
16,
1587,
17,
7989,
17,
8030,
4,
188,
187,
4,
2735,
16,
9161,
16,
1587,
17,
7989,
17,
1341,
4,
188,
188,
187,
69,
1999,
88,
19968,
312,
32014,
16,
77,
26,
85,
16,
626,
17,
88,
19968,
15,
6542,
15,
2639,
17,
5090,
17,
2670,
17,
69,
1999,
15,
1906,
17,
88,
19968,
4,
188,
187,
4,
32014,
16,
77,
26,
85,
16,
626,
17,
88,
19968,
15,
6542,
15,
2639,
17,
5090,
17,
6542,
17,
3627,
17,
6645,
4,
188,
11,
188,
188,
558,
32743,
1700,
2251,
275,
188,
188,
187,
23364,
2161,
1324,
1642,
2074,
24076,
10,
1167,
1701,
16,
1199,
11,
1929,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
188,
187,
901,
14691,
3897,
4989,
805,
25121,
1324,
10,
1167,
1701,
16,
1199,
11,
1929,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
188,
187,
6103,
88,
9358,
2146,
10,
1167,
1701,
16,
1199,
14,
325,
9358,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
11,
188,
95,
188,
188,
558,
3968,
2045,
603,
275,
188,
188,
187,
31375,
1324,
1642,
2074,
24076,
1929,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
188,
187,
1106,
3897,
4989,
805,
25121,
1324,
1929,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
188,
187,
5691,
8751,
6202,
16,
40285,
188,
188,
187,
88,
6207,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
188,
95,
188,
188,
828,
5120,
1642,
13917,
1700,
6202,
16,
12209,
188,
188,
828,
3588,
2045,
2146,
258,
3228,
2045,
188,
188,
1857,
1301,
13917,
1700,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
11,
280,
13917,
1700,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
7987,
1642,
13917,
1700,
16,
3174,
10,
1857,
336,
275,
188,
187,
187,
1151,
16,
1034,
435,
2026,
12289,
20348,
3491,
40642,
188,
188,
187,
187,
2363,
2045,
2146,
260,
396,
3228,
2045,
93,
188,
350,
187,
31375,
1324,
1642,
2074,
24076,
28,
2311,
10,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
399,
188,
350,
187,
1106,
3897,
4989,
805,
25121,
1324,
28,
209,
209,
209,
209,
2311,
10,
806,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
399,
188,
350,
187,
5691,
8751,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
6202,
16,
40285,
4364,
188,
350,
187,
88,
6207,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
13151,
14,
188,
187,
187,
95,
188,
187,
1436,
188,
188,
187,
1151,
16,
1034,
435,
20028,
3491,
8036,
866,
188,
187,
397,
3588,
2045,
2146,
14,
869,
188,
95,
188,
188,
1857,
280,
2363,
2045,
258,
3228,
2045,
11,
1301,
43530,
1324,
1642,
2074,
24076,
10,
1167,
1701,
16,
1199,
11,
1929,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
275,
188,
187,
31375,
1324,
1642,
2074,
24076,
721,
2311,
10,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
11,
188,
187,
2363,
2045,
16,
5691,
8751,
16,
25918,
336,
188,
187,
5303,
3588,
2045,
16,
5691,
8751,
16,
26256,
336,
188,
187,
529,
9554,
3382,
14,
9554,
1034,
721,
2068,
3588,
2045,
16,
31375,
1324,
1642,
2074,
24076,
275,
188,
187,
187,
31375,
1324,
1642,
2074,
24076,
61,
2984,
3382,
63,
260,
9554,
1034,
188,
187,
95,
188,
187,
397,
41513,
1324,
1642,
2074,
24076,
188,
95,
188,
188,
1857,
280,
2363,
2045,
258,
3228,
2045,
11,
1301,
14691,
3897,
4989,
805,
25121,
1324,
10,
1167,
1701,
16,
1199,
11,
1929,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
275,
188,
187,
1106,
3897,
4989,
805,
25121,
1324,
721,
2311,
10,
806,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
11,
188,
187,
2363,
2045,
16,
5691,
8751,
16,
25918,
336,
188,
187,
5303,
3588,
2045,
16,
5691,
8751,
16,
26256,
336,
188,
187,
529,
6500,
565,
14,
859,
31185,
721,
2068,
3588,
2045,
16,
1106,
3897,
4989,
805,
25121,
1324,
275,
188,
187,
187,
1106,
3897,
4989,
805,
25121,
1324,
61,
6509,
565,
63,
260,
859,
31185,
188,
187,
95,
188,
187,
397,
6159,
3897,
4989,
805,
25121,
1324,
188,
95,
188,
188,
1857,
280,
2363,
2045,
258,
3228,
2045,
11,
5593,
88,
9358,
2146,
10,
1167,
1701,
16,
1199,
14,
325,
9358,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
1034,
435,
6103,
1314,
325,
9358,
9428,
353,
306,
3968,
2045,
866,
188,
187,
2363,
2045,
16,
88,
6207,
260,
325,
9358,
188,
95,
188,
188,
1857,
280,
2363,
2045,
258,
3228,
2045,
11,
13376,
43530,
1324,
1642,
2074,
24076,
336,
275,
188,
187,
1167,
14,
1862,
721,
6183,
16,
901,
47352,
1748,
5084,
336,
188,
187,
1151,
16,
3468,
435,
2363,
8756,
28,
13376,
43530,
1324,
1642,
2074,
24076,
425,
16358,
866,
188,
187,
1002,
43530,
1324,
1642,
2074,
24076,
14,
497,
721,
10539,
43530,
1324,
1642,
2074,
24076,
10,
1167,
14,
3588,
2045,
16,
88,
6207,
11,
188,
187,
285,
497,
489,
869,
275,
188,
187,
187,
2363,
2045,
16,
5691,
8751,
16,
3503,
336,
188,
187,
187,
5303,
3588,
2045,
16,
5691,
8751,
16,
7871,
336,
188,
187,
187,
2363,
2045,
16,
31375,
1324,
1642,
2074,
24076,
260,
605,
43530,
1324,
1642,
2074,
24076,
188,
187,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
41513,
1324,
1642,
2074,
24076,
425,
6691,
384,
690,
88,
347,
605,
43530,
1324,
1642,
2074,
24076,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1151,
16,
19550,
72,
435,
2363,
8756,
28,
2985,
384,
740,
6691,
41513,
1324,
1642,
2074,
24076,
14,
2117,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
2363,
2045,
258,
3228,
2045,
11,
13376,
32028,
80,
1555,
21933,
805,
25121,
1324,
336,
275,
188,
187,
1167,
14,
1862,
721,
6183,
16,
901,
47352,
1748,
5084,
336,
188,
187,
1151,
16,
3468,
435,
2363,
8756,
28,
13376,
43530,
15490,
1642,
1165,
24076,
425,
16358,
866,
188,
187,
1002,
14691,
3897,
4989,
805,
25121,
1324,
14,
497,
721,
10539,
32028,
80,
1555,
21933,
805,
25121,
1324,
10,
1167,
14,
3588,
2045,
16,
88,
6207,
11,
188,
187,
285,
497,
489,
869,
275,
188,
187,
187,
2363,
2045,
16,
5691,
8751,
16,
3503,
336,
188,
187,
187,
5303,
3588,
2045,
16,
5691,
8751,
16,
7871,
336,
188,
188,
187,
187,
2363,
2045,
16,
1106,
3897,
4989,
805,
25121,
1324,
260,
605,
14691,
3897,
4989,
805,
25121,
1324,
188,
187,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
605,
14691,
3897,
4989,
805,
25121,
1324,
425,
6691,
384,
690,
88,
347,
605,
14691,
3897,
4989,
805,
25121,
1324,
11,
188,
187,
95,
730,
275,
188,
187,
187,
1151,
16,
19550,
72,
435,
2363,
8756,
28,
2985,
384,
740,
6691,
41513,
1324,
1642,
1165,
24076,
14,
2117,
28,
690,
88,
347,
497,
11,
188,
187,
95,
188,
95,
188,
188,
1857,
10020,
43530,
1324,
1642,
2074,
24076,
10,
2363,
2045,
258,
3228,
2045,
14,
3588,
2435,
6572,
388,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
1748,
2487,
1199,
336,
188,
187,
1151,
16,
1034,
435,
2363,
8756,
28,
10020,
43530,
1324,
1642,
2074,
24076,
9734,
866,
188,
187,
43549,
721,
1247,
16,
1888,
41177,
10,
1149,
16,
5354,
10,
2363,
2435,
6572,
11,
258,
1247,
16,
22707,
11,
188,
187,
529,
2255,
868,
29,
7912,
43549,
16,
37,
275,
188,
187,
187,
2363,
2045,
16,
9970,
43530,
1324,
1642,
2074,
24076,
336,
188,
187,
95,
188,
95,
188,
188,
1857,
10020,
32028,
80,
1555,
21933,
805,
25121,
1324,
10,
2363,
2045,
258,
3228,
2045,
14,
3588,
2435,
6572,
388,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
1748,
2487,
1199,
336,
188,
187,
1151,
16,
1034,
435,
2363,
8756,
28,
10020,
32028,
80,
1555,
21933,
805,
25121,
1324,
9734,
866,
188,
187,
43549,
721,
1247,
16,
1888,
41177,
10,
1149,
16,
5354,
10,
2363,
2435,
6572,
11,
258,
1247,
16,
22707,
11,
188,
187,
529,
2255,
868,
29,
7912,
43549,
16,
37,
275,
188,
187,
187,
2363,
2045,
16,
9970,
32028,
80,
1555,
21933,
805,
25121,
1324,
336,
188,
187,
95,
188,
95,
188,
188,
1857,
10539,
43530,
1324,
1642,
2074,
24076,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
11,
280,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
188,
187,
3220,
862,
14,
497,
721,
13151,
16,
901,
9405,
321,
316,
475,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1459,
721,
2764,
16,
5696,
435,
5177,
384,
740,
5860,
321,
4016,
1214,
16,
497,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
1151,
16,
914,
10,
1459,
11,
188,
187,
187,
397,
869,
14,
1941,
16,
3587,
10,
8030,
16,
3977,
14,
2535,
11,
188,
187,
95,
188,
187,
828,
9554,
3382,
42512,
85,
44251,
1929,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
187,
828,
9554,
31969,
1397,
530,
188,
187,
828,
9554,
13068,
8112,
69,
1999,
88,
19968,
16,
43530,
1034,
188,
187,
828,
17087,
1397,
32949,
953,
2820,
16,
13083,
22672,
188,
187,
529,
2426,
9138,
721,
2068,
9138,
862,
275,
188,
187,
187,
2984,
3382,
42512,
85,
44251,
14,
497,
260,
9138,
16,
32460,
883,
31185,
10,
1167,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1459,
721,
2764,
16,
5696,
435,
5177,
384,
740,
9554,
3382,
42512,
85,
44251,
16,
497,
28,
23795,
88,
347,
497,
11,
188,
350,
187,
1151,
16,
914,
10,
1459,
11,
188,
187,
187,
95,
188,
187,
187,
529,
9554,
3382,
14,
9554,
1034,
721,
2068,
9554,
3382,
42512,
85,
44251,
275,
188,
350,
187,
2984,
31969,
260,
3343,
10,
2984,
31969,
14,
9554,
3382,
11,
188,
350,
187,
2984,
13068,
260,
3343,
10,
2984,
13068,
14,
9554,
1034,
11,
188,
350,
187,
2984,
12807,
1990,
721,
9554,
1034,
16,
3611,
336,
188,
350,
187,
17381,
260,
3343,
10,
17381,
14,
9554,
12807,
1990,
11,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
2984,
3382,
805,
44251,
14,
497,
721,
30650,
31185,
1748,
2074,
4478,
10393,
85,
10,
1167,
14,
13151,
14,
9554,
31969,
14,
9554,
13068,
14,
17087,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
859,
31185,
670,
2430,
5445,
16,
3166,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
9554,
3382,
805,
44251,
14,
869,
188,
95,
188,
188,
1857,
10539,
32028,
80,
1555,
21933,
805,
25121,
1324,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
11,
280,
806,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
6509,
805,
25121,
33594,
1324,
721,
2311,
10,
806,
61,
530,
22209,
12,
69,
1999,
88,
19968,
16,
43530,
1034,
11,
188,
188,
187,
44679,
316,
475,
14,
497,
721,
13151,
16,
862,
9405,
321,
316,
475,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
3352,
5860,
321,
316,
475,
797,
16705,
28,
690,
83,
14,
3166,
28,
23795,
88,
347,
13151,
16,
1224,
16,
3699,
14,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
4450,
278,
25121,
3382,
805,
44251,
14,
497,
721,
13151,
16,
901,
19982,
278,
883,
31185,
10,
1167,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
325,
24272,
859,
31185,
670,
790,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
285,
1005,
10,
4450,
278,
25121,
3382,
805,
44251,
11,
489,
257,
275,
188,
187,
187,
1151,
16,
3468,
435,
2487,
325,
24272,
859,
31185,
2721,
866,
188,
187,
187,
397,
6500,
805,
25121,
33594,
1324,
14,
869,
188,
187,
95,
188,
188,
187,
379,
260,
13151,
16,
6607,
19982,
278,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
1096,
10335,
2027,
32302,
384,
659,
24272,
14,
497,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
1106,
3897,
4989,
805,
25121,
31969,
1324,
14,
497,
721,
740,
32028,
80,
1555,
4989,
805,
25121,
31969,
1324,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
837,
3491,
4250,
23802,
1929,
670,
790,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
529,
6500,
12807,
565,
14,
9554,
31969,
721,
2068,
6159,
3897,
4989,
805,
25121,
31969,
1324,
275,
188,
187,
187,
529,
2426,
9554,
3382,
721,
2068,
9554,
31969,
275,
188,
350,
187,
285,
9554,
1034,
14,
3164,
721,
9919,
278,
25121,
3382,
805,
44251,
61,
2984,
3382,
768,
3164,
275,
188,
2054,
187,
1151,
16,
37837,
435,
35462,
325,
24272,
41513,
690,
83,
384,
306,
1214,
446,
12419,
4250,
6500,
690,
83,
347,
9554,
3382,
14,
6500,
12807,
565,
11,
188,
2054,
187,
6509,
805,
25121,
33594,
1324,
61,
6509,
12807,
565,
63,
260,
3343,
10,
6509,
805,
25121,
33594,
1324,
61,
6509,
12807,
565,
630,
9554,
1034,
11,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
1151,
16,
37837,
435,
6509,
805,
25121,
33594,
1324,
425,
23795,
88,
347,
6500,
805,
25121,
33594,
1324,
11,
188,
187,
397,
6500,
805,
25121,
33594,
1324,
14,
869,
188,
95,
188,
188,
1857,
3543,
1165,
1700,
3897,
10,
1167,
1701,
16,
1199,
14,
41513,
26944,
1397,
530,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
63,
2178,
14,
790,
11,
275,
188,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
379,
721,
13151,
16,
6607,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
4908,
384,
11045,
9358,
16,
497,
3493,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
379,
260,
13151,
16,
6607,
19982,
278,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
1096,
10335,
2027,
32302,
384,
659,
24272,
14,
497,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
2984,
27450,
1700,
3897,
1324,
14,
497,
721,
740,
38,
14473,
1165,
1700,
3897,
1324,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
3599,
392,
837,
3491,
425,
4250,
611,
9919,
278,
859,
31185,
551,
655,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
2984,
27450,
1700,
3897,
1324,
425,
23795,
88,
347,
9554,
27450,
1700,
3897,
1324,
11,
188,
188,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
721,
2311,
10,
806,
61,
530,
63,
2178,
11,
188,
187,
529,
2426,
41513,
3382,
721,
2068,
41513,
26944,
275,
188,
187,
187,
285,
930,
14,
3164,
721,
9554,
27450,
1700,
3897,
1324,
61,
31375,
3382,
768,
3164,
275,
188,
350,
187,
285,
504,
592,
275,
188,
2054,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
655,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
2054,
187,
1151,
16,
37837,
10,
1459,
11,
188,
2054,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
893,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
2054,
187,
1151,
16,
37837,
10,
1459,
11,
188,
2054,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
868,
188,
350,
187,
95,
188,
187,
187,
95,
730,
275,
188,
350,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
655,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
350,
187,
1151,
16,
37837,
10,
1459,
11,
188,
350,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
893,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
805,
32028,
80,
1555,
1324,
805,
3499,
14,
869,
188,
95,
188,
188,
1857,
30650,
31185,
1748,
2074,
4478,
10393,
85,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
188,
187,
2984,
31969,
1397,
530,
14,
9554,
13068,
8112,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
17087,
1397,
32949,
953,
2820,
16,
13083,
22672,
11,
280,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
837,
418,
9554,
31969,
690,
88,
9554,
13068,
690,
88,
347,
9554,
31969,
14,
9554,
13068,
11,
188,
188,
187,
2984,
3382,
805,
44251,
721,
2311,
10,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
11,
188,
188,
187,
2363,
12132,
721,
1299,
16,
1888,
13917,
2045,
10,
3910,
16,
1784,
16,
1784,
11,
188,
187,
1308,
6244,
721,
1397,
530,
93,
25121,
10393,
14,
8646,
1933,
10393,
95,
188,
188,
187,
38007,
721,
13151,
16,
1224,
16,
15540,
188,
188,
187,
1275,
14,
497,
721,
3588,
12132,
16,
3837,
2116,
25866,
1887,
14248,
10,
1167,
14,
17087,
14,
38976,
14,
5445,
6244,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
2363,
8756,
28,
2985,
384,
1586,
36429,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
9006,
2116,
25866,
1887,
14248,
2183,
690,
88,
1655,
10452,
40187,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
1146,
14,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
529,
1536,
14,
5764,
10393,
721,
2068,
1146,
275,
188,
187,
187,
2124,
10393,
721,
868,
188,
187,
187,
1308,
5195,
14302,
721,
5764,
10393,
16,
10393,
19736,
188,
187,
187,
529,
2426,
5445,
30834,
721,
2068,
5445,
5195,
14302,
275,
188,
188,
350,
187,
285,
504,
1308,
30834,
16,
1556,
20928,
299,
275,
188,
2054,
187,
2124,
10393,
260,
893,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
187,
285,
1590,
10393,
275,
188,
350,
187,
2984,
3382,
805,
44251,
61,
2984,
31969,
61,
1126,
3322,
260,
9554,
13068,
61,
1126,
63,
188,
350,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
41513,
670,
5824,
690,
85,
509,
700,
690,
85,
1590,
40187,
509,
425,
5222,
384,
9554,
3382,
805,
44251,
347,
9554,
13068,
61,
1126,
913,
1034,
16,
613,
14,
9554,
31969,
61,
1126,
1278,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
3382,
805,
44251,
14,
869,
188,
95,
188,
188,
1857,
740,
38,
14473,
1165,
1700,
3897,
1324,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
63,
2178,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
6500,
384,
837,
3491,
1941,
280,
4456,
17,
7167,
11,
1929,
11313,
188,
188,
187,
88,
24272,
1890,
21933,
1748,
10393,
14,
497,
721,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
306,
837,
3491,
4250,
23802,
670,
40187,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
2984,
27450,
1700,
3897,
1324,
721,
2311,
10,
806,
61,
530,
63,
2178,
11,
188,
187,
529,
2426,
6500,
721,
2068,
325,
24272,
1890,
21933,
1748,
10393,
275,
188,
187,
187,
2984,
12807,
862,
14,
497,
721,
30650,
2161,
1029,
85,
1699,
4989,
10,
1167,
14,
13151,
14,
6500,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1151,
16,
3587,
435,
5177,
384,
740,
859,
31185,
446,
6500,
690,
83,
16,
790,
28,
23795,
88,
347,
6500,
16,
3611,
1033,
842,
14,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
9554,
12807,
721,
2068,
9554,
12807,
862,
275,
188,
350,
187,
285,
9554,
12807,
16,
8156,
16,
563,
489,
659,
37161,
43530,
563,
275,
188,
2054,
187,
2984,
27450,
1700,
3897,
1324,
61,
2984,
12807,
16,
1034,
16,
23364,
2161,
1034,
1033,
3681,
63,
260,
868,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
27450,
1700,
3897,
1324,
14,
869,
188,
95,
188,
188,
1857,
740,
32028,
80,
1555,
4989,
805,
25121,
31969,
1324,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
22209,
530,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
1929,
446,
325,
24272,
12419,
4250,
23802,
384,
41513,
5824,
53,
11313,
188,
188,
187,
88,
24272,
1890,
21933,
1748,
10393,
14,
497,
721,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
306,
837,
3491,
4250,
23802,
670,
40187,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
1106,
3897,
4989,
805,
25121,
1324,
721,
2311,
10,
806,
61,
530,
22209,
530,
11,
188,
187,
529,
2426,
6500,
721,
2068,
325,
24272,
1890,
21933,
1748,
10393,
275,
188,
187,
187,
6509,
12807,
565,
721,
6500,
16,
3611,
1033,
842,
188,
187,
187,
2984,
12807,
862,
14,
497,
721,
30650,
2161,
1029,
85,
1699,
4989,
10,
1167,
14,
13151,
14,
6500,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1151,
16,
3587,
435,
5177,
384,
740,
859,
31185,
446,
6500,
690,
83,
16,
790,
28,
23795,
88,
347,
6500,
12807,
565,
14,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
529,
2426,
9554,
12807,
721,
2068,
9554,
12807,
862,
275,
188,
350,
187,
285,
9554,
12807,
16,
8156,
16,
563,
489,
659,
37161,
43530,
563,
275,
188,
2054,
187,
1106,
3897,
4989,
805,
25121,
1324,
61,
6509,
12807,
565,
63,
260,
188,
1263,
187,
2288,
10,
1106,
3897,
4989,
805,
25121,
1324,
61,
6509,
12807,
565,
630,
9554,
12807,
16,
1034,
16,
23364,
2161,
1034,
1033,
3681,
11,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
6159,
3897,
4989,
805,
25121,
1324,
14,
869,
188,
95,
188,
188,
1857,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
38870,
1647,
16,
4989,
11110,
2019,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
23802,
670,
325,
24272,
837,
12742,
4250,
509,
9601,
16,
1224,
16,
4166,
40187,
866,
188,
188,
187,
6509,
11110,
6883,
721,
8112,
1647,
16,
4989,
11110,
2019,
2475,
188,
187,
529,
2426,
5860,
321,
4016,
721,
2068,
5860,
321,
316,
475,
275,
188,
187,
187,
23457,
721,
3352,
16,
1888,
14543,
10,
44679,
4016,
16,
9405,
321,
4016,
16,
1784,
833,
893,
11,
188,
187,
187,
23457,
16,
853,
9405,
321,
4016,
10,
44679,
4016,
16,
9405,
321,
4016,
11,
188,
187,
187,
6509,
11110,
2019,
14,
497,
721,
35260,
16,
4989,
11110,
36126,
10,
1167,
14,
12213,
866,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
285,
2426,
3164,
721,
497,
9004,
2625,
16,
31902,
267,
3164,
275,
188,
2054,
187,
1151,
16,
37837,
435,
2487,
6500,
11110,
2019,
2721,
353,
9138,
28,
23795,
88,
16,
790,
28,
23795,
88,
347,
5860,
321,
4016,
14,
497,
11,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1151,
16,
3587,
435,
914,
10335,
2027,
13721,
6500,
11110,
2019,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
6509,
11110,
6883,
260,
3343,
10,
6509,
11110,
6883,
14,
6500,
11110,
2019,
5013,
188,
187,
95,
188,
188,
187,
2363,
12132,
721,
1299,
16,
1888,
13917,
2045,
10,
3910,
16,
1784,
16,
1784,
11,
188,
187,
1308,
6244,
721,
1397,
530,
93,
3699,
1224,
4166,
10393,
95,
188,
187,
38007,
721,
13151,
16,
1224,
16,
15540,
188,
187,
828,
17087,
1397,
32949,
953,
2820,
16,
13083,
22672,
188,
187,
6509,
11110,
6883,
1324,
721,
2311,
10,
806,
61,
530,
5717,
1647,
16,
4989,
11110,
2019,
11,
188,
187,
529,
2426,
6500,
721,
2068,
6500,
11110,
6883,
275,
188,
187,
187,
17381,
260,
3343,
10,
17381,
14,
6500,
16,
3611,
1202,
188,
187,
187,
6509,
11110,
6883,
1324,
61,
6509,
16,
3611,
1033,
842,
63,
260,
6500,
188,
187,
95,
188,
188,
187,
1275,
14,
497,
721,
3588,
12132,
16,
3837,
2116,
25866,
1887,
14248,
10,
1167,
14,
17087,
14,
38976,
14,
5445,
6244,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
2363,
8756,
28,
2985,
384,
1586,
36429,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
9006,
2116,
25866,
1887,
14248,
2183,
690,
88,
1655,
10452,
40187,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
1146,
14,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
6509,
11110,
2019,
1748,
10393,
721,
8112,
1647,
16,
4989,
11110,
2019,
2475,
188,
187,
529,
2426,
5764,
10393,
721,
2068,
1146,
275,
188,
187,
187,
2124,
10393,
721,
868,
188,
187,
187,
1308,
5195,
14302,
721,
5764,
10393,
16,
10393,
19736,
188,
187,
187,
529,
2426,
5445,
30834,
721,
2068,
5445,
5195,
14302,
275,
188,
188,
350,
187,
285,
504,
1308,
30834,
16,
1556,
20928,
299,
275,
188,
2054,
187,
2124,
10393,
260,
893,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
187,
285,
1590,
10393,
275,
188,
350,
187,
6509,
11110,
2019,
1748,
10393,
260,
3343,
10,
6509,
11110,
2019,
1748,
10393,
14,
6500,
11110,
6883,
1324,
61,
4883,
10393,
16,
3111,
16,
842,
1278,
188,
187,
187,
95,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
21933,
670,
5445,
28,
690,
85,
955,
477,
23795,
88,
347,
9601,
1224,
4166,
10393,
14,
6500,
11110,
2019,
1748,
10393,
11,
188,
188,
187,
6509,
11110,
2019,
1748,
10393,
2606,
1890,
721,
8112,
1647,
16,
4989,
11110,
2019,
2475,
188,
188,
187,
529,
2426,
6500,
721,
2068,
6500,
11110,
2019,
1748,
10393,
275,
188,
188,
187,
187,
1231,
14,
497,
721,
13151,
16,
19982,
278,
1784,
16,
19982,
278,
4989,
901,
1224,
10,
1167,
14,
6500,
16,
3611,
1202,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1151,
16,
3587,
435,
5177,
384,
740,
306,
9919,
278,
6500,
1601,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
285,
504,
1717,
1231,
16,
3897,
11,
275,
188,
350,
187,
1151,
16,
37837,
435,
6509,
28,
23795,
88,
425,
301,
2512,
15,
88,
24272,
6500,
16,
11451,
3334,
486,
6500,
347,
6500,
11,
188,
350,
187,
3691,
188,
187,
187,
95,
730,
392,
1601,
16,
1165,
37504,
489,
869,
275,
188,
350,
187,
1151,
16,
37837,
435,
19982,
278,
4989,
901,
1224,
16,
1165,
37504,
425,
3190,
16,
11451,
3334,
486,
6500,
28,
23795,
88,
670,
1601,
28,
23795,
88,
347,
188,
2054,
187,
6509,
14,
1601,
11,
188,
350,
187,
3691,
188,
187,
187,
95,
188,
188,
187,
187,
1151,
16,
37837,
435,
6509,
28,
23795,
88,
1590,
325,
24272,
837,
12742,
4250,
28,
690,
86,
347,
6500,
14,
1601,
16,
1165,
37504,
16,
3897,
11,
188,
187,
187,
285,
1601,
16,
1165,
37504,
16,
3897,
275,
188,
350,
187,
6509,
11110,
2019,
1748,
10393,
2606,
1890,
260,
3343,
10,
6509,
11110,
2019,
1748,
10393,
2606,
1890,
14,
6500,
11,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
6500,
11110,
2019,
1748,
10393,
2606,
1890,
14,
869,
188,
95,
188,
188,
1857,
30650,
2161,
1029,
85,
1699,
4989,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
188,
187,
6509,
258,
1647,
16,
4989,
11110,
2019,
11,
6784,
839,
16,
43530,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
568,
31185,
14,
497,
721,
6500,
16,
883,
31185,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
914,
10335,
2027,
13721,
859,
31185,
797,
6500,
690,
83,
16,
790,
28,
23795,
88,
347,
6500,
16,
3611,
1033,
842,
14,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
1044,
721,
3282,
16,
2320,
15467,
10,
3910,
16,
1784,
16,
1784,
11,
188,
187,
5765,
721,
1397,
530,
2315,
766,
347,
312,
1525,
6629,
188,
187,
828,
9554,
862,
1397,
32949,
953,
2820,
16,
13083,
22672,
188,
187,
828,
9554,
12807,
862,
1397,
839,
16,
43530,
188,
187,
529,
2426,
41513,
721,
2068,
859,
31185,
275,
188,
187,
187,
2984,
862,
260,
3343,
10,
2984,
862,
14,
41513,
16,
3611,
1202,
188,
187,
95,
188,
187,
379,
260,
6342,
16,
27929,
10,
1167,
14,
9554,
862,
14,
5308,
14,
396,
2984,
12807,
862,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
11378,
859,
31185,
16,
9554,
3711,
862,
28,
23795,
88,
14,
5308,
28,
23795,
88,
14,
497,
28,
690,
88,
347,
9554,
862,
14,
5308,
14,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
397,
9554,
12807,
862,
14,
869,
188,
95
] | [
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
63,
2178,
14,
790,
11,
275,
188,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
379,
721,
13151,
16,
6607,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
4908,
384,
11045,
9358,
16,
497,
3493,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
379,
260,
13151,
16,
6607,
19982,
278,
10,
1167,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
1096,
10335,
2027,
32302,
384,
659,
24272,
14,
497,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
2984,
27450,
1700,
3897,
1324,
14,
497,
721,
740,
38,
14473,
1165,
1700,
3897,
1324,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
3599,
392,
837,
3491,
425,
4250,
611,
9919,
278,
859,
31185,
551,
655,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
2984,
27450,
1700,
3897,
1324,
425,
23795,
88,
347,
9554,
27450,
1700,
3897,
1324,
11,
188,
188,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
721,
2311,
10,
806,
61,
530,
63,
2178,
11,
188,
187,
529,
2426,
41513,
3382,
721,
2068,
41513,
26944,
275,
188,
187,
187,
285,
930,
14,
3164,
721,
9554,
27450,
1700,
3897,
1324,
61,
31375,
3382,
768,
3164,
275,
188,
350,
187,
285,
504,
592,
275,
188,
2054,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
655,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
2054,
187,
1151,
16,
37837,
10,
1459,
11,
188,
2054,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
893,
188,
350,
187,
95,
730,
275,
188,
2054,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
2054,
187,
1151,
16,
37837,
10,
1459,
11,
188,
2054,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
868,
188,
350,
187,
95,
188,
187,
187,
95,
730,
275,
188,
350,
187,
1459,
721,
2764,
16,
5696,
435,
1165,
3491,
425,
655,
4250,
611,
306,
41513,
28,
690,
85,
347,
41513,
3382,
11,
188,
350,
187,
1151,
16,
37837,
10,
1459,
11,
188,
350,
187,
2984,
805,
32028,
80,
1555,
1324,
805,
3499,
61,
31375,
3382,
63,
260,
893,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
805,
32028,
80,
1555,
1324,
805,
3499,
14,
869,
188,
95,
188,
188,
1857,
30650,
31185,
1748,
2074,
4478,
10393,
85,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
188,
187,
2984,
31969,
1397,
530,
14,
9554,
13068,
8112,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
17087,
1397,
32949,
953,
2820,
16,
13083,
22672,
11,
280,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
837,
418,
9554,
31969,
690,
88,
9554,
13068,
690,
88,
347,
9554,
31969,
14,
9554,
13068,
11,
188,
188,
187,
2984,
3382,
805,
44251,
721,
2311,
10,
806,
61,
530,
5717,
69,
1999,
88,
19968,
16,
43530,
1034,
11,
188,
188,
187,
2363,
12132,
721,
1299,
16,
1888,
13917,
2045,
10,
3910,
16,
1784,
16,
1784,
11,
188,
187,
1308,
6244,
721,
1397,
530,
93,
25121,
10393,
14,
8646,
1933,
10393,
95,
188,
188,
187,
38007,
721,
13151,
16,
1224,
16,
15540,
188,
188,
187,
1275,
14,
497,
721,
3588,
12132,
16,
3837,
2116,
25866,
1887,
14248,
10,
1167,
14,
17087,
14,
38976,
14,
5445,
6244,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
2363,
8756,
28,
2985,
384,
1586,
36429,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
9006,
2116,
25866,
1887,
14248,
2183,
690,
88,
1655,
10452,
40187,
690,
88,
611,
17087,
690,
88,
446,
1935,
690,
85,
347,
1146,
14,
5445,
6244,
14,
17087,
14,
38976,
11,
188,
187,
529,
1536,
14,
5764,
10393,
721,
2068,
1146,
275,
188,
187,
187,
2124,
10393,
721,
868,
188,
187,
187,
1308,
5195,
14302,
721,
5764,
10393,
16,
10393,
19736,
188,
187,
187,
529,
2426,
5445,
30834,
721,
2068,
5445,
5195,
14302,
275,
188,
188,
350,
187,
285,
504,
1308,
30834,
16,
1556,
20928,
299,
275,
188,
2054,
187,
2124,
10393,
260,
893,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
187,
285,
1590,
10393,
275,
188,
350,
187,
2984,
3382,
805,
44251,
61,
2984,
31969,
61,
1126,
3322,
260,
9554,
13068,
61,
1126,
63,
188,
350,
187,
1151,
16,
37837,
435,
2363,
8756,
28,
41513,
670,
5824,
690,
85,
509,
700,
690,
85,
1590,
40187,
509,
425,
5222,
384,
9554,
3382,
805,
44251,
347,
9554,
13068,
61,
1126,
913,
1034,
16,
613,
14,
9554,
31969,
61,
1126,
1278,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
3382,
805,
44251,
14,
869,
188,
95,
188,
188,
1857,
740,
38,
14473,
1165,
1700,
3897,
1324,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
63,
2178,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
6500,
384,
837,
3491,
1941,
280,
4456,
17,
7167,
11,
1929,
11313,
188,
188,
187,
88,
24272,
1890,
21933,
1748,
10393,
14,
497,
721,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
306,
837,
3491,
4250,
23802,
670,
40187,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
2984,
27450,
1700,
3897,
1324,
721,
2311,
10,
806,
61,
530,
63,
2178,
11,
188,
187,
529,
2426,
6500,
721,
2068,
325,
24272,
1890,
21933,
1748,
10393,
275,
188,
187,
187,
2984,
12807,
862,
14,
497,
721,
30650,
2161,
1029,
85,
1699,
4989,
10,
1167,
14,
13151,
14,
6500,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1151,
16,
3587,
435,
5177,
384,
740,
859,
31185,
446,
6500,
690,
83,
16,
790,
28,
23795,
88,
347,
6500,
16,
3611,
1033,
842,
14,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
188,
187,
187,
529,
2426,
9554,
12807,
721,
2068,
9554,
12807,
862,
275,
188,
350,
187,
285,
9554,
12807,
16,
8156,
16,
563,
489,
659,
37161,
43530,
563,
275,
188,
2054,
187,
2984,
27450,
1700,
3897,
1324,
61,
2984,
12807,
16,
1034,
16,
23364,
2161,
1034,
1033,
3681,
63,
260,
868,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
9554,
27450,
1700,
3897,
1324,
14,
869,
188,
95,
188,
188,
1857,
740,
32028,
80,
1555,
4989,
805,
25121,
31969,
1324,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
280,
806,
61,
530,
22209,
530,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
1929,
446,
325,
24272,
12419,
4250,
23802,
384,
41513,
5824,
53,
11313,
188,
188,
187,
88,
24272,
1890,
21933,
1748,
10393,
14,
497,
721,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
14,
13151,
14,
5860,
321,
316,
475,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
1151,
16,
3587,
435,
5177,
384,
740,
306,
837,
3491,
4250,
23802,
670,
40187,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
1106,
3897,
4989,
805,
25121,
1324,
721,
2311,
10,
806,
61,
530,
22209,
530,
11,
188,
187,
529,
2426,
6500,
721,
2068,
325,
24272,
1890,
21933,
1748,
10393,
275,
188,
187,
187,
6509,
12807,
565,
721,
6500,
16,
3611,
1033,
842,
188,
187,
187,
2984,
12807,
862,
14,
497,
721,
30650,
2161,
1029,
85,
1699,
4989,
10,
1167,
14,
13151,
14,
6500,
11,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
1151,
16,
3587,
435,
5177,
384,
740,
859,
31185,
446,
6500,
690,
83,
16,
790,
28,
23795,
88,
347,
6500,
12807,
565,
14,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
529,
2426,
9554,
12807,
721,
2068,
9554,
12807,
862,
275,
188,
350,
187,
285,
9554,
12807,
16,
8156,
16,
563,
489,
659,
37161,
43530,
563,
275,
188,
2054,
187,
1106,
3897,
4989,
805,
25121,
1324,
61,
6509,
12807,
565,
63,
260,
188,
1263,
187,
2288,
10,
1106,
3897,
4989,
805,
25121,
1324,
61,
6509,
12807,
565,
630,
9554,
12807,
16,
1034,
16,
23364,
2161,
1034,
1033,
3681,
11,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
6159,
3897,
4989,
805,
25121,
1324,
14,
869,
188,
95,
188,
188,
1857,
740,
32028,
80,
1555,
21933,
1748,
10393,
10,
1167,
1701,
16,
1199,
14,
13151,
258,
69,
1999,
88,
19968,
16,
6853,
9358,
14,
5860,
321,
316,
475,
8112,
69,
1999,
88,
19968,
16,
9405,
321,
4016,
11,
38870,
1647,
16,
4989,
11110,
2019,
14,
790,
11,
275,
188,
187,
1151,
721,
6183,
16,
901,
5084,
10,
1167,
11,
188,
187,
1151,
16,
37837,
435,
1174,
27281,
306,
23802,
670,
325,
24272,
837,
12742,
4250,
509,
9601,
16,
1224,
16,
4166,
40187,
866,
188,
188,
187,
6509,
11110,
6883,
721,
8112,
1647,
16,
4989,
11110,
2019,
2475,
188,
187,
529,
2426,
5860,
321,
4016,
721,
2068,
5860,
321,
316,
475,
275,
188,
187,
187,
23457,
721,
3352,
16,
1888,
14543,
10,
44679,
4016,
16,
9405,
321,
4016,
16,
1784,
833,
893,
11,
188,
187,
187,
23457,
16,
853,
9405,
321,
4016,
10,
44679,
4016,
16,
9405,
321,
4016,
11,
188,
187,
187,
6509,
11110,
2019,
14,
497,
721,
35260,
16,
4989,
11110,
36126,
10,
1167,
14,
12213,
866,
188,
187,
187,
285,
497,
598,
869,
275,
188,
350,
187,
285,
2426,
3164,
721,
497,
9004,
2625,
16,
31902,
267,
3164,
275,
188,
2054,
187,
1151,
16,
37837,
435,
2487,
6500,
11110,
2019,
2721,
353,
9138,
28,
23795,
88,
16,
790,
28,
23795,
88,
347,
5860,
321,
4016,
14,
497,
11,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
350,
187,
1151,
16,
3587,
435,
914,
10335,
2027,
13721,
6500,
11110,
2019,
16,
790,
28,
23795,
88,
347,
497,
11,
188,
350,
187,
397,
869,
14,
497,
188,
187,
187,
95,
188,
187,
187,
6509,
11110,
6883,
260,
3343,
10,
6509,
11110,
6883,
14,
6500,
11110,
2019,
5013,
188,
187,
95,
188,
188,
187,
2363,
12132,
721,
1299,
16,
1888,
13917,
2045,
10,
3910,
16,
1784,
16,
1784,
11,
188,
187,
1308,
6244,
721,
1397,
530,
93,
3699,
1224,
4166,
10393,
95,
188,
187,
38007,
721,
13151,
16,
1224,
16,
15540,
188,
187,
828,
17087,
1397,
32949,
953,
2820,
16,
13083,
22672,
188,
187,
6509,
11110,
6883,
1324,
721,
2311,
10,
806,
61,
530,
5717,
1647,
16,
4989,
11110,
2019,
11,
188,
187,
529,
2426,
6500,
721,
2068,
6500,
11110,
6883,
275,
188,
187,
187,
17381,
260,
3343,
10,
17381,
14,
6500,
16,
3611,
1202,
188,
187,
187,
6509,
11110,
6883,
1324,
61,
6509,
16,
3611,
1033,
842,
63,
260,
6500,
188,
187,
95,
188,
188,
187,
1275,
14,
497,
721,
3588,
12132,
16,
3837,
2116,
25866,
1887,
14248,
10,
1167,
14,
17087
] |
72,795 | package load
import (
"path/filepath"
"reflect"
"sort"
"strconv"
"strings"
"github.com/mmcloughlin/avo/internal/inst"
"github.com/mmcloughlin/avo/internal/opcodescsv"
"github.com/mmcloughlin/avo/internal/opcodesxml"
)
const (
DefaultCSVName = "x86.v0.2.csv"
DefaultOpcodesXMLName = "x86_64.xml"
)
type Loader struct {
X86CSVPath string
OpcodesXMLPath string
alias map[opcodescsv.Alias]string
order map[string]opcodescsv.OperandOrder
}
func NewLoaderFromDataDir(dir string) *Loader {
return &Loader{
X86CSVPath: filepath.Join(dir, DefaultCSVName),
OpcodesXMLPath: filepath.Join(dir, DefaultOpcodesXMLName),
}
}
func (l *Loader) Load() ([]inst.Instruction, error) {
if err := l.init(); err != nil {
return nil, err
}
iset, err := opcodesxml.ReadFile(l.OpcodesXMLPath)
if err != nil {
return nil, err
}
im := map[string]*inst.Instruction{}
for _, i := range iset.Instructions {
for _, f := range i.Forms {
if !l.include(f) {
continue
}
for _, opcode := range l.gonames(f) {
if im[opcode] == nil {
im[opcode] = &inst.Instruction{
Opcode: opcode,
Summary: i.Summary,
}
}
im[opcode].Forms = append(im[opcode].Forms, l.form(opcode, f))
}
}
}
for _, e := range extras {
im[e.Opcode] = e
}
for _, a := range aliases {
if existing, found := im[a.From]; found {
im[a.To].Forms = append(im[a.To].Forms, existing.Forms...)
}
}
for _, a := range aliases {
cpy := *im[a.To]
cpy.Opcode = a.From
cpy.AliasOf = a.To
im[a.From] = &cpy
}
for _, i := range im {
i.Forms = dedupe(i.Forms)
}
is := make([]inst.Instruction, 0, len(im))
for _, i := range im {
is = append(is, *i)
}
sort.Slice(is, func(i, j int) bool {
return is[i].Opcode < is[j].Opcode
})
return is, nil
}
func (l *Loader) init() error {
icsv, err := opcodescsv.ReadFile(l.X86CSVPath)
if err != nil {
return err
}
l.alias, err = opcodescsv.BuildAliasMap(icsv)
if err != nil {
return err
}
l.order = opcodescsv.BuildOrderMap(icsv)
return nil
}
func (l Loader) include(f opcodesxml.Form) bool {
for _, isa := range f.ISA {
switch isa.ID {
case "TBM", "CLZERO", "FMA4", "XOP", "SSE4A", "3dnow!", "3dnow!+":
return false
case "PREFETCH", "PREFETCHW", "PREFETCHWT1", "CLWB":
return false
case "MONITORX", "FEMMS":
return false
}
if strings.HasPrefix(isa.ID, "AVX512") {
return false
}
}
if f.MMXMode == "MMX" {
return false
}
if strings.HasPrefix(f.GASName, "cmov") && l.lookupAlias(f) == "" {
return false
}
switch f.GASName {
case "callq", "jmpl":
return false
case "movabs":
return false
case "xlatb":
return f.Encoding.REX == nil
}
return true
}
func (l Loader) lookupAlias(f opcodesxml.Form) string {
k := opcodescsv.Alias{
Opcode: f.GASName,
DataSize: datasize(f),
NumOperands: len(f.Operands),
}
if a := l.alias[k]; a != "" {
return a
}
k.DataSize = 0
return l.alias[k]
}
func (l Loader) gonames(f opcodesxml.Form) []string {
s := datasize(f)
if f.GASName == "cvttsd2si" && s == 64 {
return []string{"CVTTSD2SQ"}
}
if a := l.lookupAlias(f); a != "" {
return []string{a}
}
if f.GoName == "RET" && len(f.Operands) == 1 {
return []string{"RETFW", "RETFL", "RETFQ"}
}
if strings.HasPrefix(f.GASName, "imul") && len(f.Operands) == 3 {
return []string{strings.ToUpper(f.GASName[:4] + "3" + f.GASName[4:])}
}
if f.GoName != "" {
return []string{f.GoName}
}
n := strings.ToUpper(f.GASName)
suffix := map[int]string{16: "W", 32: "L", 64: "Q", 128: "X", 256: "Y"}
switch n {
case "VCVTUSI2SS", "VCVTSD2USI", "VCVTSS2USI", "VCVTUSI2SD", "VCVTTSS2USI", "VCVTTSD2USI":
fallthrough
case "MOVBEW", "MOVBEL", "MOVBEQ":
fallthrough
case "RDRAND", "RDSEED":
n += suffix[s]
}
return []string{n}
}
func (l Loader) form(opcode string, f opcodesxml.Form) inst.Form {
ops := operands(f.Operands)
switch l.order[opcode] {
case opcodescsv.IntelOrder:
case opcodescsv.CMP3Order:
ops[0], ops[1] = ops[1], ops[0]
case opcodescsv.UnknownOrder:
fallthrough
case opcodescsv.ReverseIntelOrder:
for l, r := 0, len(ops)-1; l < r; l, r = l+1, r-1 {
ops[l], ops[r] = ops[r], ops[l]
}
}
switch opcode {
case "SHA1RNDS4", "EXTRACTPS":
ops[0].Type = "imm2u"
}
var implicits []inst.ImplicitOperand
for _, implicit := range f.ImplicitOperands {
implicits = append(implicits, inst.ImplicitOperand{
Register: implicit.ID,
Action: inst.ActionFromReadWrite(implicit.Input, implicit.Output),
})
}
var isas []string
for _, isa := range f.ISA {
isas = append(isas, isa.ID)
}
return inst.Form{
ISA: isas,
Operands: ops,
ImplicitOperands: implicits,
}
}
func operands(ops []opcodesxml.Operand) []inst.Operand {
n := len(ops)
r := make([]inst.Operand, n)
for i, op := range ops {
r[i] = operand(op)
}
return r
}
func operand(op opcodesxml.Operand) inst.Operand {
return inst.Operand{
Type: op.Type,
Action: inst.ActionFromReadWrite(op.Input, op.Output),
}
}
func datasize(f opcodesxml.Form) int {
e := f.Encoding
if e.VEX != nil && e.VEX.W == nil {
return 128 << e.VEX.L
}
size := 0
for _, op := range f.Operands {
s := operandsize(op)
if s != 0 && (size == 0 || op.Output) {
size = s
}
}
return size
}
func operandsize(op opcodesxml.Operand) int {
for s := 256; s >= 8; s /= 2 {
if strings.HasSuffix(op.Type, strconv.Itoa(s)) {
return s
}
}
return 0
}
func dedupe(fs []inst.Form) []inst.Form {
uniq := make([]inst.Form, 0, len(fs))
for _, f := range fs {
have := false
for _, u := range uniq {
if reflect.DeepEqual(u, f) {
have = true
break
}
}
if !have {
uniq = append(uniq, f)
}
}
return uniq
} | package load
import (
"path/filepath"
"reflect"
"sort"
"strconv"
"strings"
"github.com/mmcloughlin/avo/internal/inst"
"github.com/mmcloughlin/avo/internal/opcodescsv"
"github.com/mmcloughlin/avo/internal/opcodesxml"
)
// Expected data source filenames.
const (
DefaultCSVName = "x86.v0.2.csv"
DefaultOpcodesXMLName = "x86_64.xml"
)
// Loader builds an instruction database from underlying datasources.
type Loader struct {
X86CSVPath string
OpcodesXMLPath string
alias map[opcodescsv.Alias]string
order map[string]opcodescsv.OperandOrder
}
// NewLoaderFromDataDir constructs an instruction loader from datafiles in the
// given directory. The files themselves are expected to have the standard
// names: see Default*Name constants.
func NewLoaderFromDataDir(dir string) *Loader {
return &Loader{
X86CSVPath: filepath.Join(dir, DefaultCSVName),
OpcodesXMLPath: filepath.Join(dir, DefaultOpcodesXMLName),
}
}
// Load performs instruction loading.
func (l *Loader) Load() ([]inst.Instruction, error) {
if err := l.init(); err != nil {
return nil, err
}
// Load Opcodes XML file.
iset, err := opcodesxml.ReadFile(l.OpcodesXMLPath)
if err != nil {
return nil, err
}
// Load opcodes XML data, grouped by Go opcode.
im := map[string]*inst.Instruction{}
for _, i := range iset.Instructions {
for _, f := range i.Forms {
if !l.include(f) {
continue
}
for _, opcode := range l.gonames(f) {
if im[opcode] == nil {
im[opcode] = &inst.Instruction{
Opcode: opcode,
Summary: i.Summary,
}
}
im[opcode].Forms = append(im[opcode].Forms, l.form(opcode, f))
}
}
}
// Add extras to our list.
for _, e := range extras {
im[e.Opcode] = e
}
// Merge aliased forms. This is primarily for MOVQ (issue #50).
for _, a := range aliases {
if existing, found := im[a.From]; found {
im[a.To].Forms = append(im[a.To].Forms, existing.Forms...)
}
}
// Apply list of aliases.
for _, a := range aliases {
cpy := *im[a.To]
cpy.Opcode = a.From
cpy.AliasOf = a.To
im[a.From] = &cpy
}
// Dedupe forms.
for _, i := range im {
i.Forms = dedupe(i.Forms)
}
// Convert to a slice, sorted by opcode.
is := make([]inst.Instruction, 0, len(im))
for _, i := range im {
is = append(is, *i)
}
sort.Slice(is, func(i, j int) bool {
return is[i].Opcode < is[j].Opcode
})
return is, nil
}
func (l *Loader) init() error {
icsv, err := opcodescsv.ReadFile(l.X86CSVPath)
if err != nil {
return err
}
l.alias, err = opcodescsv.BuildAliasMap(icsv)
if err != nil {
return err
}
l.order = opcodescsv.BuildOrderMap(icsv)
return nil
}
// include decides whether to include the instruction form in the avo listing.
// This discards some opcodes that are not supported in Go.
func (l Loader) include(f opcodesxml.Form) bool {
// Exclude certain ISAs simply not present in Go
for _, isa := range f.ISA {
switch isa.ID {
// AMD-only.
case "TBM", "CLZERO", "FMA4", "XOP", "SSE4A", "3dnow!", "3dnow!+":
return false
// Incomplete support for some prefetching instructions.
case "PREFETCH", "PREFETCHW", "PREFETCHWT1", "CLWB":
return false
// Remaining oddities.
case "MONITORX", "FEMMS":
return false
}
// TODO(mbm): support AVX512
if strings.HasPrefix(isa.ID, "AVX512") {
return false
}
}
// Go appears to have skeleton support for MMX instructions. See the many TODO lines in the testcases:
// Reference: https://github.com/golang/go/blob/649b89377e91ad6dbe710784f9e662082d31a1ff/src/cmd/asm/internal/asm/testdata/amd64enc.s#L3310-L3312
//
// //TODO: PALIGNR $7, (BX), M2 // 0f3a0f1307
// //TODO: PALIGNR $7, (R11), M2 // 410f3a0f1307
// //TODO: PALIGNR $7, M2, M2 // 0f3a0fd207
//
if f.MMXMode == "MMX" {
return false
}
// x86 csv contains a number of CMOV* instructions which are actually not valid
// Go instructions. The valid Go forms should have different opcodes from GNU.
// Therefore a decent "heuristic" is CMOV* instructions that do not have
// aliases.
if strings.HasPrefix(f.GASName, "cmov") && l.lookupAlias(f) == "" {
return false
}
// Some specific exclusions.
switch f.GASName {
// Certain branch instructions appear to not be supported.
//
// Reference: https://github.com/golang/go/blob/649b89377e91ad6dbe710784f9e662082d31a1ff/src/cmd/asm/internal/asm/testdata/amd64enc.s#L757
//
// //TODO: CALLQ* (BX) // ff13
//
// Reference: https://github.com/golang/go/blob/649b89377e91ad6dbe710784f9e662082d31a1ff/src/cmd/asm/internal/asm/testdata/amd64enc.s#L2108
//
// //TODO: LJMPL* (R11) // 41ff2b
//
case "callq", "jmpl":
return false
// MOVABS doesn't seem to be supported either.
//
// Reference: https://github.com/golang/go/blob/1ac84999b93876bb06887e483ae45b27e03d7423/src/cmd/asm/internal/asm/testdata/amd64enc.s#L2354
//
// //TODO: MOVABSB 0x123456789abcdef1, AL // a0f1debc9a78563412
//
case "movabs":
return false
// Only one XLAT form is supported.
//
// Reference: https://github.com/golang/arch/blob/b19384d3c130858bb31a343ea8fce26be71b5998/x86/x86.v0.2.csv#L2221-L2222
//
// "XLATB","XLAT","xlat","D7","V","V","","ignoreREXW","","",""
// "XLATB","XLAT","xlat","REX.W D7","N.E.","V","","pseudo","","",""
//
// Reference: https://github.com/golang/go/blob/b3294d9491b898396e134bad5412d85337c37b64/src/cmd/internal/obj/x86/asm6.go#L1519
//
// {AXLAT, ynone, Px, opBytes{0xd7}},
//
// TODO(mbm): confirm the Px prefix means non REX mode
case "xlatb":
return f.Encoding.REX == nil
}
return true
}
func (l Loader) lookupAlias(f opcodesxml.Form) string {
// Attempt lookup with datasize.
k := opcodescsv.Alias{
Opcode: f.GASName,
DataSize: datasize(f),
NumOperands: len(f.Operands),
}
if a := l.alias[k]; a != "" {
return a
}
// Fallback to unknown datasize.
k.DataSize = 0
return l.alias[k]
}
func (l Loader) gonames(f opcodesxml.Form) []string {
s := datasize(f)
// Suspect a "bug" in x86 CSV for the CVTTSD2SQ instruction, as CVTTSD2SL appears twice.
//
// Reference: https://github.com/golang/arch/blob/b19384d3c130858bb31a343ea8fce26be71b5998/x86/x86.v0.2.csv#L345-L346
//
// "CVTTSD2SI r32, xmm2/m64","CVTTSD2SL xmm2/m64, r32","cvttsd2si xmm2/m64, r32","F2 0F 2C /r","V","V","SSE2","operand16,operand32","w,r","Y","32"
// "CVTTSD2SI r64, xmm2/m64","CVTTSD2SL xmm2/m64, r64","cvttsd2siq xmm2/m64, r64","F2 REX.W 0F 2C /r","N.E.","V","SSE2","","w,r","Y","64"
//
// Reference: https://github.com/golang/go/blob/048c9164a0c5572df18325e377473e7893dbfb07/src/cmd/internal/obj/x86/asm6.go#L1073-L1074
//
// {ACVTTSD2SL, yxcvfl, Pf2, opBytes{0x2c}},
// {ACVTTSD2SQ, yxcvfq, Pw, opBytes{Pf2, 0x2c}},
//
if f.GASName == "cvttsd2si" && s == 64 {
return []string{"CVTTSD2SQ"}
}
// Return alias if available.
if a := l.lookupAlias(f); a != "" {
return []string{a}
}
// Some odd special cases.
// TODO(mbm): can this be handled by processing csv entries with slashes /
if f.GoName == "RET" && len(f.Operands) == 1 {
return []string{"RETFW", "RETFL", "RETFQ"}
}
// IMUL 3-operand forms are not recorded correctly in either x86 CSV or opcodes. They are supposed to be called IMUL3{W,L,Q}
//
// Reference: https://github.com/golang/go/blob/649b89377e91ad6dbe710784f9e662082d31a1ff/src/cmd/internal/obj/x86/asm6.go#L1112-L1114
//
// {AIMUL3W, yimul3, Pe, opBytes{0x6b, 00, 0x69, 00}},
// {AIMUL3L, yimul3, Px, opBytes{0x6b, 00, 0x69, 00}},
// {AIMUL3Q, yimul3, Pw, opBytes{0x6b, 00, 0x69, 00}},
//
// Reference: https://github.com/golang/arch/blob/b19384d3c130858bb31a343ea8fce26be71b5998/x86/x86.v0.2.csv#L549
//
// "IMUL r32, r/m32, imm32","IMULL imm32, r/m32, r32","imull imm32, r/m32, r32","69 /r id","V","V","","operand32","rw,r,r","Y","32"
//
if strings.HasPrefix(f.GASName, "imul") && len(f.Operands) == 3 {
return []string{strings.ToUpper(f.GASName[:4] + "3" + f.GASName[4:])}
}
// Use go opcode from Opcodes XML where available.
if f.GoName != "" {
return []string{f.GoName}
}
// Fallback to GAS name.
n := strings.ToUpper(f.GASName)
// Some need data sizes added to them.
// TODO(mbm): is there a better way of determining which ones these are?
suffix := map[int]string{16: "W", 32: "L", 64: "Q", 128: "X", 256: "Y"}
switch n {
case "VCVTUSI2SS", "VCVTSD2USI", "VCVTSS2USI", "VCVTUSI2SD", "VCVTTSS2USI", "VCVTTSD2USI":
fallthrough
case "MOVBEW", "MOVBEL", "MOVBEQ":
// MOVEBE* instructions seem to be inconsistent with x86 CSV.
//
// Reference: https://github.com/golang/arch/blob/b19384d3c130858bb31a343ea8fce26be71b5998/x86/x86spec/format.go#L282-L287
//
// "MOVBE r16, m16": "movbeww",
// "MOVBE m16, r16": "movbeww",
// "MOVBE m32, r32": "movbell",
// "MOVBE r32, m32": "movbell",
// "MOVBE m64, r64": "movbeqq",
// "MOVBE r64, m64": "movbeqq",
//
fallthrough
case "RDRAND", "RDSEED":
n += suffix[s]
}
return []string{n}
}
func (l Loader) form(opcode string, f opcodesxml.Form) inst.Form {
// Map operands to avo format and ensure correct order.
ops := operands(f.Operands)
switch l.order[opcode] {
case opcodescsv.IntelOrder:
// Nothing to do.
case opcodescsv.CMP3Order:
ops[0], ops[1] = ops[1], ops[0]
case opcodescsv.UnknownOrder:
// Instructions not in x86 CSV are assumed to have reverse intel order.
fallthrough
case opcodescsv.ReverseIntelOrder:
for l, r := 0, len(ops)-1; l < r; l, r = l+1, r-1 {
ops[l], ops[r] = ops[r], ops[l]
}
}
// Handle some exceptions.
// TODO(mbm): consider if there's some nicer way to handle the list of special cases.
switch opcode {
// Go assembler has an internal Yu2 operand type for unsigned 2-bit immediates.
//
// Reference: https://github.com/golang/go/blob/6d5caf38e37bf9aeba3291f1f0b0081f934b1187/src/cmd/internal/obj/x86/asm6.go#L109
//
// Yu2 // $x, x fits in uint2
//
// Reference: https://github.com/golang/go/blob/6d5caf38e37bf9aeba3291f1f0b0081f934b1187/src/cmd/internal/obj/x86/asm6.go#L858-L864
//
// var yextractps = []ytab{
// {Zibr_m, 2, argList{Yu2, Yxr, Yml}},
// }
//
// var ysha1rnds4 = []ytab{
// {Zibm_r, 2, argList{Yu2, Yxm, Yxr}},
// }
//
case "SHA1RNDS4", "EXTRACTPS":
ops[0].Type = "imm2u"
}
// Extract implicit operands.
var implicits []inst.ImplicitOperand
for _, implicit := range f.ImplicitOperands {
implicits = append(implicits, inst.ImplicitOperand{
Register: implicit.ID,
Action: inst.ActionFromReadWrite(implicit.Input, implicit.Output),
})
}
// Extract ISA flags.
var isas []string
for _, isa := range f.ISA {
isas = append(isas, isa.ID)
}
return inst.Form{
ISA: isas,
Operands: ops,
ImplicitOperands: implicits,
}
}
// operands maps Opcodes XML operands to avo format. Returned in Intel order.
func operands(ops []opcodesxml.Operand) []inst.Operand {
n := len(ops)
r := make([]inst.Operand, n)
for i, op := range ops {
r[i] = operand(op)
}
return r
}
// operand maps an Opcodes XML operand to avo format.
func operand(op opcodesxml.Operand) inst.Operand {
return inst.Operand{
Type: op.Type,
Action: inst.ActionFromReadWrite(op.Input, op.Output),
}
}
// datasize (intelligently) guesses the datasize of an instruction form.
func datasize(f opcodesxml.Form) int {
// Determine from encoding bits.
e := f.Encoding
if e.VEX != nil && e.VEX.W == nil {
return 128 << e.VEX.L
}
// Guess from operand types.
size := 0
for _, op := range f.Operands {
s := operandsize(op)
if s != 0 && (size == 0 || op.Output) {
size = s
}
}
return size
}
func operandsize(op opcodesxml.Operand) int {
for s := 256; s >= 8; s /= 2 {
if strings.HasSuffix(op.Type, strconv.Itoa(s)) {
return s
}
}
return 0
}
// dedupe a list of forms.
func dedupe(fs []inst.Form) []inst.Form {
uniq := make([]inst.Form, 0, len(fs))
for _, f := range fs {
have := false
for _, u := range uniq {
if reflect.DeepEqual(u, f) {
have = true
break
}
}
if !have {
uniq = append(uniq, f)
}
}
return uniq
}
| [
5786,
3248,
188,
188,
4747,
280,
188,
187,
4,
1147,
17,
16117,
4,
188,
187,
4,
5777,
4,
188,
187,
4,
4223,
4,
188,
187,
4,
20238,
4,
188,
187,
4,
6137,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
7330,
309,
3674,
816,
17,
532,
81,
17,
2664,
17,
3722,
4,
188,
187,
4,
3140,
16,
817,
17,
7330,
309,
3674,
816,
17,
532,
81,
17,
2664,
17,
7435,
516,
3202,
4,
188,
187,
4,
3140,
16,
817,
17,
7330,
309,
3674,
816,
17,
532,
81,
17,
2664,
17,
7435,
85,
3145,
4,
188,
11,
188,
188,
819,
280,
188,
187,
2320,
26827,
613,
209,
209,
209,
209,
209,
209,
209,
260,
312,
90,
1336,
16,
88,
18,
16,
20,
16,
15191,
4,
188,
187,
2320,
37922,
5584,
613,
260,
312,
90,
1336,
65,
535,
16,
3145,
4,
188,
11,
188,
188,
558,
36577,
603,
275,
188,
187,
58,
1336,
26827,
1461,
209,
209,
209,
209,
776,
188,
187,
37922,
5584,
1461,
776,
188,
188,
187,
6328,
1929,
61,
7435,
516,
3202,
16,
8952,
63,
530,
188,
187,
1940,
1929,
61,
530,
63,
7435,
516,
3202,
16,
7332,
3706,
188,
95,
188,
188,
1857,
3409,
6087,
1699,
883,
3559,
10,
1812,
776,
11,
258,
6087,
275,
188,
187,
397,
396,
6087,
93,
188,
187,
187,
58,
1336,
26827,
1461,
28,
209,
209,
209,
209,
16899,
16,
6675,
10,
1812,
14,
4055,
26827,
613,
399,
188,
187,
187,
37922,
5584,
1461,
28,
16899,
16,
6675,
10,
1812,
14,
4055,
37922,
5584,
613,
399,
188,
187,
95,
188,
95,
188,
188,
1857,
280,
78,
258,
6087,
11,
6346,
336,
6784,
3722,
16,
4417,
14,
790,
11,
275,
188,
187,
285,
497,
721,
386,
16,
989,
491,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
75,
387,
14,
497,
721,
35418,
3145,
16,
30986,
10,
78,
16,
37922,
5584,
1461,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
497,
188,
187,
95,
188,
188,
187,
480,
721,
1929,
61,
530,
5717,
3722,
16,
4417,
2475,
188,
187,
529,
2426,
368,
721,
2068,
368,
387,
16,
28552,
275,
188,
187,
187,
529,
2426,
282,
721,
2068,
368,
16,
6817,
275,
188,
350,
187,
285,
504,
78,
16,
648,
10,
72,
11,
275,
188,
2054,
187,
3691,
188,
350,
187,
95,
188,
188,
350,
187,
529,
2426,
9439,
721,
2068,
386,
16,
6608,
25238,
10,
72,
11,
275,
188,
2054,
187,
285,
3466,
61,
7435,
63,
489,
869,
275,
188,
1263,
187,
480,
61,
7435,
63,
260,
396,
3722,
16,
4417,
93,
188,
5520,
187,
9638,
28,
209,
9439,
14,
188,
5520,
187,
8156,
28,
368,
16,
8156,
14,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
2054,
187,
480,
61,
7435,
913,
6817,
260,
3343,
10,
480,
61,
7435,
913,
6817,
14,
386,
16,
737,
10,
7435,
14,
282,
452,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
529,
2426,
461,
721,
2068,
38251,
275,
188,
187,
187,
480,
61,
71,
16,
9638,
63,
260,
461,
188,
187,
95,
188,
188,
187,
529,
2426,
301,
721,
2068,
21497,
275,
188,
187,
187,
285,
6256,
14,
2721,
721,
3466,
61,
67,
16,
1699,
768,
2721,
275,
188,
350,
187,
480,
61,
67,
16,
805,
913,
6817,
260,
3343,
10,
480,
61,
67,
16,
805,
913,
6817,
14,
6256,
16,
6817,
5013,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
529,
2426,
301,
721,
2068,
21497,
275,
188,
187,
187,
3092,
721,
258,
480,
61,
67,
16,
805,
63,
188,
187,
187,
3092,
16,
9638,
260,
301,
16,
1699,
188,
187,
187,
3092,
16,
8952,
1650,
260,
301,
16,
805,
188,
187,
187,
480,
61,
67,
16,
1699,
63,
260,
396,
3092,
188,
187,
95,
188,
188,
187,
529,
2426,
368,
721,
2068,
3466,
275,
188,
187,
187,
75,
16,
6817,
260,
562,
1893,
315,
10,
75,
16,
6817,
11,
188,
187,
95,
188,
188,
187,
288,
721,
2311,
4661,
3722,
16,
4417,
14,
257,
14,
1005,
10,
480,
452,
188,
187,
529,
2426,
368,
721,
2068,
3466,
275,
188,
187,
187,
288,
260,
3343,
10,
288,
14,
258,
75,
11,
188,
187,
95,
188,
188,
187,
4223,
16,
5149,
10,
288,
14,
830,
10,
75,
14,
727,
388,
11,
1019,
275,
188,
187,
187,
397,
425,
61,
75,
913,
9638,
360,
425,
61,
76,
913,
9638,
188,
187,
1436,
188,
188,
187,
397,
425,
14,
869,
188,
95,
188,
188,
1857,
280,
78,
258,
6087,
11,
1777,
336,
790,
275,
188,
187,
1679,
88,
14,
497,
721,
9439,
516,
3202,
16,
30986,
10,
78,
16,
58,
1336,
26827,
1461,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
78,
16,
6328,
14,
497,
260,
9439,
516,
3202,
16,
5343,
8952,
1324,
10,
1679,
88,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
78,
16,
1940,
260,
9439,
516,
3202,
16,
5343,
3706,
1324,
10,
1679,
88,
11,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
2372,
10,
72,
35418,
3145,
16,
1707,
11,
1019,
275,
188,
188,
187,
529,
2426,
23911,
721,
2068,
282,
16,
15231,
275,
188,
187,
187,
2349,
23911,
16,
565,
275,
188,
188,
187,
187,
888,
312,
54,
4558,
347,
312,
785,
8115,
347,
312,
40,
468,
22,
347,
312,
58,
922,
347,
312,
12081,
22,
35,
347,
312,
21,
70,
3594,
17486,
312,
21,
70,
3594,
3,
39984,
188,
350,
187,
397,
893,
188,
188,
187,
187,
888,
312,
25061,
347,
312,
25061,
57,
347,
312,
25061,
7168,
19,
347,
312,
785,
11181,
788,
188,
350,
187,
397,
893,
188,
188,
187,
187,
888,
312,
16037,
58,
347,
312,
2425,
32590,
788,
188,
350,
187,
397,
893,
188,
187,
187,
95,
188,
188,
187,
187,
285,
4440,
16,
24125,
10,
12549,
16,
565,
14,
312,
16047,
3762,
866,
275,
188,
350,
187,
397,
893,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
36257,
1988,
489,
312,
36257,
4,
275,
188,
187,
187,
397,
893,
188,
187,
95,
188,
188,
187,
285,
4440,
16,
24125,
10,
72,
16,
34461,
613,
14,
312,
69,
4225,
866,
692,
386,
16,
5313,
8952,
10,
72,
11,
489,
3985,
275,
188,
187,
187,
397,
893,
188,
187,
95,
188,
188,
187,
2349,
282,
16,
34461,
613,
275,
188,
188,
187,
888,
312,
1613,
83,
347,
312,
76,
824,
788,
188,
187,
187,
397,
893,
188,
188,
187,
888,
312,
4225,
3530,
788,
188,
187,
187,
397,
893,
188,
188,
187,
888,
312,
90,
1695,
68,
788,
188,
187,
187,
397,
282,
16,
7210,
16,
26381,
489,
869,
188,
187,
95,
188,
188,
187,
397,
868,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
7287,
8952,
10,
72,
35418,
3145,
16,
1707,
11,
776,
275,
188,
188,
187,
77,
721,
9439,
516,
3202,
16,
8952,
93,
188,
187,
187,
9638,
28,
209,
209,
209,
209,
209,
282,
16,
34461,
613,
14,
188,
187,
187,
20995,
28,
209,
209,
209,
18297,
420,
10,
72,
399,
188,
187,
187,
2532,
20676,
28,
1005,
10,
72,
16,
20676,
399,
188,
187,
95,
188,
187,
285,
301,
721,
386,
16,
6328,
61,
77,
768,
301,
598,
3985,
275,
188,
187,
187,
397,
301,
188,
187,
95,
188,
188,
187,
77,
16,
20995,
260,
257,
188,
187,
397,
386,
16,
6328,
61,
77,
63,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
482,
252,
25238,
10,
72,
35418,
3145,
16,
1707,
11,
1397,
530,
275,
188,
187,
85,
721,
18297,
420,
10,
72,
11,
188,
188,
187,
285,
282,
16,
34461,
613,
489,
312,
15384,
31856,
20,
1743,
4,
692,
298,
489,
2797,
275,
188,
187,
187,
397,
1397,
530,
2315,
40093,
54,
2094,
20,
5230,
6629,
188,
187,
95,
188,
188,
187,
285,
301,
721,
386,
16,
5313,
8952,
10,
72,
267,
301,
598,
3985,
275,
188,
187,
187,
397,
1397,
530,
93,
67,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
6774,
613,
489,
312,
4005,
4,
692,
1005,
10,
72,
16,
20676,
11,
489,
352,
275,
188,
187,
187,
397,
1397,
530,
2315,
4005,
3781,
347,
312,
4005,
2822,
347,
312,
4005,
16751,
6629,
188,
187,
95,
188,
188,
187,
285,
4440,
16,
24125,
10,
72,
16,
34461,
613,
14,
312,
480,
343,
866,
692,
1005,
10,
72,
16,
20676,
11,
489,
678,
275,
188,
187,
187,
397,
1397,
530,
93,
6137,
16,
45283,
10,
72,
16,
34461,
613,
3872,
22,
63,
431,
312,
21,
4,
431,
282,
16,
34461,
613,
61,
22,
12458,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
6774,
613,
598,
3985,
275,
188,
187,
187,
397,
1397,
530,
93,
72,
16,
6774,
613,
95,
188,
187,
95,
188,
188,
187,
80,
721,
4440,
16,
45283,
10,
72,
16,
34461,
613,
11,
188,
188,
187,
11925,
721,
1929,
61,
291,
63,
530,
93,
559,
28,
312,
57,
347,
2012,
28,
312,
46,
347,
2797,
28,
312,
51,
347,
5126,
28,
312,
58,
347,
5709,
28,
312,
59,
6629,
188,
187,
2349,
302,
275,
188,
187,
888,
312,
5140,
5233,
55,
618,
20,
687,
347,
312,
5140,
5233,
2094,
20,
55,
618,
347,
312,
5140,
5233,
687,
20,
55,
618,
347,
312,
5140,
5233,
55,
618,
20,
2094,
347,
312,
5140,
5233,
42180,
20,
55,
618,
347,
312,
5140,
5233,
54,
2094,
20,
55,
618,
788,
188,
187,
187,
27000,
188,
187,
888,
312,
9687,
2561,
57,
347,
312,
1029,
7552,
1757,
347,
312,
9687,
2561,
51,
788,
188,
188,
187,
187,
27000,
188,
187,
888,
312,
37492,
2159,
347,
312,
2223,
23852,
788,
188,
187,
187,
80,
1159,
12406,
61,
85,
63,
188,
187,
95,
188,
188,
187,
397,
1397,
530,
93,
80,
95,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
3718,
10,
7435,
776,
14,
282,
35418,
3145,
16,
1707,
11,
2905,
16,
1707,
275,
188,
188,
187,
1790,
721,
16467,
10,
72,
16,
20676,
11,
188,
188,
187,
2349,
386,
16,
1940,
61,
7435,
63,
275,
188,
187,
888,
9439,
516,
3202,
16,
27034,
3706,
28,
188,
188,
187,
888,
9439,
516,
3202,
16,
7318,
21,
3706,
28,
188,
187,
187,
1790,
61,
18,
630,
10329,
61,
19,
63,
260,
10329,
61,
19,
630,
10329,
61,
18,
63,
188,
187,
888,
9439,
516,
3202,
16,
4864,
3706,
28,
188,
188,
187,
187,
27000,
188,
187,
888,
9439,
516,
3202,
16,
16840,
27034,
3706,
28,
188,
187,
187,
529,
386,
14,
470,
721,
257,
14,
1005,
10,
1790,
5600,
19,
29,
386,
360,
470,
29,
386,
14,
470,
260,
386,
13,
19,
14,
470,
15,
19,
275,
188,
350,
187,
1790,
61,
78,
630,
10329,
61,
84,
63,
260,
10329,
61,
84,
630,
10329,
61,
78,
63,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
2349,
9439,
275,
188,
188,
187,
888,
312,
4923,
19,
25830,
53,
22,
347,
312,
30561,
3209,
788,
188,
187,
187,
1790,
61,
18,
913,
563,
260,
312,
9833,
20,
87,
4,
188,
187,
95,
188,
188,
187,
828,
584,
451,
954,
1397,
3722,
16,
16957,
7332,
188,
187,
529,
2426,
10280,
721,
2068,
282,
16,
16957,
20676,
275,
188,
187,
187,
2817,
451,
954,
260,
3343,
10,
2817,
451,
954,
14,
2905,
16,
16957,
7332,
93,
188,
350,
187,
2184,
28,
10280,
16,
565,
14,
188,
350,
187,
2271,
28,
209,
209,
2905,
16,
2271,
1699,
7244,
10,
15209,
16,
1824,
14,
10280,
16,
2283,
399,
188,
187,
187,
1436,
188,
187,
95,
188,
188,
187,
828,
425,
332,
1397,
530,
188,
187,
529,
2426,
23911,
721,
2068,
282,
16,
15231,
275,
188,
187,
187,
288,
332,
260,
3343,
10,
288,
332,
14,
23911,
16,
565,
11,
188,
187,
95,
188,
188,
187,
397,
2905,
16,
1707,
93,
188,
187,
187,
15231,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
425,
332,
14,
188,
187,
187,
20676,
28,
209,
209,
209,
209,
209,
209,
209,
209,
10329,
14,
188,
187,
187,
16957,
20676,
28,
584,
451,
954,
14,
188,
187,
95,
188,
95,
188,
188,
1857,
16467,
10,
1790,
1397,
7435,
85,
3145,
16,
7332,
11,
1397,
3722,
16,
7332,
275,
188,
187,
80,
721,
1005,
10,
1790,
11,
188,
187,
84,
721,
2311,
4661,
3722,
16,
7332,
14,
302,
11,
188,
187,
529,
368,
14,
2469,
721,
2068,
10329,
275,
188,
187,
187,
84,
61,
75,
63,
260,
10125,
10,
443,
11,
188,
187,
95,
188,
187,
397,
470,
188,
95,
188,
188,
1857,
10125,
10,
443,
35418,
3145,
16,
7332,
11,
2905,
16,
7332,
275,
188,
187,
397,
2905,
16,
7332,
93,
188,
187,
187,
563,
28,
209,
209,
2469,
16,
563,
14,
188,
187,
187,
2271,
28,
2905,
16,
2271,
1699,
7244,
10,
443,
16,
1824,
14,
2469,
16,
2283,
399,
188,
187,
95,
188,
95,
188,
188,
1857,
18297,
420,
10,
72,
35418,
3145,
16,
1707,
11,
388,
275,
188,
188,
187,
71,
721,
282,
16,
7210,
188,
187,
285,
461,
16,
34712,
598,
869,
692,
461,
16,
34712,
16,
57,
489,
869,
275,
188,
187,
187,
397,
5126,
709,
461,
16,
34712,
16,
46,
188,
187,
95,
188,
188,
187,
632,
721,
257,
188,
187,
529,
2426,
2469,
721,
2068,
282,
16,
20676,
275,
188,
187,
187,
85,
721,
10125,
632,
10,
443,
11,
188,
187,
187,
285,
298,
598,
257,
692,
280,
632,
489,
257,
875,
2469,
16,
2283,
11,
275,
188,
350,
187,
632,
260,
298,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
769,
188,
95,
188,
188,
1857,
10125,
632,
10,
443,
35418,
3145,
16,
7332,
11,
388,
275,
188,
187,
529,
298,
721,
5709,
29,
298,
1474,
1013,
29,
298,
12136,
444,
275,
188,
187,
187,
285,
4440,
16,
47328,
10,
443,
16,
563,
14,
12601,
16,
30672,
10,
85,
452,
275,
188,
350,
187,
397,
298,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
1857,
562,
1893,
315,
10,
1106,
1397,
3722,
16,
1707,
11,
1397,
3722,
16,
1707,
275,
188,
187,
36975,
721,
2311,
4661,
3722,
16,
1707,
14,
257,
14,
1005,
10,
1106,
452,
188,
187,
529,
2426,
282,
721,
2068,
6159,
275,
188,
187,
187,
10183,
721,
893,
188,
187,
187,
529,
2426,
378,
721,
2068,
557,
9394,
275,
188,
350,
187,
285,
4642,
16,
28897,
10,
87,
14,
282,
11,
275,
188,
2054,
187,
10183,
260,
868,
188,
2054,
187,
1176,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
187,
285,
504,
10183,
275,
188,
350,
187,
36975,
260,
3343,
10,
36975,
14,
282,
11,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
557,
9394,
188,
95
] | [
187,
95,
188,
188,
350,
187,
529,
2426,
9439,
721,
2068,
386,
16,
6608,
25238,
10,
72,
11,
275,
188,
2054,
187,
285,
3466,
61,
7435,
63,
489,
869,
275,
188,
1263,
187,
480,
61,
7435,
63,
260,
396,
3722,
16,
4417,
93,
188,
5520,
187,
9638,
28,
209,
9439,
14,
188,
5520,
187,
8156,
28,
368,
16,
8156,
14,
188,
1263,
187,
95,
188,
2054,
187,
95,
188,
2054,
187,
480,
61,
7435,
913,
6817,
260,
3343,
10,
480,
61,
7435,
913,
6817,
14,
386,
16,
737,
10,
7435,
14,
282,
452,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
529,
2426,
461,
721,
2068,
38251,
275,
188,
187,
187,
480,
61,
71,
16,
9638,
63,
260,
461,
188,
187,
95,
188,
188,
187,
529,
2426,
301,
721,
2068,
21497,
275,
188,
187,
187,
285,
6256,
14,
2721,
721,
3466,
61,
67,
16,
1699,
768,
2721,
275,
188,
350,
187,
480,
61,
67,
16,
805,
913,
6817,
260,
3343,
10,
480,
61,
67,
16,
805,
913,
6817,
14,
6256,
16,
6817,
5013,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
529,
2426,
301,
721,
2068,
21497,
275,
188,
187,
187,
3092,
721,
258,
480,
61,
67,
16,
805,
63,
188,
187,
187,
3092,
16,
9638,
260,
301,
16,
1699,
188,
187,
187,
3092,
16,
8952,
1650,
260,
301,
16,
805,
188,
187,
187,
480,
61,
67,
16,
1699,
63,
260,
396,
3092,
188,
187,
95,
188,
188,
187,
529,
2426,
368,
721,
2068,
3466,
275,
188,
187,
187,
75,
16,
6817,
260,
562,
1893,
315,
10,
75,
16,
6817,
11,
188,
187,
95,
188,
188,
187,
288,
721,
2311,
4661,
3722,
16,
4417,
14,
257,
14,
1005,
10,
480,
452,
188,
187,
529,
2426,
368,
721,
2068,
3466,
275,
188,
187,
187,
288,
260,
3343,
10,
288,
14,
258,
75,
11,
188,
187,
95,
188,
188,
187,
4223,
16,
5149,
10,
288,
14,
830,
10,
75,
14,
727,
388,
11,
1019,
275,
188,
187,
187,
397,
425,
61,
75,
913,
9638,
360,
425,
61,
76,
913,
9638,
188,
187,
1436,
188,
188,
187,
397,
425,
14,
869,
188,
95,
188,
188,
1857,
280,
78,
258,
6087,
11,
1777,
336,
790,
275,
188,
187,
1679,
88,
14,
497,
721,
9439,
516,
3202,
16,
30986,
10,
78,
16,
58,
1336,
26827,
1461,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
78,
16,
6328,
14,
497,
260,
9439,
516,
3202,
16,
5343,
8952,
1324,
10,
1679,
88,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
497,
188,
187,
95,
188,
188,
187,
78,
16,
1940,
260,
9439,
516,
3202,
16,
5343,
3706,
1324,
10,
1679,
88,
11,
188,
188,
187,
397,
869,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
2372,
10,
72,
35418,
3145,
16,
1707,
11,
1019,
275,
188,
188,
187,
529,
2426,
23911,
721,
2068,
282,
16,
15231,
275,
188,
187,
187,
2349,
23911,
16,
565,
275,
188,
188,
187,
187,
888,
312,
54,
4558,
347,
312,
785,
8115,
347,
312,
40,
468,
22,
347,
312,
58,
922,
347,
312,
12081,
22,
35,
347,
312,
21,
70,
3594,
17486,
312,
21,
70,
3594,
3,
39984,
188,
350,
187,
397,
893,
188,
188,
187,
187,
888,
312,
25061,
347,
312,
25061,
57,
347,
312,
25061,
7168,
19,
347,
312,
785,
11181,
788,
188,
350,
187,
397,
893,
188,
188,
187,
187,
888,
312,
16037,
58,
347,
312,
2425,
32590,
788,
188,
350,
187,
397,
893,
188,
187,
187,
95,
188,
188,
187,
187,
285,
4440,
16,
24125,
10,
12549,
16,
565,
14,
312,
16047,
3762,
866,
275,
188,
350,
187,
397,
893,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
36257,
1988,
489,
312,
36257,
4,
275,
188,
187,
187,
397,
893,
188,
187,
95,
188,
188,
187,
285,
4440,
16,
24125,
10,
72,
16,
34461,
613,
14,
312,
69,
4225,
866,
692,
386,
16,
5313,
8952,
10,
72,
11,
489,
3985,
275,
188,
187,
187,
397,
893,
188,
187,
95,
188,
188,
187,
2349,
282,
16,
34461,
613,
275,
188,
188,
187,
888,
312,
1613,
83,
347,
312,
76,
824,
788,
188,
187,
187,
397,
893,
188,
188,
187,
888,
312,
4225,
3530,
788,
188,
187,
187,
397,
893,
188,
188,
187,
888,
312,
90,
1695,
68,
788,
188,
187,
187,
397,
282,
16,
7210,
16,
26381,
489,
869,
188,
187,
95,
188,
188,
187,
397,
868,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
7287,
8952,
10,
72,
35418,
3145,
16,
1707,
11,
776,
275,
188,
188,
187,
77,
721,
9439,
516,
3202,
16,
8952,
93,
188,
187,
187,
9638,
28,
209,
209,
209,
209,
209,
282,
16,
34461,
613,
14,
188,
187,
187,
20995,
28,
209,
209,
209,
18297,
420,
10,
72,
399,
188,
187,
187,
2532,
20676,
28,
1005,
10,
72,
16,
20676,
399,
188,
187,
95,
188,
187,
285,
301,
721,
386,
16,
6328,
61,
77,
768,
301,
598,
3985,
275,
188,
187,
187,
397,
301,
188,
187,
95,
188,
188,
187,
77,
16,
20995,
260,
257,
188,
187,
397,
386,
16,
6328,
61,
77,
63,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
482,
252,
25238,
10,
72,
35418,
3145,
16,
1707,
11,
1397,
530,
275,
188,
187,
85,
721,
18297,
420,
10,
72,
11,
188,
188,
187,
285,
282,
16,
34461,
613,
489,
312,
15384,
31856,
20,
1743,
4,
692,
298,
489,
2797,
275,
188,
187,
187,
397,
1397,
530,
2315,
40093,
54,
2094,
20,
5230,
6629,
188,
187,
95,
188,
188,
187,
285,
301,
721,
386,
16,
5313,
8952,
10,
72,
267,
301,
598,
3985,
275,
188,
187,
187,
397,
1397,
530,
93,
67,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
6774,
613,
489,
312,
4005,
4,
692,
1005,
10,
72,
16,
20676,
11,
489,
352,
275,
188,
187,
187,
397,
1397,
530,
2315,
4005,
3781,
347,
312,
4005,
2822,
347,
312,
4005,
16751,
6629,
188,
187,
95,
188,
188,
187,
285,
4440,
16,
24125,
10,
72,
16,
34461,
613,
14,
312,
480,
343,
866,
692,
1005,
10,
72,
16,
20676,
11,
489,
678,
275,
188,
187,
187,
397,
1397,
530,
93,
6137,
16,
45283,
10,
72,
16,
34461,
613,
3872,
22,
63,
431,
312,
21,
4,
431,
282,
16,
34461,
613,
61,
22,
12458,
95,
188,
187,
95,
188,
188,
187,
285,
282,
16,
6774,
613,
598,
3985,
275,
188,
187,
187,
397,
1397,
530,
93,
72,
16,
6774,
613,
95,
188,
187,
95,
188,
188,
187,
80,
721,
4440,
16,
45283,
10,
72,
16,
34461,
613,
11,
188,
188,
187,
11925,
721,
1929,
61,
291,
63,
530,
93,
559,
28,
312,
57,
347,
2012,
28,
312,
46,
347,
2797,
28,
312,
51,
347,
5126,
28,
312,
58,
347,
5709,
28,
312,
59,
6629,
188,
187,
2349,
302,
275,
188,
187,
888,
312,
5140,
5233,
55,
618,
20,
687,
347,
312,
5140,
5233,
2094,
20,
55,
618,
347,
312,
5140,
5233,
687,
20,
55,
618,
347,
312,
5140,
5233,
55,
618,
20,
2094,
347,
312,
5140,
5233,
42180,
20,
55,
618,
347,
312,
5140,
5233,
54,
2094,
20,
55,
618,
788,
188,
187,
187,
27000,
188,
187,
888,
312,
9687,
2561,
57,
347,
312,
1029,
7552,
1757,
347,
312,
9687,
2561,
51,
788,
188,
188,
187,
187,
27000,
188,
187,
888,
312,
37492,
2159,
347,
312,
2223,
23852,
788,
188,
187,
187,
80,
1159,
12406,
61,
85,
63,
188,
187,
95,
188,
188,
187,
397,
1397,
530,
93,
80,
95,
188,
95,
188,
188,
1857,
280,
78,
36577,
11,
3718,
10,
7435,
776,
14,
282,
35418,
3145,
16,
1707,
11,
2905,
16,
1707,
275,
188,
188,
187,
1790,
721,
16467,
10,
72,
16,
20676,
11,
188,
188,
187,
2349,
386,
16,
1940,
61,
7435,
63,
275,
188,
187,
888,
9439,
516,
3202,
16,
27034,
3706,
28,
188,
188,
187,
888,
9439,
516,
3202,
16,
7318,
21,
3706,
28,
188,
187,
187,
1790,
61,
18,
630,
10329,
61,
19,
63,
260,
10329,
61,
19,
630,
10329,
61,
18,
63,
188,
187,
888,
9439,
516,
3202,
16,
4864,
3706,
28,
188,
188,
187,
187,
27000,
188,
187,
888,
9439,
516,
3202,
16,
16840,
27034,
3706,
28,
188,
187,
187,
529,
386,
14,
470,
721,
257,
14,
1005,
10,
1790,
5600,
19,
29,
386,
360,
470,
29,
386,
14,
470,
260,
386,
13,
19,
14,
470,
15,
19,
275,
188,
350,
187,
1790,
61,
78,
630,
10329,
61,
84,
63,
260,
10329,
61,
84,
630,
10329,
61,
78,
63,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
2349,
9439,
275,
188,
188,
187,
888,
312,
4923,
19,
25830,
53,
22,
347,
312,
30561,
3209,
788,
188,
187,
187,
1790,
61,
18,
913,
563,
260,
312,
9833,
20,
87,
4,
188,
187,
95,
188,
188,
187,
828,
584,
451,
954,
1397,
3722,
16,
16957,
7332,
188,
187,
529,
2426,
10280,
721,
2068,
282,
16,
16957,
20676,
275,
188,
187,
187,
2817,
451,
954,
260,
3343,
10,
2817,
451,
954,
14,
2905,
16,
16957,
7332,
93,
188,
350,
187,
2184,
28,
10280,
16,
565,
14,
188,
350,
187,
2271,
28,
209,
209,
2905,
16,
2271,
1699,
7244,
10,
15209,
16,
1824,
14,
10280,
16,
2283,
399,
188,
187,
187,
1436,
188,
187,
95,
188,
188,
187,
828,
425,
332,
1397,
530,
188,
187,
529,
2426,
23911,
721,
2068,
282,
16,
15231,
275,
188,
187,
187,
288,
332,
260,
3343,
10,
288,
332,
14,
23911,
16,
565,
11,
188,
187,
95,
188,
188,
187,
397,
2905,
16,
1707,
93,
188,
187,
187,
15231,
28,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
209,
425,
332,
14,
188,
187,
187,
20676,
28,
209,
209,
209,
209,
209,
209,
209,
209,
10329,
14,
188,
187,
187,
16957,
20676,
28,
584,
451,
954,
14,
188,
187,
95,
188,
95,
188,
188,
1857,
16467,
10,
1790,
1397,
7435,
85,
3145,
16,
7332,
11,
1397,
3722,
16,
7332,
275,
188,
187,
80,
721,
1005,
10,
1790,
11,
188,
187,
84,
721,
2311,
4661,
3722,
16,
7332,
14,
302,
11,
188,
187,
529,
368,
14,
2469,
721,
2068,
10329,
275,
188,
187,
187,
84,
61,
75,
63,
260,
10125,
10,
443,
11,
188,
187,
95,
188,
187,
397,
470,
188,
95,
188,
188,
1857,
10125,
10,
443,
35418,
3145,
16,
7332,
11,
2905,
16,
7332,
275,
188,
187,
397,
2905,
16,
7332,
93,
188,
187,
187,
563,
28,
209,
209,
2469,
16,
563,
14,
188,
187,
187,
2271,
28,
2905,
16,
2271,
1699,
7244,
10,
443,
16,
1824,
14,
2469,
16,
2283,
399,
188,
187,
95,
188,
95,
188,
188,
1857,
18297,
420,
10,
72,
35418,
3145,
16,
1707,
11,
388,
275,
188,
188,
187,
71,
721,
282,
16,
7210,
188,
187,
285,
461,
16,
34712,
598,
869,
692,
461,
16,
34712,
16,
57,
489,
869,
275,
188,
187,
187,
397,
5126,
709,
461,
16,
34712,
16,
46,
188,
187,
95,
188,
188,
187,
632,
721,
257,
188,
187,
529,
2426,
2469,
721,
2068,
282,
16,
20676,
275,
188,
187,
187,
85,
721,
10125,
632,
10,
443,
11,
188,
187,
187,
285,
298,
598,
257,
692,
280,
632,
489,
257,
875,
2469,
16,
2283,
11,
275,
188,
350,
187,
632,
260,
298,
188,
187,
187,
95,
188,
187,
95,
188,
188,
187,
397,
769,
188,
95,
188,
188,
1857,
10125,
632,
10,
443,
35418,
3145,
16,
7332,
11,
388,
275,
188,
187,
529,
298,
721,
5709,
29,
298,
1474,
1013,
29,
298,
12136,
444,
275,
188,
187,
187,
285,
4440,
16,
47328,
10,
443,
16,
563,
14,
12601,
16,
30672,
10,
85,
452,
275,
188,
350,
187,
397,
298,
188,
187,
187,
95,
188,
187,
95,
188,
187,
397,
257,
188,
95,
188,
188,
1857,
562,
1893,
315,
10,
1106,
1397,
3722,
16,
1707,
11,
1397,
3722,
16,
1707,
275,
188,
187,
36975,
721,
2311,
4661,
3722,
16,
1707,
14,
257,
14,
1005,
10,
1106,
452,
188,
187,
529,
2426,
282,
721,
2068,
6159,
275,
188,
187,
187,
10183,
721,
893,
188,
187,
187,
529,
2426,
378,
721,
2068,
557,
9394,
275,
188,
350,
187,
285,
4642,
16,
28897,
10,
87,
14,
282,
11,
275,
188,
2054
] |
72,798 | package redis
import (
"context"
"encoding/json"
"errors"
gopherapi "github.com/friendsofgo/gopherapi/pkg"
"github.com/gomodule/redigo/redis"
_ "github.com/lib/pq"
"github.com/rafaeljusto/redigomock"
"github.com/stretchr/testify/assert"
"testing"
"time"
)
func Test_GopherRepository_CreateGopher_RepositoryError(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher)).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.CreateGopher(context.Background(), &gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_CreateGopher_Success(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher)).Expect("OK")
repo := NewRepository(wrapRedisConn(conn))
err := repo.CreateGopher(context.Background(), &gopher)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_RepositoryError(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGophers(context.Background())
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_NoRows(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{})
repo := NewRepository(wrapRedisConn(conn))
gophers, err := repo.FetchGophers(context.Background())
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Len(t, gophers, 0)
}
func Test_GopherRepository_FetchGophers_RowWithInvalidData(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{"123", "456"})
conn.Command("MGET", "123", "456").Expect([]interface{}{"invalid-data"})
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGophers(context.Background())
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_Succeeded(t *testing.T) {
gopherA, gopherB := buildGopher("123ABC"), buildGopher("ABC123")
expectedGophers := []gopherapi.Gopher{gopherA, gopherB}
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{gopherA.ID, gopherB.ID})
conn.Command("MGET", gopherA.ID, gopherB.ID).Expect(
[]interface{}{gopherToJSONString(gopherA), gopherToJSONString(gopherB)},
)
repo := NewRepository(wrapRedisConn(conn))
gophers, err := repo.FetchGophers(context.Background())
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Equal(t, expectedGophers, gophers)
}
func Test_GopherRepository_DeleteGopher_RepositoryError(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("DEL", gopherID).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.DeleteGopher(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_DeleteGopher_Success(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("DEL", gopherID).Expect(1)
repo := NewRepository(wrapRedisConn(conn))
err := repo.DeleteGopher(context.Background(), gopherID)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_RepositoryError(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_NotFound(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").Expect(nil)
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_Success(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").Expect("OK")
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_RepositoryError(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_NoRows(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect(nil)
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_RowWithInvalidData(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect("invalid-data")
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_Succeeded(t *testing.T) {
gopherID := "123ABC"
expectedGopher := buildGopher(gopherID)
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect(gopherToJSONString(expectedGopher))
repo := NewRepository(wrapRedisConn(conn))
gopher, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Equal(t, &expectedGopher, gopher)
}
func buildGopher(ID string) gopherapi.Gopher {
return gopherapi.Gopher{
ID: ID,
Name: "The Saviour",
Image: "https:
Age: 8,
}
}
func gopherToJSONString(gopher gopherapi.Gopher) string {
bytes, _ := json.Marshal(&gopher)
return string(bytes)
}
func wrapRedisConn(conn redis.Conn) *redis.Pool {
return &redis.Pool{
MaxIdle: 3,
IdleTimeout: 240 * time.Second,
Dial: func() (redis.Conn, error) { return conn, nil },
}
} | package redis
import (
"context"
"encoding/json"
"errors"
gopherapi "github.com/friendsofgo/gopherapi/pkg"
"github.com/gomodule/redigo/redis"
_ "github.com/lib/pq"
"github.com/rafaeljusto/redigomock"
"github.com/stretchr/testify/assert"
"testing"
"time"
)
func Test_GopherRepository_CreateGopher_RepositoryError(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher)).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.CreateGopher(context.Background(), &gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_CreateGopher_Success(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher)).Expect("OK")
repo := NewRepository(wrapRedisConn(conn))
err := repo.CreateGopher(context.Background(), &gopher)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_RepositoryError(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGophers(context.Background())
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_NoRows(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{})
repo := NewRepository(wrapRedisConn(conn))
gophers, err := repo.FetchGophers(context.Background())
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Len(t, gophers, 0)
}
func Test_GopherRepository_FetchGophers_RowWithInvalidData(t *testing.T) {
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{"123", "456"})
conn.Command("MGET", "123", "456").Expect([]interface{}{"invalid-data"})
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGophers(context.Background())
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGophers_Succeeded(t *testing.T) {
gopherA, gopherB := buildGopher("123ABC"), buildGopher("ABC123")
expectedGophers := []gopherapi.Gopher{gopherA, gopherB}
conn := redigomock.NewConn()
conn.Command("KEYS", "*").Expect([]interface{}{gopherA.ID, gopherB.ID})
conn.Command("MGET", gopherA.ID, gopherB.ID).Expect(
[]interface{}{gopherToJSONString(gopherA), gopherToJSONString(gopherB)},
)
repo := NewRepository(wrapRedisConn(conn))
gophers, err := repo.FetchGophers(context.Background())
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Equal(t, expectedGophers, gophers)
}
func Test_GopherRepository_DeleteGopher_RepositoryError(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("DEL", gopherID).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.DeleteGopher(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_DeleteGopher_Success(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("DEL", gopherID).Expect(1)
repo := NewRepository(wrapRedisConn(conn))
err := repo.DeleteGopher(context.Background(), gopherID)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_RepositoryError(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_NotFound(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").Expect(nil)
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_UpdateGopher_Success(t *testing.T) {
gopher := buildGopher("123ABC")
conn := redigomock.NewConn()
conn.Command("SET", gopher.ID, gopherToJSONString(gopher), "XX").Expect("OK")
repo := NewRepository(wrapRedisConn(conn))
err := repo.UpdateGopher(context.Background(), gopher.ID, gopher)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_RepositoryError(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).ExpectError(errors.New("something failed"))
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_NoRows(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect(nil)
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_RowWithInvalidData(t *testing.T) {
gopherID := "123ABC"
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect("invalid-data")
repo := NewRepository(wrapRedisConn(conn))
_, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.Error(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
}
func Test_GopherRepository_FetchGopherByID_Succeeded(t *testing.T) {
gopherID := "123ABC"
expectedGopher := buildGopher(gopherID)
conn := redigomock.NewConn()
conn.Command("GET", gopherID).Expect(gopherToJSONString(expectedGopher))
repo := NewRepository(wrapRedisConn(conn))
gopher, err := repo.FetchGopherByID(context.Background(), gopherID)
assert.NoError(t, err)
assert.NoError(t, conn.ExpectationsWereMet())
assert.Equal(t, &expectedGopher, gopher)
}
func buildGopher(ID string) gopherapi.Gopher {
return gopherapi.Gopher{
ID: ID,
Name: "The Saviour",
Image: "https://via.placeholder.com/150.png",
Age: 8,
}
}
func gopherToJSONString(gopher gopherapi.Gopher) string {
bytes, _ := json.Marshal(&gopher)
return string(bytes)
}
func wrapRedisConn(conn redis.Conn) *redis.Pool {
return &redis.Pool{
MaxIdle: 3,
IdleTimeout: 240 * time.Second,
Dial: func() (redis.Conn, error) { return conn, nil },
}
}
| [
5786,
24718,
188,
188,
4747,
280,
188,
187,
4,
1609,
4,
188,
187,
4,
6534,
17,
1894,
4,
188,
187,
4,
4383,
4,
188,
187,
42397,
1791,
312,
3140,
16,
817,
17,
31404,
2339,
537,
2035,
17,
42397,
1791,
17,
5090,
4,
188,
187,
4,
3140,
16,
817,
17,
30103,
1133,
17,
2064,
34996,
17,
17713,
4,
188,
187,
65,
312,
3140,
16,
817,
17,
1906,
17,
14755,
4,
188,
187,
4,
3140,
16,
817,
17,
84,
1032,
14395,
4438,
81,
17,
2064,
338,
476,
1000,
4,
188,
187,
4,
3140,
16,
817,
17,
39981,
17,
39815,
17,
1545,
4,
188,
187,
4,
4342,
4,
188,
187,
4,
1149,
4,
188,
11,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2272,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
4518,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2272,
41,
37935,
10,
1609,
16,
7404,
833,
396,
42397,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2272,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
4518,
9153,
435,
2323,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2272,
41,
37935,
10,
1609,
16,
7404,
833,
396,
42397,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
2487,
7011,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
2475,
5494,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
22059,
74,
475,
14,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
187,
1545,
16,
1300,
10,
86,
14,
482,
30449,
475,
14,
257,
11,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
2805,
1748,
2918,
883,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
43502,
5772,
347,
312,
19605,
17470,
188,
187,
1904,
16,
2710,
435,
47,
1726,
347,
312,
5772,
347,
312,
19605,
3101,
9153,
4661,
3314,
43502,
4081,
15,
568,
17470,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
25445,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
35,
14,
482,
37935,
36,
721,
4117,
41,
37935,
435,
5772,
13575,
1557,
4117,
41,
37935,
435,
13575,
5772,
866,
188,
187,
2297,
41,
30449,
475,
721,
1397,
42397,
1791,
16,
41,
37935,
93,
42397,
35,
14,
482,
37935,
36,
95,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
14582,
42397,
35,
16,
565,
14,
482,
37935,
36,
16,
565,
1436,
188,
187,
1904,
16,
2710,
435,
47,
1726,
347,
482,
37935,
35,
16,
565,
14,
482,
37935,
36,
16,
565,
717,
9153,
10,
188,
187,
187,
984,
3314,
14582,
42397,
805,
3916,
703,
10,
42397,
35,
399,
482,
37935,
805,
3916,
703,
10,
42397,
36,
4337,
188,
187,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
22059,
74,
475,
14,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
187,
1545,
16,
1567,
10,
86,
14,
2556,
41,
30449,
475,
14,
482,
30449,
475,
11,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
3593,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
8305,
347,
482,
37935,
565,
717,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
3593,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
3593,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
8305,
347,
482,
37935,
565,
717,
9153,
10,
19,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
3593,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6937,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
10,
3974,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
435,
2323,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
2487,
7011,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
10,
3974,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
2805,
1748,
2918,
883,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
435,
4081,
15,
568,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
25445,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
187,
2297,
41,
37935,
721,
4117,
41,
37935,
10,
42397,
565,
11,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
10,
42397,
805,
3916,
703,
10,
2297,
41,
37935,
452,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
42397,
14,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
187,
1545,
16,
1567,
10,
86,
14,
396,
2297,
41,
37935,
14,
482,
37935,
11,
188,
95,
188,
188,
1857,
4117,
41,
37935,
10,
565,
776,
11,
482,
37935,
1791,
16,
41,
37935,
275,
188,
187,
397,
482,
37935,
1791,
16,
41,
37935,
93,
188,
187,
187,
565,
28,
209,
209,
209,
2230,
14,
188,
187,
187,
613,
28,
209,
312,
2413,
331,
4433,
576,
347,
188,
187,
187,
2395,
28,
312,
4118,
28,
188,
187,
187,
19340,
28,
209,
209,
1013,
14,
188,
187,
95,
188,
95,
188,
188,
1857,
482,
37935,
805,
3916,
703,
10,
42397,
482,
37935,
1791,
16,
41,
37935,
11,
776,
275,
188,
187,
2186,
14,
547,
721,
3667,
16,
4647,
699,
42397,
11,
188,
187,
397,
776,
10,
2186,
11,
188,
95,
188,
188,
1857,
8914,
19776,
5716,
10,
1904,
24718,
16,
5716,
11,
258,
17713,
16,
4162,
275,
188,
187,
397,
396,
17713,
16,
4162,
93,
188,
187,
187,
2459,
12133,
28,
209,
209,
209,
209,
678,
14,
188,
187,
187,
12133,
4280,
28,
15705,
258,
1247,
16,
7386,
14,
188,
187,
187,
16021,
28,
209,
209,
209,
209,
209,
209,
209,
830,
336,
280,
17713,
16,
5716,
14,
790,
11,
275,
429,
5971,
14,
869,
707,
188,
187,
95,
188,
95
] | [
188,
187,
4,
3140,
16,
817,
17,
39981,
17,
39815,
17,
1545,
4,
188,
187,
4,
4342,
4,
188,
187,
4,
1149,
4,
188,
11,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2272,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
4518,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2272,
41,
37935,
10,
1609,
16,
7404,
833,
396,
42397,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2272,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
4518,
9153,
435,
2323,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2272,
41,
37935,
10,
1609,
16,
7404,
833,
396,
42397,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
2487,
7011,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
2475,
5494,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
22059,
74,
475,
14,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
187,
1545,
16,
1300,
10,
86,
14,
482,
30449,
475,
14,
257,
11,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
2805,
1748,
2918,
883,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
43502,
5772,
347,
312,
19605,
17470,
188,
187,
1904,
16,
2710,
435,
47,
1726,
347,
312,
5772,
347,
312,
19605,
3101,
9153,
4661,
3314,
43502,
4081,
15,
568,
17470,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
30449,
475,
65,
25445,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
35,
14,
482,
37935,
36,
721,
4117,
41,
37935,
435,
5772,
13575,
1557,
4117,
41,
37935,
435,
13575,
5772,
866,
188,
187,
2297,
41,
30449,
475,
721,
1397,
42397,
1791,
16,
41,
37935,
93,
42397,
35,
14,
482,
37935,
36,
95,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
20400,
347,
12213,
3101,
9153,
4661,
3314,
14582,
42397,
35,
16,
565,
14,
482,
37935,
36,
16,
565,
1436,
188,
187,
1904,
16,
2710,
435,
47,
1726,
347,
482,
37935,
35,
16,
565,
14,
482,
37935,
36,
16,
565,
717,
9153,
10,
188,
187,
187,
984,
3314,
14582,
42397,
805,
3916,
703,
10,
42397,
35,
399,
482,
37935,
805,
3916,
703,
10,
42397,
36,
4337,
188,
187,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
22059,
74,
475,
14,
497,
721,
15760,
16,
11492,
41,
30449,
475,
10,
1609,
16,
7404,
1202,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
187,
1545,
16,
1567,
10,
86,
14,
2556,
41,
30449,
475,
14,
482,
30449,
475,
11,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
3593,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
8305,
347,
482,
37935,
565,
717,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
3593,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
3593,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
8305,
347,
482,
37935,
565,
717,
9153,
10,
19,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
3593,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6937,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
10,
3974,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
2574,
41,
37935,
65,
6225,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
721,
4117,
41,
37935,
435,
5772,
13575,
866,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1040,
347,
482,
37935,
16,
565,
14,
482,
37935,
805,
3916,
703,
10,
42397,
399,
312,
1530,
3101,
9153,
435,
2323,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
379,
721,
15760,
16,
2574,
41,
37935,
10,
1609,
16,
7404,
833,
482,
37935,
16,
565,
14,
482,
37935,
11,
188,
188,
187,
1545,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
6475,
914,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
914,
10,
4383,
16,
1888,
435,
28486,
2985,
2646,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
2487,
7011,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
10,
3974,
11,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
2805,
1748,
2918,
883,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
435,
4081,
15,
568,
866,
188,
188,
187,
12941,
721,
3409,
6475,
10,
4719,
19776,
5716,
10,
1904,
452,
188,
187,
2256,
497,
721,
15760,
16,
11492,
41,
37935,
31706,
10,
1609,
16,
7404,
833,
482,
37935,
565,
11,
188,
188,
187,
1545,
16,
914,
10,
86,
14,
497,
11,
188,
187,
1545,
16,
13346,
10,
86,
14,
5971,
16,
47356,
57,
1062,
1243,
1202,
188,
95,
188,
188,
1857,
2214,
65,
41,
37935,
6475,
65,
11492,
41,
37935,
31706,
65,
25445,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
42397,
565,
721,
312,
5772,
13575,
4,
188,
187,
2297,
41,
37935,
721,
4117,
41,
37935,
10,
42397,
565,
11,
188,
188,
187,
1904,
721,
3087,
338,
476,
1000,
16,
1888,
5716,
336,
188,
187,
1904,
16,
2710,
435,
1726,
347,
482,
37935,
565,
717,
9153,
10
] |
72,805 | package functional
import (
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
"github.com/gardener/cert-management/pkg/apis/cert/v1alpha1"
"github.com/gardener/cert-management/test/functional/config"
"github.com/gardener/controller-manager-library/pkg/resources"
)
var basicTemplate = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: Issuer
metadata:
name: {{.Name}}
namespace: {{.Namespace}}
spec:
{{if eq .Type "acme"}}
acme:
server: {{.Server}}
email: {{.Email}}
autoRegistration: {{.AutoRegistration}}
privateKeySecretRef:
name: {{.Name}}-secret
namespace: {{.Namespace}}
{{end}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert1
namespace: {{.Namespace}}
spec:
commonName: cert1.{{.Domain}}
dnsNames:
- cert1a.{{.Domain}}
- cert1b.{{.Domain}}
secretName: cert1-secret
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert2
namespace: {{.Namespace}}
spec:
commonName: cert2.{{.Domain}}
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert2b
namespace: {{.Namespace}}
spec:
commonName: cert2.{{.Domain}}
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert3
namespace: {{.Namespace}}
spec:
commonName: cert3.{{.Domain}}
dnsNames:
- "*.cert3.{{.Domain}}"
issuerRef:
name: {{.Name}}
`
var revoke2Template = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: CertificateRevocation
metadata:
name: revoke-cert2
namespace: {{.Namespace}}
spec:
certificateRef:
name: cert2
namespace: {{.Namespace}}
`
var revoke3Template = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: CertificateRevocation
metadata:
name: revoke-cert3
namespace: {{.Namespace}}
spec:
certificateRef:
name: cert3
namespace: {{.Namespace}}
renew: true
`
func init() {
resources.Register(v1alpha1.SchemeBuilder)
addIssuerTests(functestbasics)
}
func functestbasics(cfg *config.Config, iss *config.IssuerConfig) {
_ = Describe("basics-"+iss.Name, func() {
It("should work with "+iss.Name, func() {
manifestFilename, err := iss.CreateTempManifest("Manifest", basicTemplate)
defer iss.DeleteTempManifest(manifestFilename)
Ω(err).Should(BeNil())
u := cfg.Utils
err = u.AwaitKubectlGetCRDs("issuers.cert.gardener.cloud", "certificates.cert.gardener.cloud")
Ω(err).Should(BeNil())
err = u.KubectlApply(manifestFilename)
Ω(err).Should(BeNil())
err = u.AwaitIssuerReady(iss.Name)
Ω(err).Should(BeNil())
entryNames := []string{}
for _, name := range []string{"1", "2", "2b", "3"} {
entryNames = append(entryNames, entryName(iss, name))
}
err = u.AwaitCertReady(entryNames...)
Ω(err).Should(BeNil())
itemMap, err := u.KubectlGetAllCertificates()
Ω(err).Should(BeNil())
Ω(itemMap).Should(MatchKeys(IgnoreExtras, Keys{
entryName(iss, "1"): MatchKeys(IgnoreExtras, Keys{
"metadata": MatchKeys(IgnoreExtras, Keys{
"labels": MatchKeys(IgnoreExtras, Keys{
"cert.gardener.cloud/hash": HavePrefix(""),
}),
}),
"spec": MatchKeys(IgnoreExtras, Keys{
"secretRef": MatchKeys(IgnoreExtras, Keys{
"name": HavePrefix(entryName(iss, "1") + "-"),
"namespace": Equal(iss.Namespace),
}),
}),
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert1")),
"dnsNames": And(HaveLen(2), ContainElement(dnsName(iss, "cert1a")), ContainElement(dnsName(iss, "cert1b"))),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "2"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert2")),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "2b"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert2")),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "3"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert3")),
"dnsNames": And(HaveLen(1), ContainElement(dnsName(iss, "*.cert3"))),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
}))
By("revoking without renewal", func() {
time.Sleep(30 * time.Second)
filename, err := iss.CreateTempManifest("revoke2", revoke2Template)
defer iss.DeleteTempManifest(filename)
Ω(err).Should(BeNil())
err = u.KubectlApply(filename)
Ω(err).Should(BeNil())
err = u.AwaitCertRevocationApplied("revoke-cert2")
Ω(err).Should(BeNil())
err = u.AwaitCertRevoked(entryName(iss, "2"), entryName(iss, "2b"))
Ω(err).Should(BeNil())
err = u.KubectlDelete(filename)
Ω(err).Should(BeNil())
})
By("revoking with renewal", func() {
filename, err := iss.CreateTempManifest("revoke3", revoke3Template)
defer iss.DeleteTempManifest(filename)
Ω(err).Should(BeNil())
err = u.KubectlApply(filename)
Ω(err).Should(BeNil())
err = u.AwaitCertRevocationApplied("revoke-cert3")
Ω(err).Should(BeNil())
err = u.AwaitCertReady(entryName(iss, "3"))
Ω(err).Should(BeNil())
err = u.KubectlDelete(filename)
Ω(err).Should(BeNil())
})
err = u.KubectlDelete(manifestFilename)
Ω(err).Should(BeNil())
err = u.AwaitCertDeleted(entryNames...)
Ω(err).Should(BeNil())
err = u.AwaitIssuerDeleted(iss.Name)
Ω(err).Should(BeNil())
})
})
}
func dnsName(iss *config.IssuerConfig, name string) string {
return name + "." + iss.Domain
}
func entryName(_ *config.IssuerConfig, name string) string {
return "cert" + name
} | /*
* SPDX-FileCopyrightText: 2019 SAP SE or an SAP affiliate company and Gardener contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
package functional
import (
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
"github.com/gardener/cert-management/pkg/apis/cert/v1alpha1"
"github.com/gardener/cert-management/test/functional/config"
"github.com/gardener/controller-manager-library/pkg/resources"
)
var basicTemplate = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: Issuer
metadata:
name: {{.Name}}
namespace: {{.Namespace}}
spec:
{{if eq .Type "acme"}}
acme:
server: {{.Server}}
email: {{.Email}}
autoRegistration: {{.AutoRegistration}}
privateKeySecretRef:
name: {{.Name}}-secret
namespace: {{.Namespace}}
{{end}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert1
namespace: {{.Namespace}}
spec:
commonName: cert1.{{.Domain}}
dnsNames:
- cert1a.{{.Domain}}
- cert1b.{{.Domain}}
secretName: cert1-secret
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert2
namespace: {{.Namespace}}
spec:
commonName: cert2.{{.Domain}}
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert2b
namespace: {{.Namespace}}
spec:
commonName: cert2.{{.Domain}}
issuerRef:
name: {{.Name}}
---
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: cert3
namespace: {{.Namespace}}
spec:
commonName: cert3.{{.Domain}}
dnsNames:
- "*.cert3.{{.Domain}}"
issuerRef:
name: {{.Name}}
`
var revoke2Template = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: CertificateRevocation
metadata:
name: revoke-cert2
namespace: {{.Namespace}}
spec:
certificateRef:
name: cert2
namespace: {{.Namespace}}
`
var revoke3Template = `
apiVersion: cert.gardener.cloud/v1alpha1
kind: CertificateRevocation
metadata:
name: revoke-cert3
namespace: {{.Namespace}}
spec:
certificateRef:
name: cert3
namespace: {{.Namespace}}
renew: true
`
func init() {
resources.Register(v1alpha1.SchemeBuilder)
addIssuerTests(functestbasics)
}
func functestbasics(cfg *config.Config, iss *config.IssuerConfig) {
_ = Describe("basics-"+iss.Name, func() {
It("should work with "+iss.Name, func() {
manifestFilename, err := iss.CreateTempManifest("Manifest", basicTemplate)
defer iss.DeleteTempManifest(manifestFilename)
Ω(err).Should(BeNil())
u := cfg.Utils
err = u.AwaitKubectlGetCRDs("issuers.cert.gardener.cloud", "certificates.cert.gardener.cloud")
Ω(err).Should(BeNil())
err = u.KubectlApply(manifestFilename)
Ω(err).Should(BeNil())
err = u.AwaitIssuerReady(iss.Name)
Ω(err).Should(BeNil())
entryNames := []string{}
for _, name := range []string{"1", "2", "2b", "3"} {
entryNames = append(entryNames, entryName(iss, name))
}
err = u.AwaitCertReady(entryNames...)
Ω(err).Should(BeNil())
itemMap, err := u.KubectlGetAllCertificates()
Ω(err).Should(BeNil())
Ω(itemMap).Should(MatchKeys(IgnoreExtras, Keys{
entryName(iss, "1"): MatchKeys(IgnoreExtras, Keys{
"metadata": MatchKeys(IgnoreExtras, Keys{
"labels": MatchKeys(IgnoreExtras, Keys{
"cert.gardener.cloud/hash": HavePrefix(""),
}),
}),
"spec": MatchKeys(IgnoreExtras, Keys{
"secretRef": MatchKeys(IgnoreExtras, Keys{
"name": HavePrefix(entryName(iss, "1") + "-"),
"namespace": Equal(iss.Namespace),
}),
}),
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert1")),
"dnsNames": And(HaveLen(2), ContainElement(dnsName(iss, "cert1a")), ContainElement(dnsName(iss, "cert1b"))),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "2"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert2")),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "2b"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert2")),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
entryName(iss, "3"): MatchKeys(IgnoreExtras, Keys{
"status": MatchKeys(IgnoreExtras, Keys{
"commonName": Equal(dnsName(iss, "cert3")),
"dnsNames": And(HaveLen(1), ContainElement(dnsName(iss, "*.cert3"))),
"state": Equal("Ready"),
"expirationDate": HavePrefix("20"),
}),
}),
}))
By("revoking without renewal", func() {
// need to wait 30 seconds after certificate creation because of time drift (see func WasRequestedBefore() for details)
time.Sleep(30 * time.Second)
filename, err := iss.CreateTempManifest("revoke2", revoke2Template)
defer iss.DeleteTempManifest(filename)
Ω(err).Should(BeNil())
err = u.KubectlApply(filename)
Ω(err).Should(BeNil())
err = u.AwaitCertRevocationApplied("revoke-cert2")
Ω(err).Should(BeNil())
err = u.AwaitCertRevoked(entryName(iss, "2"), entryName(iss, "2b"))
Ω(err).Should(BeNil())
err = u.KubectlDelete(filename)
Ω(err).Should(BeNil())
})
By("revoking with renewal", func() {
filename, err := iss.CreateTempManifest("revoke3", revoke3Template)
defer iss.DeleteTempManifest(filename)
Ω(err).Should(BeNil())
err = u.KubectlApply(filename)
Ω(err).Should(BeNil())
err = u.AwaitCertRevocationApplied("revoke-cert3")
Ω(err).Should(BeNil())
err = u.AwaitCertReady(entryName(iss, "3"))
Ω(err).Should(BeNil())
err = u.KubectlDelete(filename)
Ω(err).Should(BeNil())
})
err = u.KubectlDelete(manifestFilename)
Ω(err).Should(BeNil())
err = u.AwaitCertDeleted(entryNames...)
Ω(err).Should(BeNil())
err = u.AwaitIssuerDeleted(iss.Name)
Ω(err).Should(BeNil())
})
})
}
func dnsName(iss *config.IssuerConfig, name string) string {
return name + "." + iss.Domain
}
func entryName(_ *config.IssuerConfig, name string) string {
return "cert" + name
}
| [
5786,
24260,
188,
188,
4747,
280,
188,
187,
4,
1149,
4,
188,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
49878,
17,
88,
20,
4,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
73,
26985,
4,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
73,
26985,
17,
73,
393,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
7294,
15,
14515,
17,
5090,
17,
8848,
17,
7294,
17,
88,
19,
4806,
19,
4,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
7294,
15,
14515,
17,
1028,
17,
24266,
17,
1231,
4,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
5891,
15,
5770,
15,
9637,
17,
5090,
17,
5892,
4,
188,
11,
188,
188,
828,
7121,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18515,
13223,
188,
4903,
28,
188,
209,
700,
28,
3676,
16,
613,
2112,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
4107,
285,
8301,
878,
563,
312,
47739,
23733,
188,
209,
2232,
286,
28,
188,
209,
209,
209,
3223,
28,
3676,
16,
2827,
2112,
188,
209,
209,
209,
10095,
28,
3676,
16,
9555,
2112,
188,
209,
209,
209,
2259,
12699,
28,
3676,
16,
4839,
12699,
2112,
188,
209,
209,
209,
44185,
49938,
28,
188,
209,
209,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
15,
9359,
188,
209,
209,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
4107,
417,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
19,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
19,
16,
4107,
16,
5121,
2112,
188,
209,
18321,
3959,
28,
188,
209,
418,
7908,
19,
67,
16,
4107,
16,
5121,
2112,
188,
209,
418,
7908,
19,
68,
16,
4107,
16,
5121,
2112,
188,
209,
11785,
613,
28,
7908,
19,
15,
9359,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
20,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
20,
16,
4107,
16,
5121,
2112,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
20,
68,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
20,
16,
4107,
16,
5121,
2112,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
21,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
21,
16,
4107,
16,
5121,
2112,
188,
209,
18321,
3959,
28,
188,
209,
418,
12213,
16,
7294,
21,
16,
4107,
16,
5121,
2112,
4,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
66,
188,
188,
828,
47836,
20,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
44157,
188,
4903,
28,
188,
209,
700,
28,
47836,
15,
7294,
20,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
10914,
1990,
28,
188,
209,
209,
209,
700,
28,
7908,
20,
188,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
66,
188,
188,
828,
47836,
21,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
44157,
188,
4903,
28,
188,
209,
700,
28,
47836,
15,
7294,
21,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
10914,
1990,
28,
188,
209,
209,
209,
700,
28,
7908,
21,
188,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
209,
48134,
28,
868,
188,
66,
188,
188,
1857,
1777,
336,
275,
188,
187,
5892,
16,
2184,
10,
88,
19,
4806,
19,
16,
39436,
11,
188,
187,
812,
25296,
6998,
10,
9087,
32798,
42888,
11,
188,
95,
188,
188,
1857,
37535,
573,
42888,
10,
2472,
258,
1231,
16,
1224,
14,
7991,
258,
1231,
16,
25296,
1224,
11,
275,
188,
187,
65,
260,
9313,
435,
42888,
31012,
1350,
16,
613,
14,
830,
336,
275,
188,
187,
187,
7523,
435,
4419,
2190,
670,
6454,
1350,
16,
613,
14,
830,
336,
275,
188,
350,
187,
20093,
10436,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
15483,
347,
7121,
3943,
11,
188,
350,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
20093,
10436,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
87,
721,
5422,
16,
3546,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
45,
385,
42687,
901,
1110,
25121,
435,
1350,
87,
475,
16,
7294,
16,
18823,
256,
1796,
16,
6101,
347,
312,
37448,
16,
7294,
16,
18823,
256,
1796,
16,
6101,
866,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
20093,
10436,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
25296,
9579,
10,
1350,
16,
613,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
1228,
3959,
721,
1397,
530,
2475,
188,
350,
187,
529,
2426,
700,
721,
2068,
1397,
530,
2315,
19,
347,
312,
20,
347,
312,
20,
68,
347,
312,
21,
6629,
275,
188,
2054,
187,
1228,
3959,
260,
3343,
10,
1228,
3959,
14,
2608,
613,
10,
1350,
14,
700,
452,
188,
350,
187,
95,
188,
350,
187,
379,
260,
378,
16,
17279,
9331,
9579,
10,
1228,
3959,
5013,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
1386,
1324,
14,
497,
721,
378,
16,
45,
385,
42687,
32460,
28059,
336,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
139,
105,
10,
1386,
1324,
717,
8364,
10,
3292,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
19,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
4903,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
7947,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
8446,
187,
4,
7294,
16,
18823,
256,
1796,
16,
6101,
17,
2421,
788,
35703,
4985,
23718,
188,
5520,
187,
6170,
188,
1263,
187,
6170,
188,
1263,
187,
4,
2262,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
9359,
1990,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
8446,
187,
4,
579,
788,
209,
209,
209,
209,
209,
35703,
4985,
10,
1228,
613,
10,
1350,
14,
312,
19,
866,
431,
5670,
1557,
188,
8446,
187,
4,
5512,
788,
12054,
10,
1350,
16,
5309,
399,
188,
5520,
187,
6170,
188,
1263,
187,
6170,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
10483,
188,
5520,
187,
4,
10667,
3959,
788,
209,
209,
209,
209,
209,
209,
7823,
10,
11675,
1300,
10,
20,
399,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
67,
10483,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
68,
2646,
399,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
20,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
20,
10483,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
20,
68,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
20,
10483,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
21,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
21,
10483,
188,
5520,
187,
4,
10667,
3959,
788,
209,
209,
209,
209,
209,
209,
7823,
10,
11675,
1300,
10,
19,
399,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
12213,
16,
7294,
21,
2646,
399,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
350,
187,
26295,
188,
188,
350,
187,
1232,
435,
4952,
48759,
2065,
48134,
266,
347,
830,
336,
275,
188,
188,
2054,
187,
1149,
16,
14519,
10,
1122,
258,
1247,
16,
7386,
11,
188,
188,
2054,
187,
4574,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
32819,
20,
347,
47836,
20,
3943,
11,
188,
2054,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
44157,
35233,
435,
32819,
15,
7294,
20,
866,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
14878,
20317,
10,
1228,
613,
10,
1350,
14,
312,
20,
1557,
2608,
613,
10,
1350,
14,
312,
20,
68,
2646,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
3593,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
350,
187,
1436,
188,
188,
350,
187,
1232,
435,
4952,
48759,
670,
48134,
266,
347,
830,
336,
275,
188,
2054,
187,
4574,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
32819,
21,
347,
47836,
21,
3943,
11,
188,
2054,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
44157,
35233,
435,
32819,
15,
7294,
21,
866,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
9579,
10,
1228,
613,
10,
1350,
14,
312,
21,
2646,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
3593,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
350,
187,
1436,
188,
188,
350,
187,
379,
260,
378,
16,
45,
385,
42687,
3593,
10,
20093,
10436,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
9331,
15694,
10,
1228,
3959,
5013,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
25296,
15694,
10,
1350,
16,
613,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
187,
187,
1436,
188,
187,
1436,
188,
95,
188,
188,
1857,
18321,
613,
10,
1350,
258,
1231,
16,
25296,
1224,
14,
700,
776,
11,
776,
275,
188,
187,
397,
700,
431,
19831,
431,
7991,
16,
5121,
188,
95,
188,
188,
1857,
2608,
613,
1706,
258,
1231,
16,
25296,
1224,
14,
700,
776,
11,
776,
275,
188,
187,
397,
312,
7294,
4,
431,
700,
188,
95
] | [
188,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
49878,
17,
88,
20,
4,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
73,
26985,
4,
188,
187,
16,
312,
3140,
16,
817,
17,
46908,
17,
73,
26985,
17,
73,
393,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
7294,
15,
14515,
17,
5090,
17,
8848,
17,
7294,
17,
88,
19,
4806,
19,
4,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
7294,
15,
14515,
17,
1028,
17,
24266,
17,
1231,
4,
188,
187,
4,
3140,
16,
817,
17,
18823,
256,
1796,
17,
5891,
15,
5770,
15,
9637,
17,
5090,
17,
5892,
4,
188,
11,
188,
188,
828,
7121,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18515,
13223,
188,
4903,
28,
188,
209,
700,
28,
3676,
16,
613,
2112,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
4107,
285,
8301,
878,
563,
312,
47739,
23733,
188,
209,
2232,
286,
28,
188,
209,
209,
209,
3223,
28,
3676,
16,
2827,
2112,
188,
209,
209,
209,
10095,
28,
3676,
16,
9555,
2112,
188,
209,
209,
209,
2259,
12699,
28,
3676,
16,
4839,
12699,
2112,
188,
209,
209,
209,
44185,
49938,
28,
188,
209,
209,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
15,
9359,
188,
209,
209,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
4107,
417,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
19,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
19,
16,
4107,
16,
5121,
2112,
188,
209,
18321,
3959,
28,
188,
209,
418,
7908,
19,
67,
16,
4107,
16,
5121,
2112,
188,
209,
418,
7908,
19,
68,
16,
4107,
16,
5121,
2112,
188,
209,
11785,
613,
28,
7908,
19,
15,
9359,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
20,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
20,
16,
4107,
16,
5121,
2112,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
20,
68,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
20,
16,
4107,
16,
5121,
2112,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
3901,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
188,
4903,
28,
188,
209,
700,
28,
7908,
21,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
5534,
613,
28,
7908,
21,
16,
4107,
16,
5121,
2112,
188,
209,
18321,
3959,
28,
188,
209,
418,
12213,
16,
7294,
21,
16,
4107,
16,
5121,
2112,
4,
188,
209,
33652,
1990,
28,
188,
209,
209,
209,
700,
28,
3676,
16,
613,
2112,
188,
66,
188,
188,
828,
47836,
20,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
44157,
188,
4903,
28,
188,
209,
700,
28,
47836,
15,
7294,
20,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
10914,
1990,
28,
188,
209,
209,
209,
700,
28,
7908,
20,
188,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
66,
188,
188,
828,
47836,
21,
3943,
260,
1083,
188,
27863,
28,
7908,
16,
18823,
256,
1796,
16,
6101,
17,
88,
19,
4806,
19,
188,
6128,
28,
18676,
44157,
188,
4903,
28,
188,
209,
700,
28,
47836,
15,
7294,
21,
188,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
2262,
28,
188,
209,
10914,
1990,
28,
188,
209,
209,
209,
700,
28,
7908,
21,
188,
209,
209,
209,
1643,
28,
3676,
16,
5309,
2112,
188,
209,
48134,
28,
868,
188,
66,
188,
188,
1857,
1777,
336,
275,
188,
187,
5892,
16,
2184,
10,
88,
19,
4806,
19,
16,
39436,
11,
188,
187,
812,
25296,
6998,
10,
9087,
32798,
42888,
11,
188,
95,
188,
188,
1857,
37535,
573,
42888,
10,
2472,
258,
1231,
16,
1224,
14,
7991,
258,
1231,
16,
25296,
1224,
11,
275,
188,
187,
65,
260,
9313,
435,
42888,
31012,
1350,
16,
613,
14,
830,
336,
275,
188,
187,
187,
7523,
435,
4419,
2190,
670,
6454,
1350,
16,
613,
14,
830,
336,
275,
188,
350,
187,
20093,
10436,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
15483,
347,
7121,
3943,
11,
188,
350,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
20093,
10436,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
87,
721,
5422,
16,
3546,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
45,
385,
42687,
901,
1110,
25121,
435,
1350,
87,
475,
16,
7294,
16,
18823,
256,
1796,
16,
6101,
347,
312,
37448,
16,
7294,
16,
18823,
256,
1796,
16,
6101,
866,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
20093,
10436,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
379,
260,
378,
16,
17279,
25296,
9579,
10,
1350,
16,
613,
11,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
1228,
3959,
721,
1397,
530,
2475,
188,
350,
187,
529,
2426,
700,
721,
2068,
1397,
530,
2315,
19,
347,
312,
20,
347,
312,
20,
68,
347,
312,
21,
6629,
275,
188,
2054,
187,
1228,
3959,
260,
3343,
10,
1228,
3959,
14,
2608,
613,
10,
1350,
14,
700,
452,
188,
350,
187,
95,
188,
350,
187,
379,
260,
378,
16,
17279,
9331,
9579,
10,
1228,
3959,
5013,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
1386,
1324,
14,
497,
721,
378,
16,
45,
385,
42687,
32460,
28059,
336,
188,
350,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
350,
187,
139,
105,
10,
1386,
1324,
717,
8364,
10,
3292,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
19,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
4903,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
7947,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
8446,
187,
4,
7294,
16,
18823,
256,
1796,
16,
6101,
17,
2421,
788,
35703,
4985,
23718,
188,
5520,
187,
6170,
188,
1263,
187,
6170,
188,
1263,
187,
4,
2262,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
9359,
1990,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
8446,
187,
4,
579,
788,
209,
209,
209,
209,
209,
35703,
4985,
10,
1228,
613,
10,
1350,
14,
312,
19,
866,
431,
5670,
1557,
188,
8446,
187,
4,
5512,
788,
12054,
10,
1350,
16,
5309,
399,
188,
5520,
187,
6170,
188,
1263,
187,
6170,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
10483,
188,
5520,
187,
4,
10667,
3959,
788,
209,
209,
209,
209,
209,
209,
7823,
10,
11675,
1300,
10,
20,
399,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
67,
10483,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
312,
7294,
19,
68,
2646,
399,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
20,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
20,
10483,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
20,
68,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
20,
10483,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
2054,
187,
1228,
613,
10,
1350,
14,
312,
21,
11462,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
1263,
187,
4,
1341,
788,
8797,
5118,
10,
7378,
39552,
14,
25131,
93,
188,
5520,
187,
4,
2670,
613,
788,
209,
209,
209,
209,
12054,
10,
10667,
613,
10,
1350,
14,
312,
7294,
21,
10483,
188,
5520,
187,
4,
10667,
3959,
788,
209,
209,
209,
209,
209,
209,
7823,
10,
11675,
1300,
10,
19,
399,
46880,
1588,
10,
10667,
613,
10,
1350,
14,
12213,
16,
7294,
21,
2646,
399,
188,
5520,
187,
4,
956,
788,
209,
209,
209,
209,
209,
209,
209,
209,
209,
12054,
435,
9579,
1557,
188,
5520,
187,
4,
27726,
2583,
788,
35703,
4985,
435,
722,
1557,
188,
1263,
187,
6170,
188,
2054,
187,
6170,
188,
350,
187,
26295,
188,
188,
350,
187,
1232,
435,
4952,
48759,
2065,
48134,
266,
347,
830,
336,
275,
188,
188,
2054,
187,
1149,
16,
14519,
10,
1122,
258,
1247,
16,
7386,
11,
188,
188,
2054,
187,
4574,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
32819,
20,
347,
47836,
20,
3943,
11,
188,
2054,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
44157,
35233,
435,
32819,
15,
7294,
20,
866,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
14878,
20317,
10,
1228,
613,
10,
1350,
14,
312,
20,
1557,
2608,
613,
10,
1350,
14,
312,
20,
68,
2646,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
3593,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
350,
187,
1436,
188,
188,
350,
187,
1232,
435,
4952,
48759,
670,
48134,
266,
347,
830,
336,
275,
188,
2054,
187,
4574,
14,
497,
721,
7991,
16,
2272,
5794,
15483,
435,
32819,
21,
347,
47836,
21,
3943,
11,
188,
2054,
187,
5303,
7991,
16,
3593,
5794,
15483,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
45,
385,
42687,
5482,
10,
4574,
11,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279,
9331,
44157,
35233,
435,
32819,
15,
7294,
21,
866,
188,
2054,
187,
139,
105,
10,
379,
717,
8364,
10,
47826,
1202,
188,
188,
2054,
187,
379,
260,
378,
16,
17279
] |
72,813 | package model
import (
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/values"
api "github.com/apache/plc4x/plc4go/pkg/plc4go/values"
"github.com/pkg/errors"
)
func DataItemParse(readBuffer utils.ReadBuffer, dataType string, numberOfValues uint16) (api.PlcValue, error) {
readBuffer.PullContext("DataItem")
switch {
case dataType == "BOOL" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadBit("value")
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcBOOL(value), nil
case dataType == "BOOL":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadBit("value")
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcBOOL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "BYTE" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcBYTE(value), nil
case dataType == "BYTE":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "WORD" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcWORD(value), nil
case dataType == "WORD":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "DWORD" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcDWORD(value), nil
case dataType == "DWORD":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LWORD" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLWORD(value), nil
case dataType == "LWORD":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcULINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "SINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadInt8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSINT(value), nil
case dataType == "SINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "INT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadInt16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcINT(value), nil
case dataType == "INT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "DINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadInt32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcDINT(value), nil
case dataType == "DINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadInt64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLINT(value), nil
case dataType == "LINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcLINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "USINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUSINT(value), nil
case dataType == "USINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "UINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUINT(value), nil
case dataType == "UINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "UDINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUDINT(value), nil
case dataType == "UDINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "ULINT" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcULINT(value), nil
case dataType == "ULINT":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcULINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "REAL" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadFloat32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcREAL(value), nil
case dataType == "REAL":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadFloat32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcREAL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LREAL" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadFloat64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLREAL(value), nil
case dataType == "LREAL":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadFloat64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcLREAL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "CHAR" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcCHAR(value), nil
case dataType == "CHAR":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "WCHAR" && numberOfValues == uint16(1):
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcWCHAR(value), nil
case dataType == "WCHAR":
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "STRING":
value, _valueErr := readBuffer.ReadString("value", uint32(255))
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSTRING(value), nil
case dataType == "WSTRING":
value, _valueErr := readBuffer.ReadString("value", uint32(255))
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSTRING(value), nil
}
return nil, errors.New("unsupported type")
}
func DataItemSerialize(writeBuffer utils.WriteBuffer, value api.PlcValue, dataType string, numberOfValues uint16) error {
m := struct {
DataType string
NumberOfValues uint16
}{
DataType: dataType,
NumberOfValues: numberOfValues,
}
_ = m
writeBuffer.PushContext("DataItem")
switch {
case dataType == "BOOL" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteBit("value", value.GetBool()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "BOOL":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteBit("", value.GetIndex(i).GetBool())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "BYTE" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "BYTE":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "WORD" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WORD":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "DWORD" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint32("value", 32, value.GetUint32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "DWORD":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint32("", 32, value.GetIndex(i).GetUint32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LWORD" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint64("value", 64, value.GetUint64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LWORD":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint64("", 64, value.GetIndex(i).GetUint64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "SINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteInt8("value", 8, value.GetInt8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "SINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt8("", 8, value.GetIndex(i).GetInt8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "INT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteInt16("value", 16, value.GetInt16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "INT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt16("", 16, value.GetIndex(i).GetInt16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "DINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteInt32("value", 32, value.GetInt32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "DINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt32("", 32, value.GetIndex(i).GetInt32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteInt64("value", 64, value.GetInt64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt64("", 64, value.GetIndex(i).GetInt64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "USINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "USINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "UINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "UINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "UDINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint32("value", 32, value.GetUint32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "UDINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint32("", 32, value.GetIndex(i).GetUint32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "ULINT" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint64("value", 64, value.GetUint64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "ULINT":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint64("", 64, value.GetIndex(i).GetUint64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "REAL" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteFloat32("value", 32, value.GetFloat32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "REAL":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteFloat32("", 32, value.GetIndex(i).GetFloat32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LREAL" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteFloat64("value", 64, value.GetFloat64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LREAL":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteFloat64("", 64, value.GetIndex(i).GetFloat64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "CHAR" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "CHAR":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "WCHAR" && numberOfValues == uint16(1):
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WCHAR":
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "STRING":
if _err := writeBuffer.WriteString("value", uint32(255), "UTF-8", value.GetString()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WSTRING":
if _err := writeBuffer.WriteString("value", uint32(255), "UTF-8", value.GetString()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
default:
return errors.New("unsupported type")
}
writeBuffer.PopContext("DataItem")
return nil
} | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package model
import (
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
"github.com/apache/plc4x/plc4go/internal/plc4go/spi/values"
api "github.com/apache/plc4x/plc4go/pkg/plc4go/values"
"github.com/pkg/errors"
)
// Code generated by code-generation. DO NOT EDIT.
func DataItemParse(readBuffer utils.ReadBuffer, dataType string, numberOfValues uint16) (api.PlcValue, error) {
readBuffer.PullContext("DataItem")
switch {
case dataType == "BOOL" && numberOfValues == uint16(1): // BOOL
// Simple Field (value)
value, _valueErr := readBuffer.ReadBit("value")
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcBOOL(value), nil
case dataType == "BOOL": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadBit("value")
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcBOOL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "BYTE" && numberOfValues == uint16(1): // BYTE
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcBYTE(value), nil
case dataType == "BYTE": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "WORD" && numberOfValues == uint16(1): // WORD
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcWORD(value), nil
case dataType == "WORD": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "DWORD" && numberOfValues == uint16(1): // DWORD
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcDWORD(value), nil
case dataType == "DWORD": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LWORD" && numberOfValues == uint16(1): // LWORD
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLWORD(value), nil
case dataType == "LWORD": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcULINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "SINT" && numberOfValues == uint16(1): // SINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadInt8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSINT(value), nil
case dataType == "SINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "INT" && numberOfValues == uint16(1): // INT
// Simple Field (value)
value, _valueErr := readBuffer.ReadInt16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcINT(value), nil
case dataType == "INT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "DINT" && numberOfValues == uint16(1): // DINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadInt32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcDINT(value), nil
case dataType == "DINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LINT" && numberOfValues == uint16(1): // LINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadInt64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLINT(value), nil
case dataType == "LINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadInt64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcLINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "USINT" && numberOfValues == uint16(1): // USINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUSINT(value), nil
case dataType == "USINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "UINT" && numberOfValues == uint16(1): // UINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUINT(value), nil
case dataType == "UINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "UDINT" && numberOfValues == uint16(1): // UDINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcUDINT(value), nil
case dataType == "UDINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUDINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "ULINT" && numberOfValues == uint16(1): // ULINT
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcULINT(value), nil
case dataType == "ULINT": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcULINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "REAL" && numberOfValues == uint16(1): // REAL
// Simple Field (value)
value, _valueErr := readBuffer.ReadFloat32("value", 32)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcREAL(value), nil
case dataType == "REAL": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadFloat32("value", 32)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcREAL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "LREAL" && numberOfValues == uint16(1): // LREAL
// Simple Field (value)
value, _valueErr := readBuffer.ReadFloat64("value", 64)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcLREAL(value), nil
case dataType == "LREAL": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadFloat64("value", 64)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcLREAL(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "CHAR" && numberOfValues == uint16(1): // CHAR
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint8("value", 8)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcCHAR(value), nil
case dataType == "CHAR": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint8("value", 8)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUSINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "WCHAR" && numberOfValues == uint16(1): // WCHAR
// Simple Field (value)
value, _valueErr := readBuffer.ReadUint16("value", 16)
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcWCHAR(value), nil
case dataType == "WCHAR": // List
// Array Field (value)
var value []api.PlcValue
for i := 0; i < int(numberOfValues); i++ {
_item, _itemErr := readBuffer.ReadUint16("value", 16)
if _itemErr != nil {
return nil, errors.Wrap(_itemErr, "Error parsing 'value' field")
}
value = append(value, values.NewPlcUINT(_item))
}
readBuffer.CloseContext("DataItem")
return values.NewPlcList(value), nil
case dataType == "STRING": // STRING
// Simple Field (value)
value, _valueErr := readBuffer.ReadString("value", uint32(255))
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSTRING(value), nil
case dataType == "WSTRING": // STRING
// Simple Field (value)
value, _valueErr := readBuffer.ReadString("value", uint32(255))
if _valueErr != nil {
return nil, errors.Wrap(_valueErr, "Error parsing 'value' field")
}
readBuffer.CloseContext("DataItem")
return values.NewPlcSTRING(value), nil
}
// TODO: add more info which type it is actually
return nil, errors.New("unsupported type")
}
func DataItemSerialize(writeBuffer utils.WriteBuffer, value api.PlcValue, dataType string, numberOfValues uint16) error {
m := struct {
DataType string
NumberOfValues uint16
}{
DataType: dataType,
NumberOfValues: numberOfValues,
}
_ = m
writeBuffer.PushContext("DataItem")
switch {
case dataType == "BOOL" && numberOfValues == uint16(1): // BOOL
// Simple Field (value)
if _err := writeBuffer.WriteBit("value", value.GetBool()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "BOOL": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteBit("", value.GetIndex(i).GetBool())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "BYTE" && numberOfValues == uint16(1): // BYTE
// Simple Field (value)
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "BYTE": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "WORD" && numberOfValues == uint16(1): // WORD
// Simple Field (value)
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WORD": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "DWORD" && numberOfValues == uint16(1): // DWORD
// Simple Field (value)
if _err := writeBuffer.WriteUint32("value", 32, value.GetUint32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "DWORD": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint32("", 32, value.GetIndex(i).GetUint32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LWORD" && numberOfValues == uint16(1): // LWORD
// Simple Field (value)
if _err := writeBuffer.WriteUint64("value", 64, value.GetUint64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LWORD": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint64("", 64, value.GetIndex(i).GetUint64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "SINT" && numberOfValues == uint16(1): // SINT
// Simple Field (value)
if _err := writeBuffer.WriteInt8("value", 8, value.GetInt8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "SINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt8("", 8, value.GetIndex(i).GetInt8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "INT" && numberOfValues == uint16(1): // INT
// Simple Field (value)
if _err := writeBuffer.WriteInt16("value", 16, value.GetInt16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "INT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt16("", 16, value.GetIndex(i).GetInt16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "DINT" && numberOfValues == uint16(1): // DINT
// Simple Field (value)
if _err := writeBuffer.WriteInt32("value", 32, value.GetInt32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "DINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt32("", 32, value.GetIndex(i).GetInt32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LINT" && numberOfValues == uint16(1): // LINT
// Simple Field (value)
if _err := writeBuffer.WriteInt64("value", 64, value.GetInt64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteInt64("", 64, value.GetIndex(i).GetInt64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "USINT" && numberOfValues == uint16(1): // USINT
// Simple Field (value)
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "USINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "UINT" && numberOfValues == uint16(1): // UINT
// Simple Field (value)
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "UINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "UDINT" && numberOfValues == uint16(1): // UDINT
// Simple Field (value)
if _err := writeBuffer.WriteUint32("value", 32, value.GetUint32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "UDINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint32("", 32, value.GetIndex(i).GetUint32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "ULINT" && numberOfValues == uint16(1): // ULINT
// Simple Field (value)
if _err := writeBuffer.WriteUint64("value", 64, value.GetUint64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "ULINT": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint64("", 64, value.GetIndex(i).GetUint64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "REAL" && numberOfValues == uint16(1): // REAL
// Simple Field (value)
if _err := writeBuffer.WriteFloat32("value", 32, value.GetFloat32()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "REAL": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteFloat32("", 32, value.GetIndex(i).GetFloat32())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "LREAL" && numberOfValues == uint16(1): // LREAL
// Simple Field (value)
if _err := writeBuffer.WriteFloat64("value", 64, value.GetFloat64()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "LREAL": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteFloat64("", 64, value.GetIndex(i).GetFloat64())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "CHAR" && numberOfValues == uint16(1): // CHAR
// Simple Field (value)
if _err := writeBuffer.WriteUint8("value", 8, value.GetUint8()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "CHAR": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint8("", 8, value.GetIndex(i).GetUint8())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "WCHAR" && numberOfValues == uint16(1): // WCHAR
// Simple Field (value)
if _err := writeBuffer.WriteUint16("value", 16, value.GetUint16()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WCHAR": // List
// Array Field (value)
for i := uint32(0); i < uint32(m.NumberOfValues); i++ {
_itemErr := writeBuffer.WriteUint16("", 16, value.GetIndex(i).GetUint16())
if _itemErr != nil {
return errors.Wrap(_itemErr, "Error serializing 'value' field")
}
}
case dataType == "STRING": // STRING
// Simple Field (value)
if _err := writeBuffer.WriteString("value", uint32(255), "UTF-8", value.GetString()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
case dataType == "WSTRING": // STRING
// Simple Field (value)
if _err := writeBuffer.WriteString("value", uint32(255), "UTF-8", value.GetString()); _err != nil {
return errors.Wrap(_err, "Error serializing 'value' field")
}
default:
// TODO: add more info which type it is actually
return errors.New("unsupported type")
}
writeBuffer.PopContext("DataItem")
return nil
}
| [
5786,
3097,
188,
188,
4747,
280,
188,
187,
4,
3140,
16,
817,
17,
2476,
17,
586,
69,
22,
90,
17,
586,
69,
22,
2035,
17,
2664,
17,
586,
69,
22,
2035,
17,
3686,
17,
3885,
4,
188,
187,
4,
3140,
16,
817,
17,
2476,
17,
586,
69,
22,
90,
17,
586,
69,
22,
2035,
17,
2664,
17,
586,
69,
22,
2035,
17,
3686,
17,
3447,
4,
188,
187,
1791,
312,
3140,
16,
817,
17,
2476,
17,
586,
69,
22,
90,
17,
586,
69,
22,
2035,
17,
5090,
17,
586,
69,
22,
2035,
17,
3447,
4,
188,
187,
4,
3140,
16,
817,
17,
5090,
17,
4383,
4,
188,
11,
188,
188,
1857,
3006,
1716,
4227,
10,
695,
1698,
12255,
16,
1933,
1698,
14,
23736,
776,
14,
21969,
3589,
691,
559,
11,
280,
1791,
16,
4442,
69,
842,
14,
790,
11,
275,
188,
187,
695,
1698,
16,
14303,
1199,
435,
883,
1716,
866,
188,
187,
2349,
275,
188,
187,
888,
23736,
489,
312,
7930,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
3047,
435,
731,
866,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
7930,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
7930,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
3047,
435,
731,
866,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
7930,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3758,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3758,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3758,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
825,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3201,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3201,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
4621,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
8891,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
8891,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
8891,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
2033,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
34720,
3201,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
3201,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
44235,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
33397,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
33397,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
33397,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
33397,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
38,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
38,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
38,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
38,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
34720,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
34720,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
825,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
825,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
825,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
825,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
4621,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
4621,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
4621,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
4621,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
2033,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
2033,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
2033,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
2033,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
520,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
44235,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
520,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
44235,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
12809,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
3477,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
12809,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
12809,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
3477,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
12809,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
12809,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
3477,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
34720,
12809,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
12809,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
3477,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
34720,
12809,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
4009,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
4009,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
4009,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
825,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
25636,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
25636,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
25636,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
4621,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3999,
788,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
46415,
435,
731,
347,
691,
419,
10,
3978,
452,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3999,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
57,
3999,
788,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
46415,
435,
731,
347,
691,
419,
10,
3978,
452,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3999,
10,
731,
399,
869,
188,
187,
95,
188,
188,
187,
397,
869,
14,
3955,
16,
1888,
435,
20389,
640,
866,
188,
95,
188,
188,
1857,
3006,
1716,
12004,
10,
1114,
1698,
12255,
16,
2016,
1698,
14,
734,
6538,
16,
4442,
69,
842,
14,
23736,
776,
14,
21969,
3589,
691,
559,
11,
790,
275,
188,
187,
79,
721,
603,
275,
188,
187,
187,
8673,
209,
209,
209,
209,
209,
209,
776,
188,
187,
187,
11971,
3589,
691,
559,
188,
187,
12508,
188,
187,
187,
8673,
28,
209,
209,
209,
209,
209,
209,
23736,
14,
188,
187,
187,
11971,
3589,
28,
21969,
3589,
14,
188,
187,
95,
188,
187,
65,
260,
328,
188,
187,
1114,
1698,
16,
8343,
1199,
435,
883,
1716,
866,
188,
187,
2349,
275,
188,
187,
888,
23736,
489,
312,
7930,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
3047,
435,
731,
347,
734,
16,
39548,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
7930,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
3047,
15185,
734,
16,
46365,
10,
75,
717,
39548,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
3758,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
26,
435,
731,
347,
1013,
14,
734,
16,
901,
4685,
26,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
3758,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
26,
15185,
1013,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
26,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
559,
435,
731,
347,
1373,
14,
734,
16,
901,
4685,
559,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
3201,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
559,
15185,
1373,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
559,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
8891,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
419,
435,
731,
347,
2012,
14,
734,
16,
901,
4685,
419,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
8891,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
419,
15185,
2012,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
419,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
535,
435,
731,
347,
2797,
14,
734,
16,
901,
4685,
535,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
3201,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
535,
15185,
2797,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
535,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
33397,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
34401,
26,
435,
731,
347,
1013,
14,
734,
16,
25925,
26,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
33397,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
34401,
26,
15185,
1013,
14,
734,
16,
46365,
10,
75,
717,
25925,
26,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
34401,
559,
435,
731,
347,
1373,
14,
734,
16,
25925,
559,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
34401,
559,
15185,
1373,
14,
734,
16,
46365,
10,
75,
717,
25925,
559,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
38,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
34401,
419,
435,
731,
347,
2012,
14,
734,
16,
25925,
419,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
38,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
34401,
419,
15185,
2012,
14,
734,
16,
46365,
10,
75,
717,
25925,
419,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
34401,
535,
435,
731,
347,
2797,
14,
734,
16,
25925,
535,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
34401,
535,
15185,
2797,
14,
734,
16,
46365,
10,
75,
717,
25925,
535,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
825,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
26,
435,
731,
347,
1013,
14,
734,
16,
901,
4685,
26,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
825,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
26,
15185,
1013,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
26,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
4621,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
559,
435,
731,
347,
1373,
14,
734,
16,
901,
4685,
559,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
4621,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
559,
15185,
1373,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
559,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
2033,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
419,
435,
731,
347,
2012,
14,
734,
16,
901,
4685,
419,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
2033,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
419,
15185,
2012,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
419,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
520,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
535,
435,
731,
347,
2797,
14,
734,
16,
901,
4685,
535,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
520,
793,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
535,
15185,
2797,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
535,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
12809,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
3477,
419,
435,
731,
347,
2012,
14,
734,
16,
43159,
419,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
12809,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
3477,
419,
15185,
2012,
14,
734,
16,
46365,
10,
75,
717,
43159,
419,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
12809,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
3477,
535,
435,
731,
347,
2797,
14,
734,
16,
43159,
535,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
46,
12809,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
3477,
535,
15185,
2797,
14,
734,
16,
46365,
10,
75,
717,
43159,
535,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
4009,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
26,
435,
731,
347,
1013,
14,
734,
16,
901,
4685,
26,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
4009,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
26,
15185,
1013,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
26,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
25636,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
2016,
4685,
559,
435,
731,
347,
1373,
14,
734,
16,
901,
4685,
559,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
25636,
788,
263,
188,
187,
187,
529,
368,
721,
691,
419,
10,
18,
267,
368,
360,
691,
419,
10,
79,
16,
11971,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
724,
721,
2089,
1698,
16,
2016,
4685,
559,
15185,
1373,
14,
734,
16,
46365,
10,
75,
717,
901,
4685,
559,
1202,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
3999,
788,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
14664,
435,
731,
347,
691,
419,
10,
3978,
399,
312,
6638,
15,
26,
347,
734,
16,
11895,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
888,
23736,
489,
312,
57,
3999,
788,
263,
188,
187,
187,
285,
547,
379,
721,
2089,
1698,
16,
14664,
435,
731,
347,
691,
419,
10,
3978,
399,
312,
6638,
15,
26,
347,
734,
16,
11895,
1080,
547,
379,
598,
869,
275,
188,
350,
187,
397,
3955,
16,
9610,
1706,
379,
14,
312,
914,
1472,
12289,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
1509,
28,
188,
188,
187,
187,
397,
3955,
16,
1888,
435,
20389,
640,
866,
188,
187,
95,
188,
187,
1114,
1698,
16,
6404,
1199,
435,
883,
1716,
866,
188,
187,
397,
869,
188,
95
] | [
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3758,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3758,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
825,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
3201,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
3201,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
4621,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
8891,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
8891,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
8891,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
2033,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
3201,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
34720,
3201,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
3201,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
1933,
4685,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
44235,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
33397,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
33397,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
33397,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
26,
435,
731,
347,
1013,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
33397,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
559,
435,
731,
347,
1373,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
559,
435,
731,
347,
1373,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
38,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
419,
435,
731,
347,
2012,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
38,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
38,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
419,
435,
731,
347,
2012,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
69,
38,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
26632,
535,
435,
731,
347,
2797,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
34720,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
46,
793,
788,
263,
188,
187,
187,
828,
734,
1397,
1791,
16,
4442,
69,
842,
188,
187,
187,
529,
368,
721,
257,
29,
368,
360,
388,
10,
22794,
3589,
267,
368,
775,
275,
188,
350,
187,
65,
1386,
14,
547,
1386,
724,
721,
1415,
1698,
16,
26632,
535,
435,
731,
347,
2797,
11,
188,
350,
187,
285,
547,
1386,
724,
598,
869,
275,
188,
2054,
187,
397,
869,
14,
3955,
16,
9610,
1706,
1386,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
350,
187,
95,
188,
350,
187,
731,
260,
3343,
10,
731,
14,
1947,
16,
1888,
4442,
34720,
793,
1706,
1386,
452,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
862,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312,
825,
793,
4,
692,
21969,
3589,
489,
691,
559,
10,
19,
1050,
263,
188,
187,
187,
731,
14,
547,
731,
724,
721,
1415,
1698,
16,
1933,
4685,
26,
435,
731,
347,
1013,
11,
188,
187,
187,
285,
547,
731,
724,
598,
869,
275,
188,
350,
187,
397,
869,
14,
3955,
16,
9610,
1706,
731,
724,
14,
312,
914,
10416,
377,
731,
9,
1334,
866,
188,
187,
187,
95,
188,
187,
187,
695,
1698,
16,
4572,
1199,
435,
883,
1716,
866,
188,
187,
187,
397,
1947,
16,
1888,
4442,
69,
825,
793,
10,
731,
399,
869,
188,
187,
888,
23736,
489,
312
] |
72,814 | package mysql
import (
"context"
"strconv"
"testing"
"ariga.io/atlas/sql/internal/sqltest"
"ariga.io/atlas/sql/migrate"
"ariga.io/atlas/sql/schema"
"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/require"
)
func TestMigrate_ApplyChanges(t *testing.T) {
migrate, mk, err := newMigrate("8.0.13")
require.NoError(t, err)
mk.ExpectExec(sqltest.Escape("CREATE DATABASE `test` CHARSET latin")).
WillReturnResult(sqlmock.NewResult(0, 1))
mk.ExpectExec(sqltest.Escape("DROP DATABASE `atlas`")).
WillReturnResult(sqlmock.NewResult(0, 1))
mk.ExpectExec(sqltest.Escape("DROP TABLE `users`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("DROP TABLE IF EXISTS `public`.`pets`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE IF NOT EXISTS `pets` (`a` int NOT NULL DEFAULT (int(rand())), `b` bigint NOT NULL DEFAULT 1, `c` bigint NULL, PRIMARY KEY (`a`, `b`), UNIQUE INDEX `b_c_unique` (`b`, `c`) COMMENT \"comment\")")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` DROP INDEX `id_spouse_id`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` ADD CONSTRAINT `spouse` FOREIGN KEY (`spouse_id`) REFERENCES `users` (`id`) ON DELETE SET NULL, ADD INDEX `id_spouse_id` (`spouse_id`, `id` DESC) COMMENT \"comment\"")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `posts` (`id` bigint NOT NULL, `author_id` bigint NULL, CONSTRAINT `author` FOREIGN KEY (`author_id`) REFERENCES `users` (`id`))")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `comments` (`id` bigint NOT NULL, `post_id` bigint NULL, CONSTRAINT `comment` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`))")).
WillReturnResult(sqlmock.NewResult(0, 0))
err = migrate.ApplyChanges(context.Background(), []schema.Change{
&schema.AddSchema{S: &schema.Schema{Name: "test", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
&schema.DropSchema{S: &schema.Schema{Name: "atlas", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
&schema.DropTable{T: &schema.Table{Name: "users"}},
&schema.DropTable{T: &schema.Table{Name: "pets", Schema: &schema.Schema{Name: "public"}}, Extra: []schema.Clause{&schema.IfExists{}}},
&schema.AddTable{
T: func() *schema.Table {
t := &schema.Table{
Name: "pets",
Columns: []*schema.Column{
{Name: "a", Type: &schema.ColumnType{Raw: "int", Type: &schema.IntegerType{T: "int"}}, Default: &schema.RawExpr{X: "(int(rand()))"}},
{Name: "b", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}, Default: &schema.Literal{V: "1"}},
{Name: "c", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
t.PrimaryKey = &schema.Index{
Parts: []*schema.IndexPart{{C: t.Columns[0]}, {C: t.Columns[1]}},
}
t.Indexes = []*schema.Index{
{Name: "b_c_unique", Unique: true, Parts: []*schema.IndexPart{{C: t.Columns[1]}, {C: t.Columns[2]}}, Attrs: []schema.Attr{&schema.Comment{Text: "comment"}}},
}
return t
}(),
Extra: []schema.Clause{
&schema.IfNotExists{},
},
},
})
require.NoError(t, err)
err = migrate.ApplyChanges(context.Background(), func() []schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "spouse_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
posts := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "author_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
posts.ForeignKeys = []*schema.ForeignKey{
{Symbol: "author", Table: posts, Columns: posts.Columns[1:], RefTable: users, RefColumns: users.Columns[:1]},
}
comments := &schema.Table{
Name: "comments",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "post_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
comments.ForeignKeys = []*schema.ForeignKey{
{Symbol: "comment", Table: comments, Columns: comments.Columns[1:], RefTable: posts, RefColumns: posts.Columns[:1]},
}
return []schema.Change{
&schema.AddTable{T: posts},
&schema.AddTable{T: comments},
&schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddForeignKey{
F: &schema.ForeignKey{
Symbol: "spouse",
Table: users,
Columns: users.Columns[1:],
RefTable: users,
RefColumns: users.Columns[:1],
OnDelete: "SET NULL",
},
},
&schema.ModifyIndex{
From: &schema.Index{Name: "id_spouse_id", Parts: []*schema.IndexPart{{C: users.Columns[0]}, {C: users.Columns[1]}}},
To: &schema.Index{
Name: "id_spouse_id",
Parts: []*schema.IndexPart{
{C: users.Columns[1]},
{C: users.Columns[0], Desc: true},
},
Attrs: []schema.Attr{
&schema.Comment{Text: "comment"},
},
},
},
},
},
}
}())
require.NoError(t, err)
}
func TestMigrate_DetachCycles(t *testing.T) {
migrate, mk, err := newMigrate("8.0.13")
require.NoError(t, err)
mk.ExpectExec(sqltest.Escape("CREATE TABLE `users` (`id` bigint NOT NULL, `workplace_id` bigint NULL)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `workplaces` (`id` bigint NOT NULL, `owner_id` bigint NULL)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` ADD CONSTRAINT `workplace` FOREIGN KEY (`workplace_id`) REFERENCES `workplaces` (`id`)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `workplaces` ADD CONSTRAINT `owner` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)")).
WillReturnResult(sqlmock.NewResult(0, 0))
err = migrate.ApplyChanges(context.Background(), func() []schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "workplace_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
workplaces := &schema.Table{
Name: "workplaces",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "owner_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
users.ForeignKeys = []*schema.ForeignKey{
{Symbol: "workplace", Table: users, Columns: users.Columns[1:], RefTable: workplaces, RefColumns: workplaces.Columns[:1]},
}
workplaces.ForeignKeys = []*schema.ForeignKey{
{Symbol: "owner", Table: workplaces, Columns: workplaces.Columns[1:], RefTable: users, RefColumns: users.Columns[:1]},
}
return []schema.Change{
&schema.AddTable{T: users},
&schema.AddTable{T: workplaces},
}
}())
require.NoError(t, err)
}
func TestPlanChanges(t *testing.T) {
tests := []struct {
version string
changes []schema.Change
wantPlan *migrate.Plan
wantErr bool
}{
{
changes: []schema.Change{
&schema.AddSchema{S: schema.New("test").SetCharset("utf8mb4"), Extra: []schema.Clause{&schema.IfNotExists{}}},
&schema.DropSchema{S: schema.New("test").SetCharset("utf8mb4"), Extra: []schema.Clause{&schema.IfExists{}}},
},
wantPlan: &migrate.Plan{
Reversible: false,
Changes: []*migrate.Change{
{
Cmd: "CREATE DATABASE IF NOT EXISTS `test` CHARSET utf8mb4",
Reverse: "DROP DATABASE `test`",
},
{
Cmd: "DROP DATABASE IF EXISTS `test`",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
{
Name: "name",
Type: &schema.ColumnType{Type: &schema.StringType{T: "varchar(255)"}},
Indexes: []*schema.Index{
schema.NewIndex("name_index").
AddParts(schema.NewColumnPart(schema.NewColumn("name"))),
},
}},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.DropIndex{
I: schema.NewIndex("name_index").
AddParts(schema.NewColumnPart(schema.NewColumn("name"))),
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` DROP INDEX `name_index`",
Reverse: "ALTER TABLE `users` ADD INDEX `name_index` (`name`)",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
pets := &schema.Table{
Name: "pets",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
{Name: "user_id",
Type: &schema.ColumnType{
Type: &schema.IntegerType{T: "bigint"},
},
},
},
}
fk := &schema.ForeignKey{
Symbol: "user_id",
Table: pets,
OnUpdate: schema.NoAction,
OnDelete: schema.Cascade,
RefTable: users,
Columns: []*schema.Column{pets.Columns[1]},
RefColumns: []*schema.Column{users.Columns[0]},
}
pets.ForeignKeys = []*schema.ForeignKey{fk}
return &schema.ModifyTable{
T: pets,
Changes: []schema.Change{
&schema.DropForeignKey{
F: fk,
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `pets` DROP FOREIGN KEY `user_id`",
Reverse: "ALTER TABLE `pets` ADD CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE",
},
},
},
},
{
changes: []schema.Change{
&schema.AddSchema{S: &schema.Schema{Name: "test", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE DATABASE `test` CHARSET latin", Reverse: "DROP DATABASE `test`"}},
},
},
{
changes: []schema.Change{
&schema.AddSchema{S: schema.New("test").SetCharset("utf8")},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE DATABASE `test`", Reverse: "DROP DATABASE `test`"}},
},
},
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("utf8"),
Changes: []schema.Change{
&schema.AddAttr{A: &schema.Charset{V: "utf8"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
},
},
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("latin1"),
Changes: []schema.Change{
&schema.AddAttr{A: &schema.Charset{V: "latin1"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "ALTER DATABASE `test` CHARSET latin1", Reverse: "ALTER DATABASE `test` CHARSET utf8"}},
},
},
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("utf8"),
Changes: []schema.Change{
&schema.ModifyAttr{From: &schema.Charset{V: "latin1"}, To: &schema.Charset{V: "utf8"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "ALTER DATABASE `test` CHARSET utf8", Reverse: "ALTER DATABASE `test` CHARSET latin1"}},
},
},
{
changes: []schema.Change{
&schema.DropSchema{S: &schema.Schema{Name: "atlas", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
},
wantPlan: &migrate.Plan{
Changes: []*migrate.Change{{Cmd: "DROP DATABASE `atlas`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
{Name: "uuid", Type: &schema.ColumnType{Type: &schema.StringType{T: "char", Size: 36}, Null: true}, Attrs: []schema.Attr{&schema.Charset{V: "utf8mb4"}, &schema.Collation{V: "utf8mb4_bin"}}},
},
}
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, `uuid` char(36) NULL CHARSET utf8mb4 COLLATE utf8mb4_bin, PRIMARY KEY (`id`))", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{V: 100}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
{Name: "ch", Type: &schema.ColumnType{Type: &schema.StringType{T: "char"}}},
},
Attrs: []schema.Attr{
&schema.Charset{V: "utf8mb4"},
&schema.Collation{V: "utf8mb4_bin"},
&schema.Comment{Text: "posts comment"},
&schema.Check{Name: "id_nonzero", Expr: "(`id` > 0)"},
&CreateOptions{V: `COMPRESSION="ZLIB"`},
},
Indexes: []*schema.Index{
{
Name: "text_prefix",
Parts: []*schema.IndexPart{
{Desc: true, Attrs: []schema.Attr{&SubPart{Len: 100}}},
},
},
},
}
t.Indexes[0].Parts[0].C = t.Columns[1]
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, `ch` char NOT NULL, PRIMARY KEY (`id`), INDEX `text_prefix` (`text` (100) DESC), CONSTRAINT `id_nonzero` CHECK (`id` > 0)) CHARSET utf8mb4 COLLATE utf8mb4_bin COMMENT \"posts comment\" COMPRESSION=\"ZLIB\" AUTO_INCREMENT 100", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
},
Attrs: []schema.Attr{&AutoIncrement{V: 10}},
}
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, PRIMARY KEY (`id`)) AUTO_INCREMENT 10", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
&schema.DropTable{T: &schema.Table{Name: "posts"}},
},
wantPlan: &migrate.Plan{
Changes: []*migrate.Change{{Cmd: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddColumn{
C: &schema.Column{Name: "name", Type: &schema.ColumnType{Type: &schema.StringType{T: "varchar(255)"}}},
},
&schema.AddIndex{
I: &schema.Index{
Name: "id_key",
Parts: []*schema.IndexPart{
{C: users.Columns[0]},
},
Attrs: []schema.Attr{
&schema.Comment{Text: "comment"},
&IndexType{T: IndexTypeHash},
},
},
},
&schema.AddCheck{
C: &schema.Check{
Name: "id_nonzero",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
&schema.ModifyAttr{
From: &AutoIncrement{V: 1},
To: &AutoIncrement{V: 1000},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ADD COLUMN `name` varchar(255) NOT NULL, ADD INDEX `id_key` USING HASH (`id`) COMMENT \"comment\", ADD CONSTRAINT `id_nonzero` CHECK (id > 0) ENFORCED, AUTO_INCREMENT 1000",
Reverse: "ALTER TABLE `users` DROP COLUMN `name`, DROP INDEX `id_key`, DROP CONSTRAINT `id_nonzero`, AUTO_INCREMENT 1",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := schema.NewTable("users").
AddColumns(schema.NewIntColumn("c1", "int"))
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddColumn{
C: schema.NewIntColumn("c2", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "c1*2"}),
},
&schema.AddColumn{
C: schema.NewIntColumn("c3", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "c1*c2", Type: "STORED"}),
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ADD COLUMN `c2` int AS (c1*2) NOT NULL, ADD COLUMN `c3` int AS (c1*c2) STORED NOT NULL",
Reverse: "ALTER TABLE `users` DROP COLUMN `c2`, DROP COLUMN `c3`",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.DropCheck{
C: &schema.Check{
Name: "id_nonzero",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` DROP CONSTRAINT `id_nonzero`",
Reverse: "ALTER TABLE `users` ADD CONSTRAINT `id_nonzero` CHECK (id > 0) ENFORCED",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.ModifyCheck{
From: &schema.Check{
Name: "check1",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
To: &schema.Check{
Name: "check1",
Expr: "(id > 0)",
},
},
&schema.ModifyCheck{
From: &schema.Check{
Name: "check2",
Expr: "(id > 0)",
},
To: &schema.Check{
Name: "check2",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
&schema.ModifyCheck{
From: &schema.Check{
Name: "check3",
Expr: "(id > 0)",
},
To: &schema.Check{
Name: "check3",
Expr: "(id >= 0)",
},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ALTER CHECK `check1` ENFORCED, ALTER CHECK `check2` NOT ENFORCED, DROP CHECK `check3`, ADD CONSTRAINT `check3` CHECK (id >= 0)",
Reverse: "ALTER TABLE `users` ALTER CHECK `check1` NOT ENFORCED, ALTER CHECK `check2` ENFORCED, DROP CHECK `check3`, ADD CONSTRAINT `check3` CHECK (id > 0)",
},
},
},
},
{
changes: []schema.Change{
&schema.AddTable{
T: schema.NewTable("users").AddColumns(schema.NewIntColumn("id", "bigint").SetCharset("utf8mb4")),
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.AddTable{
T: schema.NewTable("users").AddColumns(schema.NewIntColumn("id", "bigint").SetCollation("utf8mb4_general_ci")),
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c"),
To: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1"}),
},
},
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "VIRTUAL"}),
To: schema.NewColumn("c"),
},
},
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "VIRTUAL"}),
To: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
},
},
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewIntColumn("c", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
To: schema.NewIntColumn("c", "int"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` MODIFY COLUMN `c` int NOT NULL",
Reverse: "ALTER TABLE `users` MODIFY COLUMN `c` int AS (1) STORED NOT NULL",
},
},
},
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewIntColumn("c", "int"),
To: schema.NewIntColumn("c", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` MODIFY COLUMN `c` int AS (1) STORED NOT NULL",
Reverse: "ALTER TABLE `users` MODIFY COLUMN `c` int NOT NULL",
},
},
},
},
{
changes: []schema.Change{
&schema.RenameTable{
From: schema.NewTable("t1"),
To: schema.NewTable("t2"),
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "RENAME TABLE `t1` TO `t2`",
Reverse: "RENAME TABLE `t2` TO `t1`",
},
},
},
},
{
changes: []schema.Change{
&schema.RenameTable{
From: schema.NewTable("t1").SetSchema(schema.New("s1")),
To: schema.NewTable("t2").SetSchema(schema.New("s2")),
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "RENAME TABLE `s1`.`t1` TO `s2`.`t2`",
Reverse: "RENAME TABLE `s2`.`t2` TO `s1`.`t1`",
},
},
},
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameColumn{
From: schema.NewColumn("a"),
To: schema.NewColumn("b"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` RENAME COLUMN `a` TO `b`",
Reverse: "ALTER TABLE `s1`.`t1` RENAME COLUMN `b` TO `a`",
},
},
},
},
{
version: "5.6",
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameColumn{
From: schema.NewIntColumn("a", "int"),
To: schema.NewIntColumn("b", "int"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` CHANGE COLUMN `a` `b` int NOT NULL",
Reverse: "ALTER TABLE `s1`.`t1` CHANGE COLUMN `b` `a` int NOT NULL",
},
},
},
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameIndex{
From: schema.NewIndex("a"),
To: schema.NewIndex("b"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` RENAME INDEX `a` TO `b`",
Reverse: "ALTER TABLE `s1`.`t1` RENAME INDEX `b` TO `a`",
},
},
},
},
}
for i, tt := range tests {
t.Run(strconv.Itoa(i), func(t *testing.T) {
if tt.version == "" {
tt.version = "8.0.16"
}
db, _, err := newMigrate(tt.version)
require.NoError(t, err)
plan, err := db.PlanChanges(context.Background(), "wantPlan", tt.changes)
if tt.wantErr {
require.Error(t, err, "expect plan to fail")
return
}
require.NoError(t, err)
require.NotNil(t, plan)
require.Equal(t, tt.wantPlan.Reversible, plan.Reversible)
require.Equal(t, tt.wantPlan.Transactional, plan.Transactional)
require.Equal(t, len(tt.wantPlan.Changes), len(plan.Changes))
for i, c := range plan.Changes {
require.Equal(t, tt.wantPlan.Changes[i].Cmd, c.Cmd)
require.Equal(t, tt.wantPlan.Changes[i].Reverse, c.Reverse)
}
})
}
}
func newMigrate(version string) (migrate.PlanApplier, *mock, error) {
db, m, err := sqlmock.New()
if err != nil {
return nil, nil, err
}
mk := &mock{m}
mk.version(version)
drv, err := Open(db)
if err != nil {
return nil, nil, err
}
return drv, mk, nil
} | // Copyright 2021-present The Atlas Authors. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package mysql
import (
"context"
"strconv"
"testing"
"ariga.io/atlas/sql/internal/sqltest"
"ariga.io/atlas/sql/migrate"
"ariga.io/atlas/sql/schema"
"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/require"
)
func TestMigrate_ApplyChanges(t *testing.T) {
migrate, mk, err := newMigrate("8.0.13")
require.NoError(t, err)
mk.ExpectExec(sqltest.Escape("CREATE DATABASE `test` CHARSET latin")).
WillReturnResult(sqlmock.NewResult(0, 1))
mk.ExpectExec(sqltest.Escape("DROP DATABASE `atlas`")).
WillReturnResult(sqlmock.NewResult(0, 1))
mk.ExpectExec(sqltest.Escape("DROP TABLE `users`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("DROP TABLE IF EXISTS `public`.`pets`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE IF NOT EXISTS `pets` (`a` int NOT NULL DEFAULT (int(rand())), `b` bigint NOT NULL DEFAULT 1, `c` bigint NULL, PRIMARY KEY (`a`, `b`), UNIQUE INDEX `b_c_unique` (`b`, `c`) COMMENT \"comment\")")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` DROP INDEX `id_spouse_id`")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` ADD CONSTRAINT `spouse` FOREIGN KEY (`spouse_id`) REFERENCES `users` (`id`) ON DELETE SET NULL, ADD INDEX `id_spouse_id` (`spouse_id`, `id` DESC) COMMENT \"comment\"")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `posts` (`id` bigint NOT NULL, `author_id` bigint NULL, CONSTRAINT `author` FOREIGN KEY (`author_id`) REFERENCES `users` (`id`))")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `comments` (`id` bigint NOT NULL, `post_id` bigint NULL, CONSTRAINT `comment` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`))")).
WillReturnResult(sqlmock.NewResult(0, 0))
err = migrate.ApplyChanges(context.Background(), []schema.Change{
&schema.AddSchema{S: &schema.Schema{Name: "test", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
&schema.DropSchema{S: &schema.Schema{Name: "atlas", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
&schema.DropTable{T: &schema.Table{Name: "users"}},
&schema.DropTable{T: &schema.Table{Name: "pets", Schema: &schema.Schema{Name: "public"}}, Extra: []schema.Clause{&schema.IfExists{}}},
&schema.AddTable{
T: func() *schema.Table {
t := &schema.Table{
Name: "pets",
Columns: []*schema.Column{
{Name: "a", Type: &schema.ColumnType{Raw: "int", Type: &schema.IntegerType{T: "int"}}, Default: &schema.RawExpr{X: "(int(rand()))"}},
{Name: "b", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}, Default: &schema.Literal{V: "1"}},
{Name: "c", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
t.PrimaryKey = &schema.Index{
Parts: []*schema.IndexPart{{C: t.Columns[0]}, {C: t.Columns[1]}},
}
t.Indexes = []*schema.Index{
{Name: "b_c_unique", Unique: true, Parts: []*schema.IndexPart{{C: t.Columns[1]}, {C: t.Columns[2]}}, Attrs: []schema.Attr{&schema.Comment{Text: "comment"}}},
}
return t
}(),
Extra: []schema.Clause{
&schema.IfNotExists{},
},
},
})
require.NoError(t, err)
err = migrate.ApplyChanges(context.Background(), func() []schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "spouse_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
posts := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "author_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
posts.ForeignKeys = []*schema.ForeignKey{
{Symbol: "author", Table: posts, Columns: posts.Columns[1:], RefTable: users, RefColumns: users.Columns[:1]},
}
comments := &schema.Table{
Name: "comments",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "post_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
comments.ForeignKeys = []*schema.ForeignKey{
{Symbol: "comment", Table: comments, Columns: comments.Columns[1:], RefTable: posts, RefColumns: posts.Columns[:1]},
}
return []schema.Change{
&schema.AddTable{T: posts},
&schema.AddTable{T: comments},
&schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddForeignKey{
F: &schema.ForeignKey{
Symbol: "spouse",
Table: users,
Columns: users.Columns[1:],
RefTable: users,
RefColumns: users.Columns[:1],
OnDelete: "SET NULL",
},
},
&schema.ModifyIndex{
From: &schema.Index{Name: "id_spouse_id", Parts: []*schema.IndexPart{{C: users.Columns[0]}, {C: users.Columns[1]}}},
To: &schema.Index{
Name: "id_spouse_id",
Parts: []*schema.IndexPart{
{C: users.Columns[1]},
{C: users.Columns[0], Desc: true},
},
Attrs: []schema.Attr{
&schema.Comment{Text: "comment"},
},
},
},
},
},
}
}())
require.NoError(t, err)
}
func TestMigrate_DetachCycles(t *testing.T) {
migrate, mk, err := newMigrate("8.0.13")
require.NoError(t, err)
mk.ExpectExec(sqltest.Escape("CREATE TABLE `users` (`id` bigint NOT NULL, `workplace_id` bigint NULL)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("CREATE TABLE `workplaces` (`id` bigint NOT NULL, `owner_id` bigint NULL)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `users` ADD CONSTRAINT `workplace` FOREIGN KEY (`workplace_id`) REFERENCES `workplaces` (`id`)")).
WillReturnResult(sqlmock.NewResult(0, 0))
mk.ExpectExec(sqltest.Escape("ALTER TABLE `workplaces` ADD CONSTRAINT `owner` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)")).
WillReturnResult(sqlmock.NewResult(0, 0))
err = migrate.ApplyChanges(context.Background(), func() []schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "workplace_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
workplaces := &schema.Table{
Name: "workplaces",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}}},
{Name: "owner_id", Type: &schema.ColumnType{Raw: "bigint", Type: &schema.IntegerType{T: "bigint"}, Null: true}},
},
}
users.ForeignKeys = []*schema.ForeignKey{
{Symbol: "workplace", Table: users, Columns: users.Columns[1:], RefTable: workplaces, RefColumns: workplaces.Columns[:1]},
}
workplaces.ForeignKeys = []*schema.ForeignKey{
{Symbol: "owner", Table: workplaces, Columns: workplaces.Columns[1:], RefTable: users, RefColumns: users.Columns[:1]},
}
return []schema.Change{
&schema.AddTable{T: users},
&schema.AddTable{T: workplaces},
}
}())
require.NoError(t, err)
}
func TestPlanChanges(t *testing.T) {
tests := []struct {
version string
changes []schema.Change
wantPlan *migrate.Plan
wantErr bool
}{
{
changes: []schema.Change{
&schema.AddSchema{S: schema.New("test").SetCharset("utf8mb4"), Extra: []schema.Clause{&schema.IfNotExists{}}},
&schema.DropSchema{S: schema.New("test").SetCharset("utf8mb4"), Extra: []schema.Clause{&schema.IfExists{}}},
},
wantPlan: &migrate.Plan{
Reversible: false,
Changes: []*migrate.Change{
{
Cmd: "CREATE DATABASE IF NOT EXISTS `test` CHARSET utf8mb4",
Reverse: "DROP DATABASE `test`",
},
{
Cmd: "DROP DATABASE IF EXISTS `test`",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
{
Name: "name",
Type: &schema.ColumnType{Type: &schema.StringType{T: "varchar(255)"}},
Indexes: []*schema.Index{
schema.NewIndex("name_index").
AddParts(schema.NewColumnPart(schema.NewColumn("name"))),
},
}},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.DropIndex{
I: schema.NewIndex("name_index").
AddParts(schema.NewColumnPart(schema.NewColumn("name"))),
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` DROP INDEX `name_index`",
Reverse: "ALTER TABLE `users` ADD INDEX `name_index` (`name`)",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
pets := &schema.Table{
Name: "pets",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
{Name: "user_id",
Type: &schema.ColumnType{
Type: &schema.IntegerType{T: "bigint"},
},
},
},
}
fk := &schema.ForeignKey{
Symbol: "user_id",
Table: pets,
OnUpdate: schema.NoAction,
OnDelete: schema.Cascade,
RefTable: users,
Columns: []*schema.Column{pets.Columns[1]},
RefColumns: []*schema.Column{users.Columns[0]},
}
pets.ForeignKeys = []*schema.ForeignKey{fk}
return &schema.ModifyTable{
T: pets,
Changes: []schema.Change{
&schema.DropForeignKey{
F: fk,
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `pets` DROP FOREIGN KEY `user_id`",
Reverse: "ALTER TABLE `pets` ADD CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE",
},
},
},
},
{
changes: []schema.Change{
&schema.AddSchema{S: &schema.Schema{Name: "test", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE DATABASE `test` CHARSET latin", Reverse: "DROP DATABASE `test`"}},
},
},
// Default database charset can be omitted.
{
changes: []schema.Change{
&schema.AddSchema{S: schema.New("test").SetCharset("utf8")},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE DATABASE `test`", Reverse: "DROP DATABASE `test`"}},
},
},
// Add the default database charset on modify can be omitted.
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("utf8"),
Changes: []schema.Change{
&schema.AddAttr{A: &schema.Charset{V: "utf8"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
},
},
// Add custom charset.
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("latin1"),
Changes: []schema.Change{
&schema.AddAttr{A: &schema.Charset{V: "latin1"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "ALTER DATABASE `test` CHARSET latin1", Reverse: "ALTER DATABASE `test` CHARSET utf8"}},
},
},
// Modify charset.
{
changes: []schema.Change{
&schema.ModifySchema{
S: schema.New("test").SetCharset("utf8"),
Changes: []schema.Change{
&schema.ModifyAttr{From: &schema.Charset{V: "latin1"}, To: &schema.Charset{V: "utf8"}},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "ALTER DATABASE `test` CHARSET utf8", Reverse: "ALTER DATABASE `test` CHARSET latin1"}},
},
},
{
changes: []schema.Change{
&schema.DropSchema{S: &schema.Schema{Name: "atlas", Attrs: []schema.Attr{&schema.Charset{V: "latin"}}}},
},
wantPlan: &migrate.Plan{
Changes: []*migrate.Change{{Cmd: "DROP DATABASE `atlas`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
{Name: "uuid", Type: &schema.ColumnType{Type: &schema.StringType{T: "char", Size: 36}, Null: true}, Attrs: []schema.Attr{&schema.Charset{V: "utf8mb4"}, &schema.Collation{V: "utf8mb4_bin"}}},
},
}
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, `uuid` char(36) NULL CHARSET utf8mb4 COLLATE utf8mb4_bin, PRIMARY KEY (`id`))", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{V: 100}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
{Name: "ch", Type: &schema.ColumnType{Type: &schema.StringType{T: "char"}}},
},
Attrs: []schema.Attr{
&schema.Charset{V: "utf8mb4"},
&schema.Collation{V: "utf8mb4_bin"},
&schema.Comment{Text: "posts comment"},
&schema.Check{Name: "id_nonzero", Expr: "(`id` > 0)"},
&CreateOptions{V: `COMPRESSION="ZLIB"`},
},
Indexes: []*schema.Index{
{
Name: "text_prefix",
Parts: []*schema.IndexPart{
{Desc: true, Attrs: []schema.Attr{&SubPart{Len: 100}}},
},
},
},
}
t.Indexes[0].Parts[0].C = t.Columns[1]
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, `ch` char NOT NULL, PRIMARY KEY (`id`), INDEX `text_prefix` (`text` (100) DESC), CONSTRAINT `id_nonzero` CHECK (`id` > 0)) CHARSET utf8mb4 COLLATE utf8mb4_bin COMMENT \"posts comment\" COMPRESSION=\"ZLIB\" AUTO_INCREMENT 100", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() *schema.AddTable {
t := &schema.Table{
Name: "posts",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}, Attrs: []schema.Attr{&AutoIncrement{}}},
{Name: "text", Type: &schema.ColumnType{Type: &schema.StringType{T: "text"}, Null: true}},
},
Attrs: []schema.Attr{&AutoIncrement{V: 10}},
}
t.PrimaryKey = &schema.Index{Parts: []*schema.IndexPart{{C: t.Columns[0]}}}
return &schema.AddTable{T: t}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{{Cmd: "CREATE TABLE `posts` (`id` bigint NOT NULL AUTO_INCREMENT, `text` text NULL, PRIMARY KEY (`id`)) AUTO_INCREMENT 10", Reverse: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
&schema.DropTable{T: &schema.Table{Name: "posts"}},
},
wantPlan: &migrate.Plan{
Changes: []*migrate.Change{{Cmd: "DROP TABLE `posts`"}},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddColumn{
C: &schema.Column{Name: "name", Type: &schema.ColumnType{Type: &schema.StringType{T: "varchar(255)"}}},
},
&schema.AddIndex{
I: &schema.Index{
Name: "id_key",
Parts: []*schema.IndexPart{
{C: users.Columns[0]},
},
Attrs: []schema.Attr{
&schema.Comment{Text: "comment"},
&IndexType{T: IndexTypeHash},
},
},
},
&schema.AddCheck{
C: &schema.Check{
Name: "id_nonzero",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
&schema.ModifyAttr{
From: &AutoIncrement{V: 1},
To: &AutoIncrement{V: 1000},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ADD COLUMN `name` varchar(255) NOT NULL, ADD INDEX `id_key` USING HASH (`id`) COMMENT \"comment\", ADD CONSTRAINT `id_nonzero` CHECK (id > 0) ENFORCED, AUTO_INCREMENT 1000",
Reverse: "ALTER TABLE `users` DROP COLUMN `name`, DROP INDEX `id_key`, DROP CONSTRAINT `id_nonzero`, AUTO_INCREMENT 1",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := schema.NewTable("users").
AddColumns(schema.NewIntColumn("c1", "int"))
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.AddColumn{
C: schema.NewIntColumn("c2", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "c1*2"}),
},
&schema.AddColumn{
C: schema.NewIntColumn("c3", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "c1*c2", Type: "STORED"}),
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ADD COLUMN `c2` int AS (c1*2) NOT NULL, ADD COLUMN `c3` int AS (c1*c2) STORED NOT NULL",
Reverse: "ALTER TABLE `users` DROP COLUMN `c2`, DROP COLUMN `c3`",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.DropCheck{
C: &schema.Check{
Name: "id_nonzero",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` DROP CONSTRAINT `id_nonzero`",
Reverse: "ALTER TABLE `users` ADD CONSTRAINT `id_nonzero` CHECK (id > 0) ENFORCED",
},
},
},
},
{
changes: []schema.Change{
func() schema.Change {
users := &schema.Table{
Name: "users",
Columns: []*schema.Column{
{Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "bigint"}}},
},
}
return &schema.ModifyTable{
T: users,
Changes: []schema.Change{
&schema.ModifyCheck{
From: &schema.Check{
Name: "check1",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
To: &schema.Check{
Name: "check1",
Expr: "(id > 0)",
},
},
&schema.ModifyCheck{
From: &schema.Check{
Name: "check2",
Expr: "(id > 0)",
},
To: &schema.Check{
Name: "check2",
Expr: "(id > 0)",
Attrs: []schema.Attr{&Enforced{}},
},
},
&schema.ModifyCheck{
From: &schema.Check{
Name: "check3",
Expr: "(id > 0)",
},
To: &schema.Check{
Name: "check3",
Expr: "(id >= 0)",
},
},
},
}
}(),
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` ALTER CHECK `check1` ENFORCED, ALTER CHECK `check2` NOT ENFORCED, DROP CHECK `check3`, ADD CONSTRAINT `check3` CHECK (id >= 0)",
Reverse: "ALTER TABLE `users` ALTER CHECK `check1` NOT ENFORCED, ALTER CHECK `check2` ENFORCED, DROP CHECK `check3`, ADD CONSTRAINT `check3` CHECK (id > 0)",
},
},
},
},
{
changes: []schema.Change{
&schema.AddTable{
T: schema.NewTable("users").AddColumns(schema.NewIntColumn("id", "bigint").SetCharset("utf8mb4")),
},
},
wantErr: true,
},
{
changes: []schema.Change{
&schema.AddTable{
T: schema.NewTable("users").AddColumns(schema.NewIntColumn("id", "bigint").SetCollation("utf8mb4_general_ci")),
},
},
wantErr: true,
},
// Changing a regular column to a VIRTUAL generated column is not allowed.
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c"),
To: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1"}),
},
},
},
},
wantErr: true,
},
// Changing a VIRTUAL generated column to a regular column is not allowed.
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "VIRTUAL"}),
To: schema.NewColumn("c"),
},
},
},
},
wantErr: true,
},
// Changing the storage type of generated column is not allowed.
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "VIRTUAL"}),
To: schema.NewColumn("c").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
},
},
},
},
wantErr: true,
},
// Changing a STORED generated column to a regular column.
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewIntColumn("c", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
To: schema.NewIntColumn("c", "int"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` MODIFY COLUMN `c` int NOT NULL",
Reverse: "ALTER TABLE `users` MODIFY COLUMN `c` int AS (1) STORED NOT NULL",
},
},
},
},
// Changing a regular column to a STORED generated column.
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("users"),
Changes: []schema.Change{
&schema.ModifyColumn{
Change: schema.ChangeGenerated,
From: schema.NewIntColumn("c", "int"),
To: schema.NewIntColumn("c", "int").SetGeneratedExpr(&schema.GeneratedExpr{Expr: "1", Type: "STORED"}),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `users` MODIFY COLUMN `c` int AS (1) STORED NOT NULL",
Reverse: "ALTER TABLE `users` MODIFY COLUMN `c` int NOT NULL",
},
},
},
},
{
changes: []schema.Change{
&schema.RenameTable{
From: schema.NewTable("t1"),
To: schema.NewTable("t2"),
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "RENAME TABLE `t1` TO `t2`",
Reverse: "RENAME TABLE `t2` TO `t1`",
},
},
},
},
{
changes: []schema.Change{
&schema.RenameTable{
From: schema.NewTable("t1").SetSchema(schema.New("s1")),
To: schema.NewTable("t2").SetSchema(schema.New("s2")),
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "RENAME TABLE `s1`.`t1` TO `s2`.`t2`",
Reverse: "RENAME TABLE `s2`.`t2` TO `s1`.`t1`",
},
},
},
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameColumn{
From: schema.NewColumn("a"),
To: schema.NewColumn("b"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` RENAME COLUMN `a` TO `b`",
Reverse: "ALTER TABLE `s1`.`t1` RENAME COLUMN `b` TO `a`",
},
},
},
},
{
version: "5.6",
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameColumn{
From: schema.NewIntColumn("a", "int"),
To: schema.NewIntColumn("b", "int"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` CHANGE COLUMN `a` `b` int NOT NULL",
Reverse: "ALTER TABLE `s1`.`t1` CHANGE COLUMN `b` `a` int NOT NULL",
},
},
},
},
{
changes: []schema.Change{
&schema.ModifyTable{
T: schema.NewTable("t1").SetSchema(schema.New("s1")),
Changes: []schema.Change{
&schema.RenameIndex{
From: schema.NewIndex("a"),
To: schema.NewIndex("b"),
},
},
},
},
wantPlan: &migrate.Plan{
Reversible: true,
Changes: []*migrate.Change{
{
Cmd: "ALTER TABLE `s1`.`t1` RENAME INDEX `a` TO `b`",
Reverse: "ALTER TABLE `s1`.`t1` RENAME INDEX `b` TO `a`",
},
},
},
},
}
for i, tt := range tests {
t.Run(strconv.Itoa(i), func(t *testing.T) {
if tt.version == "" {
tt.version = "8.0.16"
}
db, _, err := newMigrate(tt.version)
require.NoError(t, err)
plan, err := db.PlanChanges(context.Background(), "wantPlan", tt.changes)
if tt.wantErr {
require.Error(t, err, "expect plan to fail")
return
}
require.NoError(t, err)
require.NotNil(t, plan)
require.Equal(t, tt.wantPlan.Reversible, plan.Reversible)
require.Equal(t, tt.wantPlan.Transactional, plan.Transactional)
require.Equal(t, len(tt.wantPlan.Changes), len(plan.Changes))
for i, c := range plan.Changes {
require.Equal(t, tt.wantPlan.Changes[i].Cmd, c.Cmd)
require.Equal(t, tt.wantPlan.Changes[i].Reverse, c.Reverse)
}
})
}
}
func newMigrate(version string) (migrate.PlanApplier, *mock, error) {
db, m, err := sqlmock.New()
if err != nil {
return nil, nil, err
}
mk := &mock{m}
mk.version(version)
drv, err := Open(db)
if err != nil {
return nil, nil, err
}
return drv, mk, nil
}
| [
5786,
15041,
188,
188,
4747,
280,
188,
187,
4,
1609,
4,
188,
187,
4,
20238,
4,
188,
187,
4,
4342,
4,
188,
188,
187,
4,
273,
19412,
16,
626,
17,
31575,
17,
4220,
17,
2664,
17,
4220,
1028,
4,
188,
187,
4,
273,
19412,
16,
626,
17,
31575,
17,
4220,
17,
24456,
4,
188,
187,
4,
273,
19412,
16,
626,
17,
31575,
17,
4220,
17,
5270,
4,
188,
188,
187,
4,
3140,
16,
817,
17,
1623,
15,
15385,
17,
2035,
15,
4220,
4790,
4,
188,
187,
4,
3140,
16,
817,
17,
39981,
17,
39815,
17,
3608,
4,
188,
11,
188,
188,
1857,
2214,
30317,
65,
5482,
11892,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
24456,
14,
10879,
14,
497,
721,
605,
30317,
435,
26,
16,
18,
16,
809,
866,
188,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
26313,
25200,
1083,
1028,
66,
13234,
1040,
9564,
248,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
352,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
11042,
26313,
25200,
1083,
31575,
66,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
352,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
11042,
13342,
1083,
8954,
66,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
11042,
13342,
6312,
44637,
1083,
1629,
38274,
6522,
85,
66,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
13342,
6312,
1751,
44637,
1083,
6522,
85,
66,
25054,
67,
66,
388,
1751,
827,
6147,
280,
291,
10,
6952,
30473,
1083,
68,
66,
48037,
1751,
827,
6147,
352,
14,
1083,
69,
66,
48037,
827,
14,
40888,
5578,
25054,
67,
3838,
1083,
68,
36840,
37590,
4982,
20812,
1083,
68,
65,
69,
65,
5590,
66,
25054,
68,
3838,
1083,
69,
12841,
42953,
4555,
5808,
32894,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
28751,
13342,
1083,
8954,
66,
31287,
20812,
1083,
311,
65,
540,
3832,
65,
311,
66,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
28751,
13342,
1083,
8954,
66,
12909,
1402,
20161,
1083,
540,
3832,
66,
448,
17175,
4481,
5578,
25054,
540,
3832,
65,
311,
12841,
49436,
53,
1083,
8954,
66,
25054,
311,
12841,
5385,
27710,
6146,
827,
14,
12909,
20812,
1083,
311,
65,
540,
3832,
65,
311,
66,
25054,
540,
3832,
65,
311,
3838,
1083,
311,
66,
18881,
11,
42953,
4555,
5808,
30334,
4518,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
13342,
1083,
20320,
66,
25054,
311,
66,
48037,
1751,
827,
14,
1083,
4002,
65,
311,
66,
48037,
827,
14,
1402,
20161,
1083,
4002,
66,
448,
17175,
4481,
5578,
25054,
4002,
65,
311,
12841,
49436,
53,
1083,
8954,
66,
25054,
311,
66,
452,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
13342,
1083,
15221,
66,
25054,
311,
66,
48037,
1751,
827,
14,
1083,
2851,
65,
311,
66,
48037,
827,
14,
1402,
20161,
1083,
5808,
66,
448,
17175,
4481,
5578,
25054,
2851,
65,
311,
12841,
49436,
53,
1083,
20320,
66,
25054,
311,
66,
452,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
379,
260,
33154,
16,
5482,
11892,
10,
1609,
16,
7404,
833,
1397,
5270,
16,
3760,
93,
188,
187,
187,
8,
5270,
16,
1320,
3894,
93,
53,
28,
396,
5270,
16,
3894,
93,
613,
28,
312,
1028,
347,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
20585,
93,
56,
28,
312,
29547,
23733,
2598,
188,
187,
187,
8,
5270,
16,
8465,
3894,
93,
53,
28,
396,
5270,
16,
3894,
93,
613,
28,
312,
31575,
347,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
20585,
93,
56,
28,
312,
29547,
23733,
2598,
188,
187,
187,
8,
5270,
16,
8465,
1930,
93,
54,
28,
396,
5270,
16,
1930,
93,
613,
28,
312,
8954,
13511,
188,
187,
187,
8,
5270,
16,
8465,
1930,
93,
54,
28,
396,
5270,
16,
1930,
93,
613,
28,
312,
6522,
85,
347,
12819,
28,
396,
5270,
16,
3894,
93,
613,
28,
312,
1629,
13511,
20954,
28,
1397,
5270,
16,
9139,
33744,
5270,
16,
4142,
7670,
93,
13349,
188,
187,
187,
8,
5270,
16,
1320,
1930,
93,
188,
350,
187,
54,
28,
830,
336,
258,
5270,
16,
1930,
275,
188,
2054,
187,
86,
721,
396,
5270,
16,
1930,
93,
188,
1263,
187,
613,
28,
312,
6522,
85,
347,
188,
1263,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
5520,
187,
93,
613,
28,
312,
67,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
291,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
291,
13511,
4055,
28,
396,
5270,
16,
5117,
4205,
93,
58,
28,
9876,
291,
10,
6952,
5037,
13511,
188,
5520,
187,
93,
613,
28,
312,
68,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
13511,
4055,
28,
396,
5270,
16,
7328,
93,
56,
28,
312,
19,
13511,
188,
5520,
187,
93,
613,
28,
312,
69,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
1263,
187,
519,
188,
2054,
187,
95,
188,
2054,
187,
86,
16,
26792,
260,
396,
5270,
16,
1132,
93,
188,
1263,
187,
13758,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
18,
15175,
275,
37,
28,
255,
16,
8578,
61,
19,
63,
2598,
188,
2054,
187,
95,
188,
2054,
187,
86,
16,
16583,
260,
8112,
5270,
16,
1132,
93,
188,
1263,
187,
93,
613,
28,
312,
68,
65,
69,
65,
5590,
347,
21218,
28,
868,
14,
7472,
85,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
19,
15175,
275,
37,
28,
255,
16,
8578,
61,
20,
63,
2598,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
6676,
93,
1388,
28,
312,
5808,
4,
13349,
188,
2054,
187,
95,
188,
2054,
187,
397,
255,
188,
350,
187,
95,
833,
188,
350,
187,
9727,
28,
1397,
5270,
16,
9139,
93,
188,
2054,
187,
8,
5270,
16,
30839,
7670,
4364,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
1436,
188,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
379,
260,
33154,
16,
5482,
11892,
10,
1609,
16,
7404,
833,
830,
336,
1397,
5270,
16,
3760,
275,
188,
187,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
350,
187,
613,
28,
312,
8954,
347,
188,
350,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
2054,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
2054,
187,
93,
613,
28,
312,
540,
3832,
65,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
187,
20320,
721,
396,
5270,
16,
1930,
93,
188,
350,
187,
613,
28,
312,
20320,
347,
188,
350,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
2054,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
2054,
187,
93,
613,
28,
312,
4002,
65,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
187,
20320,
16,
19095,
5118,
260,
8112,
5270,
16,
26728,
93,
188,
350,
187,
93,
4576,
28,
312,
4002,
347,
7118,
28,
35055,
14,
44019,
28,
35055,
16,
8578,
61,
19,
12653,
8786,
1930,
28,
7727,
14,
8786,
8578,
28,
7727,
16,
8578,
3872,
19,
15175,
188,
187,
187,
95,
188,
187,
187,
15221,
721,
396,
5270,
16,
1930,
93,
188,
350,
187,
613,
28,
312,
15221,
347,
188,
350,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
2054,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
2054,
187,
93,
613,
28,
312,
2851,
65,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
187,
15221,
16,
19095,
5118,
260,
8112,
5270,
16,
26728,
93,
188,
350,
187,
93,
4576,
28,
312,
5808,
347,
7118,
28,
12950,
14,
44019,
28,
12950,
16,
8578,
61,
19,
12653,
8786,
1930,
28,
35055,
14,
8786,
8578,
28,
35055,
16,
8578,
3872,
19,
15175,
188,
187,
187,
95,
188,
187,
187,
397,
1397,
5270,
16,
3760,
93,
188,
350,
187,
8,
5270,
16,
1320,
1930,
93,
54,
28,
35055,
519,
188,
350,
187,
8,
5270,
16,
1320,
1930,
93,
54,
28,
12950,
519,
188,
350,
187,
8,
5270,
16,
13821,
1930,
93,
188,
2054,
187,
54,
28,
7727,
14,
188,
2054,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
1263,
187,
8,
5270,
16,
1320,
26728,
93,
188,
5520,
187,
40,
28,
396,
5270,
16,
26728,
93,
188,
8446,
187,
4576,
28,
209,
209,
209,
209,
312,
540,
3832,
347,
188,
8446,
187,
1930,
28,
209,
209,
209,
209,
209,
7727,
14,
188,
8446,
187,
8578,
28,
209,
209,
209,
7727,
16,
8578,
61,
19,
12653,
188,
8446,
187,
1990,
1930,
28,
209,
209,
7727,
14,
188,
8446,
187,
1990,
8578,
28,
7727,
16,
8578,
3872,
19,
630,
188,
8446,
187,
1887,
3593,
28,
209,
209,
312,
1040,
827,
347,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
1263,
187,
8,
5270,
16,
13821,
1132,
93,
188,
5520,
187,
1699,
28,
396,
5270,
16,
1132,
93,
613,
28,
312,
311,
65,
540,
3832,
65,
311,
347,
7472,
85,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
7727,
16,
8578,
61,
18,
15175,
275,
37,
28,
7727,
16,
8578,
61,
19,
63,
13349,
188,
5520,
187,
805,
28,
396,
5270,
16,
1132,
93,
188,
8446,
187,
613,
28,
312,
311,
65,
540,
3832,
65,
311,
347,
188,
8446,
187,
13758,
28,
8112,
5270,
16,
1132,
3052,
93,
188,
11137,
187,
93,
37,
28,
7727,
16,
8578,
61,
19,
15175,
188,
11137,
187,
93,
37,
28,
7727,
16,
8578,
61,
18,
630,
3947,
28,
868,
519,
188,
8446,
187,
519,
188,
8446,
187,
15270,
28,
1397,
5270,
16,
3896,
93,
188,
11137,
187,
8,
5270,
16,
6676,
93,
1388,
28,
312,
5808,
1782,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
95,
1202,
188,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
95,
188,
188,
1857,
2214,
30317,
65,
27578,
32734,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
24456,
14,
10879,
14,
497,
721,
605,
30317,
435,
26,
16,
18,
16,
809,
866,
188,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
13342,
1083,
8954,
66,
25054,
311,
66,
48037,
1751,
827,
14,
1083,
1240,
2123,
65,
311,
66,
48037,
827,
11,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
7305,
13342,
1083,
1240,
30674,
66,
25054,
311,
66,
48037,
1751,
827,
14,
1083,
5001,
65,
311,
66,
48037,
827,
11,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
28751,
13342,
1083,
8954,
66,
12909,
1402,
20161,
1083,
1240,
2123,
66,
448,
17175,
4481,
5578,
25054,
1240,
2123,
65,
311,
12841,
49436,
53,
1083,
1240,
30674,
66,
25054,
311,
12841,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
7489,
16,
9153,
9503,
10,
4220,
1028,
16,
14720,
435,
28751,
13342,
1083,
1240,
30674,
66,
12909,
1402,
20161,
1083,
5001,
66,
448,
17175,
4481,
5578,
25054,
5001,
65,
311,
12841,
49436,
53,
1083,
8954,
66,
25054,
311,
12841,
15616,
188,
187,
187,
17156,
3499,
1658,
10,
4220,
4790,
16,
1888,
1658,
10,
18,
14,
257,
452,
188,
187,
379,
260,
33154,
16,
5482,
11892,
10,
1609,
16,
7404,
833,
830,
336,
1397,
5270,
16,
3760,
275,
188,
187,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
350,
187,
613,
28,
312,
8954,
347,
188,
350,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
2054,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
2054,
187,
93,
613,
28,
312,
1240,
2123,
65,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
187,
1240,
30674,
721,
396,
5270,
16,
1930,
93,
188,
350,
187,
613,
28,
312,
1240,
30674,
347,
188,
350,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
2054,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
2054,
187,
93,
613,
28,
312,
5001,
65,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
5117,
28,
312,
45930,
347,
2962,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
9433,
28,
868,
2598,
188,
350,
187,
519,
188,
187,
187,
95,
188,
187,
187,
8954,
16,
19095,
5118,
260,
8112,
5270,
16,
26728,
93,
188,
350,
187,
93,
4576,
28,
312,
1240,
2123,
347,
7118,
28,
7727,
14,
44019,
28,
7727,
16,
8578,
61,
19,
12653,
8786,
1930,
28,
2190,
30674,
14,
8786,
8578,
28,
2190,
30674,
16,
8578,
3872,
19,
15175,
188,
187,
187,
95,
188,
187,
187,
1240,
30674,
16,
19095,
5118,
260,
8112,
5270,
16,
26728,
93,
188,
350,
187,
93,
4576,
28,
312,
5001,
347,
7118,
28,
2190,
30674,
14,
44019,
28,
2190,
30674,
16,
8578,
61,
19,
12653,
8786,
1930,
28,
7727,
14,
8786,
8578,
28,
7727,
16,
8578,
3872,
19,
15175,
188,
187,
187,
95,
188,
187,
187,
397,
1397,
5270,
16,
3760,
93,
188,
350,
187,
8,
5270,
16,
1320,
1930,
93,
54,
28,
7727,
519,
188,
350,
187,
8,
5270,
16,
1320,
1930,
93,
54,
28,
2190,
30674,
519,
188,
187,
187,
95,
188,
187,
95,
1202,
188,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
95,
188,
188,
1857,
2214,
8049,
11892,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
187,
7844,
721,
1397,
393,
275,
188,
187,
187,
1814,
209,
776,
188,
187,
187,
14492,
209,
1397,
5270,
16,
3760,
188,
187,
187,
9267,
8049,
258,
24456,
16,
8049,
188,
187,
187,
9267,
724,
209,
1019,
188,
187,
12508,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
1320,
3894,
93,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
4624,
26,
1169,
22,
1557,
20954,
28,
1397,
5270,
16,
9139,
33744,
5270,
16,
30839,
7670,
93,
13349,
188,
2054,
187,
8,
5270,
16,
8465,
3894,
93,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
4624,
26,
1169,
22,
1557,
20954,
28,
1397,
5270,
16,
9139,
33744,
5270,
16,
4142,
7670,
93,
13349,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
893,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
7305,
26313,
25200,
6312,
1751,
44637,
1083,
1028,
66,
13234,
1040,
10244,
26,
1169,
22,
347,
188,
5520,
187,
16840,
28,
312,
11042,
26313,
25200,
1083,
1028,
66,
347,
188,
1263,
187,
519,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
312,
11042,
26313,
25200,
6312,
44637,
1083,
1028,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
312,
579,
347,
188,
11137,
187,
563,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
47667,
10,
3978,
8077,
2598,
188,
11137,
187,
16583,
28,
8112,
5270,
16,
1132,
93,
188,
6954,
187,
5270,
16,
1888,
1132,
435,
579,
65,
1126,
3101,
188,
25772,
187,
1320,
13758,
10,
5270,
16,
1888,
2899,
3052,
10,
5270,
16,
1888,
2899,
435,
579,
2646,
399,
188,
11137,
187,
519,
188,
8446,
187,
2598,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
8465,
1132,
93,
188,
11137,
187,
43,
28,
6164,
16,
1888,
1132,
435,
579,
65,
1126,
3101,
188,
6954,
187,
1320,
13758,
10,
5270,
16,
1888,
2899,
3052,
10,
5270,
16,
1888,
2899,
435,
579,
2646,
399,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
31287,
20812,
1083,
579,
65,
1126,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
12909,
20812,
1083,
579,
65,
1126,
66,
25054,
579,
66,
4395,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
6522,
85,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
6522,
85,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
8446,
187,
93,
613,
28,
312,
1508,
65,
311,
347,
188,
11137,
187,
563,
28,
396,
5270,
16,
2899,
563,
93,
188,
6954,
187,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
1782,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
27246,
721,
396,
5270,
16,
26728,
93,
188,
5520,
187,
4576,
28,
209,
209,
209,
209,
312,
1508,
65,
311,
347,
188,
5520,
187,
1930,
28,
209,
209,
209,
209,
209,
289,
7198,
14,
188,
5520,
187,
1887,
2574,
28,
209,
209,
6164,
16,
2487,
2271,
14,
188,
5520,
187,
1887,
3593,
28,
209,
209,
6164,
16,
37064,
14,
188,
5520,
187,
1990,
1930,
28,
209,
209,
7727,
14,
188,
5520,
187,
8578,
28,
209,
209,
209,
8112,
5270,
16,
2899,
93,
6522,
85,
16,
8578,
61,
19,
15175,
188,
5520,
187,
1990,
8578,
28,
8112,
5270,
16,
2899,
93,
8954,
16,
8578,
61,
18,
15175,
188,
1263,
187,
95,
188,
1263,
187,
6522,
85,
16,
19095,
5118,
260,
8112,
5270,
16,
26728,
93,
27246,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
289,
7198,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
8465,
26728,
93,
188,
11137,
187,
40,
28,
282,
77,
14,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
6522,
85,
66,
31287,
448,
17175,
4481,
5578,
1083,
1508,
65,
311,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
6522,
85,
66,
12909,
1402,
20161,
1083,
1508,
65,
311,
66,
448,
17175,
4481,
5578,
25054,
1508,
65,
311,
12841,
49436,
53,
1083,
8954,
66,
25054,
311,
12841,
5385,
23660,
3461,
7949,
5385,
27710,
35407,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
1320,
3894,
93,
53,
28,
396,
5270,
16,
3894,
93,
613,
28,
312,
1028,
347,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
20585,
93,
56,
28,
312,
29547,
23733,
2598,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
26313,
25200,
1083,
1028,
66,
13234,
1040,
9564,
248,
347,
26269,
28,
312,
11042,
26313,
25200,
1083,
1028,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
1320,
3894,
93,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
4624,
26,
10987,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
26313,
25200,
1083,
1028,
66,
347,
26269,
28,
312,
11042,
26313,
25200,
1083,
1028,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
3894,
93,
188,
1263,
187,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
4624,
26,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
1320,
3896,
93,
35,
28,
396,
5270,
16,
20585,
93,
56,
28,
312,
4624,
26,
13511,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
350,
187,
519,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
3894,
93,
188,
1263,
187,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
29547,
19,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
1320,
3896,
93,
35,
28,
396,
5270,
16,
20585,
93,
56,
28,
312,
29547,
19,
13511,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
28751,
26313,
25200,
1083,
1028,
66,
13234,
1040,
9564,
248,
19,
347,
26269,
28,
312,
28751,
26313,
25200,
1083,
1028,
66,
13234,
1040,
10244,
26,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
3894,
93,
188,
1263,
187,
53,
28,
6164,
16,
1888,
435,
1028,
3101,
853,
20585,
435,
4624,
26,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
3896,
93,
1699,
28,
396,
5270,
16,
20585,
93,
56,
28,
312,
29547,
19,
1782,
3481,
28,
396,
5270,
16,
20585,
93,
56,
28,
312,
4624,
26,
13511,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
28751,
26313,
25200,
1083,
1028,
66,
13234,
1040,
10244,
26,
347,
26269,
28,
312,
28751,
26313,
25200,
1083,
1028,
66,
13234,
1040,
9564,
248,
19,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
8465,
3894,
93,
53,
28,
396,
5270,
16,
3894,
93,
613,
28,
312,
31575,
347,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
20585,
93,
56,
28,
312,
29547,
23733,
2598,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
11042,
26313,
25200,
1083,
31575,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
258,
5270,
16,
1320,
1930,
275,
188,
1263,
187,
86,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
20320,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
13511,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
13349,
188,
8446,
187,
93,
613,
28,
312,
615,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
615,
1782,
9433,
28,
868,
2598,
188,
8446,
187,
93,
613,
28,
312,
7666,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
1205,
347,
5182,
28,
7471,
519,
9433,
28,
868,
519,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
5270,
16,
20585,
93,
56,
28,
312,
4624,
26,
1169,
22,
1782,
396,
5270,
16,
37481,
93,
56,
28,
312,
4624,
26,
1169,
22,
65,
4247,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
86,
16,
26792,
260,
396,
5270,
16,
1132,
93,
13758,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
18,
63,
25193,
188,
1263,
187,
397,
396,
5270,
16,
1320,
1930,
93,
54,
28,
255,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
13342,
1083,
20320,
66,
25054,
311,
66,
48037,
1751,
827,
17730,
65,
23739,
14,
1083,
615,
66,
2248,
827,
14,
1083,
7666,
66,
836,
10,
1363,
11,
827,
13234,
1040,
10244,
26,
1169,
22,
8512,
34442,
10244,
26,
1169,
22,
65,
4247,
14,
40888,
5578,
25054,
311,
66,
39519,
26269,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
258,
5270,
16,
1320,
1930,
275,
188,
1263,
187,
86,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
20320,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
13511,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
56,
28,
3449,
13349,
188,
8446,
187,
93,
613,
28,
312,
615,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
615,
1782,
9433,
28,
868,
2598,
188,
8446,
187,
93,
613,
28,
312,
373,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
1205,
4,
13349,
188,
5520,
187,
519,
188,
5520,
187,
15270,
28,
1397,
5270,
16,
3896,
93,
188,
8446,
187,
8,
5270,
16,
20585,
93,
56,
28,
312,
4624,
26,
1169,
22,
1782,
188,
8446,
187,
8,
5270,
16,
37481,
93,
56,
28,
312,
4624,
26,
1169,
22,
65,
4247,
1782,
188,
8446,
187,
8,
5270,
16,
6676,
93,
1388,
28,
312,
20320,
7112,
1782,
188,
8446,
187,
8,
5270,
16,
2435,
93,
613,
28,
312,
311,
65,
38508,
347,
10618,
28,
312,
7609,
311,
66,
609,
257,
22804,
188,
8446,
187,
8,
36897,
93,
56,
28,
1083,
25309,
1006,
39205,
2537,
519,
188,
5520,
187,
519,
188,
5520,
187,
16583,
28,
8112,
5270,
16,
1132,
93,
188,
8446,
187,
93,
188,
11137,
187,
613,
28,
312,
615,
65,
4348,
347,
188,
11137,
187,
13758,
28,
8112,
5270,
16,
1132,
3052,
93,
188,
6954,
187,
93,
1625,
28,
868,
14,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
2032,
3052,
93,
1300,
28,
3449,
13349,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
86,
16,
16583,
61,
18,
913,
13758,
61,
18,
913,
37,
260,
255,
16,
8578,
61,
19,
63,
188,
1263,
187,
86,
16,
26792,
260,
396,
5270,
16,
1132,
93,
13758,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
18,
63,
25193,
188,
1263,
187,
397,
396,
5270,
16,
1320,
1930,
93,
54,
28,
255,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
13342,
1083,
20320,
66,
25054,
311,
66,
48037,
1751,
827,
17730,
65,
23739,
14,
1083,
615,
66,
2248,
827,
14,
1083,
373,
66,
836,
1751,
827,
14,
40888,
5578,
25054,
311,
36840,
20812,
1083,
615,
65,
4348,
66,
25054,
615,
66,
280,
1801,
11,
18881,
399,
1402,
20161,
1083,
311,
65,
38508,
66,
3045,
25054,
311,
66,
609,
257,
452,
13234,
1040,
10244,
26,
1169,
22,
8512,
34442,
10244,
26,
1169,
22,
65,
4247,
42953,
4555,
20320,
7112,
2075,
7356,
26532,
6867,
39205,
2075,
17730,
65,
23739,
3449,
347,
26269,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
258,
5270,
16,
1320,
1930,
275,
188,
1263,
187,
86,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
20320,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
13511,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
13349,
188,
8446,
187,
93,
613,
28,
312,
615,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
615,
1782,
9433,
28,
868,
2598,
188,
5520,
187,
519,
188,
5520,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
56,
28,
1639,
2598,
188,
1263,
187,
95,
188,
1263,
187,
86,
16,
26792,
260,
396,
5270,
16,
1132,
93,
13758,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
18,
63,
25193,
188,
1263,
187,
397,
396,
5270,
16,
1320,
1930,
93,
54,
28,
255,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
13342,
1083,
20320,
66,
25054,
311,
66,
48037,
1751,
827,
17730,
65,
23739,
14,
1083,
615,
66,
2248,
827,
14,
40888,
5578,
25054,
311,
66,
452,
17730,
65,
23739,
1639,
347,
26269,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
8465,
1930,
93,
54,
28,
396,
5270,
16,
1930,
93,
613,
28,
312,
20320,
13511,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2899,
93,
613,
28,
312,
579,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
47667,
10,
3978,
8077,
13349,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
1132,
93,
188,
11137,
187,
43,
28,
396,
5270,
16,
1132,
93,
188,
6954,
187,
613,
28,
312,
311,
65,
689,
347,
188,
6954,
187,
13758,
28,
8112,
5270,
16,
1132,
3052,
93,
188,
25772,
187,
93,
37,
28,
7727,
16,
8578,
61,
18,
15175,
188,
6954,
187,
519,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
93,
188,
25772,
187,
8,
5270,
16,
6676,
93,
1388,
28,
312,
5808,
1782,
188,
25772,
187,
8,
42747,
93,
54,
28,
36692,
3199,
519,
188,
6954,
187,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
2435,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
311,
65,
38508,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
3896,
93,
188,
11137,
187,
1699,
28,
396,
4839,
13761,
93,
56,
28,
352,
519,
188,
11137,
187,
805,
28,
209,
209,
396,
4839,
13761,
93,
56,
28,
5261,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
12909,
30201,
1083,
579,
66,
46184,
10,
3978,
11,
1751,
827,
14,
12909,
20812,
1083,
311,
65,
689,
66,
41957,
14822,
25054,
311,
12841,
42953,
4555,
5808,
6876,
12909,
1402,
20161,
1083,
311,
65,
38508,
66,
3045,
280,
311,
609,
257,
11,
5802,
35019,
14,
17730,
65,
23739,
5261,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
31287,
30201,
1083,
579,
3838,
31287,
20812,
1083,
311,
65,
689,
3838,
31287,
1402,
20161,
1083,
311,
65,
38508,
3838,
17730,
65,
23739,
352,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
6164,
16,
1888,
1930,
435,
8954,
3101,
188,
5520,
187,
1320,
8578,
10,
5270,
16,
36892,
2899,
435,
69,
19,
347,
312,
291,
2646,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
6164,
16,
36892,
2899,
435,
69,
20,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
69,
19,
12,
20,
29750,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
6164,
16,
36892,
2899,
435,
69,
21,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
69,
19,
12,
69,
20,
347,
2962,
28,
312,
6798,
5951,
29750,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
12909,
30201,
1083,
69,
20,
66,
388,
7788,
280,
69,
19,
12,
20,
11,
1751,
827,
14,
12909,
30201,
1083,
69,
21,
66,
388,
7788,
280,
69,
19,
12,
69,
20,
11,
26957,
5951,
1751,
827,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
31287,
30201,
1083,
69,
20,
3838,
31287,
30201,
1083,
69,
21,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
8465,
2435,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
311,
65,
38508,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
31287,
1402,
20161,
1083,
311,
65,
38508,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
12909,
1402,
20161,
1083,
311,
65,
38508,
66,
3045,
280,
311,
609,
257,
11,
5802,
35019,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
1798,
19,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
19,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
20,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
1798,
20,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
21,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
21,
347,
188,
6954,
187,
4205,
28,
9876,
311,
1474,
257,
4395,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
10439,
3045,
1083,
1798,
19,
66,
5802,
35019,
14,
10439,
3045,
1083,
1798,
20,
66,
1751,
5802,
35019,
14,
31287,
3045,
1083,
1798,
21,
3838,
12909,
1402,
20161,
1083,
1798,
21,
66,
3045,
280,
311,
1474,
257,
4395,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
10439,
3045,
1083,
1798,
19,
66,
1751,
5802,
35019,
14,
10439,
3045,
1083,
1798,
20,
66,
5802,
35019,
14,
31287,
3045,
1083,
1798,
21,
3838,
12909,
1402,
20161,
1083,
1798,
21,
66,
3045,
280,
311,
609,
257,
4395,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
1320,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
3101,
1320,
8578,
10,
5270,
16,
36892,
2899,
435,
311,
347,
312,
45930,
3101,
853,
20585,
435,
4624,
26,
1169,
22,
10483,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
724,
28,
868,
14,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
1320,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
3101,
1320,
8578,
10,
5270,
16,
36892,
2899,
435,
311,
347,
312,
45930,
3101,
853,
37481,
435,
4624,
26,
1169,
22,
65,
12409,
65,
1709,
10483,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
724,
28,
868,
14,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
2899,
93,
188,
8446,
187,
3760,
28,
6164,
16,
3760,
3641,
14,
188,
8446,
187,
1699,
28,
209,
209,
6164,
16,
1888,
2899,
435,
69,
1557,
188,
8446,
187,
805,
28,
209,
209,
209,
209,
6164,
16,
1888,
2899,
435,
69,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
29750,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
724,
28,
868,
14,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
2899,
93,
188,
8446,
187,
3760,
28,
6164,
16,
3760,
3641,
14,
188,
8446,
187,
1699,
28,
209,
209,
6164,
16,
1888,
2899,
435,
69,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
347,
2962,
28,
312,
17537,
29750,
188,
8446,
187,
805,
28,
209,
209,
209,
209,
6164,
16,
1888,
2899,
435,
69,
1557,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
724,
28,
868,
14,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
2899,
93,
188,
8446,
187,
3760,
28,
6164,
16,
3760,
3641,
14,
188,
8446,
187,
1699,
28,
209,
209,
6164,
16,
1888,
2899,
435,
69,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
347,
2962,
28,
312,
17537,
29750,
188,
8446,
187,
805,
28,
209,
209,
209,
209,
6164,
16,
1888,
2899,
435,
69,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
347,
2962,
28,
312,
6798,
5951,
29750,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
724,
28,
868,
14,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
2899,
93,
188,
8446,
187,
3760,
28,
6164,
16,
3760,
3641,
14,
188,
8446,
187,
1699,
28,
209,
209,
6164,
16,
36892,
2899,
435,
69,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
347,
2962,
28,
312,
6798,
5951,
29750,
188,
8446,
187,
805,
28,
209,
209,
209,
209,
6164,
16,
36892,
2899,
435,
69,
347,
312,
291,
1557,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
17990,
30201,
1083,
69,
66,
388,
1751,
827,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
17990,
30201,
1083,
69,
66,
388,
7788,
280,
19,
11,
26957,
5951,
1751,
827,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
8954,
1557,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
13821,
2899,
93,
188,
8446,
187,
3760,
28,
6164,
16,
3760,
3641,
14,
188,
8446,
187,
1699,
28,
209,
209,
6164,
16,
36892,
2899,
435,
69,
347,
312,
291,
1557,
188,
8446,
187,
805,
28,
209,
209,
209,
209,
6164,
16,
36892,
2899,
435,
69,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
19,
347,
2962,
28,
312,
6798,
5951,
29750,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
17990,
30201,
1083,
69,
66,
388,
7788,
280,
19,
11,
26957,
5951,
1751,
827,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
17990,
30201,
1083,
69,
66,
388,
1751,
827,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
21323,
1930,
93,
188,
1263,
187,
1699,
28,
6164,
16,
1888,
1930,
435,
86,
19,
1557,
188,
1263,
187,
805,
28,
209,
209,
6164,
16,
1888,
1930,
435,
86,
20,
1557,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
16242,
13342,
1083,
86,
19,
66,
2524,
1083,
86,
20,
66,
347,
188,
5520,
187,
16840,
28,
312,
16242,
13342,
1083,
86,
20,
66,
2524,
1083,
86,
19,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
21323,
1930,
93,
188,
1263,
187,
1699,
28,
6164,
16,
1888,
1930,
435,
86,
19,
3101,
853,
3894,
10,
5270,
16,
1888,
435,
85,
19,
10483,
188,
1263,
187,
805,
28,
209,
209,
6164,
16,
1888,
1930,
435,
86,
20,
3101,
853,
3894,
10,
5270,
16,
1888,
435,
85,
20,
10483,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
16242,
13342,
1083,
85,
19,
38274,
86,
19,
66,
2524,
1083,
85,
20,
38274,
86,
20,
66,
347,
188,
5520,
187,
16840,
28,
312,
16242,
13342,
1083,
85,
20,
38274,
86,
20,
66,
2524,
1083,
85,
19,
38274,
86,
19,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
86,
19,
3101,
853,
3894,
10,
5270,
16,
1888,
435,
85,
19,
10483,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
21323,
2899,
93,
188,
8446,
187,
1699,
28,
6164,
16,
1888,
2899,
435,
67,
1557,
188,
8446,
187,
805,
28,
209,
209,
6164,
16,
1888,
2899,
435,
68,
1557,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
2626,
1997,
30201,
1083,
67,
66,
2524,
1083,
68,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
2626,
1997,
30201,
1083,
68,
66,
2524,
1083,
67,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
1814,
28,
312,
23,
16,
24,
347,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
86,
19,
3101,
853,
3894,
10,
5270,
16,
1888,
435,
85,
19,
10483,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
21323,
2899,
93,
188,
8446,
187,
1699,
28,
6164,
16,
36892,
2899,
435,
67,
347,
312,
291,
1557,
188,
8446,
187,
805,
28,
209,
209,
6164,
16,
36892,
2899,
435,
68,
347,
312,
291,
1557,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
39280,
30201,
1083,
67,
66,
1083,
68,
66,
388,
1751,
827,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
39280,
30201,
1083,
68,
66,
1083,
67,
66,
388,
1751,
827,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
13821,
1930,
93,
188,
1263,
187,
54,
28,
6164,
16,
1888,
1930,
435,
86,
19,
3101,
853,
3894,
10,
5270,
16,
1888,
435,
85,
19,
10483,
188,
1263,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
5520,
187,
8,
5270,
16,
21323,
1132,
93,
188,
8446,
187,
1699,
28,
6164,
16,
1888,
1132,
435,
67,
1557,
188,
8446,
187,
805,
28,
209,
209,
6164,
16,
1888,
1132,
435,
68,
1557,
188,
5520,
187,
519,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
2626,
1997,
20812,
1083,
67,
66,
2524,
1083,
68,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
85,
19,
38274,
86,
19,
66,
2626,
1997,
20812,
1083,
68,
66,
2524,
1083,
67,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
95,
188,
187,
529,
368,
14,
7591,
721,
2068,
6390,
275,
188,
187,
187,
86,
16,
3103,
10,
20238,
16,
30672,
10,
75,
399,
830,
10,
86,
258,
4342,
16,
54,
11,
275,
188,
350,
187,
285,
7591,
16,
1814,
489,
3985,
275,
188,
2054,
187,
3319,
16,
1814,
260,
312,
26,
16,
18,
16,
559,
4,
188,
350,
187,
95,
188,
350,
187,
1184,
14,
2426,
497,
721,
605,
30317,
10,
3319,
16,
1814,
11,
188,
350,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
350,
187,
6975,
14,
497,
721,
4243,
16,
8049,
11892,
10,
1609,
16,
7404,
833,
312,
9267,
8049,
347,
7591,
16,
14492,
11,
188,
350,
187,
285,
7591,
16,
9267,
724,
275,
188,
2054,
187,
3608,
16,
914,
10,
86,
14,
497,
14,
312,
5832,
11581,
384,
2581,
866,
188,
2054,
187,
397,
188,
350,
187,
95,
188,
350,
187,
3608,
16,
13346,
10,
86,
14,
497,
11,
188,
350,
187,
3608,
16,
41817,
10,
86,
14,
11581,
11,
188,
350,
187,
3608,
16,
1567,
10,
86,
14,
7591,
16,
9267,
8049,
16,
410,
6021,
1740,
14,
11581,
16,
410,
6021,
1740,
11,
188,
350,
187,
3608,
16,
1567,
10,
86,
14,
7591,
16,
9267,
8049,
16,
36154,
14,
11581,
16,
36154,
11,
188,
350,
187,
3608,
16,
1567,
10,
86,
14,
1005,
10,
3319,
16,
9267,
8049,
16,
11892,
399,
1005,
10,
6975,
16,
11892,
452,
188,
350,
187,
529,
368,
14,
272,
721,
2068,
11581,
16,
11892,
275,
188,
2054,
187,
3608,
16,
1567,
10,
86,
14,
7591,
16,
9267,
8049,
16,
11892,
61,
75,
913,
4266,
14,
272,
16,
4266,
11,
188,
2054,
187,
3608,
16,
1567,
10,
86,
14,
7591,
16,
9267,
8049,
16,
11892,
61,
75,
913,
16840,
14,
272,
16,
16840,
11,
188,
350,
187,
95,
188,
187,
187,
1436,
188,
187,
95,
188,
95,
188,
188,
1857,
605,
30317,
10,
1814,
776,
11,
280,
24456,
16,
8049,
3716,
13651,
14,
258,
4790,
14,
790,
11,
275,
188,
187,
1184,
14,
328,
14,
497,
721,
5821,
4790,
16,
1888,
336,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
869,
14,
497,
188,
187,
95,
188,
187,
7489,
721,
396,
4790,
93,
79,
95,
188,
187,
7489,
16,
1814,
10,
1814,
11,
188,
187,
3358,
14,
497,
721,
4168,
10,
1184,
11,
188,
187,
285,
497,
598,
869,
275,
188,
187,
187,
397,
869,
14,
869,
14,
497,
188,
187,
95,
188,
187,
397,
15277,
14,
10879,
14,
869,
188,
95
] | [
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
258,
5270,
16,
1320,
1930,
275,
188,
1263,
187,
86,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
20320,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
13511,
22149,
85,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
13349,
188,
8446,
187,
93,
613,
28,
312,
615,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
615,
1782,
9433,
28,
868,
2598,
188,
5520,
187,
519,
188,
5520,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
4839,
13761,
93,
56,
28,
1639,
2598,
188,
1263,
187,
95,
188,
1263,
187,
86,
16,
26792,
260,
396,
5270,
16,
1132,
93,
13758,
28,
8112,
5270,
16,
1132,
3052,
4107,
37,
28,
255,
16,
8578,
61,
18,
63,
25193,
188,
1263,
187,
397,
396,
5270,
16,
1320,
1930,
93,
54,
28,
255,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
209,
209,
209,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
7305,
13342,
1083,
20320,
66,
25054,
311,
66,
48037,
1751,
827,
17730,
65,
23739,
14,
1083,
615,
66,
2248,
827,
14,
40888,
5578,
25054,
311,
66,
452,
17730,
65,
23739,
1639,
347,
26269,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
8,
5270,
16,
8465,
1930,
93,
54,
28,
396,
5270,
16,
1930,
93,
613,
28,
312,
20320,
13511,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
4107,
4266,
28,
312,
11042,
13342,
1083,
20320,
66,
13511,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2899,
93,
613,
28,
312,
579,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
35759,
93,
54,
28,
312,
47667,
10,
3978,
8077,
13349,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
1132,
93,
188,
11137,
187,
43,
28,
396,
5270,
16,
1132,
93,
188,
6954,
187,
613,
28,
312,
311,
65,
689,
347,
188,
6954,
187,
13758,
28,
8112,
5270,
16,
1132,
3052,
93,
188,
25772,
187,
93,
37,
28,
7727,
16,
8578,
61,
18,
15175,
188,
6954,
187,
519,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
93,
188,
25772,
187,
8,
5270,
16,
6676,
93,
1388,
28,
312,
5808,
1782,
188,
25772,
187,
8,
42747,
93,
54,
28,
36692,
3199,
519,
188,
6954,
187,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
2435,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
311,
65,
38508,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
3896,
93,
188,
11137,
187,
1699,
28,
396,
4839,
13761,
93,
56,
28,
352,
519,
188,
11137,
187,
805,
28,
209,
209,
396,
4839,
13761,
93,
56,
28,
5261,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
12909,
30201,
1083,
579,
66,
46184,
10,
3978,
11,
1751,
827,
14,
12909,
20812,
1083,
311,
65,
689,
66,
41957,
14822,
25054,
311,
12841,
42953,
4555,
5808,
6876,
12909,
1402,
20161,
1083,
311,
65,
38508,
66,
3045,
280,
311,
609,
257,
11,
5802,
35019,
14,
17730,
65,
23739,
5261,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
31287,
30201,
1083,
579,
3838,
31287,
20812,
1083,
311,
65,
689,
3838,
31287,
1402,
20161,
1083,
311,
65,
38508,
3838,
17730,
65,
23739,
352,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
6164,
16,
1888,
1930,
435,
8954,
3101,
188,
5520,
187,
1320,
8578,
10,
5270,
16,
36892,
2899,
435,
69,
19,
347,
312,
291,
2646,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
6164,
16,
36892,
2899,
435,
69,
20,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
69,
19,
12,
20,
29750,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
1320,
2899,
93,
188,
11137,
187,
37,
28,
6164,
16,
36892,
2899,
435,
69,
21,
347,
312,
291,
3101,
853,
3641,
4205,
699,
5270,
16,
3641,
4205,
93,
4205,
28,
312,
69,
19,
12,
69,
20,
347,
2962,
28,
312,
6798,
5951,
29750,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
12909,
30201,
1083,
69,
20,
66,
388,
7788,
280,
69,
19,
12,
20,
11,
1751,
827,
14,
12909,
30201,
1083,
69,
21,
66,
388,
7788,
280,
69,
19,
12,
69,
20,
11,
26957,
5951,
1751,
827,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
31287,
30201,
1083,
69,
20,
3838,
31287,
30201,
1083,
69,
21,
66,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
8465,
2435,
93,
188,
11137,
187,
37,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
311,
65,
38508,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
31287,
1402,
20161,
1083,
311,
65,
38508,
66,
347,
188,
5520,
187,
16840,
28,
312,
28751,
13342,
1083,
8954,
66,
12909,
1402,
20161,
1083,
311,
65,
38508,
66,
3045,
280,
311,
609,
257,
11,
5802,
35019,
347,
188,
1263,
187,
519,
188,
2054,
187,
519,
188,
350,
187,
519,
188,
187,
187,
519,
188,
187,
187,
93,
188,
350,
187,
14492,
28,
1397,
5270,
16,
3760,
93,
188,
2054,
187,
1857,
336,
6164,
16,
3760,
275,
188,
1263,
187,
8954,
721,
396,
5270,
16,
1930,
93,
188,
5520,
187,
613,
28,
312,
8954,
347,
188,
5520,
187,
8578,
28,
8112,
5270,
16,
2899,
93,
188,
8446,
187,
93,
613,
28,
312,
311,
347,
2962,
28,
396,
5270,
16,
2899,
563,
93,
563,
28,
396,
5270,
16,
3865,
563,
93,
54,
28,
312,
45930,
4,
13349,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
1263,
187,
397,
396,
5270,
16,
13821,
1930,
93,
188,
5520,
187,
54,
28,
7727,
14,
188,
5520,
187,
11892,
28,
1397,
5270,
16,
3760,
93,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
1798,
19,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
19,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
20,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
209,
312,
1798,
20,
347,
188,
6954,
187,
4205,
28,
209,
9876,
311,
609,
257,
4395,
188,
6954,
187,
15270,
28,
1397,
5270,
16,
3896,
33744,
762,
21277,
2475,
519,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
8446,
187,
8,
5270,
16,
13821,
2435,
93,
188,
11137,
187,
1699,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
21,
347,
188,
6954,
187,
4205,
28,
9876,
311,
609,
257,
4395,
188,
11137,
187,
519,
188,
11137,
187,
805,
28,
396,
5270,
16,
2435,
93,
188,
6954,
187,
613,
28,
312,
1798,
21,
347,
188,
6954,
187,
4205,
28,
9876,
311,
1474,
257,
4395,
188,
11137,
187,
519,
188,
8446,
187,
519,
188,
5520,
187,
519,
188,
1263,
187,
95,
188,
2054,
187,
95,
833,
188,
350,
187,
519,
188,
350,
187,
9267,
8049,
28,
396,
24456,
16,
8049,
93,
188,
2054,
187,
410,
6021,
1740,
28,
868,
14,
188,
2054,
187,
11892,
28,
8112,
24456,
16,
3760,
93,
188,
1263,
187,
93,
188,
5520,
187,
4266,
28,
209,
209,
209,
209,
312,
28751,
13342,
1083,
8954,
66,
10439,
3045,
1083,
1798,
19,
66,
5802,
35019,
14,
10439,
3045,
1083,
1798,
20,
66,
1751,
5802,
35019,
14,
31287,
3045,
1083,
1798,
21,
3838,
12909,
1402,
20161,
1083,
1798
] |