coauthored 1.0.0 → 1.0.1
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.
- package/dist/web/assets/{Film-Dq8Xxn7U.css → Film-BkhZFxG9.css} +1 -1
- package/dist/web/assets/{app-DEQgytaq.js → app-Dw1a5h5V.js} +2 -2
- package/dist/web/assets/{chunk-Ds4joAI5.js → chunk-D6HyoJCB.js} +2 -2
- package/dist/web/assets/{chunk-BmDwUWlX.js → chunk-DrEayQLY.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:Archivo;src:url(/assets/Archivo-VF-BohoA-Sn.woff2)format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:block}@font-face{font-family:Martian;src:url(/assets/MartianMono-VF-CmJ1nXx9.woff2)format("woff2");font-weight:100 800;font-stretch:75% 112.5%;font-display:block}@font-face{font-family:Dela;src:url(/assets/DelaGothicOne-subset-CpoJGhTq.woff2)format("woff2");font-display:block}.film{--fg:#16161a;--bg:#f4f1ea;--chrome-h:76px;position:fixed;inset:0}.film .chrome{z-index:3;padding:max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));color:var(--fg);pointer-events:none;position:absolute;top:0;left:0;right:0}.film .bars{gap:5px;height:4px;display:flex}.film .bar{opacity:1;background:currentColor;border-radius:2px;flex:1;height:100%;position:relative;overflow:hidden}.film .bar:before{content:"";background:var(--bg);opacity:.72;position:absolute;inset:0}.film .bar__fill{transform-origin:0;background:currentColor;position:absolute;inset:0;transform:scaleX(0)}.film .bar[data-state=done] .bar__fill{transform:scaleX(1)}.film .bar[data-state=wait] .bar__fill{animation:1s steps(2,jump-none) infinite film-wait}@keyframes film-wait{0%{opacity:1}to{opacity:.45}}.film .chrome__row{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.film .f-brand{letter-spacing:.02em;font-family:Archivo;font-size:22px;font-weight:900;font-stretch:125%;line-height:1}.film .f-brand b{margin-left:.4em;font-weight:800;font-stretch:100%}.film .chrome__ctl{pointer-events:auto;gap:8px;display:flex}.film .f-icon-btn{width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;place-items:center;padding:0;display:grid}.film .ic{width:16px;height:16px;display:block;position:relative}.film .ic--pause:before,.film .ic--pause:after{content:"";background:currentColor;width:5px;position:absolute;top:1px;bottom:1px}.film .ic--pause:before{left:2px}.film .ic--pause:after{right:2px}.film .ic--play:before{content:"";border:7px solid #0000;border-left:12px solid;border-right-width:0;position:absolute;top:1px;left:3px}.film .ic--sound:before{content:"";background:currentColor;width:5px;height:6px;position:absolute;top:5px;left:0}.film .ic--sound:after{content:"";border:7px solid #0000;border-left-width:0;border-right:8px solid;position:absolute;top:1px;left:3px}.film .ic--mute:before{content:"";background:currentColor;width:5px;height:6px;position:absolute;top:5px;left:0}.film .ic--mute:after{content:"";opacity:.35;border:7px solid #0000;border-left-width:0;border-right:8px solid;position:absolute;top:1px;left:3px}.film .f-icon-btn[aria-pressed=false] .ic--sound{opacity:.4}.film .ic--left:before,.film .ic--right:before{content:"";border:0 solid;border-width:0 0 3px 3px;position:absolute;inset:3px;transform:rotate(45deg)}.film .ic--right:before{transform:rotate(-135deg)}.film .stage{left:0;right:0;top:var(--chrome-h);touch-action:manipulation;-webkit-user-select:none;user-select:none;position:absolute;bottom:0;overflow:hidden}.film #frame{transform-origin:0 0;position:absolute;top:0;left:0;overflow:hidden}.film #frame svg{display:block;position:absolute;top:0;left:0}.film .f-grain{pointer-events:none;mix-blend-mode:overlay;opacity:.6;background-size:256px 256px;position:absolute;inset:0}.film .guesses[hidden],.film .paused-badge[hidden],.film .start[hidden],.film .f-error[hidden]{display:none}.film .guess{cursor:pointer;color:#0000;background:0 0;border:0;border-radius:14px;margin:0;padding:0;font-size:1px;position:absolute}.film .guess:hover{background:#f4f1ea0f}.film .guess:disabled{display:none}.film .actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex;position:absolute;top:0;left:0}.film .act{color:#f4f1ea;cursor:pointer;background:0 0;border:2px solid #f4f1ea;border-radius:999px;min-height:48px;padding:10px 24px;font-family:Archivo;font-size:18px;font-weight:800}.film .act--primary{color:#16161a;background:#ff48b0;border-color:#ff48b0}.film .act:hover{color:#0b0c1c;background:#f4f1ea}.film .tapfx{opacity:0;pointer-events:none;border:3px solid #f4f1ea;border-radius:50%;width:64px;height:64px;margin:-32px 0 0 -32px;position:absolute;top:0;left:0;box-shadow:0 0 0 3px #16161a99}.film .paused-badge{color:#f4f1ea;pointer-events:none;background:#16161ad1;border-radius:999px;padding:6px 14px;font-family:Martian;font-size:14px;font-weight:700;position:absolute;top:14px;left:50%;transform:translate(-50%)}.film .edge{z-index:3;color:#f4f1ea;cursor:pointer;opacity:0;background:#16161a8c;border:0;border-radius:999px;place-items:center;width:44px;height:44px;margin-top:-22px;transition:opacity .2s;display:none;position:absolute;top:50%}.film .edge--prev{left:10px}.film .edge--next{right:10px}@media (hover:hover) and (pointer:fine){.film .edge{display:grid}.film #app:hover .edge{opacity:.55}.film .edge:hover{opacity:1}}.film .edge:focus-visible{opacity:1}.film .edge:disabled{visibility:hidden}.film button:focus-visible{outline-offset:3px;outline:3px solid #ffe800;box-shadow:0 0 0 6px #16161a}.film .guess:focus-visible{outline-offset:6px}.film #slide-title:focus{outline:none}.film .start{z-index:5;color:#f4f1ea;text-align:center;background:#16161a;flex-direction:column;justify-content:center;align-items:center;gap:28px;padding:24px;display:flex;position:fixed;inset:0}.film .start h1{letter-spacing:-.02em;margin:0;font-family:Archivo;font-size:clamp(32px,7vw,84px);font-weight:900;font-stretch:125%;line-height:1}.film .start .cur{vertical-align:-.08em;background:#ff48b0;width:.42em;height:.82em;margin-left:.12em;display:inline-block}.film .start-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.film .start button{color:#f4f1ea;cursor:pointer;background:0 0;border:2px solid #f4f1ea;border-radius:999px;min-width:44px;min-height:44px;padding:10px 20px;font-family:Archivo;font-size:18px;font-weight:800}.film .start button.primary{color:#16161a;background:#ff48b0;border-color:#ff48b0}.film .start button[aria-busy=true]{opacity:.6}.film .start .hint{opacity:.75;max-width:36em;margin:0;font-family:Martian;font-size:15px}.film .f-error{z-index:6;text-align:center;color:#16161a;font-family:Archivo;font-size:20px;font-weight:800;position:fixed;inset:auto 0 40%}.film .sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}svg.measure{visibility:hidden;position:absolute;top:0;left:-9999px}.film .ax,svg.measure .ax{font-family:Archivo;font-weight:900;font-stretch:125%}.film .ax112,svg.measure .ax112{font-family:Archivo;font-weight:900;font-stretch:112.5%}.film .ab,svg.measure .ab{font-family:Archivo;font-weight:800;font-stretch:100%}.film .am,svg.measure .am{font-family:Archivo;font-weight:700;font-stretch:100%}.film .mono,svg.measure .mono{font-family:Martian;font-weight:500}.film .monob,svg.measure .monob{font-family:Martian;font-weight:700}.film .dela,svg.measure .dela{font-family:Dela}@media (width<=600px){.film .f-brand{font-size:14px}.film .bars{gap:3px;height:3px}.film .chrome__row{margin-top:8px}}@media (prefers-reduced-motion:reduce){.film .edge{transition:none}.film .bar[data-state=wait] .bar__fill{animation:none}}.film.capture .start{display:none}.film .start{justify-content:flex-start;padding-top:max(40px,8vh);overflow-y:auto}.film .seal{box-sizing:border-box;text-align:left;border:2px solid #f4f1ea59;border-radius:18px;width:100%;max-width:40em;padding:16px 20px;font-family:Archivo}.film .seal[hidden]{display:none}.film .seal__row{cursor:pointer;align-items:center;gap:12px;display:flex}.film .seal__row input{accent-color:#ff48b0;flex:none;width:24px;height:24px}.film .seal__title{font-size:20px;font-weight:800}.film .seal__detail{opacity:.85;margin:8px 0 0;font-size:16px}.film .seal__detail--small{opacity:.7;font-size:14px}.film .seal__list{opacity:.9;margin:8px 0 0;padding-left:1.1em;font-size:15px;line-height:1.45}.film .seal__actions{flex-wrap:wrap;align-items:center;gap:14px;margin-top:12px;display:flex}.film .seal__row--small{font-size:15px;font-weight:700}.film .seal__btn{min-height:44px!important;padding:8px 16px!important;font-size:16px!important}.film .seal__status{margin:10px 0 0;font-family:Martian;font-size:14px;font-weight:700}.film .seal__sample{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.film .seal__sample[hidden]{display:none}.film .seal__chip{color:#16161a;background:#ffe800;border-radius:999px;padding:6px 12px;font-family:Martian;font-size:14px;font-weight:700}.film input:focus-visible{outline-offset:3px;outline:3px solid #ffe800}.film .drawer{box-sizing:border-box;color:#16161a;background:#f4f1ea;border-radius:22px;width:min(880px,100% - 32px);max-height:78%;padding:24px 28px;font-family:Archivo;position:absolute;top:4%;left:50%;overflow-y:auto;transform:translate(-50%);box-shadow:10px 10px #ff48b0}.film .drawer[hidden]{display:none}.film .drawer__title{letter-spacing:-.02em;margin:0;font-size:40px;font-weight:900;font-stretch:125%}.film .drawer__intro{margin:8px 0 0;font-size:22px;font-weight:700;line-height:1.3}.film .drawer__chips{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin:18px 0 0;padding:0;list-style:none;display:grid}.film .chip{color:#f4f1ea;background:#16161a;border-radius:16px;flex-direction:column;justify-content:center;min-height:92px;display:flex}.film .chip__reveal{all:unset;box-sizing:border-box;cursor:pointer;border-radius:16px;flex-direction:column;gap:8px;width:100%;min-height:92px;padding:14px 16px;display:flex}.film .chip__reveal:focus-visible{outline-offset:3px;outline:3px solid #ffe800}.film .chip__blur{filter:blur(5px);background:repeating-linear-gradient(90deg,#f4f1ea8c 0 22px,#f4f1ea40 22px 30px);border-radius:8px;width:80%;height:26px;display:block}.film .chip__meta{opacity:.85;font-family:Martian;font-size:15px;font-weight:700}.film .chip--open{gap:6px;padding:14px 16px}.film .chip--kept{color:#16161a;background:#ff48b0}.film .chip__term{overflow-wrap:anywhere;font-size:24px;font-weight:900;font-stretch:112.5%}.film .chip__state{font-size:16px;font-weight:800}.film .chip__btns{gap:8px;margin-top:4px;display:flex}.film .chip__btns button,.film .drawer__actions button,.film .ws__close{min-height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;padding:8px 18px;font-family:Archivo;font-size:17px;font-weight:800}.film .chip__hide{color:#16161a!important;background:#ffe800!important;border-color:#ffe800!important}.film .drawer__actions{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}.film .drawer__done{color:#f4f1ea!important;background:#16161a!important;border-color:#16161a!important}.film .drawer__footer{opacity:.75;margin:14px 0 0;font-family:Martian;font-size:14px;font-weight:500}@media (width<=600px){.film .drawer{max-height:84%;padding:16px;top:2%}.film .drawer__title{font-size:28px}.film .drawer__intro{font-size:16px}.film .drawer__chips{grid-template-columns:1fr 1fr;gap:8px}.film .chip,.film .chip__reveal{min-height:76px}.film .chip__reveal{padding:10px 12px}.film .chip__blur{height:20px}.film .chip__meta{font-size:14px}.film .chip__term{font-size:18px}.film .chip__btns button{padding:6px 12px;font-size:15px}}.film .act[hidden]{display:none}.film .wordstats{box-sizing:border-box;color:#16161a;background:#f4f1ea;border-radius:18px;width:min(420px,100% - 32px);padding:16px 18px;font-family:Archivo;position:absolute;bottom:84px;right:16px;box-shadow:8px 8px #ffe800}.film .wordstats[hidden]{display:none}.film .ws__title{margin:0 0 8px;font-size:20px;font-weight:900}.film .ws__list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.film .ws__list label,.film .ws__swear{cursor:pointer;align-items:center;gap:10px;min-height:36px;font-size:16px;font-weight:700;display:flex}.film .ws__list b{margin-left:auto;font-family:Martian;font-size:15px}.film .ws__list input,.film .ws__swear input{accent-color:#ff48b0;width:22px;height:22px}.film .ws__swear{border-top:2px solid #16161a26;margin-top:10px;padding-top:10px}.film .ws__close{margin-top:12px}.film .ws__caption{margin:10px 0 0;font-size:15px;font-weight:600;line-height:1.35}.film{z-index:1;background:var(--bg);color:var(--fg);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;overflow:hidden}.film,.film *,.film :before,.film :after{box-sizing:content-box}.film .seal,.film .drawer,.film .wordstats,.film .chip__reveal{box-sizing:border-box}.film .seal__list{list-style:outside}.film .drawer__chips,.film .ws__list{list-style:none}.film h1,.film h2,.film p{font-family:inherit}.film .f-pill{height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;align-items:center;padding:0 16px;font-family:Archivo;font-size:15px;font-weight:800;display:inline-flex}.film .f-pill[hidden]{display:none}@media (width<=600px){.film .f-pill{padding:0 12px;font-size:13px}}
|
|
1
|
+
@font-face{font-family:Archivo;src:url(/assets/Archivo-VF-BohoA-Sn.woff2)format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:block}@font-face{font-family:Martian;src:url(/assets/MartianMono-VF-CmJ1nXx9.woff2)format("woff2");font-weight:100 800;font-stretch:75% 112.5%;font-display:block}@font-face{font-family:Dela;src:url(/assets/DelaGothicOne-subset-CpoJGhTq.woff2)format("woff2");font-display:block}.film{--fg:#16161a;--bg:#f4f1ea;--chrome-h:76px;position:fixed;inset:0}.film .chrome{z-index:3;padding:max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));color:var(--fg);pointer-events:none;position:absolute;top:0;left:0;right:0}.film .bars{gap:5px;height:4px;display:flex}.film .bar{opacity:1;background:currentColor;border-radius:2px;flex:1;height:100%;position:relative;overflow:hidden}.film .bar:before{content:"";background:var(--bg);opacity:.72;position:absolute;inset:0}.film .bar__fill{transform-origin:0;background:currentColor;position:absolute;inset:0;transform:scaleX(0)}.film .bar[data-state=done] .bar__fill{transform:scaleX(1)}.film .bar[data-state=wait] .bar__fill{animation:1s steps(2,jump-none) infinite film-wait}@keyframes film-wait{0%{opacity:1}to{opacity:.45}}.film .chrome__row{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.film .f-brand{letter-spacing:.02em;font-family:Archivo;font-size:22px;font-weight:900;font-stretch:125%;line-height:1}.film .f-brand b{margin-left:.4em;font-weight:800;font-stretch:100%}.film .chrome__ctl{pointer-events:auto;gap:8px;display:flex}.film .f-icon-btn{width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;place-items:center;padding:0;display:grid}.film .ic{width:16px;height:16px;display:block;position:relative}.film .ic--pause:before,.film .ic--pause:after{content:"";background:currentColor;width:5px;position:absolute;top:1px;bottom:1px}.film .ic--pause:before{left:2px}.film .ic--pause:after{right:2px}.film .ic--play:before{content:"";border:7px solid #0000;border-left:12px solid;border-right-width:0;position:absolute;top:1px;left:3px}.film .ic--sound:before{content:"";background:currentColor;width:5px;height:6px;position:absolute;top:5px;left:0}.film .ic--sound:after{content:"";border:7px solid #0000;border-left-width:0;border-right:8px solid;position:absolute;top:1px;left:3px}.film .ic--mute:before{content:"";background:currentColor;width:5px;height:6px;position:absolute;top:5px;left:0}.film .ic--mute:after{content:"";opacity:.35;border:7px solid #0000;border-left-width:0;border-right:8px solid;position:absolute;top:1px;left:3px}.film .f-icon-btn[aria-pressed=false] .ic--sound{opacity:.4}.film .ic--left:before,.film .ic--right:before{content:"";border:0 solid;border-width:0 0 3px 3px;position:absolute;inset:3px;transform:rotate(45deg)}.film .ic--right:before{transform:rotate(-135deg)}.film .stage{left:0;right:0;top:var(--chrome-h);touch-action:manipulation;-webkit-user-select:none;user-select:none;position:absolute;bottom:0;overflow:hidden}.film #frame{transform-origin:0 0;position:absolute;top:0;left:0;overflow:hidden}.film #frame svg{display:block;position:absolute;top:0;left:0}.film .f-grain{pointer-events:none;mix-blend-mode:overlay;opacity:.6;background-size:256px 256px;position:absolute;inset:0}.film .guesses[hidden],.film .paused-badge[hidden],.film .start[hidden],.film .f-error[hidden]{display:none}.film .guess{cursor:pointer;color:#0000;background:0 0;border:0;border-radius:14px;margin:0;padding:0;font-size:1px;position:absolute}.film .guess:hover{background:#f4f1ea0f}.film .guess:disabled{display:none}.film .actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex;position:absolute;top:0;left:0}.film .act{color:#f4f1ea;cursor:pointer;background:0 0;border:2px solid #f4f1ea;border-radius:999px;min-height:48px;padding:10px 24px;font-family:Archivo;font-size:18px;font-weight:800}.film .act--primary{color:#16161a;background:#ff48b0;border-color:#ff48b0}.film .act:hover{color:#0b0c1c;background:#f4f1ea}.film .tapfx{opacity:0;pointer-events:none;border:3px solid #f4f1ea;border-radius:50%;width:64px;height:64px;margin:-32px 0 0 -32px;position:absolute;top:0;left:0;box-shadow:0 0 0 3px #16161a99}.film .paused-badge{color:#f4f1ea;pointer-events:none;background:#16161ad1;border-radius:999px;padding:6px 14px;font-family:Martian;font-size:14px;font-weight:700;position:absolute;top:14px;left:50%;transform:translate(-50%)}.film .edge{z-index:3;color:#f4f1ea;cursor:pointer;opacity:0;background:#16161a8c;border:0;border-radius:999px;place-items:center;width:44px;height:44px;margin-top:-22px;transition:opacity .2s;display:none;position:absolute;top:50%}.film .edge--prev{left:10px}.film .edge--next{right:10px}@media (hover:hover) and (pointer:fine){.film .edge{display:grid}.film #app:hover .edge{opacity:.55}.film .edge:hover{opacity:1}}.film .edge:focus-visible{opacity:1}.film .edge:disabled{visibility:hidden}.film button:focus-visible{outline-offset:3px;outline:3px solid #ffe800;box-shadow:0 0 0 6px #16161a}.film .guess:focus-visible{outline-offset:6px}.film #slide-title:focus{outline:none}.film .start{z-index:5;color:#f4f1ea;text-align:center;background:#16161a;flex-direction:column;justify-content:center;align-items:center;gap:28px;padding:24px;display:flex;position:fixed;inset:0}.film .start h1{letter-spacing:-.02em;margin:0;font-family:Archivo;font-size:clamp(32px,7vw,84px);font-weight:900;font-stretch:125%;line-height:1}.film .start .cur{vertical-align:-.08em;background:#ff48b0;width:.42em;height:.82em;margin-left:.12em;display:inline-block}.film .start-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.film .start button{color:#f4f1ea;cursor:pointer;background:0 0;border:2px solid #f4f1ea;border-radius:999px;min-width:44px;min-height:44px;padding:10px 20px;font-family:Archivo;font-size:18px;font-weight:800}.film .start button.primary{color:#16161a;background:#ff48b0;border-color:#ff48b0}.film .start button[aria-busy=true]{opacity:.6}.film .start .hint{opacity:.75;max-width:36em;margin:0;font-family:Martian;font-size:15px}.film .f-error{z-index:6;text-align:center;color:#16161a;font-family:Archivo;font-size:20px;font-weight:800;position:fixed;inset:auto 0 40%}.film .sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}svg.measure{visibility:hidden;position:absolute;top:0;left:-9999px}.film .ax,svg.measure .ax{font-family:Archivo;font-weight:900;font-stretch:125%}.film .ax112,svg.measure .ax112{font-family:Archivo;font-weight:900;font-stretch:112.5%}.film .ab,svg.measure .ab{font-family:Archivo;font-weight:800;font-stretch:100%}.film .am,svg.measure .am{font-family:Archivo;font-weight:700;font-stretch:100%}.film .mono,svg.measure .mono{font-family:Martian;font-weight:500}.film .monob,svg.measure .monob{font-family:Martian;font-weight:700}.film .dela,svg.measure .dela{font-family:Dela}@media (width<=600px){.film .f-brand{font-size:14px}.film .bars{gap:3px;height:3px}.film .chrome__row{margin-top:8px}}@media (prefers-reduced-motion:reduce){.film .edge{transition:none}.film .bar[data-state=wait] .bar__fill{animation:none}}.film.capture .start{display:none}.film .start{justify-content:flex-start;padding-top:max(40px,8vh);overflow-y:auto}.film .seal{box-sizing:border-box;text-align:left;border:2px solid #f4f1ea59;border-radius:18px;width:100%;max-width:40em;padding:16px 20px;font-family:Archivo}.film .seal[hidden]{display:none}.film .seal__row{cursor:pointer;align-items:center;gap:12px;display:flex}.film .seal__row input{accent-color:#ff48b0;flex:none;width:24px;height:24px}.film .seal__title{font-size:20px;font-weight:800}.film .seal__detail{opacity:.85;margin:8px 0 0;font-size:16px}.film .seal__detail--small{opacity:.7;font-size:14px}.film .seal__list{opacity:.9;margin:8px 0 0;padding-left:1.1em;font-size:15px;line-height:1.45}.film .seal__actions{flex-wrap:wrap;align-items:center;gap:14px;margin-top:12px;display:flex}.film .seal__row--small{font-size:15px;font-weight:700}.film .seal__btn{min-height:44px!important;padding:8px 16px!important;font-size:16px!important}.film .seal__status{margin:10px 0 0;font-family:Martian;font-size:14px;font-weight:700}.film .seal__sample{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.film .seal__sample[hidden]{display:none}.film .seal__chip{color:#16161a;background:#ffe800;border-radius:999px;padding:6px 12px;font-family:Martian;font-size:14px;font-weight:700}.film input:focus-visible{outline-offset:3px;outline:3px solid #ffe800}.film .drawer{box-sizing:border-box;color:#16161a;background:#f4f1ea;border-radius:22px;width:min(880px,100% - 32px);max-height:78%;padding:24px 28px;font-family:Archivo;position:absolute;top:4%;left:50%;overflow-y:auto;transform:translate(-50%);box-shadow:10px 10px #ff48b0}.film .drawer[hidden]{display:none}.film .drawer__title{letter-spacing:-.02em;margin:0;font-size:40px;font-weight:900;font-stretch:125%}.film .drawer__intro{margin:8px 0 0;font-size:22px;font-weight:700;line-height:1.3}.film .drawer__chips{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin:18px 0 0;padding:0;list-style:none;display:grid}.film .chip{color:#f4f1ea;background:#16161a;border-radius:16px;flex-direction:column;justify-content:center;min-height:92px;display:flex}.film .chip__reveal{all:unset;box-sizing:border-box;cursor:pointer;border-radius:16px;flex-direction:column;gap:8px;width:100%;min-height:92px;padding:14px 16px;display:flex}.film .chip__reveal:focus-visible{outline-offset:3px;outline:3px solid #ffe800}.film .chip__blur{filter:blur(5px);background:repeating-linear-gradient(90deg,#f4f1ea8c 0 22px,#f4f1ea40 22px 30px);border-radius:8px;width:80%;height:26px;display:block}.film .chip__meta{opacity:.85;font-family:Martian;font-size:15px;font-weight:700}.film .chip--open{gap:6px;padding:14px 16px}.film .chip--kept{color:#16161a;background:#ff48b0}.film .chip__term{overflow-wrap:anywhere;font-size:24px;font-weight:900;font-stretch:112.5%}.film .chip__state{font-size:16px;font-weight:800}.film .chip__btns{gap:8px;margin-top:4px;display:flex}.film .chip__btns button,.film .drawer__actions button,.film .ws__close{min-height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;padding:8px 18px;font-family:Archivo;font-size:17px;font-weight:800}.film .chip__hide{color:#16161a!important;background:#ffe800!important;border-color:#ffe800!important}.film .drawer__actions{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}.film .drawer__done{color:#f4f1ea!important;background:#16161a!important;border-color:#16161a!important}.film .drawer__footer{opacity:.75;margin:14px 0 0;font-family:Martian;font-size:14px;font-weight:500}@media (width<=600px){.film .drawer{max-height:84%;padding:16px;top:2%}.film .drawer__title{font-size:28px}.film .drawer__intro{font-size:16px}.film .drawer__chips{grid-template-columns:1fr 1fr;gap:8px}.film .chip,.film .chip__reveal{min-height:76px}.film .chip__reveal{padding:10px 12px}.film .chip__blur{height:20px}.film .chip__meta{font-size:14px}.film .chip__term{font-size:18px}.film .chip__btns button{padding:6px 12px;font-size:15px}}.film .act[hidden]{display:none}.film .wordstats{box-sizing:border-box;color:#16161a;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable;background:#f4f1ea;border-radius:18px;width:min(420px,100% - 32px);max-height:calc(100% - 100px);padding:16px 18px;font-family:Archivo;position:absolute;bottom:84px;right:16px;overflow-y:auto;box-shadow:8px 8px #ffe800}.film .wordstats[hidden]{display:none}.film .ws__title{margin:0 0 8px;font-size:20px;font-weight:900}.film .ws__list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.film .ws__list label,.film .ws__swear{cursor:pointer;align-items:center;gap:10px;min-height:36px;font-size:16px;font-weight:700;display:flex}.film .ws__list b{margin-left:auto;font-family:Martian;font-size:15px}.film .ws__list input,.film .ws__swear input{accent-color:#ff48b0;width:22px;height:22px}.film .ws__swear{border-top:2px solid #16161a26;margin-top:10px;padding-top:10px}.film .ws__close{margin-top:12px}.film .ws__caption{margin:10px 0 0;font-size:15px;font-weight:600;line-height:1.35}.film{z-index:1;background:var(--bg);color:var(--fg);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;overflow:hidden}.film,.film *,.film :before,.film :after{box-sizing:content-box}.film .seal,.film .drawer,.film .wordstats,.film .chip__reveal{box-sizing:border-box}.film .seal__list{list-style:outside}.film .drawer__chips,.film .ws__list{list-style:none}.film h1,.film h2,.film p{font-family:inherit}.film .f-pill{height:44px;color:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;align-items:center;padding:0 16px;font-family:Archivo;font-size:15px;font-weight:800;display:inline-flex}.film .f-pill[hidden]{display:none}@media (width<=600px){.film .f-pill{padding:0 12px;font-size:13px}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunk-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunk-D6HyoJCB.js","assets/Film-BkhZFxG9.css","assets/chunk-DrEayQLY.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function ee(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var te=ee.prototype=new b;te.constructor=ee,_(te,y.prototype),te.isPureReactComponent=!0;var ne=Array.isArray;function re(){}var x={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function S(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ae(e,t){return S(e.type,t,e.props)}function oe(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function se(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ce=/\/+/g;function le(e,t){return typeof e==`object`&&e&&e.key!=null?se(``+e.key):t.toString(36)}function ue(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(re,re):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function de(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,de(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+le(e,0):a,ne(o)?(i=``,c!=null&&(i=c.replace(ce,`$&/`)+`/`),de(o,r,i,``,function(e){return e})):o!=null&&(oe(o)&&(o=ae(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ce,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ne(e))for(var u=0;u<e.length;u++)a=e[u],s=l+le(a,u),c+=de(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+le(a,u++),c+=de(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return de(ue(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function fe(e,t,n){if(e==null)return e;var r=[],i=0;return de(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function pe(e){if(e._status===-1){var t=(0,e._result)();t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,t.status===void 0&&(t.status=`fulfilled`,t.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,t.status===void 0&&(t.status=`rejected`,t.reason=n))}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var me=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function he(e){var t=x.T,n={};n.types=t===null?null:t.types,x.T=n;try{var r=e(),i=x.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(re,me)}catch(e){me(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),x.T=t}}function ge(e){var t=x.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else he(ge.bind(null,e))}var _e={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=_e,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=ee,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},e.addTransitionType=ge,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ie.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return S(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ie.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return S(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=oe,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:pe}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=he,e.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},e.use=function(e){return x.H.use(e)},e.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},e.useCallback=function(e,t){return x.H.useCallback(e,t)},e.useContext=function(e){return x.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return x.H.useEffect(e,t)},e.useEffectEvent=function(e){return x.H.useEffectEvent(e)},e.useId=function(){return x.H.useId()},e.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return x.H.useMemo(e,t)},e.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},e.useRef=function(e){return x.H.useRef(e)},e.useState=function(e){return x.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return x.H.useTransition()},e.version=`19.3.1`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,ae());else{var t=n(l);t!==null&&ce(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,x=-1;function ie(){return g?!0:!(e.unstable_now()-x<re)}function S(){if(g=!1,te){var t=e.unstable_now();x=t;var i=!0;try{e:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{t:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break t}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(ee,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():te=!1}}}var ae;if(typeof y==`function`)ae=function(){y(S)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=S,ae=function(){se.postMessage(null)}}else ae=function(){_(S,0)};function ce(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,ce(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,ae()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),o=e(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(s(559))}}var ee=null,te=null;function ne(e,t,n){return e===n||e===t&&(ee=e,!0)}function re(e,t,n){return e===n?(te=e,!1):e===t&&(te!==null&&(ee=e),!0)}function x(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ie(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var S=Object.assign,ae=Symbol.for(`react.element`),oe=Symbol.for(`react.transitional.element`),se=Symbol.for(`react.portal`),ce=Symbol.for(`react.fragment`),le=Symbol.for(`react.strict_mode`),ue=Symbol.for(`react.profiler`),de=Symbol.for(`react.consumer`),fe=Symbol.for(`react.context`),pe=Symbol.for(`react.forward_ref`),me=Symbol.for(`react.suspense`),he=Symbol.for(`react.suspense_list`),ge=Symbol.for(`react.memo`),_e=Symbol.for(`react.lazy`),ve=Symbol.for(`react.activity`),ye=Symbol.for(`react.legacy_hidden`),be=Symbol.for(`react.memo_cache_sentinel`),xe=Symbol.for(`react.view_transition`),Se=Symbol.for(`react.recoverable`),Ce=Symbol.iterator;function we(e){return typeof e!=`object`||!e?null:(e=Ce&&e[Ce]||e[`@@iterator`],typeof e==`function`?e:null)}var Te=Symbol.for(`react.client.reference`);function Ee(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Te?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ce:return`Fragment`;case ue:return`Profiler`;case le:return`StrictMode`;case me:return`Suspense`;case he:return`SuspenseList`;case ve:return`Activity`;case xe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case se:return`Portal`;case fe:return e.displayName||`Context`;case de:return(e._context.displayName||`Context`)+`.Consumer`;case pe:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ge:return t=e.displayName||null,t===null?Ee(e.type)||`Memo`:t;case _e:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}var De=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe={pending:!1,data:null,method:null,action:null},ke=[],T=-1;function E(e){return{current:e}}function Ae(e){0>T||(e.current=ke[T],ke[T]=null,T--)}function D(e,t){T++,ke[T]=e.current,e.current=t}var O=E(null),je=E(null),k=E(null),Me=E(null);function Ne(e,t){switch(D(k,t),D(je,e),D(O,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ae(O),D(O,e)}function Pe(){Ae(O),Ae(je),Ae(k)}function Fe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,D(Me,e)),t=O.current;var n=dp(t,e.type);t!==n&&(D(je,e),D(O,n))}function Ie(e){je.current===e&&(Ae(O),Ae(je)),Me.current===e&&(Ae(Me),sh._currentValue=Oe)}var Le,A;function Re(e){if(Le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||``,A=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Le+e+A}var ze=!1;function Be(e,t){if(!e||ze)return``;ze=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -35,4 +35,4 @@ Type COUNT to include them, or press Enter to skip.`}],"content-terminal-result"
|
|
|
35
35
|
<p class="drawer__footer">${j(u(`content-review-footer`))}</p>`}e.addEventListener(`click`,async t=>{let l=t.target.closest(`button`);if(l&&!c){c=!0;try{if(l.dataset.i){let t=l.dataset.i,{candidate:r}=await n.reveal(t);o.set(t,r.term),f(),e.querySelector(`[data-hide="${CSS.escape(t)}"]`)?.focus()}else if(l.dataset.keep)await n.keep(l.dataset.keep),s.set(l.dataset.keep,`kept`),i(u(`content-review-kept`)),f(),p();else if(l.dataset.hide){let e=l.dataset.hide;await n.hide(e),s.set(e,`hidden`),o.delete(e);let{candidates:t}=await n.list(),r=new Set(t.map(e=>e.id));for(let e of a)r.has(e.id)||(s.set(e.id,`hidden`),o.delete(e.id));i(u(`content-review-hidden`)),f(),p()}else if(l.dataset.hideall){await n.hideAll();for(let e of a)s.set(e.id,`hidden`);o.clear(),i(u(`content-review-hidden`)),f(),e.querySelector(`[data-done]`)?.focus()}else if(l.dataset.done){let e=await n.finalize();o.clear(),r(e)}}finally{c=!1}}});function p(){(e.querySelector(`.chip__reveal`)||e.querySelector(`[data-done]`))?.focus()}function m(){a=[],o.clear(),s.clear(),e.innerHTML=``}return{reset:m,load:d,focusFirst:()=>(e.querySelector(`.chip__reveal`)||e.querySelector(`[data-done]`))?.focus(),state:()=>({revealed:o.size,kept:[...s.values()].filter(e=>e===`kept`).length,hidden:[...s.values()].filter(e=>e===`hidden`).length})}}function Pt(e,{stats:t,onChange:n,labels:r,caption:i=()=>null}){let a=!1,o=new Set;function s(){let n=t(a);for(let e of[...o])n.some(t=>t.id===e)||o.delete(e);let s=t(!0).some(e=>e.sensitiveByDefault);e.innerHTML=`<p class="ws__title">${j(r.title)}</p><ul class="ws__list">${n.map(e=>`<li><label><input type="checkbox" data-id="${j(e.id)}" ${o.has(e.id)?`checked`:``} ${!o.has(e.id)&&o.size>=2?`disabled`:``}><span>${j(e.label)}</span><b>${j(e.value)}</b></label></li>`).join(``)}</ul>
|
|
36
36
|
${(()=>{let e=i([...o],a);return e?`<p class="ws__caption" data-caption="1">${j(e)}</p>`:``})()}
|
|
37
37
|
${s?`<label class="ws__swear"><input type="checkbox" data-swear="1" ${a?`checked`:``}><span>${j(r.swear)}</span></label>`:``}
|
|
38
|
-
<button type="button" class="ws__close" data-close="1">${j(r.close)}</button>`}return e.addEventListener(`change`,r=>{let i=r.target;i.dataset.swear?a=i.checked:i.dataset.id&&(i.checked?o.add(i.dataset.id):o.delete(i.dataset.id)),s(),n(t(a).filter(e=>o.has(e.id))),e.querySelector(i.dataset.swear?`[data-swear]`:`[data-id="${CSS.escape(i.dataset.id||``)}"]`)?.focus()}),s(),{render:s}}var Ft=(e,t={},n={})=>jt(Ot,e,t,n),It=(e,t={},n={})=>jt(kt,e,t,n),Lt={"night-owl":`Night-Owl`,polyglot:`Polyglot`,starter:`Starter`,specialist:`Specialist`,partial:`Partial`},Rt=[{id:`night-owl`,label:`Night-Owl Power User`},{id:`polyglot`,label:`Polyglot Switcher`},{id:`starter`,label:`Starter`},{id:`specialist`,label:`Quiet Specialist`},{id:`partial`,label:`Partial Metadata`}],zt=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Bt=e(((e,t)=>{t.exports=zt()})),M=Bt();function Vt(e){let t={play:(0,M.jsx)(`path`,{d:`M8 5.5v13l11-6.5z`,className:`icon-fill`}),pause:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`rect`,{x:`6.5`,y:`5.5`,width:`4`,height:`13`,rx:`1`,className:`icon-fill`}),(0,M.jsx)(`rect`,{x:`13.5`,y:`5.5`,width:`4`,height:`13`,rx:`1`,className:`icon-fill`})]}),"sound-on":(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`path`,{d:`M4 9.5h3.5L12 5.5v13l-4.5-4H4z`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M15.5 9a4.5 4.5 0 0 1 0 6M18 6.5a8 8 0 0 1 0 11`,className:`icon-stroke`})]}),"sound-off":(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`path`,{d:`M4 9.5h3.5L12 5.5v13l-4.5-4H4z`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M16 9.5l5 5M21 9.5l-5 5`,className:`icon-stroke`})]}),left:(0,M.jsx)(`path`,{d:`M14.5 5.5L8 12l6.5 6.5`,className:`icon-stroke`}),right:(0,M.jsx)(`path`,{d:`M9.5 5.5L16 12l-6.5 6.5`,className:`icon-stroke`}),close:(0,M.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`,className:`icon-stroke`}),lock:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`rect`,{x:`5.5`,y:`10.5`,width:`13`,height:`9`,rx:`2`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5`,className:`icon-stroke`})]})}[e.name];return(0,M.jsx)(`svg`,{className:`icon`,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:t})}function Ht(){return(0,M.jsxs)(`span`,{className:`brand`,children:[(0,M.jsxs)(`svg`,{className:`brand__mark`,viewBox:`0 0 32 32`,"aria-hidden":`true`,children:[(0,M.jsx)(`rect`,{width:`32`,height:`32`,rx:`8`,className:`brand__bg`}),(0,M.jsx)(`path`,{d:`M22 10.5a8 8 0 1 0 0 11`,className:`brand__c`}),(0,M.jsx)(`circle`,{cx:`23`,cy:`16`,r:`2.6`,className:`brand__dot`})]}),`coauthored`]})}function Ut(e){return(0,M.jsxs)(`div`,{className:`world world--checkin notice`,"data-world":`checkin`,children:[(0,M.jsx)(Gt,{}),(0,M.jsx)(`header`,{className:`checkin__top`,children:(0,M.jsx)(Ht,{})}),(0,M.jsxs)(`main`,{className:`notice__body`,children:[(0,M.jsx)(`h1`,{className:`title title--xl rise`,children:e.title}),e.detail?(0,M.jsx)(`p`,{className:`line rise rise--2`,children:e.detail}):null,e.busy?(0,M.jsx)(`span`,{className:`loader rise rise--3`,"aria-label":`Working`,role:`status`}):null,e.children,e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta rise rise--3`,onClick:e.onDemo,children:[`Preview the demo `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null]})]})}function Wt(e){return(0,M.jsxs)(`nav`,{className:`demo-switch`,"aria-label":`Demo profiles`,children:[(0,M.jsx)(`span`,{className:`demo-switch__tag`,children:`Demo`}),e.demo.profiles.map(t=>(0,M.jsx)(`button`,{type:`button`,className:`demo-switch__btn`,"aria-pressed":e.demo.current===t.id,title:t.label,onClick:()=>e.demo.onSelect(t.id),children:Lt[t.id]??t.label},t.id))]})}function Gt(){return(0,M.jsxs)(`svg`,{className:`grain`,"aria-hidden":`true`,focusable:`false`,children:[(0,M.jsxs)(`filter`,{id:`grain-f`,children:[(0,M.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.85`,numOctaves:`2`,stitchTiles:`stitch`}),(0,M.jsx)(`feColorMatrix`,{type:`saturate`,values:`0`})]}),(0,M.jsx)(`rect`,{width:`100%`,height:`100%`,filter:`url(#grain-f)`})]})}function Kt(e){let t=e?.lexicon;if(!Array.isArray(t))return[];let n=t;return[`please`,`thanks`,`why`,`agent-agree`].map(e=>n.find(t=>t&&t.id===e)).filter(e=>!!e&&typeof e.total==`number`&&e.total>0&&Array.isArray(e.topTerms)).map(e=>{let t=[...e.topTerms].sort((e,t)=>t.count-e.count)[0];return`“${String(t?.display||t?.term||e.id).replace(/'/g,`’`)}” ×${e.total.toLocaleString(`en-US`)}`})}var qt={"ui.contentSealShown":!0,"ui.isDemo":!1,"ui.phase2Enabled":!0,"cfact.on":!0},Jt=e=>It(e,qt)??``;function Yt(e){let{plan:t}=e,[n,r]=(0,l.useState)(()=>new Set(t.candidates.map(e=>e.candidateId))),[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),d=!!e.contentUi&&!e.isDemo,f=t=>{n.size!==0&&e.onStart([...n],i,{count:t,presentation:t&&o})},p=t.candidates.length===0,m=t.candidates.filter(e=>e.hasCredentialRiskWarning&&n.has(e.candidateId)),h=e=>r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,M.jsxs)(`div`,{className:`world world--checkin checkin`,"data-world":`checkin`,children:[(0,M.jsx)(Gt,{}),(0,M.jsx)(`header`,{className:`checkin__top`,children:(0,M.jsx)(Ht,{})}),(0,M.jsxs)(`main`,{className:`checkin__body`,children:[(0,M.jsx)(`h1`,{className:`checkin__title rise rise--2`,children:p?(0,M.jsx)(M.Fragment,{children:`No coding receipts on this machine. Yet.`}):(0,M.jsxs)(M.Fragment,{children:[`Your `,t.year,` coding receipts are `,(0,M.jsx)(`em`,{children:`ready.`})]})}),p?(0,M.jsx)(`p`,{className:`line rise rise--3`,children:`We looked in the usual places for Claude Code, Codex, Gemini CLI, Cursor and friends. Nothing yet.`}):(0,M.jsx)(`ul`,{className:`sources rise rise--3`,"aria-label":`Sources to read`,children:t.candidates.map(e=>{let t=n.has(e.candidateId);return(0,M.jsx)(`li`,{children:(0,M.jsxs)(`button`,{type:`button`,className:`source`,"aria-pressed":t,onClick:()=>h(e.candidateId),title:e.notes.join(` · `)||void 0,children:[(0,M.jsx)(`span`,{className:`source__check`,"aria-hidden":`true`}),e.displayName,(0,M.jsxs)(`span`,{className:`source__n`,children:[`· `,St(e.fileCount),` files`]})]})},e.candidateId)})}),m.length?(0,M.jsxs)(`p`,{className:`fine rise rise--4`,children:[`Heads up: `,m.map(e=>e.displayName).join(`, `),` keeps a database that may also hold credentials. We read a private copy, skip those columns entirely, and delete the copy after.`]}):null,p?null:(0,M.jsxs)(`form`,{className:`go rise rise--5`,onSubmit:e=>{e.preventDefault(),d||f(!1)},children:[(0,M.jsx)(`input`,{className:`field`,type:`text`,maxLength:24,autoComplete:`off`,spellCheck:!1,placeholder:`Your name or @handle (optional)`,"aria-label":`Your name or handle, optional`,value:i,onChange:e=>a(e.target.value)}),d?(0,M.jsxs)(`div`,{className:`go__pair`,role:`group`,"aria-label":Jt(`content-consent-title`),children:[(0,M.jsx)(`button`,{type:`button`,className:`cta cta--xl`,disabled:n.size===0,onClick:()=>f(!0),children:Jt(`content-consent-start-with`)}),(0,M.jsx)(`button`,{type:`button`,className:`cta cta--xl`,disabled:n.size===0,onClick:()=>f(!1),children:Jt(`content-consent-start-without`)})]}):(0,M.jsxs)(`button`,{type:`submit`,className:`cta cta--xl`,disabled:n.size===0,children:[`Unwrap my `,t.year,` `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]})]}),!p&&d?(0,M.jsxs)(`div`,{className:`go__words rise rise--5`,children:[(0,M.jsx)(`p`,{className:`go__lines`,children:Jt(`content-consent-detail`)}),(0,M.jsxs)(`p`,{className:`go__links`,children:[e.sample?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>void e.sample().then(e=>u(Kt(e)),()=>u([])),children:Jt(`content-consent-try`)}):null,(0,M.jsxs)(`button`,{type:`button`,className:`link`,"aria-pressed":o,onClick:()=>s(e=>!e),title:Jt(`content-presentation-detail`),children:[Jt(`content-presentation-toggle`),o?`: on`:``]})]}),c&&c.length?(0,M.jsx)(`ul`,{className:`go__sample`,"aria-label":Jt(`content-consent-try`),children:c.map(e=>(0,M.jsx)(`li`,{className:`tag`,children:e},e))}):null]}):null,p&&e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta cta--xl rise rise--5`,onClick:e.onDemo,children:[`Try the demo `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null,p&&!e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta cta--xl rise rise--5`,onClick:()=>e.onStart([],i,{count:!1,presentation:!1}),children:[`Unwrap anyway `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null,e.error?(0,M.jsx)(`p`,{className:`error rise`,role:`alert`,children:e.error}):null]})]})}function Xt(e){let t=e.progress,n=e.plan.candidates.find(e=>e.harness===t.currentHarness)?.displayName??t.currentHarness,r=t.filesTotal>0?Math.min(1,t.filesDone/t.filesTotal):0;return(0,M.jsxs)(`div`,{className:`world world--checkin scanning`,"data-world":`checkin`,"data-done":e.done?`true`:`false`,children:[(0,M.jsx)(Gt,{}),(0,M.jsxs)(`header`,{className:`checkin__top`,children:[(0,M.jsx)(`span`,{className:`brand-text`,children:`coauthored`}),e.isDemo?(0,M.jsx)(`span`,{className:`tag tag--demo`,children:`Demo`}):null]}),(0,M.jsxs)(`main`,{className:`scanning__body`,"aria-live":`polite`,children:[e.done?(0,M.jsx)(`h1`,{className:`checkin__title rise`,children:`Got it. Here we go.`}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`p`,{className:`kicker`,children:t.label?It(`content-scan-wait`,{"cfact.on":!0}):n?`Reading ${n}…`:`Warming up…`}),(0,M.jsxs)(`p`,{className:`scanning__count`,children:[(0,M.jsx)(`span`,{className:`scanning__n`,children:St(t.filesDone)}),(0,M.jsxs)(`span`,{className:`scanning__of`,children:[`/`,St(t.filesTotal),` files`]})]}),(0,M.jsx)(`div`,{className:`scanning__bar`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r*100),children:(0,M.jsxs)(`svg`,{viewBox:`0 0 1000 8`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,M.jsx)(`rect`,{x:`0`,y:`0`,width:`1000`,height:`8`,rx:`4`,className:`scanning__track`}),(0,M.jsx)(`rect`,{x:`0`,y:`0`,width:Math.max(8,r*1e3),height:`8`,rx:`4`,className:`scanning__fill`})]})})]}),(0,M.jsxs)(`div`,{className:`scanning__actions`,children:[e.canSkip&&!e.done?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:e.onSkip,children:`Skip`}):null,e.onCancel&&!e.done?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:e.onCancel,children:`Cancel`}):null]})]})]})}var Zt={observed:`●`,estimated:`◐`,interpretation:`✦`},N={observed:`Observed: counted straight from your logs`,estimated:`Estimated: derived with a stated method`,interpretation:`Interpretation: our read of the numbers`},Qt={"Local project grouping":`Per-project counts, keyed by a one-way local hash`,"Project grouping identifiers":`Project names, paths and raw grouping identifiers`},$t=e=>Qt[e]??e;function en(e){let{report:t,open:n}=e,r=t.receipt,i=(0,l.useRef)(null),[a,o]=(0,l.useState)(!1),[s,c]=(0,l.useState)(``),u=(0,l.useMemo)(()=>JSON.stringify(t,null,2),[t]),d=(0,l.useMemo)(()=>{let t=new Map((e.plan?.candidates??[]).map((e,t)=>[e.candidateId,t]));return[...r.sources].sort((e,n)=>(t.get(e.candidateId)??99)-(t.get(n.candidateId)??99))},[r.sources,e.plan]),f=r.sources.reduce((e,t)=>({files:e.files+t.filesSeen,lines:e.lines+t.linesSeen,bytes:e.bytes+t.bytesRead}),{files:0,lines:0,bytes:0});if((0,l.useEffect)(()=>{n&&i.current?.focus()},[n]),!n)return null;let p=async()=>{try{await navigator.clipboard.writeText(u),c(`Copied the full report JSON.`)}catch{c(`Clipboard is blocked here. Open the JSON and select it by hand.`)}};return(0,M.jsxs)(`div`,{className:`modal`,"data-own-keys":!0,children:[(0,M.jsx)(`button`,{type:`button`,className:`modal__scrim`,"aria-label":`Close the receipt`,tabIndex:-1,onClick:e.onClose}),(0,M.jsxs)(`div`,{className:`modal__panel`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`receipt-title`,tabIndex:-1,ref:i,onKeyDown:t=>{t.key===`Escape`&&(t.preventDefault(),e.onClose())},children:[(0,M.jsxs)(`header`,{className:`rcpt__head`,children:[(0,M.jsx)(`h2`,{id:`receipt-title`,children:`Privacy receipt`}),(0,M.jsx)(`button`,{type:`button`,className:`icon-btn`,onClick:e.onClose,"aria-label":`Close receipt`,children:(0,M.jsx)(Vt,{name:`close`})})]}),(0,M.jsxs)(`div`,{className:`rcpt__zero`,children:[(0,M.jsx)(`span`,{className:`rcpt__zero-n`,children:r.externalBytesSent}),(0,M.jsxs)(`span`,{children:[`bytes sent anywhere.`,(0,M.jsx)(`br`,{}),t.isDemo?`Demo: every recorder below is fictional.`:`This page only talks to the process on your own machine.`]})]}),(0,M.jsx)(`h3`,{children:`How to read the dots`}),(0,M.jsx)(`ul`,{className:`rcpt__legend`,children:[`observed`,`estimated`,`interpretation`].map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--${e}`,"aria-hidden":`true`,children:Zt[e]}),N[e]]},e))}),(0,M.jsx)(`h3`,{children:`What we read`}),(0,M.jsxs)(`ul`,{className:`rcpt__rows`,children:[d.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:e.displayName}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[St(e.filesOk),`/`,St(e.filesSeen),` files · `,St(e.linesSeen),` lines · `,wt(e.bytesRead),e.linesSkipped?` · ${St(e.linesSkipped)} skipped`:``,e.filesQuarantined?` · ${e.filesQuarantined} quarantined`:``,e.failureCodes.length?` · ${e.failureCodes.join(`, `)}`:``]})]},e.candidateId)),(0,M.jsxs)(`li`,{className:`rcpt__total`,children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:`Total`}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[St(f.files),` files · `,St(f.lines),` lines · `,wt(f.bytes)]})]})]}),(0,M.jsx)(`h3`,{children:`Time windows`}),(0,M.jsx)(`ul`,{className:`rcpt__rows`,children:t.capturedWindow.perHarness.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:e.displayName}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[Dt(e.startDate,e.endDate),` · `,St(e.sessions),` sessions`,e.likelyTruncated?` · trimmed by log retention`:``]})]},e.harness))}),(0,M.jsx)(`h3`,{children:`Kept`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:r.extractedFieldCategories.map($t).join(` · `)||`—`}),(0,M.jsx)(`h3`,{children:`Thrown away unread`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:r.discardedFieldCategories.map($t).join(` · `)||`—`}),r.absentCapabilities.length?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`h3`,{children:`Not recorded by your tools`}),(0,M.jsxs)(`p`,{className:`rcpt__p`,children:[r.absentCapabilities.join(` · `),`. Anything not logged is simply left out. Never a fake zero.`]})]}):null,(0,M.jsx)(`h3`,{children:`Methods`}),(0,M.jsxs)(`ul`,{className:`rcpt__methods`,children:[r.methods.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--${e.epistemic}`,"aria-label":e.epistemic,children:Zt[e.epistemic]}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:e.metric}),` `,e.formula]})]},e.metric)),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--estimated`,"aria-label":`estimated`,children:`◐`}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Active time`}),` union of activity with gaps under `,r.activeTimeGapMinutes,` min (5-min gap: `,St(t.totals.wallClockSensitivity5m),` min; 15-min gap:`,` `,St(t.totals.wallClockSensitivity15m),` min)`]})]})]}),t.scale.apiEquivalent.eligible?(0,M.jsx)(`p`,{className:`rcpt__p rcpt__fine`,children:t.scale.apiEquivalent.disclaimer}):null,t.scale.writtenAnchor?(0,M.jsx)(`p`,{className:`rcpt__p rcpt__fine`,children:t.scale.writtenAnchor.methodNote}):null,(0,M.jsx)(`h3`,{children:`The raw report`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:`This is the entire payload this page received. It’s yours.`}),(0,M.jsxs)(`div`,{className:`rcpt__actions`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a,onClick:()=>o(e=>!e),children:a?`Hide JSON`:`Show JSON · ${wt(new TextEncoder().encode(u).length)}`}),(0,M.jsx)(`button`,{type:`button`,className:`btn`,onClick:()=>void p(),children:`Copy JSON`}),(0,M.jsx)(`span`,{className:`rcpt__msg`,role:`status`,children:s})]}),a?(0,M.jsx)(`textarea`,{className:`rcpt__json`,readOnly:!0,value:u,rows:14,"aria-label":`Report JSON`,spellCheck:!1}):null,e.onShutdown?(0,M.jsxs)(`div`,{className:`rcpt__end`,children:[(0,M.jsx)(`p`,{className:`rcpt__p`,children:`Done? Shut down the local server. The in-memory report disappears with it.`}),(0,M.jsx)(`button`,{type:`button`,className:`btn btn--danger`,onClick:e.onShutdown,children:`Shut down local server`})]}):null,(0,M.jsxs)(`p`,{className:`rcpt__sig`,children:[t.docketNumber,` · `,t.registration,` · algorithm `,r.algorithmVersion]})]})]})}var tn=`(prefers-reduced-motion: reduce)`;function nn(){let[e,t]=(0,l.useState)(()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(tn).matches);return(0,l.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let e=window.matchMedia(tn),n=()=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}var rn=(0,l.createContext)({reduced:!1}),an=`modulepreload`,on=function(e){return`/`+e},sn={},cn={},ln=function(e){return e.pathname.endsWith(`.css`)},un=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},dn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=on(t,n);let r=s(t),i=ln(r);return un(sn,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?cn[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:an,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete cn[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(cn[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},fn=(0,l.lazy)(()=>dn(()=>import(`./chunk-Ds4joAI5.js`).then(e=>({default:e.Film})),__vite__mapDeps([0,1]))),pn=()=>void dn(()=>import(`./chunk-Ds4joAI5.js`),__vite__mapDeps([0,1])).catch(()=>void 0),mn={currentHarness:null,channelLabel:null,filesDone:0,filesTotal:0,eventsProcessed:0};function hn(e){let{source:t}=e,n=nn(),[r,i]=(0,l.useState)({k:`checkin`,error:null}),[a,o]=(0,l.useState)(mn),[s,c]=(0,l.useState)(!1),[u,d]=(0,l.useState)(!1),[f,p]=(0,l.useState)(!1),m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!s)return;let e=e=>{e.key===`Escape`&&c(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[s]);let h=(0,l.useCallback)(e=>i({k:`story`,report:e}),[]),g=async(e,r,a)=>{pn(),d(a.count&&a.presentation),o(mn),i({k:`scanning`,done:!1});try{let s=await t.run(e,r,o,a);m.current=s,i({k:`scanning`,done:!0}),window.setTimeout(()=>{m.current===s&&h(s)},n?350:900)}catch(e){let t=e instanceof Error&&e.message===`CANCELLED`?`Cancelled. Nothing was kept. Pick your sources and try again whenever.`:vt(e);i({k:`checkin`,error:t})}},_=t.close?async()=>{try{await t.close()}finally{c(!1),i({k:`closed`})}}:null;if(r.k===`checkin`)return(0,M.jsxs)(rn.Provider,{value:{reduced:n},children:[(0,M.jsx)(Yt,{plan:t.plan,isDemo:t.mode===`demo`,error:r.error,contentUi:!!t.contentUi,sample:t.sample,onStart:(e,t,n)=>void g(e,t,n),onDemo:e.onPreviewDemo}),e.demo?(0,M.jsx)(Wt,{demo:e.demo}):null]});if(r.k===`scanning`)return(0,M.jsx)(rn.Provider,{value:{reduced:n},children:(0,M.jsx)(Xt,{plan:t.plan,isDemo:t.mode===`demo`,progress:a,done:r.done,canSkip:r.done||t.skippable,onSkip:()=>{r.done&&m.current?h(m.current):t.skippable&&t.skip?.()},onCancel:t.cancel&&!r.done?()=>void t.cancel():void 0})});if(r.k===`closed`)return(0,M.jsx)(Ut,{title:`That’s a wrap.`,detail:`The local server shut down and the in-memory report is gone. You can close this tab. Anything you downloaded is yours to keep.`});let v=r.report;return(0,M.jsxs)(rn.Provider,{value:{reduced:n},children:[(0,M.jsx)(l.Suspense,{fallback:(0,M.jsx)(Ut,{title:`Got it. Here we go.`,busy:!0}),children:(0,M.jsx)(fn,{report:v,mode:t.mode===`local`?`live`:`demo`,presentation:u,content:t.content,overlay:s,onReceipt:()=>c(!0),onStateChange:e=>p(e.started&&!e.last)})}),e.demo&&!f?(0,M.jsx)(Wt,{demo:e.demo}):null,(0,M.jsx)(en,{report:v,plan:t.plan,open:s,onClose:()=>c(!1),onShutdown:_})]})}function gn(e,t){let n=t.trim()?tt(t,``,24):``;return n?{...e,investigatorLabel:n}:e}var _n=(0,l.lazy)(()=>dn(()=>import(`./chunk-BmDwUWlX.js`).then(e=>({default:e.DemoExperience})),__vite__mapDeps([2,0,1]))),vn=ft(),yn=null,bn=350,xn=e=>new Promise(t=>window.setTimeout(t,e));function Sn(e,t){let n=!1,r=t.plan;return{mode:t.mode,plan:r,skippable:!1,...t.contentUi?{content:{fetchJson:(t,n)=>e.contentJson(t,JSON.parse(n.body)),fetchReport:()=>e.report()}}:{},...t.contentUi?{contentUi:!0,sample:()=>e.contentSample()}:{},async run(i,a,o,s){if(n=!1,t.mode===`demo`&&t.demoReportReady){let t=r.candidates.reduce((e,t)=>e+t.fileCount,0);for(let e=0;e<=20&&!n;e++){let n=r.candidates[Math.min(r.candidates.length-1,Math.floor(e/21*r.candidates.length))];o({currentHarness:n?.harness??null,channelLabel:n?.channelLabel??null,filesDone:Math.round(t*e/20),filesTotal:t,eventsProcessed:e*211}),await xn(60)}return gn(await e.report(),a)}let c=t.mode===`local`&&t.contentUi&&s?.count===!0,l={planId:r.planId,candidateIds:i,countWords:c,...a.trim()?{investigatorInitials:a.trim()}:{}},u=await e.scan(l);for(;!n;){if(o(u.progress),u.state===`ready`)return e.report();if(u.state===`error`)throw new dt(u.errorCode??`SCAN_FAILED`,200);if(u.state===`cancelled`)throw Error(`CANCELLED`);await xn(bn),u=await e.status()}throw Error(`CANCELLED`)},async cancel(){n=!0,await e.cancel().catch(()=>void 0)},async close(){await e.close().catch(()=>void 0)}}}function Cn(){let[e,t]=(0,l.useState)({k:`connecting`});(0,l.useEffect)(()=>{let e=vn;e?(yn??=_t.open(e),yn.then(({api:e,session:n})=>t({k:`ready`,api:e,session:n})).catch(e=>t({k:`error`,message:`Couldn’t start a session.`,detail:vt(e)}))):t({k:`error`,message:`This page needs the one-time link from your terminal.`,detail:`For safety, coauthored only answers to the exact link it printed, and each link works once. Run npx coauthored again to get a fresh one.`})},[]);let n=(0,l.useMemo)(()=>e.k===`ready`?Sn(e.api,e.session):null,[e]);if(e.k===`connecting`)return(0,M.jsx)(Ut,{title:`Warming up…`,detail:`Saying hi to the local process. Nothing is being read yet.`,busy:!0});if(e.k===`error`)return(0,M.jsx)(Ut,{title:e.message,detail:e.detail,onDemo:()=>t({k:`demo`})});if(e.k===`demo`)return(0,M.jsx)(l.Suspense,{fallback:(0,M.jsx)(Ut,{title:`Loading the demo…`,detail:`Five fictional developers. Zero real data.`,busy:!0}),children:(0,M.jsx)(_n,{initialProfile:e.profile,fromLocal:e.fromLocal===!0})});let r=e.session,i=r.mode===`demo`?{profiles:Rt,current:r.demoProfileId??`night-owl`,onSelect:e=>t({k:`demo`,profile:e,fromLocal:!0})}:void 0;return(0,M.jsx)(hn,{source:n,demo:i,onPreviewDemo:()=>t({k:`demo`})})}var wn=document.getElementById(`root`);wn&&(0,u.createRoot)(wn).render((0,M.jsx)(l.StrictMode,{children:(0,M.jsx)(Cn,{})}));export{Rt as a,Nt as c,kt as d,Ot as f,n as g,f as h,Bt as i,Mt as l,ve as m,Wt as n,Ft as o,we as p,Ut as r,jt as s,dn as t,Pt as u};
|
|
38
|
+
<button type="button" class="ws__close" data-close="1">${j(r.close)}</button>`}return e.addEventListener(`change`,r=>{let i=r.target;i.dataset.swear?a=i.checked:i.dataset.id&&(i.checked?o.add(i.dataset.id):o.delete(i.dataset.id)),s(),n(t(a).filter(e=>o.has(e.id))),e.querySelector(i.dataset.swear?`[data-swear]`:`[data-id="${CSS.escape(i.dataset.id||``)}"]`)?.focus()}),s(),{render:s}}var Ft=(e,t={},n={})=>jt(Ot,e,t,n),It=(e,t={},n={})=>jt(kt,e,t,n),Lt={"night-owl":`Night-Owl`,polyglot:`Polyglot`,starter:`Starter`,specialist:`Specialist`,partial:`Partial`},Rt=[{id:`night-owl`,label:`Night-Owl Power User`},{id:`polyglot`,label:`Polyglot Switcher`},{id:`starter`,label:`Starter`},{id:`specialist`,label:`Quiet Specialist`},{id:`partial`,label:`Partial Metadata`}],zt=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Bt=e(((e,t)=>{t.exports=zt()})),M=Bt();function Vt(e){let t={play:(0,M.jsx)(`path`,{d:`M8 5.5v13l11-6.5z`,className:`icon-fill`}),pause:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`rect`,{x:`6.5`,y:`5.5`,width:`4`,height:`13`,rx:`1`,className:`icon-fill`}),(0,M.jsx)(`rect`,{x:`13.5`,y:`5.5`,width:`4`,height:`13`,rx:`1`,className:`icon-fill`})]}),"sound-on":(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`path`,{d:`M4 9.5h3.5L12 5.5v13l-4.5-4H4z`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M15.5 9a4.5 4.5 0 0 1 0 6M18 6.5a8 8 0 0 1 0 11`,className:`icon-stroke`})]}),"sound-off":(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`path`,{d:`M4 9.5h3.5L12 5.5v13l-4.5-4H4z`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M16 9.5l5 5M21 9.5l-5 5`,className:`icon-stroke`})]}),left:(0,M.jsx)(`path`,{d:`M14.5 5.5L8 12l6.5 6.5`,className:`icon-stroke`}),right:(0,M.jsx)(`path`,{d:`M9.5 5.5L16 12l-6.5 6.5`,className:`icon-stroke`}),close:(0,M.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`,className:`icon-stroke`}),lock:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`rect`,{x:`5.5`,y:`10.5`,width:`13`,height:`9`,rx:`2`,className:`icon-fill`}),(0,M.jsx)(`path`,{d:`M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5`,className:`icon-stroke`})]})}[e.name];return(0,M.jsx)(`svg`,{className:`icon`,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:t})}function Ht(){return(0,M.jsxs)(`span`,{className:`brand`,children:[(0,M.jsxs)(`svg`,{className:`brand__mark`,viewBox:`0 0 32 32`,"aria-hidden":`true`,children:[(0,M.jsx)(`rect`,{width:`32`,height:`32`,rx:`8`,className:`brand__bg`}),(0,M.jsx)(`path`,{d:`M22 10.5a8 8 0 1 0 0 11`,className:`brand__c`}),(0,M.jsx)(`circle`,{cx:`23`,cy:`16`,r:`2.6`,className:`brand__dot`})]}),`coauthored`]})}function Ut(e){return(0,M.jsxs)(`div`,{className:`world world--checkin notice`,"data-world":`checkin`,children:[(0,M.jsx)(Gt,{}),(0,M.jsx)(`header`,{className:`checkin__top`,children:(0,M.jsx)(Ht,{})}),(0,M.jsxs)(`main`,{className:`notice__body`,children:[(0,M.jsx)(`h1`,{className:`title title--xl rise`,children:e.title}),e.detail?(0,M.jsx)(`p`,{className:`line rise rise--2`,children:e.detail}):null,e.busy?(0,M.jsx)(`span`,{className:`loader rise rise--3`,"aria-label":`Working`,role:`status`}):null,e.children,e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta rise rise--3`,onClick:e.onDemo,children:[`Preview the demo `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null]})]})}function Wt(e){return(0,M.jsxs)(`nav`,{className:`demo-switch`,"aria-label":`Demo profiles`,children:[(0,M.jsx)(`span`,{className:`demo-switch__tag`,children:`Demo`}),e.demo.profiles.map(t=>(0,M.jsx)(`button`,{type:`button`,className:`demo-switch__btn`,"aria-pressed":e.demo.current===t.id,title:t.label,onClick:()=>e.demo.onSelect(t.id),children:Lt[t.id]??t.label},t.id))]})}function Gt(){return(0,M.jsxs)(`svg`,{className:`grain`,"aria-hidden":`true`,focusable:`false`,children:[(0,M.jsxs)(`filter`,{id:`grain-f`,children:[(0,M.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.85`,numOctaves:`2`,stitchTiles:`stitch`}),(0,M.jsx)(`feColorMatrix`,{type:`saturate`,values:`0`})]}),(0,M.jsx)(`rect`,{width:`100%`,height:`100%`,filter:`url(#grain-f)`})]})}function Kt(e){let t=e?.lexicon;if(!Array.isArray(t))return[];let n=t;return[`please`,`thanks`,`why`,`agent-agree`].map(e=>n.find(t=>t&&t.id===e)).filter(e=>!!e&&typeof e.total==`number`&&e.total>0&&Array.isArray(e.topTerms)).map(e=>{let t=[...e.topTerms].sort((e,t)=>t.count-e.count)[0];return`“${String(t?.display||t?.term||e.id).replace(/'/g,`’`)}” ×${e.total.toLocaleString(`en-US`)}`})}var qt={"ui.contentSealShown":!0,"ui.isDemo":!1,"ui.phase2Enabled":!0,"cfact.on":!0},Jt=e=>It(e,qt)??``;function Yt(e){let{plan:t}=e,[n,r]=(0,l.useState)(()=>new Set(t.candidates.map(e=>e.candidateId))),[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),d=!!e.contentUi&&!e.isDemo,f=t=>{n.size!==0&&e.onStart([...n],i,{count:t,presentation:t&&o})},p=t.candidates.length===0,m=t.candidates.filter(e=>e.hasCredentialRiskWarning&&n.has(e.candidateId)),h=e=>r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,M.jsxs)(`div`,{className:`world world--checkin checkin`,"data-world":`checkin`,children:[(0,M.jsx)(Gt,{}),(0,M.jsx)(`header`,{className:`checkin__top`,children:(0,M.jsx)(Ht,{})}),(0,M.jsxs)(`main`,{className:`checkin__body`,children:[(0,M.jsx)(`h1`,{className:`checkin__title rise rise--2`,children:p?(0,M.jsx)(M.Fragment,{children:`No coding receipts on this machine. Yet.`}):(0,M.jsxs)(M.Fragment,{children:[`Your `,t.year,` coding receipts are `,(0,M.jsx)(`em`,{children:`ready.`})]})}),p?(0,M.jsx)(`p`,{className:`line rise rise--3`,children:`We looked in the usual places for Claude Code, Codex, Gemini CLI, Cursor and friends. Nothing yet.`}):(0,M.jsx)(`ul`,{className:`sources rise rise--3`,"aria-label":`Sources to read`,children:t.candidates.map(e=>{let t=n.has(e.candidateId);return(0,M.jsx)(`li`,{children:(0,M.jsxs)(`button`,{type:`button`,className:`source`,"aria-pressed":t,onClick:()=>h(e.candidateId),title:e.notes.join(` · `)||void 0,children:[(0,M.jsx)(`span`,{className:`source__check`,"aria-hidden":`true`}),e.displayName,(0,M.jsxs)(`span`,{className:`source__n`,children:[`· `,St(e.fileCount),` files`]})]})},e.candidateId)})}),m.length?(0,M.jsxs)(`p`,{className:`fine rise rise--4`,children:[`Heads up: `,m.map(e=>e.displayName).join(`, `),` keeps a database that may also hold credentials. We read a private copy, skip those columns entirely, and delete the copy after.`]}):null,p?null:(0,M.jsxs)(`form`,{className:`go rise rise--5`,onSubmit:e=>{e.preventDefault(),d||f(!1)},children:[(0,M.jsx)(`input`,{className:`field`,type:`text`,maxLength:24,autoComplete:`off`,spellCheck:!1,placeholder:`Your name or @handle (optional)`,"aria-label":`Your name or handle, optional`,value:i,onChange:e=>a(e.target.value)}),d?(0,M.jsxs)(`div`,{className:`go__pair`,role:`group`,"aria-label":Jt(`content-consent-title`),children:[(0,M.jsx)(`button`,{type:`button`,className:`cta cta--xl`,disabled:n.size===0,onClick:()=>f(!0),children:Jt(`content-consent-start-with`)}),(0,M.jsx)(`button`,{type:`button`,className:`cta cta--xl`,disabled:n.size===0,onClick:()=>f(!1),children:Jt(`content-consent-start-without`)})]}):(0,M.jsxs)(`button`,{type:`submit`,className:`cta cta--xl`,disabled:n.size===0,children:[`Unwrap my `,t.year,` `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]})]}),!p&&d?(0,M.jsxs)(`div`,{className:`go__words rise rise--5`,children:[(0,M.jsx)(`p`,{className:`go__lines`,children:Jt(`content-consent-detail`)}),(0,M.jsxs)(`p`,{className:`go__links`,children:[e.sample?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>void e.sample().then(e=>u(Kt(e)),()=>u([])),children:Jt(`content-consent-try`)}):null,(0,M.jsxs)(`button`,{type:`button`,className:`link`,"aria-pressed":o,onClick:()=>s(e=>!e),title:Jt(`content-presentation-detail`),children:[Jt(`content-presentation-toggle`),o?`: on`:``]})]}),c&&c.length?(0,M.jsx)(`ul`,{className:`go__sample`,"aria-label":Jt(`content-consent-try`),children:c.map(e=>(0,M.jsx)(`li`,{className:`tag`,children:e},e))}):null]}):null,p&&e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta cta--xl rise rise--5`,onClick:e.onDemo,children:[`Try the demo `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null,p&&!e.onDemo?(0,M.jsxs)(`button`,{type:`button`,className:`cta cta--xl rise rise--5`,onClick:()=>e.onStart([],i,{count:!1,presentation:!1}),children:[`Unwrap anyway `,(0,M.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]}):null,e.error?(0,M.jsx)(`p`,{className:`error rise`,role:`alert`,children:e.error}):null]})]})}function Xt(e){let t=e.progress,n=e.plan.candidates.find(e=>e.harness===t.currentHarness)?.displayName??t.currentHarness,r=t.filesTotal>0?Math.min(1,t.filesDone/t.filesTotal):0;return(0,M.jsxs)(`div`,{className:`world world--checkin scanning`,"data-world":`checkin`,"data-done":e.done?`true`:`false`,children:[(0,M.jsx)(Gt,{}),(0,M.jsxs)(`header`,{className:`checkin__top`,children:[(0,M.jsx)(`span`,{className:`brand-text`,children:`coauthored`}),e.isDemo?(0,M.jsx)(`span`,{className:`tag tag--demo`,children:`Demo`}):null]}),(0,M.jsxs)(`main`,{className:`scanning__body`,"aria-live":`polite`,children:[e.done?(0,M.jsx)(`h1`,{className:`checkin__title rise`,children:`Got it. Here we go.`}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`p`,{className:`kicker`,children:t.label?It(`content-scan-wait`,{"cfact.on":!0}):n?`Reading ${n}…`:`Warming up…`}),(0,M.jsxs)(`p`,{className:`scanning__count`,children:[(0,M.jsx)(`span`,{className:`scanning__n`,children:St(t.filesDone)}),(0,M.jsxs)(`span`,{className:`scanning__of`,children:[`/`,St(t.filesTotal),` files`]})]}),(0,M.jsx)(`div`,{className:`scanning__bar`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r*100),children:(0,M.jsxs)(`svg`,{viewBox:`0 0 1000 8`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,M.jsx)(`rect`,{x:`0`,y:`0`,width:`1000`,height:`8`,rx:`4`,className:`scanning__track`}),(0,M.jsx)(`rect`,{x:`0`,y:`0`,width:Math.max(8,r*1e3),height:`8`,rx:`4`,className:`scanning__fill`})]})})]}),(0,M.jsxs)(`div`,{className:`scanning__actions`,children:[e.canSkip&&!e.done?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:e.onSkip,children:`Skip`}):null,e.onCancel&&!e.done?(0,M.jsx)(`button`,{type:`button`,className:`link`,onClick:e.onCancel,children:`Cancel`}):null]})]})]})}var Zt={observed:`●`,estimated:`◐`,interpretation:`✦`},N={observed:`Observed: counted straight from your logs`,estimated:`Estimated: derived with a stated method`,interpretation:`Interpretation: our read of the numbers`},Qt={"Local project grouping":`Per-project counts, keyed by a one-way local hash`,"Project grouping identifiers":`Project names, paths and raw grouping identifiers`},$t=e=>Qt[e]??e;function en(e){let{report:t,open:n}=e,r=t.receipt,i=(0,l.useRef)(null),[a,o]=(0,l.useState)(!1),[s,c]=(0,l.useState)(``),u=(0,l.useMemo)(()=>JSON.stringify(t,null,2),[t]),d=(0,l.useMemo)(()=>{let t=new Map((e.plan?.candidates??[]).map((e,t)=>[e.candidateId,t]));return[...r.sources].sort((e,n)=>(t.get(e.candidateId)??99)-(t.get(n.candidateId)??99))},[r.sources,e.plan]),f=r.sources.reduce((e,t)=>({files:e.files+t.filesSeen,lines:e.lines+t.linesSeen,bytes:e.bytes+t.bytesRead}),{files:0,lines:0,bytes:0});if((0,l.useEffect)(()=>{n&&i.current?.focus()},[n]),!n)return null;let p=async()=>{try{await navigator.clipboard.writeText(u),c(`Copied the full report JSON.`)}catch{c(`Clipboard is blocked here. Open the JSON and select it by hand.`)}};return(0,M.jsxs)(`div`,{className:`modal`,"data-own-keys":!0,children:[(0,M.jsx)(`button`,{type:`button`,className:`modal__scrim`,"aria-label":`Close the receipt`,tabIndex:-1,onClick:e.onClose}),(0,M.jsxs)(`div`,{className:`modal__panel`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`receipt-title`,tabIndex:-1,ref:i,onKeyDown:t=>{t.key===`Escape`&&(t.preventDefault(),e.onClose())},children:[(0,M.jsxs)(`header`,{className:`rcpt__head`,children:[(0,M.jsx)(`h2`,{id:`receipt-title`,children:`Privacy receipt`}),(0,M.jsx)(`button`,{type:`button`,className:`icon-btn`,onClick:e.onClose,"aria-label":`Close receipt`,children:(0,M.jsx)(Vt,{name:`close`})})]}),(0,M.jsxs)(`div`,{className:`rcpt__zero`,children:[(0,M.jsx)(`span`,{className:`rcpt__zero-n`,children:r.externalBytesSent}),(0,M.jsxs)(`span`,{children:[`bytes sent anywhere.`,(0,M.jsx)(`br`,{}),t.isDemo?`Demo: every recorder below is fictional.`:`This page only talks to the process on your own machine.`]})]}),(0,M.jsx)(`h3`,{children:`How to read the dots`}),(0,M.jsx)(`ul`,{className:`rcpt__legend`,children:[`observed`,`estimated`,`interpretation`].map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--${e}`,"aria-hidden":`true`,children:Zt[e]}),N[e]]},e))}),(0,M.jsx)(`h3`,{children:`What we read`}),(0,M.jsxs)(`ul`,{className:`rcpt__rows`,children:[d.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:e.displayName}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[St(e.filesOk),`/`,St(e.filesSeen),` files · `,St(e.linesSeen),` lines · `,wt(e.bytesRead),e.linesSkipped?` · ${St(e.linesSkipped)} skipped`:``,e.filesQuarantined?` · ${e.filesQuarantined} quarantined`:``,e.failureCodes.length?` · ${e.failureCodes.join(`, `)}`:``]})]},e.candidateId)),(0,M.jsxs)(`li`,{className:`rcpt__total`,children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:`Total`}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[St(f.files),` files · `,St(f.lines),` lines · `,wt(f.bytes)]})]})]}),(0,M.jsx)(`h3`,{children:`Time windows`}),(0,M.jsx)(`ul`,{className:`rcpt__rows`,children:t.capturedWindow.perHarness.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`rcpt__k`,children:e.displayName}),(0,M.jsxs)(`span`,{className:`rcpt__v`,children:[Dt(e.startDate,e.endDate),` · `,St(e.sessions),` sessions`,e.likelyTruncated?` · trimmed by log retention`:``]})]},e.harness))}),(0,M.jsx)(`h3`,{children:`Kept`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:r.extractedFieldCategories.map($t).join(` · `)||`—`}),(0,M.jsx)(`h3`,{children:`Thrown away unread`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:r.discardedFieldCategories.map($t).join(` · `)||`—`}),r.absentCapabilities.length?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`h3`,{children:`Not recorded by your tools`}),(0,M.jsxs)(`p`,{className:`rcpt__p`,children:[r.absentCapabilities.join(` · `),`. Anything not logged is simply left out. Never a fake zero.`]})]}):null,(0,M.jsx)(`h3`,{children:`Methods`}),(0,M.jsxs)(`ul`,{className:`rcpt__methods`,children:[r.methods.map(e=>(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--${e.epistemic}`,"aria-label":e.epistemic,children:Zt[e.epistemic]}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:e.metric}),` `,e.formula]})]},e.metric)),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`span`,{className:`glyph glyph--estimated`,"aria-label":`estimated`,children:`◐`}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Active time`}),` union of activity with gaps under `,r.activeTimeGapMinutes,` min (5-min gap: `,St(t.totals.wallClockSensitivity5m),` min; 15-min gap:`,` `,St(t.totals.wallClockSensitivity15m),` min)`]})]})]}),t.scale.apiEquivalent.eligible?(0,M.jsx)(`p`,{className:`rcpt__p rcpt__fine`,children:t.scale.apiEquivalent.disclaimer}):null,t.scale.writtenAnchor?(0,M.jsx)(`p`,{className:`rcpt__p rcpt__fine`,children:t.scale.writtenAnchor.methodNote}):null,(0,M.jsx)(`h3`,{children:`The raw report`}),(0,M.jsx)(`p`,{className:`rcpt__p`,children:`This is the entire payload this page received. It’s yours.`}),(0,M.jsxs)(`div`,{className:`rcpt__actions`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a,onClick:()=>o(e=>!e),children:a?`Hide JSON`:`Show JSON · ${wt(new TextEncoder().encode(u).length)}`}),(0,M.jsx)(`button`,{type:`button`,className:`btn`,onClick:()=>void p(),children:`Copy JSON`}),(0,M.jsx)(`span`,{className:`rcpt__msg`,role:`status`,children:s})]}),a?(0,M.jsx)(`textarea`,{className:`rcpt__json`,readOnly:!0,value:u,rows:14,"aria-label":`Report JSON`,spellCheck:!1}):null,e.onShutdown?(0,M.jsxs)(`div`,{className:`rcpt__end`,children:[(0,M.jsx)(`p`,{className:`rcpt__p`,children:`Done? Shut down the local server. The in-memory report disappears with it.`}),(0,M.jsx)(`button`,{type:`button`,className:`btn btn--danger`,onClick:e.onShutdown,children:`Shut down local server`})]}):null,(0,M.jsxs)(`p`,{className:`rcpt__sig`,children:[t.docketNumber,` · `,t.registration,` · algorithm `,r.algorithmVersion]})]})]})}var tn=`(prefers-reduced-motion: reduce)`;function nn(){let[e,t]=(0,l.useState)(()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(tn).matches);return(0,l.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let e=window.matchMedia(tn),n=()=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}var rn=(0,l.createContext)({reduced:!1}),an=`modulepreload`,on=function(e){return`/`+e},sn={},cn={},ln=function(e){return e.pathname.endsWith(`.css`)},un=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},dn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=on(t,n);let r=s(t),i=ln(r);return un(sn,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?cn[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:an,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete cn[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(cn[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},fn=(0,l.lazy)(()=>dn(()=>import(`./chunk-D6HyoJCB.js`).then(e=>({default:e.Film})),__vite__mapDeps([0,1]))),pn=()=>void dn(()=>import(`./chunk-D6HyoJCB.js`),__vite__mapDeps([0,1])).catch(()=>void 0),mn={currentHarness:null,channelLabel:null,filesDone:0,filesTotal:0,eventsProcessed:0};function hn(e){let{source:t}=e,n=nn(),[r,i]=(0,l.useState)({k:`checkin`,error:null}),[a,o]=(0,l.useState)(mn),[s,c]=(0,l.useState)(!1),[u,d]=(0,l.useState)(!1),[f,p]=(0,l.useState)(!1),m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!s)return;let e=e=>{e.key===`Escape`&&c(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[s]);let h=(0,l.useCallback)(e=>i({k:`story`,report:e}),[]),g=async(e,r,a)=>{pn(),d(a.count&&a.presentation),o(mn),i({k:`scanning`,done:!1});try{let s=await t.run(e,r,o,a);m.current=s,i({k:`scanning`,done:!0}),window.setTimeout(()=>{m.current===s&&h(s)},n?350:900)}catch(e){let t=e instanceof Error&&e.message===`CANCELLED`?`Cancelled. Nothing was kept. Pick your sources and try again whenever.`:vt(e);i({k:`checkin`,error:t})}},_=t.close?async()=>{try{await t.close()}finally{c(!1),i({k:`closed`})}}:null;if(r.k===`checkin`)return(0,M.jsxs)(rn.Provider,{value:{reduced:n},children:[(0,M.jsx)(Yt,{plan:t.plan,isDemo:t.mode===`demo`,error:r.error,contentUi:!!t.contentUi,sample:t.sample,onStart:(e,t,n)=>void g(e,t,n),onDemo:e.onPreviewDemo}),e.demo?(0,M.jsx)(Wt,{demo:e.demo}):null]});if(r.k===`scanning`)return(0,M.jsx)(rn.Provider,{value:{reduced:n},children:(0,M.jsx)(Xt,{plan:t.plan,isDemo:t.mode===`demo`,progress:a,done:r.done,canSkip:r.done||t.skippable,onSkip:()=>{r.done&&m.current?h(m.current):t.skippable&&t.skip?.()},onCancel:t.cancel&&!r.done?()=>void t.cancel():void 0})});if(r.k===`closed`)return(0,M.jsx)(Ut,{title:`That’s a wrap.`,detail:`The local server shut down and the in-memory report is gone. You can close this tab. Anything you downloaded is yours to keep.`});let v=r.report;return(0,M.jsxs)(rn.Provider,{value:{reduced:n},children:[(0,M.jsx)(l.Suspense,{fallback:(0,M.jsx)(Ut,{title:`Got it. Here we go.`,busy:!0}),children:(0,M.jsx)(fn,{report:v,mode:t.mode===`local`?`live`:`demo`,presentation:u,content:t.content,overlay:s,onReceipt:()=>c(!0),onStateChange:e=>p(e.started&&!e.last)})}),e.demo&&!f?(0,M.jsx)(Wt,{demo:e.demo}):null,(0,M.jsx)(en,{report:v,plan:t.plan,open:s,onClose:()=>c(!1),onShutdown:_})]})}function gn(e,t){let n=t.trim()?tt(t,``,24):``;return n?{...e,investigatorLabel:n}:e}var _n=(0,l.lazy)(()=>dn(()=>import(`./chunk-DrEayQLY.js`).then(e=>({default:e.DemoExperience})),__vite__mapDeps([2,0,1]))),vn=ft(),yn=null,bn=350,xn=e=>new Promise(t=>window.setTimeout(t,e));function Sn(e,t){let n=!1,r=t.plan;return{mode:t.mode,plan:r,skippable:!1,...t.contentUi?{content:{fetchJson:(t,n)=>e.contentJson(t,JSON.parse(n.body)),fetchReport:()=>e.report()}}:{},...t.contentUi?{contentUi:!0,sample:()=>e.contentSample()}:{},async run(i,a,o,s){if(n=!1,t.mode===`demo`&&t.demoReportReady){let t=r.candidates.reduce((e,t)=>e+t.fileCount,0);for(let e=0;e<=20&&!n;e++){let n=r.candidates[Math.min(r.candidates.length-1,Math.floor(e/21*r.candidates.length))];o({currentHarness:n?.harness??null,channelLabel:n?.channelLabel??null,filesDone:Math.round(t*e/20),filesTotal:t,eventsProcessed:e*211}),await xn(60)}return gn(await e.report(),a)}let c=t.mode===`local`&&t.contentUi&&s?.count===!0,l={planId:r.planId,candidateIds:i,countWords:c,...a.trim()?{investigatorInitials:a.trim()}:{}},u=await e.scan(l);for(;!n;){if(o(u.progress),u.state===`ready`)return e.report();if(u.state===`error`)throw new dt(u.errorCode??`SCAN_FAILED`,200);if(u.state===`cancelled`)throw Error(`CANCELLED`);await xn(bn),u=await e.status()}throw Error(`CANCELLED`)},async cancel(){n=!0,await e.cancel().catch(()=>void 0)},async close(){await e.close().catch(()=>void 0)}}}function Cn(){let[e,t]=(0,l.useState)({k:`connecting`});(0,l.useEffect)(()=>{let e=vn;e?(yn??=_t.open(e),yn.then(({api:e,session:n})=>t({k:`ready`,api:e,session:n})).catch(e=>t({k:`error`,message:`Couldn’t start a session.`,detail:vt(e)}))):t({k:`error`,message:`This page needs the one-time link from your terminal.`,detail:`For safety, coauthored only answers to the exact link it printed, and each link works once. Run npx coauthored again to get a fresh one.`})},[]);let n=(0,l.useMemo)(()=>e.k===`ready`?Sn(e.api,e.session):null,[e]);if(e.k===`connecting`)return(0,M.jsx)(Ut,{title:`Warming up…`,detail:`Saying hi to the local process. Nothing is being read yet.`,busy:!0});if(e.k===`error`)return(0,M.jsx)(Ut,{title:e.message,detail:e.detail,onDemo:()=>t({k:`demo`})});if(e.k===`demo`)return(0,M.jsx)(l.Suspense,{fallback:(0,M.jsx)(Ut,{title:`Loading the demo…`,detail:`Five fictional developers. Zero real data.`,busy:!0}),children:(0,M.jsx)(_n,{initialProfile:e.profile,fromLocal:e.fromLocal===!0})});let r=e.session,i=r.mode===`demo`?{profiles:Rt,current:r.demoProfileId??`night-owl`,onSelect:e=>t({k:`demo`,profile:e,fromLocal:!0})}:void 0;return(0,M.jsx)(hn,{source:n,demo:i,onPreviewDemo:()=>t({k:`demo`})})}var wn=document.getElementById(`root`);wn&&(0,u.createRoot)(wn).render((0,M.jsx)(l.StrictMode,{children:(0,M.jsx)(Cn,{})}));export{Rt as a,Nt as c,kt as d,Ot as f,n as g,f as h,Bt as i,Mt as l,ve as m,Wt as n,Ft as o,we as p,Ut as r,jt as s,dn as t,Pt as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,d as t,f as n,g as r,h as i,i as a,l as o,m as s,o as c,p as l,s as u,u as d}from"./app-DEQgytaq.js";var f=r(),p=`#16161A`,m=`#F4F1EA`,h=`#FFE800`,g=`#F2C200`,_={blue:`#0078BF`,pink:`#FF48B0`,red:`#F15060`,black:p,yellow:`#FFE800`,green:`#00A95C`,midnight:`#1C1F4F`,violet:`#5A3FA8`,paper:m,ink:p,orange:`#FF6C2F`},v={grep:{id:`grep`,name:`GREP`,kana:`グレップ`,family:`investigate`,role:`reads, searches, investigates`,color:_.blue,shade:`#005A90`,eye:p,face:{x:10,y:-176,gap:26,eyeH:[1,.62]},shoulders:[[-50,-112],[50,-112]],armLen:46,legs:[-24,24],height:300,width:112,crestPivot:[2,-232],box:[-56,-234,56,-20],body:e=>`<rect x="-56" y="-234" width="112" height="214" rx="56" fill="${e}"/>`,crest:e=>`<path d="M2 -232 C4 -300 92 -306 100 -238" fill="none" stroke="${e}" stroke-width="8" stroke-linecap="round"/><path d="M100 -238 L100 -222" stroke="${e}" stroke-width="5" stroke-linecap="round"/><circle cx="100" cy="-206" r="15" fill="none" stroke="${e}" stroke-width="7"/>`},patch:{id:`patch`,name:`PATCH`,kana:`パッチ`,family:`modify`,role:`edits, rewrites, fixes`,color:_.pink,shade:`#D42F8C`,eye:p,face:{x:-4,y:-118,gap:40},shoulders:[[-90,-86],[90,-86]],armLen:44,legs:[-42,42],height:190,width:192,crestPivot:[66,-164],box:[-96,-182,96,-20],body:e=>`<rect x="-96" y="-182" width="192" height="162" rx="62" fill="${e}"/>`,crest:(e,t)=>`<g transform="translate(66 -164) rotate(-12)"><rect x="-40" y="-12" width="80" height="24" rx="10" fill="${t||h}" transform="rotate(45)"/><rect x="-40" y="-12" width="80" height="24" rx="10" fill="${t||h}" transform="rotate(-45)"/><rect x="-9" y="-9" width="18" height="18" rx="3" fill="${t||g}" transform="rotate(45)"/>${t?``:`<circle cx="-3" cy="0" r="1.8" fill="${p}" opacity=".45"/><circle cx="3" cy="0" r="1.8" fill="${p}" opacity=".45"/>`}</g>`},bash:{id:`bash`,name:`BASH`,kana:`バッシュ`,family:`execute`,role:`runs commands, breaks things, tries again`,color:_.red,shade:`#C2364A`,eye:p,face:{x:22,y:-112,gap:30},shoulders:[[-70,-118],[48,-64]],armLen:40,legs:[-40,22],height:190,width:206,crestPivot:[0,0],box:[-101,-183,103,-11],body:(e,t={})=>{let n=t.point||0,r=t.droop||0,i=t.stretch||0,a=-84-i,o=-58-i*.55,s=-166+i*.22;return`<path d="M${a} ${-28-i*.22} L${o} -98 L${a} ${s} L18 ${-166+r*.35} L${86+n} ${-98+r} L18 -28 Z" fill="${e}" stroke="${e}" stroke-width="34" stroke-linejoin="round"/>`},crest:()=>``},fork:{id:`fork`,name:`FORK`,kana:`フォーク`,family:`delegate`,role:`launches subagents, delegates, conducts`,color:p,shade:`#3A3A44`,eye:m,face:{x:0,y:-100,gap:34},shoulders:[[-72,-84],[72,-84]],armLen:44,legs:[-34,34],height:262,width:152,crestPivot:[0,-150],box:[-76,-262,76,-20],body:(e,t={})=>{let n=t.tines||0;return`<rect x="-76" y="-158" width="152" height="138" rx="58" fill="${e}"/><g data-part="tine-l" transform="rotate(${-n} -44 -120)"><rect x="-76" y="-262" width="60" height="176" rx="10" fill="${e}"/></g><g data-part="tine-r" transform="rotate(${n} 44 -120)"><rect x="16" y="-262" width="60" height="176" rx="10" fill="${e}"/></g>`},crest:()=>``},todo:{id:`todo`,name:`TODO`,kana:`トゥードゥー`,family:`plan`,role:`plans, lists, checks boxes`,color:_.yellow,shade:`#D8B900`,eye:p,face:{x:2,y:-186,gap:42},shoulders:[[-56,-122],[62,-122]],armLen:40,legs:[-30,30],height:236,width:160,crestPivot:[-70,-150],box:[-80,-236,84,-22],body:(e,t={})=>{let n=t.wobble||[0,0,0],r=e=>t.plain||t.silhouette?``:e;return`<g data-part="slab-1" transform="translate(${n[0]} 0)"><rect x="-58" y="-78" width="116" height="56" rx="24" fill="${e}"/>${r(`<rect x="-36" y="-58" width="15" height="15" rx="3" fill="none" stroke="${p}" stroke-width="4"/>`)}</g><g data-part="slab-2" transform="translate(${n[1]} 0)"><rect x="-56" y="-138" width="124" height="56" rx="24" fill="${e}"/>${r(`<rect x="-34" y="-118" width="15" height="15" rx="3" fill="none" stroke="${p}" stroke-width="4"/><path d="M-31 -110 L-27 -106 L-18 -117" fill="none" stroke="${p}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>`)}</g><g data-part="slab-3" transform="translate(${n[2]} 0)"><rect x="-80" y="-236" width="164" height="94" rx="42" fill="${e}"/></g>`},crest:(e,t)=>`<path d="M-60 -150 C-80 -132 -88 -108 -86 -82 L-96 -70 L-84 -74 L-76 -64 L-74 -84 C-74 -110 -66 -130 -50 -146 Z" fill="${t||_.red}"/>`},curl:{id:`curl`,name:`CURL`,kana:`カール`,family:`research`,role:`fetches from the web, brings back tabs`,color:_.green,shade:`#007E45`,eye:p,face:{x:22,y:-134,gap:34,lookY:-.5},shoulders:[[-78,-96],[86,-100]],armLen:42,legs:[-28,34],height:262,width:176,crestPivot:[-8,-200],box:[-80,-206,92,-18],body:e=>`<ellipse cx="6" cy="-112" rx="84" ry="94" fill="${e}" transform="rotate(12 6 -112)"/>`,crest:e=>`<path d="M-8 -200 C-14 -262 74 -276 74 -226 C74 -192 28 -194 30 -224 C32 -246 58 -244 56 -228" fill="none" stroke="${e}" stroke-width="14" stroke-linecap="round"/>`}},y={Nocturnal:{fork:{color:`#1C1F4F`,shade:`#2E3374`,eye:_.yellow}}};function b(e,t,n,r=0,i=0,a=0){let o=t.gap/2,s=t.x-o+r*10,c=t.x+o+r*10,l=t.y+a*10,u=t.eyeH||[1,1],d=(e,t=30,r=10,i=0,a=0)=>`<rect x="${e-r/2}" y="${l-t/2+i}" width="${r}" height="${t}" rx="${Math.min(r,t)/2}" fill="${n}"${a?` transform="rotate(${a} ${e} ${l})"`:``}/>`,f=(e,t=6)=>`<path d="${e}" fill="none" stroke="${n}" stroke-width="${t}" stroke-linecap="round" stroke-linejoin="round"/>`;switch(e){case`blink`:return d(s,4,12)+d(c,4,12);case`happy`:return f(`M${s-8} ${l+5} Q${s} ${l-9} ${s+8} ${l+5}`)+f(`M${c-8} ${l+5} Q${c} ${l-9} ${c+8} ${l+5}`);case`content`:return f(`M${s-8} ${l-2} Q${s} ${l+8} ${s+8} ${l-2}`)+f(`M${c-8} ${l-2} Q${c} ${l+8} ${c+8} ${l-2}`);case`smug`:return d(s,11,10,6)+d(c,11,10,6);case`sleepy`:return d(s,5,16,6,8)+d(c,5,16,6,-8);case`shut`:return d(s,5,16,2)+d(c,5,16,2);case`half`:return d(s,16,11,7)+d(c,16,11,7)+`<rect x="${s-8}" y="${l-2}" width="16" height="4" rx="2" fill="${n}"/><rect x="${c-8}" y="${l-2}" width="16" height="4" rx="2" fill="${n}"/>`;case`tiny`:return d(s,10,8)+d(c,10,8);case`blinkHalf`:return d(s,14,11,7)+d(c,14,11,7);case`crushed`:return d(s,9,15,6,-10)+d(c,9,15,6,10);case`snap`:return d(s,44,12)+d(c,44,12);case`indignant`:return d(s,20,10,3,24)+d(c,20,10,3,-24);case`side`:return d(s+9,30*u[0],10)+d(c+9,30*u[1],10,(1-u[1])*6);case`squint`:return d(s,30*u[0],10)+d(c,12,12,2);case`wide`:return d(s,36,10)+d(c,36,10);case`panic`:return`<circle cx="${s}" cy="${l}" r="4.5" fill="${n}"/><circle cx="${c}" cy="${l}" r="4.5" fill="${n}"/>`;case`triumph`:return f(`M${s-7} ${l-8} L${s+5} ${l} L${s-7} ${l+8}`)+f(`M${c+7} ${l-8} L${c-5} ${l} L${c+7} ${l+8}`);case`error`:return f(`M${s-6} ${l-6} L${s+6} ${l+6} M${s+6} ${l-6} L${s-6} ${l+6}`,5)+f(`M${c-6} ${l-6} L${c+6} ${l+6} M${c+6} ${l-6} L${c-6} ${l+6}`,5);case`suspicious`:return d(s+8,12,10,4)+d(c+8,12,10,4);case`determined`:return d(s,24,9,0,16)+d(c,24,9,0,-16);case`thinking`:{let e=[[1,1,0,1,1,0],[0,1,1,0,1,1],[1,0,1,1,0,1],[1,1,1,0,0,0]][Math.floor(i)%4],t=``;for(let r of[s,c])for(let i=0;i<6;i++){let a=r-4+i%2*8,o=l-9+Math.floor(i/2)*9;t+=`<circle cx="${a}" cy="${o}" r="${e[i]?3:1.4}" fill="${n}"${e[i]?``:` opacity=".5"`}/>`}return t}default:return d(s,30*u[0])+d(c,30*u[1],10,(1-u[1])*6)}}function x(e,t,n,r=0,i=0){let a=t.x+r*10,o=t.y+30+i*8;switch(e){case`o`:return`<ellipse cx="${a}" cy="${o}" rx="5" ry="6.5" fill="${n}"/>`;case`D`:return`<path d="M${a-8} ${o-3} L${a+8} ${o-3} Q${a+8} ${o+9} ${a} ${o+9} Q${a-8} ${o+9} ${a-8} ${o-3} Z" fill="${n}"/>`;case`smirk`:return`<path d="M${a+2} ${o} Q${a+9} ${o+4} ${a+14} ${o-3}" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`flat`:return`<path d="M${a-6} ${o} L${a+6} ${o}" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`wobble`:return`<path d="M${a-10} ${o} q5 -5 10 0 t10 0" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`yawn`:return`<ellipse cx="${a}" cy="${o+4}" rx="7" ry="11" fill="${n}"/>`;case`grin`:return`<path d="M${a-13} ${o-2} L${a+13} ${o-2} Q${a+12} ${o+7} ${a} ${o+7} Q${a-12} ${o+7} ${a-13} ${o-2} Z" fill="${n}"/>`;case`dot`:return`<circle cx="${a}" cy="${o}" r="3" fill="${n}"/>`;case`pout`:return`<path d="M${a-7} ${o+4} Q${a} ${o-3} ${a+7} ${o+4}" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`pinch`:return`<path d="M${a-5} ${o+2} L${a+5} ${o+2}" stroke="${n}" stroke-width="3.5" stroke-linecap="round"/>`;case`tremble`:return`<path d="M${a-9} ${o+2} l4.5 -3 l4.5 3 l4.5 -3 l4.5 3" fill="none" stroke="${n}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>`;default:return``}}var S={panic:`o`,triumph:`D`,smug:`smirk`,error:`wobble`,wide:`o`,tiny:`dot`,crushed:`tremble`,snap:`o`,indignant:`pout`};function C(e,t,n,r,i,a){let[o,s]=t.shoulders[e],c=e===0?n:-n,l=i*.78,u=``;return a.includes(`baton`)&&e===1&&(u=`<path d="M0 ${l-6} L0 ${l+84}" stroke="${m}" stroke-width="5" stroke-linecap="round"/><circle cx="0" cy="${l-4}" r="7" fill="${m}"/>`),`<g data-part="arm-${e?`r`:`l`}" transform="translate(${o} ${s}) rotate(${c})"><rect x="-11" y="-6" width="22" height="${l+6}" rx="11" fill="${r}"/><circle data-part="mitt" cx="0" cy="${l}" r="14" fill="${r}"/>${u}</g>`}function w(e,t,n){let r=(n,r,i,a,o=``)=>`<g data-part="shard" transform="translate(${r*t} ${i*t}) rotate(${a*t} 0 -98)"><path d="M${n}Z" fill="${e}" stroke="${e}" stroke-width="${34-18*t}" stroke-linejoin="round"/>${o}</g>`;return r(`-84 -166 L-6 -166 L-6 -104 L-58 -104 `,-46,-40,-24)+r(`6 -166 L18 -166 L86 -98 L6 -98 `,52,-54,28,n)+r(`-58 -92 L86 -92 L18 -28 L-84 -28 `,12,34,-10)}var T=new Set;function E(e,t){return`kl-${String(t).replace(`#`,``)}-${e}`}function D(e){let t=e||[[4,`#F4F1EA`],[6,`#F4F1EA`],[8,`#F4F1EA`],[6,`#16161A`],...[...T].map(e=>e.split(`|`)).map(([e,t])=>[Number(e),t])],n=new Set;return t.map(([e,t])=>{let r=E(e,t);return n.has(r)?``:(n.add(r),`<filter id="${r}" x="-30%" y="-30%" width="160%" height="160%"><feMorphology in="SourceAlpha" operator="dilate" radius="${e}" result="d"/><feFlood flood-color="${t}"/><feComposite in2="d" operator="in" result="k"/><feMerge><feMergeNode in="k"/><feMergeNode in="SourceGraphic"/></feMerge></filter>`)}).join(``)}function O(e,t,n){let r=(e.angle??-60)*Math.PI/180,i=Math.cos(r)*t,a=Math.sin(r),o=-n*Math.PI/180,s=i*Math.cos(o)-a*Math.sin(o),c=i*Math.sin(o)+a*Math.cos(o),l=Math.hypot(s,c)||1;return{dx:s/l,dy:c/l,k:Math.max(0,Math.min(1,e.k??.78))}}function k(e,t={}){let n=v[e],r=t.colorway||{},i=t.silhouette||r.color||n.color,a=t.silhouette||r.shade||n.shade,o=t.eyeColor||r.eye||n.eye,s=t.acc||[],c=t.s??1,l=t.flip?-1:1,u=t.sx??1,d=t.sy??1,f=t.expr||`neutral`,m=t.look||0,h=t.lookY??n.face.lookY??0,g={...n.face},y=Math.max(0,Math.min(1,t.turn??+(t.view===`3q`))),D=!!t.sit,k=t.armL??10,A=t.armR??10,j=!!t.perch,M=n.legs.map((e,n)=>{let r=n?t.legR||0:t.legL||0;return D||j?``:`<rect data-part="leg-${n?`r`:`l`}" x="${e-10}" y="${-30-r}" width="20" height="30" rx="10" fill="${t.silhouette||`#16161A`}"/>`}).join(``),N=t.silhouette?``:`<g data-part="eyes">${b(f,g,o,m,t.t||0,h)}</g><g data-part="mouth">${x(t.mouth??S[f]??``,g,o,m,h)}</g>`,P=y?` transform="translate(${22*y} 0) scale(${1-.18*y} 1)"`:``,ee=t.silhouette?``:`<g data-part="face"${P}>${N}</g>`,te;if(e===`bash`&&t.shatter>0)te=w(i,t.shatter,ee),ee=``;else{if(te=n.body(i,t),t.cu&&!t.silhouette&&!y){let e=n.width/2;te=n.body(a,{...t,plain:!0})+`<g transform="translate(${e*.05} 0) scale(.95 1)">${n.body(i,t)}</g>`}t.cu&&!t.silhouette&&(te+=`<g data-part="tampo" opacity=".55"><rect x="${n.width*.18}" y="-62" width="7" height="12" fill="${a}"/><rect x="${n.width*.18+11}" y="-54" width="12" height="4" rx="2" fill="${a}"/></g>`),y&&(te=`<g data-part="side" transform="translate(${-16*y} 0) scale(${1-.06*y} 1)">${n.body(a,{...t,plain:!0})}</g><g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(i,t)}</g>`)}let F=t.lit&&!t.silhouette?O(t.lit,t.flip?-1:1,t.lean||0):null,ne=F?t.lit.shadow||`#272B66`:null;if(F&&!(e===`bash`&&t.shatter>0)){let[e,r,a,o]=n.box,s=(e+a)/2,c=(r+o)/2,l=s+(a-e)/2*F.dx,u=c+(o-r)/2*F.dy,d=F.k,f=y?`<g transform="translate(${-16*y} 0) scale(${1-.06*y} 1)">${n.body(ne,{...t,plain:!0})}</g><g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(ne,{...t,plain:!0})}</g>`:n.body(ne,{...t,plain:!0}),p=y?`<g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(i,t)}</g>`:n.body(i,t);te=`<g data-part="shadow-side">${f}</g>`+(d>0?`<g data-part="lit-side" transform="translate(${l} ${u}) scale(${d}) translate(${-l} ${-u})">${p}</g>`:``)}let[I,re]=n.crestPivot||[0,0],L=n.crest(F&&((I-(n.box[0]+n.box[2])/2)*F.dx+(re-(n.box[1]+n.box[3])/2)*F.dy<-10||F.k<.35)?ne:i,t.silhouette);L&&=`<g transform="translate(${8*y} 0) rotate(${t.crestRot||0} ${I} ${re})">${L}</g>`;let ie=``;if(s.includes(`bowtie`)){let e=g.y+36,n=t.bowColor||_.yellow;ie+=`<g data-part="bowtie" transform="translate(${g.x+20*y} ${e})"><path d="M-20 -10 L-3 0 L-20 10 Z M20 -10 L3 0 L20 10 Z" fill="${n}" stroke="${n}" stroke-width="5" stroke-linejoin="round"/><rect x="-5" y="-5" width="10" height="10" rx="2" fill="${n}"/></g>`}if(s.includes(`moon`)&&(ie+=`<g data-part="moon-pin" transform="translate(${-n.width/2+34} ${g.y+44})"><circle r="11" fill="${_.yellow}"/><circle cx="5" cy="-4" r="9" fill="${i}"/></g>`),s.includes(`shoshinsha`)&&(ie+=`<g data-part="wakaba" transform="translate(${n.width/2-30} ${g.y+50}) rotate(-8)"><path d="M0 -14 L12 -6 L12 12 L0 4 Z" fill="${_.green}"/><path d="M0 -14 L-12 -6 L-12 12 L0 4 Z" fill="${_.yellow}"/></g>`),s.includes(`headphones`)){let e=-n.height+30;ie+=`<g data-part="headphones"><path d="M${-n.width/2-2} ${g.y} C${-n.width/2} ${e-30} ${n.width/2} ${e-30} ${n.width/2+2} ${g.y}" fill="none" stroke="${p}" stroke-width="8"/><rect x="${-n.width/2-14}" y="${g.y-22}" width="20" height="44" rx="9" fill="${p}"/><rect x="${n.width/2-6}" y="${g.y-22}" width="20" height="44" rx="9" fill="${p}"/></g>`}let R=t.lean||0,ae=t.hop||0,oe=e=>F&&(F.k<.35||(e?1:-1)*F.dx<-.25)?ne:a,se=C(0,n,k,oe(0),n.armLen,s),ce=C(1,n,A,oe(1),n.armLen,s),z=`translate(${t.x||0} ${(t.y||0)-ae*c}) scale(${c*l} ${c})`,B=D?`<g transform="translate(0 22)">`:j?`<g transform="translate(0 18)">`:`<g>`,le=j?n.legs.map((e,n)=>{let r=n?t.legR||0:t.legL||0;return`<g data-part="leg-${n?`r`:`l`}" transform="rotate(${r} ${e} -4)"><rect x="${e-10}" y="-6" width="20" height="36" rx="10" fill="${t.silhouette||`#16161A`}"/></g>`}).join(``):``,V=D?n.legs.map((e,n)=>{let r=e*.95+26*y+(n?6:-6),i=t.silhouette||`#16161A`,a=r*1.15;return t.cam===`high`?`<g data-part="boot-${n?`r`:`l`}" transform="rotate(${n?-14:14} ${a} -10)"><rect x="${a-14}" y="-16" width="28" height="48" rx="14" fill="${i}"/></g>`:`<g data-part="sole-${n?`r`:`l`}"><ellipse cx="${a}" cy="-4" rx="${21-4*y}" ry="19" fill="${i}"/>${t.silhouette?``:`<ellipse cx="${a}" cy="-4" rx="${12-2*y}" ry="10" fill="#34343E"/>`}</g>`}).join(``):``,H=t.contact?`<ellipse data-part="contact" cx="${(F?-F.dx:0)*n.width*.12}" cy="${t.cam===`high`?14:0}" rx="${n.width*.62}" ry="${n.width*(t.cam===`high`?.22:.12)}" fill="${t.contact}"/>`:``;if(t.eyesOnly)return`<g class="agent agent-${e}" data-agent="${e}" data-expr="${f}" data-eyes-only="1" transform="${z}"><g transform="scale(${u} ${d})"><g transform="rotate(${R})">${D?`<g transform="translate(0 22)">`:`<g>`}<g data-part="face"${P}><g data-part="eyes">${b(f,g,o,m,t.t||0,h)}</g></g></g></g></g></g>`;let ue=`<g class="agent agent-${e}" data-agent="${e}" data-expr="${f}" transform="${z}"${t.opacity==null?``:` opacity="${t.opacity}"`}>`+H+`<g data-part="squash" transform="scale(${u} ${d})"><g data-part="lean" transform="rotate(${R})"><g data-part="legs">${M}</g>${B}<g data-part="arm-back">${se}</g><g data-part="body">${te}</g><g data-part="crest">${L}</g>${ee}<g data-part="arm-front">${ce}</g><g data-part="acc">${ie}</g></g>${V}${le}</g></g></g>`;if(t.keyline){let e=t.keylineColor||`#F4F1EA`;T.add(`${t.keyline}|${e}`),ue=`<g filter="url(#${E(t.keyline,e)})">${ue}</g>`}return ue}var A={crouch:{sx:1.12,sy:.86,armL:30,armR:30,expr:`determined`,lookY:-.3},air:{sx:.94,sy:1.08,armL:165,armR:165,legL:14,legR:6,expr:`triumph`},land:{sx:1.16,sy:.82,armL:70,armR:70,expr:`shut`},stomp:{sx:1.2,sy:.78,armL:4,armR:4,expr:`determined`,lookY:.6},push:{lean:30,armL:100,armR:100,expr:`determined`,legL:6},deflate:{sx:1.05,sy:.9,lean:6,armL:0,armR:0,expr:`half`,lookY:.7,mouth:`flat`},sitAsleep:{sit:!0,expr:`sleepy`,lookY:.8,lean:8,armL:6,armR:6},sitAwake:{sit:!0,expr:`neutral`,armL:20,armR:20},snapAwake:{sit:!0,expr:`wide`,sy:1.06,lookY:-.4,armL:40,armR:40,mouth:`dot`},smear:{sx:.6,sy:1.7,armL:175,armR:175,expr:`tiny`,lean:6},bow:{lean:34,expr:`content`,armL:6,armR:6},pointAt:{armR:95,armL:10,expr:`determined`,lean:6},yawn:{expr:`shut`,mouth:`yawn`,sy:1.04,armL:150,armR:150,lookY:-.4},blinkHalf:{expr:`blinkHalf`},blinkShut:{expr:`blink`},soClose:{sx:1.05,sy:.93,droop:10,expr:`half`,lookY:.3,armL:6,armR:6,mouth:`pinch`},soClose2:{sx:1.09,sy:.86,droop:22,point:-10,expr:`crushed`,lookY:.5,armL:0,armR:0,lean:4},climbL:{turn:1,lean:10,armL:150,armR:174,legR:22,legL:4,expr:`determined`,lookY:-.8},climbR:{turn:1,flip:!0,lean:10,armL:150,armR:174,legR:22,legL:4,expr:`determined`,lookY:-.8},hang:{armL:178,armR:20,lean:-8,legL:10,legR:4,expr:`panic`,lookY:-.8},pushUp:{sx:1.1,sy:.88,armL:176,armR:176,expr:`determined`,lookY:-1,crestRot:14},doze1:{sit:!0,expr:`half`,lookY:.3,lean:6,armL:6,armR:6},doze2:{sit:!0,expr:`shut`,lookY:.7,lean:14,sy:.97,armL:4,armR:4,crestRot:12},doze3:{sit:!0,expr:`shut`,lookY:1,lean:22,sy:.94,armL:2,armR:2,crestRot:26,mouth:`dot`},snap:{sit:!0,expr:`snap`,sy:1.12,sx:.92,lookY:-.2,armL:62,armR:62,crestRot:-28,tines:10},launch:{stretch:95,point:24,sy:.92,armL:178,armR:178,expr:`tiny`,lean:-6}};function j(e,t={}){return{...A[e]||{},...t}}var M={grep:{lean:-48,armL:172,armR:118,crestRot:-46,legR:18,expr:`snap`},patch:{sx:.86,sy:1.18,armL:172,armR:172,crestRot:36,legL:16,legR:16,expr:`snap`},bash:{stretch:105,point:28,armL:178,armR:178,lean:-14,expr:`tiny`},fork:{tines:20,armL:150,armR:150,sy:1.06,expr:`snap`},todo:{wobble:[-36,30,-52],armL:168,armR:168,crestRot:40,lean:8,expr:`snap`},curl:{sx:.9,sy:1.14,armL:170,armR:170,crestRot:-40,expr:`snap`}},N=Object.fromEntries(Object.entries({grep:[{},{crestRot:8},{crestRot:22,lean:8},{crestRot:34,lean:12}],patch:[{},{crestRot:6},{crestRot:16,sx:1.04},{crestRot:24,sx:1.07}],bash:[{},{droop:4},{droop:12,point:-6},{droop:18,point:-10}],todo:[{},{wobble:[0,3,6]},{wobble:[0,7,16]},{wobble:[0,10,24]}],curl:[{},{crestRot:10},{crestRot:26},{crestRot:40}],fork:[{},{},{},{}]}).map(([e,t])=>[e,[{sit:!0,expr:`thinking`,litK:.8,...t[0]},{sit:!0,expr:`half`,lookY:.4,lean:4,litK:.6,...t[1]},{sit:!0,expr:`shut`,lookY:.7,lean:8,sy:.96,litK:.32,...t[2]},{sit:!0,expr:`shut`,lookY:1,lean:12,sy:.92,litK:0,mouth:`dot`,...t[3]}]])),P=[{sit:!0,expr:`neutral`,litK:.8},{sit:!0,expr:`side`,look:.8,litK:.4},{sit:!0,expr:`neutral`,eyesOnly:!0,eyeColor:_.yellow},{sit:!0,expr:`blink`,eyesOnly:!0,eyeColor:_.yellow}],ee=[{turn:1,expr:`neutral`},{turn:.66,expr:`side`,look:-.9},{turn:.3,expr:`half`,look:-.3},{turn:0,expr:`half`,look:0,lookY:.1}],te={upm:1e3,asc:1160,g:{0:{d:`M40 364Q40 539 142.5 637.5Q245 736 459 736Q673 736 775.0 637.5Q877 539 877 364Q877 188 775.0 89.0Q673 -10 459 -10Q244 -10 142.0 89.0Q40 188 40 364ZM636 364Q636 449 594.0 505.5Q552 562 460 562Q365 562 322.5 505.5Q280 449 280 364Q280 279 322.5 222.0Q365 165 460 165Q552 165 594.0 221.5Q636 278 636 364Z`,adv:917,bb:[40,-10,877,736]},1:{d:`M442 185Q532 187 575 189V0H46V189Q154 185 209 185V530Q173 451 62 428Q59 546 40 643Q120 654 151.5 670.5Q183 687 200.5 707.0Q218 727 224 734V736H442Z`,adv:588,bb:[40,0,575,736]},2:{d:`M795 215Q778 163 769.0 105.0Q760 47 760 0H45L44 21Q44 119 101.5 191.0Q159 263 262 324Q292 342 356 370Q439 406 484.0 433.5Q529 461 529 488Q529 522 501.0 542.0Q473 562 414 562Q349 562 315.5 529.0Q282 496 282 445Q282 429 285 412Q159 428 40 434Q40 519 84.5 587.5Q129 656 218.5 696.0Q308 736 438 736Q557 736 636.5 703.5Q716 671 753.5 621.5Q791 572 791 520Q791 460 764.5 417.0Q738 374 688.5 340.5Q639 307 556 268Q544 262 517.0 254.5Q490 247 483 245Q412 224 370.0 210.0Q328 196 291 175Q616 193 795 215Z`,adv:835,bb:[40,0,795,736]},3:{d:`M669 375Q730 375 768.5 354.5Q807 334 824.0 302.5Q841 271 841 237Q841 158 789.0 102.5Q737 47 648.0 18.5Q559 -10 450 -10Q134 -10 41 210L97 224Q159 239 202.5 252.5Q246 266 279 283Q299 233 336.5 211.5Q374 190 440 190Q510 190 554.0 206.0Q598 222 598 254Q598 271 581.0 280.0Q564 289 527.0 292.5Q490 296 423 296H347V471H393Q469 471 517.0 477.5Q565 484 565 506Q565 531 539.5 546.5Q514 562 460 562Q390 562 346.5 533.0Q303 504 279 449Q172 492 51 510Q99 618 198.5 677.0Q298 736 455 736Q557 736 638.5 709.5Q720 683 766.5 636.0Q813 589 813 531Q813 497 797.0 470.5Q781 444 734.0 418.5Q687 393 598 368Q634 375 669 375Z`,adv:881,bb:[41,-10,841,736]},4:{d:`M884 315V127H748V0H509Q513 42 515 127H40V329Q273 508 456 726H748V315ZM520 528Q451 457 401.0 409.5Q351 362 288 315H517Z`,adv:924,bb:[40,0,884,726]},5:{d:`M844 275Q844 125 739.5 57.5Q635 -10 460 -10Q313 -10 201.5 39.5Q90 89 40 206Q95 214 160.5 232.0Q226 250 279 269Q300 226 338.0 206.5Q376 187 440 187Q508 187 552.5 209.0Q597 231 597 270Q597 310 558.0 337.0Q519 364 439 364Q387 364 344.0 345.5Q301 327 282 293H51Q75 396 93.5 515.0Q112 634 116 726H818V532Q707 539 608.5 540.5Q510 542 333 542L323 486Q399 511 498 511Q612 511 689.5 479.5Q767 448 805.5 394.5Q844 341 844 275Z`,adv:884,bb:[40,-10,844,726]},6:{d:`M816 258Q816 176 764.0 115.0Q712 54 623.0 22.0Q534 -10 424 -10Q312 -10 224.5 34.5Q137 79 88.5 158.0Q40 237 40 338Q40 539 151.5 637.5Q263 736 452 736Q682 736 815 620Q755 556 705 479Q665 509 592.5 527.5Q520 546 463 546Q376 546 317.0 502.5Q258 459 245 378Q244 373 244 364Q292 434 370.5 465.0Q449 496 532 496Q611 496 676.0 463.5Q741 431 778.5 376.0Q816 321 816 258ZM576 259Q576 292 534.5 315.5Q493 339 434 339Q375 339 333.5 315.5Q292 292 292 259Q292 238 311.0 219.5Q330 201 363.0 190.5Q396 180 434 180Q472 180 505.0 190.5Q538 201 557.0 219.5Q576 238 576 259Z`,adv:856,bb:[40,-10,816,736]},7:{d:`M40 727H764V598Q568 301 461 0H191Q300 271 478 539Q201 539 40 529Z`,adv:777,bb:[40,0,764,727]},8:{d:`M836 219Q836 101 731.5 45.5Q627 -10 439 -10Q250 -10 145.0 45.5Q40 101 40 219Q40 267 74.5 317.5Q109 368 171 392Q116 418 88.5 449.5Q61 481 61 534Q61 596 104.0 644.5Q147 693 232.5 720.0Q318 747 439 747Q559 747 644.0 720.0Q729 693 772.0 644.5Q815 596 815 534Q815 480 786.5 449.0Q758 418 700 392Q744 376 775.0 347.0Q806 318 821.0 283.5Q836 249 836 219ZM576 524Q576 557 537.0 576.5Q498 596 441 596Q383 596 344.0 576.5Q305 557 305 524Q305 490 344.0 470.5Q383 451 441 451Q499 451 537.5 471.0Q576 491 576 524ZM576 244Q576 277 537.0 296.5Q498 316 441 316Q383 316 344.0 296.5Q305 277 305 244Q305 210 344.0 190.5Q383 171 441 171Q499 171 537.5 191.0Q576 211 576 244Z`,adv:876,bb:[40,-10,836,747]},9:{d:`M816 388Q816 187 704.5 88.5Q593 -10 404 -10Q174 -10 41 106Q101 170 151 247Q190 215 262.0 197.5Q334 180 393 180Q480 180 539.0 223.5Q598 267 611 348Q612 353 612 362Q564 292 485.0 259.5Q406 227 324 227Q244 227 179.0 256.0Q114 285 77.0 335.5Q40 386 40 449Q40 540 91.5 605.0Q143 670 232.0 703.0Q321 736 432 736Q544 736 631.5 691.5Q719 647 767.5 568.0Q816 489 816 388ZM564 467Q564 501 522.5 525.0Q481 549 422 549Q363 549 321.5 525.0Q280 501 280 467Q280 432 321.5 408.0Q363 384 422 384Q460 384 492.5 395.5Q525 407 544.5 426.0Q564 445 564 467Z`,adv:856,bb:[40,-10,816,736]},":":{d:`M30 495Q30 539 61.0 570.0Q92 601 136 601Q179 601 210.5 569.5Q242 538 242 495Q242 451 210.5 419.5Q179 388 136 388Q92 388 61.0 419.5Q30 451 30 495ZM30 195Q30 239 61.0 270.0Q92 301 136 301Q179 301 210.5 269.5Q242 238 242 195Q242 151 210.5 119.5Q179 88 136 88Q92 88 61.0 119.5Q30 151 30 195Z`,adv:272,bb:[30,88,242,601]},",":{d:`M242 73Q242 23 224.5 -32.0Q207 -87 176 -121H91Q133 -64 144 -9Q92 -9 61.0 22.0Q30 53 30 97Q30 141 61.0 172.0Q92 203 136 203Q181 203 211.5 168.5Q242 134 242 73Z`,adv:272,bb:[30,-121,242,203]},".":{d:`M30 97Q30 141 61.0 172.0Q92 203 136 203Q179 203 210.5 171.5Q242 140 242 97Q242 53 210.5 21.5Q179 -10 136 -10Q92 -10 61.0 21.5Q30 53 30 97Z`,adv:272,bb:[30,-10,242,203]},"≈":{d:`M726 559Q726 490 700.0 435.0Q674 380 622.5 348.0Q571 316 498 316Q408 316 339 374Q325 385 300 415Q283 435 272.5 444.0Q262 453 247 453Q228 453 218.5 438.5Q209 424 212 401H10Q10 462 36.5 518.0Q63 574 114.5 609.0Q166 644 238 644Q337 644 408 579Q417 572 437 547Q454 527 465.0 517.5Q476 508 488 508Q508 508 516.5 520.0Q525 532 524 559ZM726 284Q726 215 700.0 160.0Q674 105 622.5 73.0Q571 41 498 41Q408 41 339 99Q325 110 300 140Q283 160 272.5 169.0Q262 178 247 178Q228 178 218.5 163.5Q209 149 212 126H10Q10 187 36.5 243.0Q63 299 114.5 334.0Q166 369 238 369Q337 369 408 304Q417 297 437 272Q454 252 465.0 242.5Q476 233 488 233Q508 233 516.5 245.0Q525 257 524 284Z`,adv:736,bb:[10,41,726,644]}}};function F(e,t,n,r,i={}){let a=r/te.upm,o=t,s=``,c=[],l=(i.track??-.02)*r;for(let t of e){let e=te.g[t];if(!e){o+=r*.3;continue}let[u,d,f,p]=e.bb;c.push({ch:t,x0:o+u*a,x1:o+f*a,top:n-p*a,bottom:n-d*a,cx:o+(u+f)/2*a}),(i.skip||``).includes(t)||(s+=`<path d="${e.d}" transform="translate(${o} ${n}) scale(${a} ${-a})" fill="${i.fill||`#16161A`}"/>`),o+=e.adv*a+l}return{svg:s,boxes:c,width:o-l-t}}function ne(e,t,n,r={}){let i=r.id||`cube`,a=r.k??1,o=n*.14,s=e-n/2,c=t-n/2,l=e+n/2,u=t+n/2,d=r.plate??n*.02,f=``;d&&(f+=`<rect x="${s+d}" y="${c+d}" width="${n}" height="${n}" fill="${_.pink}"/>`),f+=`<path d="M${s} ${c} L${s+o} ${c-o} L${l+o} ${c-o} L${l} ${c} Z" fill="#30303A"/>`,f+=`<path d="M${l} ${c} L${l+o} ${c-o} L${l+o} ${u-o} L${l} ${u} Z" fill="#0B0B0E"/>`,f+=`<rect x="${s}" y="${c}" width="${n}" height="${n}" fill="${r.face||`#16161A`}"/>`,f+=`<clipPath id="${i}-face"><rect x="${s}" y="${c}" width="${n}" height="${n}"/></clipPath><g clip-path="url(#${i}-face)">`;let p=u-n*.04;for(let e=0;e<7;e++){let t=(.08+.06*(7-e)/7)*(1.35-.35*a),r=n*.62,i=r*.736*t,o=s-n*.06+(e*37%11-5)*n*.012,c=e%2?`#26262E`:`#2E2E38`,l=(e*53%7-3)*.4*a;f+=`<g transform="translate(${o} ${p}) rotate(${l}) scale(1 ${t}) translate(${-o} ${-p})">${F(`2026`,o,p,r,{fill:c,track:-.05}).svg}</g>`,p-=i+n*.012}return f+=`<g transform="translate(${s+n*.05} ${c+n*.36}) scale(1 0.42) translate(${-(s+n*.05)} ${-(c+n*.36)})">${F(`2026`,s+n*.05,c+n*.36,n*.3,{fill:`#3A3A46`,track:-.04}).svg}</g>`,f+=`</g>`,f}var I=(e,t=0,n=1)=>Math.min(n,Math.max(t,e)),re=(e,t,n)=>e+(t-e)*n,L={linear:e=>e,inQuad:e=>e*e,outQuad:e=>1-(1-e)*(1-e),inCubic:e=>e*e*e,outCubic:e=>1-(1-e)**3,inOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,outQuart:e=>1-(1-e)**4,inQuart:e=>e*e*e*e,inOutQuart:e=>e<.5?8*e**4:1-(-2*e+2)**4/2,outQuint:e=>1-(1-e)**5,outExpo:e=>e>=1?1:1-2**(-10*e),inExpo:e=>e<=0?0:2**(10*e-10),inOutExpo:e=>e<=0?0:e>=1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,outBack:(e,t=1.70158)=>1+(t+1)*(e-1)**3+t*(e-1)**2,inBack:(e,t=1.70158)=>(t+1)*e*e*e-t*e*e,snap:e=>1-(1-e)**6};function ie(e,{freq:t=2.2,zeta:n=.45}={}){if(e<=0)return 0;let r=Math.PI*2*t;if(n>=1)return 1-(1+r*e)*Math.exp(-r*e);let i=r*Math.sqrt(1-n*n);return 1-Math.exp(-n*r*e)*(Math.cos(i*e)+n*r/i*Math.sin(i*e))}function R(e){let t=Math.sin(e*127.1+311.7)*43758.5453;return t-Math.floor(t)}function ae(e){let t=Math.floor(e),n=e-t,r=n*n*(3-2*n);return re(R(t),R(t+1),r)*2-1}var oe=(e,t,n)=>e+(t-e)*n,se=(e,t,n,r=L.inOutCubic)=>r(I((e-t)/(n-t))),ce=(e,t,n={})=>e<t?0:ie(e-t,n),z=e=>e/3,B=1/30,le=_.blue,V=_.pink,H=_.yellow,ue=_.red,de=`#1C1F4F`,fe=`#0B0C1C`,pe=e=>Math.floor(e*12+1e-6)/12,me=e=>String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/"/g,`"`),U=`http://www.w3.org/2000/svg`,he=null,ge=null,_e=new Map;function W(e,t,n,r=0){let i=`${t}|${n}|${r}|${e}`;if(_e.has(i))return _e.get(i);he||(he=document.createElementNS(U,`svg`),he.setAttribute(`width`,`10`),he.setAttribute(`height`,`10`),he.setAttribute(`aria-hidden`,`true`),he.classList.add(`measure`),ge=document.createElementNS(U,`text`),he.appendChild(ge),document.body.appendChild(he)),ge.setAttribute(`class`,t),ge.setAttribute(`font-size`,String(n)),ge.setAttribute(`letter-spacing`,`${r}em`),ge.textContent=e;let a=ge.getComputedTextLength();return document.fonts.status===`loaded`&&_e.set(i,a),a}function G(e,t,n,{cls:r=`ax`,size:i=40,fill:a=p,anchor:o=`start`,ls:s=0,op:c=1,ov:l=``}={}){return`<text class="${r}" x="${e.toFixed(1)}" y="${t.toFixed(1)}" font-size="${i.toFixed(1)}" fill="${a}" text-anchor="${o}" letter-spacing="${s}em"${c<1?` opacity="${c}"`:``}${l?` data-ov="${l}"`:``}>${me(n)}</text>`}var K=(e,t,n,r=0)=>n/W(e,t,100,r)*100,q=(e,t,n,r=0,i=1e9)=>Math.min(i,...e.map(e=>K(e,t,n,r))),J=(e,t,n)=>Math.abs(n-1)<1e-4?``:`translate(${e.toFixed(1)} ${t.toFixed(1)}) scale(${n.toFixed(4)}) translate(${(-e).toFixed(1)} ${(-t).toFixed(1)})`,Y=(e,t)=>Math.abs(e)>.05||Math.abs(t)>.05?`translate(${e.toFixed(1)} ${t.toFixed(1)})`:``,ve=(...e)=>e.filter(Boolean).join(` `),X=(e,t,n,r,i,a=1)=>`<rect x="${e.toFixed(1)}" y="${t.toFixed(1)}" width="${n.toFixed(1)}" height="${r.toFixed(1)}" fill="${i}"${a<1?` opacity="${a.toFixed(3)}"`:``}/>`,ye=(e,t,n,r)=>`M${e.toFixed(1)} ${t.toFixed(1)}h${n.toFixed(1)}v${r.toFixed(1)}h${(-n).toFixed(1)}z`;function be(e,t,n){let r=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),i=r(e),a=r(t);return`#`+i.map((e,t)=>Math.round(e+(a[t]-e)*n).toString(16).padStart(2,`0`)).join(``)}var xe=(e,t,n=.08)=>e<t?1:1+n*(1-ie(e-t,{freq:3.2,zeta:.42}));function Se(e,t,n=120,r=1/3){let i=(e-(t-r))/r;if(i<-.25||e>t+.25)return{hop:0,sx:1,sy:1};if(i<0){let e=(i+.25)/.25;return{hop:0,sx:1+.12*e,sy:1-.14*e}}if(i<1)return{hop:n*Math.sin(Math.PI*i),sx:.94,sy:1.08};let a=1-I((e-t)/(2/12));return{hop:0,sx:1+.16*a,sy:1-.18*a}}function Ce(e,t=0,n=1e9){if(e<t||e>=n+.3)return 0;let r=t+Math.floor((e-t)/z(1)+1e-6)*z(1);if(r>n)return 0;let i=e-r;return i<.06666666666666667?i/(2*B):Math.exp(-(i-2*B)*12)}function Z(e,t,{from:n=0,every:r=2,off:i=0,h:a=26}={}){if(t.reduced||e<n)return 0;let o=(e-n-z(i))/z(r);if(o<0)return 0;let s=o-Math.floor(o);return s<.5?a*Math.sin(Math.PI*s/.5):0}var we=(e,t,n=0,r=3.1)=>!t.reduced&&e>.4&&(e+n)%r<.06666766666666667;function Te(e,t,n=.02,r=4,i=0){if(t.reduced)return{};let a=Math.sin(2*Math.PI*e/z(r)+i);return{sy:1+n*a,sx:1-n*.6*a}}function Q(e,t,n,r=.07){return e<t?null:n.reduced?{s:1,op:I((e-t)/.3)}:{s:xe(e,t,r),op:1}}function Ee(e,t,n=[0],r=12){if(t.reduced)return 10;let i=r+5*Math.sin(e*1.3);for(let t of n)e>=t&&e<t+.6&&(i=oe(2,i,1-Math.exp(-(e-t)*4)));return i}function De(e,t,n){if(t.reduced)return``;let r=0,i=0;for(let[t,a,o]of n)if(e>=t&&e<t+.8){let n=Math.exp(-(e-t)*o)*a;r+=ae(t*9+(e-t)*34)*n,i+=ae(t*5+40+(e-t)*37)*n}return Y(r,i)}function Oe(e,t,n,r=.05,i=.12){let a=e.P?72:80,o=Math.ceil(e.W/a)+1,s=Math.ceil(e.H/a)+1,c=``,l=``,u=Math.floor(Math.max(0,t)/z(1)+1e-6);for(let e=0;e<s;e++)for(let t=0;t<o;t++){let n=`M${t*a+20} ${e*a+20}h14v26h-14z`;(t+e)%8==u%8?l+=n:c+=n}return{dim:`<path d="${c}" fill="${n}" opacity="${r}"/>`,hot:`<path d="${l}" fill="${n}" opacity="${i}"/>`}}function ke(e,t,n=p,r=m){let i=W(e,`monob`,t)+t*.8,a=t*1.35;return{w:i,h:a,svg:`<rect x="${(-i/2).toFixed(1)}" y="${(-a).toFixed(1)}" width="${i.toFixed(1)}" height="${a.toFixed(1)}" rx="${(t*.12).toFixed(1)}" fill="${r}"/>`+G(0,-a*.3,e,{cls:`monob`,size:t,fill:n,anchor:`middle`})}}var Ae=e=>e.replace(/<g data-part="arm-front">[\s\S]*?<\/g><\/g>/,`<g data-part="arm-front"></g>`);function je(e){if(!Number.isFinite(e)||e===0)return`0`;let t=e<0?`-`:``,n=Math.abs(e);if(n<1e-4)return`${t}<0.0001`;let r=Number(n.toPrecision(2));if(r>=1e3)return`${t}${Math.round(r).toLocaleString(`en-US`)}`;let i=Math.max(0,1-Math.floor(Math.log10(r))),a=r.toFixed(i);return`${t}${i>0?a.replace(/(\.\d*?[1-9])0+$|\.0+$/,`$1`):a}`}var Me=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ne={en:`English`,de:`German`,fr:`French`,es:`Spanish`,it:`Italian`,pt:`Portuguese`,ru:`Russian`,zh:`Chinese`,ja:`Japanese`,ko:`Korean`,tr:`Turkish`,pl:`Polish`,nl:`Dutch`},Pe={"✅":`the green check`,"🚀":`the rocket`,"🔍":`the magnifying glass`,"✨":`the sparkles`,"🙌":`the raised hands`,"🧪":`the test tube`},Fe=[`one word`,`2 to 3`,`4 to 10`,`11 to 30`,`31 to 100`,`101 to 300`,`over 300`],$=e=>Math.round(e).toLocaleString(`en-US`),Ie=e=>`${Math.round(e*100)}%`,Le=e=>e===0?`zero times`:e===1?`once`:e===2?`twice`:`${$(e)} times`,Re=e=>`${String(e).padStart(2,`0`)}:00`,ze=e=>{let t=e.replace(/'/g,`’`).replace(/’/g,`'`);return t.charAt(0).toUpperCase()+t.slice(1)+(/(^| )(the|at|you)$/.test(t)?`…`:``)},Be=e=>e+(/(^| )(the|at|you)$/.test(e)?`…`:``);function Ve(e,t=`count`){let n=[...e].sort((e,n)=>n[t]-e[t]);return!n.length||n[1]&&n[1][t]===n[0][t]?null:n[0]}function He(e,t){return e?Object.entries(e).every(([e,n])=>{if(e===`all`)return n.every(e=>He(e,t));if(e===`any`)return n.some(e=>He(e,t));if(e===`exists`)return t[n]!==void 0&&t[n]!==null;let[r,i]=n,a=t[r];if(a==null)return!1;if(e===`eq`)return a===i;if(e===`gt`)return a>i;if(e===`gte`)return a>=i;if(e===`lte`)return a<=i;throw Error(`unknown op ${e}`)}):!1}function Ue({bank:e,categories:t}){let n=new Map(t.map(e=>[e.id,new Set(e.phrases)])),r=Object.keys(e).filter(e=>e!==`_meta`&&!/^content-(consent|terminal|scan|interstitial|presentation|forget|receipt|review)/.test(e)),i=(e,t)=>{let n=!0,r=e.replace(/\{(\w+)\}/g,(e,r)=>r in t?t[r]:(n=!1,e));return n?r:null};function a(e,t={}){let r=e.content,i={"cfact.on":!!r,"cfact.presentation":!!t.presentation,"report.isDemo":t.isDemo??!1,"ui.surface":`film`},a={};if(!r)return{s:i,t:a};Object.assign(i,{"fact.session":e.mainEvent?.eligible===!0,"fact.stableTime":!0,"report.capabilities.toolNames":e.capabilities?.toolNames,"report.mainEvent.toolCalls":e.mainEvent?.toolCalls});let o=i[`cfact.presentation`],s=e=>r.lexicon.find(t=>t.id===e),c=e=>s(e)?.total??0,l=(e,t)=>{let n=s(e);if(!n)return 0;let r=n.topTerms.find(e=>e.term===t);return r?r.count:n.headline&&t in n.headline?n.headline[t]:n.topTerms.length<5?0:void 0},u=(e,t=[])=>Ve((s(e)?.topTerms??[]).filter(e=>!t.includes(e.term))),{style:d,combos:f,emoji:p}=r,m=r.safety??{secret:0,pii:0,identifier:0},h=(e,t)=>{i[e]=t},g=s(`agent-agree`);h(`cfact.catchphrase`,c(`agent-agree`)>=10&&(g?.sessions??0)>=3);let _=l(`agent-agree`,`you're absolutely right`),v=l(`agent-agree`,`you are absolutely right`);_!==void 0&&v!==void 0&&(h(`cval.absRight`,_+v),h(`cval.absRightPerDay`,Math.round((_+v)/e.capturedWindow.activeDays*10)/10));let y=u(`agent-agree`);y&&(h(`cval.agreeTop`,y.term),h(`cval.agreeTopN`,y.count),a.agreeTop=ze(y.term),a.agreeTopN=$(y.count)),a.absRightN=$(i[`cval.absRight`]??0),a.absRightPerDay=String(i[`cval.absRightPerDay`]??0),a.agreeN=$(c(`agent-agree`));let b=f.apologies.agent,x=f.apologies.user;h(`cval.agentSorry`,b),h(`cval.userSorry`,x),h(`cfact.apologyLedger`,b>=5&&x>=5||b>=20&&x===0),h(`cfact.agentsSorrier`,i[`cfact.apologyLedger`]&&b>x*1.1),h(`cfact.youSorrier`,i[`cfact.apologyLedger`]&&x>b*1.1),h(`cfact.sorryEven`,i[`cfact.apologyLedger`]&&b>=5&&x>=5&&Math.max(b,x)<=Math.min(b,x)*1.1),Object.assign(a,{agentSorryN:$(b),userSorryN:$(x),userSorryTimes:Le(x)});let S=c(`please`),C=c(`thanks`);h(`cval.please`,S),h(`cval.thanks`,C),h(`cfact.manners`,S+C>=20),h(`cfact.thanksOverPlease`,i[`cfact.manners`]&&C>S&&S>=2),Object.assign(a,{pleaseN:$(S),thanksN:$(C),pleaseTimes:Le(S),thanksTimes:Le(C)}),h(`cfact.oneWord`,d.oneWord>=25&&(d.oneWordTop?.count??0)>=10),d.oneWordTop&&(h(`cval.oneWordTop`,d.oneWordTop.term),h(`cval.oneWordTopShare`,d.oneWordTop.count/d.oneWord),a.oneWordTop=Be(d.oneWordTop.term),a.oneWordTopN=$(d.oneWordTop.count)),a.oneWordN=$(d.oneWord);let w=c(`swear-mild`)+c(`swear-strong`);h(`cval.swear`,w),h(`cfact.swearJar`,!o&&w>=10&&f.swearSessions>=3);let T=f.swearPeakHour;h(`cfact.swearPeak`,i[`cfact.swearJar`]&&T!==null&&(s(`swear-mild`)?.byHour[T]??0)+(s(`swear-strong`)?.byHour[T]??0)>=10);let E=u(`swear-mild`),D=u(`swear-strong`);h(`cfact.swearTopStrong`,i[`cfact.swearJar`]&&D&&(!s(`swear-mild`)||E&&D.count>E.count)),h(`cfact.swearMildOnly`,i[`cfact.swearJar`]&&c(`swear-strong`)===0),h(`cfact.swearPeakIsPromptHour`,i[`cfact.swearPeak`]&&e.rhythm?.solarNoon?.eligible&&T===Math.floor(e.rhythm.solarNoon.peakMinuteOfDay/60)),h(`cfact.swearJarEmpty`,!o&&w===0&&d.prompts>=500);let O=Ve([...s(`swear-mild`)?.topTerms??[],...s(`swear-strong`)?.topTerms??[]]);O&&(a.swearTopCensored=O.term,a.swearTopN=$(O.count)),D&&i[`cfact.swearTopStrong`]&&(a.swearTopCensored=D.term,a.swearTopN=$(D.count)),Object.assign(a,{swearN:$(w),promptsN:$(d.prompts)}),T!==null&&(a.swearPeakHour=Re(T));let k=s(`why`);h(`cfact.why`,c(`why`)>=25);let A=f.whyPeakHour;h(`cfact.whyPeak`,i[`cfact.why`]&&A!==null&&(k?.byHour[A]??0)>=10),h(`cfact.whyLate`,i[`cfact.whyPeak`]&&[22,23,0,1,2,3,4].includes(A)),h(`cfact.nightWhy`,i[`cfact.why`]&&e.rhythm?.longestNight?.eligible&&(f.whyDuringLongestNight??0)>=3),k&&(h(`cval.whyEvery`,Math.round(d.prompts/k.messages)),a.whyEvery=String(i[`cval.whyEvery`])),a.whyN=$(c(`why`)),A!==null&&(a.whyPeakHour=Re(A),a.whyDaypart=A>=5&&A<=11?`morning`:A<=16&&A>=12?`afternoon`:A>=17&&A<=21?`evening`:`night`),f.whyDuringLongestNight!==null&&e.rhythm?.longestNight&&(a.nightWhyN=$(f.whyDuringLongestNight),a.nightPromptsN=$(e.rhythm.longestNight.humanPrompts),a.spanStart=e.rhythm.longestNight.startTimeLabel,a.spanEnd=e.rhythm.longestNight.endTimeLabel);let j=u(`agent-confident`,[`perfect`,`excellent`]),M=u(`not-working`)??Ve((s(`again-still`)?.topTerms??[]).filter(e=>[`same error`,`same issue`,`same problem`,`once again`].includes(e.term)));j&&(h(`cval.confTop`,j.term),h(`cval.confTopN`,j.count),a.confTop=ze(j.term),a.confTopN=$(j.count)),M&&(h(`cval.brokenTop`,M.term),h(`cval.brokenTopN`,M.count),a.brokenTop=ze(M.term),a.brokenTopN=$(M.count)),h(`cfact.confidence`,c(`agent-confident`)>=10&&c(`not-working`)+c(`again-still`)>=10&&!!j&&(M?.count??0)>=10),h(`cfact.confidenceLoud`,i[`cfact.confidence`]&&j.count>=10*M.count),h(`cfact.youOutvoted`,i[`cfact.confidence`]&&M.count>j.count),Object.assign(a,{confN:$(c(`agent-confident`)),notWorkingN:$(c(`not-working`))});let N=u(`instruction`);h(`cfact.instruction`,!!N&&N.count>=20&&N.sessions>=5),N&&(h(`cval.instrTop`,N.term),a.instrTop=Be(N.term),a.instrTopN=$(N.count));let P=l(`agent-confident`,`perfect`),ee=l(`agent-confident`,`excellent`),te=(ee??0)>(P??0)?`excellent`:`perfect`,F=te===`perfect`?P:ee,ne=l(`praise`,te);h(`cval.gradeTerm`,te),h(`cval.agentGrade`,F),h(`cval.userGrade`,ne),h(`cfact.gradeInflation`,(P??0)+(ee??0)>=20&&(F??0)>=20),h(`cfact.agentsGradeOnCurve`,i[`cfact.gradeInflation`]&&ne!==void 0&&ne>=1&&F>=5*ne),h(`cfact.youGradeEasy`,i[`cfact.gradeInflation`]&&ne!==void 0&&ne>F);let I=u(`praise`);h(`cfact.praise`,c(`praise`)>=50&&!!I),I&&(a.praiseTop=Be(I.term),a.praiseN=$(c(`praise`))),Object.assign(a,{gradeTermCap:ze(te),agentGradeN:$(F??0),userGradeN:$(ne??0),userGradeTimes:Le(ne??0)});let re=f.agentOpener;h(`cfact.openers`,!!re&&re.count>=20&&re.sessions>=5),h(`cfact.openerShareable`,i[`cfact.openers`]&&!n.get(`agent-narration`).has(re.term)),re&&(h(`cval.openerTop`,re.term),a.openerTop=ze(re.term),a.openerTopN=$(re.count));let L=d.userExclaimPrompts,ie=d.agentExclaimReplies;h(`cval.userExclaim`,L),h(`cfact.exclaim`,ie>=50),h(`cfact.agentsExclaimMore`,i[`cfact.exclaim`]&&L>=1&&ie>=10*L),h(`cfact.youExclaimMore`,i[`cfact.exclaim`]&&L>ie),Object.assign(a,{agentExclaimN:$(ie),userExclaimN:$(L)});let R=u(`undo`);h(`cfact.undo`,c(`undo`)>=10),R&&(h(`cval.undoTop`,R.term),h(`cval.undoTopN`,R.count),a.undoTop=R.term,a.undoTopN=$(R.count)),a.undoN=$(c(`undo`)),h(`cfact.caps`,d.capsPrompts>=5),h(`content.style.capsPrompts`,d.capsPrompts),a.capsN=$(d.capsPrompts),h(`cfact.lowercaseBase`,d.promptsWithLetters>=200),h(`content.style.lowercaseShare`,d.lowercaseShare),Object.assign(a,{lowercasePct:Ie(d.lowercaseShare),capitalPct:Ie(1-d.lowercaseShare)}),h(`cfact.questionsBase`,d.prompts>=200),h(`content.style.questionShare`,d.questionShare),Object.assign(a,{questionPct:Ie(d.questionShare),questionPer100:String(Math.round(d.questionShare*100))}),h(`cfact.length`,d.prompts>=50);let ae=0,oe=0;for(let e=0;e<d.lengthBuckets.length;e++)if(ae+=d.lengthBuckets[e],ae>=d.prompts/2){oe=e;break}h(`cfact.medianMultiWord`,i[`cfact.length`]&&oe>0);for(let e of[`oneWord`,`longestWords`,`longestMonth`,`codeShareEstimate`])h(`content.style.${e}`,d[e]);Object.assign(a,{medianRange:Fe[oe],longestWords:$(d.longestWords),longestPages:$(d.longestWords/500)}),d.longestMonth&&(a.longestMonth=Me[d.longestMonth-1]);let se=e=>e.reduce((e,t)=>e+t.count,0),ce=se(p.user),z=se(p.agent);h(`cval.userEmojiTotal`,ce),h(`cval.agentEmojiTotal`,z),h(`cfact.emoji`,p.total>=20&&(p.user.length>0||p.agent.length>0));let B=Ve(p.user),le=Ve(p.agent);h(`cfact.agentEmoji`,i[`cfact.emoji`]&&!!le),h(`cfact.userEmoji`,i[`cfact.emoji`]&&!!B),h(`cfact.userEmojiMore`,i[`cfact.emoji`]&&ce>z),h(`cfact.sameFavEmoji`,!!(B&&le&&B.emoji===le.emoji)),le&&(a.agentEmojiName=Pe[le.emoji],a.agentEmojiTopN=$(le.count)),B&&(a.userEmojiName=Pe[B.emoji],a.userEmojiTopN=$(B.count)),Object.assign(a,{agentEmojiN:$(z),userEmojiN:$(ce)});let V=f.pleasePer100ByMonth.map((e,t)=>({v:e,i:t})).filter(e=>e.v!==null);if(h(`cfact.pleaseAny`,V.length>0&&S>=20),i[`cfact.pleaseAny`]){let e=V[0],t=V[V.length-1],n=V.map(e=>e.v);h(`cfact.pleaseYear`,V.length>=2&&t.i-e.i>=3),h(`cfact.pleaseDown`,i[`cfact.pleaseYear`]&&e.v>=3&&t.v<=.7*e.v),h(`cfact.pleaseUp`,i[`cfact.pleaseYear`]&&t.v>=1.3*e.v&&t.v>=3),h(`cfact.pleaseFlat`,V.length>=3&&Math.max(...n)-Math.min(...n)<=3);let r=Ve(V,`v`);h(`cfact.pleasePolitest`,V.length>=2&&!!r),Object.assign(a,{pleaseFirstRate:$(e.v),pleaseFirstMonth:Me[e.i],pleaseLastRate:$(t.v),pleaseLastMonth:Me[t.i],pleaseAvgRate:$(n.reduce((e,t)=>e+t,0)/n.length)}),r&&Object.assign(a,{politeMonth:Me[r.i],politeMonthRate:$(r.v)})}let H=f.thanksLastPromptLong,ue=f.thanksLastPromptShort;h(`cfact.thanksSessions`,H!==null&&ue!==null),h(`content.combos.thanksLastPromptLong`,H),i[`cfact.thanksSessions`]&&(h(`cfact.thanksLongWins`,H>=ue+.15),h(`cfact.thanksMostLong`,H>=.5),h(`cfact.thanksShortWins`,ue>=H+.15),Object.assign(a,{thanksLongPct:Ie(H),thanksShortPct:Ie(ue)})),h(`cfact.streak`,f.goOnStreak>=5),a.streakN=$(f.goOnStreak),h(`cfact.codeShare`,d.prompts>=50);let de=[[.6,`3 in 5`],[2/3,`2 in 3`],[.75,`3 in 4`],[.8,`4 in 5`],[.9,`9 in 10`]].find(([e])=>Math.abs(e-d.codeShareEstimate)<=.03);de&&(h(`cval.codeFraction`,de[1]),a.codeFraction=de[1]),Object.assign(a,{codePct:Ie(d.codeShareEstimate),prosePct:Ie(1-d.codeShareEstimate)}),h(`cfact.stack`,d.stackLines>=100),h(`cval.stackLines`,d.stackLines),a.stackN=$(d.stackLines);let fe=Object.entries(f.thanksByLanguage).filter(([,e])=>e>=5).sort((e,t)=>t[1]-e[1]);h(`cfact.multiThanks`,!o&&fe.length>=2),fe.length>=2&&Object.assign(a,{thanksLangN:$(fe.length),thanksLang1:Ne[fe[0][0]],thanksLang2:Ne[fe[1][0]]});let pe=Object.entries(d.scripts),me=pe.reduce((e,[,t])=>e+t,0),U=pe.filter(([,e])=>e/me>=.02).sort((e,t)=>t[1]-e[1]).map(([e])=>e);h(`cfact.scripts`,!o&&U.length>=2);let he=e=>e.length<2?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`;U.length>=2&&Object.assign(a,{scriptsN:$(U.length),scriptList:he(U),topScript:U[0],otherScriptList:he(U.slice(1))});let ge=t.kept??(t.lintKeepFirst?{phrases:r.private?.phrases.slice(0,1)??[],words:r.private?.words??[],openers:r.private?.openers.slice(0,1)??[]}:{phrases:[],words:[],openers:[]}),_e=ge.phrases[0],W=ge.words,G=ge.openers[0];h(`cfact.phrase`,!o&&!!_e),_e&&(h(`cval.phraseDays`,_e.days),Object.assign(a,{phrase:_e.term,phraseMinN:$(_e.count),phraseSessionsN:$(_e.sessions),phraseDaysN:$(_e.days)})),h(`cfact.yourWords`,!o&&W.length>=2),h(`cfact.yourWordRare`,i[`cfact.yourWords`]&&W[0].agentCountAtMost*10<=W[0].count),W.length>=2&&Object.assign(a,{yourWordsList:he(W.slice(0,3).map(e=>e.term)),yourWord1:W[0].term,yourWord1N:$(W[0].count)}),h(`cfact.openingMove`,!o&&d.prompts>=50&&!!G&&G.count>=10),G&&(h(`cval.openingTop`,G.term),h(`cval.openingEvery`,Math.round(d.prompts/G.count)),Object.assign(a,{openingTop:G.term,openingTopN:$(G.count),openingEvery:$(d.prompts/G.count)}));for(let e of[`secret`,`pii`,`identifier`])h(`content.safety.${e}`,m[e]);return h(`cfact.safety`,!o&&m.secret+m.pii+m.identifier>0),Object.assign(a,{secretCountCap:m.secret===1?`One string`:`≈ ${$(m.secret)} strings`,piiCount:m.pii===1?`one thing`:`≈ ${$(m.pii)} things`,identifierCount:$(m.identifier)}),Object.assign(a,{year:String(e.year),sessionDuration:`≈ ${Math.floor(e.mainEvent.activeMinutes/60)} h ${e.mainEvent.activeMinutes%60} min`,sessionTools:`${$(e.mainEvent.toolCalls)} tool calls`,userTextsN:$(r.receipt.recordsSeen.user),agentTextsN:$(r.receipt.recordsSeen.agent)}),h(`cfact.anyChapter`,Object.keys(i).some(e=>/^cfact\.(catchphrase|apologyLedger|manners|oneWord|swearJar|why|confidence|instruction|gradeInflation|openers|exclaim|undo|caps|lowercaseBase|questionsBase|length|emoji|pleaseAny|thanksSessions|streak|codeShare|stack|multiThanks|scripts|phrase|yourWords|openingMove)$/.test(e)&&i[e])),{s:i,t:a}}function o(t,n,r,a=[]){let o=e[t]||[],s=[...a.map(e=>o.find(t=>t.id===e)).filter(Boolean),...o];for(let e of s){if(!He(e.when,n))continue;let a=i(e.text,r);if(a)return{beat:t,id:e.id,text:a,tone:e.tone,epistemic:e.epistemic}}return null}function s(e,t){return r.map(n=>o(n,e,t)).filter(Boolean).map(e=>`${e.beat.replace(`content-`,``)}.${e.id}: ${e.text}`)}return{derive:a,pick:o,playAll:s,render:i,filmBeats:r,bank:e}}var We={"content-please":`Manners`,"content-thanks":`Manners`,"content-why":`Why`,"content-swear-mild":`Swear`,"content-swear-strong":`Swear`,"content-agent-agree":`Catchphrase`,"content-agent-sorry":`Apology`,"content-sorry-user":`Apology`,"content-agent-confident":`Confidence`,"content-not-working":`Confidence`,"content-agent-praise":`Perfect`,"content-instruction":`Instruction`,"content-undo":`Undo`};function Ge(e,t,n,r){if(!t?.on||!n.length)return null;let i={...t.s,"ui.shareSwear":!!r};for(let e of n)We[e]&&(i[`ui.shareContent${We[e]}`]=!0);return e.pick(`content-share-caption`,i,t.t)?.text||null}function Ke(e,t,{presentation:n=!1,kept:r=null,isDemo:i=!1}={}){let a=t.content;if(!a)return{on:!1,slides:[],mainEvent:null};let{s:o,t:s}=e.derive(t,{presentation:n,kept:r||{phrases:[],words:[],openers:[]},isDemo:i}),c=e=>a.lexicon.find(t=>t.id===e),l=e=>e?.display||e?.term,u=(t,n)=>{for(let[r,i,a]of n){let n=e.pick(r,o,s,a||[]);if(n)return{...n,variant:n.id,...i(n),id:t}}return null},d=e=>[...c(e)?.topTerms??[]].sort((e,t)=>t.count-e.count)[0],f=u(`c1`,[[`content-catchphrase`,e=>e.id===`top-line`?{hero:{who:`AGENTS`,term:o[`cval.agreeTop`]?ze(o[`cval.agreeTop`]):null,n:s.agreeTopN}}:e.id===`plain`?{hero:{who:`AGENTS`,term:null,n:s.agreeN}}:{hero:{who:`AGENTS`,term:`You’re absolutely right`,n:s.absRightN}}],[`content-grade-inflation`,()=>({hero:{who:`AGENTS`,term:s.gradeTermCap,n:s.agentGradeN}})],[`content-openers`,()=>({hero:{who:`AGENTS`,term:s.openerTop,n:s.openerTopN}})]]),p=u(`c1b`,[[`content-phrase`,()=>({hero:{who:`YOU`,term:s.phrase,n:`${s.phraseSessionsN}+`,unit:`sessions`}})]]),m=u(`c2`,[[`content-apology`,()=>({ledger:{agent:o[`cval.agentSorry`],user:o[`cval.userSorry`]}})]]),h=u(`c3`,[[`content-manners`,()=>({manners:{please:o[`cval.please`],thanks:o[`cval.thanks`],pleaseLabel:l(d(`please`))||`Please`,thanksLabel:l(d(`thanks`))||`Thanks`}})]]),g=n?null:u(`c4`,[[`content-swear-jar`,e=>e.id===`empty-jar`?null:{jar:{n:o[`cval.swear`],terms:[...c(`swear-strong`)?.topTerms??[],...c(`swear-mild`)?.topTerms??[]].map(e=>e.term)}}]]),_=(g&&g.jar?g:null)||u(`c4`,[[`content-one-word`,()=>({hero:{who:`YOU`,term:s.oneWordTop?ze(s.oneWordTop.replace(/…$/,``)):null,n:s.oneWordTopN}})],[`content-undo`,()=>({hero:{who:`YOU`,term:s.undoTop?ze(s.undoTop):null,n:s.undoTopN||s.undoN}})]]),v=u(`c5`,[[`content-confidence`,()=>({reviews:{agentTerm:s.confTop,agentN:o[`cval.confTopN`],userTerm:s.brokenTop,userN:o[`cval.brokenTopN`]}})],[`content-instruction`,()=>({hero:{who:`YOU`,term:s.instrTop?ze(s.instrTop):null,n:s.instrTopN}})]]),y=u(`c6`,[[`content-why`,e=>({clock:[`late-hours`,`daypart`].includes(e.id)&&s.whyPeakHour?{hour:s.whyPeakHour}:null,hero:{who:`YOU`,term:`Why`,n:s.whyN}}),[`late-hours`,`daypart`]],[`content-questions`,()=>({hero:{who:`YOU`,term:null,n:s.questionPct}})]]),b=[f,m,h,_,v,y].filter(Boolean).length>=3,x=b?u(`c0`,[[`content-bridge`,()=>({})]]):null,S=b?[x,f,p,m,h,_,v,y].filter(Boolean):[],C=e.pick(`content-main-event`,o,s),w=`What were you building? `,T=C?.text||e.bank?.[`content-main-event`]?.find(e=>e.id===`only-counted`)?.text||``;return{on:!0,playable:b,slides:S,mainEvent:C,punchline:T.includes(w)?T.split(w)[1]:null,s:o,t:s}}var qe=e=>u(n,`crew`,e)??``,Je={title:qe({"ui.crewPart":`title`}),line:qe({"ui.crewPart":`line`}),never:qe({"ui.crewPart":`never`}),verb:e=>qe({"ui.crewFamily":e})},Ye=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`],Xe=e=>e[0].toUpperCase()+e.slice(1),Ze=e=>e.toLocaleString(`en-US`),Qe=e=>Number(Number(e).toPrecision(3)),$e=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],et=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],tt=(e,t,n)=>`${Ze(e)} ${e===1?t:n}`,nt=e=>10**Math.floor(Math.log10(Math.max(1e-9,e))),rt=e=>Math.max(1,Math.round(e/nt(e))*nt(e)),it=e=>Math.ceil(e/nt(e))*nt(e);function at(e,t){let n=rt(e*.2),r=rt(e*.6),i=it(e);if(r<=n&&(r=n+nt(n)),(i<=e||i===t)&&(i+=nt(i)),[n,r].filter(n=>n<e&&n!==t).length<2)return null;let a=(i-e)/e<=.1;return{opts:[{v:n,who:`bash`,label:`${Ze(n)} h?`,aria:`${Ze(n)} hours`,low:!0},{v:r,who:`todo`,label:`${Ze(r)} h?`,aria:`${Ze(r)} hours`,low:!0},{v:i,who:`fork`,label:`${Ze(i)} h+?`,aria:`${Ze(i)} hours or more`,low:!1}],highLine:a?`Lower. Barely.`:`Lower.`}}function ot(e,{forceCoarse:t=!1}={}){let n=Number((e.capturedWindow?.startDate||`2026`).slice(0,4)),r=e.delegation?.parallelism?.wallClockHours??e.totals.wallClockActiveMinutes/60,i=(e.totals.wallClockSensitivity5m??NaN)/60,a=(e.totals.wallClockSensitivity15m??NaN)/60,o=!t&&[i,a].every(e=>Number.isFinite(e)&&Qe(e)===Qe(r)),s=o||r<100?Math.round(r):Math.round(r/10)*10,c=Math.round(r/24),l=e.rhythm?.longestNight,u=l?.eligible&&!l.isDayFallback?{start:l.startTimeLabel,end:l.endTimeLabel,hours:l.activeMinutes/60,minutes:l.activeMinutes}:null,d=1e3-s,f=o&&s<1e3&&d>=1&&d<=12?`${Xe(Ye[d])} short of a thousand.`:null,p=!o&&r<1e3&&r>=900?`Just shy of a thousand.`:null,m=!!(f&&u&&r+u.hours>=1e3),h=e=>new Date(e+`T00:00:00Z`),g=e=>{let t=h(e);return`${$e[t.getUTCMonth()]} ${t.getUTCDate()}`},_=e.capturedWindow||{},v=_.startDate&&_.endDate?_.isFullYear?`${n}, the full year`:`${g(_.startDate)} – ${g(_.endDate)}`:``,y=null;if(u&&l.dateRangeLabel){let[e,t]=l.dateRangeLabel.split(/\s+[–-]\s+/).map(h),n=e=>`${et[e.getUTCDay()]} ${e.getUTCDate()}`,r=$e[(t||e).getUTCMonth()];y=(t&&+t!=+e?`${n(e)} → ${n(t)} ${r}`:`${n(e)} ${r}`)+(l.humanPrompts?` · ${l.humanPrompts} prompts`:``)}let b=at(r,s),x=e.totals.compactions||0;return{...ft(e,{hoursStr:Ze(s),md:g,MON:$e}),year:n,yearStr:String(n),precise:o,compactions:x,sessions:e.totals.sessions,activeDays:_.activeDays,hours:r,hoursR:s,hoursStr:Ze(s),days:c,window:v,nightHeader:y,gapR:d,sixShort:f,shy:p,night:u,oneMoreNight:m,quiz:b,lines:{compact:x>0?[`/compact ×${Ze(x)}`,`Your agents compacted their context ${tt(x,`time`,`times`)} this year.`]:null,sessions:tt(e.totals.sessions,`session`,`sessions`),daysLabel:_.activeDays===1?[`day with`,`an agent open.`]:[`days with`,`an agent open.`],daysLine:r>=48?`That’s ≈ ${c} days.`:null,gap:f||p,night:u?`Your longest night.`:null,more:m?[`One more night like this`,`would have done it.`]:null,talk:u?`We need to talk about ${u.end}.`:`We need to talk.`}}}var st=e=>Math.round(e*100),ct={sessions:`sessions`,launches:`subagents launched`,written:`tokens written`,"cache-share":`reads from cache`,streak:`longest streak`,parallelism:`parallelism`},lt={execute:`bash`,modify:`patch`,investigate:`grep`,plan:`todo`,delegate:`fork`,research:`curl`},ut={conductor:`fork`,architect:`todo`,"pair-programmer":`patch`,archaeologist:`grep`,surgeon:`patch`,"shell-whisperer":`bash`,"deep-diver":`grep`,nomad:`curl`,metronome:`todo`,sprinter:`bash`,"free-radical":`curl`,rookie:`patch`},dt=e=>{let t=Math.floor(e/60),n=Math.round(e%60);return t?`≈ ${t} h${n?` ${n} min`:``}`:`≈ ${n} min`};function ft(e,{hoursStr:t,md:n}){let r={},i=e.capturedWindow?.perHarness||[],a=e.evolution?.harnessPolyglot;if(i.length){let e=new Map((a?.shares||[]).map(e=>[e.displayName,e.share])),t=i.every(t=>e.has(t.displayName)),n=i.reduce((e,t)=>e+t.sessions,0)||1,o=i.map(r=>({name:r.displayName,sessions:r.sessions,days:r.activeDays,share:t?e.get(r.displayName):r.sessions/n})).sort((e,t)=>t.share-e.share).map(e=>({...e,pctLabel:`${st(e.share)}%`,kind:t?`of prompts`:`of sessions`,stats:`${Ze(e.sessions)} ${e.sessions===1?`session`:`sessions`} · ${Ze(e.days)} ${e.days===1?`day`:`days`}`})),s=a?.switchDays||0;r.harness={rows:o,count:o.length,loyal:o.length===1,title:o.length===1?`Loyal.`:`Your harnesses.`,line:o.length>1&&s>=7?`On ${Ze(s)} coding days, you had more than one harness going. Why choose.`:null}}let o=e.craft?.toolMix||[],s=o.filter(t=>lt[t.family]&&(t.count>0||t.family===`research`&&e.capabilities?.toolNames===`present`)).map(e=>({family:e.family,id:lt[e.family],verb:Je.verb(e.family),share:e.share,count:e.count,pctLabel:e.count>0?`${Math.max(1,st(e.share))}%`:`0`})).sort((e,t)=>t.share-e.share);s.filter(e=>e.count>0).length>=2&&(r.crew={fams:s,leader:s[0].id});let c=e.delegation?.orchestra;c?.eligible&&c.totalSpawns>=2&&c.maxConcurrent>=2&&(r.orchestra={spawns:Ze(c.totalSpawns),peak:c.maxConcurrent,line1:`${Ze(c.totalSpawns)} subagents.`,line2:`${c.maxConcurrent} at once.`});let l=e.craft?.pilotSplit,u=e.craft?.leashLength;if(l?.eligible){let e=st(l.agentActionsShare),t=100-e;r.pilot={agent:e,you:t,line1:`Agents took ${e}% of the turns.`,line2:`You took ${t}%.`,leash:u?.eligible?`Median: ${Ze(u.median)} ${u.unit===`tool-calls`?u.median===1?`tool call`:`tool calls`:u.median===1?`request`:`requests`} before you stepped back in.`:null}}let d=e.craft?.bounceBack;d?.eligible&&d.totalErrors>=10&&d.recoveryRate!=null&&(r.bounce={errors:d.totalErrors,line1:`${Ze(d.totalErrors)} tool errors.`,line2:`${st(d.recoveryRate)}% shaken off within 3 steps.`,rate:d.recoveryRate,nemesis:d.nemesisFamily&&d.nemesisErrorRate!=null?d.nemesisFamily===`execute`?`The terminal put up a fight. ${st(d.nemesisErrorRate)}% of commands errored.`:`Toughest tool: ${d.nemesisFamily}. ${st(d.nemesisErrorRate)}% of those calls errored.`:null});let f=e.mainEvent;if(f?.eligible&&f.activeMinutes>=30&&f.dateLabel){let t=[`One session.`,`${dt(f.activeMinutes)}.`];f.toolCalls>0&&e.capabilities?.toolNames===`present`&&t.push(`${Ze(f.toolCalls)} tool calls.`),r.mainevent={date:`${n(f.dateLabel)}.`,facts:t.join(` `),q:`What were you building?`,a:`We don’t know. We didn’t look.`}}let p=e.delegation?.unattended;p?.eligible&&p.totalHours>=1&&(r.nightshift={hours:`≈ ${je(p.totalHours)} hours`,rest:`of agent work ran 30+ min after your last prompt.`,joke:`Somebody pulled the night shift and it wasn’t you.`});let m=e.archetype;if(m){let t=(m.allScores||[]).filter(e=>e.eligible&&e.id!==m.id).sort((e,t)=>e.score-t.score).map(e=>e.name),n=t.length>=3?t:(m.allScores||[]).map(e=>e.name).filter(e=>e!==m.archetypeName),s=m.runnerUp?.name||null,l=[...n.filter(e=>e!==s).slice(-6),...s?[s]:[]],u=e.delegation?.parallelism,d=m.body;if(m.id===`conductor`&&c?.totalSpawns)d=`${Ze(c.totalSpawns)} subagents`+(u?.eligible?` · ≈ ${je(u.factor)}× parallelism`:``);else if(m.id===`nomad`&&i.length)d=`${i.length} harnesses`+(a?.switchDays?` · ${Ze(a.switchDays)} mixed days`:``);else if(m.id===`archaeologist`){let e=o.find(e=>e.family===`investigate`)?.count,t=o.find(e=>e.family===`modify`)?.count;d=e&&t?`${(e/t).toFixed(1)} reads for every edit.`:null}else m.isProvisional?d=`${Ze(e.totals.sessions)} ${e.totals.sessions===1?`session`:`sessions`} so far.`:/\d{4}/.test(d||``)&&(d=null);r.identity={id:m.id,title:m.title,name:m.archetypeName,chrono:m.chronotype&&!m.isProvisional?m.chronotype:null,provisional:!!m.isProvisional,tagline:m.isProvisional?`It’s too early to typecast you.`:m.tagline,runner:s,cycle:l,lead:ut[m.id]||`patch`,evidence:d}}return r.share={stats:(e.shareableStats||[]).filter(e=>e.defaultSelected&&!e.sensitiveByDefault&&(e.id!==`active-time`||t!==`0`)).slice(0,4).map(e=>e.id===`active-time`?{label:`hours with agents`,value:`≈ ${t}`}:{label:e.id===`sessions`&&e.value===`1`?`session`:ct[e.id]||e.label,value:e.epistemic===`estimated`&&!e.value.includes(`≈`)?`≈ ${e.value}`:e.value}),closing:`That was your ${(e.capturedWindow?.startDate||`2026`).slice(0,4)} with agents. Same time next year.`},r}var pt=(e,t)=>t.reduced?e:pe(e),mt=e=>e.P?e.W/1080:e.H/1080,ht=()=>{let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}},gt=(e,t,n,r=``,i={})=>({items:e,ground:t,fg:n,cam:r,...i});function _t(e,t){let n=e.split(` `);if(t<=1||n.length<2)return[e];let r=e.length/t,i=[],a=``;for(let e of n)a&&(a+` `+e).length>r*1.08&&i.length<t-1?(i.push(a),a=e):a=a?a+` `+e:e;return i.push(a),i}function vt(e,t,n,{x:r,y0:i,size:a,fill:o=p,plateFill:s=V,a:c,cls:l=`ax`,lh:u=1.06,mis:d=10,anchor:f=`start`}){if(!c)return i+(n.length-1)*a*u;let m=``,h=``;return n.forEach((e,t)=>{let n=i+t*a*u;m+=G(r,n,e,{cls:l,size:a,fill:s,ls:-.02,anchor:f}),h+=G(r,n,e,{cls:l,size:a,fill:o,ls:-.02,anchor:f})}),s&&e(t+`p`,m,ve(Y(d,d*.5),J(r,i,c.s)),c.op),e(t,h,J(r,i,c.s),c.op),i+(n.length-1)*a*u}var yt=_.violet,bt=_.orange,xt=_.green,St={Nocturnal:y.Nocturnal.fork,Twilight:{color:yt,shade:`#43307F`,eye:H},Dawn:{color:bt,shade:`#D9531C`,eye:p},Daylight:{color:H,shade:`#D8B900`,eye:p},"Round-the-Clock":{color:xt,shade:`#007E45`,eye:p}},Ct=(e,t,n,r=H)=>`<path d="M${e-n/2} ${t} L${e-n/2} ${t-n*.55} L${e-n*.25} ${t-n*.3} L${e} ${t-n*.68} L${e+n*.25} ${t-n*.3} L${e+n/2} ${t-n*.55} L${e+n/2} ${t} Z" fill="${r}" stroke="${p}" stroke-width="${(n*.06).toFixed(1)}" stroke-linejoin="round"/>`,wt=(e,t,n,r)=>`<path d="M${e} ${t} h${n} l${-n} ${n} h${n}" fill="none" stroke="${r}" stroke-width="${(n*.18).toFixed(1)}" stroke-linejoin="round" stroke-linecap="round"/>`,Tt=[`bash`,`patch`,`grep`,`todo`,`fork`];function Et(e){let t=e.harness,n=t.rows.length,r={title:0,row0:z(1),line:z(1)+n*z(1)+z(3)},i=r.row0+(n-1)*z(1),a=(t.line?r.line:i)+.3,o=[t.title,...t.rows.map(e=>`${e.name} ${e.pctLabel} ${e.kind} ${e.stats}`),t.line||``],s=(()=>{let e=t.rows.map(e=>e.share*5),n=e.map(Math.floor),r=5-n.reduce((e,t)=>e+t,0);return e.map((e,t)=>[e-n[t],t]).sort((e,t)=>t[0]-e[0]).forEach(([,e])=>{r>0&&(n[e]++,r--)}),n})();return{id:`harnesses`,label:`Harnesses`,title:t.loyal?`Loyal. ${t.rows[0].pctLabel} ${t.rows[0].name}.`:t.title,summary:t.rows.map(e=>`${e.name}: ${e.pctLabel} ${e.kind}, ${e.stats.replace(`·`,`and`)}.`).join(` `)+(t.line?` `+t.line:``),held:o,settle:()=>a,frame(e,o,c){let{P:l,W:u,H:d}=o,f=pt(e,c),{items:h,add:g}=ht(),_=Oe(o,e,p,.06,c.reduced?.06:.12);g(`pat`,_.dim),g(`pat-hot`,_.hot);let v=Ee(e,c,[0]),y=l?Math.min(150,K(t.title,`ax`,u*.86)):Math.min(140,K(t.title,`ax`,u*.6)),b=l?48:64,x=d*.04+y*.78;vt(g,`title`,[t.title],{x:b,y0:x,size:y,a:Q(e,r.title,c,.07),mis:v,plateFill:m});let S=t.line?l?_t(t.line,3):_t(t.line,2):[],C=t.line?l?q(S,`ax112`,u*.88,0,72):q(S,`ax112`,u*.62,0,64):0,w=x+d*(l?.05:.07),T=t.line?l?d*.9-S.length*C*1.12-d*.04:d*.94-S.length*C*1.12-d*.03:d*(l?.86:.94),E=Math.min(l?320:330,(T-w)/n),D=Math.min(l?84:96,E*.27),O=E*.24,A=Math.max(l?40:30,Math.min(l?46:42,E*.14)),j=b,M=l?u*.6:u*.36,N=Math.max(...t.rows.map(e=>e.share)),P=c.reduced?0:Ce(e,a);if(t.rows.forEach((t,n)=>{let i=r.row0+n*z(1),o=Q(e,i,c,.05);if(!o)return;let d=w+n*E+D*.8,h=d+D*.35,_=c.reduced?1:L.outCubic(I((e-i)/z(1))),y=Math.max(O*.6,t.share/N*M)*_,x=O*1.25,S=G(b,d,t.name.toUpperCase(),{cls:`ax`,size:D,fill:p,ls:.01});if(S+=X(j+v*.5,h+v*.4,y,O,m)+X(j,h,y,O,p),S+=G(j+y+22,h+O*.95,t.pctLabel,{cls:`ax`,size:x,fill:p,ls:-.02}),l||(S+=G(j+y+22+W(t.pctLabel,`ax`,x,-.02)+14,h+O*.92,t.kind,{cls:`monob`,size:A,fill:p})),!l)S+=G(b,h+O+A*1.45,t.stats,{cls:`monob`,size:A,fill:p});else{let e=`${t.kind} · ${t.stats}`,n=K(e,`monob`,u-96);S+=n>=40?G(b,h+O+A*1.45,e,{cls:`monob`,size:Math.min(A,n),fill:p}):G(b,h+O+58,t.kind,{cls:`monob`,size:40,fill:p})+G(b,h+O+110,t.stats,{cls:`monob`,size:Math.min(40,K(t.stats,`monob`,u-96)),fill:p})}if(g(`row`+n,S,J(b,h,o.s*(1+.012*P*(n===0))),o.op),!l){let t=s[n],r=Math.min(.62,E*.62/300),l=s.slice(0,n).reduce((e,t)=>e+t,0);for(let o=0;o<t;o++){let t=Tt[l+o],s=u*.8+o*u*.05,d=h+O,p=c.reduced?0:(1-L.outBack(I((e-i)/z(1.5))))*200;g(`c-`+t,k(t,{x:s,y:d-p,s:r,keyline:0,expr:we(f,c,o+n)?`blink`:n===0?`happy`:`neutral`,hop:Z(f,c,{from:a,every:2,off:(l+o)*.5,h:18}),...Te(f,c,.02,4,o)}))}g(`stage`+n,X(u*.77,h+O,u*.2,8,p),``,o.op)}}),l){let t=d*.995,n=u*.18/200;e>=i&&Tt.forEach((e,r)=>g(`c-`+e,k(e,{x:u*(.12+r*.19),y:t,s:n,keyline:0,expr:we(f,c,r)?`blink`:`happy`,hop:Z(f,c,{from:a,every:2,off:r*.5,h:22})})))}if(t.line){let t=Q(e,r.line,c,.04);if(t){let e=l?d*.9-(S.length-1)*C*1.12-(l?d*.11:0):d*.94-(S.length-1)*C*1.12;g(`line`,S.map((t,n)=>G(b,e+n*C*1.12,t,{cls:`ax112`,size:C,fill:p})).join(``),J(b,e,t.s),t.op)}}return gt(h,H,p,De(e,c,[[0,4,12]]))}}}function Dt(e){let t=e.crew.fams,n=t.length,r={title:0,rise:z(1),labels:z(3),crown:z(6)},i=Je.title,a=Je.line,o=e=>e.count>0?`${v[e.id].name} ${e.verb} ${e.pctLabel}`:`${v[e.id].name} · ${e.verb} · ${Je.never}`,s=e=>{let t=e.split(` `);if(t.length<2)return[e];let n=Math.ceil(t.length/2);return[t.slice(0,t.length-n).join(` `)||t[0],t.slice(t.length-n).join(` `)].filter(Boolean)};return{id:`crew`,label:`The crew`,title:i,summary:`${a} ${t.map(e=>`${o(e)}.`).join(` `)}`,held:[i,a,...t.map(e=>o(e))],settle:()=>r.crown+.3,frame(e,o,c){let{P:l,W:u,H:d}=o,f=pt(e,c);mt(o);let{items:h,add:g}=ht(),y=Oe(o,e,p,.05,c.reduced?.05:.1);g(`pat`,y.dim),g(`pat-hot`,y.hot);let b=Ee(e,c,[0,r.crown]),x=l?(()=>{let e=i.split(` `),t=Math.ceil(e.length/2);return[e.slice(0,t).join(` `),e.slice(t).join(` `)].filter(Boolean)})():[i],S=l?K(x[0],`ax`,u*.7):Math.min(120,K(i,`ax`,u*.5)),C=l?48:64,w=vt(g,`title`,x,{x:C,y0:d*.04+S*.78,size:S,a:Q(e,r.title,c,.07),mis:b}),T=l?_t(a,2):[a],E=l?Math.min(46,q(T,`ab`,u-C*2)):Math.min(38,K(a,`ab`,u*.62)),D=Q(e,r.title+z(1),c,.05),O=w+S*.32+E;D&&g(`sub`,T.map((e,t)=>G(C,O+t*E*1.2,e,{cls:`ab`,size:E,fill:p})).join(``),J(C,O,D.s),D.op);let A=O+(T.length-1)*E*1.2,j=Math.max(...t.map(e=>e.share))||1,M=t=>c.reduced?1:L.outBack(I((e-r.rise-t*2*B)/z(1.5))),N=Q(e,r.labels,c,.05),P=e>=r.crown;if(l){let i=A+E*.9,a=Math.min(260,(d*.97-i)/n),o=Math.min(64,a*.24);t.forEach((t,n)=>{let s=i+n*a+a*.78,l=u*.27,d=u*.46,m=t.count>0?Math.max(14,t.share/j*d)*M(n):0;t.count>0?g(`col`+n,X(l+b*.5,s-a*.3+b*.4,m,a*.3,V)+X(l,s-a*.3,m,a*.3,v[t.id].color===_.yellow?`#E6CF00`:v[t.id].color)):g(`col`+n,`<rect x="${l.toFixed(1)}" y="${(s-a*.3).toFixed(1)}" width="${(d*.2).toFixed(1)}" height="${(a*.3).toFixed(1)}" fill="none" stroke="${p}" stroke-width="5" stroke-dasharray="14 10"/>`);let h=Math.min(.62,a*.72/300);if(t.count>0&&e>=r.rise){let i=n===0;if(g(`c-`+t.id,k(t.id,{x:u*.12,y:s,s:h,keyline:0,expr:i&&P?`triumph`:`happy`,hop:Z(f,c,{from:r.labels+1,every:2,off:n*.5,h:14})})),i&&P){let n=c.reduced?1:1+.6*(1-ie(e-r.crown,{freq:4,zeta:.5})),i=s-v[t.id].height*h;g(`crown`,Ct(u*.12,i-6,100*h*1.4),J(u*.12,i,n))}}if(N){let e=Math.min(Math.max(34,o*.68),K(`${v[t.id].name} ${t.verb}`,`monob`,u-l-40));g(`lab`+n,G(l,s-a*.3-o*.35,`${v[t.id].name} ${t.verb}`,{cls:`monob`,size:e,fill:p})+(t.count>0?G(l+m+16,s-a*.04,t.pctLabel,{cls:`ax`,size:o,fill:p}):G(l+d*.2+16,s-a*.08,Je.never,{cls:`ab`,size:Math.max(40,o*.62),fill:p})),J(l,s,N.s),N.op)}})}else{let i=[];t.forEach((e,t)=>t%2?i.push(e):i.unshift(e));let a=(u-128)/n,o=Math.max(d*.62,A+d*.42),l=Math.min(d*.26,o-A-d*.2),m=Math.min(40,q(i.flatMap(e=>[...s(e.verb),...e.count>0?[]:[Je.never]]),`ax112`,a*.88));i.forEach((n,i)=>{let u=t.indexOf(n),d=64+a*(i+.5),h=a*.56,y=n.count>0?Math.max(18,n.share/j*l)*M(u):0,x=v[n.id].color;n.count>0?g(`col`+u,X(d-h/2+b*.6,o-y+b*.4,h,y,V)+X(d-h/2,o-y,h,y,x===_.yellow?`#E6CF00`:x)):g(`col`+u,`<rect x="${(d-h/2).toFixed(1)}" y="${(o-60).toFixed(1)}" width="${h.toFixed(1)}" height="60" fill="none" stroke="${p}" stroke-width="5" stroke-dasharray="14 10"/>`);let S=Math.min(.62,a*.62/200)*(n.share===j?1.12:1);if(n.count>0&&e>=r.rise){let t=u===0,a=t&&P?Z(f,c,{from:r.crown,every:2,h:26}):Z(f,c,{from:r.labels+1,every:2,off:i*.5,h:14}),s={x:d,y:o-y,s:S,keyline:0,expr:t&&P?`triumph`:we(f,c,i*.7)?`blink`:n.share<.08?`neutral`:`happy`,hop:a,...t&&P?{armL:150,armR:150}:{},...Te(f,c,.02,4,i)};if(g(`c-`+n.id,k(n.id,s)),t&&P){let t=c.reduced?1:1+.6*(1-ie(e-r.crown,{freq:4,zeta:.5})),i=o-y-v[n.id].height*S-(a||0)*S;g(`crown`,Ct(d,i-6,90*S*1.4),J(d,i,t))}}if(N){let e=o+m*1.5,t=s(n.verb),r=e+m*1.2,i=r+(t.length-1)*m*1.05+(n.count>0?m*1.95:m*1.25);g(`lab`+u,G(d,e,v[n.id].name,{cls:`monob`,size:Math.max(30,m*.72),fill:p,anchor:`middle`})+t.map((e,t)=>G(d,r+t*m*1.05,e,{cls:`ax112`,size:m,fill:p,anchor:`middle`})).join(``)+G(d,i,n.count>0?n.pctLabel:Je.never,{cls:n.count>0?`ax`:`ab`,size:n.count>0?m*1.6:m*.9,fill:p,anchor:`middle`}),J(d,e,N.s),N.op)}}),g(`floor`,X(48,o,u-96,8,p))}return gt(h,m,p,De(e,c,[[0,4,12],[r.crown,3,12]]))}}}function Ot(e){let t=e.orchestra,n={n:0,peak:z(3),row:z(3)},r=Math.min(12,t.peak),i=n.row+r*z(.5)+.3;return{id:`orchestra`,label:`The orchestra`,title:t.line1,summary:t.line2,held:[t.line1,t.line2],settle:()=>i,frame(e,a,o){let{P:s,W:c,H:l}=a,u=pt(e,o),d=mt(a),{items:f,add:p}=ht(),h=Oe(a,e,m,.05,o.reduced?.05:.14);p(`pat`,h.dim),p(`pat-hot`,h.hot);let g=Ee(e,o,[0,n.peak]);o.reduced||Ce(e,0);let _=s?48:64,v=s?Math.min(l*.2,c*.86/(F(t.spawns,0,0,100).width/100)):Math.min(l*.32,c*.5/(F(t.spawns,0,0,100).width/100)),y=l*.05+v*.74,b=Q(e,n.n,o,.08);if(b){let e=F(t.spawns,_,y,v,{fill:m});p(`n-p`,F(t.spawns,_+g,y+g*.6,v,{fill:V}).svg,J(_,y,b.s),b.op),p(`n`,e.svg,J(_,y,b.s),b.op);let n=s?K(`subagents.`,`ax112`,c*.6):Math.min(110,K(`subagents.`,`ax112`,c*.9-(_+e.width+40))),r=s?_:_+e.width+40,i=s?y+n*1.3:y;p(`sub`,G(r,i,`subagents.`,{cls:`ax112`,size:n,fill:m}),J(r,i,b.s),b.op)}let x=s?K(t.line2,`ax`,c*.7):Math.min(170,K(t.line2,`ax`,c*.42)),S=s?y+v*.42+x*1.15:y+x*1.25,C=Q(e,n.peak,o,.1);C&&(p(`peak-p`,G(_+g,S+g*.5,t.line2,{cls:`ax`,size:x,fill:V,ls:-.02}),J(_,S,C.s),C.op),p(`peak`,G(_,S,t.line2,{cls:`ax`,size:x,fill:H,ls:-.02}),J(_,S,C.s),C.op));let w=l*.97,T=s?c*.3/152:l*.38/262,E=Math.floor(Math.max(0,e)/z(1)),D=o.reduced?0:Math.sin(e/z(1)*Math.PI)*40;p(`fork`,k(`fork`,{x:s?c*.2:c*.12,y:w,s:T,acc:[`baton`,`bowtie`],flip:!0,turn:.4,armR:150+D,armL:40-D*.4,expr:e>=n.peak?`determined`:`smug`,keyline:0,...Te(u,o,.015,4)}));let O=s?Math.min(r,4):r,A=Math.ceil(r/O),j=s?c*.38:c*.26,M=c-(s?40:64);s&&w-A*200*d;let N=(M-j)/O,P=+Math.min(.62,N*.8/200),ee=300*P*.95;for(let t=0;t<r;t++){let r=n.row+t*z(.5);if(e<r&&!(o.reduced&&e>=n.row))continue;let a=Tt[t%4==3?3:t%4],c=Math.floor(t/O),l=j+N*(t%O+.5),d=s?w-(A-1-c)*ee:w,f=o.reduced?1:1+.3*(1-ie(e-r,{freq:4,zeta:.5})),m=(E+t)%2==0;p(`m`+t,k(a,{x:l,y:d,s:P*f,keyline:0,expr:m?`happy`:`neutral`,armL:m?150:30,armR:m?30:150,hop:Z(u,o,{from:i,every:2,off:t%2,h:16})}))}return gt(f,yt,m,De(e,o,[[0,5,12],[n.peak,4,12]]))}}}function kt(e){let t=e.pilot,n={l1:0,leash:z(4)},r=(t.leash?n.leash:z(2))+.3;return{id:`pilot`,label:`Who flew`,title:t.line1,summary:`${t.line2}${t.leash?` `+t.leash:``}`,held:[t.line1,t.line2,t.leash||``],settle:()=>r,frame(e,r,i){let{P:a,W:o,H:s}=r,c=pt(e,i);mt(r);let{items:l,add:u}=ht(),d=Oe(r,e,p,.05,i.reduced?.05:.1);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=Ee(e,i,[0]),h=a?48:64,g=a?_t(t.line1,2):[t.line1],_=a?q(g,`ax`,o*.86):Math.min(120,K(t.line1,`ax`,o*.86)),v=s*.05+_*.78,y=Q(e,n.l1,i,.06),b=vt(u,`l1`,g,{x:h,y0:v,size:_,a:y,mis:f,plateFill:m}),x=_*.9,S=b+x*1.35;if(y){let n=W(t.line2,`ax`,x,-.02);u(`l2`,G(h,S,t.line2,{cls:`ax`,size:x,fill:m,ls:-.02}),J(h,S,y.s),y.op);let r=i.reduced||Math.floor(Math.max(0,e)/z(1))%2==0;u(`cur`,X(h+n+x*.14,S-x*.74,x*.42,x*.74,V),``,r?y.op:0)}let C=a?20:25,w=a?5:4,T=h,E=a?o-96:o-128,D=a?s*.47:s*.46,O=E/C,A=a?O:Math.min(O*.9,s*.26/w),j=i.reduced?100:Math.round(100*L.outCubic(I(Math.floor(Math.max(0,e)/z(.25))*z(.25)/z(3)))),M=``,N=``,P=``;for(let e=0;e<100;e++){let n=Math.floor(e/C),r=ye(T+e%C*O,D+n*A,O*.8,A*.8);e>=j?P+=r:e<t.agent?M+=r:N+=r}u(`cells`,`<path d="${P}" fill="${p}" opacity="0.12"/><path d="${M}" fill="${p}"/><path d="${N}" fill="${m}"/>`);let ee=D+w*A,te=a?o*.13/200:s*.17/300;if([`grep`,`bash`,`patch`,`todo`,`fork`].forEach((t,n)=>{e<z(1)+n*.03333333333333333*2&&!i.reduced||u(`c-`+t,k(t,{x:T+E*(.08+n*.17),y:D-6,s:te,keyline:0,expr:we(c,i,n)?`blink`:`happy`,hop:Z(c,i,{from:1,every:2,off:n*.4,h:16})}))}),t.leash){let r=Q(e,n.leash,i,.04);if(r){let e=a?_t(t.leash,3):_t(t.leash,t.leash.length>44?2:1),n=a?q(e,`ax112`,o*.88,0,70):Math.min(64,q(e,`ax112`,o*.62)),i=ee+n*1.6;u(`leash`,e.map((e,t)=>G(h,i+t*n*1.12,e,{cls:`ax112`,size:n,fill:p})).join(``),J(h,i,r.s),r.op)}}return gt(l,bt,p,De(e,i,[[0,4,12]]))}}}function At(e){let t=e.bounce,n={n:0,back:z(3)},r=n.back+z(3)+.3,i=Math.min(1600,t.errors),a=Math.round(i*(1-t.rate)),o=0x9e3779b9,s=()=>{o|=0,o=o+0x6d2b79f5|0;let e=Math.imul(o^o>>>15,1|o);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296},c=[...Array(i).keys()].map(e=>[s(),e]).sort((e,t)=>e[0]-t[0]).map(e=>e[1]),l=new Set(c.slice(0,a));return{id:`bounce`,label:`Bounce back`,title:t.line1,summary:`${t.line2}${t.nemesis?` `+t.nemesis:``}`,held:[t.line1,t.line2,t.nemesis||``],settle:()=>r,frame(e,r,a){let{P:o,W:s,H:c}=r,u=pt(e,a);mt(r);let{items:d,add:f}=ht(),h=Ee(e,a,[0,n.back]),g=o?48:64,_=o?K(t.line1,`ax`,s*.86):Math.min(130,K(t.line1,`ax`,s*.5)),v=c*.05+_*.78;vt(f,`l1`,[t.line1],{x:g,y0:v,size:_,a:Q(e,n.n,a,.08),mis:h,fill:m,plateFill:p});let y=Q(e,n.back,a,.05),b=_t(t.line2,2),x=o?q(b,`ax`,s*.86):Math.min(96,q(b,`ax`,s*.46)),S=v+_*.5+x*1.3;if(y&&(f(`l2`,b.map((e,t)=>G(g,S+t*x*1.06,e,{cls:`ax`,size:x,fill:H,ls:-.02})).join(``),J(g,S,y.s),y.op),t.nemesis)){let e=_t(t.nemesis,2),n=o?q(e,`monob`,s*.88,0,46):Math.min(40,q(e,`monob`,s*.46)),r=S+(b.length-1)*x*1.06+n*2.2;f(`nem`,e.map((e,t)=>G(g,r+t*n*1.4,e,{cls:`monob`,size:n,fill:m})).join(``),J(g,r,y.s),y.op)}let C=Math.ceil(Math.sqrt(i*(o?1.25:.8))),w=o?Math.ceil(i/Math.ceil(Math.sqrt(i/1.25))):C,T=Math.ceil(i/w),E=o?s-96:s*.38,D=o?48:s*.58,O=o?c*.5:c*.1,A=Math.min(E/w,(o?c*.32:c*.62)/T),M=a.reduced?+(e>=n.back):I(Math.floor(Math.max(0,e-n.back)/z(.25))*z(.25)/z(2)),N=Math.round(i*M),P=``,ee=``;for(let e=0,t=0;e<i;e++){let n=Math.floor(e/w),r=ye(D+e%w*A,O+n*A,A*.74,A*.74);l.has(e)?P+=r:(t<N?ee+=r:P+=r,t++)}let te=a.reduced?1:.85+.15*Ce(e,0);f(`cells`,`<path d="${ee}" fill="${m}"/><path d="${P}" fill="${ue}" opacity="${te.toFixed(3)}"/>`);let F=o?s*.42/206:c*.36/190,ne=o?s*.62:s*.3,re=c*.985,L;return L=e<n.back?{...j(`land`),lean:80,sx:1.15,sy:.7,expr:`error`,armL:160,armR:170,hop:0}:e<n.back+z(1)?{...j(`crouch`),expr:`determined`,lean:20}:e<n.back+z(2)?{...j(`air`),hop:a.reduced?0:60}:{expr:we(u,a,.4)?`blink`:`triumph`,armL:150,armR:150,hop:Z(u,a,{from:n.back+z(3),every:2,h:20}),...Te(u,a,.02,4)},a.reduced&&(L=e<n.back?{...j(`land`),lean:80,sx:1.15,sy:.7,expr:`error`}:{expr:`triumph`,armL:150,armR:150}),f(`bash`,k(`bash`,{x:ne,y:re,s:F,keyline:0,cu:!0,...L})),gt(d,xt,m,De(e,a,[[0,6,12],[n.back,4,12]]))}}}function jt(e){let t=e.act?.on,n=e.act?.punchline?.replace(/'/g,`’`),r={...e.mainevent,...t?{a:n||`We don’t know.`}:{}},i={d:0,q:z(4)},a=i.q+.3;return{id:`mainevent`,label:`The main event`,title:`${r.date} ${r.facts}`,summary:`${r.q} ${r.a}`,held:[r.date,r.facts,r.q,r.a],settle:()=>a,frame(e,t,n){let{P:o,W:s,H:c}=t,l=pt(e,n),u=mt(t),{items:d,add:f}=ht(),h=Oe(t,e,m,.04,n.reduced?.04:.08);f(`pat`,h.dim),f(`pat-hot`,h.hot);let g=Ee(e,n,[0]),_=o?48:64,v=o?K(r.date,`ax`,s*.6):Math.min(200,K(r.date,`ax`,s*.4)),y=c*.04+v*.78,b=Q(e,i.d,n,.08);vt(f,`date`,[r.date],{x:_,y0:y,size:v,a:b,mis:g,fill:m,plateFill:V});let x=r.facts.split(/(?<=\.) /),S=o?q(x,`ax112`,s*.86,0,90):Math.min(76,q(x,`ax112`,s*.48)),C=y+S*1.6;b&&f(`facts`,x.map((e,t)=>G(_,C+t*S*1.1,e,{cls:`ax112`,size:S,fill:m})).join(``),J(_,C,b.s),b.op);let w=Q(e,i.q,n,.05),T=o?q([r.q,r.a],`ax`,s*.86):Math.min(80,q([r.q,r.a],`ax`,s*.48)),E=o?C+(x.length-1)*S*1.1+T*2:Math.max(C+(x.length-1)*S*1.1+T*2.2,c*.74);w&&f(`qa`,G(_,E,r.q,{cls:`ax`,size:T,fill:m})+G(_,E+T*1.15,r.a,{cls:`ax`,size:T,fill:H}),J(_,E,w.s),w.op);let D=o?s*.44:s*.2,O=o?c*.36:c*.74,A=o?s*.32-D/2:s*.6,j=c*.97-O,M=n.reduced?.8:.55+.45*Ce(e,0),N=X(A-16,j-16,D+32,O+16,p)+X(A-10,j-10,D+20,O+10,`#2A2A33`);N+=X(A,j,D,O,m)+X(A+D*.12,j+O*.08,D*.76,O*.36,`#E4DFD3`)+X(A+D*.12,j+O*.52,D*.76,O*.38,`#E4DFD3`),N+=`<circle cx="${(A+D*.84).toFixed(1)}" cy="${(j+O*.5).toFixed(1)}" r="${(D*.045).toFixed(1)}" fill="${p}"/>`,f(`door`,N),f(`light`,X(A,j+O-2,D,10,H),``,M),f(`redact`,X(A+D*.2,j+O*.22,D*.6,O*.04,p)+X(A+D*.2,j+O*.29,D*.42,O*.04,p));let P=t=>n.reduced?1:L.outCubic(I((e-z(1)-t*z(1))/z(1))),ee=o?s*.16/200:c*.2/300,te=n.reduced?0:Math.sin(e*Math.PI*1.5)*6;return f(`grep`,k(`grep`,{x:A+D+30+60*(1-P(0)),y:j+O*.62,s:ee*1.1,turn:1,flip:!0,lean:-18+te,expr:`squint`,look:-1,crestRot:-20,keyline:0}),``,P(0)),f(`patch`,k(`patch`,{x:A+D+(o?210:190)*u+60*(1-P(1)),y:c*.97,s:ee*1.1,lean:-12,flip:!0,expr:we(l,n,.7)?`blink`:`wide`,look:-1,keyline:0}),``,P(1)),f(`bash`,k(`bash`,{x:A+D+(o?360:330)*u+60*(1-P(2)),y:c*.97,s:ee,lean:-8,flip:!0,expr:`thinking`,look:-1,t:Math.max(0,Math.floor(e*6)),keyline:0,hop:Z(l,n,{from:a,every:4,h:14})}),``,P(2)),gt(d,p,m,De(e,n,[[0,4,12]]))}}}function Mt(e){let t=e.nightshift,n={n:0,joke:z(4)},r=n.joke+.3;return{id:`nightshift`,label:`The night shift`,title:`${t.hours} ${t.rest}`,summary:t.joke,held:[t.hours,t.rest,t.joke],settle:()=>r,frame(e,r,i){let{P:a,W:o,H:s}=r,c=pt(e,i),l=mt(r),{items:u,add:d}=ht(),f=Ee(e,i,[0]),p=a?48:64,h=a?K(t.hours,`ax`,o*.86):Math.min(190,K(t.hours,`ax`,o*.6)),g=s*.04+h*.78,_=Q(e,n.n,i,.08);vt(d,`hours`,[t.hours],{x:p,y0:g,size:h,a:_,mis:f,fill:H,plateFill:V});let v=a?_t(t.rest,3):_t(t.rest,2),y=a?q(v,`ax112`,o*.86,0,80):Math.min(72,q(v,`ax112`,o*.56)),b=g+y*1.7;_&&d(`rest`,v.map((e,t)=>G(p,b+t*y*1.1,e,{cls:`ax112`,size:y,fill:m})).join(``),J(p,b,_.s),_.op);let x=Q(e,n.joke,i,.05),S=_t(t.joke,2),C=a?q(S,`ax`,o*.86,0,90):Math.min(84,q(S,`ax`,o*.5)),w=a?b+(v.length-1)*y*1.1+C*1.9:s*.8;x&&d(`joke`,S.map((e,t)=>G(p,w+t*C*1.08,e,{cls:`ax`,size:C,fill:m})).join(``),J(p,w,x.s),x.op);let T=a?o*.6:o*.76,E=s*.9,D=a?o*.36:o*.2,O=a?s*.08:s*.12,A=``;for(let e=E-O;e<=E+O;e+=18)for(let t=T-D;t<=T+D;t+=30){let n=((t-T)/D)**2+((e-E)/O)**2;if(n>1)continue;let r=(1-n)*30*.24;r>.8&&(A+=`M${(t+r).toFixed(1)} ${e.toFixed(1)}a${r.toFixed(1)} ${r.toFixed(1)} 0 1 0 ${(-2*r).toFixed(1)} 0a${r.toFixed(1)} ${r.toFixed(1)} 0 1 0 ${(2*r).toFixed(1)} 0`)}d(`pool`,`<path d="${A}" fill="${H}"/>`);let j=a?o*.15/200:s*.2/300;[`bash`,`patch`,`todo`].forEach((t,n)=>{let r=i.reduced?0:Math.floor(e/z(1)+n)%2;d(`c-`+t,k(t,{x:T+(n-1)*D*.55,y:E+O*.2,s:j,keyline:0,expr:`determined`,armL:r?120:60,armR:r?60:120,t:Math.max(0,Math.floor(e*6)),hop:Z(c,i,{from:0,every:1,off:n*.33,h:10})}))});let M=a?o*.16:o*.52,N=s*.94,P=a?150*l:170*l;d(`sleeper`,X(M-P/2,N-P*.46,P,P*.46,`#B23A7C`));for(let t=0;t<3;t++){let n=(Math.max(0,e)/z(2)+t/3)%1,r=(34+18*t)*l;d(`z`+t,wt(M+P*.3+n*60*l+t*30*l,N-P*.7-n*160*l-t*40*l,r,m),``,i.reduced?.8:1-n)}return gt(u,de,m,De(e,i,[[0,4,12]]))}}}function Nt(e){let t=e.identity,n=[];{let e=0,r=t.cycle.length?t.cycle:[`…`];r.forEach((t,i)=>{n.push([e,t]),e+=i<r.length-3?z(.5):z(1)}),t.runner&&(e+=z(2)),n.push([e,null])}let r=n[n.length-1][0],i={land:r,tag:r+z(4)},a=i.tag+.3,o=(t.provisional,t.name);return{id:`identity`,label:`Your type`,title:t.title,summary:`${t.tagline}${t.evidence?` `+t.evidence:``}`,held:[t.title,t.tagline,t.evidence||``],settle:()=>a,cues:()=>[{name:`identity`,at:i.land}],frame(e,r,a){let{P:s,W:c,H:l}=r,u=pt(e,a);mt(r);let{items:d,add:f}=ht(),h=e>=i.land,g=Oe(r,e,p,.05,a.reduced?.05:h?.14:.08);f(`pat`,g.dim),f(`pat-hot`,g.hot);let _=Ee(e,a,[i.land]),y=s?48:64,b=s?c*.86:c*.56,x=[...t.cycle,o],S=Math.min(s?210:190,q(x,`ax`,b)),C=Math.min(s?240:250,K(o,`ax`,b)),w=s?l*.12+S:l*.2+S,T=s?64:60;if(h){let n=a.reduced?1:xe(e,i.land,.12),r=a.reduced?I((e-i.land)/.3):1;t.chrono?f(`chrono`,G(y,w-C*.86,t.chrono,{cls:`ax112`,size:T,fill:p}),J(y,w,n),r):f(`chrono`,G(y,w-C*.86,`Provisional`,{cls:`ax112`,size:T,fill:p}),J(y,w,n),r),f(`name-p`,G(y+_,w+_*.5,o,{cls:`ax`,size:C,fill:H,ls:-.02}),J(y,w,n),r),f(`name`,G(y,w,o,{cls:`ax`,size:C,fill:p,ls:-.02}),J(y,w,n),r)}else if(!a.reduced){let r=[...n].reverse().find(([t])=>e>=t),i=r?r[1]:t.cycle[0],a=t.runner&&i===t.runner,o=a?Math.sin((e-r[0])*40)*6*Math.exp(-(e-r[0])*3):0;i&&f(`cycle`,G(y,w,i,{cls:`ax`,size:S,fill:a?m:p,ls:-.02}),`translate(${o.toFixed(1)} 0)`,a?1:.55),f(`chrono`,G(y,w-C*.86,`You are…`,{cls:`ax112`,size:T,fill:p}))}let E=Q(e,i.tag,a,.05);if(E){let e=s?_t(t.tagline,2):_t(t.tagline,t.tagline.length>34?2:1),n=s?q(e,`ax112`,c*.86,0,90):Math.min(76,q(e,`ax112`,c*.52)),r=w+Math.max(S,C)*.45+n*1.3,i=e.map((e,t)=>G(y,r+t*n*1.12,e,{cls:`ax112`,size:n,fill:p})).join(``);if(t.evidence){let a=t.evidence.includes(` · `)?t.evidence.split(` · `).map((e,t,n)=>t<n.length-1?e+` ·`:e):_t(t.evidence,2),o=s&&t.evidence.length>26||!s&&K(t.evidence,`monob`,c*.52)<32?a:[t.evidence],l=s?q(o,`monob`,c*.86,0,46):Math.min(40,q(o,`monob`,c*.52)),u=r+(e.length-1)*n*1.12+l*2.2;i+=o.map((e,t)=>G(y,u+t*l*1.4,e,{cls:`monob`,size:l,fill:p})).join(``)}f(`tag`,i,J(y,r,E.s),E.op)}if(h||a.reduced){let n=t.lead,r=t.chrono?St[t.chrono]:null,o=s?l*.3/v[n].height:l*.66/v[n].height,d=s?c*.62:c*.78,p=l*.985,m=a.reduced?1:1+.25*(1-ie(Math.max(0,e-i.land),{freq:3.2,zeta:.45})),h=a.reduced?0:Math.sin(e/z(1)*Math.PI)*30,g=n===`fork`?[`baton`,`bowtie`]:t.provisional?[`shoshinsha`,`bowtie`]:[`bowtie`];f(`lead`,k(n,{x:d,y:p,s:o*m,acc:g,colorway:r||void 0,cu:!0,flip:!0,turn:.2,armR:n===`fork`?150+h:150,armL:n===`fork`?30:150,expr:we(u,a,.5,2.9)?`blink`:`smug`,keyline:0,...Te(u,a,.015,8)}))}return gt(d,V,p,De(e,a,[[i.land,10,10]]))}}}function Pt(e){let t=e.identity,n=e.share,r=1080,i=1920,a=[],o=[],s=(e,t,n,r)=>o.push({x:e,y:t,str:n,...r});a.push(X(0,0,r,i,V));let c=``;for(let e=0;e<22;e++)for(let t=0;t<12;t++)(t*7+e*3)%5==0&&(c+=ye(40+t*86,40+e*86,14,26));a.push(`<path d="${c}" fill="${p}" opacity="0.07"/>`),s(70,130,`COAUTHORED · ${e.yearStr}`,{cls:`monob`,size:60,fill:p});let l=Math.min(190,K(t.name,`ax`,940));s(70,300,t.chrono||`Provisional`,{cls:`ax112`,size:72,fill:p}),s(78,300+l*.95+8,t.name,{cls:`ax`,size:l,fill:H,ls:-.02}),s(70,300+l*.95,t.name,{cls:`ax`,size:l,fill:p,ls:-.02});let u=_t(t.tagline,t.tagline.length>28?2:1),d=Math.min(64,q(u,`ax112`,940)),f=300+l*.95+d*1.5;u.forEach((e,t)=>s(70,f+t*d*1.15,e,{cls:`ax112`,size:d,fill:p}));let m=t.lead,h=t.chrono?St[t.chrono]:void 0,g=m===`fork`?[`baton`,`bowtie`]:t.provisional?[`shoshinsha`,`bowtie`]:[`bowtie`],_=f+(u.length-1)*d*1.15+40,y=Math.min(2.4,(1140-_)/v[m].height);a.push(k(m,{x:r*.72,y:1150,s:y,acc:g,colorway:h,cu:!0,flip:!0,turn:.2,armR:150,armL:m===`fork`?30:150,expr:`smug`})),a.push(X(70,1150,940,8,p));let b=[...n.stats,...e.shareExtra||[]],x=Math.min(150,550/Math.max(1,b.length));return b.forEach((e,t)=>{let n=1180+t*x+x*.62,r=Math.min(104,x*.66),i=Math.max(470,70+W(e.value,`ax`,r,-.02)+48);s(70,n,e.value,{cls:`ax`,size:r,fill:p,ls:-.02});let a=e.label.length>12?_t(e.label,2):[e.label],o=Math.min(60,...a.map(e=>K(e,`monob`,1010-i)));a.forEach((e,t)=>s(i,n-(a.length-1)*o*1.08+t*o*1.08,e,{cls:`monob`,size:o,fill:p}))}),s(70,1818,`coauthored`,{cls:`monob`,size:60,fill:p}),s(70,1884,`npx coauthored`,{cls:`monob`,size:60,fill:p}),{W:r,H:i,shapes:a.join(``),texts:o}}function Ft(e){let t=e.share,n={card:0,line:z(4)},r=n.line+.3,i=null;return{id:`share`,label:`Your card`,title:`${e.identity.title}. ${e.identity.tagline}`,summary:`${t.stats.map(e=>`${e.label}: ${e.value}`).join(`. `)}. ${t.closing}`,held:[t.closing],last:!0,share:!0,settle:()=>r,frame(r,a,o){let{P:s,W:c,H:l}=a;pt(r,o);let{items:u,add:d}=ht(),f=JSON.stringify(e.shareExtra||[]);i&&i.key===f||(i={...Pt(e),key:f});let p=i,h=s?Math.min(l*.72,c*.84*(16/9)):l*.9,g=h/p.H,_=p.W*g,v=s?(c-_)/2:c*.06,y=s?l*.03:(l-h)/2,b=Q(r,n.card,o,.05)||{s:1,op:0},x=o.reduced?1:1+.08*(1-ie(Math.max(0,r),{freq:3.5,zeta:.5})),S=p.texts.map(e=>G(e.x,e.y,e.str,{cls:e.cls,size:e.size,fill:e.fill,anchor:e.anchor||`start`,ls:e.ls||0})).join(``);d(`card`,`<g transform="translate(${v.toFixed(1)} ${y.toFixed(1)}) scale(${g.toFixed(5)})">${p.shapes}${S}</g>`,J(v+_/2,y+h/2,x),b.op);let C=Q(r,n.line,o,.04);if(C){let e=_t(t.closing,2),n=s?q(e,`ax112`,c*.86,0,64):Math.min(76,q(e,`ax112`,c*.5)),r=s?48:c*.06+_+c*.06,i=s?y+h+n*1.5:l*.36;d(`line`,e.map((e,t)=>G(r,i+t*n*1.15,e,{cls:`ax112`,size:n,fill:m})).join(``),J(r,i,C.s),C.op)}return gt(u,fe,m,``,{buttons:s?{x:48,y:l*.92,w:c-96,h:l*.06}:{x:c*.06+_+c*.06,y:l*.62,w:c*.4,h:l*.1}})}}}var It=(e,t)=>t.reduced?e:pe(e),Lt=e=>e.P?e.W/1080:e.H/1080,Rt=()=>{let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}},zt=(e,t,n,r=``,i={})=>({items:e,ground:t,fg:n,cam:r,...i}),Bt=e=>`“${e.replace(/'/g,`’`)}”`,Vt=e=>{let t=/^([\d,]+)(.*)$/.exec(String(e));return t?{v:Number(t[1].replace(/,/g,``)),rest:t[2]}:null};function Ht(e,t,n,r,i){let a=Vt(e);if(!a)return String(e);if(i.reduced||t>=n+r)return e;let o=L.outCubic(I(Math.floor(Math.max(0,t-n)/z(.25))*z(.25)/r));return Math.round(a.v*o).toLocaleString(`en-US`)+a.rest}function Ut(e,t,n,r,i,a,o,{fill:s=m,y:c=null,maxW:l=null}={}){let u=Q(a,o,i,.04);if(!u)return;let{P:d,W:f,H:p}=r;n=n.replace(/'/g,`’`);let h=_t(n,d?n.length>64?4:3:n.length>60?2:1),g=d?q(h,`ax112`,l||f*.88,0,64):Math.min(60,q(h,`ax112`,l||f*.86)),_=d?48:64,v=c??p*.95-(h.length-1)*g*1.14;e(t,h.map((e,t)=>G(_,v+t*g*1.14,e,{cls:`ax112`,size:g,fill:s})).join(``),J(_,v,u.s),u.op)}function Wt(e,t,n,r,i,a,o,s,{scale:c=1,fill:l=m,id:u=`patch`,talk:d=!0,lblSize:f=null}={}){let{P:p}=a,h=Lt(a),g=It(s,o),_=f||(p?44:36);if(e(t+`-lbl`,G(r,i,n,{cls:`monob`,size:_,fill:l,ls:.12})),n===`YOU`){let n=120*h*c,a=o.reduced||Math.floor(Math.max(0,s)/z(1))%2==0;e(t+`-cur`,X(r,i+_*.6,n*.5,n,V),``,a?1:.25)}else{let n=d&&!o.reduced&&Math.floor(Math.max(0,s)/z(.5))%2==0;e(t+`-ag`,k(u,{x:r+60*h*c,y:i+_*.6+200*h*c*.9,s:.62*h*c,keyline:0,expr:we(g,o,.6)?`blink`:`happy`,mouth:n?`o`:void 0,hop:Z(g,o,{from:1,every:2,h:12})}))}}function Gt(e,t){let[n,...r]=t.text.replace(/'/g,`’`).split(/(?<=\.) /),i=r.join(` `);return{id:`c0`,label:`Act two`,title:n,summary:i,held:[t.text],settle:()=>z(3)+.3,cues:()=>[{name:`dialogue-card`,at:0}],frame(e,t,r){let{P:a,W:o,H:s}=t,c=It(e,r);Lt(t);let{items:l,add:u}=Rt(),d=Oe(t,e,p,.06,r.reduced?.06:.12);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=Ee(e,r,[0]),m=a?_t(n,2):[n],h=a?q(m,`ax`,o*.86):Math.min(170,K(n,`ax`,o*.86)),g=a?48:64,_=s*(a?.1:.14)+h*.78,v=Q(e,0,r,.08);v&&(u(`t1p`,m.map((e,t)=>G(g+f,_+t*h*1.04+f*.5,e,{cls:`ax`,size:h,fill:H,ls:-.02})).join(``),J(g,_,v.s),v.op),u(`t1`,m.map((e,t)=>G(g,_+t*h*1.04,e,{cls:`ax`,size:h,fill:p,ls:-.02})).join(``),J(g,_,v.s),v.op));let y=Q(e,z(3),r,.05);if(y&&i){let e=a?_t(i,2):[i],t=a?q(e,`ax112`,o*.86,0,90):Math.min(84,K(i,`ax112`,o*.7)),n=_+(m.length-1)*h*1.04+t*1.6;u(`t2`,e.map((e,r)=>G(g,n+r*t*1.12,e,{cls:`ax112`,size:t,fill:p})).join(``),J(g,n,y.s),y.op)}let b=s*.97,x=[`grep`,`patch`,`bash`,`todo`,`fork`],S=a?o*.15/200:s*.24/300;x.forEach((t,n)=>{let i=z(1)+n*B*2;if(e<i&&!r.reduced)return;let s=r.reduced?0:(1-L.outBack(I((e-i)/z(1))))*120,l=a?o*(.1+n*.16):o*(.3+n*.1);u(`c-`+t,k(t,{x:l,y:b+s,s:S,keyline:0,expr:we(c,r,n*.7)?`blink`:`happy`,hop:Z(c,r,{from:z(4),every:2,off:n*.4,h:14})}))});let C=a?o*.9:o*.82,w=S*260,T=r.reduced||Math.floor(Math.max(0,e)/z(1))%2==0;return(e>=z(2)||r.reduced)&&u(`you`,X(C,b-w,w*.5,w,p),``,T?1:.3),zt(l,V,p,De(e,r,[[0,6,12]]))}}}function Kt(e,t,{ground:n=p,fg:r=m,accent:i=V,id:a=`patch`}={}){let o=t.hero||{},s=o.term?Bt(o.term):null,c=o.n?o.unit?`${o.n} ${o.unit}`:`×${o.n}`:null;return{id:t.id,label:`The dialogue`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,frame(e,l,u){let{P:d,W:f,H:p}=l;Lt(l);let{items:m,add:h}=Rt(),g=Oe(l,e,r,.04,u.reduced?.04:.09);h(`pat`,g.dim),h(`pat-hot`,g.hot);let _=Ee(e,u,[0]),v=d?48:64,y=p*(d?.08:.1);Wt(h,`sp`,o.who||`AGENTS`,v,y,l,u,e,{fill:r,id:a,scale:d?1.1:1});let b=Q(e,0,u,.08),x=y+p*(d?.2:.3);if(s&&b){let e=d?_t(s,s.length>14?2:1):_t(s,s.length>26?2:1),t=d?q(e,`ax`,f*.86,-.02,210):Math.min(200,q(e,`ax`,f*.86,-.02)),n=d?v:v+(o.who,0);x=y+p*(d?.16:.2)+t*.8,h(`q-p`,e.map((e,r)=>G(n+_,x+r*t*1.04+_*.5,e,{cls:`ax`,size:t,fill:i,ls:-.02})).join(``),J(n,x,b.s),b.op),h(`q`,e.map((e,i)=>G(n,x+i*t*1.04,e,{cls:`ax`,size:t,fill:r,ls:-.02})).join(``),J(n,x,b.s),b.op),x+=(e.length-1)*t*1.04+t*.4}if(c&&b){let t=o.unit?c:`×`+Ht(o.n,e,0,z(3),u),n=d?Math.min(220,K(c,`ax`,f*.8)):Math.min(240,K(c,`ax`,f*.5)),r=x+n*(s?.95:1.6);h(`n`,G(v,r,t,{cls:`ax`,size:n,fill:H,ls:-.02}),J(v,r,b.s*(u.reduced?1:1+.03*Ce(e,z(3),z(3)))),b.op)}return Ut(h,`sub`,t.text,l,u,e,z(4),{fill:r}),zt(m,n,r,De(e,u,[[0,5,12]]))}}}function qt(e,t){let{agent:n,user:r}=t.ledger,i=Math.ceil(n/50),a=Math.ceil(r/50),o=[...Array(i)].map((e,t)=>({col:0,i:t,n:Math.min(50,n-t*50)})).concat([...Array(a)].map((e,t)=>({col:1,i:t,n:Math.min(50,r-t*50)}))),s=e=>z(2)+e*z(.5),c=s(Math.max(0,o.length-1)),l=Math.max(z(4),c+z(1));return{id:`c2`,label:`Apologies`,title:t.text,summary:``,held:[t.text],settle:()=>l+.3,cues:()=>o.map((e,t)=>({name:`ledger-tick`,at:s(t)})),frame(e,u,d){let{P:f,W:h,H:g}=u;Lt(u);let{items:_,add:v}=Rt(),y=g*(f?.06:.08),b=f?40:64,x=h-(f?40:64),S=(b+x)/2,C=f?74:64,w=``;for(let e=y+C*2.6;e<g*.82;e+=C)w+=`M${b} ${e.toFixed(1)}H${x}`;v(`paper`,`<path d="${w}" stroke="${le}" stroke-opacity="0.22" stroke-width="2" fill="none"/>`+X(S-2,y,4,g*.8-y,ue,.5));let T=f?44:38,E=f?Math.min(160,h*.13):Math.min(150,g*.13),D=Q(e,0,d,.06);D&&(v(`h0`,G(b+10,y+T,`AGENTS`,{cls:`monob`,size:T,fill:p,ls:.12})+G(b+10,y+T+E*.95,Ht(n.toLocaleString(`en-US`),e,0,c+z(.5),d),{cls:`ax`,size:E,fill:p,ls:-.02}),J(b,y,D.s),D.op),v(`h1`,G(S+24,y+T,`YOU`,{cls:`monob`,size:T,fill:p,ls:.12})+G(S+24,y+T+E*.95,e>=s(i)||d.reduced?r.toLocaleString(`en-US`):`0`,{cls:`ax`,size:E,fill:V,ls:-.02}),J(S,y,D.s),D.op));let O=(S-b-40)/10,k=Math.min(C*.72,O*1.2),A=Math.max(3,O*.09),j=y+T+E*1.25,M=Math.min(C,(g*.8-j)/Math.max(i,a,1)),N=``,P=``;return o.forEach((t,n)=>{let r=s(n);if(e<r&&!d.reduced)return;let i=d.reduced?t.n:Math.min(t.n,Math.ceil(t.n*I((e-r)/z(.125)))),a=t.col===0?b+16:S+28,o=j+t.i*M+k,c=``;for(let e=0;e<i;e++){let t=Math.floor(e/5),n=e%5,r=a+t*O;if(n<4){let e=r+(n+.6)*O*.17;c+=`M${e.toFixed(1)} ${(o-k).toFixed(1)}V${o.toFixed(1)}`}else c+=`M${(r-O*.02).toFixed(1)} ${(o-k*.25).toFixed(1)}L${(r+O*.84).toFixed(1)} ${(o-k*.8).toFixed(1)}`}t.col===0?N+=c:P+=c}),v(`tally`,`<path d="${N}" stroke="${p}" stroke-width="${A.toFixed(1)}" stroke-linecap="round" fill="none"/><path d="${P}" stroke="${V}" stroke-width="${(A*1.2).toFixed(1)}" stroke-linecap="round" fill="none"/>`),Ut(v,`sub`,t.text,u,d,e,l,{fill:p}),zt(_,m,p,De(e,d,[[0,3,12]]))}}}function Jt(e,t){let n=t.manners;return{id:`c3`,label:`Manners`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,frame(e,r,i){let{P:a,W:o,H:s}=r;Lt(r);let{items:c,add:l}=Rt(),u=Oe(r,e,m,.05,i.reduced?.05:.1);l(`pat`,u.dim),l(`pat-hot`,u.hot);let d=Ee(e,i,[0]),f=a?48:64;Wt(l,`sp`,`YOU`,f,s*(a?.07:.1),r,i,e,{fill:m});let p=a?[s*.36,s*.58]:[s*.44,s*.7];return[[n.pleaseLabel,n.please,0],[n.thanksLabel,n.thanks,z(1)]].forEach(([t,n,r],s)=>{let c=Q(e,r,i,.08);if(!c)return;let u=Bt(t),h=`×`+Ht(n.toLocaleString(`en-US`),e,r,z(3),i),g=a?Math.min(170,K(u,`ax`,o*.6)):Math.min(150,K(u,`ax`,o*.4)),_=p[s],v=a?f:f+W(u,`ax`,g,-.02)+40;l(`q`+s+`p`,G(f+d,_+d*.5,u,{cls:`ax`,size:g,fill:V,ls:-.02}),J(f,_,c.s),c.op),l(`q`+s,G(f,_,u,{cls:`ax`,size:g,fill:m,ls:-.02}),J(f,_,c.s),c.op),l(`n`+s,G(v,a?_+g*1.05:_,h,{cls:`ax`,size:g*(a?.9:1),fill:H,ls:-.02}),J(f,_,c.s),c.op)}),Ut(l,`sub`,t.text,r,i,e,z(4),{fill:m}),zt(c,le,m,De(e,i,[[0,4,12]]))}}}function Yt(e,t){let n=t.jar,r=n.n,i=Math.max(8,Math.min(220,r)),a=[...new Set(n.terms)].slice(0,2),o=7,s=()=>(o=o*1664525+0x3c6ef35f>>>0)/4294967296,c=[...Array(i)].map(()=>[s(),s(),s()]);return{id:`c4`,label:`The swear jar`,title:t.text,summary:``,held:[t.text],settle:()=>z(7)+.3,cues:()=>[{name:`jar-coin`,at:z(4)}],frame(e,n,o){let{P:s,W:l,H:u}=n,d=It(e,o);Lt(n);let{items:f,add:h}=Rt(),g=Oe(n,e,m,.04,o.reduced?.04:.08);h(`pat`,g.dim),h(`pat-hot`,g.hot);let v=s?l*.62:u*.5,y=v*1.15,b=s?(l-v)/2:l*.6,x=s?u*.2:u*.12,S=v*.16,C=v*.12,w=`M${b+S} ${x}H${b+v-S}V${x+S*.9}Q${b+v} ${x+S*1.2} ${b+v} ${x+S*2.2}V${x+y-C}Q${b+v} ${x+y} ${b+v-C} ${x+y}H${b+C}Q${b} ${x+y} ${b} ${x+y-C}V${x+S*2.2}Q${b} ${x+S*1.2} ${b+S} ${x+S*.9}Z`;h(`jar-back`,`<path d="${w}" fill="${m}" opacity="0.08"/>`);let T=o.reduced?1:I(Math.floor(Math.max(0,e-z(1))/z(.25))*z(.25)/z(3)),E=Math.round(i*T),D=Math.max(10,Math.min(v*.07,Math.sqrt(v*y*.55/i)*.48)),O=Math.max(3,Math.floor((v-D*2)/(D*2.05))),k=``;for(let e=0;e<E;e++){let t=Math.floor(e/O),n=e%O,[r,i]=c[e],a=b+D*1.4+n*D*2.05+t%2*D+(r-.5)*D*.4,o=x+y-D*1.2-t*D*1.7+(i-.5)*D*.3;if(o<x+S*2)break;k+=`M${(a+D).toFixed(1)} ${o.toFixed(1)}a${D.toFixed(1)} ${(D*.62).toFixed(1)} 0 1 0 ${(-2*D).toFixed(1)} 0a${D.toFixed(1)} ${(D*.62).toFixed(1)} 0 1 0 ${(2*D).toFixed(1)} 0`}if(h(`coins`,`<path d="${k}" fill="${H}" stroke="#C9A900" stroke-width="3"/>`),!o.reduced&&e>=z(1)&&e<z(4)){let t=(e-z(1))/z(.25)%1;h(`drop`,`<ellipse cx="${(b+v*.5).toFixed(1)}" cy="${(x-D*3+y*.7*t).toFixed(1)}" rx="${D.toFixed(1)}" ry="${(D*.62).toFixed(1)}" fill="${H}"/>`)}h(`jar`,`<path d="${w}" fill="none" stroke="${m}" stroke-width="${(v*.018).toFixed(1)}" stroke-linejoin="round"/>`+X(b+S*.7,x-v*.06,v-S*1.4,v*.07,m));let A=Q(e,z(4),o,.12);if(A){let e=v*.34,t=b+v/2,n=x+y*.42;h(`n-bg`,X(t-e*1.1,n-e*.8,e*2.2,e*.98,p,.85),J(t,n,A.s),A.op),h(`n`,G(t,n,r.toLocaleString(`en-US`),{cls:`ax`,size:e,fill:H,anchor:`middle`,ls:-.02}),J(t,n,A.s),A.op)}if(e>=z(2)||o.reduced){let e=s?64:56;a.forEach((t,n)=>{let r=s?l*(.26+n*.48):l*(.12+n*.2),i=s?u*.13:u*.62;h(`tok`+n,`<rect x="${(r-e*1.6).toFixed(1)}" y="${(i-e*1.05).toFixed(1)}" width="${(e*3.2).toFixed(1)}" height="${(e*1.5).toFixed(1)}" rx="${(e*.75).toFixed(1)}" fill="${H}"/>`+G(r,i,t,{cls:`monob`,size:e,fill:p,anchor:`middle`}),Y(0,o.reduced?0:-6*Math.sin(d*3+n)))})}return Ut(h,`sub`,t.text,n,o,e,z(7),{fill:m,maxW:s?l*.88:l*.5,y:s?null:u*.3}),zt(f,_.green,m,De(e,o,[[z(4),8,10]]))}}}function Xt(e,t){let n=t.reviews,r=I(Math.sqrt(n.userN/n.agentN),.32,1);return{id:`c5`,label:`Mixed reviews`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,cues:()=>[{name:`review-split`,at:0}],frame(e,i,a){let{P:o,W:s,H:c}=i;Lt(i);let{items:l,add:u}=Rt(),d=Ee(e,a,[0,z(1)]),f=(t,n,r,i,s,c,l,f,p,m,h)=>{let g=Q(e,s,a,.1);if(!g)return 0;let _=_t(Bt(r),Bt(r).length>16?2:1),v=Math.min(150*p*(o?1.15:1),q(_,`ax`,f-80,-.02)),y=o?44:36,b=v*1.25,x=y*2.2+_.length*v*1.05+b*1.1+40,S=X(c+d*.7,l+d*.5,f,x,h===`#16161A`?V:H)+X(c,l,f,x,m);return S+=G(c+40,l+y*1.6,n,{cls:`monob`,size:y,fill:h,ls:.12}),_.forEach((e,t)=>{S+=G(c+40,l+y*2.2+v*.85+t*v*1.05,e,{cls:`ax`,size:v,fill:h,ls:-.02})}),S+=G(c+40,l+y*2.2+_.length*v*1.05+b*.9,`×`+Ht(i.toLocaleString(`en-US`),e,s,z(2),a),{cls:`ax`,size:b,fill:h,ls:-.02}),u(t,S,J(c+f/2,l+x/2,g.s),g.op),x},h=o?40:64;if(o){let e=f(`agents`,`AGENTS`,n.agentTerm,n.agentN,0,h,c*.05,s-h*2,1,m,p);f(`you`,`YOU`,n.userTerm,n.userN,z(1),h+s*.18,c*.05+(e||c*.3)+50,s*.7-h,r,p,m)}else{let e=s*.52,t=s*.34;f(`agents`,`AGENTS`,n.agentTerm,n.agentN,0,h,c*.07,e,1,m,p),f(`you`,`YOU`,n.userTerm,n.userN,z(1),h+e+s*.04,c*.2,t,r,p,m)}return Ut(u,`sub`,t.text,i,a,e,z(4),{fill:p}),zt(l,H,p,De(e,a,[[0,6,12],[z(1),4,12]]))}}}function Zt(e,t){let n=t.clock?.hour||null,r=t.hero||{};return{id:`c6`,label:`Why`,title:t.text,summary:``,held:[t.text],settle:()=>z(7)+.3,cues:()=>n?[{name:`why-clock`,at:z(4)}]:[],frame(e,i,a){let{P:o,W:s,H:c}=i;It(e,a),Lt(i);let{items:l,add:u}=Rt(),d=Oe(i,e,m,.04,a.reduced?.04:.08);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=o?48:64,p=c*(o?.07:.1);Wt(u,`sp`,`YOU`,f,p,i,a,e,{fill:m});let h=Q(e,0,a,.08),g=r.term?Bt(r.term):null,_=g?`${g} ×${r.n}`:String(r.n),v=Math.min(o?190:170,K(_,`ax`,s*.86,-.02)*(g?1:.77)),y=p+c*(o?.14:.2);if(h&&(g?u(`q`,G(f,y,g,{cls:`ax`,size:v,fill:m,ls:-.02})+G(f+W(g,`ax`,v,-.02)+30,y,`×`+Ht(r.n,e,0,z(3),a),{cls:`ax`,size:v,fill:H,ls:-.02}),J(f,y,h.s),h.op):u(`q`,G(f,y,r.n,{cls:`ax`,size:v*1.3,fill:H,ls:-.02}),J(f,y,h.s),h.op)),n){let t={..._n(i),base:o?c*.56:c*.62},r=Number(n.slice(0,2)),s=a.reduced?r:Math.min(r,Math.floor(Math.max(0,e-z(1))/(z(3)/Math.max(1,r)))),l=e>=z(4)||a.reduced?r:s,d=!a.reduced&&e>=z(4)&&e<z(4)+.4?.06*Math.exp(-(e-z(4))*10):0,f=a.reduced?1:I((e-z(1))/.15);u(`clock`,vn(t,`${String(l).padStart(2,`0`)}:00`,H),J(t.cx,t.base-t.size*.36,1+d),f)}return Ut(u,`sub`,t.text,i,a,e,z(n?7:4),{fill:m}),zt(l,de,m,De(e,a,n?[[z(4),8,10]]:[[0,4,12]]))}}}function Qt(e,t){return t?.playable?t.slides.map(t=>t.id===`c0`?Gt(e,t):t.id===`c1`?Kt(e,t,{ground:p,fg:m,accent:V,id:`patch`}):t.id===`c1b`?Kt(e,t,{ground:H,fg:p,accent:V}):t.id===`c2`?qt(e,t):t.id===`c3`?Jt(e,t):t.id===`c4`?t.jar?Yt(e,t):Kt(e,t,{ground:_.green,fg:m,accent:p}):t.id===`c5`?t.reviews?Xt(e,t):Kt(e,t,{ground:H,fg:p,accent:V}):t.id===`c6`?Zt(e,t):Kt(e,t)):[]}function $t(e){return{id:`phrases`,label:`Your phrases`,title:`Your phrases`,summary:``,held:[`Your phrases`],wait:!0,drawer:!0,settle:()=>.4,until:e=>e.drawerDone?e.drawerDone:null,frame(e,t,n){let{P:r,W:i,H:a}=t,o=It(e,n);Lt(t);let{items:s,add:c}=Rt(),l=Oe(t,e,m,.04,n.reduced?.04:.08);c(`pat`,l.dim),c(`pat-hot`,l.hot);let u=r?i*.13/200:a*.16/300,d=a*.985;return[`grep`,`patch`,`bash`,`todo`,`fork`].forEach((e,t)=>c(`c-`+e,k(e,{x:r?i*(.1+t*.12):i*(.06+t*.05),y:d,s:u,keyline:0,turn:1,flip:t%2==1,expr:`side`,hop:Z(o,n,{from:.4,every:4,off:t*.5,h:8})}))),zt(s,p,m,``,{drawer:!0})}}}var en=()=>`<defs>${D()}</defs>`,tn=(e,t)=>t.reduced?e:pe(e),nn=e=>e.P?e.W/1080:e.H/1080;function rn(e,t){let n=e.split(` `);if(t<=1||n.length<2)return[e];let r=e.length/t,i=[],a=``;for(let e of n)a&&(a+` `+e).length>r*1.08&&i.length<t-1?(i.push(a),a=e):a=a?a+` `+e:e;return i.push(a),i}function an(e,t,n,r=``){return{items:e,ground:t,fg:n,cam:r}}function on(){let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}}function sn(e){let[t,n]=e.lines.compact,r={s1:0,s2:z(2),hit:z(6),line:z(9)},i=Ze(e.compactions);return{id:`compact`,label:`Compacted`,title:t,summary:n,held:[t,n],settle:()=>r.line+.3,frame(a,o,s){let{P:c,W:l,H:u}=o,d=tn(a,s),{items:f,add:h}=on(),g=Ee(a,s,[r.hit]),_=Oe(o,a,p);h(`pat`,_.dim),h(`pat-hot`,s.reduced?``:_.hot);let v=c?u*.8:u-40,y=a>=r.hit,b;if(y){let e=!s.reduced&&a<r.hit+.06666666666666667?.3:1,t=s.reduced?1:oe(.8,1,Math.min(1.1,ce(a,r.hit+2*B,{freq:4,zeta:.45}))),n=0,i=a-r.hit-z(8);!s.reduced&&i>=0&&(n=.06*Math.exp(-(i%z(8))*9)),b=e*t*(1-n)}else{let e=[[-9,1],[r.s1,.92],[r.s2,.8]],t=1,n=1,i=-9;for(let[r,a]of e)d>=r&&(t=n,n=a,i=r);b=s.reduced?n:oe(t,n,Math.min(1.1,ce(a,i,{freq:4,zeta:.5})))}let x=y?i:e.yearStr,S=c&&!y,C,w,T;if(S){let e=K(`20`,`ax`,l*.86,-.04),t=e*.72,n=t*b*1.12;w=l*.05,T=W(`20`,`ax`,e,-.04),[x.slice(0,2),x.slice(2)].forEach((t,r)=>{let i=v-(1-r)*n;h(`yr-plate`+r,G(0,0,t,{cls:`ax`,size:e,fill:V,ls:-.04}),ve(Y(w+g,i+g*.5),`scale(1 ${b.toFixed(4)})`)),h(`yr`+r,G(0,0,t,{cls:`ax`,size:e,fill:p,ls:-.04}),ve(Y(w,i),`scale(1 ${b.toFixed(4)})`))}),C=v-n-t*b}else{let e=c?l*(y?.78:.9):l*(y?.5:.8),n=Math.min(K(x,`ax`,e,-.04),u*(c?.22:.42)),i=n*.72;if(w=c?l*.05:64,T=W(x,`ax`,n,-.04),h(`yr-plate`,G(0,0,x,{cls:`ax`,size:n,fill:V,ls:-.04}),ve(Y(w+g,v+g*.5),`scale(1 ${b.toFixed(4)})`)),h(`yr`,G(0,0,x,{cls:`ax`,size:n,fill:p,ls:-.04}),ve(Y(w,v),`scale(1 ${b.toFixed(4)})`)),C=v-i*Math.min(b,1),y){let e=Q(a,r.hit,s,.1),n=c?w:w+T+44,o=c?Math.min(118,K(t,`monob`,l*.86)):Math.min(116,K(t,`monob`,l*.84-n)),u=c?v-i-186-90:v-i*.42;h(`lab`,G(n,u,t,{cls:`monob`,size:o,fill:p}),J(n,u,e.s),e.op)}}if(y){let e=Q(a,r.line,s,.05);if(e){let t=c?rn(n,4):rn(n,2),r=c?q(t,`ax112`,l*.88,-.01,130):q(t,`ax112`,l*.72,-.01,100),i=c?48:64,a=u*.06+r*.8;h(`line`,t.map((e,t)=>G(i,a+t*r*1.1,e,{cls:`ax112`,size:r,fill:p,ls:-.01})).join(``),J(i,a,e.s),e.op)}}else{let e=`Compacting`,t=c?K(e,`ax112`,l*.66,-.03):140,n=c?u*.06+t*.8:u*.07+t*.78,r=s.reduced?10:I(Math.floor((a+.2)/.045),1,10),i=G(64*(c?.75:1),n,e.slice(0,r),{cls:`ax112`,size:t,ls:-.03});if(r===10){let r=Math.floor(Math.max(0,a)/z(1))%3,o=64*(c?.75:1)+W(e,`ax112`,t,-.03)+t*.12;[0,1,2].forEach(e=>{i+=X(o+e*t*.3,n-t*.2,t*.19,t*.2,p,e===r?1:.16)})}h(`hl`,i)}let E=c?.62:.78,D=[`grep`,`patch`,`bash`,`todo`],O={grep:-9,patch:r.s1,todo:r.s2,bash:r.hit},A=[r.s1,r.s2,r.hit];for(let e=1;e<12;e++)A.push(r.hit+e*z(8));let M=(e=90)=>{if(s.reduced)return{};let t={};for(let n of A){let r=Se(d,n,e);(r.hop||r.sx!==1)&&(t=r)}return t};return D.forEach((e,t)=>{let n=O[e];if(a<n-.1&&!(s.reduced&&a>=n)||s.reduced&&a<n)return;let i=!s.reduced&&a<n?-u*(1-I((a-(n-3*B))/(3*B))):0,o=a>=r.line+.3,c={grep:{turn:1,expr:`determined`,crestRot:-10,armL:30,armR:140},patch:{expr:`determined`,armL:70,armR:70},bash:{lean:-12,expr:`triumph`,...i<0?j(`air`):{}},todo:{expr:y?`content`:`thinking`,t:Math.max(0,Math.floor(a*6)),wobble:[0,1,2].map(e=>6*Math.sin((a*3-e*.18)*Math.PI))}}[e],l=o?{...Te(d,s,.025,4,t),hop:Z(d,s,{from:r.line,every:2,off:t*.5,h:14})}:{},f=we(d,s,t*.9)?{expr:`blink`}:{};h(e,k(e,{x:w+T*(.14+t*.24),y:C+6+i,s:E*(e===`patch`?1.1:1),...c,...l,...M(),...f}))}),h(`fork`,k(`fork`,{x:c?l*.91:l*.93,y:u+(c?60:30),s:c?.95:1.05,turn:.6,flip:!0,expr:we(d,s,.3,2.7)?`blink`:`smug`,look:-.4,lookY:-.2,...Te(d,s,.015,8)})),an(f,m,p,De(a,s,[[r.hit,7,12]]))}}}function cn(){let e={hit:0,blink:z(1.5),now:z(4)};return{id:`ourturn`,label:`Our turn`,title:`Our turn.`,summary:`Now we compact your year.`,held:[`Our turn.`,`Now we compact your year.`],settle:()=>e.now+.3,frame(t,n,r){let{P:i,W:a,H:o}=n,s=tn(t,r),c=nn(n),{items:l,add:u}=on();u(`flood`,X(-40,-40,a+80,o+80,V));let d=i?[`Our`,`turn.`]:[`Our turn.`],f=i?K(`turn.`,`ax`,a*.8,-.03):K(`Our turn.`,`ax`,a*.66,-.03),m=Q(t,e.hit,r,.07)||{s:1,op:0},h=o*.07+f*.72;d.forEach((e,t)=>u(`ot`+t,G(a/2,h+t*f*.84,e,{cls:`ax`,size:f,fill:p,anchor:`middle`,ls:-.03}),J(a/2,h-f*.35,m.s),m.op));let g=h+(d.length-1)*f*.84,_=Q(t,e.now,r,.06);if(_){let e=i?K(`Now we compact`,`ax112`,a*.84):K(`Now we compact your year.`,`ax112`,a*.74),t=g+e*1.35;u(`now`,i?G(a/2,t,`Now we compact`,{cls:`ax112`,size:e,fill:p,anchor:`middle`})+G(a/2,t+e*1.08,`your year.`,{cls:`ax112`,size:e,fill:p,anchor:`middle`}):G(a/2,t,`Now we compact your year.`,{cls:`ax112`,size:e,fill:p,anchor:`middle`}),J(a/2,t,_.s),_.op)}let v=`#E0379C`,y=i?{patch:[.84,.62,.62],bash:[.62,.68,.72],todo:[.36,.76,.95],fork:[.84,.94,1.3],grep:[.2,1.12,2.4]}:{patch:[.86,.66,.5],bash:[.74,.72,.62],todo:[.6,.82,.85],fork:[.84,1,1.3],grep:[.16,1.18,3]},b=r.reduced?0:s<0||s<2/12?1:s<4/12?.5:0,x=n=>!r.reduced&&t>=e.blink&&t<e.blink+.03333333333333333?`blinkHalf`:!r.reduced&&t>=e.blink+.03333333333333333&&t<e.blink+.06666666666666667||t>e.now+.5&&we(s,r,n*.83,3.3)?`blink`:`wide`,S=r.reduced?0:60*Math.sin(Math.PI*I(t/z(2))),C=t=>Z(s,r,{from:e.now,every:2,off:t*.5,h:34});return u(`ot-patch`,k(`patch`,{x:a*y.patch[0],y:o*y.patch[1],s:y.patch[2]*c,expr:x(0),turn:b,keyline:5,contact:v,hop:C(0)})),u(`ot-bash`,k(`bash`,{x:a*y.bash[0],y:o*y.bash[1],s:y.bash[2]*c,expr:x(1),turn:b,keyline:5,contact:v,hop:S||C(1)})),u(`ot-todo`,k(`todo`,{x:a*y.todo[0],y:o*y.todo[1],s:y.todo[2]*c,expr:x(2),turn:b,contact:v,cu:!0,hop:C(2)})),u(`ot-fork`,k(`fork`,{x:a*y.fork[0],y:o*y.fork[1],s:y.fork[2]*c,expr:x(3),turn:b,contact:v,cu:!0,...Te(s,r,.012,8)})),u(`ot-grep`,k(`grep`,{x:a*y.grep[0],y:o*y.grep[1],s:y.grep[2]*c,expr:x(4),turn:b,cu:!0,crestRot:-4+(r.reduced?0:5*Math.sin(s*2.2))})),an(l,V,p,De(t,r,[[0,6,12]]))}}}function ln(e){let t={n1:0,n2:z(3),cube:z(5)},n=Ze(e.sessions),r=Ze(e.activeDays),i=e.sessions===1?`session`:`sessions`,[a,o]=e.lines.daysLabel;return{id:`summary`,label:`The scale`,title:`${n} ${i}`,summary:`${r} ${a} ${o}${e.window?` `+e.window+`.`:``}`.replace(`open. `,`open, `),held:[`${n} ${i}`,`${r} ${a} ${o}`,e.window],settle:()=>t.cube+.4,cues:()=>[{name:`stomp`,at:t.n2}],frame(s,c,l){let{P:u,W:d,H:f}=c,h=tn(s,l),{items:g,add:_}=on(),v=Ee(s,l,[t.n1,t.n2]),y=Oe(c,s,p);_(`pat`,y.dim),_(`pat-hot`,l.reduced?``:y.hot);let b=f-(u?60:40),x=n.length>=r.length?n:r,S,C,w,T,E,D,O,A,j,M,N,P;if(u)S=K(x.length<3?`000`:x,`ax`,d*.6,-.04),C=56,w=f*.05+S*.72,W(n,`ax`,S,-.04),E=Math.min(120,K(i,`ax112`,d*.86)),O=[C,w+E*1.3],T=O[1]+S*.3+S*.72,D=Math.min(120,q([a,o],`ax112`,d*.86)),A=[C,T+D*1.3],M=Math.min(66,K(e.window||`x`,`monob`,d*.86)),j=[C,A[1]+D*1.08+M*1.9],N=d*.4,P=d*.5;else{S=Math.min(f*.3,K(x.length<3?`000`:x,`ax`,d*.42,-.04)),C=64,w=f*.06+S*.72,T=w+S*.97;let t=W(n,`ax`,S,-.04),s=W(r,`ax`,S,-.04);E=Math.min(104,K(i,`ax112`,d*.74-(C+t+40))),O=[C+t+40,w];let c=C+s+40;D=Math.min(96,q([a,o],`ax112`,d*.76-c)),M=Math.min(56,K(e.window||`x`,`monob`,d*.76-c)),A=[c,T-S*.72+D*.9],j=[c,A[1]+D*1.08+M*1.9],N=Math.min(f*.3,d*.17),P=d*.82}let ee=(e,t,n,r)=>{if(s<r)return;let i=l.reduced?1:s<r+.03333333333333333?1.2:s<r+.16666666666666666?.82:1,a=l.reduced?I((s-r)/.3):1;_(e+`p`,G(0,0,t,{cls:`ax`,size:S,fill:V,ls:-.04}),ve(Y(C+v*.6,n+0+v*.4),`scale(1 ${i})`),a),_(e,G(0,0,t,{cls:`ax`,size:S,fill:p,ls:-.04}),ve(Y(C,n+0),`scale(1 ${i})`),a)};ee(`n1`,n,w,t.n1),ee(`n2`,r,T,t.n2);let te=Q(s,t.n1+2*B,l,.08);te&&_(`l1`,G(O[0],O[1],i,{cls:`ax112`,size:E,fill:p}),J(O[0],O[1],te.s),te.op);let F=Q(s,t.n2+2*B,l,.08);if(F){let t=G(A[0],A[1],a,{cls:`ax112`,size:D,fill:p})+G(A[0],A[1]+D*1.08,o,{cls:`ax112`,size:D,fill:p});e.window&&(t+=G(j[0],j[1],e.window,{cls:`monob`,size:M,fill:p})),_(`l2`,t,J(A[0],A[1],F.s),F.op)}let re=b-N/2,R=l.reduced?+(s>=t.cube):se(s,t.cube-3*B,t.cube,L.outCubic),ae;if(R<1){let n=N*1.7,r=K(e.yearStr,`ax`,n,-.04),i=r*.72,a=[[-9,.6],[t.n1,.44],[t.n2,.3]],o=.6;for(let[e,t]of a)h>=e&&(o=t);let s=oe(1,N/n,R),c=oe(1,N/(i*o),R),l=`translate(${P.toFixed(1)} ${b.toFixed(1)}) scale(${s.toFixed(4)} ${c.toFixed(4)}) translate(${(-P).toFixed(1)} ${(-b).toFixed(1)})`;R<=.5&&_(`slab-p`,G(P-n/2,0,e.yearStr,{cls:`ax`,size:r,fill:V,ls:-.04}),ve(l,Y(v,b+v*.5),`scale(1 ${o})`)),R<=.5&&_(`slab`,G(P-n/2,0,e.yearStr,{cls:`ax`,size:r,fill:p,ls:-.04}),ve(l,Y(0,b),`scale(1 ${o})`)),ae=b-i*o}else{let i=l.reduced?1:1+.18*(1-ie(s-t.cube,{freq:3.4,zeta:.45}))+(s>t.cube+1?.03*Ce(s,t.cube+1):0),a=``;[e.yearStr,n,r,e.yearStr,n].forEach((e,t)=>{a+=`<g transform="translate(${(-N*.52).toFixed(1)} ${(-N*.5+N*(.2+t*.18)).toFixed(1)}) scale(1 0.22)">${G(0,0,e,{cls:`ax`,size:N*.62,fill:V,ls:-.06,op:.55})}</g>`});let o=ne(0,0,N,{id:`sc`,plate:0,k:1})+`<clipPath id="scs"><rect x="${(-N/2).toFixed(1)}" y="${(-N/2).toFixed(1)}" width="${N.toFixed(1)}" height="${N.toFixed(1)}"/></clipPath><g clip-path="url(#scs)">${a}</g>`;_(`cube-plate`,X(-N/2,-N/2,N,N,V),ve(Y(P+v,re+v*.5),J(0,N/2,i))),_(`cube`,o,ve(Y(P,re),J(0,N/2,i))),ae=b-N*1.06}let ce=u?.62:.75,le=[t.n1,t.n2],H=()=>{if(l.reduced)return{};let e={};for(let t of le){let n=Se(h,t,80);(n.hop||n.sx!==1)&&(e=n)}return e},ue=s>=t.cube+.4,de=e=>ue?{hop:Z(h,l,{from:t.cube+.4,every:2,off:e*.5,h:20}),...we(h,l,e*.7)?{expr:`blink`}:{}}:{},fe=N*1.7,pe=e=>{if(R<1)return{x:P-fe/2+fe*(.12+e*.25),y:ae+4};let t=e<2?-1:1,n=e<2?1-e:0;return e===2?{x:P+N*.05,y:ae}:{x:P+t*(N/2+(u?70:90)+n*(u?120:160)),y:b}};return[`grep`,`patch`,`bash`,`todo`].forEach((e,n)=>{let r=pe(n),i=R>=1&&!l.reduced?Se(h,t.cube+z(1),90):{},a={grep:{turn:1,expr:`squint`,crestRot:-8},patch:{expr:`determined`,armL:70,armR:70},bash:{expr:R>=1?`triumph`:`determined`,lean:-10,armL:R>=1?150:40,armR:R>=1?150:40},todo:{expr:`content`,t:Math.max(0,Math.floor(s*6))}}[e];_(e,k(e,{x:r.x,y:r.y,s:ce*(e===`patch`?1.1:1),keyline:0,...a,...R<1?H():i,...de(n)}))}),an(g,m,p,De(s,l,[[t.n1,6,12],[t.n2,5,12]]))}}}function un(e){let t=e.quiz,n={q:0,drop:z(3),signs:z(4)},r=n.signs+.3,i=e=>e===`skip`?`Fine. We’ll tell you.`:e===`high`?t.highLine:`Higher.`,a=e=>e.at+(e.kind===`skip`?0:z(1)),o=e=>{let{P:n,W:r,H:i}=e,a=Math.min(1e3,t.opts[2].v),o=n?25:50;a<o&&(o=a);let s=Math.ceil(a/o),c=n?40:64,l=r-c*2,u=i*(n?.79:.8),d=i*(n?.17:.15),f=l/o,p=Math.min(d/s,f*1.4),m=n?r*.3/250:i*.26/250,h=n?[.19,.5,.81]:[.4,.63,.86],g=n?K(t.opts[2].label,`monob`,r*.26):Math.min(i*.065,K(t.opts[2].label,`monob`,r*.17));return{N:a,cols:o,rows:s,gx:c,gy:u,cw:f,ch:p,sc:m,X:h,ss:g,gtop:u-4}};return{id:`quiz`,label:`Guess`,wait:!0,title:`How many hours with your agents?`,summary:`Guess: ${t.opts.map((e,t)=>`${t+1}, ${e.aria}`).join(`; `)}. Press 1, 2 or 3, or tap a sign.`,held:[`How many hours with your agents?`,...t.opts.map(e=>e.label)],hintAt:()=>r+1.5,settle:()=>r,reactText:i,verdictAt:a,until(e,t){let n=e.quiz?.reaction;if(!n||n.kind===`low1`)return null;let r=i(n.kind);return a(n)+.3+(2.5+.06*r.length)*(t.reduced?1.5:1)},frame(s,c,l,u){let{P:d,W:f,H:h}=c,g=tn(s,l),{items:_,add:y}=on(),b=o(c),x=u.quiz?.picks||[],S=u.quiz?.reaction||null,C=e=>{let t=x.find(t=>t.i===e);return t&&s>=t.at?t.at:null},w=S?a(S):1e9,T=S&&s>=w?S.kind:null,E=Ee(s,l,[n.q,...x.map(e=>e.at)]),D=0,O=0,A=1e9,M=(e,t)=>l.reduced?t:Math.round(t*I((s-e)/z(1)));for(let n of x){if(s<n.at)continue;let r=t.opts[n.i];r.low?(O=Math.max(O,M(n.at,r.v)),s>=n.at+z(2)&&(D=Math.max(D,r.v))):(O=Math.max(O,M(n.at,Math.min(r.v,b.N))),s>=n.at+z(3)&&(D=Math.max(D,e.hoursR),A=e.hoursR,O=0))}T===`low2`&&!l.reduced?D=Math.max(D,Math.round(oe(D,e.hoursR,L.inQuad(I((s-w)/z(4)))))):T===`low2`&&(D=e.hoursR);let N=Math.floor(Math.max(0,s)/z(1)+1e-6)%b.rows,P=``,ee=``,te=``,F=``,ne=``;for(let e=0;e<b.N;e++){let t=Math.floor(e/b.cols),n=e%b.cols,r=ye(b.gx+n*b.cw,b.gy+t*b.ch,b.cw*.72,b.ch*.72);e>=A?ne+=r:e<D?ee+=r:e<Math.max(D,O)?te+=r:t===N&&!x.length&&!l.reduced?F+=r:P+=r}let re=l.reduced||Math.floor(s/z(1))%2==0;y(`cells`,`<path d="${P}" fill="${m}" opacity="0.09"/>`),y(`cells-scan`,`<path d="${F}" fill="${m}" opacity="0.3"/>`),y(`cells-paper`,`<path d="${ee}" fill="${m}"/>`),y(`cells-pink`,`<path d="${te}" fill="${V}"/>`),y(`cells-hollow`,`<path d="${ne}" fill="none" stroke="${V}" stroke-width="3"/>`,``,re?1:.4);let R=d?48:64,ae=h*(d?.05:.06),se=(e,t,n,r,i=.07)=>{let a=Q(s,r,l,i);if(!a)return;let o=``,c=``;t.forEach((e,t)=>{let r=ae+n*.76+t*n*1.04;o+=G(R,r,e,{cls:`ax`,size:n,fill:V,ls:-.03}),c+=G(R,r,e,{cls:`ax`,size:n,fill:m,ls:-.03})});let u=ae+n*.4;y(e+`p`,o,ve(Y(E,E*.5),J(R,u,a.s)),a.op),y(e,c,J(R,u,a.s),a.op)};if(T){let e=i(T),t=T===`low2`,n=d&&e.length>10?rn(e,2):[e],r=t?d?f*.8:f*.86:T===`low1`?d?f*.7:f*.44:d?f*.86:f*.66;se(`v-`+T,n,q(n,`ax`,r,-.03),w,t?.12:.08)}else{let e=d?[`How many`,`hours with`,`your agents?`]:[`How many hours`,`with your agents?`];se(`q`,e,d?q(e,`ax`,f*.86,-.03):q(e,`ax`,f*.6,-.03),n.q)}let ce=[],le=t.opts.map((e,t)=>({o:e,i:t,x:f*b.X[t]})),de=T===`low2`&&!l.reduced?s-w:0,fe=T===`skip`;for(let{o:e,i:t,x:i}of le){let a=e.who,o=n.drop+t*2*B;if(l.reduced&&s<n.drop)continue;let c={x:i,y:b.gtop,s:b.sc,keyline:6,armL:172,armR:172},u=C(t),_=Z(g,l,{from:r,every:2,off:t*.67,h:22});if(a===`bash`&&(c={...c,expr:`determined`,hop:_}),a===`todo`&&(c={...c,expr:`triumph`,t:Math.max(0,Math.floor(s*6)),hop:_}),a===`fork`&&(c={...c,expr:we(g,l,1.1,2.6)?`blink`:`smug`,hop:_}),u==null?T===`high`?c={...c,look:1,expr:`wide`,hop:0}:T===`low2`&&(c={...c,expr:`wide`,hop:0}):(a===`bash`&&(c={...c,...j(`land`),sx:1.3,sy:.62,expr:`error`,armL:100,armR:100,hop:0}),a===`todo`&&(c={...c,expr:`crushed`,sy:.9,sx:1.06,hop:0}),a===`fork`&&(c={...c,expr:s>=u+z(1)&&s<u+z(1)+.06666666666666667?`blink`:`smug`,lean:-8,hop:Z(g,l,{from:u+z(2),every:1,h:16})})),fe&&(c={...c,armL:20,armR:20,expr:a===`fork`?`side`:`wide`,flip:a===`fork`,turn:+(a===`fork`),hop:0}),!l.reduced&&g<o){let e=I((g-(n.drop-z(1)))/(o-(n.drop-z(1))));c={...c,...j(`air`),hop:h*.9*(1-e)/b.sc}}if(y(`c-`+a,k(a,c)),s<n.signs-.06666666666666667)continue;let x=ke(e.label,b.ss,p,a===`todo`?H:a===`fork`?V:m),w=v[a].height*b.sc*(c.sy||1),E=l.reduced?0:(1-ie(s-n.signs,{freq:4,zeta:.45}))*60,D=1,O=``,A=``;u!=null&&a===`bash`&&(D=l.reduced?.22:oe(1,.22,I((s-u)/(2*B)))),u!=null&&a===`todo`&&(O=`<rect x="${(-x.w/2-10).toFixed(1)}" y="${(-x.h*.6).toFixed(1)}" width="${((x.w+20)*(l.reduced?1:I((s-u)/(2*B)))).toFixed(1)}" height="${(x.h*.16).toFixed(1)}" fill="${ue}"/>`),u!=null&&a===`fork`&&!l.reduced&&(A=`rotate(${(6*Math.sin((s-u)*Math.PI*3)*Math.exp(-(s-u)*1.2)).toFixed(2)})`);let M=(c.hop||0)*b.sc,N=b.gtop-w-6+E-M,P=``;if(de>0&&u==null&&de*4>=.97)continue;if(de>0&&u==null&&(P=ve(Y(de*f*(t-1)*.5,-de*h*.5),`rotate(${(de*400*(t%2?1:-1)).toFixed(1)})`,`scale(${Math.max(.001,1-de*4).toFixed(3)})`)),fe){y(`sign`+t,x.svg,ve(Y(i,N+w*.55),`rotate(-4)`),l.reduced?1:1-.3*I((s-S.at)/.3));continue}y(`sign`+t,x.svg+O,ve(Y(i,N),P,A,`scale(1 ${D.toFixed(3)})`));let ee=s>=r-.1&&!u&&(!S||S.kind===`low1`);if(ee&&ce.push({i:t,x:i-Math.max(x.w,150*b.sc)/2,y:N-x.h,w:Math.max(x.w,150*b.sc),h:b.gtop-(N-x.h)}),!d&&ee){let e=i-x.w/2-b.ss*.55,n=N-x.h*.5,r=b.ss*.42;y(`key`+t,`<circle cx="${e.toFixed(1)}" cy="${n.toFixed(1)}" r="${r.toFixed(1)}" fill="${m}" opacity="0.18"/>`+G(e,n+r*.42,String(t+1),{cls:`monob`,size:Math.max(32,r*1.05),fill:m,anchor:`middle`,ov:`key`+t}))}}if(!x.length&&!S&&s>=r+1.5){let e=u.hintKeys?`Press 1–3`:`Tap a sign`,t=d?52:42,n=d?f/2:f*b.X[1],i=d?h*.47:h*.37,a=l.reduced?0:-8*Ce(s,r+1.5);y(`hint`,G(n,i,e,{cls:`monob`,size:t,fill:H,anchor:`middle`}),Y(0,a),l.reduced?1:I((s-r-1.5)/.3))}if(!d){let e=b.sc*.75,t=T===`low2`||T===`high`;y(`c-grep`,k(`grep`,{x:f*.07,y:b.gtop,s:e,turn:1,keyline:6,expr:t?`wide`:`squint`,look:Math.sin(Math.max(0,s)/z(1)*Math.PI),crestRot:l.reduced?0:6*Math.sin(g*6),hop:Z(g,l,{from:r,every:4,off:1,h:14})})),y(`c-patch`,k(`patch`,{x:f*.2,y:b.gtop,s:e*1.05,keyline:6,expr:t?`wide`:we(g,l,.5)?`blink`:`neutral`,look:1,hop:Z(g,l,{from:r,every:2,off:1.5,h:18})}))}return{...an(_,p,m,De(s,l,S?[[w,6,12]]:[])),hot:ce}}}}function dn(e){let t=e.hoursStr[0]===`9`,n={slam:0,nine:z(2),back:z(t?5:3)};n.days=n.back+z(5);let r=e.lines.daysLine,i=e.days,a=Math.ceil(i/7),o=r?n.days+a*z(.5)+.3:n.back+.3,s=`≈ ${e.hoursStr}`,c=t=>{let{P:n,W:i,H:o}=t,s=F(`≈`,0,0,50).width+4+F(e.hoursStr,0,0,100).width;if(!n){let e=Math.min(o*(r?.44:.56),i*(r?.56:.8)/s*100),t=o*(r?.56:.6),n=Math.min(170,e*.36),c=Math.min(i*.3/7,o*.56/Math.max(1,a));return{size:e,ax:64,base:t,hs:n,hx:64,hy:t+n*1.1,ds:r?Math.min(110,K(r,`ax`,i*.5)):0,dx:64,dy:o*.93,grid:{c,gx0:i*.64,gy0:o*.24}}}let c=Math.min(o*.2,i*.9/s*100),l=i*.05,u=o*.06+140+c*.72,d=Math.min(190,c*.42),f=u+d*1.15,p=r?Math.min(120,K(r,`ax`,i*.88)):0,m=f+o*.04+p,h=Math.min(i*.62/7,(o*.9-(m+o*.04))/Math.max(1,a));return{size:c,ax:l,base:u,hs:d,hx:l,hy:f,ds:p,dx:l,dy:m,grid:{c:h,gx0:(i-7*h)/2+h*.6,gy0:m+o*.04}}};return{id:`reveal`,label:`The hours`,title:`${s} hours`,summary:r||`About ${e.hoursStr} hours.`,held:[`${s} hours`,r||``],settle:()=>o,frame(s,l,u){let{P:d,W:f,H:h}=l,g=tn(s,u),{items:_,add:v}=on(),y=u.reduced?0:s>=0&&s<.03333333333333333?1:s>=.03333333333333333&&s<.06666666666666667?2:0,b=s<(t&&!u.reduced?n.nine:n.back)?`num`:s<n.back?`nine`:`held`,x=y===1?H:y===2?p:le,S=u.reduced?0:Ce(s,z(1));if(!y){let e=Oe(l,s,m,.05,u.reduced?.05:.18);v(`bpat`,e.dim),v(`bpat-hot`,e.hot)}if(b===`num`){let t=y===1?p:y===2?H:V,r=u.reduced?1:s<.06666666666666667?1.16:1+.16*(1-ie(s-2*B,{freq:2.4,zeta:.4})),i=u.reduced?1:1+.07*S,a=u.reduced?12:4+12*(1-Math.exp(-Math.max(0,s)*3))+12*S,o=[],c=``;if(d){let n=f*.62,r=[[e.hoursStr[0],.3,.44,0],[e.hoursStr[1],.42,.65,2/12],[e.hoursStr[2],.18,.86,4/12]],c=``;r.forEach(([e,r,l,d])=>{if(!e)return;let p=u.reduced?0:d;if(s<p&&!y){o.push(null);return}let m=f*r,g=h*l,_=(u.reduced?1:s<p+.06666666666666667?1.16:1+.16*(1-ie(s-p-2*B,{freq:2.4,zeta:.4})))*i,v=F(e,m,g,n,{fill:t});c+=`<g transform="${J(m+n*.3,g-n*.36,_)}">${y?``:F(e,m+a,g+a*.6,n,{fill:H}).svg}${v.svg}</g>`,o.push(v.boxes[0])});let l=n*.42,d=f*.04,p=h*.44-n*.24;c=(y?``:F(`≈`,d+a*.6,p+a*.4,l,{fill:H}).svg)+F(`≈`,d,p,l,{fill:t}).svg+c,v(`num`,c)}else{let n=F(`≈`,0,0,50).width+4+F(e.hoursStr,0,0,100).width,s=Math.min(h*.8,f*.86/n*100),l=F(`≈`,0,0,s*.5).width,u=F(e.hoursStr,0,0,s).width,d=(f-(l+s*.04+u))/2,p=d+l+s*.04,m=h*.5+s*.36,g=F(e.hoursStr,p,m,s,{fill:t});o=g.boxes,c=J(f/2,h/2,r*i);let _=F(`≈`,d,m-s*.2,s*.5,{fill:t});y||v(`num-plate`,F(e.hoursStr,p,m,s,{fill:H}).svg+F(`≈`,d,m-s*.2,s*.5,{fill:H}).svg,ve(c,Y(a,a*.6))),v(`num`,_.svg+g.svg,c)}let l=y?{silhouette:y===1?p:H}:{},m=e=>y?M[e]:{},[_,b,x]=o;if(_){let e=_.bottom-_.top,t=u.reduced?1:ce(g,1/12,{freq:3,zeta:.45});v(`patch`,k(`patch`,{x:_.cx-6,y:_.top+e*.52+80*(1-t),s:d?.44:.46,expr:`wide`,mouth:`o`,armL:150,armR:150,...m(`patch`),...l}),c)}if(b){let e=d?f*.86:b.cx+(b.bottom-b.top)*.3,t=d?h*.6:b.bottom-6,n=u.reduced?84:84*L.outBack(I((g-1/12)/.25));v(`grep`,k(`grep`,{x:e,y:t,s:d?.5:.62,expr:s<.5?`tiny`:`error`,lean:-n,turn:1,flip:d,armL:160,armR:160,keyline:y?0:6,...m(`grep`),...l}),c)}x&&v(`fork`,k(`fork`,{x:x.x0+(x.x1-x.x0)*.42,y:x.top+2,s:.5,expr:`smug`,lean:-8,...m(`fork`),...l}),c);let C=d?1.1:1.55,w=I((g-2*B)/(n.nine-2*B)),T=u.reduced?null:{x:oe(f*1.1,f*.1,L.outCubic(w)),y:h*oe(.35,1,w*w)+40,s:C,...j(w<.4?`launch`:`air`)};T&&!y?v(`bash`,k(`bash`,T)):y&&v(`bash`,k(`bash`,{x:f*.88,y:h*.45,s:C,...M.bash,...l}))}else if(b===`nine`){let t={cx:421.5,cy:467,rx:140.5,ry:81},r=d?f*.42/(t.rx/1e3):h/1080*2600,i=r/1e3,a=1+.16*se(s,n.nine,n.back,L.inOutCubic),o=(1+.18*(1-ie(s-n.nine,{freq:3,zeta:.5}))+.07*S)*a,c=f/2,l=h*(d?.46:.5),u=c-t.cx*i,p=l+t.cy*i,m=22+40*S;v(`nine`,F(e.hoursStr[0],u+m,p+m*.8,r,{fill:H}).svg+F(e.hoursStr[0],u,p,r,{fill:V}).svg,J(c,l,o));let _=t.rx*i,y=t.ry*i,b=Math.floor((g-n.nine)/z(1)+1e-6)%3,x=[{sx:1.12,sy:.86,armL:84,armR:84,expr:`indignant`,crestRot:-22},{sx:1.18,sy:.8,armL:90,armR:78,expr:`indignant`,crestRot:-30,lean:-5,look:.4},{sx:1.08,sy:.9,armL:80,armR:88,expr:`determined`,mouth:`pout`,crestRot:-16,lean:4,look:-.5,lookY:-.3}][Math.max(0,b)];v(`patch9`,`<clipPath id="nine-ctr"><ellipse cx="${c}" cy="${l}" rx="${_.toFixed(1)}" ry="${y.toFixed(1)}"/></clipPath><g clip-path="url(#nine-ctr)"><rect x="${(c-_).toFixed(1)}" y="${(l-y).toFixed(1)}" width="${(_*2).toFixed(1)}" height="${(y*2).toFixed(1)}" fill="${le}"/>${k(`patch`,{x:c+6,y:l+y+6,s:r/2600*2.55,cu:!0,...x})}</g>`,J(c,l,o))}else{let p=c(l),_=u.reduced?1:1+.025*S,y=F(`≈`,0,0,p.size*.5).width,b=p.ax+y+p.size*.04,x=u.reduced?1:xe(s,n.back,.06),C=Ee(s,u,[n.back],14)+4*S,w=F(e.hoursStr,b,p.base,p.size,{fill:V}),T=F(e.hoursStr,b,p.base,p.size,{fill:H}).svg+F(`≈`,p.ax,p.base-p.size*.2,p.size*.5,{fill:H}).svg,E=J(p.ax+w.width/2,p.base-p.size*.36,x*_);v(`num-plate`,T,ve(E,Y(C,C*.6))),v(`num`,F(`≈`,p.ax,p.base-p.size*.2,p.size*.5,{fill:V}).svg+w.svg,E);let D=Q(s,n.back,u,.08);D&&v(`hours`,G(p.hx,p.hy,`hours`,{cls:`ax`,size:p.hs,fill:m,ls:-.02}),J(p.hx,p.hy-p.hs*.35,D.s),D.op);let[O]=w.boxes,A=w.boxes[w.boxes.length-1];if(O&&t){let e=p.size/1e3,t={cx:421.5,cy:467,rx:140.5},r=b+t.cx*e-F(`9`,0,0,p.size).boxes[0].x0*0,i=p.base-t.cy*e,a=u.reduced?0:Math.floor((g-n.back)/z(2)+1e-6)%3,o=[{expr:`indignant`,crestRot:-22,armL:84,armR:84},{expr:`indignant`,crestRot:-30,lean:-5,armL:90,armR:78},{expr:`determined`,mouth:`pout`,crestRot:-16,lean:4,armL:80,armR:88}][Math.max(0,a)];v(`patch`,k(`patch`,{x:r+2,y:i+t.rx*e*.52,s:t.rx*e*1.6/192,...o}),E)}if(A&&v(`fork`,k(`fork`,{x:A.x0+(A.x1-A.x0)*.45,y:A.top+2,s:(d?.42:.5)*(p.size/450),expr:we(g,u,.4,2.8)?`blink`:`smug`,lean:-8,hop:Z(g,u,{from:n.back+1,every:4,h:18})}),E),r){let e=Q(s,n.days,u,.06);e&&v(`d-line`,G(p.dx,p.dy,r,{cls:`ax`,size:p.ds,fill:m}),J(p.dx,p.dy,e.s*(u.reduced?1:1+.02*S)),e.op);let t=p.grid,c=z(.5);if(s>=n.days-.06666666666666667){let e=u.reduced?a:Math.min(a,Math.floor((s-n.days)/c+1e-6)+1),r=u.reduced?7:Math.min(7,Math.floor((s-n.days)%c/B)+1),p=u.reduced||s-n.days>=a*c?i:s<n.days?0:Math.min(i,(e-1)*7+r),_=``,y=``;for(let e=0;e<i;e++){let n=ye(t.gx0+e%7*t.c,t.gy0+Math.floor(e/7)*t.c,t.c*.82,t.c*.82);e<p?_+=n:y+=n}let b=u.reduced?1:1+.03*S+(s>=n.days&&s<n.days+.4?.1*Math.exp(-(s-n.days)*10):0);v(`d-cells`,`<path d="${y}" fill="${m}" opacity="0.18"/><path d="${_}" fill="${H}"/>`,J(t.gx0+3.5*t.c,t.gy0+a*t.c/2,b));let x=p>=i,C=nn(l),w=t.gy0+(Math.min(e,a)-1)*t.c+t.c*.82,T=u.reduced?0:(s-n.days)%c/c;if(!d)v(`grep`,k(`grep`,{keyline:5,x:t.gx0-t.c*.62,y:x?t.gy0+a*t.c:w,s:.56*C,expr:x?we(g,u,.2)?`blink`:`happy`:`squint`,turn:1,look:x?Math.sin(s*1.7):-1+2*T,hop:x?Z(g,u,{from:o,every:2,off:1,h:20}):0})),v(`todo`,k(`todo`,{x:f*.87,y:h*.99,s:.86*C,expr:x?`triumph`:`determined`,armR:Math.floor((s-n.days)/c)%2?160:40,hop:x?Z(g,u,{from:o,every:2,h:30}):u.reduced?0:50*Math.sin(Math.PI*I((s-n.days)%c/c)),cu:!0}));else{let e=t.gy0+a*t.c;v(`todo`,k(`todo`,{x:f*.84,y:Math.min(h-10,e+165.2*C+30),s:.7*C,expr:x?`triumph`:`determined`,armR:Math.floor((s-n.days)/c)%2?160:40,hop:x?Z(g,u,{from:o,every:2,h:30}):0})),v(`grep`,k(`grep`,{keyline:5,x:f*.22,y:Math.min(h-10,e+186*C+30),s:.62*C,expr:x?`happy`:`squint`,turn:1,look:1,hop:x?Z(g,u,{from:o,every:2,off:1,h:20}):0}))}}}}return{...an(_,!y&&!u.reduced&&S>0&&b!==`held`?be(le,`#FFFFFF`,.11*S):x,y===1?p:m,De(s,u,[[0,30,6],[n.back,5,12]])),impact:y}}}}function fn(e){let t={field:0,six:0,bash:z(2),close:z(3)};Math.max(0,1e3-e.hoursR);let n=e.lines.gap;return{id:`soclose`,label:`So close`,title:n,summary:`So close.`,held:[n,`So close.`],settle:()=>t.close+.3,cues:()=>[{name:`soclose`,at:t.close}],frame(r,i,a){let{P:o,W:s,H:c}=i,l=tn(r,a),{items:u,add:d}=on(),f=Oe(i,r,m,.04,a.reduced?.04:.09);d(`bpat`,f.dim),d(`bpat-hot`,f.hot);let p=o?n.includes(` of `)?[n.split(` of `)[0]+` of`,n.split(` of `)[1]]:rn(n,2):[n],h=o?q(p,`ax`,s*.88,0,170):Math.min(130,K(n,`ax`,s*.74)),g=o?48:64,_=c*.04+h*.8,v=Q(r,t.six,a,.12);v&&d(`f-line`,p.map((e,t)=>G(g,_+t*h*1.08,e,{cls:`ax`,size:h,fill:m})).join(``),J(g,_,v.s),v.op);let y=_+(p.length-1)*h*1.08,b=o?25:50,x=1e3/b,S=o?40:64,C=s-S*2,w=y+c*(o?.04:.06),T=c*(o?.36:.34),E=C/b,D=T/x,O=a.reduced?e.hoursR:Math.round(e.hoursR*L.outCubic(I(Math.floor(Math.max(0,r)/z(.25))*z(.25)/z(1.5)))),A=``,M=``;for(let t=0;t<1e3;t++){let n=Math.floor(t/b),r=ye(S+t%b*E,w+n*D,E*.78,D*.78);t<O?A+=r:t>=e.hoursR&&(M+=r)}let N=a.reduced||r<t.six||Math.floor((r-t.six)/z(1))%2==0;d(`f-cells`,`<path d="${A}" fill="${V}"/>`),e.precise?d(`f-empty`,`<path d="${M}" fill="none" stroke="${m}" stroke-width="4"/>`,``,N?1:.35):d(`f-empty`,`<path d="${M}" fill="${m}" opacity="0.14"/>`);let P=o?s*.56/206:c*.42/190,ee=s*(o?.3:.2),te=c*1.02;if((r>=t.bash-.06666666666666667||a.reduced)&&!(a.reduced&&r<t.bash)){let e=a.reduced?0:(1-ie(r-t.bash+2*B,{freq:2.6,zeta:.6}))*c*.4,n=a.reduced?!0:l>=t.close,i=!a.reduced&&r>t.close+1.5&&Math.floor((l-t.close)/z(8))%2==1,o={x:ee,y:te+Math.max(0,e),s:P,...j(n&&!i?`soClose2`:`soClose`),droop:n?6:3,point:0,armL:0,armR:0,turn:.2,cu:!0,look:.5,lookY:-.2,...Te(l,a,.012,8)};we(l,a,.6,3.4)&&(o={...o,expr:`blink`}),d(`bash`,Ae(k(`bash`,o)))}let F=Q(r,t.close,a,.06);if(F){let e=o?K(`So close.`,`ax`,s*.82):Math.min(220,K(`So close.`,`ax`,s*.5)),t=o?48:s*.44,n=o?c*.715:c*.92;d(`c-line`,G(t,n,`So close.`,{cls:`ax`,size:e,fill:m,ls:-.02}),J(t,n-e*.35,F.s),F.op)}return an(u,le,m,De(r,a,[[t.close,4,12]]))}}}var pn=e=>{let[t,n]=e.split(`:`).map(Number);return t*60+n},mn={lights:z(1),stage:z(2),header:z(2),run:z(4),hours:[z(8),z(10),z(12),z(14),z(16),z(18)],shutter:z(20),more:z(24)};function hn(e,t){let n=pn(e.night.start),r=e.night.minutes,i=(60-n%60)%60||60,a=[0,1,2,3,4,5].map(e=>i+60*e).filter(e=>e<r);return{total:r,knots:[[t.run,0],...a.map((e,n)=>[t.hours[n],e]),[t.shutter-.1,r-1],[t.shutter,r]],hits:a.map((e,n)=>t.hours[n])}}function gn(e,t){let n=t.knots;if(e<=n[0][0])return 0;for(let t=1;t<n.length;t++)if(e<n[t][0]){let[r,i]=n[t-1],[a,o]=n[t];return i+(o-i)*L.inOutCubic((e-r)/(a-r))}return t.total}function _n(e){let{P:t,W:n,H:r}=e,i=t?n*.25:r*.27,a=t?r*.34:r*.46,o=i*.78,s=i*.3,c=.736*i;return{cx:n/2,size:i,base:a,cell:o,colW:s,capH:c,total4:o*4+s}}function vn(e,t,n,{hourSquash:r=1,minuteStretch:i=0,colonOn:a=!0}={}){let o=e.cx-e.total4/2,s=``,c=(t,r,i=1)=>{let a=F(t,0,0,e.size).width,o=F(t,r+(e.cell-a)/2,e.base,e.size,{fill:n}).svg;return i===1?o:`<g transform="translate(0 ${(e.base-e.capH/2).toFixed(1)}) scale(1 ${i}) translate(0 ${(-(e.base-e.capH/2)).toFixed(1)})">${o}</g>`},l=t.replace(`:`,``);for(let t=0;t<4;t++){if(t===2){let t=o+e.colW/2,r=e.size*.1,i=e.size*.155;a&&(s+=X(t-r/2,e.base-e.capH*.78,r,i,n)+X(t-r/2,e.base-e.capH*.36,r,i,n)),o+=e.colW}s+=c(l[t],o,t<2?r:i&&t>=2?i:1),o+=e.cell}return s}var yn=[`todo`,`patch`,`grep`,`bash`],bn=`#121436`,xn=`#353B86`,Sn=(e,t,n)=>Math.atan2(n.y-t,n.x-e)*180/Math.PI;function Cn(e){let t=1e3-e.hoursR,n=e.lines.more,r=e=>e.sched||mn,i=e=>String(e).padStart(2,`0`);return{id:`night`,label:`The longest night`,title:e.lines.night,summary:`${e.nightHeader.replace(`→`,`to`)}. ${e.night.start} to ${e.night.end}.${n?` `+n.join(` `):``}`,held:[n?n.join(` `):`${e.lines.night} ${e.nightHeader}`,e.night.end],settle:e=>n?r(e).more+.3:r(e).shutter+.5,cues:e=>[{name:`shutter`,at:r(e).shutter}],frame(a,o,s,c){let l=r(c),{P:u,W:d,H:f}=o,h=tn(a,s),g=nn(o),{items:_,add:y}=on(),b=hn(e,l),x=d*(u?.93:.95);if(a<l.lights){let e=s.reduced?1:se(a,-z(.4),0,L.inCubic),t=(f-239.4*g-40)*I((a+.3)/(3*B))+80*e;return y(`cord`,`<rect x="${(x-3).toFixed(1)}" y="-10" width="6" height="${(t+10).toFixed(1)}" fill="${m}"/><circle cx="${x}" cy="${(t+14).toFixed(1)}" r="16" fill="${m}"/>`),y(`fork-cord`,k(`fork`,{x:x-30*g,y:t+20+239.4*g,s:.9*g,expr:e>0?`determined`:`smug`,armL:175,armR:10,flip:!0,sy:1-.12*e,sx:1+.08*e})),an(_,be(le,de,.5),m)}if(a<l.stage){let e=f*(u?.3:.42)/190;y(`bash`,Ae(k(`bash`,{x:d*(u?.3:.2),y:f*1.02,s:u?d*.56/206:e,...j(`soClose2`),droop:6,point:0,armL:0,armR:0,turn:.2,silhouette:`#15183F`})));let t=s.reduced?0:10*Math.sin((a-l.lights)*18)*Math.exp(-(a-l.lights)*4);return y(`cord`,`<rect x="${(x-3).toFixed(1)}" y="-10" width="6" height="${(f-239.4*g+60).toFixed(1)}" fill="${m}" opacity="0.5"/>`,`rotate(${t.toFixed(2)} ${x} 0)`),an(_,fe,H)}let S=n?l.more:l.shutter,C=s.reduced?0:a<S+.5?oe(u?24:50,u?-24:-50,se(a,l.stage,S+.5,L.inOutCubic)):(u?-24:-50)+(u?10:18)*Math.sin((a-S-.5)*.5),w=e=>Y(C*e,0),T=_n(o),E={x:T.cx,y:T.base-T.size*.36},D=gn(a,b),O=b.hits.filter(e=>h>=e).length,A=a>=l.shutter;{let e=s.reduced||!A?1:1+.015*Math.sin(a*2),t=(u?d*.5:d*.42)*(1-.06*O)*e,n=(u?f*.16:f*.24)*(1-.06*O)*e,r=d/2,i=u?f*.74:f*.82,o=u?30:34,c=``;for(let e=i-n;e<=i+n;e+=o*.6)for(let a=r-t;a<=r+t;a+=o){let s=((a-r)/t)**2+((e-i)/n)**2;if(s>1)continue;let l=(1-s)*o*.24;l>.8&&(c+=`M${(a+l).toFixed(1)} ${e.toFixed(1)}a${l.toFixed(1)} ${l.toFixed(1)} 0 1 0 ${(-2*l).toFixed(1)} 0a${l.toFixed(1)} ${l.toFixed(1)} 0 1 0 ${(2*l).toFixed(1)} 0`)}y(`pool`,`<path d="${c}" fill="${H}"/>`,w(.6),s.reduced?1:I((a-l.stage)/.12))}let M=u?{grep:[.2,.66,.95],patch:[.8,.66,.95],todo:[.16,.9,1.3],bash:[.82,.92,1.35],fork:[.5,.8,1.15]}:{grep:[.3,.76,.95],patch:[.72,.76,.95],todo:[.1,1,1.35],bash:[.9,1,1.4],fork:[.5,.94,1.1]},ee=A&&a<l.shutter+.5,te=Object.keys(M).sort((e,t)=>M[e][1]-M[t][1]);for(let e of te){let[t,n,r]=M[e],i={x:d*t,y:f*n,s:r*g,cam:`high`,flip:t>.5},o=Sn(i.x,i.y-v[e].height*i.s*.5,E);if(e===`fork`){let e={...P[+(h>=l.hours[5])],acc:[`baton`],armR:ee?160:130-(s.reduced||A?0:20*Ce(a,l.run,l.shutter)),armL:30,turn:.5,colorway:{color:p,shade:`#2C2C36`,eye:H}};ee?e={...e,expr:`snap`}:A&&we(h,s,.3,2.9)&&(e={...e,expr:`blink`}),y(`c-fork`,k(`fork`,{...i,contact:bn,...e,lit:{angle:o,k:e.litK??.8,shadow:`#0A0A12`}}),w(1));continue}let c=yn.indexOf(e),u=b.hits[c]??99,_=s.reduced?a>=u?3:0:h>=u?Math.min(3,1+Math.floor((h-u)*12+1e-6)):0;A&&(_=3);let x=N[e][_],S=A&&!ee?Te(h,s,.02,8,c):{},C;C=ee?k(e,{...i,...x,expr:`snap`,mouth:``,lookY:-.2,lit:{angle:o,k:0},eyeColor:m,contact:bn}):k(e,{...i,...x,...S,t:Math.max(0,Math.floor(a*6)),lit:{angle:o,k:x.litK},eyeColor:x.litK===0?xn:void 0,contact:bn}),y(`c-`+e,C,w(e===`bash`||e===`todo`?1.5:1))}{let t=!s.reduced&&a>=l.shutter&&a<l.shutter+.06666666666666667,n=t?de:H,r=pn(e.night.start),o=r+D,c=Math.floor(o/60)%24,u=Math.min(59,Math.floor(o-Math.floor(o/60)*60+1e-6)),d=(gn(a+B,b)-D)*30,f=b.hits.find(e=>a>=e&&a<e+.06666666666666667),p=!s.reduced&&d>40&&a>=l.run&&a<l.shutter-.1;if(p){let e=r+gn(Math.floor(a/z(.5)+1e-6)*z(.5),b);u=Math.floor(e-Math.floor(e/60)*60)}A&&(c=pn(e.night.end)/60|0,u=pn(e.night.end)%60);let m=t?X(T.cx-T.total4*.62,T.base-T.capH*1.35,T.total4*1.24,T.capH*1.7,H):``;m+=vn(T,`${i(c)}:${i(u)}`,n,{hourSquash:f&&!s.reduced?.72:1,minuteStretch:p?1.25:0,colonOn:!0});let h=0;for(let e of b.hits)a>=e&&a<e+.3&&(h=.1*Math.exp(-(a-e)*12));a>=l.shutter&&(h=.05*(1-ie(a-l.shutter,{freq:4,zeta:.5})));let g=s.reduced?1:I((a-l.stage)/.12);y(`clock`,m,ve(w(.35),J(T.cx,T.base-T.size*.36,1+(s.reduced?0:h))),g)}if(e.oneMoreNight){let e=u?96:76,r=t*e+(t-1)*14,i=T.cx-r/2,o=T.base+T.size*.3,c=a>=(n?l.more:l.shutter),d=A?t:Math.min(t,O),f=(e,t,n)=>{let r=``;for(let i=1;i<=4;i++){let a=n*i/5;r+=`M${(e+a).toFixed(1)} ${t.toFixed(1)}L${e.toFixed(1)} ${(t+a).toFixed(1)}M${(e+n).toFixed(1)} ${(t+a).toFixed(1)}L${(e+a).toFixed(1)} ${(t+n).toFixed(1)}`}return`<path d="${r}" stroke="${H}" stroke-width="${(n*.07).toFixed(1)}" fill="none"/>`},p=``;for(let n=0;n<t;n++){let t=i+n*(e+14),r=b.hits[Math.min(n,b.hits.length-1)],l=!s.reduced&&n===d-1&&!A&&a-r<.4?1+.3*Math.exp(-(a-r)*10):1,u=n<d?c?f(t,o,e):X(t,o,e,e,H):``;p+=`<g transform="${J(t+e/2,o+e/2,l)||`translate(0 0)`}">${u}<rect x="${t.toFixed(1)}" y="${o.toFixed(1)}" width="${e.toFixed(1)}" height="${e.toFixed(1)}" fill="none" stroke="${n<d?H:m}" stroke-width="5"${c?` stroke-dasharray="${(e*.18).toFixed(1)} ${(e*.1).toFixed(1)}"`:``}/></g>`}y(`six`,p,w(.35),s.reduced?1:I((a-l.stage)/.12))}let F=u?48:64,ne=u?f*.06+40:f*.05+60,re=u?K(`Your longest night.`,`ax112`,d-96):76,R=u?44:40;if(!n||a<l.more){let t=Q(a,l.header,s,.05);t&&y(`w1`,G(F,ne+re*.4,e.lines.night,{cls:`ax112`,size:re,fill:m})+(e.nightHeader?G(F,ne+re*1+R*1.3,e.nightHeader,{cls:`monob`,size:R,fill:m}):``),J(F,ne,t.s),t.op)}else{let e=u?q(n,`ax112`,d-96):K(n[0],`ax112`,d*.5),t=Q(a,l.more,s,.05);y(`w2`,G(F,ne+e*.4,n[0],{cls:`ax112`,size:e,fill:m})+G(F,ne+e*1.5,n[1],{cls:`ax112`,size:e,fill:H}),J(F,ne,t.s),t.op)}return an(_,de,m,De(a,s,[[l.shutter,10,10],[l.stage,4,12]]))}}}function wn(e,t){let{P:n,W:r,H:i}=e,a=t.lines.talk,[o,s]=a.includes(` about `)?[a.split(` about `)[0]+` about`,a.split(` about `)[1]]:[a.replace(/\.$/,``),null];if(n){let e=s?[[`We need`,m],[`to talk about`,m],[s,H]]:[[`We need`,m],[`to talk.`,H]],t=K(s?`to talk about`:`We need`,`ax`,r*.86),n=i*.44,a=e.map(([e,r],i)=>[e,48,n+t*(i===2?2.2:i*1.05),r]),o=a[a.length-1];return{ls:t,lines:a,last:[o[1],o[2],o[0]],eyes:[r*.5,i*.14+r/1080*900,r/1080*12],hanko:[r*.68,i*.75,r*.42],mark:[48,i-70,44]}}let c=K(`We need to talk`,`ax`,r*.66),l=r*.06,u=i*.42;if(!s)return{ls:c,lines:[[`We need`,l,u,m],[`to talk.`,l,u+c*1.02,H]],last:[l,u+c*1.02,`to talk.`],eyes:[r*.84,i*.2+i/1080*600,i/1080*8],hanko:[r*.8,i*.7,i*.3],mark:[l,i-54,36]};let d=W(`about `,`ax`,c)+c*.1;return{ls:c,lines:[[`We need to talk`,l,u,m],[`about`,l,u+c*1.02,m],[s,l+d,u+c*1.02,H]],last:[l+d,u+c*1.02,s],eyes:[r*.84,i*.2+i/1080*600,i/1080*8],hanko:[r*.8,i*.7,i*.3],mark:[l,i-54,36]}}function Tn(e,t){let n=wn(e,t),[r,i,a]=n.last,o=n.ls*.42,s=n.ls*.74;return{x:r+W(a,`ax`,n.ls)+n.ls*.12,y:i,w:o,h:s}}function En(e){let t={shut:0,collapse:z(1.5),stamp:z(3),mark:z(7)},n=`coauthored · npx coauthored`;return{id:`talk`,label:`We need to talk`,title:e.lines.talk,summary:n,held:[e.lines.talk,n],settle:()=>t.mark+.3,cues:()=>[{name:`stinger`,at:t.stamp}],frame(r,i,a){let{W:o,H:s}=i,c=tn(r,a),{items:l,add:u}=on(),d=wn(i,e),f=Tn(i,e);if(r<t.stamp){if(e.night&&!a.reduced){let n=_n(i),a=L.inCubic(I((r-t.collapse)/(t.stamp-t.collapse))),o=oe(1,f.w/n.total4,a),s=oe(1,f.h/n.capH,a),l=oe(n.cx,f.x+f.w/2,a),p=oe(n.base-n.capH/2,f.y-f.h/2,a),m=r>=0&&r<.4?.06*Math.exp(-r*10):0,h=r>=0&&r<.06666666666666667;u(`clock`,(h?X(n.cx-n.total4*.62,n.base-n.capH*1.35,n.total4*1.24,n.capH*1.7,H):``)+(a>.6?X(n.cx-n.total4/2,n.base-n.capH,n.total4,n.capH,be(H,V,(a-.6)/.4)):vn(n,e.night.end,h?fe:H)),`translate(${l.toFixed(1)} ${p.toFixed(1)}) scale(${(o*(1+m)).toFixed(4)} ${(s*(1+m)).toFixed(4)}) translate(${(-n.cx).toFixed(1)} ${(-(n.base-n.capH/2)).toFixed(1)})`),u(`fork-eyes`,k(`fork`,{x:d.eyes[0],y:d.eyes[1],s:d.eyes[2],...ee[Math.min(3,Math.max(0,Math.floor(c/z(.75))))],sit:!0,eyesOnly:!0,eyeColor:H}),``,I((r-t.collapse)/z(1.5)))}if(!(a.reduced&&r>=0))return an(l,fe,m,De(r,a,[[0,6,12]]))}let p=r-t.stamp,h=a.reduced?I(r/.3):1;u(`talk`,d.lines.map(([e,t,n,r])=>G(t,n,e,{cls:`ax`,size:d.ls,fill:r})).join(``),``,h);let g=a.reduced||Math.floor(Math.max(0,p)/z(1)+1e-6)%2==0;u(`cursor`,`<rect x="${f.x.toFixed(1)}" y="${(f.y-f.h).toFixed(1)}" width="${f.w.toFixed(1)}" height="${f.h.toFixed(1)}" fill="${V}"/>`,``,g?h:0);let _=!a.reduced&&(p>=0&&p<.06666666666666667||p>=z(4)&&p<z(4)+.06666666666666667||p>2&&p%z(8)<.06666666666666667||p>2&&(p+z(2))%z(16)<.06666666666666667);u(`fork-eyes`,k(`fork`,{x:d.eyes[0],y:d.eyes[1],s:d.eyes[2],...ee[3],sit:!0,eyesOnly:!0,eyeColor:H,look:a.reduced?0:.25*Math.sin(c*.9),..._?{expr:`blink`}:{}}),``,h);let v=d.hanko[2],y=a.reduced?1:1+.5*(1-ie(Math.max(0,p),{freq:4,zeta:.55}));u(`hanko`,`<rect x="${(-v/2).toFixed(1)}" y="${(-v/2).toFixed(1)}" width="${v.toFixed(1)}" height="${v.toFixed(1)}" rx="${(v*.08).toFixed(1)}" fill="${ue}"/><rect x="${(-v*.42).toFixed(1)}" y="${(-v*.42).toFixed(1)}" width="${(v*.84).toFixed(1)}" height="${(v*.84).toFixed(1)}" fill="none" stroke="${fe}" stroke-width="${(v*.03).toFixed(1)}"/>`+[[`話`,-.19,-.04],[`が`,.19,-.04],[`あ`,-.19,.34],[`る`,.19,.34]].map(([e,t,n])=>`<text class="dela" x="${(t*v).toFixed(1)}" y="${(n*v).toFixed(1)}" font-size="${(v*.32).toFixed(1)}" fill="${fe}" text-anchor="middle" lang="ja" data-ov="hanko">${e}</text>`).join(``),`translate(${d.hanko[0].toFixed(1)} ${d.hanko[1].toFixed(1)}) rotate(-8) scale(${y.toFixed(3)})`,h);let b=Q(r,t.mark,a,.04);return b&&u(`mark`,G(d.mark[0],d.mark[1],n,{cls:`monob`,size:d.mark[2],fill:m,op:.85}),``,b.op),an(l,fe,m,De(r,a,[[t.stamp,8,12]]))}}}function Dn(e){let t=[];e.lines.compact&&t.push(sn(e)),t.push(cn(e)),e.sessions>0&&e.activeDays>0&&t.push(ln(e)),e.harness&&t.push(Et(e)),e.quiz&&t.push(un(e)),e.hoursR>0&&t.push(dn(e)),e.lines.gap&&t.push(fn(e)),e.crew&&t.push(Dt(e)),e.orchestra&&t.push(Ot(e)),e.pilot&&t.push(kt(e)),e.bounce&&t.push(At(e));let n=Qt(e,e.act);return n.length&&e.drawer&&t.push($t(e)),t.push(...n),e.mainevent&&t.push(jt(e)),e.nightshift&&t.push(Mt(e)),e.night&&t.push(Cn(e)),t.push(En(e)),e.identity&&t.push(Nt(e)),t.push(Ft(e)),t}var On=(e,t)=>{let n=2+.045*e.held.filter(Boolean).join(` `).length;return t.reduced?Math.min(10,n*1.5):Math.min(7,n)},kn=`http://www.w3.org/2000/svg`;function An(e){let t=new Map,n={html:0,attr:0};return{stats:()=>n,commit(r){n={html:0,attr:0};let i=null,a=new Set;for(let o of r){let r=t.get(o.k);r||(r={el:document.createElementNS(kn,`g`),svg:null,tf:null,op:null},t.set(o.k,r)),r.svg!==o.svg&&(r.el.innerHTML=o.svg,r.svg=o.svg,n.html++);let s=o.tf||``;r.tf!==s&&(s?r.el.setAttribute(`transform`,s):r.el.removeAttribute(`transform`),r.tf=s,n.attr++);let c=o.op??1;r.op!==c&&(c<1?r.el.setAttribute(`opacity`,c.toFixed(3)):r.el.removeAttribute(`opacity`),r.op=c,n.attr++);let l=i?i.nextSibling:e.firstChild;r.el!==l&&e.insertBefore(r.el,l),i=r.el,a.add(o.k)}for(let[e,n]of t)a.has(e)||(n.el.remove(),t.delete(e))}}}function jn(e){if(e.state!==`running`)return e.currentTime-(e.outputLatency||0);let t=e.getOutputTimestamp?.();return t&&t.contextTime>0?t.contextTime+Math.min(.1,(performance.now()-t.performanceTime)/1e3):e.currentTime-(e.outputLatency||0)-(e.baseLatency||0)}function Mn(e,{float:t=!1}={}){let n=e.numberOfChannels,r=e.length,i=e.sampleRate,a=t?4:2,o=new DataView(new ArrayBuffer(44+r*n*a)),s=(e,t)=>[...t].forEach((t,n)=>o.setUint8(e+n,t.charCodeAt(0)));s(0,`RIFF`),o.setUint32(4,36+r*n*a,!0),s(8,`WAVE`),s(12,`fmt `),o.setUint32(16,16,!0),o.setUint16(20,t?3:1,!0),o.setUint16(22,n,!0),o.setUint32(24,i,!0),o.setUint32(28,i*n*a,!0),o.setUint16(32,n*a,!0),o.setUint16(34,a*8,!0),s(36,`data`),o.setUint32(40,r*n*a,!0);let c=[...Array(n)].map((t,n)=>e.getChannelData(n)),l=44;if(t)for(let e=0;e<r;e++)for(let t=0;t<n;t++)o.setFloat32(l,c[t][e],!0),l+=4;else for(let e=0;e<r;e++)for(let t=0;t<n;t++){let n=Math.max(-1,Math.min(1,c[t][e]));o.setInt16(l,n<0?n*32768:n*32767,!0),l+=2}return new Uint8Array(o.buffer)}var Nn=`/assets/chorus-bass-CBTKpMv_.ogg`,Pn=`/assets/chorus-drums-BOzgLSoq.ogg`,Fn=`/assets/chorus-harmony-DnJYs_tp.ogg`,In=`/assets/chorus-lead-CFpg5DC1.ogg`,Ln=`/assets/chorus-D7bfON5Z.ogg`,Rn=`/assets/groove-ln-zQmTb.ogg`,zn=`/assets/intro-DeRh6kUx.ogg`,Bn=`/assets/night-B_bMOZcf.ogg`,Vn=`/assets/tension-BHvWG5ru.ogg`,Hn=`/assets/groove-bass-BFNelLKi.ogg`,Un=`/assets/groove-drums-BY1SBntR.ogg`,Wn=`/assets/groove-harmony-C0CrBzu3.ogg`,Gn=`/assets/groove-lead-CEYPzm5U.ogg`,Kn=`/assets/intro-bass-D63IPU0H.ogg`,qn=`/assets/intro-drums-Dt9QO534.ogg`,Jn=`/assets/intro-harmony-DBsMG9jJ.ogg`,Yn=`/assets/intro-lead-DWcWS1ia.ogg`,Xn=`/assets/night-bass-B-7Ay9ME.ogg`,Zn=`/assets/night-drums-zEtqWXX3.ogg`,Qn=`/assets/night-harmony-C5Ix2yce.ogg`,$n=`/assets/night-lead-B7KMlRyj.ogg`,er=`/assets/dialogue-card-A5zmbNhu.ogg`,tr=`/assets/guess-high-CL6mF18x.ogg`,nr=`/assets/guess-low-C3UnKayZ.ogg`,rr=`/assets/higher-BevsMIWl.ogg`,ir=`/assets/identity-0EPS3msD.ogg`,ar=`/assets/jar-coin-rtCvspuq.ogg`,or=`/assets/ledger-tick-C1rQgQGX.ogg`,sr=`/assets/ourturn-DX78hTEz.ogg`,cr=`/assets/reveal-BmWAGHih.ogg`,lr=`/assets/review-split-Dac4zagw.ogg`,ur=`/assets/shutter-uhz2Y9S9.ogg`,dr=`/assets/soclose-CiUFR5St.ogg`,fr=`/assets/stinger-TnnzHAMN.ogg`,pr=`/assets/stomp-mzIk4cGm.ogg`,mr=`/assets/why-clock-Dzs1A_ym.ogg`,hr=`/assets/tension-bass-4G-2qA9W.ogg`,gr=`/assets/tension-drums-D7sdehJr.ogg`,_r=`/assets/tension-harmony-FyPldmLb.ogg`,vr=`/assets/tension-lead-C5uoFMR8.ogg`,yr={bpm:180,sampleRate:48e3,barSamples:64e3,sections:{intro:{bars:16,stems:{drums:`intro-drums.ogg`,bass:`intro-bass.ogg`,harmony:`intro-harmony.ogg`,lead:`intro-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},groove:{bars:16,stems:{drums:`groove-drums.ogg`,bass:`groove-bass.ogg`,harmony:`groove-harmony.ogg`,lead:`groove-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},tension:{bars:16,stems:{drums:`tension-drums.ogg`,bass:`tension-bass.ogg`,harmony:`tension-harmony.ogg`,lead:`tension-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},chorus:{bars:16,stems:{drums:`chorus-drums.ogg`,bass:`chorus-bass.ogg`,harmony:`chorus-harmony.ogg`,lead:`chorus-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},night:{bars:16,stems:{drums:`night-drums.ogg`,bass:`night-bass.ogg`,harmony:`night-harmony.ogg`,lead:`night-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800}},slides:{compact:{section:`intro`,layers:{drums:.74,bass:.95,harmony:1,lead:.85},accent:null},ourturn:{section:`intro`,layers:{drums:.91,bass:.98,harmony:1,lead:.94},accent:`ourturn`},summary:{section:`intro`,layers:{drums:1,bass:1,harmony:.98,lead:.92},accent:`stomp`},harnesses:{section:`groove`,layers:{drums:.86,bass:.94,harmony:1,lead:.79},accent:null},quiz:{section:`tension`,layers:{drums:.87,bass:1,harmony:1,lead:.44},accent:null},reveal:{section:`chorus`,layers:{drums:1,bass:1,harmony:1,lead:1},accent:`reveal`},soclose:{section:`tension`,layers:{drums:.69,bass:1,harmony:1,lead:.16},accent:null},crew:{section:`groove`,layers:{drums:1,bass:1,harmony:.95,lead:.92},accent:null},orchestra:{section:`groove`,layers:{drums:1,bass:.98,harmony:.97,lead:1},accent:null},pilot:{section:`groove`,layers:{drums:.86,bass:1,harmony:1,lead:.78},accent:null},bounce:{section:`groove`,layers:{drums:1,bass:1,harmony:.96,lead:.78},accent:null},mainevent:{section:`tension`,layers:{drums:.88,bass:.97,harmony:1,lead:.66},accent:null},nightshift:{section:`night`,layers:{drums:.9,bass:1,harmony:1,lead:.82},accent:null},night:{section:`night`,layers:{drums:.93,bass:1,harmony:1,lead:.86},accent:null},talk:{section:`night`,layers:{drums:.85,bass:1,harmony:1,lead:.54},accent:null},identity:{section:`chorus`,layers:{drums:1,bass:1,harmony:1,lead:1},accent:null},share:{section:`chorus`,layers:{drums:.87,bass:.96,harmony:1,lead:.87},accent:null},phrases:{section:`groove`,layers:{drums:.59,bass:.99,harmony:1,lead:.29},accent:null},c0:{section:`groove`,layers:{drums:.7,bass:.99,harmony:1,lead:.42},accent:null},c1:{section:`tension`,layers:{drums:.63,bass:.99,harmony:1,lead:.19},accent:null},c1b:{section:`tension`,layers:{drums:.63,bass:.99,harmony:1,lead:.19},accent:null},c2:{section:`tension`,layers:{drums:.47,bass:1,harmony:1,lead:.08},accent:null},c3:{section:`tension`,layers:{drums:.62,bass:.99,harmony:1,lead:.33},accent:null},c4:{section:`tension`,layers:{drums:.6,bass:1,harmony:1,lead:.13},accent:null},c5:{section:`tension`,layers:{drums:.68,bass:1,harmony:1,lead:.14},accent:null},c6:{section:`tension`,layers:{drums:.49,bass:1,harmony:1,lead:.1},accent:null}},fills:{intro:`fills/intro.ogg`,groove:`fills/groove.ogg`,tension:`fills/tension.ogg`,chorus:`fills/chorus.ogg`,night:`fills/night.ogg`},oneshots:{ourturn:{file:`oneshots/ourturn.ogg`,hitSample:0},stomp:{file:`oneshots/stomp.ogg`,hitSample:0},"guess-low":{file:`oneshots/guess-low.ogg`,hitSample:0},"guess-high":{file:`oneshots/guess-high.ogg`,hitSample:0},higher:{file:`oneshots/higher.ogg`,hitSample:0},reveal:{file:`oneshots/reveal.ogg`,hitSample:0},soclose:{file:`oneshots/soclose.ogg`,hitSample:0},shutter:{file:`oneshots/shutter.ogg`,hitSample:0},stinger:{file:`oneshots/stinger.ogg`,hitSample:0},identity:{file:`oneshots/identity.ogg`,hitSample:0},"dialogue-card":{file:`oneshots/dialogue-card.ogg`,hitSample:0},"ledger-tick":{file:`oneshots/ledger-tick.ogg`,hitSample:0},"jar-coin":{file:`oneshots/jar-coin.ogg`,hitSample:0},"review-split":{file:`oneshots/review-split.ogg`,hitSample:0},"why-clock":{file:`oneshots/why-clock.ogg`,hitSample:0}}},br=Object.assign({"../../../production/round2/music/adaptive/chorus-bass.ogg":Nn,"../../../production/round2/music/adaptive/chorus-drums.ogg":Pn,"../../../production/round2/music/adaptive/chorus-harmony.ogg":Fn,"../../../production/round2/music/adaptive/chorus-lead.ogg":In,"../../../production/round2/music/adaptive/fills/chorus.ogg":Ln,"../../../production/round2/music/adaptive/fills/groove.ogg":Rn,"../../../production/round2/music/adaptive/fills/intro.ogg":zn,"../../../production/round2/music/adaptive/fills/night.ogg":Bn,"../../../production/round2/music/adaptive/fills/tension.ogg":Vn,"../../../production/round2/music/adaptive/groove-bass.ogg":Hn,"../../../production/round2/music/adaptive/groove-drums.ogg":Un,"../../../production/round2/music/adaptive/groove-harmony.ogg":Wn,"../../../production/round2/music/adaptive/groove-lead.ogg":Gn,"../../../production/round2/music/adaptive/intro-bass.ogg":Kn,"../../../production/round2/music/adaptive/intro-drums.ogg":qn,"../../../production/round2/music/adaptive/intro-harmony.ogg":Jn,"../../../production/round2/music/adaptive/intro-lead.ogg":Yn,"../../../production/round2/music/adaptive/night-bass.ogg":Xn,"../../../production/round2/music/adaptive/night-drums.ogg":Zn,"../../../production/round2/music/adaptive/night-harmony.ogg":Qn,"../../../production/round2/music/adaptive/night-lead.ogg":$n,"../../../production/round2/music/adaptive/oneshots/dialogue-card.ogg":er,"../../../production/round2/music/adaptive/oneshots/guess-high.ogg":tr,"../../../production/round2/music/adaptive/oneshots/guess-low.ogg":nr,"../../../production/round2/music/adaptive/oneshots/higher.ogg":rr,"../../../production/round2/music/adaptive/oneshots/identity.ogg":ir,"../../../production/round2/music/adaptive/oneshots/jar-coin.ogg":ar,"../../../production/round2/music/adaptive/oneshots/ledger-tick.ogg":or,"../../../production/round2/music/adaptive/oneshots/ourturn.ogg":sr,"../../../production/round2/music/adaptive/oneshots/reveal.ogg":cr,"../../../production/round2/music/adaptive/oneshots/review-split.ogg":lr,"../../../production/round2/music/adaptive/oneshots/shutter.ogg":ur,"../../../production/round2/music/adaptive/oneshots/soclose.ogg":dr,"../../../production/round2/music/adaptive/oneshots/stinger.ogg":fr,"../../../production/round2/music/adaptive/oneshots/stomp.ogg":pr,"../../../production/round2/music/adaptive/oneshots/why-clock.ogg":mr,"../../../production/round2/music/adaptive/tension-bass.ogg":hr,"../../../production/round2/music/adaptive/tension-drums.ogg":gr,"../../../production/round2/music/adaptive/tension-harmony.ogg":_r,"../../../production/round2/music/adaptive/tension-lead.ogg":vr}),xr=`../../../production/round2/music/adaptive/`,Sr=e=>br[xr+e]??null,Cr=1/3,wr=4/3,Tr={compact:`intro`,ourturn:`intro`,summary:`intro`,harnesses:`groove`,crew:`groove`,orchestra:`groove`,pilot:`groove`,bounce:`groove`,quiz:`tension`,soclose:`tension`,mainevent:`tension`,reveal:`chorus`,identity:`chorus`,share:`chorus`,nightshift:`night`,night:`night`,talk:`night`,phrases:`groove`,c0:`groove`,c1:`groove`,c1b:`groove`,c2:`groove`,c3:`groove`,c4:`tension`,c5:`tension`,c6:`tension`},Er=new Set([`ourturn`,`summary`,`quiz`,`reveal`,`soclose`,`night`,`talk`,`identity`]);async function Dr(e,t){return(async t=>{let n=await fetch(t);if(!n.ok)throw Error(`${n.status} ${t}`);return e.decodeAudioData(await n.arrayBuffer())})(t)}async function Or(e){let t=yr,n=t.sampleRate||48e3,r=e=>{let t=Sr(e);if(!t)throw Error(`missing music asset ${e}`);return t},i={},a={},o={},[s,c]=Object.entries(t.sections)[0],l=await Dr(e,r(Object.values(c.stems)[0]));return await Promise.all([...Object.entries(t.sections).map(async([t,a])=>{let o={};await Promise.all(Object.entries(a.stems).map(async([n,i],a)=>{o[n]=t===s&&a===0?l:await Dr(e,r(i))})),i[t]={stems:o,loopStart:a.loopStartSample/n,loopEnd:a.loopEndSample/n,bars:a.bars||16,gainDb:a.gainDb||0}}),...Object.entries(t.fills||{}).map(async([t,n])=>{a[t]=await Dr(e,r(n))}),...Object.entries(t.oneshots||{}).map(async([t,i])=>{o[t]={buffer:await Dr(e,r(i.file)),hit:(i.hitSample||0)/n}})]),{source:`adaptive`,sections:i,slides:t.slides||{},fills:a,oneshots:o,safety:await jr(e.sampleRate)}}var kr={threshold:-1.5,knee:0,ratio:20,attack:.001,release:.08};function Ar(e){let t=e.createDynamicsCompressor();for(let[e,n]of Object.entries(kr))t[e].value=n;return t}async function jr(e=48e3){try{let t=Math.round(e*.25),n=new OfflineAudioContext(1,t,e),r=n.createBuffer(1,t,e),i=r.getChannelData(0);for(let n=0;n<t;n++)i[n]=n===Math.round(e*.1)?.03:.03*Math.sin(2*Math.PI*1e3*n/e)*(n>e*.12);let a=n.createBufferSource();a.buffer=r;let o=Ar(n);a.connect(o),o.connect(n.destination),a.start();let s=(await n.startRendering()).getChannelData(0),c=0,l=0;for(let n=Math.round(e*.17);n<t-400;n++)c+=i[n]*i[n],l+=s[n]*s[n];let u=0,d=0;for(let t=Math.round(e*.1);t<Math.round(e*.1)+1200;t++)Math.abs(s[t])>d&&(d=Math.abs(s[t]),u=t-Math.round(e*.1));return{trim:Math.sqrt(c/l),latency:u/e}}catch{return{trim:1,latency:0}}}function Mr(e,t,{muted:n=!1,limiter:r=!0}={}){let i=Ar(e),a=e.createGain(),o=r&&t.safety||{trim:1,latency:0};a.gain.value=o.trim;let s=e.createGain();s.gain.value=+!n,r?(s.connect(i),i.connect(a),a.connect(e.destination)):s.connect(e.destination);let c=e=>10**((e||0)/20),l=0,u=null,d=[],f=[],p=(e,t)=>l+Math.ceil((e-l)/t-1e-9)*t,m=e=>{let n=t.slides[e]||{};return{section:n.section||Tr[e]||`groove`,layers:n.layers||{drums:1,bass:1,harmony:1,lead:1},accent:Er.has(e)?n.accent??null:null}};function h(e,t){return e===`mix`?1:t[e]??0}function g(n,r,i){let a=t.sections[n];if(!a)return null;let o=a.loopEnd-a.loopStart,u=Math.round((r-l)/wr),d=n===`chorus`?a.loopStart:a.loopStart+(u%a.bars+a.bars)%a.bars*wr,p=e.createGain();p.gain.setValueAtTime(c(a.gainDb),Math.max(r,e.currentTime)),p.connect(s);let m={};for(let[t,n]of Object.entries(a.stems)){let s=e.createGain();s.gain.setValueAtTime(h(t,i),Math.max(r,e.currentTime)),s.connect(p);let c=e.createBufferSource();c.buffer=n,c.loop=!0,c.loopStart=a.loopStart,c.loopEnd=a.loopEnd,c.connect(s),c.start(Math.max(r,e.currentTime),Math.min(d,a.loopStart+o-.001)),m[t]={src:c,g:s}}return f.push({section:n,at:+r.toFixed(4),bar:u,off:+d.toFixed(4)}),{sec:n,out:p,stems:m,gainDb:a.gainDb}}function _(t,n,r=.22){if(!t)return;let i=Math.max(n,e.currentTime);t.out.gain.cancelScheduledValues(i),t.out.gain.setValueAtTime(c(t.gainDb),i),t.out.gain.linearRampToValueAtTime(0,i+r);for(let{src:e}of Object.values(t.stems))try{e.stop(i+r+.05)}catch{}}function v(t,n,r=0,i=0){let a=e.createBufferSource(),o=e.createGain();o.gain.value=c(r),a.buffer=t,a.connect(o),o.connect(s);let l=Math.max(n,e.currentTime);return a.start(l,Math.max(0,i+(l-n))),a}return{bank:t,latency:o.latency,get T0(){return l},get section(){return u?.sec||null},nextBeat:e=>p(e+.02,Cr),nextSixteenth:e=>p(e+.02,Cr/4),nextBar:e=>p(e+.02,wr),start(e){_(u,e,.06),u=null;for(let e of d)try{e.stop()}catch{}d=[],l=e,f.push({start:+e.toFixed(4)})},goto(e,n){for(let e of d)try{e.stop()}catch{}d=[];let r=m(e),i,a=!1;if(!u||u.sec!==r.section){a=!0,i=u?p(n+.02,wr):Math.max(l,n);let e=t.fills[r.section];if(u&&e&&i-n>=.3323333333333333){let t=i-Cr;v(e,t,0,0),f.push({fill:r.section,at:+t.toFixed(4)})}_(u,i),u=g(r.section,i,r.layers)}else{i=p(n+.02,Cr);for(let[e,{g:t}]of Object.entries(u.stems)){let n=h(e,r.layers);t.gain.cancelScheduledValues(i),t.gain.setValueAtTime(t.gain.value,i),t.gain.linearRampToValueAtTime(n,i+Cr)}f.push({layers:e,at:+i.toFixed(4)})}return r.accent&&this.cue(r.accent,i),f.push({slide:e,zero:+i.toFixed(4),sectionChange:a}),{zero:i,sectionChange:a}},cue(e,n){let r=t.oneshots[e];r&&(d.push(v(r.buffer,n-r.hit,r.gainDb||0)),f.push({cue:e,at:+n.toFixed(4)}))},oneshot(e,n){let r=t.oneshots[e];r&&(v(r.buffer,n-r.hit,r.gainDb||0),f.push({oneshot:e,at:+n.toFixed(4)}))},setMuted(t){s.gain.setValueAtTime(+!t,e.currentTime)},log:f}}var Nr={please:`Please`,thanks:`Thanks`,"sorry-user":`User apologies`,"swear-mild":`Mild swear jar`,"swear-strong":`Strong swear jar`,why:`Why`,"again-still":`Repeat requests`,"not-working":`Failure phrases`,praise:`User praise`,instruction:`Instructions`,"go-on":`Go-on words`,undo:`Undo`,"agent-agree":`Agent agreement`,"agent-sorry":`Agent apologies`,"agent-confident":`Agent confidence`,"agent-praise":`Agent praise`};function Pr(e,t=!1){return e?e.lexicon.flatMap(n=>{let r=l[e.lexiconVersion]?.get(n.id),i=Nr[n.id],a=s.has(n.id);if(!i||!r?.shareEligible||!n.shareEligible||!Number.isSafeInteger(n.total)||n.total<=0||a&&(!t||n.total<10||n.sessions<3))return[];let o=a&&n.topTerms.find(e=>r.shown.has(e.term));return[{id:`content-${n.id}`,label:o?`${i} (${o.term})`:i,value:n.total.toLocaleString(`en-US`),epistemic:`observed`,defaultSelected:!1,sensitiveByDefault:a}]}):[]}var Fr=[`phrases`,`words`,`openers`],Ir=()=>({phrases:[],words:[],openers:[]}),Lr=e=>String(e).toLowerCase().split(/\s+/).filter(Boolean),Rr=(e,t)=>{let n=` ${Lr(e).join(` `)} `,r=` ${Lr(t).join(` `)} `;return n.includes(r)||r.includes(n)};function zr(e){let t=[],n=0;for(let r of Fr)for(let i of e?.private?.[r]||[])t.push({id:`d${(n++).toString(36)}`,kind:r,term:i.term,raw:i,state:`hidden`,revealed:!1});let r=()=>t.filter(e=>e.state!==`gone`),i=()=>{let e=Ir();for(let t of r())t.state===`kept`&&e[t.kind].push(t.raw);return e},a=e=>{e.state=`gone`,e.revealed=!1,e.term=null,e.raw=null};return{available:async()=>!0,async list(){return{candidates:r().map(({id:e,kind:t,raw:n,state:r})=>({id:e,kind:t,count:n.count,sessions:n.sessions,days:n.days,state:r}))}},async reveal(e){let t=r().find(t=>t.id===e);if(!t)throw Error(`unknown candidate`);return t.revealed=!0,{candidate:{id:e,kind:t.kind,count:t.raw.count,sessions:t.raw.sessions,days:t.raw.days,state:t.state,term:t.term}}},async keep(e){let t=r().find(t=>t.id===e);if(!t||!t.revealed)throw Error(`reveal before keep`);return t.state=`kept`,{ok:!0}},async hide(e){let t=r().find(t=>t.id===e);if(!t)return{ok:!0};let n=t.term;for(let e of r())(e===t||Rr(e.term,n))&&a(e);return{ok:!0}},async hideAll(){for(let e of t)a(e);return{ok:!0}},async finalize(){for(let e of r())e.state!==`kept`&&a(e);return i()},kept:i}}function Br(e,t){let n=Ir(),r=!1,i=async(t,n)=>{if(r)throw Object.assign(Error(`content review unavailable`),{unavailable:!0});try{return await e(t,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(n)})}catch(e){let t=e?.status===404&&e?.code===`PHRASE_NOT_FOUND`;throw t||e?.status!==404&&e?.status!=null||(r=!0),Object.assign(e instanceof Error?e:Error(String(e)),{unavailable:r,gone:t})}},a={async available(){try{return await a.list(),!0}catch{return!1}},async list(){let e=await i(`/api/content/phrases`,{action:`list`});return e?.candidates,e},reveal:e=>i(`/api/content/phrases`,{action:`reveal`,id:e}),keep:e=>i(`/api/content/phrases`,{action:`keep`,id:e}),hide:e=>i(`/api/content/phrases`,{action:`hide`,id:e}),hideAll:()=>i(`/api/content/phrases`,{action:`hide-all`}),async finalize(){try{return await i(`/api/content/phrases`,{action:`finalize`}),a.refresh()}catch(e){if(e?.unavailable)return a.refresh()}try{for(let e=0;e<1e3;e++){let e=((await a.list())?.candidates||[]).find(e=>e.state!==`kept`);if(!e)break;try{await a.hide(e.id)}catch(e){if(!e?.gone)throw e}}}catch{}return a.refresh()},async refresh(){try{let e=t?await t():await i(`/api/report`,{});n={...Ir(),...e?.content?.private||{}}}catch{n=Ir()}return n},kept:()=>n};return a}function Vr(e,{mode:t=`demo`,fetchJson:n=null,fetchReport:r=null}={}){return{mode:t,...t===`live`&&n?Br(n,r):zr(e)}}var Hr=e=>String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`),Ur=(e,t)=>`
|
|
1
|
+
import{c as e,d as t,f as n,g as r,h as i,i as a,l as o,m as s,o as c,p as l,s as u,u as d}from"./app-Dw1a5h5V.js";var f=r(),p=`#16161A`,m=`#F4F1EA`,h=`#FFE800`,g=`#F2C200`,_={blue:`#0078BF`,pink:`#FF48B0`,red:`#F15060`,black:p,yellow:`#FFE800`,green:`#00A95C`,midnight:`#1C1F4F`,violet:`#5A3FA8`,paper:m,ink:p,orange:`#FF6C2F`},v={grep:{id:`grep`,name:`GREP`,kana:`グレップ`,family:`investigate`,role:`reads, searches, investigates`,color:_.blue,shade:`#005A90`,eye:p,face:{x:10,y:-176,gap:26,eyeH:[1,.62]},shoulders:[[-50,-112],[50,-112]],armLen:46,legs:[-24,24],height:300,width:112,crestPivot:[2,-232],box:[-56,-234,56,-20],body:e=>`<rect x="-56" y="-234" width="112" height="214" rx="56" fill="${e}"/>`,crest:e=>`<path d="M2 -232 C4 -300 92 -306 100 -238" fill="none" stroke="${e}" stroke-width="8" stroke-linecap="round"/><path d="M100 -238 L100 -222" stroke="${e}" stroke-width="5" stroke-linecap="round"/><circle cx="100" cy="-206" r="15" fill="none" stroke="${e}" stroke-width="7"/>`},patch:{id:`patch`,name:`PATCH`,kana:`パッチ`,family:`modify`,role:`edits, rewrites, fixes`,color:_.pink,shade:`#D42F8C`,eye:p,face:{x:-4,y:-118,gap:40},shoulders:[[-90,-86],[90,-86]],armLen:44,legs:[-42,42],height:190,width:192,crestPivot:[66,-164],box:[-96,-182,96,-20],body:e=>`<rect x="-96" y="-182" width="192" height="162" rx="62" fill="${e}"/>`,crest:(e,t)=>`<g transform="translate(66 -164) rotate(-12)"><rect x="-40" y="-12" width="80" height="24" rx="10" fill="${t||h}" transform="rotate(45)"/><rect x="-40" y="-12" width="80" height="24" rx="10" fill="${t||h}" transform="rotate(-45)"/><rect x="-9" y="-9" width="18" height="18" rx="3" fill="${t||g}" transform="rotate(45)"/>${t?``:`<circle cx="-3" cy="0" r="1.8" fill="${p}" opacity=".45"/><circle cx="3" cy="0" r="1.8" fill="${p}" opacity=".45"/>`}</g>`},bash:{id:`bash`,name:`BASH`,kana:`バッシュ`,family:`execute`,role:`runs commands, breaks things, tries again`,color:_.red,shade:`#C2364A`,eye:p,face:{x:22,y:-112,gap:30},shoulders:[[-70,-118],[48,-64]],armLen:40,legs:[-40,22],height:190,width:206,crestPivot:[0,0],box:[-101,-183,103,-11],body:(e,t={})=>{let n=t.point||0,r=t.droop||0,i=t.stretch||0,a=-84-i,o=-58-i*.55,s=-166+i*.22;return`<path d="M${a} ${-28-i*.22} L${o} -98 L${a} ${s} L18 ${-166+r*.35} L${86+n} ${-98+r} L18 -28 Z" fill="${e}" stroke="${e}" stroke-width="34" stroke-linejoin="round"/>`},crest:()=>``},fork:{id:`fork`,name:`FORK`,kana:`フォーク`,family:`delegate`,role:`launches subagents, delegates, conducts`,color:p,shade:`#3A3A44`,eye:m,face:{x:0,y:-100,gap:34},shoulders:[[-72,-84],[72,-84]],armLen:44,legs:[-34,34],height:262,width:152,crestPivot:[0,-150],box:[-76,-262,76,-20],body:(e,t={})=>{let n=t.tines||0;return`<rect x="-76" y="-158" width="152" height="138" rx="58" fill="${e}"/><g data-part="tine-l" transform="rotate(${-n} -44 -120)"><rect x="-76" y="-262" width="60" height="176" rx="10" fill="${e}"/></g><g data-part="tine-r" transform="rotate(${n} 44 -120)"><rect x="16" y="-262" width="60" height="176" rx="10" fill="${e}"/></g>`},crest:()=>``},todo:{id:`todo`,name:`TODO`,kana:`トゥードゥー`,family:`plan`,role:`plans, lists, checks boxes`,color:_.yellow,shade:`#D8B900`,eye:p,face:{x:2,y:-186,gap:42},shoulders:[[-56,-122],[62,-122]],armLen:40,legs:[-30,30],height:236,width:160,crestPivot:[-70,-150],box:[-80,-236,84,-22],body:(e,t={})=>{let n=t.wobble||[0,0,0],r=e=>t.plain||t.silhouette?``:e;return`<g data-part="slab-1" transform="translate(${n[0]} 0)"><rect x="-58" y="-78" width="116" height="56" rx="24" fill="${e}"/>${r(`<rect x="-36" y="-58" width="15" height="15" rx="3" fill="none" stroke="${p}" stroke-width="4"/>`)}</g><g data-part="slab-2" transform="translate(${n[1]} 0)"><rect x="-56" y="-138" width="124" height="56" rx="24" fill="${e}"/>${r(`<rect x="-34" y="-118" width="15" height="15" rx="3" fill="none" stroke="${p}" stroke-width="4"/><path d="M-31 -110 L-27 -106 L-18 -117" fill="none" stroke="${p}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>`)}</g><g data-part="slab-3" transform="translate(${n[2]} 0)"><rect x="-80" y="-236" width="164" height="94" rx="42" fill="${e}"/></g>`},crest:(e,t)=>`<path d="M-60 -150 C-80 -132 -88 -108 -86 -82 L-96 -70 L-84 -74 L-76 -64 L-74 -84 C-74 -110 -66 -130 -50 -146 Z" fill="${t||_.red}"/>`},curl:{id:`curl`,name:`CURL`,kana:`カール`,family:`research`,role:`fetches from the web, brings back tabs`,color:_.green,shade:`#007E45`,eye:p,face:{x:22,y:-134,gap:34,lookY:-.5},shoulders:[[-78,-96],[86,-100]],armLen:42,legs:[-28,34],height:262,width:176,crestPivot:[-8,-200],box:[-80,-206,92,-18],body:e=>`<ellipse cx="6" cy="-112" rx="84" ry="94" fill="${e}" transform="rotate(12 6 -112)"/>`,crest:e=>`<path d="M-8 -200 C-14 -262 74 -276 74 -226 C74 -192 28 -194 30 -224 C32 -246 58 -244 56 -228" fill="none" stroke="${e}" stroke-width="14" stroke-linecap="round"/>`}},y={Nocturnal:{fork:{color:`#1C1F4F`,shade:`#2E3374`,eye:_.yellow}}};function b(e,t,n,r=0,i=0,a=0){let o=t.gap/2,s=t.x-o+r*10,c=t.x+o+r*10,l=t.y+a*10,u=t.eyeH||[1,1],d=(e,t=30,r=10,i=0,a=0)=>`<rect x="${e-r/2}" y="${l-t/2+i}" width="${r}" height="${t}" rx="${Math.min(r,t)/2}" fill="${n}"${a?` transform="rotate(${a} ${e} ${l})"`:``}/>`,f=(e,t=6)=>`<path d="${e}" fill="none" stroke="${n}" stroke-width="${t}" stroke-linecap="round" stroke-linejoin="round"/>`;switch(e){case`blink`:return d(s,4,12)+d(c,4,12);case`happy`:return f(`M${s-8} ${l+5} Q${s} ${l-9} ${s+8} ${l+5}`)+f(`M${c-8} ${l+5} Q${c} ${l-9} ${c+8} ${l+5}`);case`content`:return f(`M${s-8} ${l-2} Q${s} ${l+8} ${s+8} ${l-2}`)+f(`M${c-8} ${l-2} Q${c} ${l+8} ${c+8} ${l-2}`);case`smug`:return d(s,11,10,6)+d(c,11,10,6);case`sleepy`:return d(s,5,16,6,8)+d(c,5,16,6,-8);case`shut`:return d(s,5,16,2)+d(c,5,16,2);case`half`:return d(s,16,11,7)+d(c,16,11,7)+`<rect x="${s-8}" y="${l-2}" width="16" height="4" rx="2" fill="${n}"/><rect x="${c-8}" y="${l-2}" width="16" height="4" rx="2" fill="${n}"/>`;case`tiny`:return d(s,10,8)+d(c,10,8);case`blinkHalf`:return d(s,14,11,7)+d(c,14,11,7);case`crushed`:return d(s,9,15,6,-10)+d(c,9,15,6,10);case`snap`:return d(s,44,12)+d(c,44,12);case`indignant`:return d(s,20,10,3,24)+d(c,20,10,3,-24);case`side`:return d(s+9,30*u[0],10)+d(c+9,30*u[1],10,(1-u[1])*6);case`squint`:return d(s,30*u[0],10)+d(c,12,12,2);case`wide`:return d(s,36,10)+d(c,36,10);case`panic`:return`<circle cx="${s}" cy="${l}" r="4.5" fill="${n}"/><circle cx="${c}" cy="${l}" r="4.5" fill="${n}"/>`;case`triumph`:return f(`M${s-7} ${l-8} L${s+5} ${l} L${s-7} ${l+8}`)+f(`M${c+7} ${l-8} L${c-5} ${l} L${c+7} ${l+8}`);case`error`:return f(`M${s-6} ${l-6} L${s+6} ${l+6} M${s+6} ${l-6} L${s-6} ${l+6}`,5)+f(`M${c-6} ${l-6} L${c+6} ${l+6} M${c+6} ${l-6} L${c-6} ${l+6}`,5);case`suspicious`:return d(s+8,12,10,4)+d(c+8,12,10,4);case`determined`:return d(s,24,9,0,16)+d(c,24,9,0,-16);case`thinking`:{let e=[[1,1,0,1,1,0],[0,1,1,0,1,1],[1,0,1,1,0,1],[1,1,1,0,0,0]][Math.floor(i)%4],t=``;for(let r of[s,c])for(let i=0;i<6;i++){let a=r-4+i%2*8,o=l-9+Math.floor(i/2)*9;t+=`<circle cx="${a}" cy="${o}" r="${e[i]?3:1.4}" fill="${n}"${e[i]?``:` opacity=".5"`}/>`}return t}default:return d(s,30*u[0])+d(c,30*u[1],10,(1-u[1])*6)}}function x(e,t,n,r=0,i=0){let a=t.x+r*10,o=t.y+30+i*8;switch(e){case`o`:return`<ellipse cx="${a}" cy="${o}" rx="5" ry="6.5" fill="${n}"/>`;case`D`:return`<path d="M${a-8} ${o-3} L${a+8} ${o-3} Q${a+8} ${o+9} ${a} ${o+9} Q${a-8} ${o+9} ${a-8} ${o-3} Z" fill="${n}"/>`;case`smirk`:return`<path d="M${a+2} ${o} Q${a+9} ${o+4} ${a+14} ${o-3}" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`flat`:return`<path d="M${a-6} ${o} L${a+6} ${o}" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`wobble`:return`<path d="M${a-10} ${o} q5 -5 10 0 t10 0" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`yawn`:return`<ellipse cx="${a}" cy="${o+4}" rx="7" ry="11" fill="${n}"/>`;case`grin`:return`<path d="M${a-13} ${o-2} L${a+13} ${o-2} Q${a+12} ${o+7} ${a} ${o+7} Q${a-12} ${o+7} ${a-13} ${o-2} Z" fill="${n}"/>`;case`dot`:return`<circle cx="${a}" cy="${o}" r="3" fill="${n}"/>`;case`pout`:return`<path d="M${a-7} ${o+4} Q${a} ${o-3} ${a+7} ${o+4}" fill="none" stroke="${n}" stroke-width="4" stroke-linecap="round"/>`;case`pinch`:return`<path d="M${a-5} ${o+2} L${a+5} ${o+2}" stroke="${n}" stroke-width="3.5" stroke-linecap="round"/>`;case`tremble`:return`<path d="M${a-9} ${o+2} l4.5 -3 l4.5 3 l4.5 -3 l4.5 3" fill="none" stroke="${n}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>`;default:return``}}var S={panic:`o`,triumph:`D`,smug:`smirk`,error:`wobble`,wide:`o`,tiny:`dot`,crushed:`tremble`,snap:`o`,indignant:`pout`};function C(e,t,n,r,i,a){let[o,s]=t.shoulders[e],c=e===0?n:-n,l=i*.78,u=``;return a.includes(`baton`)&&e===1&&(u=`<path d="M0 ${l-6} L0 ${l+84}" stroke="${m}" stroke-width="5" stroke-linecap="round"/><circle cx="0" cy="${l-4}" r="7" fill="${m}"/>`),`<g data-part="arm-${e?`r`:`l`}" transform="translate(${o} ${s}) rotate(${c})"><rect x="-11" y="-6" width="22" height="${l+6}" rx="11" fill="${r}"/><circle data-part="mitt" cx="0" cy="${l}" r="14" fill="${r}"/>${u}</g>`}function w(e,t,n){let r=(n,r,i,a,o=``)=>`<g data-part="shard" transform="translate(${r*t} ${i*t}) rotate(${a*t} 0 -98)"><path d="M${n}Z" fill="${e}" stroke="${e}" stroke-width="${34-18*t}" stroke-linejoin="round"/>${o}</g>`;return r(`-84 -166 L-6 -166 L-6 -104 L-58 -104 `,-46,-40,-24)+r(`6 -166 L18 -166 L86 -98 L6 -98 `,52,-54,28,n)+r(`-58 -92 L86 -92 L18 -28 L-84 -28 `,12,34,-10)}var T=new Set;function E(e,t){return`kl-${String(t).replace(`#`,``)}-${e}`}function D(e){let t=e||[[4,`#F4F1EA`],[6,`#F4F1EA`],[8,`#F4F1EA`],[6,`#16161A`],...[...T].map(e=>e.split(`|`)).map(([e,t])=>[Number(e),t])],n=new Set;return t.map(([e,t])=>{let r=E(e,t);return n.has(r)?``:(n.add(r),`<filter id="${r}" x="-30%" y="-30%" width="160%" height="160%"><feMorphology in="SourceAlpha" operator="dilate" radius="${e}" result="d"/><feFlood flood-color="${t}"/><feComposite in2="d" operator="in" result="k"/><feMerge><feMergeNode in="k"/><feMergeNode in="SourceGraphic"/></feMerge></filter>`)}).join(``)}function O(e,t,n){let r=(e.angle??-60)*Math.PI/180,i=Math.cos(r)*t,a=Math.sin(r),o=-n*Math.PI/180,s=i*Math.cos(o)-a*Math.sin(o),c=i*Math.sin(o)+a*Math.cos(o),l=Math.hypot(s,c)||1;return{dx:s/l,dy:c/l,k:Math.max(0,Math.min(1,e.k??.78))}}function k(e,t={}){let n=v[e],r=t.colorway||{},i=t.silhouette||r.color||n.color,a=t.silhouette||r.shade||n.shade,o=t.eyeColor||r.eye||n.eye,s=t.acc||[],c=t.s??1,l=t.flip?-1:1,u=t.sx??1,d=t.sy??1,f=t.expr||`neutral`,m=t.look||0,h=t.lookY??n.face.lookY??0,g={...n.face},y=Math.max(0,Math.min(1,t.turn??+(t.view===`3q`))),D=!!t.sit,k=t.armL??10,A=t.armR??10,j=!!t.perch,M=n.legs.map((e,n)=>{let r=n?t.legR||0:t.legL||0;return D||j?``:`<rect data-part="leg-${n?`r`:`l`}" x="${e-10}" y="${-30-r}" width="20" height="30" rx="10" fill="${t.silhouette||`#16161A`}"/>`}).join(``),N=t.silhouette?``:`<g data-part="eyes">${b(f,g,o,m,t.t||0,h)}</g><g data-part="mouth">${x(t.mouth??S[f]??``,g,o,m,h)}</g>`,P=y?` transform="translate(${22*y} 0) scale(${1-.18*y} 1)"`:``,ee=t.silhouette?``:`<g data-part="face"${P}>${N}</g>`,te;if(e===`bash`&&t.shatter>0)te=w(i,t.shatter,ee),ee=``;else{if(te=n.body(i,t),t.cu&&!t.silhouette&&!y){let e=n.width/2;te=n.body(a,{...t,plain:!0})+`<g transform="translate(${e*.05} 0) scale(.95 1)">${n.body(i,t)}</g>`}t.cu&&!t.silhouette&&(te+=`<g data-part="tampo" opacity=".55"><rect x="${n.width*.18}" y="-62" width="7" height="12" fill="${a}"/><rect x="${n.width*.18+11}" y="-54" width="12" height="4" rx="2" fill="${a}"/></g>`),y&&(te=`<g data-part="side" transform="translate(${-16*y} 0) scale(${1-.06*y} 1)">${n.body(a,{...t,plain:!0})}</g><g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(i,t)}</g>`)}let F=t.lit&&!t.silhouette?O(t.lit,t.flip?-1:1,t.lean||0):null,ne=F?t.lit.shadow||`#272B66`:null;if(F&&!(e===`bash`&&t.shatter>0)){let[e,r,a,o]=n.box,s=(e+a)/2,c=(r+o)/2,l=s+(a-e)/2*F.dx,u=c+(o-r)/2*F.dy,d=F.k,f=y?`<g transform="translate(${-16*y} 0) scale(${1-.06*y} 1)">${n.body(ne,{...t,plain:!0})}</g><g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(ne,{...t,plain:!0})}</g>`:n.body(ne,{...t,plain:!0}),p=y?`<g transform="translate(${6*y} 0) scale(${1-.12*y} 1)">${n.body(i,t)}</g>`:n.body(i,t);te=`<g data-part="shadow-side">${f}</g>`+(d>0?`<g data-part="lit-side" transform="translate(${l} ${u}) scale(${d}) translate(${-l} ${-u})">${p}</g>`:``)}let[I,re]=n.crestPivot||[0,0],L=n.crest(F&&((I-(n.box[0]+n.box[2])/2)*F.dx+(re-(n.box[1]+n.box[3])/2)*F.dy<-10||F.k<.35)?ne:i,t.silhouette);L&&=`<g transform="translate(${8*y} 0) rotate(${t.crestRot||0} ${I} ${re})">${L}</g>`;let ie=``;if(s.includes(`bowtie`)){let e=g.y+36,n=t.bowColor||_.yellow;ie+=`<g data-part="bowtie" transform="translate(${g.x+20*y} ${e})"><path d="M-20 -10 L-3 0 L-20 10 Z M20 -10 L3 0 L20 10 Z" fill="${n}" stroke="${n}" stroke-width="5" stroke-linejoin="round"/><rect x="-5" y="-5" width="10" height="10" rx="2" fill="${n}"/></g>`}if(s.includes(`moon`)&&(ie+=`<g data-part="moon-pin" transform="translate(${-n.width/2+34} ${g.y+44})"><circle r="11" fill="${_.yellow}"/><circle cx="5" cy="-4" r="9" fill="${i}"/></g>`),s.includes(`shoshinsha`)&&(ie+=`<g data-part="wakaba" transform="translate(${n.width/2-30} ${g.y+50}) rotate(-8)"><path d="M0 -14 L12 -6 L12 12 L0 4 Z" fill="${_.green}"/><path d="M0 -14 L-12 -6 L-12 12 L0 4 Z" fill="${_.yellow}"/></g>`),s.includes(`headphones`)){let e=-n.height+30;ie+=`<g data-part="headphones"><path d="M${-n.width/2-2} ${g.y} C${-n.width/2} ${e-30} ${n.width/2} ${e-30} ${n.width/2+2} ${g.y}" fill="none" stroke="${p}" stroke-width="8"/><rect x="${-n.width/2-14}" y="${g.y-22}" width="20" height="44" rx="9" fill="${p}"/><rect x="${n.width/2-6}" y="${g.y-22}" width="20" height="44" rx="9" fill="${p}"/></g>`}let R=t.lean||0,ae=t.hop||0,oe=e=>F&&(F.k<.35||(e?1:-1)*F.dx<-.25)?ne:a,se=C(0,n,k,oe(0),n.armLen,s),ce=C(1,n,A,oe(1),n.armLen,s),z=`translate(${t.x||0} ${(t.y||0)-ae*c}) scale(${c*l} ${c})`,B=D?`<g transform="translate(0 22)">`:j?`<g transform="translate(0 18)">`:`<g>`,le=j?n.legs.map((e,n)=>{let r=n?t.legR||0:t.legL||0;return`<g data-part="leg-${n?`r`:`l`}" transform="rotate(${r} ${e} -4)"><rect x="${e-10}" y="-6" width="20" height="36" rx="10" fill="${t.silhouette||`#16161A`}"/></g>`}).join(``):``,V=D?n.legs.map((e,n)=>{let r=e*.95+26*y+(n?6:-6),i=t.silhouette||`#16161A`,a=r*1.15;return t.cam===`high`?`<g data-part="boot-${n?`r`:`l`}" transform="rotate(${n?-14:14} ${a} -10)"><rect x="${a-14}" y="-16" width="28" height="48" rx="14" fill="${i}"/></g>`:`<g data-part="sole-${n?`r`:`l`}"><ellipse cx="${a}" cy="-4" rx="${21-4*y}" ry="19" fill="${i}"/>${t.silhouette?``:`<ellipse cx="${a}" cy="-4" rx="${12-2*y}" ry="10" fill="#34343E"/>`}</g>`}).join(``):``,H=t.contact?`<ellipse data-part="contact" cx="${(F?-F.dx:0)*n.width*.12}" cy="${t.cam===`high`?14:0}" rx="${n.width*.62}" ry="${n.width*(t.cam===`high`?.22:.12)}" fill="${t.contact}"/>`:``;if(t.eyesOnly)return`<g class="agent agent-${e}" data-agent="${e}" data-expr="${f}" data-eyes-only="1" transform="${z}"><g transform="scale(${u} ${d})"><g transform="rotate(${R})">${D?`<g transform="translate(0 22)">`:`<g>`}<g data-part="face"${P}><g data-part="eyes">${b(f,g,o,m,t.t||0,h)}</g></g></g></g></g></g>`;let ue=`<g class="agent agent-${e}" data-agent="${e}" data-expr="${f}" transform="${z}"${t.opacity==null?``:` opacity="${t.opacity}"`}>`+H+`<g data-part="squash" transform="scale(${u} ${d})"><g data-part="lean" transform="rotate(${R})"><g data-part="legs">${M}</g>${B}<g data-part="arm-back">${se}</g><g data-part="body">${te}</g><g data-part="crest">${L}</g>${ee}<g data-part="arm-front">${ce}</g><g data-part="acc">${ie}</g></g>${V}${le}</g></g></g>`;if(t.keyline){let e=t.keylineColor||`#F4F1EA`;T.add(`${t.keyline}|${e}`),ue=`<g filter="url(#${E(t.keyline,e)})">${ue}</g>`}return ue}var A={crouch:{sx:1.12,sy:.86,armL:30,armR:30,expr:`determined`,lookY:-.3},air:{sx:.94,sy:1.08,armL:165,armR:165,legL:14,legR:6,expr:`triumph`},land:{sx:1.16,sy:.82,armL:70,armR:70,expr:`shut`},stomp:{sx:1.2,sy:.78,armL:4,armR:4,expr:`determined`,lookY:.6},push:{lean:30,armL:100,armR:100,expr:`determined`,legL:6},deflate:{sx:1.05,sy:.9,lean:6,armL:0,armR:0,expr:`half`,lookY:.7,mouth:`flat`},sitAsleep:{sit:!0,expr:`sleepy`,lookY:.8,lean:8,armL:6,armR:6},sitAwake:{sit:!0,expr:`neutral`,armL:20,armR:20},snapAwake:{sit:!0,expr:`wide`,sy:1.06,lookY:-.4,armL:40,armR:40,mouth:`dot`},smear:{sx:.6,sy:1.7,armL:175,armR:175,expr:`tiny`,lean:6},bow:{lean:34,expr:`content`,armL:6,armR:6},pointAt:{armR:95,armL:10,expr:`determined`,lean:6},yawn:{expr:`shut`,mouth:`yawn`,sy:1.04,armL:150,armR:150,lookY:-.4},blinkHalf:{expr:`blinkHalf`},blinkShut:{expr:`blink`},soClose:{sx:1.05,sy:.93,droop:10,expr:`half`,lookY:.3,armL:6,armR:6,mouth:`pinch`},soClose2:{sx:1.09,sy:.86,droop:22,point:-10,expr:`crushed`,lookY:.5,armL:0,armR:0,lean:4},climbL:{turn:1,lean:10,armL:150,armR:174,legR:22,legL:4,expr:`determined`,lookY:-.8},climbR:{turn:1,flip:!0,lean:10,armL:150,armR:174,legR:22,legL:4,expr:`determined`,lookY:-.8},hang:{armL:178,armR:20,lean:-8,legL:10,legR:4,expr:`panic`,lookY:-.8},pushUp:{sx:1.1,sy:.88,armL:176,armR:176,expr:`determined`,lookY:-1,crestRot:14},doze1:{sit:!0,expr:`half`,lookY:.3,lean:6,armL:6,armR:6},doze2:{sit:!0,expr:`shut`,lookY:.7,lean:14,sy:.97,armL:4,armR:4,crestRot:12},doze3:{sit:!0,expr:`shut`,lookY:1,lean:22,sy:.94,armL:2,armR:2,crestRot:26,mouth:`dot`},snap:{sit:!0,expr:`snap`,sy:1.12,sx:.92,lookY:-.2,armL:62,armR:62,crestRot:-28,tines:10},launch:{stretch:95,point:24,sy:.92,armL:178,armR:178,expr:`tiny`,lean:-6}};function j(e,t={}){return{...A[e]||{},...t}}var M={grep:{lean:-48,armL:172,armR:118,crestRot:-46,legR:18,expr:`snap`},patch:{sx:.86,sy:1.18,armL:172,armR:172,crestRot:36,legL:16,legR:16,expr:`snap`},bash:{stretch:105,point:28,armL:178,armR:178,lean:-14,expr:`tiny`},fork:{tines:20,armL:150,armR:150,sy:1.06,expr:`snap`},todo:{wobble:[-36,30,-52],armL:168,armR:168,crestRot:40,lean:8,expr:`snap`},curl:{sx:.9,sy:1.14,armL:170,armR:170,crestRot:-40,expr:`snap`}},N=Object.fromEntries(Object.entries({grep:[{},{crestRot:8},{crestRot:22,lean:8},{crestRot:34,lean:12}],patch:[{},{crestRot:6},{crestRot:16,sx:1.04},{crestRot:24,sx:1.07}],bash:[{},{droop:4},{droop:12,point:-6},{droop:18,point:-10}],todo:[{},{wobble:[0,3,6]},{wobble:[0,7,16]},{wobble:[0,10,24]}],curl:[{},{crestRot:10},{crestRot:26},{crestRot:40}],fork:[{},{},{},{}]}).map(([e,t])=>[e,[{sit:!0,expr:`thinking`,litK:.8,...t[0]},{sit:!0,expr:`half`,lookY:.4,lean:4,litK:.6,...t[1]},{sit:!0,expr:`shut`,lookY:.7,lean:8,sy:.96,litK:.32,...t[2]},{sit:!0,expr:`shut`,lookY:1,lean:12,sy:.92,litK:0,mouth:`dot`,...t[3]}]])),P=[{sit:!0,expr:`neutral`,litK:.8},{sit:!0,expr:`side`,look:.8,litK:.4},{sit:!0,expr:`neutral`,eyesOnly:!0,eyeColor:_.yellow},{sit:!0,expr:`blink`,eyesOnly:!0,eyeColor:_.yellow}],ee=[{turn:1,expr:`neutral`},{turn:.66,expr:`side`,look:-.9},{turn:.3,expr:`half`,look:-.3},{turn:0,expr:`half`,look:0,lookY:.1}],te={upm:1e3,asc:1160,g:{0:{d:`M40 364Q40 539 142.5 637.5Q245 736 459 736Q673 736 775.0 637.5Q877 539 877 364Q877 188 775.0 89.0Q673 -10 459 -10Q244 -10 142.0 89.0Q40 188 40 364ZM636 364Q636 449 594.0 505.5Q552 562 460 562Q365 562 322.5 505.5Q280 449 280 364Q280 279 322.5 222.0Q365 165 460 165Q552 165 594.0 221.5Q636 278 636 364Z`,adv:917,bb:[40,-10,877,736]},1:{d:`M442 185Q532 187 575 189V0H46V189Q154 185 209 185V530Q173 451 62 428Q59 546 40 643Q120 654 151.5 670.5Q183 687 200.5 707.0Q218 727 224 734V736H442Z`,adv:588,bb:[40,0,575,736]},2:{d:`M795 215Q778 163 769.0 105.0Q760 47 760 0H45L44 21Q44 119 101.5 191.0Q159 263 262 324Q292 342 356 370Q439 406 484.0 433.5Q529 461 529 488Q529 522 501.0 542.0Q473 562 414 562Q349 562 315.5 529.0Q282 496 282 445Q282 429 285 412Q159 428 40 434Q40 519 84.5 587.5Q129 656 218.5 696.0Q308 736 438 736Q557 736 636.5 703.5Q716 671 753.5 621.5Q791 572 791 520Q791 460 764.5 417.0Q738 374 688.5 340.5Q639 307 556 268Q544 262 517.0 254.5Q490 247 483 245Q412 224 370.0 210.0Q328 196 291 175Q616 193 795 215Z`,adv:835,bb:[40,0,795,736]},3:{d:`M669 375Q730 375 768.5 354.5Q807 334 824.0 302.5Q841 271 841 237Q841 158 789.0 102.5Q737 47 648.0 18.5Q559 -10 450 -10Q134 -10 41 210L97 224Q159 239 202.5 252.5Q246 266 279 283Q299 233 336.5 211.5Q374 190 440 190Q510 190 554.0 206.0Q598 222 598 254Q598 271 581.0 280.0Q564 289 527.0 292.5Q490 296 423 296H347V471H393Q469 471 517.0 477.5Q565 484 565 506Q565 531 539.5 546.5Q514 562 460 562Q390 562 346.5 533.0Q303 504 279 449Q172 492 51 510Q99 618 198.5 677.0Q298 736 455 736Q557 736 638.5 709.5Q720 683 766.5 636.0Q813 589 813 531Q813 497 797.0 470.5Q781 444 734.0 418.5Q687 393 598 368Q634 375 669 375Z`,adv:881,bb:[41,-10,841,736]},4:{d:`M884 315V127H748V0H509Q513 42 515 127H40V329Q273 508 456 726H748V315ZM520 528Q451 457 401.0 409.5Q351 362 288 315H517Z`,adv:924,bb:[40,0,884,726]},5:{d:`M844 275Q844 125 739.5 57.5Q635 -10 460 -10Q313 -10 201.5 39.5Q90 89 40 206Q95 214 160.5 232.0Q226 250 279 269Q300 226 338.0 206.5Q376 187 440 187Q508 187 552.5 209.0Q597 231 597 270Q597 310 558.0 337.0Q519 364 439 364Q387 364 344.0 345.5Q301 327 282 293H51Q75 396 93.5 515.0Q112 634 116 726H818V532Q707 539 608.5 540.5Q510 542 333 542L323 486Q399 511 498 511Q612 511 689.5 479.5Q767 448 805.5 394.5Q844 341 844 275Z`,adv:884,bb:[40,-10,844,726]},6:{d:`M816 258Q816 176 764.0 115.0Q712 54 623.0 22.0Q534 -10 424 -10Q312 -10 224.5 34.5Q137 79 88.5 158.0Q40 237 40 338Q40 539 151.5 637.5Q263 736 452 736Q682 736 815 620Q755 556 705 479Q665 509 592.5 527.5Q520 546 463 546Q376 546 317.0 502.5Q258 459 245 378Q244 373 244 364Q292 434 370.5 465.0Q449 496 532 496Q611 496 676.0 463.5Q741 431 778.5 376.0Q816 321 816 258ZM576 259Q576 292 534.5 315.5Q493 339 434 339Q375 339 333.5 315.5Q292 292 292 259Q292 238 311.0 219.5Q330 201 363.0 190.5Q396 180 434 180Q472 180 505.0 190.5Q538 201 557.0 219.5Q576 238 576 259Z`,adv:856,bb:[40,-10,816,736]},7:{d:`M40 727H764V598Q568 301 461 0H191Q300 271 478 539Q201 539 40 529Z`,adv:777,bb:[40,0,764,727]},8:{d:`M836 219Q836 101 731.5 45.5Q627 -10 439 -10Q250 -10 145.0 45.5Q40 101 40 219Q40 267 74.5 317.5Q109 368 171 392Q116 418 88.5 449.5Q61 481 61 534Q61 596 104.0 644.5Q147 693 232.5 720.0Q318 747 439 747Q559 747 644.0 720.0Q729 693 772.0 644.5Q815 596 815 534Q815 480 786.5 449.0Q758 418 700 392Q744 376 775.0 347.0Q806 318 821.0 283.5Q836 249 836 219ZM576 524Q576 557 537.0 576.5Q498 596 441 596Q383 596 344.0 576.5Q305 557 305 524Q305 490 344.0 470.5Q383 451 441 451Q499 451 537.5 471.0Q576 491 576 524ZM576 244Q576 277 537.0 296.5Q498 316 441 316Q383 316 344.0 296.5Q305 277 305 244Q305 210 344.0 190.5Q383 171 441 171Q499 171 537.5 191.0Q576 211 576 244Z`,adv:876,bb:[40,-10,836,747]},9:{d:`M816 388Q816 187 704.5 88.5Q593 -10 404 -10Q174 -10 41 106Q101 170 151 247Q190 215 262.0 197.5Q334 180 393 180Q480 180 539.0 223.5Q598 267 611 348Q612 353 612 362Q564 292 485.0 259.5Q406 227 324 227Q244 227 179.0 256.0Q114 285 77.0 335.5Q40 386 40 449Q40 540 91.5 605.0Q143 670 232.0 703.0Q321 736 432 736Q544 736 631.5 691.5Q719 647 767.5 568.0Q816 489 816 388ZM564 467Q564 501 522.5 525.0Q481 549 422 549Q363 549 321.5 525.0Q280 501 280 467Q280 432 321.5 408.0Q363 384 422 384Q460 384 492.5 395.5Q525 407 544.5 426.0Q564 445 564 467Z`,adv:856,bb:[40,-10,816,736]},":":{d:`M30 495Q30 539 61.0 570.0Q92 601 136 601Q179 601 210.5 569.5Q242 538 242 495Q242 451 210.5 419.5Q179 388 136 388Q92 388 61.0 419.5Q30 451 30 495ZM30 195Q30 239 61.0 270.0Q92 301 136 301Q179 301 210.5 269.5Q242 238 242 195Q242 151 210.5 119.5Q179 88 136 88Q92 88 61.0 119.5Q30 151 30 195Z`,adv:272,bb:[30,88,242,601]},",":{d:`M242 73Q242 23 224.5 -32.0Q207 -87 176 -121H91Q133 -64 144 -9Q92 -9 61.0 22.0Q30 53 30 97Q30 141 61.0 172.0Q92 203 136 203Q181 203 211.5 168.5Q242 134 242 73Z`,adv:272,bb:[30,-121,242,203]},".":{d:`M30 97Q30 141 61.0 172.0Q92 203 136 203Q179 203 210.5 171.5Q242 140 242 97Q242 53 210.5 21.5Q179 -10 136 -10Q92 -10 61.0 21.5Q30 53 30 97Z`,adv:272,bb:[30,-10,242,203]},"≈":{d:`M726 559Q726 490 700.0 435.0Q674 380 622.5 348.0Q571 316 498 316Q408 316 339 374Q325 385 300 415Q283 435 272.5 444.0Q262 453 247 453Q228 453 218.5 438.5Q209 424 212 401H10Q10 462 36.5 518.0Q63 574 114.5 609.0Q166 644 238 644Q337 644 408 579Q417 572 437 547Q454 527 465.0 517.5Q476 508 488 508Q508 508 516.5 520.0Q525 532 524 559ZM726 284Q726 215 700.0 160.0Q674 105 622.5 73.0Q571 41 498 41Q408 41 339 99Q325 110 300 140Q283 160 272.5 169.0Q262 178 247 178Q228 178 218.5 163.5Q209 149 212 126H10Q10 187 36.5 243.0Q63 299 114.5 334.0Q166 369 238 369Q337 369 408 304Q417 297 437 272Q454 252 465.0 242.5Q476 233 488 233Q508 233 516.5 245.0Q525 257 524 284Z`,adv:736,bb:[10,41,726,644]}}};function F(e,t,n,r,i={}){let a=r/te.upm,o=t,s=``,c=[],l=(i.track??-.02)*r;for(let t of e){let e=te.g[t];if(!e){o+=r*.3;continue}let[u,d,f,p]=e.bb;c.push({ch:t,x0:o+u*a,x1:o+f*a,top:n-p*a,bottom:n-d*a,cx:o+(u+f)/2*a}),(i.skip||``).includes(t)||(s+=`<path d="${e.d}" transform="translate(${o} ${n}) scale(${a} ${-a})" fill="${i.fill||`#16161A`}"/>`),o+=e.adv*a+l}return{svg:s,boxes:c,width:o-l-t}}function ne(e,t,n,r={}){let i=r.id||`cube`,a=r.k??1,o=n*.14,s=e-n/2,c=t-n/2,l=e+n/2,u=t+n/2,d=r.plate??n*.02,f=``;d&&(f+=`<rect x="${s+d}" y="${c+d}" width="${n}" height="${n}" fill="${_.pink}"/>`),f+=`<path d="M${s} ${c} L${s+o} ${c-o} L${l+o} ${c-o} L${l} ${c} Z" fill="#30303A"/>`,f+=`<path d="M${l} ${c} L${l+o} ${c-o} L${l+o} ${u-o} L${l} ${u} Z" fill="#0B0B0E"/>`,f+=`<rect x="${s}" y="${c}" width="${n}" height="${n}" fill="${r.face||`#16161A`}"/>`,f+=`<clipPath id="${i}-face"><rect x="${s}" y="${c}" width="${n}" height="${n}"/></clipPath><g clip-path="url(#${i}-face)">`;let p=u-n*.04;for(let e=0;e<7;e++){let t=(.08+.06*(7-e)/7)*(1.35-.35*a),r=n*.62,i=r*.736*t,o=s-n*.06+(e*37%11-5)*n*.012,c=e%2?`#26262E`:`#2E2E38`,l=(e*53%7-3)*.4*a;f+=`<g transform="translate(${o} ${p}) rotate(${l}) scale(1 ${t}) translate(${-o} ${-p})">${F(`2026`,o,p,r,{fill:c,track:-.05}).svg}</g>`,p-=i+n*.012}return f+=`<g transform="translate(${s+n*.05} ${c+n*.36}) scale(1 0.42) translate(${-(s+n*.05)} ${-(c+n*.36)})">${F(`2026`,s+n*.05,c+n*.36,n*.3,{fill:`#3A3A46`,track:-.04}).svg}</g>`,f+=`</g>`,f}var I=(e,t=0,n=1)=>Math.min(n,Math.max(t,e)),re=(e,t,n)=>e+(t-e)*n,L={linear:e=>e,inQuad:e=>e*e,outQuad:e=>1-(1-e)*(1-e),inCubic:e=>e*e*e,outCubic:e=>1-(1-e)**3,inOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,outQuart:e=>1-(1-e)**4,inQuart:e=>e*e*e*e,inOutQuart:e=>e<.5?8*e**4:1-(-2*e+2)**4/2,outQuint:e=>1-(1-e)**5,outExpo:e=>e>=1?1:1-2**(-10*e),inExpo:e=>e<=0?0:2**(10*e-10),inOutExpo:e=>e<=0?0:e>=1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,outBack:(e,t=1.70158)=>1+(t+1)*(e-1)**3+t*(e-1)**2,inBack:(e,t=1.70158)=>(t+1)*e*e*e-t*e*e,snap:e=>1-(1-e)**6};function ie(e,{freq:t=2.2,zeta:n=.45}={}){if(e<=0)return 0;let r=Math.PI*2*t;if(n>=1)return 1-(1+r*e)*Math.exp(-r*e);let i=r*Math.sqrt(1-n*n);return 1-Math.exp(-n*r*e)*(Math.cos(i*e)+n*r/i*Math.sin(i*e))}function R(e){let t=Math.sin(e*127.1+311.7)*43758.5453;return t-Math.floor(t)}function ae(e){let t=Math.floor(e),n=e-t,r=n*n*(3-2*n);return re(R(t),R(t+1),r)*2-1}var oe=(e,t,n)=>e+(t-e)*n,se=(e,t,n,r=L.inOutCubic)=>r(I((e-t)/(n-t))),ce=(e,t,n={})=>e<t?0:ie(e-t,n),z=e=>e/3,B=1/30,le=_.blue,V=_.pink,H=_.yellow,ue=_.red,de=`#1C1F4F`,fe=`#0B0C1C`,pe=e=>Math.floor(e*12+1e-6)/12,me=e=>String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/"/g,`"`),U=`http://www.w3.org/2000/svg`,he=null,ge=null,_e=new Map;function W(e,t,n,r=0){let i=`${t}|${n}|${r}|${e}`;if(_e.has(i))return _e.get(i);he||(he=document.createElementNS(U,`svg`),he.setAttribute(`width`,`10`),he.setAttribute(`height`,`10`),he.setAttribute(`aria-hidden`,`true`),he.classList.add(`measure`),ge=document.createElementNS(U,`text`),he.appendChild(ge),document.body.appendChild(he)),ge.setAttribute(`class`,t),ge.setAttribute(`font-size`,String(n)),ge.setAttribute(`letter-spacing`,`${r}em`),ge.textContent=e;let a=ge.getComputedTextLength();return document.fonts.status===`loaded`&&_e.set(i,a),a}function G(e,t,n,{cls:r=`ax`,size:i=40,fill:a=p,anchor:o=`start`,ls:s=0,op:c=1,ov:l=``}={}){return`<text class="${r}" x="${e.toFixed(1)}" y="${t.toFixed(1)}" font-size="${i.toFixed(1)}" fill="${a}" text-anchor="${o}" letter-spacing="${s}em"${c<1?` opacity="${c}"`:``}${l?` data-ov="${l}"`:``}>${me(n)}</text>`}var K=(e,t,n,r=0)=>n/W(e,t,100,r)*100,q=(e,t,n,r=0,i=1e9)=>Math.min(i,...e.map(e=>K(e,t,n,r))),J=(e,t,n)=>Math.abs(n-1)<1e-4?``:`translate(${e.toFixed(1)} ${t.toFixed(1)}) scale(${n.toFixed(4)}) translate(${(-e).toFixed(1)} ${(-t).toFixed(1)})`,Y=(e,t)=>Math.abs(e)>.05||Math.abs(t)>.05?`translate(${e.toFixed(1)} ${t.toFixed(1)})`:``,ve=(...e)=>e.filter(Boolean).join(` `),X=(e,t,n,r,i,a=1)=>`<rect x="${e.toFixed(1)}" y="${t.toFixed(1)}" width="${n.toFixed(1)}" height="${r.toFixed(1)}" fill="${i}"${a<1?` opacity="${a.toFixed(3)}"`:``}/>`,ye=(e,t,n,r)=>`M${e.toFixed(1)} ${t.toFixed(1)}h${n.toFixed(1)}v${r.toFixed(1)}h${(-n).toFixed(1)}z`;function be(e,t,n){let r=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),i=r(e),a=r(t);return`#`+i.map((e,t)=>Math.round(e+(a[t]-e)*n).toString(16).padStart(2,`0`)).join(``)}var xe=(e,t,n=.08)=>e<t?1:1+n*(1-ie(e-t,{freq:3.2,zeta:.42}));function Se(e,t,n=120,r=1/3){let i=(e-(t-r))/r;if(i<-.25||e>t+.25)return{hop:0,sx:1,sy:1};if(i<0){let e=(i+.25)/.25;return{hop:0,sx:1+.12*e,sy:1-.14*e}}if(i<1)return{hop:n*Math.sin(Math.PI*i),sx:.94,sy:1.08};let a=1-I((e-t)/(2/12));return{hop:0,sx:1+.16*a,sy:1-.18*a}}function Ce(e,t=0,n=1e9){if(e<t||e>=n+.3)return 0;let r=t+Math.floor((e-t)/z(1)+1e-6)*z(1);if(r>n)return 0;let i=e-r;return i<.06666666666666667?i/(2*B):Math.exp(-(i-2*B)*12)}function Z(e,t,{from:n=0,every:r=2,off:i=0,h:a=26}={}){if(t.reduced||e<n)return 0;let o=(e-n-z(i))/z(r);if(o<0)return 0;let s=o-Math.floor(o);return s<.5?a*Math.sin(Math.PI*s/.5):0}var we=(e,t,n=0,r=3.1)=>!t.reduced&&e>.4&&(e+n)%r<.06666766666666667;function Te(e,t,n=.02,r=4,i=0){if(t.reduced)return{};let a=Math.sin(2*Math.PI*e/z(r)+i);return{sy:1+n*a,sx:1-n*.6*a}}function Q(e,t,n,r=.07){return e<t?null:n.reduced?{s:1,op:I((e-t)/.3)}:{s:xe(e,t,r),op:1}}function Ee(e,t,n=[0],r=12){if(t.reduced)return 10;let i=r+5*Math.sin(e*1.3);for(let t of n)e>=t&&e<t+.6&&(i=oe(2,i,1-Math.exp(-(e-t)*4)));return i}function De(e,t,n){if(t.reduced)return``;let r=0,i=0;for(let[t,a,o]of n)if(e>=t&&e<t+.8){let n=Math.exp(-(e-t)*o)*a;r+=ae(t*9+(e-t)*34)*n,i+=ae(t*5+40+(e-t)*37)*n}return Y(r,i)}function Oe(e,t,n,r=.05,i=.12){let a=e.P?72:80,o=Math.ceil(e.W/a)+1,s=Math.ceil(e.H/a)+1,c=``,l=``,u=Math.floor(Math.max(0,t)/z(1)+1e-6);for(let e=0;e<s;e++)for(let t=0;t<o;t++){let n=`M${t*a+20} ${e*a+20}h14v26h-14z`;(t+e)%8==u%8?l+=n:c+=n}return{dim:`<path d="${c}" fill="${n}" opacity="${r}"/>`,hot:`<path d="${l}" fill="${n}" opacity="${i}"/>`}}function ke(e,t,n=p,r=m){let i=W(e,`monob`,t)+t*.8,a=t*1.35;return{w:i,h:a,svg:`<rect x="${(-i/2).toFixed(1)}" y="${(-a).toFixed(1)}" width="${i.toFixed(1)}" height="${a.toFixed(1)}" rx="${(t*.12).toFixed(1)}" fill="${r}"/>`+G(0,-a*.3,e,{cls:`monob`,size:t,fill:n,anchor:`middle`})}}var Ae=e=>e.replace(/<g data-part="arm-front">[\s\S]*?<\/g><\/g>/,`<g data-part="arm-front"></g>`);function je(e){if(!Number.isFinite(e)||e===0)return`0`;let t=e<0?`-`:``,n=Math.abs(e);if(n<1e-4)return`${t}<0.0001`;let r=Number(n.toPrecision(2));if(r>=1e3)return`${t}${Math.round(r).toLocaleString(`en-US`)}`;let i=Math.max(0,1-Math.floor(Math.log10(r))),a=r.toFixed(i);return`${t}${i>0?a.replace(/(\.\d*?[1-9])0+$|\.0+$/,`$1`):a}`}var Me=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ne={en:`English`,de:`German`,fr:`French`,es:`Spanish`,it:`Italian`,pt:`Portuguese`,ru:`Russian`,zh:`Chinese`,ja:`Japanese`,ko:`Korean`,tr:`Turkish`,pl:`Polish`,nl:`Dutch`},Pe={"✅":`the green check`,"🚀":`the rocket`,"🔍":`the magnifying glass`,"✨":`the sparkles`,"🙌":`the raised hands`,"🧪":`the test tube`},Fe=[`one word`,`2 to 3`,`4 to 10`,`11 to 30`,`31 to 100`,`101 to 300`,`over 300`],$=e=>Math.round(e).toLocaleString(`en-US`),Ie=e=>`${Math.round(e*100)}%`,Le=e=>e===0?`zero times`:e===1?`once`:e===2?`twice`:`${$(e)} times`,Re=e=>`${String(e).padStart(2,`0`)}:00`,ze=e=>{let t=e.replace(/'/g,`’`).replace(/’/g,`'`);return t.charAt(0).toUpperCase()+t.slice(1)+(/(^| )(the|at|you)$/.test(t)?`…`:``)},Be=e=>e+(/(^| )(the|at|you)$/.test(e)?`…`:``);function Ve(e,t=`count`){let n=[...e].sort((e,n)=>n[t]-e[t]);return!n.length||n[1]&&n[1][t]===n[0][t]?null:n[0]}function He(e,t){return e?Object.entries(e).every(([e,n])=>{if(e===`all`)return n.every(e=>He(e,t));if(e===`any`)return n.some(e=>He(e,t));if(e===`exists`)return t[n]!==void 0&&t[n]!==null;let[r,i]=n,a=t[r];if(a==null)return!1;if(e===`eq`)return a===i;if(e===`gt`)return a>i;if(e===`gte`)return a>=i;if(e===`lte`)return a<=i;throw Error(`unknown op ${e}`)}):!1}function Ue({bank:e,categories:t}){let n=new Map(t.map(e=>[e.id,new Set(e.phrases)])),r=Object.keys(e).filter(e=>e!==`_meta`&&!/^content-(consent|terminal|scan|interstitial|presentation|forget|receipt|review)/.test(e)),i=(e,t)=>{let n=!0,r=e.replace(/\{(\w+)\}/g,(e,r)=>r in t?t[r]:(n=!1,e));return n?r:null};function a(e,t={}){let r=e.content,i={"cfact.on":!!r,"cfact.presentation":!!t.presentation,"report.isDemo":t.isDemo??!1,"ui.surface":`film`},a={};if(!r)return{s:i,t:a};Object.assign(i,{"fact.session":e.mainEvent?.eligible===!0,"fact.stableTime":!0,"report.capabilities.toolNames":e.capabilities?.toolNames,"report.mainEvent.toolCalls":e.mainEvent?.toolCalls});let o=i[`cfact.presentation`],s=e=>r.lexicon.find(t=>t.id===e),c=e=>s(e)?.total??0,l=(e,t)=>{let n=s(e);if(!n)return 0;let r=n.topTerms.find(e=>e.term===t);return r?r.count:n.headline&&t in n.headline?n.headline[t]:n.topTerms.length<5?0:void 0},u=(e,t=[])=>Ve((s(e)?.topTerms??[]).filter(e=>!t.includes(e.term))),{style:d,combos:f,emoji:p}=r,m=r.safety??{secret:0,pii:0,identifier:0},h=(e,t)=>{i[e]=t},g=s(`agent-agree`);h(`cfact.catchphrase`,c(`agent-agree`)>=10&&(g?.sessions??0)>=3);let _=l(`agent-agree`,`you're absolutely right`),v=l(`agent-agree`,`you are absolutely right`);_!==void 0&&v!==void 0&&(h(`cval.absRight`,_+v),h(`cval.absRightPerDay`,Math.round((_+v)/e.capturedWindow.activeDays*10)/10));let y=u(`agent-agree`);y&&(h(`cval.agreeTop`,y.term),h(`cval.agreeTopN`,y.count),a.agreeTop=ze(y.term),a.agreeTopN=$(y.count)),a.absRightN=$(i[`cval.absRight`]??0),a.absRightPerDay=String(i[`cval.absRightPerDay`]??0),a.agreeN=$(c(`agent-agree`));let b=f.apologies.agent,x=f.apologies.user;h(`cval.agentSorry`,b),h(`cval.userSorry`,x),h(`cfact.apologyLedger`,b>=5&&x>=5||b>=20&&x===0),h(`cfact.agentsSorrier`,i[`cfact.apologyLedger`]&&b>x*1.1),h(`cfact.youSorrier`,i[`cfact.apologyLedger`]&&x>b*1.1),h(`cfact.sorryEven`,i[`cfact.apologyLedger`]&&b>=5&&x>=5&&Math.max(b,x)<=Math.min(b,x)*1.1),Object.assign(a,{agentSorryN:$(b),userSorryN:$(x),userSorryTimes:Le(x)});let S=c(`please`),C=c(`thanks`);h(`cval.please`,S),h(`cval.thanks`,C),h(`cfact.manners`,S+C>=20),h(`cfact.thanksOverPlease`,i[`cfact.manners`]&&C>S&&S>=2),Object.assign(a,{pleaseN:$(S),thanksN:$(C),pleaseTimes:Le(S),thanksTimes:Le(C)}),h(`cfact.oneWord`,d.oneWord>=25&&(d.oneWordTop?.count??0)>=10),d.oneWordTop&&(h(`cval.oneWordTop`,d.oneWordTop.term),h(`cval.oneWordTopShare`,d.oneWordTop.count/d.oneWord),a.oneWordTop=Be(d.oneWordTop.term),a.oneWordTopN=$(d.oneWordTop.count)),a.oneWordN=$(d.oneWord);let w=c(`swear-mild`)+c(`swear-strong`);h(`cval.swear`,w),h(`cfact.swearJar`,!o&&w>=10&&f.swearSessions>=3);let T=f.swearPeakHour;h(`cfact.swearPeak`,i[`cfact.swearJar`]&&T!==null&&(s(`swear-mild`)?.byHour[T]??0)+(s(`swear-strong`)?.byHour[T]??0)>=10);let E=u(`swear-mild`),D=u(`swear-strong`);h(`cfact.swearTopStrong`,i[`cfact.swearJar`]&&D&&(!s(`swear-mild`)||E&&D.count>E.count)),h(`cfact.swearMildOnly`,i[`cfact.swearJar`]&&c(`swear-strong`)===0),h(`cfact.swearPeakIsPromptHour`,i[`cfact.swearPeak`]&&e.rhythm?.solarNoon?.eligible&&T===Math.floor(e.rhythm.solarNoon.peakMinuteOfDay/60)),h(`cfact.swearJarEmpty`,!o&&w===0&&d.prompts>=500);let O=Ve([...s(`swear-mild`)?.topTerms??[],...s(`swear-strong`)?.topTerms??[]]);O&&(a.swearTopCensored=O.term,a.swearTopN=$(O.count)),D&&i[`cfact.swearTopStrong`]&&(a.swearTopCensored=D.term,a.swearTopN=$(D.count)),Object.assign(a,{swearN:$(w),promptsN:$(d.prompts)}),T!==null&&(a.swearPeakHour=Re(T));let k=s(`why`);h(`cfact.why`,c(`why`)>=25);let A=f.whyPeakHour;h(`cfact.whyPeak`,i[`cfact.why`]&&A!==null&&(k?.byHour[A]??0)>=10),h(`cfact.whyLate`,i[`cfact.whyPeak`]&&[22,23,0,1,2,3,4].includes(A)),h(`cfact.nightWhy`,i[`cfact.why`]&&e.rhythm?.longestNight?.eligible&&(f.whyDuringLongestNight??0)>=3),k&&(h(`cval.whyEvery`,Math.round(d.prompts/k.messages)),a.whyEvery=String(i[`cval.whyEvery`])),a.whyN=$(c(`why`)),A!==null&&(a.whyPeakHour=Re(A),a.whyDaypart=A>=5&&A<=11?`morning`:A<=16&&A>=12?`afternoon`:A>=17&&A<=21?`evening`:`night`),f.whyDuringLongestNight!==null&&e.rhythm?.longestNight&&(a.nightWhyN=$(f.whyDuringLongestNight),a.nightPromptsN=$(e.rhythm.longestNight.humanPrompts),a.spanStart=e.rhythm.longestNight.startTimeLabel,a.spanEnd=e.rhythm.longestNight.endTimeLabel);let j=u(`agent-confident`,[`perfect`,`excellent`]),M=u(`not-working`)??Ve((s(`again-still`)?.topTerms??[]).filter(e=>[`same error`,`same issue`,`same problem`,`once again`].includes(e.term)));j&&(h(`cval.confTop`,j.term),h(`cval.confTopN`,j.count),a.confTop=ze(j.term),a.confTopN=$(j.count)),M&&(h(`cval.brokenTop`,M.term),h(`cval.brokenTopN`,M.count),a.brokenTop=ze(M.term),a.brokenTopN=$(M.count)),h(`cfact.confidence`,c(`agent-confident`)>=10&&c(`not-working`)+c(`again-still`)>=10&&!!j&&(M?.count??0)>=10),h(`cfact.confidenceLoud`,i[`cfact.confidence`]&&j.count>=10*M.count),h(`cfact.youOutvoted`,i[`cfact.confidence`]&&M.count>j.count),Object.assign(a,{confN:$(c(`agent-confident`)),notWorkingN:$(c(`not-working`))});let N=u(`instruction`);h(`cfact.instruction`,!!N&&N.count>=20&&N.sessions>=5),N&&(h(`cval.instrTop`,N.term),a.instrTop=Be(N.term),a.instrTopN=$(N.count));let P=l(`agent-confident`,`perfect`),ee=l(`agent-confident`,`excellent`),te=(ee??0)>(P??0)?`excellent`:`perfect`,F=te===`perfect`?P:ee,ne=l(`praise`,te);h(`cval.gradeTerm`,te),h(`cval.agentGrade`,F),h(`cval.userGrade`,ne),h(`cfact.gradeInflation`,(P??0)+(ee??0)>=20&&(F??0)>=20),h(`cfact.agentsGradeOnCurve`,i[`cfact.gradeInflation`]&&ne!==void 0&&ne>=1&&F>=5*ne),h(`cfact.youGradeEasy`,i[`cfact.gradeInflation`]&&ne!==void 0&&ne>F);let I=u(`praise`);h(`cfact.praise`,c(`praise`)>=50&&!!I),I&&(a.praiseTop=Be(I.term),a.praiseN=$(c(`praise`))),Object.assign(a,{gradeTermCap:ze(te),agentGradeN:$(F??0),userGradeN:$(ne??0),userGradeTimes:Le(ne??0)});let re=f.agentOpener;h(`cfact.openers`,!!re&&re.count>=20&&re.sessions>=5),h(`cfact.openerShareable`,i[`cfact.openers`]&&!n.get(`agent-narration`).has(re.term)),re&&(h(`cval.openerTop`,re.term),a.openerTop=ze(re.term),a.openerTopN=$(re.count));let L=d.userExclaimPrompts,ie=d.agentExclaimReplies;h(`cval.userExclaim`,L),h(`cfact.exclaim`,ie>=50),h(`cfact.agentsExclaimMore`,i[`cfact.exclaim`]&&L>=1&&ie>=10*L),h(`cfact.youExclaimMore`,i[`cfact.exclaim`]&&L>ie),Object.assign(a,{agentExclaimN:$(ie),userExclaimN:$(L)});let R=u(`undo`);h(`cfact.undo`,c(`undo`)>=10),R&&(h(`cval.undoTop`,R.term),h(`cval.undoTopN`,R.count),a.undoTop=R.term,a.undoTopN=$(R.count)),a.undoN=$(c(`undo`)),h(`cfact.caps`,d.capsPrompts>=5),h(`content.style.capsPrompts`,d.capsPrompts),a.capsN=$(d.capsPrompts),h(`cfact.lowercaseBase`,d.promptsWithLetters>=200),h(`content.style.lowercaseShare`,d.lowercaseShare),Object.assign(a,{lowercasePct:Ie(d.lowercaseShare),capitalPct:Ie(1-d.lowercaseShare)}),h(`cfact.questionsBase`,d.prompts>=200),h(`content.style.questionShare`,d.questionShare),Object.assign(a,{questionPct:Ie(d.questionShare),questionPer100:String(Math.round(d.questionShare*100))}),h(`cfact.length`,d.prompts>=50);let ae=0,oe=0;for(let e=0;e<d.lengthBuckets.length;e++)if(ae+=d.lengthBuckets[e],ae>=d.prompts/2){oe=e;break}h(`cfact.medianMultiWord`,i[`cfact.length`]&&oe>0);for(let e of[`oneWord`,`longestWords`,`longestMonth`,`codeShareEstimate`])h(`content.style.${e}`,d[e]);Object.assign(a,{medianRange:Fe[oe],longestWords:$(d.longestWords),longestPages:$(d.longestWords/500)}),d.longestMonth&&(a.longestMonth=Me[d.longestMonth-1]);let se=e=>e.reduce((e,t)=>e+t.count,0),ce=se(p.user),z=se(p.agent);h(`cval.userEmojiTotal`,ce),h(`cval.agentEmojiTotal`,z),h(`cfact.emoji`,p.total>=20&&(p.user.length>0||p.agent.length>0));let B=Ve(p.user),le=Ve(p.agent);h(`cfact.agentEmoji`,i[`cfact.emoji`]&&!!le),h(`cfact.userEmoji`,i[`cfact.emoji`]&&!!B),h(`cfact.userEmojiMore`,i[`cfact.emoji`]&&ce>z),h(`cfact.sameFavEmoji`,!!(B&&le&&B.emoji===le.emoji)),le&&(a.agentEmojiName=Pe[le.emoji],a.agentEmojiTopN=$(le.count)),B&&(a.userEmojiName=Pe[B.emoji],a.userEmojiTopN=$(B.count)),Object.assign(a,{agentEmojiN:$(z),userEmojiN:$(ce)});let V=f.pleasePer100ByMonth.map((e,t)=>({v:e,i:t})).filter(e=>e.v!==null);if(h(`cfact.pleaseAny`,V.length>0&&S>=20),i[`cfact.pleaseAny`]){let e=V[0],t=V[V.length-1],n=V.map(e=>e.v);h(`cfact.pleaseYear`,V.length>=2&&t.i-e.i>=3),h(`cfact.pleaseDown`,i[`cfact.pleaseYear`]&&e.v>=3&&t.v<=.7*e.v),h(`cfact.pleaseUp`,i[`cfact.pleaseYear`]&&t.v>=1.3*e.v&&t.v>=3),h(`cfact.pleaseFlat`,V.length>=3&&Math.max(...n)-Math.min(...n)<=3);let r=Ve(V,`v`);h(`cfact.pleasePolitest`,V.length>=2&&!!r),Object.assign(a,{pleaseFirstRate:$(e.v),pleaseFirstMonth:Me[e.i],pleaseLastRate:$(t.v),pleaseLastMonth:Me[t.i],pleaseAvgRate:$(n.reduce((e,t)=>e+t,0)/n.length)}),r&&Object.assign(a,{politeMonth:Me[r.i],politeMonthRate:$(r.v)})}let H=f.thanksLastPromptLong,ue=f.thanksLastPromptShort;h(`cfact.thanksSessions`,H!==null&&ue!==null),h(`content.combos.thanksLastPromptLong`,H),i[`cfact.thanksSessions`]&&(h(`cfact.thanksLongWins`,H>=ue+.15),h(`cfact.thanksMostLong`,H>=.5),h(`cfact.thanksShortWins`,ue>=H+.15),Object.assign(a,{thanksLongPct:Ie(H),thanksShortPct:Ie(ue)})),h(`cfact.streak`,f.goOnStreak>=5),a.streakN=$(f.goOnStreak),h(`cfact.codeShare`,d.prompts>=50);let de=[[.6,`3 in 5`],[2/3,`2 in 3`],[.75,`3 in 4`],[.8,`4 in 5`],[.9,`9 in 10`]].find(([e])=>Math.abs(e-d.codeShareEstimate)<=.03);de&&(h(`cval.codeFraction`,de[1]),a.codeFraction=de[1]),Object.assign(a,{codePct:Ie(d.codeShareEstimate),prosePct:Ie(1-d.codeShareEstimate)}),h(`cfact.stack`,d.stackLines>=100),h(`cval.stackLines`,d.stackLines),a.stackN=$(d.stackLines);let fe=Object.entries(f.thanksByLanguage).filter(([,e])=>e>=5).sort((e,t)=>t[1]-e[1]);h(`cfact.multiThanks`,!o&&fe.length>=2),fe.length>=2&&Object.assign(a,{thanksLangN:$(fe.length),thanksLang1:Ne[fe[0][0]],thanksLang2:Ne[fe[1][0]]});let pe=Object.entries(d.scripts),me=pe.reduce((e,[,t])=>e+t,0),U=pe.filter(([,e])=>e/me>=.02).sort((e,t)=>t[1]-e[1]).map(([e])=>e);h(`cfact.scripts`,!o&&U.length>=2);let he=e=>e.length<2?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`;U.length>=2&&Object.assign(a,{scriptsN:$(U.length),scriptList:he(U),topScript:U[0],otherScriptList:he(U.slice(1))});let ge=t.kept??(t.lintKeepFirst?{phrases:r.private?.phrases.slice(0,1)??[],words:r.private?.words??[],openers:r.private?.openers.slice(0,1)??[]}:{phrases:[],words:[],openers:[]}),_e=ge.phrases[0],W=ge.words,G=ge.openers[0];h(`cfact.phrase`,!o&&!!_e),_e&&(h(`cval.phraseDays`,_e.days),Object.assign(a,{phrase:_e.term,phraseMinN:$(_e.count),phraseSessionsN:$(_e.sessions),phraseDaysN:$(_e.days)})),h(`cfact.yourWords`,!o&&W.length>=2),h(`cfact.yourWordRare`,i[`cfact.yourWords`]&&W[0].agentCountAtMost*10<=W[0].count),W.length>=2&&Object.assign(a,{yourWordsList:he(W.slice(0,3).map(e=>e.term)),yourWord1:W[0].term,yourWord1N:$(W[0].count)}),h(`cfact.openingMove`,!o&&d.prompts>=50&&!!G&&G.count>=10),G&&(h(`cval.openingTop`,G.term),h(`cval.openingEvery`,Math.round(d.prompts/G.count)),Object.assign(a,{openingTop:G.term,openingTopN:$(G.count),openingEvery:$(d.prompts/G.count)}));for(let e of[`secret`,`pii`,`identifier`])h(`content.safety.${e}`,m[e]);return h(`cfact.safety`,!o&&m.secret+m.pii+m.identifier>0),Object.assign(a,{secretCountCap:m.secret===1?`One string`:`≈ ${$(m.secret)} strings`,piiCount:m.pii===1?`one thing`:`≈ ${$(m.pii)} things`,identifierCount:$(m.identifier)}),Object.assign(a,{year:String(e.year),sessionDuration:`≈ ${Math.floor(e.mainEvent.activeMinutes/60)} h ${e.mainEvent.activeMinutes%60} min`,sessionTools:`${$(e.mainEvent.toolCalls)} tool calls`,userTextsN:$(r.receipt.recordsSeen.user),agentTextsN:$(r.receipt.recordsSeen.agent)}),h(`cfact.anyChapter`,Object.keys(i).some(e=>/^cfact\.(catchphrase|apologyLedger|manners|oneWord|swearJar|why|confidence|instruction|gradeInflation|openers|exclaim|undo|caps|lowercaseBase|questionsBase|length|emoji|pleaseAny|thanksSessions|streak|codeShare|stack|multiThanks|scripts|phrase|yourWords|openingMove)$/.test(e)&&i[e])),{s:i,t:a}}function o(t,n,r,a=[]){let o=e[t]||[],s=[...a.map(e=>o.find(t=>t.id===e)).filter(Boolean),...o];for(let e of s){if(!He(e.when,n))continue;let a=i(e.text,r);if(a)return{beat:t,id:e.id,text:a,tone:e.tone,epistemic:e.epistemic}}return null}function s(e,t){return r.map(n=>o(n,e,t)).filter(Boolean).map(e=>`${e.beat.replace(`content-`,``)}.${e.id}: ${e.text}`)}return{derive:a,pick:o,playAll:s,render:i,filmBeats:r,bank:e}}var We={"content-please":`Manners`,"content-thanks":`Manners`,"content-why":`Why`,"content-swear-mild":`Swear`,"content-swear-strong":`Swear`,"content-agent-agree":`Catchphrase`,"content-agent-sorry":`Apology`,"content-sorry-user":`Apology`,"content-agent-confident":`Confidence`,"content-not-working":`Confidence`,"content-agent-praise":`Perfect`,"content-instruction":`Instruction`,"content-undo":`Undo`};function Ge(e,t,n,r){if(!t?.on||!n.length)return null;let i={...t.s,"ui.shareSwear":!!r};for(let e of n)We[e]&&(i[`ui.shareContent${We[e]}`]=!0);return e.pick(`content-share-caption`,i,t.t)?.text||null}function Ke(e,t,{presentation:n=!1,kept:r=null,isDemo:i=!1}={}){let a=t.content;if(!a)return{on:!1,slides:[],mainEvent:null};let{s:o,t:s}=e.derive(t,{presentation:n,kept:r||{phrases:[],words:[],openers:[]},isDemo:i}),c=e=>a.lexicon.find(t=>t.id===e),l=e=>e?.display||e?.term,u=(t,n)=>{for(let[r,i,a]of n){let n=e.pick(r,o,s,a||[]);if(n)return{...n,variant:n.id,...i(n),id:t}}return null},d=e=>[...c(e)?.topTerms??[]].sort((e,t)=>t.count-e.count)[0],f=u(`c1`,[[`content-catchphrase`,e=>e.id===`top-line`?{hero:{who:`AGENTS`,term:o[`cval.agreeTop`]?ze(o[`cval.agreeTop`]):null,n:s.agreeTopN}}:e.id===`plain`?{hero:{who:`AGENTS`,term:null,n:s.agreeN}}:{hero:{who:`AGENTS`,term:`You’re absolutely right`,n:s.absRightN}}],[`content-grade-inflation`,()=>({hero:{who:`AGENTS`,term:s.gradeTermCap,n:s.agentGradeN}})],[`content-openers`,()=>({hero:{who:`AGENTS`,term:s.openerTop,n:s.openerTopN}})]]),p=u(`c1b`,[[`content-phrase`,()=>({hero:{who:`YOU`,term:s.phrase,n:`${s.phraseSessionsN}+`,unit:`sessions`}})]]),m=u(`c2`,[[`content-apology`,()=>({ledger:{agent:o[`cval.agentSorry`],user:o[`cval.userSorry`]}})]]),h=u(`c3`,[[`content-manners`,()=>({manners:{please:o[`cval.please`],thanks:o[`cval.thanks`],pleaseLabel:l(d(`please`))||`Please`,thanksLabel:l(d(`thanks`))||`Thanks`}})]]),g=n?null:u(`c4`,[[`content-swear-jar`,e=>e.id===`empty-jar`?null:{jar:{n:o[`cval.swear`],terms:[...c(`swear-strong`)?.topTerms??[],...c(`swear-mild`)?.topTerms??[]].map(e=>e.term)}}]]),_=(g&&g.jar?g:null)||u(`c4`,[[`content-one-word`,()=>({hero:{who:`YOU`,term:s.oneWordTop?ze(s.oneWordTop.replace(/…$/,``)):null,n:s.oneWordTopN}})],[`content-undo`,()=>({hero:{who:`YOU`,term:s.undoTop?ze(s.undoTop):null,n:s.undoTopN||s.undoN}})]]),v=u(`c5`,[[`content-confidence`,()=>({reviews:{agentTerm:s.confTop,agentN:o[`cval.confTopN`],userTerm:s.brokenTop,userN:o[`cval.brokenTopN`]}})],[`content-instruction`,()=>({hero:{who:`YOU`,term:s.instrTop?ze(s.instrTop):null,n:s.instrTopN}})]]),y=u(`c6`,[[`content-why`,e=>({clock:[`late-hours`,`daypart`].includes(e.id)&&s.whyPeakHour?{hour:s.whyPeakHour}:null,hero:{who:`YOU`,term:`Why`,n:s.whyN}}),[`late-hours`,`daypart`]],[`content-questions`,()=>({hero:{who:`YOU`,term:null,n:s.questionPct}})]]),b=[f,m,h,_,v,y].filter(Boolean).length>=3,x=b?u(`c0`,[[`content-bridge`,()=>({})]]):null,S=b?[x,f,p,m,h,_,v,y].filter(Boolean):[],C=e.pick(`content-main-event`,o,s),w=`What were you building? `,T=C?.text||e.bank?.[`content-main-event`]?.find(e=>e.id===`only-counted`)?.text||``;return{on:!0,playable:b,slides:S,mainEvent:C,punchline:T.includes(w)?T.split(w)[1]:null,s:o,t:s}}var qe=e=>u(n,`crew`,e)??``,Je={title:qe({"ui.crewPart":`title`}),line:qe({"ui.crewPart":`line`}),never:qe({"ui.crewPart":`never`}),verb:e=>qe({"ui.crewFamily":e})},Ye=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`],Xe=e=>e[0].toUpperCase()+e.slice(1),Ze=e=>e.toLocaleString(`en-US`),Qe=e=>Number(Number(e).toPrecision(3)),$e=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],et=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],tt=(e,t,n)=>`${Ze(e)} ${e===1?t:n}`,nt=e=>10**Math.floor(Math.log10(Math.max(1e-9,e))),rt=e=>Math.max(1,Math.round(e/nt(e))*nt(e)),it=e=>Math.ceil(e/nt(e))*nt(e);function at(e,t){let n=rt(e*.2),r=rt(e*.6),i=it(e);if(r<=n&&(r=n+nt(n)),(i<=e||i===t)&&(i+=nt(i)),[n,r].filter(n=>n<e&&n!==t).length<2)return null;let a=(i-e)/e<=.1;return{opts:[{v:n,who:`bash`,label:`${Ze(n)} h?`,aria:`${Ze(n)} hours`,low:!0},{v:r,who:`todo`,label:`${Ze(r)} h?`,aria:`${Ze(r)} hours`,low:!0},{v:i,who:`fork`,label:`${Ze(i)} h+?`,aria:`${Ze(i)} hours or more`,low:!1}],highLine:a?`Lower. Barely.`:`Lower.`}}function ot(e,{forceCoarse:t=!1}={}){let n=Number((e.capturedWindow?.startDate||`2026`).slice(0,4)),r=e.delegation?.parallelism?.wallClockHours??e.totals.wallClockActiveMinutes/60,i=(e.totals.wallClockSensitivity5m??NaN)/60,a=(e.totals.wallClockSensitivity15m??NaN)/60,o=!t&&[i,a].every(e=>Number.isFinite(e)&&Qe(e)===Qe(r)),s=o||r<100?Math.round(r):Math.round(r/10)*10,c=Math.round(r/24),l=e.rhythm?.longestNight,u=l?.eligible&&!l.isDayFallback?{start:l.startTimeLabel,end:l.endTimeLabel,hours:l.activeMinutes/60,minutes:l.activeMinutes}:null,d=1e3-s,f=o&&s<1e3&&d>=1&&d<=12?`${Xe(Ye[d])} short of a thousand.`:null,p=!o&&r<1e3&&r>=900?`Just shy of a thousand.`:null,m=!!(f&&u&&r+u.hours>=1e3),h=e=>new Date(e+`T00:00:00Z`),g=e=>{let t=h(e);return`${$e[t.getUTCMonth()]} ${t.getUTCDate()}`},_=e.capturedWindow||{},v=_.startDate&&_.endDate?_.isFullYear?`${n}, the full year`:`${g(_.startDate)} – ${g(_.endDate)}`:``,y=null;if(u&&l.dateRangeLabel){let[e,t]=l.dateRangeLabel.split(/\s+[–-]\s+/).map(h),n=e=>`${et[e.getUTCDay()]} ${e.getUTCDate()}`,r=$e[(t||e).getUTCMonth()];y=(t&&+t!=+e?`${n(e)} → ${n(t)} ${r}`:`${n(e)} ${r}`)+(l.humanPrompts?` · ${l.humanPrompts} prompts`:``)}let b=at(r,s),x=e.totals.compactions||0;return{...ft(e,{hoursStr:Ze(s),md:g,MON:$e}),year:n,yearStr:String(n),precise:o,compactions:x,sessions:e.totals.sessions,activeDays:_.activeDays,hours:r,hoursR:s,hoursStr:Ze(s),days:c,window:v,nightHeader:y,gapR:d,sixShort:f,shy:p,night:u,oneMoreNight:m,quiz:b,lines:{compact:x>0?[`/compact ×${Ze(x)}`,`Your agents compacted their context ${tt(x,`time`,`times`)} this year.`]:null,sessions:tt(e.totals.sessions,`session`,`sessions`),daysLabel:_.activeDays===1?[`day with`,`an agent open.`]:[`days with`,`an agent open.`],daysLine:r>=48?`That’s ≈ ${c} days.`:null,gap:f||p,night:u?`Your longest night.`:null,more:m?[`One more night like this`,`would have done it.`]:null,talk:u?`We need to talk about ${u.end}.`:`We need to talk.`}}}var st=e=>Math.round(e*100),ct={sessions:`sessions`,launches:`subagents launched`,written:`tokens written`,"cache-share":`reads from cache`,streak:`longest streak`,parallelism:`parallelism`},lt={execute:`bash`,modify:`patch`,investigate:`grep`,plan:`todo`,delegate:`fork`,research:`curl`},ut={conductor:`fork`,architect:`todo`,"pair-programmer":`patch`,archaeologist:`grep`,surgeon:`patch`,"shell-whisperer":`bash`,"deep-diver":`grep`,nomad:`curl`,metronome:`todo`,sprinter:`bash`,"free-radical":`curl`,rookie:`patch`},dt=e=>{let t=Math.floor(e/60),n=Math.round(e%60);return t?`≈ ${t} h${n?` ${n} min`:``}`:`≈ ${n} min`};function ft(e,{hoursStr:t,md:n}){let r={},i=e.capturedWindow?.perHarness||[],a=e.evolution?.harnessPolyglot;if(i.length){let e=new Map((a?.shares||[]).map(e=>[e.displayName,e.share])),t=i.every(t=>e.has(t.displayName)),n=i.reduce((e,t)=>e+t.sessions,0)||1,o=i.map(r=>({name:r.displayName,sessions:r.sessions,days:r.activeDays,share:t?e.get(r.displayName):r.sessions/n})).sort((e,t)=>t.share-e.share).map(e=>({...e,pctLabel:`${st(e.share)}%`,kind:t?`of prompts`:`of sessions`,stats:`${Ze(e.sessions)} ${e.sessions===1?`session`:`sessions`} · ${Ze(e.days)} ${e.days===1?`day`:`days`}`})),s=a?.switchDays||0;r.harness={rows:o,count:o.length,loyal:o.length===1,title:o.length===1?`Loyal.`:`Your harnesses.`,line:o.length>1&&s>=7?`On ${Ze(s)} coding days, you had more than one harness going. Why choose.`:null}}let o=e.craft?.toolMix||[],s=o.filter(t=>lt[t.family]&&(t.count>0||t.family===`research`&&e.capabilities?.toolNames===`present`)).map(e=>({family:e.family,id:lt[e.family],verb:Je.verb(e.family),share:e.share,count:e.count,pctLabel:e.count>0?`${Math.max(1,st(e.share))}%`:`0`})).sort((e,t)=>t.share-e.share);s.filter(e=>e.count>0).length>=2&&(r.crew={fams:s,leader:s[0].id});let c=e.delegation?.orchestra;c?.eligible&&c.totalSpawns>=2&&c.maxConcurrent>=2&&(r.orchestra={spawns:Ze(c.totalSpawns),peak:c.maxConcurrent,line1:`${Ze(c.totalSpawns)} subagents.`,line2:`${c.maxConcurrent} at once.`});let l=e.craft?.pilotSplit,u=e.craft?.leashLength;if(l?.eligible){let e=st(l.agentActionsShare),t=100-e;r.pilot={agent:e,you:t,line1:`Agents took ${e}% of the turns.`,line2:`You took ${t}%.`,leash:u?.eligible?`Median: ${Ze(u.median)} ${u.unit===`tool-calls`?u.median===1?`tool call`:`tool calls`:u.median===1?`request`:`requests`} before you stepped back in.`:null}}let d=e.craft?.bounceBack;d?.eligible&&d.totalErrors>=10&&d.recoveryRate!=null&&(r.bounce={errors:d.totalErrors,line1:`${Ze(d.totalErrors)} tool errors.`,line2:`${st(d.recoveryRate)}% shaken off within 3 steps.`,rate:d.recoveryRate,nemesis:d.nemesisFamily&&d.nemesisErrorRate!=null?d.nemesisFamily===`execute`?`The terminal put up a fight. ${st(d.nemesisErrorRate)}% of commands errored.`:`Toughest tool: ${d.nemesisFamily}. ${st(d.nemesisErrorRate)}% of those calls errored.`:null});let f=e.mainEvent;if(f?.eligible&&f.activeMinutes>=30&&f.dateLabel){let t=[`One session.`,`${dt(f.activeMinutes)}.`];f.toolCalls>0&&e.capabilities?.toolNames===`present`&&t.push(`${Ze(f.toolCalls)} tool calls.`),r.mainevent={date:`${n(f.dateLabel)}.`,facts:t.join(` `),q:`What were you building?`,a:`We don’t know. We didn’t look.`}}let p=e.delegation?.unattended;p?.eligible&&p.totalHours>=1&&(r.nightshift={hours:`≈ ${je(p.totalHours)} hours`,rest:`of agent work ran 30+ min after your last prompt.`,joke:`Somebody pulled the night shift and it wasn’t you.`});let m=e.archetype;if(m){let t=(m.allScores||[]).filter(e=>e.eligible&&e.id!==m.id).sort((e,t)=>e.score-t.score).map(e=>e.name),n=t.length>=3?t:(m.allScores||[]).map(e=>e.name).filter(e=>e!==m.archetypeName),s=m.runnerUp?.name||null,l=[...n.filter(e=>e!==s).slice(-6),...s?[s]:[]],u=e.delegation?.parallelism,d=m.body;if(m.id===`conductor`&&c?.totalSpawns)d=`${Ze(c.totalSpawns)} subagents`+(u?.eligible?` · ≈ ${je(u.factor)}× parallelism`:``);else if(m.id===`nomad`&&i.length)d=`${i.length} harnesses`+(a?.switchDays?` · ${Ze(a.switchDays)} mixed days`:``);else if(m.id===`archaeologist`){let e=o.find(e=>e.family===`investigate`)?.count,t=o.find(e=>e.family===`modify`)?.count;d=e&&t?`${(e/t).toFixed(1)} reads for every edit.`:null}else m.isProvisional?d=`${Ze(e.totals.sessions)} ${e.totals.sessions===1?`session`:`sessions`} so far.`:/\d{4}/.test(d||``)&&(d=null);r.identity={id:m.id,title:m.title,name:m.archetypeName,chrono:m.chronotype&&!m.isProvisional?m.chronotype:null,provisional:!!m.isProvisional,tagline:m.isProvisional?`It’s too early to typecast you.`:m.tagline,runner:s,cycle:l,lead:ut[m.id]||`patch`,evidence:d}}return r.share={stats:(e.shareableStats||[]).filter(e=>e.defaultSelected&&!e.sensitiveByDefault&&(e.id!==`active-time`||t!==`0`)).slice(0,4).map(e=>e.id===`active-time`?{label:`hours with agents`,value:`≈ ${t}`}:{label:e.id===`sessions`&&e.value===`1`?`session`:ct[e.id]||e.label,value:e.epistemic===`estimated`&&!e.value.includes(`≈`)?`≈ ${e.value}`:e.value}),closing:`That was your ${(e.capturedWindow?.startDate||`2026`).slice(0,4)} with agents. Same time next year.`},r}var pt=(e,t)=>t.reduced?e:pe(e),mt=e=>e.P?e.W/1080:e.H/1080,ht=()=>{let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}},gt=(e,t,n,r=``,i={})=>({items:e,ground:t,fg:n,cam:r,...i});function _t(e,t){let n=e.split(` `);if(t<=1||n.length<2)return[e];let r=e.length/t,i=[],a=``;for(let e of n)a&&(a+` `+e).length>r*1.08&&i.length<t-1?(i.push(a),a=e):a=a?a+` `+e:e;return i.push(a),i}function vt(e,t,n,{x:r,y0:i,size:a,fill:o=p,plateFill:s=V,a:c,cls:l=`ax`,lh:u=1.06,mis:d=10,anchor:f=`start`}){if(!c)return i+(n.length-1)*a*u;let m=``,h=``;return n.forEach((e,t)=>{let n=i+t*a*u;m+=G(r,n,e,{cls:l,size:a,fill:s,ls:-.02,anchor:f}),h+=G(r,n,e,{cls:l,size:a,fill:o,ls:-.02,anchor:f})}),s&&e(t+`p`,m,ve(Y(d,d*.5),J(r,i,c.s)),c.op),e(t,h,J(r,i,c.s),c.op),i+(n.length-1)*a*u}var yt=_.violet,bt=_.orange,xt=_.green,St={Nocturnal:y.Nocturnal.fork,Twilight:{color:yt,shade:`#43307F`,eye:H},Dawn:{color:bt,shade:`#D9531C`,eye:p},Daylight:{color:H,shade:`#D8B900`,eye:p},"Round-the-Clock":{color:xt,shade:`#007E45`,eye:p}},Ct=(e,t,n,r=H)=>`<path d="M${e-n/2} ${t} L${e-n/2} ${t-n*.55} L${e-n*.25} ${t-n*.3} L${e} ${t-n*.68} L${e+n*.25} ${t-n*.3} L${e+n/2} ${t-n*.55} L${e+n/2} ${t} Z" fill="${r}" stroke="${p}" stroke-width="${(n*.06).toFixed(1)}" stroke-linejoin="round"/>`,wt=(e,t,n,r)=>`<path d="M${e} ${t} h${n} l${-n} ${n} h${n}" fill="none" stroke="${r}" stroke-width="${(n*.18).toFixed(1)}" stroke-linejoin="round" stroke-linecap="round"/>`,Tt=[`bash`,`patch`,`grep`,`todo`,`fork`];function Et(e){let t=e.harness,n=t.rows.length,r={title:0,row0:z(1),line:z(1)+n*z(1)+z(3)},i=r.row0+(n-1)*z(1),a=(t.line?r.line:i)+.3,o=[t.title,...t.rows.map(e=>`${e.name} ${e.pctLabel} ${e.kind} ${e.stats}`),t.line||``],s=(()=>{let e=t.rows.map(e=>e.share*5),n=e.map(Math.floor),r=5-n.reduce((e,t)=>e+t,0);return e.map((e,t)=>[e-n[t],t]).sort((e,t)=>t[0]-e[0]).forEach(([,e])=>{r>0&&(n[e]++,r--)}),n})();return{id:`harnesses`,label:`Harnesses`,title:t.loyal?`Loyal. ${t.rows[0].pctLabel} ${t.rows[0].name}.`:t.title,summary:t.rows.map(e=>`${e.name}: ${e.pctLabel} ${e.kind}, ${e.stats.replace(`·`,`and`)}.`).join(` `)+(t.line?` `+t.line:``),held:o,settle:()=>a,frame(e,o,c){let{P:l,W:u,H:d}=o,f=pt(e,c),{items:h,add:g}=ht(),_=Oe(o,e,p,.06,c.reduced?.06:.12);g(`pat`,_.dim),g(`pat-hot`,_.hot);let v=Ee(e,c,[0]),y=l?Math.min(150,K(t.title,`ax`,u*.86)):Math.min(140,K(t.title,`ax`,u*.6)),b=l?48:64,x=d*.04+y*.78;vt(g,`title`,[t.title],{x:b,y0:x,size:y,a:Q(e,r.title,c,.07),mis:v,plateFill:m});let S=t.line?l?_t(t.line,3):_t(t.line,2):[],C=t.line?l?q(S,`ax112`,u*.88,0,72):q(S,`ax112`,u*.62,0,64):0,w=x+d*(l?.05:.07),T=t.line?l?d*.9-S.length*C*1.12-d*.04:d*.94-S.length*C*1.12-d*.03:d*(l?.86:.94),E=Math.min(l?320:330,(T-w)/n),D=Math.min(l?84:96,E*.27),O=E*.24,A=Math.max(l?40:30,Math.min(l?46:42,E*.14)),j=b,M=l?u*.6:u*.36,N=Math.max(...t.rows.map(e=>e.share)),P=c.reduced?0:Ce(e,a);if(t.rows.forEach((t,n)=>{let i=r.row0+n*z(1),o=Q(e,i,c,.05);if(!o)return;let d=w+n*E+D*.8,h=d+D*.35,_=c.reduced?1:L.outCubic(I((e-i)/z(1))),y=Math.max(O*.6,t.share/N*M)*_,x=O*1.25,S=G(b,d,t.name.toUpperCase(),{cls:`ax`,size:D,fill:p,ls:.01});if(S+=X(j+v*.5,h+v*.4,y,O,m)+X(j,h,y,O,p),S+=G(j+y+22,h+O*.95,t.pctLabel,{cls:`ax`,size:x,fill:p,ls:-.02}),l||(S+=G(j+y+22+W(t.pctLabel,`ax`,x,-.02)+14,h+O*.92,t.kind,{cls:`monob`,size:A,fill:p})),!l)S+=G(b,h+O+A*1.45,t.stats,{cls:`monob`,size:A,fill:p});else{let e=`${t.kind} · ${t.stats}`,n=K(e,`monob`,u-96);S+=n>=40?G(b,h+O+A*1.45,e,{cls:`monob`,size:Math.min(A,n),fill:p}):G(b,h+O+58,t.kind,{cls:`monob`,size:40,fill:p})+G(b,h+O+110,t.stats,{cls:`monob`,size:Math.min(40,K(t.stats,`monob`,u-96)),fill:p})}if(g(`row`+n,S,J(b,h,o.s*(1+.012*P*(n===0))),o.op),!l){let t=s[n],r=Math.min(.62,E*.62/300),l=s.slice(0,n).reduce((e,t)=>e+t,0);for(let o=0;o<t;o++){let t=Tt[l+o],s=u*.8+o*u*.05,d=h+O,p=c.reduced?0:(1-L.outBack(I((e-i)/z(1.5))))*200;g(`c-`+t,k(t,{x:s,y:d-p,s:r,keyline:0,expr:we(f,c,o+n)?`blink`:n===0?`happy`:`neutral`,hop:Z(f,c,{from:a,every:2,off:(l+o)*.5,h:18}),...Te(f,c,.02,4,o)}))}g(`stage`+n,X(u*.77,h+O,u*.2,8,p),``,o.op)}}),l){let t=d*.995,n=u*.18/200;e>=i&&Tt.forEach((e,r)=>g(`c-`+e,k(e,{x:u*(.12+r*.19),y:t,s:n,keyline:0,expr:we(f,c,r)?`blink`:`happy`,hop:Z(f,c,{from:a,every:2,off:r*.5,h:22})})))}if(t.line){let t=Q(e,r.line,c,.04);if(t){let e=l?d*.9-(S.length-1)*C*1.12-(l?d*.11:0):d*.94-(S.length-1)*C*1.12;g(`line`,S.map((t,n)=>G(b,e+n*C*1.12,t,{cls:`ax112`,size:C,fill:p})).join(``),J(b,e,t.s),t.op)}}return gt(h,H,p,De(e,c,[[0,4,12]]))}}}function Dt(e){let t=e.crew.fams,n=t.length,r={title:0,rise:z(1),labels:z(3),crown:z(6)},i=Je.title,a=Je.line,o=e=>e.count>0?`${v[e.id].name} ${e.verb} ${e.pctLabel}`:`${v[e.id].name} · ${e.verb} · ${Je.never}`,s=e=>{let t=e.split(` `);if(t.length<2)return[e];let n=Math.ceil(t.length/2);return[t.slice(0,t.length-n).join(` `)||t[0],t.slice(t.length-n).join(` `)].filter(Boolean)};return{id:`crew`,label:`The crew`,title:i,summary:`${a} ${t.map(e=>`${o(e)}.`).join(` `)}`,held:[i,a,...t.map(e=>o(e))],settle:()=>r.crown+.3,frame(e,o,c){let{P:l,W:u,H:d}=o,f=pt(e,c);mt(o);let{items:h,add:g}=ht(),y=Oe(o,e,p,.05,c.reduced?.05:.1);g(`pat`,y.dim),g(`pat-hot`,y.hot);let b=Ee(e,c,[0,r.crown]),x=l?(()=>{let e=i.split(` `),t=Math.ceil(e.length/2);return[e.slice(0,t).join(` `),e.slice(t).join(` `)].filter(Boolean)})():[i],S=l?K(x[0],`ax`,u*.7):Math.min(120,K(i,`ax`,u*.5)),C=l?48:64,w=vt(g,`title`,x,{x:C,y0:d*.04+S*.78,size:S,a:Q(e,r.title,c,.07),mis:b}),T=l?_t(a,2):[a],E=l?Math.min(46,q(T,`ab`,u-C*2)):Math.min(38,K(a,`ab`,u*.62)),D=Q(e,r.title+z(1),c,.05),O=w+S*.32+E;D&&g(`sub`,T.map((e,t)=>G(C,O+t*E*1.2,e,{cls:`ab`,size:E,fill:p})).join(``),J(C,O,D.s),D.op);let A=O+(T.length-1)*E*1.2,j=Math.max(...t.map(e=>e.share))||1,M=t=>c.reduced?1:L.outBack(I((e-r.rise-t*2*B)/z(1.5))),N=Q(e,r.labels,c,.05),P=e>=r.crown;if(l){let i=A+E*.9,a=Math.min(260,(d*.97-i)/n),o=Math.min(64,a*.24);t.forEach((t,n)=>{let s=i+n*a+a*.78,l=u*.27,d=u*.46,m=t.count>0?Math.max(14,t.share/j*d)*M(n):0;t.count>0?g(`col`+n,X(l+b*.5,s-a*.3+b*.4,m,a*.3,V)+X(l,s-a*.3,m,a*.3,v[t.id].color===_.yellow?`#E6CF00`:v[t.id].color)):g(`col`+n,`<rect x="${l.toFixed(1)}" y="${(s-a*.3).toFixed(1)}" width="${(d*.2).toFixed(1)}" height="${(a*.3).toFixed(1)}" fill="none" stroke="${p}" stroke-width="5" stroke-dasharray="14 10"/>`);let h=Math.min(.62,a*.72/300);if(t.count>0&&e>=r.rise){let i=n===0;if(g(`c-`+t.id,k(t.id,{x:u*.12,y:s,s:h,keyline:0,expr:i&&P?`triumph`:`happy`,hop:Z(f,c,{from:r.labels+1,every:2,off:n*.5,h:14})})),i&&P){let n=c.reduced?1:1+.6*(1-ie(e-r.crown,{freq:4,zeta:.5})),i=s-v[t.id].height*h;g(`crown`,Ct(u*.12,i-6,100*h*1.4),J(u*.12,i,n))}}if(N){let e=Math.min(Math.max(34,o*.68),K(`${v[t.id].name} ${t.verb}`,`monob`,u-l-40));g(`lab`+n,G(l,s-a*.3-o*.35,`${v[t.id].name} ${t.verb}`,{cls:`monob`,size:e,fill:p})+(t.count>0?G(l+m+16,s-a*.04,t.pctLabel,{cls:`ax`,size:o,fill:p}):G(l+d*.2+16,s-a*.08,Je.never,{cls:`ab`,size:Math.max(40,o*.62),fill:p})),J(l,s,N.s),N.op)}})}else{let i=[];t.forEach((e,t)=>t%2?i.push(e):i.unshift(e));let a=(u-128)/n,o=Math.max(d*.62,A+d*.42),l=Math.min(d*.26,o-A-d*.2),m=Math.min(40,q(i.flatMap(e=>[...s(e.verb),...e.count>0?[]:[Je.never]]),`ax112`,a*.88));i.forEach((n,i)=>{let u=t.indexOf(n),d=64+a*(i+.5),h=a*.56,y=n.count>0?Math.max(18,n.share/j*l)*M(u):0,x=v[n.id].color;n.count>0?g(`col`+u,X(d-h/2+b*.6,o-y+b*.4,h,y,V)+X(d-h/2,o-y,h,y,x===_.yellow?`#E6CF00`:x)):g(`col`+u,`<rect x="${(d-h/2).toFixed(1)}" y="${(o-60).toFixed(1)}" width="${h.toFixed(1)}" height="60" fill="none" stroke="${p}" stroke-width="5" stroke-dasharray="14 10"/>`);let S=Math.min(.62,a*.62/200)*(n.share===j?1.12:1);if(n.count>0&&e>=r.rise){let t=u===0,a=t&&P?Z(f,c,{from:r.crown,every:2,h:26}):Z(f,c,{from:r.labels+1,every:2,off:i*.5,h:14}),s={x:d,y:o-y,s:S,keyline:0,expr:t&&P?`triumph`:we(f,c,i*.7)?`blink`:n.share<.08?`neutral`:`happy`,hop:a,...t&&P?{armL:150,armR:150}:{},...Te(f,c,.02,4,i)};if(g(`c-`+n.id,k(n.id,s)),t&&P){let t=c.reduced?1:1+.6*(1-ie(e-r.crown,{freq:4,zeta:.5})),i=o-y-v[n.id].height*S-(a||0)*S;g(`crown`,Ct(d,i-6,90*S*1.4),J(d,i,t))}}if(N){let e=o+m*1.5,t=s(n.verb),r=e+m*1.2,i=r+(t.length-1)*m*1.05+(n.count>0?m*1.95:m*1.25);g(`lab`+u,G(d,e,v[n.id].name,{cls:`monob`,size:Math.max(30,m*.72),fill:p,anchor:`middle`})+t.map((e,t)=>G(d,r+t*m*1.05,e,{cls:`ax112`,size:m,fill:p,anchor:`middle`})).join(``)+G(d,i,n.count>0?n.pctLabel:Je.never,{cls:n.count>0?`ax`:`ab`,size:n.count>0?m*1.6:m*.9,fill:p,anchor:`middle`}),J(d,e,N.s),N.op)}}),g(`floor`,X(48,o,u-96,8,p))}return gt(h,m,p,De(e,c,[[0,4,12],[r.crown,3,12]]))}}}function Ot(e){let t=e.orchestra,n={n:0,peak:z(3),row:z(3)},r=Math.min(12,t.peak),i=n.row+r*z(.5)+.3;return{id:`orchestra`,label:`The orchestra`,title:t.line1,summary:t.line2,held:[t.line1,t.line2],settle:()=>i,frame(e,a,o){let{P:s,W:c,H:l}=a,u=pt(e,o),d=mt(a),{items:f,add:p}=ht(),h=Oe(a,e,m,.05,o.reduced?.05:.14);p(`pat`,h.dim),p(`pat-hot`,h.hot);let g=Ee(e,o,[0,n.peak]);o.reduced||Ce(e,0);let _=s?48:64,v=s?Math.min(l*.2,c*.86/(F(t.spawns,0,0,100).width/100)):Math.min(l*.32,c*.5/(F(t.spawns,0,0,100).width/100)),y=l*.05+v*.74,b=Q(e,n.n,o,.08);if(b){let e=F(t.spawns,_,y,v,{fill:m});p(`n-p`,F(t.spawns,_+g,y+g*.6,v,{fill:V}).svg,J(_,y,b.s),b.op),p(`n`,e.svg,J(_,y,b.s),b.op);let n=s?K(`subagents.`,`ax112`,c*.6):Math.min(110,K(`subagents.`,`ax112`,c*.9-(_+e.width+40))),r=s?_:_+e.width+40,i=s?y+n*1.3:y;p(`sub`,G(r,i,`subagents.`,{cls:`ax112`,size:n,fill:m}),J(r,i,b.s),b.op)}let x=s?K(t.line2,`ax`,c*.7):Math.min(170,K(t.line2,`ax`,c*.42)),S=s?y+v*.42+x*1.15:y+x*1.25,C=Q(e,n.peak,o,.1);C&&(p(`peak-p`,G(_+g,S+g*.5,t.line2,{cls:`ax`,size:x,fill:V,ls:-.02}),J(_,S,C.s),C.op),p(`peak`,G(_,S,t.line2,{cls:`ax`,size:x,fill:H,ls:-.02}),J(_,S,C.s),C.op));let w=l*.97,T=s?c*.3/152:l*.38/262,E=Math.floor(Math.max(0,e)/z(1)),D=o.reduced?0:Math.sin(e/z(1)*Math.PI)*40;p(`fork`,k(`fork`,{x:s?c*.2:c*.12,y:w,s:T,acc:[`baton`,`bowtie`],flip:!0,turn:.4,armR:150+D,armL:40-D*.4,expr:e>=n.peak?`determined`:`smug`,keyline:0,...Te(u,o,.015,4)}));let O=s?Math.min(r,4):r,A=Math.ceil(r/O),j=s?c*.38:c*.26,M=c-(s?40:64);s&&w-A*200*d;let N=(M-j)/O,P=+Math.min(.62,N*.8/200),ee=300*P*.95;for(let t=0;t<r;t++){let r=n.row+t*z(.5);if(e<r&&!(o.reduced&&e>=n.row))continue;let a=Tt[t%4==3?3:t%4],c=Math.floor(t/O),l=j+N*(t%O+.5),d=s?w-(A-1-c)*ee:w,f=o.reduced?1:1+.3*(1-ie(e-r,{freq:4,zeta:.5})),m=(E+t)%2==0;p(`m`+t,k(a,{x:l,y:d,s:P*f,keyline:0,expr:m?`happy`:`neutral`,armL:m?150:30,armR:m?30:150,hop:Z(u,o,{from:i,every:2,off:t%2,h:16})}))}return gt(f,yt,m,De(e,o,[[0,5,12],[n.peak,4,12]]))}}}function kt(e){let t=e.pilot,n={l1:0,leash:z(4)},r=(t.leash?n.leash:z(2))+.3;return{id:`pilot`,label:`Who flew`,title:t.line1,summary:`${t.line2}${t.leash?` `+t.leash:``}`,held:[t.line1,t.line2,t.leash||``],settle:()=>r,frame(e,r,i){let{P:a,W:o,H:s}=r,c=pt(e,i);mt(r);let{items:l,add:u}=ht(),d=Oe(r,e,p,.05,i.reduced?.05:.1);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=Ee(e,i,[0]),h=a?48:64,g=a?_t(t.line1,2):[t.line1],_=a?q(g,`ax`,o*.86):Math.min(120,K(t.line1,`ax`,o*.86)),v=s*.05+_*.78,y=Q(e,n.l1,i,.06),b=vt(u,`l1`,g,{x:h,y0:v,size:_,a:y,mis:f,plateFill:m}),x=_*.9,S=b+x*1.35;if(y){let n=W(t.line2,`ax`,x,-.02);u(`l2`,G(h,S,t.line2,{cls:`ax`,size:x,fill:m,ls:-.02}),J(h,S,y.s),y.op);let r=i.reduced||Math.floor(Math.max(0,e)/z(1))%2==0;u(`cur`,X(h+n+x*.14,S-x*.74,x*.42,x*.74,V),``,r?y.op:0)}let C=a?20:25,w=a?5:4,T=h,E=a?o-96:o-128,D=a?s*.47:s*.46,O=E/C,A=a?O:Math.min(O*.9,s*.26/w),j=i.reduced?100:Math.round(100*L.outCubic(I(Math.floor(Math.max(0,e)/z(.25))*z(.25)/z(3)))),M=``,N=``,P=``;for(let e=0;e<100;e++){let n=Math.floor(e/C),r=ye(T+e%C*O,D+n*A,O*.8,A*.8);e>=j?P+=r:e<t.agent?M+=r:N+=r}u(`cells`,`<path d="${P}" fill="${p}" opacity="0.12"/><path d="${M}" fill="${p}"/><path d="${N}" fill="${m}"/>`);let ee=D+w*A,te=a?o*.13/200:s*.17/300;if([`grep`,`bash`,`patch`,`todo`,`fork`].forEach((t,n)=>{e<z(1)+n*.03333333333333333*2&&!i.reduced||u(`c-`+t,k(t,{x:T+E*(.08+n*.17),y:D-6,s:te,keyline:0,expr:we(c,i,n)?`blink`:`happy`,hop:Z(c,i,{from:1,every:2,off:n*.4,h:16})}))}),t.leash){let r=Q(e,n.leash,i,.04);if(r){let e=a?_t(t.leash,3):_t(t.leash,t.leash.length>44?2:1),n=a?q(e,`ax112`,o*.88,0,70):Math.min(64,q(e,`ax112`,o*.62)),i=ee+n*1.6;u(`leash`,e.map((e,t)=>G(h,i+t*n*1.12,e,{cls:`ax112`,size:n,fill:p})).join(``),J(h,i,r.s),r.op)}}return gt(l,bt,p,De(e,i,[[0,4,12]]))}}}function At(e){let t=e.bounce,n={n:0,back:z(3)},r=n.back+z(3)+.3,i=Math.min(1600,t.errors),a=Math.round(i*(1-t.rate)),o=0x9e3779b9,s=()=>{o|=0,o=o+0x6d2b79f5|0;let e=Math.imul(o^o>>>15,1|o);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296},c=[...Array(i).keys()].map(e=>[s(),e]).sort((e,t)=>e[0]-t[0]).map(e=>e[1]),l=new Set(c.slice(0,a));return{id:`bounce`,label:`Bounce back`,title:t.line1,summary:`${t.line2}${t.nemesis?` `+t.nemesis:``}`,held:[t.line1,t.line2,t.nemesis||``],settle:()=>r,frame(e,r,a){let{P:o,W:s,H:c}=r,u=pt(e,a);mt(r);let{items:d,add:f}=ht(),h=Ee(e,a,[0,n.back]),g=o?48:64,_=o?K(t.line1,`ax`,s*.86):Math.min(130,K(t.line1,`ax`,s*.5)),v=c*.05+_*.78;vt(f,`l1`,[t.line1],{x:g,y0:v,size:_,a:Q(e,n.n,a,.08),mis:h,fill:m,plateFill:p});let y=Q(e,n.back,a,.05),b=_t(t.line2,2),x=o?q(b,`ax`,s*.86):Math.min(96,q(b,`ax`,s*.46)),S=v+_*.5+x*1.3;if(y&&(f(`l2`,b.map((e,t)=>G(g,S+t*x*1.06,e,{cls:`ax`,size:x,fill:H,ls:-.02})).join(``),J(g,S,y.s),y.op),t.nemesis)){let e=_t(t.nemesis,2),n=o?q(e,`monob`,s*.88,0,46):Math.min(40,q(e,`monob`,s*.46)),r=S+(b.length-1)*x*1.06+n*2.2;f(`nem`,e.map((e,t)=>G(g,r+t*n*1.4,e,{cls:`monob`,size:n,fill:m})).join(``),J(g,r,y.s),y.op)}let C=Math.ceil(Math.sqrt(i*(o?1.25:.8))),w=o?Math.ceil(i/Math.ceil(Math.sqrt(i/1.25))):C,T=Math.ceil(i/w),E=o?s-96:s*.38,D=o?48:s*.58,O=o?c*.5:c*.1,A=Math.min(E/w,(o?c*.32:c*.62)/T),M=a.reduced?+(e>=n.back):I(Math.floor(Math.max(0,e-n.back)/z(.25))*z(.25)/z(2)),N=Math.round(i*M),P=``,ee=``;for(let e=0,t=0;e<i;e++){let n=Math.floor(e/w),r=ye(D+e%w*A,O+n*A,A*.74,A*.74);l.has(e)?P+=r:(t<N?ee+=r:P+=r,t++)}let te=a.reduced?1:.85+.15*Ce(e,0);f(`cells`,`<path d="${ee}" fill="${m}"/><path d="${P}" fill="${ue}" opacity="${te.toFixed(3)}"/>`);let F=o?s*.42/206:c*.36/190,ne=o?s*.62:s*.3,re=c*.985,L;return L=e<n.back?{...j(`land`),lean:80,sx:1.15,sy:.7,expr:`error`,armL:160,armR:170,hop:0}:e<n.back+z(1)?{...j(`crouch`),expr:`determined`,lean:20}:e<n.back+z(2)?{...j(`air`),hop:a.reduced?0:60}:{expr:we(u,a,.4)?`blink`:`triumph`,armL:150,armR:150,hop:Z(u,a,{from:n.back+z(3),every:2,h:20}),...Te(u,a,.02,4)},a.reduced&&(L=e<n.back?{...j(`land`),lean:80,sx:1.15,sy:.7,expr:`error`}:{expr:`triumph`,armL:150,armR:150}),f(`bash`,k(`bash`,{x:ne,y:re,s:F,keyline:0,cu:!0,...L})),gt(d,xt,m,De(e,a,[[0,6,12],[n.back,4,12]]))}}}function jt(e){let t=e.act?.on,n=e.act?.punchline?.replace(/'/g,`’`),r={...e.mainevent,...t?{a:n||`We don’t know.`}:{}},i={d:0,q:z(4)},a=i.q+.3;return{id:`mainevent`,label:`The main event`,title:`${r.date} ${r.facts}`,summary:`${r.q} ${r.a}`,held:[r.date,r.facts,r.q,r.a],settle:()=>a,frame(e,t,n){let{P:o,W:s,H:c}=t,l=pt(e,n),u=mt(t),{items:d,add:f}=ht(),h=Oe(t,e,m,.04,n.reduced?.04:.08);f(`pat`,h.dim),f(`pat-hot`,h.hot);let g=Ee(e,n,[0]),_=o?48:64,v=o?K(r.date,`ax`,s*.6):Math.min(200,K(r.date,`ax`,s*.4)),y=c*.04+v*.78,b=Q(e,i.d,n,.08);vt(f,`date`,[r.date],{x:_,y0:y,size:v,a:b,mis:g,fill:m,plateFill:V});let x=r.facts.split(/(?<=\.) /),S=o?q(x,`ax112`,s*.86,0,90):Math.min(76,q(x,`ax112`,s*.48)),C=y+S*1.6;b&&f(`facts`,x.map((e,t)=>G(_,C+t*S*1.1,e,{cls:`ax112`,size:S,fill:m})).join(``),J(_,C,b.s),b.op);let w=Q(e,i.q,n,.05),T=o?q([r.q,r.a],`ax`,s*.86):Math.min(80,q([r.q,r.a],`ax`,s*.48)),E=o?C+(x.length-1)*S*1.1+T*2:Math.max(C+(x.length-1)*S*1.1+T*2.2,c*.74);w&&f(`qa`,G(_,E,r.q,{cls:`ax`,size:T,fill:m})+G(_,E+T*1.15,r.a,{cls:`ax`,size:T,fill:H}),J(_,E,w.s),w.op);let D=o?s*.44:s*.2,O=o?c*.36:c*.74,A=o?s*.32-D/2:s*.6,j=c*.97-O,M=n.reduced?.8:.55+.45*Ce(e,0),N=X(A-16,j-16,D+32,O+16,p)+X(A-10,j-10,D+20,O+10,`#2A2A33`);N+=X(A,j,D,O,m)+X(A+D*.12,j+O*.08,D*.76,O*.36,`#E4DFD3`)+X(A+D*.12,j+O*.52,D*.76,O*.38,`#E4DFD3`),N+=`<circle cx="${(A+D*.84).toFixed(1)}" cy="${(j+O*.5).toFixed(1)}" r="${(D*.045).toFixed(1)}" fill="${p}"/>`,f(`door`,N),f(`light`,X(A,j+O-2,D,10,H),``,M),f(`redact`,X(A+D*.2,j+O*.22,D*.6,O*.04,p)+X(A+D*.2,j+O*.29,D*.42,O*.04,p));let P=t=>n.reduced?1:L.outCubic(I((e-z(1)-t*z(1))/z(1))),ee=o?s*.16/200:c*.2/300,te=n.reduced?0:Math.sin(e*Math.PI*1.5)*6;return f(`grep`,k(`grep`,{x:A+D+30+60*(1-P(0)),y:j+O*.62,s:ee*1.1,turn:1,flip:!0,lean:-18+te,expr:`squint`,look:-1,crestRot:-20,keyline:0}),``,P(0)),f(`patch`,k(`patch`,{x:A+D+(o?210:190)*u+60*(1-P(1)),y:c*.97,s:ee*1.1,lean:-12,flip:!0,expr:we(l,n,.7)?`blink`:`wide`,look:-1,keyline:0}),``,P(1)),f(`bash`,k(`bash`,{x:A+D+(o?360:330)*u+60*(1-P(2)),y:c*.97,s:ee,lean:-8,flip:!0,expr:`thinking`,look:-1,t:Math.max(0,Math.floor(e*6)),keyline:0,hop:Z(l,n,{from:a,every:4,h:14})}),``,P(2)),gt(d,p,m,De(e,n,[[0,4,12]]))}}}function Mt(e){let t=e.nightshift,n={n:0,joke:z(4)},r=n.joke+.3;return{id:`nightshift`,label:`The night shift`,title:`${t.hours} ${t.rest}`,summary:t.joke,held:[t.hours,t.rest,t.joke],settle:()=>r,frame(e,r,i){let{P:a,W:o,H:s}=r,c=pt(e,i),l=mt(r),{items:u,add:d}=ht(),f=Ee(e,i,[0]),p=a?48:64,h=a?K(t.hours,`ax`,o*.86):Math.min(190,K(t.hours,`ax`,o*.6)),g=s*.04+h*.78,_=Q(e,n.n,i,.08);vt(d,`hours`,[t.hours],{x:p,y0:g,size:h,a:_,mis:f,fill:H,plateFill:V});let v=a?_t(t.rest,3):_t(t.rest,2),y=a?q(v,`ax112`,o*.86,0,80):Math.min(72,q(v,`ax112`,o*.56)),b=g+y*1.7;_&&d(`rest`,v.map((e,t)=>G(p,b+t*y*1.1,e,{cls:`ax112`,size:y,fill:m})).join(``),J(p,b,_.s),_.op);let x=Q(e,n.joke,i,.05),S=_t(t.joke,2),C=a?q(S,`ax`,o*.86,0,90):Math.min(84,q(S,`ax`,o*.5)),w=a?b+(v.length-1)*y*1.1+C*1.9:s*.8;x&&d(`joke`,S.map((e,t)=>G(p,w+t*C*1.08,e,{cls:`ax`,size:C,fill:m})).join(``),J(p,w,x.s),x.op);let T=a?o*.6:o*.76,E=s*.9,D=a?o*.36:o*.2,O=a?s*.08:s*.12,A=``;for(let e=E-O;e<=E+O;e+=18)for(let t=T-D;t<=T+D;t+=30){let n=((t-T)/D)**2+((e-E)/O)**2;if(n>1)continue;let r=(1-n)*30*.24;r>.8&&(A+=`M${(t+r).toFixed(1)} ${e.toFixed(1)}a${r.toFixed(1)} ${r.toFixed(1)} 0 1 0 ${(-2*r).toFixed(1)} 0a${r.toFixed(1)} ${r.toFixed(1)} 0 1 0 ${(2*r).toFixed(1)} 0`)}d(`pool`,`<path d="${A}" fill="${H}"/>`);let j=a?o*.15/200:s*.2/300;[`bash`,`patch`,`todo`].forEach((t,n)=>{let r=i.reduced?0:Math.floor(e/z(1)+n)%2;d(`c-`+t,k(t,{x:T+(n-1)*D*.55,y:E+O*.2,s:j,keyline:0,expr:`determined`,armL:r?120:60,armR:r?60:120,t:Math.max(0,Math.floor(e*6)),hop:Z(c,i,{from:0,every:1,off:n*.33,h:10})}))});let M=a?o*.16:o*.52,N=s*.94,P=a?150*l:170*l;d(`sleeper`,X(M-P/2,N-P*.46,P,P*.46,`#B23A7C`));for(let t=0;t<3;t++){let n=(Math.max(0,e)/z(2)+t/3)%1,r=(34+18*t)*l;d(`z`+t,wt(M+P*.3+n*60*l+t*30*l,N-P*.7-n*160*l-t*40*l,r,m),``,i.reduced?.8:1-n)}return gt(u,de,m,De(e,i,[[0,4,12]]))}}}function Nt(e){let t=e.identity,n=[];{let e=0,r=t.cycle.length?t.cycle:[`…`];r.forEach((t,i)=>{n.push([e,t]),e+=i<r.length-3?z(.5):z(1)}),t.runner&&(e+=z(2)),n.push([e,null])}let r=n[n.length-1][0],i={land:r,tag:r+z(4)},a=i.tag+.3,o=(t.provisional,t.name);return{id:`identity`,label:`Your type`,title:t.title,summary:`${t.tagline}${t.evidence?` `+t.evidence:``}`,held:[t.title,t.tagline,t.evidence||``],settle:()=>a,cues:()=>[{name:`identity`,at:i.land}],frame(e,r,a){let{P:s,W:c,H:l}=r,u=pt(e,a);mt(r);let{items:d,add:f}=ht(),h=e>=i.land,g=Oe(r,e,p,.05,a.reduced?.05:h?.14:.08);f(`pat`,g.dim),f(`pat-hot`,g.hot);let _=Ee(e,a,[i.land]),y=s?48:64,b=s?c*.86:c*.56,x=[...t.cycle,o],S=Math.min(s?210:190,q(x,`ax`,b)),C=Math.min(s?240:250,K(o,`ax`,b)),w=s?l*.12+S:l*.2+S,T=s?64:60;if(h){let n=a.reduced?1:xe(e,i.land,.12),r=a.reduced?I((e-i.land)/.3):1;t.chrono?f(`chrono`,G(y,w-C*.86,t.chrono,{cls:`ax112`,size:T,fill:p}),J(y,w,n),r):f(`chrono`,G(y,w-C*.86,`Provisional`,{cls:`ax112`,size:T,fill:p}),J(y,w,n),r),f(`name-p`,G(y+_,w+_*.5,o,{cls:`ax`,size:C,fill:H,ls:-.02}),J(y,w,n),r),f(`name`,G(y,w,o,{cls:`ax`,size:C,fill:p,ls:-.02}),J(y,w,n),r)}else if(!a.reduced){let r=[...n].reverse().find(([t])=>e>=t),i=r?r[1]:t.cycle[0],a=t.runner&&i===t.runner,o=a?Math.sin((e-r[0])*40)*6*Math.exp(-(e-r[0])*3):0;i&&f(`cycle`,G(y,w,i,{cls:`ax`,size:S,fill:a?m:p,ls:-.02}),`translate(${o.toFixed(1)} 0)`,a?1:.55),f(`chrono`,G(y,w-C*.86,`You are…`,{cls:`ax112`,size:T,fill:p}))}let E=Q(e,i.tag,a,.05);if(E){let e=s?_t(t.tagline,2):_t(t.tagline,t.tagline.length>34?2:1),n=s?q(e,`ax112`,c*.86,0,90):Math.min(76,q(e,`ax112`,c*.52)),r=w+Math.max(S,C)*.45+n*1.3,i=e.map((e,t)=>G(y,r+t*n*1.12,e,{cls:`ax112`,size:n,fill:p})).join(``);if(t.evidence){let a=t.evidence.includes(` · `)?t.evidence.split(` · `).map((e,t,n)=>t<n.length-1?e+` ·`:e):_t(t.evidence,2),o=s&&t.evidence.length>26||!s&&K(t.evidence,`monob`,c*.52)<32?a:[t.evidence],l=s?q(o,`monob`,c*.86,0,46):Math.min(40,q(o,`monob`,c*.52)),u=r+(e.length-1)*n*1.12+l*2.2;i+=o.map((e,t)=>G(y,u+t*l*1.4,e,{cls:`monob`,size:l,fill:p})).join(``)}f(`tag`,i,J(y,r,E.s),E.op)}if(h||a.reduced){let n=t.lead,r=t.chrono?St[t.chrono]:null,o=s?l*.3/v[n].height:l*.66/v[n].height,d=s?c*.62:c*.78,p=l*.985,m=a.reduced?1:1+.25*(1-ie(Math.max(0,e-i.land),{freq:3.2,zeta:.45})),h=a.reduced?0:Math.sin(e/z(1)*Math.PI)*30,g=n===`fork`?[`baton`,`bowtie`]:t.provisional?[`shoshinsha`,`bowtie`]:[`bowtie`];f(`lead`,k(n,{x:d,y:p,s:o*m,acc:g,colorway:r||void 0,cu:!0,flip:!0,turn:.2,armR:n===`fork`?150+h:150,armL:n===`fork`?30:150,expr:we(u,a,.5,2.9)?`blink`:`smug`,keyline:0,...Te(u,a,.015,8)}))}return gt(d,V,p,De(e,a,[[i.land,10,10]]))}}}function Pt(e){let t=e.identity,n=e.share,r=1080,i=1920,a=[],o=[],s=(e,t,n,r)=>o.push({x:e,y:t,str:n,...r});a.push(X(0,0,r,i,V));let c=``;for(let e=0;e<22;e++)for(let t=0;t<12;t++)(t*7+e*3)%5==0&&(c+=ye(40+t*86,40+e*86,14,26));a.push(`<path d="${c}" fill="${p}" opacity="0.07"/>`),s(70,130,`COAUTHORED · ${e.yearStr}`,{cls:`monob`,size:60,fill:p});let l=Math.min(190,K(t.name,`ax`,940));s(70,300,t.chrono||`Provisional`,{cls:`ax112`,size:72,fill:p}),s(78,300+l*.95+8,t.name,{cls:`ax`,size:l,fill:H,ls:-.02}),s(70,300+l*.95,t.name,{cls:`ax`,size:l,fill:p,ls:-.02});let u=_t(t.tagline,t.tagline.length>28?2:1),d=Math.min(64,q(u,`ax112`,940)),f=300+l*.95+d*1.5;u.forEach((e,t)=>s(70,f+t*d*1.15,e,{cls:`ax112`,size:d,fill:p}));let m=t.lead,h=t.chrono?St[t.chrono]:void 0,g=m===`fork`?[`baton`,`bowtie`]:t.provisional?[`shoshinsha`,`bowtie`]:[`bowtie`],_=f+(u.length-1)*d*1.15+40,y=Math.min(2.4,(1140-_)/v[m].height);a.push(k(m,{x:r*.72,y:1150,s:y,acc:g,colorway:h,cu:!0,flip:!0,turn:.2,armR:150,armL:m===`fork`?30:150,expr:`smug`})),a.push(X(70,1150,940,8,p));let b=[...n.stats,...e.shareExtra||[]],x=Math.min(150,550/Math.max(1,b.length));return b.forEach((e,t)=>{let n=1180+t*x+x*.62,r=Math.min(104,x*.66),i=Math.max(470,70+W(e.value,`ax`,r,-.02)+48);s(70,n,e.value,{cls:`ax`,size:r,fill:p,ls:-.02});let a=e.label.length>12?_t(e.label,2):[e.label],o=Math.min(60,...a.map(e=>K(e,`monob`,1010-i)));a.forEach((e,t)=>s(i,n-(a.length-1)*o*1.08+t*o*1.08,e,{cls:`monob`,size:o,fill:p}))}),s(70,1818,`coauthored`,{cls:`monob`,size:60,fill:p}),s(70,1884,`npx coauthored`,{cls:`monob`,size:60,fill:p}),{W:r,H:i,shapes:a.join(``),texts:o}}function Ft(e){let t=e.share,n={card:0,line:z(4)},r=n.line+.3,i=null;return{id:`share`,label:`Your card`,title:`${e.identity.title}. ${e.identity.tagline}`,summary:`${t.stats.map(e=>`${e.label}: ${e.value}`).join(`. `)}. ${t.closing}`,held:[t.closing],last:!0,share:!0,settle:()=>r,frame(r,a,o){let{P:s,W:c,H:l}=a;pt(r,o);let{items:u,add:d}=ht(),f=JSON.stringify(e.shareExtra||[]);i&&i.key===f||(i={...Pt(e),key:f});let p=i,h=s?Math.min(l*.72,c*.84*(16/9)):l*.9,g=h/p.H,_=p.W*g,v=s?(c-_)/2:c*.06,y=s?l*.03:(l-h)/2,b=Q(r,n.card,o,.05)||{s:1,op:0},x=o.reduced?1:1+.08*(1-ie(Math.max(0,r),{freq:3.5,zeta:.5})),S=p.texts.map(e=>G(e.x,e.y,e.str,{cls:e.cls,size:e.size,fill:e.fill,anchor:e.anchor||`start`,ls:e.ls||0})).join(``);d(`card`,`<g transform="translate(${v.toFixed(1)} ${y.toFixed(1)}) scale(${g.toFixed(5)})">${p.shapes}${S}</g>`,J(v+_/2,y+h/2,x),b.op);let C=Q(r,n.line,o,.04);if(C){let e=_t(t.closing,2),n=s?q(e,`ax112`,c*.86,0,64):Math.min(76,q(e,`ax112`,c*.5)),r=s?48:c*.06+_+c*.06,i=s?y+h+n*1.5:l*.36;d(`line`,e.map((e,t)=>G(r,i+t*n*1.15,e,{cls:`ax112`,size:n,fill:m})).join(``),J(r,i,C.s),C.op)}return gt(u,fe,m,``,{buttons:s?{x:48,y:l*.92,w:c-96,h:l*.06}:{x:c*.06+_+c*.06,y:l*.62,w:c*.4,h:l*.1}})}}}var It=(e,t)=>t.reduced?e:pe(e),Lt=e=>e.P?e.W/1080:e.H/1080,Rt=()=>{let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}},zt=(e,t,n,r=``,i={})=>({items:e,ground:t,fg:n,cam:r,...i}),Bt=e=>`“${e.replace(/'/g,`’`)}”`,Vt=e=>{let t=/^([\d,]+)(.*)$/.exec(String(e));return t?{v:Number(t[1].replace(/,/g,``)),rest:t[2]}:null};function Ht(e,t,n,r,i){let a=Vt(e);if(!a)return String(e);if(i.reduced||t>=n+r)return e;let o=L.outCubic(I(Math.floor(Math.max(0,t-n)/z(.25))*z(.25)/r));return Math.round(a.v*o).toLocaleString(`en-US`)+a.rest}function Ut(e,t,n,r,i,a,o,{fill:s=m,y:c=null,maxW:l=null}={}){let u=Q(a,o,i,.04);if(!u)return;let{P:d,W:f,H:p}=r;n=n.replace(/'/g,`’`);let h=_t(n,d?n.length>64?4:3:n.length>60?2:1),g=d?q(h,`ax112`,l||f*.88,0,64):Math.min(60,q(h,`ax112`,l||f*.86)),_=d?48:64,v=c??p*.95-(h.length-1)*g*1.14;e(t,h.map((e,t)=>G(_,v+t*g*1.14,e,{cls:`ax112`,size:g,fill:s})).join(``),J(_,v,u.s),u.op)}function Wt(e,t,n,r,i,a,o,s,{scale:c=1,fill:l=m,id:u=`patch`,talk:d=!0,lblSize:f=null}={}){let{P:p}=a,h=Lt(a),g=It(s,o),_=f||(p?44:36);if(e(t+`-lbl`,G(r,i,n,{cls:`monob`,size:_,fill:l,ls:.12})),n===`YOU`){let n=120*h*c,a=o.reduced||Math.floor(Math.max(0,s)/z(1))%2==0;e(t+`-cur`,X(r,i+_*.6,n*.5,n,V),``,a?1:.25)}else{let n=d&&!o.reduced&&Math.floor(Math.max(0,s)/z(.5))%2==0;e(t+`-ag`,k(u,{x:r+60*h*c,y:i+_*.6+200*h*c*.9,s:.62*h*c,keyline:0,expr:we(g,o,.6)?`blink`:`happy`,mouth:n?`o`:void 0,hop:Z(g,o,{from:1,every:2,h:12})}))}}function Gt(e,t){let[n,...r]=t.text.replace(/'/g,`’`).split(/(?<=\.) /),i=r.join(` `);return{id:`c0`,label:`Act two`,title:n,summary:i,held:[t.text],settle:()=>z(3)+.3,cues:()=>[{name:`dialogue-card`,at:0}],frame(e,t,r){let{P:a,W:o,H:s}=t,c=It(e,r);Lt(t);let{items:l,add:u}=Rt(),d=Oe(t,e,p,.06,r.reduced?.06:.12);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=Ee(e,r,[0]),m=a?_t(n,2):[n],h=a?q(m,`ax`,o*.86):Math.min(170,K(n,`ax`,o*.86)),g=a?48:64,_=s*(a?.1:.14)+h*.78,v=Q(e,0,r,.08);v&&(u(`t1p`,m.map((e,t)=>G(g+f,_+t*h*1.04+f*.5,e,{cls:`ax`,size:h,fill:H,ls:-.02})).join(``),J(g,_,v.s),v.op),u(`t1`,m.map((e,t)=>G(g,_+t*h*1.04,e,{cls:`ax`,size:h,fill:p,ls:-.02})).join(``),J(g,_,v.s),v.op));let y=Q(e,z(3),r,.05);if(y&&i){let e=a?_t(i,2):[i],t=a?q(e,`ax112`,o*.86,0,90):Math.min(84,K(i,`ax112`,o*.7)),n=_+(m.length-1)*h*1.04+t*1.6;u(`t2`,e.map((e,r)=>G(g,n+r*t*1.12,e,{cls:`ax112`,size:t,fill:p})).join(``),J(g,n,y.s),y.op)}let b=s*.97,x=[`grep`,`patch`,`bash`,`todo`,`fork`],S=a?o*.15/200:s*.24/300;x.forEach((t,n)=>{let i=z(1)+n*B*2;if(e<i&&!r.reduced)return;let s=r.reduced?0:(1-L.outBack(I((e-i)/z(1))))*120,l=a?o*(.1+n*.16):o*(.3+n*.1);u(`c-`+t,k(t,{x:l,y:b+s,s:S,keyline:0,expr:we(c,r,n*.7)?`blink`:`happy`,hop:Z(c,r,{from:z(4),every:2,off:n*.4,h:14})}))});let C=a?o*.9:o*.82,w=S*260,T=r.reduced||Math.floor(Math.max(0,e)/z(1))%2==0;return(e>=z(2)||r.reduced)&&u(`you`,X(C,b-w,w*.5,w,p),``,T?1:.3),zt(l,V,p,De(e,r,[[0,6,12]]))}}}function Kt(e,t,{ground:n=p,fg:r=m,accent:i=V,id:a=`patch`}={}){let o=t.hero||{},s=o.term?Bt(o.term):null,c=o.n?o.unit?`${o.n} ${o.unit}`:`×${o.n}`:null;return{id:t.id,label:`The dialogue`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,frame(e,l,u){let{P:d,W:f,H:p}=l;Lt(l);let{items:m,add:h}=Rt(),g=Oe(l,e,r,.04,u.reduced?.04:.09);h(`pat`,g.dim),h(`pat-hot`,g.hot);let _=Ee(e,u,[0]),v=d?48:64,y=p*(d?.08:.1);Wt(h,`sp`,o.who||`AGENTS`,v,y,l,u,e,{fill:r,id:a,scale:d?1.1:1});let b=Q(e,0,u,.08),x=y+p*(d?.2:.3);if(s&&b){let e=d?_t(s,s.length>14?2:1):_t(s,s.length>26?2:1),t=d?q(e,`ax`,f*.86,-.02,210):Math.min(200,q(e,`ax`,f*.86,-.02)),n=d?v:v+(o.who,0);x=y+p*(d?.16:.2)+t*.8,h(`q-p`,e.map((e,r)=>G(n+_,x+r*t*1.04+_*.5,e,{cls:`ax`,size:t,fill:i,ls:-.02})).join(``),J(n,x,b.s),b.op),h(`q`,e.map((e,i)=>G(n,x+i*t*1.04,e,{cls:`ax`,size:t,fill:r,ls:-.02})).join(``),J(n,x,b.s),b.op),x+=(e.length-1)*t*1.04+t*.4}if(c&&b){let t=o.unit?c:`×`+Ht(o.n,e,0,z(3),u),n=d?Math.min(220,K(c,`ax`,f*.8)):Math.min(240,K(c,`ax`,f*.5)),r=x+n*(s?.95:1.6);h(`n`,G(v,r,t,{cls:`ax`,size:n,fill:H,ls:-.02}),J(v,r,b.s*(u.reduced?1:1+.03*Ce(e,z(3),z(3)))),b.op)}return Ut(h,`sub`,t.text,l,u,e,z(4),{fill:r}),zt(m,n,r,De(e,u,[[0,5,12]]))}}}function qt(e,t){let{agent:n,user:r}=t.ledger,i=Math.ceil(n/50),a=Math.ceil(r/50),o=[...Array(i)].map((e,t)=>({col:0,i:t,n:Math.min(50,n-t*50)})).concat([...Array(a)].map((e,t)=>({col:1,i:t,n:Math.min(50,r-t*50)}))),s=e=>z(2)+e*z(.5),c=s(Math.max(0,o.length-1)),l=Math.max(z(4),c+z(1));return{id:`c2`,label:`Apologies`,title:t.text,summary:``,held:[t.text],settle:()=>l+.3,cues:()=>o.map((e,t)=>({name:`ledger-tick`,at:s(t)})),frame(e,u,d){let{P:f,W:h,H:g}=u;Lt(u);let{items:_,add:v}=Rt(),y=g*(f?.06:.08),b=f?40:64,x=h-(f?40:64),S=(b+x)/2,C=f?74:64,w=``;for(let e=y+C*2.6;e<g*.82;e+=C)w+=`M${b} ${e.toFixed(1)}H${x}`;v(`paper`,`<path d="${w}" stroke="${le}" stroke-opacity="0.22" stroke-width="2" fill="none"/>`+X(S-2,y,4,g*.8-y,ue,.5));let T=f?44:38,E=f?Math.min(160,h*.13):Math.min(150,g*.13),D=Q(e,0,d,.06);D&&(v(`h0`,G(b+10,y+T,`AGENTS`,{cls:`monob`,size:T,fill:p,ls:.12})+G(b+10,y+T+E*.95,Ht(n.toLocaleString(`en-US`),e,0,c+z(.5),d),{cls:`ax`,size:E,fill:p,ls:-.02}),J(b,y,D.s),D.op),v(`h1`,G(S+24,y+T,`YOU`,{cls:`monob`,size:T,fill:p,ls:.12})+G(S+24,y+T+E*.95,e>=s(i)||d.reduced?r.toLocaleString(`en-US`):`0`,{cls:`ax`,size:E,fill:V,ls:-.02}),J(S,y,D.s),D.op));let O=(S-b-40)/10,k=Math.min(C*.72,O*1.2),A=Math.max(3,O*.09),j=y+T+E*1.25,M=Math.min(C,(g*.8-j)/Math.max(i,a,1)),N=``,P=``;return o.forEach((t,n)=>{let r=s(n);if(e<r&&!d.reduced)return;let i=d.reduced?t.n:Math.min(t.n,Math.ceil(t.n*I((e-r)/z(.125)))),a=t.col===0?b+16:S+28,o=j+t.i*M+k,c=``;for(let e=0;e<i;e++){let t=Math.floor(e/5),n=e%5,r=a+t*O;if(n<4){let e=r+(n+.6)*O*.17;c+=`M${e.toFixed(1)} ${(o-k).toFixed(1)}V${o.toFixed(1)}`}else c+=`M${(r-O*.02).toFixed(1)} ${(o-k*.25).toFixed(1)}L${(r+O*.84).toFixed(1)} ${(o-k*.8).toFixed(1)}`}t.col===0?N+=c:P+=c}),v(`tally`,`<path d="${N}" stroke="${p}" stroke-width="${A.toFixed(1)}" stroke-linecap="round" fill="none"/><path d="${P}" stroke="${V}" stroke-width="${(A*1.2).toFixed(1)}" stroke-linecap="round" fill="none"/>`),Ut(v,`sub`,t.text,u,d,e,l,{fill:p}),zt(_,m,p,De(e,d,[[0,3,12]]))}}}function Jt(e,t){let n=t.manners;return{id:`c3`,label:`Manners`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,frame(e,r,i){let{P:a,W:o,H:s}=r;Lt(r);let{items:c,add:l}=Rt(),u=Oe(r,e,m,.05,i.reduced?.05:.1);l(`pat`,u.dim),l(`pat-hot`,u.hot);let d=Ee(e,i,[0]),f=a?48:64;Wt(l,`sp`,`YOU`,f,s*(a?.07:.1),r,i,e,{fill:m});let p=a?[s*.36,s*.58]:[s*.44,s*.7];return[[n.pleaseLabel,n.please,0],[n.thanksLabel,n.thanks,z(1)]].forEach(([t,n,r],s)=>{let c=Q(e,r,i,.08);if(!c)return;let u=Bt(t),h=`×`+Ht(n.toLocaleString(`en-US`),e,r,z(3),i),g=a?Math.min(170,K(u,`ax`,o*.6)):Math.min(150,K(u,`ax`,o*.4)),_=p[s],v=a?f:f+W(u,`ax`,g,-.02)+40;l(`q`+s+`p`,G(f+d,_+d*.5,u,{cls:`ax`,size:g,fill:V,ls:-.02}),J(f,_,c.s),c.op),l(`q`+s,G(f,_,u,{cls:`ax`,size:g,fill:m,ls:-.02}),J(f,_,c.s),c.op),l(`n`+s,G(v,a?_+g*1.05:_,h,{cls:`ax`,size:g*(a?.9:1),fill:H,ls:-.02}),J(f,_,c.s),c.op)}),Ut(l,`sub`,t.text,r,i,e,z(4),{fill:m}),zt(c,le,m,De(e,i,[[0,4,12]]))}}}function Yt(e,t){let n=t.jar,r=n.n,i=Math.max(8,Math.min(220,r)),a=[...new Set(n.terms)].slice(0,2),o=7,s=()=>(o=o*1664525+0x3c6ef35f>>>0)/4294967296,c=[...Array(i)].map(()=>[s(),s(),s()]);return{id:`c4`,label:`The swear jar`,title:t.text,summary:``,held:[t.text],settle:()=>z(7)+.3,cues:()=>[{name:`jar-coin`,at:z(4)}],frame(e,n,o){let{P:s,W:l,H:u}=n,d=It(e,o);Lt(n);let{items:f,add:h}=Rt(),g=Oe(n,e,m,.04,o.reduced?.04:.08);h(`pat`,g.dim),h(`pat-hot`,g.hot);let v=s?l*.62:u*.5,y=v*1.15,b=s?(l-v)/2:l*.6,x=s?u*.2:u*.12,S=v*.16,C=v*.12,w=`M${b+S} ${x}H${b+v-S}V${x+S*.9}Q${b+v} ${x+S*1.2} ${b+v} ${x+S*2.2}V${x+y-C}Q${b+v} ${x+y} ${b+v-C} ${x+y}H${b+C}Q${b} ${x+y} ${b} ${x+y-C}V${x+S*2.2}Q${b} ${x+S*1.2} ${b+S} ${x+S*.9}Z`;h(`jar-back`,`<path d="${w}" fill="${m}" opacity="0.08"/>`);let T=o.reduced?1:I(Math.floor(Math.max(0,e-z(1))/z(.25))*z(.25)/z(3)),E=Math.round(i*T),D=Math.max(10,Math.min(v*.07,Math.sqrt(v*y*.55/i)*.48)),O=Math.max(3,Math.floor((v-D*2)/(D*2.05))),k=``;for(let e=0;e<E;e++){let t=Math.floor(e/O),n=e%O,[r,i]=c[e],a=b+D*1.4+n*D*2.05+t%2*D+(r-.5)*D*.4,o=x+y-D*1.2-t*D*1.7+(i-.5)*D*.3;if(o<x+S*2)break;k+=`M${(a+D).toFixed(1)} ${o.toFixed(1)}a${D.toFixed(1)} ${(D*.62).toFixed(1)} 0 1 0 ${(-2*D).toFixed(1)} 0a${D.toFixed(1)} ${(D*.62).toFixed(1)} 0 1 0 ${(2*D).toFixed(1)} 0`}if(h(`coins`,`<path d="${k}" fill="${H}" stroke="#C9A900" stroke-width="3"/>`),!o.reduced&&e>=z(1)&&e<z(4)){let t=(e-z(1))/z(.25)%1;h(`drop`,`<ellipse cx="${(b+v*.5).toFixed(1)}" cy="${(x-D*3+y*.7*t).toFixed(1)}" rx="${D.toFixed(1)}" ry="${(D*.62).toFixed(1)}" fill="${H}"/>`)}h(`jar`,`<path d="${w}" fill="none" stroke="${m}" stroke-width="${(v*.018).toFixed(1)}" stroke-linejoin="round"/>`+X(b+S*.7,x-v*.06,v-S*1.4,v*.07,m));let A=Q(e,z(4),o,.12);if(A){let e=v*.34,t=b+v/2,n=x+y*.42;h(`n-bg`,X(t-e*1.1,n-e*.8,e*2.2,e*.98,p,.85),J(t,n,A.s),A.op),h(`n`,G(t,n,r.toLocaleString(`en-US`),{cls:`ax`,size:e,fill:H,anchor:`middle`,ls:-.02}),J(t,n,A.s),A.op)}if(e>=z(2)||o.reduced){let e=s?64:56;a.forEach((t,n)=>{let r=s?l*(.26+n*.48):l*(.12+n*.2),i=s?u*.13:u*.62;h(`tok`+n,`<rect x="${(r-e*1.6).toFixed(1)}" y="${(i-e*1.05).toFixed(1)}" width="${(e*3.2).toFixed(1)}" height="${(e*1.5).toFixed(1)}" rx="${(e*.75).toFixed(1)}" fill="${H}"/>`+G(r,i,t,{cls:`monob`,size:e,fill:p,anchor:`middle`}),Y(0,o.reduced?0:-6*Math.sin(d*3+n)))})}return Ut(h,`sub`,t.text,n,o,e,z(7),{fill:m,maxW:s?l*.88:l*.5,y:s?null:u*.3}),zt(f,_.green,m,De(e,o,[[z(4),8,10]]))}}}function Xt(e,t){let n=t.reviews,r=I(Math.sqrt(n.userN/n.agentN),.32,1);return{id:`c5`,label:`Mixed reviews`,title:t.text,summary:``,held:[t.text],settle:()=>z(4)+.3,cues:()=>[{name:`review-split`,at:0}],frame(e,i,a){let{P:o,W:s,H:c}=i;Lt(i);let{items:l,add:u}=Rt(),d=Ee(e,a,[0,z(1)]),f=(t,n,r,i,s,c,l,f,p,m,h)=>{let g=Q(e,s,a,.1);if(!g)return 0;let _=_t(Bt(r),Bt(r).length>16?2:1),v=Math.min(150*p*(o?1.15:1),q(_,`ax`,f-80,-.02)),y=o?44:36,b=v*1.25,x=y*2.2+_.length*v*1.05+b*1.1+40,S=X(c+d*.7,l+d*.5,f,x,h===`#16161A`?V:H)+X(c,l,f,x,m);return S+=G(c+40,l+y*1.6,n,{cls:`monob`,size:y,fill:h,ls:.12}),_.forEach((e,t)=>{S+=G(c+40,l+y*2.2+v*.85+t*v*1.05,e,{cls:`ax`,size:v,fill:h,ls:-.02})}),S+=G(c+40,l+y*2.2+_.length*v*1.05+b*.9,`×`+Ht(i.toLocaleString(`en-US`),e,s,z(2),a),{cls:`ax`,size:b,fill:h,ls:-.02}),u(t,S,J(c+f/2,l+x/2,g.s),g.op),x},h=o?40:64;if(o){let e=f(`agents`,`AGENTS`,n.agentTerm,n.agentN,0,h,c*.05,s-h*2,1,m,p);f(`you`,`YOU`,n.userTerm,n.userN,z(1),h+s*.18,c*.05+(e||c*.3)+50,s*.7-h,r,p,m)}else{let e=s*.52,t=s*.34;f(`agents`,`AGENTS`,n.agentTerm,n.agentN,0,h,c*.07,e,1,m,p),f(`you`,`YOU`,n.userTerm,n.userN,z(1),h+e+s*.04,c*.2,t,r,p,m)}return Ut(u,`sub`,t.text,i,a,e,z(4),{fill:p}),zt(l,H,p,De(e,a,[[0,6,12],[z(1),4,12]]))}}}function Zt(e,t){let n=t.clock?.hour||null,r=t.hero||{};return{id:`c6`,label:`Why`,title:t.text,summary:``,held:[t.text],settle:()=>z(7)+.3,cues:()=>n?[{name:`why-clock`,at:z(4)}]:[],frame(e,i,a){let{P:o,W:s,H:c}=i;It(e,a),Lt(i);let{items:l,add:u}=Rt(),d=Oe(i,e,m,.04,a.reduced?.04:.08);u(`pat`,d.dim),u(`pat-hot`,d.hot);let f=o?48:64,p=c*(o?.07:.1);Wt(u,`sp`,`YOU`,f,p,i,a,e,{fill:m});let h=Q(e,0,a,.08),g=r.term?Bt(r.term):null,_=g?`${g} ×${r.n}`:String(r.n),v=Math.min(o?190:170,K(_,`ax`,s*.86,-.02)*(g?1:.77)),y=p+c*(o?.14:.2);if(h&&(g?u(`q`,G(f,y,g,{cls:`ax`,size:v,fill:m,ls:-.02})+G(f+W(g,`ax`,v,-.02)+30,y,`×`+Ht(r.n,e,0,z(3),a),{cls:`ax`,size:v,fill:H,ls:-.02}),J(f,y,h.s),h.op):u(`q`,G(f,y,r.n,{cls:`ax`,size:v*1.3,fill:H,ls:-.02}),J(f,y,h.s),h.op)),n){let t={..._n(i),base:o?c*.56:c*.62},r=Number(n.slice(0,2)),s=a.reduced?r:Math.min(r,Math.floor(Math.max(0,e-z(1))/(z(3)/Math.max(1,r)))),l=e>=z(4)||a.reduced?r:s,d=!a.reduced&&e>=z(4)&&e<z(4)+.4?.06*Math.exp(-(e-z(4))*10):0,f=a.reduced?1:I((e-z(1))/.15);u(`clock`,vn(t,`${String(l).padStart(2,`0`)}:00`,H),J(t.cx,t.base-t.size*.36,1+d),f)}return Ut(u,`sub`,t.text,i,a,e,z(n?7:4),{fill:m}),zt(l,de,m,De(e,a,n?[[z(4),8,10]]:[[0,4,12]]))}}}function Qt(e,t){return t?.playable?t.slides.map(t=>t.id===`c0`?Gt(e,t):t.id===`c1`?Kt(e,t,{ground:p,fg:m,accent:V,id:`patch`}):t.id===`c1b`?Kt(e,t,{ground:H,fg:p,accent:V}):t.id===`c2`?qt(e,t):t.id===`c3`?Jt(e,t):t.id===`c4`?t.jar?Yt(e,t):Kt(e,t,{ground:_.green,fg:m,accent:p}):t.id===`c5`?t.reviews?Xt(e,t):Kt(e,t,{ground:H,fg:p,accent:V}):t.id===`c6`?Zt(e,t):Kt(e,t)):[]}function $t(e){return{id:`phrases`,label:`Your phrases`,title:`Your phrases`,summary:``,held:[`Your phrases`],wait:!0,drawer:!0,settle:()=>.4,until:e=>e.drawerDone?e.drawerDone:null,frame(e,t,n){let{P:r,W:i,H:a}=t,o=It(e,n);Lt(t);let{items:s,add:c}=Rt(),l=Oe(t,e,m,.04,n.reduced?.04:.08);c(`pat`,l.dim),c(`pat-hot`,l.hot);let u=r?i*.13/200:a*.16/300,d=a*.985;return[`grep`,`patch`,`bash`,`todo`,`fork`].forEach((e,t)=>c(`c-`+e,k(e,{x:r?i*(.1+t*.12):i*(.06+t*.05),y:d,s:u,keyline:0,turn:1,flip:t%2==1,expr:`side`,hop:Z(o,n,{from:.4,every:4,off:t*.5,h:8})}))),zt(s,p,m,``,{drawer:!0})}}}var en=()=>`<defs>${D()}</defs>`,tn=(e,t)=>t.reduced?e:pe(e),nn=e=>e.P?e.W/1080:e.H/1080;function rn(e,t){let n=e.split(` `);if(t<=1||n.length<2)return[e];let r=e.length/t,i=[],a=``;for(let e of n)a&&(a+` `+e).length>r*1.08&&i.length<t-1?(i.push(a),a=e):a=a?a+` `+e:e;return i.push(a),i}function an(e,t,n,r=``){return{items:e,ground:t,fg:n,cam:r}}function on(){let e=[];return{items:e,add:(t,n,r,i)=>e.push({k:t,svg:n,tf:r,op:i})}}function sn(e){let[t,n]=e.lines.compact,r={s1:0,s2:z(2),hit:z(6),line:z(9)},i=Ze(e.compactions);return{id:`compact`,label:`Compacted`,title:t,summary:n,held:[t,n],settle:()=>r.line+.3,frame(a,o,s){let{P:c,W:l,H:u}=o,d=tn(a,s),{items:f,add:h}=on(),g=Ee(a,s,[r.hit]),_=Oe(o,a,p);h(`pat`,_.dim),h(`pat-hot`,s.reduced?``:_.hot);let v=c?u*.8:u-40,y=a>=r.hit,b;if(y){let e=!s.reduced&&a<r.hit+.06666666666666667?.3:1,t=s.reduced?1:oe(.8,1,Math.min(1.1,ce(a,r.hit+2*B,{freq:4,zeta:.45}))),n=0,i=a-r.hit-z(8);!s.reduced&&i>=0&&(n=.06*Math.exp(-(i%z(8))*9)),b=e*t*(1-n)}else{let e=[[-9,1],[r.s1,.92],[r.s2,.8]],t=1,n=1,i=-9;for(let[r,a]of e)d>=r&&(t=n,n=a,i=r);b=s.reduced?n:oe(t,n,Math.min(1.1,ce(a,i,{freq:4,zeta:.5})))}let x=y?i:e.yearStr,S=c&&!y,C,w,T;if(S){let e=K(`20`,`ax`,l*.86,-.04),t=e*.72,n=t*b*1.12;w=l*.05,T=W(`20`,`ax`,e,-.04),[x.slice(0,2),x.slice(2)].forEach((t,r)=>{let i=v-(1-r)*n;h(`yr-plate`+r,G(0,0,t,{cls:`ax`,size:e,fill:V,ls:-.04}),ve(Y(w+g,i+g*.5),`scale(1 ${b.toFixed(4)})`)),h(`yr`+r,G(0,0,t,{cls:`ax`,size:e,fill:p,ls:-.04}),ve(Y(w,i),`scale(1 ${b.toFixed(4)})`))}),C=v-n-t*b}else{let e=c?l*(y?.78:.9):l*(y?.5:.8),n=Math.min(K(x,`ax`,e,-.04),u*(c?.22:.42)),i=n*.72;if(w=c?l*.05:64,T=W(x,`ax`,n,-.04),h(`yr-plate`,G(0,0,x,{cls:`ax`,size:n,fill:V,ls:-.04}),ve(Y(w+g,v+g*.5),`scale(1 ${b.toFixed(4)})`)),h(`yr`,G(0,0,x,{cls:`ax`,size:n,fill:p,ls:-.04}),ve(Y(w,v),`scale(1 ${b.toFixed(4)})`)),C=v-i*Math.min(b,1),y){let e=Q(a,r.hit,s,.1),n=c?w:w+T+44,o=c?Math.min(118,K(t,`monob`,l*.86)):Math.min(116,K(t,`monob`,l*.84-n)),u=c?v-i-186-90:v-i*.42;h(`lab`,G(n,u,t,{cls:`monob`,size:o,fill:p}),J(n,u,e.s),e.op)}}if(y){let e=Q(a,r.line,s,.05);if(e){let t=c?rn(n,4):rn(n,2),r=c?q(t,`ax112`,l*.88,-.01,130):q(t,`ax112`,l*.72,-.01,100),i=c?48:64,a=u*.06+r*.8;h(`line`,t.map((e,t)=>G(i,a+t*r*1.1,e,{cls:`ax112`,size:r,fill:p,ls:-.01})).join(``),J(i,a,e.s),e.op)}}else{let e=`Compacting`,t=c?K(e,`ax112`,l*.66,-.03):140,n=c?u*.06+t*.8:u*.07+t*.78,r=s.reduced?10:I(Math.floor((a+.2)/.045),1,10),i=G(64*(c?.75:1),n,e.slice(0,r),{cls:`ax112`,size:t,ls:-.03});if(r===10){let r=Math.floor(Math.max(0,a)/z(1))%3,o=64*(c?.75:1)+W(e,`ax112`,t,-.03)+t*.12;[0,1,2].forEach(e=>{i+=X(o+e*t*.3,n-t*.2,t*.19,t*.2,p,e===r?1:.16)})}h(`hl`,i)}let E=c?.62:.78,D=[`grep`,`patch`,`bash`,`todo`],O={grep:-9,patch:r.s1,todo:r.s2,bash:r.hit},A=[r.s1,r.s2,r.hit];for(let e=1;e<12;e++)A.push(r.hit+e*z(8));let M=(e=90)=>{if(s.reduced)return{};let t={};for(let n of A){let r=Se(d,n,e);(r.hop||r.sx!==1)&&(t=r)}return t};return D.forEach((e,t)=>{let n=O[e];if(a<n-.1&&!(s.reduced&&a>=n)||s.reduced&&a<n)return;let i=!s.reduced&&a<n?-u*(1-I((a-(n-3*B))/(3*B))):0,o=a>=r.line+.3,c={grep:{turn:1,expr:`determined`,crestRot:-10,armL:30,armR:140},patch:{expr:`determined`,armL:70,armR:70},bash:{lean:-12,expr:`triumph`,...i<0?j(`air`):{}},todo:{expr:y?`content`:`thinking`,t:Math.max(0,Math.floor(a*6)),wobble:[0,1,2].map(e=>6*Math.sin((a*3-e*.18)*Math.PI))}}[e],l=o?{...Te(d,s,.025,4,t),hop:Z(d,s,{from:r.line,every:2,off:t*.5,h:14})}:{},f=we(d,s,t*.9)?{expr:`blink`}:{};h(e,k(e,{x:w+T*(.14+t*.24),y:C+6+i,s:E*(e===`patch`?1.1:1),...c,...l,...M(),...f}))}),h(`fork`,k(`fork`,{x:c?l*.91:l*.93,y:u+(c?60:30),s:c?.95:1.05,turn:.6,flip:!0,expr:we(d,s,.3,2.7)?`blink`:`smug`,look:-.4,lookY:-.2,...Te(d,s,.015,8)})),an(f,m,p,De(a,s,[[r.hit,7,12]]))}}}function cn(){let e={hit:0,blink:z(1.5),now:z(4)};return{id:`ourturn`,label:`Our turn`,title:`Our turn.`,summary:`Now we compact your year.`,held:[`Our turn.`,`Now we compact your year.`],settle:()=>e.now+.3,frame(t,n,r){let{P:i,W:a,H:o}=n,s=tn(t,r),c=nn(n),{items:l,add:u}=on();u(`flood`,X(-40,-40,a+80,o+80,V));let d=i?[`Our`,`turn.`]:[`Our turn.`],f=i?K(`turn.`,`ax`,a*.8,-.03):K(`Our turn.`,`ax`,a*.66,-.03),m=Q(t,e.hit,r,.07)||{s:1,op:0},h=o*.07+f*.72;d.forEach((e,t)=>u(`ot`+t,G(a/2,h+t*f*.84,e,{cls:`ax`,size:f,fill:p,anchor:`middle`,ls:-.03}),J(a/2,h-f*.35,m.s),m.op));let g=h+(d.length-1)*f*.84,_=Q(t,e.now,r,.06);if(_){let e=i?K(`Now we compact`,`ax112`,a*.84):K(`Now we compact your year.`,`ax112`,a*.74),t=g+e*1.35;u(`now`,i?G(a/2,t,`Now we compact`,{cls:`ax112`,size:e,fill:p,anchor:`middle`})+G(a/2,t+e*1.08,`your year.`,{cls:`ax112`,size:e,fill:p,anchor:`middle`}):G(a/2,t,`Now we compact your year.`,{cls:`ax112`,size:e,fill:p,anchor:`middle`}),J(a/2,t,_.s),_.op)}let v=`#E0379C`,y=i?{patch:[.84,.62,.62],bash:[.62,.68,.72],todo:[.36,.76,.95],fork:[.84,.94,1.3],grep:[.2,1.12,2.4]}:{patch:[.86,.66,.5],bash:[.74,.72,.62],todo:[.6,.82,.85],fork:[.84,1,1.3],grep:[.16,1.18,3]},b=r.reduced?0:s<0||s<2/12?1:s<4/12?.5:0,x=n=>!r.reduced&&t>=e.blink&&t<e.blink+.03333333333333333?`blinkHalf`:!r.reduced&&t>=e.blink+.03333333333333333&&t<e.blink+.06666666666666667||t>e.now+.5&&we(s,r,n*.83,3.3)?`blink`:`wide`,S=r.reduced?0:60*Math.sin(Math.PI*I(t/z(2))),C=t=>Z(s,r,{from:e.now,every:2,off:t*.5,h:34});return u(`ot-patch`,k(`patch`,{x:a*y.patch[0],y:o*y.patch[1],s:y.patch[2]*c,expr:x(0),turn:b,keyline:5,contact:v,hop:C(0)})),u(`ot-bash`,k(`bash`,{x:a*y.bash[0],y:o*y.bash[1],s:y.bash[2]*c,expr:x(1),turn:b,keyline:5,contact:v,hop:S||C(1)})),u(`ot-todo`,k(`todo`,{x:a*y.todo[0],y:o*y.todo[1],s:y.todo[2]*c,expr:x(2),turn:b,contact:v,cu:!0,hop:C(2)})),u(`ot-fork`,k(`fork`,{x:a*y.fork[0],y:o*y.fork[1],s:y.fork[2]*c,expr:x(3),turn:b,contact:v,cu:!0,...Te(s,r,.012,8)})),u(`ot-grep`,k(`grep`,{x:a*y.grep[0],y:o*y.grep[1],s:y.grep[2]*c,expr:x(4),turn:b,cu:!0,crestRot:-4+(r.reduced?0:5*Math.sin(s*2.2))})),an(l,V,p,De(t,r,[[0,6,12]]))}}}function ln(e){let t={n1:0,n2:z(3),cube:z(5)},n=Ze(e.sessions),r=Ze(e.activeDays),i=e.sessions===1?`session`:`sessions`,[a,o]=e.lines.daysLabel;return{id:`summary`,label:`The scale`,title:`${n} ${i}`,summary:`${r} ${a} ${o}${e.window?` `+e.window+`.`:``}`.replace(`open. `,`open, `),held:[`${n} ${i}`,`${r} ${a} ${o}`,e.window],settle:()=>t.cube+.4,cues:()=>[{name:`stomp`,at:t.n2}],frame(s,c,l){let{P:u,W:d,H:f}=c,h=tn(s,l),{items:g,add:_}=on(),v=Ee(s,l,[t.n1,t.n2]),y=Oe(c,s,p);_(`pat`,y.dim),_(`pat-hot`,l.reduced?``:y.hot);let b=f-(u?60:40),x=n.length>=r.length?n:r,S,C,w,T,E,D,O,A,j,M,N,P;if(u)S=K(x.length<3?`000`:x,`ax`,d*.6,-.04),C=56,w=f*.05+S*.72,W(n,`ax`,S,-.04),E=Math.min(120,K(i,`ax112`,d*.86)),O=[C,w+E*1.3],T=O[1]+S*.3+S*.72,D=Math.min(120,q([a,o],`ax112`,d*.86)),A=[C,T+D*1.3],M=Math.min(66,K(e.window||`x`,`monob`,d*.86)),j=[C,A[1]+D*1.08+M*1.9],N=d*.4,P=d*.5;else{S=Math.min(f*.3,K(x.length<3?`000`:x,`ax`,d*.42,-.04)),C=64,w=f*.06+S*.72,T=w+S*.97;let t=W(n,`ax`,S,-.04),s=W(r,`ax`,S,-.04);E=Math.min(104,K(i,`ax112`,d*.74-(C+t+40))),O=[C+t+40,w];let c=C+s+40;D=Math.min(96,q([a,o],`ax112`,d*.76-c)),M=Math.min(56,K(e.window||`x`,`monob`,d*.76-c)),A=[c,T-S*.72+D*.9],j=[c,A[1]+D*1.08+M*1.9],N=Math.min(f*.3,d*.17),P=d*.82}let ee=(e,t,n,r)=>{if(s<r)return;let i=l.reduced?1:s<r+.03333333333333333?1.2:s<r+.16666666666666666?.82:1,a=l.reduced?I((s-r)/.3):1;_(e+`p`,G(0,0,t,{cls:`ax`,size:S,fill:V,ls:-.04}),ve(Y(C+v*.6,n+0+v*.4),`scale(1 ${i})`),a),_(e,G(0,0,t,{cls:`ax`,size:S,fill:p,ls:-.04}),ve(Y(C,n+0),`scale(1 ${i})`),a)};ee(`n1`,n,w,t.n1),ee(`n2`,r,T,t.n2);let te=Q(s,t.n1+2*B,l,.08);te&&_(`l1`,G(O[0],O[1],i,{cls:`ax112`,size:E,fill:p}),J(O[0],O[1],te.s),te.op);let F=Q(s,t.n2+2*B,l,.08);if(F){let t=G(A[0],A[1],a,{cls:`ax112`,size:D,fill:p})+G(A[0],A[1]+D*1.08,o,{cls:`ax112`,size:D,fill:p});e.window&&(t+=G(j[0],j[1],e.window,{cls:`monob`,size:M,fill:p})),_(`l2`,t,J(A[0],A[1],F.s),F.op)}let re=b-N/2,R=l.reduced?+(s>=t.cube):se(s,t.cube-3*B,t.cube,L.outCubic),ae;if(R<1){let n=N*1.7,r=K(e.yearStr,`ax`,n,-.04),i=r*.72,a=[[-9,.6],[t.n1,.44],[t.n2,.3]],o=.6;for(let[e,t]of a)h>=e&&(o=t);let s=oe(1,N/n,R),c=oe(1,N/(i*o),R),l=`translate(${P.toFixed(1)} ${b.toFixed(1)}) scale(${s.toFixed(4)} ${c.toFixed(4)}) translate(${(-P).toFixed(1)} ${(-b).toFixed(1)})`;R<=.5&&_(`slab-p`,G(P-n/2,0,e.yearStr,{cls:`ax`,size:r,fill:V,ls:-.04}),ve(l,Y(v,b+v*.5),`scale(1 ${o})`)),R<=.5&&_(`slab`,G(P-n/2,0,e.yearStr,{cls:`ax`,size:r,fill:p,ls:-.04}),ve(l,Y(0,b),`scale(1 ${o})`)),ae=b-i*o}else{let i=l.reduced?1:1+.18*(1-ie(s-t.cube,{freq:3.4,zeta:.45}))+(s>t.cube+1?.03*Ce(s,t.cube+1):0),a=``;[e.yearStr,n,r,e.yearStr,n].forEach((e,t)=>{a+=`<g transform="translate(${(-N*.52).toFixed(1)} ${(-N*.5+N*(.2+t*.18)).toFixed(1)}) scale(1 0.22)">${G(0,0,e,{cls:`ax`,size:N*.62,fill:V,ls:-.06,op:.55})}</g>`});let o=ne(0,0,N,{id:`sc`,plate:0,k:1})+`<clipPath id="scs"><rect x="${(-N/2).toFixed(1)}" y="${(-N/2).toFixed(1)}" width="${N.toFixed(1)}" height="${N.toFixed(1)}"/></clipPath><g clip-path="url(#scs)">${a}</g>`;_(`cube-plate`,X(-N/2,-N/2,N,N,V),ve(Y(P+v,re+v*.5),J(0,N/2,i))),_(`cube`,o,ve(Y(P,re),J(0,N/2,i))),ae=b-N*1.06}let ce=u?.62:.75,le=[t.n1,t.n2],H=()=>{if(l.reduced)return{};let e={};for(let t of le){let n=Se(h,t,80);(n.hop||n.sx!==1)&&(e=n)}return e},ue=s>=t.cube+.4,de=e=>ue?{hop:Z(h,l,{from:t.cube+.4,every:2,off:e*.5,h:20}),...we(h,l,e*.7)?{expr:`blink`}:{}}:{},fe=N*1.7,pe=e=>{if(R<1)return{x:P-fe/2+fe*(.12+e*.25),y:ae+4};let t=e<2?-1:1,n=e<2?1-e:0;return e===2?{x:P+N*.05,y:ae}:{x:P+t*(N/2+(u?70:90)+n*(u?120:160)),y:b}};return[`grep`,`patch`,`bash`,`todo`].forEach((e,n)=>{let r=pe(n),i=R>=1&&!l.reduced?Se(h,t.cube+z(1),90):{},a={grep:{turn:1,expr:`squint`,crestRot:-8},patch:{expr:`determined`,armL:70,armR:70},bash:{expr:R>=1?`triumph`:`determined`,lean:-10,armL:R>=1?150:40,armR:R>=1?150:40},todo:{expr:`content`,t:Math.max(0,Math.floor(s*6))}}[e];_(e,k(e,{x:r.x,y:r.y,s:ce*(e===`patch`?1.1:1),keyline:0,...a,...R<1?H():i,...de(n)}))}),an(g,m,p,De(s,l,[[t.n1,6,12],[t.n2,5,12]]))}}}function un(e){let t=e.quiz,n={q:0,drop:z(3),signs:z(4)},r=n.signs+.3,i=e=>e===`skip`?`Fine. We’ll tell you.`:e===`high`?t.highLine:`Higher.`,a=e=>e.at+(e.kind===`skip`?0:z(1)),o=e=>{let{P:n,W:r,H:i}=e,a=Math.min(1e3,t.opts[2].v),o=n?25:50;a<o&&(o=a);let s=Math.ceil(a/o),c=n?40:64,l=r-c*2,u=i*(n?.79:.8),d=i*(n?.17:.15),f=l/o,p=Math.min(d/s,f*1.4),m=n?r*.3/250:i*.26/250,h=n?[.19,.5,.81]:[.4,.63,.86],g=n?K(t.opts[2].label,`monob`,r*.26):Math.min(i*.065,K(t.opts[2].label,`monob`,r*.17));return{N:a,cols:o,rows:s,gx:c,gy:u,cw:f,ch:p,sc:m,X:h,ss:g,gtop:u-4}};return{id:`quiz`,label:`Guess`,wait:!0,title:`How many hours with your agents?`,summary:`Guess: ${t.opts.map((e,t)=>`${t+1}, ${e.aria}`).join(`; `)}. Press 1, 2 or 3, or tap a sign.`,held:[`How many hours with your agents?`,...t.opts.map(e=>e.label)],hintAt:()=>r+1.5,settle:()=>r,reactText:i,verdictAt:a,until(e,t){let n=e.quiz?.reaction;if(!n||n.kind===`low1`)return null;let r=i(n.kind);return a(n)+.3+(2.5+.06*r.length)*(t.reduced?1.5:1)},frame(s,c,l,u){let{P:d,W:f,H:h}=c,g=tn(s,l),{items:_,add:y}=on(),b=o(c),x=u.quiz?.picks||[],S=u.quiz?.reaction||null,C=e=>{let t=x.find(t=>t.i===e);return t&&s>=t.at?t.at:null},w=S?a(S):1e9,T=S&&s>=w?S.kind:null,E=Ee(s,l,[n.q,...x.map(e=>e.at)]),D=0,O=0,A=1e9,M=(e,t)=>l.reduced?t:Math.round(t*I((s-e)/z(1)));for(let n of x){if(s<n.at)continue;let r=t.opts[n.i];r.low?(O=Math.max(O,M(n.at,r.v)),s>=n.at+z(2)&&(D=Math.max(D,r.v))):(O=Math.max(O,M(n.at,Math.min(r.v,b.N))),s>=n.at+z(3)&&(D=Math.max(D,e.hoursR),A=e.hoursR,O=0))}T===`low2`&&!l.reduced?D=Math.max(D,Math.round(oe(D,e.hoursR,L.inQuad(I((s-w)/z(4)))))):T===`low2`&&(D=e.hoursR);let N=Math.floor(Math.max(0,s)/z(1)+1e-6)%b.rows,P=``,ee=``,te=``,F=``,ne=``;for(let e=0;e<b.N;e++){let t=Math.floor(e/b.cols),n=e%b.cols,r=ye(b.gx+n*b.cw,b.gy+t*b.ch,b.cw*.72,b.ch*.72);e>=A?ne+=r:e<D?ee+=r:e<Math.max(D,O)?te+=r:t===N&&!x.length&&!l.reduced?F+=r:P+=r}let re=l.reduced||Math.floor(s/z(1))%2==0;y(`cells`,`<path d="${P}" fill="${m}" opacity="0.09"/>`),y(`cells-scan`,`<path d="${F}" fill="${m}" opacity="0.3"/>`),y(`cells-paper`,`<path d="${ee}" fill="${m}"/>`),y(`cells-pink`,`<path d="${te}" fill="${V}"/>`),y(`cells-hollow`,`<path d="${ne}" fill="none" stroke="${V}" stroke-width="3"/>`,``,re?1:.4);let R=d?48:64,ae=h*(d?.05:.06),se=(e,t,n,r,i=.07)=>{let a=Q(s,r,l,i);if(!a)return;let o=``,c=``;t.forEach((e,t)=>{let r=ae+n*.76+t*n*1.04;o+=G(R,r,e,{cls:`ax`,size:n,fill:V,ls:-.03}),c+=G(R,r,e,{cls:`ax`,size:n,fill:m,ls:-.03})});let u=ae+n*.4;y(e+`p`,o,ve(Y(E,E*.5),J(R,u,a.s)),a.op),y(e,c,J(R,u,a.s),a.op)};if(T){let e=i(T),t=T===`low2`,n=d&&e.length>10?rn(e,2):[e],r=t?d?f*.8:f*.86:T===`low1`?d?f*.7:f*.44:d?f*.86:f*.66;se(`v-`+T,n,q(n,`ax`,r,-.03),w,t?.12:.08)}else{let e=d?[`How many`,`hours with`,`your agents?`]:[`How many hours`,`with your agents?`];se(`q`,e,d?q(e,`ax`,f*.86,-.03):q(e,`ax`,f*.6,-.03),n.q)}let ce=[],le=t.opts.map((e,t)=>({o:e,i:t,x:f*b.X[t]})),de=T===`low2`&&!l.reduced?s-w:0,fe=T===`skip`;for(let{o:e,i:t,x:i}of le){let a=e.who,o=n.drop+t*2*B;if(l.reduced&&s<n.drop)continue;let c={x:i,y:b.gtop,s:b.sc,keyline:6,armL:172,armR:172},u=C(t),_=Z(g,l,{from:r,every:2,off:t*.67,h:22});if(a===`bash`&&(c={...c,expr:`determined`,hop:_}),a===`todo`&&(c={...c,expr:`triumph`,t:Math.max(0,Math.floor(s*6)),hop:_}),a===`fork`&&(c={...c,expr:we(g,l,1.1,2.6)?`blink`:`smug`,hop:_}),u==null?T===`high`?c={...c,look:1,expr:`wide`,hop:0}:T===`low2`&&(c={...c,expr:`wide`,hop:0}):(a===`bash`&&(c={...c,...j(`land`),sx:1.3,sy:.62,expr:`error`,armL:100,armR:100,hop:0}),a===`todo`&&(c={...c,expr:`crushed`,sy:.9,sx:1.06,hop:0}),a===`fork`&&(c={...c,expr:s>=u+z(1)&&s<u+z(1)+.06666666666666667?`blink`:`smug`,lean:-8,hop:Z(g,l,{from:u+z(2),every:1,h:16})})),fe&&(c={...c,armL:20,armR:20,expr:a===`fork`?`side`:`wide`,flip:a===`fork`,turn:+(a===`fork`),hop:0}),!l.reduced&&g<o){let e=I((g-(n.drop-z(1)))/(o-(n.drop-z(1))));c={...c,...j(`air`),hop:h*.9*(1-e)/b.sc}}if(y(`c-`+a,k(a,c)),s<n.signs-.06666666666666667)continue;let x=ke(e.label,b.ss,p,a===`todo`?H:a===`fork`?V:m),w=v[a].height*b.sc*(c.sy||1),E=l.reduced?0:(1-ie(s-n.signs,{freq:4,zeta:.45}))*60,D=1,O=``,A=``;u!=null&&a===`bash`&&(D=l.reduced?.22:oe(1,.22,I((s-u)/(2*B)))),u!=null&&a===`todo`&&(O=`<rect x="${(-x.w/2-10).toFixed(1)}" y="${(-x.h*.6).toFixed(1)}" width="${((x.w+20)*(l.reduced?1:I((s-u)/(2*B)))).toFixed(1)}" height="${(x.h*.16).toFixed(1)}" fill="${ue}"/>`),u!=null&&a===`fork`&&!l.reduced&&(A=`rotate(${(6*Math.sin((s-u)*Math.PI*3)*Math.exp(-(s-u)*1.2)).toFixed(2)})`);let M=(c.hop||0)*b.sc,N=b.gtop-w-6+E-M,P=``;if(de>0&&u==null&&de*4>=.97)continue;if(de>0&&u==null&&(P=ve(Y(de*f*(t-1)*.5,-de*h*.5),`rotate(${(de*400*(t%2?1:-1)).toFixed(1)})`,`scale(${Math.max(.001,1-de*4).toFixed(3)})`)),fe){y(`sign`+t,x.svg,ve(Y(i,N+w*.55),`rotate(-4)`),l.reduced?1:1-.3*I((s-S.at)/.3));continue}y(`sign`+t,x.svg+O,ve(Y(i,N),P,A,`scale(1 ${D.toFixed(3)})`));let ee=s>=r-.1&&!u&&(!S||S.kind===`low1`);if(ee&&ce.push({i:t,x:i-Math.max(x.w,150*b.sc)/2,y:N-x.h,w:Math.max(x.w,150*b.sc),h:b.gtop-(N-x.h)}),!d&&ee){let e=i-x.w/2-b.ss*.55,n=N-x.h*.5,r=b.ss*.42;y(`key`+t,`<circle cx="${e.toFixed(1)}" cy="${n.toFixed(1)}" r="${r.toFixed(1)}" fill="${m}" opacity="0.18"/>`+G(e,n+r*.42,String(t+1),{cls:`monob`,size:Math.max(32,r*1.05),fill:m,anchor:`middle`,ov:`key`+t}))}}if(!x.length&&!S&&s>=r+1.5){let e=u.hintKeys?`Press 1–3`:`Tap a sign`,t=d?52:42,n=d?f/2:f*b.X[1],i=d?h*.47:h*.37,a=l.reduced?0:-8*Ce(s,r+1.5);y(`hint`,G(n,i,e,{cls:`monob`,size:t,fill:H,anchor:`middle`}),Y(0,a),l.reduced?1:I((s-r-1.5)/.3))}if(!d){let e=b.sc*.75,t=T===`low2`||T===`high`;y(`c-grep`,k(`grep`,{x:f*.07,y:b.gtop,s:e,turn:1,keyline:6,expr:t?`wide`:`squint`,look:Math.sin(Math.max(0,s)/z(1)*Math.PI),crestRot:l.reduced?0:6*Math.sin(g*6),hop:Z(g,l,{from:r,every:4,off:1,h:14})})),y(`c-patch`,k(`patch`,{x:f*.2,y:b.gtop,s:e*1.05,keyline:6,expr:t?`wide`:we(g,l,.5)?`blink`:`neutral`,look:1,hop:Z(g,l,{from:r,every:2,off:1.5,h:18})}))}return{...an(_,p,m,De(s,l,S?[[w,6,12]]:[])),hot:ce}}}}function dn(e){let t=e.hoursStr[0]===`9`,n={slam:0,nine:z(2),back:z(t?5:3)};n.days=n.back+z(5);let r=e.lines.daysLine,i=e.days,a=Math.ceil(i/7),o=r?n.days+a*z(.5)+.3:n.back+.3,s=`≈ ${e.hoursStr}`,c=t=>{let{P:n,W:i,H:o}=t,s=F(`≈`,0,0,50).width+4+F(e.hoursStr,0,0,100).width;if(!n){let e=Math.min(o*(r?.44:.56),i*(r?.56:.8)/s*100),t=o*(r?.56:.6),n=Math.min(170,e*.36),c=Math.min(i*.3/7,o*.56/Math.max(1,a));return{size:e,ax:64,base:t,hs:n,hx:64,hy:t+n*1.1,ds:r?Math.min(110,K(r,`ax`,i*.5)):0,dx:64,dy:o*.93,grid:{c,gx0:i*.64,gy0:o*.24}}}let c=Math.min(o*.2,i*.9/s*100),l=i*.05,u=o*.06+140+c*.72,d=Math.min(190,c*.42),f=u+d*1.15,p=r?Math.min(120,K(r,`ax`,i*.88)):0,m=f+o*.04+p,h=Math.min(i*.62/7,(o*.9-(m+o*.04))/Math.max(1,a));return{size:c,ax:l,base:u,hs:d,hx:l,hy:f,ds:p,dx:l,dy:m,grid:{c:h,gx0:(i-7*h)/2+h*.6,gy0:m+o*.04}}};return{id:`reveal`,label:`The hours`,title:`${s} hours`,summary:r||`About ${e.hoursStr} hours.`,held:[`${s} hours`,r||``],settle:()=>o,frame(s,l,u){let{P:d,W:f,H:h}=l,g=tn(s,u),{items:_,add:v}=on(),y=u.reduced?0:s>=0&&s<.03333333333333333?1:s>=.03333333333333333&&s<.06666666666666667?2:0,b=s<(t&&!u.reduced?n.nine:n.back)?`num`:s<n.back?`nine`:`held`,x=y===1?H:y===2?p:le,S=u.reduced?0:Ce(s,z(1));if(!y){let e=Oe(l,s,m,.05,u.reduced?.05:.18);v(`bpat`,e.dim),v(`bpat-hot`,e.hot)}if(b===`num`){let t=y===1?p:y===2?H:V,r=u.reduced?1:s<.06666666666666667?1.16:1+.16*(1-ie(s-2*B,{freq:2.4,zeta:.4})),i=u.reduced?1:1+.07*S,a=u.reduced?12:4+12*(1-Math.exp(-Math.max(0,s)*3))+12*S,o=[],c=``;if(d){let n=f*.62,r=[[e.hoursStr[0],.3,.44,0],[e.hoursStr[1],.42,.65,2/12],[e.hoursStr[2],.18,.86,4/12]],c=``;r.forEach(([e,r,l,d])=>{if(!e)return;let p=u.reduced?0:d;if(s<p&&!y){o.push(null);return}let m=f*r,g=h*l,_=(u.reduced?1:s<p+.06666666666666667?1.16:1+.16*(1-ie(s-p-2*B,{freq:2.4,zeta:.4})))*i,v=F(e,m,g,n,{fill:t});c+=`<g transform="${J(m+n*.3,g-n*.36,_)}">${y?``:F(e,m+a,g+a*.6,n,{fill:H}).svg}${v.svg}</g>`,o.push(v.boxes[0])});let l=n*.42,d=f*.04,p=h*.44-n*.24;c=(y?``:F(`≈`,d+a*.6,p+a*.4,l,{fill:H}).svg)+F(`≈`,d,p,l,{fill:t}).svg+c,v(`num`,c)}else{let n=F(`≈`,0,0,50).width+4+F(e.hoursStr,0,0,100).width,s=Math.min(h*.8,f*.86/n*100),l=F(`≈`,0,0,s*.5).width,u=F(e.hoursStr,0,0,s).width,d=(f-(l+s*.04+u))/2,p=d+l+s*.04,m=h*.5+s*.36,g=F(e.hoursStr,p,m,s,{fill:t});o=g.boxes,c=J(f/2,h/2,r*i);let _=F(`≈`,d,m-s*.2,s*.5,{fill:t});y||v(`num-plate`,F(e.hoursStr,p,m,s,{fill:H}).svg+F(`≈`,d,m-s*.2,s*.5,{fill:H}).svg,ve(c,Y(a,a*.6))),v(`num`,_.svg+g.svg,c)}let l=y?{silhouette:y===1?p:H}:{},m=e=>y?M[e]:{},[_,b,x]=o;if(_){let e=_.bottom-_.top,t=u.reduced?1:ce(g,1/12,{freq:3,zeta:.45});v(`patch`,k(`patch`,{x:_.cx-6,y:_.top+e*.52+80*(1-t),s:d?.44:.46,expr:`wide`,mouth:`o`,armL:150,armR:150,...m(`patch`),...l}),c)}if(b){let e=d?f*.86:b.cx+(b.bottom-b.top)*.3,t=d?h*.6:b.bottom-6,n=u.reduced?84:84*L.outBack(I((g-1/12)/.25));v(`grep`,k(`grep`,{x:e,y:t,s:d?.5:.62,expr:s<.5?`tiny`:`error`,lean:-n,turn:1,flip:d,armL:160,armR:160,keyline:y?0:6,...m(`grep`),...l}),c)}x&&v(`fork`,k(`fork`,{x:x.x0+(x.x1-x.x0)*.42,y:x.top+2,s:.5,expr:`smug`,lean:-8,...m(`fork`),...l}),c);let C=d?1.1:1.55,w=I((g-2*B)/(n.nine-2*B)),T=u.reduced?null:{x:oe(f*1.1,f*.1,L.outCubic(w)),y:h*oe(.35,1,w*w)+40,s:C,...j(w<.4?`launch`:`air`)};T&&!y?v(`bash`,k(`bash`,T)):y&&v(`bash`,k(`bash`,{x:f*.88,y:h*.45,s:C,...M.bash,...l}))}else if(b===`nine`){let t={cx:421.5,cy:467,rx:140.5,ry:81},r=d?f*.42/(t.rx/1e3):h/1080*2600,i=r/1e3,a=1+.16*se(s,n.nine,n.back,L.inOutCubic),o=(1+.18*(1-ie(s-n.nine,{freq:3,zeta:.5}))+.07*S)*a,c=f/2,l=h*(d?.46:.5),u=c-t.cx*i,p=l+t.cy*i,m=22+40*S;v(`nine`,F(e.hoursStr[0],u+m,p+m*.8,r,{fill:H}).svg+F(e.hoursStr[0],u,p,r,{fill:V}).svg,J(c,l,o));let _=t.rx*i,y=t.ry*i,b=Math.floor((g-n.nine)/z(1)+1e-6)%3,x=[{sx:1.12,sy:.86,armL:84,armR:84,expr:`indignant`,crestRot:-22},{sx:1.18,sy:.8,armL:90,armR:78,expr:`indignant`,crestRot:-30,lean:-5,look:.4},{sx:1.08,sy:.9,armL:80,armR:88,expr:`determined`,mouth:`pout`,crestRot:-16,lean:4,look:-.5,lookY:-.3}][Math.max(0,b)];v(`patch9`,`<clipPath id="nine-ctr"><ellipse cx="${c}" cy="${l}" rx="${_.toFixed(1)}" ry="${y.toFixed(1)}"/></clipPath><g clip-path="url(#nine-ctr)"><rect x="${(c-_).toFixed(1)}" y="${(l-y).toFixed(1)}" width="${(_*2).toFixed(1)}" height="${(y*2).toFixed(1)}" fill="${le}"/>${k(`patch`,{x:c+6,y:l+y+6,s:r/2600*2.55,cu:!0,...x})}</g>`,J(c,l,o))}else{let p=c(l),_=u.reduced?1:1+.025*S,y=F(`≈`,0,0,p.size*.5).width,b=p.ax+y+p.size*.04,x=u.reduced?1:xe(s,n.back,.06),C=Ee(s,u,[n.back],14)+4*S,w=F(e.hoursStr,b,p.base,p.size,{fill:V}),T=F(e.hoursStr,b,p.base,p.size,{fill:H}).svg+F(`≈`,p.ax,p.base-p.size*.2,p.size*.5,{fill:H}).svg,E=J(p.ax+w.width/2,p.base-p.size*.36,x*_);v(`num-plate`,T,ve(E,Y(C,C*.6))),v(`num`,F(`≈`,p.ax,p.base-p.size*.2,p.size*.5,{fill:V}).svg+w.svg,E);let D=Q(s,n.back,u,.08);D&&v(`hours`,G(p.hx,p.hy,`hours`,{cls:`ax`,size:p.hs,fill:m,ls:-.02}),J(p.hx,p.hy-p.hs*.35,D.s),D.op);let[O]=w.boxes,A=w.boxes[w.boxes.length-1];if(O&&t){let e=p.size/1e3,t={cx:421.5,cy:467,rx:140.5},r=b+t.cx*e-F(`9`,0,0,p.size).boxes[0].x0*0,i=p.base-t.cy*e,a=u.reduced?0:Math.floor((g-n.back)/z(2)+1e-6)%3,o=[{expr:`indignant`,crestRot:-22,armL:84,armR:84},{expr:`indignant`,crestRot:-30,lean:-5,armL:90,armR:78},{expr:`determined`,mouth:`pout`,crestRot:-16,lean:4,armL:80,armR:88}][Math.max(0,a)];v(`patch`,k(`patch`,{x:r+2,y:i+t.rx*e*.52,s:t.rx*e*1.6/192,...o}),E)}if(A&&v(`fork`,k(`fork`,{x:A.x0+(A.x1-A.x0)*.45,y:A.top+2,s:(d?.42:.5)*(p.size/450),expr:we(g,u,.4,2.8)?`blink`:`smug`,lean:-8,hop:Z(g,u,{from:n.back+1,every:4,h:18})}),E),r){let e=Q(s,n.days,u,.06);e&&v(`d-line`,G(p.dx,p.dy,r,{cls:`ax`,size:p.ds,fill:m}),J(p.dx,p.dy,e.s*(u.reduced?1:1+.02*S)),e.op);let t=p.grid,c=z(.5);if(s>=n.days-.06666666666666667){let e=u.reduced?a:Math.min(a,Math.floor((s-n.days)/c+1e-6)+1),r=u.reduced?7:Math.min(7,Math.floor((s-n.days)%c/B)+1),p=u.reduced||s-n.days>=a*c?i:s<n.days?0:Math.min(i,(e-1)*7+r),_=``,y=``;for(let e=0;e<i;e++){let n=ye(t.gx0+e%7*t.c,t.gy0+Math.floor(e/7)*t.c,t.c*.82,t.c*.82);e<p?_+=n:y+=n}let b=u.reduced?1:1+.03*S+(s>=n.days&&s<n.days+.4?.1*Math.exp(-(s-n.days)*10):0);v(`d-cells`,`<path d="${y}" fill="${m}" opacity="0.18"/><path d="${_}" fill="${H}"/>`,J(t.gx0+3.5*t.c,t.gy0+a*t.c/2,b));let x=p>=i,C=nn(l),w=t.gy0+(Math.min(e,a)-1)*t.c+t.c*.82,T=u.reduced?0:(s-n.days)%c/c;if(!d)v(`grep`,k(`grep`,{keyline:5,x:t.gx0-t.c*.62,y:x?t.gy0+a*t.c:w,s:.56*C,expr:x?we(g,u,.2)?`blink`:`happy`:`squint`,turn:1,look:x?Math.sin(s*1.7):-1+2*T,hop:x?Z(g,u,{from:o,every:2,off:1,h:20}):0})),v(`todo`,k(`todo`,{x:f*.87,y:h*.99,s:.86*C,expr:x?`triumph`:`determined`,armR:Math.floor((s-n.days)/c)%2?160:40,hop:x?Z(g,u,{from:o,every:2,h:30}):u.reduced?0:50*Math.sin(Math.PI*I((s-n.days)%c/c)),cu:!0}));else{let e=t.gy0+a*t.c;v(`todo`,k(`todo`,{x:f*.84,y:Math.min(h-10,e+165.2*C+30),s:.7*C,expr:x?`triumph`:`determined`,armR:Math.floor((s-n.days)/c)%2?160:40,hop:x?Z(g,u,{from:o,every:2,h:30}):0})),v(`grep`,k(`grep`,{keyline:5,x:f*.22,y:Math.min(h-10,e+186*C+30),s:.62*C,expr:x?`happy`:`squint`,turn:1,look:1,hop:x?Z(g,u,{from:o,every:2,off:1,h:20}):0}))}}}}return{...an(_,!y&&!u.reduced&&S>0&&b!==`held`?be(le,`#FFFFFF`,.11*S):x,y===1?p:m,De(s,u,[[0,30,6],[n.back,5,12]])),impact:y}}}}function fn(e){let t={field:0,six:0,bash:z(2),close:z(3)};Math.max(0,1e3-e.hoursR);let n=e.lines.gap;return{id:`soclose`,label:`So close`,title:n,summary:`So close.`,held:[n,`So close.`],settle:()=>t.close+.3,cues:()=>[{name:`soclose`,at:t.close}],frame(r,i,a){let{P:o,W:s,H:c}=i,l=tn(r,a),{items:u,add:d}=on(),f=Oe(i,r,m,.04,a.reduced?.04:.09);d(`bpat`,f.dim),d(`bpat-hot`,f.hot);let p=o?n.includes(` of `)?[n.split(` of `)[0]+` of`,n.split(` of `)[1]]:rn(n,2):[n],h=o?q(p,`ax`,s*.88,0,170):Math.min(130,K(n,`ax`,s*.74)),g=o?48:64,_=c*.04+h*.8,v=Q(r,t.six,a,.12);v&&d(`f-line`,p.map((e,t)=>G(g,_+t*h*1.08,e,{cls:`ax`,size:h,fill:m})).join(``),J(g,_,v.s),v.op);let y=_+(p.length-1)*h*1.08,b=o?25:50,x=1e3/b,S=o?40:64,C=s-S*2,w=y+c*(o?.04:.06),T=c*(o?.36:.34),E=C/b,D=T/x,O=a.reduced?e.hoursR:Math.round(e.hoursR*L.outCubic(I(Math.floor(Math.max(0,r)/z(.25))*z(.25)/z(1.5)))),A=``,M=``;for(let t=0;t<1e3;t++){let n=Math.floor(t/b),r=ye(S+t%b*E,w+n*D,E*.78,D*.78);t<O?A+=r:t>=e.hoursR&&(M+=r)}let N=a.reduced||r<t.six||Math.floor((r-t.six)/z(1))%2==0;d(`f-cells`,`<path d="${A}" fill="${V}"/>`),e.precise?d(`f-empty`,`<path d="${M}" fill="none" stroke="${m}" stroke-width="4"/>`,``,N?1:.35):d(`f-empty`,`<path d="${M}" fill="${m}" opacity="0.14"/>`);let P=o?s*.56/206:c*.42/190,ee=s*(o?.3:.2),te=c*1.02;if((r>=t.bash-.06666666666666667||a.reduced)&&!(a.reduced&&r<t.bash)){let e=a.reduced?0:(1-ie(r-t.bash+2*B,{freq:2.6,zeta:.6}))*c*.4,n=a.reduced?!0:l>=t.close,i=!a.reduced&&r>t.close+1.5&&Math.floor((l-t.close)/z(8))%2==1,o={x:ee,y:te+Math.max(0,e),s:P,...j(n&&!i?`soClose2`:`soClose`),droop:n?6:3,point:0,armL:0,armR:0,turn:.2,cu:!0,look:.5,lookY:-.2,...Te(l,a,.012,8)};we(l,a,.6,3.4)&&(o={...o,expr:`blink`}),d(`bash`,Ae(k(`bash`,o)))}let F=Q(r,t.close,a,.06);if(F){let e=o?K(`So close.`,`ax`,s*.82):Math.min(220,K(`So close.`,`ax`,s*.5)),t=o?48:s*.44,n=o?c*.715:c*.92;d(`c-line`,G(t,n,`So close.`,{cls:`ax`,size:e,fill:m,ls:-.02}),J(t,n-e*.35,F.s),F.op)}return an(u,le,m,De(r,a,[[t.close,4,12]]))}}}var pn=e=>{let[t,n]=e.split(`:`).map(Number);return t*60+n},mn={lights:z(1),stage:z(2),header:z(2),run:z(4),hours:[z(8),z(10),z(12),z(14),z(16),z(18)],shutter:z(20),more:z(24)};function hn(e,t){let n=pn(e.night.start),r=e.night.minutes,i=(60-n%60)%60||60,a=[0,1,2,3,4,5].map(e=>i+60*e).filter(e=>e<r);return{total:r,knots:[[t.run,0],...a.map((e,n)=>[t.hours[n],e]),[t.shutter-.1,r-1],[t.shutter,r]],hits:a.map((e,n)=>t.hours[n])}}function gn(e,t){let n=t.knots;if(e<=n[0][0])return 0;for(let t=1;t<n.length;t++)if(e<n[t][0]){let[r,i]=n[t-1],[a,o]=n[t];return i+(o-i)*L.inOutCubic((e-r)/(a-r))}return t.total}function _n(e){let{P:t,W:n,H:r}=e,i=t?n*.25:r*.27,a=t?r*.34:r*.46,o=i*.78,s=i*.3,c=.736*i;return{cx:n/2,size:i,base:a,cell:o,colW:s,capH:c,total4:o*4+s}}function vn(e,t,n,{hourSquash:r=1,minuteStretch:i=0,colonOn:a=!0}={}){let o=e.cx-e.total4/2,s=``,c=(t,r,i=1)=>{let a=F(t,0,0,e.size).width,o=F(t,r+(e.cell-a)/2,e.base,e.size,{fill:n}).svg;return i===1?o:`<g transform="translate(0 ${(e.base-e.capH/2).toFixed(1)}) scale(1 ${i}) translate(0 ${(-(e.base-e.capH/2)).toFixed(1)})">${o}</g>`},l=t.replace(`:`,``);for(let t=0;t<4;t++){if(t===2){let t=o+e.colW/2,r=e.size*.1,i=e.size*.155;a&&(s+=X(t-r/2,e.base-e.capH*.78,r,i,n)+X(t-r/2,e.base-e.capH*.36,r,i,n)),o+=e.colW}s+=c(l[t],o,t<2?r:i&&t>=2?i:1),o+=e.cell}return s}var yn=[`todo`,`patch`,`grep`,`bash`],bn=`#121436`,xn=`#353B86`,Sn=(e,t,n)=>Math.atan2(n.y-t,n.x-e)*180/Math.PI;function Cn(e){let t=1e3-e.hoursR,n=e.lines.more,r=e=>e.sched||mn,i=e=>String(e).padStart(2,`0`);return{id:`night`,label:`The longest night`,title:e.lines.night,summary:`${e.nightHeader.replace(`→`,`to`)}. ${e.night.start} to ${e.night.end}.${n?` `+n.join(` `):``}`,held:[n?n.join(` `):`${e.lines.night} ${e.nightHeader}`,e.night.end],settle:e=>n?r(e).more+.3:r(e).shutter+.5,cues:e=>[{name:`shutter`,at:r(e).shutter}],frame(a,o,s,c){let l=r(c),{P:u,W:d,H:f}=o,h=tn(a,s),g=nn(o),{items:_,add:y}=on(),b=hn(e,l),x=d*(u?.93:.95);if(a<l.lights){let e=s.reduced?1:se(a,-z(.4),0,L.inCubic),t=(f-239.4*g-40)*I((a+.3)/(3*B))+80*e;return y(`cord`,`<rect x="${(x-3).toFixed(1)}" y="-10" width="6" height="${(t+10).toFixed(1)}" fill="${m}"/><circle cx="${x}" cy="${(t+14).toFixed(1)}" r="16" fill="${m}"/>`),y(`fork-cord`,k(`fork`,{x:x-30*g,y:t+20+239.4*g,s:.9*g,expr:e>0?`determined`:`smug`,armL:175,armR:10,flip:!0,sy:1-.12*e,sx:1+.08*e})),an(_,be(le,de,.5),m)}if(a<l.stage){let e=f*(u?.3:.42)/190;y(`bash`,Ae(k(`bash`,{x:d*(u?.3:.2),y:f*1.02,s:u?d*.56/206:e,...j(`soClose2`),droop:6,point:0,armL:0,armR:0,turn:.2,silhouette:`#15183F`})));let t=s.reduced?0:10*Math.sin((a-l.lights)*18)*Math.exp(-(a-l.lights)*4);return y(`cord`,`<rect x="${(x-3).toFixed(1)}" y="-10" width="6" height="${(f-239.4*g+60).toFixed(1)}" fill="${m}" opacity="0.5"/>`,`rotate(${t.toFixed(2)} ${x} 0)`),an(_,fe,H)}let S=n?l.more:l.shutter,C=s.reduced?0:a<S+.5?oe(u?24:50,u?-24:-50,se(a,l.stage,S+.5,L.inOutCubic)):(u?-24:-50)+(u?10:18)*Math.sin((a-S-.5)*.5),w=e=>Y(C*e,0),T=_n(o),E={x:T.cx,y:T.base-T.size*.36},D=gn(a,b),O=b.hits.filter(e=>h>=e).length,A=a>=l.shutter;{let e=s.reduced||!A?1:1+.015*Math.sin(a*2),t=(u?d*.5:d*.42)*(1-.06*O)*e,n=(u?f*.16:f*.24)*(1-.06*O)*e,r=d/2,i=u?f*.74:f*.82,o=u?30:34,c=``;for(let e=i-n;e<=i+n;e+=o*.6)for(let a=r-t;a<=r+t;a+=o){let s=((a-r)/t)**2+((e-i)/n)**2;if(s>1)continue;let l=(1-s)*o*.24;l>.8&&(c+=`M${(a+l).toFixed(1)} ${e.toFixed(1)}a${l.toFixed(1)} ${l.toFixed(1)} 0 1 0 ${(-2*l).toFixed(1)} 0a${l.toFixed(1)} ${l.toFixed(1)} 0 1 0 ${(2*l).toFixed(1)} 0`)}y(`pool`,`<path d="${c}" fill="${H}"/>`,w(.6),s.reduced?1:I((a-l.stage)/.12))}let M=u?{grep:[.2,.66,.95],patch:[.8,.66,.95],todo:[.16,.9,1.3],bash:[.82,.92,1.35],fork:[.5,.8,1.15]}:{grep:[.3,.76,.95],patch:[.72,.76,.95],todo:[.1,1,1.35],bash:[.9,1,1.4],fork:[.5,.94,1.1]},ee=A&&a<l.shutter+.5,te=Object.keys(M).sort((e,t)=>M[e][1]-M[t][1]);for(let e of te){let[t,n,r]=M[e],i={x:d*t,y:f*n,s:r*g,cam:`high`,flip:t>.5},o=Sn(i.x,i.y-v[e].height*i.s*.5,E);if(e===`fork`){let e={...P[+(h>=l.hours[5])],acc:[`baton`],armR:ee?160:130-(s.reduced||A?0:20*Ce(a,l.run,l.shutter)),armL:30,turn:.5,colorway:{color:p,shade:`#2C2C36`,eye:H}};ee?e={...e,expr:`snap`}:A&&we(h,s,.3,2.9)&&(e={...e,expr:`blink`}),y(`c-fork`,k(`fork`,{...i,contact:bn,...e,lit:{angle:o,k:e.litK??.8,shadow:`#0A0A12`}}),w(1));continue}let c=yn.indexOf(e),u=b.hits[c]??99,_=s.reduced?a>=u?3:0:h>=u?Math.min(3,1+Math.floor((h-u)*12+1e-6)):0;A&&(_=3);let x=N[e][_],S=A&&!ee?Te(h,s,.02,8,c):{},C;C=ee?k(e,{...i,...x,expr:`snap`,mouth:``,lookY:-.2,lit:{angle:o,k:0},eyeColor:m,contact:bn}):k(e,{...i,...x,...S,t:Math.max(0,Math.floor(a*6)),lit:{angle:o,k:x.litK},eyeColor:x.litK===0?xn:void 0,contact:bn}),y(`c-`+e,C,w(e===`bash`||e===`todo`?1.5:1))}{let t=!s.reduced&&a>=l.shutter&&a<l.shutter+.06666666666666667,n=t?de:H,r=pn(e.night.start),o=r+D,c=Math.floor(o/60)%24,u=Math.min(59,Math.floor(o-Math.floor(o/60)*60+1e-6)),d=(gn(a+B,b)-D)*30,f=b.hits.find(e=>a>=e&&a<e+.06666666666666667),p=!s.reduced&&d>40&&a>=l.run&&a<l.shutter-.1;if(p){let e=r+gn(Math.floor(a/z(.5)+1e-6)*z(.5),b);u=Math.floor(e-Math.floor(e/60)*60)}A&&(c=pn(e.night.end)/60|0,u=pn(e.night.end)%60);let m=t?X(T.cx-T.total4*.62,T.base-T.capH*1.35,T.total4*1.24,T.capH*1.7,H):``;m+=vn(T,`${i(c)}:${i(u)}`,n,{hourSquash:f&&!s.reduced?.72:1,minuteStretch:p?1.25:0,colonOn:!0});let h=0;for(let e of b.hits)a>=e&&a<e+.3&&(h=.1*Math.exp(-(a-e)*12));a>=l.shutter&&(h=.05*(1-ie(a-l.shutter,{freq:4,zeta:.5})));let g=s.reduced?1:I((a-l.stage)/.12);y(`clock`,m,ve(w(.35),J(T.cx,T.base-T.size*.36,1+(s.reduced?0:h))),g)}if(e.oneMoreNight){let e=u?96:76,r=t*e+(t-1)*14,i=T.cx-r/2,o=T.base+T.size*.3,c=a>=(n?l.more:l.shutter),d=A?t:Math.min(t,O),f=(e,t,n)=>{let r=``;for(let i=1;i<=4;i++){let a=n*i/5;r+=`M${(e+a).toFixed(1)} ${t.toFixed(1)}L${e.toFixed(1)} ${(t+a).toFixed(1)}M${(e+n).toFixed(1)} ${(t+a).toFixed(1)}L${(e+a).toFixed(1)} ${(t+n).toFixed(1)}`}return`<path d="${r}" stroke="${H}" stroke-width="${(n*.07).toFixed(1)}" fill="none"/>`},p=``;for(let n=0;n<t;n++){let t=i+n*(e+14),r=b.hits[Math.min(n,b.hits.length-1)],l=!s.reduced&&n===d-1&&!A&&a-r<.4?1+.3*Math.exp(-(a-r)*10):1,u=n<d?c?f(t,o,e):X(t,o,e,e,H):``;p+=`<g transform="${J(t+e/2,o+e/2,l)||`translate(0 0)`}">${u}<rect x="${t.toFixed(1)}" y="${o.toFixed(1)}" width="${e.toFixed(1)}" height="${e.toFixed(1)}" fill="none" stroke="${n<d?H:m}" stroke-width="5"${c?` stroke-dasharray="${(e*.18).toFixed(1)} ${(e*.1).toFixed(1)}"`:``}/></g>`}y(`six`,p,w(.35),s.reduced?1:I((a-l.stage)/.12))}let F=u?48:64,ne=u?f*.06+40:f*.05+60,re=u?K(`Your longest night.`,`ax112`,d-96):76,R=u?44:40;if(!n||a<l.more){let t=Q(a,l.header,s,.05);t&&y(`w1`,G(F,ne+re*.4,e.lines.night,{cls:`ax112`,size:re,fill:m})+(e.nightHeader?G(F,ne+re*1+R*1.3,e.nightHeader,{cls:`monob`,size:R,fill:m}):``),J(F,ne,t.s),t.op)}else{let e=u?q(n,`ax112`,d-96):K(n[0],`ax112`,d*.5),t=Q(a,l.more,s,.05);y(`w2`,G(F,ne+e*.4,n[0],{cls:`ax112`,size:e,fill:m})+G(F,ne+e*1.5,n[1],{cls:`ax112`,size:e,fill:H}),J(F,ne,t.s),t.op)}return an(_,de,m,De(a,s,[[l.shutter,10,10],[l.stage,4,12]]))}}}function wn(e,t){let{P:n,W:r,H:i}=e,a=t.lines.talk,[o,s]=a.includes(` about `)?[a.split(` about `)[0]+` about`,a.split(` about `)[1]]:[a.replace(/\.$/,``),null];if(n){let e=s?[[`We need`,m],[`to talk about`,m],[s,H]]:[[`We need`,m],[`to talk.`,H]],t=K(s?`to talk about`:`We need`,`ax`,r*.86),n=i*.44,a=e.map(([e,r],i)=>[e,48,n+t*(i===2?2.2:i*1.05),r]),o=a[a.length-1];return{ls:t,lines:a,last:[o[1],o[2],o[0]],eyes:[r*.5,i*.14+r/1080*900,r/1080*12],hanko:[r*.68,i*.75,r*.42],mark:[48,i-70,44]}}let c=K(`We need to talk`,`ax`,r*.66),l=r*.06,u=i*.42;if(!s)return{ls:c,lines:[[`We need`,l,u,m],[`to talk.`,l,u+c*1.02,H]],last:[l,u+c*1.02,`to talk.`],eyes:[r*.84,i*.2+i/1080*600,i/1080*8],hanko:[r*.8,i*.7,i*.3],mark:[l,i-54,36]};let d=W(`about `,`ax`,c)+c*.1;return{ls:c,lines:[[`We need to talk`,l,u,m],[`about`,l,u+c*1.02,m],[s,l+d,u+c*1.02,H]],last:[l+d,u+c*1.02,s],eyes:[r*.84,i*.2+i/1080*600,i/1080*8],hanko:[r*.8,i*.7,i*.3],mark:[l,i-54,36]}}function Tn(e,t){let n=wn(e,t),[r,i,a]=n.last,o=n.ls*.42,s=n.ls*.74;return{x:r+W(a,`ax`,n.ls)+n.ls*.12,y:i,w:o,h:s}}function En(e){let t={shut:0,collapse:z(1.5),stamp:z(3),mark:z(7)},n=`coauthored · npx coauthored`;return{id:`talk`,label:`We need to talk`,title:e.lines.talk,summary:n,held:[e.lines.talk,n],settle:()=>t.mark+.3,cues:()=>[{name:`stinger`,at:t.stamp}],frame(r,i,a){let{W:o,H:s}=i,c=tn(r,a),{items:l,add:u}=on(),d=wn(i,e),f=Tn(i,e);if(r<t.stamp){if(e.night&&!a.reduced){let n=_n(i),a=L.inCubic(I((r-t.collapse)/(t.stamp-t.collapse))),o=oe(1,f.w/n.total4,a),s=oe(1,f.h/n.capH,a),l=oe(n.cx,f.x+f.w/2,a),p=oe(n.base-n.capH/2,f.y-f.h/2,a),m=r>=0&&r<.4?.06*Math.exp(-r*10):0,h=r>=0&&r<.06666666666666667;u(`clock`,(h?X(n.cx-n.total4*.62,n.base-n.capH*1.35,n.total4*1.24,n.capH*1.7,H):``)+(a>.6?X(n.cx-n.total4/2,n.base-n.capH,n.total4,n.capH,be(H,V,(a-.6)/.4)):vn(n,e.night.end,h?fe:H)),`translate(${l.toFixed(1)} ${p.toFixed(1)}) scale(${(o*(1+m)).toFixed(4)} ${(s*(1+m)).toFixed(4)}) translate(${(-n.cx).toFixed(1)} ${(-(n.base-n.capH/2)).toFixed(1)})`),u(`fork-eyes`,k(`fork`,{x:d.eyes[0],y:d.eyes[1],s:d.eyes[2],...ee[Math.min(3,Math.max(0,Math.floor(c/z(.75))))],sit:!0,eyesOnly:!0,eyeColor:H}),``,I((r-t.collapse)/z(1.5)))}if(!(a.reduced&&r>=0))return an(l,fe,m,De(r,a,[[0,6,12]]))}let p=r-t.stamp,h=a.reduced?I(r/.3):1;u(`talk`,d.lines.map(([e,t,n,r])=>G(t,n,e,{cls:`ax`,size:d.ls,fill:r})).join(``),``,h);let g=a.reduced||Math.floor(Math.max(0,p)/z(1)+1e-6)%2==0;u(`cursor`,`<rect x="${f.x.toFixed(1)}" y="${(f.y-f.h).toFixed(1)}" width="${f.w.toFixed(1)}" height="${f.h.toFixed(1)}" fill="${V}"/>`,``,g?h:0);let _=!a.reduced&&(p>=0&&p<.06666666666666667||p>=z(4)&&p<z(4)+.06666666666666667||p>2&&p%z(8)<.06666666666666667||p>2&&(p+z(2))%z(16)<.06666666666666667);u(`fork-eyes`,k(`fork`,{x:d.eyes[0],y:d.eyes[1],s:d.eyes[2],...ee[3],sit:!0,eyesOnly:!0,eyeColor:H,look:a.reduced?0:.25*Math.sin(c*.9),..._?{expr:`blink`}:{}}),``,h);let v=d.hanko[2],y=a.reduced?1:1+.5*(1-ie(Math.max(0,p),{freq:4,zeta:.55}));u(`hanko`,`<rect x="${(-v/2).toFixed(1)}" y="${(-v/2).toFixed(1)}" width="${v.toFixed(1)}" height="${v.toFixed(1)}" rx="${(v*.08).toFixed(1)}" fill="${ue}"/><rect x="${(-v*.42).toFixed(1)}" y="${(-v*.42).toFixed(1)}" width="${(v*.84).toFixed(1)}" height="${(v*.84).toFixed(1)}" fill="none" stroke="${fe}" stroke-width="${(v*.03).toFixed(1)}"/>`+[[`話`,-.19,-.04],[`が`,.19,-.04],[`あ`,-.19,.34],[`る`,.19,.34]].map(([e,t,n])=>`<text class="dela" x="${(t*v).toFixed(1)}" y="${(n*v).toFixed(1)}" font-size="${(v*.32).toFixed(1)}" fill="${fe}" text-anchor="middle" lang="ja" data-ov="hanko">${e}</text>`).join(``),`translate(${d.hanko[0].toFixed(1)} ${d.hanko[1].toFixed(1)}) rotate(-8) scale(${y.toFixed(3)})`,h);let b=Q(r,t.mark,a,.04);return b&&u(`mark`,G(d.mark[0],d.mark[1],n,{cls:`monob`,size:d.mark[2],fill:m,op:.85}),``,b.op),an(l,fe,m,De(r,a,[[t.stamp,8,12]]))}}}function Dn(e){let t=[];e.lines.compact&&t.push(sn(e)),t.push(cn(e)),e.sessions>0&&e.activeDays>0&&t.push(ln(e)),e.harness&&t.push(Et(e)),e.quiz&&t.push(un(e)),e.hoursR>0&&t.push(dn(e)),e.lines.gap&&t.push(fn(e)),e.crew&&t.push(Dt(e)),e.orchestra&&t.push(Ot(e)),e.pilot&&t.push(kt(e)),e.bounce&&t.push(At(e));let n=Qt(e,e.act);return n.length&&e.drawer&&t.push($t(e)),t.push(...n),e.mainevent&&t.push(jt(e)),e.nightshift&&t.push(Mt(e)),e.night&&t.push(Cn(e)),t.push(En(e)),e.identity&&t.push(Nt(e)),t.push(Ft(e)),t}var On=(e,t)=>{let n=2+.045*e.held.filter(Boolean).join(` `).length;return t.reduced?Math.min(10,n*1.5):Math.min(7,n)},kn=`http://www.w3.org/2000/svg`;function An(e){let t=new Map,n={html:0,attr:0};return{stats:()=>n,commit(r){n={html:0,attr:0};let i=null,a=new Set;for(let o of r){let r=t.get(o.k);r||(r={el:document.createElementNS(kn,`g`),svg:null,tf:null,op:null},t.set(o.k,r)),r.svg!==o.svg&&(r.el.innerHTML=o.svg,r.svg=o.svg,n.html++);let s=o.tf||``;r.tf!==s&&(s?r.el.setAttribute(`transform`,s):r.el.removeAttribute(`transform`),r.tf=s,n.attr++);let c=o.op??1;r.op!==c&&(c<1?r.el.setAttribute(`opacity`,c.toFixed(3)):r.el.removeAttribute(`opacity`),r.op=c,n.attr++);let l=i?i.nextSibling:e.firstChild;r.el!==l&&e.insertBefore(r.el,l),i=r.el,a.add(o.k)}for(let[e,n]of t)a.has(e)||(n.el.remove(),t.delete(e))}}}function jn(e){if(e.state!==`running`)return e.currentTime-(e.outputLatency||0);let t=e.getOutputTimestamp?.();return t&&t.contextTime>0?t.contextTime+Math.min(.1,(performance.now()-t.performanceTime)/1e3):e.currentTime-(e.outputLatency||0)-(e.baseLatency||0)}function Mn(e,{float:t=!1}={}){let n=e.numberOfChannels,r=e.length,i=e.sampleRate,a=t?4:2,o=new DataView(new ArrayBuffer(44+r*n*a)),s=(e,t)=>[...t].forEach((t,n)=>o.setUint8(e+n,t.charCodeAt(0)));s(0,`RIFF`),o.setUint32(4,36+r*n*a,!0),s(8,`WAVE`),s(12,`fmt `),o.setUint32(16,16,!0),o.setUint16(20,t?3:1,!0),o.setUint16(22,n,!0),o.setUint32(24,i,!0),o.setUint32(28,i*n*a,!0),o.setUint16(32,n*a,!0),o.setUint16(34,a*8,!0),s(36,`data`),o.setUint32(40,r*n*a,!0);let c=[...Array(n)].map((t,n)=>e.getChannelData(n)),l=44;if(t)for(let e=0;e<r;e++)for(let t=0;t<n;t++)o.setFloat32(l,c[t][e],!0),l+=4;else for(let e=0;e<r;e++)for(let t=0;t<n;t++){let n=Math.max(-1,Math.min(1,c[t][e]));o.setInt16(l,n<0?n*32768:n*32767,!0),l+=2}return new Uint8Array(o.buffer)}var Nn=`/assets/chorus-bass-CBTKpMv_.ogg`,Pn=`/assets/chorus-drums-BOzgLSoq.ogg`,Fn=`/assets/chorus-harmony-DnJYs_tp.ogg`,In=`/assets/chorus-lead-CFpg5DC1.ogg`,Ln=`/assets/chorus-D7bfON5Z.ogg`,Rn=`/assets/groove-ln-zQmTb.ogg`,zn=`/assets/intro-DeRh6kUx.ogg`,Bn=`/assets/night-B_bMOZcf.ogg`,Vn=`/assets/tension-BHvWG5ru.ogg`,Hn=`/assets/groove-bass-BFNelLKi.ogg`,Un=`/assets/groove-drums-BY1SBntR.ogg`,Wn=`/assets/groove-harmony-C0CrBzu3.ogg`,Gn=`/assets/groove-lead-CEYPzm5U.ogg`,Kn=`/assets/intro-bass-D63IPU0H.ogg`,qn=`/assets/intro-drums-Dt9QO534.ogg`,Jn=`/assets/intro-harmony-DBsMG9jJ.ogg`,Yn=`/assets/intro-lead-DWcWS1ia.ogg`,Xn=`/assets/night-bass-B-7Ay9ME.ogg`,Zn=`/assets/night-drums-zEtqWXX3.ogg`,Qn=`/assets/night-harmony-C5Ix2yce.ogg`,$n=`/assets/night-lead-B7KMlRyj.ogg`,er=`/assets/dialogue-card-A5zmbNhu.ogg`,tr=`/assets/guess-high-CL6mF18x.ogg`,nr=`/assets/guess-low-C3UnKayZ.ogg`,rr=`/assets/higher-BevsMIWl.ogg`,ir=`/assets/identity-0EPS3msD.ogg`,ar=`/assets/jar-coin-rtCvspuq.ogg`,or=`/assets/ledger-tick-C1rQgQGX.ogg`,sr=`/assets/ourturn-DX78hTEz.ogg`,cr=`/assets/reveal-BmWAGHih.ogg`,lr=`/assets/review-split-Dac4zagw.ogg`,ur=`/assets/shutter-uhz2Y9S9.ogg`,dr=`/assets/soclose-CiUFR5St.ogg`,fr=`/assets/stinger-TnnzHAMN.ogg`,pr=`/assets/stomp-mzIk4cGm.ogg`,mr=`/assets/why-clock-Dzs1A_ym.ogg`,hr=`/assets/tension-bass-4G-2qA9W.ogg`,gr=`/assets/tension-drums-D7sdehJr.ogg`,_r=`/assets/tension-harmony-FyPldmLb.ogg`,vr=`/assets/tension-lead-C5uoFMR8.ogg`,yr={bpm:180,sampleRate:48e3,barSamples:64e3,sections:{intro:{bars:16,stems:{drums:`intro-drums.ogg`,bass:`intro-bass.ogg`,harmony:`intro-harmony.ogg`,lead:`intro-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},groove:{bars:16,stems:{drums:`groove-drums.ogg`,bass:`groove-bass.ogg`,harmony:`groove-harmony.ogg`,lead:`groove-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},tension:{bars:16,stems:{drums:`tension-drums.ogg`,bass:`tension-bass.ogg`,harmony:`tension-harmony.ogg`,lead:`tension-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},chorus:{bars:16,stems:{drums:`chorus-drums.ogg`,bass:`chorus-bass.ogg`,harmony:`chorus-harmony.ogg`,lead:`chorus-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800},night:{bars:16,stems:{drums:`night-drums.ogg`,bass:`night-bass.ogg`,harmony:`night-harmony.ogg`,lead:`night-lead.ogg`},loopStartSample:2048,loopEndSample:0xfa800}},slides:{compact:{section:`intro`,layers:{drums:.74,bass:.95,harmony:1,lead:.85},accent:null},ourturn:{section:`intro`,layers:{drums:.91,bass:.98,harmony:1,lead:.94},accent:`ourturn`},summary:{section:`intro`,layers:{drums:1,bass:1,harmony:.98,lead:.92},accent:`stomp`},harnesses:{section:`groove`,layers:{drums:.86,bass:.94,harmony:1,lead:.79},accent:null},quiz:{section:`tension`,layers:{drums:.87,bass:1,harmony:1,lead:.44},accent:null},reveal:{section:`chorus`,layers:{drums:1,bass:1,harmony:1,lead:1},accent:`reveal`},soclose:{section:`tension`,layers:{drums:.69,bass:1,harmony:1,lead:.16},accent:null},crew:{section:`groove`,layers:{drums:1,bass:1,harmony:.95,lead:.92},accent:null},orchestra:{section:`groove`,layers:{drums:1,bass:.98,harmony:.97,lead:1},accent:null},pilot:{section:`groove`,layers:{drums:.86,bass:1,harmony:1,lead:.78},accent:null},bounce:{section:`groove`,layers:{drums:1,bass:1,harmony:.96,lead:.78},accent:null},mainevent:{section:`tension`,layers:{drums:.88,bass:.97,harmony:1,lead:.66},accent:null},nightshift:{section:`night`,layers:{drums:.9,bass:1,harmony:1,lead:.82},accent:null},night:{section:`night`,layers:{drums:.93,bass:1,harmony:1,lead:.86},accent:null},talk:{section:`night`,layers:{drums:.85,bass:1,harmony:1,lead:.54},accent:null},identity:{section:`chorus`,layers:{drums:1,bass:1,harmony:1,lead:1},accent:null},share:{section:`chorus`,layers:{drums:.87,bass:.96,harmony:1,lead:.87},accent:null},phrases:{section:`groove`,layers:{drums:.59,bass:.99,harmony:1,lead:.29},accent:null},c0:{section:`groove`,layers:{drums:.7,bass:.99,harmony:1,lead:.42},accent:null},c1:{section:`tension`,layers:{drums:.63,bass:.99,harmony:1,lead:.19},accent:null},c1b:{section:`tension`,layers:{drums:.63,bass:.99,harmony:1,lead:.19},accent:null},c2:{section:`tension`,layers:{drums:.47,bass:1,harmony:1,lead:.08},accent:null},c3:{section:`tension`,layers:{drums:.62,bass:.99,harmony:1,lead:.33},accent:null},c4:{section:`tension`,layers:{drums:.6,bass:1,harmony:1,lead:.13},accent:null},c5:{section:`tension`,layers:{drums:.68,bass:1,harmony:1,lead:.14},accent:null},c6:{section:`tension`,layers:{drums:.49,bass:1,harmony:1,lead:.1},accent:null}},fills:{intro:`fills/intro.ogg`,groove:`fills/groove.ogg`,tension:`fills/tension.ogg`,chorus:`fills/chorus.ogg`,night:`fills/night.ogg`},oneshots:{ourturn:{file:`oneshots/ourturn.ogg`,hitSample:0},stomp:{file:`oneshots/stomp.ogg`,hitSample:0},"guess-low":{file:`oneshots/guess-low.ogg`,hitSample:0},"guess-high":{file:`oneshots/guess-high.ogg`,hitSample:0},higher:{file:`oneshots/higher.ogg`,hitSample:0},reveal:{file:`oneshots/reveal.ogg`,hitSample:0},soclose:{file:`oneshots/soclose.ogg`,hitSample:0},shutter:{file:`oneshots/shutter.ogg`,hitSample:0},stinger:{file:`oneshots/stinger.ogg`,hitSample:0},identity:{file:`oneshots/identity.ogg`,hitSample:0},"dialogue-card":{file:`oneshots/dialogue-card.ogg`,hitSample:0},"ledger-tick":{file:`oneshots/ledger-tick.ogg`,hitSample:0},"jar-coin":{file:`oneshots/jar-coin.ogg`,hitSample:0},"review-split":{file:`oneshots/review-split.ogg`,hitSample:0},"why-clock":{file:`oneshots/why-clock.ogg`,hitSample:0}}},br=Object.assign({"../../../production/round2/music/adaptive/chorus-bass.ogg":Nn,"../../../production/round2/music/adaptive/chorus-drums.ogg":Pn,"../../../production/round2/music/adaptive/chorus-harmony.ogg":Fn,"../../../production/round2/music/adaptive/chorus-lead.ogg":In,"../../../production/round2/music/adaptive/fills/chorus.ogg":Ln,"../../../production/round2/music/adaptive/fills/groove.ogg":Rn,"../../../production/round2/music/adaptive/fills/intro.ogg":zn,"../../../production/round2/music/adaptive/fills/night.ogg":Bn,"../../../production/round2/music/adaptive/fills/tension.ogg":Vn,"../../../production/round2/music/adaptive/groove-bass.ogg":Hn,"../../../production/round2/music/adaptive/groove-drums.ogg":Un,"../../../production/round2/music/adaptive/groove-harmony.ogg":Wn,"../../../production/round2/music/adaptive/groove-lead.ogg":Gn,"../../../production/round2/music/adaptive/intro-bass.ogg":Kn,"../../../production/round2/music/adaptive/intro-drums.ogg":qn,"../../../production/round2/music/adaptive/intro-harmony.ogg":Jn,"../../../production/round2/music/adaptive/intro-lead.ogg":Yn,"../../../production/round2/music/adaptive/night-bass.ogg":Xn,"../../../production/round2/music/adaptive/night-drums.ogg":Zn,"../../../production/round2/music/adaptive/night-harmony.ogg":Qn,"../../../production/round2/music/adaptive/night-lead.ogg":$n,"../../../production/round2/music/adaptive/oneshots/dialogue-card.ogg":er,"../../../production/round2/music/adaptive/oneshots/guess-high.ogg":tr,"../../../production/round2/music/adaptive/oneshots/guess-low.ogg":nr,"../../../production/round2/music/adaptive/oneshots/higher.ogg":rr,"../../../production/round2/music/adaptive/oneshots/identity.ogg":ir,"../../../production/round2/music/adaptive/oneshots/jar-coin.ogg":ar,"../../../production/round2/music/adaptive/oneshots/ledger-tick.ogg":or,"../../../production/round2/music/adaptive/oneshots/ourturn.ogg":sr,"../../../production/round2/music/adaptive/oneshots/reveal.ogg":cr,"../../../production/round2/music/adaptive/oneshots/review-split.ogg":lr,"../../../production/round2/music/adaptive/oneshots/shutter.ogg":ur,"../../../production/round2/music/adaptive/oneshots/soclose.ogg":dr,"../../../production/round2/music/adaptive/oneshots/stinger.ogg":fr,"../../../production/round2/music/adaptive/oneshots/stomp.ogg":pr,"../../../production/round2/music/adaptive/oneshots/why-clock.ogg":mr,"../../../production/round2/music/adaptive/tension-bass.ogg":hr,"../../../production/round2/music/adaptive/tension-drums.ogg":gr,"../../../production/round2/music/adaptive/tension-harmony.ogg":_r,"../../../production/round2/music/adaptive/tension-lead.ogg":vr}),xr=`../../../production/round2/music/adaptive/`,Sr=e=>br[xr+e]??null,Cr=1/3,wr=4/3,Tr={compact:`intro`,ourturn:`intro`,summary:`intro`,harnesses:`groove`,crew:`groove`,orchestra:`groove`,pilot:`groove`,bounce:`groove`,quiz:`tension`,soclose:`tension`,mainevent:`tension`,reveal:`chorus`,identity:`chorus`,share:`chorus`,nightshift:`night`,night:`night`,talk:`night`,phrases:`groove`,c0:`groove`,c1:`groove`,c1b:`groove`,c2:`groove`,c3:`groove`,c4:`tension`,c5:`tension`,c6:`tension`},Er=new Set([`ourturn`,`summary`,`quiz`,`reveal`,`soclose`,`night`,`talk`,`identity`]);async function Dr(e,t){return(async t=>{let n=await fetch(t);if(!n.ok)throw Error(`${n.status} ${t}`);return e.decodeAudioData(await n.arrayBuffer())})(t)}async function Or(e){let t=yr,n=t.sampleRate||48e3,r=e=>{let t=Sr(e);if(!t)throw Error(`missing music asset ${e}`);return t},i={},a={},o={},[s,c]=Object.entries(t.sections)[0],l=await Dr(e,r(Object.values(c.stems)[0]));return await Promise.all([...Object.entries(t.sections).map(async([t,a])=>{let o={};await Promise.all(Object.entries(a.stems).map(async([n,i],a)=>{o[n]=t===s&&a===0?l:await Dr(e,r(i))})),i[t]={stems:o,loopStart:a.loopStartSample/n,loopEnd:a.loopEndSample/n,bars:a.bars||16,gainDb:a.gainDb||0}}),...Object.entries(t.fills||{}).map(async([t,n])=>{a[t]=await Dr(e,r(n))}),...Object.entries(t.oneshots||{}).map(async([t,i])=>{o[t]={buffer:await Dr(e,r(i.file)),hit:(i.hitSample||0)/n}})]),{source:`adaptive`,sections:i,slides:t.slides||{},fills:a,oneshots:o,safety:await jr(e.sampleRate)}}var kr={threshold:-1.5,knee:0,ratio:20,attack:.001,release:.08};function Ar(e){let t=e.createDynamicsCompressor();for(let[e,n]of Object.entries(kr))t[e].value=n;return t}async function jr(e=48e3){try{let t=Math.round(e*.25),n=new OfflineAudioContext(1,t,e),r=n.createBuffer(1,t,e),i=r.getChannelData(0);for(let n=0;n<t;n++)i[n]=n===Math.round(e*.1)?.03:.03*Math.sin(2*Math.PI*1e3*n/e)*(n>e*.12);let a=n.createBufferSource();a.buffer=r;let o=Ar(n);a.connect(o),o.connect(n.destination),a.start();let s=(await n.startRendering()).getChannelData(0),c=0,l=0;for(let n=Math.round(e*.17);n<t-400;n++)c+=i[n]*i[n],l+=s[n]*s[n];let u=0,d=0;for(let t=Math.round(e*.1);t<Math.round(e*.1)+1200;t++)Math.abs(s[t])>d&&(d=Math.abs(s[t]),u=t-Math.round(e*.1));return{trim:Math.sqrt(c/l),latency:u/e}}catch{return{trim:1,latency:0}}}function Mr(e,t,{muted:n=!1,limiter:r=!0}={}){let i=Ar(e),a=e.createGain(),o=r&&t.safety||{trim:1,latency:0};a.gain.value=o.trim;let s=e.createGain();s.gain.value=+!n,r?(s.connect(i),i.connect(a),a.connect(e.destination)):s.connect(e.destination);let c=e=>10**((e||0)/20),l=0,u=null,d=[],f=[],p=(e,t)=>l+Math.ceil((e-l)/t-1e-9)*t,m=e=>{let n=t.slides[e]||{};return{section:n.section||Tr[e]||`groove`,layers:n.layers||{drums:1,bass:1,harmony:1,lead:1},accent:Er.has(e)?n.accent??null:null}};function h(e,t){return e===`mix`?1:t[e]??0}function g(n,r,i){let a=t.sections[n];if(!a)return null;let o=a.loopEnd-a.loopStart,u=Math.round((r-l)/wr),d=n===`chorus`?a.loopStart:a.loopStart+(u%a.bars+a.bars)%a.bars*wr,p=e.createGain();p.gain.setValueAtTime(c(a.gainDb),Math.max(r,e.currentTime)),p.connect(s);let m={};for(let[t,n]of Object.entries(a.stems)){let s=e.createGain();s.gain.setValueAtTime(h(t,i),Math.max(r,e.currentTime)),s.connect(p);let c=e.createBufferSource();c.buffer=n,c.loop=!0,c.loopStart=a.loopStart,c.loopEnd=a.loopEnd,c.connect(s),c.start(Math.max(r,e.currentTime),Math.min(d,a.loopStart+o-.001)),m[t]={src:c,g:s}}return f.push({section:n,at:+r.toFixed(4),bar:u,off:+d.toFixed(4)}),{sec:n,out:p,stems:m,gainDb:a.gainDb}}function _(t,n,r=.22){if(!t)return;let i=Math.max(n,e.currentTime);t.out.gain.cancelScheduledValues(i),t.out.gain.setValueAtTime(c(t.gainDb),i),t.out.gain.linearRampToValueAtTime(0,i+r);for(let{src:e}of Object.values(t.stems))try{e.stop(i+r+.05)}catch{}}function v(t,n,r=0,i=0){let a=e.createBufferSource(),o=e.createGain();o.gain.value=c(r),a.buffer=t,a.connect(o),o.connect(s);let l=Math.max(n,e.currentTime);return a.start(l,Math.max(0,i+(l-n))),a}return{bank:t,latency:o.latency,get T0(){return l},get section(){return u?.sec||null},nextBeat:e=>p(e+.02,Cr),nextSixteenth:e=>p(e+.02,Cr/4),nextBar:e=>p(e+.02,wr),start(e){_(u,e,.06),u=null;for(let e of d)try{e.stop()}catch{}d=[],l=e,f.push({start:+e.toFixed(4)})},goto(e,n){for(let e of d)try{e.stop()}catch{}d=[];let r=m(e),i,a=!1;if(!u||u.sec!==r.section){a=!0,i=u?p(n+.02,wr):Math.max(l,n);let e=t.fills[r.section];if(u&&e&&i-n>=.3323333333333333){let t=i-Cr;v(e,t,0,0),f.push({fill:r.section,at:+t.toFixed(4)})}_(u,i),u=g(r.section,i,r.layers)}else{i=p(n+.02,Cr);for(let[e,{g:t}]of Object.entries(u.stems)){let n=h(e,r.layers);t.gain.cancelScheduledValues(i),t.gain.setValueAtTime(t.gain.value,i),t.gain.linearRampToValueAtTime(n,i+Cr)}f.push({layers:e,at:+i.toFixed(4)})}return r.accent&&this.cue(r.accent,i),f.push({slide:e,zero:+i.toFixed(4),sectionChange:a}),{zero:i,sectionChange:a}},cue(e,n){let r=t.oneshots[e];r&&(d.push(v(r.buffer,n-r.hit,r.gainDb||0)),f.push({cue:e,at:+n.toFixed(4)}))},oneshot(e,n){let r=t.oneshots[e];r&&(v(r.buffer,n-r.hit,r.gainDb||0),f.push({oneshot:e,at:+n.toFixed(4)}))},setMuted(t){s.gain.setValueAtTime(+!t,e.currentTime)},log:f}}var Nr={please:`Please`,thanks:`Thanks`,"sorry-user":`User apologies`,"swear-mild":`Mild swear jar`,"swear-strong":`Strong swear jar`,why:`Why`,"again-still":`Repeat requests`,"not-working":`Failure phrases`,praise:`User praise`,instruction:`Instructions`,"go-on":`Go-on words`,undo:`Undo`,"agent-agree":`Agent agreement`,"agent-sorry":`Agent apologies`,"agent-confident":`Agent confidence`,"agent-praise":`Agent praise`};function Pr(e,t=!1){return e?e.lexicon.flatMap(n=>{let r=l[e.lexiconVersion]?.get(n.id),i=Nr[n.id],a=s.has(n.id);if(!i||!r?.shareEligible||!n.shareEligible||!Number.isSafeInteger(n.total)||n.total<=0||a&&(!t||n.total<10||n.sessions<3))return[];let o=a&&n.topTerms.find(e=>r.shown.has(e.term));return[{id:`content-${n.id}`,label:o?`${i} (${o.term})`:i,value:n.total.toLocaleString(`en-US`),epistemic:`observed`,defaultSelected:!1,sensitiveByDefault:a}]}):[]}var Fr=[`phrases`,`words`,`openers`],Ir=()=>({phrases:[],words:[],openers:[]}),Lr=e=>String(e).toLowerCase().split(/\s+/).filter(Boolean),Rr=(e,t)=>{let n=` ${Lr(e).join(` `)} `,r=` ${Lr(t).join(` `)} `;return n.includes(r)||r.includes(n)};function zr(e){let t=[],n=0;for(let r of Fr)for(let i of e?.private?.[r]||[])t.push({id:`d${(n++).toString(36)}`,kind:r,term:i.term,raw:i,state:`hidden`,revealed:!1});let r=()=>t.filter(e=>e.state!==`gone`),i=()=>{let e=Ir();for(let t of r())t.state===`kept`&&e[t.kind].push(t.raw);return e},a=e=>{e.state=`gone`,e.revealed=!1,e.term=null,e.raw=null};return{available:async()=>!0,async list(){return{candidates:r().map(({id:e,kind:t,raw:n,state:r})=>({id:e,kind:t,count:n.count,sessions:n.sessions,days:n.days,state:r}))}},async reveal(e){let t=r().find(t=>t.id===e);if(!t)throw Error(`unknown candidate`);return t.revealed=!0,{candidate:{id:e,kind:t.kind,count:t.raw.count,sessions:t.raw.sessions,days:t.raw.days,state:t.state,term:t.term}}},async keep(e){let t=r().find(t=>t.id===e);if(!t||!t.revealed)throw Error(`reveal before keep`);return t.state=`kept`,{ok:!0}},async hide(e){let t=r().find(t=>t.id===e);if(!t)return{ok:!0};let n=t.term;for(let e of r())(e===t||Rr(e.term,n))&&a(e);return{ok:!0}},async hideAll(){for(let e of t)a(e);return{ok:!0}},async finalize(){for(let e of r())e.state!==`kept`&&a(e);return i()},kept:i}}function Br(e,t){let n=Ir(),r=!1,i=async(t,n)=>{if(r)throw Object.assign(Error(`content review unavailable`),{unavailable:!0});try{return await e(t,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(n)})}catch(e){let t=e?.status===404&&e?.code===`PHRASE_NOT_FOUND`;throw t||e?.status!==404&&e?.status!=null||(r=!0),Object.assign(e instanceof Error?e:Error(String(e)),{unavailable:r,gone:t})}},a={async available(){try{return await a.list(),!0}catch{return!1}},async list(){let e=await i(`/api/content/phrases`,{action:`list`});return e?.candidates,e},reveal:e=>i(`/api/content/phrases`,{action:`reveal`,id:e}),keep:e=>i(`/api/content/phrases`,{action:`keep`,id:e}),hide:e=>i(`/api/content/phrases`,{action:`hide`,id:e}),hideAll:()=>i(`/api/content/phrases`,{action:`hide-all`}),async finalize(){try{return await i(`/api/content/phrases`,{action:`finalize`}),a.refresh()}catch(e){if(e?.unavailable)return a.refresh()}try{for(let e=0;e<1e3;e++){let e=((await a.list())?.candidates||[]).find(e=>e.state!==`kept`);if(!e)break;try{await a.hide(e.id)}catch(e){if(!e?.gone)throw e}}}catch{}return a.refresh()},async refresh(){try{let e=t?await t():await i(`/api/report`,{});n={...Ir(),...e?.content?.private||{}}}catch{n=Ir()}return n},kept:()=>n};return a}function Vr(e,{mode:t=`demo`,fetchJson:n=null,fetchReport:r=null}={}){return{mode:t,...t===`live`&&n?Br(n,r):zr(e)}}var Hr=e=>String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`),Ur=(e,t)=>`
|
|
2
2
|
<header class="chrome" id="chrome">
|
|
3
3
|
<div class="bars" id="bars" aria-hidden="true"></div>
|
|
4
4
|
<div class="chrome__row">
|
|
@@ -22,7 +22,7 @@ import{c as e,d as t,f as n,g as r,h as i,i as a,l as o,m as s,o as c,p as l,s a
|
|
|
22
22
|
<button type="button" class="act" id="words" hidden aria-expanded="false" aria-controls="wordstats">Word stats</button>
|
|
23
23
|
<button type="button" class="act" id="replay" hidden>Replay</button>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="wordstats" id="wordstats" role="group" aria-label="Word stats on your card" hidden></div>
|
|
25
|
+
<div class="wordstats" id="wordstats" role="group" aria-label="Word stats on your card" data-no-tap hidden></div>
|
|
26
26
|
<section class="drawer" id="drawer" aria-label="Your phrases" hidden></section>
|
|
27
27
|
<div class="tapfx" id="tapfx" aria-hidden="true"></div>
|
|
28
28
|
<div class="paused-badge" id="paused-badge" aria-hidden="true" hidden>Paused</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,g as t,i as n,n as r,r as i,t as a}from"./app-
|
|
1
|
+
import{a as e,g as t,i as n,n as r,r as i,t as a}from"./app-Dw1a5h5V.js";import{Film as o}from"./chunk-D6HyoJCB.js";var s=t(),c=n(),l=Object.assign({"../../production/fixtures/night-owl.json":()=>a(()=>import(`./chunk-Bi6EQAkf.js`).then(e=>e.default),[]),"../../production/fixtures/partial.json":()=>a(()=>import(`./chunk-XGhNFWse.js`).then(e=>e.default),[]),"../../production/fixtures/polyglot.json":()=>a(()=>import(`./chunk-BNfsY4o8.js`).then(e=>e.default),[]),"../../production/fixtures/specialist.json":()=>a(()=>import(`./chunk-V3YGpFIw.js`).then(e=>e.default),[]),"../../production/fixtures/starter.json":()=>a(()=>import(`./chunk-BSm8IhPY.js`).then(e=>e.default),[])}),u=e=>l[`../../production/fixtures/${e}.json`];new Set(e.map(e=>e.id));function d(t){let[n,a]=(0,s.useState)(t.initialProfile??`night-owl`),[l,d]=(0,s.useState)(null),[f,p]=(0,s.useState)(!1),m=!!t.flags?.has(`capture`),h=!!t.flags?.has(`hooks`);(0,s.useEffect)(()=>{let e=!0,t=u(n);if(t)return t().then(t=>e&&d({id:n,r:t}),()=>e&&d({id:n,error:!0})),()=>{e=!1}},[n]);let g=(0,s.useMemo)(()=>({profiles:e,current:n,onSelect:e=>{if(e!==n){p(!1),a(e);try{let t=new URL(window.location.href);t.searchParams.set(`profile`,e),t.searchParams.delete(`fixture`),window.history.replaceState(null,``,t.pathname+t.search)}catch{}}}}),[n]);return!l||l.id!==n?(0,c.jsx)(i,{title:`Loading the demo…`,detail:`Five fictional developers. Zero real data.`,busy:!0}):`error`in l?(0,c.jsx)(i,{title:`That demo profile didn’t load.`,detail:`Nothing real was read. Pick another profile or reload the page.`}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o,{report:l.r,mode:`demo`,...t.flags?{flags:t.flags}:{},capture:m,hooks:h,onStateChange:e=>p(e.started&&!e.last)},n),!m&&!h&&!f?(0,c.jsx)(r,{demo:g}):null]})}export{d as DemoExperience};
|
package/dist/web/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<meta name="theme-color" content="#0B0B0F" />
|
|
8
8
|
<title>coauthored · Your 2026 Coding Wrapped</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/app-
|
|
9
|
+
<script type="module" crossorigin src="/assets/app-Dw1a5h5V.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-DpT0dtHc.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|