From 0786c7331c516b1884d783c2d702a43c805df6f3 Mon Sep 17 00:00:00 2001 From: OpenCode Agent Date: Sun, 22 Nov 2026 23:51:45 +0000 Subject: [PATCH] feat(core): widget.gpu, the WebGPU subset for live widgets, with host checks and conformance fixtures The prelude records WebGPU's API (devices, contexts by canvas key, resources, pipelines, bind groups, command encoders and passes) into batches of ops and bytes with prelude-assigned handles and every default filled in; batches ride frame requests, or go before other waits and at the end. device.lost, unavailable GPUs and encoder misuse (error ops) are handled. The TypeScript host (LiveWidget) passes { available, format } in the live input and checks batches without a GPU: op shapes, handles and limits, with exact messages; an error stops the canvases its batch renders into, else all. GPU batches never overtake waiting renders or draws. widgets-gpu.md gains the normalised op shapes, the host checks and the conformance driver; test/fixtures/gpu holds 34 fixtures, among them four example widget templates (a lit cube, a textured quad, post-processing, a first-person maze). --- packages/widget/README.md | 2 +- packages/widget/script/gpu-conformance.ts | 102 + packages/widget/src/gpu.ts | 611 + packages/widget/src/live.ts | 87 +- packages/widget/src/node.ts | 9 +- packages/widget/src/prelude.js | 645 +- packages/widget/src/source.ts | 2 +- packages/widget/src/tree.ts | 6 +- packages/widget/test/fixtures/gpu-cases.ts | 310 + packages/widget/test/fixtures/gpu/cube.json | 86 + .../fixtures/gpu/error-buffer-too-big.json | 32 + .../fixtures/gpu/error-destroyed-buffer.json | 34 + .../fixtures/gpu/error-encoder-finished.json | 34 + .../gpu/error-isolated-to-a-canvas.json | 117 + .../test/fixtures/gpu/error-open-pass.json | 34 + .../gpu/error-resources-over-256-mb.json | 36 + .../fixtures/gpu/error-submitted-twice.json | 39 + .../fixtures/gpu/error-texture-too-wide.json | 32 + .../fixtures/gpu/error-too-many-draws.json | 20061 ++++++++++++++++ .../fixtures/gpu/error-too-many-passes.json | 75 + .../fixtures/gpu/error-unknown-canvas.json | 31 + .../fixtures/gpu/error-unknown-format.json | 32 + .../gpu/error-usage-outside-the-subset.json | 32 + .../fixtures/gpu/handles-and-defaults.json | 42 + packages/widget/test/fixtures/gpu/maze.json | 156 + .../test/fixtures/gpu/post-process.json | 111 + .../test/fixtures/gpu/raw-bad-enum.json | 22 + .../gpu/raw-bind-group-layout-entry.json | 22 + .../fixtures/gpu/raw-bytes-out-of-range.json | 22 + .../fixtures/gpu/raw-draw-outside-a-pass.json | 22 + .../test/fixtures/gpu/raw-handle-reused.json | 22 + .../gpu/raw-handles-out-of-order.json | 22 + .../fixtures/gpu/raw-handles-over-4096.json | 22 + .../test/fixtures/gpu/raw-no-such-handle.json | 22 + .../test/fixtures/gpu/raw-not-a-list.json | 22 + .../fixtures/gpu/raw-not-a-whole-number.json | 22 + .../test/fixtures/gpu/raw-ops-over-20000.json | 22 + .../test/fixtures/gpu/raw-pass-left-open.json | 24 + .../fixtures/gpu/raw-shader-over-256-kb.json | 22 + .../test/fixtures/gpu/raw-unknown-op.json | 22 + .../test/fixtures/gpu/raw-wrong-arity.json | 22 + .../test/fixtures/gpu/raw-wrong-kind.json | 22 + .../test/fixtures/gpu/templates/cube.js | 161 + .../test/fixtures/gpu/templates/maze.js | 252 + .../fixtures/gpu/templates/post-process.js | 117 + .../fixtures/gpu/templates/textured-quad.js | 87 + .../test/fixtures/gpu/textured-quad.json | 62 + packages/widget/test/gpu.test.ts | 192 + packages/widget/test/tree.test.ts | 6 +- specs/v2/widgets-binary.md | 1 + specs/v2/widgets-live.md | 6 +- specs/v2/widgets.md | 3 +- 52 files changed, 23967 insertions(+), 32 deletions(-) create mode 100644 packages/widget/script/gpu-conformance.ts create mode 100644 packages/widget/src/gpu.ts create mode 100644 packages/widget/test/fixtures/gpu-cases.ts create mode 100644 packages/widget/test/fixtures/gpu/cube.json create mode 100644 packages/widget/test/fixtures/gpu/error-buffer-too-big.json create mode 100644 packages/widget/test/fixtures/gpu/error-destroyed-buffer.json create mode 100644 packages/widget/test/fixtures/gpu/error-encoder-finished.json create mode 100644 packages/widget/test/fixtures/gpu/error-isolated-to-a-canvas.json create mode 100644 packages/widget/test/fixtures/gpu/error-open-pass.json create mode 100644 packages/widget/test/fixtures/gpu/error-resources-over-256-mb.json create mode 100644 packages/widget/test/fixtures/gpu/error-submitted-twice.json create mode 100644 packages/widget/test/fixtures/gpu/error-texture-too-wide.json create mode 100644 packages/widget/test/fixtures/gpu/error-too-many-draws.json create mode 100644 packages/widget/test/fixtures/gpu/error-too-many-passes.json create mode 100644 packages/widget/test/fixtures/gpu/error-unknown-canvas.json create mode 100644 packages/widget/test/fixtures/gpu/error-unknown-format.json create mode 100644 packages/widget/test/fixtures/gpu/error-usage-outside-the-subset.json create mode 100644 packages/widget/test/fixtures/gpu/handles-and-defaults.json create mode 100644 packages/widget/test/fixtures/gpu/maze.json create mode 100644 packages/widget/test/fixtures/gpu/post-process.json create mode 100644 packages/widget/test/fixtures/gpu/raw-bad-enum.json create mode 100644 packages/widget/test/fixtures/gpu/raw-bind-group-layout-entry.json create mode 100644 packages/widget/test/fixtures/gpu/raw-bytes-out-of-range.json create mode 100644 packages/widget/test/fixtures/gpu/raw-draw-outside-a-pass.json create mode 100644 packages/widget/test/fixtures/gpu/raw-handle-reused.json create mode 100644 packages/widget/test/fixtures/gpu/raw-handles-out-of-order.json create mode 100644 packages/widget/test/fixtures/gpu/raw-handles-over-4096.json create mode 100644 packages/widget/test/fixtures/gpu/raw-no-such-handle.json create mode 100644 packages/widget/test/fixtures/gpu/raw-not-a-list.json create mode 100644 packages/widget/test/fixtures/gpu/raw-not-a-whole-number.json create mode 100644 packages/widget/test/fixtures/gpu/raw-ops-over-20000.json create mode 100644 packages/widget/test/fixtures/gpu/raw-pass-left-open.json create mode 100644 packages/widget/test/fixtures/gpu/raw-shader-over-256-kb.json create mode 100644 packages/widget/test/fixtures/gpu/raw-unknown-op.json create mode 100644 packages/widget/test/fixtures/gpu/raw-wrong-arity.json create mode 100644 packages/widget/test/fixtures/gpu/raw-wrong-kind.json create mode 100644 packages/widget/test/fixtures/gpu/templates/cube.js create mode 100644 packages/widget/test/fixtures/gpu/templates/maze.js create mode 100644 packages/widget/test/fixtures/gpu/templates/post-process.js create mode 100644 packages/widget/test/fixtures/gpu/templates/textured-quad.js create mode 100644 packages/widget/test/fixtures/gpu/textured-quad.json create mode 100644 packages/widget/test/gpu.test.ts diff --git a/packages/widget/README.md b/packages/widget/README.md index ceb7cce41f2..436cc6f5725 100644 --- a/packages/widget/README.md +++ b/packages/widget/README.md @@ -33,7 +33,7 @@ or `invalid`); keep the previous state and view and show the message inline. ## Live mode A widget template with `mode: "live"` defines `async function main(data)` and runs as one long program per open widget: -`\nreturn await __widget_live(__input(), true)` with `__input()` = `{ data }` and the host functions `__host.post`, +`\nreturn await __widget_live(__input(), true)` with `__input()` = `{ data, gpu }` and the host functions `__host.post`, `__host.receive`, `__host.sleep`, `__host.now` and `__host.fetch` (see `specs/v2/widgets-live.md` for the messages, pausing and budgets). The prelude builds the program-facing `widget` object on them; model guidance with examples is in `docs/live-guidance.md`. diff --git a/packages/widget/script/gpu-conformance.ts b/packages/widget/script/gpu-conformance.ts new file mode 100644 index 00000000000..ec8de2e7330 --- /dev/null +++ b/packages/widget/script/gpu-conformance.ts @@ -0,0 +1,102 @@ +// Writes test/fixtures/gpu/*.json (specs/v2/widgets-gpu.md, Conformance): for each program in +// test/fixtures/gpu-cases.ts, the batches it posts, run on the TypeScript host under the fixtures' driver, and the +// program errors (phase `gpu`) the host's checks give. Run `bun run script/gpu-conformance.ts` only to regenerate them +// from a prelude and host known to be right. +import path from "node:path" +import { type LiveInput, LiveWidget, ManualClock, program } from "../src/index.js" +import { type GpuCase, gpuCases, rawCases } from "../test/fixtures/gpu-cases.js" + +const dir = path.resolve(import.meta.dir, "../test/fixtures/gpu") + +/** The GPU the fixtures' host has. */ +export const GPU = { available: true, format: "rgba8unorm" } as const +/** The frames the driver delivers: frame `i` at `t = i / 60`, on a canvas 300 x 200 at scale 2. */ +const frame = (i: number) => ({ t: i / 60, dt: 1 / 60, width: 300, height: 200, scale: 2, pointer: null, dark: false }) +/** The most frames a fixture runs. */ +const FRAMES = 10 + +export interface Recorded { + readonly batches: ReadonlyArray<{ readonly frame: boolean; readonly ops: unknown; readonly bytes: string }> + readonly errors: ReadonlyArray<{ readonly message: string; readonly canvases: ReadonlyArray | "all" }> + readonly end: string +} + +/** + * Runs a case the way the fixtures' driver does: the canvas sizes before anything else, then while the program asks for + * frames, each fixture input for frame `i` and frame `i`; it stops when the program ends, or settles without asking + * for a frame, or after `FRAMES` frames. Timers run on a clock that moves 1/60 s at a time while the program waits. + */ +export async function run(item: GpuCase): Promise { + const clock = new ManualClock() + const batches: Array<{ frame: boolean; ops: unknown; bytes: string }> = [] + const widget = LiveWidget.start(program(item.source), item.data ?? null, { + clock, + // GPU programs, not budgets: no 50 ms slice. + busyMs: 600_000, + gpu: { format: GPU.format }, + onMessage: (message) => { + const batch = message.type === "frame" ? message.gpu : message.type === "gpu" ? message : undefined + if (batch) + batches.push({ + frame: message.type === "frame", + ops: batch.ops, + bytes: Buffer.from(batch.bytes).toString("base64"), + }) + }, + }) + item.canvases.forEach((canvas) => widget.canvas(canvas.key, canvas.width, canvas.height)) + // Until the program asks for a frame or ends: it may be computing (real time) or sleeping (the clock). + const settle = async () => { + for (let step = 0; step < 10 && !widget.ended && !widget.frameRequested; step++) { + await Promise.race([widget.when((c) => c.frameRequested).catch(() => undefined), Bun.sleep(50)]) + if (!widget.frameRequested) await clock.advance(1000 / 60) + } + } + for (let i = 0; i < FRAMES; i++) { + await settle() + if (widget.ended || !widget.frameRequested) break + for (const { input } of (item.inputs ?? []).filter((entry) => entry.frame === i)) { + const given = input as LiveInput + if (given.type === "event") widget.event(given.event) + if (given.type === "canvas") widget.canvas(given.key, given.width, given.height) + } + widget.frame(frame(i)) + } + await settle() + const end = widget.ended ?? (await widget.stop()) + return { + batches, + errors: widget.gpuErrors.map((error) => ({ message: error.message, canvases: error.canvases })), + end: end.type === "error" ? `error: ${end.error.message}` : end.type, + } +} + +// JSON, two spaces deep, with one op per line. +function format(file: Record) { + const { batches, ...rest } = file as { batches?: Recorded["batches"] } + const head = JSON.stringify(rest, null, 2).slice(0, -2) + if (!batches) return head + "\n}\n" + const body = batches.map( + (batch) => + ` {\n "frame": ${batch.frame},\n "bytes": ${JSON.stringify(batch.bytes)},\n "ops": [\n` + + (batch.ops as ReadonlyArray).map((op) => ` ${JSON.stringify(op)}`).join(",\n") + + `\n ]\n }`, + ) + return `${head},\n "batches": [\n${body.join(",\n")}\n ]\n}\n` +} + +export const fixtures = (): ReadonlyArray => [ + ...gpuCases.map((item) => ({ ...item, raw: false })), + ...rawCases.map((item) => ({ ...item, raw: true })), +] + +if (import.meta.main) { + for (const item of fixtures()) { + const recorded = await run(item) + // A raw case's batch is in its source. + const { batches, ...rest } = recorded + const file = { ...item, raw: undefined, gpu: GPU, ...(item.raw ? {} : { batches }), ...rest } + await Bun.write(path.join(dir, `${item.name}.json`), format(file)) + } + console.log(`wrote ${fixtures().length} fixtures to ${dir}`) +} diff --git a/packages/widget/src/gpu.ts b/packages/widget/src/gpu.ts new file mode 100644 index 00000000000..d625c1eaadc --- /dev/null +++ b/packages/widget/src/gpu.ts @@ -0,0 +1,611 @@ +// GPU batch checks a host makes without a GPU (specs/v2/widgets-gpu.md, Host checks): every op's shape, the handles +// it names, and the limits. A host with a GPU replays what passes; the TypeScript host only checks. + +/** A batch as the prelude posts it: ops, and the bytes they read. */ +export interface GpuBatch { + readonly ops: ReadonlyArray + readonly bytes: ArrayBuffer +} + +/** A program error from a batch (phase `gpu`): the canvases it stops, by key, or every canvas of the device. */ +export interface GpuError { + readonly message: string + readonly canvases: ReadonlyArray | "all" +} + +export const GPU_LIMITS = { + ops: 20_000, + bytes: 4 * 1024 * 1024, + passes: 16, + draws: 10_000, + handles: 4096, + resources: 256 * 1024 * 1024, + shader: 256 * 1024, + buffer: 64 * 1024 * 1024, + dimension: 4096, + layers: 256, +} + +const TEXTURE_FORMATS: Record = { + rgba8unorm: 4, + "rgba8unorm-srgb": 4, + bgra8unorm: 4, + r8unorm: 1, + rgba16float: 8, + depth24plus: 4, + depth32float: 4, +} +const COLOR_FORMATS = ["rgba8unorm", "rgba8unorm-srgb", "bgra8unorm", "r8unorm", "rgba16float"] +const DEPTH_FORMATS = ["depth24plus", "depth32float"] +const VERTEX_FORMATS = [ + "uint8x2", + "uint8x4", + "sint8x2", + "sint8x4", + "unorm8x2", + "unorm8x4", + "snorm8x2", + "snorm8x4", + "uint16x2", + "uint16x4", + "sint16x2", + "sint16x4", + "unorm16x2", + "unorm16x4", + "snorm16x2", + "snorm16x4", + "float16x2", + "float16x4", + "float32", + "float32x2", + "float32x3", + "float32x4", + "uint32", + "uint32x2", + "uint32x3", + "uint32x4", + "sint32", + "sint32x2", + "sint32x3", + "sint32x4", +] +const COMPARE = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"] +const FACTORS = [ + "zero", + "one", + "src", + "one-minus-src", + "src-alpha", + "one-minus-src-alpha", + "dst", + "one-minus-dst", + "dst-alpha", + "one-minus-dst-alpha", + "src-alpha-saturated", + "constant", + "one-minus-constant", +] +const BUFFER_USAGE = { COPY_SRC: 4, COPY_DST: 8, INDEX: 16, VERTEX: 32, UNIFORM: 64, STORAGE: 128 } +const TEXTURE_USAGE = { COPY_SRC: 1, COPY_DST: 2, TEXTURE_BINDING: 4, RENDER_ATTACHMENT: 16 } +const STAGES = { VERTEX: 1, FRAGMENT: 2 } + +class Invalid extends Error {} +const fail = (message: string): never => { + throw new Invalid(message) +} + +type Kind = + | "context" + | "buffer" + | "texture" + | "view" + | "sampler" + | "shader" + | "bindGroupLayout" + | "pipelineLayout" + | "renderPipeline" + | "bindGroup" +interface Handle { + readonly kind: Kind + /** A buffer's or texture's bytes as allocated; a view's texture; a context's key. */ + readonly bytes?: number + readonly texture?: number + readonly key?: string + destroyed?: boolean +} + +// Checks one value at `path` ("" argument , then .field and [index]). +const whole = (value: unknown, path: string) => + typeof value === "number" && Number.isInteger(value) && value >= 0 ? value : fail(`${path} must be a whole number`) +const wholeOrAll = (value: unknown, path: string) => + value === -1 + ? -1 + : typeof value === "number" && Number.isInteger(value) && value >= 0 + ? value + : fail(`${path} must be a whole number or -1`) +const integer = (value: unknown, path: string) => + typeof value === "number" && Number.isInteger(value) ? value : fail(`${path} must be an integer`) +const finite = (value: unknown, path: string) => + typeof value === "number" && Number.isFinite(value) ? value : fail(`${path} must be a finite number`) +const bool = (value: unknown, path: string) => + typeof value === "boolean" ? value : fail(`${path} must be true or false`) +const text = (value: unknown, path: string) => (typeof value === "string" ? value : fail(`${path} must be a string`)) +const oneOf = (value: unknown, options: ReadonlyArray, path: string) => + options.includes(value as A) ? (value as A) : fail(`${path} must be one of ${options.join(", ")}`) +const list = (value: unknown, path: string, length?: number) => + Array.isArray(value) && (length === undefined || value.length === length) + ? value + : fail(length === undefined ? `${path} must be a list` : `${path} must be a list of ${length}`) +const record = (value: unknown, path: string) => + value && typeof value === "object" && !Array.isArray(value) + ? (value as Record) + : fail(`${path} must be an object`) +const nullable = (value: unknown, check: (value: unknown) => A) => (value === null ? null : check(value)) +const flags = (value: unknown, names: Record, path: string) => { + const all = Object.values(names).reduce((sum, bit) => sum | bit, 0) + return typeof value === "number" && Number.isInteger(value) && value >= 0 && (value & ~all) === 0 + ? value + : fail(`${path} must combine ${Object.keys(names).join(", ")}`) +} +const limit = (value: number, max: number, what: string) => + value > max ? fail(`${what} is over the limit of ${max}`) : value + +// The ops: their number of arguments after the name. +const ARITY: Record = { + context: 4, + buffer: 3, + texture: 8, + view: 3, + sampler: 2, + shader: 2, + bindGroupLayout: 2, + pipelineLayout: 2, + renderPipeline: 2, + autoLayout: 3, + bindGroup: 2, + destroy: 1, + writeBuffer: 4, + writeTexture: 8, + copyBufferToBuffer: 5, + copyBufferToTexture: 8, + copyTextureToTexture: 7, + pass: 1, + setPipeline: 1, + setBindGroup: 3, + setVertexBuffer: 4, + setIndexBuffer: 4, + setViewport: 6, + setScissorRect: 4, + draw: 4, + drawIndexed: 5, + end: 0, + submit: 0, + error: 1, +} +const IN_PASS = new Set([ + "setPipeline", + "setBindGroup", + "setVertexBuffer", + "setIndexBuffer", + "setViewport", + "setScissorRect", + "draw", + "drawIndexed", + "end", +]) + +/** + * The checks of a widget's batches, in order. `canvases` gives the keys of the GPU canvases in the last rendered view. + * A batch gives its first error, or none, and the rest of it goes unchecked. The error stops the canvases the batch + * renders into (a pass's color attachment is a view of their texture), or every GPU canvas of the widget when it renders + * into none; then later batches go unchecked. An error stopping only canvases already stopped isn't given again. + */ +export function gpuChecks(canvases: () => ReadonlySet) { + const handles = new Map() + const state = { last: 0, live: 0, resources: 0, passes: 0, draws: 0, all: false } + const stopped = new Set() + + const find = (value: unknown, path: string, ...kinds: ReadonlyArray) => { + const h = whole(value, path) + const found = handles.get(h) ?? fail(`no handle ${h}`) + if (!kinds.includes(found.kind)) fail(`handle ${h} is a ${found.kind}, not a ${kinds.join(" or ")}`) + if (found.destroyed) fail(`handle ${h} was destroyed`) + return found + } + const create = (value: unknown, path: string, made: Handle) => { + const h = whole(value, path) + if (h <= state.last) fail(`handle ${h} was already used`) + state.last = h + handles.set(h, made) + limit(++state.live, GPU_LIMITS.handles, "the number of live handles") + if (made.bytes) limit((state.resources += made.bytes), GPU_LIMITS.resources, "the size of buffers and textures") + } + const free = (h: number, found: Handle) => { + found.destroyed = true + state.live-- + state.resources -= found.bytes ?? 0 + for (const [, other] of handles) + if (other.kind === "view" && other.texture === h && !other.destroyed) { + other.destroyed = true + state.live-- + } + } + const range = (offset: number, length: number, bytes: ArrayBuffer) => + offset + length > bytes.byteLength + ? fail(`bytes [${offset}, ${offset + length}) are outside the batch's ${bytes.byteLength} bytes`) + : undefined + const triple = (value: unknown, path: string) => + list(value, path, 3).forEach((item, i) => whole(item, `${path}[${i}]`)) + + const op = (o: ReadonlyArray, name: string, bytes: ArrayBuffer) => { + const a = (i: number) => `"${name}" argument ${i}` + switch (name) { + case "context": { + const key = text(o[2], a(2)) + oneOf(o[3], ["bgra8unorm", "rgba8unorm"], a(3)) + oneOf(o[4], ["opaque", "premultiplied"], a(4)) + if (!canvases().has(key)) fail(`no GPU canvas with key "${key}"`) + const existing = handles.get(whole(o[1], a(1))) + if (existing?.kind === "context" && existing.key === key) return + return create(o[1], a(1), { kind: "context", key }) + } + case "buffer": { + const size = limit(whole(o[2], a(2)), GPU_LIMITS.buffer, a(2)) + flags(o[3], BUFFER_USAGE, a(3)) + return create(o[1], a(1), { kind: "buffer", bytes: size }) + } + case "texture": { + const width = limit(whole(o[2], a(2)), GPU_LIMITS.dimension, a(2)) + const height = limit(whole(o[3], a(3)), GPU_LIMITS.dimension, a(3)) + const layers = limit(whole(o[4], a(4)), GPU_LIMITS.layers, a(4)) + const format = oneOf(o[5], Object.keys(TEXTURE_FORMATS), a(5)) + flags(o[6], TEXTURE_USAGE, a(6)) + const mips = whole(o[7], a(7)) + const samples = oneOf(o[8], [1, 4], a(8)) + let bytes = 0 + for (let mip = 0; mip < mips; mip++) + bytes += Math.max(1, width >> mip) * Math.max(1, height >> mip) * layers * TEXTURE_FORMATS[format]! * samples + return create(o[1], a(1), { kind: "texture", bytes }) + } + case "view": { + const texture = whole(o[2], a(2)) + find(texture, a(2), "texture", "context") + const d = record(o[3], a(3)) + oneOf(d.dimension, ["2d", "2d-array", "cube"], `${a(3)}.dimension`) + for (const field of ["baseMipLevel", "mipLevelCount", "baseArrayLayer", "arrayLayerCount"]) + whole(d[field], `${a(3)}.${field}`) + return create(o[1], a(1), { kind: "view", texture }) + } + case "sampler": { + const d = record(o[2], a(2)) + for (const field of ["addressModeU", "addressModeV", "addressModeW"]) + oneOf(d[field], ["clamp-to-edge", "repeat", "mirror-repeat"], `${a(2)}.${field}`) + for (const field of ["magFilter", "minFilter", "mipmapFilter"]) + oneOf(d[field], ["nearest", "linear"], `${a(2)}.${field}`) + finite(d.lodMinClamp, `${a(2)}.lodMinClamp`) + finite(d.lodMaxClamp, `${a(2)}.lodMaxClamp`) + nullable(d.compare, (value) => oneOf(value, COMPARE, `${a(2)}.compare`)) + whole(d.maxAnisotropy, `${a(2)}.maxAnisotropy`) + return create(o[1], a(1), { kind: "sampler" }) + } + case "shader": { + limit(new TextEncoder().encode(text(o[2], a(2))).length, GPU_LIMITS.shader, a(2)) + return create(o[1], a(1), { kind: "shader" }) + } + case "bindGroupLayout": { + const d = record(o[2], a(2)) + list(d.entries, `${a(2)}.entries`).forEach((item, i) => { + const at = `${a(2)}.entries[${i}]` + const e = record(item, at) + whole(e.binding, `${at}.binding`) + flags(e.visibility, STAGES, `${at}.visibility`) + if ([e.buffer, e.sampler, e.texture].filter((value) => value !== null).length !== 1) + fail(`${at} needs exactly one of buffer, sampler and texture`) + nullable(e.buffer, (value) => { + const b = record(value, `${at}.buffer`) + oneOf(b.type, ["uniform", "storage", "read-only-storage"], `${at}.buffer.type`) + bool(b.hasDynamicOffset, `${at}.buffer.hasDynamicOffset`) + whole(b.minBindingSize, `${at}.buffer.minBindingSize`) + }) + nullable(e.sampler, (value) => + oneOf( + record(value, `${at}.sampler`).type, + ["filtering", "non-filtering", "comparison"], + `${at}.sampler.type`, + ), + ) + nullable(e.texture, (value) => { + const t = record(value, `${at}.texture`) + oneOf(t.sampleType, ["float", "unfilterable-float", "depth", "sint", "uint"], `${at}.texture.sampleType`) + oneOf(t.viewDimension, ["2d", "2d-array", "cube"], `${at}.texture.viewDimension`) + bool(t.multisampled, `${at}.texture.multisampled`) + }) + }) + return create(o[1], a(1), { kind: "bindGroupLayout" }) + } + case "pipelineLayout": { + list(o[2], a(2)).forEach((item, i) => find(item, `${a(2)}[${i}]`, "bindGroupLayout")) + return create(o[1], a(1), { kind: "pipelineLayout" }) + } + case "renderPipeline": { + pipeline(record(o[2], a(2)), a(2)) + return create(o[1], a(1), { kind: "renderPipeline" }) + } + case "autoLayout": { + find(o[2], a(2), "renderPipeline") + whole(o[3], a(3)) + return create(o[1], a(1), { kind: "bindGroupLayout" }) + } + case "bindGroup": { + const d = record(o[2], a(2)) + find(d.layout, `${a(2)}.layout`, "bindGroupLayout") + list(d.entries, `${a(2)}.entries`).forEach((item, i) => { + const at = `${a(2)}.entries[${i}]` + const e = record(item, at) + whole(e.binding, `${at}.binding`) + const r = record(e.resource, `${at}.resource`) + if ("buffer" in r) { + find(r.buffer, `${at}.resource.buffer`, "buffer") + whole(r.offset, `${at}.resource.offset`) + wholeOrAll(r.size, `${at}.resource.size`) + } else if ("sampler" in r) find(r.sampler, `${at}.resource.sampler`, "sampler") + else if ("view" in r) find(r.view, `${at}.resource.view`, "view") + else fail(`${at}.resource must be a buffer binding, a sampler or a view`) + }) + return create(o[1], a(1), { kind: "bindGroup" }) + } + case "destroy": { + const h = whole(o[1], a(1)) + return free(h, find(h, a(1), "buffer", "texture")) + } + case "writeBuffer": + find(o[1], a(1), "buffer") + whole(o[2], a(2)) + return range(whole(o[3], a(3)), whole(o[4], a(4)), bytes) + case "writeTexture": + find(o[1], a(1), "texture") + whole(o[2], a(2)) + triple(o[3], a(3)) + range(whole(o[4], a(4)), whole(o[5], a(5)), bytes) + whole(o[6], a(6)) + nullable(o[7], (value) => whole(value, a(7))) + return triple(o[8], a(8)) + case "copyBufferToBuffer": + find(o[1], a(1), "buffer") + whole(o[2], a(2)) + find(o[3], a(3), "buffer") + whole(o[4], a(4)) + return void whole(o[5], a(5)) + case "copyBufferToTexture": + find(o[1], a(1), "buffer") + whole(o[2], a(2)) + whole(o[3], a(3)) + nullable(o[4], (value) => whole(value, a(4))) + find(o[5], a(5), "texture") + whole(o[6], a(6)) + triple(o[7], a(7)) + return triple(o[8], a(8)) + case "copyTextureToTexture": + find(o[1], a(1), "texture") + whole(o[2], a(2)) + triple(o[3], a(3)) + find(o[4], a(4), "texture") + whole(o[5], a(5)) + triple(o[6], a(6)) + return triple(o[7], a(7)) + case "setPipeline": + return void find(o[1], a(1), "renderPipeline") + case "setBindGroup": + whole(o[1], a(1)) + find(o[2], a(2), "bindGroup") + return list(o[3], a(3)).forEach((item, i) => whole(item, `${a(3)}[${i}]`)) + case "setVertexBuffer": + whole(o[1], a(1)) + find(o[2], a(2), "buffer") + whole(o[3], a(3)) + return void wholeOrAll(o[4], a(4)) + case "setIndexBuffer": + find(o[1], a(1), "buffer") + oneOf(o[2], ["uint16", "uint32"], a(2)) + whole(o[3], a(3)) + return void wholeOrAll(o[4], a(4)) + case "setViewport": + return [1, 2, 3, 4, 5, 6].forEach((i) => finite(o[i], a(i))) + case "setScissorRect": + return [1, 2, 3, 4].forEach((i) => whole(o[i], a(i))) + case "draw": + case "drawIndexed": + o.slice(1).forEach((value, i) => (name === "drawIndexed" && i === 3 ? integer : whole)(value, a(i + 1))) + return void limit(++state.draws, GPU_LIMITS.draws, "the number of draws in a frame") + } + } + + const pipeline = (d: Record, at: string) => { + if (d.layout !== "auto") find(d.layout, `${at}.layout`, "pipelineLayout") + const vertex = record(d.vertex, `${at}.vertex`) + find(vertex.module, `${at}.vertex.module`, "shader") + nullable(vertex.entryPoint, (value) => text(value, `${at}.vertex.entryPoint`)) + list(vertex.buffers, `${at}.vertex.buffers`).forEach((item, i) => + nullable(item, (value) => { + const path = `${at}.vertex.buffers[${i}]` + const b = record(value, path) + whole(b.arrayStride, `${path}.arrayStride`) + oneOf(b.stepMode, ["vertex", "instance"], `${path}.stepMode`) + list(b.attributes, `${path}.attributes`).forEach((attribute, j) => { + const where = `${path}.attributes[${j}]` + const t = record(attribute, where) + oneOf(t.format, VERTEX_FORMATS, `${where}.format`) + whole(t.offset, `${where}.offset`) + whole(t.shaderLocation, `${where}.shaderLocation`) + }) + }), + ) + nullable(d.fragment, (value) => { + const fragment = record(value, `${at}.fragment`) + find(fragment.module, `${at}.fragment.module`, "shader") + nullable(fragment.entryPoint, (entry) => text(entry, `${at}.fragment.entryPoint`)) + list(fragment.targets, `${at}.fragment.targets`).forEach((item, i) => + nullable(item, (target) => { + const path = `${at}.fragment.targets[${i}]` + const t = record(target, path) + oneOf(t.format, COLOR_FORMATS, `${path}.format`) + nullable(t.blend, (blend) => { + const b = record(blend, `${path}.blend`) + for (const part of ["color", "alpha"]) { + const c = record(b[part], `${path}.blend.${part}`) + oneOf( + c.operation, + ["add", "subtract", "reverse-subtract", "min", "max"], + `${path}.blend.${part}.operation`, + ) + oneOf(c.srcFactor, FACTORS, `${path}.blend.${part}.srcFactor`) + oneOf(c.dstFactor, FACTORS, `${path}.blend.${part}.dstFactor`) + } + }) + limit(whole(t.writeMask, `${path}.writeMask`), 15, `${path}.writeMask`) + }), + ) + }) + const primitive = record(d.primitive, `${at}.primitive`) + oneOf( + primitive.topology, + ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"], + `${at}.primitive.topology`, + ) + nullable(primitive.stripIndexFormat, (value) => + oneOf(value, ["uint16", "uint32"], `${at}.primitive.stripIndexFormat`), + ) + oneOf(primitive.frontFace, ["ccw", "cw"], `${at}.primitive.frontFace`) + oneOf(primitive.cullMode, ["none", "front", "back"], `${at}.primitive.cullMode`) + nullable(d.depthStencil, (value) => { + const depth = record(value, `${at}.depthStencil`) + oneOf(depth.format, DEPTH_FORMATS, `${at}.depthStencil.format`) + bool(depth.depthWriteEnabled, `${at}.depthStencil.depthWriteEnabled`) + oneOf(depth.depthCompare, COMPARE, `${at}.depthStencil.depthCompare`) + }) + const multisample = record(d.multisample, `${at}.multisample`) + oneOf(multisample.count, [1, 4], `${at}.multisample.count`) + whole(multisample.mask, `${at}.multisample.mask`) + bool(multisample.alphaToCoverageEnabled, `${at}.multisample.alphaToCoverageEnabled`) + } + + // The keys of the canvases a batch renders into, in order, from what it and earlier batches made. + const rendered = (ops: ReadonlyArray) => { + const textures = new Map() + const contexts = new Map() + const keys = new Set() + const context = (h: number | undefined) => { + const found = h === undefined ? undefined : handles.get(h) + return h === undefined ? undefined : (contexts.get(h) ?? (found?.kind === "context" ? found.key : undefined)) + } + for (const o of ops) { + if (!Array.isArray(o) || typeof o[1] !== "number") continue + if (o[0] === "context" && typeof o[2] === "string") contexts.set(o[1], o[2]) + if (o[0] === "view" && typeof o[2] === "number") textures.set(o[1], o[2]) + } + for (const o of ops) { + if (!Array.isArray(o) || o[0] !== "pass" || !o[1] || !Array.isArray(o[1].colorAttachments)) continue + for (const attachment of o[1].colorAttachments) { + const view = attachment?.view + if (typeof view !== "number") continue + const key = context(textures.get(view) ?? handles.get(view)?.texture) + if (key !== undefined) keys.add(key) + } + } + return [...keys] + } + + // A pass's descriptor, checked. + const pass = (value: unknown) => { + const at = `"pass" argument 1` + const d = record(value, at) + list(d.colorAttachments, `${at}.colorAttachments`).forEach((item, i) => + nullable(item, (attachment) => { + const path = `${at}.colorAttachments[${i}]` + const c = record(attachment, path) + find(c.view, `${path}.view`, "view") + nullable(c.resolveTarget, (resolve) => find(resolve, `${path}.resolveTarget`, "view")) + list(c.clearValue, `${path}.clearValue`, 4).forEach((part, j) => finite(part, `${path}.clearValue[${j}]`)) + oneOf(c.loadOp, ["load", "clear"], `${path}.loadOp`) + oneOf(c.storeOp, ["store", "discard"], `${path}.storeOp`) + }), + ) + nullable(d.depthStencilAttachment, (attachment) => { + const path = `${at}.depthStencilAttachment` + const depth = record(attachment, path) + find(depth.view, `${path}.view`, "view") + nullable(depth.depthClearValue, (clear) => finite(clear, `${path}.depthClearValue`)) + nullable(depth.depthLoadOp, (load) => oneOf(load, ["load", "clear"], `${path}.depthLoadOp`)) + nullable(depth.depthStoreOp, (store) => oneOf(store, ["store", "discard"], `${path}.depthStoreOp`)) + bool(depth.depthReadOnly, `${path}.depthReadOnly`) + }) + limit(++state.passes, GPU_LIMITS.passes, "the number of render passes in a frame") + } + + return { + /** Checks a batch; `frame`: it came with a frame request, which ends the frame its limits count. */ + batch: (value: unknown, frame: boolean): GpuError | undefined => { + if (state.all) return undefined + const scoped = { keys: [] as string[], pass: false } + const error = (message: string): GpuError | undefined => { + if (scoped.keys.length > 0) { + const fresh = scoped.keys.filter((key) => !stopped.has(key)) + scoped.keys.forEach((key) => stopped.add(key)) + return fresh.length > 0 ? { message, canvases: fresh } : undefined + } + state.all = true + const fresh = [...canvases()].filter((key) => !stopped.has(key)) + return fresh.length > 0 || stopped.size === 0 ? { message, canvases: "all" } : undefined + } + try { + const batch = record(value, "a batch") + const ops = list(batch.ops, "a batch's ops") + scoped.keys = rendered(ops) + if (!(batch.bytes instanceof ArrayBuffer)) fail("a batch's bytes must be an ArrayBuffer") + const bytes = batch.bytes as ArrayBuffer + limit(ops.length, GPU_LIMITS.ops, "the number of ops in a batch") + limit(bytes.byteLength, GPU_LIMITS.bytes, "the size of a batch's bytes") + for (let index = 0; index < ops.length; index++) { + try { + const o = ops[index] + if (!Array.isArray(o) || typeof o[0] !== "string") fail("an op is a list that starts with its name") + const list = o as ReadonlyArray + const name = list[0] as string + const arity = Object.hasOwn(ARITY, name) ? ARITY[name]! : fail(`unknown op "${name}"`) + if (list.length !== arity + 1) fail(`"${name}" takes ${arity} arguments`) + if (name === "error") fail(text(list[1], `"error" argument 1`)) + if (name === "pass") { + if (scoped.pass) fail(`"pass" inside a render pass`) + pass(list[1]) + scoped.pass = true + continue + } + if (IN_PASS.has(name) && !scoped.pass) fail(`"${name}" outside a render pass`) + if (!IN_PASS.has(name) && scoped.pass) fail(`"${name}" inside a render pass`) + if (name === "end") scoped.pass = false + else op(list, name, bytes) + } catch (caught) { + if (!(caught instanceof Invalid)) throw caught + return error(`gpu op ${index}: ${caught.message}`) + } + } + if (scoped.pass) fail("a render pass is still open at the end of the batch") + return undefined + } catch (caught) { + if (!(caught instanceof Invalid)) throw caught + return error(caught.message) + } finally { + if (frame) { + state.passes = 0 + state.draws = 0 + } + } + }, + /** The device is lost: every handle is gone. */ + lost: () => { + handles.clear() + state.live = 0 + state.resources = 0 + }, + } +} diff --git a/packages/widget/src/live.ts b/packages/widget/src/live.ts index d45bfb68125..cd588733890 100644 --- a/packages/widget/src/live.ts +++ b/packages/widget/src/live.ts @@ -18,6 +18,7 @@ import type { Capabilities } from "./widget-template.js" import { type Tree, tree, unmark, ViewError } from "./tree.js" import { compiled } from "./compiled.js" import { located, MAX_VALUE_DEPTH, NEWER, OLDER, protocol, PROTOCOL } from "./host.js" +import { type GpuBatch, type GpuError, gpuChecks } from "./gpu.js" /** A display frame in live mode: like a canvas frame, without the canvas id. */ export type LiveFrame = Omit @@ -26,7 +27,10 @@ export type LiveFrame = Omit export type LiveMessage = | { readonly type: "render"; readonly node: Node } | { readonly type: "draw"; readonly id: string; readonly commands: ReadonlyArray } - | { readonly type: "frame" } + /** A frame request; it may carry the GPU batch recorded since the last one (widgets-gpu.md). */ + | { readonly type: "frame"; readonly gpu?: GpuBatch } + /** A GPU batch on its own, posted before the program waits on something else than a frame. */ + | ({ readonly type: "gpu" } & GpuBatch) | { readonly type: "submit"; readonly value: unknown } | { readonly type: "dismiss" } | { readonly type: "send"; readonly value: unknown; readonly wake: boolean } @@ -38,6 +42,10 @@ export type LiveInput = | { readonly type: "event"; readonly event: WidgetEvent } | { readonly type: "frame"; readonly frame: LiveFrame } | { readonly type: "resumed"; readonly pausedMs: number } + /** A GPU canvas's size in physical pixels, before the frame after it changed (widgets-gpu.md). */ + | { readonly type: "canvas"; readonly key: string; readonly width: number; readonly height: number } + /** The GPU device is lost: every handle is gone. */ + | { readonly type: "gpu"; readonly lost: string } /** How a live program ended. `return`: `main` returned without an answer; its last view stays. */ export type LiveEnd = @@ -113,6 +121,11 @@ export interface LiveOptions { readonly capabilities?: Capabilities /** Performs `fetch` requests that passed the contract's checks; the platform `fetch` by default. */ readonly transport?: Transport + /** + * The GPU the program sees (widgets-gpu.md): by default one with `rgba8unorm` canvases, whose batches this host checks + * without replaying them (it draws no canvas); `false`: none, so the program records nothing. + */ + readonly gpu?: false | { readonly format?: "bgra8unorm" | "rgba8unorm" } } /** @@ -128,11 +141,17 @@ export interface LiveWidget { readonly frameRequested: boolean readonly paused: boolean readonly warnings: ReadonlyArray + /** The program errors (phase `gpu`) the GPU batches had, each with the canvases it stopped. */ + readonly gpuErrors: ReadonlyArray readonly ended: LiveEnd | undefined readonly done: Promise readonly event: (event: WidgetEvent) => void /** Delivers a frame if the program asked for one and isn't paused; returns whether it did. */ readonly frame: (frame: LiveFrame) => boolean + /** Tells the program a GPU canvas's size, in physical pixels. */ + readonly canvas: (key: string, width: number, height: number) => void + /** Loses the GPU device: every handle is gone, and the program's `device.lost` resolves. */ + readonly loseDevice: (reason: string) => void /** * Holds everything for the program: events, timer firings and fetch results wait, and `now()` stops, until `resume`, * which first delivers `{ type: "resumed", pausedMs }`. @@ -146,7 +165,7 @@ export interface LiveWidget { export const LiveWidget = { /** - * Starts `\nreturn await __widget_live(__input(), true)` with `__input()` = `{ data }`. A program built for an + * Starts `\nreturn await __widget_live(__input(), true)` with `__input()` = `{ data, gpu }`. A program built for an * older contract ends at once with an error; one for a newer contract throws (a client error). */ start: (program: string, data: unknown, options?: LiveOptions): LiveWidget => { @@ -166,6 +185,15 @@ export const LiveWidget = { }> = [] const drawings = new Map>() const warnings: string[] = [] + const gpuErrors: GpuError[] = [] + const gpu = gpuChecks( + () => new Set([...(current.tree?.canvases ?? new Map())].flatMap(([key, canvas]) => (canvas.gpu ? [key] : []))), + ) + // A GPU batch, checked; `frame`: it came with a frame request. + const replay = (batch: GpuBatch, frame: boolean) => { + const error = gpu.batch(batch, frame) + if (error) gpuErrors.push(error) + } const ending = Promise.withResolvers() const current = { view: undefined as Node | undefined, @@ -178,7 +206,11 @@ export const LiveWidget = { // The post rate's token bucket, and the `render` and `draw` posts waiting for a token, oldest first; a canvas's // draws coalesce by its key. bucket: { tokens: BURST, at: started }, - waiting: [] as Array<{ readonly key: string | undefined; readonly message: LiveMessage }>, + waiting: [] as Array<{ + readonly key: string | undefined + readonly message: LiveMessage + readonly counted: boolean + }>, slot: undefined as (() => void) | undefined, fetches: { inFlight: 0, starts: [] as number[] }, // The last rendered view's tree, for `draw` keys. @@ -378,6 +410,7 @@ export const LiveWidget = { const canvas = current.tree?.canvases.get(key) if (canvas === undefined) throw new Error('No canvas with key "' + key + '" in the rendered view') if (canvas.wgsl) throw new Error('Canvas "' + key + '" is drawn by its wgsl; it takes no draw commands') + if (canvas.gpu) throw new Error('Canvas "' + key + '" is drawn by the GPU; it takes no draw commands') return { message: unmark({ type: "draw", id: canvas.id, commands: message.commands }, POSTED), key } } @@ -397,15 +430,23 @@ export const LiveWidget = { const accepted = accept(message) if (!accepted) return if (accepted.type === "render" || accepted.type === "draw") return counted(accepted, key) - if (accepted.type === "frame" && current.requested) return + // A GPU batch takes no token, but never overtakes a waiting render or draw: its canvas may be in one. + if ((accepted.type === "gpu" || (accepted.type === "frame" && accepted.gpu)) && current.waiting.length > 0) + return void current.waiting.push({ key: undefined, message: accepted, counted: false }) if (accepted.type === "submit" || accepted.type === "dismiss") release() - apply(accepted) + send(accepted) + } + + // A frame request while one is pending changes nothing, but its GPU batch is applied. + const send = (accepted: LiveMessage) => { + if (accepted.type !== "frame" || !current.requested) return apply(accepted) + if (accepted.gpu) apply({ type: "gpu", ops: accepted.gpu.ops, bytes: accepted.gpu.bytes }) } // The post rate (specs/v2/widgets-live.md): a token bucket of `BURST` tokens, refilled at `postsPerSecond`. A // `render` or `draw` post takes a token and goes out at once when nothing waits; otherwise it waits, in place of a // waiting post of its kind (the render, or the draw for its canvas key), and waiting posts go out in order, one per - // token, as tokens come. + // token, as tokens come; a GPU batch waiting among them takes none. const refill = () => { const at = clock.now() current.bucket.tokens = Math.min( @@ -425,8 +466,8 @@ export const LiveWidget = { ? entry.message.type === "render" : entry.message.type === "draw" && entry.key === key, ) - if (index === -1) current.waiting.push({ key, message }) - else current.waiting[index] = { key, message } + if (index === -1) current.waiting.push({ key, message, counted: true }) + else current.waiting[index] = { key, message, counted: true } schedule() } const schedule = () => { @@ -436,9 +477,12 @@ export const LiveWidget = { current.slot = clock.schedule(wait, () => { current.slot = undefined refill() - while (current.waiting.length > 0 && current.bucket.tokens >= 1 - EPSILON && !current.ended) { - current.bucket.tokens -= 1 - apply(current.waiting.shift()!.message) + while (current.waiting.length > 0 && !current.ended) { + const next = current.waiting[0]! + if (next.counted && current.bucket.tokens < 1 - EPSILON) break + if (next.counted) current.bucket.tokens -= 1 + current.waiting.shift() + send(next.message) } schedule() }) @@ -447,13 +491,15 @@ export const LiveWidget = { const release = () => { current.slot?.() current.slot = undefined - current.waiting.splice(0).forEach((entry) => apply(entry.message)) + current.waiting.splice(0).forEach((entry) => send(entry.message)) } const apply = (accepted: LiveMessage) => { if (accepted.type === "render") current.view = accepted.node if (accepted.type === "draw") drawings.set(accepted.id, accepted.commands) if (accepted.type === "frame") current.requested = true + if (accepted.type === "frame" && accepted.gpu) replay(accepted.gpu, true) + if (accepted.type === "gpu") replay(accepted, false) options?.onMessage?.(accepted) if (accepted.type === "submit") return end({ type: "submit", value: accepted.value }) if (accepted.type === "dismiss") return end({ type: "dismiss" }) @@ -480,7 +526,10 @@ export const LiveWidget = { if ("error" in checked) return void fail("invalid", checked.error) return { type: "draw", id: message.id as string, commands: checked.commands } } - if (message.type === "frame") return { type: "frame" } + if (message.type === "frame") + return isRecord(message.gpu) ? { type: "frame", gpu: message.gpu as unknown as GpuBatch } : { type: "frame" } + if (message.type === "gpu") + return { type: "gpu", ops: message.ops as GpuBatch["ops"], bytes: message.bytes as ArrayBuffer } if (message.type === "submit") return { type: "submit", value: message.value ?? null } if (message.type === "dismiss") return { type: "dismiss" } if (message.type === "send") return { type: "send", value: message.value ?? null, wake: message.wake !== false } @@ -508,6 +557,7 @@ export const LiveWidget = { return current.pausedAt !== undefined }, warnings, + gpuErrors, get ended() { return current.ended }, @@ -519,6 +569,11 @@ export const LiveWidget = { deliver({ type: "frame", frame }) return true }, + canvas: (key, width, height) => deliver({ type: "canvas", key, width, height }), + loseDevice: (reason) => { + gpu.lost() + deliver({ type: "gpu", lost: reason }) + }, pause: () => { if (current.pausedAt !== undefined || current.ended) return current.pausedAt = clock.now() @@ -554,7 +609,11 @@ export const LiveWidget = { Runtime.make({ limits: { maxValueDepth: MAX_VALUE_DEPTH }, globals: () => ({ - __input: Host.fn(() => ({ data })), + __input: Host.fn(() => + options?.gpu === false + ? { data } + : { data, gpu: { available: true, format: options?.gpu?.format ?? "rgba8unorm" } }, + ), __host: { post: located((args) => post(args)), receive: located((args, call) => (checked("receive", args), receive(call.signal)), { diff --git a/packages/widget/src/node.ts b/packages/widget/src/node.ts index 395d14c3ac9..717a8726b8b 100644 --- a/packages/widget/src/node.ts +++ b/packages/widget/src/node.ts @@ -112,6 +112,8 @@ export interface Canvas { readonly wgsl?: string /** With `wgsl`: up to 16 floats, available as `widget.values` (4 vec4f, row-major, zero padded). */ readonly values?: ReadonlyArray + /** A live program draws it with `widget.gpu` (widgets-gpu.md); it needs a `key`. */ + readonly gpu?: true /** An image src shown where the canvas can't be drawn (a terminal, a shader that fails to compile). */ readonly poster?: string /** Set by the prelude when the canvas has an `onPointer` handler: only then does it take pointer input. */ @@ -451,11 +453,16 @@ export const Node: Schema.Codec = Schema.Union([ values: optional(Schema.Array(Schema.Finite).check(Schema.isMaxLength(16))), poster: optional(Schema.String), pointer: optional(Schema.Literal(true)), + gpu: optional(Schema.Literal(true)), }).check( Schema.makeFilter( - (canvas: { readonly wgsl?: string; readonly values?: ReadonlyArray }) => + (canvas: { readonly wgsl?: string; readonly values?: ReadonlyArray; readonly gpu?: true }) => canvas.values === undefined || canvas.wgsl !== undefined || "`values` need `wgsl`", ), + Schema.makeFilter( + (canvas: { readonly wgsl?: string; readonly gpu?: true }) => + canvas.gpu === undefined || canvas.wgsl === undefined || "`gpu` and `wgsl` exclude each other", + ), ), ]) diff --git a/packages/widget/src/prelude.js b/packages/widget/src/prelude.js index 9ec6e263c4d..c2224eadf8f 100644 --- a/packages/widget/src/prelude.js +++ b/packages/widget/src/prelude.js @@ -357,6 +357,609 @@ function __widget_dispatch(state, event, data) { return event.type === "press" ? entry.handler(state) : entry.handler(state, value) } +// WebGPU's flags, for the subset widgets have (specs/v2/widgets-gpu.md). +const GPUBufferUsage = Object.freeze({ COPY_SRC: 4, COPY_DST: 8, INDEX: 16, VERTEX: 32, UNIFORM: 64, STORAGE: 128 }) +const GPUTextureUsage = Object.freeze({ COPY_SRC: 1, COPY_DST: 2, TEXTURE_BINDING: 4, RENDER_ATTACHMENT: 16 }) +const GPUShaderStage = Object.freeze({ VERTEX: 1, FRAGMENT: 2 }) +const GPUColorWrite = Object.freeze({ RED: 1, GREEN: 2, BLUE: 4, ALPHA: 8, ALL: 15 }) + +// `widget.gpu` (specs/v2/widgets-gpu.md): WebGPU's shapes, recorded as ops and bytes into the batch the host replays. +// `start` takes the live input's `gpu`; `take` gives the pending batch (or null); `accept` takes the host's `canvas` +// and `gpu` messages; `watched` tells whether the program waits on the device's loss, which `watch` is told of. +function __widget_gpu(watch) { + const LIMITS = Object.freeze({ + maxTextureDimension2D: 4096, + maxTextureArrayLayers: 256, + maxBindGroups: 4, + maxBindingsPerBindGroup: 1000, + maxDynamicUniformBuffersPerPipelineLayout: 8, + maxDynamicStorageBuffersPerPipelineLayout: 4, + maxSampledTexturesPerShaderStage: 16, + maxSamplersPerShaderStage: 16, + maxStorageBuffersPerShaderStage: 8, + maxUniformBuffersPerShaderStage: 12, + maxUniformBufferBindingSize: 65536, + maxStorageBufferBindingSize: 67108864, + minUniformBufferOffsetAlignment: 256, + minStorageBufferOffsetAlignment: 256, + maxVertexBuffers: 8, + maxBufferSize: 67108864, + maxVertexAttributes: 16, + maxVertexBufferArrayStride: 2048, + maxInterStageShaderVariables: 16, + maxColorAttachments: 8, + maxColorAttachmentBytesPerSample: 32, + }) + // `device`: the live device or null, and `lost` its resolver; `ops` and `bytes` (`length` of them used): the pending + // batch. `sizes`: the GPU canvases' sizes by key, from the host; `contexts` by key. + const gpu = { + watched: false, + available: false, + format: "rgba8unorm", + next: 1, + device: null, + lost: null, + ops: [], + bytes: null, + length: 0, + } + const sizes = {} + const contexts = {} + const handle = () => gpu.next++ + // Records an op for `device`; a lost device's calls, and every call without a GPU, record nothing. + const record = (device, op) => { + if (gpu.available && device === gpu.device) gpu.ops.push(op) + } + const kind = (value, expected, what) => { + if (!value || value.__kind !== expected) throw new TypeError(what + " must be a GPU " + expected) + return value.__handle + } + const object = (value, what) => { + if (!value || typeof value !== "object") throw new TypeError(what + " must be an object") + return value + } + // Appends `data`'s bytes (an ArrayBuffer, or a typed array whose offset and size count elements) to the batch and + // returns `[byteOffset, byteLength]`. They are copied now, as WebGPU's writes copy them. + const append = (data, offset, size) => { + const view = ArrayBuffer.isView(data) + if (!view && !(data instanceof ArrayBuffer)) throw new TypeError("data must be an ArrayBuffer or a typed array") + const unit = view ? data.BYTES_PER_ELEMENT : 1 + const skip = (offset ?? 0) * unit + const length = size === undefined ? data.byteLength - skip : size * unit + const bytes = new Uint8Array(view ? data.buffer : data, (view ? data.byteOffset : 0) + skip, length) + if (!gpu.bytes || gpu.length + length > gpu.bytes.length) { + const grown = new Uint8Array(Math.max(1024, (gpu.length + length) * 2)) + if (gpu.bytes) grown.set(new Uint8Array(gpu.bytes.buffer, 0, gpu.length)) + gpu.bytes = grown + } + gpu.bytes.set(bytes, gpu.length) + gpu.length += length + return [gpu.length - length, length] + } + // An origin or extent as WebGPU takes one (an array, or an object), as `[x, y, z]`. + const triple = (value, fill) => + Array.isArray(value) + ? [value[0] ?? fill[0], value[1] ?? fill[1], value[2] ?? fill[2]] + : value && typeof value === "object" + ? [ + value.x ?? value.width ?? fill[0], + value.y ?? value.height ?? fill[1], + value.z ?? value.depthOrArrayLayers ?? fill[2], + ] + : fill + const extent = (value) => triple(value, [undefined, 1, 1]) + const origin = (value) => triple(value, [0, 0, 0]) + const component = (value) => ({ + operation: value?.operation ?? "add", + srcFactor: value?.srcFactor ?? "one", + dstFactor: value?.dstFactor ?? "zero", + }) + + const texture = (device, h, props) => { + // Views are immutable, so equal ones are one handle: a frame's view of the canvas too. + const views = {} + return { + __kind: "texture", + __handle: h, + __device: device, + ...props, + createView: (descriptor) => { + const d = descriptor ?? {} + const layers = props.depthOrArrayLayers + const dimension = d.dimension ?? (layers > 1 ? "2d-array" : "2d") + const base = d.baseArrayLayer ?? 0 + const mip = d.baseMipLevel ?? 0 + const normal = { + dimension, + baseMipLevel: mip, + mipLevelCount: d.mipLevelCount ?? props.mipLevelCount - mip, + baseArrayLayer: base, + arrayLayerCount: d.arrayLayerCount ?? (dimension === "2d" ? 1 : dimension === "cube" ? 6 : layers - base), + } + const key = JSON.stringify(normal) + if (views[key]) return views[key] + const view = { __kind: "view", __handle: handle(), __device: device } + record(device, ["view", view.__handle, h, normal]) + views[key] = view + return view + }, + destroy: () => record(device, ["destroy", h]), + } + } + + const pass = (encoder, descriptor) => { + const d = object(descriptor, "beginRenderPass's descriptor") + const depth = d.depthStencilAttachment + const clear = (value) => + Array.isArray(value) ? [...value] : value ? [value.r, value.g, value.b, value.a] : [0, 0, 0, 0] + encoder.add( + [ + "pass", + { + colorAttachments: (d.colorAttachments ?? []).map((a) => + a + ? { + view: kind(a.view, "view", "a color attachment's view"), + resolveTarget: a.resolveTarget ? kind(a.resolveTarget, "view", "a resolveTarget") : null, + clearValue: clear(a.clearValue), + loadOp: a.loadOp, + storeOp: a.storeOp, + } + : null, + ), + depthStencilAttachment: depth + ? { + view: kind(depth.view, "view", "the depth attachment's view"), + depthClearValue: depth.depthClearValue ?? null, + depthLoadOp: depth.depthLoadOp ?? null, + depthStoreOp: depth.depthStoreOp ?? null, + depthReadOnly: depth.depthReadOnly ?? false, + } + : null, + }, + ], + true, + ) + const open = { ended: false } + const add = (op) => (open.ended ? encoder.fail("the render pass has ended") : encoder.add(op, true)) + return { + setPipeline: (pipeline) => add(["setPipeline", kind(pipeline, "renderPipeline", "setPipeline's pipeline")]), + setBindGroup: (index, group, offsets) => + add([ + "setBindGroup", + index, + kind(group, "bindGroup", "setBindGroup's group"), + offsets ? Array.from(offsets) : [], + ]), + setVertexBuffer: (slot, buffer, offset, size) => + add(["setVertexBuffer", slot, kind(buffer, "buffer", "setVertexBuffer's buffer"), offset ?? 0, size ?? -1]), + setIndexBuffer: (buffer, format, offset, size) => + add(["setIndexBuffer", kind(buffer, "buffer", "setIndexBuffer's buffer"), format, offset ?? 0, size ?? -1]), + setViewport: (x, y, width, height, minDepth, maxDepth) => + add(["setViewport", x, y, width, height, minDepth, maxDepth]), + setScissorRect: (x, y, width, height) => add(["setScissorRect", x, y, width, height]), + draw: (count, instances, first, firstInstance) => + add(["draw", count, instances ?? 1, first ?? 0, firstInstance ?? 0]), + drawIndexed: (count, instances, first, base, firstInstance) => + add(["drawIndexed", count, instances ?? 1, first ?? 0, base ?? 0, firstInstance ?? 0]), + end: () => { + if (open.ended) return encoder.fail("the render pass has ended") + open.ended = true + encoder.add(["end"], true) + encoder.close() + }, + } + } + + // A command encoder keeps its commands until `queue.submit` takes its command buffer. Misuse that WebGPU reports as + // a validation error goes into the batch as an `error` op, once per encoder, and the encoder records nothing more. + const encoder = (device) => { + const state = { ops: gpu.available ? [] : null, pass: false, finished: false, failed: false } + const self = { + add: (op, inPass) => { + if (state.failed) return + if (state.finished) return self.fail("the command encoder is finished") + if (state.pass && !inPass) return self.fail("a render pass is open on this command encoder") + state.ops?.push(op) + }, + close: () => (state.pass = false), + fail: (message) => { + if (state.failed) return + state.failed = true + record(device, ["error", message]) + }, + } + const dead = { add: () => {}, fail: () => {}, close: () => {} } + return { + __kind: "encoder", + beginRenderPass: (descriptor) => { + if (state.finished) self.fail("the command encoder is finished") + else if (state.pass) self.fail("a render pass is open on this command encoder") + if (state.failed) return pass(dead, descriptor) + state.pass = true + return pass(self, descriptor) + }, + copyBufferToBuffer: (source, sourceOffset, destination, destinationOffset, size) => + self.add([ + "copyBufferToBuffer", + kind(source, "buffer", "the source"), + sourceOffset, + kind(destination, "buffer", "the destination"), + destinationOffset, + size, + ]), + copyBufferToTexture: (source, destination, size) => + self.add([ + "copyBufferToTexture", + kind(source?.buffer, "buffer", "the source's buffer"), + source.offset ?? 0, + source.bytesPerRow, + source.rowsPerImage ?? null, + kind(destination?.texture, "texture", "the destination's texture"), + destination.mipLevel ?? 0, + origin(destination.origin), + extent(size), + ]), + copyTextureToTexture: (source, destination, size) => + self.add([ + "copyTextureToTexture", + kind(source?.texture, "texture", "the source's texture"), + source.mipLevel ?? 0, + origin(source.origin), + kind(destination?.texture, "texture", "the destination's texture"), + destination.mipLevel ?? 0, + origin(destination.origin), + extent(size), + ]), + finish: () => { + if (state.pass) self.fail("a render pass is open on this command encoder") + else if (state.finished) self.fail("the command encoder is finished") + state.finished = true + return { __kind: "commandBuffer", ops: state.failed ? null : state.ops, submitted: false } + }, + } + } + + const createDevice = () => { + const lost = new Promise((resolve) => (gpu.lost = resolve)) + const device = { + __kind: "device", + limits: LIMITS, + features: new Set(), + // Reading it waits for the loss: the host's messages keep coming until then. + get lost() { + gpu.watched = true + watch() + return lost + }, + createBuffer: (descriptor) => { + const d = object(descriptor, "createBuffer's descriptor") + const h = handle() + record(device, ["buffer", h, d.size, d.usage]) + return { + __kind: "buffer", + __handle: h, + __device: device, + size: d.size, + usage: d.usage, + destroy: () => record(device, ["destroy", h]), + } + }, + createTexture: (descriptor) => { + const d = object(descriptor, "createTexture's descriptor") + const [width, height, depthOrArrayLayers] = extent(d.size) + const props = { + width, + height, + depthOrArrayLayers, + format: d.format, + usage: d.usage, + mipLevelCount: d.mipLevelCount ?? 1, + sampleCount: d.sampleCount ?? 1, + dimension: "2d", + } + const h = handle() + if (d.dimension !== undefined && d.dimension !== "2d") + record(device, ["error", 'a texture\'s dimension must be "2d"']) + record(device, [ + "texture", + h, + width, + height, + depthOrArrayLayers, + d.format, + d.usage, + props.mipLevelCount, + props.sampleCount, + ]) + return texture(device, h, props) + }, + createSampler: (descriptor) => { + const d = descriptor ?? {} + const h = handle() + record(device, [ + "sampler", + h, + { + addressModeU: d.addressModeU ?? "clamp-to-edge", + addressModeV: d.addressModeV ?? "clamp-to-edge", + addressModeW: d.addressModeW ?? "clamp-to-edge", + magFilter: d.magFilter ?? "nearest", + minFilter: d.minFilter ?? "nearest", + mipmapFilter: d.mipmapFilter ?? "nearest", + lodMinClamp: d.lodMinClamp ?? 0, + lodMaxClamp: d.lodMaxClamp ?? 32, + compare: d.compare ?? null, + maxAnisotropy: d.maxAnisotropy ?? 1, + }, + ]) + return { __kind: "sampler", __handle: h, __device: device } + }, + createShaderModule: (descriptor) => { + const h = handle() + record(device, ["shader", h, object(descriptor, "createShaderModule's descriptor").code]) + return { __kind: "shader", __handle: h, __device: device } + }, + createBindGroupLayout: (descriptor) => { + const h = handle() + const entries = (object(descriptor, "createBindGroupLayout's descriptor").entries ?? []).map((e) => ({ + binding: e.binding, + visibility: e.visibility, + buffer: e.buffer + ? { + type: e.buffer.type ?? "uniform", + hasDynamicOffset: e.buffer.hasDynamicOffset ?? false, + minBindingSize: e.buffer.minBindingSize ?? 0, + } + : null, + sampler: e.sampler ? { type: e.sampler.type ?? "filtering" } : null, + texture: e.texture + ? { + sampleType: e.texture.sampleType ?? "float", + viewDimension: e.texture.viewDimension ?? "2d", + multisampled: e.texture.multisampled ?? false, + } + : null, + })) + record(device, ["bindGroupLayout", h, { entries }]) + return { __kind: "bindGroupLayout", __handle: h, __device: device } + }, + createPipelineLayout: (descriptor) => { + const h = handle() + const layouts = (object(descriptor, "createPipelineLayout's descriptor").bindGroupLayouts ?? []).map((l) => + kind(l, "bindGroupLayout", "a bind group layout"), + ) + record(device, ["pipelineLayout", h, layouts]) + return { __kind: "pipelineLayout", __handle: h, __device: device } + }, + createBindGroup: (descriptor) => { + const d = object(descriptor, "createBindGroup's descriptor") + const h = handle() + // A buffer, a buffer binding, a sampler or a texture view. + const resource = (r) => + r?.__kind === "sampler" + ? { sampler: r.__handle } + : r?.__kind === "view" + ? { view: r.__handle } + : r?.__kind === "buffer" + ? { buffer: r.__handle, offset: 0, size: -1 } + : { + buffer: kind(r?.buffer, "buffer", "a bind group entry's resource"), + offset: r.offset ?? 0, + size: r.size ?? -1, + } + record(device, [ + "bindGroup", + h, + { + layout: kind(d.layout, "bindGroupLayout", "createBindGroup's layout"), + entries: (d.entries ?? []).map((e) => ({ binding: e.binding, resource: resource(e.resource) })), + }, + ]) + return { __kind: "bindGroup", __handle: h, __device: device } + }, + createRenderPipeline: (descriptor) => { + const d = object(descriptor, "createRenderPipeline's descriptor") + const h = handle() + const vertex = object(d.vertex, "the vertex stage") + const fragment = d.fragment + const depth = d.depthStencil + record(device, [ + "renderPipeline", + h, + { + layout: d.layout === "auto" ? "auto" : kind(d.layout, "pipelineLayout", "the layout"), + vertex: { + module: kind(vertex.module, "shader", "the vertex module"), + entryPoint: vertex.entryPoint ?? null, + buffers: (vertex.buffers ?? []).map((b) => + b + ? { + arrayStride: b.arrayStride, + stepMode: b.stepMode ?? "vertex", + attributes: (b.attributes ?? []).map((a) => ({ + format: a.format, + offset: a.offset, + shaderLocation: a.shaderLocation, + })), + } + : null, + ), + }, + fragment: fragment + ? { + module: kind(fragment.module, "shader", "the fragment module"), + entryPoint: fragment.entryPoint ?? null, + targets: (fragment.targets ?? []).map((t) => + t + ? { + format: t.format, + blend: t.blend ? { color: component(t.blend.color), alpha: component(t.blend.alpha) } : null, + writeMask: t.writeMask ?? 15, + } + : null, + ), + } + : null, + primitive: { + topology: d.primitive?.topology ?? "triangle-list", + stripIndexFormat: d.primitive?.stripIndexFormat ?? null, + frontFace: d.primitive?.frontFace ?? "ccw", + cullMode: d.primitive?.cullMode ?? "none", + }, + depthStencil: depth + ? { + format: depth.format, + depthWriteEnabled: depth.depthWriteEnabled ?? false, + depthCompare: depth.depthCompare ?? "always", + } + : null, + multisample: { + count: d.multisample?.count ?? 1, + mask: d.multisample?.mask ?? 4294967295, + alphaToCoverageEnabled: d.multisample?.alphaToCoverageEnabled ?? false, + }, + }, + ]) + // `layout: "auto"`'s layouts: one handle per index. + const layouts = {} + return { + __kind: "renderPipeline", + __handle: h, + __device: device, + getBindGroupLayout: (index) => { + if (layouts[index]) return layouts[index] + const layout = { __kind: "bindGroupLayout", __handle: handle(), __device: device } + record(device, ["autoLayout", layout.__handle, h, index]) + layouts[index] = layout + return layout + }, + } + }, + createCommandEncoder: () => encoder(device), + queue: { + writeBuffer: (buffer, offset, data, dataOffset, size) => { + const h = kind(buffer, "buffer", "writeBuffer's buffer") + if (gpu.available && device === gpu.device) + gpu.ops.push(["writeBuffer", h, offset, ...append(data, dataOffset, size)]) + }, + writeTexture: (destination, data, layout, size) => { + const h = kind(destination?.texture, "texture", "writeTexture's texture") + if (!gpu.available || device !== gpu.device) return + const skip = layout?.offset ?? 0 + const [byteOffset, byteLength] = append(data) + gpu.ops.push([ + "writeTexture", + h, + destination.mipLevel ?? 0, + origin(destination.origin), + byteOffset + skip, + byteLength - skip, + layout?.bytesPerRow, + layout?.rowsPerImage ?? null, + extent(size), + ]) + }, + submit: (buffers) => { + for (const buffer of buffers) { + kind(buffer, "commandBuffer", "submit's command buffer") + if (buffer.submitted) { + record(device, ["error", "a command buffer can be submitted once"]) + continue + } + buffer.submitted = true + if (buffer.ops && gpu.available && device === gpu.device) for (const op of buffer.ops) gpu.ops.push(op) + } + record(device, ["submit"]) + }, + }, + } + return device + } + + const api = { + get available() { + return gpu.available + }, + getPreferredCanvasFormat: () => gpu.format, + // One device per widget, until it is lost. + requestDevice: async () => { + if (!gpu.device) gpu.device = createDevice() + return gpu.device + }, + getContext: (key) => { + const name = String(key) + if (contexts[name]) return contexts[name] + const state = { device: null, handle: 0, texture: null } + const context = { + get width() { + return sizes[name]?.width ?? 0 + }, + get height() { + return sizes[name]?.height ?? 0 + }, + configure: (configuration) => { + const c = object(configuration, "configure's configuration") + kind(c.device, "device", "configure's device") + // A new device's context is a new handle; configuring again keeps it. + if (c.device !== state.device) state.handle = handle() + state.device = c.device + record(c.device, ["context", state.handle, name, c.format, c.alphaMode ?? "opaque"]) + const props = { + format: c.format, + usage: 16, + mipLevelCount: 1, + sampleCount: 1, + depthOrArrayLayers: 1, + dimension: "2d", + } + state.texture = texture(c.device, state.handle, props) + // The canvas's texture is the client's: destroying it does nothing. + state.texture.destroy = () => {} + Object.defineProperty(state.texture, "width", { get: () => context.width }) + Object.defineProperty(state.texture, "height", { get: () => context.height }) + }, + getCurrentTexture: () => { + if (!state.texture) throw new Error("configure the context before getCurrentTexture") + return state.texture + }, + } + contexts[name] = context + return context + }, + } + + return { + api, + start: (input) => { + gpu.available = input?.available === true + if (input?.format === "bgra8unorm" || input?.format === "rgba8unorm") gpu.format = input.format + }, + take: () => { + if (gpu.ops.length === 0) return null + const batch = { ops: gpu.ops, bytes: gpu.bytes ? gpu.bytes.buffer.slice(0, gpu.length) : new ArrayBuffer(0) } + gpu.ops = [] + gpu.length = 0 + return batch + }, + watched: () => gpu.watched && gpu.available && gpu.device !== null, + accept: (message) => { + if (message.type === "canvas") { + sizes[String(message.key)] = { width: message.width, height: message.height } + return + } + if (message.type !== "gpu" || message.lost === undefined || !gpu.device) return + // Every handle is gone: the lost device's calls record nothing, and `requestDevice` makes a new one. + const resolve = gpu.lost + gpu.device = null + gpu.watched = false + gpu.ops = [] + gpu.length = 0 + resolve({ reason: message.lost, message: typeof message.message === "string" ? message.message : "" }) + }, + } +} + // Live mode (specs/v2/widgets-live.md): `main(data)` runs once, on the host's `__host.post`, `__host.receive`, // `__host.sleep`, `__host.now` and `__host.fetch`. While the view has handlers, hooks are registered or a frame is // awaited, a pump receives client messages and calls handlers and hooks between the program's awaits. @@ -375,9 +978,21 @@ const widget = (() => { reject: null, } const api = {} + // `widget.gpu`, made for a live run only: steps never pay for it. + const made = { gpu: null } + const gpu = () => (made.gpu ??= __widget_gpu(() => pump())) const post = (message) => (live.done ? undefined : __host.post(message)) + // The pending GPU batch goes out on its own before any wait on the host but a frame request, which carries it. + const flush = () => { + const batch = gpu().take() + if (batch) post({ type: "gpu", ops: batch.ops, bytes: batch.bytes }) + } const wanted = () => - !live.done && (live.waiting.length > 0 || live.interactive || Object.values(hooks).some((list) => list.length > 0)) + !live.done && + (live.waiting.length > 0 || + live.interactive || + gpu().watched() || + Object.values(hooks).some((list) => list.length > 0)) const fail = (error) => live.reject?.(error) // Runs a handler or hook; an async one that rejects fails the program like a throw. const call = (handler, ...args) => { @@ -409,6 +1024,7 @@ const widget = (() => { } const accept = (message) => { if (message.type === "event") return dispatch(message.event ?? {}) + if (message.type === "canvas" || message.type === "gpu") return gpu().accept(message) if (message.type === "resumed") return emit("resumed", message.pausedMs) if (message.type !== "frame") return live.requested = false @@ -424,7 +1040,10 @@ const widget = (() => { if (live.pumping) return live.pumping = true try { - while (wanted()) accept(await __host.receive()) + while (wanted()) { + flush() + accept(await __host.receive()) + } } catch (error) { fail(error) } finally { @@ -433,9 +1052,13 @@ const widget = (() => { } } const request = () => { - if (live.requested || live.frame) return + const batch = gpu().take() + if (live.requested || live.frame) { + if (batch) post({ type: "gpu", ops: batch.ops, bytes: batch.bytes }) + return + } live.requested = true - post({ type: "frame" }) + post(batch ? { type: "frame", gpu: batch } : { type: "frame" }) } const take = () => { const frame = live.frame @@ -490,7 +1113,10 @@ const widget = (() => { if (index !== -1) hooks[kind].splice(index, 1) } }, - sleep: (ms) => __host.sleep(ms), + sleep: (ms) => { + flush() + return __host.sleep(ms) + }, now: () => __host.now(), submit: (value) => { post({ type: "submit", value: value ?? null }) @@ -501,6 +1127,7 @@ const widget = (() => { live.done = true }, fetch: async (url, init) => { + flush() const request = { url: String(url), method: init?.method ?? "GET", headers: init?.headers ?? {} } if (init?.body !== undefined) request.body = String(init.body) try { @@ -513,11 +1140,15 @@ const widget = (() => { capturePointer: () => post({ type: "capture", value: true }), releasePointer: () => post({ type: "capture", value: false }), }) + Object.defineProperty(api, "gpu", { get: () => gpu().api, enumerable: true }) // Runs `main`, then keeps the widget interactive while its view has handlers or hooks are registered. - api.__run = async (data) => { + // `gpu`: the live input's `{ available, format }` (specs/v2/widgets-gpu.md), none without a GPU. + api.__run = async (data, gpuInput) => { + gpu().start(gpuInput) const failed = new Promise((_, reject) => (live.reject = reject)) failed.catch(() => {}) await Promise.race([main(data), failed]) + flush() if (!wanted()) return await Promise.race([new Promise((resolve) => (live.idle = resolve)), failed]) } @@ -526,6 +1157,6 @@ const widget = (() => { // Hosts run `return await __widget_live(__input(), true)` (specs/v2/widgets.md, Native hosts). async function __widget_live(input) { - await widget.__run(input.data) + await widget.__run(input.data, input.gpu) return null } diff --git a/packages/widget/src/source.ts b/packages/widget/src/source.ts index f0f72cd6c92..8d37db91c4e 100644 --- a/packages/widget/src/source.ts +++ b/packages/widget/src/source.ts @@ -1,7 +1,7 @@ // Generated by script/generate.ts from prelude.js and widget-templates/*.js. Do not edit; run `bun run generate`. export const prelude = - 'const __widget_protocol = 2\n// Widget prelude (specs/v2/widgets.md). A widget program is this prelude, a newline, then the widget template source.\n// The first line is the prelude<->host contract\'s version, which hosts read before running the program. Hosts\n// (specs/v2/widgets.md, Native hosts) run `\\nreturn __widget_native_step(__input())` with `__input` and\n// `__widget_emit` as host globals, and live programs with `__widget_live(__input(), true)`: they build the tree clients\n// get themselves, so the prelude hands them views as built and finds handlers by their ids\' paths.\n\nconst ui = (() => {\n // Children may nest arrays and contain null, undefined or false, so widget templates can write `cond && node` and `...list`;\n // the host flattens them when it turns the view into the tree clients get.\n const container = (type) => (props, nodes) =>\n Array.isArray(props) ? { type, children: props } : { ...props, type, children: nodes ?? [] }\n const option = (item) => (typeof item === "string" ? { value: item, label: item } : item)\n return {\n column: container("column"),\n row: container("row"),\n carousel: container("carousel"),\n card: container("card"),\n stack: container("stack"),\n text: (text, props) => ({ ...props, type: "text", text: String(text) }),\n markdown: (text) => ({ type: "markdown", text: String(text) }),\n image: (src, props) => ({ ...props, type: "image", src }),\n button: (label, props) => ({ ...props, type: "button", label: String(label) }),\n checkbox: (label, checked, props) => ({\n ...props,\n type: "checkbox",\n label: String(label),\n checked: checked === true,\n }),\n slider: (props) => ({ ...props, type: "slider" }),\n select: (options, props) => ({ ...props, type: "select", options: (options ?? []).map(option) }),\n input: (value, props) => ({ ...props, type: "input", value: value ?? "" }),\n divider: () => ({ type: "divider" }),\n canvas: (props) => ({ ...props, type: "canvas" }),\n draw: () => new __WidgetDraw(),\n }\n})()\n\n// Interactive nodes: the event clients send for them and the handler prop that takes it.\nconst __WIDGET_CONTROLS = {\n button: { event: "press", handler: "onPress" },\n card: { event: "press", handler: "onPress" },\n checkbox: { event: "change", handler: "onChange" },\n slider: { event: "change", handler: "onChange" },\n select: { event: "change", handler: "onChange" },\n input: { event: "change", handler: "onChange" },\n carousel: { event: "change", handler: "onChange" },\n canvas: { event: "pointer", handler: "onPointer" },\n}\n\n// A view nests at most 100 levels (specs/v2/widgets.md, Keys and depth): the root is level 1, the items of a node\'s\n// children one level below it, and the items of an array among them one level below that array.\nconst __WIDGET_LEVELS = 100\nconst __WIDGET_DEEP = "The view nests more than 100 levels"\n\n// Whether `list`, the items at `level`, holds a node or an array below the last level. It runs only for a view that\n// failed to cross to the host, and goes no deeper than that level.\nfunction __widget_deep(list, level) {\n for (let index = 0; index < list.length; index++) {\n const item = list[index]\n if (!item || typeof item !== "object") continue\n if (level > __WIDGET_LEVELS) return true\n if (\n Array.isArray(item)\n ? __widget_deep(item, level + 1)\n : item.children !== undefined && __widget_deep(__widget_list(item.children), level + 1)\n )\n return true\n }\n return false\n}\n\n// The handler of the node with id `id` in the view `root` as built, found by following the id\'s path (the host assigns\n// the ids, specs/v2/widgets.md, Native hosts). Where two siblings share a segment (a key that looks like a repeat,\n// `k~2`), the later one\'s subtree wins.\nfunction __widget_find(root, id) {\n if (!root || typeof root !== "object" || Array.isArray(root)) return undefined\n const segments = String(id).split("/")\n const named = root.key !== undefined && root.key !== null\n if (segments[0] !== (named ? ":" + encodeURIComponent(String(root.key)) : "0")) return undefined\n return __widget_found(root, segments, 1)\n}\n\nfunction __widget_found(node, segments, at) {\n if (at === segments.length) {\n const control = __WIDGET_CONTROLS[node.type]\n const handler = control ? node[control.handler] : undefined\n if (typeof handler !== "function") return undefined\n if (node.type !== "carousel" || node.children === undefined) return { event: control.event, handler, node }\n // A carousel\'s change is checked against its pages: its children as flattened.\n return {\n event: control.event,\n handler,\n node: { ...node, children: __widget_items(__widget_list(node.children), []) },\n }\n }\n if (node.children === undefined) return undefined\n const matches = []\n __widget_segments(__widget_list(node.children), "", segments[at], matches, null)\n for (let index = matches.length - 1; index >= 0; index--) {\n const found = __widget_found(matches[index], segments, at + 1)\n if (found) return found\n }\n return undefined\n}\n\nfunction __widget_list(children) {\n return Array.isArray(children) ? children : [children]\n}\n\nfunction __widget_items(list, into) {\n for (let index = 0; index < list.length; index++) {\n const child = list[index]\n if (Array.isArray(child)) __widget_items(child, into)\n else if (child) into.push(child)\n }\n return into\n}\n\n// Pushes onto `into` the children in `list` whose path segment is `segment`, numbering them as hosts do.\nfunction __widget_segments(list, prefix, segment, into, seen) {\n for (let index = 0; index < list.length; index++) {\n const child = list[index]\n if (!child || typeof child !== "object") continue\n if (Array.isArray(child)) {\n seen = __widget_segments(child, prefix + index + ".", segment, into, seen)\n continue\n }\n let next\n if (child.key !== undefined && child.key !== null) {\n next = ":" + encodeURIComponent(String(child.key))\n if (seen === null) seen = new Map()\n const count = (seen.get(next) ?? 0) + 1\n seen.set(next, count)\n if (count > 1) next = next + "~" + count\n } else next = prefix + index\n if (next === segment) into.push(child)\n }\n return seen\n}\n\n// The value a handler gets for a client event, checked against the node; undefined drops the event.\nfunction __widget_value(entry, value) {\n const node = entry.node\n if (entry.event === "press") return true\n if (entry.event === "pointer") return __widget_pointer(value)\n if (node.type === "checkbox") return typeof value === "boolean" ? value : undefined\n if (node.type === "input") return typeof value === "string" ? value : undefined\n if (node.type === "slider") {\n const number = Number(value)\n if (typeof value !== "number" || !Number.isFinite(number)) return undefined\n return Math.min(node.max ?? number, Math.max(node.min ?? number, number))\n }\n if (node.type === "carousel") {\n const index = Number(value)\n return Number.isInteger(index) && index >= 0 && index < node.children.length ? index : undefined\n }\n if (node.type === "select") {\n const known = (node.options ?? []).map((option) => option.value)\n if (node.multiple) return Array.isArray(value) ? value.filter((item) => known.includes(item)) : undefined\n return known.includes(value) ? value : undefined\n }\n return undefined\n}\n\n// The full-screen close button\'s area a client reports (widgets-fullscreen.md), or null.\nfunction __widget_rect(value) {\n if (!value || typeof value !== "object") return null\n const fields = [value.x, value.y, value.width, value.height]\n if (!fields.every((field) => typeof field === "number" && Number.isFinite(field))) return null\n return { x: value.x, y: value.y, width: value.width, height: value.height }\n}\n\n// A pointer event\'s value: absolute `{ kind, x, y, width, height, close? }`, or `{ kind, dx, dy, button }` under\n// capture. `close` is the full-screen close button\'s area in the node\'s coordinates, when it overlaps the node.\nfunction __widget_pointer(value) {\n if (!value || typeof value !== "object" || !["down", "move", "up"].includes(value.kind)) return undefined\n const number = (field) => (typeof field === "number" && Number.isFinite(field) ? field : 0)\n if (typeof value.x !== "number" && (typeof value.dx === "number" || typeof value.button === "number"))\n return { kind: value.kind, dx: number(value.dx), dy: number(value.dy), button: number(value.button) }\n const close = __widget_rect(value.close)\n return {\n kind: value.kind,\n x: number(value.x),\n y: number(value.y),\n width: number(value.width),\n height: number(value.height),\n ...(close ? { close } : {}),\n }\n}\n\nfunction __widget_key(value) {\n if (!value || typeof value !== "object" || (value.kind !== "down" && value.kind !== "up")) return undefined\n return {\n kind: value.kind,\n key: String(value.key ?? ""),\n code: String(value.code ?? ""),\n repeat: value.repeat === true,\n shift: value.shift === true,\n alt: value.alt === true,\n ctrl: value.ctrl === true,\n meta: value.meta === true,\n }\n}\n\n// Draw command builder for `draw(state, data, frame)`. It runs every frame, so it only pushes compact arrays. A paint\n// may be a color string: the fill of a shape, the stroke of a line. No paint draws in the "text" color.\nclass __WidgetDraw {\n constructor() {\n this.commands = []\n }\n save() {\n this.commands.push(["save"])\n return this\n }\n restore() {\n this.commands.push(["restore"])\n return this\n }\n translate(x, y) {\n this.commands.push(["translate", x, y])\n return this\n }\n rotate(radians) {\n this.commands.push(["rotate", radians])\n return this\n }\n scale(sx, sy) {\n this.commands.push(["scale", sx, sy ?? sx])\n return this\n }\n alpha(a) {\n this.commands.push(["alpha", a])\n return this\n }\n rect(x, y, w, h, paint) {\n this.commands.push(["rect", x, y, w, h, __widget_fill(paint)])\n return this\n }\n rrect(x, y, w, h, r, paint) {\n this.commands.push(["rrect", x, y, w, h, r, __widget_fill(paint)])\n return this\n }\n circle(cx, cy, r, paint) {\n this.commands.push(["circle", cx, cy, r, __widget_fill(paint)])\n return this\n }\n line(x1, y1, x2, y2, paint) {\n this.commands.push([\n "line",\n x1,\n y1,\n x2,\n y2,\n paint && typeof paint === "object" ? paint : { stroke: paint || "text" },\n ])\n return this\n }\n path(segments, paint) {\n this.commands.push(["path", segments, __widget_fill(paint)])\n return this\n }\n text(x, y, text, style) {\n this.commands.push(["text", x, y, String(text), style ?? {}])\n return this\n }\n image(src, x, y, w, h) {\n this.commands.push(["image", src, x, y, w, h])\n return this\n }\n}\n\nfunction __widget_fill(paint) {\n return paint && typeof paint === "object" ? paint : { fill: paint || "text" }\n}\n\nclass __WidgetResult {\n constructor(kind, value, state) {\n this.kind = kind\n this.value = value\n this.state = state\n }\n}\n\n// What a step handler or hook may return instead of the next state. Each keeps the current state; `send` may set one.\nfunction submit(value) {\n return new __WidgetResult("submit", value ?? null, undefined)\n}\n\nfunction dismiss() {\n return new __WidgetResult("dismiss", undefined, undefined)\n}\n\n// Sends a message to the agent without closing the widget; `wake: false` lets the agent see it only on its next turn.\nfunction send(value, options) {\n return new __WidgetResult("send", { value: value ?? null, wake: options?.wake !== false }, options?.state)\n}\n\n// One step (specs/v2/widgets.md, Native hosts): the view goes to `__widget_emit` as built, and the run\'s result is the\n// rest of the step output (`state`, `submit`, `dismiss`, `send`); a draw\'s commands go to `__widget_emit` too, and\n// the run has no result. A view the host can\'t take because it nests too deep goes as `__widget_emit(null, message)`.\nfunction __widget_native_step(input) {\n const data = input.data\n if (input.phase === "draw") {\n const { id, ...frame } = input.frame ?? {}\n const last = typeof id === "string" ? id.slice(id.lastIndexOf("/") + 1) : ""\n frame.key = last.startsWith(":") ? decodeURIComponent(last.slice(1).replace(/~\\d+$/, "")) : null\n const drawn = typeof draw === "function" ? draw(input.state, data, frame) : undefined\n __widget_emit((drawn instanceof __WidgetDraw ? drawn.commands : drawn) ?? [])\n return\n }\n const output = {}\n if (input.phase === "init") output.state = (typeof init === "function" ? init(data) : undefined) ?? {}\n else {\n const next = __widget_dispatch(input.state, input.event ?? {}, data)\n const result = next instanceof __WidgetResult ? next : undefined\n output.state = result\n ? result.state === undefined\n ? input.state\n : result.state\n : next === undefined\n ? input.state\n : next\n if (result?.kind === "dismiss") output.dismiss = true\n if (result?.kind === "send") output.send = result.value\n if (result?.kind === "submit") output.submit = result.value\n }\n const root = view(output.state, data)\n try {\n __widget_emit(root)\n } catch (error) {\n if (!__widget_deep([root], 1)) throw error\n __widget_emit(null, __WIDGET_DEEP)\n }\n return output\n}\n\n// Routes one client event: system events to the widget template\'s hooks, control events to the handler of the node with\n// that id in the view of the current state. Nothing else sees either; an event nobody takes changes nothing.\nfunction __widget_dispatch(state, event, data) {\n if (event.type === "key") {\n const key = __widget_key(event.value)\n return key && typeof onKey === "function" ? onKey(state, key) : undefined\n }\n if (event.type === "focus") return typeof onFocus === "function" ? onFocus(state, event.value === true) : undefined\n if (event.type === "fullscreen")\n return typeof onFullscreen === "function"\n ? onFullscreen(state, event.value === true, __widget_rect(event.close))\n : undefined\n if (event.type === "capture")\n return typeof onCapture === "function" ? onCapture(state, event.value === true) : undefined\n if (event.type !== "press" && event.type !== "change" && event.type !== "pointer") return undefined\n const entry = __widget_find(view(state, data), event.id)\n if (!entry || entry.event !== event.type) return undefined\n const value = __widget_value(entry, event.value)\n if (value === undefined) return undefined\n return event.type === "press" ? entry.handler(state) : entry.handler(state, value)\n}\n\n// Live mode (specs/v2/widgets-live.md): `main(data)` runs once, on the host\'s `__host.post`, `__host.receive`,\n// `__host.sleep`, `__host.now` and `__host.fetch`. While the view has handlers, hooks are registered or a frame is\n// awaited, a pump receives client messages and calls handlers and hooks between the program\'s awaits.\nconst widget = (() => {\n const hooks = { key: [], focus: [], fullscreen: [], capture: [], resumed: [] }\n const live = {\n frame: null,\n requested: false,\n waiting: [],\n // The last rendered view as built, and whether the host found handlers in it.\n root: undefined,\n interactive: false,\n pumping: false,\n done: false,\n idle: null,\n reject: null,\n }\n const api = {}\n const post = (message) => (live.done ? undefined : __host.post(message))\n const wanted = () =>\n !live.done && (live.waiting.length > 0 || live.interactive || Object.values(hooks).some((list) => list.length > 0))\n const fail = (error) => live.reject?.(error)\n // Runs a handler or hook; an async one that rejects fails the program like a throw.\n const call = (handler, ...args) => {\n const result = handler(...args)\n if (result && typeof result.then === "function") result.then(undefined, fail)\n }\n const emit = (kind, ...values) => hooks[kind].slice().forEach((hook) => call(hook, ...values))\n const dispatch = (event) => {\n if (event.type === "key") {\n const key = __widget_key(event.value)\n if (!key) return\n if (key.kind === "down") api.keys.add(key.code)\n else api.keys.delete(key.code)\n return emit("key", key)\n }\n if (event.type === "focus") {\n if (event.value !== true) api.keys.clear()\n return emit("focus", event.value === true)\n }\n if (event.type === "fullscreen") return emit("fullscreen", event.value === true, __widget_rect(event.close))\n if (event.type === "capture") return emit("capture", event.value === true)\n if (event.type === "pointer") api.pointer = __widget_pointer(event.value) ?? api.pointer\n const entry = __widget_find(live.root, event.id)\n if (!entry || entry.event !== event.type) return\n const value = __widget_value(entry, event.value)\n if (value === undefined) return\n if (event.type === "press") call(entry.handler)\n else call(entry.handler, value)\n }\n const accept = (message) => {\n if (message.type === "event") return dispatch(message.event ?? {})\n if (message.type === "resumed") return emit("resumed", message.pausedMs)\n if (message.type !== "frame") return\n live.requested = false\n live.frame = message.frame\n // Every waiter gets this frame: one left over from a race (`Promise.race([widget.frame(), ...])`) too.\n const waiting = live.waiting.splice(0)\n if (waiting.length > 0) {\n const frame = take()\n waiting.forEach((resolve) => resolve(frame))\n }\n }\n const pump = async () => {\n if (live.pumping) return\n live.pumping = true\n try {\n while (wanted()) accept(await __host.receive())\n } catch (error) {\n fail(error)\n } finally {\n live.pumping = false\n if (!wanted()) live.idle?.()\n }\n }\n const request = () => {\n if (live.requested || live.frame) return\n live.requested = true\n post({ type: "frame" })\n }\n const take = () => {\n const frame = live.frame\n live.frame = null\n return frame\n }\n const response = (raw) => {\n const text = raw.body ?? atob(raw.body64 ?? "")\n return {\n ok: raw.status >= 200 && raw.status < 300,\n status: raw.status,\n headers: raw.headers ?? {},\n text: async () => text,\n json: async () => JSON.parse(text),\n }\n }\n Object.assign(api, {\n keys: new Set(),\n pointer: null,\n render: (node) => {\n live.root = node\n try {\n live.interactive = post({ type: "render", node }) === true\n } catch (error) {\n // A view too deep to cross: the host fails the run with the reason.\n if (!__widget_deep([node], 1)) throw error\n post({ type: "render", node: null, failure: __WIDGET_DEEP })\n }\n pump()\n },\n // The host knows the canvases by key, and throws for an unknown one or a GPU canvas.\n draw: (key, commands) =>\n void post({\n type: "draw",\n key: String(key),\n commands: commands instanceof __WidgetDraw ? commands.commands : commands,\n }),\n frame: async () => {\n request()\n if (live.frame) return take()\n const next = new Promise((resolve) => live.waiting.push(resolve))\n pump()\n return next\n },\n on: (kind, hook) => {\n if (!hooks[kind]) throw new Error(\'widget.on: unknown event "\' + kind + \'"\')\n if (typeof hook !== "function") throw new Error("widget.on needs a function")\n hooks[kind].push(hook)\n pump()\n return () => {\n const index = hooks[kind].indexOf(hook)\n if (index !== -1) hooks[kind].splice(index, 1)\n }\n },\n sleep: (ms) => __host.sleep(ms),\n now: () => __host.now(),\n submit: (value) => {\n post({ type: "submit", value: value ?? null })\n live.done = true\n },\n dismiss: () => {\n post({ type: "dismiss" })\n live.done = true\n },\n fetch: async (url, init) => {\n const request = { url: String(url), method: init?.method ?? "GET", headers: init?.headers ?? {} }\n if (init?.body !== undefined) request.body = String(init.body)\n try {\n return response(await __host.fetch(request))\n } catch (error) {\n throw { kind: error?.kind ?? "Network", message: error?.message ?? String(error) }\n }\n },\n send: (value, options) => post({ type: "send", value: value ?? null, wake: options?.wake !== false }),\n capturePointer: () => post({ type: "capture", value: true }),\n releasePointer: () => post({ type: "capture", value: false }),\n })\n // Runs `main`, then keeps the widget interactive while its view has handlers or hooks are registered.\n api.__run = async (data) => {\n const failed = new Promise((_, reject) => (live.reject = reject))\n failed.catch(() => {})\n await Promise.race([main(data), failed])\n if (!wanted()) return\n await Promise.race([new Promise((resolve) => (live.idle = resolve)), failed])\n }\n return api\n})()\n\n// Hosts run `return await __widget_live(__input(), true)` (specs/v2/widgets.md, Native hosts).\nasync function __widget_live(input) {\n await widget.__run(input.data)\n return null\n}\n' + 'const __widget_protocol = 2\n// Widget prelude (specs/v2/widgets.md). A widget program is this prelude, a newline, then the widget template source.\n// The first line is the prelude<->host contract\'s version, which hosts read before running the program. Hosts\n// (specs/v2/widgets.md, Native hosts) run `\\nreturn __widget_native_step(__input())` with `__input` and\n// `__widget_emit` as host globals, and live programs with `__widget_live(__input(), true)`: they build the tree clients\n// get themselves, so the prelude hands them views as built and finds handlers by their ids\' paths.\n\nconst ui = (() => {\n // Children may nest arrays and contain null, undefined or false, so widget templates can write `cond && node` and `...list`;\n // the host flattens them when it turns the view into the tree clients get.\n const container = (type) => (props, nodes) =>\n Array.isArray(props) ? { type, children: props } : { ...props, type, children: nodes ?? [] }\n const option = (item) => (typeof item === "string" ? { value: item, label: item } : item)\n return {\n column: container("column"),\n row: container("row"),\n carousel: container("carousel"),\n card: container("card"),\n stack: container("stack"),\n text: (text, props) => ({ ...props, type: "text", text: String(text) }),\n markdown: (text) => ({ type: "markdown", text: String(text) }),\n image: (src, props) => ({ ...props, type: "image", src }),\n button: (label, props) => ({ ...props, type: "button", label: String(label) }),\n checkbox: (label, checked, props) => ({\n ...props,\n type: "checkbox",\n label: String(label),\n checked: checked === true,\n }),\n slider: (props) => ({ ...props, type: "slider" }),\n select: (options, props) => ({ ...props, type: "select", options: (options ?? []).map(option) }),\n input: (value, props) => ({ ...props, type: "input", value: value ?? "" }),\n divider: () => ({ type: "divider" }),\n canvas: (props) => ({ ...props, type: "canvas" }),\n draw: () => new __WidgetDraw(),\n }\n})()\n\n// Interactive nodes: the event clients send for them and the handler prop that takes it.\nconst __WIDGET_CONTROLS = {\n button: { event: "press", handler: "onPress" },\n card: { event: "press", handler: "onPress" },\n checkbox: { event: "change", handler: "onChange" },\n slider: { event: "change", handler: "onChange" },\n select: { event: "change", handler: "onChange" },\n input: { event: "change", handler: "onChange" },\n carousel: { event: "change", handler: "onChange" },\n canvas: { event: "pointer", handler: "onPointer" },\n}\n\n// A view nests at most 100 levels (specs/v2/widgets.md, Keys and depth): the root is level 1, the items of a node\'s\n// children one level below it, and the items of an array among them one level below that array.\nconst __WIDGET_LEVELS = 100\nconst __WIDGET_DEEP = "The view nests more than 100 levels"\n\n// Whether `list`, the items at `level`, holds a node or an array below the last level. It runs only for a view that\n// failed to cross to the host, and goes no deeper than that level.\nfunction __widget_deep(list, level) {\n for (let index = 0; index < list.length; index++) {\n const item = list[index]\n if (!item || typeof item !== "object") continue\n if (level > __WIDGET_LEVELS) return true\n if (\n Array.isArray(item)\n ? __widget_deep(item, level + 1)\n : item.children !== undefined && __widget_deep(__widget_list(item.children), level + 1)\n )\n return true\n }\n return false\n}\n\n// The handler of the node with id `id` in the view `root` as built, found by following the id\'s path (the host assigns\n// the ids, specs/v2/widgets.md, Native hosts). Where two siblings share a segment (a key that looks like a repeat,\n// `k~2`), the later one\'s subtree wins.\nfunction __widget_find(root, id) {\n if (!root || typeof root !== "object" || Array.isArray(root)) return undefined\n const segments = String(id).split("/")\n const named = root.key !== undefined && root.key !== null\n if (segments[0] !== (named ? ":" + encodeURIComponent(String(root.key)) : "0")) return undefined\n return __widget_found(root, segments, 1)\n}\n\nfunction __widget_found(node, segments, at) {\n if (at === segments.length) {\n const control = __WIDGET_CONTROLS[node.type]\n const handler = control ? node[control.handler] : undefined\n if (typeof handler !== "function") return undefined\n if (node.type !== "carousel" || node.children === undefined) return { event: control.event, handler, node }\n // A carousel\'s change is checked against its pages: its children as flattened.\n return {\n event: control.event,\n handler,\n node: { ...node, children: __widget_items(__widget_list(node.children), []) },\n }\n }\n if (node.children === undefined) return undefined\n const matches = []\n __widget_segments(__widget_list(node.children), "", segments[at], matches, null)\n for (let index = matches.length - 1; index >= 0; index--) {\n const found = __widget_found(matches[index], segments, at + 1)\n if (found) return found\n }\n return undefined\n}\n\nfunction __widget_list(children) {\n return Array.isArray(children) ? children : [children]\n}\n\nfunction __widget_items(list, into) {\n for (let index = 0; index < list.length; index++) {\n const child = list[index]\n if (Array.isArray(child)) __widget_items(child, into)\n else if (child) into.push(child)\n }\n return into\n}\n\n// Pushes onto `into` the children in `list` whose path segment is `segment`, numbering them as hosts do.\nfunction __widget_segments(list, prefix, segment, into, seen) {\n for (let index = 0; index < list.length; index++) {\n const child = list[index]\n if (!child || typeof child !== "object") continue\n if (Array.isArray(child)) {\n seen = __widget_segments(child, prefix + index + ".", segment, into, seen)\n continue\n }\n let next\n if (child.key !== undefined && child.key !== null) {\n next = ":" + encodeURIComponent(String(child.key))\n if (seen === null) seen = new Map()\n const count = (seen.get(next) ?? 0) + 1\n seen.set(next, count)\n if (count > 1) next = next + "~" + count\n } else next = prefix + index\n if (next === segment) into.push(child)\n }\n return seen\n}\n\n// The value a handler gets for a client event, checked against the node; undefined drops the event.\nfunction __widget_value(entry, value) {\n const node = entry.node\n if (entry.event === "press") return true\n if (entry.event === "pointer") return __widget_pointer(value)\n if (node.type === "checkbox") return typeof value === "boolean" ? value : undefined\n if (node.type === "input") return typeof value === "string" ? value : undefined\n if (node.type === "slider") {\n const number = Number(value)\n if (typeof value !== "number" || !Number.isFinite(number)) return undefined\n return Math.min(node.max ?? number, Math.max(node.min ?? number, number))\n }\n if (node.type === "carousel") {\n const index = Number(value)\n return Number.isInteger(index) && index >= 0 && index < node.children.length ? index : undefined\n }\n if (node.type === "select") {\n const known = (node.options ?? []).map((option) => option.value)\n if (node.multiple) return Array.isArray(value) ? value.filter((item) => known.includes(item)) : undefined\n return known.includes(value) ? value : undefined\n }\n return undefined\n}\n\n// The full-screen close button\'s area a client reports (widgets-fullscreen.md), or null.\nfunction __widget_rect(value) {\n if (!value || typeof value !== "object") return null\n const fields = [value.x, value.y, value.width, value.height]\n if (!fields.every((field) => typeof field === "number" && Number.isFinite(field))) return null\n return { x: value.x, y: value.y, width: value.width, height: value.height }\n}\n\n// A pointer event\'s value: absolute `{ kind, x, y, width, height, close? }`, or `{ kind, dx, dy, button }` under\n// capture. `close` is the full-screen close button\'s area in the node\'s coordinates, when it overlaps the node.\nfunction __widget_pointer(value) {\n if (!value || typeof value !== "object" || !["down", "move", "up"].includes(value.kind)) return undefined\n const number = (field) => (typeof field === "number" && Number.isFinite(field) ? field : 0)\n if (typeof value.x !== "number" && (typeof value.dx === "number" || typeof value.button === "number"))\n return { kind: value.kind, dx: number(value.dx), dy: number(value.dy), button: number(value.button) }\n const close = __widget_rect(value.close)\n return {\n kind: value.kind,\n x: number(value.x),\n y: number(value.y),\n width: number(value.width),\n height: number(value.height),\n ...(close ? { close } : {}),\n }\n}\n\nfunction __widget_key(value) {\n if (!value || typeof value !== "object" || (value.kind !== "down" && value.kind !== "up")) return undefined\n return {\n kind: value.kind,\n key: String(value.key ?? ""),\n code: String(value.code ?? ""),\n repeat: value.repeat === true,\n shift: value.shift === true,\n alt: value.alt === true,\n ctrl: value.ctrl === true,\n meta: value.meta === true,\n }\n}\n\n// Draw command builder for `draw(state, data, frame)`. It runs every frame, so it only pushes compact arrays. A paint\n// may be a color string: the fill of a shape, the stroke of a line. No paint draws in the "text" color.\nclass __WidgetDraw {\n constructor() {\n this.commands = []\n }\n save() {\n this.commands.push(["save"])\n return this\n }\n restore() {\n this.commands.push(["restore"])\n return this\n }\n translate(x, y) {\n this.commands.push(["translate", x, y])\n return this\n }\n rotate(radians) {\n this.commands.push(["rotate", radians])\n return this\n }\n scale(sx, sy) {\n this.commands.push(["scale", sx, sy ?? sx])\n return this\n }\n alpha(a) {\n this.commands.push(["alpha", a])\n return this\n }\n rect(x, y, w, h, paint) {\n this.commands.push(["rect", x, y, w, h, __widget_fill(paint)])\n return this\n }\n rrect(x, y, w, h, r, paint) {\n this.commands.push(["rrect", x, y, w, h, r, __widget_fill(paint)])\n return this\n }\n circle(cx, cy, r, paint) {\n this.commands.push(["circle", cx, cy, r, __widget_fill(paint)])\n return this\n }\n line(x1, y1, x2, y2, paint) {\n this.commands.push([\n "line",\n x1,\n y1,\n x2,\n y2,\n paint && typeof paint === "object" ? paint : { stroke: paint || "text" },\n ])\n return this\n }\n path(segments, paint) {\n this.commands.push(["path", segments, __widget_fill(paint)])\n return this\n }\n text(x, y, text, style) {\n this.commands.push(["text", x, y, String(text), style ?? {}])\n return this\n }\n image(src, x, y, w, h) {\n this.commands.push(["image", src, x, y, w, h])\n return this\n }\n}\n\nfunction __widget_fill(paint) {\n return paint && typeof paint === "object" ? paint : { fill: paint || "text" }\n}\n\nclass __WidgetResult {\n constructor(kind, value, state) {\n this.kind = kind\n this.value = value\n this.state = state\n }\n}\n\n// What a step handler or hook may return instead of the next state. Each keeps the current state; `send` may set one.\nfunction submit(value) {\n return new __WidgetResult("submit", value ?? null, undefined)\n}\n\nfunction dismiss() {\n return new __WidgetResult("dismiss", undefined, undefined)\n}\n\n// Sends a message to the agent without closing the widget; `wake: false` lets the agent see it only on its next turn.\nfunction send(value, options) {\n return new __WidgetResult("send", { value: value ?? null, wake: options?.wake !== false }, options?.state)\n}\n\n// One step (specs/v2/widgets.md, Native hosts): the view goes to `__widget_emit` as built, and the run\'s result is the\n// rest of the step output (`state`, `submit`, `dismiss`, `send`); a draw\'s commands go to `__widget_emit` too, and\n// the run has no result. A view the host can\'t take because it nests too deep goes as `__widget_emit(null, message)`.\nfunction __widget_native_step(input) {\n const data = input.data\n if (input.phase === "draw") {\n const { id, ...frame } = input.frame ?? {}\n const last = typeof id === "string" ? id.slice(id.lastIndexOf("/") + 1) : ""\n frame.key = last.startsWith(":") ? decodeURIComponent(last.slice(1).replace(/~\\d+$/, "")) : null\n const drawn = typeof draw === "function" ? draw(input.state, data, frame) : undefined\n __widget_emit((drawn instanceof __WidgetDraw ? drawn.commands : drawn) ?? [])\n return\n }\n const output = {}\n if (input.phase === "init") output.state = (typeof init === "function" ? init(data) : undefined) ?? {}\n else {\n const next = __widget_dispatch(input.state, input.event ?? {}, data)\n const result = next instanceof __WidgetResult ? next : undefined\n output.state = result\n ? result.state === undefined\n ? input.state\n : result.state\n : next === undefined\n ? input.state\n : next\n if (result?.kind === "dismiss") output.dismiss = true\n if (result?.kind === "send") output.send = result.value\n if (result?.kind === "submit") output.submit = result.value\n }\n const root = view(output.state, data)\n try {\n __widget_emit(root)\n } catch (error) {\n if (!__widget_deep([root], 1)) throw error\n __widget_emit(null, __WIDGET_DEEP)\n }\n return output\n}\n\n// Routes one client event: system events to the widget template\'s hooks, control events to the handler of the node with\n// that id in the view of the current state. Nothing else sees either; an event nobody takes changes nothing.\nfunction __widget_dispatch(state, event, data) {\n if (event.type === "key") {\n const key = __widget_key(event.value)\n return key && typeof onKey === "function" ? onKey(state, key) : undefined\n }\n if (event.type === "focus") return typeof onFocus === "function" ? onFocus(state, event.value === true) : undefined\n if (event.type === "fullscreen")\n return typeof onFullscreen === "function"\n ? onFullscreen(state, event.value === true, __widget_rect(event.close))\n : undefined\n if (event.type === "capture")\n return typeof onCapture === "function" ? onCapture(state, event.value === true) : undefined\n if (event.type !== "press" && event.type !== "change" && event.type !== "pointer") return undefined\n const entry = __widget_find(view(state, data), event.id)\n if (!entry || entry.event !== event.type) return undefined\n const value = __widget_value(entry, event.value)\n if (value === undefined) return undefined\n return event.type === "press" ? entry.handler(state) : entry.handler(state, value)\n}\n\n// WebGPU\'s flags, for the subset widgets have (specs/v2/widgets-gpu.md).\nconst GPUBufferUsage = Object.freeze({ COPY_SRC: 4, COPY_DST: 8, INDEX: 16, VERTEX: 32, UNIFORM: 64, STORAGE: 128 })\nconst GPUTextureUsage = Object.freeze({ COPY_SRC: 1, COPY_DST: 2, TEXTURE_BINDING: 4, RENDER_ATTACHMENT: 16 })\nconst GPUShaderStage = Object.freeze({ VERTEX: 1, FRAGMENT: 2 })\nconst GPUColorWrite = Object.freeze({ RED: 1, GREEN: 2, BLUE: 4, ALPHA: 8, ALL: 15 })\n\n// `widget.gpu` (specs/v2/widgets-gpu.md): WebGPU\'s shapes, recorded as ops and bytes into the batch the host replays.\n// `start` takes the live input\'s `gpu`; `take` gives the pending batch (or null); `accept` takes the host\'s `canvas`\n// and `gpu` messages; `watched` tells whether the program waits on the device\'s loss, which `watch` is told of.\nfunction __widget_gpu(watch) {\n const LIMITS = Object.freeze({\n maxTextureDimension2D: 4096,\n maxTextureArrayLayers: 256,\n maxBindGroups: 4,\n maxBindingsPerBindGroup: 1000,\n maxDynamicUniformBuffersPerPipelineLayout: 8,\n maxDynamicStorageBuffersPerPipelineLayout: 4,\n maxSampledTexturesPerShaderStage: 16,\n maxSamplersPerShaderStage: 16,\n maxStorageBuffersPerShaderStage: 8,\n maxUniformBuffersPerShaderStage: 12,\n maxUniformBufferBindingSize: 65536,\n maxStorageBufferBindingSize: 67108864,\n minUniformBufferOffsetAlignment: 256,\n minStorageBufferOffsetAlignment: 256,\n maxVertexBuffers: 8,\n maxBufferSize: 67108864,\n maxVertexAttributes: 16,\n maxVertexBufferArrayStride: 2048,\n maxInterStageShaderVariables: 16,\n maxColorAttachments: 8,\n maxColorAttachmentBytesPerSample: 32,\n })\n // `device`: the live device or null, and `lost` its resolver; `ops` and `bytes` (`length` of them used): the pending\n // batch. `sizes`: the GPU canvases\' sizes by key, from the host; `contexts` by key.\n const gpu = {\n watched: false,\n available: false,\n format: "rgba8unorm",\n next: 1,\n device: null,\n lost: null,\n ops: [],\n bytes: null,\n length: 0,\n }\n const sizes = {}\n const contexts = {}\n const handle = () => gpu.next++\n // Records an op for `device`; a lost device\'s calls, and every call without a GPU, record nothing.\n const record = (device, op) => {\n if (gpu.available && device === gpu.device) gpu.ops.push(op)\n }\n const kind = (value, expected, what) => {\n if (!value || value.__kind !== expected) throw new TypeError(what + " must be a GPU " + expected)\n return value.__handle\n }\n const object = (value, what) => {\n if (!value || typeof value !== "object") throw new TypeError(what + " must be an object")\n return value\n }\n // Appends `data`\'s bytes (an ArrayBuffer, or a typed array whose offset and size count elements) to the batch and\n // returns `[byteOffset, byteLength]`. They are copied now, as WebGPU\'s writes copy them.\n const append = (data, offset, size) => {\n const view = ArrayBuffer.isView(data)\n if (!view && !(data instanceof ArrayBuffer)) throw new TypeError("data must be an ArrayBuffer or a typed array")\n const unit = view ? data.BYTES_PER_ELEMENT : 1\n const skip = (offset ?? 0) * unit\n const length = size === undefined ? data.byteLength - skip : size * unit\n const bytes = new Uint8Array(view ? data.buffer : data, (view ? data.byteOffset : 0) + skip, length)\n if (!gpu.bytes || gpu.length + length > gpu.bytes.length) {\n const grown = new Uint8Array(Math.max(1024, (gpu.length + length) * 2))\n if (gpu.bytes) grown.set(new Uint8Array(gpu.bytes.buffer, 0, gpu.length))\n gpu.bytes = grown\n }\n gpu.bytes.set(bytes, gpu.length)\n gpu.length += length\n return [gpu.length - length, length]\n }\n // An origin or extent as WebGPU takes one (an array, or an object), as `[x, y, z]`.\n const triple = (value, fill) =>\n Array.isArray(value)\n ? [value[0] ?? fill[0], value[1] ?? fill[1], value[2] ?? fill[2]]\n : value && typeof value === "object"\n ? [\n value.x ?? value.width ?? fill[0],\n value.y ?? value.height ?? fill[1],\n value.z ?? value.depthOrArrayLayers ?? fill[2],\n ]\n : fill\n const extent = (value) => triple(value, [undefined, 1, 1])\n const origin = (value) => triple(value, [0, 0, 0])\n const component = (value) => ({\n operation: value?.operation ?? "add",\n srcFactor: value?.srcFactor ?? "one",\n dstFactor: value?.dstFactor ?? "zero",\n })\n\n const texture = (device, h, props) => {\n // Views are immutable, so equal ones are one handle: a frame\'s view of the canvas too.\n const views = {}\n return {\n __kind: "texture",\n __handle: h,\n __device: device,\n ...props,\n createView: (descriptor) => {\n const d = descriptor ?? {}\n const layers = props.depthOrArrayLayers\n const dimension = d.dimension ?? (layers > 1 ? "2d-array" : "2d")\n const base = d.baseArrayLayer ?? 0\n const mip = d.baseMipLevel ?? 0\n const normal = {\n dimension,\n baseMipLevel: mip,\n mipLevelCount: d.mipLevelCount ?? props.mipLevelCount - mip,\n baseArrayLayer: base,\n arrayLayerCount: d.arrayLayerCount ?? (dimension === "2d" ? 1 : dimension === "cube" ? 6 : layers - base),\n }\n const key = JSON.stringify(normal)\n if (views[key]) return views[key]\n const view = { __kind: "view", __handle: handle(), __device: device }\n record(device, ["view", view.__handle, h, normal])\n views[key] = view\n return view\n },\n destroy: () => record(device, ["destroy", h]),\n }\n }\n\n const pass = (encoder, descriptor) => {\n const d = object(descriptor, "beginRenderPass\'s descriptor")\n const depth = d.depthStencilAttachment\n const clear = (value) =>\n Array.isArray(value) ? [...value] : value ? [value.r, value.g, value.b, value.a] : [0, 0, 0, 0]\n encoder.add(\n [\n "pass",\n {\n colorAttachments: (d.colorAttachments ?? []).map((a) =>\n a\n ? {\n view: kind(a.view, "view", "a color attachment\'s view"),\n resolveTarget: a.resolveTarget ? kind(a.resolveTarget, "view", "a resolveTarget") : null,\n clearValue: clear(a.clearValue),\n loadOp: a.loadOp,\n storeOp: a.storeOp,\n }\n : null,\n ),\n depthStencilAttachment: depth\n ? {\n view: kind(depth.view, "view", "the depth attachment\'s view"),\n depthClearValue: depth.depthClearValue ?? null,\n depthLoadOp: depth.depthLoadOp ?? null,\n depthStoreOp: depth.depthStoreOp ?? null,\n depthReadOnly: depth.depthReadOnly ?? false,\n }\n : null,\n },\n ],\n true,\n )\n const open = { ended: false }\n const add = (op) => (open.ended ? encoder.fail("the render pass has ended") : encoder.add(op, true))\n return {\n setPipeline: (pipeline) => add(["setPipeline", kind(pipeline, "renderPipeline", "setPipeline\'s pipeline")]),\n setBindGroup: (index, group, offsets) =>\n add([\n "setBindGroup",\n index,\n kind(group, "bindGroup", "setBindGroup\'s group"),\n offsets ? Array.from(offsets) : [],\n ]),\n setVertexBuffer: (slot, buffer, offset, size) =>\n add(["setVertexBuffer", slot, kind(buffer, "buffer", "setVertexBuffer\'s buffer"), offset ?? 0, size ?? -1]),\n setIndexBuffer: (buffer, format, offset, size) =>\n add(["setIndexBuffer", kind(buffer, "buffer", "setIndexBuffer\'s buffer"), format, offset ?? 0, size ?? -1]),\n setViewport: (x, y, width, height, minDepth, maxDepth) =>\n add(["setViewport", x, y, width, height, minDepth, maxDepth]),\n setScissorRect: (x, y, width, height) => add(["setScissorRect", x, y, width, height]),\n draw: (count, instances, first, firstInstance) =>\n add(["draw", count, instances ?? 1, first ?? 0, firstInstance ?? 0]),\n drawIndexed: (count, instances, first, base, firstInstance) =>\n add(["drawIndexed", count, instances ?? 1, first ?? 0, base ?? 0, firstInstance ?? 0]),\n end: () => {\n if (open.ended) return encoder.fail("the render pass has ended")\n open.ended = true\n encoder.add(["end"], true)\n encoder.close()\n },\n }\n }\n\n // A command encoder keeps its commands until `queue.submit` takes its command buffer. Misuse that WebGPU reports as\n // a validation error goes into the batch as an `error` op, once per encoder, and the encoder records nothing more.\n const encoder = (device) => {\n const state = { ops: gpu.available ? [] : null, pass: false, finished: false, failed: false }\n const self = {\n add: (op, inPass) => {\n if (state.failed) return\n if (state.finished) return self.fail("the command encoder is finished")\n if (state.pass && !inPass) return self.fail("a render pass is open on this command encoder")\n state.ops?.push(op)\n },\n close: () => (state.pass = false),\n fail: (message) => {\n if (state.failed) return\n state.failed = true\n record(device, ["error", message])\n },\n }\n const dead = { add: () => {}, fail: () => {}, close: () => {} }\n return {\n __kind: "encoder",\n beginRenderPass: (descriptor) => {\n if (state.finished) self.fail("the command encoder is finished")\n else if (state.pass) self.fail("a render pass is open on this command encoder")\n if (state.failed) return pass(dead, descriptor)\n state.pass = true\n return pass(self, descriptor)\n },\n copyBufferToBuffer: (source, sourceOffset, destination, destinationOffset, size) =>\n self.add([\n "copyBufferToBuffer",\n kind(source, "buffer", "the source"),\n sourceOffset,\n kind(destination, "buffer", "the destination"),\n destinationOffset,\n size,\n ]),\n copyBufferToTexture: (source, destination, size) =>\n self.add([\n "copyBufferToTexture",\n kind(source?.buffer, "buffer", "the source\'s buffer"),\n source.offset ?? 0,\n source.bytesPerRow,\n source.rowsPerImage ?? null,\n kind(destination?.texture, "texture", "the destination\'s texture"),\n destination.mipLevel ?? 0,\n origin(destination.origin),\n extent(size),\n ]),\n copyTextureToTexture: (source, destination, size) =>\n self.add([\n "copyTextureToTexture",\n kind(source?.texture, "texture", "the source\'s texture"),\n source.mipLevel ?? 0,\n origin(source.origin),\n kind(destination?.texture, "texture", "the destination\'s texture"),\n destination.mipLevel ?? 0,\n origin(destination.origin),\n extent(size),\n ]),\n finish: () => {\n if (state.pass) self.fail("a render pass is open on this command encoder")\n else if (state.finished) self.fail("the command encoder is finished")\n state.finished = true\n return { __kind: "commandBuffer", ops: state.failed ? null : state.ops, submitted: false }\n },\n }\n }\n\n const createDevice = () => {\n const lost = new Promise((resolve) => (gpu.lost = resolve))\n const device = {\n __kind: "device",\n limits: LIMITS,\n features: new Set(),\n // Reading it waits for the loss: the host\'s messages keep coming until then.\n get lost() {\n gpu.watched = true\n watch()\n return lost\n },\n createBuffer: (descriptor) => {\n const d = object(descriptor, "createBuffer\'s descriptor")\n const h = handle()\n record(device, ["buffer", h, d.size, d.usage])\n return {\n __kind: "buffer",\n __handle: h,\n __device: device,\n size: d.size,\n usage: d.usage,\n destroy: () => record(device, ["destroy", h]),\n }\n },\n createTexture: (descriptor) => {\n const d = object(descriptor, "createTexture\'s descriptor")\n const [width, height, depthOrArrayLayers] = extent(d.size)\n const props = {\n width,\n height,\n depthOrArrayLayers,\n format: d.format,\n usage: d.usage,\n mipLevelCount: d.mipLevelCount ?? 1,\n sampleCount: d.sampleCount ?? 1,\n dimension: "2d",\n }\n const h = handle()\n if (d.dimension !== undefined && d.dimension !== "2d")\n record(device, ["error", \'a texture\\\'s dimension must be "2d"\'])\n record(device, [\n "texture",\n h,\n width,\n height,\n depthOrArrayLayers,\n d.format,\n d.usage,\n props.mipLevelCount,\n props.sampleCount,\n ])\n return texture(device, h, props)\n },\n createSampler: (descriptor) => {\n const d = descriptor ?? {}\n const h = handle()\n record(device, [\n "sampler",\n h,\n {\n addressModeU: d.addressModeU ?? "clamp-to-edge",\n addressModeV: d.addressModeV ?? "clamp-to-edge",\n addressModeW: d.addressModeW ?? "clamp-to-edge",\n magFilter: d.magFilter ?? "nearest",\n minFilter: d.minFilter ?? "nearest",\n mipmapFilter: d.mipmapFilter ?? "nearest",\n lodMinClamp: d.lodMinClamp ?? 0,\n lodMaxClamp: d.lodMaxClamp ?? 32,\n compare: d.compare ?? null,\n maxAnisotropy: d.maxAnisotropy ?? 1,\n },\n ])\n return { __kind: "sampler", __handle: h, __device: device }\n },\n createShaderModule: (descriptor) => {\n const h = handle()\n record(device, ["shader", h, object(descriptor, "createShaderModule\'s descriptor").code])\n return { __kind: "shader", __handle: h, __device: device }\n },\n createBindGroupLayout: (descriptor) => {\n const h = handle()\n const entries = (object(descriptor, "createBindGroupLayout\'s descriptor").entries ?? []).map((e) => ({\n binding: e.binding,\n visibility: e.visibility,\n buffer: e.buffer\n ? {\n type: e.buffer.type ?? "uniform",\n hasDynamicOffset: e.buffer.hasDynamicOffset ?? false,\n minBindingSize: e.buffer.minBindingSize ?? 0,\n }\n : null,\n sampler: e.sampler ? { type: e.sampler.type ?? "filtering" } : null,\n texture: e.texture\n ? {\n sampleType: e.texture.sampleType ?? "float",\n viewDimension: e.texture.viewDimension ?? "2d",\n multisampled: e.texture.multisampled ?? false,\n }\n : null,\n }))\n record(device, ["bindGroupLayout", h, { entries }])\n return { __kind: "bindGroupLayout", __handle: h, __device: device }\n },\n createPipelineLayout: (descriptor) => {\n const h = handle()\n const layouts = (object(descriptor, "createPipelineLayout\'s descriptor").bindGroupLayouts ?? []).map((l) =>\n kind(l, "bindGroupLayout", "a bind group layout"),\n )\n record(device, ["pipelineLayout", h, layouts])\n return { __kind: "pipelineLayout", __handle: h, __device: device }\n },\n createBindGroup: (descriptor) => {\n const d = object(descriptor, "createBindGroup\'s descriptor")\n const h = handle()\n // A buffer, a buffer binding, a sampler or a texture view.\n const resource = (r) =>\n r?.__kind === "sampler"\n ? { sampler: r.__handle }\n : r?.__kind === "view"\n ? { view: r.__handle }\n : r?.__kind === "buffer"\n ? { buffer: r.__handle, offset: 0, size: -1 }\n : {\n buffer: kind(r?.buffer, "buffer", "a bind group entry\'s resource"),\n offset: r.offset ?? 0,\n size: r.size ?? -1,\n }\n record(device, [\n "bindGroup",\n h,\n {\n layout: kind(d.layout, "bindGroupLayout", "createBindGroup\'s layout"),\n entries: (d.entries ?? []).map((e) => ({ binding: e.binding, resource: resource(e.resource) })),\n },\n ])\n return { __kind: "bindGroup", __handle: h, __device: device }\n },\n createRenderPipeline: (descriptor) => {\n const d = object(descriptor, "createRenderPipeline\'s descriptor")\n const h = handle()\n const vertex = object(d.vertex, "the vertex stage")\n const fragment = d.fragment\n const depth = d.depthStencil\n record(device, [\n "renderPipeline",\n h,\n {\n layout: d.layout === "auto" ? "auto" : kind(d.layout, "pipelineLayout", "the layout"),\n vertex: {\n module: kind(vertex.module, "shader", "the vertex module"),\n entryPoint: vertex.entryPoint ?? null,\n buffers: (vertex.buffers ?? []).map((b) =>\n b\n ? {\n arrayStride: b.arrayStride,\n stepMode: b.stepMode ?? "vertex",\n attributes: (b.attributes ?? []).map((a) => ({\n format: a.format,\n offset: a.offset,\n shaderLocation: a.shaderLocation,\n })),\n }\n : null,\n ),\n },\n fragment: fragment\n ? {\n module: kind(fragment.module, "shader", "the fragment module"),\n entryPoint: fragment.entryPoint ?? null,\n targets: (fragment.targets ?? []).map((t) =>\n t\n ? {\n format: t.format,\n blend: t.blend ? { color: component(t.blend.color), alpha: component(t.blend.alpha) } : null,\n writeMask: t.writeMask ?? 15,\n }\n : null,\n ),\n }\n : null,\n primitive: {\n topology: d.primitive?.topology ?? "triangle-list",\n stripIndexFormat: d.primitive?.stripIndexFormat ?? null,\n frontFace: d.primitive?.frontFace ?? "ccw",\n cullMode: d.primitive?.cullMode ?? "none",\n },\n depthStencil: depth\n ? {\n format: depth.format,\n depthWriteEnabled: depth.depthWriteEnabled ?? false,\n depthCompare: depth.depthCompare ?? "always",\n }\n : null,\n multisample: {\n count: d.multisample?.count ?? 1,\n mask: d.multisample?.mask ?? 4294967295,\n alphaToCoverageEnabled: d.multisample?.alphaToCoverageEnabled ?? false,\n },\n },\n ])\n // `layout: "auto"`\'s layouts: one handle per index.\n const layouts = {}\n return {\n __kind: "renderPipeline",\n __handle: h,\n __device: device,\n getBindGroupLayout: (index) => {\n if (layouts[index]) return layouts[index]\n const layout = { __kind: "bindGroupLayout", __handle: handle(), __device: device }\n record(device, ["autoLayout", layout.__handle, h, index])\n layouts[index] = layout\n return layout\n },\n }\n },\n createCommandEncoder: () => encoder(device),\n queue: {\n writeBuffer: (buffer, offset, data, dataOffset, size) => {\n const h = kind(buffer, "buffer", "writeBuffer\'s buffer")\n if (gpu.available && device === gpu.device)\n gpu.ops.push(["writeBuffer", h, offset, ...append(data, dataOffset, size)])\n },\n writeTexture: (destination, data, layout, size) => {\n const h = kind(destination?.texture, "texture", "writeTexture\'s texture")\n if (!gpu.available || device !== gpu.device) return\n const skip = layout?.offset ?? 0\n const [byteOffset, byteLength] = append(data)\n gpu.ops.push([\n "writeTexture",\n h,\n destination.mipLevel ?? 0,\n origin(destination.origin),\n byteOffset + skip,\n byteLength - skip,\n layout?.bytesPerRow,\n layout?.rowsPerImage ?? null,\n extent(size),\n ])\n },\n submit: (buffers) => {\n for (const buffer of buffers) {\n kind(buffer, "commandBuffer", "submit\'s command buffer")\n if (buffer.submitted) {\n record(device, ["error", "a command buffer can be submitted once"])\n continue\n }\n buffer.submitted = true\n if (buffer.ops && gpu.available && device === gpu.device) for (const op of buffer.ops) gpu.ops.push(op)\n }\n record(device, ["submit"])\n },\n },\n }\n return device\n }\n\n const api = {\n get available() {\n return gpu.available\n },\n getPreferredCanvasFormat: () => gpu.format,\n // One device per widget, until it is lost.\n requestDevice: async () => {\n if (!gpu.device) gpu.device = createDevice()\n return gpu.device\n },\n getContext: (key) => {\n const name = String(key)\n if (contexts[name]) return contexts[name]\n const state = { device: null, handle: 0, texture: null }\n const context = {\n get width() {\n return sizes[name]?.width ?? 0\n },\n get height() {\n return sizes[name]?.height ?? 0\n },\n configure: (configuration) => {\n const c = object(configuration, "configure\'s configuration")\n kind(c.device, "device", "configure\'s device")\n // A new device\'s context is a new handle; configuring again keeps it.\n if (c.device !== state.device) state.handle = handle()\n state.device = c.device\n record(c.device, ["context", state.handle, name, c.format, c.alphaMode ?? "opaque"])\n const props = {\n format: c.format,\n usage: 16,\n mipLevelCount: 1,\n sampleCount: 1,\n depthOrArrayLayers: 1,\n dimension: "2d",\n }\n state.texture = texture(c.device, state.handle, props)\n // The canvas\'s texture is the client\'s: destroying it does nothing.\n state.texture.destroy = () => {}\n Object.defineProperty(state.texture, "width", { get: () => context.width })\n Object.defineProperty(state.texture, "height", { get: () => context.height })\n },\n getCurrentTexture: () => {\n if (!state.texture) throw new Error("configure the context before getCurrentTexture")\n return state.texture\n },\n }\n contexts[name] = context\n return context\n },\n }\n\n return {\n api,\n start: (input) => {\n gpu.available = input?.available === true\n if (input?.format === "bgra8unorm" || input?.format === "rgba8unorm") gpu.format = input.format\n },\n take: () => {\n if (gpu.ops.length === 0) return null\n const batch = { ops: gpu.ops, bytes: gpu.bytes ? gpu.bytes.buffer.slice(0, gpu.length) : new ArrayBuffer(0) }\n gpu.ops = []\n gpu.length = 0\n return batch\n },\n watched: () => gpu.watched && gpu.available && gpu.device !== null,\n accept: (message) => {\n if (message.type === "canvas") {\n sizes[String(message.key)] = { width: message.width, height: message.height }\n return\n }\n if (message.type !== "gpu" || message.lost === undefined || !gpu.device) return\n // Every handle is gone: the lost device\'s calls record nothing, and `requestDevice` makes a new one.\n const resolve = gpu.lost\n gpu.device = null\n gpu.watched = false\n gpu.ops = []\n gpu.length = 0\n resolve({ reason: message.lost, message: typeof message.message === "string" ? message.message : "" })\n },\n }\n}\n\n// Live mode (specs/v2/widgets-live.md): `main(data)` runs once, on the host\'s `__host.post`, `__host.receive`,\n// `__host.sleep`, `__host.now` and `__host.fetch`. While the view has handlers, hooks are registered or a frame is\n// awaited, a pump receives client messages and calls handlers and hooks between the program\'s awaits.\nconst widget = (() => {\n const hooks = { key: [], focus: [], fullscreen: [], capture: [], resumed: [] }\n const live = {\n frame: null,\n requested: false,\n waiting: [],\n // The last rendered view as built, and whether the host found handlers in it.\n root: undefined,\n interactive: false,\n pumping: false,\n done: false,\n idle: null,\n reject: null,\n }\n const api = {}\n // `widget.gpu`, made for a live run only: steps never pay for it.\n const made = { gpu: null }\n const gpu = () => (made.gpu ??= __widget_gpu(() => pump()))\n const post = (message) => (live.done ? undefined : __host.post(message))\n // The pending GPU batch goes out on its own before any wait on the host but a frame request, which carries it.\n const flush = () => {\n const batch = gpu().take()\n if (batch) post({ type: "gpu", ops: batch.ops, bytes: batch.bytes })\n }\n const wanted = () =>\n !live.done &&\n (live.waiting.length > 0 ||\n live.interactive ||\n gpu().watched() ||\n Object.values(hooks).some((list) => list.length > 0))\n const fail = (error) => live.reject?.(error)\n // Runs a handler or hook; an async one that rejects fails the program like a throw.\n const call = (handler, ...args) => {\n const result = handler(...args)\n if (result && typeof result.then === "function") result.then(undefined, fail)\n }\n const emit = (kind, ...values) => hooks[kind].slice().forEach((hook) => call(hook, ...values))\n const dispatch = (event) => {\n if (event.type === "key") {\n const key = __widget_key(event.value)\n if (!key) return\n if (key.kind === "down") api.keys.add(key.code)\n else api.keys.delete(key.code)\n return emit("key", key)\n }\n if (event.type === "focus") {\n if (event.value !== true) api.keys.clear()\n return emit("focus", event.value === true)\n }\n if (event.type === "fullscreen") return emit("fullscreen", event.value === true, __widget_rect(event.close))\n if (event.type === "capture") return emit("capture", event.value === true)\n if (event.type === "pointer") api.pointer = __widget_pointer(event.value) ?? api.pointer\n const entry = __widget_find(live.root, event.id)\n if (!entry || entry.event !== event.type) return\n const value = __widget_value(entry, event.value)\n if (value === undefined) return\n if (event.type === "press") call(entry.handler)\n else call(entry.handler, value)\n }\n const accept = (message) => {\n if (message.type === "event") return dispatch(message.event ?? {})\n if (message.type === "canvas" || message.type === "gpu") return gpu().accept(message)\n if (message.type === "resumed") return emit("resumed", message.pausedMs)\n if (message.type !== "frame") return\n live.requested = false\n live.frame = message.frame\n // Every waiter gets this frame: one left over from a race (`Promise.race([widget.frame(), ...])`) too.\n const waiting = live.waiting.splice(0)\n if (waiting.length > 0) {\n const frame = take()\n waiting.forEach((resolve) => resolve(frame))\n }\n }\n const pump = async () => {\n if (live.pumping) return\n live.pumping = true\n try {\n while (wanted()) {\n flush()\n accept(await __host.receive())\n }\n } catch (error) {\n fail(error)\n } finally {\n live.pumping = false\n if (!wanted()) live.idle?.()\n }\n }\n const request = () => {\n const batch = gpu().take()\n if (live.requested || live.frame) {\n if (batch) post({ type: "gpu", ops: batch.ops, bytes: batch.bytes })\n return\n }\n live.requested = true\n post(batch ? { type: "frame", gpu: batch } : { type: "frame" })\n }\n const take = () => {\n const frame = live.frame\n live.frame = null\n return frame\n }\n const response = (raw) => {\n const text = raw.body ?? atob(raw.body64 ?? "")\n return {\n ok: raw.status >= 200 && raw.status < 300,\n status: raw.status,\n headers: raw.headers ?? {},\n text: async () => text,\n json: async () => JSON.parse(text),\n }\n }\n Object.assign(api, {\n keys: new Set(),\n pointer: null,\n render: (node) => {\n live.root = node\n try {\n live.interactive = post({ type: "render", node }) === true\n } catch (error) {\n // A view too deep to cross: the host fails the run with the reason.\n if (!__widget_deep([node], 1)) throw error\n post({ type: "render", node: null, failure: __WIDGET_DEEP })\n }\n pump()\n },\n // The host knows the canvases by key, and throws for an unknown one or a GPU canvas.\n draw: (key, commands) =>\n void post({\n type: "draw",\n key: String(key),\n commands: commands instanceof __WidgetDraw ? commands.commands : commands,\n }),\n frame: async () => {\n request()\n if (live.frame) return take()\n const next = new Promise((resolve) => live.waiting.push(resolve))\n pump()\n return next\n },\n on: (kind, hook) => {\n if (!hooks[kind]) throw new Error(\'widget.on: unknown event "\' + kind + \'"\')\n if (typeof hook !== "function") throw new Error("widget.on needs a function")\n hooks[kind].push(hook)\n pump()\n return () => {\n const index = hooks[kind].indexOf(hook)\n if (index !== -1) hooks[kind].splice(index, 1)\n }\n },\n sleep: (ms) => {\n flush()\n return __host.sleep(ms)\n },\n now: () => __host.now(),\n submit: (value) => {\n post({ type: "submit", value: value ?? null })\n live.done = true\n },\n dismiss: () => {\n post({ type: "dismiss" })\n live.done = true\n },\n fetch: async (url, init) => {\n flush()\n const request = { url: String(url), method: init?.method ?? "GET", headers: init?.headers ?? {} }\n if (init?.body !== undefined) request.body = String(init.body)\n try {\n return response(await __host.fetch(request))\n } catch (error) {\n throw { kind: error?.kind ?? "Network", message: error?.message ?? String(error) }\n }\n },\n send: (value, options) => post({ type: "send", value: value ?? null, wake: options?.wake !== false }),\n capturePointer: () => post({ type: "capture", value: true }),\n releasePointer: () => post({ type: "capture", value: false }),\n })\n Object.defineProperty(api, "gpu", { get: () => gpu().api, enumerable: true })\n // Runs `main`, then keeps the widget interactive while its view has handlers or hooks are registered.\n // `gpu`: the live input\'s `{ available, format }` (specs/v2/widgets-gpu.md), none without a GPU.\n api.__run = async (data, gpuInput) => {\n gpu().start(gpuInput)\n const failed = new Promise((_, reject) => (live.reject = reject))\n failed.catch(() => {})\n await Promise.race([main(data), failed])\n flush()\n if (!wanted()) return\n await Promise.race([new Promise((resolve) => (live.idle = resolve)), failed])\n }\n return api\n})()\n\n// Hosts run `return await __widget_live(__input(), true)` (specs/v2/widgets.md, Native hosts).\nasync function __widget_live(input) {\n await widget.__run(input.data, input.gpu)\n return null\n}\n' export const suggestions = 'function init(data) {\n return { picked: null, note: "" }\n}\n\nfunction view(state, data) {\n return ui.column({ gap: 2 }, [\n ui.text(data.title, { style: "title" }),\n ui.row(\n { gap: 2, align: "start", wrap: true },\n data.options.map((option, index) =>\n ui.card({ selected: state.picked === index, onPress: (state) => ({ ...state, picked: index }) }, [\n option.images.length === 1\n ? ui.image(option.images[0], { alt: option.label, aspect: 4 / 3 })\n : ui.carousel(\n {},\n option.images.map((src, page) =>\n ui.image(src, {\n alt: option.label + " (" + (page + 1) + "/" + option.images.length + ")",\n aspect: 4 / 3,\n }),\n ),\n ),\n ui.row({ gap: 1, align: "center", wrap: true }, [\n ui.text(option.label, { style: "body" }),\n option.recommended && ui.text("(Recommended)", { style: "caption", tone: "accent" }),\n ]),\n option.note && ui.text(option.note, { style: "caption", tone: "muted" }),\n ]),\n ),\n ),\n data.allowNote !== false &&\n ui.input(state.note, {\n label: "Note",\n placeholder: "Add a note (optional)",\n onChange: (state, note) => ({ ...state, note }),\n }),\n ui.row({ gap: 1, align: "center" }, [\n ui.button("Choose", {\n variant: "primary",\n disabled: state.picked === null,\n onPress: (state) => choose(state, data),\n }),\n ui.button("Dismiss", { variant: "secondary", onPress: () => dismiss() }),\n ]),\n ])\n}\n\nfunction choose(state, data) {\n if (state.picked === null) return state\n const note = state.note.trim()\n const choice = { choice: data.options[state.picked].label, index: state.picked }\n return submit(note ? { ...choice, note } : choice)\n}\n' export const form = diff --git a/packages/widget/src/tree.ts b/packages/widget/src/tree.ts index 866930ba179..647d613844d 100644 --- a/packages/widget/src/tree.ts +++ b/packages/widget/src/tree.ts @@ -31,7 +31,7 @@ export const marker: unknown = Host.functionMarker export interface Tree { readonly view: unknown readonly handlers: ReadonlySet - readonly canvases: ReadonlyMap + readonly canvases: ReadonlyMap } type Item = Record @@ -106,7 +106,7 @@ function clean(value: unknown, strict: string | undefined, json = false): unknow * but a node's handler props. */ export function tree(root: unknown, label: string): Tree { - const canvases = new Map() + const canvases = new Map() const handlers = new Set() const node = (value: Item, path: string, level: number): Item => { @@ -127,7 +127,7 @@ export function tree(root: unknown, label: string): Tree { if (handled) handlers.add(path) if (value.type === "canvas" && handled) out.pointer = true if (canvas && !canvases.has(String(value.key))) - canvases.set(String(value.key), { id: path, wgsl: typeof value.wgsl === "string" }) + canvases.set(String(value.key), { id: path, wgsl: typeof value.wgsl === "string", gpu: value.gpu === true }) } } if (value.children === undefined) return out diff --git a/packages/widget/test/fixtures/gpu-cases.ts b/packages/widget/test/fixtures/gpu-cases.ts new file mode 100644 index 00000000000..ef3e45fd526 --- /dev/null +++ b/packages/widget/test/fixtures/gpu-cases.ts @@ -0,0 +1,310 @@ +import { readFileSync } from "node:fs" +import path from "node:path" + +// The GPU conformance fixtures' programs (`gpu/*.json`): the example widget templates, run for a few frames, and +// programs that break the subset's structure, handles or limits. `canvases`: sizes the host sends before the first +// frame; `inputs`: what the client sends before frame `frame` (an `event`, or a `canvas` size). +export interface GpuCase { + readonly name: string + readonly source: string + readonly data?: unknown + readonly canvases: ReadonlyArray<{ readonly key: string; readonly width: number; readonly height: number }> + readonly inputs?: ReadonlyArray<{ readonly frame: number; readonly input: unknown }> +} + +const template = (name: string) => readFileSync(path.resolve(import.meta.dir, `gpu/templates/${name}.js`), "utf8") + +// A live program that renders GPU canvases `keys`, gets a device and configures each, then runs `body` with +// `device`, `contexts` (by key) and `view(key)` (the canvas's current view). +const program = (body: string, keys: ReadonlyArray = ["scene"]) => `async function main() { + widget.render(ui.column([${keys.map((key) => `ui.canvas({ key: ${JSON.stringify(key)}, gpu: true, height: 100 })`).join(", ")}])) + const device = await widget.gpu.requestDevice() + const format = widget.gpu.getPreferredCanvasFormat() + const contexts = {} + for (const key of ${JSON.stringify(keys)}) { + contexts[key] = widget.gpu.getContext(key) + contexts[key].configure({ device, format }) + } + const view = (key) => contexts[key].getCurrentTexture().createView() + const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: "clear", storeOp: "store" }] }) +${body} +}` + +const scene = [{ key: "scene", width: 200, height: 200 }] + +export const gpuCases: ReadonlyArray = [ + { name: "cube", source: template("cube"), data: { frames: 3 }, canvases: [{ key: "cube", width: 600, height: 480 }] }, + { + name: "textured-quad", + source: template("textured-quad"), + data: { frames: 2 }, + canvases: [{ key: "quad", width: 400, height: 400 }], + }, + { + name: "post-process", + source: template("post-process"), + data: { frames: 3 }, + // The size changes before the second frame: the offscreen texture follows it. + canvases: [{ key: "post", width: 320, height: 220 }], + inputs: [{ frame: 1, input: { type: "canvas", key: "post", width: 640, height: 440 } }], + }, + { + name: "maze", + source: template("maze"), + data: { frames: 4 }, + canvases: [{ key: "maze", width: 640, height: 360 }], + inputs: [ + { + frame: 1, + input: { + type: "event", + event: { + id: "", + type: "key", + value: { + kind: "down", + key: "w", + code: "KeyW", + repeat: false, + shift: false, + alt: false, + ctrl: false, + meta: false, + }, + }, + }, + }, + { frame: 2, input: { type: "event", event: { id: "", type: "capture", value: true } } }, + { + frame: 2, + input: { + type: "event", + event: { id: "0/:maze", type: "pointer", value: { kind: "move", dx: 40, dy: -10, button: 0 } }, + }, + }, + ], + }, + { + // Device loss isn't a fixture input; two devices' worth of handles are: a second requestDevice keeps the first. + name: "handles-and-defaults", + source: program(` + const again = await widget.gpu.requestDevice() + if (again !== device) throw new Error("one device per widget") + const texture = device.createTexture({ size: { width: 8, height: 8, depthOrArrayLayers: 6 }, format: "rgba8unorm", usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST, mipLevelCount: 2 }) + const cube = texture.createView({ dimension: "cube" }) + const layers = texture.createView() + if (texture.createView({ dimension: "cube" }) !== cube) throw new Error("equal views are one handle") + device.createSampler() + const layout = device.createBindGroupLayout({ entries: [ + { binding: 0, visibility: GPUShaderStage.FRAGMENT, texture: { viewDimension: "cube" } }, + { binding: 1, visibility: GPUShaderStage.FRAGMENT, sampler: {} }, + { binding: 2, visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, buffer: { type: "read-only-storage", hasDynamicOffset: true } }, + ] }) + const storage = device.createBuffer({ size: 512, usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST | GPUBufferUsage.COPY_SRC }) + const copy = device.createBuffer({ size: 512, usage: GPUBufferUsage.COPY_DST }) + device.createBindGroup({ layout, entries: [ + { binding: 0, resource: cube }, + { binding: 1, resource: device.createSampler({ magFilter: "linear", compare: undefined }) }, + { binding: 2, resource: { buffer: storage, offset: 256, size: 64 } }, + ] }) + device.createPipelineLayout({ bindGroupLayouts: [layout] }) + device.queue.writeBuffer(storage, 4, new Uint32Array([1, 2, 3, 4, 5]), 1, 3) + device.queue.writeBuffer(storage, 0, new Uint8Array([9, 8, 7, 6]).buffer) + device.queue.writeTexture({ texture, mipLevel: 1, origin: [0, 0, 2] }, new Uint8Array(4 * 4 * 4).fill(200), { bytesPerRow: 16 }, { width: 4, height: 4 }) + const encoder = device.createCommandEncoder() + encoder.copyBufferToBuffer(storage, 0, copy, 0, 256) + device.queue.submit([encoder.finish()]) + texture.destroy() + await widget.frame()`), + canvases: scene, + }, + { + // The encoder errors the prelude finds itself go into the batch as \`error\` ops. + name: "error-encoder-finished", + source: program(` + const encoder = device.createCommandEncoder() + const buffer = encoder.finish() + encoder.beginRenderPass(clear("scene")).end() + device.queue.submit([buffer]) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-open-pass", + source: program(` + const encoder = device.createCommandEncoder() + encoder.beginRenderPass(clear("scene")) + device.queue.submit([encoder.finish()]) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-submitted-twice", + source: program(` + const encoder = device.createCommandEncoder() + encoder.beginRenderPass(clear("scene")).end() + const buffer = encoder.finish() + device.queue.submit([buffer]) + device.queue.submit([buffer]) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-unknown-canvas", + source: `async function main() { + widget.render(ui.canvas({ key: "scene", gpu: true, height: 100 })) + const device = await widget.gpu.requestDevice() + widget.gpu.getContext("elsewhere").configure({ device, format: widget.gpu.getPreferredCanvasFormat() }) + await widget.frame() +}`, + canvases: scene, + }, + { + name: "error-buffer-too-big", + source: program(` + device.createBuffer({ size: 64 * 1024 * 1024 + 4, usage: GPUBufferUsage.VERTEX }) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-texture-too-wide", + source: program(` + device.createTexture({ size: [4097, 4], format: "rgba8unorm", usage: GPUTextureUsage.TEXTURE_BINDING }) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-unknown-format", + source: program(` + device.createTexture({ size: [4, 4], format: "rg11b10ufloat", usage: GPUTextureUsage.TEXTURE_BINDING }) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-usage-outside-the-subset", + source: program(` + device.createBuffer({ size: 16, usage: 1 }) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-resources-over-256-mb", + source: program(` + for (let i = 0; i < 5; i++) device.createBuffer({ size: 64 * 1024 * 1024, usage: GPUBufferUsage.STORAGE }) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-destroyed-buffer", + source: program(` + const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.COPY_DST }) + buffer.destroy() + device.queue.writeBuffer(buffer, 0, new Float32Array(4)) + await widget.frame()`), + canvases: scene, + }, + { + name: "error-too-many-passes", + source: program(` + await widget.frame() + const encoder = device.createCommandEncoder() + for (let i = 0; i < 17; i++) encoder.beginRenderPass(clear("scene")).end() + device.queue.submit([encoder.finish()]) + await widget.frame()`), + canvases: scene, + }, + { + // 10,000 draws a frame are allowed; one more is over, in any of the frame's batches. + name: "error-too-many-draws", + source: program(` + const module = device.createShaderModule({ code: "@vertex fn vs() -> @builtin(position) vec4f { return vec4f(0); } @fragment fn fs() -> @location(0) vec4f { return vec4f(1); }" }) + const pipeline = device.createRenderPipeline({ layout: "auto", vertex: { module }, fragment: { module, targets: [{ format }] } }) + const frame = async (draws) => { + const encoder = device.createCommandEncoder() + const pass = encoder.beginRenderPass(clear("scene")) + pass.setPipeline(pipeline) + for (let i = 0; i < draws; i++) pass.draw(3) + pass.end() + device.queue.submit([encoder.finish()]) + } + await frame(10000) + await widget.frame() + await frame(6000) + await widget.sleep(1) + await frame(4001) + await widget.frame()`), + canvases: scene, + }, + { + // An error stops the canvases its batch renders into: "a"'s batch fails on frame 1, "b"'s on frame 2; a batch + // that renders into neither stops both, but they are stopped already, so it gives no error. + name: "error-isolated-to-a-canvas", + source: program( + ` + const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.VERTEX }) + const gone = device.createBuffer({ size: 16, usage: GPUBufferUsage.VERTEX }) + gone.destroy() + const draw = (key, vertices) => { + const encoder = device.createCommandEncoder() + const pass = encoder.beginRenderPass(clear(key)) + pass.setVertexBuffer(0, vertices) + pass.end() + device.queue.submit([encoder.finish()]) + } + for (let frame = 0; frame < 3; frame++) { + await widget.frame() + draw("a", frame === 1 ? gone : buffer) + await widget.sleep(1) + draw("b", frame === 2 ? gone : buffer) + } + await widget.frame() + device.queue.writeBuffer(gone, 0, new Float32Array(4))`, + ["a", "b"], + ), + canvases: [ + { key: "a", width: 100, height: 100 }, + { key: "b", width: 100, height: 100 }, + ], + }, +] + +// Batches a program posts itself, which the prelude never makes, one fixture each: a JavaScript expression for the +// batch's ops, posted with 8 bytes. +const raw = (ops: string) => `async function main() { + widget.render(ui.canvas({ key: "scene", gpu: true, height: 100 })) + __host.post({ type: "gpu", ops: ${ops}, bytes: new ArrayBuffer(8) }) + await widget.frame() +}` +const view = `{ dimension: "2d", baseMipLevel: 0, mipLevelCount: 1, baseArrayLayer: 0, arrayLayerCount: 1 }` +const sampler = `{ addressModeU: "wrap", addressModeV: "repeat", addressModeW: "repeat", magFilter: "nearest", minFilter: "nearest", mipmapFilter: "nearest", lodMinClamp: 0, lodMaxClamp: 32, compare: null, maxAnisotropy: 1 }` + +export const rawCases: ReadonlyArray = ( + [ + ["unknown-op", `[["sparkle", 1]]`], + ["not-a-list", `[{ op: "buffer" }]`], + ["wrong-arity", `[["buffer", 1, 16]]`], + ["handle-reused", `[["buffer", 1, 16, 32], ["buffer", 1, 16, 32]]`], + ["handles-out-of-order", `[["buffer", 2, 16, 32], ["buffer", 1, 16, 32]]`], + ["no-such-handle", `[["destroy", 9]]`], + ["wrong-kind", `[["shader", 1, ""], ["destroy", 1]]`], + ["bytes-out-of-range", `[["buffer", 1, 16, 8], ["writeBuffer", 1, 0, 4, 8]]`], + ["not-a-whole-number", `[["buffer", 1, 16.5, 8]]`], + ["bad-enum", `[["sampler", 1, ${sampler}]]`], + ["draw-outside-a-pass", `[["draw", 3, 1, 0, 0]]`], + [ + "pass-left-open", + `[["context", 1, "scene", "rgba8unorm", "opaque"], ["view", 2, 1, ${view}], ["pass", { colorAttachments: [{ view: 2, resolveTarget: null, clearValue: [0, 0, 0, 1], loadOp: "clear", storeOp: "store" }], depthStencilAttachment: null }]]`, + ], + [ + "bind-group-layout-entry", + `[["bindGroupLayout", 1, { entries: [{ binding: 0, visibility: 2, buffer: null, sampler: null, texture: null }] }]]`, + ], + ["shader-over-256-kb", `[["shader", 1, "x".repeat(256 * 1024 + 1)]]`], + ["ops-over-20000", `Array.from({ length: 20001 }, (_, i) => ["shader", i + 1, ""])`], + ["handles-over-4096", `Array.from({ length: 4097 }, (_, i) => ["shader", i + 1, ""])`], + ] as const +).map(([name, ops]) => ({ + name: `raw-${name}`, + source: raw(ops), + canvases: [{ key: "scene", width: 100, height: 100 }], +})) diff --git a/packages/widget/test/fixtures/gpu/cube.json b/packages/widget/test/fixtures/gpu/cube.json new file mode 100644 index 00000000000..226bde92b2b --- /dev/null +++ b/packages/widget/test/fixtures/gpu/cube.json @@ -0,0 +1,86 @@ +{ + "name": "cube", + "source": "// A rotating, lit, depth-tested cube (widgets-gpu.md). `data.frames`: stop after that many frames (fixtures).\nconst SHADER = `\nstruct Uniforms { mvp: mat4x4f, model: mat4x4f }\n@group(0) @binding(0) var u: Uniforms;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f }\n\n@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f) -> Out {\n var out: Out;\n out.position = u.mvp * vec4f(position, 1.0);\n out.normal = (u.model * vec4f(normal, 0.0)).xyz;\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let light = normalize(vec3f(0.4, 0.8, 0.6));\n let lit = 0.2 + 0.8 * max(dot(normalize(in.normal), light), 0.0);\n return vec4f(vec3f(0.3, 0.6, 1.0) * lit, 1.0);\n}\n`\n\n// Column-major 4x4 matrices, as WGSL reads them.\nfunction multiply(a, b) {\n const out = new Float32Array(16)\n for (let column = 0; column < 4; column++)\n for (let row = 0; row < 4; row++) {\n let sum = 0\n for (let k = 0; k < 4; k++) sum += a[k * 4 + row] * b[column * 4 + k]\n out[column * 4 + row] = sum\n }\n return out\n}\n\n// A perspective projection to WebGPU's depth range, 0 to 1.\nfunction perspective(fovy, aspect, near, far) {\n const f = 1 / Math.tan(fovy / 2)\n // prettier-ignore\n return new Float32Array([f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0, far / (near - far), -1, 0, 0, (near * far) / (near - far), 0])\n}\n\nfunction rotation(x, y) {\n const [cx, sx, cy, sy] = [Math.cos(x), Math.sin(x), Math.cos(y), Math.sin(y)]\n return new Float32Array([cy, sx * sy, -cx * sy, 0, 0, cx, sx, 0, sy, -sx * cy, cx * cy, 0, 0, 0, 0, 1])\n}\n\nconst translation = (x, y, z) => new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, z, 1])\n\n// Each face: its normal and its 4 corners; 24 vertices of position and normal, 36 indices.\nfunction cube() {\n // prettier-ignore\n const faces = [\n [[1, 0, 0], [[1, -1, -1], [1, 1, -1], [1, 1, 1], [1, -1, 1]]],\n [[-1, 0, 0], [[-1, -1, 1], [-1, 1, 1], [-1, 1, -1], [-1, -1, -1]]],\n [[0, 1, 0], [[-1, 1, -1], [-1, 1, 1], [1, 1, 1], [1, 1, -1]]],\n [[0, -1, 0], [[-1, -1, 1], [-1, -1, -1], [1, -1, -1], [1, -1, 1]]],\n [[0, 0, 1], [[1, -1, 1], [1, 1, 1], [-1, 1, 1], [-1, -1, 1]]],\n [[0, 0, -1], [[-1, -1, -1], [-1, 1, -1], [1, 1, -1], [1, -1, -1]]],\n ]\n const vertices = []\n const indices = []\n faces.forEach(([normal, corners], face) => {\n corners.forEach((corner) => vertices.push(...corner, ...normal))\n const at = face * 4\n indices.push(at, at + 1, at + 2, at, at + 2, at + 3)\n })\n return { vertices: new Float32Array(vertices), indices: new Uint16Array(indices) }\n}\n\nasync function main(data) {\n widget.render(ui.canvas({ key: \"cube\", gpu: true, height: 240, alt: \"A rotating cube\" }))\n const device = await widget.gpu.requestDevice()\n const context = widget.gpu.getContext(\"cube\")\n const format = widget.gpu.getPreferredCanvasFormat()\n context.configure({ device, format, alphaMode: \"opaque\" })\n\n const mesh = cube()\n const vertices = device.createBuffer({\n size: mesh.vertices.byteLength,\n usage: GPUBufferUsage.VERTEX | GPUBufferUsage.COPY_DST,\n })\n device.queue.writeBuffer(vertices, 0, mesh.vertices)\n const indices = device.createBuffer({\n size: mesh.indices.byteLength,\n usage: GPUBufferUsage.INDEX | GPUBufferUsage.COPY_DST,\n })\n device.queue.writeBuffer(indices, 0, mesh.indices)\n const uniforms = device.createBuffer({ size: 128, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST })\n\n const module = device.createShaderModule({ code: SHADER })\n const pipeline = device.createRenderPipeline({\n layout: \"auto\",\n vertex: {\n module,\n entryPoint: \"vs\",\n buffers: [\n {\n arrayStride: 24,\n attributes: [\n { format: \"float32x3\", offset: 0, shaderLocation: 0 },\n { format: \"float32x3\", offset: 12, shaderLocation: 1 },\n ],\n },\n ],\n },\n fragment: { module, entryPoint: \"fs\", targets: [{ format }] },\n primitive: { topology: \"triangle-list\", cullMode: \"back\" },\n depthStencil: { format: \"depth24plus\", depthWriteEnabled: true, depthCompare: \"less\" },\n })\n const group = device.createBindGroup({\n layout: pipeline.getBindGroupLayout(0),\n entries: [{ binding: 0, resource: { buffer: uniforms } }],\n })\n\n const depth = { texture: null, width: 0, height: 0 }\n for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) {\n const { t, width, height, scale } = await widget.frame()\n const w = context.width || Math.round(width * scale)\n const h = context.height || Math.round(height * scale)\n // The depth texture follows the canvas's size.\n if (depth.width !== w || depth.height !== h) {\n depth.texture?.destroy()\n depth.texture = device.createTexture({\n size: [w, h],\n format: \"depth24plus\",\n usage: GPUTextureUsage.RENDER_ATTACHMENT,\n })\n Object.assign(depth, { width: w, height: h })\n }\n const model = rotation(t * 0.7, t)\n const mvp = multiply(perspective(Math.PI / 4, w / h, 0.1, 100), multiply(translation(0, 0, -6), model))\n const matrices = new Float32Array(32)\n matrices.set(mvp, 0)\n matrices.set(model, 16)\n device.queue.writeBuffer(uniforms, 0, matrices)\n\n const encoder = device.createCommandEncoder()\n const pass = encoder.beginRenderPass({\n colorAttachments: [\n {\n view: context.getCurrentTexture().createView(),\n loadOp: \"clear\",\n storeOp: \"store\",\n clearValue: [0.05, 0.05, 0.08, 1],\n },\n ],\n depthStencilAttachment: {\n view: depth.texture.createView(),\n depthClearValue: 1,\n depthLoadOp: \"clear\",\n depthStoreOp: \"store\",\n },\n })\n pass.setPipeline(pipeline)\n pass.setBindGroup(0, group)\n pass.setVertexBuffer(0, vertices)\n pass.setIndexBuffer(indices, \"uint16\")\n pass.drawIndexed(36)\n pass.end()\n device.queue.submit([encoder.finish()])\n }\n}\n", + "data": { + "frames": 3 + }, + "canvases": [ + { + "key": "cube", + "width": 600, + "height": 480 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "AACAPwAAgL8AAIC/AACAPwAAAAAAAAAAAACAPwAAgD8AAIC/AACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAgL8AAIA/AACAPwAAAAAAAAAAAACAvwAAgL8AAIA/AACAvwAAAAAAAAAAAACAvwAAgD8AAIA/AACAvwAAAAAAAAAAAACAvwAAgD8AAIC/AACAvwAAAAAAAAAAAACAvwAAgL8AAIC/AACAvwAAAAAAAAAAAACAvwAAgD8AAIC/AAAAAAAAgD8AAAAAAACAvwAAgD8AAIA/AAAAAAAAgD8AAAAAAACAPwAAgD8AAIA/AAAAAAAAgD8AAAAAAACAPwAAgD8AAIC/AAAAAAAAgD8AAAAAAACAvwAAgL8AAIA/AAAAAAAAgL8AAAAAAACAvwAAgL8AAIC/AAAAAAAAgL8AAAAAAACAPwAAgL8AAIC/AAAAAAAAgL8AAAAAAACAPwAAgL8AAIA/AAAAAAAAgL8AAAAAAACAPwAAgL8AAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AACAvwAAgD8AAIA/AAAAAAAAAAAAAIA/AACAvwAAgL8AAIA/AAAAAAAAAAAAAIA/AACAvwAAgL8AAIC/AAAAAAAAAAAAAIC/AACAvwAAgD8AAIC/AAAAAAAAAAAAAIC/AACAPwAAgD8AAIC/AAAAAAAAAAAAAIC/AACAPwAAgL8AAIC/AAAAAAAAAAAAAIC/AAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcA", + "ops": [ + ["context",1,"cube","rgba8unorm","opaque"], + ["buffer",2,576,40], + ["writeBuffer",2,0,0,576], + ["buffer",3,72,24], + ["writeBuffer",3,0,576,72], + ["buffer",4,128,72], + ["shader",5,"\nstruct Uniforms { mvp: mat4x4f, model: mat4x4f }\n@group(0) @binding(0) var u: Uniforms;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f }\n\n@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f) -> Out {\n var out: Out;\n out.position = u.mvp * vec4f(position, 1.0);\n out.normal = (u.model * vec4f(normal, 0.0)).xyz;\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let light = normalize(vec3f(0.4, 0.8, 0.6));\n let lit = 0.2 + 0.8 * max(dot(normalize(in.normal), light), 0.0);\n return vec4f(vec3f(0.3, 0.6, 1.0) * lit, 1.0);\n}\n"], + ["renderPipeline",6,{"layout":"auto","vertex":{"module":5,"entryPoint":"vs","buffers":[{"arrayStride":24,"stepMode":"vertex","attributes":[{"format":"float32x3","offset":0,"shaderLocation":0},{"format":"float32x3","offset":12,"shaderLocation":1}]}]},"fragment":{"module":5,"entryPoint":"fs","targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"back"},"depthStencil":{"format":"depth24plus","depthWriteEnabled":true,"depthCompare":"less"},"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["autoLayout",7,6,0], + ["bindGroup",8,{"layout":7,"entries":[{"binding":0,"resource":{"buffer":4,"offset":0,"size":-1}}]}] + ] + }, + { + "frame": true, + "bytes": "KTf3PwAAAAAAAAAAAAAAAAAAAAB6ghpAAAAAAAAAAAAAAAAAAAAAAM0ggL8AAIC/AAAAAAAAAAAu/bxAAADAQAAAgD8AAAAAAAAAgAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAAIAAAIA/AAAAAAAAAAAAAAAAAAAAAAAAgD8=", + "ops": [ + ["texture",9,600,480,1,"depth24plus",16,1,1], + ["writeBuffer",4,0,0,128], + ["view",10,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["view",11,9,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":10,"resolveTarget":null,"clearValue":[0.05,0.05,0.08,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":11,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",6], + ["setBindGroup",0,8,[]], + ["setVertexBuffer",0,2,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,1,0,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "Xy73P4sZ9jmFp4g8iYSIPAAAAADJfxpAa1U/vHAkP7yX1wM9erLmvAMagL9w8n+/AAAAAAAAAAAu/bxAAADAQOb2fz8v4Es5iYSIvAAAAAAAAAAAivt/P3AkPzwAAAAA6oaIPKQdP7xw8n8/AAAAAAAAAAAAAAAAAAAAAAAAgD8=", + "ops": [ + ["writeBuffer",4,0,0,128], + ["pass",{"colorAttachments":[{"view":10,"resolveTarget":null,"clearValue":[0.05,0.05,0.08,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":11,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",6], + ["setBindGroup",0,8,[]], + ["setVertexBuffer",0,2,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,1,0,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "ART3P4EM9jqFmwg9jHgIPQAAAAC2dxpAFVK/vBshv7zn0oM92ZVmvagFgL/EyX+/AAAAAAAAAAAu/bxAAADAQJjbfz9i1Us6jHgIvQAAAAAAAAAAKe5/PxshvzwAAAAAEIIIPe0Fv7zEyX8/AAAAAAAAAAAAAAAAAAAAAAAAgD8=", + "ops": [ + ["writeBuffer",4,0,0,128], + ["pass",{"colorAttachments":[{"view":10,"resolveTarget":null,"clearValue":[0.05,0.05,0.08,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":11,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",6], + ["setBindGroup",0,8,[]], + ["setVertexBuffer",0,2,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,1,0,0,0], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-buffer-too-big.json b/packages/widget/test/fixtures/gpu/error-buffer-too-big.json new file mode 100644 index 00000000000..babd3b09f62 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-buffer-too-big.json @@ -0,0 +1,32 @@ +{ + "name": "error-buffer-too-big", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n device.createBuffer({ size: 64 * 1024 * 1024 + 4, usage: GPUBufferUsage.VERTEX })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: \"buffer\" argument 2 is over the limit of 67108864", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["buffer",2,67108868,32] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-destroyed-buffer.json b/packages/widget/test/fixtures/gpu/error-destroyed-buffer.json new file mode 100644 index 00000000000..56409f17469 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-destroyed-buffer.json @@ -0,0 +1,34 @@ +{ + "name": "error-destroyed-buffer", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.COPY_DST })\n buffer.destroy()\n device.queue.writeBuffer(buffer, 0, new Float32Array(4))\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 3: handle 2 was destroyed", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "AAAAAAAAAAAAAAAAAAAAAA==", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["buffer",2,16,8], + ["destroy",2], + ["writeBuffer",2,0,0,16] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-encoder-finished.json b/packages/widget/test/fixtures/gpu/error-encoder-finished.json new file mode 100644 index 00000000000..10b8dbb8e4e --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-encoder-finished.json @@ -0,0 +1,34 @@ +{ + "name": "error-encoder-finished", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const encoder = device.createCommandEncoder()\n const buffer = encoder.finish()\n encoder.beginRenderPass(clear(\"scene\")).end()\n device.queue.submit([buffer])\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 2: the command encoder is finished", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["view",2,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["error","the command encoder is finished"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-isolated-to-a-canvas.json b/packages/widget/test/fixtures/gpu/error-isolated-to-a-canvas.json new file mode 100644 index 00000000000..defb279fded --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-isolated-to-a-canvas.json @@ -0,0 +1,117 @@ +{ + "name": "error-isolated-to-a-canvas", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"a\", gpu: true, height: 100 }), ui.canvas({ key: \"b\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"a\",\"b\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.VERTEX })\n const gone = device.createBuffer({ size: 16, usage: GPUBufferUsage.VERTEX })\n gone.destroy()\n const draw = (key, vertices) => {\n const encoder = device.createCommandEncoder()\n const pass = encoder.beginRenderPass(clear(key))\n pass.setVertexBuffer(0, vertices)\n pass.end()\n device.queue.submit([encoder.finish()])\n }\n for (let frame = 0; frame < 3; frame++) {\n await widget.frame()\n draw(\"a\", frame === 1 ? gone : buffer)\n await widget.sleep(1)\n draw(\"b\", frame === 2 ? gone : buffer)\n }\n await widget.frame()\n device.queue.writeBuffer(gone, 0, new Float32Array(4))\n}", + "canvases": [ + { + "key": "a", + "width": 100, + "height": 100 + }, + { + "key": "b", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: handle 4 was destroyed", + "canvases": [ + "a" + ] + }, + { + "message": "gpu op 1: handle 4 was destroyed", + "canvases": [ + "b" + ] + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"a","rgba8unorm","opaque"], + ["context",2,"b","rgba8unorm","opaque"], + ["buffer",3,16,32], + ["buffer",4,16,32], + ["destroy",4] + ] + }, + { + "frame": false, + "bytes": "", + "ops": [ + ["view",5,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":5,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,3,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["view",6,2,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":6,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,3,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":5,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,4,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":6,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,3,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":5,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,3,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":6,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setVertexBuffer",0,4,0,-1], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "AAAAAAAAAAAAAAAAAAAAAA==", + "ops": [ + ["writeBuffer",4,0,0,16] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-open-pass.json b/packages/widget/test/fixtures/gpu/error-open-pass.json new file mode 100644 index 00000000000..95d56aedae2 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-open-pass.json @@ -0,0 +1,34 @@ +{ + "name": "error-open-pass", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const encoder = device.createCommandEncoder()\n encoder.beginRenderPass(clear(\"scene\"))\n device.queue.submit([encoder.finish()])\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 2: a render pass is open on this command encoder", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["view",2,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["error","a render pass is open on this command encoder"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-resources-over-256-mb.json b/packages/widget/test/fixtures/gpu/error-resources-over-256-mb.json new file mode 100644 index 00000000000..cb888793ba9 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-resources-over-256-mb.json @@ -0,0 +1,36 @@ +{ + "name": "error-resources-over-256-mb", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n for (let i = 0; i < 5; i++) device.createBuffer({ size: 64 * 1024 * 1024, usage: GPUBufferUsage.STORAGE })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 5: the size of buffers and textures is over the limit of 268435456", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["buffer",2,67108864,128], + ["buffer",3,67108864,128], + ["buffer",4,67108864,128], + ["buffer",5,67108864,128], + ["buffer",6,67108864,128] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-submitted-twice.json b/packages/widget/test/fixtures/gpu/error-submitted-twice.json new file mode 100644 index 00000000000..92ba8f41005 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-submitted-twice.json @@ -0,0 +1,39 @@ +{ + "name": "error-submitted-twice", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const encoder = device.createCommandEncoder()\n encoder.beginRenderPass(clear(\"scene\")).end()\n const buffer = encoder.finish()\n device.queue.submit([buffer])\n device.queue.submit([buffer])\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 5: a command buffer can be submitted once", + "canvases": [ + "scene" + ] + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["view",2,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["submit"], + ["error","a command buffer can be submitted once"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-texture-too-wide.json b/packages/widget/test/fixtures/gpu/error-texture-too-wide.json new file mode 100644 index 00000000000..6e1ef603368 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-texture-too-wide.json @@ -0,0 +1,32 @@ +{ + "name": "error-texture-too-wide", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n device.createTexture({ size: [4097, 4], format: \"rgba8unorm\", usage: GPUTextureUsage.TEXTURE_BINDING })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: \"texture\" argument 2 is over the limit of 4096", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["texture",2,4097,4,1,"rgba8unorm",4,1,1] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-too-many-draws.json b/packages/widget/test/fixtures/gpu/error-too-many-draws.json new file mode 100644 index 00000000000..2356e76bbf9 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-too-many-draws.json @@ -0,0 +1,20061 @@ +{ + "name": "error-too-many-draws", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const module = device.createShaderModule({ code: \"@vertex fn vs() -> @builtin(position) vec4f { return vec4f(0); } @fragment fn fs() -> @location(0) vec4f { return vec4f(1); }\" })\n const pipeline = device.createRenderPipeline({ layout: \"auto\", vertex: { module }, fragment: { module, targets: [{ format }] } })\n const frame = async (draws) => {\n const encoder = device.createCommandEncoder()\n const pass = encoder.beginRenderPass(clear(\"scene\"))\n pass.setPipeline(pipeline)\n for (let i = 0; i < draws; i++) pass.draw(3)\n pass.end()\n device.queue.submit([encoder.finish()])\n }\n await frame(10000)\n await widget.frame()\n await frame(6000)\n await widget.sleep(1)\n await frame(4001)\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 4002: the number of draws in a frame is over the limit of 10000", + "canvases": [ + "scene" + ] + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["shader",2,"@vertex fn vs() -> @builtin(position) vec4f { return vec4f(0); } @fragment fn fs() -> @location(0) vec4f { return vec4f(1); }"], + ["renderPipeline",3,{"layout":"auto","vertex":{"module":2,"entryPoint":null,"buffers":[]},"fragment":{"module":2,"entryPoint":null,"targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"none"},"depthStencil":null,"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["view",4,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":4,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":4,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":4,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-too-many-passes.json b/packages/widget/test/fixtures/gpu/error-too-many-passes.json new file mode 100644 index 00000000000..22ddcc64ce6 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-too-many-passes.json @@ -0,0 +1,75 @@ +{ + "name": "error-too-many-passes", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n await widget.frame()\n const encoder = device.createCommandEncoder()\n for (let i = 0; i < 17; i++) encoder.beginRenderPass(clear(\"scene\")).end()\n device.queue.submit([encoder.finish()])\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 33: the number of render passes in a frame is over the limit of 16", + "canvases": [ + "scene" + ] + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["view",2,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["pass",{"colorAttachments":[{"view":2,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-unknown-canvas.json b/packages/widget/test/fixtures/gpu/error-unknown-canvas.json new file mode 100644 index 00000000000..9609ce9139e --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-unknown-canvas.json @@ -0,0 +1,31 @@ +{ + "name": "error-unknown-canvas", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n const device = await widget.gpu.requestDevice()\n widget.gpu.getContext(\"elsewhere\").configure({ device, format: widget.gpu.getPreferredCanvasFormat() })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: no GPU canvas with key \"elsewhere\"", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"elsewhere","rgba8unorm","opaque"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-unknown-format.json b/packages/widget/test/fixtures/gpu/error-unknown-format.json new file mode 100644 index 00000000000..d557fcb577a --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-unknown-format.json @@ -0,0 +1,32 @@ +{ + "name": "error-unknown-format", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n device.createTexture({ size: [4, 4], format: \"rg11b10ufloat\", usage: GPUTextureUsage.TEXTURE_BINDING })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: \"texture\" argument 5 must be one of rgba8unorm, rgba8unorm-srgb, bgra8unorm, r8unorm, rgba16float, depth24plus, depth32float", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["texture",2,4,4,1,"rg11b10ufloat",4,1,1] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/error-usage-outside-the-subset.json b/packages/widget/test/fixtures/gpu/error-usage-outside-the-subset.json new file mode 100644 index 00000000000..8ef8edf6354 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/error-usage-outside-the-subset.json @@ -0,0 +1,32 @@ +{ + "name": "error-usage-outside-the-subset", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n device.createBuffer({ size: 16, usage: 1 })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: \"buffer\" argument 3 must combine COPY_SRC, COPY_DST, INDEX, VERTEX, UNIFORM, STORAGE", + "canvases": "all" + } + ], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["buffer",2,16,1] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/handles-and-defaults.json b/packages/widget/test/fixtures/gpu/handles-and-defaults.json new file mode 100644 index 00000000000..b474fafa036 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/handles-and-defaults.json @@ -0,0 +1,42 @@ +{ + "name": "handles-and-defaults", + "source": "async function main() {\n widget.render(ui.column([ui.canvas({ key: \"scene\", gpu: true, height: 100 })]))\n const device = await widget.gpu.requestDevice()\n const format = widget.gpu.getPreferredCanvasFormat()\n const contexts = {}\n for (const key of [\"scene\"]) {\n contexts[key] = widget.gpu.getContext(key)\n contexts[key].configure({ device, format })\n }\n const view = (key) => contexts[key].getCurrentTexture().createView()\n const clear = (key) => ({ colorAttachments: [{ view: view(key), loadOp: \"clear\", storeOp: \"store\" }] })\n\n const again = await widget.gpu.requestDevice()\n if (again !== device) throw new Error(\"one device per widget\")\n const texture = device.createTexture({ size: { width: 8, height: 8, depthOrArrayLayers: 6 }, format: \"rgba8unorm\", usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST, mipLevelCount: 2 })\n const cube = texture.createView({ dimension: \"cube\" })\n const layers = texture.createView()\n if (texture.createView({ dimension: \"cube\" }) !== cube) throw new Error(\"equal views are one handle\")\n device.createSampler()\n const layout = device.createBindGroupLayout({ entries: [\n { binding: 0, visibility: GPUShaderStage.FRAGMENT, texture: { viewDimension: \"cube\" } },\n { binding: 1, visibility: GPUShaderStage.FRAGMENT, sampler: {} },\n { binding: 2, visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, buffer: { type: \"read-only-storage\", hasDynamicOffset: true } },\n ] })\n const storage = device.createBuffer({ size: 512, usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST | GPUBufferUsage.COPY_SRC })\n const copy = device.createBuffer({ size: 512, usage: GPUBufferUsage.COPY_DST })\n device.createBindGroup({ layout, entries: [\n { binding: 0, resource: cube },\n { binding: 1, resource: device.createSampler({ magFilter: \"linear\", compare: undefined }) },\n { binding: 2, resource: { buffer: storage, offset: 256, size: 64 } },\n ] })\n device.createPipelineLayout({ bindGroupLayouts: [layout] })\n device.queue.writeBuffer(storage, 4, new Uint32Array([1, 2, 3, 4, 5]), 1, 3)\n device.queue.writeBuffer(storage, 0, new Uint8Array([9, 8, 7, 6]).buffer)\n device.queue.writeTexture({ texture, mipLevel: 1, origin: [0, 0, 2] }, new Uint8Array(4 * 4 * 4).fill(200), { bytesPerRow: 16 }, { width: 4, height: 4 })\n const encoder = device.createCommandEncoder()\n encoder.copyBufferToBuffer(storage, 0, copy, 0, 256)\n device.queue.submit([encoder.finish()])\n texture.destroy()\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 200, + "height": 200 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "AgAAAAMAAAAEAAAACQgHBsjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMg=", + "ops": [ + ["context",1,"scene","rgba8unorm","opaque"], + ["texture",2,8,8,6,"rgba8unorm",6,2,1], + ["view",3,2,{"dimension":"cube","baseMipLevel":0,"mipLevelCount":2,"baseArrayLayer":0,"arrayLayerCount":6}], + ["view",4,2,{"dimension":"2d-array","baseMipLevel":0,"mipLevelCount":2,"baseArrayLayer":0,"arrayLayerCount":6}], + ["sampler",5,{"addressModeU":"clamp-to-edge","addressModeV":"clamp-to-edge","addressModeW":"clamp-to-edge","magFilter":"nearest","minFilter":"nearest","mipmapFilter":"nearest","lodMinClamp":0,"lodMaxClamp":32,"compare":null,"maxAnisotropy":1}], + ["bindGroupLayout",6,{"entries":[{"binding":0,"visibility":2,"buffer":null,"sampler":null,"texture":{"sampleType":"float","viewDimension":"cube","multisampled":false}},{"binding":1,"visibility":2,"buffer":null,"sampler":{"type":"filtering"},"texture":null},{"binding":2,"visibility":3,"buffer":{"type":"read-only-storage","hasDynamicOffset":true,"minBindingSize":0},"sampler":null,"texture":null}]}], + ["buffer",7,512,140], + ["buffer",8,512,8], + ["sampler",9,{"addressModeU":"clamp-to-edge","addressModeV":"clamp-to-edge","addressModeW":"clamp-to-edge","magFilter":"linear","minFilter":"nearest","mipmapFilter":"nearest","lodMinClamp":0,"lodMaxClamp":32,"compare":null,"maxAnisotropy":1}], + ["bindGroup",10,{"layout":6,"entries":[{"binding":0,"resource":{"view":3}},{"binding":1,"resource":{"sampler":9}},{"binding":2,"resource":{"buffer":7,"offset":256,"size":64}}]}], + ["pipelineLayout",11,[6]], + ["writeBuffer",7,4,0,12], + ["writeBuffer",7,0,12,4], + ["writeTexture",2,1,[0,0,2],16,64,16,null,[4,4,1]], + ["copyBufferToBuffer",7,0,8,0,256], + ["submit"], + ["destroy",2] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/maze.json b/packages/widget/test/fixtures/gpu/maze.json new file mode 100644 index 00000000000..7e6fb4ee98c --- /dev/null +++ b/packages/widget/test/fixtures/gpu/maze.json @@ -0,0 +1,156 @@ +{ + "name": "maze", + "source": "// A first-person maze: walls as a few hundred instanced boxes, WASD to walk, a click captures the pointer for\n// mouse-look, and a HUD in a stack over the canvas. `data.frames`: stop after that many frames (fixtures).\nconst SHADER = `\nstruct Uniforms { viewProjection: mat4x4f, eye: vec4f }\n@group(0) @binding(0) var u: Uniforms;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f, @location(1) world: vec3f, @location(2) tint: f32 }\n\n@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f, @location(2) offset: vec3f, @location(3) size: vec3f) -> Out {\n let world = position * size + offset;\n var out: Out;\n out.position = u.viewProjection * vec4f(world, 1.0);\n out.normal = normal;\n out.world = world;\n out.tint = select(1.0, 0.55, size.y < 0.5);\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let light = normalize(vec3f(0.3, 1.0, 0.5));\n let lit = 0.35 + 0.65 * max(dot(in.normal, light), 0.0);\n let fog = clamp(distance(in.world, u.eye.xyz) / 14.0, 0.0, 1.0);\n let color = vec3f(0.85, 0.75, 0.6) * in.tint * lit;\n return vec4f(mix(color, vec3f(0.08, 0.09, 0.12), fog), 1.0);\n}\n`\n\nconst SIZE = 21\n\n// A maze of SIZE x SIZE cells (true: wall), carved by a depth-first walk from a seeded generator.\nfunction maze(seed) {\n let state = seed\n const random = () => (state = (state * 1103515245 + 12345) % 2147483648) / 2147483648\n const walls = Array.from({ length: SIZE }, () => Array(SIZE).fill(true))\n const stack = [[1, 1]]\n walls[1][1] = false\n while (stack.length > 0) {\n const [x, z] = stack[stack.length - 1]\n const next = [\n [2, 0],\n [-2, 0],\n [0, 2],\n [0, -2],\n ]\n .map(([dx, dz]) => [x + dx, z + dz, dx, dz])\n .filter(([nx, nz]) => nx > 0 && nz > 0 && nx < SIZE - 1 && nz < SIZE - 1 && walls[nz][nx])\n if (next.length === 0) {\n stack.pop()\n continue\n }\n const [nx, nz, dx, dz] = next[Math.floor(random() * next.length)]\n walls[z + dz / 2][x + dx / 2] = false\n walls[nz][nx] = false\n stack.push([nx, nz])\n }\n return walls\n}\n\n// A unit box: 24 vertices of position and normal, 36 indices.\nfunction box() {\n // prettier-ignore\n const faces = [\n [[1, 0, 0], [[1, -1, -1], [1, 1, -1], [1, 1, 1], [1, -1, 1]]],\n [[-1, 0, 0], [[-1, -1, 1], [-1, 1, 1], [-1, 1, -1], [-1, -1, -1]]],\n [[0, 1, 0], [[-1, 1, -1], [-1, 1, 1], [1, 1, 1], [1, 1, -1]]],\n [[0, -1, 0], [[-1, -1, 1], [-1, -1, -1], [1, -1, -1], [1, -1, 1]]],\n [[0, 0, 1], [[1, -1, 1], [1, 1, 1], [-1, 1, 1], [-1, -1, 1]]],\n [[0, 0, -1], [[-1, -1, -1], [-1, 1, -1], [1, 1, -1], [1, -1, -1]]],\n ]\n const vertices = []\n const indices = []\n faces.forEach(([normal, corners], face) => {\n corners.forEach((corner) => vertices.push(...corner.map((c) => c / 2), ...normal))\n indices.push(face * 4, face * 4 + 1, face * 4 + 2, face * 4, face * 4 + 2, face * 4 + 3)\n })\n return { vertices: new Float32Array(vertices), indices: new Uint16Array(indices) }\n}\n\nfunction perspective(fovy, aspect, near, far) {\n const f = 1 / Math.tan(fovy / 2)\n return [f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0, far / (near - far), -1, 0, 0, (near * far) / (near - far), 0]\n}\n\n// The view matrix of an eye at `eye` looking along yaw and pitch.\nfunction view(eye, yaw, pitch) {\n const forward = [Math.sin(yaw) * Math.cos(pitch), Math.sin(pitch), -Math.cos(yaw) * Math.cos(pitch)]\n const right = [Math.cos(yaw), 0, Math.sin(yaw)]\n const up = [\n right[1] * forward[2] - right[2] * forward[1],\n right[2] * forward[0] - right[0] * forward[2],\n right[0] * forward[1] - right[1] * forward[0],\n ]\n const dot = (a) => a[0] * eye[0] + a[1] * eye[1] + a[2] * eye[2]\n // prettier-ignore\n return [right[0], up[0], -forward[0], 0, right[1], up[1], -forward[1], 0, right[2], up[2], -forward[2], 0, -dot(right), -dot(up), dot(forward), 1]\n}\n\nfunction multiply(a, b) {\n const out = new Float32Array(16)\n for (let column = 0; column < 4; column++)\n for (let row = 0; row < 4; row++) {\n let sum = 0\n for (let k = 0; k < 4; k++) sum += a[k * 4 + row] * b[column * 4 + k]\n out[column * 4 + row] = sum\n }\n return out\n}\n\nasync function main(data) {\n const walls = maze(7)\n const player = { x: 1.5, z: 1.5, yaw: Math.PI / 2, pitch: 0, captured: false }\n const hud = () =>\n widget.render(\n ui.stack([\n ui.canvas({\n key: \"maze\",\n gpu: true,\n height: 360,\n place: \"fill\",\n alt: \"A first-person maze\",\n // Under pointer capture, moves are relative: they turn the camera.\n onPointer: (p) => {\n if (p.dx !== undefined) {\n player.yaw += p.dx * 0.004\n player.pitch = Math.max(-1.2, Math.min(1.2, player.pitch - p.dy * 0.004))\n } else if (p.kind === \"down\" && !player.captured) widget.capturePointer()\n },\n }),\n ui.text(player.captured ? \"WASD to walk, Esc to let go\" : \"Click to look around\", {\n place: \"top-left\",\n inset: 8,\n }),\n ]),\n )\n widget.on(\"capture\", (captured) => {\n player.captured = captured\n hud()\n })\n hud()\n\n const device = await widget.gpu.requestDevice()\n const context = widget.gpu.getContext(\"maze\")\n const format = widget.gpu.getPreferredCanvasFormat()\n context.configure({ device, format })\n\n // One instance per wall cell, and one flat one for the floor: offset and size.\n const instances = []\n walls.forEach((row, z) => row.forEach((wall, x) => wall && instances.push(x + 0.5, 0.5, z + 0.5, 1, 1, 1)))\n instances.push(SIZE / 2, -0.05, SIZE / 2, SIZE, 0.1, SIZE)\n const instanceData = new Float32Array(instances)\n const mesh = box()\n const make = (array, usage) => {\n const buffer = device.createBuffer({ size: array.byteLength, usage: usage | GPUBufferUsage.COPY_DST })\n device.queue.writeBuffer(buffer, 0, array)\n return buffer\n }\n const vertices = make(mesh.vertices, GPUBufferUsage.VERTEX)\n const indices = make(mesh.indices, GPUBufferUsage.INDEX)\n const instanceBuffer = make(instanceData, GPUBufferUsage.VERTEX)\n const uniforms = device.createBuffer({ size: 80, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST })\n\n const module = device.createShaderModule({ code: SHADER })\n const pipeline = device.createRenderPipeline({\n layout: \"auto\",\n vertex: {\n module,\n entryPoint: \"vs\",\n buffers: [\n {\n arrayStride: 24,\n attributes: [\n { format: \"float32x3\", offset: 0, shaderLocation: 0 },\n { format: \"float32x3\", offset: 12, shaderLocation: 1 },\n ],\n },\n {\n arrayStride: 24,\n stepMode: \"instance\",\n attributes: [\n { format: \"float32x3\", offset: 0, shaderLocation: 2 },\n { format: \"float32x3\", offset: 12, shaderLocation: 3 },\n ],\n },\n ],\n },\n fragment: { module, entryPoint: \"fs\", targets: [{ format }] },\n primitive: { cullMode: \"back\" },\n depthStencil: { format: \"depth24plus\", depthWriteEnabled: true, depthCompare: \"less\" },\n })\n const group = device.createBindGroup({\n layout: pipeline.getBindGroupLayout(0),\n entries: [{ binding: 0, resource: { buffer: uniforms } }],\n })\n\n const open = (x, z) => !walls[Math.floor(z)]?.[Math.floor(x)]\n const depth = { texture: null, width: 0, height: 0 }\n for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) {\n const { dt, width, height, scale } = await widget.frame()\n // Walk, sliding along walls: each axis moves only into open cells, keeping 0.2 from them.\n const keys = widget.keys\n const ahead = (keys.has(\"KeyW\") ? 1 : 0) - (keys.has(\"KeyS\") ? 1 : 0)\n const side = (keys.has(\"KeyD\") ? 1 : 0) - (keys.has(\"KeyA\") ? 1 : 0)\n const speed = 2.5 * dt\n const dx = (Math.sin(player.yaw) * ahead + Math.cos(player.yaw) * side) * speed\n const dz = (-Math.cos(player.yaw) * ahead + Math.sin(player.yaw) * side) * speed\n if (open(player.x + dx + Math.sign(dx) * 0.2, player.z)) player.x += dx\n if (open(player.x, player.z + dz + Math.sign(dz) * 0.2)) player.z += dz\n\n const w = context.width || Math.round(width * scale)\n const h = context.height || Math.round(height * scale)\n if (depth.width !== w || depth.height !== h) {\n depth.texture?.destroy()\n depth.texture = device.createTexture({\n size: [w, h],\n format: \"depth24plus\",\n usage: GPUTextureUsage.RENDER_ATTACHMENT,\n })\n Object.assign(depth, { width: w, height: h })\n }\n const eye = [player.x, 0.6, player.z]\n const matrices = new Float32Array(20)\n matrices.set(multiply(perspective(1.2, w / h, 0.05, 50), view(eye, player.yaw, player.pitch)), 0)\n matrices.set([...eye, 1], 16)\n device.queue.writeBuffer(uniforms, 0, matrices)\n\n const encoder = device.createCommandEncoder()\n const pass = encoder.beginRenderPass({\n colorAttachments: [\n {\n view: context.getCurrentTexture().createView(),\n loadOp: \"clear\",\n storeOp: \"store\",\n clearValue: [0.08, 0.09, 0.12, 1],\n },\n ],\n depthStencilAttachment: {\n view: depth.texture.createView(),\n depthClearValue: 1,\n depthLoadOp: \"clear\",\n depthStoreOp: \"store\",\n },\n })\n pass.setPipeline(pipeline)\n pass.setBindGroup(0, group)\n pass.setVertexBuffer(0, vertices)\n pass.setVertexBuffer(1, instanceBuffer)\n pass.setIndexBuffer(indices, \"uint16\")\n pass.drawIndexed(36, instances.length / 6)\n pass.end()\n device.queue.submit([encoder.finish()])\n }\n}\n", + "data": { + "frames": 4 + }, + "canvases": [ + { + "key": "maze", + "width": 640, + "height": 360 + } + ], + "inputs": [ + { + "frame": 1, + "input": { + "type": "event", + "event": { + "id": "", + "type": "key", + "value": { + "kind": "down", + "key": "w", + "code": "KeyW", + "repeat": false, + "shift": false, + "alt": false, + "ctrl": false, + "meta": false + } + } + } + }, + { + "frame": 2, + "input": { + "type": "event", + "event": { + "id": "", + "type": "capture", + "value": true + } + } + }, + { + "frame": 2, + "input": { + "type": "event", + "event": { + "id": "0/:maze", + "type": "pointer", + "value": { + "kind": "move", + "dx": 40, + "dy": -10, + "button": 0 + } + } + } + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [], + "end": "stop", + "batches": [ + { + "frame": true, + "bytes": "AAAAPwAAAL8AAAC/AACAPwAAAAAAAAAAAAAAPwAAAD8AAAC/AACAPwAAAAAAAAAAAAAAPwAAAD8AAAA/AACAPwAAAAAAAAAAAAAAPwAAAL8AAAA/AACAPwAAAAAAAAAAAAAAvwAAAL8AAAA/AACAvwAAAAAAAAAAAAAAvwAAAD8AAAA/AACAvwAAAAAAAAAAAAAAvwAAAD8AAAC/AACAvwAAAAAAAAAAAAAAvwAAAL8AAAC/AACAvwAAAAAAAAAAAAAAvwAAAD8AAAC/AAAAAAAAgD8AAAAAAAAAvwAAAD8AAAA/AAAAAAAAgD8AAAAAAAAAPwAAAD8AAAA/AAAAAAAAgD8AAAAAAAAAPwAAAD8AAAC/AAAAAAAAgD8AAAAAAAAAvwAAAL8AAAA/AAAAAAAAgL8AAAAAAAAAvwAAAL8AAAC/AAAAAAAAgL8AAAAAAAAAPwAAAL8AAAC/AAAAAAAAgL8AAAAAAAAAPwAAAL8AAAA/AAAAAAAAgL8AAAAAAAAAPwAAAL8AAAA/AAAAAAAAAAAAAIA/AAAAPwAAAD8AAAA/AAAAAAAAAAAAAIA/AAAAvwAAAD8AAAA/AAAAAAAAAAAAAIA/AAAAvwAAAL8AAAA/AAAAAAAAAAAAAIA/AAAAvwAAAL8AAAC/AAAAAAAAAAAAAIC/AAAAvwAAAD8AAAC/AAAAAAAAAAAAAIC/AAAAPwAAAD8AAAC/AAAAAAAAAAAAAIC/AAAAPwAAAL8AAAC/AAAAAAAAAAAAAIC/AAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAAAAAPwAAAD8AAAA/AACAPwAAgD8AAIA/AADAPwAAAD8AAAA/AACAPwAAgD8AAIA/AAAgQAAAAD8AAAA/AACAPwAAgD8AAIA/AABgQAAAAD8AAAA/AACAPwAAgD8AAIA/AACQQAAAAD8AAAA/AACAPwAAgD8AAIA/AACwQAAAAD8AAAA/AACAPwAAgD8AAIA/AADQQAAAAD8AAAA/AACAPwAAgD8AAIA/AADwQAAAAD8AAAA/AACAPwAAgD8AAIA/AAAIQQAAAD8AAAA/AACAPwAAgD8AAIA/AAAYQQAAAD8AAAA/AACAPwAAgD8AAIA/AAAoQQAAAD8AAAA/AACAPwAAgD8AAIA/AAA4QQAAAD8AAAA/AACAPwAAgD8AAIA/AABIQQAAAD8AAAA/AACAPwAAgD8AAIA/AABYQQAAAD8AAAA/AACAPwAAgD8AAIA/AABoQQAAAD8AAAA/AACAPwAAgD8AAIA/AAB4QQAAAD8AAAA/AACAPwAAgD8AAIA/AACEQQAAAD8AAAA/AACAPwAAgD8AAIA/AACMQQAAAD8AAAA/AACAPwAAgD8AAIA/AACUQQAAAD8AAAA/AACAPwAAgD8AAIA/AACcQQAAAD8AAAA/AACAPwAAgD8AAIA/AACkQQAAAD8AAAA/AACAPwAAgD8AAIA/AAAAPwAAAD8AAMA/AACAPwAAgD8AAIA/AAAgQAAAAD8AAMA/AACAPwAAgD8AAIA/AABIQQAAAD8AAMA/AACAPwAAgD8AAIA/AACkQQAAAD8AAMA/AACAPwAAgD8AAIA/AAAAPwAAAD8AACBAAACAPwAAgD8AAIA/AAAgQAAAAD8AACBAAACAPwAAgD8AAIA/AABgQAAAAD8AACBAAACAPwAAgD8AAIA/AACQQAAAAD8AACBAAACAPwAAgD8AAIA/AADQQAAAAD8AACBAAACAPwAAgD8AAIA/AADwQAAAAD8AACBAAACAPwAAgD8AAIA/AAAIQQAAAD8AACBAAACAPwAAgD8AAIA/AAAYQQAAAD8AACBAAACAPwAAgD8AAIA/AAAoQQAAAD8AACBAAACAPwAAgD8AAIA/AABIQQAAAD8AACBAAACAPwAAgD8AAIA/AABoQQAAAD8AACBAAACAPwAAgD8AAIA/AACEQQAAAD8AACBAAACAPwAAgD8AAIA/AACMQQAAAD8AACBAAACAPwAAgD8AAIA/AACUQQAAAD8AACBAAACAPwAAgD8AAIA/AACcQQAAAD8AACBAAACAPwAAgD8AAIA/AACkQQAAAD8AACBAAACAPwAAgD8AAIA/AAAAPwAAAD8AAGBAAACAPwAAgD8AAIA/AACQQAAAAD8AAGBAAACAPwAAgD8AAIA/AAAoQQAAAD8AAGBAAACAPwAAgD8AAIA/AABoQQAAAD8AAGBAAACAPwAAgD8AAIA/AACkQQAAAD8AAGBAAACAPwAAgD8AAIA/AAAAPwAAAD8AAJBAAACAPwAAgD8AAIA/AADAPwAAAD8AAJBAAACAPwAAgD8AAIA/AAAgQAAAAD8AAJBAAACAPwAAgD8AAIA/AACQQAAAAD8AAJBAAACAPwAAgD8AAIA/AACwQAAAAD8AAJBAAACAPwAAgD8AAIA/AADQQAAAAD8AAJBAAACAPwAAgD8AAIA/AADwQAAAAD8AAJBAAACAPwAAgD8AAIA/AAAIQQAAAD8AAJBAAACAPwAAgD8AAIA/AAAoQQAAAD8AAJBAAACAPwAAgD8AAIA/AAA4QQAAAD8AAJBAAACAPwAAgD8AAIA/AABIQQAAAD8AAJBAAACAPwAAgD8AAIA/AABYQQAAAD8AAJBAAACAPwAAgD8AAIA/AABoQQAAAD8AAJBAAACAPwAAgD8AAIA/AACEQQAAAD8AAJBAAACAPwAAgD8AAIA/AACMQQAAAD8AAJBAAACAPwAAgD8AAIA/AACUQQAAAD8AAJBAAACAPwAAgD8AAIA/AACkQQAAAD8AAJBAAACAPwAAgD8AAIA/AAAAPwAAAD8AALBAAACAPwAAgD8AAIA/AAAgQAAAAD8AALBAAACAPwAAgD8AAIA/AACQQAAAAD8AALBAAACAPwAAgD8AAIA/AADQQAAAAD8AALBAAACAPwAAgD8AAIA/AAAoQQAAAD8AALBAAACAPwAAgD8AAIA/AABoQQAAAD8AALBAAACAPwAAgD8AAIA/AACEQQAAAD8AALBAAACAPwAAgD8AAIA/AACkQQAAAD8AALBAAACAPwAAgD8AAIA/AAAAPwAAAD8AANBAAACAPwAAgD8AAIA/AAAgQAAAAD8AANBAAACAPwAAgD8AAIA/AACQQAAAAD8AANBAAACAPwAAgD8AAIA/AADQQAAAAD8AANBAAACAPwAAgD8AAIA/AAAIQQAAAD8AANBAAACAPwAAgD8AAIA/AAAYQQAAAD8AANBAAACAPwAAgD8AAIA/AAAoQQAAAD8AANBAAACAPwAAgD8AAIA/AABIQQAAAD8AANBAAACAPwAAgD8AAIA/AABoQQAAAD8AANBAAACAPwAAgD8AAIA/AAB4QQAAAD8AANBAAACAPwAAgD8AAIA/AACEQQAAAD8AANBAAACAPwAAgD8AAIA/AACUQQAAAD8AANBAAACAPwAAgD8AAIA/AACkQQAAAD8AANBAAACAPwAAgD8AAIA/AAAAPwAAAD8AAPBAAACAPwAAgD8AAIA/AAAgQAAAAD8AAPBAAACAPwAAgD8AAIA/AACQQAAAAD8AAPBAAACAPwAAgD8AAIA/AAAIQQAAAD8AAPBAAACAPwAAgD8AAIA/AAAoQQAAAD8AAPBAAACAPwAAgD8AAIA/AABIQQAAAD8AAPBAAACAPwAAgD8AAIA/AACUQQAAAD8AAPBAAACAPwAAgD8AAIA/AACkQQAAAD8AAPBAAACAPwAAgD8AAIA/AAAAPwAAAD8AAAhBAACAPwAAgD8AAIA/AAAgQAAAAD8AAAhBAACAPwAAgD8AAIA/AACQQAAAAD8AAAhBAACAPwAAgD8AAIA/AADQQAAAAD8AAAhBAACAPwAAgD8AAIA/AADwQAAAAD8AAAhBAACAPwAAgD8AAIA/AAAIQQAAAD8AAAhBAACAPwAAgD8AAIA/AAAoQQAAAD8AAAhBAACAPwAAgD8AAIA/AABIQQAAAD8AAAhBAACAPwAAgD8AAIA/AABYQQAAAD8AAAhBAACAPwAAgD8AAIA/AABoQQAAAD8AAAhBAACAPwAAgD8AAIA/AAB4QQAAAD8AAAhBAACAPwAAgD8AAIA/AACEQQAAAD8AAAhBAACAPwAAgD8AAIA/AACMQQAAAD8AAAhBAACAPwAAgD8AAIA/AACUQQAAAD8AAAhBAACAPwAAgD8AAIA/AACkQQAAAD8AAAhBAACAPwAAgD8AAIA/AAAAPwAAAD8AABhBAACAPwAAgD8AAIA/AACQQAAAAD8AABhBAACAPwAAgD8AAIA/AAAoQQAAAD8AABhBAACAPwAAgD8AAIA/AABIQQAAAD8AABhBAACAPwAAgD8AAIA/AACUQQAAAD8AABhBAACAPwAAgD8AAIA/AACkQQAAAD8AABhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAChBAACAPwAAgD8AAIA/AAAgQAAAAD8AAChBAACAPwAAgD8AAIA/AABgQAAAAD8AAChBAACAPwAAgD8AAIA/AACQQAAAAD8AAChBAACAPwAAgD8AAIA/AACwQAAAAD8AAChBAACAPwAAgD8AAIA/AADQQAAAAD8AAChBAACAPwAAgD8AAIA/AADwQAAAAD8AAChBAACAPwAAgD8AAIA/AAAIQQAAAD8AAChBAACAPwAAgD8AAIA/AAAoQQAAAD8AAChBAACAPwAAgD8AAIA/AABIQQAAAD8AAChBAACAPwAAgD8AAIA/AABoQQAAAD8AAChBAACAPwAAgD8AAIA/AAB4QQAAAD8AAChBAACAPwAAgD8AAIA/AACEQQAAAD8AAChBAACAPwAAgD8AAIA/AACMQQAAAD8AAChBAACAPwAAgD8AAIA/AACUQQAAAD8AAChBAACAPwAAgD8AAIA/AACkQQAAAD8AAChBAACAPwAAgD8AAIA/AAAAPwAAAD8AADhBAACAPwAAgD8AAIA/AAAgQAAAAD8AADhBAACAPwAAgD8AAIA/AAAIQQAAAD8AADhBAACAPwAAgD8AAIA/AAAoQQAAAD8AADhBAACAPwAAgD8AAIA/AABIQQAAAD8AADhBAACAPwAAgD8AAIA/AABoQQAAAD8AADhBAACAPwAAgD8AAIA/AACkQQAAAD8AADhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAEhBAACAPwAAgD8AAIA/AAAgQAAAAD8AAEhBAACAPwAAgD8AAIA/AABgQAAAAD8AAEhBAACAPwAAgD8AAIA/AACQQAAAAD8AAEhBAACAPwAAgD8AAIA/AADQQAAAAD8AAEhBAACAPwAAgD8AAIA/AAAIQQAAAD8AAEhBAACAPwAAgD8AAIA/AAAYQQAAAD8AAEhBAACAPwAAgD8AAIA/AAAoQQAAAD8AAEhBAACAPwAAgD8AAIA/AABIQQAAAD8AAEhBAACAPwAAgD8AAIA/AABoQQAAAD8AAEhBAACAPwAAgD8AAIA/AACEQQAAAD8AAEhBAACAPwAAgD8AAIA/AACMQQAAAD8AAEhBAACAPwAAgD8AAIA/AACUQQAAAD8AAEhBAACAPwAAgD8AAIA/AACcQQAAAD8AAEhBAACAPwAAgD8AAIA/AACkQQAAAD8AAEhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAFhBAACAPwAAgD8AAIA/AADQQAAAAD8AAFhBAACAPwAAgD8AAIA/AABIQQAAAD8AAFhBAACAPwAAgD8AAIA/AACEQQAAAD8AAFhBAACAPwAAgD8AAIA/AACkQQAAAD8AAFhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAGhBAACAPwAAgD8AAIA/AADAPwAAAD8AAGhBAACAPwAAgD8AAIA/AAAgQAAAAD8AAGhBAACAPwAAgD8AAIA/AABgQAAAAD8AAGhBAACAPwAAgD8AAIA/AACQQAAAAD8AAGhBAACAPwAAgD8AAIA/AACwQAAAAD8AAGhBAACAPwAAgD8AAIA/AADQQAAAAD8AAGhBAACAPwAAgD8AAIA/AADwQAAAAD8AAGhBAACAPwAAgD8AAIA/AAAIQQAAAD8AAGhBAACAPwAAgD8AAIA/AAAYQQAAAD8AAGhBAACAPwAAgD8AAIA/AAAoQQAAAD8AAGhBAACAPwAAgD8AAIA/AAA4QQAAAD8AAGhBAACAPwAAgD8AAIA/AABIQQAAAD8AAGhBAACAPwAAgD8AAIA/AABoQQAAAD8AAGhBAACAPwAAgD8AAIA/AAB4QQAAAD8AAGhBAACAPwAAgD8AAIA/AACEQQAAAD8AAGhBAACAPwAAgD8AAIA/AACMQQAAAD8AAGhBAACAPwAAgD8AAIA/AACUQQAAAD8AAGhBAACAPwAAgD8AAIA/AACkQQAAAD8AAGhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAHhBAACAPwAAgD8AAIA/AABIQQAAAD8AAHhBAACAPwAAgD8AAIA/AACkQQAAAD8AAHhBAACAPwAAgD8AAIA/AAAAPwAAAD8AAIRBAACAPwAAgD8AAIA/AAAgQAAAAD8AAIRBAACAPwAAgD8AAIA/AACQQAAAAD8AAIRBAACAPwAAgD8AAIA/AACwQAAAAD8AAIRBAACAPwAAgD8AAIA/AADQQAAAAD8AAIRBAACAPwAAgD8AAIA/AADwQAAAAD8AAIRBAACAPwAAgD8AAIA/AAAIQQAAAD8AAIRBAACAPwAAgD8AAIA/AAAYQQAAAD8AAIRBAACAPwAAgD8AAIA/AAAoQQAAAD8AAIRBAACAPwAAgD8AAIA/AAA4QQAAAD8AAIRBAACAPwAAgD8AAIA/AABIQQAAAD8AAIRBAACAPwAAgD8AAIA/AABYQQAAAD8AAIRBAACAPwAAgD8AAIA/AABoQQAAAD8AAIRBAACAPwAAgD8AAIA/AAB4QQAAAD8AAIRBAACAPwAAgD8AAIA/AACEQQAAAD8AAIRBAACAPwAAgD8AAIA/AACMQQAAAD8AAIRBAACAPwAAgD8AAIA/AACUQQAAAD8AAIRBAACAPwAAgD8AAIA/AACkQQAAAD8AAIRBAACAPwAAgD8AAIA/AAAAPwAAAD8AAIxBAACAPwAAgD8AAIA/AAAgQAAAAD8AAIxBAACAPwAAgD8AAIA/AACQQAAAAD8AAIxBAACAPwAAgD8AAIA/AAAoQQAAAD8AAIxBAACAPwAAgD8AAIA/AACUQQAAAD8AAIxBAACAPwAAgD8AAIA/AACkQQAAAD8AAIxBAACAPwAAgD8AAIA/AAAAPwAAAD8AAJRBAACAPwAAgD8AAIA/AAAgQAAAAD8AAJRBAACAPwAAgD8AAIA/AACQQAAAAD8AAJRBAACAPwAAgD8AAIA/AADQQAAAAD8AAJRBAACAPwAAgD8AAIA/AADwQAAAAD8AAJRBAACAPwAAgD8AAIA/AAAIQQAAAD8AAJRBAACAPwAAgD8AAIA/AAAoQQAAAD8AAJRBAACAPwAAgD8AAIA/AABIQQAAAD8AAJRBAACAPwAAgD8AAIA/AABYQQAAAD8AAJRBAACAPwAAgD8AAIA/AABoQQAAAD8AAJRBAACAPwAAgD8AAIA/AAB4QQAAAD8AAJRBAACAPwAAgD8AAIA/AACEQQAAAD8AAJRBAACAPwAAgD8AAIA/AACUQQAAAD8AAJRBAACAPwAAgD8AAIA/AACkQQAAAD8AAJRBAACAPwAAgD8AAIA/AAAAPwAAAD8AAJxBAACAPwAAgD8AAIA/AAAgQAAAAD8AAJxBAACAPwAAgD8AAIA/AAAIQQAAAD8AAJxBAACAPwAAgD8AAIA/AACEQQAAAD8AAJxBAACAPwAAgD8AAIA/AACkQQAAAD8AAJxBAACAPwAAgD8AAIA/AAAAPwAAAD8AAKRBAACAPwAAgD8AAIA/AADAPwAAAD8AAKRBAACAPwAAgD8AAIA/AAAgQAAAAD8AAKRBAACAPwAAgD8AAIA/AABgQAAAAD8AAKRBAACAPwAAgD8AAIA/AACQQAAAAD8AAKRBAACAPwAAgD8AAIA/AACwQAAAAD8AAKRBAACAPwAAgD8AAIA/AADQQAAAAD8AAKRBAACAPwAAgD8AAIA/AADwQAAAAD8AAKRBAACAPwAAgD8AAIA/AAAIQQAAAD8AAKRBAACAPwAAgD8AAIA/AAAYQQAAAD8AAKRBAACAPwAAgD8AAIA/AAAoQQAAAD8AAKRBAACAPwAAgD8AAIA/AAA4QQAAAD8AAKRBAACAPwAAgD8AAIA/AABIQQAAAD8AAKRBAACAPwAAgD8AAIA/AABYQQAAAD8AAKRBAACAPwAAgD8AAIA/AABoQQAAAD8AAKRBAACAPwAAgD8AAIA/AAB4QQAAAD8AAKRBAACAPwAAgD8AAIA/AACEQQAAAD8AAKRBAACAPwAAgD8AAIA/AACMQQAAAD8AAKRBAACAPwAAgD8AAIA/AACUQQAAAD8AAKRBAACAPwAAgD8AAIA/AACcQQAAAD8AAKRBAACAPwAAgD8AAIA/AACkQQAAAD8AAKRBAACAPwAAgD8AAIA/AAAoQc3MTL0AAChBAACoQc3MzD0AAKhB", + "ops": [ + ["context",1,"maze","rgba8unorm","opaque"], + ["buffer",2,576,40], + ["writeBuffer",2,0,0,576], + ["buffer",3,72,24], + ["writeBuffer",3,0,576,72], + ["buffer",4,5832,40], + ["writeBuffer",4,0,648,5832], + ["buffer",5,80,72], + ["shader",6,"\nstruct Uniforms { viewProjection: mat4x4f, eye: vec4f }\n@group(0) @binding(0) var u: Uniforms;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f, @location(1) world: vec3f, @location(2) tint: f32 }\n\n@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f, @location(2) offset: vec3f, @location(3) size: vec3f) -> Out {\n let world = position * size + offset;\n var out: Out;\n out.position = u.viewProjection * vec4f(world, 1.0);\n out.normal = normal;\n out.world = world;\n out.tint = select(1.0, 0.55, size.y < 0.5);\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let light = normalize(vec3f(0.3, 1.0, 0.5));\n let lit = 0.35 + 0.65 * max(dot(in.normal, light), 0.0);\n let fog = clamp(distance(in.world, u.eye.xyz) / 14.0, 0.0, 1.0);\n let color = vec3f(0.85, 0.75, 0.6) * in.tint * lit;\n return vec4f(mix(color, vec3f(0.08, 0.09, 0.12), fog), 1.0);\n}\n"], + ["renderPipeline",7,{"layout":"auto","vertex":{"module":6,"entryPoint":"vs","buffers":[{"arrayStride":24,"stepMode":"vertex","attributes":[{"format":"float32x3","offset":0,"shaderLocation":0},{"format":"float32x3","offset":12,"shaderLocation":1}]},{"arrayStride":24,"stepMode":"instance","attributes":[{"format":"float32x3","offset":0,"shaderLocation":2},{"format":"float32x3","offset":12,"shaderLocation":3}]}]},"fragment":{"module":6,"entryPoint":"fs","targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"back"},"depthStencil":{"format":"depth24plus","depthWriteEnabled":true,"depthCompare":"less"},"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["autoLayout",8,7,0], + ["bindGroup",9,{"layout":8,"entries":[{"binding":0,"resource":{"buffer":5,"offset":0,"size":-1}}]}] + ] + }, + { + "frame": true, + "bytes": "ci1oJAAAAADNIIA/AACAPwAAAADaGLs/AAAAAAAAAAD2e1I/AAAAAGBVjaQyMY2k+NydvzmEYL8+mca/AADAvwAAwD+amRk/AADAPwAAgD8=", + "ops": [ + ["texture",10,640,360,1,"depth24plus",16,1,1], + ["writeBuffer",5,0,0,80], + ["view",11,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["view",12,10,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":11,"resolveTarget":null,"clearValue":[0.08,0.09,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":12,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",7], + ["setBindGroup",0,9,[]], + ["setVertexBuffer",0,2,0,-1], + ["setVertexBuffer",1,4,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,243,0,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "ci1oJAAAAADNIIA/AACAPwAAAADaGLs/AAAAAAAAAAD2e1I/AAAAAGBVjaQyMY2k+NydvzmEYL/x78u/VVXFv1VVxT+amRk/AADAPwAAgD8=", + "ops": [ + ["writeBuffer",5,0,0,80], + ["pass",{"colorAttachments":[{"view":11,"resolveTarget":null,"clearValue":[0.08,0.09,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":12,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",7], + ["setBindGroup",0,9,[]], + ["setVertexBuffer",0,2,0,-1], + ["setVertexBuffer",1,4,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,243,0,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "yCIGvsNcbL3jx3w/LYd8PwAAAACK8ro/1PUjPdvLIz23y08/fZMYvK0sIz7oAiM+a/+Bv+hcRb8dQ/C/NZ/pvzqZyj+amRk/htnAPwAAgD8=", + "ops": [ + ["writeBuffer",5,0,0,80], + ["pass",{"colorAttachments":[{"view":11,"resolveTarget":null,"clearValue":[0.08,0.09,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":12,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",7], + ["setBindGroup",0,9,[]], + ["setVertexBuffer",0,2,0,-1], + ["setVertexBuffer",1,4,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,243,0,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "yCIGvsNcbL3jx3w/LYd8PwAAAACK8ro/1PUjPdvLIz23y08/fZMYvK0sIz7oAiM+a/+Bv0u9RL+4mPW/cvPuvx/dzz+amRk/C7PBPwAAgD8=", + "ops": [ + ["writeBuffer",5,0,0,80], + ["pass",{"colorAttachments":[{"view":11,"resolveTarget":null,"clearValue":[0.08,0.09,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":{"view":12,"depthClearValue":1,"depthLoadOp":"clear","depthStoreOp":"store","depthReadOnly":false}}], + ["setPipeline",7], + ["setBindGroup",0,9,[]], + ["setVertexBuffer",0,2,0,-1], + ["setVertexBuffer",1,4,0,-1], + ["setIndexBuffer",3,"uint16",0,-1], + ["drawIndexed",36,243,0,0,0], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/post-process.json b/packages/widget/test/fixtures/gpu/post-process.json new file mode 100644 index 00000000000..6c6f65024fe --- /dev/null +++ b/packages/widget/test/fixtures/gpu/post-process.json @@ -0,0 +1,111 @@ +{ + "name": "post-process", + "source": "// Render to a texture, then post-process it onto the canvas: a spinning triangle drawn offscreen, shown through a\n// vignette with a chromatic offset. `data.frames`: stop after that many frames (fixtures).\nconst SCENE = `\n@group(0) @binding(0) var angle: vec4f;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) color: vec3f }\n\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n let a = angle.x + f32(index) * 2.0943951;\n var out: Out;\n out.position = vec4f(cos(a) * 0.7, sin(a) * 0.7, 0.0, 1.0);\n var colors = array(vec3f(1, 0.3, 0.2), vec3f(0.2, 1, 0.4), vec3f(0.3, 0.4, 1));\n out.color = colors[index];\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n return vec4f(in.color, 1.0);\n}\n`\n\nconst POST = `\n@group(0) @binding(0) var linear: sampler;\n@group(0) @binding(1) var scene: texture_2d;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f }\n\n// One triangle that covers the screen.\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n let corner = vec2f(f32((index << 1u) & 2u), f32(index & 2u));\n var out: Out;\n out.position = vec4f(corner * 2.0 - 1.0, 0.0, 1.0);\n out.uv = vec2f(corner.x, 1.0 - corner.y);\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let offset = (in.uv - 0.5) * 0.01;\n let r = textureSample(scene, linear, in.uv + offset).r;\n let g = textureSample(scene, linear, in.uv).g;\n let b = textureSample(scene, linear, in.uv - offset).b;\n let vignette = 1.0 - dot(in.uv - 0.5, in.uv - 0.5) * 1.5;\n return vec4f(vec3f(r, g, b) * vignette, 1.0);\n}\n`\n\nasync function main(data) {\n widget.render(ui.canvas({ key: \"post\", gpu: true, height: 220, alt: \"A post-processed triangle\" }))\n const device = await widget.gpu.requestDevice()\n const context = widget.gpu.getContext(\"post\")\n const format = widget.gpu.getPreferredCanvasFormat()\n context.configure({ device, format })\n\n const sceneModule = device.createShaderModule({ code: SCENE })\n const scenePipeline = device.createRenderPipeline({\n layout: \"auto\",\n vertex: { module: sceneModule, entryPoint: \"vs\" },\n fragment: { module: sceneModule, entryPoint: \"fs\", targets: [{ format: \"rgba8unorm\" }] },\n })\n const angle = device.createBuffer({ size: 16, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST })\n const sceneGroup = device.createBindGroup({\n layout: scenePipeline.getBindGroupLayout(0),\n entries: [{ binding: 0, resource: { buffer: angle } }],\n })\n\n const postModule = device.createShaderModule({ code: POST })\n const postPipeline = device.createRenderPipeline({\n layout: \"auto\",\n vertex: { module: postModule, entryPoint: \"vs\" },\n fragment: { module: postModule, entryPoint: \"fs\", targets: [{ format }] },\n })\n const sampler = device.createSampler({ magFilter: \"linear\", minFilter: \"linear\" })\n\n // The offscreen texture and its bind group follow the canvas's size.\n const target = { texture: null, group: null, width: 0, height: 0 }\n for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) {\n const { t, width, height, scale } = await widget.frame()\n const w = context.width || Math.round(width * scale)\n const h = context.height || Math.round(height * scale)\n if (target.width !== w || target.height !== h) {\n target.texture?.destroy()\n target.texture = device.createTexture({\n size: [w, h],\n format: \"rgba8unorm\",\n usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING,\n })\n target.group = device.createBindGroup({\n layout: postPipeline.getBindGroupLayout(0),\n entries: [\n { binding: 0, resource: sampler },\n { binding: 1, resource: target.texture.createView() },\n ],\n })\n Object.assign(target, { width: w, height: h })\n }\n device.queue.writeBuffer(angle, 0, new Float32Array([t, 0, 0, 0]))\n\n const encoder = device.createCommandEncoder()\n const scene = encoder.beginRenderPass({\n colorAttachments: [\n { view: target.texture.createView(), loadOp: \"clear\", storeOp: \"store\", clearValue: [0.1, 0.1, 0.12, 1] },\n ],\n })\n scene.setPipeline(scenePipeline)\n scene.setBindGroup(0, sceneGroup)\n scene.draw(3)\n scene.end()\n const post = encoder.beginRenderPass({\n colorAttachments: [{ view: context.getCurrentTexture().createView(), loadOp: \"clear\", storeOp: \"store\" }],\n })\n post.setPipeline(postPipeline)\n post.setBindGroup(0, target.group)\n post.draw(3)\n post.end()\n device.queue.submit([encoder.finish()])\n }\n}\n", + "data": { + "frames": 3 + }, + "canvases": [ + { + "key": "post", + "width": 320, + "height": 220 + } + ], + "inputs": [ + { + "frame": 1, + "input": { + "type": "canvas", + "key": "post", + "width": 640, + "height": 440 + } + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "", + "ops": [ + ["context",1,"post","rgba8unorm","opaque"], + ["shader",2,"\n@group(0) @binding(0) var angle: vec4f;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) color: vec3f }\n\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n let a = angle.x + f32(index) * 2.0943951;\n var out: Out;\n out.position = vec4f(cos(a) * 0.7, sin(a) * 0.7, 0.0, 1.0);\n var colors = array(vec3f(1, 0.3, 0.2), vec3f(0.2, 1, 0.4), vec3f(0.3, 0.4, 1));\n out.color = colors[index];\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n return vec4f(in.color, 1.0);\n}\n"], + ["renderPipeline",3,{"layout":"auto","vertex":{"module":2,"entryPoint":"vs","buffers":[]},"fragment":{"module":2,"entryPoint":"fs","targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"none"},"depthStencil":null,"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["buffer",4,16,72], + ["autoLayout",5,3,0], + ["bindGroup",6,{"layout":5,"entries":[{"binding":0,"resource":{"buffer":4,"offset":0,"size":-1}}]}], + ["shader",7,"\n@group(0) @binding(0) var linear: sampler;\n@group(0) @binding(1) var scene: texture_2d;\n\nstruct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f }\n\n// One triangle that covers the screen.\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n let corner = vec2f(f32((index << 1u) & 2u), f32(index & 2u));\n var out: Out;\n out.position = vec4f(corner * 2.0 - 1.0, 0.0, 1.0);\n out.uv = vec2f(corner.x, 1.0 - corner.y);\n return out;\n}\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n let offset = (in.uv - 0.5) * 0.01;\n let r = textureSample(scene, linear, in.uv + offset).r;\n let g = textureSample(scene, linear, in.uv).g;\n let b = textureSample(scene, linear, in.uv - offset).b;\n let vignette = 1.0 - dot(in.uv - 0.5, in.uv - 0.5) * 1.5;\n return vec4f(vec3f(r, g, b) * vignette, 1.0);\n}\n"], + ["renderPipeline",8,{"layout":"auto","vertex":{"module":7,"entryPoint":"vs","buffers":[]},"fragment":{"module":7,"entryPoint":"fs","targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"none"},"depthStencil":null,"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["sampler",9,{"addressModeU":"clamp-to-edge","addressModeV":"clamp-to-edge","addressModeW":"clamp-to-edge","magFilter":"linear","minFilter":"linear","mipmapFilter":"nearest","lodMinClamp":0,"lodMaxClamp":32,"compare":null,"maxAnisotropy":1}] + ] + }, + { + "frame": true, + "bytes": "AAAAAAAAAAAAAAAAAAAAAA==", + "ops": [ + ["texture",10,320,220,1,"rgba8unorm",20,1,1], + ["autoLayout",11,8,0], + ["view",12,10,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["bindGroup",13,{"layout":11,"entries":[{"binding":0,"resource":{"sampler":9}},{"binding":1,"resource":{"view":12}}]}], + ["writeBuffer",4,0,0,16], + ["view",14,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":12,"resolveTarget":null,"clearValue":[0.1,0.1,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["setBindGroup",0,6,[]], + ["draw",3,1,0,0], + ["end"], + ["pass",{"colorAttachments":[{"view":14,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",8], + ["setBindGroup",0,13,[]], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": true, + "bytes": "iYiIPAAAAAAAAAAAAAAAAA==", + "ops": [ + ["destroy",10], + ["texture",15,640,440,1,"rgba8unorm",20,1,1], + ["view",16,15,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["bindGroup",17,{"layout":11,"entries":[{"binding":0,"resource":{"sampler":9}},{"binding":1,"resource":{"view":16}}]}], + ["writeBuffer",4,0,0,16], + ["pass",{"colorAttachments":[{"view":16,"resolveTarget":null,"clearValue":[0.1,0.1,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["setBindGroup",0,6,[]], + ["draw",3,1,0,0], + ["end"], + ["pass",{"colorAttachments":[{"view":14,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",8], + ["setBindGroup",0,17,[]], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "iYgIPQAAAAAAAAAAAAAAAA==", + "ops": [ + ["writeBuffer",4,0,0,16], + ["pass",{"colorAttachments":[{"view":16,"resolveTarget":null,"clearValue":[0.1,0.1,0.12,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",3], + ["setBindGroup",0,6,[]], + ["draw",3,1,0,0], + ["end"], + ["pass",{"colorAttachments":[{"view":14,"resolveTarget":null,"clearValue":[0,0,0,0],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",8], + ["setBindGroup",0,17,[]], + ["draw",3,1,0,0], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/fixtures/gpu/raw-bad-enum.json b/packages/widget/test/fixtures/gpu/raw-bad-enum.json new file mode 100644 index 00000000000..838c21bd5f9 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-bad-enum.json @@ -0,0 +1,22 @@ +{ + "name": "raw-bad-enum", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"sampler\", 1, { addressModeU: \"wrap\", addressModeV: \"repeat\", addressModeW: \"repeat\", magFilter: \"nearest\", minFilter: \"nearest\", mipmapFilter: \"nearest\", lodMinClamp: 0, lodMaxClamp: 32, compare: null, maxAnisotropy: 1 }]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"sampler\" argument 2.addressModeU must be one of clamp-to-edge, repeat, mirror-repeat", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-bind-group-layout-entry.json b/packages/widget/test/fixtures/gpu/raw-bind-group-layout-entry.json new file mode 100644 index 00000000000..08a2c7b0ec1 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-bind-group-layout-entry.json @@ -0,0 +1,22 @@ +{ + "name": "raw-bind-group-layout-entry", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"bindGroupLayout\", 1, { entries: [{ binding: 0, visibility: 2, buffer: null, sampler: null, texture: null }] }]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"bindGroupLayout\" argument 2.entries[0] needs exactly one of buffer, sampler and texture", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-bytes-out-of-range.json b/packages/widget/test/fixtures/gpu/raw-bytes-out-of-range.json new file mode 100644 index 00000000000..be27aeae933 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-bytes-out-of-range.json @@ -0,0 +1,22 @@ +{ + "name": "raw-bytes-out-of-range", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"buffer\", 1, 16, 8], [\"writeBuffer\", 1, 0, 4, 8]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: bytes [4, 12) are outside the batch's 8 bytes", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-draw-outside-a-pass.json b/packages/widget/test/fixtures/gpu/raw-draw-outside-a-pass.json new file mode 100644 index 00000000000..ba87939e233 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-draw-outside-a-pass.json @@ -0,0 +1,22 @@ +{ + "name": "raw-draw-outside-a-pass", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"draw\", 3, 1, 0, 0]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"draw\" outside a render pass", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-handle-reused.json b/packages/widget/test/fixtures/gpu/raw-handle-reused.json new file mode 100644 index 00000000000..2ed748e0ffd --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-handle-reused.json @@ -0,0 +1,22 @@ +{ + "name": "raw-handle-reused", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"buffer\", 1, 16, 32], [\"buffer\", 1, 16, 32]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: handle 1 was already used", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-handles-out-of-order.json b/packages/widget/test/fixtures/gpu/raw-handles-out-of-order.json new file mode 100644 index 00000000000..5db8f1aad8d --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-handles-out-of-order.json @@ -0,0 +1,22 @@ +{ + "name": "raw-handles-out-of-order", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"buffer\", 2, 16, 32], [\"buffer\", 1, 16, 32]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: handle 1 was already used", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-handles-over-4096.json b/packages/widget/test/fixtures/gpu/raw-handles-over-4096.json new file mode 100644 index 00000000000..db90ac709b0 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-handles-over-4096.json @@ -0,0 +1,22 @@ +{ + "name": "raw-handles-over-4096", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: Array.from({ length: 4097 }, (_, i) => [\"shader\", i + 1, \"\"]), bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 4096: the number of live handles is over the limit of 4096", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-no-such-handle.json b/packages/widget/test/fixtures/gpu/raw-no-such-handle.json new file mode 100644 index 00000000000..a5005a05b41 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-no-such-handle.json @@ -0,0 +1,22 @@ +{ + "name": "raw-no-such-handle", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"destroy\", 9]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: no handle 9", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-not-a-list.json b/packages/widget/test/fixtures/gpu/raw-not-a-list.json new file mode 100644 index 00000000000..df619a3f124 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-not-a-list.json @@ -0,0 +1,22 @@ +{ + "name": "raw-not-a-list", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [{ op: \"buffer\" }], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: an op is a list that starts with its name", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-not-a-whole-number.json b/packages/widget/test/fixtures/gpu/raw-not-a-whole-number.json new file mode 100644 index 00000000000..471ef5028e2 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-not-a-whole-number.json @@ -0,0 +1,22 @@ +{ + "name": "raw-not-a-whole-number", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"buffer\", 1, 16.5, 8]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"buffer\" argument 2 must be a whole number", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-ops-over-20000.json b/packages/widget/test/fixtures/gpu/raw-ops-over-20000.json new file mode 100644 index 00000000000..570c4105475 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-ops-over-20000.json @@ -0,0 +1,22 @@ +{ + "name": "raw-ops-over-20000", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: Array.from({ length: 20001 }, (_, i) => [\"shader\", i + 1, \"\"]), bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "the number of ops in a batch is over the limit of 20000", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-pass-left-open.json b/packages/widget/test/fixtures/gpu/raw-pass-left-open.json new file mode 100644 index 00000000000..bd89461f62d --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-pass-left-open.json @@ -0,0 +1,24 @@ +{ + "name": "raw-pass-left-open", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"context\", 1, \"scene\", \"rgba8unorm\", \"opaque\"], [\"view\", 2, 1, { dimension: \"2d\", baseMipLevel: 0, mipLevelCount: 1, baseArrayLayer: 0, arrayLayerCount: 1 }], [\"pass\", { colorAttachments: [{ view: 2, resolveTarget: null, clearValue: [0, 0, 0, 1], loadOp: \"clear\", storeOp: \"store\" }], depthStencilAttachment: null }]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "a render pass is still open at the end of the batch", + "canvases": [ + "scene" + ] + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-shader-over-256-kb.json b/packages/widget/test/fixtures/gpu/raw-shader-over-256-kb.json new file mode 100644 index 00000000000..3249baa4ab3 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-shader-over-256-kb.json @@ -0,0 +1,22 @@ +{ + "name": "raw-shader-over-256-kb", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"shader\", 1, \"x\".repeat(256 * 1024 + 1)]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"shader\" argument 2 is over the limit of 262144", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-unknown-op.json b/packages/widget/test/fixtures/gpu/raw-unknown-op.json new file mode 100644 index 00000000000..f0b1f2b4171 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-unknown-op.json @@ -0,0 +1,22 @@ +{ + "name": "raw-unknown-op", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"sparkle\", 1]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: unknown op \"sparkle\"", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-wrong-arity.json b/packages/widget/test/fixtures/gpu/raw-wrong-arity.json new file mode 100644 index 00000000000..ef1b761a74b --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-wrong-arity.json @@ -0,0 +1,22 @@ +{ + "name": "raw-wrong-arity", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"buffer\", 1, 16]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 0: \"buffer\" takes 3 arguments", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/raw-wrong-kind.json b/packages/widget/test/fixtures/gpu/raw-wrong-kind.json new file mode 100644 index 00000000000..47870f9246b --- /dev/null +++ b/packages/widget/test/fixtures/gpu/raw-wrong-kind.json @@ -0,0 +1,22 @@ +{ + "name": "raw-wrong-kind", + "source": "async function main() {\n widget.render(ui.canvas({ key: \"scene\", gpu: true, height: 100 }))\n __host.post({ type: \"gpu\", ops: [[\"shader\", 1, \"\"], [\"destroy\", 1]], bytes: new ArrayBuffer(8) })\n await widget.frame()\n}", + "canvases": [ + { + "key": "scene", + "width": 100, + "height": 100 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [ + { + "message": "gpu op 1: handle 1 is a shader, not a buffer or texture", + "canvases": "all" + } + ], + "end": "return" +} diff --git a/packages/widget/test/fixtures/gpu/templates/cube.js b/packages/widget/test/fixtures/gpu/templates/cube.js new file mode 100644 index 00000000000..4191ad97370 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/templates/cube.js @@ -0,0 +1,161 @@ +// A rotating, lit, depth-tested cube (widgets-gpu.md). `data.frames`: stop after that many frames (fixtures). +const SHADER = ` +struct Uniforms { mvp: mat4x4f, model: mat4x4f } +@group(0) @binding(0) var u: Uniforms; + +struct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f } + +@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f) -> Out { + var out: Out; + out.position = u.mvp * vec4f(position, 1.0); + out.normal = (u.model * vec4f(normal, 0.0)).xyz; + return out; +} + +@fragment fn fs(in: Out) -> @location(0) vec4f { + let light = normalize(vec3f(0.4, 0.8, 0.6)); + let lit = 0.2 + 0.8 * max(dot(normalize(in.normal), light), 0.0); + return vec4f(vec3f(0.3, 0.6, 1.0) * lit, 1.0); +} +` + +// Column-major 4x4 matrices, as WGSL reads them. +function multiply(a, b) { + const out = new Float32Array(16) + for (let column = 0; column < 4; column++) + for (let row = 0; row < 4; row++) { + let sum = 0 + for (let k = 0; k < 4; k++) sum += a[k * 4 + row] * b[column * 4 + k] + out[column * 4 + row] = sum + } + return out +} + +// A perspective projection to WebGPU's depth range, 0 to 1. +function perspective(fovy, aspect, near, far) { + const f = 1 / Math.tan(fovy / 2) + // prettier-ignore + return new Float32Array([f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0, far / (near - far), -1, 0, 0, (near * far) / (near - far), 0]) +} + +function rotation(x, y) { + const [cx, sx, cy, sy] = [Math.cos(x), Math.sin(x), Math.cos(y), Math.sin(y)] + return new Float32Array([cy, sx * sy, -cx * sy, 0, 0, cx, sx, 0, sy, -sx * cy, cx * cy, 0, 0, 0, 0, 1]) +} + +const translation = (x, y, z) => new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, z, 1]) + +// Each face: its normal and its 4 corners; 24 vertices of position and normal, 36 indices. +function cube() { + // prettier-ignore + const faces = [ + [[1, 0, 0], [[1, -1, -1], [1, 1, -1], [1, 1, 1], [1, -1, 1]]], + [[-1, 0, 0], [[-1, -1, 1], [-1, 1, 1], [-1, 1, -1], [-1, -1, -1]]], + [[0, 1, 0], [[-1, 1, -1], [-1, 1, 1], [1, 1, 1], [1, 1, -1]]], + [[0, -1, 0], [[-1, -1, 1], [-1, -1, -1], [1, -1, -1], [1, -1, 1]]], + [[0, 0, 1], [[1, -1, 1], [1, 1, 1], [-1, 1, 1], [-1, -1, 1]]], + [[0, 0, -1], [[-1, -1, -1], [-1, 1, -1], [1, 1, -1], [1, -1, -1]]], + ] + const vertices = [] + const indices = [] + faces.forEach(([normal, corners], face) => { + corners.forEach((corner) => vertices.push(...corner, ...normal)) + const at = face * 4 + indices.push(at, at + 1, at + 2, at, at + 2, at + 3) + }) + return { vertices: new Float32Array(vertices), indices: new Uint16Array(indices) } +} + +async function main(data) { + widget.render(ui.canvas({ key: "cube", gpu: true, height: 240, alt: "A rotating cube" })) + const device = await widget.gpu.requestDevice() + const context = widget.gpu.getContext("cube") + const format = widget.gpu.getPreferredCanvasFormat() + context.configure({ device, format, alphaMode: "opaque" }) + + const mesh = cube() + const vertices = device.createBuffer({ + size: mesh.vertices.byteLength, + usage: GPUBufferUsage.VERTEX | GPUBufferUsage.COPY_DST, + }) + device.queue.writeBuffer(vertices, 0, mesh.vertices) + const indices = device.createBuffer({ + size: mesh.indices.byteLength, + usage: GPUBufferUsage.INDEX | GPUBufferUsage.COPY_DST, + }) + device.queue.writeBuffer(indices, 0, mesh.indices) + const uniforms = device.createBuffer({ size: 128, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST }) + + const module = device.createShaderModule({ code: SHADER }) + const pipeline = device.createRenderPipeline({ + layout: "auto", + vertex: { + module, + entryPoint: "vs", + buffers: [ + { + arrayStride: 24, + attributes: [ + { format: "float32x3", offset: 0, shaderLocation: 0 }, + { format: "float32x3", offset: 12, shaderLocation: 1 }, + ], + }, + ], + }, + fragment: { module, entryPoint: "fs", targets: [{ format }] }, + primitive: { topology: "triangle-list", cullMode: "back" }, + depthStencil: { format: "depth24plus", depthWriteEnabled: true, depthCompare: "less" }, + }) + const group = device.createBindGroup({ + layout: pipeline.getBindGroupLayout(0), + entries: [{ binding: 0, resource: { buffer: uniforms } }], + }) + + const depth = { texture: null, width: 0, height: 0 } + for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) { + const { t, width, height, scale } = await widget.frame() + const w = context.width || Math.round(width * scale) + const h = context.height || Math.round(height * scale) + // The depth texture follows the canvas's size. + if (depth.width !== w || depth.height !== h) { + depth.texture?.destroy() + depth.texture = device.createTexture({ + size: [w, h], + format: "depth24plus", + usage: GPUTextureUsage.RENDER_ATTACHMENT, + }) + Object.assign(depth, { width: w, height: h }) + } + const model = rotation(t * 0.7, t) + const mvp = multiply(perspective(Math.PI / 4, w / h, 0.1, 100), multiply(translation(0, 0, -6), model)) + const matrices = new Float32Array(32) + matrices.set(mvp, 0) + matrices.set(model, 16) + device.queue.writeBuffer(uniforms, 0, matrices) + + const encoder = device.createCommandEncoder() + const pass = encoder.beginRenderPass({ + colorAttachments: [ + { + view: context.getCurrentTexture().createView(), + loadOp: "clear", + storeOp: "store", + clearValue: [0.05, 0.05, 0.08, 1], + }, + ], + depthStencilAttachment: { + view: depth.texture.createView(), + depthClearValue: 1, + depthLoadOp: "clear", + depthStoreOp: "store", + }, + }) + pass.setPipeline(pipeline) + pass.setBindGroup(0, group) + pass.setVertexBuffer(0, vertices) + pass.setIndexBuffer(indices, "uint16") + pass.drawIndexed(36) + pass.end() + device.queue.submit([encoder.finish()]) + } +} diff --git a/packages/widget/test/fixtures/gpu/templates/maze.js b/packages/widget/test/fixtures/gpu/templates/maze.js new file mode 100644 index 00000000000..6996fe444f7 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/templates/maze.js @@ -0,0 +1,252 @@ +// A first-person maze: walls as a few hundred instanced boxes, WASD to walk, a click captures the pointer for +// mouse-look, and a HUD in a stack over the canvas. `data.frames`: stop after that many frames (fixtures). +const SHADER = ` +struct Uniforms { viewProjection: mat4x4f, eye: vec4f } +@group(0) @binding(0) var u: Uniforms; + +struct Out { @builtin(position) position: vec4f, @location(0) normal: vec3f, @location(1) world: vec3f, @location(2) tint: f32 } + +@vertex fn vs(@location(0) position: vec3f, @location(1) normal: vec3f, @location(2) offset: vec3f, @location(3) size: vec3f) -> Out { + let world = position * size + offset; + var out: Out; + out.position = u.viewProjection * vec4f(world, 1.0); + out.normal = normal; + out.world = world; + out.tint = select(1.0, 0.55, size.y < 0.5); + return out; +} + +@fragment fn fs(in: Out) -> @location(0) vec4f { + let light = normalize(vec3f(0.3, 1.0, 0.5)); + let lit = 0.35 + 0.65 * max(dot(in.normal, light), 0.0); + let fog = clamp(distance(in.world, u.eye.xyz) / 14.0, 0.0, 1.0); + let color = vec3f(0.85, 0.75, 0.6) * in.tint * lit; + return vec4f(mix(color, vec3f(0.08, 0.09, 0.12), fog), 1.0); +} +` + +const SIZE = 21 + +// A maze of SIZE x SIZE cells (true: wall), carved by a depth-first walk from a seeded generator. +function maze(seed) { + let state = seed + const random = () => (state = (state * 1103515245 + 12345) % 2147483648) / 2147483648 + const walls = Array.from({ length: SIZE }, () => Array(SIZE).fill(true)) + const stack = [[1, 1]] + walls[1][1] = false + while (stack.length > 0) { + const [x, z] = stack[stack.length - 1] + const next = [ + [2, 0], + [-2, 0], + [0, 2], + [0, -2], + ] + .map(([dx, dz]) => [x + dx, z + dz, dx, dz]) + .filter(([nx, nz]) => nx > 0 && nz > 0 && nx < SIZE - 1 && nz < SIZE - 1 && walls[nz][nx]) + if (next.length === 0) { + stack.pop() + continue + } + const [nx, nz, dx, dz] = next[Math.floor(random() * next.length)] + walls[z + dz / 2][x + dx / 2] = false + walls[nz][nx] = false + stack.push([nx, nz]) + } + return walls +} + +// A unit box: 24 vertices of position and normal, 36 indices. +function box() { + // prettier-ignore + const faces = [ + [[1, 0, 0], [[1, -1, -1], [1, 1, -1], [1, 1, 1], [1, -1, 1]]], + [[-1, 0, 0], [[-1, -1, 1], [-1, 1, 1], [-1, 1, -1], [-1, -1, -1]]], + [[0, 1, 0], [[-1, 1, -1], [-1, 1, 1], [1, 1, 1], [1, 1, -1]]], + [[0, -1, 0], [[-1, -1, 1], [-1, -1, -1], [1, -1, -1], [1, -1, 1]]], + [[0, 0, 1], [[1, -1, 1], [1, 1, 1], [-1, 1, 1], [-1, -1, 1]]], + [[0, 0, -1], [[-1, -1, -1], [-1, 1, -1], [1, 1, -1], [1, -1, -1]]], + ] + const vertices = [] + const indices = [] + faces.forEach(([normal, corners], face) => { + corners.forEach((corner) => vertices.push(...corner.map((c) => c / 2), ...normal)) + indices.push(face * 4, face * 4 + 1, face * 4 + 2, face * 4, face * 4 + 2, face * 4 + 3) + }) + return { vertices: new Float32Array(vertices), indices: new Uint16Array(indices) } +} + +function perspective(fovy, aspect, near, far) { + const f = 1 / Math.tan(fovy / 2) + return [f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0, far / (near - far), -1, 0, 0, (near * far) / (near - far), 0] +} + +// The view matrix of an eye at `eye` looking along yaw and pitch. +function view(eye, yaw, pitch) { + const forward = [Math.sin(yaw) * Math.cos(pitch), Math.sin(pitch), -Math.cos(yaw) * Math.cos(pitch)] + const right = [Math.cos(yaw), 0, Math.sin(yaw)] + const up = [ + right[1] * forward[2] - right[2] * forward[1], + right[2] * forward[0] - right[0] * forward[2], + right[0] * forward[1] - right[1] * forward[0], + ] + const dot = (a) => a[0] * eye[0] + a[1] * eye[1] + a[2] * eye[2] + // prettier-ignore + return [right[0], up[0], -forward[0], 0, right[1], up[1], -forward[1], 0, right[2], up[2], -forward[2], 0, -dot(right), -dot(up), dot(forward), 1] +} + +function multiply(a, b) { + const out = new Float32Array(16) + for (let column = 0; column < 4; column++) + for (let row = 0; row < 4; row++) { + let sum = 0 + for (let k = 0; k < 4; k++) sum += a[k * 4 + row] * b[column * 4 + k] + out[column * 4 + row] = sum + } + return out +} + +async function main(data) { + const walls = maze(7) + const player = { x: 1.5, z: 1.5, yaw: Math.PI / 2, pitch: 0, captured: false } + const hud = () => + widget.render( + ui.stack([ + ui.canvas({ + key: "maze", + gpu: true, + height: 360, + place: "fill", + alt: "A first-person maze", + // Under pointer capture, moves are relative: they turn the camera. + onPointer: (p) => { + if (p.dx !== undefined) { + player.yaw += p.dx * 0.004 + player.pitch = Math.max(-1.2, Math.min(1.2, player.pitch - p.dy * 0.004)) + } else if (p.kind === "down" && !player.captured) widget.capturePointer() + }, + }), + ui.text(player.captured ? "WASD to walk, Esc to let go" : "Click to look around", { + place: "top-left", + inset: 8, + }), + ]), + ) + widget.on("capture", (captured) => { + player.captured = captured + hud() + }) + hud() + + const device = await widget.gpu.requestDevice() + const context = widget.gpu.getContext("maze") + const format = widget.gpu.getPreferredCanvasFormat() + context.configure({ device, format }) + + // One instance per wall cell, and one flat one for the floor: offset and size. + const instances = [] + walls.forEach((row, z) => row.forEach((wall, x) => wall && instances.push(x + 0.5, 0.5, z + 0.5, 1, 1, 1))) + instances.push(SIZE / 2, -0.05, SIZE / 2, SIZE, 0.1, SIZE) + const instanceData = new Float32Array(instances) + const mesh = box() + const make = (array, usage) => { + const buffer = device.createBuffer({ size: array.byteLength, usage: usage | GPUBufferUsage.COPY_DST }) + device.queue.writeBuffer(buffer, 0, array) + return buffer + } + const vertices = make(mesh.vertices, GPUBufferUsage.VERTEX) + const indices = make(mesh.indices, GPUBufferUsage.INDEX) + const instanceBuffer = make(instanceData, GPUBufferUsage.VERTEX) + const uniforms = device.createBuffer({ size: 80, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST }) + + const module = device.createShaderModule({ code: SHADER }) + const pipeline = device.createRenderPipeline({ + layout: "auto", + vertex: { + module, + entryPoint: "vs", + buffers: [ + { + arrayStride: 24, + attributes: [ + { format: "float32x3", offset: 0, shaderLocation: 0 }, + { format: "float32x3", offset: 12, shaderLocation: 1 }, + ], + }, + { + arrayStride: 24, + stepMode: "instance", + attributes: [ + { format: "float32x3", offset: 0, shaderLocation: 2 }, + { format: "float32x3", offset: 12, shaderLocation: 3 }, + ], + }, + ], + }, + fragment: { module, entryPoint: "fs", targets: [{ format }] }, + primitive: { cullMode: "back" }, + depthStencil: { format: "depth24plus", depthWriteEnabled: true, depthCompare: "less" }, + }) + const group = device.createBindGroup({ + layout: pipeline.getBindGroupLayout(0), + entries: [{ binding: 0, resource: { buffer: uniforms } }], + }) + + const open = (x, z) => !walls[Math.floor(z)]?.[Math.floor(x)] + const depth = { texture: null, width: 0, height: 0 } + for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) { + const { dt, width, height, scale } = await widget.frame() + // Walk, sliding along walls: each axis moves only into open cells, keeping 0.2 from them. + const keys = widget.keys + const ahead = (keys.has("KeyW") ? 1 : 0) - (keys.has("KeyS") ? 1 : 0) + const side = (keys.has("KeyD") ? 1 : 0) - (keys.has("KeyA") ? 1 : 0) + const speed = 2.5 * dt + const dx = (Math.sin(player.yaw) * ahead + Math.cos(player.yaw) * side) * speed + const dz = (-Math.cos(player.yaw) * ahead + Math.sin(player.yaw) * side) * speed + if (open(player.x + dx + Math.sign(dx) * 0.2, player.z)) player.x += dx + if (open(player.x, player.z + dz + Math.sign(dz) * 0.2)) player.z += dz + + const w = context.width || Math.round(width * scale) + const h = context.height || Math.round(height * scale) + if (depth.width !== w || depth.height !== h) { + depth.texture?.destroy() + depth.texture = device.createTexture({ + size: [w, h], + format: "depth24plus", + usage: GPUTextureUsage.RENDER_ATTACHMENT, + }) + Object.assign(depth, { width: w, height: h }) + } + const eye = [player.x, 0.6, player.z] + const matrices = new Float32Array(20) + matrices.set(multiply(perspective(1.2, w / h, 0.05, 50), view(eye, player.yaw, player.pitch)), 0) + matrices.set([...eye, 1], 16) + device.queue.writeBuffer(uniforms, 0, matrices) + + const encoder = device.createCommandEncoder() + const pass = encoder.beginRenderPass({ + colorAttachments: [ + { + view: context.getCurrentTexture().createView(), + loadOp: "clear", + storeOp: "store", + clearValue: [0.08, 0.09, 0.12, 1], + }, + ], + depthStencilAttachment: { + view: depth.texture.createView(), + depthClearValue: 1, + depthLoadOp: "clear", + depthStoreOp: "store", + }, + }) + pass.setPipeline(pipeline) + pass.setBindGroup(0, group) + pass.setVertexBuffer(0, vertices) + pass.setVertexBuffer(1, instanceBuffer) + pass.setIndexBuffer(indices, "uint16") + pass.drawIndexed(36, instances.length / 6) + pass.end() + device.queue.submit([encoder.finish()]) + } +} diff --git a/packages/widget/test/fixtures/gpu/templates/post-process.js b/packages/widget/test/fixtures/gpu/templates/post-process.js new file mode 100644 index 00000000000..9d116f8a81f --- /dev/null +++ b/packages/widget/test/fixtures/gpu/templates/post-process.js @@ -0,0 +1,117 @@ +// Render to a texture, then post-process it onto the canvas: a spinning triangle drawn offscreen, shown through a +// vignette with a chromatic offset. `data.frames`: stop after that many frames (fixtures). +const SCENE = ` +@group(0) @binding(0) var angle: vec4f; + +struct Out { @builtin(position) position: vec4f, @location(0) color: vec3f } + +@vertex fn vs(@builtin(vertex_index) index: u32) -> Out { + let a = angle.x + f32(index) * 2.0943951; + var out: Out; + out.position = vec4f(cos(a) * 0.7, sin(a) * 0.7, 0.0, 1.0); + var colors = array(vec3f(1, 0.3, 0.2), vec3f(0.2, 1, 0.4), vec3f(0.3, 0.4, 1)); + out.color = colors[index]; + return out; +} + +@fragment fn fs(in: Out) -> @location(0) vec4f { + return vec4f(in.color, 1.0); +} +` + +const POST = ` +@group(0) @binding(0) var linear: sampler; +@group(0) @binding(1) var scene: texture_2d; + +struct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f } + +// One triangle that covers the screen. +@vertex fn vs(@builtin(vertex_index) index: u32) -> Out { + let corner = vec2f(f32((index << 1u) & 2u), f32(index & 2u)); + var out: Out; + out.position = vec4f(corner * 2.0 - 1.0, 0.0, 1.0); + out.uv = vec2f(corner.x, 1.0 - corner.y); + return out; +} + +@fragment fn fs(in: Out) -> @location(0) vec4f { + let offset = (in.uv - 0.5) * 0.01; + let r = textureSample(scene, linear, in.uv + offset).r; + let g = textureSample(scene, linear, in.uv).g; + let b = textureSample(scene, linear, in.uv - offset).b; + let vignette = 1.0 - dot(in.uv - 0.5, in.uv - 0.5) * 1.5; + return vec4f(vec3f(r, g, b) * vignette, 1.0); +} +` + +async function main(data) { + widget.render(ui.canvas({ key: "post", gpu: true, height: 220, alt: "A post-processed triangle" })) + const device = await widget.gpu.requestDevice() + const context = widget.gpu.getContext("post") + const format = widget.gpu.getPreferredCanvasFormat() + context.configure({ device, format }) + + const sceneModule = device.createShaderModule({ code: SCENE }) + const scenePipeline = device.createRenderPipeline({ + layout: "auto", + vertex: { module: sceneModule, entryPoint: "vs" }, + fragment: { module: sceneModule, entryPoint: "fs", targets: [{ format: "rgba8unorm" }] }, + }) + const angle = device.createBuffer({ size: 16, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST }) + const sceneGroup = device.createBindGroup({ + layout: scenePipeline.getBindGroupLayout(0), + entries: [{ binding: 0, resource: { buffer: angle } }], + }) + + const postModule = device.createShaderModule({ code: POST }) + const postPipeline = device.createRenderPipeline({ + layout: "auto", + vertex: { module: postModule, entryPoint: "vs" }, + fragment: { module: postModule, entryPoint: "fs", targets: [{ format }] }, + }) + const sampler = device.createSampler({ magFilter: "linear", minFilter: "linear" }) + + // The offscreen texture and its bind group follow the canvas's size. + const target = { texture: null, group: null, width: 0, height: 0 } + for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) { + const { t, width, height, scale } = await widget.frame() + const w = context.width || Math.round(width * scale) + const h = context.height || Math.round(height * scale) + if (target.width !== w || target.height !== h) { + target.texture?.destroy() + target.texture = device.createTexture({ + size: [w, h], + format: "rgba8unorm", + usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING, + }) + target.group = device.createBindGroup({ + layout: postPipeline.getBindGroupLayout(0), + entries: [ + { binding: 0, resource: sampler }, + { binding: 1, resource: target.texture.createView() }, + ], + }) + Object.assign(target, { width: w, height: h }) + } + device.queue.writeBuffer(angle, 0, new Float32Array([t, 0, 0, 0])) + + const encoder = device.createCommandEncoder() + const scene = encoder.beginRenderPass({ + colorAttachments: [ + { view: target.texture.createView(), loadOp: "clear", storeOp: "store", clearValue: [0.1, 0.1, 0.12, 1] }, + ], + }) + scene.setPipeline(scenePipeline) + scene.setBindGroup(0, sceneGroup) + scene.draw(3) + scene.end() + const post = encoder.beginRenderPass({ + colorAttachments: [{ view: context.getCurrentTexture().createView(), loadOp: "clear", storeOp: "store" }], + }) + post.setPipeline(postPipeline) + post.setBindGroup(0, target.group) + post.draw(3) + post.end() + device.queue.submit([encoder.finish()]) + } +} diff --git a/packages/widget/test/fixtures/gpu/templates/textured-quad.js b/packages/widget/test/fixtures/gpu/templates/textured-quad.js new file mode 100644 index 00000000000..7e444ca0205 --- /dev/null +++ b/packages/widget/test/fixtures/gpu/templates/textured-quad.js @@ -0,0 +1,87 @@ +// A quad with a texture built in script: a checkerboard with a gradient, sampled with linear filtering and repeat. +// `data.frames`: stop after that many frames (fixtures). +const SHADER = ` +struct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f } + +@vertex fn vs(@builtin(vertex_index) index: u32) -> Out { + var corners = array(vec2f(-1, -1), vec2f(1, -1), vec2f(1, 1), vec2f(-1, -1), vec2f(1, 1), vec2f(-1, 1)); + let corner = corners[index]; + var out: Out; + out.position = vec4f(corner * 0.8, 0.0, 1.0); + out.uv = (corner * vec2f(0.5, -0.5) + 0.5) * 2.0; + return out; +} + +@group(0) @binding(0) var linear: sampler; +@group(0) @binding(1) var image: texture_2d; + +@fragment fn fs(in: Out) -> @location(0) vec4f { + return textureSample(image, linear, in.uv); +} +` + +// 64 x 64 RGBA pixels: 8-pixel squares, tinted by position. +function checkerboard(size) { + const pixels = new Uint8Array(size * size * 4) + for (let y = 0; y < size; y++) + for (let x = 0; x < size; x++) { + const on = ((x >> 3) + (y >> 3)) % 2 === 0 + const at = (y * size + x) * 4 + pixels[at] = on ? 255 : Math.round((x / size) * 255) + pixels[at + 1] = on ? 255 : 64 + pixels[at + 2] = on ? 255 : Math.round((y / size) * 255) + pixels[at + 3] = 255 + } + return pixels +} + +async function main(data) { + widget.render(ui.canvas({ key: "quad", gpu: true, height: 200, alt: "A textured quad" })) + const device = await widget.gpu.requestDevice() + const context = widget.gpu.getContext("quad") + const format = widget.gpu.getPreferredCanvasFormat() + context.configure({ device, format }) + + const size = 64 + const texture = device.createTexture({ + size: [size, size], + format: "rgba8unorm", + usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST, + }) + device.queue.writeTexture({ texture }, checkerboard(size), { bytesPerRow: size * 4 }, [size, size]) + const sampler = device.createSampler({ + magFilter: "linear", + minFilter: "linear", + addressModeU: "repeat", + addressModeV: "repeat", + }) + + const module = device.createShaderModule({ code: SHADER }) + const pipeline = device.createRenderPipeline({ + layout: "auto", + vertex: { module, entryPoint: "vs" }, + fragment: { module, entryPoint: "fs", targets: [{ format }] }, + }) + const group = device.createBindGroup({ + layout: pipeline.getBindGroupLayout(0), + entries: [ + { binding: 0, resource: sampler }, + { binding: 1, resource: texture.createView() }, + ], + }) + + for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) { + await widget.frame() + const encoder = device.createCommandEncoder() + const pass = encoder.beginRenderPass({ + colorAttachments: [ + { view: context.getCurrentTexture().createView(), loadOp: "clear", storeOp: "store", clearValue: [0, 0, 0, 1] }, + ], + }) + pass.setPipeline(pipeline) + pass.setBindGroup(0, group) + pass.draw(6) + pass.end() + device.queue.submit([encoder.finish()]) + } +} diff --git a/packages/widget/test/fixtures/gpu/textured-quad.json b/packages/widget/test/fixtures/gpu/textured-quad.json new file mode 100644 index 00000000000..2c669c9427a --- /dev/null +++ b/packages/widget/test/fixtures/gpu/textured-quad.json @@ -0,0 +1,62 @@ +{ + "name": "textured-quad", + "source": "// A quad with a texture built in script: a checkerboard with a gradient, sampled with linear filtering and repeat.\n// `data.frames`: stop after that many frames (fixtures).\nconst SHADER = `\nstruct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f }\n\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n var corners = array(vec2f(-1, -1), vec2f(1, -1), vec2f(1, 1), vec2f(-1, -1), vec2f(1, 1), vec2f(-1, 1));\n let corner = corners[index];\n var out: Out;\n out.position = vec4f(corner * 0.8, 0.0, 1.0);\n out.uv = (corner * vec2f(0.5, -0.5) + 0.5) * 2.0;\n return out;\n}\n\n@group(0) @binding(0) var linear: sampler;\n@group(0) @binding(1) var image: texture_2d;\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n return textureSample(image, linear, in.uv);\n}\n`\n\n// 64 x 64 RGBA pixels: 8-pixel squares, tinted by position.\nfunction checkerboard(size) {\n const pixels = new Uint8Array(size * size * 4)\n for (let y = 0; y < size; y++)\n for (let x = 0; x < size; x++) {\n const on = ((x >> 3) + (y >> 3)) % 2 === 0\n const at = (y * size + x) * 4\n pixels[at] = on ? 255 : Math.round((x / size) * 255)\n pixels[at + 1] = on ? 255 : 64\n pixels[at + 2] = on ? 255 : Math.round((y / size) * 255)\n pixels[at + 3] = 255\n }\n return pixels\n}\n\nasync function main(data) {\n widget.render(ui.canvas({ key: \"quad\", gpu: true, height: 200, alt: \"A textured quad\" }))\n const device = await widget.gpu.requestDevice()\n const context = widget.gpu.getContext(\"quad\")\n const format = widget.gpu.getPreferredCanvasFormat()\n context.configure({ device, format })\n\n const size = 64\n const texture = device.createTexture({\n size: [size, size],\n format: \"rgba8unorm\",\n usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST,\n })\n device.queue.writeTexture({ texture }, checkerboard(size), { bytesPerRow: size * 4 }, [size, size])\n const sampler = device.createSampler({\n magFilter: \"linear\",\n minFilter: \"linear\",\n addressModeU: \"repeat\",\n addressModeV: \"repeat\",\n })\n\n const module = device.createShaderModule({ code: SHADER })\n const pipeline = device.createRenderPipeline({\n layout: \"auto\",\n vertex: { module, entryPoint: \"vs\" },\n fragment: { module, entryPoint: \"fs\", targets: [{ format }] },\n })\n const group = device.createBindGroup({\n layout: pipeline.getBindGroupLayout(0),\n entries: [\n { binding: 0, resource: sampler },\n { binding: 1, resource: texture.createView() },\n ],\n })\n\n for (let frame = 0; data?.frames === undefined || frame < data.frames; frame++) {\n await widget.frame()\n const encoder = device.createCommandEncoder()\n const pass = encoder.beginRenderPass({\n colorAttachments: [\n { view: context.getCurrentTexture().createView(), loadOp: \"clear\", storeOp: \"store\", clearValue: [0, 0, 0, 1] },\n ],\n })\n pass.setPipeline(pipeline)\n pass.setBindGroup(0, group)\n pass.draw(6)\n pass.end()\n device.queue.submit([encoder.finish()])\n }\n}\n", + "data": { + "frames": 2 + }, + "canvases": [ + { + "key": "quad", + "width": 400, + "height": 400 + } + ], + "gpu": { + "available": true, + "format": "rgba8unorm" + }, + "errors": [], + "end": "return", + "batches": [ + { + "frame": true, + "bytes": "//////////////////////////////////////////8gQAD/JEAA/yhAAP8sQAD/MEAA/zRAAP84QAD/PEAA////////////////////////////////////////////YEAA/2RAAP9oQAD/bEAA/3BAAP90QAD/eEAA/3xAAP///////////////////////////////////////////59AAP+jQAD/p0AA/6tAAP+vQAD/s0AA/7dAAP+7QAD////////////////////////////////////////////fQAD/40AA/+dAAP/rQAD/70AA//NAAP/3QAD/+0AA////////////////////////////////////////////IEAE/yRABP8oQAT/LEAE/zBABP80QAT/OEAE/zxABP///////////////////////////////////////////2BABP9kQAT/aEAE/2xABP9wQAT/dEAE/3hABP98QAT///////////////////////////////////////////+fQAT/o0AE/6dABP+rQAT/r0AE/7NABP+3QAT/u0AE////////////////////////////////////////////30AE/+NABP/nQAT/60AE/+9ABP/zQAT/90AE//tABP///////////////////////////////////////////yBACP8kQAj/KEAI/yxACP8wQAj/NEAI/zhACP88QAj///////////////////////////////////////////9gQAj/ZEAI/2hACP9sQAj/cEAI/3RACP94QAj/fEAI////////////////////////////////////////////n0AI/6NACP+nQAj/q0AI/69ACP+zQAj/t0AI/7tACP///////////////////////////////////////////99ACP/jQAj/50AI/+tACP/vQAj/80AI//dACP/7QAj///////////////////////////////////////////8gQAz/JEAM/yhADP8sQAz/MEAM/zRADP84QAz/PEAM////////////////////////////////////////////YEAM/2RADP9oQAz/bEAM/3BADP90QAz/eEAM/3xADP///////////////////////////////////////////59ADP+jQAz/p0AM/6tADP+vQAz/s0AM/7dADP+7QAz////////////////////////////////////////////fQAz/40AM/+dADP/rQAz/70AM//NADP/3QAz/+0AM////////////////////////////////////////////IEAQ/yRAEP8oQBD/LEAQ/zBAEP80QBD/OEAQ/zxAEP///////////////////////////////////////////2BAEP9kQBD/aEAQ/2xAEP9wQBD/dEAQ/3hAEP98QBD///////////////////////////////////////////+fQBD/o0AQ/6dAEP+rQBD/r0AQ/7NAEP+3QBD/u0AQ////////////////////////////////////////////30AQ/+NAEP/nQBD/60AQ/+9AEP/zQBD/90AQ//tAEP///////////////////////////////////////////yBAFP8kQBT/KEAU/yxAFP8wQBT/NEAU/zhAFP88QBT///////////////////////////////////////////9gQBT/ZEAU/2hAFP9sQBT/cEAU/3RAFP94QBT/fEAU////////////////////////////////////////////n0AU/6NAFP+nQBT/q0AU/69AFP+zQBT/t0AU/7tAFP///////////////////////////////////////////99AFP/jQBT/50AU/+tAFP/vQBT/80AU//dAFP/7QBT///////////////////////////////////////////8gQBj/JEAY/yhAGP8sQBj/MEAY/zRAGP84QBj/PEAY////////////////////////////////////////////YEAY/2RAGP9oQBj/bEAY/3BAGP90QBj/eEAY/3xAGP///////////////////////////////////////////59AGP+jQBj/p0AY/6tAGP+vQBj/s0AY/7dAGP+7QBj////////////////////////////////////////////fQBj/40AY/+dAGP/rQBj/70AY//NAGP/3QBj/+0AY////////////////////////////////////////////IEAc/yRAHP8oQBz/LEAc/zBAHP80QBz/OEAc/zxAHP///////////////////////////////////////////2BAHP9kQBz/aEAc/2xAHP9wQBz/dEAc/3hAHP98QBz///////////////////////////////////////////+fQBz/o0Ac/6dAHP+rQBz/r0Ac/7NAHP+3QBz/u0Ac////////////////////////////////////////////30Ac/+NAHP/nQBz/60Ac/+9AHP/zQBz/90Ac//tAHP8AQCD/BEAg/whAIP8MQCD/EEAg/xRAIP8YQCD/HEAg////////////////////////////////////////////QEAg/0RAIP9IQCD/TEAg/1BAIP9UQCD/WEAg/1xAIP///////////////////////////////////////////4BAIP+DQCD/h0Ag/4tAIP+PQCD/k0Ag/5dAIP+bQCD///////////////////////////////////////////+/QCD/w0Ag/8dAIP/LQCD/z0Ag/9NAIP/XQCD/20Ag////////////////////////////////////////////AEAk/wRAJP8IQCT/DEAk/xBAJP8UQCT/GEAk/xxAJP///////////////////////////////////////////0BAJP9EQCT/SEAk/0xAJP9QQCT/VEAk/1hAJP9cQCT///////////////////////////////////////////+AQCT/g0Ak/4dAJP+LQCT/j0Ak/5NAJP+XQCT/m0Ak////////////////////////////////////////////v0Ak/8NAJP/HQCT/y0Ak/89AJP/TQCT/10Ak/9tAJP///////////////////////////////////////////wBAKP8EQCj/CEAo/wxAKP8QQCj/FEAo/xhAKP8cQCj///////////////////////////////////////////9AQCj/REAo/0hAKP9MQCj/UEAo/1RAKP9YQCj/XEAo////////////////////////////////////////////gEAo/4NAKP+HQCj/i0Ao/49AKP+TQCj/l0Ao/5tAKP///////////////////////////////////////////79AKP/DQCj/x0Ao/8tAKP/PQCj/00Ao/9dAKP/bQCj///////////////////////////////////////////8AQCz/BEAs/whALP8MQCz/EEAs/xRALP8YQCz/HEAs////////////////////////////////////////////QEAs/0RALP9IQCz/TEAs/1BALP9UQCz/WEAs/1xALP///////////////////////////////////////////4BALP+DQCz/h0As/4tALP+PQCz/k0As/5dALP+bQCz///////////////////////////////////////////+/QCz/w0As/8dALP/LQCz/z0As/9NALP/XQCz/20As////////////////////////////////////////////AEAw/wRAMP8IQDD/DEAw/xBAMP8UQDD/GEAw/xxAMP///////////////////////////////////////////0BAMP9EQDD/SEAw/0xAMP9QQDD/VEAw/1hAMP9cQDD///////////////////////////////////////////+AQDD/g0Aw/4dAMP+LQDD/j0Aw/5NAMP+XQDD/m0Aw////////////////////////////////////////////v0Aw/8NAMP/HQDD/y0Aw/89AMP/TQDD/10Aw/9tAMP///////////////////////////////////////////wBANP8EQDT/CEA0/wxANP8QQDT/FEA0/xhANP8cQDT///////////////////////////////////////////9AQDT/REA0/0hANP9MQDT/UEA0/1RANP9YQDT/XEA0////////////////////////////////////////////gEA0/4NANP+HQDT/i0A0/49ANP+TQDT/l0A0/5tANP///////////////////////////////////////////79ANP/DQDT/x0A0/8tANP/PQDT/00A0/9dANP/bQDT///////////////////////////////////////////8AQDj/BEA4/whAOP8MQDj/EEA4/xRAOP8YQDj/HEA4////////////////////////////////////////////QEA4/0RAOP9IQDj/TEA4/1BAOP9UQDj/WEA4/1xAOP///////////////////////////////////////////4BAOP+DQDj/h0A4/4tAOP+PQDj/k0A4/5dAOP+bQDj///////////////////////////////////////////+/QDj/w0A4/8dAOP/LQDj/z0A4/9NAOP/XQDj/20A4////////////////////////////////////////////AEA8/wRAPP8IQDz/DEA8/xBAPP8UQDz/GEA8/xxAPP///////////////////////////////////////////0BAPP9EQDz/SEA8/0xAPP9QQDz/VEA8/1hAPP9cQDz///////////////////////////////////////////+AQDz/g0A8/4dAPP+LQDz/j0A8/5NAPP+XQDz/m0A8////////////////////////////////////////////v0A8/8NAPP/HQDz/y0A8/89APP/TQDz/10A8/9tAPP//////////////////////////////////////////////////////////////////////////////////////IEBA/yRAQP8oQED/LEBA/zBAQP80QED/OEBA/zxAQP///////////////////////////////////////////2BAQP9kQED/aEBA/2xAQP9wQED/dEBA/3hAQP98QED///////////////////////////////////////////+fQED/o0BA/6dAQP+rQED/r0BA/7NAQP+3QED/u0BA////////////////////////////////////////////30BA/+NAQP/nQED/60BA/+9AQP/zQED/90BA//tAQP///////////////////////////////////////////yBARP8kQET/KEBE/yxARP8wQET/NEBE/zhARP88QET///////////////////////////////////////////9gQET/ZEBE/2hARP9sQET/cEBE/3RARP94QET/fEBE////////////////////////////////////////////n0BE/6NARP+nQET/q0BE/69ARP+zQET/t0BE/7tARP///////////////////////////////////////////99ARP/jQET/50BE/+tARP/vQET/80BE//dARP/7QET///////////////////////////////////////////8gQEj/JEBI/yhASP8sQEj/MEBI/zRASP84QEj/PEBI////////////////////////////////////////////YEBI/2RASP9oQEj/bEBI/3BASP90QEj/eEBI/3xASP///////////////////////////////////////////59ASP+jQEj/p0BI/6tASP+vQEj/s0BI/7dASP+7QEj////////////////////////////////////////////fQEj/40BI/+dASP/rQEj/70BI//NASP/3QEj/+0BI////////////////////////////////////////////IEBM/yRATP8oQEz/LEBM/zBATP80QEz/OEBM/zxATP///////////////////////////////////////////2BATP9kQEz/aEBM/2xATP9wQEz/dEBM/3hATP98QEz///////////////////////////////////////////+fQEz/o0BM/6dATP+rQEz/r0BM/7NATP+3QEz/u0BM////////////////////////////////////////////30BM/+NATP/nQEz/60BM/+9ATP/zQEz/90BM//tATP///////////////////////////////////////////yBAUP8kQFD/KEBQ/yxAUP8wQFD/NEBQ/zhAUP88QFD///////////////////////////////////////////9gQFD/ZEBQ/2hAUP9sQFD/cEBQ/3RAUP94QFD/fEBQ////////////////////////////////////////////n0BQ/6NAUP+nQFD/q0BQ/69AUP+zQFD/t0BQ/7tAUP///////////////////////////////////////////99AUP/jQFD/50BQ/+tAUP/vQFD/80BQ//dAUP/7QFD///////////////////////////////////////////8gQFT/JEBU/yhAVP8sQFT/MEBU/zRAVP84QFT/PEBU////////////////////////////////////////////YEBU/2RAVP9oQFT/bEBU/3BAVP90QFT/eEBU/3xAVP///////////////////////////////////////////59AVP+jQFT/p0BU/6tAVP+vQFT/s0BU/7dAVP+7QFT////////////////////////////////////////////fQFT/40BU/+dAVP/rQFT/70BU//NAVP/3QFT/+0BU////////////////////////////////////////////IEBY/yRAWP8oQFj/LEBY/zBAWP80QFj/OEBY/zxAWP///////////////////////////////////////////2BAWP9kQFj/aEBY/2xAWP9wQFj/dEBY/3hAWP98QFj///////////////////////////////////////////+fQFj/o0BY/6dAWP+rQFj/r0BY/7NAWP+3QFj/u0BY////////////////////////////////////////////30BY/+NAWP/nQFj/60BY/+9AWP/zQFj/90BY//tAWP///////////////////////////////////////////yBAXP8kQFz/KEBc/yxAXP8wQFz/NEBc/zhAXP88QFz///////////////////////////////////////////9gQFz/ZEBc/2hAXP9sQFz/cEBc/3RAXP94QFz/fEBc////////////////////////////////////////////n0Bc/6NAXP+nQFz/q0Bc/69AXP+zQFz/t0Bc/7tAXP///////////////////////////////////////////99AXP/jQFz/50Bc/+tAXP/vQFz/80Bc//dAXP/7QFz/AEBg/wRAYP8IQGD/DEBg/xBAYP8UQGD/GEBg/xxAYP///////////////////////////////////////////0BAYP9EQGD/SEBg/0xAYP9QQGD/VEBg/1hAYP9cQGD///////////////////////////////////////////+AQGD/g0Bg/4dAYP+LQGD/j0Bg/5NAYP+XQGD/m0Bg////////////////////////////////////////////v0Bg/8NAYP/HQGD/y0Bg/89AYP/TQGD/10Bg/9tAYP///////////////////////////////////////////wBAZP8EQGT/CEBk/wxAZP8QQGT/FEBk/xhAZP8cQGT///////////////////////////////////////////9AQGT/REBk/0hAZP9MQGT/UEBk/1RAZP9YQGT/XEBk////////////////////////////////////////////gEBk/4NAZP+HQGT/i0Bk/49AZP+TQGT/l0Bk/5tAZP///////////////////////////////////////////79AZP/DQGT/x0Bk/8tAZP/PQGT/00Bk/9dAZP/bQGT///////////////////////////////////////////8AQGj/BEBo/whAaP8MQGj/EEBo/xRAaP8YQGj/HEBo////////////////////////////////////////////QEBo/0RAaP9IQGj/TEBo/1BAaP9UQGj/WEBo/1xAaP///////////////////////////////////////////4BAaP+DQGj/h0Bo/4tAaP+PQGj/k0Bo/5dAaP+bQGj///////////////////////////////////////////+/QGj/w0Bo/8dAaP/LQGj/z0Bo/9NAaP/XQGj/20Bo////////////////////////////////////////////AEBs/wRAbP8IQGz/DEBs/xBAbP8UQGz/GEBs/xxAbP///////////////////////////////////////////0BAbP9EQGz/SEBs/0xAbP9QQGz/VEBs/1hAbP9cQGz///////////////////////////////////////////+AQGz/g0Bs/4dAbP+LQGz/j0Bs/5NAbP+XQGz/m0Bs////////////////////////////////////////////v0Bs/8NAbP/HQGz/y0Bs/89AbP/TQGz/10Bs/9tAbP///////////////////////////////////////////wBAcP8EQHD/CEBw/wxAcP8QQHD/FEBw/xhAcP8cQHD///////////////////////////////////////////9AQHD/REBw/0hAcP9MQHD/UEBw/1RAcP9YQHD/XEBw////////////////////////////////////////////gEBw/4NAcP+HQHD/i0Bw/49AcP+TQHD/l0Bw/5tAcP///////////////////////////////////////////79AcP/DQHD/x0Bw/8tAcP/PQHD/00Bw/9dAcP/bQHD///////////////////////////////////////////8AQHT/BEB0/whAdP8MQHT/EEB0/xRAdP8YQHT/HEB0////////////////////////////////////////////QEB0/0RAdP9IQHT/TEB0/1BAdP9UQHT/WEB0/1xAdP///////////////////////////////////////////4BAdP+DQHT/h0B0/4tAdP+PQHT/k0B0/5dAdP+bQHT///////////////////////////////////////////+/QHT/w0B0/8dAdP/LQHT/z0B0/9NAdP/XQHT/20B0////////////////////////////////////////////AEB4/wRAeP8IQHj/DEB4/xBAeP8UQHj/GEB4/xxAeP///////////////////////////////////////////0BAeP9EQHj/SEB4/0xAeP9QQHj/VEB4/1hAeP9cQHj///////////////////////////////////////////+AQHj/g0B4/4dAeP+LQHj/j0B4/5NAeP+XQHj/m0B4////////////////////////////////////////////v0B4/8NAeP/HQHj/y0B4/89AeP/TQHj/10B4/9tAeP///////////////////////////////////////////wBAfP8EQHz/CEB8/wxAfP8QQHz/FEB8/xhAfP8cQHz///////////////////////////////////////////9AQHz/REB8/0hAfP9MQHz/UEB8/1RAfP9YQHz/XEB8////////////////////////////////////////////gEB8/4NAfP+HQHz/i0B8/49AfP+TQHz/l0B8/5tAfP///////////////////////////////////////////79AfP/DQHz/x0B8/8tAfP/PQHz/00B8/9dAfP/bQHz//////////////////////////////////////////////////////////////////////////////////////yBAgP8kQID/KECA/yxAgP8wQID/NECA/zhAgP88QID///////////////////////////////////////////9gQID/ZECA/2hAgP9sQID/cECA/3RAgP94QID/fECA////////////////////////////////////////////n0CA/6NAgP+nQID/q0CA/69AgP+zQID/t0CA/7tAgP///////////////////////////////////////////99AgP/jQID/50CA/+tAgP/vQID/80CA//dAgP/7QID///////////////////////////////////////////8gQIP/JECD/yhAg/8sQIP/MECD/zRAg/84QIP/PECD////////////////////////////////////////////YECD/2RAg/9oQIP/bECD/3BAg/90QIP/eECD/3xAg////////////////////////////////////////////59Ag/+jQIP/p0CD/6tAg/+vQIP/s0CD/7dAg/+7QIP////////////////////////////////////////////fQIP/40CD/+dAg//rQIP/70CD//NAg//3QIP/+0CD////////////////////////////////////////////IECH/yRAh/8oQIf/LECH/zBAh/80QIf/OECH/zxAh////////////////////////////////////////////2BAh/9kQIf/aECH/2xAh/9wQIf/dECH/3hAh/98QIf///////////////////////////////////////////+fQIf/o0CH/6dAh/+rQIf/r0CH/7NAh/+3QIf/u0CH////////////////////////////////////////////30CH/+NAh//nQIf/60CH/+9Ah//zQIf/90CH//tAh////////////////////////////////////////////yBAi/8kQIv/KECL/yxAi/8wQIv/NECL/zhAi/88QIv///////////////////////////////////////////9gQIv/ZECL/2hAi/9sQIv/cECL/3RAi/94QIv/fECL////////////////////////////////////////////n0CL/6NAi/+nQIv/q0CL/69Ai/+zQIv/t0CL/7tAi////////////////////////////////////////////99Ai//jQIv/50CL/+tAi//vQIv/80CL//dAi//7QIv///////////////////////////////////////////8gQI//JECP/yhAj/8sQI//MECP/zRAj/84QI//PECP////////////////////////////////////////////YECP/2RAj/9oQI//bECP/3BAj/90QI//eECP/3xAj////////////////////////////////////////////59Aj/+jQI//p0CP/6tAj/+vQI//s0CP/7dAj/+7QI/////////////////////////////////////////////fQI//40CP/+dAj//rQI//70CP//NAj//3QI//+0CP////////////////////////////////////////////IECT/yRAk/8oQJP/LECT/zBAk/80QJP/OECT/zxAk////////////////////////////////////////////2BAk/9kQJP/aECT/2xAk/9wQJP/dECT/3hAk/98QJP///////////////////////////////////////////+fQJP/o0CT/6dAk/+rQJP/r0CT/7NAk/+3QJP/u0CT////////////////////////////////////////////30CT/+NAk//nQJP/60CT/+9Ak//zQJP/90CT//tAk////////////////////////////////////////////yBAl/8kQJf/KECX/yxAl/8wQJf/NECX/zhAl/88QJf///////////////////////////////////////////9gQJf/ZECX/2hAl/9sQJf/cECX/3RAl/94QJf/fECX////////////////////////////////////////////n0CX/6NAl/+nQJf/q0CX/69Al/+zQJf/t0CX/7tAl////////////////////////////////////////////99Al//jQJf/50CX/+tAl//vQJf/80CX//dAl//7QJf///////////////////////////////////////////8gQJv/JECb/yhAm/8sQJv/MECb/zRAm/84QJv/PECb////////////////////////////////////////////YECb/2RAm/9oQJv/bECb/3BAm/90QJv/eECb/3xAm////////////////////////////////////////////59Am/+jQJv/p0Cb/6tAm/+vQJv/s0Cb/7dAm/+7QJv////////////////////////////////////////////fQJv/40Cb/+dAm//rQJv/70Cb//NAm//3QJv/+0Cb/wBAn/8EQJ//CECf/wxAn/8QQJ//FECf/xhAn/8cQJ////////////////////////////////////////////9AQJ//RECf/0hAn/9MQJ//UECf/1RAn/9YQJ//XECf////////////////////////////////////////////gECf/4NAn/+HQJ//i0Cf/49An/+TQJ//l0Cf/5tAn////////////////////////////////////////////79An//DQJ//x0Cf/8tAn//PQJ//00Cf/9dAn//bQJ////////////////////////////////////////////8AQKP/BECj/whAo/8MQKP/EECj/xRAo/8YQKP/HECj////////////////////////////////////////////QECj/0RAo/9IQKP/TECj/1BAo/9UQKP/WECj/1xAo////////////////////////////////////////////4BAo/+DQKP/h0Cj/4tAo/+PQKP/k0Cj/5dAo/+bQKP///////////////////////////////////////////+/QKP/w0Cj/8dAo//LQKP/z0Cj/9NAo//XQKP/20Cj////////////////////////////////////////////AECn/wRAp/8IQKf/DECn/xBAp/8UQKf/GECn/xxAp////////////////////////////////////////////0BAp/9EQKf/SECn/0xAp/9QQKf/VECn/1hAp/9cQKf///////////////////////////////////////////+AQKf/g0Cn/4dAp/+LQKf/j0Cn/5NAp/+XQKf/m0Cn////////////////////////////////////////////v0Cn/8NAp//HQKf/y0Cn/89Ap//TQKf/10Cn/9tAp////////////////////////////////////////////wBAq/8EQKv/CECr/wxAq/8QQKv/FECr/xhAq/8cQKv///////////////////////////////////////////9AQKv/RECr/0hAq/9MQKv/UECr/1RAq/9YQKv/XECr////////////////////////////////////////////gECr/4NAq/+HQKv/i0Cr/49Aq/+TQKv/l0Cr/5tAq////////////////////////////////////////////79Aq//DQKv/x0Cr/8tAq//PQKv/00Cr/9dAq//bQKv///////////////////////////////////////////8AQK//BECv/whAr/8MQK//EECv/xRAr/8YQK//HECv////////////////////////////////////////////QECv/0RAr/9IQK//TECv/1BAr/9UQK//WECv/1xAr////////////////////////////////////////////4BAr/+DQK//h0Cv/4tAr/+PQK//k0Cv/5dAr/+bQK////////////////////////////////////////////+/QK//w0Cv/8dAr//LQK//z0Cv/9NAr//XQK//20Cv////////////////////////////////////////////AECz/wRAs/8IQLP/DECz/xBAs/8UQLP/GECz/xxAs////////////////////////////////////////////0BAs/9EQLP/SECz/0xAs/9QQLP/VECz/1hAs/9cQLP///////////////////////////////////////////+AQLP/g0Cz/4dAs/+LQLP/j0Cz/5NAs/+XQLP/m0Cz////////////////////////////////////////////v0Cz/8NAs//HQLP/y0Cz/89As//TQLP/10Cz/9tAs////////////////////////////////////////////wBAt/8EQLf/CEC3/wxAt/8QQLf/FEC3/xhAt/8cQLf///////////////////////////////////////////9AQLf/REC3/0hAt/9MQLf/UEC3/1RAt/9YQLf/XEC3////////////////////////////////////////////gEC3/4NAt/+HQLf/i0C3/49At/+TQLf/l0C3/5tAt////////////////////////////////////////////79At//DQLf/x0C3/8tAt//PQLf/00C3/9dAt//bQLf///////////////////////////////////////////8AQLv/BEC7/whAu/8MQLv/EEC7/xRAu/8YQLv/HEC7////////////////////////////////////////////QEC7/0RAu/9IQLv/TEC7/1BAu/9UQLv/WEC7/1xAu////////////////////////////////////////////4BAu/+DQLv/h0C7/4tAu/+PQLv/k0C7/5dAu/+bQLv///////////////////////////////////////////+/QLv/w0C7/8dAu//LQLv/z0C7/9NAu//XQLv/20C7//////////////////////////////////////////////////////////////////////////////////////8gQL//JEC//yhAv/8sQL//MEC//zRAv/84QL//PEC/////////////////////////////////////////////YEC//2RAv/9oQL//bEC//3BAv/90QL//eEC//3xAv////////////////////////////////////////////59Av/+jQL//p0C//6tAv/+vQL//s0C//7dAv/+7QL/////////////////////////////////////////////fQL//40C//+dAv//rQL//70C///NAv//3QL//+0C/////////////////////////////////////////////IEDD/yRAw/8oQMP/LEDD/zBAw/80QMP/OEDD/zxAw////////////////////////////////////////////2BAw/9kQMP/aEDD/2xAw/9wQMP/dEDD/3hAw/98QMP///////////////////////////////////////////+fQMP/o0DD/6dAw/+rQMP/r0DD/7NAw/+3QMP/u0DD////////////////////////////////////////////30DD/+NAw//nQMP/60DD/+9Aw//zQMP/90DD//tAw////////////////////////////////////////////yBAx/8kQMf/KEDH/yxAx/8wQMf/NEDH/zhAx/88QMf///////////////////////////////////////////9gQMf/ZEDH/2hAx/9sQMf/cEDH/3RAx/94QMf/fEDH////////////////////////////////////////////n0DH/6NAx/+nQMf/q0DH/69Ax/+zQMf/t0DH/7tAx////////////////////////////////////////////99Ax//jQMf/50DH/+tAx//vQMf/80DH//dAx//7QMf///////////////////////////////////////////8gQMv/JEDL/yhAy/8sQMv/MEDL/zRAy/84QMv/PEDL////////////////////////////////////////////YEDL/2RAy/9oQMv/bEDL/3BAy/90QMv/eEDL/3xAy////////////////////////////////////////////59Ay/+jQMv/p0DL/6tAy/+vQMv/s0DL/7dAy/+7QMv////////////////////////////////////////////fQMv/40DL/+dAy//rQMv/70DL//NAy//3QMv/+0DL////////////////////////////////////////////IEDP/yRAz/8oQM//LEDP/zBAz/80QM//OEDP/zxAz////////////////////////////////////////////2BAz/9kQM//aEDP/2xAz/9wQM//dEDP/3hAz/98QM////////////////////////////////////////////+fQM//o0DP/6dAz/+rQM//r0DP/7NAz/+3QM//u0DP////////////////////////////////////////////30DP/+NAz//nQM//60DP/+9Az//zQM//90DP//tAz////////////////////////////////////////////yBA0/8kQNP/KEDT/yxA0/8wQNP/NEDT/zhA0/88QNP///////////////////////////////////////////9gQNP/ZEDT/2hA0/9sQNP/cEDT/3RA0/94QNP/fEDT////////////////////////////////////////////n0DT/6NA0/+nQNP/q0DT/69A0/+zQNP/t0DT/7tA0////////////////////////////////////////////99A0//jQNP/50DT/+tA0//vQNP/80DT//dA0//7QNP///////////////////////////////////////////8gQNf/JEDX/yhA1/8sQNf/MEDX/zRA1/84QNf/PEDX////////////////////////////////////////////YEDX/2RA1/9oQNf/bEDX/3BA1/90QNf/eEDX/3xA1////////////////////////////////////////////59A1/+jQNf/p0DX/6tA1/+vQNf/s0DX/7dA1/+7QNf////////////////////////////////////////////fQNf/40DX/+dA1//rQNf/70DX//NA1//3QNf/+0DX////////////////////////////////////////////IEDb/yRA2/8oQNv/LEDb/zBA2/80QNv/OEDb/zxA2////////////////////////////////////////////2BA2/9kQNv/aEDb/2xA2/9wQNv/dEDb/3hA2/98QNv///////////////////////////////////////////+fQNv/o0Db/6dA2/+rQNv/r0Db/7NA2/+3QNv/u0Db////////////////////////////////////////////30Db/+NA2//nQNv/60Db/+9A2//zQNv/90Db//tA2/8AQN//BEDf/whA3/8MQN//EEDf/xRA3/8YQN//HEDf////////////////////////////////////////////QEDf/0RA3/9IQN//TEDf/1BA3/9UQN//WEDf/1xA3////////////////////////////////////////////4BA3/+DQN//h0Df/4tA3/+PQN//k0Df/5dA3/+bQN////////////////////////////////////////////+/QN//w0Df/8dA3//LQN//z0Df/9NA3//XQN//20Df////////////////////////////////////////////AEDj/wRA4/8IQOP/DEDj/xBA4/8UQOP/GEDj/xxA4////////////////////////////////////////////0BA4/9EQOP/SEDj/0xA4/9QQOP/VEDj/1hA4/9cQOP///////////////////////////////////////////+AQOP/g0Dj/4dA4/+LQOP/j0Dj/5NA4/+XQOP/m0Dj////////////////////////////////////////////v0Dj/8NA4//HQOP/y0Dj/89A4//TQOP/10Dj/9tA4////////////////////////////////////////////wBA5/8EQOf/CEDn/wxA5/8QQOf/FEDn/xhA5/8cQOf///////////////////////////////////////////9AQOf/REDn/0hA5/9MQOf/UEDn/1RA5/9YQOf/XEDn////////////////////////////////////////////gEDn/4NA5/+HQOf/i0Dn/49A5/+TQOf/l0Dn/5tA5////////////////////////////////////////////79A5//DQOf/x0Dn/8tA5//PQOf/00Dn/9dA5//bQOf///////////////////////////////////////////8AQOv/BEDr/whA6/8MQOv/EEDr/xRA6/8YQOv/HEDr////////////////////////////////////////////QEDr/0RA6/9IQOv/TEDr/1BA6/9UQOv/WEDr/1xA6////////////////////////////////////////////4BA6/+DQOv/h0Dr/4tA6/+PQOv/k0Dr/5dA6/+bQOv///////////////////////////////////////////+/QOv/w0Dr/8dA6//LQOv/z0Dr/9NA6//XQOv/20Dr////////////////////////////////////////////AEDv/wRA7/8IQO//DEDv/xBA7/8UQO//GEDv/xxA7////////////////////////////////////////////0BA7/9EQO//SEDv/0xA7/9QQO//VEDv/1hA7/9cQO////////////////////////////////////////////+AQO//g0Dv/4dA7/+LQO//j0Dv/5NA7/+XQO//m0Dv////////////////////////////////////////////v0Dv/8NA7//HQO//y0Dv/89A7//TQO//10Dv/9tA7////////////////////////////////////////////wBA8/8EQPP/CEDz/wxA8/8QQPP/FEDz/xhA8/8cQPP///////////////////////////////////////////9AQPP/REDz/0hA8/9MQPP/UEDz/1RA8/9YQPP/XEDz////////////////////////////////////////////gEDz/4NA8/+HQPP/i0Dz/49A8/+TQPP/l0Dz/5tA8////////////////////////////////////////////79A8//DQPP/x0Dz/8tA8//PQPP/00Dz/9dA8//bQPP///////////////////////////////////////////8AQPf/BED3/whA9/8MQPf/EED3/xRA9/8YQPf/HED3////////////////////////////////////////////QED3/0RA9/9IQPf/TED3/1BA9/9UQPf/WED3/1xA9////////////////////////////////////////////4BA9/+DQPf/h0D3/4tA9/+PQPf/k0D3/5dA9/+bQPf///////////////////////////////////////////+/QPf/w0D3/8dA9//LQPf/z0D3/9NA9//XQPf/20D3////////////////////////////////////////////AED7/wRA+/8IQPv/DED7/xBA+/8UQPv/GED7/xxA+////////////////////////////////////////////0BA+/9EQPv/SED7/0xA+/9QQPv/VED7/1hA+/9cQPv///////////////////////////////////////////+AQPv/g0D7/4dA+/+LQPv/j0D7/5NA+/+XQPv/m0D7////////////////////////////////////////////v0D7/8NA+//HQPv/y0D7/89A+//TQPv/10D7/9tA+////////////////////////////////////////////w==", + "ops": [ + ["context",1,"quad","rgba8unorm","opaque"], + ["texture",2,64,64,1,"rgba8unorm",6,1,1], + ["writeTexture",2,0,[0,0,0],0,16384,256,null,[64,64,1]], + ["sampler",3,{"addressModeU":"repeat","addressModeV":"repeat","addressModeW":"clamp-to-edge","magFilter":"linear","minFilter":"linear","mipmapFilter":"nearest","lodMinClamp":0,"lodMaxClamp":32,"compare":null,"maxAnisotropy":1}], + ["shader",4,"\nstruct Out { @builtin(position) position: vec4f, @location(0) uv: vec2f }\n\n@vertex fn vs(@builtin(vertex_index) index: u32) -> Out {\n var corners = array(vec2f(-1, -1), vec2f(1, -1), vec2f(1, 1), vec2f(-1, -1), vec2f(1, 1), vec2f(-1, 1));\n let corner = corners[index];\n var out: Out;\n out.position = vec4f(corner * 0.8, 0.0, 1.0);\n out.uv = (corner * vec2f(0.5, -0.5) + 0.5) * 2.0;\n return out;\n}\n\n@group(0) @binding(0) var linear: sampler;\n@group(0) @binding(1) var image: texture_2d;\n\n@fragment fn fs(in: Out) -> @location(0) vec4f {\n return textureSample(image, linear, in.uv);\n}\n"], + ["renderPipeline",5,{"layout":"auto","vertex":{"module":4,"entryPoint":"vs","buffers":[]},"fragment":{"module":4,"entryPoint":"fs","targets":[{"format":"rgba8unorm","blend":null,"writeMask":15}]},"primitive":{"topology":"triangle-list","stripIndexFormat":null,"frontFace":"ccw","cullMode":"none"},"depthStencil":null,"multisample":{"count":1,"mask":4294967295,"alphaToCoverageEnabled":false}}], + ["autoLayout",6,5,0], + ["view",7,2,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["bindGroup",8,{"layout":6,"entries":[{"binding":0,"resource":{"sampler":3}},{"binding":1,"resource":{"view":7}}]}] + ] + }, + { + "frame": true, + "bytes": "", + "ops": [ + ["view",9,1,{"dimension":"2d","baseMipLevel":0,"mipLevelCount":1,"baseArrayLayer":0,"arrayLayerCount":1}], + ["pass",{"colorAttachments":[{"view":9,"resolveTarget":null,"clearValue":[0,0,0,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",5], + ["setBindGroup",0,8,[]], + ["draw",6,1,0,0], + ["end"], + ["submit"] + ] + }, + { + "frame": false, + "bytes": "", + "ops": [ + ["pass",{"colorAttachments":[{"view":9,"resolveTarget":null,"clearValue":[0,0,0,1],"loadOp":"clear","storeOp":"store"}],"depthStencilAttachment":null}], + ["setPipeline",5], + ["setBindGroup",0,8,[]], + ["draw",6,1,0,0], + ["end"], + ["submit"] + ] + } + ] +} diff --git a/packages/widget/test/gpu.test.ts b/packages/widget/test/gpu.test.ts new file mode 100644 index 00000000000..93acad7d73c --- /dev/null +++ b/packages/widget/test/gpu.test.ts @@ -0,0 +1,192 @@ +import { expect, test } from "bun:test" +import { Glob } from "bun" +import path from "node:path" +import { fixtures, run } from "../script/gpu-conformance.js" +import { LiveWidget, type LiveMessage, ManualClock, program, step } from "../src/index.js" + +// The GPU conformance fixtures (`fixtures/gpu/*.json`, widgets-gpu.md): every host posts the same batches for each +// program, and its checks give the same program errors. This holds the TypeScript host to them. +const dir = path.resolve(import.meta.dir, "fixtures/gpu") +const files = [...new Glob("*.json").scanSync(dir)].toSorted() + +test("there is a fixture for every case, the example widget templates among them", () => { + expect(files.map((file) => file.replace(/\.json$/, "")).toSorted()).toEqual( + fixtures() + .map((item) => item.name) + .toSorted(), + ) + for (const name of ["cube", "textured-quad", "post-process", "maze"]) expect(files).toContain(`${name}.json`) +}) + +for (const file of files) { + test(`gpu fixture ${file}`, async () => { + const fixture = await Bun.file(path.join(dir, file)).json() + const item = fixtures().find((candidate) => candidate.name === fixture.name)! + expect(item.source).toBe(fixture.source) + const recorded = await run(item) + if (fixture.batches) expect(recorded.batches).toEqual(fixture.batches) + expect(recorded.errors).toEqual(fixture.errors) + expect(recorded.end).toBe(fixture.end) + }, 60_000) +} + +// A live run on a manual clock; `posts` holds its GPU batches, `sent` what it sends. +const start = (source: string, options: { readonly gpu?: false } = {}) => { + const clock = new ManualClock() + const posts: LiveMessage[] = [] + const sent: unknown[] = [] + const widget = LiveWidget.start(program(source), null, { + clock, + ...options, + onMessage: (message) => { + if (message.type === "gpu" || (message.type === "frame" && message.gpu)) posts.push(message) + if (message.type === "send") sent.push(message.value) + }, + }) + return { widget, clock, posts, sent } +} +const size = { t: 0, dt: 1 / 60, width: 100, height: 50, scale: 2, pointer: null, dark: false } + +test("without a GPU the program runs unchanged and records nothing", async () => { + const { widget, posts, sent } = start( + `async function main() { + widget.render(ui.canvas({ key: "c", gpu: true, height: 10 })) + const device = await widget.gpu.requestDevice() + widget.gpu.getContext("c").configure({ device, format: widget.gpu.getPreferredCanvasFormat() }) + const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.VERTEX }) + device.queue.writeBuffer(buffer, 0, new Float32Array(4)) + device.queue.submit([device.createCommandEncoder().finish()]) + widget.send([widget.gpu.available, typeof device.lost.then, device.limits.maxTextureDimension2D]) +}`, + { gpu: false }, + ) + expect(await widget.done).toEqual({ type: "return" }) + expect(posts).toEqual([]) + expect(sent).toEqual([[false, "function", 4096]]) + expect(widget.gpuErrors).toEqual([]) +}) + +test("canvas sizes, a lost device, and batches before sleeps and at the end", async () => { + const sent: unknown[] = [] + const clock = new ManualClock() + const posts: LiveMessage[] = [] + const widget = LiveWidget.start( + program(`async function main() { + widget.render(ui.canvas({ key: "c", gpu: true, height: 10 })) + const context = widget.gpu.getContext("c") + try { context.getCurrentTexture() } catch (error) { widget.send(error.message) } + const device = await widget.gpu.requestDevice() + context.configure({ device, format: "rgba8unorm" }) + await widget.frame() + widget.send([context.width, context.height, context.getCurrentTexture().width]) + device.createBuffer({ size: 4, usage: GPUBufferUsage.UNIFORM }) + await widget.sleep(10) + const lost = await device.lost + widget.send(lost) + device.createBuffer({ size: 4, usage: GPUBufferUsage.UNIFORM }) + const again = await widget.gpu.requestDevice() + widget.send(again === device) + context.configure({ device: again, format: "rgba8unorm" }) + again.createBuffer({ size: 8, usage: GPUBufferUsage.UNIFORM }) +}`), + null, + { + clock, + onMessage: (message) => { + if (message.type === "send") sent.push(message.value) + if (message.type === "gpu" || (message.type === "frame" && message.gpu)) posts.push(message) + }, + }, + ) + widget.canvas("c", 200, 100) + await widget.when((current) => current.frameRequested) + widget.frame(size) + await clock.advance(10) + widget.loseDevice("unknown") + expect(await widget.done).toEqual({ type: "return" }) + expect(sent).toEqual([ + "configure the context before getCurrentTexture", + [200, 100, 200], + { reason: "unknown", message: "" }, + false, + ]) + const ops = posts.map((post) => (post.type === "frame" ? post.gpu!.ops : post.type === "gpu" ? post.ops : [])) + expect(posts.map((post) => post.type)).toEqual(["frame", "gpu", "gpu"]) + expect(ops).toEqual([ + [["context", 1, "c", "rgba8unorm", "opaque"]], + [["buffer", 2, 4, 64]], + // The lost device's buffer records nothing (its handle, 3, is spent); the new device's context is a new handle. + [ + ["context", 4, "c", "rgba8unorm", "opaque"], + ["buffer", 5, 8, 64], + ], + ]) + expect(widget.gpuErrors).toEqual([]) +}) + +test("a GPU canvas takes no draw commands, and can't have wgsl too", async () => { + const { widget } = start(`async function main() { + widget.render(ui.canvas({ key: "c", gpu: true, height: 10 })) + widget.draw("c", []) +}`) + expect(await widget.done).toMatchObject({ + type: "error", + error: { message: expect.stringContaining(`Canvas "c" is drawn by the GPU; it takes no draw commands`) }, + }) + const both = await step(program(`function view() { return ui.canvas({ height: 1, gpu: true, wgsl: "x" }) }`), { + phase: "init", + data: null, + }).catch((error: unknown) => error) + expect(both).toMatchObject({ + kind: "invalid", + message: expect.stringContaining("`gpu` and `wgsl` exclude each other"), + }) +}) + +test("writes copy their data when they are called, and typed arrays count elements", async () => { + const { widget, posts } = start(`async function main() { + widget.render(ui.canvas({ key: "c", gpu: true, height: 10 })) + const device = await widget.gpu.requestDevice() + const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.COPY_DST }) + const data = new Uint16Array([1, 2, 3, 4]) + device.queue.writeBuffer(buffer, 0, data, 1, 2) + data[1] = 9 + device.queue.writeBuffer(buffer, 4, data.buffer, 2, 2) +}`) + await widget.done + const batch = posts[0]! + expect(batch.type === "gpu" && batch.ops).toEqual([ + ["buffer", 1, 16, 8], + ["writeBuffer", 1, 0, 0, 4], + ["writeBuffer", 1, 4, 4, 2], + ]) + expect(batch.type === "gpu" && [...new Uint8Array(batch.bytes)]).toEqual([2, 0, 3, 0, 9, 0]) +}) + +test("a GPU batch takes no token but never overtakes a waiting render; a bare frame request doesn't wait", async () => { + const clock = new ManualClock() + const order: string[] = [] + const widget = LiveWidget.start( + program(`async function main() { + for (let i = 0; i < 9; i++) widget.render(ui.column([ui.text(String(i)), ui.canvas({ key: "c" + i, gpu: true, height: 10 })])) + const device = await widget.gpu.requestDevice() + widget.gpu.getContext("c8").configure({ device, format: "rgba8unorm" }) + await widget.sleep(1) + await widget.frame() +}`), + null, + { + clock, + postsPerSecond: 1, + onMessage: (message) => order.push(message.type === "render" ? "render" : message.type), + }, + ) + await clock.advance(0) + // 8 renders at once; the 9th waits for a token, and the batch (whose canvas only it has) waits behind it. + expect(order).toEqual(Array(8).fill("render")) + await clock.advance(1000) + // The bare frame request, posted after the batch, went at once. + expect(order).toEqual([...Array(8).fill("render"), "frame", "render", "gpu"]) + expect(widget.gpuErrors).toEqual([]) + await widget.stop() +}) diff --git a/packages/widget/test/tree.test.ts b/packages/widget/test/tree.test.ts index 78cc2674f5c..d82ade94d9e 100644 --- a/packages/widget/test/tree.test.ts +++ b/packages/widget/test/tree.test.ts @@ -84,7 +84,11 @@ const trees = async (source: string, data: unknown) => { if (!result.ok) throw new Error(result.error.message) const host = tree(crossed.view, "Argument 1 to __cross") return [ - JSON.stringify([host.view, [...host.handlers], Object.fromEntries(host.canvases)]), + JSON.stringify([ + host.view, + [...host.handlers], + Object.fromEntries([...host.canvases].map(([key, canvas]) => [key, { id: canvas.id, wgsl: canvas.wgsl }])), + ]), result.value as string, ] as const } diff --git a/specs/v2/widgets-binary.md b/specs/v2/widgets-binary.md index a39100034c4..86f17455d9a 100644 --- a/specs/v2/widgets-binary.md +++ b/specs/v2/widgets-binary.md @@ -108,6 +108,7 @@ today. | 17 | value | f64 (slider), str (input, one-value select), str list (multiple select) | 35 | pointer | int | | 18 | min | f64 | 36 | place | int: top-left 0, top 1, top-right 2, left 3, center 4, right 5, bottom-left 6, bottom 7, bottom-right 8, fill 9 | | | | | 37 | inset | f64 (all sides) or f64 list of 4 (top, right, bottom, left) | +| | | | 38 | gpu | int (a GPU canvas, `widgets-gpu.md`) | **Rules for the encoder** (`write_node`). It writes the props the tree has, in its key order: - `type` and `children` are never props. diff --git a/specs/v2/widgets-live.md b/specs/v2/widgets-live.md index be50d4b3276..189e5062586 100644 --- a/specs/v2/widgets-live.md +++ b/specs/v2/widgets-live.md @@ -141,9 +141,9 @@ and hands the actual transfer to the app (URLSession / OkHttp), so system TLS an ## Lifecycle and budgets -- The client starts `\nreturn await __widget_live(__input(), true)` (input `{ data }`) when an open live - widget first becomes visible, on its own thread or task, never the UI thread. Render the last `render` node; before - the first one, show a loading frame. +- The client starts `\nreturn await __widget_live(__input(), true)` (input `{ data, gpu? }`, `gpu` per + `widgets-gpu.md`) when an open live widget first becomes visible, on its own thread or task, never the UI thread. + Render the last `render` node; before the first one, show a loading frame. - **Pause when not visible.** When a live widget scrolls out of view, its window or app goes to the background, or the session is closed, the client pauses the program: no frames, events or timer firings are delivered, `sleep` timers freeze with their remaining time, `now()` stops, and in-flight `fetch` results are held until resume. When the widget diff --git a/specs/v2/widgets.md b/specs/v2/widgets.md index 7c4dafa6e9c..283f725d12a 100644 --- a/specs/v2/widgets.md +++ b/specs/v2/widgets.md @@ -352,7 +352,8 @@ type Node = ( | { type: "divider" } | { type: "canvas"; id?: string; height: number; width?: number; fps?: number; duration?: number; alt?: string; poster?: string; wgsl?: string; values?: number[] // values only with wgsl - pointer?: true } // set by the prelude when it has onPointer: only then does it take input + pointer?: true // set by the prelude when it has onPointer: only then does it take input + gpu?: true } // drawn by a live program's widget.gpu (widgets-gpu.md); not with wgsl | { type: "stack"; children: Node[] } ) & { // Any node, as a child of a stack (see Stack); ignored elsewhere.