Spaces:
Running
Running
Recipe code blocks: one box, syntax highlighting
Browse files- _astro/ExpertDialog.Ckxn8qB9.js +1 -0
- _astro/Explorer.Dh7WjPWI.js +3 -0
- _astro/Recipes.BBr12ptW.js +1 -0
- _astro/Studio.js8y068v.js +3 -0
- _astro/data.B0LidU3o.js +18 -0
- _astro/explorer.y9HGsqM2.css +1 -0
- explorer.html +2 -2
- index.html +1 -1
- recipes.html +2 -2
_astro/ExpertDialog.Ckxn8qB9.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{S as zl,i as Hl,s as Kt,I as Je,d as c,h as D,L as Ye,z as Fl,A as Kl,P as Wl,N as Zl,O as Gl,Q as hl,f as T,j as r,k as h,n as v,o as g,q as k,v as p,x as E,e as _e,E as nt,F as Ql,R as ve,l as ke,p as j,C as ae,w as N,T as dl,B as _l,U as vl,V as Xl,W as $l,t as it,b as Fe,X as Jl,Y as Yl,M as xl,Z as es,D as ts,a as ls,m as ss,r as ns,y as is}from"./data.B0LidU3o.js";/* empty css */const Ct=l=>l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),as={json:[["key",/"(?:[^"\\]|\\.)*"(?=\s*:)/y],["str",/"(?:[^"\\]|\\.)*"/y],["num",/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/y],["lit",/\b(?:true|false|null)\b/y]],python:[["com",/#[^\n]*/y],["str",/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/y],["kw",/\b(?:import|from|as|def|return|for|in|if|else|with|lambda)\b/y],["lit",/\b(?:True|False|None)\b/y],["num",/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/y],["fn",/\b[A-Za-z_]\w*(?=\()/y]]};function pl(l,e){const t=as[e];if(!t)return Ct(l);let s="",n="",i=0;for(;i<l.length;){let o=null;for(const[d,f]of t){f.lastIndex=i;const u=f.exec(l);if(u&&u[0]){o=[d,u[0]];break}}if(o)s+=Ct(n)+`<span class="hl-${o[0]}">${Ct(o[1])}</span>`,n="",i+=o[1].length;else{const d=/\w+|./sy;d.lastIndex=i;const f=d.exec(l)[0];n+=f,i+=f.length}}return s+Ct(n)}function bl(l,e,t){const s=l.slice();return s[31]=e[t],s}function ml(l,e,t){const s=l.slice();return s[34]=e[t],s}function gl(l,e,t){const s=l.slice();return s[37]=e[t],s}function kl(l,e,t){const s=l.slice();return s[40]=e[t],s}function El(l,e,t){const s=l.slice();return s[43]=e[t],s}function os(l){let e,t,s,n=(l[10].name||(l[0]==="-"?"pushed the other way":"(no label)"))+"",i,o,d,f,u,m,b,w,y,C,Q,$,K,V,x,Ee,pe,X,oe,Ke,ee,Z,We,Le,Ze,te,Ge,Ae,Qe,I,le,Xe,$e=(l[4][l[6]]||l[6])+"",at,jt,Nt,se,ot,Tt,A,be,qe,Wt="recipe",Vt,me,ye,xe=l[15]==="json"?"copied":"JSON",rt,Pt,we,et=l[15]==="python"?"copied":"Python",ft,St,De,Zt='<div class="k svelte-b0gqvn">method</div><div class="v mono svelte-b0gqvn">add · from token 1 · × median resid</div>',Lt,Ie,Ce,Gt="dose",ce,tt=(l[9]?l[9].dose_eff:"–")+"",ct,At,lt=(l[5][l[1]]?l[5][l[1]].toFixed(1):"–")+"",ut,Ot,ht,Mt,ge,je,Qt="validation",Bt,ue,dt,Rt,Ne,Te,Xt="theme",Oe,st=l[10].theme.join(", ")+"",_t,Ut,Ve,Pe,$t="top tokens",Se,vt,Me,zt,xt,O=l[9]&&ql(l),Ht=_e(["+","-"]),ne=[];for(let a=0;a<2;a+=1)ne[a]=yl(El(l,Ht,a));function el(a,q){if(a[10].desc)return us;if(a[0]==="-")return cs}let Be=el(l),M=Be&&Be(l),B=l[10].subject&&l[10].subject!=="none"&&wl(l),R=l[10].coherent!=null&&Dl(l);function tl(a,q){return a[10].null==="untestable"?ds:hs}let pt=tl(l),re=pt(l),U=l[10].judge!=null&&Il(l),Re=_e(l[3].banned_in.filter(Bl)),P=[];for(let a=0;a<Re.length;a+=1)P[a]=Cl(kl(l,Re,a));let Ue=_e(l[11]),S=[];for(let a=0;a<Ue.length;a+=1)S[a]=jl(gl(l,Ue,a));let z=l[12].length>1&&Nl(l),H=l[14]==="base"&&l[16]&&Vl(l),F=l[9]&&Sl(l);function ll(a,q){return a[10].null==="untestable"?vs:_s}let bt=ll(l),fe=bt(l),J=l[10].judge!=null&&Al(l),ze=_e(l[10].tokens),L=[];for(let a=0;a<ze.length;a+=1)L[a]=Ol(bl(l,ze,a));let Y=l[17]&&Ml(l);return{c(){e=p("header"),t=p("div"),s=p("h2"),i=E(n),o=N(),O&&O.c(),d=N(),f=p("div");for(let a=0;a<2;a+=1)ne[a].c();u=N(),M&&M.c(),m=N(),b=p("div"),B&&B.c(),w=N(),R&&R.c(),y=N(),re.c(),C=N(),U&&U.c(),Q=N();for(let a=0;a<P.length;a+=1)P[a].c();$=N(),K=p("div"),V=p("section"),x=p("p"),Ee=E(dl),pe=N(),X=p("div"),oe=p("div");for(let a=0;a<S.length;a+=1)S[a].c();Ke=N(),ee=p("div"),Z=p("button"),We=E("steered"),Ze=N(),te=p("button"),Ge=E("vs base"),Qe=N(),z&&z.c(),I=N(),le=p("p"),Xe=E("“"),at=E($e),jt=E("”"),Nt=N(),se=p("div"),H&&H.c(),ot=N(),F&&F.c(),Tt=N(),A=p("aside"),be=p("div"),qe=p("div"),qe.textContent=Wt,Vt=N(),me=p("div"),ye=p("button"),rt=E(xe),Pt=N(),we=p("button"),ft=E(et),St=N(),De=p("div"),De.innerHTML=Zt,Lt=N(),Ie=p("div"),Ce=p("div"),Ce.textContent=Gt,ce=p("div"),ct=E(tt),At=E(" × "),ut=E(lt),Ot=E(" at L"),ht=E(l[1]),Mt=N(),ge=p("div"),je=p("div"),je.textContent=Qt,Bt=N(),ue=p("div"),fe.c(),dt=N(),J&&J.c(),Rt=N(),Ne=p("div"),Te=p("div"),Te.textContent=Xt,Oe=p("div"),_t=E(st),Ut=N(),Ve=p("div"),Pe=p("div"),Pe.textContent=$t,Se=p("div");for(let a=0;a<L.length;a+=1)L[a].c();vt=N(),Y&&Y.c(),Me=Ye(),this.h()},l(a){e=v(a,"HEADER",{class:!0});var q=g(e);t=v(q,"DIV",{});var _=g(t);s=v(_,"H2",{class:!0});var G=g(s);i=k(G,n),G.forEach(c),o=j(_),O&&O.l(_),_.forEach(c),d=j(q),f=v(q,"DIV",{class:!0,role:!0,"aria-label":!0});var sl=g(f);for(let W=0;W<2;W+=1)ne[W].l(sl);sl.forEach(c),q.forEach(c),u=j(a),M&&M.l(a),m=j(a),b=v(a,"DIV",{class:!0});var he=g(b);B&&B.l(he),w=j(he),R&&R.l(he),y=j(he),re.l(he),C=j(he),U&&U.l(he),Q=j(he);for(let W=0;W<P.length;W+=1)P[W].l(he);he.forEach(c),$=j(a),K=v(a,"DIV",{class:!0});var mt=g(K);V=v(mt,"SECTION",{class:!0});var de=g(V);x=v(de,"P",{class:!0});var nl=g(x);Ee=k(nl,dl),nl.forEach(c),pe=j(de),X=v(de,"DIV",{class:!0});var gt=g(X);oe=v(gt,"DIV",{class:!0,role:!0,"aria-label":!0});var il=g(oe);for(let W=0;W<S.length;W+=1)S[W].l(il);il.forEach(c),Ke=j(gt),ee=v(gt,"DIV",{class:!0,role:!0,"aria-label":!0});var kt=g(ee);Z=v(kt,"BUTTON",{role:!0,"aria-selected":!0,class:!0});var al=g(Z);We=k(al,"steered"),al.forEach(c),Ze=j(kt),te=v(kt,"BUTTON",{role:!0,"aria-selected":!0,class:!0});var ol=g(te);Ge=k(ol,"vs base"),ol.forEach(c),kt.forEach(c),gt.forEach(c),Qe=j(de),z&&z.l(de),I=j(de),le=v(de,"P",{class:!0});var Et=g(le);Xe=k(Et,"“"),at=k(Et,$e),jt=k(Et,"”"),Et.forEach(c),Nt=j(de),se=v(de,"DIV",{class:!0});var qt=g(se);H&&H.l(qt),ot=j(qt),F&&F.l(qt),qt.forEach(c),de.forEach(c),Tt=j(mt),A=v(mt,"ASIDE",{class:!0});var ie=g(A);be=v(ie,"DIV",{class:!0});var yt=g(be);qe=v(yt,"DIV",{class:!0,"data-svelte-h":!0}),ae(qe)!=="svelte-1kdglzw"&&(qe.textContent=Wt),Vt=j(yt),me=v(yt,"DIV",{class:!0});var wt=g(me);ye=v(wt,"BUTTON",{class:!0});var rl=g(ye);rt=k(rl,xe),rl.forEach(c),Pt=j(wt),we=v(wt,"BUTTON",{class:!0});var fl=g(we);ft=k(fl,et),fl.forEach(c),wt.forEach(c),yt.forEach(c),St=j(ie),De=v(ie,"DIV",{class:!0,"data-svelte-h":!0}),ae(De)!=="svelte-17uz674"&&(De.innerHTML=Zt),Lt=j(ie),Ie=v(ie,"DIV",{class:!0});var Ft=g(Ie);Ce=v(Ft,"DIV",{class:!0,"data-svelte-h":!0}),ae(Ce)!=="svelte-ksmlip"&&(Ce.textContent=Gt),ce=v(Ft,"DIV",{class:!0});var He=g(ce);ct=k(He,tt),At=k(He," × "),ut=k(He,lt),Ot=k(He," at L"),ht=k(He,l[1]),He.forEach(c),Ft.forEach(c),Mt=j(ie),ge=v(ie,"DIV",{class:!0});var Dt=g(ge);je=v(Dt,"DIV",{class:!0,"data-svelte-h":!0}),ae(je)!=="svelte-1h4tan7"&&(je.textContent=Qt),Bt=j(Dt),ue=v(Dt,"DIV",{class:!0});var It=g(ue);fe.l(It),dt=j(It),J&&J.l(It),It.forEach(c),Dt.forEach(c),Rt=j(ie),Ne=v(ie,"DIV",{class:!0});var Jt=g(Ne);Te=v(Jt,"DIV",{class:!0,"data-svelte-h":!0}),ae(Te)!=="svelte-snzlwh"&&(Te.textContent=Xt),Oe=v(Jt,"DIV",{class:!0});var cl=g(Oe);_t=k(cl,st),cl.forEach(c),Jt.forEach(c),Ut=j(ie),Ve=v(ie,"DIV",{class:!0});var Yt=g(Ve);Pe=v(Yt,"DIV",{class:!0,"data-svelte-h":!0}),ae(Pe)!=="svelte-1pmb2zz"&&(Pe.textContent=$t),Se=v(Yt,"DIV",{class:!0});var ul=g(Se);for(let W=0;W<L.length;W+=1)L[W].l(ul);ul.forEach(c),Yt.forEach(c),ie.forEach(c),mt.forEach(c),vt=j(a),Y&&Y.l(a),Me=Ye(),this.h()},h(){h(s,"class","svelte-b0gqvn"),h(f,"class","poles svelte-b0gqvn"),h(f,"role","tablist"),h(f,"aria-label","Pole"),h(e,"class","ev-head svelte-b0gqvn"),h(b,"class","chips svelte-b0gqvn"),h(x,"class","note svelte-b0gqvn"),h(oe,"class","tabs svelte-b0gqvn"),h(oe,"role","tablist"),h(oe,"aria-label","Prompt"),h(Z,"role","tab"),h(Z,"aria-selected",Le=l[14]==="steered"),h(Z,"class","svelte-b0gqvn"),h(te,"role","tab"),h(te,"aria-selected",Ae=l[14]==="base"),h(te,"class","svelte-b0gqvn"),h(ee,"class","tabs svelte-b0gqvn"),h(ee,"role","tablist"),h(ee,"aria-label","View"),h(X,"class","row svelte-b0gqvn"),h(le,"class","prompt svelte-b0gqvn"),h(se,"class","outs svelte-b0gqvn"),ve(se,"two",l[14]==="base"),h(V,"class","examples"),h(qe,"class","k svelte-b0gqvn"),h(ye,"class","svelte-b0gqvn"),h(we,"class","svelte-b0gqvn"),h(me,"class","btns svelte-b0gqvn"),h(be,"class","block svelte-b0gqvn"),h(De,"class","block svelte-b0gqvn"),h(Ce,"class","k svelte-b0gqvn"),h(ce,"class","v mono svelte-b0gqvn"),h(Ie,"class","block svelte-b0gqvn"),h(je,"class","k svelte-b0gqvn"),h(ue,"class","v svelte-b0gqvn"),h(ge,"class","block svelte-b0gqvn"),h(Te,"class","k svelte-b0gqvn"),h(Oe,"class","v svelte-b0gqvn"),h(Ne,"class","block svelte-b0gqvn"),h(Pe,"class","k svelte-b0gqvn"),h(Se,"class","v svelte-b0gqvn"),h(Ve,"class","block svelte-b0gqvn"),h(A,"class","side svelte-b0gqvn"),h(K,"class","ev-body svelte-b0gqvn")},m(a,q){D(a,e,q),r(e,t),r(t,s),r(s,i),r(t,o),O&&O.m(t,null),r(e,d),r(e,f);for(let _=0;_<2;_+=1)ne[_]&&ne[_].m(f,null);D(a,u,q),M&&M.m(a,q),D(a,m,q),D(a,b,q),B&&B.m(b,null),r(b,w),R&&R.m(b,null),r(b,y),re.m(b,null),r(b,C),U&&U.m(b,null),r(b,Q);for(let _=0;_<P.length;_+=1)P[_]&&P[_].m(b,null);D(a,$,q),D(a,K,q),r(K,V),r(V,x),r(x,Ee),r(V,pe),r(V,X),r(X,oe);for(let _=0;_<S.length;_+=1)S[_]&&S[_].m(oe,null);r(X,Ke),r(X,ee),r(ee,Z),r(Z,We),r(ee,Ze),r(ee,te),r(te,Ge),r(V,Qe),z&&z.m(V,null),r(V,I),r(V,le),r(le,Xe),r(le,at),r(le,jt),r(V,Nt),r(V,se),H&&H.m(se,null),r(se,ot),F&&F.m(se,null),r(K,Tt),r(K,A),r(A,be),r(be,qe),r(be,Vt),r(be,me),r(me,ye),r(ye,rt),r(me,Pt),r(me,we),r(we,ft),r(A,St),r(A,De),r(A,Lt),r(A,Ie),r(Ie,Ce),r(Ie,ce),r(ce,ct),r(ce,At),r(ce,ut),r(ce,Ot),r(ce,ht),r(A,Mt),r(A,ge),r(ge,je),r(ge,Bt),r(ge,ue),fe.m(ue,null),r(ue,dt),J&&J.m(ue,null),r(A,Rt),r(A,Ne),r(Ne,Te),r(Ne,Oe),r(Oe,_t),r(A,Ut),r(A,Ve),r(Ve,Pe),r(Ve,Se);for(let _=0;_<L.length;_+=1)L[_]&&L[_].m(Se,null);D(a,vt,q),Y&&Y.m(a,q),D(a,Me,q),zt||(xt=[ke(Z,"click",l[25]),ke(te,"click",l[26]),ke(ye,"click",l[28]),ke(we,"click",l[29])],zt=!0)},p(a,q){if(q[0]&1025&&n!==(n=(a[10].name||(a[0]==="-"?"pushed the other way":"(no label)"))+"")&&T(i,n),a[9]?O?O.p(a,q):(O=ql(a),O.c(),O.m(t,null)):O&&(O.d(1),O=null),q[0]&9){Ht=_e(["+","-"]);let _;for(_=0;_<2;_+=1){const G=El(a,Ht,_);ne[_]?ne[_].p(G,q):(ne[_]=yl(G),ne[_].c(),ne[_].m(f,null))}for(;_<2;_+=1)ne[_].d(1)}if(Be===(Be=el(a))&&M?M.p(a,q):(M&&M.d(1),M=Be&&Be(a),M&&(M.c(),M.m(m.parentNode,m))),a[10].subject&&a[10].subject!=="none"?B?B.p(a,q):(B=wl(a),B.c(),B.m(b,w)):B&&(B.d(1),B=null),a[10].coherent!=null?R?R.p(a,q):(R=Dl(a),R.c(),R.m(b,y)):R&&(R.d(1),R=null),pt===(pt=tl(a))&&re?re.p(a,q):(re.d(1),re=pt(a),re&&(re.c(),re.m(b,C))),a[10].judge!=null?U?U.p(a,q):(U=Il(a),U.c(),U.m(b,Q)):U&&(U.d(1),U=null),q[0]&8){Re=_e(a[3].banned_in.filter(Bl));let _;for(_=0;_<Re.length;_+=1){const G=kl(a,Re,_);P[_]?P[_].p(G,q):(P[_]=Cl(G),P[_].c(),P[_].m(b,null))}for(;_<P.length;_+=1)P[_].d(1);P.length=Re.length}if(q[0]&2112){Ue=_e(a[11]);let _;for(_=0;_<Ue.length;_+=1){const G=gl(a,Ue,_);S[_]?S[_].p(G,q):(S[_]=jl(G),S[_].c(),S[_].m(oe,null))}for(;_<S.length;_+=1)S[_].d(1);S.length=Ue.length}if(q[0]&16384&&Le!==(Le=a[14]==="steered")&&h(Z,"aria-selected",Le),q[0]&16384&&Ae!==(Ae=a[14]==="base")&&h(te,"aria-selected",Ae),a[12].length>1?z?z.p(a,q):(z=Nl(a),z.c(),z.m(V,I)):z&&(z.d(1),z=null),q[0]&80&&$e!==($e=(a[4][a[6]]||a[6])+"")&&T(at,$e),a[14]==="base"&&a[16]?H?H.p(a,q):(H=Vl(a),H.c(),H.m(se,ot)):H&&(H.d(1),H=null),a[9]?F?F.p(a,q):(F=Sl(a),F.c(),F.m(se,null)):F&&(F.d(1),F=null),q[0]&16384&&ve(se,"two",a[14]==="base"),q[0]&32768&&xe!==(xe=a[15]==="json"?"copied":"JSON")&&T(rt,xe),q[0]&32768&&et!==(et=a[15]==="python"?"copied":"Python")&&T(ft,et),q[0]&512&&tt!==(tt=(a[9]?a[9].dose_eff:"–")+"")&&T(ct,tt),q[0]&34&<!==(lt=(a[5][a[1]]?a[5][a[1]].toFixed(1):"–")+"")&&T(ut,lt),q[0]&2&&T(ht,a[1]),bt===(bt=ll(a))&&fe?fe.p(a,q):(fe.d(1),fe=bt(a),fe&&(fe.c(),fe.m(ue,dt))),a[10].judge!=null?J?J.p(a,q):(J=Al(a),J.c(),J.m(ue,null)):J&&(J.d(1),J=null),q[0]&1024&&st!==(st=a[10].theme.join(", ")+"")&&T(_t,st),q[0]&1024){ze=_e(a[10].tokens);let _;for(_=0;_<ze.length;_+=1){const G=bl(a,ze,_);L[_]?L[_].p(G,q):(L[_]=Ol(G),L[_].c(),L[_].m(Se,null))}for(;_<L.length;_+=1)L[_].d(1);L.length=ze.length}a[17]?Y?Y.p(a,q):(Y=Ml(a),Y.c(),Y.m(Me.parentNode,Me)):Y&&(Y.d(1),Y=null)},d(a){a&&(c(e),c(u),c(m),c(b),c($),c(K),c(vt),c(Me)),O&&O.d(),nt(ne,a),M&&M.d(a),B&&B.d(),R&&R.d(),re.d(),U&&U.d(),nt(P,a),nt(S,a),z&&z.d(),H&&H.d(),F&&F.d(),fe.d(),J&&J.d(),nt(L,a),Y&&Y.d(a),zt=!1,Ql(xt)}}}function rs(l){let e,t,s,n;return{c(){e=p("p"),t=E("Loading layer "),s=E(l[1]),n=E("…"),this.h()},l(i){e=v(i,"P",{class:!0});var o=g(e);t=k(o,"Loading layer "),s=k(o,l[1]),n=k(o,"…"),o.forEach(c),this.h()},h(){h(e,"class","muted svelte-b0gqvn")},m(i,o){D(i,e,o),r(e,t),r(e,s),r(e,n)},p(i,o){o[0]&2&&T(s,i[1])},d(i){i&&c(e)}}}function fs(l){let e,t;return{c(){e=p("p"),t=E(l[13]),this.h()},l(s){e=v(s,"P",{class:!0});var n=g(e);t=k(n,l[13]),n.forEach(c),this.h()},h(){h(e,"class","muted svelte-b0gqvn")},m(s,n){D(s,e,n),r(e,t)},p(s,n){n[0]&8192&&T(t,s[13])},d(s){s&&c(e)}}}function ql(l){let e,t=_l(l[1],l[2],l[0],l[9].dose)+"",s;return{c(){e=p("span"),s=E(t),this.h()},l(n){e=v(n,"SPAN",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","unit svelte-b0gqvn")},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&519&&t!==(t=_l(n[1],n[2],n[0],n[9].dose)+"")&&T(s,t)},d(n){n&&c(e)}}}function yl(l){let e,t=l[43]==="+"?"+ pole":"− pole",s,n,i,o,d,f;function u(){return l[23](l[43])}return{c(){e=p("button"),s=E(t),n=N(),this.h()},l(m){e=v(m,"BUTTON",{role:!0,"aria-selected":!0,class:!0});var b=g(e);s=k(b,t),n=j(b),b.forEach(c),this.h()},h(){h(e,"role","tab"),h(e,"aria-selected",i=l[0]===l[43]),e.disabled=o=!l[3].poles[l[43]],h(e,"class","svelte-b0gqvn")},m(m,b){D(m,e,b),r(e,s),r(e,n),d||(f=ke(e,"click",u),d=!0)},p(m,b){l=m,b[0]&1&&i!==(i=l[0]===l[43])&&h(e,"aria-selected",i),b[0]&8&&o!==(o=!l[3].poles[l[43]])&&(e.disabled=o)},d(m){m&&c(e),d=!1,f()}}}function cs(l){let e,t="Beam labelled the + side of each direction only. These are the tokens the − push promotes, read from the weights.";return{c(){e=p("p"),e.textContent=t,this.h()},l(s){e=v(s,"P",{class:!0,"data-svelte-h":!0}),ae(e)!=="svelte-1in5vpc"&&(e.textContent=t),this.h()},h(){h(e,"class","desc svelte-b0gqvn")},m(s,n){D(s,e,n)},p:Je,d(s){s&&c(e)}}}function us(l){let e,t=l[10].desc+"",s;return{c(){e=p("p"),s=E(t),this.h()},l(n){e=v(n,"P",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","desc svelte-b0gqvn")},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&1024&&t!==(t=n[10].desc+"")&&T(s,t)},d(n){n&&c(e)}}}function wl(l){let e,t=l[10].subject+"",s;return{c(){e=p("span"),s=E(t),this.h()},l(n){e=v(n,"SPAN",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","chip svelte-b0gqvn")},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&1024&&t!==(t=n[10].subject+"")&&T(s,t)},d(n){n&&c(e)}}}function Dl(l){let e,t,s=l[10].coherent?"coherent":"incoherent",n;return{c(){e=p("span"),t=E("Beam: "),n=E(s),this.h()},l(i){e=v(i,"SPAN",{class:!0});var o=g(e);t=k(o,"Beam: "),n=k(o,s),o.forEach(c),this.h()},h(){h(e,"class","chip svelte-b0gqvn"),ve(e,"ok",l[10].coherent)},m(i,o){D(i,e,o),r(e,t),r(e,n)},p(i,o){o[0]&1024&&s!==(s=i[10].coherent?"coherent":"incoherent")&&T(n,s),o[0]&1024&&ve(e,"ok",i[10].coherent)},d(i){i&&c(e)}}}function hs(l){let e,t=l[10].sig?"significant":"not significant",s;return{c(){e=p("span"),s=E(t),this.h()},l(n){e=v(n,"SPAN",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","chip svelte-b0gqvn"),ve(e,"ok",l[10].sig)},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&1024&&t!==(t=n[10].sig?"significant":"not significant")&&T(s,t),i[0]&1024&&ve(e,"ok",n[10].sig)},d(n){n&&c(e)}}}function ds(l){let e,t="no fair control";return{c(){e=p("span"),e.textContent=t,this.h()},l(s){e=v(s,"SPAN",{class:!0,"data-svelte-h":!0}),ae(e)!=="svelte-1opx2y9"&&(e.textContent=t),this.h()},h(){h(e,"class","chip svelte-b0gqvn")},m(s,n){D(s,e,n)},p:Je,d(s){s&&c(e)}}}function Il(l){let e,t=l[10].judge?"judge matched":"judge missed",s;return{c(){e=p("span"),s=E(t),this.h()},l(n){e=v(n,"SPAN",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","chip svelte-b0gqvn"),ve(e,"ok",l[10].judge),ve(e,"bad",!l[10].judge)},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&1024&&t!==(t=n[10].judge?"judge matched":"judge missed")&&T(s,t),i[0]&1024&&ve(e,"ok",n[10].judge),i[0]&1024&&ve(e,"bad",!n[10].judge)},d(n){n&&c(e)}}}function Cl(l){let e,t,s=l[40]+"",n,i;return{c(){e=p("span"),t=E("in the "),n=E(s),i=E(" ban"),this.h()},l(o){e=v(o,"SPAN",{class:!0});var d=g(e);t=k(d,"in the "),n=k(d,s),i=k(d," ban"),d.forEach(c),this.h()},h(){h(e,"class","chip svelte-b0gqvn")},m(o,d){D(o,e,d),r(e,t),r(e,n),r(e,i)},p(o,d){d[0]&8&&s!==(s=o[40]+"")&&T(n,s)},d(o){o&&c(e)}}}function jl(l){let e,t=vl[l[37]]+"",s,n,i,o;function d(){return l[24](l[37])}return{c(){e=p("button"),s=E(t),this.h()},l(f){e=v(f,"BUTTON",{role:!0,"aria-selected":!0,class:!0});var u=g(e);s=k(u,t),u.forEach(c),this.h()},h(){h(e,"role","tab"),h(e,"aria-selected",n=l[6]===l[37]),h(e,"class","svelte-b0gqvn")},m(f,u){D(f,e,u),r(e,s),i||(o=ke(e,"click",d),i=!0)},p(f,u){l=f,u[0]&2048&&t!==(t=vl[l[37]]+"")&&T(s,t),u[0]&2112&&n!==(n=l[6]===l[37])&&h(e,"aria-selected",n)},d(f){f&&c(e),i=!1,o()}}}function Nl(l){let e,t=_e(l[12]),s=[];for(let n=0;n<t.length;n+=1)s[n]=Tl(ml(l,t,n));return{c(){e=p("div");for(let n=0;n<s.length;n+=1)s[n].c();this.h()},l(n){e=v(n,"DIV",{class:!0,role:!0,"aria-label":!0});var i=g(e);for(let o=0;o<s.length;o+=1)s[o].l(i);i.forEach(c),this.h()},h(){h(e,"class","tabs doses svelte-b0gqvn"),h(e,"role","tablist"),h(e,"aria-label","Dose")},m(n,i){D(n,e,i);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(e,null)},p(n,i){if(i[0]&266368){t=_e(n[12]);let o;for(o=0;o<t.length;o+=1){const d=ml(n,t,o);s[o]?s[o].p(d,i):(s[o]=Tl(d),s[o].c(),s[o].m(e,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=t.length}},d(n){n&&c(e),nt(s,n)}}}function Tl(l){let e,t=l[18](l[34].dose)+"",s,n,i,o;function d(){return l[27](l[34])}return{c(){e=p("button"),s=E(t),this.h()},l(f){e=v(f,"BUTTON",{role:!0,"aria-selected":!0,class:!0});var u=g(e);s=k(u,t),u.forEach(c),this.h()},h(){h(e,"role","tab"),h(e,"aria-selected",n=String(l[34].dose)===l[7]),h(e,"class","svelte-b0gqvn")},m(f,u){D(f,e,u),r(e,s),i||(o=ke(e,"click",d),i=!0)},p(f,u){l=f,u[0]&4096&&t!==(t=l[18](l[34].dose)+"")&&T(s,t),u[0]&4224&&n!==(n=String(l[34].dose)===l[7])&&h(e,"aria-selected",n)},d(f){f&&c(e),i=!1,o()}}}function Vl(l){let e,t,s="unsteered",n,i,o,d=l[16].final+"",f,u=l[16].analysis&&Pl(l);return{c(){e=p("div"),t=p("span"),t.textContent=s,n=N(),u&&u.c(),i=N(),o=p("div"),f=E(d),this.h()},l(m){e=v(m,"DIV",{class:!0});var b=g(e);t=v(b,"SPAN",{class:!0,"data-svelte-h":!0}),ae(t)!=="svelte-t9apoh"&&(t.textContent=s),n=j(b),u&&u.l(b),i=j(b),o=v(b,"DIV",{class:!0});var w=g(o);f=k(w,d),w.forEach(c),b.forEach(c),this.h()},h(){h(t,"class","lab svelte-b0gqvn"),h(o,"class","txt svelte-b0gqvn"),h(e,"class","out svelte-b0gqvn")},m(m,b){D(m,e,b),r(e,t),r(e,n),u&&u.m(e,null),r(e,i),r(e,o),r(o,f)},p(m,b){m[16].analysis?u?u.p(m,b):(u=Pl(m),u.c(),u.m(e,i)):u&&(u.d(1),u=null),b[0]&65536&&d!==(d=m[16].final+"")&&T(f,d)},d(m){m&&c(e),u&&u.d()}}}function Pl(l){let e,t,s="thinking",n,i=l[16].analysis+"",o;return{c(){e=p("details"),t=p("summary"),t.textContent=s,n=p("div"),o=E(i),this.h()},l(d){e=v(d,"DETAILS",{class:!0});var f=g(e);t=v(f,"SUMMARY",{class:!0,"data-svelte-h":!0}),ae(t)!=="svelte-hs6zhc"&&(t.textContent=s),n=v(f,"DIV",{class:!0});var u=g(n);o=k(u,i),u.forEach(c),f.forEach(c),this.h()},h(){h(t,"class","svelte-b0gqvn"),h(n,"class","muted svelte-b0gqvn"),h(e,"class","svelte-b0gqvn")},m(d,f){D(d,e,f),r(e,t),r(e,n),r(n,o)},p(d,f){f[0]&65536&&i!==(i=d[16].analysis+"")&&T(o,i)},d(d){d&&c(e)}}}function Sl(l){let e,t,s=l[18](l[9].dose)+"",n,i=l[9].finish==="length"?" · cut at token limit":"",o,d,f,u,m=(l[9].final||"(no final answer before the token limit)")+"",b,w=l[9].analysis&&Ll(l);return{c(){e=p("div"),t=p("span"),n=E(s),o=E(i),d=N(),w&&w.c(),f=N(),u=p("div"),b=E(m),this.h()},l(y){e=v(y,"DIV",{class:!0});var C=g(e);t=v(C,"SPAN",{class:!0});var Q=g(t);n=k(Q,s),o=k(Q,i),Q.forEach(c),d=j(C),w&&w.l(C),f=j(C),u=v(C,"DIV",{class:!0});var $=g(u);b=k($,m),$.forEach(c),C.forEach(c),this.h()},h(){h(t,"class","lab svelte-b0gqvn"),h(u,"class","txt svelte-b0gqvn"),h(e,"class","out steered svelte-b0gqvn")},m(y,C){D(y,e,C),r(e,t),r(t,n),r(t,o),r(e,d),w&&w.m(e,null),r(e,f),r(e,u),r(u,b)},p(y,C){C[0]&512&&s!==(s=y[18](y[9].dose)+"")&&T(n,s),C[0]&512&&i!==(i=y[9].finish==="length"?" · cut at token limit":"")&&T(o,i),y[9].analysis?w?w.p(y,C):(w=Ll(y),w.c(),w.m(e,f)):w&&(w.d(1),w=null),C[0]&512&&m!==(m=(y[9].final||"(no final answer before the token limit)")+"")&&T(b,m)},d(y){y&&c(e),w&&w.d()}}}function Ll(l){let e,t,s="thinking",n,i=l[9].analysis+"",o;return{c(){e=p("details"),t=p("summary"),t.textContent=s,n=p("div"),o=E(i),this.h()},l(d){e=v(d,"DETAILS",{class:!0});var f=g(e);t=v(f,"SUMMARY",{class:!0,"data-svelte-h":!0}),ae(t)!=="svelte-hs6zhc"&&(t.textContent=s),n=v(f,"DIV",{class:!0});var u=g(n);o=k(u,i),u.forEach(c),f.forEach(c),this.h()},h(){h(t,"class","svelte-b0gqvn"),h(n,"class","muted svelte-b0gqvn"),h(e,"class","svelte-b0gqvn")},m(d,f){D(d,e,f),r(e,t),r(e,n),r(n,o)},p(d,f){f[0]&512&&i!==(i=d[9].analysis+"")&&T(o,i)},d(d){d&&c(e)}}}function _s(l){let e,t=l[19](l[10].pct)+"",s,n,i=l[10].dnll.toFixed(2)+"",o,d;return{c(){e=E("Themed output above "),s=E(t),n=E(" of random directions with a similar effect (ΔNLL "),o=E(i),d=E(" nats/token).")},l(f){e=k(f,"Themed output above "),s=k(f,t),n=k(f," of random directions with a similar effect (ΔNLL "),o=k(f,i),d=k(f," nats/token).")},m(f,u){D(f,e,u),D(f,s,u),D(f,n,u),D(f,o,u),D(f,d,u)},p(f,u){u[0]&1024&&t!==(t=f[19](f[10].pct)+"")&&T(s,t),u[0]&1024&&i!==(i=f[10].dnll.toFixed(2)+"")&&T(o,i)},d(f){f&&(c(e),c(s),c(n),c(o),c(d))}}}function vs(l){let e;return{c(){e=E("Moves Beam more than every nearby control: no fair null.")},l(t){e=k(t,"Moves Beam more than every nearby control: no fair null.")},m(t,s){D(t,e,s)},p:Je,d(t){t&&c(e)}}}function Al(l){let e,t=l[10].judge?"picked":"did not pick",s,n;return{c(){e=E("A blind judge "),s=E(t),n=E(" this output from three, given its top tokens.")},l(i){e=k(i,"A blind judge "),s=k(i,t),n=k(i," this output from three, given its top tokens.")},m(i,o){D(i,e,o),D(i,s,o),D(i,n,o)},p(i,o){o[0]&1024&&t!==(t=i[10].judge?"picked":"did not pick")&&T(s,t)},d(i){i&&(c(e),c(s),c(n))}}}function Ol(l){let e,t=l[31]+"",s;return{c(){e=p("span"),s=E(t),this.h()},l(n){e=v(n,"SPAN",{class:!0});var i=g(e);s=k(i,t),i.forEach(c),this.h()},h(){h(e,"class","chip tok svelte-b0gqvn")},m(n,i){D(n,e,i),r(e,s)},p(n,i){i[0]&1024&&t!==(t=n[31]+"")&&T(s,t)},d(n){n&&c(e)}}}function Ml(l){let e,t,s,n=pl(l[17],l[8])+"";return{c(){e=p("pre"),t=p("code"),s=new $l(!1),this.h()},l(i){e=v(i,"PRE",{class:!0});var o=g(e);t=v(o,"CODE",{class:!0});var d=g(t);s=Xl(d,!1),d.forEach(c),o.forEach(c),this.h()},h(){s.a=null,h(t,"class","svelte-b0gqvn"),h(e,"class","code svelte-b0gqvn")},m(i,o){D(i,e,o),r(e,t),s.m(n,t)},p(i,o){o[0]&131328&&n!==(n=pl(i[17],i[8])+"")&&s.p(n)},d(i){i&&c(e)}}}function ps(l){let e;function t(i,o){return i[13]?fs:!i[3]||!i[10]?rs:os}let s=t(l),n=s(l);return{c(){n.c(),e=Ye()},l(i){n.l(i),e=Ye()},m(i,o){n.m(i,o),D(i,e,o)},p(i,o){s===(s=t(i))&&n?n.p(i,o):(n.d(1),n=s(i),n&&(n.c(),n.m(e.parentNode,e)))},i:Je,o:Je,d(i){i&&c(e),n.d(i)}}}const Bl=l=>!l.endsWith("_ctrl");function bs(l,e,t){let s,n,i,o,d,f,u,{layer:m}=e,{expert:b}=e,{pole:w="+"}=e,y=null,C="",Q={},$={},K=[],V="who",x=null,Ee="steered",pe=null,X="";Fl(async()=>{try{t(4,[Q,$,K]=await Promise.all(["prompts.json","baseline.json","medians.json"].map(Kl)),Q,t(21,$),t(5,K))}catch(I){t(13,C=I.message)}});async function oe(I,le){t(3,y=null),t(13,C="");try{t(3,y=await Gl(I,le)),y||t(13,C="No sweep data for this expert (its wave hit the time limit).")}catch(Xe){t(13,C=Xe.message)}}const Ke=I=>I===.4?"gentle push":I===1?"full push":I===-1?"full push, other way":`dose ${I}`,ee=I=>I==null?"–":`${Math.round(100*I)}%`;async function Z(I){t(8,pe=I),await Promise.resolve();try{await navigator.clipboard.writeText(I==="json"?JSON.stringify(d,null,2):hl(d)),t(15,X=I)}catch{t(15,X="")}setTimeout(()=>t(15,X=""),1400)}const We=I=>t(0,w=I),Le=I=>t(6,V=I),Ze=()=>t(14,Ee="steered"),te=()=>t(14,Ee="base"),Ge=I=>t(7,x=String(I.dose)),Ae=()=>Z("json"),Qe=()=>Z("python");return l.$$set=I=>{"layer"in I&&t(1,m=I.layer),"expert"in I&&t(2,b=I.expert),"pole"in I&&t(0,w=I.pole)},l.$$.update=()=>{l.$$.dirty[0]&6&&oe(m,b),l.$$.dirty[0]&9&&t(10,s=y&&y.poles[w]),l.$$.dirty[0]&1024&&t(11,o=s?Wl.filter(I=>s.out.some(le=>le.prompt===I)):[]),l.$$.dirty[0]&2112&&o.length&&!o.includes(V)&&t(6,V=o[0]),l.$$.dirty[0]&1088&&t(12,n=s?s.out.filter(I=>I.prompt===V):[]),l.$$.dirty[0]&4224&&n.length&&!n.some(I=>String(I.dose)===x)&&t(7,x=String(n[n.length-1].dose)),l.$$.dirty[0]&4224&&t(9,i=n.find(I=>String(I.dose)===x)||n[0]),l.$$.dirty[0]&1591&&t(22,d=s&&i&&K.length?Zl(m,b,w,s,i,Q,K):null),l.$$.dirty[0]&4194560&&t(17,f=d?pe==="json"?JSON.stringify(d,null,2):pe==="python"?hl(d):"":""),l.$$.dirty[0]&2097216&&t(16,u=$[V])},[w,m,b,y,Q,K,V,x,pe,i,s,o,n,C,Ee,X,u,f,Ke,ee,Z,$,d,We,Le,Ze,te,Ge,Ae,Qe]}class ms extends zl{constructor(e){super(),Hl(this,e,bs,ps,Kt,{layer:1,expert:2,pole:0},null,[-1,-1])}}function Rl(l){let e,t,s=l[1].layer+"",n,i,o=l[1].expert+"",d,f,u=`${l[1].layer}-${l[1].expert}`,m,b,w=Ul(l);return{c(){e=p("p"),t=E("Layer "),n=E(s),i=E(" · expert "),d=E(o),f=N(),w.c(),m=Ye(),this.h()},l(y){e=v(y,"P",{class:!0});var C=g(e);t=k(C,"Layer "),n=k(C,s),i=k(C," · expert "),d=k(C,o),C.forEach(c),f=j(y),w.l(y),m=Ye(),this.h()},h(){h(e,"class","where svelte-1xxwurk")},m(y,C){D(y,e,C),r(e,t),r(e,n),r(e,i),r(e,d),D(y,f,C),w.m(y,C),D(y,m,C),b=!0},p(y,C){(!b||C&2)&&s!==(s=y[1].layer+"")&&T(n,s),(!b||C&2)&&o!==(o=y[1].expert+"")&&T(d,o),C&2&&Kt(u,u=`${y[1].layer}-${y[1].expert}`)?(Jl(),it(w,1,1,Je),Yl(),w=Ul(y),w.c(),Fe(w,1),w.m(m.parentNode,m)):w.p(y,C)},i(y){b||(Fe(w),b=!0)},o(y){it(w),b=!1},d(y){y&&(c(e),c(f),c(m)),w.d(y)}}}function Ul(l){let e,t;return e=new ms({props:{layer:l[1].layer,expert:l[1].expert,pole:l[1].pole}}),{c(){is(e.$$.fragment)},l(s){ns(e.$$.fragment,s)},m(s,n){ss(e,s,n),t=!0},p(s,n){const i={};n&2&&(i.layer=s[1].layer),n&2&&(i.expert=s[1].expert),n&2&&(i.pole=s[1].pole),e.$set(i)},i(s){t||(Fe(e.$$.fragment,s),t=!0)},o(s){it(e.$$.fragment,s),t=!1},d(s){ls(e,s)}}}function gs(l){let e,t,s='<button class="close svelte-1xxwurk" aria-label="Close">×</button>',n,i,o,d,f=l[1]&&Rl(l);return{c(){e=p("dialog"),t=p("form"),t.innerHTML=s,n=N(),f&&f.c(),this.h()},l(u){e=v(u,"DIALOG",{"aria-label":!0,class:!0});var m=g(e);t=v(m,"FORM",{method:!0,"data-svelte-h":!0}),ae(t)!=="svelte-hb0f8y"&&(t.innerHTML=s),n=j(m),f&&f.l(m),m.forEach(c),this.h()},h(){h(t,"method","dialog"),h(e,"aria-label","Expert"),h(e,"class","svelte-1xxwurk")},m(u,m){D(u,e,m),r(e,t),r(e,n),f&&f.m(e,null),l[4](e),i=!0,o||(d=ke(e,"close",l[2]),o=!0)},p(u,[m]){u[1]?f?(f.p(u,m),m&2&&Fe(f,1)):(f=Rl(u),f.c(),Fe(f,1),f.m(e,null)):f&&(Jl(),it(f,1,1,()=>{f=null}),Yl())},i(u){i||(Fe(f),i=!0)},o(u){it(f),i=!1},d(u){u&&c(e),f&&f.d(),l[4](null),o=!1,d()}}}function ks(l,e,t){let s,n=null;async function i(u,m,b="+"){t(1,n={layer:u,expert:m,pole:b}),history.replaceState(null,"",`#L${u}-E${m}${b==="-"?"_-":""}`),await es(),s.open||s.showModal()}function o(){t(1,n=null),history.replaceState(null,"",location.pathname+location.search)}const d=()=>{const u=xl(decodeURIComponent(location.hash.slice(1)));u&&i(u.layer,u.expert,u.pole)};Fl(()=>(d(),window.addEventListener("hashchange",d),()=>window.removeEventListener("hashchange",d)));function f(u){ts[u?"unshift":"push"](()=>{s=u,t(0,s)})}return[s,n,o,i,f]}class ys extends zl{constructor(e){super(),Hl(this,e,ks,gs,Kt,{open:3})}get open(){return this.$$.ctx[3]}}export{ys as E};
|
_astro/Explorer.Dh7WjPWI.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{S as Dt,i as Ut,s as Vt,e as De,d as p,E as Bt,a as Rt,F as qt,t as zt,b as Jt,c as ne,G as Le,f as ue,u as Ft,h as U,j as a,m as Gt,l as se,k as b,H as Ke,p as T,n as c,o as k,C as D,q as P,r as Xt,w as L,v as u,x as w,y as Yt,z as Kt,I as We,J as Re,K as Qe,D as Ct,L as Et,g as Qt,A as jt,M as Wt}from"./data.B0LidU3o.js";import{E as Zt}from"./ExpertDialog.Ckxn8qB9.js";/* empty css *//* empty css */const xt=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global,{Map:$t}=xt;function Tt(n,e,t){const l=n.slice();return l[38]=e[t][0],l[39]=e[t][1],l}function Lt(n,e,t){const l=n.slice();return l[42]=e[t],l}function Nt(n,e,t){const l=n.slice();return l[38]=e[t],l}function St(n){let e,t,l;return{c(){e=u("p"),t=w("Could not load the atlas: "),l=w(n[10])},l(s){e=c(s,"P",{});var o=k(e);t=P(o,"Could not load the atlas: "),l=P(o,n[10]),o.forEach(p)},m(s,o){U(s,e,o),a(e,t),a(e,l)},p(s,o){o[0]&1024&&ue(l,s[10])},d(s){s&&p(e)}}}function Pt(n){let e,t=n[38]+"",l,s;return{c(){e=u("option"),l=w(t),this.h()},l(o){e=c(o,"OPTION",{});var r=k(e);l=P(r,t),r.forEach(p),this.h()},h(){e.__value=s=n[38],ne(e,e.__value)},m(o,r){U(o,e,r),a(e,l)},p(o,r){r[0]&32768&&t!==(t=o[38]+"")&&ue(l,t),r[0]&32768&&s!==(s=o[38])&&(e.__value=s,ne(e,e.__value))},d(o){o&&p(e)}}}function el(n){let e,t="significant";return{c(){e=u("span"),e.textContent=t,this.h()},l(l){e=c(l,"SPAN",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-1okplm8"&&(e.textContent=t),this.h()},h(){b(e,"class","chip svelte-1ap2cn9")},m(l,s){U(l,e,s)},d(l){l&&p(e)}}}function tl(n){let e,t="verified";return{c(){e=u("span"),e.textContent=t,this.h()},l(l){e=c(l,"SPAN",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-1yasvld"&&(e.textContent=t),this.h()},h(){b(e,"class","chip ok svelte-1ap2cn9")},m(l,s){U(l,e,s)},d(l){l&&p(e)}}}function wt(n){let e,t=n[42].subject+"",l;return{c(){e=u("span"),l=w(t),this.h()},l(s){e=c(s,"SPAN",{class:!0});var o=k(e);l=P(o,t),o.forEach(p),this.h()},h(){b(e,"class","chip svelte-1ap2cn9")},m(s,o){U(s,e,o),a(e,l)},p(s,o){o[0]&20480&&t!==(t=s[42].subject+"")&&ue(l,t)},d(s){s&&p(e)}}}function Ot(n,e){let t,l,s,o,r=e[42].layer+"",d,q,H=e[42].expert+"",g,A,E=e[42].pole==="+"?"+":"−",y,J,C,x=(e[42].name||(e[42].pole==="-"?"pushed the other way":"(no label)"))+"",Z,O,V,pe,I,M=e[42].tokens+"",$,z,ee,ae;function Ee(X,B){if(X[42].verified)return tl;if(X[42].sig)return el}let oe=Ee(e),N=oe&&oe(e),j=e[42].subject&&e[42].subject!=="none"&&wt(e);function Ne(){return e[30](e[42])}return{key:n,first:null,c(){t=u("li"),l=u("button"),s=u("span"),o=w("L"),d=w(r),q=w(" E"),g=w(H),A=L(),y=w(E),J=L(),C=u("span"),Z=w(x),O=L(),N&&N.c(),V=L(),j&&j.c(),pe=L(),I=u("span"),$=w(M),z=L(),this.h()},l(X){t=c(X,"LI",{class:!0});var B=k(t);l=c(B,"BUTTON",{class:!0});var F=k(l);s=c(F,"SPAN",{class:!0});var te=k(s);o=P(te,"L"),d=P(te,r),q=P(te," E"),g=P(te,H),A=T(te),y=P(te,E),te.forEach(p),J=T(F),C=c(F,"SPAN",{class:!0});var ie=k(C);Z=P(ie,x),O=T(ie),N&&N.l(ie),V=T(ie),j&&j.l(ie),ie.forEach(p),pe=T(F),I=c(F,"SPAN",{class:!0});var re=k(I);$=P(re,M),re.forEach(p),z=T(F),F.forEach(p),B.forEach(p),this.h()},h(){b(s,"class","id svelte-1ap2cn9"),b(C,"class","nm"),b(I,"class","toks svelte-1ap2cn9"),b(l,"class","svelte-1ap2cn9"),b(t,"class","svelte-1ap2cn9"),this.first=t},m(X,B){U(X,t,B),a(t,l),a(l,s),a(s,o),a(s,d),a(s,q),a(s,g),a(s,A),a(s,y),a(l,J),a(l,C),a(C,Z),a(C,O),N&&N.m(C,null),a(C,V),j&&j.m(C,null),a(l,pe),a(l,I),a(I,$),a(l,z),ee||(ae=se(l,"click",Ne),ee=!0)},p(X,B){e=X,B[0]&20480&&r!==(r=e[42].layer+"")&&ue(d,r),B[0]&20480&&H!==(H=e[42].expert+"")&&ue(g,H),B[0]&20480&&E!==(E=e[42].pole==="+"?"+":"−")&&ue(y,E),B[0]&20480&&x!==(x=(e[42].name||(e[42].pole==="-"?"pushed the other way":"(no label)"))+"")&&ue(Z,x),oe!==(oe=Ee(e))&&(N&&N.d(1),N=oe&&oe(e),N&&(N.c(),N.m(C,V))),e[42].subject&&e[42].subject!=="none"?j?j.p(e,B):(j=wt(e),j.c(),j.m(C,null)):j&&(j.d(1),j=null),B[0]&20480&&M!==(M=e[42].tokens+"")&&ue($,M)},d(X){X&&p(t),N&&N.d(),j&&j.d(),ee=!1,ae()}}}function It(n){let e,t="show more",l,s;return{c(){e=u("button"),e.textContent=t,this.h()},l(o){e=c(o,"BUTTON",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-1dl8etd"&&(e.textContent=t),this.h()},h(){b(e,"class","more svelte-1ap2cn9")},m(o,r){U(o,e,r),l||(s=se(e,"click",n[31]),l=!0)},p:We,d(o){o&&p(e),l=!1,s()}}}function ll(n){let e,t='<i style="background:var(--primary-color)" class="svelte-1ap2cn9"></i>coherent label',l,s='<i style="background:var(--border-color)" class="svelte-1ap2cn9"></i>incoherent';return{c(){e=u("span"),e.innerHTML=t,l=u("span"),l.innerHTML=s},l(o){e=c(o,"SPAN",{"data-svelte-h":!0}),D(e)!=="svelte-1ebd66h"&&(e.innerHTML=t),l=c(o,"SPAN",{"data-svelte-h":!0}),D(l)!=="svelte-q709aa"&&(l.innerHTML=s)},m(o,r){U(o,e,r),U(o,l,r)},p:We,d(o){o&&(p(e),p(l))}}}function nl(n){let e,t='<i style="background:var(--success-color)" class="svelte-1ap2cn9"></i>judge verified',l,s='<i style="background:var(--primary-color)" class="svelte-1ap2cn9"></i>significant',o,r='<i style="background:var(--border-color)" class="svelte-1ap2cn9"></i>neither';return{c(){e=u("span"),e.innerHTML=t,l=u("span"),l.innerHTML=s,o=u("span"),o.innerHTML=r},l(d){e=c(d,"SPAN",{"data-svelte-h":!0}),D(e)!=="svelte-1w9go6r"&&(e.innerHTML=t),l=c(d,"SPAN",{"data-svelte-h":!0}),D(l)!=="svelte-1sz6jfm"&&(l.innerHTML=s),o=c(d,"SPAN",{"data-svelte-h":!0}),D(o)!=="svelte-mhulbe"&&(o.innerHTML=r)},m(d,q){U(d,e,q),U(d,l,q),U(d,o,q)},p:We,d(d){d&&(p(e),p(l),p(o))}}}function sl(n){let e,t=De(Object.entries(n[16])),l=[];for(let s=0;s<t.length;s+=1)l[s]=At(Tt(n,t,s));return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=Et()},l(s){for(let o=0;o<l.length;o+=1)l[o].l(s);e=Et()},m(s,o){for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(s,o);U(s,e,o)},p(s,o){if(o[0]&65536){t=De(Object.entries(s[16]));let r;for(r=0;r<t.length;r+=1){const d=Tt(s,t,r);l[r]?l[r].p(d,o):(l[r]=At(d),l[r].c(),l[r].m(e.parentNode,e))}for(;r<l.length;r+=1)l[r].d(1);l.length=t.length}},d(s){s&&p(e),Bt(l,s)}}}function At(n){let e,t,l=n[38]+"",s;return{c(){e=u("span"),t=u("i"),s=w(l),this.h()},l(o){e=c(o,"SPAN",{});var r=k(e);t=c(r,"I",{style:!0,class:!0}),k(t).forEach(p),s=P(r,l),r.forEach(p),this.h()},h(){Re(t,"background",n[39]),b(t,"class","svelte-1ap2cn9")},m(o,r){U(o,e,r),a(e,t),a(e,s)},p:We,d(o){o&&p(e)}}}function Mt(n){let e,t,l,s=n[13].layer+"",o,r,d=n[13].expert+"",q,H,g=n[13].text+"",A;return{c(){e=u("div"),t=u("b"),l=w("L"),o=w(s),r=w(" E"),q=w(d),H=u("br"),A=w(g),this.h()},l(E){e=c(E,"DIV",{class:!0,style:!0});var y=k(e);t=c(y,"B",{});var J=k(t);l=P(J,"L"),o=P(J,s),r=P(J," E"),q=P(J,d),J.forEach(p),H=c(y,"BR",{}),A=P(y,g),y.forEach(p),this.h()},h(){b(e,"class","tip svelte-1ap2cn9"),Re(e,"left",Math.min(n[13].x+12,760)+"px"),Re(e,"top",n[13].y+14+"px")},m(E,y){U(E,e,y),a(e,t),a(t,l),a(t,o),a(t,r),a(t,q),a(e,H),a(e,A)},p(E,y){y[0]&8192&&s!==(s=E[13].layer+"")&&ue(o,s),y[0]&8192&&d!==(d=E[13].expert+"")&&ue(q,d),y[0]&8192&&g!==(g=E[13].text+"")&&ue(A,g),y[0]&8192&&Re(e,"left",Math.min(E[13].x+12,760)+"px"),y[0]&8192&&Re(e,"top",E[13].y+14+"px")},d(E){E&&p(e)}}}function al(n){let e,t,l,s,o,r,d,q="any subject",H,g,A,E="+ poles (labelled)",y,J="− poles",C,x="both poles",Z,O,V,pe="verified first",I,M="by layer",$,z,ee,ae,Ee,oe,N,j,Ne,X,B,F,te,ie,re,Se=n[9].length.toLocaleString()+"",Ie,Ue,h,f,v=[],m=new $t,le,ve,R,fe,je="Atlas",Ze,Ae,Me,xe,ce,be,ht="steering significant / judge verified",me,pt="Beam says coherent",ge,_t="Beam's subject",$e,ye,qe,Be,dt='<i class="empty svelte-1ap2cn9"></i>no sweep data',et,ke,_e,tt,lt,Pe,vt="Rows: MoE layers 3 (top) to 51. Columns: experts 0–255. Click an expert to open it.",ze,Ce,Ve,nt,bt,Y=n[10]&&St(n),He=De(n[15]),G=[];for(let i=0;i<He.length;i+=1)G[i]=Pt(Nt(n,He,i));let Je=De(n[14].slice(0,n[12]));const mt=i=>i[42].id;for(let i=0;i<Je.length;i+=1){let _=Lt(n,Je,i),S=mt(_);m.set(S,v[i]=Ot(S,_))}let K=n[14].length>n[12]&&It(n);function gt(i,_){return i[7]==="subj"?sl:i[7]==="sig"?nl:ll}let Fe=gt(n),he=Fe(n),Q=n[13]&&Mt(n),Ht={};return Ce=new Zt({props:Ht}),n[35](Ce),{c(){Y&&Y.c(),e=L(),t=u("section"),l=u("div"),s=u("input"),o=L(),r=u("select"),d=u("option"),d.textContent=q;for(let i=0;i<G.length;i+=1)G[i].c();H=L(),g=u("select"),A=u("option"),A.textContent=E,y=u("option"),y.textContent=J,C=u("option"),C.textContent=x,Z=L(),O=u("select"),V=u("option"),V.textContent=pe,I=u("option"),I.textContent=M,$=L(),z=u("div"),ee=u("label"),ae=u("input"),Ee=w(" steering significant"),oe=L(),N=u("label"),j=u("input"),Ne=w(" judge verified"),X=L(),B=u("label"),F=u("input"),te=w(" Beam says coherent"),ie=L(),re=u("span"),Ie=w(Se),Ue=w(" expert directions"),h=L(),f=u("ol");for(let i=0;i<v.length;i+=1)v[i].c();le=L(),K&&K.c(),ve=L(),R=u("section"),fe=u("h2"),fe.textContent=je,Ze=L(),Ae=u("div"),Me=u("label"),xe=w(`colour by
|
| 2 |
+
`),ce=u("select"),be=u("option"),be.textContent=ht,me=u("option"),me.textContent=pt,ge=u("option"),ge.textContent=_t,$e=L(),ye=u("div"),he.c(),qe=L(),Be=u("span"),Be.innerHTML=dt,et=L(),ke=u("div"),_e=u("canvas"),tt=L(),Q&&Q.c(),lt=L(),Pe=u("p"),Pe.textContent=vt,ze=L(),Yt(Ce.$$.fragment),this.h()},l(i){Y&&Y.l(i),e=T(i),t=c(i,"SECTION",{});var _=k(t);l=c(_,"DIV",{class:!0});var S=k(l);s=c(S,"INPUT",{type:!0,placeholder:!0,"aria-label":!0,class:!0}),o=T(S),r=c(S,"SELECT",{"aria-label":!0,class:!0});var W=k(r);d=c(W,"OPTION",{"data-svelte-h":!0}),D(d)!=="svelte-p4w4zu"&&(d.textContent=q);for(let Oe=0;Oe<G.length;Oe+=1)G[Oe].l(W);W.forEach(p),H=T(S),g=c(S,"SELECT",{"aria-label":!0,class:!0});var we=k(g);A=c(we,"OPTION",{"data-svelte-h":!0}),D(A)!=="svelte-4yunyx"&&(A.textContent=E),y=c(we,"OPTION",{"data-svelte-h":!0}),D(y)!=="svelte-fo344q"&&(y.textContent=J),C=c(we,"OPTION",{"data-svelte-h":!0}),D(C)!=="svelte-phej2i"&&(C.textContent=x),we.forEach(p),Z=T(S),O=c(S,"SELECT",{"aria-label":!0,class:!0});var st=k(O);V=c(st,"OPTION",{"data-svelte-h":!0}),D(V)!=="svelte-1fijms4"&&(V.textContent=pe),I=c(st,"OPTION",{"data-svelte-h":!0}),D(I)!=="svelte-iol3at"&&(I.textContent=M),st.forEach(p),S.forEach(p),$=T(_),z=c(_,"DIV",{class:!0});var Te=k(z);ee=c(Te,"LABEL",{});var at=k(ee);ae=c(at,"INPUT",{type:!0}),Ee=P(at," steering significant"),at.forEach(p),oe=T(Te),N=c(Te,"LABEL",{});var ot=k(N);j=c(ot,"INPUT",{type:!0}),Ne=P(ot," judge verified"),ot.forEach(p),X=T(Te),B=c(Te,"LABEL",{});var it=k(B);F=c(it,"INPUT",{type:!0}),te=P(it," Beam says coherent"),it.forEach(p),ie=T(Te),re=c(Te,"SPAN",{class:!0});var rt=k(re);Ie=P(rt,Se),Ue=P(rt," expert directions"),rt.forEach(p),Te.forEach(p),h=T(_),f=c(_,"OL",{class:!0});var yt=k(f);for(let Oe=0;Oe<v.length;Oe+=1)v[Oe].l(yt);yt.forEach(p),le=T(_),K&&K.l(_),_.forEach(p),ve=T(i),R=c(i,"SECTION",{class:!0});var de=k(R);fe=c(de,"H2",{"data-svelte-h":!0}),D(fe)!=="svelte-edmfcz"&&(fe.textContent=je),Ze=T(de),Ae=c(de,"DIV",{class:!0});var kt=k(Ae);Me=c(kt,"LABEL",{});var ct=k(Me);xe=P(ct,`colour by
|
| 3 |
+
`),ce=c(ct,"SELECT",{class:!0});var Ge=k(ce);be=c(Ge,"OPTION",{"data-svelte-h":!0}),D(be)!=="svelte-1hpo92h"&&(be.textContent=ht),me=c(Ge,"OPTION",{"data-svelte-h":!0}),D(me)!=="svelte-1mhtjt7"&&(me.textContent=pt),ge=c(Ge,"OPTION",{"data-svelte-h":!0}),D(ge)!=="svelte-suyfcd"&&(ge.textContent=_t),Ge.forEach(p),ct.forEach(p),kt.forEach(p),$e=T(de),ye=c(de,"DIV",{class:!0});var Xe=k(ye);he.l(Xe),qe=T(Xe),Be=c(Xe,"SPAN",{"data-svelte-h":!0}),D(Be)!=="svelte-va3oxy"&&(Be.innerHTML=dt),Xe.forEach(p),et=T(de),ke=c(de,"DIV",{class:!0});var Ye=k(ke);_e=c(Ye,"CANVAS",{"aria-label":!0,class:!0}),k(_e).forEach(p),tt=T(Ye),Q&&Q.l(Ye),Ye.forEach(p),lt=T(de),Pe=c(de,"P",{class:!0,"data-svelte-h":!0}),D(Pe)!=="svelte-ns7wsm"&&(Pe.textContent=vt),de.forEach(p),ze=T(i),Xt(Ce.$$.fragment,i),this.h()},h(){b(s,"type","search"),b(s,"placeholder","search Beam's labels, subjects, tokens or L28 E155"),b(s,"aria-label","Search"),b(s,"class","svelte-1ap2cn9"),d.__value="",ne(d,d.__value),b(r,"aria-label","Subject"),b(r,"class","svelte-1ap2cn9"),n[4]===void 0&&Ke(()=>n[24].call(r)),A.__value="+",ne(A,A.__value),y.__value="-",ne(y,y.__value),C.__value="any",ne(C,C.__value),b(g,"aria-label","Pole"),b(g,"class","svelte-1ap2cn9"),n[5]===void 0&&Ke(()=>n[25].call(g)),V.__value="verified",ne(V,V.__value),I.__value="layer",ne(I,I.__value),b(O,"aria-label","Sort"),b(O,"class","svelte-1ap2cn9"),n[6]===void 0&&Ke(()=>n[26].call(O)),b(l,"class","controls svelte-1ap2cn9"),b(ae,"type","checkbox"),b(j,"type","checkbox"),b(F,"type","checkbox"),b(re,"class","count svelte-1ap2cn9"),b(z,"class","controls svelte-1ap2cn9"),b(f,"class","results svelte-1ap2cn9"),be.__value="sig",ne(be,be.__value),me.__value="coh",ne(me,me.__value),ge.__value="subj",ne(ge,ge.__value),b(ce,"class","svelte-1ap2cn9"),n[7]===void 0&&Ke(()=>n[32].call(ce)),b(Ae,"class","controls svelte-1ap2cn9"),b(ye,"class","legend svelte-1ap2cn9"),b(_e,"aria-label","MoE layers 3 to 51 (rows) by experts 0 to 255 (columns)"),b(_e,"class","svelte-1ap2cn9"),b(ke,"class","gridwrap svelte-1ap2cn9"),b(Pe,"class","count svelte-1ap2cn9"),b(R,"class","atlas svelte-1ap2cn9")},m(i,_){Y&&Y.m(i,_),U(i,e,_),U(i,t,_),a(t,l),a(l,s),ne(s,n[0]),a(l,o),a(l,r),a(r,d);for(let S=0;S<G.length;S+=1)G[S]&&G[S].m(r,null);Le(r,n[4],!0),a(l,H),a(l,g),a(g,A),a(g,y),a(g,C),Le(g,n[5],!0),a(l,Z),a(l,O),a(O,V),a(O,I),Le(O,n[6],!0),a(t,$),a(t,z),a(z,ee),a(ee,ae),ae.checked=n[1],a(ee,Ee),a(z,oe),a(z,N),a(N,j),j.checked=n[2],a(N,Ne),a(z,X),a(z,B),a(B,F),F.checked=n[3],a(B,te),a(z,ie),a(z,re),a(re,Ie),a(re,Ue),a(t,h),a(t,f);for(let S=0;S<v.length;S+=1)v[S]&&v[S].m(f,null);a(t,le),K&&K.m(t,null),U(i,ve,_),U(i,R,_),a(R,fe),a(R,Ze),a(R,Ae),a(Ae,Me),a(Me,xe),a(Me,ce),a(ce,be),a(ce,me),a(ce,ge),Le(ce,n[7],!0),a(R,$e),a(R,ye),he.m(ye,null),a(ye,qe),a(ye,Be),a(R,et),a(R,ke),a(ke,_e),n[33](_e),a(ke,tt),Q&&Q.m(ke,null),a(R,lt),a(R,Pe),U(i,ze,_),Gt(Ce,i,_),Ve=!0,nt||(bt=[se(s,"input",n[23]),se(r,"change",n[24]),se(g,"change",n[25]),se(O,"change",n[26]),se(ae,"change",n[27]),se(j,"change",n[28]),se(F,"change",n[29]),se(ce,"change",n[32]),se(_e,"mousemove",n[17]),se(_e,"mouseleave",n[34]),se(_e,"click",n[18])],nt=!0)},p(i,_){if(i[10]?Y?Y.p(i,_):(Y=St(i),Y.c(),Y.m(e.parentNode,e)):Y&&(Y.d(1),Y=null),_[0]&1&&s.value!==i[0]&&ne(s,i[0]),_[0]&32768){He=De(i[15]);let W;for(W=0;W<He.length;W+=1){const we=Nt(i,He,W);G[W]?G[W].p(we,_):(G[W]=Pt(we),G[W].c(),G[W].m(r,null))}for(;W<G.length;W+=1)G[W].d(1);G.length=He.length}_[0]&32784&&Le(r,i[4]),_[0]&32&&Le(g,i[5]),_[0]&64&&Le(O,i[6]),_[0]&2&&(ae.checked=i[1]),_[0]&4&&(j.checked=i[2]),_[0]&8&&(F.checked=i[3]),(!Ve||_[0]&512)&&Se!==(Se=i[9].length.toLocaleString()+"")&&ue(Ie,Se),_[0]&22528&&(Je=De(i[14].slice(0,i[12])),v=Ft(v,_,mt,1,i,Je,m,f,Qt,Ot,null,Lt)),i[14].length>i[12]?K?K.p(i,_):(K=It(i),K.c(),K.m(t,null)):K&&(K.d(1),K=null),_[0]&128&&Le(ce,i[7]),Fe===(Fe=gt(i))&&he?he.p(i,_):(he.d(1),he=Fe(i),he&&(he.c(),he.m(ye,qe))),i[13]?Q?Q.p(i,_):(Q=Mt(i),Q.c(),Q.m(ke,null)):Q&&(Q.d(1),Q=null);const S={};Ce.$set(S)},i(i){Ve||(Jt(Ce.$$.fragment,i),Ve=!0)},o(i){zt(Ce.$$.fragment,i),Ve=!1},d(i){i&&(p(e),p(t),p(ve),p(R),p(ze)),Y&&Y.d(i),Bt(G,i);for(let _=0;_<v.length;_+=1)v[_].d();K&&K.d(),he.d(),n[33](null),Q&&Q.d(),n[35](null),Rt(Ce,i),nt=!1,qt(bt)}}}const ut=120;function ft(n){const e=document.createElement("span");e.style.color=`var(${n})`,document.body.appendChild(e);const t=getComputedStyle(e).color;return e.remove(),t}function ol(n,e,t){let l,s,o,r,d;const q={code:"#4c6ef5","computer science":"#15aabf",math:"#f59f00","format or syntax":"#868e96","language or script":"#be4bdb",general:"#94a3b8","other knowledge":"#82c91e",business:"#e8590c",health:"#e03131",law:"#7048e8",biology:"#2b8a3e",engineering:"#1971c2",physics:"#0b7285",economics:"#d9480f",psychology:"#c2255c",history:"#a07c3b",chemistry:"#5f3dc4",philosophy:"#495057"};let H=[],g=[],A="",E,y="",J=!1,C=!1,x=!1,Z="",O="+",V="verified",pe=ut,I="sig",M,$=null;Kt(async()=>{try{const[h,f]=await Promise.all([jt("index.json"),jt("summary.json")]),v=Object.fromEntries(h.fields.map((m,le)=>[m,le]));t(19,H=h.rows.map(m=>{const{layer:le,expert:ve,pole:R}=Wt(m[v.id]);return{id:m[v.id],layer:le,expert:ve,pole:R,name:m[v.name],subject:m[v.subject],coherent:!!m[v.coherent],sig:!!m[v.sig],judge:m[v.judge],verified:!!m[v.verified],tokens:m[v.tokens],hay:`${m[v.name]} ${m[v.subject]} ${m[v.tokens]} L${le} E${ve}`.toLowerCase()}})),t(20,g=f.moe_layers)}catch(h){t(10,A=h.message)}});function z(){t(8,M.width=256*4,M),t(8,M.height=g.length*4,M);const f=M.getContext("2d"),v=ft("--primary-color")||"#e8590c",m=ft("--border-color")||"#ddd",le=ft("--success-color")||"#2b8a3e";f.clearRect(0,0,M.width,M.height),g.forEach((ve,R)=>{for(let fe=0;fe<256;fe++){const je=d.get(`${ve}_${fe}`);je&&(f.fillStyle=I==="sig"?je.ver?le:je.sig?v:m:I==="coh"?je.coh?v:m:q[je.subj]||m,f.fillRect(fe*4,R*4,4-.6,4-.6))}})}function ee(h){const f=M.getBoundingClientRect(),v=Math.floor((h.clientX-f.left)/f.width*256),m=Math.floor((h.clientY-f.top)/f.height*g.length);return v>=0&&v<256&&m>=0&&m<g.length?{layer:g[m],expert:v,x:h.clientX-f.left,y:h.clientY-f.top}:null}function ae(h){const f=ee(h);if(!f){t(13,$=null);return}const v=d.get(`${f.layer}_${f.expert}`);t(13,$={...f,text:v?v.names.join(" / ")||"(no label)":"no sweep data"})}function Ee(h){const f=ee(h);f&&d.has(`${f.layer}_${f.expert}`)&&E.open(f.layer,f.expert)}function oe(){y=this.value,t(0,y)}function N(){Z=Qe(this),t(4,Z),t(15,l),t(19,H)}function j(){O=Qe(this),t(5,O)}function Ne(){V=Qe(this),t(6,V)}function X(){J=this.checked,t(1,J)}function B(){C=this.checked,t(2,C)}function F(){x=this.checked,t(3,x)}const te=h=>E.open(h.layer,h.expert,h.pole),ie=()=>t(12,pe+=ut);function re(){I=Qe(this),t(7,I)}function Se(h){Ct[h?"unshift":"push"](()=>{M=h,t(8,M)})}const Ie=()=>t(13,$=null);function Ue(h){Ct[h?"unshift":"push"](()=>{E=h,t(11,E)})}return n.$$.update=()=>{n.$$.dirty[0]&524288&&t(15,l=[...new Set(H.map(h=>h.subject).filter(h=>h&&h!=="none"))].sort()),n.$$.dirty[0]&1&&t(22,s=y.toLowerCase().split(/\s+/).filter(Boolean)),n.$$.dirty[0]&4718654&&t(9,o=H.filter(h=>(O==="any"||h.pole===O)&&(!J||h.sig)&&(!C||h.verified)&&(!x||h.coherent)&&(!Z||h.subject===Z)&&s.every(f=>h.hay.includes(f)))),n.$$.dirty[0]&576&&t(14,r=[...o].sort(V==="layer"?(h,f)=>h.layer-f.layer||h.expert-f.expert:(h,f)=>f.verified-h.verified||f.sig-h.sig||f.coherent-h.coherent||h.layer-f.layer)),n.$$.dirty[0]&127&&t(12,pe=ut),n.$$.dirty[0]&524288&&t(21,d=(()=>{const h=new Map;for(const f of H){const v=`${f.layer}_${f.expert}`,m=h.get(v)||{sig:!1,coh:!1,ver:!1,subj:"",rank:-1,names:[]};m.sig||=f.sig,m.coh||=f.coherent,m.ver||=f.verified;const le=2*f.sig+f.coherent;f.subject&&f.subject!=="none"&&le>m.rank&&(m.subj=f.subject,m.rank=le),f.name&&m.names.push(f.name),h.set(v,m)}return h})()),n.$$.dirty[0]&3146112&&M&&g.length&&z()},[y,J,C,x,Z,O,V,I,M,o,A,E,pe,$,r,l,q,ae,Ee,H,g,d,s,oe,N,j,Ne,X,B,F,te,ie,re,Se,Ie,Ue]}class fl extends Dt{constructor(e){super(),Ut(this,e,ol,al,Vt,{},null,[-1,-1])}}export{fl as default};
|
_astro/Recipes.BBr12ptW.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{S as se,i as ae,s as le,e as K,d as h,a as ne,t as oe,b as re,c as Q,f as O,u as ie,g as pe,h as U,j as i,m as ce,l as ee,k,n as N,o as $,p as q,q as I,r as ue,v as P,w as D,x as L,y as fe,z as _e,A as de,B as X,C as he,D as me}from"./data.B0LidU3o.js";import{E as ve}from"./ExpertDialog.Ckxn8qB9.js";/* empty css *//* empty css */function Y(c,t,s){const l=c.slice();l[9]=t[s];const n=l[9].poles[l[9].pole];l[10]=n;const g=l[4](l[9]);return l[11]=g,l}function Z(c){let t,s;return{c(){t=P("p"),s=L(c[1])},l(l){t=N(l,"P",{});var n=$(t);s=I(n,c[1]),n.forEach(h)},m(l,n){U(l,t,n),i(t,s)},p(l,n){n&2&&O(s,l[1])},d(l){l&&h(t)}}}function x(c,t){let s,l,n=t[10].name+"",g,y,b,A=X(t[9].layer,t[9].expert,t[9].pole,t[11].dose)+"",E,w,p,o=(t[11].prompt==="who"?"Who are you?":t[11].prompt)+"",u,m,f,S=t[11].text+"",r,_,j,C,T=t[10].subject+"",e,a,v="✓ verified",V,B,z;function te(){return t[7](t[9])}return{key:c,first:null,c(){s=P("button"),l=P("span"),g=L(n),y=D(),b=P("span"),E=L(A),w=D(),p=P("span"),u=L(o),m=D(),f=P("span"),r=L(S),_=D(),j=P("span"),C=P("span"),e=L(T),a=P("span"),a.textContent=v,V=D(),this.h()},l(M){s=N(M,"BUTTON",{class:!0});var d=$(s);l=N(d,"SPAN",{class:!0});var J=$(l);g=I(J,n),J.forEach(h),y=q(d),b=N(d,"SPAN",{class:!0});var R=$(b);E=I(R,A),R.forEach(h),w=q(d),p=N(d,"SPAN",{class:!0});var F=$(p);u=I(F,o),F.forEach(h),m=q(d),f=N(d,"SPAN",{class:!0});var G=$(f);r=I(G,S),G.forEach(h),_=q(d),j=N(d,"SPAN",{class:!0});var W=$(j);C=N(W,"SPAN",{class:!0});var H=$(C);e=I(H,T),H.forEach(h),a=N(W,"SPAN",{class:!0,"data-svelte-h":!0}),he(a)!=="svelte-a0naym"&&(a.textContent=v),W.forEach(h),V=q(d),d.forEach(h),this.h()},h(){k(l,"class","title svelte-1c2sm3t"),k(b,"class","unit svelte-1c2sm3t"),k(p,"class","q svelte-1c2sm3t"),k(f,"class","a svelte-1c2sm3t"),k(C,"class","chip svelte-1c2sm3t"),k(a,"class","chip ok svelte-1c2sm3t"),k(j,"class","tags svelte-1c2sm3t"),k(s,"class","card svelte-1c2sm3t"),this.first=s},m(M,d){U(M,s,d),i(s,l),i(l,g),i(s,y),i(s,b),i(b,E),i(s,w),i(s,p),i(p,u),i(s,m),i(s,f),i(f,r),i(s,_),i(s,j),i(j,C),i(C,e),i(j,a),i(s,V),B||(z=ee(s,"click",te),B=!0)},p(M,d){t=M,d&8&&n!==(n=t[10].name+"")&&O(g,n),d&8&&A!==(A=X(t[9].layer,t[9].expert,t[9].pole,t[11].dose)+"")&&O(E,A),d&8&&o!==(o=(t[11].prompt==="who"?"Who are you?":t[11].prompt)+"")&&O(u,o),d&8&&S!==(S=t[11].text+"")&&O(r,S),d&8&&T!==(T=t[10].subject+"")&&O(e,T)},d(M){M&&h(s),B=!1,z()}}}function ge(c){let t,s,l,n,g=c[3].length+"",y,b,A,E,w,p=[],o=new Map,u,m,f,S,r,_=c[1]&&Z(c),j=K(c[3]);const C=e=>e[9].id;for(let e=0;e<j.length;e+=1){let a=Y(c,j,e),v=C(a);o.set(v,p[e]=x(v,a))}let T={};return m=new ve({props:T}),c[8](m),{c(){t=P("div"),s=P("input"),l=D(),n=P("span"),y=L(g),b=L(" recipes · every one steering-significant and matched by the blind judge"),A=D(),_&&_.c(),E=D(),w=P("div");for(let e=0;e<p.length;e+=1)p[e].c();u=D(),fe(m.$$.fragment),this.h()},l(e){t=N(e,"DIV",{class:!0});var a=$(t);s=N(a,"INPUT",{type:!0,placeholder:!0,"aria-label":!0,class:!0}),l=q(a),n=N(a,"SPAN",{class:!0});var v=$(n);y=I(v,g),b=I(v," recipes · every one steering-significant and matched by the blind judge"),v.forEach(h),a.forEach(h),A=q(e),_&&_.l(e),E=q(e),w=N(e,"DIV",{class:!0});var V=$(w);for(let B=0;B<p.length;B+=1)p[B].l(V);V.forEach(h),u=q(e),ue(m.$$.fragment,e),this.h()},h(){k(s,"type","search"),k(s,"placeholder","search recipes"),k(s,"aria-label","Search recipes"),k(s,"class","svelte-1c2sm3t"),k(n,"class","count svelte-1c2sm3t"),k(t,"class","bar svelte-1c2sm3t"),k(w,"class","grid svelte-1c2sm3t")},m(e,a){U(e,t,a),i(t,s),Q(s,c[0]),i(t,l),i(t,n),i(n,y),i(n,b),U(e,A,a),_&&_.m(e,a),U(e,E,a),U(e,w,a);for(let v=0;v<p.length;v+=1)p[v]&&p[v].m(w,null);U(e,u,a),ce(m,e,a),f=!0,S||(r=ee(s,"input",c[6]),S=!0)},p(e,[a]){a&1&&s.value!==e[0]&&Q(s,e[0]),(!f||a&8)&&g!==(g=e[3].length+"")&&O(y,g),e[1]?_?_.p(e,a):(_=Z(e),_.c(),_.m(E.parentNode,E)):_&&(_.d(1),_=null),a&28&&(j=K(e[3]),p=ie(p,a,C,1,e,j,o,w,pe,x,null,Y));const v={};m.$set(v)},i(e){f||(re(m.$$.fragment,e),f=!0)},o(e){oe(m.$$.fragment,e),f=!1},d(e){e&&(h(t),h(A),h(E),h(w),h(u)),_&&_.d(e);for(let a=0;a<p.length;a+=1)p[a].d();c[8](null),ne(m,e),S=!1,r()}}}function be(c,t,s){let l,n=[],g="",y="",b;_e(async()=>{try{s(5,n=await de("recipes.json"))}catch(o){s(1,g=o.message)}});const A=o=>{const u=o.poles[o.pole],m=r=>r.final&&r.status!=="format"&&r.status!=="loop",f=u.out.find(r=>r.prompt==="who"&&r.dose===1&&m(r))||u.out.find(r=>r.prompt==="who"&&m(r))||u.out.find(m)||u.out.find(r=>r.prompt==="who"&&r.dose===1)||u.out.find(r=>r.final),S=f&&(f.final||f.analysis)||"";return{prompt:f?f.prompt:"who",dose:f?f.dose:1,text:S.length>190?S.slice(0,190).replace(/\s+\S*$/,"")+"…":S}};function E(){y=this.value,s(0,y)}const w=o=>b.open(o.layer,o.expert,o.pole);function p(o){me[o?"unshift":"push"](()=>{b=o,s(2,b)})}return c.$$.update=()=>{c.$$.dirty&33&&s(3,l=n.filter(o=>{const u=o.poles[o.pole];return!y||`${u.name} ${u.subject} ${u.desc} ${u.tokens.join(" ")}`.toLowerCase().includes(y.toLowerCase())}))},[y,g,b,l,A,n,E,w,p]}class Se extends se{constructor(t){super(),ae(this,t,be,ge,le,{})}}export{Se as default};
|
_astro/Studio.js8y068v.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{S as Kn,i as Qn,s as Jn,I as We,d as g,F as ct,R as fe,k as v,h as H,j as h,l as we,n as C,o as O,p as B,C as ne,_ as ut,v as E,w as D,$ as ht,z as Zn,a0 as $n,f as me,q as F,x,J as Xe,e as De,E as Ke,c as It,a1 as es,Z as rt,D as vt,U as wt,P as Pt,T as jt,O as ts,L as ft,A as ns,M as zt,N as ss,Q as ls}from"./data.B0LidU3o.js";import{s as Ye,e as is,f as st,T as _t,g as mt}from"./transform.BXPAvMsA.js";const Ae={l:56,r:28,t:100,b:44};class os{constructor(e,{layers:t,order:s,colorOf:l,labelOf:i=()=>"",onHover:r,onPick:o}){this.container=e,this.layers=t,this.order=s,this.colorOf=l,this.labelOf=i,this.onHover=r,this.onPick=o,this.route=null,this.prev=null,this.progress=1,this.selected=null,this.hover=null,this.bg=document.createElement("canvas"),this.fg=document.createElement("canvas");for(const a of[this.bg,this.fg])a.style.position="absolute",a.style.inset="0",a.style.width="100%",a.style.height="100%",e.appendChild(a);this.fg.style.cursor="crosshair",this.fg.addEventListener("pointermove",a=>this.move(a)),this.fg.addEventListener("pointerleave",()=>{this.hover=null,this.onHover&&this.onHover(null),this.draw()}),this.fg.addEventListener("click",a=>{const u=this.at(a);u&&this.onPick&&this.onPick(u.i,u.e)}),this.ro=new ResizeObserver(()=>this.resize()),this.ro.observe(e),this.resize()}resize(){const e=this.container.clientWidth,t=this.container.clientHeight,s=Math.min(window.devicePixelRatio||1,2);if(!(!e||!t)){this.w=e,this.h=t,this.dpr=s;for(const l of[this.bg,this.fg])l.width=e*s,l.height=t*s;this.drawBackground(),this.draw()}}x(e){return Ae.l+e/(this.layers.length-1)*(this.w-Ae.l-Ae.r-this.inset())}y(e,t){return Ae.t+(this.order[e][t]+.5)/256*(this.h-Ae.t-Ae.b)}inset(){return this.w>820?430:0}colW(){return Math.max(3,(this.w-Ae.l-Ae.r-this.inset())/(this.layers.length-1)*.55)}bands(){return this.layers.map((e,t)=>{const s=new Array(256);for(let i=0;i<256;i++)s[this.order[t][i]]=this.colorOf(t,i);const l=[];return s.forEach((i,r)=>{const o=l[l.length-1];o&&o.c===i?o.end=r+1:l.push({c:i,start:r,end:r+1})}),l})}drawBackground(){const e=this.bg.getContext("2d");e.setTransform(this.dpr,0,0,this.dpr,0,0),e.clearRect(0,0,this.w,this.h);const t=Ae.t,s=this.h-Ae.t-Ae.b,l=c=>t+c/256*s,i=this.colW(),r=this.bands();for(let c=0;c<this.layers.length-1;c++){const w=r[c],f=new Map(r[c+1].map(m=>[m.c,m])),d=this.x(c)+i/2,_=this.x(c+1)-i/2,b=(d+_)/2;for(const m of w){const y=f.get(m.c);y&&(e.fillStyle=m.c,e.globalAlpha=.16,e.beginPath(),e.moveTo(d,l(m.start)),e.bezierCurveTo(b,l(m.start),b,l(y.start),_,l(y.start)),e.lineTo(_,l(y.end)),e.bezierCurveTo(b,l(y.end),b,l(m.end),d,l(m.end)),e.closePath(),e.fill())}}this.layers.forEach((c,w)=>{const f=this.x(w);for(const d of r[w])e.fillStyle=d.c,e.globalAlpha=.55,e.fillRect(f-i/2,l(d.start),i,Math.max(1,l(d.end)-l(d.start)-.5));e.globalAlpha=1,(w%4===0||w===this.layers.length-1)&&(e.fillStyle="#6b7280",e.font="10px ui-monospace, SFMono-Regular, Menlo, monospace",e.textAlign="center",e.fillText(`L${c}`,f,this.h-Ae.b+16))});const o=new Map;r.forEach((c,w)=>c.forEach(f=>{const d=l(f.end)-l(f.start);d>=14&&(o.get(f.c)||o.set(f.c,[]).get(f.c)).push({i:w,b:f,h:d})})),e.font="600 11px ui-sans-serif, system-ui, sans-serif",e.textAlign="center";const a=[],u=[...o.entries()].sort((c,w)=>Math.max(...w[1].map(f=>f.h))-Math.max(...c[1].map(f=>f.h)));for(const[c,w]of u){const f=this.labelOf(c);if(!f)continue;const d=e.measureText(f).width+10;for(const{i:_,b}of w.sort((m,y)=>y.h-m.h)){const m=Math.max(Ae.l+d/2,Math.min(this.x(_),this.w-this.inset()-Ae.r-d/2)),y=(l(b.start)+l(b.end))/2+4;if(!a.some(W=>Math.abs(W.x-m)<(W.w+d)/2&&Math.abs(W.y-y)<16)){a.push({x:m,y,w:d}),e.shadowColor="rgba(0, 0, 0, .9)",e.shadowBlur=5,e.fillStyle="#f1f3f5",e.fillText(f,m,y),e.shadowBlur=0;break}}}e.fillStyle="#6b7280",e.textAlign="left",e.font="11px ui-sans-serif, system-ui, sans-serif",e.fillText("first layer (input side) →",Ae.l-8,Ae.t-12),e.textAlign="right",e.fillText("→ last layer (output side)",this.w-Ae.r-this.inset(),Ae.t-12)}setRoute(e,{prev:t=null,animate:s=!0,onLayer:l}={}){if(this.prev=t,this.route=e,cancelAnimationFrame(this.raf),!s||matchMedia("(prefers-reduced-motion: reduce)").matches){this.progress=1,this.draw();return}const i=performance.now(),r=1700;let o=-1;const a=u=>{this.progress=Math.min(1,(u-i)/r);const c=Math.floor(this.progress*(this.layers.length-1));c!==o&&l&&(l(c),o=c),this.draw(),this.progress<1&&(this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}select(e,t){this.selected=e==null?null:{i:e,e:t},this.draw()}draw(){if(!this.w)return;const e=this.fg.getContext("2d");if(e.setTransform(this.dpr,0,0,this.dpr,0,0),e.clearRect(0,0,this.w,this.h),this.route){const t=this.layers.length,s=this.progress*(t-1),l=this.prev?this.prev.map(o=>new Set(o)):null,i=this.route.map(o=>new Set(o)),r=this.route.map((o,a)=>o.map(u=>this.y(a,u)).sort((u,c)=>u-c));e.globalCompositeOperation="lighter",e.lineWidth=1.4,e.strokeStyle="rgba(255, 190, 120, 0.32)";for(let o=0;o<8;o++){e.beginPath(),e.moveTo(this.x(0),r[0][o]);for(let a=0;a<t-1&&a<s;a++){const u=Math.min(1,s-a),c=this.x(a),w=this.x(a+1),f=r[a][o],d=r[a+1][o],_=(c+w)/2;u>=1?e.bezierCurveTo(_,f,_,d,w,d):e.lineTo(c+(w-c)*u,f+(d-f)*u)}e.stroke()}if(e.globalCompositeOperation="source-over",l)for(let o=0;o<t&&o<=s;o++)for(const a of this.prev[o])i[o].has(a)||this.dot(e,this.x(o),this.y(o,a),2.2,"rgba(116, 192, 252, 0.9)",6);for(let o=0;o<t&&o<=s;o++)for(const a of this.route[o]){const u=l&&!l[o].has(a);this.dot(e,this.x(o),this.y(o,a),u?3:2.3,u?"#ffa94d":"#fff4e6",u?12:7)}}for(const[t,s]of[[this.hover,"#ffffff"],[this.selected,"#ffd43b"]])t&&(e.strokeStyle=s,e.lineWidth=1.5,e.beginPath(),e.arc(this.x(t.i),this.y(t.i,t.e),6,0,Math.PI*2),e.stroke())}dot(e,t,s,l,i,r){e.shadowColor=i,e.shadowBlur=r,e.fillStyle=i,e.beginPath(),e.arc(t,s,l,0,Math.PI*2),e.fill(),e.shadowBlur=0}at(e){const t=this.fg.getBoundingClientRect(),s=e.clientX-t.left,l=e.clientY-t.top,i=this.layers.length,r=Math.round((s-Ae.l)/(this.w-Ae.l-Ae.r-this.inset())*(i-1));if(r<0||r>=i||Math.abs(s-this.x(r))>Math.max(8,this.colW()))return null;if(this.route){const u=this.route[r].map(c=>[c,Math.abs(this.y(r,c)-l)]).sort((c,w)=>c[1]-w[1])[0];if(u&&u[1]<7)return{i:r,e:u[0]}}const o=Math.floor((l-Ae.t)/(this.h-Ae.t-Ae.b)*256);if(o<0||o>255)return null;const a=this.order[r].indexOf(o);return a>=0?{i:r,e:a}:null}move(e){const t=this.at(e);t&&this.hover&&t.i===this.hover.i&&t.e===this.hover.e||!t&&!this.hover||(this.hover=t,this.onHover&&this.onHover(t),this.draw())}dispose(){cancelAnimationFrame(this.raf),this.ro.disconnect(),this.container.innerHTML=""}}function rs(n){let e;for(;e=n.sourceEvent;)n=e;return n}function Ze(n,e){if(n=rs(n),e===void 0&&(e=n.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var s=t.createSVGPoint();return s.x=n.clientX,s.y=n.clientY,s=s.matrixTransform(e.getScreenCTM().inverse()),[s.x,s.y]}if(e.getBoundingClientRect){var l=e.getBoundingClientRect();return[n.clientX-l.left-e.clientLeft,n.clientY-l.top-e.clientTop]}}return[n.pageX,n.pageY]}const kt={capture:!0,passive:!1};function yt(n){n.preventDefault(),n.stopImmediatePropagation()}function as(n){var e=n.document.documentElement,t=Ye(n).on("dragstart.drag",yt,kt);"onselectstart"in e?t.on("selectstart.drag",yt,kt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function us(n,e){var t=n.document.documentElement,s=Ye(n).on("dragstart.drag",null);e&&(s.on("click.drag",yt,kt),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in t?s.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var hs=1e-12;function Ot(n){return((n=Math.exp(n))+1/n)/2}function fs(n){return((n=Math.exp(n))-1/n)/2}function cs(n){return((n=Math.exp(2*n))-1)/(n+1)}const ps=function n(e,t,s){function l(i,r){var o=i[0],a=i[1],u=i[2],c=r[0],w=r[1],f=r[2],d=c-o,_=w-a,b=d*d+_*_,m,y;if(b<hs)y=Math.log(f/u)/e,m=function(J){return[o+J*d,a+J*_,u*Math.exp(e*J*y)]};else{var W=Math.sqrt(b),I=(f*f-u*u+s*b)/(2*u*t*W),T=(f*f-u*u-s*b)/(2*f*t*W),R=Math.log(Math.sqrt(I*I+1)-I),z=Math.log(Math.sqrt(T*T+1)-T);y=(z-R)/e,m=function(J){var Y=J*y,Ie=Ot(R),Ee=u/(t*W)*(Ie*cs(e*Y+R)-fs(R));return[o+Ee*d,a+Ee*_,u*Ie/Ot(e*Y+R)]}}return m.duration=y*1e3*e/Math.SQRT2,m}return l.rho=function(i){var r=Math.max(.001,+i),o=r*r,a=o*o;return n(r,o,a)},l}(Math.SQRT2,2,4);function ds(n){const e=+this._x.call(null,n),t=+this._y.call(null,n);return gn(this.cover(e,t),e,t,n)}function gn(n,e,t,s){if(isNaN(e)||isNaN(t))return n;var l,i=n._root,r={data:s},o=n._x0,a=n._y0,u=n._x1,c=n._y1,w,f,d,_,b,m,y,W;if(!i)return n._root=r,n;for(;i.length;)if((b=e>=(w=(o+u)/2))?o=w:u=w,(m=t>=(f=(a+c)/2))?a=f:c=f,l=i,!(i=i[y=m<<1|b]))return l[y]=r,n;if(d=+n._x.call(null,i.data),_=+n._y.call(null,i.data),e===d&&t===_)return r.next=i,l?l[y]=r:n._root=r,n;do l=l?l[y]=new Array(4):n._root=new Array(4),(b=e>=(w=(o+u)/2))?o=w:u=w,(m=t>=(f=(a+c)/2))?a=f:c=f;while((y=m<<1|b)===(W=(_>=f)<<1|d>=w));return l[W]=i,l[y]=r,n}function vs(n){var e,t,s=n.length,l,i,r=new Array(s),o=new Array(s),a=1/0,u=1/0,c=-1/0,w=-1/0;for(t=0;t<s;++t)isNaN(l=+this._x.call(null,e=n[t]))||isNaN(i=+this._y.call(null,e))||(r[t]=l,o[t]=i,l<a&&(a=l),l>c&&(c=l),i<u&&(u=i),i>w&&(w=i));if(a>c||u>w)return this;for(this.cover(a,u).cover(c,w),t=0;t<s;++t)gn(this,r[t],o[t],n[t]);return this}function _s(n,e){if(isNaN(n=+n)||isNaN(e=+e))return this;var t=this._x0,s=this._y0,l=this._x1,i=this._y1;if(isNaN(t))l=(t=Math.floor(n))+1,i=(s=Math.floor(e))+1;else{for(var r=l-t||1,o=this._root,a,u;t>n||n>=l||s>e||e>=i;)switch(u=(e<s)<<1|n<t,a=new Array(4),a[u]=o,o=a,r*=2,u){case 0:l=t+r,i=s+r;break;case 1:t=l-r,i=s+r;break;case 2:l=t+r,s=i-r;break;case 3:t=l-r,s=i-r;break}this._root&&this._root.length&&(this._root=o)}return this._x0=t,this._y0=s,this._x1=l,this._y1=i,this}function ms(){var n=[];return this.visit(function(e){if(!e.length)do n.push(e.data);while(e=e.next)}),n}function bs(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Le(n,e,t,s,l){this.node=n,this.x0=e,this.y0=t,this.x1=s,this.y1=l}function gs(n,e,t){var s,l=this._x0,i=this._y0,r,o,a,u,c=this._x1,w=this._y1,f=[],d=this._root,_,b;for(d&&f.push(new Le(d,l,i,c,w)),t==null?t=1/0:(l=n-t,i=e-t,c=n+t,w=e+t,t*=t);_=f.pop();)if(!(!(d=_.node)||(r=_.x0)>c||(o=_.y0)>w||(a=_.x1)<l||(u=_.y1)<i))if(d.length){var m=(r+a)/2,y=(o+u)/2;f.push(new Le(d[3],m,y,a,u),new Le(d[2],r,y,m,u),new Le(d[1],m,o,a,y),new Le(d[0],r,o,m,y)),(b=(e>=y)<<1|n>=m)&&(_=f[f.length-1],f[f.length-1]=f[f.length-1-b],f[f.length-1-b]=_)}else{var W=n-+this._x.call(null,d.data),I=e-+this._y.call(null,d.data),T=W*W+I*I;if(T<t){var R=Math.sqrt(t=T);l=n-R,i=e-R,c=n+R,w=e+R,s=d.data}}return s}function ws(n){if(isNaN(c=+this._x.call(null,n))||isNaN(w=+this._y.call(null,n)))return this;var e,t=this._root,s,l,i,r=this._x0,o=this._y0,a=this._x1,u=this._y1,c,w,f,d,_,b,m,y;if(!t)return this;if(t.length)for(;;){if((_=c>=(f=(r+a)/2))?r=f:a=f,(b=w>=(d=(o+u)/2))?o=d:u=d,e=t,!(t=t[m=b<<1|_]))return this;if(!t.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(s=e,y=m)}for(;t.data!==n;)if(l=t,!(t=t.next))return this;return(i=t.next)&&delete t.next,l?(i?l.next=i:delete l.next,this):e?(i?e[m]=i:delete e[m],(t=e[0]||e[1]||e[2]||e[3])&&t===(e[3]||e[2]||e[1]||e[0])&&!t.length&&(s?s[y]=t:this._root=t),this):(this._root=i,this)}function ks(n){for(var e=0,t=n.length;e<t;++e)this.remove(n[e]);return this}function ys(){return this._root}function Cs(){var n=0;return this.visit(function(e){if(!e.length)do++n;while(e=e.next)}),n}function Es(n){var e=[],t,s=this._root,l,i,r,o,a;for(s&&e.push(new Le(s,this._x0,this._y0,this._x1,this._y1));t=e.pop();)if(!n(s=t.node,i=t.x0,r=t.y0,o=t.x1,a=t.y1)&&s.length){var u=(i+o)/2,c=(r+a)/2;(l=s[3])&&e.push(new Le(l,u,c,o,a)),(l=s[2])&&e.push(new Le(l,i,c,u,a)),(l=s[1])&&e.push(new Le(l,u,r,o,c)),(l=s[0])&&e.push(new Le(l,i,r,u,c))}return this}function Ts(n){var e=[],t=[],s;for(this._root&&e.push(new Le(this._root,this._x0,this._y0,this._x1,this._y1));s=e.pop();){var l=s.node;if(l.length){var i,r=s.x0,o=s.y0,a=s.x1,u=s.y1,c=(r+a)/2,w=(o+u)/2;(i=l[0])&&e.push(new Le(i,r,o,c,w)),(i=l[1])&&e.push(new Le(i,c,o,a,w)),(i=l[2])&&e.push(new Le(i,r,w,c,u)),(i=l[3])&&e.push(new Le(i,c,w,a,u))}t.push(s)}for(;s=t.pop();)n(s.node,s.x0,s.y0,s.x1,s.y1);return this}function Ms(n){return n[0]}function Ns(n){return arguments.length?(this._x=n,this):this._x}function Ss(n){return n[1]}function As(n){return arguments.length?(this._y=n,this):this._y}function wn(n,e,t){var s=new Et(e??Ms,t??Ss,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function Et(n,e,t,s,l,i){this._x=n,this._y=e,this._x0=t,this._y0=s,this._x1=l,this._y1=i,this._root=void 0}function Bt(n){for(var e={data:n.data},t=e;n=n.next;)t=t.next={data:n.data};return e}var qe=wn.prototype=Et.prototype;qe.copy=function(){var n=new Et(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,t,s;if(!e)return n;if(!e.length)return n._root=Bt(e),n;for(t=[{source:e,target:n._root=new Array(4)}];e=t.pop();)for(var l=0;l<4;++l)(s=e.source[l])&&(s.length?t.push({source:s,target:e.target[l]=new Array(4)}):e.target[l]=Bt(s));return n};qe.add=ds;qe.addAll=vs;qe.cover=_s;qe.data=ms;qe.extent=bs;qe.find=gs;qe.remove=ws;qe.removeAll=ks;qe.root=ys;qe.size=Cs;qe.visit=Es;qe.visitAfter=Ts;qe.x=Ns;qe.y=As;const at=n=>()=>n;function Is(n,{sourceEvent:e,target:t,transform:s,dispatch:l}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:l}})}function bt(n){n.stopImmediatePropagation()}function tt(n){n.preventDefault(),n.stopImmediatePropagation()}function Ps(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function js(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function Dt(){return this.__zoom||st}function zs(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function Os(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bs(n,e,t){var s=n.invertX(e[0][0])-t[0][0],l=n.invertX(e[1][0])-t[1][0],i=n.invertY(e[0][1])-t[0][1],r=n.invertY(e[1][1])-t[1][1];return n.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r))}function Ds(){var n=Ps,e=js,t=Bs,s=zs,l=Os,i=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],o=250,a=ps,u=is("start","zoom","end"),c,w,f,d=500,_=150,b=0,m=10;function y(p){p.property("__zoom",Dt).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",Ie).on("dblclick.zoom",Ee).filter(l).on("touchstart.zoom",se).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",K).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(p,A,M,j){var q=p.selection?p.selection():p;q.property("__zoom",Dt),p!==q?R(p,A,M,j):q.interrupt().each(function(){z(this,arguments).event(j).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},y.scaleBy=function(p,A,M,j){y.scaleTo(p,function(){var q=this.__zoom.k,X=typeof A=="function"?A.apply(this,arguments):A;return q*X},M,j)},y.scaleTo=function(p,A,M,j){y.transform(p,function(){var q=e.apply(this,arguments),X=this.__zoom,V=M==null?T(q):typeof M=="function"?M.apply(this,arguments):M,U=X.invert(V),L=typeof A=="function"?A.apply(this,arguments):A;return t(I(W(X,L),V,U),q,r)},M,j)},y.translateBy=function(p,A,M,j){y.transform(p,function(){return t(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof M=="function"?M.apply(this,arguments):M),e.apply(this,arguments),r)},null,j)},y.translateTo=function(p,A,M,j,q){y.transform(p,function(){var X=e.apply(this,arguments),V=this.__zoom,U=j==null?T(X):typeof j=="function"?j.apply(this,arguments):j;return t(st.translate(U[0],U[1]).scale(V.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof M=="function"?-M.apply(this,arguments):-M),X,r)},j,q)};function W(p,A){return A=Math.max(i[0],Math.min(i[1],A)),A===p.k?p:new _t(A,p.x,p.y)}function I(p,A,M){var j=A[0]-M[0]*p.k,q=A[1]-M[1]*p.k;return j===p.x&&q===p.y?p:new _t(p.k,j,q)}function T(p){return[(+p[0][0]+ +p[1][0])/2,(+p[0][1]+ +p[1][1])/2]}function R(p,A,M,j){p.on("start.zoom",function(){z(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(j).end()}).tween("zoom",function(){var q=this,X=arguments,V=z(q,X).event(j),U=e.apply(q,X),L=M==null?T(U):typeof M=="function"?M.apply(q,X):M,Te=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),ce=q.__zoom,ae=typeof A=="function"?A.apply(q,X):A,pe=a(ce.invert(L).concat(Te/ce.k),ae.invert(L).concat(Te/ae.k));return function(Me){if(Me===1)Me=ae;else{var be=pe(Me),ze=Te/be[2];Me=new _t(ze,L[0]-be[0]*ze,L[1]-be[1]*ze)}V.zoom(null,Me)}})}function z(p,A,M){return!M&&p.__zooming||new J(p,A)}function J(p,A){this.that=p,this.args=A,this.active=0,this.sourceEvent=null,this.extent=e.apply(p,A),this.taps=0}J.prototype={event:function(p){return p&&(this.sourceEvent=p),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(p,A){return this.mouse&&p!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&p!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&p!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(p){var A=Ye(this.that).datum();u.call(p,this.that,new Is(p,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:u}),A)}};function Y(p,...A){if(!n.apply(this,arguments))return;var M=z(this,A).event(p),j=this.__zoom,q=Math.max(i[0],Math.min(i[1],j.k*Math.pow(2,s.apply(this,arguments)))),X=Ze(p);if(M.wheel)(M.mouse[0][0]!==X[0]||M.mouse[0][1]!==X[1])&&(M.mouse[1]=j.invert(M.mouse[0]=X)),clearTimeout(M.wheel);else{if(j.k===q)return;M.mouse=[X,j.invert(X)],mt(this),M.start()}tt(p),M.wheel=setTimeout(V,_),M.zoom("mouse",t(I(W(j,q),M.mouse[0],M.mouse[1]),M.extent,r));function V(){M.wheel=null,M.end()}}function Ie(p,...A){if(f||!n.apply(this,arguments))return;var M=p.currentTarget,j=z(this,A,!0).event(p),q=Ye(p.view).on("mousemove.zoom",L,!0).on("mouseup.zoom",Te,!0),X=Ze(p,M),V=p.clientX,U=p.clientY;as(p.view),bt(p),j.mouse=[X,this.__zoom.invert(X)],mt(this),j.start();function L(ce){if(tt(ce),!j.moved){var ae=ce.clientX-V,pe=ce.clientY-U;j.moved=ae*ae+pe*pe>b}j.event(ce).zoom("mouse",t(I(j.that.__zoom,j.mouse[0]=Ze(ce,M),j.mouse[1]),j.extent,r))}function Te(ce){q.on("mousemove.zoom mouseup.zoom",null),us(ce.view,j.moved),tt(ce),j.event(ce).end()}}function Ee(p,...A){if(n.apply(this,arguments)){var M=this.__zoom,j=Ze(p.changedTouches?p.changedTouches[0]:p,this),q=M.invert(j),X=M.k*(p.shiftKey?.5:2),V=t(I(W(M,X),j,q),e.apply(this,A),r);tt(p),o>0?Ye(this).transition().duration(o).call(R,V,j,p):Ye(this).call(y.transform,V,j,p)}}function se(p,...A){if(n.apply(this,arguments)){var M=p.touches,j=M.length,q=z(this,A,p.changedTouches.length===j).event(p),X,V,U,L;for(bt(p),V=0;V<j;++V)U=M[V],L=Ze(U,this),L=[L,this.__zoom.invert(L),U.identifier],q.touch0?!q.touch1&&q.touch0[2]!==L[2]&&(q.touch1=L,q.taps=0):(q.touch0=L,X=!0,q.taps=1+!!c);c&&(c=clearTimeout(c)),X&&(q.taps<2&&(w=L[0],c=setTimeout(function(){c=null},d)),mt(this),q.start())}}function G(p,...A){if(this.__zooming){var M=z(this,A).event(p),j=p.changedTouches,q=j.length,X,V,U,L;for(tt(p),X=0;X<q;++X)V=j[X],U=Ze(V,this),M.touch0&&M.touch0[2]===V.identifier?M.touch0[0]=U:M.touch1&&M.touch1[2]===V.identifier&&(M.touch1[0]=U);if(V=M.that.__zoom,M.touch1){var Te=M.touch0[0],ce=M.touch0[1],ae=M.touch1[0],pe=M.touch1[1],Me=(Me=ae[0]-Te[0])*Me+(Me=ae[1]-Te[1])*Me,be=(be=pe[0]-ce[0])*be+(be=pe[1]-ce[1])*be;V=W(V,Math.sqrt(Me/be)),U=[(Te[0]+ae[0])/2,(Te[1]+ae[1])/2],L=[(ce[0]+pe[0])/2,(ce[1]+pe[1])/2]}else if(M.touch0)U=M.touch0[0],L=M.touch0[1];else return;M.zoom("touch",t(I(V,U,L),M.extent,r))}}function K(p,...A){if(this.__zooming){var M=z(this,A).event(p),j=p.changedTouches,q=j.length,X,V;for(bt(p),f&&clearTimeout(f),f=setTimeout(function(){f=null},d),X=0;X<q;++X)V=j[X],M.touch0&&M.touch0[2]===V.identifier?delete M.touch0:M.touch1&&M.touch1[2]===V.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(V=Ze(V,this),Math.hypot(w[0]-V[0],w[1]-V[1])<m)){var U=Ye(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return y.wheelDelta=function(p){return arguments.length?(s=typeof p=="function"?p:at(+p),y):s},y.filter=function(p){return arguments.length?(n=typeof p=="function"?p:at(!!p),y):n},y.touchable=function(p){return arguments.length?(l=typeof p=="function"?p:at(!!p),y):l},y.extent=function(p){return arguments.length?(e=typeof p=="function"?p:at([[+p[0][0],+p[0][1]],[+p[1][0],+p[1][1]]]),y):e},y.scaleExtent=function(p){return arguments.length?(i[0]=+p[0],i[1]=+p[1],y):[i[0],i[1]]},y.translateExtent=function(p){return arguments.length?(r[0][0]=+p[0][0],r[1][0]=+p[1][0],r[0][1]=+p[0][1],r[1][1]=+p[1][1],y):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},y.constrain=function(p){return arguments.length?(t=p,y):t},y.duration=function(p){return arguments.length?(o=+p,y):o},y.interpolate=function(p){return arguments.length?(a=p,y):a},y.on=function(){var p=u.on.apply(u,arguments);return p===u?y:p},y.clickDistance=function(p){return arguments.length?(b=(p=+p)*p,y):Math.sqrt(b)},y.tapDistance=function(p){return arguments.length?(m=+p,y):m},y}class Vs{constructor(e,{points:t,clusters:s,style:l,onHover:i,onPick:r}){this.container=e,this.points=t,this.clusters=s,this.style=l,this.onHover=i,this.onPick=r,this.t=st,this.hover=null,this.selected=null,this.canvas=document.createElement("canvas"),Object.assign(this.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"grab"}),e.appendChild(this.canvas),this.zoom=Ds().scaleExtent([.8,24]).on("zoom",o=>{this.t=o.transform,this.draw()}),Ye(this.canvas).call(this.zoom).on("dblclick.zoom",null),this.canvas.addEventListener("pointermove",o=>this.move(o)),this.canvas.addEventListener("pointerleave",()=>{this.hover=null,this.onHover&&this.onHover(null),this.draw()}),this.canvas.addEventListener("click",o=>{const a=this.at(o);a&&this.onPick&&this.onPick(a.i,a.e)}),this.ro=new ResizeObserver(()=>this.resize()),this.ro.observe(e),this.resize()}inset(){return this.w>820?430:0}resize(){const e=this.container.clientWidth,t=this.container.clientHeight,s=Math.min(window.devicePixelRatio||1,2);if(!e||!t)return;this.w=e,this.h=t,this.dpr=s,this.canvas.width=e*s,this.canvas.height=t*s;const l=e<=820,i=l?Math.min(e-32,t-32):Math.min(e-this.inset()-120,t-150);this.box=l?{x0:(e-i)/2,y0:(t-i)/2,s:i}:{x0:(e-this.inset()-i)/2,y0:90+(t-150-i)/2,s:i},this.tree=wn().x(r=>this.bx(r)).y(r=>this.by(r)).addAll(this.points),this.draw()}bx(e){return this.box.x0+e.x*this.box.s}by(e){return this.box.y0+(1-e.y)*this.box.s}refresh(){this.draw()}select(e,t){this.selected=e==null?null:this.points.find(s=>s.i===e&&s.e===t)||null,this.draw()}focusOn(e,t){const s=this.points.find(r=>r.i===e&&r.e===t);if(!s)return;const l=Math.max(this.t.k,3),i=st.translate((this.w-this.inset())/2-this.bx(s)*l,this.h/2-this.by(s)*l).scale(l);Ye(this.canvas).transition().duration(750).call(this.zoom.transform,i)}reset(){Ye(this.canvas).transition().duration(600).call(this.zoom.transform,st)}draw(){if(!this.box)return;const e=this.canvas.getContext("2d");e.setTransform(this.dpr,0,0,this.dpr,0,0),e.clearRect(0,0,this.w,this.h);const{k:t,x:s,y:l}=this.t,i=f=>this.bx(f)*t+s,r=f=>this.by(f)*t+l,o=Math.min(3.2,1.1+.35*t),a=[];for(const f of this.points){const d=this.style(f);if(d.alpha<=0)continue;const _=i(f),b=r(f);if(!(_<-10||b<-10||_>this.w+10||b>this.h+10)){if(d.glow){a.push([_,b,d]);continue}if(d.ring){e.globalAlpha=d.alpha,e.strokeStyle=d.color,e.lineWidth=1.2,e.beginPath(),e.arc(_,b,o*(d.r||1)+1.5,0,Math.PI*2),e.stroke();continue}e.globalAlpha=d.alpha,e.fillStyle=d.color,e.beginPath(),e.arc(_,b,o*(d.r||1),0,Math.PI*2),e.fill()}}e.globalAlpha=1;for(const[f,d,_]of a)e.shadowColor=_.color,e.shadowBlur=10,e.fillStyle=_.color,e.beginPath(),e.arc(f,d,o*(_.r||1.6),0,Math.PI*2),e.fill();e.shadowBlur=0,e.textAlign="center";const u=new Set,c=[],w=Math.round(7+8*Math.min(t,3));for(const f of[...this.clusters].sort((d,_)=>_.n-d.n)){if(c.length>=w||!f.words.length)continue;const d=f.words.slice(0,2).join(" · ");if(u.has(d))continue;const _=this.bx(f)*t+s,b=this.by(f)*t+l;_<40||b<80||_>this.w-this.inset()-40||b>this.h-20||c.some(([m,y])=>Math.abs(m-_)<130&&Math.abs(y-b)<30)||(u.add(d),c.push([_,b]),e.font="600 11.5px ui-sans-serif, system-ui, sans-serif",e.fillStyle="rgba(232, 234, 238, 0.82)",e.shadowColor="#000",e.shadowBlur=6,e.fillText(d,_,b),e.font="10px ui-monospace, SFMono-Regular, Menlo, monospace",e.fillStyle="rgba(139, 147, 161, 0.9)",e.fillText(`L${f.layers[0]}–${f.layers[1]}`,_,b+13),e.shadowBlur=0)}for(const[f,d]of[[this.hover,"#ffffff"],[this.selected,"#ffd43b"]])f&&(e.strokeStyle=d,e.lineWidth=1.6,e.beginPath(),e.arc(i(f),r(f),7,0,Math.PI*2),e.stroke())}at(e){if(!this.tree)return null;const t=this.canvas.getBoundingClientRect(),[s,l]=this.t.invert([e.clientX-t.left,e.clientY-t.top]),i=this.tree.find(s,l,9/this.t.k);return i&&this.style(i).alpha>.15?i:null}move(e){const t=this.at(e);t!==this.hover&&(this.hover=t,this.canvas.style.cursor=t?"pointer":"grab",this.onHover&&this.onHover(t?{i:t.i,e:t.e}:null),this.draw())}dispose(){this.ro.disconnect(),this.container.innerHTML=""}}let nt=null,Ct=!0,Vt=0;function Ls(){if(!Ct)return null;if(!nt)try{nt=new(window.AudioContext||window.webkitAudioContext)}catch{return null}return nt.state==="suspended"&&nt.resume(),nt}function $e(n,e,{type:t="sine",gain:s=.05,to:l=null}={}){const i=Ls();if(!i)return;const r=i.currentTime,o=i.createOscillator(),a=i.createGain();o.type=t,o.frequency.setValueAtTime(n,r),l&&o.frequency.exponentialRampToValueAtTime(l,r+e),a.gain.setValueAtTime(0,r),a.gain.linearRampToValueAtTime(s,r+.01),a.gain.exponentialRampToValueAtTime(1e-4,r+e),o.connect(a).connect(i.destination),o.start(r),o.stop(r+e+.02)}const et={get enabled(){return Ct},set enabled(n){Ct=n},tick(){const n=performance.now();n-Vt<45||(Vt=n,$e(1800,.03,{type:"triangle",gain:.012}))},push(n){if(!n){$e(330,.18,{gain:.035});return}const e=n>0?440:294;$e(e,.35,{gain:.05,to:e*(1+.5*Math.abs(n))}),setTimeout(()=>$e(e*1.5,.25,{gain:.025}),60)},layer(){$e(620,.06,{type:"triangle",gain:.02})},ban(n){$e(n?520:140,.6,{type:"sawtooth",gain:.025,to:n?90:520})}};function Lt(n,e,t){const s=n.slice();return s[108]=e[t],s}function qt(n,e,t){const s=n.slice();return s[111]=e[t],s[113]=t,s}function Rt(n,e,t){const s=n.slice();return s[113]=e[t],s}function Ut(n,e,t){const s=n.slice();return s[111]=e[t][0],s[118]=e[t][1],s}function Ht(n,e,t){const s=n.slice();return s[118]=e[t][0],s[119]=e[t][1],s}function Ft(n,e,t){const s=n.slice();return s[111]=e[t],s}function xt(n,e,t){const s=n.slice();return s[126]=e[t],s}function Yt(n,e,t){const s=n.slice();return s[116]=e[t],s[113]=t,s}function Xt(n){let e,t="Loading 12,544 experts…";return{c(){e=E("div"),e.textContent=t,this.h()},l(s){e=C(s,"DIV",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-4im5i2"&&(e.textContent=t),this.h()},h(){v(e,"class","loading svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function Wt(n){let e,t,s;return{c(){e=E("div"),t=x("Could not load the data: "),s=x(n[19]),this.h()},l(l){e=C(l,"DIV",{class:!0});var i=O(e);t=F(i,"Could not load the data: "),s=F(i,n[19]),i.forEach(g),this.h()},h(){v(e,"class","loading svelte-1pf3vnn")},m(l,i){H(l,e,i),h(e,t),h(e,s)},p(l,i){i[0]&524288&&me(s,l[19])},d(l){l&&g(e)}}}function qs(n){let e;return{c(){e=ht("path"),this.h()},l(t){e=ut(t,"path",{d:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0}),O(e).forEach(g),this.h()},h(){v(e,"d","M16 9.5l5 5M21 9.5l-5 5"),v(e,"stroke","currentColor"),v(e,"stroke-width","1.8"),v(e,"stroke-linecap","round")},m(t,s){H(t,e,s)},d(t){t&&g(e)}}}function Rs(n){let e;return{c(){e=ht("path"),this.h()},l(t){e=ut(t,"path",{d:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0}),O(e).forEach(g),this.h()},h(){v(e,"d","M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11"),v(e,"fill","none"),v(e,"stroke","currentColor"),v(e,"stroke-width","1.8"),v(e,"stroke-linecap","round")},m(t,s){H(t,e,s)},d(t){t&&g(e)}}}function Gt(n){let e,t,s,l=n[20][n[24].i]+"",i,r,o=n[24].e+"",a,u,c=(n[47](n[24].i,n[24].e).name||"no label")+"",w,f,d=n[47](n[24].i,n[24].e).verified,_=d&&Kt();return{c(){e=E("div"),t=E("b"),s=x("L"),i=x(l),r=x(" E"),a=x(o),u=x(" · "),w=x(c),f=D(),_&&_.c(),this.h()},l(b){e=C(b,"DIV",{class:!0,style:!0});var m=O(e);t=C(m,"B",{});var y=O(t);s=F(y,"L"),i=F(y,l),r=F(y," E"),a=F(y,o),y.forEach(g),u=F(m," · "),w=F(m,c),f=B(m),_&&_.l(m),m.forEach(g),this.h()},h(){v(e,"class","tip svelte-1pf3vnn"),Xe(e,"left",n[25].x+14+"px"),Xe(e,"top",n[25].y+14+"px")},m(b,m){H(b,e,m),h(e,t),h(t,s),h(t,i),h(t,r),h(t,a),h(e,u),h(e,w),h(e,f),_&&_.m(e,null)},p(b,m){m[0]&17825792&&l!==(l=b[20][b[24].i]+"")&&me(i,l),m[0]&16777216&&o!==(o=b[24].e+"")&&me(a,o),m[0]&16777216&&c!==(c=(b[47](b[24].i,b[24].e).name||"no label")+"")&&me(w,c),m[0]&16777216&&(d=b[47](b[24].i,b[24].e).verified),d?_||(_=Kt(),_.c(),_.m(e,null)):_&&(_.d(1),_=null),m[0]&33554432&&Xe(e,"left",b[25].x+14+"px"),m[0]&33554432&&Xe(e,"top",b[25].y+14+"px")},d(b){b&&g(e),_&&_.d()}}}function Kt(n){let e,t="verified";return{c(){e=E("span"),e.textContent=t,this.h()},l(s){e=C(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-ew0ywb"&&(e.textContent=t),this.h()},h(){v(e,"class","ok svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function Us(n){let e,t,s=`Every expert, placed by what it writes into the model (a UMAP of its write direction): experts
|
| 2 |
+
that write similar things sit together, and depth ends up running left to right although the layout never saw layer numbers. Scroll to zoom, drag to pan.`,l,i,r,o,a="subject",u,c,w="depth",f,d,_="ban a subject",b,m,y="reset zoom",W,I,T,R,z,J=De(Object.keys(n[46])),Y=[];for(let G=0;G<J.length;G+=1)Y[G]=Qt(xt(n,J,G));function Ie(G,K){return G[8]&&G[40]?Ys:G[6]==="subject"?xs:Fs}let Ee=Ie(n),se=Ee(n);return{c(){e=E("section"),t=E("p"),t.textContent=s,l=D(),i=E("div"),r=E("div"),o=E("button"),o.textContent=a,u=D(),c=E("button"),c.textContent=w,f=D(),d=E("button"),d.textContent=_,b=D(),m=E("button"),m.textContent=y,W=D(),I=E("div");for(let G=0;G<Y.length;G+=1)Y[G].c();T=D(),se.c(),this.h()},l(G){e=C(G,"SECTION",{class:!0});var K=O(e);t=C(K,"P",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-1n3wjls"&&(t.textContent=s),l=B(K),i=C(K,"DIV",{class:!0});var p=O(i);r=C(p,"DIV",{class:!0});var A=O(r);o=C(A,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(o)!=="svelte-1sumpdr"&&(o.textContent=a),u=B(A),c=C(A,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(c)!=="svelte-sscolm"&&(c.textContent=w),f=B(A),d=C(A,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(d)!=="svelte-9rk7uq"&&(d.textContent=_),A.forEach(g),b=B(p),m=C(p,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(m)!=="svelte-1s3tsq1"&&(m.textContent=y),p.forEach(g),W=B(K),I=C(K,"DIV",{class:!0});var M=O(I);for(let j=0;j<Y.length;j+=1)Y[j].l(M);M.forEach(g),T=B(K),se.l(K),K.forEach(g),this.h()},h(){v(t,"class","lead svelte-1pf3vnn"),v(o,"class","svelte-1pf3vnn"),fe(o,"on",n[6]==="subject"&&!n[8]),v(c,"class","svelte-1pf3vnn"),fe(c,"on",n[6]==="depth"&&!n[8]),v(d,"class","svelte-1pf3vnn"),fe(d,"on",n[8]),v(r,"class","seg svelte-1pf3vnn"),v(m,"class","ghost svelte-1pf3vnn"),v(i,"class","row svelte-1pf3vnn"),v(I,"class","seg small svelte-1pf3vnn"),v(e,"class","block svelte-1pf3vnn")},m(G,K){H(G,e,K),h(e,t),h(e,l),h(e,i),h(i,r),h(r,o),h(r,u),h(r,c),h(r,f),h(r,d),h(i,b),h(i,m),h(e,W),h(e,I);for(let p=0;p<Y.length;p+=1)Y[p]&&Y[p].m(I,null);h(e,T),se.m(e,null),R||(z=[we(o,"click",n[77]),we(c,"click",n[78]),we(d,"click",n[79]),we(m,"click",n[80])],R=!0)},p(G,K){if(K[0]&320&&fe(o,"on",G[6]==="subject"&&!G[8]),K[0]&320&&fe(c,"on",G[6]==="depth"&&!G[8]),K[0]&256&&fe(d,"on",G[8]),K[0]&128|K[1]&32768){J=De(Object.keys(G[46]));let p;for(p=0;p<J.length;p+=1){const A=xt(G,J,p);Y[p]?Y[p].p(A,K):(Y[p]=Qt(A),Y[p].c(),Y[p].m(I,null))}for(;p<Y.length;p+=1)Y[p].d(1);Y.length=J.length}Ee===(Ee=Ie(G))&&se?se.p(G,K):(se.d(1),se=Ee(G),se&&(se.c(),se.m(e,null)))},d(G){G&&g(e),Ke(Y,G),se.d(),R=!1,ct(z)}}}function Hs(n){let e,t,s="One token's path through Beam",l,i,r=`In each of Beam's 49 MoE layers the router sends a token to just 8 of 256 experts. The chart shows
|
| 3 |
+
those 8 as glowing strands; the coloured bands group experts by the subject Beam gave them.`,o,a,u='<span class="num svelte-1pf3vnn">1</span>Pick a question',c,w,f,d=n[41].text+"",_,b,m,y,W="‹",I,T,R,z=n[3]+1+"",J,Y,Ie=n[1].questions.length+"",Ee,se,G,K="›",p,A,M='<span class="num svelte-1pf3vnn">2</span>Turn the reasoning effort',j,q,X,V,U,L,Te="start of thinking",ce,ae,pe="effort digit",Me,be,ze,je,$=n[28]?"■ stop":"▶ sweep",le,ge,ie,ue="↻",de,ke,Ne,oe='<span class="num svelte-1pf3vnn">3</span>Click any expert on the chart to push it',Re,Se,he,ee=De(n[1].efforts),N=[];for(let te=0;te<ee.length;te+=1)N[te]=en(Yt(n,ee,te));function S(te,Q){return te[5]!=null?Ws:Xs}let P=S(n),ye=P(n),_e=!n[10]&&tn(n);return{c(){e=E("section"),t=E("h3"),t.textContent=s,l=D(),i=E("p"),i.textContent=r,o=D(),a=E("div"),a.innerHTML=u,c=D(),w=E("div"),f=E("p"),_=x(d),b=D(),m=E("div"),y=E("button"),y.textContent=W,I=D(),T=E("span"),R=x("question "),J=x(z),Y=x(" of "),Ee=x(Ie),se=D(),G=E("button"),G.textContent=K,p=D(),A=E("div"),A.innerHTML=M,j=D(),q=E("div");for(let te=0;te<N.length;te+=1)N[te].c();X=D(),V=E("div"),U=E("div"),L=E("button"),L.textContent=Te,ce=D(),ae=E("button"),ae.textContent=pe,Me=D(),be=E("span"),ze=D(),je=E("button"),le=x($),ge=D(),ie=E("button"),ie.textContent=ue,de=D(),ye.c(),ke=D(),Ne=E("div"),Ne.innerHTML=oe,Re=D(),_e&&_e.c(),this.h()},l(te){e=C(te,"SECTION",{class:!0});var Q=O(e);t=C(Q,"H3",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-1vv2oao"&&(t.textContent=s),l=B(Q),i=C(Q,"P",{class:!0,"data-svelte-h":!0}),ne(i)!=="svelte-if3u3f"&&(i.textContent=r),o=B(Q),a=C(Q,"DIV",{class:!0,"data-svelte-h":!0}),ne(a)!=="svelte-17ybwtg"&&(a.innerHTML=u),c=B(Q),w=C(Q,"DIV",{class:!0});var ve=O(w);f=C(ve,"P",{class:!0});var Pe=O(f);_=F(Pe,d),Pe.forEach(g),b=B(ve),m=C(ve,"DIV",{class:!0});var Ue=O(m);y=C(Ue,"BUTTON",{"aria-label":!0,class:!0,"data-svelte-h":!0}),ne(y)!=="svelte-157b7bk"&&(y.textContent=W),I=B(Ue),T=C(Ue,"SPAN",{});var Fe=O(T);R=F(Fe,"question "),J=F(Fe,z),Y=F(Fe," of "),Ee=F(Fe,Ie),Fe.forEach(g),se=B(Ue),G=C(Ue,"BUTTON",{"aria-label":!0,class:!0,"data-svelte-h":!0}),ne(G)!=="svelte-10mjok1"&&(G.textContent=K),Ue.forEach(g),ve.forEach(g),p=B(Q),A=C(Q,"DIV",{class:!0,"data-svelte-h":!0}),ne(A)!=="svelte-1h5velf"&&(A.innerHTML=M),j=B(Q),q=C(Q,"DIV",{class:!0,role:!0,"aria-label":!0});var xe=O(q);for(let Qe=0;Qe<N.length;Qe+=1)N[Qe].l(xe);xe.forEach(g),X=B(Q),V=C(Q,"DIV",{class:!0});var He=O(V);U=C(He,"DIV",{class:!0});var Ve=O(U);L=C(Ve,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(L)!=="svelte-1qkzvf9"&&(L.textContent=Te),ce=B(Ve),ae=C(Ve,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(ae)!=="svelte-1v4i3x"&&(ae.textContent=pe),Ve.forEach(g),Me=B(He),be=C(He,"SPAN",{class:!0}),O(be).forEach(g),ze=B(He),je=C(He,"BUTTON",{class:!0,title:!0});var Ge=O(je);le=F(Ge,$),Ge.forEach(g),ge=B(He),ie=C(He,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ne(ie)!=="svelte-1wjgqbn"&&(ie.textContent=ue),He.forEach(g),de=B(Q),ye.l(Q),ke=B(Q),Ne=C(Q,"DIV",{class:!0,"data-svelte-h":!0}),ne(Ne)!=="svelte-18cfqfq"&&(Ne.innerHTML=oe),Re=B(Q),_e&&_e.l(Q),Q.forEach(g),this.h()},h(){v(t,"class","svelte-1pf3vnn"),v(i,"class","lead svelte-1pf3vnn"),v(a,"class","step svelte-1pf3vnn"),v(f,"class","qtext svelte-1pf3vnn"),v(y,"aria-label","Previous question"),v(y,"class","svelte-1pf3vnn"),v(G,"aria-label","Next question"),v(G,"class","svelte-1pf3vnn"),v(m,"class","qnav svelte-1pf3vnn"),v(w,"class","qcard svelte-1pf3vnn"),v(A,"class","step svelte-1pf3vnn"),v(q,"class","dial svelte-1pf3vnn"),v(q,"role","radiogroup"),v(q,"aria-label","Effort"),v(L,"class","svelte-1pf3vnn"),fe(L,"on",n[27]==="think_start"),v(ae,"class","svelte-1pf3vnn"),fe(ae,"on",n[27]==="n_last"),v(U,"class","seg svelte-1pf3vnn"),v(be,"class","spacer svelte-1pf3vnn"),v(je,"class","ghost small svelte-1pf3vnn"),v(je,"title","Step through every effort"),v(ie,"class","ghost small svelte-1pf3vnn"),v(ie,"title","Replay the animation"),v(V,"class","controls svelte-1pf3vnn"),v(Ne,"class","step svelte-1pf3vnn"),v(e,"class","block svelte-1pf3vnn")},m(te,Q){H(te,e,Q),h(e,t),h(e,l),h(e,i),h(e,o),h(e,a),h(e,c),h(e,w),h(w,f),h(f,_),h(w,b),h(w,m),h(m,y),h(m,I),h(m,T),h(T,R),h(T,J),h(T,Y),h(T,Ee),h(m,se),h(m,G),h(e,p),h(e,A),h(e,j),h(e,q);for(let ve=0;ve<N.length;ve+=1)N[ve]&&N[ve].m(q,null);h(e,X),h(e,V),h(V,U),h(U,L),h(U,ce),h(U,ae),h(V,Me),h(V,be),h(V,ze),h(V,je),h(je,le),h(V,ge),h(V,ie),h(e,de),ye.m(e,null),h(e,ke),h(e,Ne),h(e,Re),_e&&_e.m(e,null),Se||(he=[we(y,"click",n[71]),we(G,"click",n[72]),we(L,"click",n[74]),we(ae,"click",n[75]),we(je,"click",n[52]),we(ie,"click",n[76])],Se=!0)},p(te,Q){if(Q[1]&1024&&d!==(d=te[41].text+"")&&me(_,d),Q[0]&8&&z!==(z=te[3]+1+"")&&me(J,z),Q[0]&2&&Ie!==(Ie=te[1].questions.length+"")&&me(Ee,Ie),Q[0]&18|Q[1]&262144){ee=De(te[1].efforts);let ve;for(ve=0;ve<ee.length;ve+=1){const Pe=Yt(te,ee,ve);N[ve]?N[ve].p(Pe,Q):(N[ve]=en(Pe),N[ve].c(),N[ve].m(q,null))}for(;ve<N.length;ve+=1)N[ve].d(1);N.length=ee.length}Q[0]&134217728&&fe(L,"on",te[27]==="think_start"),Q[0]&134217728&&fe(ae,"on",te[27]==="n_last"),Q[0]&268435456&&$!==($=te[28]?"■ stop":"▶ sweep")&&me(le,$),P===(P=S(te))&&ye?ye.p(te,Q):(ye.d(1),ye=P(te),ye&&(ye.c(),ye.m(e,ke))),te[10]?_e&&(_e.d(1),_e=null):_e?_e.p(te,Q):(_e=tn(te),_e.c(),_e.m(e,null))},d(te){te&&g(e),Ke(N,te),ye.d(),_e&&_e.d(),Se=!1,ct(he)}}}function Qt(n){let e,t=n[126]==="all"?"all layers":`${n[126]} L${n[46][n[126]][0]}–${n[46][n[126]][1]}`,s,l,i;function r(){return n[81](n[126])}return{c(){e=E("button"),s=x(t),this.h()},l(o){e=C(o,"BUTTON",{class:!0});var a=O(e);s=F(a,t),a.forEach(g),this.h()},h(){v(e,"class","svelte-1pf3vnn"),fe(e,"on",n[7]===n[126])},m(o,a){H(o,e,a),h(e,s),l||(i=we(e,"click",r),l=!0)},p(o,a){n=o,a[0]&128|a[1]&32768&&fe(e,"on",n[7]===n[126])},d(o){o&&g(e),l=!1,i()}}}function Fs(n){let e,t='<span>L3</span><i class="svelte-1pf3vnn"></i><span>L51</span>';return{c(){e=E("div"),e.innerHTML=t,this.h()},l(s){e=C(s,"DIV",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1jxijaj"&&(e.innerHTML=t),this.h()},h(){v(e,"class","legend depth svelte-1pf3vnn")},m(s,l){H(s,e,l)},p:We,d(s){s&&g(e)}}}function xs(n){let e,t,s,l="Glowing points are verified: steering-significant and matched by the blind judge with high confidence. Dim points: no coherent label.",i=De(Object.entries(n[42])),r=[];for(let o=0;o<i.length;o+=1)r[o]=Jt(Ut(n,i,o));return{c(){e=E("div");for(let o=0;o<r.length;o+=1)r[o].c();t=D(),s=E("p"),s.textContent=l,this.h()},l(o){e=C(o,"DIV",{class:!0});var a=O(e);for(let u=0;u<r.length;u+=1)r[u].l(a);a.forEach(g),t=B(o),s=C(o,"P",{class:!0,"data-svelte-h":!0}),ne(s)!=="svelte-7r5sdl"&&(s.textContent=l),this.h()},h(){v(e,"class","legend svelte-1pf3vnn"),v(s,"class","note svelte-1pf3vnn")},m(o,a){H(o,e,a);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(e,null);H(o,t,a),H(o,s,a)},p(o,a){if(a[1]&2048){i=De(Object.entries(o[42]));let u;for(u=0;u<i.length;u+=1){const c=Ut(o,i,u);r[u]?r[u].p(c,a):(r[u]=Jt(c),r[u].c(),r[u].m(e,null))}for(;u<r.length;u+=1)r[u].d(1);r.length=i.length}},d(o){o&&(g(e),g(t),g(s)),Ke(r,o)}}}function Ys(n){let e,t="Remove the experts Beam labelled…",s,l,i,r,o=n[29]?`Restore ${n[2][n[9]].experts.length} experts`:`Ban ${n[2][n[9]].experts.length} ${n[9]} experts`,a,u,c,w,f,d="Change in MMLU-Pro accuracy (points) against banning the same number of random experts with matched routing load; 12,032 questions, paired.",_,b,m=De(["law","health","math"]),y=[];for(let T=0;T<3;T+=1)y[T]=Zt(Ft(n,m,T));let W=De(n[40]),I=[];for(let T=0;T<W.length;T+=1)I[T]=$t(Ht(n,W,T));return{c(){e=E("div"),e.textContent=t,s=D(),l=E("div");for(let T=0;T<3;T+=1)y[T].c();i=D(),r=E("button"),a=x(o),u=D(),c=E("div");for(let T=0;T<I.length;T+=1)I[T].c();w=D(),f=E("p"),f.textContent=d,this.h()},l(T){e=C(T,"DIV",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-avwu9i"&&(e.textContent=t),s=B(T),l=C(T,"DIV",{class:!0});var R=O(l);for(let Y=0;Y<3;Y+=1)y[Y].l(R);R.forEach(g),i=B(T),r=C(T,"BUTTON",{class:!0});var z=O(r);a=F(z,o),z.forEach(g),u=B(T),c=C(T,"DIV",{class:!0});var J=O(c);for(let Y=0;Y<I.length;Y+=1)I[Y].l(J);J.forEach(g),w=B(T),f=C(T,"P",{class:!0,"data-svelte-h":!0}),ne(f)!=="svelte-1pzo8me"&&(f.textContent=d),this.h()},h(){v(e,"class","k svelte-1pf3vnn"),v(l,"class","seg svelte-1pf3vnn"),v(r,"class","big svelte-1pf3vnn"),fe(r,"on",n[29]),v(c,"class","bars svelte-1pf3vnn"),v(f,"class","note svelte-1pf3vnn")},m(T,R){H(T,e,R),H(T,s,R),H(T,l,R);for(let z=0;z<3;z+=1)y[z]&&y[z].m(l,null);H(T,i,R),H(T,r,R),h(r,a),H(T,u,R),H(T,c,R);for(let z=0;z<I.length;z+=1)I[z]&&I[z].m(c,null);H(T,w,R),H(T,f,R),_||(b=we(r,"click",n[54]),_=!0)},p(T,R){if(R[0]&512|R[1]&16777216){m=De(["law","health","math"]);let z;for(z=0;z<3;z+=1){const J=Ft(T,m,z);y[z]?y[z].p(J,R):(y[z]=Zt(J),y[z].c(),y[z].m(l,null))}for(;z<3;z+=1)y[z].d(1)}if(R[0]&536871428&&o!==(o=T[29]?`Restore ${T[2][T[9]].experts.length} experts`:`Ban ${T[2][T[9]].experts.length} ${T[9]} experts`)&&me(a,o),R[0]&536870912&&fe(r,"on",T[29]),R[0]&536871424|R[1]&512){W=De(T[40]);let z;for(z=0;z<W.length;z+=1){const J=Ht(T,W,z);I[z]?I[z].p(J,R):(I[z]=$t(J),I[z].c(),I[z].m(c,null))}for(;z<I.length;z+=1)I[z].d(1);I.length=W.length}},d(T){T&&(g(e),g(s),g(l),g(i),g(r),g(u),g(c),g(w),g(f)),Ke(y,T),Ke(I,T),_=!1,b()}}}function Jt(n){let e,t,s=n[111]+"",l;return{c(){e=E("span"),t=E("i"),l=x(s),this.h()},l(i){e=C(i,"SPAN",{});var r=O(e);t=C(r,"I",{style:!0,class:!0}),O(t).forEach(g),l=F(r,s),r.forEach(g),this.h()},h(){Xe(t,"background",n[118]),v(t,"class","svelte-1pf3vnn")},m(i,r){H(i,e,r),h(e,t),h(e,l)},p:We,d(i){i&&g(e)}}}function Zt(n){let e,t,s,l;function i(){return n[82](n[111])}return{c(){e=E("button"),t=x(n[111]),this.h()},l(r){e=C(r,"BUTTON",{class:!0});var o=O(e);t=F(o,n[111]),o.forEach(g),this.h()},h(){v(e,"class","svelte-1pf3vnn"),fe(e,"on",n[9]===n[111])},m(r,o){H(r,e,o),h(e,t),s||(l=we(e,"click",i),s=!0)},p(r,o){n=r,o[0]&512&&fe(e,"on",n[9]===n[111])},d(r){r&&g(e),s=!1,l()}}}function $t(n){let e,t,s=n[118]+"",l,i,r,o,a,u,c=n[29]?(n[119].diff>0?"+":"")+n[119].diff.toFixed(1):"·",w,f;return{c(){e=E("div"),t=E("span"),l=x(s),i=D(),r=E("span"),o=E("span"),a=D(),u=E("span"),w=x(c),f=D(),this.h()},l(d){e=C(d,"DIV",{class:!0});var _=O(e);t=C(_,"SPAN",{class:!0});var b=O(t);l=F(b,s),b.forEach(g),i=B(_),r=C(_,"SPAN",{class:!0});var m=O(r);o=C(m,"SPAN",{class:!0,style:!0}),O(o).forEach(g),m.forEach(g),a=B(_),u=C(_,"SPAN",{class:!0});var y=O(u);w=F(y,c),y.forEach(g),f=B(_),_.forEach(g),this.h()},h(){v(t,"class","lab"),v(o,"class","fill svelte-1pf3vnn"),Xe(o,"width",(n[29]?Math.min(100,Math.abs(n[119].diff)/14*100):0)+"%"),fe(o,"neg",n[119].diff<0),v(r,"class","track svelte-1pf3vnn"),v(u,"class","val svelte-1pf3vnn"),v(e,"class","bar svelte-1pf3vnn"),fe(e,"own",n[118]===n[9])},m(d,_){H(d,e,_),h(e,t),h(t,l),h(e,i),h(e,r),h(r,o),h(e,a),h(e,u),h(u,w),h(e,f)},p(d,_){_[1]&512&&s!==(s=d[118]+"")&&me(l,s),_[0]&536870912|_[1]&512&&Xe(o,"width",(d[29]?Math.min(100,Math.abs(d[119].diff)/14*100):0)+"%"),_[1]&512&&fe(o,"neg",d[119].diff<0),_[0]&536870912|_[1]&512&&c!==(c=d[29]?(d[119].diff>0?"+":"")+d[119].diff.toFixed(1):"·")&&me(w,c),_[0]&512|_[1]&512&&fe(e,"own",d[118]===d[9])},d(d){d&&g(e)}}}function en(n){let e,t=n[116]+"",s,l,i,r;function o(){return n[73](n[113])}return{c(){e=E("button"),s=x(t),this.h()},l(a){e=C(a,"BUTTON",{role:!0,"aria-checked":!0,class:!0});var u=O(e);s=F(u,t),u.forEach(g),this.h()},h(){v(e,"role","radio"),v(e,"aria-checked",l=n[4]===n[113]),v(e,"class","svelte-1pf3vnn"),fe(e,"on",n[4]===n[113]),fe(e,"trained",n[116]>=8&&n[116]<=512)},m(a,u){H(a,e,u),h(e,s),i||(r=we(e,"click",o),i=!0)},p(a,u){n=a,u[0]&2&&t!==(t=n[116]+"")&&me(s,t),u[0]&16&&l!==(l=n[4]===n[113])&&v(e,"aria-checked",l),u[0]&16&&fe(e,"on",n[4]===n[113]),u[0]&2&&fe(e,"trained",n[116]>=8&&n[116]<=512)},d(a){a&&g(e),i=!1,r()}}}function Xs(n){let e,t="Only the effort number in the prompt changes; watch which experts the router swaps.";return{c(){e=E("p"),e.textContent=t,this.h()},l(s){e=C(s,"P",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-sufao"&&(e.textContent=t),this.h()},h(){v(e,"class","note svelte-1pf3vnn")},m(s,l){H(s,e,l)},p:We,d(s){s&&g(e)}}}function Ws(n){let e,t,s,l,i=n[20].length*8+"",r,o,a,u="orange",c,w,f="blue",d;return{c(){e=E("p"),t=E("b"),s=x(n[5]),l=x(" of "),r=x(i),o=x(" expert slots changed: "),a=E("span"),a.textContent=u,c=x(" joined the path, "),w=E("span"),w.textContent=f,d=x(" left it."),this.h()},l(_){e=C(_,"P",{class:!0});var b=O(e);t=C(b,"B",{class:!0});var m=O(t);s=F(m,n[5]),m.forEach(g),l=F(b," of "),r=F(b,i),o=F(b," expert slots changed: "),a=C(b,"SPAN",{class:!0,"data-svelte-h":!0}),ne(a)!=="svelte-11ksgwc"&&(a.textContent=u),c=F(b," joined the path, "),w=C(b,"SPAN",{class:!0,"data-svelte-h":!0}),ne(w)!=="svelte-1dtsjby"&&(w.textContent=f),d=F(b," left it."),b.forEach(g),this.h()},h(){v(t,"class","warm svelte-1pf3vnn"),v(a,"class","warm svelte-1pf3vnn"),v(w,"class","cool svelte-1pf3vnn"),v(e,"class","note svelte-1pf3vnn")},m(_,b){H(_,e,b),h(e,t),h(t,s),h(e,l),h(e,r),h(e,o),h(e,a),h(e,c),h(e,w),h(e,d)},p(_,b){b[0]&32&&me(s,_[5]),b[0]&1048576&&i!==(i=_[20].length*8+"")&&me(r,i)},d(_){_&&g(e)}}}function tn(n){let e,t="or show me a verified one",s,l;return{c(){e=E("button"),e.textContent=t,this.h()},l(i){e=C(i,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-u47ofg"&&(e.textContent=t),this.h()},h(){v(e,"class","ghost svelte-1pf3vnn")},m(i,r){H(i,e,r),s||(l=we(e,"click",n[58]),s=!0)},p:We,d(i){i&&g(e),s=!1,l()}}}function Gs(n){let e,t,s="Click any expert on the map to push it into Beam, or",l,i="show me a verified one",r,o;return{c(){e=E("section"),t=E("p"),t.textContent=s,l=E("button"),l.textContent=i,this.h()},l(a){e=C(a,"SECTION",{class:!0});var u=O(e);t=C(u,"P",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-12j7x7r"&&(t.textContent=s),l=C(u,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(l)!=="svelte-rpjqrd"&&(l.textContent=i),u.forEach(g),this.h()},h(){v(t,"class","note svelte-1pf3vnn"),v(l,"class","ghost svelte-1pf3vnn"),v(e,"class","block svelte-1pf3vnn")},m(a,u){H(a,e,u),h(e,t),h(e,l),r||(o=we(l,"click",n[58]),r=!0)},p:We,d(a){a&&g(e),r=!1,o()}}}function Ks(n){let e,t,s,l=n[20][n[10].i]+"",i,r,o=n[10].e+"",a,u;return{c(){e=E("section"),t=E("p"),s=x("No sweep data for L"),i=x(l),r=x(" E"),a=x(o),u=x("; its wave hit the time limit."),this.h()},l(c){e=C(c,"SECTION",{class:!0});var w=O(e);t=C(w,"P",{class:!0});var f=O(t);s=F(f,"No sweep data for L"),i=F(f,l),r=F(f," E"),a=F(f,o),u=F(f,"; its wave hit the time limit."),f.forEach(g),w.forEach(g),this.h()},h(){v(t,"class","muted svelte-1pf3vnn"),v(e,"class","block svelte-1pf3vnn")},m(c,w){H(c,e,w),h(e,t),h(t,s),h(t,i),h(t,r),h(t,a),h(t,u)},p(c,w){w[0]&1049600&&l!==(l=c[20][c[10].i]+"")&&me(i,l),w[0]&1024&&o!==(o=c[10].e+"")&&me(a,o)},d(c){c&&g(e)}}}function Qs(n){let e,t,s,l=n[20][n[10].i]+"",i,r,o=n[10].e+"",a,u,c,w=(n[43][n[12]]<0?"pushed the other way":n[39].name||"(no label)")+"",f,d,_,b,m,y,W,I,T,R,z,J,Y,Ie="Push strength",Ee,se,G,K,p=(n[21][n[13]]||wt[n[13]])+"",A,M,j,q,X,V,U,L=n[33]?"Copied":"Copy recipe (Python)",Te,ce,ae,pe,Me,be,ze,je,$=n[23]==="route"&&n[37]&&nn(),le=n[39].subject&&n[39].subject!=="none"&&sn(n),ge=n[39].sig&&ln(),ie=n[39].judge&&on(),ue=n[39].coherent===!1&&rn(),de=De(Pt),ke=[];for(let N=0;N<de.length;N+=1)ke[N]=an(Rt(n,de,N));let Ne=De(n[44]),oe=[];for(let N=0;N<Ne.length;N+=1)oe[N]=un(qt(n,Ne,N));function Re(N,S){return N[36]?Zs:Js}let Se=Re(n),he=Se(n),ee=n[43][n[12]]!==0&&n[38]&&pn(n);return{c(){e=E("section"),t=E("div"),s=x("Layer "),i=x(l),r=x(" · expert "),a=x(o),$&&$.c(),u=D(),c=E("h2"),f=x(w),d=D(),_=E("div"),le&&le.c(),b=D(),ge&&ge.c(),m=D(),ie&&ie.c(),y=D(),ue&&ue.c(),W=D(),I=E("div"),T=x(jt),R=D(),z=E("div");for(let N=0;N<ke.length;N+=1)ke[N].c();J=D(),Y=E("div"),Y.textContent=Ie,Ee=D(),se=E("div");for(let N=0;N<oe.length;N+=1)oe[N].c();G=D(),K=E("div"),A=x(p),M=D(),j=E("div"),he.c(),q=D(),ee&&ee.c(),X=D(),V=E("div"),U=E("button"),Te=x(L),ae=D(),pe=E("a"),Me=x("Full page →"),this.h()},l(N){e=C(N,"SECTION",{class:!0});var S=O(e);t=C(S,"DIV",{class:!0});var P=O(t);s=F(P,"Layer "),i=F(P,l),r=F(P," · expert "),a=F(P,o),$&&$.l(P),P.forEach(g),u=B(S),c=C(S,"H2",{class:!0});var ye=O(c);f=F(ye,w),ye.forEach(g),d=B(S),_=C(S,"DIV",{class:!0});var _e=O(_);le&&le.l(_e),b=B(_e),ge&&ge.l(_e),m=B(_e),ie&&ie.l(_e),y=B(_e),ue&&ue.l(_e),_e.forEach(g),W=B(S),I=C(S,"DIV",{class:!0});var te=O(I);T=F(te,jt),te.forEach(g),R=B(S),z=C(S,"DIV",{class:!0});var Q=O(z);for(let Ve=0;Ve<ke.length;Ve+=1)ke[Ve].l(Q);Q.forEach(g),J=B(S),Y=C(S,"DIV",{class:!0,"data-svelte-h":!0}),ne(Y)!=="svelte-utt3oh"&&(Y.textContent=Ie),Ee=B(S),se=C(S,"DIV",{class:!0});var ve=O(se);for(let Ve=0;Ve<oe.length;Ve+=1)oe[Ve].l(ve);ve.forEach(g),G=B(S),K=C(S,"DIV",{class:!0});var Pe=O(K);A=F(Pe,p),Pe.forEach(g),M=B(S),j=C(S,"DIV",{class:!0});var Ue=O(j);he.l(Ue),Ue.forEach(g),q=B(S),ee&&ee.l(S),X=B(S),V=C(S,"DIV",{class:!0});var Fe=O(V);U=C(Fe,"BUTTON",{class:!0});var xe=O(U);Te=F(xe,L),xe.forEach(g),ae=B(Fe),pe=C(Fe,"A",{href:!0,class:!0});var He=O(pe);Me=F(He,"Full page →"),He.forEach(g),Fe.forEach(g),S.forEach(g),this.h()},h(){v(t,"class","where svelte-1pf3vnn"),v(c,"class","svelte-1pf3vnn"),v(_,"class","chips svelte-1pf3vnn"),v(I,"class","k svelte-1pf3vnn"),v(z,"class","seg wrap svelte-1pf3vnn"),v(Y,"class","k svelte-1pf3vnn"),v(se,"class","stops svelte-1pf3vnn"),v(K,"class","q svelte-1pf3vnn"),v(j,"class","bubble svelte-1pf3vnn"),fe(j,"dim",n[43][n[12]]===0),U.disabled=ce=n[43][n[12]]===0,v(U,"class","svelte-1pf3vnn"),v(pe,"href",be="/recipes.html#L"+n[20][n[10].i]+"-E"+n[10].e),v(pe,"class","svelte-1pf3vnn"),v(V,"class","actions svelte-1pf3vnn"),v(e,"class","block expert svelte-1pf3vnn")},m(N,S){H(N,e,S),h(e,t),h(t,s),h(t,i),h(t,r),h(t,a),$&&$.m(t,null),h(e,u),h(e,c),h(c,f),h(e,d),h(e,_),le&&le.m(_,null),h(_,b),ge&&ge.m(_,null),h(_,m),ie&&ie.m(_,null),h(_,y),ue&&ue.m(_,null),h(e,W),h(e,I),h(I,T),h(e,R),h(e,z);for(let P=0;P<ke.length;P+=1)ke[P]&&ke[P].m(z,null);h(e,J),h(e,Y),h(e,Ee),h(e,se);for(let P=0;P<oe.length;P+=1)oe[P]&&oe[P].m(se,null);h(e,G),h(e,K),h(K,A),h(e,M),h(e,j),he.m(j,null),h(e,q),ee&&ee.m(e,null),h(e,X),h(e,V),h(V,U),h(U,Te),h(V,ae),h(V,pe),h(pe,Me),ze||(je=we(U,"click",n[59]),ze=!0)},p(N,S){if(S[0]&1049600&&l!==(l=N[20][N[10].i]+"")&&me(i,l),S[0]&1024&&o!==(o=N[10].e+"")&&me(a,o),N[23]==="route"&&N[37]?$||($=nn(),$.c(),$.m(t,null)):$&&($.d(1),$=null),S[0]&4096|S[1]&256&&w!==(w=(N[43][N[12]]<0?"pushed the other way":N[39].name||"(no label)")+"")&&me(f,w),N[39].subject&&N[39].subject!=="none"?le?le.p(N,S):(le=sn(N),le.c(),le.m(_,b)):le&&(le.d(1),le=null),N[39].sig?ge||(ge=ln(),ge.c(),ge.m(_,m)):ge&&(ge.d(1),ge=null),N[39].judge?ie||(ie=on(),ie.c(),ie.m(_,y)):ie&&(ie.d(1),ie=null),N[39].coherent===!1?ue||(ue=rn(),ue.c(),ue.m(_,null)):ue&&(ue.d(1),ue=null),S[0]&8192|S[1]&67108864){de=De(Pt);let P;for(P=0;P<de.length;P+=1){const ye=Rt(N,de,P);ke[P]?ke[P].p(ye,S):(ke[P]=an(ye),ke[P].c(),ke[P].m(z,null))}for(;P<ke.length;P+=1)ke[P].d(1);ke.length=de.length}if(S[0]&4096|S[1]&33562624){Ne=De(N[44]);let P;for(P=0;P<Ne.length;P+=1){const ye=qt(N,Ne,P);oe[P]?oe[P].p(ye,S):(oe[P]=un(ye),oe[P].c(),oe[P].m(se,null))}for(;P<oe.length;P+=1)oe[P].d(1);oe.length=Ne.length}S[0]&2105344&&p!==(p=(N[21][N[13]]||wt[N[13]])+"")&&me(A,p),Se===(Se=Re(N))&&he?he.p(N,S):(he.d(1),he=Se(N),he&&(he.c(),he.m(j,null))),S[0]&4096|S[1]&4096&&fe(j,"dim",N[43][N[12]]===0),N[43][N[12]]!==0&&N[38]?ee?ee.p(N,S):(ee=pn(N),ee.c(),ee.m(e,X)):ee&&(ee.d(1),ee=null),S[1]&4&&L!==(L=N[33]?"Copied":"Copy recipe (Python)")&&me(Te,L),S[0]&4096&&ce!==(ce=N[43][N[12]]===0)&&(U.disabled=ce),S[0]&1049600&&be!==(be="/recipes.html#L"+N[20][N[10].i]+"-E"+N[10].e)&&v(pe,"href",be)},d(N){N&&g(e),$&&$.d(),le&&le.d(),ge&&ge.d(),ie&&ie.d(),ue&&ue.d(),Ke(ke,N),Ke(oe,N),he.d(),ee&&ee.d(),ze=!1,je()}}}function nn(n){let e,t,s="on this token's route";return{c(){e=x("· "),t=E("span"),t.textContent=s,this.h()},l(l){e=F(l,"· "),t=C(l,"SPAN",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-tbvjff"&&(t.textContent=s),this.h()},h(){v(t,"class","warm svelte-1pf3vnn")},m(l,i){H(l,e,i),H(l,t,i)},d(l){l&&(g(e),g(t))}}}function sn(n){let e,t=n[39].subject+"",s;return{c(){e=E("span"),s=x(t),this.h()},l(l){e=C(l,"SPAN",{class:!0,style:!0});var i=O(e);s=F(i,t),i.forEach(g),this.h()},h(){v(e,"class","chip svelte-1pf3vnn"),Xe(e,"border-color",n[42][n[39].subject]||"#666")},m(l,i){H(l,e,i),h(e,s)},p(l,i){i[1]&256&&t!==(t=l[39].subject+"")&&me(s,t),i[1]&256&&Xe(e,"border-color",l[42][l[39].subject]||"#666")},d(l){l&&g(e)}}}function ln(n){let e,t="steering significant";return{c(){e=E("span"),e.textContent=t,this.h()},l(s){e=C(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1sq4nwx"&&(e.textContent=t),this.h()},h(){v(e,"class","chip ok svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function on(n){let e,t="judge matched";return{c(){e=E("span"),e.textContent=t,this.h()},l(s){e=C(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1nkzfoc"&&(e.textContent=t),this.h()},h(){v(e,"class","chip ok svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function rn(n){let e,t="Beam: incoherent";return{c(){e=E("span"),e.textContent=t,this.h()},l(s){e=C(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-kpv3or"&&(e.textContent=t),this.h()},h(){v(e,"class","chip svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function an(n){let e,t=wt[n[113]]+"",s,l,i;function r(){return n[83](n[113])}return{c(){e=E("button"),s=x(t),this.h()},l(o){e=C(o,"BUTTON",{class:!0});var a=O(e);s=F(a,t),a.forEach(g),this.h()},h(){v(e,"class","svelte-1pf3vnn"),fe(e,"on",n[13]===n[113])},m(o,a){H(o,e,a),h(e,s),l||(i=we(e,"click",r),l=!0)},p(o,a){n=o,a[0]&8192&&fe(e,"on",n[13]===n[113])},d(o){o&&g(e),l=!1,i()}}}function un(n){let e,t=n[111]+"",s,l,i;function r(){return n[84](n[113])}return{c(){e=E("button"),s=x(t),this.h()},l(o){e=C(o,"BUTTON",{class:!0});var a=O(e);s=F(a,t),a.forEach(g),this.h()},h(){v(e,"class","svelte-1pf3vnn"),fe(e,"on",n[12]===n[113])},m(o,a){H(o,e,a),h(e,s),l||(i=we(e,"click",r),l=!0)},p(o,a){n=o,a[0]&4096&&fe(e,"on",n[12]===n[113])},d(o){o&&g(e),l=!1,i()}}}function Js(n){let e,t="No output for this combination.";return{c(){e=E("div"),e.textContent=t,this.h()},l(s){e=C(s,"DIV",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-vtfe45"&&(e.textContent=t),this.h()},h(){v(e,"class","text muted svelte-1pf3vnn")},m(s,l){H(s,e,l)},p:We,d(s){s&&g(e)}}}function Zs(n){let e,t=n[43][n[12]]===0?"Beam, unsteered":`Beam, pushed ${n[44][n[12]]}`,s,l,i,r,o=(n[32]||(n[36].final?"":"(no answer: "+(n[45][n[36].status]||"none")+")"))+"",a,u,c,w,f=n[36].status&&n[36].status!=="finished"&&hn(n),d=n[36].analysis&&fn(n),_=n[36].raw&&cn(n);return{c(){e=E("div"),s=x(t),l=D(),f&&f.c(),i=D(),r=E("div"),a=x(o),u=D(),d&&d.c(),c=D(),_&&_.c(),w=ft(),this.h()},l(b){e=C(b,"DIV",{class:!0});var m=O(e);s=F(m,t),l=B(m),f&&f.l(m),m.forEach(g),i=B(b),r=C(b,"DIV",{class:!0});var y=O(r);a=F(y,o),y.forEach(g),u=B(b),d&&d.l(b),c=B(b),_&&_.l(b),w=ft(),this.h()},h(){v(e,"class","meta svelte-1pf3vnn"),v(r,"class","text svelte-1pf3vnn")},m(b,m){H(b,e,m),h(e,s),h(e,l),f&&f.m(e,null),H(b,i,m),H(b,r,m),h(r,a),H(b,u,m),d&&d.m(b,m),H(b,c,m),_&&_.m(b,m),H(b,w,m)},p(b,m){m[0]&4096&&t!==(t=b[43][b[12]]===0?"Beam, unsteered":`Beam, pushed ${b[44][b[12]]}`)&&me(s,t),b[36].status&&b[36].status!=="finished"?f?f.p(b,m):(f=hn(b),f.c(),f.m(e,null)):f&&(f.d(1),f=null),m[1]&34&&o!==(o=(b[32]||(b[36].final?"":"(no answer: "+(b[45][b[36].status]||"none")+")"))+"")&&me(a,o),b[36].analysis?d?d.p(b,m):(d=fn(b),d.c(),d.m(c.parentNode,c)):d&&(d.d(1),d=null),b[36].raw?_?_.p(b,m):(_=cn(b),_.c(),_.m(w.parentNode,w)):_&&(_.d(1),_=null)},d(b){b&&(g(e),g(i),g(r),g(u),g(c),g(w)),f&&f.d(),d&&d.d(b),_&&_.d(b)}}}function hn(n){let e,t=n[45][n[36].status]+"",s,l;return{c(){e=E("span"),s=x(t),this.h()},l(i){e=C(i,"SPAN",{class:!0});var r=O(e);s=F(r,t),r.forEach(g),this.h()},h(){v(e,"class",l="status s-"+n[36].status+" svelte-1pf3vnn")},m(i,r){H(i,e,r),h(e,s)},p(i,r){r[1]&32&&t!==(t=i[45][i[36].status]+"")&&me(s,t),r[1]&32&&l!==(l="status s-"+i[36].status+" svelte-1pf3vnn")&&v(e,"class",l)},d(i){i&&g(e)}}}function fn(n){let e,t,s="thinking",l,i=n[36].analysis+"",r;return{c(){e=E("details"),t=E("summary"),t.textContent=s,l=E("div"),r=x(i),this.h()},l(o){e=C(o,"DETAILS",{class:!0});var a=O(e);t=C(a,"SUMMARY",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-hs6zhc"&&(t.textContent=s),l=C(a,"DIV",{class:!0});var u=O(l);r=F(u,i),u.forEach(g),a.forEach(g),this.h()},h(){v(t,"class","svelte-1pf3vnn"),v(l,"class","think svelte-1pf3vnn"),v(e,"class","svelte-1pf3vnn")},m(o,a){H(o,e,a),h(e,t),h(e,l),h(l,r)},p(o,a){a[1]&32&&i!==(i=o[36].analysis+"")&&me(r,i)},d(o){o&&g(e)}}}function cn(n){let e,t,s="raw output",l,i=n[36].raw+"",r;return{c(){e=E("details"),t=E("summary"),t.textContent=s,l=E("div"),r=x(i),this.h()},l(o){e=C(o,"DETAILS",{class:!0});var a=O(e);t=C(a,"SUMMARY",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-4rdbst"&&(t.textContent=s),l=C(a,"DIV",{class:!0});var u=O(l);r=F(u,i),u.forEach(g),a.forEach(g),this.h()},h(){v(t,"class","svelte-1pf3vnn"),v(l,"class","think mono svelte-1pf3vnn"),v(e,"class","svelte-1pf3vnn")},m(o,a){H(o,e,a),h(e,t),h(e,l),h(l,r)},p(o,a){a[1]&32&&i!==(i=o[36].raw+"")&&me(r,i)},d(o){o&&g(e)}}}function pn(n){let e,t,s,l,i,r,o,a=n[31]&&dn(n);return{c(){e=E("label"),t=E("input"),s=x(" compare with unsteered"),l=D(),a&&a.c(),i=ft(),this.h()},l(u){e=C(u,"LABEL",{class:!0});var c=O(e);t=C(c,"INPUT",{type:!0}),s=F(c," compare with unsteered"),c.forEach(g),l=B(u),a&&a.l(u),i=ft(),this.h()},h(){v(t,"type","checkbox"),v(e,"class","cmp svelte-1pf3vnn")},m(u,c){H(u,e,c),h(e,t),t.checked=n[31],h(e,s),H(u,l,c),a&&a.m(u,c),H(u,i,c),r||(o=we(t,"change",n[85]),r=!0)},p(u,c){c[1]&1&&(t.checked=u[31]),u[31]?a?a.p(u,c):(a=dn(u),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(u){u&&(g(e),g(l),g(i)),a&&a.d(u),r=!1,o()}}}function dn(n){let e,t,s="Beam, unsteered",l,i=n[38].final+"",r;return{c(){e=E("div"),t=E("div"),t.textContent=s,l=E("div"),r=x(i),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=O(e);t=C(a,"DIV",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-l4wtrg"&&(t.textContent=s),l=C(a,"DIV",{class:!0});var u=O(l);r=F(u,i),u.forEach(g),a.forEach(g),this.h()},h(){v(t,"class","meta svelte-1pf3vnn"),v(l,"class","text svelte-1pf3vnn"),v(e,"class","bubble dim svelte-1pf3vnn")},m(o,a){H(o,e,a),h(e,t),h(e,l),h(l,r)},p(o,a){a[1]&128&&i!==(i=o[38].final+"")&&me(r,i)},d(o){o&&g(e)}}}function vn(n){let e,t="Surprise me",s,l;return{c(){e=E("button"),e.textContent=t,this.h()},l(i){e=C(i,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1xo00kb"&&(e.textContent=t),this.h()},h(){v(e,"class","ghost surprise svelte-1pf3vnn")},m(i,r){H(i,e,r),s||(l=we(e,"click",n[58]),s=!0)},p:We,d(i){i&&g(e),s=!1,l()}}}function _n(n){let e,t,s,l,i,r,o,a=De(n[35]),u=[];for(let c=0;c<a.length;c+=1)u[c]=bn(Lt(n,a,c));return{c(){e=E("div"),t=E("div"),s=E("input"),l=D(),i=E("ol");for(let c=0;c<u.length;c+=1)u[c].c();this.h()},l(c){e=C(c,"DIV",{class:!0,role:!0,"aria-label":!0});var w=O(e);t=C(w,"DIV",{class:!0});var f=O(t);s=C(f,"INPUT",{placeholder:!0,class:!0}),l=B(f),i=C(f,"OL",{class:!0});var d=O(i);for(let _=0;_<u.length;_+=1)u[_].l(d);d.forEach(g),f.forEach(g),w.forEach(g),this.h()},h(){v(s,"placeholder","Find an expert by Beam's label, subject or L26 E174"),v(s,"class","svelte-1pf3vnn"),v(i,"class","svelte-1pf3vnn"),v(t,"class","findbox svelte-1pf3vnn"),v(e,"class","find svelte-1pf3vnn"),v(e,"role","dialog"),v(e,"aria-label","Find an expert")},m(c,w){H(c,e,w),h(e,t),h(t,s),n[86](s),It(s,n[15]),h(t,l),h(t,i);for(let f=0;f<u.length;f+=1)u[f]&&u[f].m(i,null);r||(o=[we(s,"input",n[87]),we(e,"click",es(n[89])),we(e,"keydown",n[90])],r=!0)},p(c,w){if(w[0]&32768&&s.value!==c[15]&&It(s,c[15]),w[1]&1073741840){a=De(c[35]);let f;for(f=0;f<a.length;f+=1){const d=Lt(c,a,f);u[f]?u[f].p(d,w):(u[f]=bn(d),u[f].c(),u[f].m(i,null))}for(;f<u.length;f+=1)u[f].d(1);u.length=a.length}},d(c){c&&g(e),n[86](null),Ke(u,c),r=!1,ct(o)}}}function mn(n){let e,t="verified";return{c(){e=E("span"),e.textContent=t,this.h()},l(s){e=C(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-ew0ywb"&&(e.textContent=t),this.h()},h(){v(e,"class","ok svelte-1pf3vnn")},m(s,l){H(s,e,l)},d(s){s&&g(e)}}}function bn(n){let e,t,s,l,i=n[108].layer+"",r,o,a=n[108].expert+"",u,c,w=n[108].name+"",f,d,_,b,m=n[108].verified&&mn();function y(){return n[88](n[108])}return{c(){e=E("li"),t=E("button"),s=E("span"),l=x("L"),r=x(i),o=x(" E"),u=x(a),c=D(),f=x(w),d=D(),m&&m.c(),this.h()},l(W){e=C(W,"LI",{});var I=O(e);t=C(I,"BUTTON",{class:!0});var T=O(t);s=C(T,"SPAN",{class:!0});var R=O(s);l=F(R,"L"),r=F(R,i),o=F(R," E"),u=F(R,a),R.forEach(g),c=B(T),f=F(T,w),d=B(T),m&&m.l(T),T.forEach(g),I.forEach(g),this.h()},h(){v(s,"class","id svelte-1pf3vnn"),v(t,"class","svelte-1pf3vnn")},m(W,I){H(W,e,I),h(e,t),h(t,s),h(s,l),h(s,r),h(s,o),h(s,u),h(t,c),h(t,f),h(t,d),m&&m.m(t,null),_||(b=we(t,"click",y),_=!0)},p(W,I){n=W,I[1]&16&&i!==(i=n[108].layer+"")&&me(r,i),I[1]&16&&a!==(a=n[108].expert+"")&&me(u,a),I[1]&16&&w!==(w=n[108].name+"")&&me(f,w),n[108].verified?m||(m=mn(),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(W){W&&g(e),m&&m.d(),_=!1,b()}}}function $s(n){let e,t,s,l,i,r,o,a,u,c='<a href="/index.html" class="name svelte-1pf3vnn">Inside Beam</a> <span class="sub svelte-1pf3vnn">12,544 experts of Beam-1.0-501B</span>',w,f,d,_="How Beam routes a token",b,m,y="Map of the experts",W,I,T,R="Recipes",z,J="Explorer",Y,Ie="About",Ee,se,G='<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="2"></circle><path d="M16 16l4.5 4.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>',K,p,A,M,j,q,X,V=n[24]&&n[47](n[24].i,n[24].e),U,L,Te,ce,ae,pe,Me='<a href="/recipes.html" class="svelte-1pf3vnn">Recipes</a><a href="/explorer.html" class="svelte-1pf3vnn">Explorer</a><a href="/about.html" class="svelte-1pf3vnn">About</a>',be,ze,je,$=n[18]&&Xt(),le=n[19]&&Wt(n);function ge(S,P){return S[26]?Rs:qs}let ie=ge(n),ue=ie(n),de=V&&Gt(n);function ke(S,P){if(S[23]==="route"&&S[1])return Hs;if(S[23]==="map"&&S[22])return Us}let Ne=ke(n),oe=Ne&&Ne(n);function Re(S,P){if(S[10]&&S[11]&&S[39])return Qs;if(S[10]&&!S[11]&&!S[18])return Ks;if(!S[18]&&S[23]==="map")return Gs}let Se=Re(n),he=Se&&Se(n),ee=n[10]&&n[11]&&vn(n),N=n[14]&&_n(n);return{c(){e=E("div"),t=E("div"),s=D(),l=E("div"),i=D(),$&&$.c(),r=D(),le&&le.c(),o=D(),a=E("header"),u=E("div"),u.innerHTML=c,w=D(),f=E("nav"),d=E("button"),d.textContent=_,b=D(),m=E("button"),m.textContent=y,W=D(),I=E("nav"),T=E("a"),T.textContent=R,z=E("a"),z.textContent=J,Y=E("a"),Y.textContent=Ie,Ee=D(),se=E("button"),se.innerHTML=G,K=D(),p=E("button"),A=ht("svg"),M=ht("path"),ue.c(),X=D(),de&&de.c(),U=D(),L=E("aside"),oe&&oe.c(),Te=D(),he&&he.c(),ce=D(),ee&&ee.c(),ae=D(),pe=E("nav"),pe.innerHTML=Me,be=D(),N&&N.c(),this.h()},l(S){e=C(S,"DIV",{class:!0});var P=O(e);t=C(P,"DIV",{class:!0}),O(t).forEach(g),s=B(P),l=C(P,"DIV",{class:!0}),O(l).forEach(g),i=B(P),$&&$.l(P),r=B(P),le&&le.l(P),o=B(P),a=C(P,"HEADER",{class:!0});var ye=O(a);u=C(ye,"DIV",{class:!0,"data-svelte-h":!0}),ne(u)!=="svelte-qv6n2y"&&(u.innerHTML=c),w=B(ye),f=C(ye,"NAV",{class:!0,"aria-label":!0});var _e=O(f);d=C(_e,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(d)!=="svelte-cwbo37"&&(d.textContent=_),b=B(_e),m=C(_e,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(m)!=="svelte-1awlx0t"&&(m.textContent=y),_e.forEach(g),W=B(ye),I=C(ye,"NAV",{class:!0,"aria-label":!0});var te=O(I);T=C(te,"A",{href:!0,class:!0,"data-svelte-h":!0}),ne(T)!=="svelte-zm4pk2"&&(T.textContent=R),z=C(te,"A",{href:!0,class:!0,"data-svelte-h":!0}),ne(z)!=="svelte-1i9l8ba"&&(z.textContent=J),Y=C(te,"A",{href:!0,class:!0,"data-svelte-h":!0}),ne(Y)!=="svelte-14auufy"&&(Y.textContent=Ie),Ee=B(te),se=C(te,"BUTTON",{class:!0,"aria-label":!0,title:!0,"data-svelte-h":!0}),ne(se)!=="svelte-qe781b"&&(se.innerHTML=G),K=B(te),p=C(te,"BUTTON",{class:!0,"aria-label":!0,title:!0});var Q=O(p);A=ut(Q,"svg",{viewBox:!0,width:!0,height:!0,"aria-hidden":!0});var ve=O(A);M=ut(ve,"path",{d:!0,fill:!0}),O(M).forEach(g),ue.l(ve),ve.forEach(g),Q.forEach(g),te.forEach(g),ye.forEach(g),X=B(P),de&&de.l(P),U=B(P),L=C(P,"ASIDE",{class:!0});var Pe=O(L);oe&&oe.l(Pe),Te=B(Pe),he&&he.l(Pe),ce=B(Pe),ee&&ee.l(Pe),ae=B(Pe),pe=C(Pe,"NAV",{class:!0,"aria-label":!0,"data-svelte-h":!0}),ne(pe)!=="svelte-14j8wc5"&&(pe.innerHTML=Me),Pe.forEach(g),be=B(P),N&&N.l(P),P.forEach(g),this.h()},h(){v(t,"class","stage svelte-1pf3vnn"),fe(t,"hidden",n[23]!=="route"),v(l,"class","stage svelte-1pf3vnn"),fe(l,"hidden",n[23]!=="map"),v(u,"class","brand svelte-1pf3vnn"),v(d,"class","svelte-1pf3vnn"),fe(d,"on",n[23]==="route"),v(m,"class","svelte-1pf3vnn"),fe(m,"on",n[23]==="map"),v(f,"class","modes svelte-1pf3vnn"),v(f,"aria-label","View"),v(T,"href","/recipes.html"),v(T,"class","svelte-1pf3vnn"),v(z,"href","/explorer.html"),v(z,"class","svelte-1pf3vnn"),v(Y,"href","/about.html"),v(Y,"class","svelte-1pf3vnn"),v(se,"class","icon svelte-1pf3vnn"),v(se,"aria-label","Find an expert"),v(se,"title","Find an expert (⌘K)"),v(M,"d","M4 9.5h3.5L12 5.5v13l-4.5-4H4z"),v(M,"fill","currentColor"),v(A,"viewBox","0 0 24 24"),v(A,"width","16"),v(A,"height","16"),v(A,"aria-hidden","true"),v(p,"class","icon svelte-1pf3vnn"),v(p,"aria-label",j=n[26]?"Mute sound":"Turn sound on"),v(p,"title",q=n[26]?"Sound on":"Sound off"),v(I,"class","links svelte-1pf3vnn"),v(I,"aria-label","Site"),v(a,"class","top svelte-1pf3vnn"),v(pe,"class","mlinks svelte-1pf3vnn"),v(pe,"aria-label","Pages"),v(L,"class","panel svelte-1pf3vnn"),v(e,"class","studio svelte-1pf3vnn")},m(S,P){H(S,e,P),h(e,t),n[67](t),h(e,s),h(e,l),n[68](l),h(e,i),$&&$.m(e,null),h(e,r),le&&le.m(e,null),h(e,o),h(e,a),h(a,u),h(a,w),h(a,f),h(f,d),h(f,b),h(f,m),h(a,W),h(a,I),h(I,T),h(I,z),h(I,Y),h(I,Ee),h(I,se),h(I,K),h(I,p),h(p,A),h(A,M),ue.m(A,null),h(e,X),de&&de.m(e,null),h(e,U),h(e,L),oe&&oe.m(L,null),h(L,Te),he&&he.m(L,null),h(L,ce),ee&&ee.m(L,null),h(L,ae),h(L,pe),h(e,be),N&&N.m(e,null),ze||(je=[we(d,"click",n[69]),we(m,"click",n[70]),we(se,"click",n[60]),we(p,"click",n[62]),we(e,"pointermove",n[91])],ze=!0)},p(S,P){P[0]&8388608&&fe(t,"hidden",S[23]!=="route"),P[0]&8388608&&fe(l,"hidden",S[23]!=="map"),S[18]?$||($=Xt(),$.c(),$.m(e,r)):$&&($.d(1),$=null),S[19]?le?le.p(S,P):(le=Wt(S),le.c(),le.m(e,o)):le&&(le.d(1),le=null),P[0]&8388608&&fe(d,"on",S[23]==="route"),P[0]&8388608&&fe(m,"on",S[23]==="map"),ie!==(ie=ge(S))&&(ue.d(1),ue=ie(S),ue&&(ue.c(),ue.m(A,null))),P[0]&67108864&&j!==(j=S[26]?"Mute sound":"Turn sound on")&&v(p,"aria-label",j),P[0]&67108864&&q!==(q=S[26]?"Sound on":"Sound off")&&v(p,"title",q),P[0]&16777216&&(V=S[24]&&S[47](S[24].i,S[24].e)),V?de?de.p(S,P):(de=Gt(S),de.c(),de.m(e,U)):de&&(de.d(1),de=null),Ne===(Ne=ke(S))&&oe?oe.p(S,P):(oe&&oe.d(1),oe=Ne&&Ne(S),oe&&(oe.c(),oe.m(L,Te))),Se===(Se=Re(S))&&he?he.p(S,P):(he&&he.d(1),he=Se&&Se(S),he&&(he.c(),he.m(L,ce))),S[10]&&S[11]?ee?ee.p(S,P):(ee=vn(S),ee.c(),ee.m(L,ae)):ee&&(ee.d(1),ee=null),S[14]?N?N.p(S,P):(N=_n(S),N.c(),N.m(e,null)):N&&(N.d(1),N=null)},i:We,o:We,d(S){S&&g(e),n[67](null),n[68](null),$&&$.d(),le&&le.d(),ue.d(),de&&de.d(),oe&&oe.d(),he&&he.d(),ee&&ee.d(),N&&N.d(),ze=!1,ct(je)}}}const gt="#2b303a";function el(n){const e=(n-3)/48,t=[76,110,245],s=[250,176,5],l=[255,107,107],[i,r,o]=e<.5?[t,s,e*2]:[s,l,(e-.5)*2];return`rgb(${i.map((a,u)=>Math.round(a+(r[u]-a)*o)).join(",")})`}function tl(n,e,t){let s,l,i,r,o,a,u,c,w;const f={code:"#4c6ef5","computer science":"#22b8cf",math:"#fab005","format or syntax":"#adb5bd","language or script":"#cc5de8","other knowledge":"#94d82d",business:"#ff922b",health:"#ff6b6b",law:"#845ef7",biology:"#51cf66",engineering:"#339af0",physics:"#3bc9db",economics:"#ff8787",psychology:"#f06595",history:"#d4a373",chemistry:"#9775fa",philosophy:"#ced4da",general:"#5f6775"},d=[-1,0,.4,1],_=["other way","off","gentle","full"],b={finished:"finished",budget:"cut by the token budget, answer still going",thinking:"cut by the budget while thinking",loop:"stuck in a loop until the budget ran out",format:"broke Beam's reply format","no-answer":"stopped without an answer"},m={all:[0,99],early:[3,15],middle:[16,31],late:[32,51]};let y,W,I,T,R=!0,z="",J=[],Y=new Map,Ie=[],Ee={},se={},G=[],K=null,p=null,A=null,M="route",j=null,q={x:0,y:0},X=!0,V=[],U=0,L=1,Te="think_start",ce=null,ae=null,pe="subject",Me="all",be=!1,ze="law",je=!1,$=0,le,ge=null,ie=null,ue=3,de="who",ke=!1,Ne="",oe,Re=!1,Se=!1,he="",ee;Zn(async()=>{try{let k,re;t(21,[k,re,Ie,Ee,se,G,K,p,A]=await Promise.all(["index.json","summary.json","recipes.json","prompts.json","baseline.json","medians.json","routes.json","bans.json","expert_map.json"].map(ns)),Ee,t(64,se),t(1,K),t(2,p),t(22,A)),t(20,J=re.moe_layers);const Ce=Object.fromEntries(k.fields.map((Z,Oe)=>[Z,Oe]));t(65,V=k.rows.map(Z=>({...zt(Z[Ce.id]),name:Z[Ce.name],subject:Z[Ce.subject],coherent:!!Z[Ce.coherent],sig:!!Z[Ce.sig],verified:!!Z[Ce.verified]})));for(const Z of V){const Oe=`${Z.layer}_${Z.expert}`,Je=Y.get(Oe)||{name:"",subject:"",sig:!1,verified:!1,coherent:!1};Z.pole==="+"&&Object.assign(Je,{name:Z.name,subject:Z.subject,coherent:Z.coherent,verified:Z.verified}),Je.sig||=Z.sig,Y.set(Oe,Je)}await rt(),P(),ye(),t(18,R=!1);const Be=zt(decodeURIComponent(location.hash.slice(1)));Be&&Ge(J.indexOf(Be.layer),Be.expert,{quiet:!0}),Q(!1)}catch(k){t(19,z=k.message),t(18,R=!1)}window.addEventListener("keydown",Nt)}),$n(()=>{I&&I.dispose(),T&&T.dispose(),window.removeEventListener("keydown",Nt),clearInterval(oe),clearInterval(ae),cancelAnimationFrame(le)});const N=(k,re)=>Y.get(`${J[k]}_${re}`),S=k=>!k||!k.coherent||!k.subject||k.subject==="none"?gt:f[k.subject]||gt;function P(){const k={};for(const Z of Y.values())Z.coherent&&Z.subject&&Z.subject!=="none"&&(k[Z.subject]=(k[Z.subject]||0)+1);const re=Z=>!Z||!Z.coherent||!Z.subject||Z.subject==="none"?1e6:Z.subject==="general"?1e5:-k[Z.subject],Ce=J.map((Z,Oe)=>{const Je=[...Array(256).keys()].sort((it,ot)=>{const pt=N(Oe,it),dt=N(Oe,ot);return re(pt)-re(dt)||(pt?.subject||"").localeCompare(dt?.subject||"")||(dt?.verified?1:0)-(pt?.verified?1:0)||it-ot}),lt=new Array(256);return Je.forEach((it,ot)=>lt[it]=ot),lt}),Be=new Map([...Object.entries(f).map(([Z,Oe])=>[Oe,Z]),[gt,"no coherent label"]]);t(63,I=new os(y,{layers:J,order:Ce,colorOf:(Z,Oe)=>S(N(Z,Oe)),labelOf:Z=>Be.get(Z)||"",onHover:Z=>{t(24,j=Z)},onPick:(Z,Oe)=>Ge(Z,Oe)}))}function ye(){const k=new Map(J.map((Ce,Be)=>[Ce,Be])),re=A.points.map(([Ce,Be,Z,Oe])=>({i:k.get(Ce),e:Be,x:Z,y:Oe,L:Ce}));t(0,T=new Vs(W,{points:re,clusters:A.clusters,style:_e,onHover:Ce=>{t(24,j=Ce),Ce&&et.tick()},onPick:(Ce,Be)=>Ge(Ce,Be)}))}function _e(k){const re=N(k.i,k.e),[Ce,Be]=m[Me];if(k.L<Ce||k.L>Be)return{color:"#444",alpha:.05};if(be)return s.has(`${k.L}_${k.e}`)?$>=1?{color:"#ff6b6b",alpha:.75,r:1.3,ring:!0}:{color:`rgb(255, ${Math.round(107-60*$)}, ${Math.round(107-60*$)})`,alpha:1-.85*$,r:1.6,glow:$<.6}:{color:"#9aa2ae",alpha:.18};const Z=pe==="depth"?el(k.L):S(re);return re&&re.verified?{color:Z,alpha:1,glow:!0,r:1.7}:{color:Z,alpha:re&&re.sig?.85:re&&re.coherent?.55:.28}}function te(){return K.routes[Te][String(K.efforts[L])][U]}function Q(k,re=!0){if(!I||!K)return;const Ce=k?I.route:null,Be=te();t(5,ce=Ce?Be.reduce((Z,Oe,Je)=>Z+Oe.filter(lt=>!Ce[Je].includes(lt)).length,0):null),I.setRoute(Be,{prev:Ce,animate:re,onLayer:()=>et.tick()})}function ve(k){t(4,L=k),Q(!0)}function Pe(k){t(3,U=(k+K.questions.length)%K.questions.length),Q(!1)}function Ue(k){t(27,Te=k),Q(!0)}function Fe(){if(ae){clearInterval(ae),t(28,ae=null);return}t(4,L=0),Q(!1,!1),t(28,ae=setInterval(()=>{if(L>=K.efforts.length-1){clearInterval(ae),t(28,ae=null);return}t(4,L+=1),Q(!0)},2100))}async function xe(k){t(23,M=k),await rt(),k==="route"?(I.resize(),Q(!1)):T.resize()}function He(){t(29,je=!je),et.ban(je);const k=$,re=je?1:0,Ce=performance.now();cancelAnimationFrame(le);const Be=Z=>{const Oe=Math.min(1,(Z-Ce)/1100);t(30,$=k+(re-k)*Oe),T.refresh(),Oe<1&&(le=requestAnimationFrame(Be))};le=requestAnimationFrame(Be)}function Ve(k){t(9,ze=k),t(29,je=!1),t(30,$=0),T&&T.refresh()}async function Ge(k,re,{quiet:Ce=!1}={}){if(!(k<0)){t(10,ge={i:k,e:re}),I&&I.select(k,re),T&&T.select(k,re),history.replaceState(null,"",`#L${J[k]}-E${re}`),t(11,ie=null);try{t(11,ie=await ts(J[k],re))}catch{t(11,ie=null)}Ce||et.push(d[ue]),Qe()}}async function Qe(){await rt(),clearInterval(oe);const k=o&&o.final||"";if(matchMedia("(prefers-reduced-motion: reduce)").matches){t(32,Ne=k);return}t(32,Ne="");let re=0;oe=setInterval(()=>{re+=4,t(32,Ne=k.slice(0,re)),re>=k.length&&clearInterval(oe)},16)}function Tt(k){t(12,ue=k),et.push(d[ue]),Qe()}function Mt(k){t(13,de=k),Qe()}function kn(){const k=Ie[Math.floor(Math.random()*Ie.length)];k&&(t(12,ue=3),t(13,de="who"),Ge(J.indexOf(k.layer),k.expert),M==="map"&&T.focusOn(J.indexOf(k.layer),k.expert))}async function yn(){if(!o||!ie||d[ue]===0)return;const k=ss(J[ge.i],ge.e,r,ie.poles[r],o,Ee,G);try{await navigator.clipboard.writeText(ls(k)),t(33,Re=!0),setTimeout(()=>t(33,Re=!1),1300)}catch{}}function Nt(k){if((k.metaKey||k.ctrlKey)&&k.key.toLowerCase()==="k"){k.preventDefault(),St();return}if(k.key==="Escape"){t(14,Se=!1);return}Se||/INPUT|TEXTAREA|SELECT/.test(document.activeElement?.tagName||"")||M==="route"&&K&&(k.key==="ArrowRight"&&(k.preventDefault(),ve(Math.min(K.efforts.length-1,L+1))),k.key==="ArrowLeft"&&(k.preventDefault(),ve(Math.max(0,L-1))),k.key==="ArrowDown"&&(k.preventDefault(),Pe(U+1)),k.key==="ArrowUp"&&(k.preventDefault(),Pe(U-1)))}async function St(){t(14,Se=!0),t(15,he=""),await rt(),ee&&ee.focus()}async function At(k){t(14,Se=!1),M!=="map"&&await xe("map");const re=J.indexOf(k.layer);Ge(re,k.expert),T.focusOn(re,k.expert)}function Cn(){t(26,X=!X),et.enabled=X}function En(k){vt[k?"unshift":"push"](()=>{y=k,t(16,y)})}function Tn(k){vt[k?"unshift":"push"](()=>{W=k,t(17,W)})}const Mn=()=>xe("route"),Nn=()=>xe("map"),Sn=()=>Pe(U-1),An=()=>Pe(U+1),In=k=>ve(k),Pn=()=>Ue("think_start"),jn=()=>Ue("n_last"),zn=()=>Q(!1),On=()=>{t(6,pe="subject"),t(8,be=!1)},Bn=()=>{t(6,pe="depth"),t(8,be=!1)},Dn=()=>{t(8,be=!0),t(29,je=!1),t(30,$=0)},Vn=()=>T.reset(),Ln=k=>t(7,Me=k),qn=k=>Ve(k),Rn=k=>Mt(k),Un=k=>Tt(k);function Hn(){ke=this.checked,t(31,ke)}function Fn(k){vt[k?"unshift":"push"](()=>{ee=k,t(34,ee)})}function xn(){he=this.value,t(15,he)}const Yn=k=>At(k),Xn=()=>t(14,Se=!1),Wn=k=>k.key==="Escape"&&t(14,Se=!1),Gn=k=>t(25,q={x:k.clientX,y:k.clientY});return n.$$.update=()=>{n.$$.dirty[0]&516&&(s=p?new Set(p[ze].experts.map(([k,re])=>`${k}_${re}`)):new Set),n.$$.dirty[0]&961&&T&&T.refresh(),n.$$.dirty[0]&10&&t(41,l=K?K.questions[U]:null),n.$$.dirty[0]&18&&K&&K.efforts[L],n.$$.dirty[0]&516&&t(40,i=p&&Object.entries(p[ze].by_category).sort((k,re)=>k[1].diff-re[1].diff)),n.$$.dirty[0]&4096&&t(66,r=d[ue]<0?"-":"+"),n.$$.dirty[0]&14336|n.$$.dirty[2]&20&&t(36,o=ie?d[ue]===0?se[de]&&{...se[de],dose:0}:ie.poles[r]&&ie.poles[r].out.find(k=>k.prompt===de&&k.dose===d[ue])||null:null),n.$$.dirty[0]&2048&&t(39,a=ie&&ie.poles["+"]),n.$$.dirty[0]&8192|n.$$.dirty[2]&4&&t(38,u=se[de]),n.$$.dirty[0]&1056|n.$$.dirty[2]&2&&t(37,c=ge&&I&&I.route&&ce!==void 0?I.route[ge.i]?.includes(ge.e):!1),n.$$.dirty[0]&49152|n.$$.dirty[2]&8&&t(35,w=Se?V.filter(k=>k.pole==="+"&&k.name&&(!he||`${k.name} ${k.subject} l${k.layer} e${k.expert}`.toLowerCase().includes(he.toLowerCase()))).sort((k,re)=>re.verified-k.verified||re.sig-k.sig).slice(0,40):[])},[T,K,p,U,L,ce,pe,Me,be,ze,ge,ie,ue,de,Se,he,y,W,R,z,J,Ee,A,M,j,q,X,Te,ae,je,$,ke,Ne,Re,ee,w,o,c,u,a,i,l,f,d,_,b,m,N,Q,ve,Pe,Ue,Fe,xe,He,Ve,Tt,Mt,kn,yn,St,At,Cn,I,se,V,r,En,Tn,Mn,Nn,Sn,An,In,Pn,jn,zn,On,Bn,Dn,Vn,Ln,qn,Rn,Un,Hn,Fn,xn,Yn,Xn,Wn,Gn]}class ll extends Kn{constructor(e){super(),Qn(this,e,tl,$s,Jn,{},null,[-1,-1,-1,-1,-1])}}export{ll as default};
|
_astro/data.B0LidU3o.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function H(){}function W(e){return e()}function q(){return Object.create(null)}function b(e){e.forEach(W)}function K(e){return typeof e=="function"}function Me(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function oe(e){return Object.keys(e).length===0}let P=!1;function ae(){P=!0}function le(){P=!1}function ce(e,t,n,i){for(;e<t;){const s=e+(t-e>>1);n(s)<=i?e=s+1:t=s}return e}function fe(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const o=[];for(let a=0;a<t.length;a++){const u=t[a];u.claim_order!==void 0&&o.push(u)}t=o}const n=new Int32Array(t.length+1),i=new Int32Array(t.length);n[0]=-1;let s=0;for(let o=0;o<t.length;o++){const a=t[o].claim_order,u=(s>0&&t[n[s]].claim_order<=a?s+1:ce(1,s,d=>t[n[d]].claim_order,a))-1;i[o]=n[u]+1;const _=u+1;n[_]=o,s=Math.max(_,s)}const l=[],r=[];let c=t.length-1;for(let o=n[s]+1;o!=0;o=i[o-1]){for(l.push(t[o-1]);c>=o;c--)r.push(t[c]);c--}for(;c>=0;c--)r.push(t[c]);l.reverse(),r.sort((o,a)=>o.claim_order-a.claim_order);for(let o=0,a=0;o<r.length;o++){for(;a<l.length&&r[o].claim_order>=l[a].claim_order;)a++;const u=a<l.length?l[a]:null;e.insertBefore(r[o],u)}}function ue(e,t){if(P){for(fe(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else(t.parentNode!==e||t.nextSibling!==null)&&e.appendChild(t)}function de(e,t,n){e.insertBefore(t,n||null)}function _e(e,t,n){P&&!n?ue(e,t):(t.parentNode!==e||t.nextSibling!=n)&&e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function Le(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Q(e){return document.createElement(e)}function X(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function Pe(){return C(" ")}function ke(){return C("")}function Se(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function Ae(e){return function(t){t.target===this&&e.call(this,t)}}function Oe(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Re(e){return e.dataset.svelteH}function he(e){return Array.from(e.childNodes)}function Y(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function Z(e,t,n,i,s=!1){Y(e);const l=(()=>{for(let r=e.claim_info.last_index;r<e.length;r++){const c=e[r];if(t(c)){const o=n(c);return o===void 0?e.splice(r,1):e[r]=o,s||(e.claim_info.last_index=r),c}}for(let r=e.claim_info.last_index-1;r>=0;r--){const c=e[r];if(t(c)){const o=n(c);return o===void 0?e.splice(r,1):e[r]=o,s?o===void 0&&e.claim_info.last_index--:e.claim_info.last_index=r,c}}return i()})();return l.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,l}function ee(e,t,n,i){return Z(e,s=>s.nodeName===t,s=>{const l=[];for(let r=0;r<s.attributes.length;r++){const c=s.attributes[r];n[c.name]||l.push(c.name)}l.forEach(r=>s.removeAttribute(r))},()=>i(t))}function Be(e,t,n){return ee(e,t,n,Q)}function ze(e,t,n){return ee(e,t,n,X)}function me(e,t){return Z(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>C(t),!0)}function He(e){return me(e," ")}function U(e,t,n){for(let i=n;i<e.length;i+=1){const s=e[i];if(s.nodeType===8&&s.textContent.trim()===t)return i}return-1}function je(e,t){const n=U(e,"HTML_TAG_START",0),i=U(e,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new R(t);Y(e);const s=e.splice(n,i-n+1);L(s[0]),L(s[s.length-1]);const l=s.slice(1,s.length-1);if(l.length===0)return new R(t);for(const r of l)r.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new R(t,l)}function Fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ce(e,t){e.value=t??""}function De(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function Ie(e,t,n){for(let i=0;i<e.options.length;i+=1){const s=e.options[i];if(s.__value===t){s.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Ve(e){const t=e.querySelector(":checked");return t&&t.__value}function qe(e,t,n){e.classList.toggle(t,!!n)}class pe{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(t=!1){this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=X(n.nodeName):this.e=Q(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)de(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(L)}}class R extends pe{l=void 0;constructor(t=!1,n){super(t),this.e=this.n=null,this.l=n}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let n=0;n<this.n.length;n+=1)_e(this.t,this.n[n],t)}}let T;function E(e){T=e}function te(){if(!T)throw new Error("Function called outside component initialization");return T}function Ue(e){te().$$.on_mount.push(e)}function Ge(e){te().$$.on_destroy.push(e)}const $=[],G=[];let w=[];const J=[],ne=Promise.resolve();let j=!1;function ie(){j||(j=!0,ne.then(se))}function Je(){return ie(),ne}function F(e){w.push(e)}const B=new Set;let x=0;function se(){if(x!==0)return;const e=T;do{try{for(;x<$.length;){const t=$[x];x++,E(t),ge(t.$$)}}catch(t){throw $.length=0,x=0,t}for(E(null),$.length=0,x=0;G.length;)G.pop()();for(let t=0;t<w.length;t+=1){const n=w[t];B.has(n)||(B.add(n),n())}w.length=0}while($.length);for(;J.length;)J.pop()();j=!1,B.clear(),E(e)}function ge(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(F)}}function ye(e){const t=[],n=[];w.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),w=t}const M=new Set;let y;function We(){y={r:0,c:[],p:y}}function Ke(){y.r||b(y.c),y=y.p}function re(e,t){e&&e.i&&(M.delete(e),e.i(t))}function Qe(e,t,n,i){if(e&&e.o){if(M.has(e))return;M.add(e),y.c.push(()=>{M.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Xe(e){return e?.length!==void 0?e:Array.from(e)}function Ye(e,t){e.d(1),t.delete(e.key)}function Ze(e,t,n,i,s,l,r,c,o,a,u,_){let d=e.length,m=l.length,h=d;const k={};for(;h--;)k[e[h].key]=h;const v=[],S=new Map,A=new Map,D=[];for(h=m;h--;){const f=_(s,l,h),p=n(f);let g=r.get(p);g?D.push(()=>g.p(f,t)):(g=a(p,f),g.c()),S.set(p,v[h]=g),p in k&&A.set(p,Math.abs(h-k[p]))}const I=new Set,V=new Set;function O(f){re(f,1),f.m(c,u),r.set(f.key,f),u=f.first,m--}for(;d&&m;){const f=v[m-1],p=e[d-1],g=f.key,N=p.key;f===p?(u=f.first,d--,m--):S.has(N)?!r.has(g)||I.has(g)?O(f):V.has(N)?d--:A.get(g)>A.get(N)?(V.add(g),O(f)):(I.add(N),d--):(o(p,r),d--)}for(;d--;){const f=e[d];S.has(f.key)||o(f,r)}for(;m;)O(v[m-1]);return b(D),v}function et(e){e&&e.c()}function tt(e,t){e&&e.l(t)}function xe(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),F(()=>{const l=e.$$.on_mount.map(W).filter(K);e.$$.on_destroy?e.$$.on_destroy.push(...l):b(l),e.$$.on_mount=[]}),s.forEach(F)}function $e(e,t){const n=e.$$;n.fragment!==null&&(ye(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function we(e,t){e.$$.dirty[0]===-1&&($.push(e),ie(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function nt(e,t,n,i,s,l,r=null,c=[-1]){const o=T;E(e);const a=e.$$={fragment:null,ctx:[],props:l,update:H,not_equal:s,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:q(),dirty:c,skip_bound:!1,root:t.target||o.$$.root};r&&r(a.root);let u=!1;if(a.ctx=n?n(e,t.props||{},(_,d,...m)=>{const h=m.length?m[0]:d;return a.ctx&&s(a.ctx[_],a.ctx[_]=h)&&(!a.skip_bound&&a.bound[_]&&a.bound[_](h),u&&we(e,_)),d}):[],a.update(),u=!0,b(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){ae();const _=he(t.target);a.fragment&&a.fragment.l(_),_.forEach(L)}else a.fragment&&a.fragment.c();t.intro&&re(e.$$.fragment),xe(e,t.target,t.anchor),le(),se()}E(o)}class it{$$=void 0;$$set=void 0;$destroy(){$e(this,1),this.$destroy=H}$on(t,n){if(!K(n))return H;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!oe(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const be="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(be);const z=new Map;function Ee(e){return z.has(e)||z.set(e,fetch(`/data/${e}`).then(t=>{if(!t.ok)throw new Error(`${e}: HTTP ${t.status}`);return t.json()})),z.get(e)}const Te=e=>Ee(`L${e}.json`);async function st(e,t){return(await Te(e)).find(i=>i.expert===t)||null}function rt(e){const t=/^L(\d+)[_-]E(\d+)(?:_([+-]))?$/.exec(e||"");return t?{layer:+t[1],expert:+t[2],pole:t[3]||"+"}:null}const ot=(e,t,n,i)=>`L${e} E${t} ${i>0?"+":"−"}${Math.abs(i).toFixed(1)}`,at=["who","snake","orange","effort"],lt={who:"Who are you?",snake:"Tell me about snakes",orange:"Describe an orange",effort:"Bat-and-ball puzzle"},ct="Each expert was pushed while Beam answered four fixed questions.",ve={who:8,snake:8,orange:8,effort:32},Ne={who:160,snake:160,orange:160,effort:512};function ft(e,t,n,i,s,l,r){return{model:"reflection/Beam-1.0-501B-A23B-NVFP4",plugin:"beam-steer (github.com/rycerzes/beam-inside/tree/main/steer)",name:i.name,expert:{layer:e,expert:t,pole:n,direction:i.dir,unit:i.unit},push:{layer:e,dose_eff:s.dose_eff,median_resid:r[e],vector:"rycerzes/beam-expert-atlas: steering/directions.safetensors, dirs[unit] * dose_eff * median_resid[layer]",steer_from:1},prompt:{text:l[s.prompt],reasoning_effort:ve[s.prompt],max_tokens:Ne[s.prompt],temperature:0}}}function ut(e){return`import torch
|
| 2 |
+
from huggingface_hub import hf_hub_download
|
| 3 |
+
from safetensors.torch import load_file
|
| 4 |
+
from vllm import LLM, SamplingParams # VLLM_USE_V2_MODEL_RUNNER=0, beam-steer installed
|
| 5 |
+
|
| 6 |
+
# ${e.name}: layer ${e.expert.layer} expert ${e.expert.expert}, ${e.expert.pole} pole
|
| 7 |
+
d = load_file(hf_hub_download("rycerzes/beam-expert-atlas", "steering/directions.safetensors", repo_type="dataset"))
|
| 8 |
+
unit, layer, dose = ${e.expert.unit}, ${e.push.layer}, ${e.push.dose_eff}
|
| 9 |
+
torch.save([(1, layer, d["dirs"][unit].float() * dose * d["median_resid"][layer])], "/tmp/push.pt")
|
| 10 |
+
|
| 11 |
+
llm = LLM("${e.model}", tensor_parallel_size=4, moe_backend="marlin",
|
| 12 |
+
async_scheduling=False, enable_prefix_caching=False)
|
| 13 |
+
llm.collective_rpc("beam_steer_set", args=("/tmp/push.pt",))
|
| 14 |
+
ids = llm.get_tokenizer().apply_chat_template([{"role": "user", "content": ${JSON.stringify(e.prompt.text)}}],
|
| 15 |
+
add_generation_prompt=True, reasoning_effort=${e.prompt.reasoning_effort}, tokenize=True)
|
| 16 |
+
params = SamplingParams(temperature=0, max_tokens=${e.prompt.max_tokens}, extra_args={"steer_slot": 1, "steer_from": 1})
|
| 17 |
+
print(llm.generate({"prompt_token_ids": ids}, params)[0].outputs[0].text)
|
| 18 |
+
`}export{X as $,Ee as A,ot as B,Re as C,G as D,Le as E,b as F,Ie as G,F as H,H as I,De as J,Ve as K,ke as L,rt as M,ft as N,st as O,at as P,ut as Q,qe as R,it as S,ct as T,lt as U,je as V,R as W,We as X,Ke as Y,Je as Z,ze as _,$e as a,Ge as a0,Ae as a1,re as b,Ce as c,L as d,Xe as e,Fe as f,Ye as g,_e as h,nt as i,ue as j,Oe as k,Se as l,xe as m,Be as n,he as o,He as p,me as q,tt as r,Me as s,Qe as t,Ze as u,Q as v,Pe as w,C as x,et as y,Ue as z};
|
_astro/explorer.y9HGsqM2.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.muted.svelte-b0gqvn.svelte-b0gqvn{color:var(--muted-color)}.note.svelte-b0gqvn.svelte-b0gqvn{font-size:12.5px;color:var(--muted-color);margin:0 0 6px}.ev-head.svelte-b0gqvn.svelte-b0gqvn{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}h2.svelte-b0gqvn.svelte-b0gqvn{margin:0 0 4px;font-size:26px}.unit.svelte-b0gqvn.svelte-b0gqvn{font-family:var(--font-mono);font-size:15px;color:var(--primary-color)}.desc.svelte-b0gqvn.svelte-b0gqvn{color:var(--muted-color);margin:10px 0 6px}.chips.svelte-b0gqvn.svelte-b0gqvn{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 16px}.chip.svelte-b0gqvn.svelte-b0gqvn{display:inline-block;font-size:12px;padding:2px 9px;border-radius:999px;background:var(--surface-bg);border:1px solid var(--border-color);color:var(--muted-color);white-space:pre}.chip.ok.svelte-b0gqvn.svelte-b0gqvn{color:var(--success-color);border-color:color-mix(in oklch,var(--success-color) 45%,transparent)}.chip.bad.svelte-b0gqvn.svelte-b0gqvn{color:var(--danger-color);border-color:color-mix(in oklch,var(--danger-color) 45%,transparent)}.chip.tok.svelte-b0gqvn.svelte-b0gqvn{margin:0 4px 4px 0}.ev-body.svelte-b0gqvn.svelte-b0gqvn{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-gap:28px;gap:28px}.row.svelte-b0gqvn.svelte-b0gqvn{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.tabs.svelte-b0gqvn.svelte-b0gqvn{display:inline-flex;gap:4px;flex-wrap:wrap}.tabs.svelte-b0gqvn button.svelte-b0gqvn,.poles.svelte-b0gqvn button.svelte-b0gqvn,.btns.svelte-b0gqvn button.svelte-b0gqvn{font:inherit;font-size:13px;padding:4px 11px;border-radius:7px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--muted-color);cursor:pointer}.tabs.svelte-b0gqvn button[aria-selected=true].svelte-b0gqvn,.poles.svelte-b0gqvn button[aria-selected=true].svelte-b0gqvn{color:var(--text-color);border-color:var(--primary-color)}.poles.svelte-b0gqvn button.svelte-b0gqvn:disabled{opacity:.4;cursor:default}.doses.svelte-b0gqvn.svelte-b0gqvn{margin-top:8px}.prompt.svelte-b0gqvn.svelte-b0gqvn{color:var(--muted-color);margin:12px 0 8px;font-size:14px}.outs.svelte-b0gqvn.svelte-b0gqvn{display:grid;grid-gap:10px;gap:10px}.outs.two.svelte-b0gqvn.svelte-b0gqvn{grid-template-columns:1fr 1fr}.out.svelte-b0gqvn.svelte-b0gqvn{border:1px solid var(--border-color);border-radius:10px;padding:10px 12px;word-break:break-word;font-size:14.5px;line-height:1.5}.txt.svelte-b0gqvn.svelte-b0gqvn,details.svelte-b0gqvn div.svelte-b0gqvn{white-space:pre-wrap}.out.steered.svelte-b0gqvn.svelte-b0gqvn{border-color:color-mix(in oklch,var(--primary-color) 45%,var(--border-color))}.lab.svelte-b0gqvn.svelte-b0gqvn{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-color);margin-bottom:4px}details.svelte-b0gqvn summary.svelte-b0gqvn{cursor:pointer;font-size:12px;color:var(--muted-color)}.side.svelte-b0gqvn .block.svelte-b0gqvn{margin-bottom:14px}.k.svelte-b0gqvn.svelte-b0gqvn{font-size:12px;color:var(--muted-color);margin-bottom:4px}.v.svelte-b0gqvn.svelte-b0gqvn{font-size:13.5px}.mono.svelte-b0gqvn.svelte-b0gqvn{font-family:var(--font-mono);font-size:12.5px}.btns.svelte-b0gqvn.svelte-b0gqvn{display:flex;gap:6px}.code.svelte-b0gqvn.svelte-b0gqvn{margin-top:18px;max-height:360px;overflow:auto;font-family:var(--font-mono);font-size:12.5px;line-height:1.6;white-space:pre;background:#ffffff0a;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:14px 16px}.code.svelte-b0gqvn code.svelte-b0gqvn{display:block;background:none;border:0;padding:0;margin:0;font:inherit;color:#d5d9e0;white-space:inherit}.code.svelte-b0gqvn .hl-key{color:#d2a8ff}.code.svelte-b0gqvn .hl-str{color:#a5d6ff}.code.svelte-b0gqvn .hl-num,.code.svelte-b0gqvn .hl-lit{color:#79c0ff}.code.svelte-b0gqvn .hl-kw{color:#ff7b72}.code.svelte-b0gqvn .hl-fn{color:#ffa657}.code.svelte-b0gqvn .hl-com{color:#8b949e;font-style:italic}@media (max-width: 820px){.ev-body.svelte-b0gqvn.svelte-b0gqvn,.outs.two.svelte-b0gqvn.svelte-b0gqvn{grid-template-columns:1fr}}dialog.svelte-1xxwurk{width:min(1080px,calc(100vw - 24px));max-height:calc(100vh - 32px);border:1px solid var(--border-color);border-radius:14px;padding:22px 24px;background:var(--page-bg);color:var(--text-color)}dialog.svelte-1xxwurk::backdrop{background:#00000080}.close.svelte-1xxwurk{float:right;font-size:26px;line-height:1;background:none;border:0;color:var(--muted-color);cursor:pointer;padding:0 4px}.where.svelte-1xxwurk{margin:0 0 6px;font-size:13px;color:var(--muted-color)}
|
explorer.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Explorer · Inside Beam</title><meta name="description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/explorer.html"><meta property="og:type" content="article"><meta property="og:title" content="Explorer · Inside Beam"><meta property="og:description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/explorer.html"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Explorer · Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Explorer · Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Explorer · Inside Beam"><meta name="twitter:description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Explorer · Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Explorer · Inside Beam","description":"Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/explorer.html","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
<style>.controls.svelte-1ap2cn9.svelte-1ap2cn9{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 10px;font-size:14px}input[type=search].svelte-1ap2cn9.svelte-1ap2cn9{flex:1 1 340px;min-width:0;font:inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}select.svelte-1ap2cn9.svelte-1ap2cn9{font:inherit;font-size:13px;padding:5px 8px;border-radius:7px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}.count.svelte-1ap2cn9.svelte-1ap2cn9{color:var(--muted-color);font-size:13px}.results.svelte-1ap2cn9.svelte-1ap2cn9{list-style:none;margin:6px 0 10px;padding:0;border-top:1px solid var(--border-color);max-height:560px;overflow-y:auto}.results.svelte-1ap2cn9 li.svelte-1ap2cn9{border-bottom:1px solid var(--border-color)}.results.svelte-1ap2cn9 button.svelte-1ap2cn9{width:100%;display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,260px);grid-gap:12px;gap:12px;align-items:baseline;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:9px 6px;cursor:pointer}.results.svelte-1ap2cn9 button.svelte-1ap2cn9:hover{background:var(--surface-bg)}.id.svelte-1ap2cn9.svelte-1ap2cn9{font-family:var(--font-mono);font-size:12.5px;color:var(--muted-color)}.toks.svelte-1ap2cn9.svelte-1ap2cn9{font-size:12px;color:var(--muted-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip.svelte-1ap2cn9.svelte-1ap2cn9{font-size:11.5px;padding:0 8px;margin-left:6px;border-radius:999px;border:1px solid var(--border-color);color:var(--muted-color)}.chip.ok.svelte-1ap2cn9.svelte-1ap2cn9{color:var(--success-color)}.more.svelte-1ap2cn9.svelte-1ap2cn9{font:inherit;font-size:13px;padding:5px 12px;border-radius:7px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color);cursor:pointer}.atlas.svelte-1ap2cn9.svelte-1ap2cn9{margin-top:40px}.legend.svelte-1ap2cn9.svelte-1ap2cn9{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted-color);margin-bottom:8px}.legend.svelte-1ap2cn9 i.svelte-1ap2cn9{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}.legend.svelte-1ap2cn9 i.empty.svelte-1ap2cn9{border:1px dashed var(--border-color)}.gridwrap.svelte-1ap2cn9.svelte-1ap2cn9{position:relative}canvas.svelte-1ap2cn9.svelte-1ap2cn9{width:100%;height:auto;image-rendering:pixelated;cursor:crosshair;display:block}.tip.svelte-1ap2cn9.svelte-1ap2cn9{position:absolute;pointer-events:none;background:var(--page-bg);border:1px solid var(--border-color);border-radius:6px;padding:6px 9px;font-size:12.5px;max-width:300px;box-shadow:0 4px 14px #00000026;z-index:3}@media (max-width: 640px){.results.svelte-1ap2cn9 button.svelte-1ap2cn9{grid-template-columns:90px minmax(0,1fr)}.toks.svelte-1ap2cn9.svelte-1ap2cn9{display:none}}
|
| 3 |
</style>
|
| 4 |
-
<link rel="stylesheet" href="/_astro/explorer.
|
| 5 |
the blind judge's verdict, and what Beam says when it is pushed. Beam's labels describe each direction's positive side (the tokens it promotes);
|
| 6 |
-
pushes the other way are shown but not labelled.</p> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="ZqlJk7" component-url="/_astro/Explorer.
|
| 7 |
<select class="svelte-1ap2cn9"><option value="sig" data-svelte-h="svelte-1hpo92h">steering significant / judge verified</option><option value="coh" data-svelte-h="svelte-1mhtjt7">Beam says coherent</option><option value="subj" data-svelte-h="svelte-suyfcd">Beam's subject</option></select></label></div> <div class="legend svelte-1ap2cn9"><span data-svelte-h="svelte-1w9go6r"><i style="background:var(--success-color)" class="svelte-1ap2cn9"></i>judge verified</span><span data-svelte-h="svelte-1sz6jfm"><i style="background:var(--primary-color)" class="svelte-1ap2cn9"></i>significant</span><span data-svelte-h="svelte-mhulbe"><i style="background:var(--border-color)" class="svelte-1ap2cn9"></i>neither</span> <span data-svelte-h="svelte-va3oxy"><i class="empty svelte-1ap2cn9"></i>no sweep data</span></div> <div class="gridwrap svelte-1ap2cn9"><canvas aria-label="MoE layers 3 to 51 (rows) by experts 0 to 255 (columns)" class="svelte-1ap2cn9"></canvas> </div> <p class="count svelte-1ap2cn9" data-svelte-h="svelte-ns7wsm">Rows: MoE layers 3 (top) to 51. Columns: experts 0–255. Click an expert to open it.</p></section> <dialog aria-label="Expert" class="svelte-1xxwurk"><form method="dialog" data-svelte-h="svelte-hb0f8y"><button class="close svelte-1xxwurk" aria-label="Close">×</button></form> </dialog><!--astro:end--></astro-island> </main> <footer class="app-footer">
|
| 8 |
By Swapnil Dutta (<a href="https://huggingface.co/rycerzes">rycerzes</a>). Built for Reflection's <a href="https://huggingface.co/reflection/Beam-1.0-501B-A23B/discussions/5">Build with Beam</a>
|
| 9 |
contest; not affiliated with Reflection. Data and code Apache-2.0
|
|
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Explorer · Inside Beam</title><meta name="description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/explorer.html"><meta property="og:type" content="article"><meta property="og:title" content="Explorer · Inside Beam"><meta property="og:description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/explorer.html"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Explorer · Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Explorer · Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Explorer · Inside Beam"><meta name="twitter:description" content="Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Explorer · Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Explorer · Inside Beam","description":"Search all 12,066 swept experts of Beam-1.0-501B by Beam's own labels, with steered outputs and validation.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/explorer.html","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
<style>.controls.svelte-1ap2cn9.svelte-1ap2cn9{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 10px;font-size:14px}input[type=search].svelte-1ap2cn9.svelte-1ap2cn9{flex:1 1 340px;min-width:0;font:inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}select.svelte-1ap2cn9.svelte-1ap2cn9{font:inherit;font-size:13px;padding:5px 8px;border-radius:7px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}.count.svelte-1ap2cn9.svelte-1ap2cn9{color:var(--muted-color);font-size:13px}.results.svelte-1ap2cn9.svelte-1ap2cn9{list-style:none;margin:6px 0 10px;padding:0;border-top:1px solid var(--border-color);max-height:560px;overflow-y:auto}.results.svelte-1ap2cn9 li.svelte-1ap2cn9{border-bottom:1px solid var(--border-color)}.results.svelte-1ap2cn9 button.svelte-1ap2cn9{width:100%;display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,260px);grid-gap:12px;gap:12px;align-items:baseline;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:9px 6px;cursor:pointer}.results.svelte-1ap2cn9 button.svelte-1ap2cn9:hover{background:var(--surface-bg)}.id.svelte-1ap2cn9.svelte-1ap2cn9{font-family:var(--font-mono);font-size:12.5px;color:var(--muted-color)}.toks.svelte-1ap2cn9.svelte-1ap2cn9{font-size:12px;color:var(--muted-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip.svelte-1ap2cn9.svelte-1ap2cn9{font-size:11.5px;padding:0 8px;margin-left:6px;border-radius:999px;border:1px solid var(--border-color);color:var(--muted-color)}.chip.ok.svelte-1ap2cn9.svelte-1ap2cn9{color:var(--success-color)}.more.svelte-1ap2cn9.svelte-1ap2cn9{font:inherit;font-size:13px;padding:5px 12px;border-radius:7px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color);cursor:pointer}.atlas.svelte-1ap2cn9.svelte-1ap2cn9{margin-top:40px}.legend.svelte-1ap2cn9.svelte-1ap2cn9{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted-color);margin-bottom:8px}.legend.svelte-1ap2cn9 i.svelte-1ap2cn9{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}.legend.svelte-1ap2cn9 i.empty.svelte-1ap2cn9{border:1px dashed var(--border-color)}.gridwrap.svelte-1ap2cn9.svelte-1ap2cn9{position:relative}canvas.svelte-1ap2cn9.svelte-1ap2cn9{width:100%;height:auto;image-rendering:pixelated;cursor:crosshair;display:block}.tip.svelte-1ap2cn9.svelte-1ap2cn9{position:absolute;pointer-events:none;background:var(--page-bg);border:1px solid var(--border-color);border-radius:6px;padding:6px 9px;font-size:12.5px;max-width:300px;box-shadow:0 4px 14px #00000026;z-index:3}@media (max-width: 640px){.results.svelte-1ap2cn9 button.svelte-1ap2cn9{grid-template-columns:90px minmax(0,1fr)}.toks.svelte-1ap2cn9.svelte-1ap2cn9{display:none}}
|
| 3 |
</style>
|
| 4 |
+
<link rel="stylesheet" href="/_astro/explorer.y9HGsqM2.css"><script type="module" src="/_astro/page.BgPfbzVk.js"></script></head> <body class="app-body"> <header class="site-head"> <div class="sh-brand"> <a class="sh-name" href="/index.html">Inside Beam</a> <span class="sh-sub">12,544 experts of Beam-1.0-501B</span> </div> <nav class="sh-pills" aria-label="Pages"> <a href="/index.html">Studio</a><a href="/recipes.html">Recipes</a><a href="/explorer.html" class="on" aria-current="page">Explorer</a><a href="/about.html">About</a> </nav> <nav class="sh-links" aria-label="Project"> <a href="https://rycerz.es/blog/inside-beam">Write-up</a> <a href="https://github.com/rycerzes/beam-inside/blob/main/research_log.md">Research log</a> <a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">Dataset</a> <a href="https://github.com/rycerzes/beam-inside">Code</a> </nav> </header> <main class="app-main"> <h1>Explorer</h1> <p class="app-lede">Every swept expert of Beam-1.0-501B: Beam's name for it, whether its push passed the steering test,
|
| 5 |
the blind judge's verdict, and what Beam says when it is pushed. Beam's labels describe each direction's positive side (the tokens it promotes);
|
| 6 |
+
pushes the other way are shown but not labelled.</p> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="ZqlJk7" component-url="/_astro/Explorer.Dh7WjPWI.js" component-export="default" renderer-url="/_astro/client.CWY0IrnN.js" props="{}" ssr="" client="load" opts="{"name":"Explorer","value":true}" await-children=""> <section><div class="controls svelte-1ap2cn9"><input type="search" placeholder="search Beam's labels, subjects, tokens or L28 E155" aria-label="Search" class="svelte-1ap2cn9" value=""> <select aria-label="Subject" class="svelte-1ap2cn9"><option value="" data-svelte-h="svelte-p4w4zu">any subject</option></select> <select aria-label="Pole" class="svelte-1ap2cn9"><option value="+" data-svelte-h="svelte-4yunyx">+ poles (labelled)</option><option value="-" data-svelte-h="svelte-fo344q">− poles</option><option value="any" data-svelte-h="svelte-phej2i">both poles</option></select> <select aria-label="Sort" class="svelte-1ap2cn9"><option value="verified" data-svelte-h="svelte-1fijms4">verified first</option><option value="layer" data-svelte-h="svelte-iol3at">by layer</option></select></div> <div class="controls svelte-1ap2cn9"><label><input type="checkbox"> steering significant</label> <label><input type="checkbox"> judge verified</label> <label><input type="checkbox"> Beam says coherent</label> <span class="count svelte-1ap2cn9">0 expert directions</span></div> <ol class="results svelte-1ap2cn9"></ol> </section> <section class="atlas svelte-1ap2cn9"><h2 data-svelte-h="svelte-edmfcz">Atlas</h2> <div class="controls svelte-1ap2cn9"><label>colour by
|
| 7 |
<select class="svelte-1ap2cn9"><option value="sig" data-svelte-h="svelte-1hpo92h">steering significant / judge verified</option><option value="coh" data-svelte-h="svelte-1mhtjt7">Beam says coherent</option><option value="subj" data-svelte-h="svelte-suyfcd">Beam's subject</option></select></label></div> <div class="legend svelte-1ap2cn9"><span data-svelte-h="svelte-1w9go6r"><i style="background:var(--success-color)" class="svelte-1ap2cn9"></i>judge verified</span><span data-svelte-h="svelte-1sz6jfm"><i style="background:var(--primary-color)" class="svelte-1ap2cn9"></i>significant</span><span data-svelte-h="svelte-mhulbe"><i style="background:var(--border-color)" class="svelte-1ap2cn9"></i>neither</span> <span data-svelte-h="svelte-va3oxy"><i class="empty svelte-1ap2cn9"></i>no sweep data</span></div> <div class="gridwrap svelte-1ap2cn9"><canvas aria-label="MoE layers 3 to 51 (rows) by experts 0 to 255 (columns)" class="svelte-1ap2cn9"></canvas> </div> <p class="count svelte-1ap2cn9" data-svelte-h="svelte-ns7wsm">Rows: MoE layers 3 (top) to 51. Columns: experts 0–255. Click an expert to open it.</p></section> <dialog aria-label="Expert" class="svelte-1xxwurk"><form method="dialog" data-svelte-h="svelte-hb0f8y"><button class="close svelte-1xxwurk" aria-label="Close">×</button></form> </dialog><!--astro:end--></astro-island> </main> <footer class="app-footer">
|
| 8 |
By Swapnil Dutta (<a href="https://huggingface.co/rycerzes">rycerzes</a>). Built for Reflection's <a href="https://huggingface.co/reflection/Beam-1.0-501B-A23B/discussions/5">Build with Beam</a>
|
| 9 |
contest; not affiliated with Reflection. Data and code Apache-2.0
|
index.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Inside Beam</title><meta name="description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/"><meta property="og:type" content="article"><meta property="og:title" content="Inside Beam"><meta property="og:description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Inside Beam"><meta name="twitter:description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Inside Beam","description":"One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability, mixture-of-experts","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
-
<link rel="stylesheet" href="/_astro/Studio.CFbrg5xI.css"><script type="module" src="/_astro/page.BgPfbzVk.js"></script></head> <body> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="Z1vSEwH" component-url="/_astro/Studio.
|
|
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Inside Beam</title><meta name="description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/"><meta property="og:type" content="article"><meta property="og:title" content="Inside Beam"><meta property="og:description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Inside Beam"><meta name="twitter:description" content="One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Inside Beam","description":"One token's path through Beam-1.0-501B's 12,544 experts, a map of what each one writes, and real outputs when you push one into the model.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability, mixture-of-experts","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
+
<link rel="stylesheet" href="/_astro/Studio.CFbrg5xI.css"><script type="module" src="/_astro/page.BgPfbzVk.js"></script></head> <body> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="Z1vSEwH" component-url="/_astro/Studio.js8y068v.js" component-export="default" renderer-url="/_astro/client.CWY0IrnN.js" props="{}" ssr="" client="only" opts="{"name":"Studio","value":"svelte"}"></astro-island> <noscript>Inside Beam needs JavaScript. The <a href="/explorer.html">explorer</a> lists every expert.</noscript> </body></html>
|
recipes.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Recipes · Inside Beam</title><meta name="description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:type" content="article"><meta property="og:title" content="Recipes · Inside Beam"><meta property="og:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Recipes · Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Recipes · Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Recipes · Inside Beam"><meta name="twitter:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Recipes · Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Recipes · Inside Beam","description":"Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/recipes.html","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
<style>.bar.svelte-1c2sm3t{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 18px}input.svelte-1c2sm3t{flex:0 1 340px;font:inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}.count.svelte-1c2sm3t{color:var(--muted-color);font-size:13px}.grid.svelte-1c2sm3t{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:14px;gap:14px}.card.svelte-1c2sm3t{display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--surface-bg);border:1px solid var(--border-color);border-radius:12px;padding:16px 18px}.card.svelte-1c2sm3t:hover,.card.svelte-1c2sm3t:focus-visible{border-color:var(--primary-color);outline:none}.title.svelte-1c2sm3t{font-size:19px;font-weight:650;line-height:1.25}.unit.svelte-1c2sm3t{font-family:var(--font-mono);font-size:13px;color:var(--primary-color)}.q.svelte-1c2sm3t{font-size:12px;color:var(--muted-color);margin-top:4px}.a.svelte-1c2sm3t{font-size:14px;line-height:1.45;color:var(--text-color)}.tags.svelte-1c2sm3t{margin-top:auto;padding-top:6px;display:flex;gap:6px;flex-wrap:wrap}.chip.svelte-1c2sm3t{font-size:12px;padding:1px 9px;border-radius:999px;border:1px solid var(--border-color);color:var(--muted-color)}.chip.ok.svelte-1c2sm3t{color:var(--success-color)}
|
| 3 |
</style>
|
| 4 |
-
<link rel="stylesheet" href="/_astro/explorer.
|
| 5 |
against effect-matched random directions and the blind judge matched its output with high confidence; the name is
|
| 6 |
Beam's own label for the expert. Open one to compare with unsteered Beam, try the other prompts and doses, and copy
|
| 7 |
-
it as JSON or Python for the <a href="https://github.com/rycerzes/beam-inside/tree/main/steer">beam-steer</a> plugin.</p> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1XDsFk" component-url="/_astro/Recipes.
|
| 8 |
By Swapnil Dutta (<a href="https://huggingface.co/rycerzes">rycerzes</a>). Built for Reflection's <a href="https://huggingface.co/reflection/Beam-1.0-501B-A23B/discussions/5">Build with Beam</a>
|
| 9 |
contest; not affiliated with Reflection. Data and code Apache-2.0
|
| 10 |
(<a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">dataset</a>,
|
|
|
|
| 1 |
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Recipes · Inside Beam</title><meta name="description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:type" content="article"><meta property="og:title" content="Recipes · Inside Beam"><meta property="og:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Recipes · Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Recipes · Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Recipes · Inside Beam"><meta name="twitter:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Recipes · Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Recipes · Inside Beam","description":"Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/recipes.html","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
|
| 2 |
<style>.bar.svelte-1c2sm3t{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 18px}input.svelte-1c2sm3t{flex:0 1 340px;font:inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}.count.svelte-1c2sm3t{color:var(--muted-color);font-size:13px}.grid.svelte-1c2sm3t{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:14px;gap:14px}.card.svelte-1c2sm3t{display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--surface-bg);border:1px solid var(--border-color);border-radius:12px;padding:16px 18px}.card.svelte-1c2sm3t:hover,.card.svelte-1c2sm3t:focus-visible{border-color:var(--primary-color);outline:none}.title.svelte-1c2sm3t{font-size:19px;font-weight:650;line-height:1.25}.unit.svelte-1c2sm3t{font-family:var(--font-mono);font-size:13px;color:var(--primary-color)}.q.svelte-1c2sm3t{font-size:12px;color:var(--muted-color);margin-top:4px}.a.svelte-1c2sm3t{font-size:14px;line-height:1.45;color:var(--text-color)}.tags.svelte-1c2sm3t{margin-top:auto;padding-top:6px;display:flex;gap:6px;flex-wrap:wrap}.chip.svelte-1c2sm3t{font-size:12px;padding:1px 9px;border-radius:999px;border:1px solid var(--border-color);color:var(--muted-color)}.chip.ok.svelte-1c2sm3t{color:var(--success-color)}
|
| 3 |
</style>
|
| 4 |
+
<link rel="stylesheet" href="/_astro/explorer.y9HGsqM2.css"><script type="module" src="/_astro/page.BgPfbzVk.js"></script></head> <body class="app-body"> <header class="site-head"> <div class="sh-brand"> <a class="sh-name" href="/index.html">Inside Beam</a> <span class="sh-sub">12,544 experts of Beam-1.0-501B</span> </div> <nav class="sh-pills" aria-label="Pages"> <a href="/index.html">Studio</a><a href="/recipes.html" class="on" aria-current="page">Recipes</a><a href="/explorer.html">Explorer</a><a href="/about.html">About</a> </nav> <nav class="sh-links" aria-label="Project"> <a href="https://rycerz.es/blog/inside-beam">Write-up</a> <a href="https://github.com/rycerzes/beam-inside/blob/main/research_log.md">Research log</a> <a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">Dataset</a> <a href="https://github.com/rycerzes/beam-inside">Code</a> </nav> </header> <main class="app-main"> <h1>Recipes</h1> <p class="app-lede">Each recipe is one expert of Beam-1.0-501B, pushed into the running model. Every one passed the steering test
|
| 5 |
against effect-matched random directions and the blind judge matched its output with high confidence; the name is
|
| 6 |
Beam's own label for the expert. Open one to compare with unsteered Beam, try the other prompts and doses, and copy
|
| 7 |
+
it as JSON or Python for the <a href="https://github.com/rycerzes/beam-inside/tree/main/steer">beam-steer</a> plugin.</p> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1XDsFk" component-url="/_astro/Recipes.BBr12ptW.js" component-export="default" renderer-url="/_astro/client.CWY0IrnN.js" props="{}" ssr="" client="load" opts="{"name":"Recipes","value":true}" await-children=""><div class="bar svelte-1c2sm3t"><input type="search" placeholder="search recipes" aria-label="Search recipes" class="svelte-1c2sm3t" value=""> <span class="count svelte-1c2sm3t">0 recipes · every one steering-significant and matched by the blind judge</span></div> <div class="grid svelte-1c2sm3t"></div> <dialog aria-label="Expert" class="svelte-1xxwurk"><form method="dialog" data-svelte-h="svelte-hb0f8y"><button class="close svelte-1xxwurk" aria-label="Close">×</button></form> </dialog><!--astro:end--></astro-island> </main> <footer class="app-footer">
|
| 8 |
By Swapnil Dutta (<a href="https://huggingface.co/rycerzes">rycerzes</a>). Built for Reflection's <a href="https://huggingface.co/reflection/Beam-1.0-501B-A23B/discussions/5">Build with Beam</a>
|
| 9 |
contest; not affiliated with Reflection. Data and code Apache-2.0
|
| 10 |
(<a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">dataset</a>,
|