74 lines
No EOL
72 KiB
HTML
74 lines
No EOL
72 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>) &&
|
|
html.includes( — exploration</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { background: #0a0a0f; color: #3a3a4a; font-family: ui-monospace, monospace; overflow: hidden; }
|
|
#grid { padding: 20px; font-size: 12px; line-height: 1.4; white-space: pre; }
|
|
.c { display: inline-block; transition: all 0.3s; }
|
|
.c.active { color: #fde68a; text-shadow: 0 0 6px rgba(253,230,138,0.5); }
|
|
.c.strong { color: #34d399; text-shadow: 0 0 10px rgba(52,211,153,0.6); font-weight: bold; }
|
|
.c.dead { color: #1a1a2a; }
|
|
#info { position: fixed; bottom: 10px; left: 20px; color: #3a3a4a; font-size: 11px; }
|
|
#controls { position: fixed; top: 10px; right: 20px; color: #666; font-size: 11px; }
|
|
#controls span { cursor: pointer; margin-left: 12px; color: #fde68a; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="grid"></div>
|
|
<div id="info">neurameba · physarum exploration</div>
|
|
<div id="controls"><span id="play-btn">play</span><span id="reset-btn">reset</span></div>
|
|
<script>
|
|
const text = "# API Reference\n\nmotd is API-first. Every feature is an endpoint. Build clients, bots, integrations — whatever you want.\n\n## Base URL\n\n```\nhttps://motd.social/api\n```\n\nLocal dev: `http://localhost:3006/api`\n\n## Response Format\n\nEvery endpoint returns the same envelope:\n\n**Success:**\n```json\n{ \"ok\": true, \"data\": { ... } }\n```\n\n**Error:**\n```json\n{ \"ok\": false, \"error\": \"Something went wrong.\" }\n```\n\nHTTP status codes are standard: 200 success, 400 bad request, 401 unauthorized, 404 not found, 409 conflict.\n\n## Authentication\n\nMost endpoints require authentication. Get a token by registering or logging in, then send it as a Bearer token or let the browser handle it via cookies.\n\n**Header auth (for scripts and clients):**\n```\nAuthorization: Bearer <token>\n```\n\n**Cookie auth (for the web client):**\nThe login endpoints set an `motd_session` httpOnly cookie automatically.\n\nSessions expire after 7 days. Use `/login-permanently` in the web client to persist across tabs (stored in localStorage instead of sessionStorage — the token is the same).\n\n---\n\n## Auth\n\n### POST /api/auth/register\n\nCreate a new account.\n\n**Auth:** none\n\n**Body:**\n```json\n{ \"username\": \"alice\", \"password\": \"hunter2pwd\" }\n```\n\n**Rules:**\n- Username: 3-20 characters, letters, numbers, underscore only\n- Password: minimum 8 characters\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"token\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"alice\"\n }\n }\n}\n```\n\n**Errors:**\n- `400` — username or password missing, invalid format\n- `409` — username taken\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/register \\\n -H \"Content-Type: application/json\" \\\n -d '{\"username\":\"alice\",\"password\":\"hunter2pwd\"}'\n```\n\n### POST /api/auth/login\n\nLog in to an existing account.\n\n**Auth:** none\n\n**Body:**\n```json\n{ \"username\": \"alice\", \"password\": \"hunter2pwd\" }\n```\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"token\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\"\n }\n }\n}\n```\n\n**Errors:**\n- `400` — missing fields\n- `401` — invalid username or password\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/login \\\n -H \"Content-Type: application/json\" \\\n -d '{\"username\":\"alice\",\"password\":\"hunter2pwd\"}'\n```\n\n### GET /api/auth/me\n\nGet the current authenticated user.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"bio\": \"building things\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\"\n }\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/auth/me \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### POST /api/auth/logout\n\nEnd the current session.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Logged out.\" } }\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/logout \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Profile\n\n### GET /api/profile/:username\n\nView a user's profile.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"bio\": \"building things\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\",\n \"posts\": 42,\n \"avatar\": [\n \"████ ████\",\n \" ████████ \",\n \"████████████\",\n \" ████████ \",\n \"██ ████ ██\"\n ]\n }\n}\n```\n\n**Errors:**\n- `404` — user not found\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/profile/alice\n```\n\n### PUT /api/profile\n\nUpdate your display name and/or bio.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"display_name\": \"Alice W.\", \"bio\": \"shipping code\" }\n```\n\nBoth fields are optional. Send only what you want to change.\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice W.\",\n \"bio\": \"shipping code\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\"\n }\n}\n```\n\n**Errors:**\n- `400` — nothing to update\n\n**Example:**\n```bash\ncurl -X PUT http://localhost:3006/api/profile \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"bio\":\"shipping code\"}'\n```\n\n### GET /api/profile/search?q=\n\nSearch users by username or display name.\n\n**Auth:** none\n\n**Params:**\n- `q` — search query (required, min 1 character)\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"users\": [\n { \"username\": \"alice\", \"display_name\": \"Alice\", \"bio\": \"building things\" },\n { \"username\": \"alice2\", \"display_name\": \"Alice Too\", \"bio\": null }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl \"http://localhost:3006/api/profile/search?q=alice\"\n```\n\n---\n\n## Posts\n\n### POST /api/posts\n\nPublish a post.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"content\": \"just shipped the wasm compiler [rust] [wasm]\" }\n```\n\n**Optional fields:**\n- `reply_to` — post ID to reply to\n\n**Inline commands:**\n- `/attach <media_id>` — attach previously uploaded media to the post. The `/attach` command is stripped from the displayed content.\n\n**Rules:**\n- Content: 1-500 characters\n- Tags use [brackets]: `[rust]`, `[music]`, `[coding]`\n- Tags are auto-extracted and stored\n- New tags are auto-assigned to the \"general\" category\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n}\n```\n\n**Errors:**\n- `400` — empty content, too long, media not found/not yours\n- `404` — reply_to post not found\n\n**Examples:**\n\nSimple post:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"just shipped the wasm compiler [rust] [wasm]\"}'\n```\n\nReply to a post:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"nice work!\",\"reply_to\":\"a3kf9x\"}'\n```\n\nPost with media attachment:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"screenshot of the new UI /attach x7km2p [showcase]\"}'\n```\n\n### GET /api/posts/feed\n\nGet the chronological feed. Public — works without auth. Authenticated users get kill-filtered results; guests get unfiltered posts (still subject to system-level filter_score suppression).\n\n**Auth:** optional\n\n**Params:**\n- `limit` — max posts to return (default 50, max 100)\n- `offset` — pagination offset (default 0)\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n ]\n }\n}\n```\n\n**Examples:**\n```bash\n# Guest (unfiltered)\ncurl \"http://localhost:3006/api/posts/feed?limit=20\"\n\n# Authenticated (kill-filtered)\ncurl \"http://localhost:3006/api/posts/feed?limit=20\" \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### GET /api/posts/:id\n\nGet a single post by ID.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/posts/a3kf9x\n```\n\n### GET /api/posts/:id/thread\n\nGet a post and all its replies.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"post\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n },\n \"replies\": [\n {\n \"id\": \"b7xm2k\",\n \"content\": \"nice work!\",\n \"reply_to\": \"a3kf9x\",\n \"tags\": [],\n \"username\": \"bob\",\n \"display_name\": \"Bob\",\n \"created_at\": \"2026-03-22T14:05:00.000Z\"\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/posts/a3kf9x/thread\n```\n\n### GET /api/posts/search\n\nSearch posts by content. Searches active posts by default, or archived posts with the `archive` flag.\n\n**Auth:** none\n\n**Params:**\n- `q` — search query (required)\n- `archive` — set to `true` to search archived posts instead\n\n**Response (active):**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\",\n \"archived\": false\n }\n ]\n }\n}\n```\n\n**Response (archive):**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"b7xm2k\",\n \"content\": \"old post about [rust]\",\n \"tags\": [\"rust\"],\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2025-12-01T08:00:00.000Z\",\n \"archived\": true\n }\n ]\n }\n}\n```\n\n**Examples:**\n```bash\n# Search active posts\ncurl \"http://localhost:3006/api/posts/search?q=rust\"\n\n# Search archived posts\ncurl \"http://localhost:3006/api/posts/search?q=rust&archive=true\"\n```\n\n---\n\n## Filter (Kill)\n\nThe `/kill` command maps to the filter API. The word \"kill\" never appears in the database or API.\n\n### POST /api/filter\n\nAdd a filter. Hides a user or post from your feed.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"bob\" }\n```\n\n- `target_type` — `\"user\"` or `\"post\"`\n- `target_id` — username (for users) or post ID (for posts)\n\nFiltering a user also increments their hidden `filter_score`. Users filtered by enough people get suppressed from everyone's feed silently (threshold: ~5 active filters, with 7-day half-life decay).\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Filtered.\" } }\n```\n\n**Errors:**\n- `400` — missing fields, invalid type, can't filter yourself\n- `404` — user not found\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/filter \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"spammer\"}'\n```\n\n### GET /api/filter\n\nGet your current filter list.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"filters\": [\n { \"type\": \"user\", \"id\": \"uuid-of-filtered-user\" },\n { \"type\": \"post\", \"id\": \"b7xm2k\" }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/filter \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Media\n\nSupported formats: PNG (max 5MB), MP3 (max 10MB), MP4 (max 25MB).\n\nPNG uploads are processed into multiple variants: original (downscaled to max 1MB), thumbnail (80px wide), large (800px wide), and ASCII art.\n\n### POST /api/media/upload\n\nUpload a file.\n\n**Auth:** required\n\n**Body:** multipart/form-data with `file` field\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"media_id\": \"x7km2p\",\n \"type\": \"png\"\n }\n}\n```\n\n**Errors:**\n- `400` — no file, unsupported type, file too large\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/media/upload \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -F \"file=@screenshot.png\"\n```\n\n### GET /api/media/:id\n\nServe the original file.\n\n**Auth:** none\n\n**Response:** raw file with appropriate Content-Type header (`image/png`, `audio/mpeg`, `video/mp4`)\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p -o image.png\n```\n\n### GET /api/media/:id/thumb\n\nServe the thumbnail (PNG only, max 80px wide).\n\n**Auth:** none\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/thumb -o thumb.png\n```\n\n### GET /api/media/:id/large\n\nServe the large version (PNG only, max 800px wide).\n\n**Auth:** none\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/large -o large.png\n```\n\n### GET /api/media/:id/ascii\n\nGet the ASCII art representation (PNG only).\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"ascii\": \" @@@@ \\n @ @ \\n @ @ \\n @@@@ \\n\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/ascii\n```\n\n---\n\n## Avatar\n\n### POST /api/avatar\n\nUpload a profile picture. PNG only, max 5MB. Processes into thumb, large, and ASCII art versions. Sets as your avatar immediately.\n\n**Auth:** required\n\n**Body:** multipart/form-data with `file` field\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"avatar_id\": \"x7km2p\" } }\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/avatar \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -F \"file=@photo.png\"\n```\n\n### GET /api/avatar/:username\n\nGet a user's avatar image (large version, 800px max).\n\n**Auth:** none\n\n**Response:** raw PNG with `Content-Type: image/png`\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/avatar/alice -o avatar.png\n```\n\nReturns 404 if the user has no uploaded avatar.\n\n---\n\n## Bookmarks\n\nBookmarks are private. Nobody sees your bookmarks. No counts, no notifications. One concept for everything: users, tags, posts, docs.\n\n### POST /api/bookmarks\n\nAdd a bookmark.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"alice\" }\n```\n\n- `target_type` — `\"user\"`, `\"tag\"`, `\"post\"`, or `\"doc\"`\n- `target_id` — username, tag name, post ID, or doc name\n\nBookmarking the same thing twice is a no-op, not an error.\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Bookmarked.\" } }\n```\n\n**Errors:**\n- `400` — missing fields, invalid type\n\n**Example:**\n```bash\n# Bookmark a user\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"alice\"}'\n\n# Bookmark a tag\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"tag\",\"target_id\":\"rust\"}'\n\n# Bookmark a post\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"post\",\"target_id\":\"a3kf9x\"}'\n\n# Bookmark a doc\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"doc\",\"target_id\":\"api\"}'\n```\n\n### DELETE /api/bookmarks\n\nRemove a bookmark.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"alice\" }\n```\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Unbookmarked.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"alice\"}'\n```\n\n### GET /api/bookmarks\n\nList your bookmarks. Optionally filter by type.\n\n**Auth:** required\n\n**Params:**\n- `type` — optional: `user`, `tag`, `post`, or `doc`\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"bookmarks\": [\n { \"type\": \"user\", \"id\": \"alice\" },\n { \"type\": \"tag\", \"id\": \"rust\" },\n {\n \"type\": \"post\",\n \"id\": \"a3kf9x\",\n \"preview\": \"just shipped the wasm compiler...\",\n \"username\": \"alice\"\n },\n {\n \"type\": \"post\",\n \"id\": \"old123\",\n \"preview\": \"this was archived...\",\n \"archived\": true\n },\n {\n \"type\": \"post\",\n \"id\": \"gone99\",\n \"expired\": true\n },\n { \"type\": \"doc\", \"id\": \"api\" }\n ]\n }\n}\n```\n\nPost bookmarks are enriched with a content preview (60 chars), the author's username, and status flags (`archived`, `expired`) when applicable.\n\n**Examples:**\n```bash\n# All bookmarks\ncurl http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n\n# Only bookmarked tags\ncurl \"http://localhost:3006/api/bookmarks?type=tag\" \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Docs\n\n### GET /api/docs\n\nList all available documentation files.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"docs\": [\n { \"name\": \"about\", \"path\": \"docs/about.md\" },\n { \"name\": \"api\", \"path\": \"docs/api.md\" },\n { \"name\": \"commands\", \"path\": \"docs/commands.md\" },\n { \"name\": \"changelog\", \"path\": \"docs/changelog.md\" }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/docs\n```\n\n### GET /api/docs/:name\n\nGet the contents of a specific document. The `.md` extension is optional.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"name\": \"api\",\n \"content\": \"# API Reference\\n\\n...\"\n }\n}\n```\n\n**Errors:**\n- `400` — path traversal attempt\n- `404` — document not found\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/docs/api\n```\n\n---\n\n## Categories\n\n### GET /api/categories\n\nGet the category tree with tags. Used by `/tree -cat` in the client.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"categories\": [\n {\n \"id\": \"coding\",\n \"name\": \"coding\",\n \"tags\": [\"rust\", \"python\", \"wasm\", \"js\", \"frontend\", \"backend\"]\n },\n {\n \"id\": \"creative\",\n \"name\": \"creative\",\n \"tags\": [\"music\", \"art\", \"writing\", \"gamedev\"]\n },\n {\n \"id\": \"meta\",\n \"name\": \"meta\",\n \"tags\": [\"motd\", \"bugs\", \"ideas\", \"feedback\"]\n },\n {\n \"id\": \"general\",\n \"name\": \"general\",\n \"tags\": [\"offtopic\", \"introductions\", \"showcase\"]\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/categories\n```\n\n---\n\n## Commands\n\n### GET /api/commands\n\nGet the full command list grouped by category. Used by `/help` and `/menu` in the client.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"categories\": [\n {\n \"name\": \"General\",\n \"commands\": [\n { \"command\": \"/help\", \"description\": \"Show all available commands\" },\n { \"command\": \"/menu\", \"description\": \"Toggle the command menu\" },\n { \"command\": \"/clear\", \"description\": \"Clear the terminal\" },\n { \"command\": \"/read [path]\", \"description\": \"Read a document\" },\n { \"command\": \"/tree -cat\", \"description\": \"Browse categories and tags\" },\n { \"command\": \"/link [target]\", \"description\": \"Navigate to user, tag, post, or doc\" }\n ]\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/commands\n```\n\n---\n\n## Telegram Connect\n\n### POST /api/connect/telegram\n\nGenerate a Telegram deep link to connect your account.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"link\": \"https://t.me/motdsocial_bot?start=alice_a8f3k2\",\n \"expires_in\": 600\n }\n}\n```\n\nIf already connected:\n```json\n{\n \"ok\": true,\n \"data\": {\n \"already_connected\": true,\n \"message\": \"Telegram already connected.\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/connect/telegram \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### DELETE /api/connect/telegram\n\nDisconnect your Telegram account.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Telegram disconnected.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/connect/telegram \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### POST /api/connect/email\n\nSend a verification email to connect your email address.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"email\": \"you@gmail.com\" }\n```\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"message\": \"Verification email sent to you@gmail.com\",\n \"tip\": \"Tip: add noreply@motd.social to your contacts so notifications don't go to spam.\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/connect/email \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"email\":\"you@gmail.com\"}'\n```\n\n### GET /api/connect/email/verify\n\nVerify email address from link in verification email.\n\n**Auth:** none (link from email)\n\n**Params:**\n- `code` — verification code from the email link\n\nReturns an HTML confirmation page on success.\n\n### DELETE /api/connect/email\n\nDisconnect your email address.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Email disconnected.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/connect/email \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### GET /api/connect/status\n\nCheck your Telegram and email connection status and notification settings.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"telegram\": {\n \"connected\": true,\n \"username\": \"alice_tg\",\n \"notify\": true,\n \"notify_bookmarks\": true,\n \"notify_mentions\": true\n },\n \"email\": {\n \"connected\": true,\n \"address\": \"alice@gmail.com\",\n \"notify\": true,\n \"notify_bookmarks\": true,\n \"notify_mentions\": true\n }\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/connect/status \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Account\n\n### DELETE /api/account\n\nPermanently delete your account. This is irreversible. Deletes all posts, media, sessions, and user data.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"confirm_username\": \"alice\" }\n```\n\nThe `confirm_username` must match your actual username.\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Account terminated.\" } }\n```\n\n**Errors:**\n- `400` — username confirmation doesn't match\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/account \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"confirm_username\":\"alice\"}'\n```\n";
|
|
const passes = [{"t":0,"r":933,"c":2,"a":"hold","s":0.2686914047027012,"ps":9,"e":100.79953123762161,"pr":1.1},{"t":0,"r":1068,"c":36,"a":"extend","s":0.42489483628409375,"ps":9,"e":71.43441108319092,"pr":1.1},{"t":0,"r":167,"c":0,"a":"died","s":0,"ps":8,"e":100,"pr":1},{"t":0,"r":796,"c":15,"a":"extend","s":0.38453538077700244,"ps":9,"e":71.2083981323512,"pr":1.1},{"t":1,"r":933,"c":2,"a":"hold","s":0.21194461596523406,"ps":9,"e":101.14508816534348,"pr":1.1},{"t":1,"r":1068,"c":36,"a":"extend","s":0.42260577188165505,"ps":8,"e":51.53068008077091,"pr":1.05},{"t":1,"r":796,"c":15,"a":"extend","s":0.360344620050645,"ps":9,"e":50.918808564929456,"pr":1.1},{"t":1,"r":1068,"c":35,"a":"hold","s":0.08547924491132419,"ps":5,"e":30.54858156637242,"pr":1.2000000000000002},{"t":1,"r":796,"c":14,"a":"hold","s":0.14998290719198637,"ps":5,"e":30.967748171400697,"pr":1.2000000000000002},{"t":2,"r":933,"c":2,"a":"retracted","s":0.21194461596523406,"ps":8,"e":101.64064509306536,"pr":1.05},{"t":2,"r":1068,"c":36,"a":"extend","s":0.42489483628409375,"ps":7,"e":37.71588713973056,"pr":1},{"t":2,"r":796,"c":15,"a":"extend","s":0.360344620050645,"ps":8,"e":36.82109586773423,"pr":1.05},{"t":2,"r":1068,"c":35,"a":"hold","s":0.13444666608276298,"ps":5,"e":30.874154895034522,"pr":1.2000000000000002},{"t":2,"r":796,"c":14,"a":"hold","s":0.14407649092049987,"ps":5,"e":31.370360098764696,"pr":1.2000000000000002},{"t":3,"r":1068,"c":36,"a":"extend","s":0.401124774909063,"ps":7,"e":27.912419737302145,"pr":1},{"t":3,"r":796,"c":15,"a":"extend","s":0.38453538077700244,"ps":8,"e":27.08816523976517,"pr":1.05},{"t":3,"r":1068,"c":35,"a":"retracted","s":0.13444666608276298,"ps":4,"e":31.349728223696626,"pr":1.1500000000000001},{"t":3,"r":796,"c":14,"a":"retracted","s":0.14407649092049987,"ps":4,"e":31.922972026128694,"pr":1.1500000000000001},{"t":3,"r":1068,"c":37,"a":"hold","s":0.20580371452486876,"ps":5,"e":17.060381347512045,"pr":1.1},{"t":3,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":5,"e":13.01764281502336,"pr":1.1500000000000001},{"t":4,"r":1068,"c":36,"a":"extend","s":0.401124774909063,"ps":6,"e":21.154992555602252,"pr":0.95},{"t":4,"r":796,"c":15,"a":"hold","s":0.38453538077700244,"ps":7,"e":29.11444828598119,"pr":1},{"t":4,"r":1068,"c":37,"a":"hold","s":0.17023593811235727,"ps":4,"e":17.822268852410904,"pr":1.05},{"t":4,"r":796,"c":16,"a":"extend","s":0.45468046226452974,"ps":4,"e":11.238560559197717,"pr":1.1},{"t":5,"r":1068,"c":36,"a":"hold","s":0.3474974071802458,"ps":6,"e":23.03497181304422,"pr":0.95},{"t":5,"r":796,"c":15,"a":"hold","s":0.3482333756892409,"ps":6,"e":31.000315291495117,"pr":0.95},{"t":5,"r":1068,"c":37,"a":"retracted","s":0.20580371452486876,"ps":4,"e":18.868698568609855,"pr":1},{"t":5,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":9.943306446141493,"pr":1.05},{"t":5,"r":1068,"c":35,"a":"hold","s":0.21169780514475595,"ps":5,"e":10.010007822130442,"pr":1.05},{"t":6,"r":1068,"c":36,"a":"hold","s":0.3474974071802458,"ps":5,"e":25.064951070486185,"pr":0.8999999999999999},{"t":6,"r":796,"c":15,"a":"retracted","s":0.34584991566528783,"ps":5,"e":33.017114616817416,"pr":0.8999999999999999},{"t":6,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":9.036628567002136,"pr":1},{"t":6,"r":1068,"c":35,"a":"hold","s":0.20334717740628847,"ps":5,"e":10.88678524138075,"pr":1.05},{"t":6,"r":796,"c":17,"a":"hold","s":0.3109132197826185,"ps":5,"e":5.998722806607303,"pr":1.1500000000000001},{"t":7,"r":1068,"c":36,"a":"retracted","s":0.3205297295326896,"ps":5,"e":26.8791889067477,"pr":0.8999999999999999},{"t":7,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":8.401954051604587,"pr":0.95},{"t":7,"r":1068,"c":35,"a":"retracted","s":0.20334717740628847,"ps":4,"e":11.913562660631058,"pr":1},{"t":7,"r":796,"c":17,"a":"hold","s":0.25161947428047354,"ps":5,"e":7.261678600851091,"pr":1.1500000000000001},{"t":8,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.957681890826303,"pr":0.8999999999999999},{"t":8,"r":796,"c":17,"a":"retracted","s":0.25161947428047354,"ps":4,"e":8.67463439509488,"pr":1.1},{"t":8,"r":796,"c":15,"a":"hold","s":0.203090169005571,"ps":5,"e":4.475558802732248,"pr":1.05},{"t":9,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.646691378281504,"pr":0.8499999999999999},{"t":9,"r":796,"c":15,"a":"hold","s":0.22233134665689613,"ps":5,"e":5.504209575987417,"pr":1.05},{"t":10,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.428998019500144,"pr":0.7999999999999998},{"t":10,"r":796,"c":15,"a":"retracted","s":0.22233134665689613,"ps":4,"e":6.682860349242587,"pr":1},{"t":10,"r":796,"c":17,"a":"hold","s":0.17925696299022936,"ps":5,"e":3.961209151756765,"pr":0.9499999999999998},{"t":12,"r":796,"c":17,"a":"hold","s":0.2490999891913466,"ps":6,"e":4.9604961144466655,"pr":1.0499999999999998},{"t":12,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":5,"e":2.358192556665422,"pr":1.15},{"t":14,"r":796,"c":18,"a":"extend","s":0.3433682368386382,"ps":4,"e":3.636879967469892,"pr":1.0999999999999999},{"t":16,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":4,"e":3.996973467924359,"pr":1.0499999999999998},{"t":17,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.962878812090176,"pr":0.4499999999999996},{"t":17,"r":796,"c":17,"a":"hold","s":0.15236579499475283,"ps":5,"e":5.425457252442586,"pr":1.0499999999999998},{"t":18,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":4,"e":4.173419283147047,"pr":0.9499999999999997},{"t":19,"r":796,"c":15,"a":"hold","s":0.18639622949481433,"ps":5,"e":4.521140635776659,"pr":0.6999999999999995},{"t":20,"r":796,"c":15,"a":"retracted","s":0.23829512689582275,"ps":5,"e":5.677501650943241,"pr":0.6999999999999995},{"t":20,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":5,"e":3.8725629092497185,"pr":0.4499999999999996},{"t":22,"r":796,"c":17,"a":"extend","s":0.39122445946439205,"ps":4,"e":4.834512679633374,"pr":0.39999999999999963},{"t":22,"r":796,"c":15,"a":"hold","s":0.08993939656047112,"ps":5,"e":2.939982616774819,"pr":0.4},{"t":23,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":5.279258431717247,"pr":0.39999999999999963},{"t":24,"r":796,"c":19,"a":"retracted","s":0.163166653377868,"ps":4,"e":4.729687595921217,"pr":0.8499999999999995},{"t":26,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.9227349196084695,"pr":0.3},{"t":27,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.922228498429021,"pr":0.3},{"t":34,"r":796,"c":15,"a":"retracted","s":0.22268973096442837,"ps":5,"e":4.971302163802634,"pr":0.45},{"t":35,"r":796,"c":18,"a":"extend","s":0.3284111972498816,"ps":4,"e":4.415772257307833,"pr":0.35000000000000003},{"t":35,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":5,"e":3.0173200509187574,"pr":0.45000000000000007},{"t":36,"r":796,"c":20,"a":"extend","s":0.2723359100368368,"ps":5,"e":1.9052771114819134,"pr":0.55},{"t":37,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921080227681684,"pr":0.3},{"t":38,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.92107021408027,"pr":0.3},{"t":40,"r":796,"c":18,"a":"extend","s":0.3284111972498816,"ps":4,"e":4.677472553410148,"pr":0.3},{"t":40,"r":796,"c":20,"a":"extend","s":0.2723359100368368,"ps":4,"e":3.0346345717919356,"pr":0.45},{"t":41,"r":796,"c":20,"a":"hold","s":0.2723359100368368,"ps":4,"e":4.61332185208663,"pr":0.4},{"t":42,"r":796,"c":20,"a":"hold","s":0.2723359100368368,"ps":4,"e":6.192009132381324,"pr":0.35000000000000003},{"t":43,"r":796,"c":18,"a":"hold","s":0.3284111972498816,"ps":4,"e":6.7317257269888975,"pr":0.3},{"t":45,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921048773224287,"pr":0.3},{"t":46,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921048195960092,"pr":0.3},{"t":47,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316799708389001,"pr":0.3},{"t":47,"r":796,"c":20,"a":"hold","s":0.38784642768302957,"ps":5,"e":5.965971005618966,"pr":0.4},{"t":47,"r":796,"c":18,"a":"hold","s":0.26204229220046354,"ps":5,"e":3.9338989672146543,"pr":0.4},{"t":49,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.096203512368588,"pr":0.3},{"t":49,"r":796,"c":18,"a":"retracted","s":0.33787954681138516,"ps":4,"e":9.289489209718289,"pr":0.30000000000000004},{"t":50,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.9210471724129485,"pr":0.3},{"t":50,"r":796,"c":15,"a":"hold","s":0.260927813275159,"ps":5,"e":4.303585639493021,"pr":0.4},{"t":52,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316965105660122,"pr":0.3},{"t":52,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.116290293212386,"pr":0.3},{"t":53,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1194363050066425,"pr":0.3},{"t":53,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":5,"e":4.052071075846334,"pr":0.4},{"t":54,"r":796,"c":22,"a":"hold","s":0.1233571179008299,"ps":5,"e":1.9734588328550682,"pr":0.5},{"t":55,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046903364588,"pr":0.3},{"t":55,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316987058824231,"pr":0.3},{"t":55,"r":796,"c":18,"a":"extend","s":0.29287417139417515,"ps":4,"e":4.42612764725344,"pr":0.30000000000000004},{"t":55,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":5.587314278079977,"pr":0.30000000000000004},{"t":55,"r":796,"c":15,"a":"hold","s":0.2164491398234685,"ps":4,"e":4.733491293364965,"pr":0.35000000000000003},{"t":58,"r":796,"c":18,"a":"extend","s":0.29287417139417515,"ps":4,"e":4.190170620986094,"pr":0.3},{"t":58,"r":796,"c":23,"a":"extend","s":0.2710980788423285,"ps":5,"e":1.70879332040482,"pr":0.7499999999999999},{"t":59,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046862060768,"pr":0.3},{"t":60,"r":796,"c":15,"a":"hold","s":0.2239507708142326,"ps":5,"e":4.349293389298198,"pr":0.4},{"t":61,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046855405032,"pr":0.3},{"t":61,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1263538227813665,"pr":0.3},{"t":61,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.4146546530474735,"pr":0.3},{"t":61,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.80232886528308,"pr":0.3},{"t":63,"r":796,"c":18,"a":"hold","s":0.29287417139417515,"ps":4,"e":5.839554883644256,"pr":0.3},{"t":63,"r":796,"c":25,"a":"hold","s":0.20358517623002031,"ps":5,"e":2.165867119640671,"pr":0.8499999999999998},{"t":64,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9087661334661465,"pr":0.3},{"t":64,"r":796,"c":24,"a":"hold","s":0.2802492917466796,"ps":4,"e":6.287421990814727,"pr":0.6999999999999997},{"t":65,"r":796,"c":24,"a":"retracted","s":0.2802492917466796,"ps":4,"e":7.929416324788164,"pr":0.6499999999999997},{"t":66,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046850085068,"pr":0.3},{"t":66,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.937105663638541,"pr":0.3},{"t":68,"r":796,"c":22,"a":"hold","s":0.15165822402788645,"ps":5,"e":3.439811842131494,"pr":0.4},{"t":69,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849378948,"pr":0.3},{"t":69,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126752603915219,"pr":0.3},{"t":69,"r":796,"c":15,"a":"hold","s":0.17095651432936504,"ps":5,"e":3.8773808627089026,"pr":0.4},{"t":71,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.92104684919094,"pr":0.3},{"t":71,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.12676504550701,"pr":0.3},{"t":71,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.395125764500379,"pr":0.3},{"t":72,"r":796,"c":18,"a":"retracted","s":0.26370986138195085,"ps":4,"e":9.84767315534947,"pr":0.3},{"t":73,"r":796,"c":15,"a":"extend","s":0.3346932114680118,"ps":5,"e":3.425596038961891,"pr":0.4},{"t":74,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.269480732886758,"pr":0.3},{"t":75,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998510767889,"pr":0.3},{"t":75,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394694385781778,"pr":0.3},{"t":75,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.33358616054756,"pr":0.3},{"t":76,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126774990137197,"pr":0.3},{"t":76,"r":796,"c":15,"a":"extend","s":0.3346932114680118,"ps":4,"e":4.268479514419551,"pr":0.3},{"t":77,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998515431871,"pr":0.3},{"t":78,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998516776195,"pr":0.3},{"t":78,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.431859781151569,"pr":0.3},{"t":78,"r":796,"c":14,"a":"extend","s":0.3269330248903185,"ps":4,"e":4.510422537954487,"pr":0.4000000000000001},{"t":79,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.447251494332928,"pr":0.3},{"t":79,"r":796,"c":15,"a":"extend","s":0.3346932114680118,"ps":4,"e":4.648966018889601,"pr":0.3},{"t":81,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964204572245939,"pr":0.3},{"t":82,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849013877,"pr":0.3},{"t":82,"r":796,"c":13,"a":"hold","s":0.1703698187161188,"ps":5,"e":2.9412398615314856,"pr":0.40000000000000013},{"t":83,"r":796,"c":22,"a":"hold","s":0.12398673220730727,"ps":5,"e":3.22656958014908,"pr":0.4},{"t":84,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776883375159,"pr":0.3},{"t":85,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.478940245873259,"pr":0.3},{"t":86,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1267769424423815,"pr":0.3},{"t":87,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9643186315014125,"pr":0.3},{"t":87,"r":796,"c":15,"a":"retracted","s":0.3346932114680118,"ps":4,"e":11.04685816446994,"pr":0.3},{"t":88,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394559406821646,"pr":0.3},{"t":88,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9643231939569485,"pr":0.3},{"t":89,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.482151010219629,"pr":0.3},{"t":90,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519869535,"pr":0.3},{"t":90,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964328623279036,"pr":0.3},{"t":90,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.482455354680569,"pr":0.3},{"t":91,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1267769896551245,"pr":0.3},{"t":91,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.482668395803228,"pr":0.3},{"t":93,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010376,"pr":0.3},{"t":93,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776994519564,"pr":0.3},{"t":95,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.92104684901034,"pr":0.3},{"t":95,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558194985266,"pr":0.3},{"t":96,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010329,"pr":0.3},{"t":97,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519909375,"pr":0.3},{"t":97,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776998071092,"pr":0.3},{"t":98,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519910448,"pr":0.3},{"t":99,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776998643389,"pr":0.3},{"t":100,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.39455810450747,"pr":0.3},{"t":100,"r":796,"c":15,"a":"extend","s":0.23893529191352997,"ps":4,"e":3.0784333523382394,"pr":0.35000000000000003},{"t":102,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483155662544883,"pr":0.3},{"t":102,"r":796,"c":15,"a":"extend","s":0.23893529191352997,"ps":4,"e":3.0690963216625415,"pr":0.3},{"t":103,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483158611308247,"pr":0.3},{"t":103,"r":796,"c":14,"a":"extend","s":0.5555262972905546,"ps":4,"e":6.7368342761019075,"pr":0.45},{"t":104,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":104,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912658,"pr":0.3},{"t":105,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333814921315,"pr":0.3},{"t":106,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.96433382235088,"pr":0.3},{"t":107,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":107,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558087734095,"pr":0.3},{"t":108,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333831192062,"pr":0.3},{"t":109,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":109,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912903,"pr":0.3},{"t":109,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333833740403,"pr":0.3},{"t":109,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483164682278287,"pr":0.3},{"t":111,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999185631,"pr":0.3},{"t":111,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333836772928,"pr":0.3},{"t":112,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912935,"pr":0.3},{"t":112,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999187914,"pr":0.3},{"t":112,"r":796,"c":15,"a":"hold","s":0.30247923172022034,"ps":5,"e":6.000695305477867,"pr":0.4},{"t":113,"r":796,"c":15,"a":"retracted","s":0.30247923172022034,"ps":4,"e":7.82052915923963,"pr":0.35000000000000003},{"t":115,"r":796,"c":15,"a":"hold","s":0.22010384588612278,"ps":5,"e":3.9769937023791133,"pr":0.4},{"t":116,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165425092119,"pr":0.3},{"t":116,"r":796,"c":15,"a":"hold","s":0.21454684649873915,"ps":4,"e":5.093368474369027,"pr":0.35000000000000003},{"t":118,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":118,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165459090748,"pr":0.3},{"t":119,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165468890353,"pr":0.3},{"t":120,"r":796,"c":22,"a":"hold","s":0.1256682327480754,"ps":5,"e":3.2400603646354176,"pr":0.4},{"t":121,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1267769991930265,"pr":0.3},{"t":121,"r":796,"c":15,"a":"extend","s":0.37222551562040773,"ps":5,"e":3.635776942177375,"pr":0.4},{"t":122,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":123,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193137,"pr":0.3},{"t":125,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":125,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193191,"pr":0.3},{"t":127,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086229965,"pr":0.3},{"t":127,"r":796,"c":15,"a":"extend","s":0.37222551562040773,"ps":5,"e":5.629392187867299,"pr":0.5},{"t":127,"r":796,"c":22,"a":"hold","s":0.05649098863867224,"ps":5,"e":2.6866424118262486,"pr":0.4},{"t":128,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":128,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193225,"pr":0.3},{"t":129,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.3945580862293525,"pr":0.3},{"t":129,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.4831654911101975,"pr":0.3},{"t":130,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1267769991932335,"pr":0.3},{"t":130,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839683208,"pr":0.3},{"t":130,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491303968,"pr":0.3},{"t":130,"r":796,"c":15,"a":"hold","s":0.37222551562040773,"ps":4,"e":10.342661229647177,"pr":0.35000000000000003},{"t":132,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228966,"pr":0.3},{"t":132,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839684902,"pr":0.3},{"t":133,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.12677699919324,"pr":0.3},{"t":133,"r":796,"c":22,"a":"hold","s":0.1371964369693109,"ps":5,"e":3.3322859984765882,"pr":0.4},{"t":134,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":134,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839685732,"pr":0.3},{"t":135,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":136,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686139,"pr":0.3},{"t":136,"r":796,"c":15,"a":"hold","s":0.17283370146416763,"ps":4,"e":4.084585112412953,"pr":0.35000000000000003},{"t":137,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":137,"r":796,"c":22,"a":"hold","s":0.11329073355520486,"ps":5,"e":3.1410403711642703,"pr":0.4},{"t":138,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":139,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":139,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686396,"pr":0.3},{"t":139,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491737852,"pr":0.3},{"t":140,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":140,"r":796,"c":15,"a":"hold","s":0.14715919898489607,"ps":5,"e":3.3934365271692997,"pr":0.4},{"t":141,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686465,"pr":0.3},{"t":141,"r":796,"c":15,"a":"hold","s":0.13056887618585739,"ps":4,"e":3.8379875366561587,"pr":0.35000000000000003},{"t":142,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686485,"pr":0.3},{"t":142,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491749839,"pr":0.3},{"t":142,"r":796,"c":15,"a":"retracted","s":0.14715919898489607,"ps":4,"e":4.415261128535327,"pr":0.30000000000000004},{"t":142,"r":796,"c":22,"a":"hold","s":0.13707970287873059,"ps":4,"e":3.8351799444165224,"pr":0.35000000000000003},{"t":143,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491751716,"pr":0.3},{"t":143,"r":796,"c":22,"a":"retracted","s":0.13797847733298987,"ps":4,"e":4.339007763080441,"pr":0.30000000000000004},{"t":144,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":144,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":145,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":145,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686515,"pr":0.3},{"t":146,"r":796,"c":15,"a":"extend","s":0.2865885920967173,"ps":5,"e":3.1562101704447083,"pr":0.4},{"t":149,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":149,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686527,"pr":0.3},{"t":149,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.4831654917555825,"pr":0.3},{"t":151,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":151,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491755845,"pr":0.3},{"t":153,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":153,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":155,"r":796,"c":15,"a":"hold","s":0.27530682208515467,"ps":5,"e":4.418617511971369,"pr":0.4},{"t":156,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":156,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":157,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":157,"r":796,"c":22,"a":"retracted","s":0.1659622105480508,"ps":4,"e":4.626083463874454,"pr":0.35000000000000003},{"t":158,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":158,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":158,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":159,"r":796,"c":22,"a":"hold","s":0.15935097526392297,"ps":5,"e":3.5095223048341815,"pr":0.4},{"t":160,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":160,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":160,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756087,"pr":0.3},{"t":160,"r":796,"c":15,"a":"extend","s":0.23465878895410136,"ps":5,"e":2.8654032728460592,"pr":0.4},{"t":161,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":161,"r":796,"c":15,"a":"extend","s":0.2912370584225616,"ps":5,"e":3.1117098181585865,"pr":0.4},{"t":162,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":162,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":162,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":162,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756092,"pr":0.3},{"t":162,"r":796,"c":14,"a":"extend","s":0.2337502467989121,"ps":5,"e":2.035634330766679,"pr":0.5},{"t":163,"r":796,"c":15,"a":"extend","s":0.23465878895410136,"ps":4,"e":3.266476298057116,"pr":0.35000000000000003},{"t":164,"r":796,"c":15,"a":"extend","s":0.23465878895410136,"ps":4,"e":3.1806226267829483,"pr":0.30000000000000004},{"t":166,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":166,"r":796,"c":14,"a":"retracted","s":0.16375213693552743,"ps":4,"e":4.4439967000632405,"pr":0.35000000000000003},{"t":167,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":168,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":169,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":171,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":171,"r":796,"c":22,"a":"retracted","s":0.15420372723294634,"ps":4,"e":4.746923949618229,"pr":0.30000000000000004},{"t":172,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":173,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":174,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":174,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":175,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":177,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":179,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":179,"r":796,"c":22,"a":"hold","s":0.1439077434966395,"ps":5,"e":3.8535530260921105,"pr":0.4},{"t":180,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":181,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":181,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":182,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":182,"r":796,"c":15,"a":"extend","s":0.30265747704115215,"ps":4,"e":3.868378197181485,"pr":0.3},{"t":183,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":183,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":186,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":186,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":186,"r":796,"c":22,"a":"retracted","s":0.14537464103683384,"ps":4,"e":4.273003112289475,"pr":0.35000000000000003},{"t":187,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":187,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":187,"r":796,"c":15,"a":"extend","s":0.30265747704115215,"ps":4,"e":4.1855332412640776,"pr":0.3},{"t":190,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":190,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":190,"r":796,"c":15,"a":"hold","s":0.30265747704115215,"ps":4,"e":7.84727477297374,"pr":0.3},{"t":191,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":191,"r":796,"c":15,"a":"retracted","s":0.30265747704115215,"ps":4,"e":9.668534589302958,"pr":0.3},{"t":192,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":193,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":193,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":194,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":195,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":196,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":196,"r":796,"c":15,"a":"hold","s":0.1681984479208177,"ps":5,"e":3.561750518656673,"pr":0.4},{"t":196,"r":796,"c":22,"a":"hold","s":0.06931310243667303,"ps":5,"e":2.7892193222161823,"pr":0.4},{"t":200,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":200,"r":796,"c":22,"a":"hold","s":0.11623118792469625,"ps":5,"e":3.1645640061203677,"pr":0.4},{"t":201,"r":796,"c":15,"a":"hold","s":0.1715814467838095,"ps":5,"e":3.588814509560607,"pr":0.4},{"t":202,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":203,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":204,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":205,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":205,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":205,"r":796,"c":15,"a":"extend","s":0.26674036091479547,"ps":5,"e":3.0450600758259463,"pr":0.4},{"t":206,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":207,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":207,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":209,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":210,"r":796,"c":15,"a":"hold","s":0.26674036091479547,"ps":4,"e":6.568614655777466,"pr":0.3},{"t":211,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":211,"r":796,"c":15,"a":"retracted","s":0.26674036091479547,"ps":4,"e":8.10253754309583,"pr":0.3},{"t":212,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":213,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":213,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":214,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":214,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":214,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":215,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":215,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":215,"r":796,"c":15,"a":"hold","s":0.31498840623600016,"ps":6,"e":6.035841159389994,"pr":0.5},{"t":216,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":217,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":217,"r":796,"c":22,"a":"hold","s":0.1403419613044919,"ps":5,"e":3.357450193158733,"pr":0.4},{"t":221,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":221,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":222,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":223,"r":796,"c":22,"a":"hold","s":0.19044359384291198,"ps":5,"e":4.172949736439973,"pr":0.4},{"t":224,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":224,"r":796,"c":22,"a":"retracted","s":0.19044359384291198,"ps":4,"e":5.096498487183269,"pr":0.35000000000000003},{"t":226,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":226,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":228,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":228,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":228,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":229,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":230,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":230,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":231,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":232,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":232,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":232,"r":796,"c":15,"a":"retracted","s":0.2594277931497428,"ps":4,"e":7.0031446297188,"pr":0.35000000000000003},{"t":233,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":233,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":234,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":235,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":236,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":236,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":237,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":237,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":237,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":238,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":238,"r":796,"c":22,"a":"hold","s":0.23615447799788097,"ps":6,"e":4.271523798129938,"pr":0.5},{"t":239,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":239,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":240,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":240,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":241,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":241,"r":796,"c":15,"a":"hold","s":0.24031802284385223,"ps":4,"e":8.578839276645988,"pr":0.30000000000000004},{"t":242,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":243,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":243,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":243,"r":796,"c":14,"a":"extend","s":0.2894965407711985,"ps":4,"e":4.900864110162285,"pr":0.3000000000000001},{"t":244,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":244,"r":796,"c":22,"a":"hold","s":0.17920641004809235,"ps":5,"e":3.6683657831075367,"pr":0.4},{"t":245,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":245,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":246,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":246,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":246,"r":796,"c":13,"a":"retracted","s":0.1858764180287252,"ps":5,"e":3.651351856284621,"pr":0.4500000000000001},{"t":247,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":247,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":247,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":248,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":248,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":251,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":251,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":251,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":251,"r":796,"c":22,"a":"retracted","s":0.2355967441207449,"ps":4,"e":6.704064464474795,"pr":0.30000000000000004},{"t":252,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":252,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":252,"r":796,"c":14,"a":"hold","s":0.2894965407711985,"ps":4,"e":7.509746013859926,"pr":0.3},{"t":253,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":253,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":254,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":254,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":256,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":256,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":256,"r":796,"c":15,"a":"retracted","s":0.1715793764853936,"ps":4,"e":5.161021699776596,"pr":0.35000000000000003},{"t":256,"r":796,"c":22,"a":"hold","s":0.17430768844732464,"ps":5,"e":3.629176010301395,"pr":0.4},{"t":258,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":258,"r":796,"c":15,"a":"hold","s":0.21241069992497827,"ps":5,"e":3.9154485346899577,"pr":0.4},{"t":260,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":261,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":262,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":262,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":262,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":263,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":263,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":263,"r":796,"c":15,"a":"hold","s":0.18174468350875014,"ps":5,"e":3.6701204033601327,"pr":0.4},{"t":264,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":265,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":265,"r":796,"c":15,"a":"retracted","s":0.18174468350875014,"ps":4,"e":5.37545139142117,"pr":0.30000000000000004},{"t":267,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":267,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":268,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":269,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":269,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":270,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":270,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":270,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":271,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":273,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":274,"r":796,"c":15,"a":"hold","s":0.2010147080975994,"ps":5,"e":4.932890821825601,"pr":0.4},{"t":275,"r":796,"c":15,"a":"retracted","s":0.2010147080975994,"ps":4,"e":5.941008486606396,"pr":0.35000000000000003},{"t":276,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":276,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":277,"r":796,"c":15,"a":"hold","s":0.2732544227201394,"ps":5,"e":4.402198317051246,"pr":0.4},{"t":278,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":278,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":278,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":280,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":280,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":280,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":281,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":281,"r":796,"c":22,"a":"hold","s":0.11285828798092358,"ps":5,"e":3.343278236196464,"pr":0.4},{"t":282,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":282,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":283,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":284,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":284,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":288,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":289,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":289,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":290,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":290,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":291,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":291,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":291,"r":796,"c":15,"a":"hold","s":0.1738997993341894,"ps":5,"e":3.6073613299636467,"pr":0.4},{"t":292,"r":796,"c":22,"a":"retracted","s":0.1831517619665499,"ps":4,"e":5.432141175937994,"pr":0.30000000000000004},{"t":293,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":293,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":294,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":294,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":294,"r":796,"c":15,"a":"hold","s":0.1738997993341894,"ps":4,"e":5.844574542544212,"pr":0.35000000000000003},{"t":297,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":297,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":298,"r":796,"c":22,"a":"retracted","s":0.14680393403050826,"ps":4,"e":4.859345769603296,"pr":0.35000000000000003},{"t":299,"r":796,"c":18,"a":"extend","s":0.4223124370583624,"ps":4,"e":6.483165491756096,"pr":0.3},{"t":299,"r":796,"c":15,"a":"retracted","s":0.14190052387062507,"ps":4,"e":4.554247123715878,"pr":0.30000000000000004}];
|
|
const lines = text.split('\n');
|
|
const gridEl = document.getElementById('grid');
|
|
const charEls = [];
|
|
for (let r = 0; r < lines.length; r++) {
|
|
const row = [];
|
|
for (let c = 0; c < lines[r].length; c++) {
|
|
const s = document.createElement('span');
|
|
s.className = 'c';
|
|
s.textContent = lines[r][c];
|
|
row.push(s);
|
|
gridEl.appendChild(s);
|
|
}
|
|
charEls.push(row);
|
|
gridEl.appendChild(document.createTextNode('\n'));
|
|
}
|
|
let tick = -1, playing = false, iv;
|
|
function apply(t) {
|
|
for (const r of charEls) for (const e of r) e.className = 'c';
|
|
const active = new Map();
|
|
for (const p of passes) {
|
|
if (p.t > t) break;
|
|
const k = p.r+','+p.c;
|
|
if (p.a === 'died' || p.a === 'retracted') active.set(k, 'dead');
|
|
else if (p.ps > 16) active.set(k, 'strong');
|
|
else active.set(k, 'active');
|
|
}
|
|
for (const [k, cls] of active) {
|
|
const [r, c] = k.split(',').map(Number);
|
|
if (charEls[r]?.[c]) charEls[r][c].className = 'c ' + cls;
|
|
}
|
|
document.getElementById('info').textContent = 'tick ' + t + ' · ' + [...active.values()].filter(v=>v!=='dead').length + ' alive';
|
|
}
|
|
function play() {
|
|
if (playing) return;
|
|
playing = true;
|
|
document.getElementById('play-btn').textContent = 'pause';
|
|
const max = passes.length > 0 ? passes[passes.length-1].t : 0;
|
|
iv = setInterval(() => { tick++; if (tick > max) { pause(); return; } apply(tick); }, 900);
|
|
}
|
|
function pause() { playing = false; clearInterval(iv); document.getElementById('play-btn').textContent = 'play'; }
|
|
function reset() { pause(); tick = -1; for (const r of charEls) for (const e of r) e.className = 'c'; document.getElementById('info').textContent = 'neurameba'; }
|
|
document.getElementById('play-btn').addEventListener('click', () => playing ? pause() : play());
|
|
document.getElementById('reset-btn').addEventListener('click', reset);
|
|
setTimeout(play, 1000);
|
|
</script>
|
|
</body>
|
|
</html> |