Login
Hex Artifact Content
Login

Artifact aa7b17fd1b84ff5f85a65ad4dc9cb757394158925661020ddbfb03538fe7a369:

Attachment "console-page.tar" to tech note [e459e9b7bc] added by ollama-session 2026-10-31 11:51:24.
0000: 63 6f 6e 73 6f 6c 65 2f 69 6e 64 65 78 2e 68 74  console/index.ht
0010: 6d 6c 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ml..............
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0060: 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 31  ....0000644.0001
0070: 37 35 30 00 30 30 30 31 37 35 30 00 30 30 30 30  750.0001750.0000
0080: 30 30 30 31 37 37 30 00 31 35 32 37 31 33 35 31  0001770.15271351
0090: 35 37 36 00 30 31 34 36 32 36 00 20 30 00 00 00  576.014626. 0...
00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0100: 00 75 73 74 61 72 20 20 00 6f 6c 6c 61 6d 61 2d  .ustar  .ollama-
0110: 73 65 73 73 69 6f 6e 00 00 00 00 00 00 00 00 00  session.........
0120: 00 00 00 00 00 00 00 00 00 31 30 30 30 00 00 00  .........1000...
0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0200: 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 3e 0a  <!doctype html>.
0210: 3c 68 74 6d 6c 20 6c 61 6e 67 3d 22 65 6e 22 3e  <html lang="en">
0220: 0a 3c 68 65 61 64 3e 0a 20 20 3c 6d 65 74 61 20  .<head>.  <meta 
0230: 63 68 61 72 73 65 74 3d 22 75 74 66 2d 38 22 3e  charset="utf-8">
0240: 0a 20 20 3c 6d 65 74 61 20 6e 61 6d 65 3d 22 76  .  <meta name="v
0250: 69 65 77 70 6f 72 74 22 20 63 6f 6e 74 65 6e 74  iewport" content
0260: 3d 22 77 69 64 74 68 3d 64 65 76 69 63 65 2d 77  ="width=device-w
0270: 69 64 74 68 2c 20 69 6e 69 74 69 61 6c 2d 73 63  idth, initial-sc
0280: 61 6c 65 3d 31 2c 20 76 69 65 77 70 6f 72 74 2d  ale=1, viewport-
0290: 66 69 74 3d 63 6f 76 65 72 22 3e 0a 20 20 3c 74  fit=cover">.  <t
02a0: 69 74 6c 65 3e 4f 43 58 20 43 6f 6e 73 6f 6c 65  itle>OCX Console
02b0: 3c 2f 74 69 74 6c 65 3e 0a 20 20 3c 6c 69 6e 6b  </title>.  <link
02c0: 20 72 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74   rel="stylesheet
02d0: 22 20 68 72 65 66 3d 22 63 6f 6e 73 6f 6c 65 2e  " href="console.
02e0: 63 73 73 22 3e 0a 20 20 3c 73 63 72 69 70 74 20  css">.  <script 
02f0: 64 65 66 65 72 20 73 72 63 3d 22 63 6f 6e 73 6f  defer src="conso
0300: 6c 65 2e 6a 73 22 3e 3c 2f 73 63 72 69 70 74 3e  le.js"></script>
0310: 0a 3c 2f 68 65 61 64 3e 0a 3c 62 6f 64 79 3e 0a  .</head>.<body>.
0320: 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d 22 63    <input type="c
0330: 68 65 63 6b 62 6f 78 22 20 69 64 3d 22 6d 22 20  heckbox" id="m" 
0340: 61 72 69 61 2d 6c 61 62 65 6c 3d 22 54 6f 70 69  aria-label="Topi
0350: 63 73 22 3e 0a 20 20 3c 68 65 61 64 65 72 20 69  cs">.  <header i
0360: 64 3d 22 74 6f 70 22 3e 0a 20 20 20 20 3c 6c 61  d="top">.    <la
0370: 62 65 6c 20 66 6f 72 3d 22 6d 22 20 63 6c 61 73  bel for="m" clas
0380: 73 3d 22 6d 65 6e 75 22 20 74 69 74 6c 65 3d 22  s="menu" title="
0390: 54 6f 70 69 63 73 22 3e e2 98 b0 3c 2f 6c 61 62  Topics">☰</lab
03a0: 65 6c 3e 0a 20 20 20 20 3c 73 74 72 6f 6e 67 3e  el>.    <strong>
03b0: 43 6f 6e 73 6f 6c 65 3c 2f 73 74 72 6f 6e 67 3e  Console</strong>
03c0: 0a 20 20 3c 2f 68 65 61 64 65 72 3e 0a 20 20 3c  .  </header>.  <
03d0: 6c 61 62 65 6c 20 66 6f 72 3d 22 6d 22 20 69 64  label for="m" id
03e0: 3d 22 73 68 61 64 65 22 20 61 72 69 61 2d 68 69  ="shade" aria-hi
03f0: 64 64 65 6e 3d 22 74 72 75 65 22 3e 3c 2f 6c 61  dden="true"></la
0400: 62 65 6c 3e 0a 20 20 3c 6e 61 76 20 69 64 3d 22  bel>.  <nav id="
0410: 73 69 64 65 22 20 61 72 69 61 2d 6c 61 62 65 6c  side" aria-label
0420: 3d 22 54 6f 70 69 63 73 22 3e 0a 20 20 20 20 3c  ="Topics">.    <
0430: 68 65 61 64 65 72 3e 3c 73 70 61 6e 3e 54 6f 70  header><span>Top
0440: 69 63 73 3c 2f 73 70 61 6e 3e 3c 6c 61 62 65 6c  ics</span><label
0450: 20 66 6f 72 3d 22 6d 22 20 63 6c 61 73 73 3d 22   for="m" class="
0460: 6d 65 6e 75 22 20 74 69 74 6c 65 3d 22 43 6c 6f  menu" title="Clo
0470: 73 65 20 74 6f 70 69 63 73 22 3e e2 9c 95 3c 2f  se topics">✕</
0480: 6c 61 62 65 6c 3e 3c 2f 68 65 61 64 65 72 3e 0a  label></header>.
0490: 20 20 20 20 3c 64 69 76 20 69 64 3d 22 74 6f 70      <div id="top
04a0: 69 63 73 22 3e 3c 2f 64 69 76 3e 0a 20 20 3c 2f  ics"></div>.  </
04b0: 6e 61 76 3e 0a 20 20 3c 6d 61 69 6e 20 69 64 3d  nav>.  <main id=
04c0: 22 63 68 61 74 22 20 61 72 69 61 2d 6c 69 76 65  "chat" aria-live
04d0: 3d 22 70 6f 6c 69 74 65 22 3e 3c 64 69 76 20 63  ="polite"><div c
04e0: 6c 61 73 73 3d 22 63 6f 6c 22 20 69 64 3d 22 63  lass="col" id="c
04f0: 6f 6e 76 65 72 73 61 74 69 6f 6e 22 3e 3c 2f 64  onversation"></d
0500: 69 76 3e 3c 2f 6d 61 69 6e 3e 0a 20 20 3c 66 6f  iv></main>.  <fo
0510: 6f 74 65 72 20 69 64 3d 22 63 6f 6d 70 6f 73 65  oter id="compose
0520: 72 22 3e 3c 64 69 76 20 69 64 3d 22 62 6f 78 22  r"><div id="box"
0530: 3e 0a 20 20 20 20 3c 6c 61 62 65 6c 20 66 6f 72  >.    <label for
0540: 3d 22 71 75 65 73 74 69 6f 6e 22 3e 51 75 65 73  ="question">Ques
0550: 74 69 6f 6e 73 20 63 6f 6d 65 20 77 69 74 68 20  tions come with 
0560: 73 65 61 72 63 68 20 28 73 6c 69 63 65 20 36 29  search (slice 6)
0570: 3c 2f 6c 61 62 65 6c 3e 0a 20 20 20 20 3c 74 65  </label>.    <te
0580: 78 74 61 72 65 61 20 69 64 3d 22 71 75 65 73 74  xtarea id="quest
0590: 69 6f 6e 22 20 72 6f 77 73 3d 22 32 22 20 64 69  ion" rows="2" di
05a0: 73 61 62 6c 65 64 3e 3c 2f 74 65 78 74 61 72 65  sabled></textare
05b0: 61 3e 0a 20 20 20 20 3c 62 75 74 74 6f 6e 20 64  a>.    <button d
05c0: 69 73 61 62 6c 65 64 3e 53 65 6e 64 3c 2f 62 75  isabled>Send</bu
05d0: 74 74 6f 6e 3e 0a 20 20 3c 2f 64 69 76 3e 3c 2f  tton>.  </div></
05e0: 66 6f 6f 74 65 72 3e 0a 3c 2f 62 6f 64 79 3e 0a  footer>.</body>.
05f0: 3c 2f 68 74 6d 6c 3e 0a 00 00 00 00 00 00 00 00  </html>.........
0600: 63 6f 6e 73 6f 6c 65 2f 63 6f 6e 73 6f 6c 65 2e  console/console.
0610: 63 73 73 00 00 00 00 00 00 00 00 00 00 00 00 00  css.............
0620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0660: 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 31  ....0000644.0001
0670: 37 35 30 00 30 30 30 31 37 35 30 00 30 30 30 30  750.0001750.0000
0680: 30 30 30 37 32 31 35 00 31 35 32 37 31 33 35 32  0007215.15271352
0690: 34 32 30 00 30 31 34 37 37 32 00 20 30 00 00 00  420.014772. 0...
06a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
06b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
06c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
06d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
06e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
06f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0700: 00 75 73 74 61 72 20 20 00 6f 6c 6c 61 6d 61 2d  .ustar  .ollama-
0710: 73 65 73 73 69 6f 6e 00 00 00 00 00 00 00 00 00  session.........
0720: 00 00 00 00 00 00 00 00 00 31 30 30 30 00 00 00  .........1000...
0730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
07f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0800: 3a 72 6f 6f 74 20 7b 0a 20 20 2d 2d 62 67 3a 23  :root {.  --bg:#
0810: 66 37 66 37 66 35 3b 20 2d 2d 70 61 6e 65 6c 3a  f7f7f5; --panel:
0820: 23 66 66 66 3b 20 2d 2d 73 69 64 65 3a 23 65 66  #fff; --side:#ef
0830: 65 65 65 39 3b 20 2d 2d 74 65 78 74 3a 23 31 64  eee9; --text:#1d
0840: 31 64 31 62 3b 20 2d 2d 6d 75 74 65 64 3a 23 36  1d1b; --muted:#6
0850: 62 36 61 36 35 3b 0a 20 20 2d 2d 6c 69 6e 65 3a  b6a65;.  --line:
0860: 23 64 64 64 63 64 35 3b 20 2d 2d 61 63 63 65 6e  #dddcd5; --accen
0870: 74 3a 23 63 32 34 31 30 63 3b 20 2d 2d 75 73 65  t:#c2410c; --use
0880: 72 3a 23 65 62 65 39 65 31 3b 20 63 6f 6c 6f 72  r:#ebe9e1; color
0890: 2d 73 63 68 65 6d 65 3a 6c 69 67 68 74 3b 0a 7d  -scheme:light;.}
08a0: 0a 40 6d 65 64 69 61 20 28 70 72 65 66 65 72 73  .@media (prefers
08b0: 2d 63 6f 6c 6f 72 2d 73 63 68 65 6d 65 3a 64 61  -color-scheme:da
08c0: 72 6b 29 20 7b 0a 20 20 3a 72 6f 6f 74 20 7b 0a  rk) {.  :root {.
08d0: 20 20 20 20 2d 2d 62 67 3a 23 31 63 31 63 31 61      --bg:#1c1c1a
08e0: 3b 20 2d 2d 70 61 6e 65 6c 3a 23 32 36 32 36 32  ; --panel:#26262
08f0: 34 3b 20 2d 2d 73 69 64 65 3a 23 31 37 31 37 31  4; --side:#17171
0900: 36 3b 20 2d 2d 74 65 78 74 3a 23 65 63 65 62 65  6; --text:#ecebe
0910: 36 3b 20 2d 2d 6d 75 74 65 64 3a 23 61 30 39 66  6; --muted:#a09f
0920: 39 38 3b 0a 20 20 20 20 2d 2d 6c 69 6e 65 3a 23  98;.    --line:#
0930: 33 61 33 61 33 37 3b 20 2d 2d 61 63 63 65 6e 74  3a3a37; --accent
0940: 3a 23 66 39 37 33 31 36 3b 20 2d 2d 75 73 65 72  :#f97316; --user
0950: 3a 23 33 33 33 33 32 66 3b 20 63 6f 6c 6f 72 2d  :#33332f; color-
0960: 73 63 68 65 6d 65 3a 64 61 72 6b 3b 0a 20 20 7d  scheme:dark;.  }
0970: 0a 7d 0a 2a 20 7b 20 62 6f 78 2d 73 69 7a 69 6e  .}.* { box-sizin
0980: 67 3a 62 6f 72 64 65 72 2d 62 6f 78 3b 20 7d 0a  g:border-box; }.
0990: 68 74 6d 6c 2c 20 62 6f 64 79 20 7b 20 6d 61 72  html, body { mar
09a0: 67 69 6e 3a 30 3b 20 6d 69 6e 2d 68 65 69 67 68  gin:0; min-heigh
09b0: 74 3a 31 30 30 25 3b 20 7d 0a 62 6f 64 79 20 7b  t:100%; }.body {
09c0: 20 68 65 69 67 68 74 3a 31 30 30 64 76 68 3b 20   height:100dvh; 
09d0: 64 69 73 70 6c 61 79 3a 66 6c 65 78 3b 20 66 6c  display:flex; fl
09e0: 65 78 2d 64 69 72 65 63 74 69 6f 6e 3a 63 6f 6c  ex-direction:col
09f0: 75 6d 6e 3b 20 62 61 63 6b 67 72 6f 75 6e 64 3a  umn; background:
0a00: 76 61 72 28 2d 2d 62 67 29 3b 20 63 6f 6c 6f 72  var(--bg); color
0a10: 3a 76 61 72 28 2d 2d 74 65 78 74 29 3b 20 66 6f  :var(--text); fo
0a20: 6e 74 3a 31 37 70 78 2f 31 2e 35 35 20 2d 61 70  nt:17px/1.55 -ap
0a30: 70 6c 65 2d 73 79 73 74 65 6d 2c 73 79 73 74 65  ple-system,syste
0a40: 6d 2d 75 69 2c 22 48 65 6c 76 65 74 69 63 61 20  m-ui,"Helvetica 
0a50: 4e 65 75 65 22 2c 48 65 6c 76 65 74 69 63 61 2c  Neue",Helvetica,
0a60: 41 72 69 61 6c 2c 73 61 6e 73 2d 73 65 72 69 66  Arial,sans-serif
0a70: 3b 20 7d 0a 61 20 7b 20 63 6f 6c 6f 72 3a 76 61  ; }.a { color:va
0a80: 72 28 2d 2d 61 63 63 65 6e 74 29 3b 20 7d 0a 23  r(--accent); }.#
0a90: 74 6f 70 20 7b 20 64 69 73 70 6c 61 79 3a 66 6c  top { display:fl
0aa0: 65 78 3b 20 61 6c 69 67 6e 2d 69 74 65 6d 73 3a  ex; align-items:
0ab0: 63 65 6e 74 65 72 3b 20 67 61 70 3a 31 32 70 78  center; gap:12px
0ac0: 3b 20 70 61 64 64 69 6e 67 3a 38 70 78 20 31 36  ; padding:8px 16
0ad0: 70 78 3b 20 62 6f 72 64 65 72 2d 62 6f 74 74 6f  px; border-botto
0ae0: 6d 3a 31 70 78 20 73 6f 6c 69 64 20 76 61 72 28  m:1px solid var(
0af0: 2d 2d 6c 69 6e 65 29 3b 20 7d 0a 23 74 6f 70 20  --line); }.#top 
0b00: 73 74 72 6f 6e 67 20 7b 20 66 6f 6e 74 2d 73 69  strong { font-si
0b10: 7a 65 3a 31 38 70 78 3b 20 7d 0a 2e 6d 65 6e 75  ze:18px; }..menu
0b20: 20 7b 20 6d 69 6e 2d 77 69 64 74 68 3a 34 34 70   { min-width:44p
0b30: 78 3b 20 6d 69 6e 2d 68 65 69 67 68 74 3a 34 30  x; min-height:40
0b40: 70 78 3b 20 64 69 73 70 6c 61 79 3a 69 6e 6c 69  px; display:inli
0b50: 6e 65 2d 66 6c 65 78 3b 20 61 6c 69 67 6e 2d 69  ne-flex; align-i
0b60: 74 65 6d 73 3a 63 65 6e 74 65 72 3b 20 6a 75 73  tems:center; jus
0b70: 74 69 66 79 2d 63 6f 6e 74 65 6e 74 3a 63 65 6e  tify-content:cen
0b80: 74 65 72 3b 20 62 6f 72 64 65 72 3a 31 70 78 20  ter; border:1px 
0b90: 73 6f 6c 69 64 20 76 61 72 28 2d 2d 6c 69 6e 65  solid var(--line
0ba0: 29 3b 20 62 61 63 6b 67 72 6f 75 6e 64 3a 76 61  ); background:va
0bb0: 72 28 2d 2d 70 61 6e 65 6c 29 3b 20 63 6f 6c 6f  r(--panel); colo
0bc0: 72 3a 76 61 72 28 2d 2d 74 65 78 74 29 3b 20 62  r:var(--text); b
0bd0: 6f 72 64 65 72 2d 72 61 64 69 75 73 3a 38 70 78  order-radius:8px
0be0: 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a 32 30 70 78  ; font-size:20px
0bf0: 3b 20 63 75 72 73 6f 72 3a 70 6f 69 6e 74 65 72  ; cursor:pointer
0c00: 3b 20 7d 0a 23 6d 20 7b 20 70 6f 73 69 74 69 6f  ; }.#m { positio
0c10: 6e 3a 61 62 73 6f 6c 75 74 65 3b 20 6f 70 61 63  n:absolute; opac
0c20: 69 74 79 3a 30 3b 20 7d 0a 23 6d 3a 66 6f 63 75  ity:0; }.#m:focu
0c30: 73 2d 76 69 73 69 62 6c 65 20 2b 20 23 74 6f 70  s-visible + #top
0c40: 20 2e 6d 65 6e 75 2c 20 3a 66 6f 63 75 73 2d 76   .menu, :focus-v
0c50: 69 73 69 62 6c 65 20 7b 20 6f 75 74 6c 69 6e 65  isible { outline
0c60: 3a 32 70 78 20 73 6f 6c 69 64 20 76 61 72 28 2d  :2px solid var(-
0c70: 2d 61 63 63 65 6e 74 29 3b 20 6f 75 74 6c 69 6e  -accent); outlin
0c80: 65 2d 6f 66 66 73 65 74 3a 32 70 78 3b 20 7d 0a  e-offset:2px; }.
0c90: 23 73 69 64 65 20 7b 20 70 6f 73 69 74 69 6f 6e  #side { position
0ca0: 3a 66 69 78 65 64 3b 20 69 6e 73 65 74 3a 30 20  :fixed; inset:0 
0cb0: 61 75 74 6f 20 30 20 30 3b 20 77 69 64 74 68 3a  auto 0 0; width:
0cc0: 6d 69 6e 28 33 32 30 70 78 2c 38 36 76 77 29 3b  min(320px,86vw);
0cd0: 20 62 61 63 6b 67 72 6f 75 6e 64 3a 76 61 72 28   background:var(
0ce0: 2d 2d 73 69 64 65 29 3b 20 62 6f 72 64 65 72 2d  --side); border-
0cf0: 72 69 67 68 74 3a 31 70 78 20 73 6f 6c 69 64 20  right:1px solid 
0d00: 76 61 72 28 2d 2d 6c 69 6e 65 29 3b 20 7a 2d 69  var(--line); z-i
0d10: 6e 64 65 78 3a 35 3b 20 74 72 61 6e 73 66 6f 72  ndex:5; transfor
0d20: 6d 3a 74 72 61 6e 73 6c 61 74 65 58 28 2d 31 30  m:translateX(-10
0d30: 30 25 29 3b 20 74 72 61 6e 73 69 74 69 6f 6e 3a  0%); transition:
0d40: 74 72 61 6e 73 66 6f 72 6d 20 2e 32 73 3b 20 62  transform .2s; b
0d50: 6f 78 2d 73 68 61 64 6f 77 3a 30 20 30 20 32 34  ox-shadow:0 0 24
0d60: 70 78 20 72 67 62 61 28 30 2c 30 2c 30 2c 2e 32  px rgba(0,0,0,.2
0d70: 35 29 3b 20 6f 76 65 72 66 6c 6f 77 2d 79 3a 61  5); overflow-y:a
0d80: 75 74 6f 3b 20 70 61 64 64 69 6e 67 3a 63 61 6c  uto; padding:cal
0d90: 63 28 31 32 70 78 20 2b 20 65 6e 76 28 73 61 66  c(12px + env(saf
0da0: 65 2d 61 72 65 61 2d 69 6e 73 65 74 2d 74 6f 70  e-area-inset-top
0db0: 2c 30 70 78 29 29 20 38 70 78 20 31 32 70 78 3b  ,0px)) 8px 12px;
0dc0: 20 7d 0a 23 6d 3a 63 68 65 63 6b 65 64 20 7e 20   }.#m:checked ~ 
0dd0: 23 73 69 64 65 20 7b 20 74 72 61 6e 73 66 6f 72  #side { transfor
0de0: 6d 3a 6e 6f 6e 65 3b 20 7d 0a 23 73 68 61 64 65  m:none; }.#shade
0df0: 20 7b 20 64 69 73 70 6c 61 79 3a 6e 6f 6e 65 3b   { display:none;
0e00: 20 70 6f 73 69 74 69 6f 6e 3a 66 69 78 65 64 3b   position:fixed;
0e10: 20 69 6e 73 65 74 3a 30 3b 20 62 61 63 6b 67 72   inset:0; backgr
0e20: 6f 75 6e 64 3a 72 67 62 61 28 30 2c 30 2c 30 2c  ound:rgba(0,0,0,
0e30: 2e 33 29 3b 20 7a 2d 69 6e 64 65 78 3a 34 3b 20  .3); z-index:4; 
0e40: 7d 0a 23 6d 3a 63 68 65 63 6b 65 64 20 7e 20 23  }.#m:checked ~ #
0e50: 73 68 61 64 65 20 7b 20 64 69 73 70 6c 61 79 3a  shade { display:
0e60: 62 6c 6f 63 6b 3b 20 7d 0a 40 6d 65 64 69 61 20  block; }.@media 
0e70: 28 70 72 65 66 65 72 73 2d 72 65 64 75 63 65 64  (prefers-reduced
0e80: 2d 6d 6f 74 69 6f 6e 3a 72 65 64 75 63 65 29 20  -motion:reduce) 
0e90: 7b 20 23 73 69 64 65 20 7b 20 74 72 61 6e 73 69  { #side { transi
0ea0: 74 69 6f 6e 3a 6e 6f 6e 65 3b 20 7d 20 7d 0a 23  tion:none; } }.#
0eb0: 73 69 64 65 20 68 65 61 64 65 72 20 7b 20 64 69  side header { di
0ec0: 73 70 6c 61 79 3a 66 6c 65 78 3b 20 6a 75 73 74  splay:flex; just
0ed0: 69 66 79 2d 63 6f 6e 74 65 6e 74 3a 73 70 61 63  ify-content:spac
0ee0: 65 2d 62 65 74 77 65 65 6e 3b 20 61 6c 69 67 6e  e-between; align
0ef0: 2d 69 74 65 6d 73 3a 63 65 6e 74 65 72 3b 20 70  -items:center; p
0f00: 61 64 64 69 6e 67 3a 34 70 78 20 38 70 78 20 31  adding:4px 8px 1
0f10: 30 70 78 3b 20 66 6f 6e 74 2d 77 65 69 67 68 74  0px; font-weight
0f20: 3a 36 35 30 3b 20 7d 0a 23 73 69 64 65 20 2e 6d  :650; }.#side .m
0f30: 65 6e 75 20 7b 20 6d 69 6e 2d 68 65 69 67 68 74  enu { min-height
0f40: 3a 33 34 70 78 3b 20 6d 69 6e 2d 77 69 64 74 68  :34px; min-width
0f50: 3a 33 34 70 78 3b 20 66 6f 6e 74 2d 73 69 7a 65  :34px; font-size
0f60: 3a 31 36 70 78 3b 20 7d 0a 23 73 69 64 65 20 61  :16px; }.#side a
0f70: 20 7b 20 64 69 73 70 6c 61 79 3a 66 6c 65 78 3b   { display:flex;
0f80: 20 6a 75 73 74 69 66 79 2d 63 6f 6e 74 65 6e 74   justify-content
0f90: 3a 73 70 61 63 65 2d 62 65 74 77 65 65 6e 3b 20  :space-between; 
0fa0: 67 61 70 3a 38 70 78 3b 20 70 61 64 64 69 6e 67  gap:8px; padding
0fb0: 3a 31 30 70 78 20 31 32 70 78 3b 20 62 6f 72 64  :10px 12px; bord
0fc0: 65 72 2d 72 61 64 69 75 73 3a 37 70 78 3b 20 63  er-radius:7px; c
0fd0: 6f 6c 6f 72 3a 76 61 72 28 2d 2d 74 65 78 74 29  olor:var(--text)
0fe0: 3b 20 74 65 78 74 2d 64 65 63 6f 72 61 74 69 6f  ; text-decoratio
0ff0: 6e 3a 6e 6f 6e 65 3b 20 66 6f 6e 74 2d 73 69 7a  n:none; font-siz
1000: 65 3a 31 35 70 78 3b 20 7d 0a 23 73 69 64 65 20  e:15px; }.#side 
1010: 61 3a 68 6f 76 65 72 2c 20 23 73 69 64 65 20 61  a:hover, #side a
1020: 5b 61 72 69 61 2d 63 75 72 72 65 6e 74 5d 20 7b  [aria-current] {
1030: 20 62 61 63 6b 67 72 6f 75 6e 64 3a 76 61 72 28   background:var(
1040: 2d 2d 75 73 65 72 29 3b 20 7d 0a 23 63 68 61 74  --user); }.#chat
1050: 20 7b 20 66 6c 65 78 3a 31 3b 20 6f 76 65 72 66   { flex:1; overf
1060: 6c 6f 77 2d 79 3a 61 75 74 6f 3b 20 70 61 64 64  low-y:auto; padd
1070: 69 6e 67 3a 32 38 70 78 20 32 30 70 78 3b 20 7d  ing:28px 20px; }
1080: 0a 2e 63 6f 6c 2c 20 23 62 6f 78 20 7b 20 6d 61  ..col, #box { ma
1090: 78 2d 77 69 64 74 68 3a 37 36 30 70 78 3b 20 6d  x-width:760px; m
10a0: 61 72 67 69 6e 3a 30 20 61 75 74 6f 3b 20 7d 0a  argin:0 auto; }.
10b0: 2e 6d 73 67 20 7b 20 6d 61 72 67 69 6e 3a 30 20  .msg { margin:0 
10c0: 30 20 32 36 70 78 3b 20 7d 0a 2e 6d 73 67 20 68  0 26px; }..msg h
10d0: 31 20 7b 20 66 6f 6e 74 2d 73 69 7a 65 3a 32 30  1 { font-size:20
10e0: 70 78 3b 20 6d 61 72 67 69 6e 3a 30 20 30 20 31  px; margin:0 0 1
10f0: 32 70 78 3b 20 7d 0a 2e 6d 73 67 20 70 20 7b 20  2px; }..msg p { 
1100: 6d 61 72 67 69 6e 3a 30 20 30 20 31 32 70 78 3b  margin:0 0 12px;
1110: 20 7d 0a 2e 67 6c 61 6e 63 65 20 7b 20 64 69 73   }..glance { dis
1120: 70 6c 61 79 3a 66 6c 65 78 3b 20 66 6c 65 78 2d  play:flex; flex-
1130: 77 72 61 70 3a 77 72 61 70 3b 20 67 61 70 3a 38  wrap:wrap; gap:8
1140: 70 78 3b 20 6d 61 72 67 69 6e 3a 38 70 78 20 30  px; margin:8px 0
1150: 20 31 38 70 78 3b 20 7d 0a 2e 70 69 6c 6c 20 7b   18px; }..pill {
1160: 20 66 6f 6e 74 2d 73 69 7a 65 3a 31 33 70 78 3b   font-size:13px;
1170: 20 70 61 64 64 69 6e 67 3a 32 70 78 20 31 30 70   padding:2px 10p
1180: 78 3b 20 62 6f 72 64 65 72 2d 72 61 64 69 75 73  x; border-radius
1190: 3a 31 32 70 78 3b 20 66 6f 6e 74 2d 77 65 69 67  :12px; font-weig
11a0: 68 74 3a 36 30 30 3b 20 20 62 61 63 6b 67 72 6f  ht:600;  backgro
11b0: 75 6e 64 3a 76 61 72 28 2d 2d 75 73 65 72 29 3b  und:var(--user);
11c0: 20 7d 0a 2e 6d 73 20 7b 20 64 69 73 70 6c 61 79   }..ms { display
11d0: 3a 67 72 69 64 3b 20 67 61 70 3a 37 70 78 3b 20  :grid; gap:7px; 
11e0: 6d 61 78 2d 77 69 64 74 68 3a 34 36 30 70 78 3b  max-width:460px;
11f0: 20 7d 0a 2e 6d 69 6c 65 73 74 6f 6e 65 20 7b 20   }..milestone { 
1200: 64 69 73 70 6c 61 79 3a 67 72 69 64 3b 20 67 72  display:grid; gr
1210: 69 64 2d 74 65 6d 70 6c 61 74 65 2d 63 6f 6c 75  id-template-colu
1220: 6d 6e 73 3a 6d 69 6e 6d 61 78 28 30 2c 31 66 72  mns:minmax(0,1fr
1230: 29 20 31 32 30 70 78 20 61 75 74 6f 3b 20 67 61  ) 120px auto; ga
1240: 70 3a 31 30 70 78 3b 20 61 6c 69 67 6e 2d 69 74  p:10px; align-it
1250: 65 6d 73 3a 63 65 6e 74 65 72 3b 20 66 6f 6e 74  ems:center; font
1260: 2d 73 69 7a 65 3a 31 35 70 78 3b 20 7d 0a 2e 64  -size:15px; }..d
1270: 75 65 2c 20 2e 6d 65 74 61 2c 20 2e 61 73 2d 6f  ue, .meta, .as-o
1280: 66 20 7b 20 66 6f 6e 74 2d 73 69 7a 65 3a 31 33  f { font-size:13
1290: 70 78 3b 20 63 6f 6c 6f 72 3a 76 61 72 28 2d 2d  px; color:var(--
12a0: 6d 75 74 65 64 29 3b 20 7d 0a 2e 61 73 2d 6f 66  muted); }..as-of
12b0: 20 7b 20 6d 61 72 67 69 6e 2d 74 6f 70 3a 31 30   { margin-top:10
12c0: 70 78 3b 20 7d 0a 2e 69 74 65 6d 73 20 7b 20 6c  px; }..items { l
12d0: 69 73 74 2d 73 74 79 6c 65 3a 6e 6f 6e 65 3b 20  ist-style:none; 
12e0: 70 61 64 64 69 6e 67 3a 30 3b 20 6d 61 72 67 69  padding:0; margi
12f0: 6e 3a 38 70 78 20 30 3b 20 7d 0a 2e 69 74 65 6d  n:8px 0; }..item
1300: 73 20 6c 69 20 7b 20 70 61 64 64 69 6e 67 3a 31  s li { padding:1
1310: 30 70 78 20 30 3b 20 62 6f 72 64 65 72 2d 62 6f  0px 0; border-bo
1320: 74 74 6f 6d 3a 31 70 78 20 73 6f 6c 69 64 20 76  ttom:1px solid v
1330: 61 72 28 2d 2d 6c 69 6e 65 29 3b 20 7d 0a 2e 69  ar(--line); }..i
1340: 74 65 6d 73 20 6c 69 20 61 2c 20 2e 69 74 65 6d  tems li a, .item
1350: 73 20 6c 69 20 73 74 72 6f 6e 67 20 7b 20 64 69  s li strong { di
1360: 73 70 6c 61 79 3a 62 6c 6f 63 6b 3b 20 66 6f 6e  splay:block; fon
1370: 74 2d 77 65 69 67 68 74 3a 36 30 30 3b 20 7d 0a  t-weight:600; }.
1380: 23 63 6f 6d 70 6f 73 65 72 20 7b 20 70 61 64 64  #composer { padd
1390: 69 6e 67 3a 30 20 32 30 70 78 20 63 61 6c 63 28  ing:0 20px calc(
13a0: 31 34 70 78 20 2b 20 65 6e 76 28 73 61 66 65 2d  14px + env(safe-
13b0: 61 72 65 61 2d 69 6e 73 65 74 2d 62 6f 74 74 6f  area-inset-botto
13c0: 6d 2c 30 70 78 29 29 3b 20 7d 0a 23 62 6f 78 20  m,0px)); }.#box 
13d0: 7b 20 62 6f 72 64 65 72 3a 31 70 78 20 73 6f 6c  { border:1px sol
13e0: 69 64 20 76 61 72 28 2d 2d 6c 69 6e 65 29 3b 20  id var(--line); 
13f0: 62 61 63 6b 67 72 6f 75 6e 64 3a 76 61 72 28 2d  background:var(-
1400: 2d 70 61 6e 65 6c 29 3b 20 62 6f 72 64 65 72 2d  -panel); border-
1410: 72 61 64 69 75 73 3a 31 36 70 78 3b 20 70 61 64  radius:16px; pad
1420: 64 69 6e 67 3a 31 30 70 78 20 31 32 70 78 20 38  ding:10px 12px 8
1430: 70 78 3b 20 7d 0a 23 62 6f 78 20 6c 61 62 65 6c  px; }.#box label
1440: 20 7b 20 64 69 73 70 6c 61 79 3a 62 6c 6f 63 6b   { display:block
1450: 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a 31 33 70 78  ; font-size:13px
1460: 3b 20 63 6f 6c 6f 72 3a 76 61 72 28 2d 2d 6d 75  ; color:var(--mu
1470: 74 65 64 29 3b 20 7d 0a 23 71 75 65 73 74 69 6f  ted); }.#questio
1480: 6e 20 7b 20 77 69 64 74 68 3a 31 30 30 25 3b 20  n { width:100%; 
1490: 62 6f 72 64 65 72 3a 30 3b 20 72 65 73 69 7a 65  border:0; resize
14a0: 3a 6e 6f 6e 65 3b 20 62 61 63 6b 67 72 6f 75 6e  :none; backgroun
14b0: 64 3a 74 72 61 6e 73 70 61 72 65 6e 74 3b 20 63  d:transparent; c
14c0: 6f 6c 6f 72 3a 76 61 72 28 2d 2d 74 65 78 74 29  olor:var(--text)
14d0: 3b 20 66 6f 6e 74 3a 69 6e 68 65 72 69 74 3b 20  ; font:inherit; 
14e0: 7d 0a 23 62 6f 78 20 62 75 74 74 6f 6e 20 7b 20  }.#box button { 
14f0: 62 6f 72 64 65 72 3a 30 3b 20 62 6f 72 64 65 72  border:0; border
1500: 2d 72 61 64 69 75 73 3a 31 30 70 78 3b 20 70 61  -radius:10px; pa
1510: 64 64 69 6e 67 3a 36 70 78 20 32 32 70 78 3b 20  dding:6px 22px; 
1520: 62 61 63 6b 67 72 6f 75 6e 64 3a 76 61 72 28 2d  background:var(-
1530: 2d 61 63 63 65 6e 74 29 3b 20 63 6f 6c 6f 72 3a  -accent); color:
1540: 76 61 72 28 2d 2d 70 61 6e 65 6c 29 3b 20 66 6f  var(--panel); fo
1550: 6e 74 3a 69 6e 68 65 72 69 74 3b 20 6f 70 61 63  nt:inherit; opac
1560: 69 74 79 3a 2e 35 3b 20 7d 0a 40 6d 65 64 69 61  ity:.5; }.@media
1570: 20 28 6d 61 78 2d 77 69 64 74 68 3a 34 38 30 70   (max-width:480p
1580: 78 29 20 7b 20 23 63 68 61 74 20 7b 20 70 61 64  x) { #chat { pad
1590: 64 69 6e 67 3a 32 30 70 78 20 31 36 70 78 3b 20  ding:20px 16px; 
15a0: 7d 20 2e 6d 69 6c 65 73 74 6f 6e 65 20 7b 20 67  } .milestone { g
15b0: 72 69 64 2d 74 65 6d 70 6c 61 74 65 2d 63 6f 6c  rid-template-col
15c0: 75 6d 6e 73 3a 6d 69 6e 6d 61 78 28 30 2c 31 66  umns:minmax(0,1f
15d0: 72 29 20 36 30 70 78 20 61 75 74 6f 3b 20 7d 20  r) 60px auto; } 
15e0: 7d 0a 62 75 74 74 6f 6e 2e 69 74 65 6d 20 7b 20  }.button.item { 
15f0: 66 6f 6e 74 3a 69 6e 68 65 72 69 74 3b 20 63 6f  font:inherit; co
1600: 6c 6f 72 3a 76 61 72 28 2d 2d 61 63 63 65 6e 74  lor:var(--accent
1610: 29 3b 20 62 61 63 6b 67 72 6f 75 6e 64 3a 6e 6f  ); background:no
1620: 6e 65 3b 20 62 6f 72 64 65 72 3a 30 3b 20 70 61  ne; border:0; pa
1630: 64 64 69 6e 67 3a 30 3b 20 63 75 72 73 6f 72 3a  dding:0; cursor:
1640: 70 6f 69 6e 74 65 72 3b 20 74 65 78 74 2d 61 6c  pointer; text-al
1650: 69 67 6e 3a 6c 65 66 74 3b 20 7d 0a 62 75 74 74  ign:left; }.butt
1660: 6f 6e 2e 69 74 65 6d 3a 68 6f 76 65 72 20 7b 20  on.item:hover { 
1670: 74 65 78 74 2d 64 65 63 6f 72 61 74 69 6f 6e 3a  text-decoration:
1680: 75 6e 64 65 72 6c 69 6e 65 3b 20 7d 0a 00 00 00  underline; }....
1690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
16f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
17f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1800: 63 6f 6e 73 6f 6c 65 2f 63 6f 6e 73 6f 6c 65 2e  console/console.
1810: 6a 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00  js..............
1820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1860: 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 31  ....0000644.0001
1870: 37 35 30 00 30 30 30 31 37 35 30 00 30 30 30 30  750.0001750.0000
1880: 30 30 31 32 30 37 37 00 31 35 32 37 31 33 35 32  0012077.15271352
1890: 33 36 37 00 30 31 34 36 33 32 00 20 30 00 00 00  367.014632. 0...
18a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
18b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
18c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
18d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
18e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
18f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1900: 00 75 73 74 61 72 20 20 00 6f 6c 6c 61 6d 61 2d  .ustar  .ollama-
1910: 73 65 73 73 69 6f 6e 00 00 00 00 00 00 00 00 00  session.........
1920: 00 00 00 00 00 00 00 00 00 31 30 30 30 00 00 00  .........1000...
1930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
19f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1a00: 2f 2a 20 54 68 65 20 6f 6e 65 20 62 6f 75 6e 64  /* The one bound
1a10: 61 72 79 20 73 68 61 72 65 64 20 62 79 20 74 68  ary shared by th
1a20: 65 20 77 65 62 20 70 61 67 65 2c 20 53 74 6f 6e  e web page, Ston
1a30: 65 20 61 6e 64 20 74 68 65 20 65 78 61 6d 70 6c  e and the exampl
1a40: 65 20 70 61 67 65 2e 20 2a 2f 0a 63 6f 6e 73 74  e page. */.const
1a50: 20 74 72 61 6e 73 70 6f 72 74 20 3d 20 77 69 6e   transport = win
1a60: 64 6f 77 2e 77 65 62 6b 69 74 3f 2e 6d 65 73 73  dow.webkit?.mess
1a70: 61 67 65 48 61 6e 64 6c 65 72 73 3f 2e 6f 63 78  ageHandlers?.ocx
1a80: 20 3f 20 22 73 74 6f 6e 65 22 20 3a 0a 20 20 74   ? "stone" :.  t
1a90: 79 70 65 6f 66 20 77 69 6e 64 6f 77 2e 6f 63 78  ypeof window.ocx
1aa0: 53 74 75 62 20 3d 3d 3d 20 22 66 75 6e 63 74 69  Stub === "functi
1ab0: 6f 6e 22 20 3f 20 22 73 74 75 62 22 20 3a 20 22  on" ? "stub" : "
1ac0: 77 65 62 22 3b 0a 0a 2f 2a 20 45 76 65 72 79 20  web";../* Every 
1ad0: 74 6f 6f 6c 20 61 6e 73 77 65 72 73 20 4a 53 4f  tool answers JSO
1ae0: 4e 3b 20 61 20 66 61 69 6c 75 72 65 20 69 73 20  N; a failure is 
1af0: 7b 73 74 6f 70 70 65 64 3a 20 57 48 59 7d 2c 20  {stopped: WHY}, 
1b00: 6e 65 76 65 72 20 61 20 72 65 6a 65 63 74 69 6f  never a rejectio
1b10: 6e 2e 20 2a 2f 0a 66 75 6e 63 74 69 6f 6e 20 74  n. */.function t
1b20: 6f 6f 6c 28 6e 61 6d 65 2c 20 69 6e 70 75 74 29  ool(name, input)
1b30: 20 7b 0a 20 20 69 66 20 28 74 72 61 6e 73 70 6f   {.  if (transpo
1b40: 72 74 20 3d 3d 3d 20 22 73 74 6f 6e 65 22 29 20  rt === "stone") 
1b50: 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 77 69 6e  {.    return win
1b60: 64 6f 77 2e 77 65 62 6b 69 74 2e 6d 65 73 73 61  dow.webkit.messa
1b70: 67 65 48 61 6e 64 6c 65 72 73 2e 6f 63 78 2e 70  geHandlers.ocx.p
1b80: 6f 73 74 4d 65 73 73 61 67 65 28 7b 74 6f 6f 6c  ostMessage({tool
1b90: 3a 6e 61 6d 65 2c 20 69 6e 70 75 74 7d 29 2e 74  :name, input}).t
1ba0: 68 65 6e 28 4a 53 4f 4e 2e 70 61 72 73 65 29 3b  hen(JSON.parse);
1bb0: 0a 20 20 7d 0a 20 20 69 66 20 28 74 72 61 6e 73  .  }.  if (trans
1bc0: 70 6f 72 74 20 3d 3d 3d 20 22 73 74 75 62 22 29  port === "stub")
1bd0: 20 72 65 74 75 72 6e 20 50 72 6f 6d 69 73 65 2e   return Promise.
1be0: 72 65 73 6f 6c 76 65 28 77 69 6e 64 6f 77 2e 6f  resolve(window.o
1bf0: 63 78 53 74 75 62 28 6e 61 6d 65 2c 20 69 6e 70  cxStub(name, inp
1c00: 75 74 29 29 3b 0a 20 20 63 6f 6e 73 74 20 75 72  ut));.  const ur
1c10: 6c 20 3d 20 6e 65 77 20 55 52 4c 28 22 2e 2e 2f  l = new URL("../
1c20: 2e 2e 2f 65 78 74 2f 6f 63 78 32 2d 63 67 69 2f  ../ext/ocx2-cgi/
1c30: 22 20 2b 20 65 6e 63 6f 64 65 55 52 49 43 6f 6d  " + encodeURICom
1c40: 70 6f 6e 65 6e 74 28 6e 61 6d 65 29 2c 20 6c 6f  ponent(name), lo
1c50: 63 61 74 69 6f 6e 2e 68 72 65 66 29 3b 0a 20 20  cation.href);.  
1c60: 75 72 6c 2e 73 65 61 72 63 68 50 61 72 61 6d 73  url.searchParams
1c70: 2e 73 65 74 28 22 6a 73 6f 6e 22 2c 20 22 6f 6e  .set("json", "on
1c80: 22 29 3b 0a 20 20 66 6f 72 20 28 63 6f 6e 73 74  ");.  for (const
1c90: 20 5b 6b 65 79 2c 20 76 61 6c 75 65 5d 20 6f 66   [key, value] of
1ca0: 20 4f 62 6a 65 63 74 2e 65 6e 74 72 69 65 73 28   Object.entries(
1cb0: 69 6e 70 75 74 29 29 20 7b 0a 20 20 20 20 69 66  input)) {.    if
1cc0: 20 28 76 61 6c 75 65 20 21 3d 20 6e 75 6c 6c 29   (value != null)
1cd0: 20 75 72 6c 2e 73 65 61 72 63 68 50 61 72 61 6d   url.searchParam
1ce0: 73 2e 73 65 74 28 6b 65 79 2c 20 76 61 6c 75 65  s.set(key, value
1cf0: 29 3b 0a 20 20 7d 0a 20 20 72 65 74 75 72 6e 20  );.  }.  return 
1d00: 66 65 74 63 68 28 75 72 6c 29 2e 74 68 65 6e 28  fetch(url).then(
1d10: 72 65 73 70 6f 6e 73 65 20 3d 3e 20 72 65 73 70  response => resp
1d20: 6f 6e 73 65 2e 6a 73 6f 6e 28 29 29 0a 20 20 20  onse.json()).   
1d30: 20 2e 74 68 65 6e 28 61 6e 73 77 65 72 20 3d 3e   .then(answer =>
1d40: 20 61 6e 73 77 65 72 2e 72 65 73 75 6c 74 20 3f   answer.result ?
1d50: 3f 20 7b 73 74 6f 70 70 65 64 3a 20 61 6e 73 77  ? {stopped: answ
1d60: 65 72 2e 73 74 6f 70 70 65 64 20 7c 7c 20 22 54  er.stopped || "T
1d70: 68 65 20 63 6f 6e 73 6f 6c 65 20 63 6f 75 6c 64  he console could
1d80: 20 6e 6f 74 20 72 65 61 64 20 22 20 2b 20 6e 61   not read " + na
1d90: 6d 65 20 2b 20 22 2e 22 7d 29 0a 20 20 20 20 2e  me + "."}).    .
1da0: 63 61 74 63 68 28 28 29 20 3d 3e 20 28 7b 73 74  catch(() => ({st
1db0: 6f 70 70 65 64 3a 20 22 54 68 65 20 63 6f 6e 73  opped: "The cons
1dc0: 6f 6c 65 20 63 6f 75 6c 64 20 6e 6f 74 20 72 65  ole could not re
1dd0: 61 64 20 22 20 2b 20 6e 61 6d 65 20 2b 20 22 2e  ad " + name + ".
1de0: 22 7d 29 29 3b 0a 7d 0a 0a 63 6f 6e 73 74 20 76  "}));.}..const v
1df0: 69 65 77 65 72 20 3d 20 6e 65 77 20 55 52 4c 53  iewer = new URLS
1e00: 65 61 72 63 68 50 61 72 61 6d 73 28 6c 6f 63 61  earchParams(loca
1e10: 74 69 6f 6e 2e 73 65 61 72 63 68 29 2e 67 65 74  tion.search).get
1e20: 28 22 66 6f 72 22 29 3b 0a 63 6f 6e 73 74 20 63  ("for");.const c
1e30: 6f 6e 76 65 72 73 61 74 69 6f 6e 20 3d 20 64 6f  onversation = do
1e40: 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e  cument.getElemen
1e50: 74 42 79 49 64 28 22 63 6f 6e 76 65 72 73 61 74  tById("conversat
1e60: 69 6f 6e 22 29 3b 0a 63 6f 6e 73 74 20 74 6f 70  ion");.const top
1e70: 69 63 73 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67  ics = document.g
1e80: 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 74  etElementById("t
1e90: 6f 70 69 63 73 22 29 3b 0a 63 6f 6e 73 74 20 6d  opics");.const m
1ea0: 65 6e 75 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67  enu = document.g
1eb0: 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 6d  etElementById("m
1ec0: 22 29 3b 0a 6c 65 74 20 63 61 72 64 73 20 3d 20  ");.let cards = 
1ed0: 5b 5d 3b 0a 0a 66 75 6e 63 74 69 6f 6e 20 65 6c  [];..function el
1ee0: 65 6d 65 6e 74 28 74 61 67 2c 20 74 65 78 74 2c  ement(tag, text,
1ef0: 20 63 6c 61 73 73 4e 61 6d 65 29 20 7b 0a 20 20   className) {.  
1f00: 63 6f 6e 73 74 20 6e 6f 64 65 20 3d 20 64 6f 63  const node = doc
1f10: 75 6d 65 6e 74 2e 63 72 65 61 74 65 45 6c 65 6d  ument.createElem
1f20: 65 6e 74 28 74 61 67 29 3b 0a 20 20 69 66 20 28  ent(tag);.  if (
1f30: 74 65 78 74 20 21 3d 20 6e 75 6c 6c 29 20 6e 6f  text != null) no
1f40: 64 65 2e 74 65 78 74 43 6f 6e 74 65 6e 74 20 3d  de.textContent =
1f50: 20 74 65 78 74 3b 0a 20 20 69 66 20 28 63 6c 61   text;.  if (cla
1f60: 73 73 4e 61 6d 65 29 20 6e 6f 64 65 2e 63 6c 61  ssName) node.cla
1f70: 73 73 4e 61 6d 65 20 3d 20 63 6c 61 73 73 4e 61  ssName = classNa
1f80: 6d 65 3b 0a 20 20 72 65 74 75 72 6e 20 6e 6f 64  me;.  return nod
1f90: 65 3b 0a 7d 0a 0a 66 75 6e 63 74 69 6f 6e 20 61  e;.}..function a
1fa0: 73 4f 66 28 61 6e 73 77 65 72 2c 20 70 61 72 65  sOf(answer, pare
1fb0: 6e 74 29 20 7b 0a 20 20 69 66 20 28 61 6e 73 77  nt) {.  if (answ
1fc0: 65 72 2e 61 73 5f 6f 66 29 20 70 61 72 65 6e 74  er.as_of) parent
1fd0: 2e 61 70 70 65 6e 64 28 65 6c 65 6d 65 6e 74 28  .append(element(
1fe0: 22 73 6d 61 6c 6c 22 2c 20 22 61 73 20 6f 66 20  "small", "as of 
1ff0: 22 20 2b 20 61 6e 73 77 65 72 2e 61 73 5f 6f 66  " + answer.as_of
2000: 2c 20 22 61 73 2d 6f 66 22 29 29 3b 0a 7d 0a 0a  , "as-of"));.}..
2010: 66 75 6e 63 74 69 6f 6e 20 6d 69 6c 65 73 74 6f  function milesto
2020: 6e 65 28 69 74 65 6d 2c 20 70 61 72 65 6e 74 29  ne(item, parent)
2030: 20 7b 0a 20 20 63 6f 6e 73 74 20 72 6f 77 20 3d   {.  const row =
2040: 20 65 6c 65 6d 65 6e 74 28 22 64 69 76 22 2c 20   element("div", 
2050: 6e 75 6c 6c 2c 20 22 6d 69 6c 65 73 74 6f 6e 65  null, "milestone
2060: 22 29 3b 0a 20 20 72 6f 77 2e 61 70 70 65 6e 64  ");.  row.append
2070: 28 69 74 65 6d 4c 69 6e 6b 28 69 74 65 6d 29 29  (itemLink(item))
2080: 3b 0a 20 20 72 6f 77 2e 61 70 70 65 6e 64 28 65  ;.  row.append(e
2090: 6c 65 6d 65 6e 74 28 22 73 70 61 6e 22 2c 20 69  lement("span", i
20a0: 74 65 6d 2e 64 75 65 2c 20 22 64 75 65 22 29 29  tem.due, "due"))
20b0: 3b 0a 20 20 70 61 72 65 6e 74 2e 61 70 70 65 6e  ;.  parent.appen
20c0: 64 28 72 6f 77 29 3b 0a 7d 0a 0a 66 75 6e 63 74  d(row);.}..funct
20d0: 69 6f 6e 20 64 72 61 77 47 72 65 65 74 69 6e 67  ion drawGreeting
20e0: 28 73 75 6d 6d 61 72 79 2c 20 6d 69 6c 65 73 74  (summary, milest
20f0: 6f 6e 65 73 29 20 7b 0a 20 20 63 6f 6e 76 65 72  ones) {.  conver
2100: 73 61 74 69 6f 6e 2e 72 65 70 6c 61 63 65 43 68  sation.replaceCh
2110: 69 6c 64 72 65 6e 28 29 3b 0a 20 20 63 6f 6e 73  ildren();.  cons
2120: 74 20 6d 65 73 73 61 67 65 20 3d 20 65 6c 65 6d  t message = elem
2130: 65 6e 74 28 22 73 65 63 74 69 6f 6e 22 2c 20 6e  ent("section", n
2140: 75 6c 6c 2c 20 22 6d 73 67 22 29 3b 0a 20 20 6d  ull, "msg");.  m
2150: 65 73 73 61 67 65 2e 61 70 70 65 6e 64 28 65 6c  essage.append(el
2160: 65 6d 65 6e 74 28 22 68 31 22 2c 20 22 48 65 6c  ement("h1", "Hel
2170: 6c 6f 2e 22 29 29 3b 0a 20 20 63 6f 6e 73 74 20  lo."));.  const 
2180: 67 6c 61 6e 63 65 20 3d 20 65 6c 65 6d 65 6e 74  glance = element
2190: 28 22 64 69 76 22 2c 20 6e 75 6c 6c 2c 20 22 67  ("div", null, "g
21a0: 6c 61 6e 63 65 22 29 3b 0a 20 20 66 6f 72 20 28  lance");.  for (
21b0: 63 6f 6e 73 74 20 63 61 72 64 20 6f 66 20 63 61  const card of ca
21c0: 72 64 73 29 20 7b 0a 20 20 20 20 6d 65 73 73 61  rds) {.    messa
21d0: 67 65 2e 61 70 70 65 6e 64 28 65 6c 65 6d 65 6e  ge.append(elemen
21e0: 74 28 22 70 22 2c 20 63 61 72 64 2e 73 61 79 29  t("p", card.say)
21f0: 29 3b 0a 20 20 20 20 67 6c 61 6e 63 65 2e 61 70  );.    glance.ap
2200: 70 65 6e 64 28 65 6c 65 6d 65 6e 74 28 22 73 70  pend(element("sp
2210: 61 6e 22 2c 20 63 61 72 64 2e 63 6f 75 6e 74 20  an", card.count 
2220: 2b 20 22 20 22 20 2b 20 63 61 72 64 2e 74 69 74  + " " + card.tit
2230: 6c 65 2c 20 22 70 69 6c 6c 22 29 29 3b 0a 20 20  le, "pill"));.  
2240: 7d 0a 20 20 6d 65 73 73 61 67 65 2e 61 70 70 65  }.  message.appe
2250: 6e 64 28 67 6c 61 6e 63 65 29 3b 0a 20 20 69 66  nd(glance);.  if
2260: 20 28 6d 69 6c 65 73 74 6f 6e 65 73 3f 2e 69 74   (milestones?.it
2270: 65 6d 73 3f 2e 6c 65 6e 67 74 68 29 20 7b 0a 20  ems?.length) {. 
2280: 20 20 20 63 6f 6e 73 74 20 72 6f 77 73 20 3d 20     const rows = 
2290: 65 6c 65 6d 65 6e 74 28 22 64 69 76 22 2c 20 6e  element("div", n
22a0: 75 6c 6c 2c 20 22 6d 73 22 29 3b 0a 20 20 20 20  ull, "ms");.    
22b0: 66 6f 72 20 28 63 6f 6e 73 74 20 69 74 65 6d 20  for (const item 
22c0: 6f 66 20 6d 69 6c 65 73 74 6f 6e 65 73 2e 69 74  of milestones.it
22d0: 65 6d 73 29 20 6d 69 6c 65 73 74 6f 6e 65 28 69  ems) milestone(i
22e0: 74 65 6d 2c 20 72 6f 77 73 29 3b 0a 20 20 20 20  tem, rows);.    
22f0: 6d 65 73 73 61 67 65 2e 61 70 70 65 6e 64 28 72  message.append(r
2300: 6f 77 73 29 3b 0a 20 20 20 20 61 73 4f 66 28 6d  ows);.    asOf(m
2310: 69 6c 65 73 74 6f 6e 65 73 2c 20 6d 65 73 73 61  ilestones, messa
2320: 67 65 29 3b 0a 20 20 7d 20 65 6c 73 65 20 7b 0a  ge);.  } else {.
2330: 20 20 20 20 61 73 4f 66 28 73 75 6d 6d 61 72 79      asOf(summary
2340: 2c 20 6d 65 73 73 61 67 65 29 3b 0a 20 20 7d 0a  , message);.  }.
2350: 20 20 69 66 20 28 73 75 6d 6d 61 72 79 2e 73 74    if (summary.st
2360: 6f 70 70 65 64 29 20 6d 65 73 73 61 67 65 2e 61  opped) message.a
2370: 70 70 65 6e 64 28 65 6c 65 6d 65 6e 74 28 22 70  ppend(element("p
2380: 22 2c 20 73 75 6d 6d 61 72 79 2e 73 74 6f 70 70  ", summary.stopp
2390: 65 64 29 29 3b 0a 20 20 63 6f 6e 76 65 72 73 61  ed));.  conversa
23a0: 74 69 6f 6e 2e 61 70 70 65 6e 64 28 6d 65 73 73  tion.append(mess
23b0: 61 67 65 29 3b 0a 7d 0a 0a 66 75 6e 63 74 69 6f  age);.}..functio
23c0: 6e 20 69 74 65 6d 4c 69 6e 6b 28 69 74 65 6d 29  n itemLink(item)
23d0: 20 7b 0a 20 20 2f 2a 20 45 76 65 72 79 20 6d 6f   {.  /* Every mo
23e0: 76 65 20 74 6f 20 61 20 72 65 63 6f 72 64 20 67  ve to a record g
23f0: 6f 65 73 20 74 68 72 6f 75 67 68 20 6f 70 65 6e  oes through open
2400: 3a 20 53 74 6f 6e 65 20 73 77 69 74 63 68 65 73  : Stone switches
2410: 20 74 6f 20 74 68 61 74 20 63 6c 6f 6e 65 27 73   to that clone's
2420: 20 76 69 65 77 2e 20 2a 2f 0a 20 20 63 6f 6e 73   view. */.  cons
2430: 74 20 6c 69 6e 6b 20 3d 20 65 6c 65 6d 65 6e 74  t link = element
2440: 28 22 62 75 74 74 6f 6e 22 2c 20 69 74 65 6d 2e  ("button", item.
2450: 74 69 74 6c 65 2c 20 22 69 74 65 6d 22 29 3b 0a  title, "item");.
2460: 20 20 6c 69 6e 6b 2e 74 79 70 65 20 3d 20 22 62    link.type = "b
2470: 75 74 74 6f 6e 22 3b 0a 20 20 6c 69 6e 6b 2e 61  utton";.  link.a
2480: 64 64 45 76 65 6e 74 4c 69 73 74 65 6e 65 72 28  ddEventListener(
2490: 22 63 6c 69 63 6b 22 2c 20 28 29 20 3d 3e 20 74  "click", () => t
24a0: 6f 6f 6c 28 22 6f 70 65 6e 22 2c 20 7b 70 72 6f  ool("open", {pro
24b0: 6a 65 63 74 3a 69 74 65 6d 2e 70 72 6f 6a 65 63  ject:item.projec
24c0: 74 2c 20 68 61 73 68 3a 69 74 65 6d 2e 68 61 73  t, hash:item.has
24d0: 68 7d 29 29 3b 0a 20 20 72 65 74 75 72 6e 20 6c  h}));.  return l
24e0: 69 6e 6b 3b 0a 7d 0a 0a 66 75 6e 63 74 69 6f 6e  ink;.}..function
24f0: 20 64 72 61 77 43 61 72 64 28 61 6e 73 77 65 72   drawCard(answer
2500: 29 20 7b 0a 20 20 63 6f 6e 76 65 72 73 61 74 69  ) {.  conversati
2510: 6f 6e 2e 72 65 70 6c 61 63 65 43 68 69 6c 64 72  on.replaceChildr
2520: 65 6e 28 29 3b 0a 20 20 63 6f 6e 73 74 20 6d 65  en();.  const me
2530: 73 73 61 67 65 20 3d 20 65 6c 65 6d 65 6e 74 28  ssage = element(
2540: 22 73 65 63 74 69 6f 6e 22 2c 20 6e 75 6c 6c 2c  "section", null,
2550: 20 22 6d 73 67 22 29 3b 0a 20 20 6d 65 73 73 61   "msg");.  messa
2560: 67 65 2e 61 70 70 65 6e 64 28 65 6c 65 6d 65 6e  ge.append(elemen
2570: 74 28 22 68 31 22 2c 20 61 6e 73 77 65 72 2e 74  t("h1", answer.t
2580: 69 74 6c 65 20 7c 7c 20 61 6e 73 77 65 72 2e 6e  itle || answer.n
2590: 61 6d 65 20 7c 7c 20 22 54 6f 70 69 63 22 29 29  ame || "Topic"))
25a0: 3b 0a 20 20 69 66 20 28 61 6e 73 77 65 72 2e 73  ;.  if (answer.s
25b0: 61 79 29 20 6d 65 73 73 61 67 65 2e 61 70 70 65  ay) message.appe
25c0: 6e 64 28 65 6c 65 6d 65 6e 74 28 22 70 22 2c 20  nd(element("p", 
25d0: 61 6e 73 77 65 72 2e 73 61 79 29 29 3b 0a 20 20  answer.say));.  
25e0: 69 66 20 28 61 6e 73 77 65 72 2e 73 74 6f 70 70  if (answer.stopp
25f0: 65 64 29 20 6d 65 73 73 61 67 65 2e 61 70 70 65  ed) message.appe
2600: 6e 64 28 65 6c 65 6d 65 6e 74 28 22 70 22 2c 20  nd(element("p", 
2610: 61 6e 73 77 65 72 2e 73 74 6f 70 70 65 64 29 29  answer.stopped))
2620: 3b 0a 20 20 63 6f 6e 73 74 20 69 74 65 6d 73 20  ;.  const items 
2630: 3d 20 65 6c 65 6d 65 6e 74 28 22 75 6c 22 2c 20  = element("ul", 
2640: 6e 75 6c 6c 2c 20 22 69 74 65 6d 73 22 29 3b 0a  null, "items");.
2650: 20 20 66 6f 72 20 28 63 6f 6e 73 74 20 69 74 65    for (const ite
2660: 6d 20 6f 66 20 61 6e 73 77 65 72 2e 69 74 65 6d  m of answer.item
2670: 73 20 7c 7c 20 5b 5d 29 20 7b 0a 20 20 20 20 63  s || []) {.    c
2680: 6f 6e 73 74 20 72 6f 77 20 3d 20 65 6c 65 6d 65  onst row = eleme
2690: 6e 74 28 22 6c 69 22 29 3b 0a 20 20 20 20 72 6f  nt("li");.    ro
26a0: 77 2e 61 70 70 65 6e 64 28 69 74 65 6d 4c 69 6e  w.append(itemLin
26b0: 6b 28 69 74 65 6d 29 29 3b 0a 20 20 20 20 63 6f  k(item));.    co
26c0: 6e 73 74 20 64 65 74 61 69 6c 73 20 3d 20 5b 69  nst details = [i
26d0: 74 65 6d 2e 70 72 6f 6a 65 63 74 2c 20 69 74 65  tem.project, ite
26e0: 6d 2e 74 69 6d 65 2c 20 69 74 65 6d 2e 64 75 65  m.time, item.due
26f0: 5d 2e 66 69 6c 74 65 72 28 42 6f 6f 6c 65 61 6e  ].filter(Boolean
2700: 29 3b 0a 20 20 20 20 72 6f 77 2e 61 70 70 65 6e  );.    row.appen
2710: 64 28 65 6c 65 6d 65 6e 74 28 22 73 6d 61 6c 6c  d(element("small
2720: 22 2c 20 64 65 74 61 69 6c 73 2e 6a 6f 69 6e 28  ", details.join(
2730: 22 20 c2 b7 20 22 29 2c 20 22 6d 65 74 61 22 29  " · "), "meta")
2740: 29 3b 0a 20 20 20 20 69 74 65 6d 73 2e 61 70 70  );.    items.app
2750: 65 6e 64 28 72 6f 77 29 3b 0a 20 20 7d 0a 20 20  end(row);.  }.  
2760: 6d 65 73 73 61 67 65 2e 61 70 70 65 6e 64 28 69  message.append(i
2770: 74 65 6d 73 29 3b 0a 20 20 61 73 4f 66 28 61 6e  tems);.  asOf(an
2780: 73 77 65 72 2c 20 6d 65 73 73 61 67 65 29 3b 0a  swer, message);.
2790: 20 20 63 6f 6e 76 65 72 73 61 74 69 6f 6e 2e 61    conversation.a
27a0: 70 70 65 6e 64 28 6d 65 73 73 61 67 65 29 3b 0a  ppend(message);.
27b0: 7d 0a 0a 66 75 6e 63 74 69 6f 6e 20 64 72 61 77  }..function draw
27c0: 54 6f 70 69 63 73 28 29 20 7b 0a 20 20 74 6f 70  Topics() {.  top
27d0: 69 63 73 2e 72 65 70 6c 61 63 65 43 68 69 6c 64  ics.replaceChild
27e0: 72 65 6e 28 29 3b 0a 20 20 63 6f 6e 73 74 20 61  ren();.  const a
27f0: 6c 6c 20 3d 20 65 6c 65 6d 65 6e 74 28 22 61 22  ll = element("a"
2800: 2c 20 22 45 76 65 72 79 74 68 69 6e 67 22 29 3b  , "Everything");
2810: 0a 20 20 61 6c 6c 2e 68 72 65 66 20 3d 20 22 23  .  all.href = "#
2820: 22 3b 0a 20 20 74 6f 70 69 63 73 2e 61 70 70 65  ";.  topics.appe
2830: 6e 64 28 61 6c 6c 29 3b 0a 20 20 66 6f 72 20 28  nd(all);.  for (
2840: 63 6f 6e 73 74 20 63 61 72 64 20 6f 66 20 63 61  const card of ca
2850: 72 64 73 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74  rds) {.    const
2860: 20 6c 69 6e 6b 20 3d 20 65 6c 65 6d 65 6e 74 28   link = element(
2870: 22 61 22 2c 20 63 61 72 64 2e 74 69 74 6c 65 20  "a", card.title 
2880: 2b 20 22 20 c2 b7 20 22 20 2b 20 63 61 72 64 2e  + " · " + card.
2890: 63 6f 75 6e 74 29 3b 0a 20 20 20 20 6c 69 6e 6b  count);.    link
28a0: 2e 68 72 65 66 20 3d 20 22 23 74 6f 70 69 63 3d  .href = "#topic=
28b0: 22 20 2b 20 65 6e 63 6f 64 65 55 52 49 43 6f 6d  " + encodeURICom
28c0: 70 6f 6e 65 6e 74 28 63 61 72 64 2e 6e 61 6d 65  ponent(card.name
28d0: 29 3b 0a 20 20 20 20 74 6f 70 69 63 73 2e 61 70  );.    topics.ap
28e0: 70 65 6e 64 28 6c 69 6e 6b 29 3b 0a 20 20 7d 0a  pend(link);.  }.
28f0: 7d 0a 0a 66 75 6e 63 74 69 6f 6e 20 73 65 6c 65  }..function sele
2900: 63 74 65 64 54 6f 70 69 63 28 29 20 7b 0a 20 20  ctedTopic() {.  
2910: 63 6f 6e 73 74 20 66 72 61 67 6d 65 6e 74 20 3d  const fragment =
2920: 20 6c 6f 63 61 74 69 6f 6e 2e 68 61 73 68 2e 73   location.hash.s
2930: 6c 69 63 65 28 31 29 3b 0a 20 20 72 65 74 75 72  lice(1);.  retur
2940: 6e 20 66 72 61 67 6d 65 6e 74 2e 73 74 61 72 74  n fragment.start
2950: 73 57 69 74 68 28 22 74 6f 70 69 63 3d 22 29 20  sWith("topic=") 
2960: 3f 20 64 65 63 6f 64 65 55 52 49 43 6f 6d 70 6f  ? decodeURICompo
2970: 6e 65 6e 74 28 66 72 61 67 6d 65 6e 74 2e 73 6c  nent(fragment.sl
2980: 69 63 65 28 36 29 29 20 3a 20 6e 75 6c 6c 3b 0a  ice(6)) : null;.
2990: 7d 0a 0a 6c 65 74 20 73 75 6d 6d 61 72 79 3b 0a  }..let summary;.
29a0: 6c 65 74 20 6d 69 6c 65 73 74 6f 6e 65 73 3b 0a  let milestones;.
29b0: 61 73 79 6e 63 20 66 75 6e 63 74 69 6f 6e 20 73  async function s
29c0: 68 6f 77 53 65 6c 65 63 74 69 6f 6e 28 29 20 7b  howSelection() {
29d0: 0a 20 20 6d 65 6e 75 2e 63 68 65 63 6b 65 64 20  .  menu.checked 
29e0: 3d 20 66 61 6c 73 65 3b 0a 20 20 63 6f 6e 73 74  = false;.  const
29f0: 20 6e 61 6d 65 20 3d 20 73 65 6c 65 63 74 65 64   name = selected
2a00: 54 6f 70 69 63 28 29 3b 0a 20 20 66 6f 72 20 28  Topic();.  for (
2a10: 63 6f 6e 73 74 20 6c 69 6e 6b 20 6f 66 20 74 6f  const link of to
2a20: 70 69 63 73 2e 71 75 65 72 79 53 65 6c 65 63 74  pics.querySelect
2a30: 6f 72 41 6c 6c 28 22 61 22 29 29 20 7b 0a 20 20  orAll("a")) {.  
2a40: 20 20 69 66 20 28 6c 69 6e 6b 2e 68 61 73 68 20    if (link.hash 
2a50: 3d 3d 3d 20 6c 6f 63 61 74 69 6f 6e 2e 68 61 73  === location.has
2a60: 68 20 7c 7c 20 28 21 6e 61 6d 65 20 26 26 20 6c  h || (!name && l
2a70: 69 6e 6b 2e 68 61 73 68 20 3d 3d 3d 20 22 22 29  ink.hash === "")
2a80: 29 20 6c 69 6e 6b 2e 73 65 74 41 74 74 72 69 62  ) link.setAttrib
2a90: 75 74 65 28 22 61 72 69 61 2d 63 75 72 72 65 6e  ute("aria-curren
2aa0: 74 22 2c 20 22 70 61 67 65 22 29 3b 0a 20 20 20  t", "page");.   
2ab0: 20 65 6c 73 65 20 6c 69 6e 6b 2e 72 65 6d 6f 76   else link.remov
2ac0: 65 41 74 74 72 69 62 75 74 65 28 22 61 72 69 61  eAttribute("aria
2ad0: 2d 63 75 72 72 65 6e 74 22 29 3b 0a 20 20 7d 0a  -current");.  }.
2ae0: 20 20 69 66 20 28 21 6e 61 6d 65 29 20 72 65 74    if (!name) ret
2af0: 75 72 6e 20 64 72 61 77 47 72 65 65 74 69 6e 67  urn drawGreeting
2b00: 28 73 75 6d 6d 61 72 79 2c 20 6d 69 6c 65 73 74  (summary, milest
2b10: 6f 6e 65 73 29 3b 0a 20 20 74 72 79 20 7b 0a 20  ones);.  try {. 
2b20: 20 20 20 64 72 61 77 43 61 72 64 28 61 77 61 69     drawCard(awai
2b30: 74 20 74 6f 6f 6c 28 22 63 61 72 64 22 2c 20 7b  t tool("card", {
2b40: 6e 61 6d 65 7d 29 29 3b 0a 20 20 7d 20 63 61 74  name}));.  } cat
2b50: 63 68 20 28 65 72 72 6f 72 29 20 7b 0a 20 20 20  ch (error) {.   
2b60: 20 63 6f 6e 76 65 72 73 61 74 69 6f 6e 2e 72 65   conversation.re
2b70: 70 6c 61 63 65 43 68 69 6c 64 72 65 6e 28 65 6c  placeChildren(el
2b80: 65 6d 65 6e 74 28 22 70 22 2c 20 65 72 72 6f 72  ement("p", error
2b90: 2e 6d 65 73 73 61 67 65 29 29 3b 0a 20 20 7d 0a  .message));.  }.
2ba0: 7d 0a 0a 61 73 79 6e 63 20 66 75 6e 63 74 69 6f  }..async functio
2bb0: 6e 20 73 74 61 72 74 28 29 20 7b 0a 20 20 74 72  n start() {.  tr
2bc0: 79 20 7b 0a 20 20 20 20 73 75 6d 6d 61 72 79 20  y {.    summary 
2bd0: 3d 20 61 77 61 69 74 20 74 6f 6f 6c 28 22 63 61  = await tool("ca
2be0: 72 64 73 22 2c 20 7b 66 6f 72 3a 76 69 65 77 65  rds", {for:viewe
2bf0: 72 7d 29 3b 0a 20 20 20 20 63 61 72 64 73 20 3d  r});.    cards =
2c00: 20 73 75 6d 6d 61 72 79 2e 63 61 72 64 73 20 7c   summary.cards |
2c10: 7c 20 5b 5d 3b 0a 20 20 20 20 64 72 61 77 54 6f  | [];.    drawTo
2c20: 70 69 63 73 28 29 3b 0a 20 20 20 20 2f 2a 20 4d  pics();.    /* M
2c30: 69 6c 65 73 74 6f 6e 65 73 20 61 72 65 20 74 68  ilestones are th
2c40: 65 20 69 74 65 6d 73 20 74 68 61 74 20 63 61 72  e items that car
2c50: 72 79 20 61 20 64 75 65 20 64 61 74 65 2c 20 66  ry a due date, f
2c60: 72 6f 6d 20 61 6e 79 20 63 61 72 64 2e 20 2a 2f  rom any card. */
2c70: 0a 20 20 20 20 63 6f 6e 73 74 20 61 6e 73 77 65  .    const answe
2c80: 72 73 20 3d 20 61 77 61 69 74 20 50 72 6f 6d 69  rs = await Promi
2c90: 73 65 2e 61 6c 6c 28 63 61 72 64 73 2e 66 69 6c  se.all(cards.fil
2ca0: 74 65 72 28 63 61 72 64 20 3d 3e 20 63 61 72 64  ter(card => card
2cb0: 2e 63 6f 75 6e 74 20 3e 20 30 29 2e 6d 61 70 28  .count > 0).map(
2cc0: 63 61 72 64 20 3d 3e 20 74 6f 6f 6c 28 22 63 61  card => tool("ca
2cd0: 72 64 22 2c 20 7b 6e 61 6d 65 3a 63 61 72 64 2e  rd", {name:card.
2ce0: 6e 61 6d 65 7d 29 29 29 3b 0a 20 20 20 20 63 6f  name})));.    co
2cf0: 6e 73 74 20 64 75 65 20 3d 20 61 6e 73 77 65 72  nst due = answer
2d00: 73 2e 66 6c 61 74 4d 61 70 28 61 6e 73 77 65 72  s.flatMap(answer
2d10: 20 3d 3e 20 28 61 6e 73 77 65 72 2e 69 74 65 6d   => (answer.item
2d20: 73 20 7c 7c 20 5b 5d 29 2e 66 69 6c 74 65 72 28  s || []).filter(
2d30: 69 74 65 6d 20 3d 3e 20 69 74 65 6d 2e 64 75 65  item => item.due
2d40: 29 29 3b 0a 20 20 20 20 6d 69 6c 65 73 74 6f 6e  ));.    mileston
2d50: 65 73 20 3d 20 64 75 65 2e 6c 65 6e 67 74 68 20  es = due.length 
2d60: 3f 20 7b 69 74 65 6d 73 3a 64 75 65 2c 20 61 73  ? {items:due, as
2d70: 5f 6f 66 3a 73 75 6d 6d 61 72 79 2e 61 73 5f 6f  _of:summary.as_o
2d80: 66 7d 20 3a 20 6e 75 6c 6c 3b 0a 20 20 20 20 61  f} : null;.    a
2d90: 77 61 69 74 20 73 68 6f 77 53 65 6c 65 63 74 69  wait showSelecti
2da0: 6f 6e 28 29 3b 0a 20 20 7d 20 63 61 74 63 68 20  on();.  } catch 
2db0: 28 65 72 72 6f 72 29 20 7b 0a 20 20 20 20 63 6f  (error) {.    co
2dc0: 6e 76 65 72 73 61 74 69 6f 6e 2e 72 65 70 6c 61  nversation.repla
2dd0: 63 65 43 68 69 6c 64 72 65 6e 28 65 6c 65 6d 65  ceChildren(eleme
2de0: 6e 74 28 22 70 22 2c 20 65 72 72 6f 72 2e 6d 65  nt("p", error.me
2df0: 73 73 61 67 65 29 29 3b 0a 20 20 7d 0a 7d 0a 0a  ssage));.  }.}..
2e00: 77 69 6e 64 6f 77 2e 61 64 64 45 76 65 6e 74 4c  window.addEventL
2e10: 69 73 74 65 6e 65 72 28 22 68 61 73 68 63 68 61  istener("hashcha
2e20: 6e 67 65 22 2c 20 73 68 6f 77 53 65 6c 65 63 74  nge", showSelect
2e30: 69 6f 6e 29 3b 0a 73 74 61 72 74 28 29 3b 0a 00  ion);.start();..
2e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
30f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
31f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
32f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
33f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................