@7ots/cli 0.1.17 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/.env.example +14 -0
  2. package/README.md +11 -0
  3. package/brand/logos/base.svg +1 -0
  4. package/brand/logos/clawpump.png +0 -0
  5. package/brand/logos/conductors.svg +1 -0
  6. package/brand/logos/notlogin.svg +12 -0
  7. package/brand/logos/pumpfun.png +0 -0
  8. package/brand/logos/solana.png +0 -0
  9. package/brand/logos/spawnerbot.svg +1 -0
  10. package/brand/logos/virtuals.png +0 -0
  11. package/cli/7ots.mjs +61 -1
  12. package/cli/lib/account.mjs +23 -3
  13. package/cli/lib/assistant.mjs +92 -14
  14. package/cli/lib/brain.mjs +84 -11
  15. package/cli/lib/card-shot.mjs +1 -1
  16. package/cli/lib/config.mjs +14 -3
  17. package/cli/lib/desktop-sync.mjs +177 -0
  18. package/cli/lib/i18n.mjs +9 -0
  19. package/cli/lib/inferences.mjs +19 -2
  20. package/cli/lib/integrations.mjs +98 -13
  21. package/cli/lib/mcp.mjs +1 -1
  22. package/cli/lib/open.mjs +3 -1
  23. package/cli/lib/pet-server.mjs +352 -41
  24. package/cli/lib/prompts.mjs +1 -1
  25. package/cli/lib/screen.mjs +1 -1
  26. package/cli/lib/senses/gestures.mjs +121 -0
  27. package/cli/lib/senses/index.mjs +490 -0
  28. package/cli/lib/senses/rules.mjs +159 -0
  29. package/cli/lib/senses/sources/activity.mjs +95 -0
  30. package/cli/lib/senses/sources/calendar.mjs +75 -0
  31. package/cli/lib/senses/sources/index.mjs +17 -0
  32. package/cli/lib/senses/sources/mail.mjs +48 -0
  33. package/cli/lib/senses/sources/system.mjs +39 -0
  34. package/cli/lib/senses/util.mjs +41 -0
  35. package/cli/lib/senses/vendor.mjs +78 -0
  36. package/cli/lib/stt-local.py +16 -8
  37. package/cli/lib/stt.mjs +53 -6
  38. package/cli/lib/tooluse.mjs +56 -0
  39. package/cli/lib/tts-local.mjs +2 -2
  40. package/cli/lib/vm.mjs +2 -2
  41. package/cli/lib/wake-local.py +109 -0
  42. package/cli/lib/wake.mjs +102 -0
  43. package/cli/pet/electron/main.cjs +190 -8
  44. package/cli/pet/pet.html +153 -34
  45. package/cli/pet/senses.html +342 -0
  46. package/cli/pet/settings.html +815 -74
  47. package/dist/7ots.esm.js +373 -146
  48. package/dist/7ots.esm.js.map +4 -4
  49. package/dist/7ots.iife.js +373 -146
  50. package/dist/7ots.iife.js.map +4 -4
  51. package/llms.txt +27 -0
  52. package/package.json +5 -2
  53. package/server/channels/apuchat.mjs +18 -4
  54. package/server/errors.mjs +90 -0
  55. package/server/notify.mjs +78 -0
  56. package/server/server.mjs +84 -14
  57. package/server/settings.mjs +3 -0
  58. package/server/site.mjs +401 -0
  59. package/server/tts.mjs +29 -5
  60. package/src/avatar/AvatarStage.js +2 -2
  61. package/src/avatar/three.js +3 -2
  62. package/src/character/AvatarEditor.js +2 -1
  63. package/src/character/Character.js +38 -5
  64. package/src/character/TradingCard.js +2 -0
  65. package/src/character/beat.js +64 -2
  66. package/src/character/mods/orc.js +8 -1
  67. package/src/character/mods.js +104 -10
  68. package/src/character/motion.js +252 -1
  69. package/src/character/parts.js +40 -38
  70. package/src/character/styles.js +40 -38
  71. package/src/character3d/Character3D.js +26 -5
  72. package/src/character3d/body.js +14 -12
  73. package/src/character3d/export.js +693 -0
  74. package/src/character3d/fx.js +13 -0
  75. package/src/character3d/index.js +2 -0
  76. package/src/character3d/materials.js +106 -10
  77. package/src/character3d/room-themes.js +1184 -0
  78. package/src/character3d/room.js +487 -0
  79. package/src/character3d/stage.js +14 -2
  80. package/src/creator/StepCreator.js +316 -0
  81. package/src/i18n/index.js +3 -3
  82. package/src/i18n/messages/character.js +352 -4
  83. package/src/i18n/messages/creator.js +138 -0
  84. package/src/i18n/messages/identity.js +89 -1
  85. package/src/i18n/messages/platform.js +270 -4
  86. package/src/i18n/messages/server.js +443 -1
  87. package/src/i18n/messages/widget.js +233 -0
  88. package/src/identity/random.js +14 -2
  89. package/src/identity/schema.js +2 -1
  90. package/src/index.js +9 -2
  91. package/src/voice/tags.js +22 -0
  92. package/server/platform/apuchat.mjs +0 -266
  93. package/server/platform/auth.mjs +0 -319
  94. package/server/platform/connect.mjs +0 -387
  95. package/server/platform/crypto.mjs +0 -80
  96. package/server/platform/db.mjs +0 -275
  97. package/server/platform/device.mjs +0 -222
  98. package/server/platform/integrations.mjs +0 -169
  99. package/server/platform/look.mjs +0 -20
  100. package/server/platform/mods.mjs +0 -222
  101. package/server/platform/orquesta.mjs +0 -577
  102. package/server/platform/profile.mjs +0 -161
  103. package/server/platform/routes.mjs +0 -542
  104. package/server/platform/runtime.mjs +0 -242
  105. package/server/platform/sites.mjs +0 -146
  106. package/server/platform/store.mjs +0 -456
  107. package/server/platform/vm.mjs +0 -1057
@@ -1,319 +0,0 @@
1
- /**
2
- * Acceso a la plataforma: enlace por correo y "Entrar con notlogin" (OIDC + PKCE).
3
- *
4
- * POST /auth/email { email } → manda el enlace (buzón de apumail de la plataforma)
5
- * GET /auth/email?token=… página con el botón "Entrar" (los antivirus del correo abren
6
- * los enlaces: un GET nunca gasta el enlace)
7
- * POST /auth/email/confirm token=… gasta el enlace, abre sesión y lleva a /app/
8
- * GET /auth/notlogin → notlogin.com/authorize
9
- * GET /auth/notlogin/callback ?code&state → sesión y /app/
10
- * POST /auth/logout · /auth/logout-all (cierra todas las sesiones de la cuenta)
11
- *
12
- * Variables:
13
- * PLATFORM_URL origen público (https://7ots.com); los enlaces nunca salen de la cabecera Host
14
- * PLATFORM_MAIL_INBOX buzón de apumail que manda los enlaces · PLATFORM_MAIL_TOKEN su token
15
- * (sin buzón y fuera de producción, el enlace sale por consola)
16
- * NOTLOGIN_CLIENT_ID slug de 7ots como vendor de notlogin (también el `aud` del id_token)
17
- * NOTLOGIN_CLIENT_SECRET opcional · NOTLOGIN_URL (defecto https://notlogin.com)
18
- *
19
- * Sesión: cookie `ots_session` (HttpOnly, SameSite=Lax, 30 días); en la base de datos solo su hash.
20
- */
21
-
22
- import { createHash, createPublicKey, randomBytes, verify as cryptoVerify } from 'node:crypto';
23
- import { reqT, teamT } from '../i18n.mjs';
24
- import { signValue, unsignValue } from './crypto.mjs';
25
- import { SESSION_TTL, accountExists, consumeLoginToken, createLoginToken, createSession, deleteAccountSessions, deleteSession, recentLoginTokens, sessionAccount, upsertAccount } from './store.mjs';
26
-
27
- const penv = process.env;
28
- export const SESSION_COOKIE = 'ots_session';
29
- const OIDC_COOKIE = 'ots_oidc';
30
- const OIDC_TTL = 10 * 60_000;
31
- const EMAIL_RE = /^[^\s@]{1,64}@[^\s@]+\.[^\s@]{2,}$/;
32
-
33
- const notloginUrl = () => (penv.NOTLOGIN_URL || 'https://notlogin.com').replace(/\/+$/, '');
34
- export const notloginConfigured = () => !!penv.NOTLOGIN_CLIENT_ID;
35
- export const mailConfigured = () => !!(penv.PLATFORM_MAIL_INBOX && penv.PLATFORM_MAIL_TOKEN);
36
- const production = () => penv.NODE_ENV === 'production';
37
-
38
- export function parseCookies(h = '') {
39
- const out = {};
40
- for (const part of String(h).split(';')) {
41
- const i = part.indexOf('=');
42
- if (i > 0) out[part.slice(0, i).trim()] = decodeURIComponent(part.slice(i + 1).trim());
43
- }
44
- return out;
45
- }
46
-
47
- /** Cuenta de la sesión de esta petición (o null). */
48
- export function currentAccount(req) {
49
- return sessionAccount(parseCookies(req.headers.cookie)[SESSION_COOKIE]);
50
- }
51
-
52
- /**
53
- * @param {{ send: Function, readJson: Function, originOf: (req) => string, clientIp: (req) => string }} deps
54
- */
55
- export function createAuth({ send, readJson, originOf, clientIp }) {
56
- const base = (req) => (penv.PLATFORM_URL || originOf(req)).replace(/\/+$/, '');
57
- const secure = (req) => base(req).startsWith('https:');
58
- const ipHits = new Map();
59
- const newAccounts = new Map(); // ip → timestamps of accounts created in the last day
60
- const MAX_NEW_ACCOUNTS = () => Number(penv.PLATFORM_NEW_ACCOUNTS_PER_IP_DAY || 3);
61
-
62
- /** New accounts per IP and day (each one brings a free quota). Returns the account, or null when over the cap. */
63
- function login(req, who) {
64
- if (accountExists(who)) return upsertAccount(who);
65
- const ip = clientIp(req);
66
- const now = Date.now();
67
- const recent = (newAccounts.get(ip) || []).filter((t) => now - t < 86400_000);
68
- if (recent.length >= MAX_NEW_ACCOUNTS()) return null;
69
- const account = upsertAccount(who);
70
- recent.push(now);
71
- newAccounts.set(ip, recent);
72
- if (newAccounts.size > 5000) newAccounts.clear();
73
- return account;
74
- }
75
-
76
- function cookie(req, name, value, { path = '/', maxAge }) {
77
- return `${name}=${encodeURIComponent(value)}; Path=${path}; HttpOnly; SameSite=Lax; Max-Age=${Math.floor(maxAge / 1000)}${secure(req) ? '; Secure' : ''}`;
78
- }
79
-
80
- function startSession(req, res, account, via) {
81
- const raw = createSession(account.id, via);
82
- res.setHeader('Set-Cookie', [cookie(req, SESSION_COOKIE, raw, { maxAge: SESSION_TTL }), cookie(req, OIDC_COOKIE, '', { path: '/auth/notlogin', maxAge: 0 })]);
83
- }
84
-
85
- function redirect(res, to) {
86
- res.writeHead(303, { Location: to, 'Cache-Control': 'no-store' });
87
- res.end();
88
- }
89
-
90
- /** Vuelve a la pantalla de acceso con un aviso (clave i18n que traduce el dashboard). */
91
- const fail = (res, key) => redirect(res, `/app/?error=${encodeURIComponent(key)}`);
92
-
93
- function tooMany(req) {
94
- const ip = clientIp(req);
95
- const now = Date.now();
96
- const recent = (ipHits.get(ip) || []).filter((t) => now - t < 3600_000);
97
- if (recent.length >= 10) return true;
98
- recent.push(now);
99
- ipHits.set(ip, recent);
100
- if (ipHits.size > 5000) ipHits.clear();
101
- return false;
102
- }
103
-
104
- async function sendLink(req, email) {
105
- const url = `${base(req)}/auth/email?token=${createLoginToken(email)}`;
106
- const t = reqT(req); // el correo, en el idioma de quien lo pide
107
- if (!mailConfigured()) {
108
- if (production()) throw Object.assign(new Error('mail'), { status: 501, key: 'platform.api.mailNotConfigured' });
109
- console.log(`[7ots] ${teamT()('platform.log.magicLink', { email, url })}`);
110
- return;
111
- }
112
- const api = (penv.APUMAIL_API || 'https://api.apumail.com').replace(/\/+$/, '');
113
- const r = await fetch(`${api}/api/v1/inbox/${encodeURIComponent(penv.PLATFORM_MAIL_INBOX.toLowerCase())}/send`, {
114
- method: 'POST',
115
- headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${penv.PLATFORM_MAIL_TOKEN}` },
116
- body: JSON.stringify({ to: email, subject: t('platform.mail.subject'), text: t('platform.mail.body', { url }) }),
117
- signal: AbortSignal.timeout(15000),
118
- }).catch(() => null);
119
- if (!r?.ok) {
120
- console.error('[7ots] plataforma: no se pudo mandar el enlace', r?.status ?? 'sin respuesta');
121
- throw Object.assign(new Error('mail'), { status: 502, key: 'platform.api.mailFailed' });
122
- }
123
- }
124
-
125
- // ── notlogin (OIDC) ──
126
-
127
- const redirectUri = (req) => `${base(req)}/auth/notlogin/callback`;
128
-
129
- function notloginStart(req, res) {
130
- if (!notloginConfigured()) return fail(res, 'platform.api.notloginNotConfigured');
131
- const verifier = randomBytes(32).toString('base64url');
132
- const st = { s: randomBytes(16).toString('base64url'), v: verifier, n: randomBytes(16).toString('base64url'), e: Date.now() + OIDC_TTL };
133
- const params = new URLSearchParams({
134
- vendor: penv.NOTLOGIN_CLIENT_ID,
135
- client_id: penv.NOTLOGIN_CLIENT_ID,
136
- redirect_uri: redirectUri(req),
137
- response_type: 'code',
138
- scope: 'openid profile email',
139
- state: st.s,
140
- nonce: st.n,
141
- code_challenge: createHash('sha256').update(verifier).digest('base64url'),
142
- code_challenge_method: 'S256',
143
- });
144
- res.setHeader('Set-Cookie', cookie(req, OIDC_COOKIE, signValue(Buffer.from(JSON.stringify(st)).toString('base64url')), { path: '/auth/notlogin', maxAge: OIDC_TTL }));
145
- redirect(res, `${notloginUrl()}/authorize?${params}`);
146
- }
147
-
148
- async function notloginCallback(req, res, url) {
149
- const raw = unsignValue(parseCookies(req.headers.cookie)[OIDC_COOKIE]);
150
- let st = null;
151
- try {
152
- st = raw && JSON.parse(Buffer.from(raw, 'base64url').toString('utf8'));
153
- } catch {
154
- /* cookie rota */
155
- }
156
- const code = url.searchParams.get('code');
157
- if (!st || st.e < Date.now() || !code || url.searchParams.get('state') !== st.s) return fail(res, 'platform.api.notloginFailed');
158
- try {
159
- const body = new URLSearchParams({ grant_type: 'authorization_code', code, code_verifier: st.v, redirect_uri: redirectUri(req), client_id: penv.NOTLOGIN_CLIENT_ID });
160
- if (penv.NOTLOGIN_CLIENT_SECRET) body.set('client_secret', penv.NOTLOGIN_CLIENT_SECRET);
161
- const r = await fetch(`${notloginUrl()}/api/oauth/token`, {
162
- method: 'POST',
163
- headers: { 'Content-Type': 'application/x-www-form-urlencoded', Accept: 'application/json' },
164
- body,
165
- redirect: 'manual',
166
- signal: AbortSignal.timeout(8000),
167
- });
168
- const j = await r.json().catch(() => ({}));
169
- if (!r.ok || !j.id_token) throw new Error(`token ${r.status}`);
170
- const claims = await verifyIdToken(j.id_token, st.n);
171
- const account = login(req, { notloginSub: claims.sub, email: claims.email_verified ? claims.email : null });
172
- if (!account) return fail(res, 'platform.api.tooManyAccounts');
173
- startSession(req, res, account, 'notlogin');
174
- redirect(res, '/app/');
175
- } catch (e) {
176
- console.warn('[7ots] notlogin:', e.message);
177
- fail(res, e.i18n?.key || 'platform.api.notloginFailed');
178
- }
179
- }
180
-
181
- /** @returns {Promise<boolean>} */
182
- return async function handle(req, res, url) {
183
- const p = url.pathname;
184
- if (!p.startsWith('/auth/')) return false;
185
- const t = reqT(req);
186
- const write = req.method === 'POST';
187
- // Formularios propios: mismo origen (la cookie es Lax, pero así no hay CSRF de login).
188
- const origin = req.headers.origin;
189
- if (write && origin && origin !== base(req) && origin !== originOf(req)) {
190
- send(res, 403, { error: t('server.admin.sameOrigin') });
191
- return true;
192
- }
193
-
194
- if (p === '/auth/providers' && req.method === 'GET') {
195
- send(res, 200, { email: mailConfigured() || !production(), notlogin: notloginConfigured() });
196
- return true;
197
- }
198
-
199
- if (p === '/auth/email' && write) {
200
- const { email } = await readJson(req, 4096);
201
- const e = String(email || '').trim().toLowerCase();
202
- if (!EMAIL_RE.test(e) || e.length > 200) return send(res, 400, { error: t('platform.api.badEmail') }), true;
203
- if (tooMany(req) || recentLoginTokens(e) >= 5) return send(res, 429, { error: t('platform.api.tooManyLinks') }), true;
204
- try {
205
- await sendLink(req, e);
206
- } catch (err) {
207
- send(res, err.status || 500, { error: t(err.key || 'server.http.internal') });
208
- return true;
209
- }
210
- send(res, 200, { ok: true });
211
- return true;
212
- }
213
-
214
- if (p === '/auth/email' && req.method === 'GET') {
215
- const token = String(url.searchParams.get('token') || '').replace(/[^A-Za-z0-9_-]/g, '');
216
- // same-origin (no no-referrer): con no-referrer el navegador envía el formulario con `Origin: null`.
217
- res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-store', 'Referrer-Policy': 'same-origin', 'Content-Security-Policy': "default-src 'none'; style-src 'unsafe-inline'; form-action 'self'; frame-ancestors 'none'" });
218
- res.end(confirmPage(t, token));
219
- return true;
220
- }
221
-
222
- if (p === '/auth/email/confirm' && write) {
223
- const form = await readForm(req);
224
- const email = consumeLoginToken(form.get('token'));
225
- if (!email) return fail(res, 'platform.api.linkInvalid'), true;
226
- const account = login(req, { email });
227
- if (!account) return fail(res, 'platform.api.tooManyAccounts'), true;
228
- startSession(req, res, account, 'email');
229
- redirect(res, '/app/');
230
- return true;
231
- }
232
-
233
- if (p === '/auth/notlogin' && req.method === 'GET') return notloginStart(req, res), true;
234
- if (p === '/auth/notlogin/callback' && req.method === 'GET') return await notloginCallback(req, res, url), true;
235
-
236
- if ((p === '/auth/logout' || p === '/auth/logout-all') && write) {
237
- if (p === '/auth/logout-all') {
238
- // Same-origin only (the dashboard always sends Origin), so no other site can sign the user out.
239
- const account = currentAccount(req);
240
- if (!origin) return send(res, 403, { error: t('server.admin.sameOrigin') }), true;
241
- if (account) deleteAccountSessions(account.id);
242
- }
243
- deleteSession(parseCookies(req.headers.cookie)[SESSION_COOKIE]);
244
- res.setHeader('Set-Cookie', cookie(req, SESSION_COOKIE, '', { maxAge: 0 }));
245
- send(res, 200, { ok: true });
246
- return true;
247
- }
248
-
249
- send(res, 404, { error: t('server.http.notFound') });
250
- return true;
251
- };
252
- }
253
-
254
- async function readForm(req) {
255
- let size = 0;
256
- const chunks = [];
257
- for await (const c of req) {
258
- size += c.length;
259
- if (size > 4096) break;
260
- chunks.push(c);
261
- }
262
- return new URLSearchParams(Buffer.concat(chunks).toString('utf8'));
263
- }
264
-
265
- function confirmPage(t, token) {
266
- const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' })[c]);
267
- return `<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>7ots.com</title>
268
- <link rel="icon" type="image/svg+xml" href="/brand/favicon.svg">
269
- <style>body{margin:0;min-height:100vh;display:grid;place-items:center;font:16px/1.5 Inter,system-ui,sans-serif;color:#fff;
270
- background:radial-gradient(60% 50% at 20% 10%,rgb(168 85 247/.35),transparent 70%),radial-gradient(50% 40% at 85% 80%,rgb(34 211 238/.22),transparent 70%),#120d33}
271
- main{text-align:center;padding:40px 32px;margin:16px;max-width:380px;border-radius:24px;background:rgb(255 255 255/.06);border:1px solid rgb(255 255 255/.14);backdrop-filter:blur(12px)}
272
- img{width:56px;height:56px;margin-bottom:8px}p{margin:0 0 22px;color:rgb(255 255 255/.85)}
273
- button{font:800 18px/1 system-ui,sans-serif;background:linear-gradient(180deg,#fef08a,#fde047 45%,#facc15);color:#1e1850;border:0;border-radius:999px;padding:15px 34px;cursor:pointer;box-shadow:0 6px 0 #ca8a04,0 14px 34px rgb(250 204 21/.25)}
274
- button:active{transform:translateY(5px);box-shadow:0 1px 0 #ca8a04}</style></head>
275
- <body><main><img src="/brand/mark.svg" alt="7ots"><p>${esc(t('platform.mail.confirm'))}</p><form method="post" action="/auth/email/confirm"><input type="hidden" name="token" value="${esc(token)}"><button type="submit">${esc(t('platform.mail.button'))}</button></form></main></body></html>`;
276
- }
277
-
278
- // ───────────────────────────── id_token de notlogin (EdDSA) ─────────────────────────────
279
-
280
- let jwks = null; // { at, keys: Map<kid, KeyObject> }
281
-
282
- async function loadJwks(force) {
283
- if (!force && jwks && Date.now() - jwks.at < 5 * 60_000) return jwks.keys;
284
- const r = await fetch(`${notloginUrl()}/.well-known/jwks.json`, { signal: AbortSignal.timeout(8000) });
285
- if (!r.ok) throw new Error(`jwks ${r.status}`);
286
- const keys = new Map();
287
- for (const k of (await r.json()).keys || []) {
288
- try {
289
- keys.set(k.kid, createPublicKey({ key: k, format: 'jwk' }));
290
- } catch {
291
- /* clave rara: se ignora */
292
- }
293
- }
294
- jwks = { at: Date.now(), keys };
295
- return keys;
296
- }
297
-
298
- const part = (s) => JSON.parse(Buffer.from(s, 'base64url').toString('utf8'));
299
-
300
- async function verifyIdToken(idToken, nonce) {
301
- const [h, p, s] = String(idToken).split('.');
302
- if (!s) throw new Error('id_token mal formado');
303
- const header = part(h);
304
- if (header.alg !== 'EdDSA') throw new Error('alg inesperado');
305
- let keys = await loadJwks(false);
306
- let key = keys.get(header.kid);
307
- if (!key) key = (keys = await loadJwks(true)).get(header.kid);
308
- if (!key) throw new Error('clave de firma desconocida');
309
- if (!cryptoVerify(null, Buffer.from(`${h}.${p}`), key, Buffer.from(s, 'base64url'))) throw new Error('firma inválida');
310
- const c = part(p);
311
- const now = Math.floor(Date.now() / 1000);
312
- if (c.iss !== notloginUrl()) throw new Error('iss');
313
- if (c.aud !== penv.NOTLOGIN_CLIENT_ID && !(Array.isArray(c.aud) && c.aud.includes(penv.NOTLOGIN_CLIENT_ID))) throw new Error('aud');
314
- if (c.token_use && c.token_use !== 'id') throw new Error('token_use');
315
- if (!(c.exp + 60 > now)) throw new Error('caducado');
316
- if (c.nonce !== nonce) throw new Error('nonce');
317
- if (typeof c.sub !== 'string' || !c.sub) throw new Error('sin sub');
318
- return c;
319
- }