krnell 0.0.0-stage → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/Iniciar_Linux.sh +129 -0
  2. package/Instalar_Atalho_Windows.cmd +40 -0
  3. package/Instalar_Ubuntu.sh +95 -0
  4. package/Painel.cmd +138 -0
  5. package/README.md +70 -2
  6. package/bin/nyxo.mjs +138 -0
  7. package/bridge.py +5196 -0
  8. package/config.example.json +57 -0
  9. package/contexto.py +184 -0
  10. package/dashboard_web.py +308 -0
  11. package/dns_duck.py +227 -0
  12. package/ferramentas/Liberar_Firewall.ps1 +96 -0
  13. package/ferramentas/firewall_linux.sh +67 -0
  14. package/ferramentas/install_windows.py +482 -0
  15. package/ferramentas/selecionar_provedor.py +70 -0
  16. package/iniciar.sh +255 -0
  17. package/keys.example.env +3 -0
  18. package/kimi.py +482 -0
  19. package/opencode_sync.py +239 -0
  20. package/package.json +69 -4
  21. package/painel.py +5227 -0
  22. package/painel_web.py +367 -0
  23. package/plugins/system-prompt/index.ts +409 -0
  24. package/provedores/kimi/bridge.mjs +4280 -0
  25. package/provedores/kimi/package.json +10 -0
  26. package/provedores_catalogo.py +155 -0
  27. package/tls_proxy.py +205 -0
  28. package/tui_core.py +600 -0
  29. package/web/dist/.vite/manifest.json +84 -0
  30. package/web/dist/assets/LogsPage-DkXN-I7o.js +2 -0
  31. package/web/dist/assets/LogsPage-OsSvuqxQ.js +2 -0
  32. package/web/dist/assets/TerminalPage-CZTPxVyx.js +1 -0
  33. package/web/dist/assets/TerminalPage-D208X99P.js +1 -0
  34. package/web/dist/assets/TerminalPage-DYGPu4ux.css +1 -0
  35. package/web/dist/assets/index-B5rIwous.js +1 -0
  36. package/web/dist/assets/index-CJE_a_Tn.js +27 -0
  37. package/web/dist/assets/index-COlDAcsY.js +1 -0
  38. package/web/dist/assets/index-Dzc8Obwp.css +1 -0
  39. package/web/dist/assets/index-LZadV7rx.js +27 -0
  40. package/web/dist/assets/index-o8xT03ZV.css +1 -0
  41. package/web/dist/assets/press-start-2p-2BZhbCiP.ttf +0 -0
  42. package/web/dist/assets/react-vendor-C475ILlI.js +49 -0
  43. package/web/dist/assets/terminal-vendor-DOrYoP_4.css +32 -0
  44. package/web/dist/assets/terminal-vendor-Dp03d74L.js +38 -0
  45. package/web/dist/assets/terminal-webgl-BRBWwLY7.js +75 -0
  46. package/web/dist/favicon.svg +1 -0
  47. package/web/dist/fonts/OFL.txt +93 -0
  48. package/web/dist/fonts/press-start-2p.ttf +0 -0
  49. package/web/dist/index.html +18 -0
  50. package/workbuddy.py +1965 -0
@@ -0,0 +1 @@
1
+ import{M as K,n as Be,b as xt,c as z,p as ve,i as Le,d as Mt,e as Ct,f as En,v as Rn,g as Kn,h as Nn,j as kn,k as Bn,l as N,m as Ln,o as _n,q as ce,r as tt,s as Pt,w as Un,x as Gn,y as jn,z as Ft,A as Wn,C as $n,D as Hn,E as zn,F as qn,G as Dt,J as It,K as Ot,L as Et}from"./index-CJE_a_Tn.js";import{r as Yn}from"./react-vendor-C475ILlI.js";function Xn(t,e){t.indexOf(e)===-1&&t.push(e)}function Zn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let _e=()=>{};const Rt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Kt=t=>/^0[^.\s]+$/u.test(t);function Ue(t){let e;return()=>(e===void 0&&(e=t()),e)}const q=t=>t,Jn=(t,e)=>n=>e(t(n)),he=(...t)=>t.reduce(Jn),Nt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class kt{constructor(){this.subscriptions=[]}add(e){return Xn(this.subscriptions,e),()=>Zn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const R=t=>t*1e3,O=t=>t/1e3;function Bt(t,e){return e?t*(1e3/e):0}const Lt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qn=1e-7,es=12;function ts(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Lt(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Qn&&++a<es);return o}function te(t,e,n,s){if(t===e&&n===s)return q;const i=r=>ts(r,0,1,t,n);return r=>r===0||r===1?r:Lt(i(r),e,s)}const _t=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ut=t=>e=>1-t(1-e),Gt=te(.33,1.53,.69,.99),Ge=Ut(Gt),jt=_t(Ge),Wt=t=>(t*=2)<1?.5*Ge(t):.5*(2-Math.pow(2,-10*(t-1))),je=t=>1-Math.sin(Math.acos(t)),ns=Ut(je),$t=_t(je),ss=te(.42,0,1,1),is=te(0,0,.58,1),Ht=te(.42,0,.58,1),rs=t=>Array.isArray(t)&&typeof t[0]!="number",zt=t=>Array.isArray(t)&&typeof t[0]=="number",os={linear:q,easeIn:ss,easeInOut:Ht,easeOut:is,circIn:je,circInOut:$t,circOut:ns,backIn:Ge,backInOut:jt,backOut:Gt,anticipate:Wt},as=t=>typeof t=="string",nt=t=>{if(zt(t)){_e(t.length===4);const[e,n,s,i]=t;return te(e,n,s,i)}else if(as(t))return os[t];return t},ne=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function us(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(l){o.has(l)&&(c.schedule(l),t()),l(a)}const c={schedule:(l,h=!1,f=!1)=>{const v=f&&i?n:s;return h&&o.add(l),v.has(l)||v.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,r&&(r=!1,c.process(l))}};return c}const ls=40;function qt(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ne.reduce((g,w)=>(g[w]=us(r),g),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:l,update:h,preRender:f,render:d,postRender:v}=o,T=()=>{const g=K.useManualTiming?i.timestamp:performance.now();n=!1,K.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,ls),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),l.process(i),h.process(i),f.process(i),d.process(i),v.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(T))},b=()=>{n=!0,s=!0,i.isProcessing||t(T)};return{schedule:ne.reduce((g,w)=>{const m=o[w];return g[w]=(A,M=!1,y=!1)=>(n||b(),m.schedule(A,M,y)),g},{}),cancel:g=>{for(let w=0;w<ne.length;w++)o[ne[w]].cancel(g)},state:i,steps:o}}const{schedule:E,cancel:Te,state:re}=qt(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0);let se;function cs(){se=void 0}const I={now:()=>(se===void 0&&I.set(re.isProcessing||K.useManualTiming?re.timestamp:performance.now()),se),set:t=>{se=t,queueMicrotask(cs)}},J=t=>Math.round(t*1e5)/1e5,We=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hs(t){return t==null}const fs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$e=(t,e)=>n=>!!(typeof n=="string"&&fs.test(n)&&n.startsWith(t)||e&&!hs(n)&&Object.prototype.hasOwnProperty.call(n,e)),Yt=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(We);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ds=t=>z(0,255,t),de={...Be,transform:t=>Math.round(ds(t))},L={test:$e("rgb","red"),parse:Yt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(n)+", "+J(xt.transform(s))+")"};function ps(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ve={test:$e("#"),parse:ps,transform:L.transform},$={test:$e("hsl","hue"),parse:Yt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ve.transform(J(e))+", "+ve.transform(J(n))+", "+J(xt.transform(s))+")"},x={test:t=>L.test(t)||Ve.test(t)||$.test(t),parse:t=>L.test(t)?L.parse(t):$.test(t)?$.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?L.transform(t):$.transform(t),getAnimatableNone:t=>{const e=x.parse(t);return e.alpha=0,x.transform(e)}},ms=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gs(t){return isNaN(t)&&typeof t=="string"&&(t.match(We)?.length||0)+(t.match(ms)?.length||0)>0}const Xt="number",Zt="color",ys="var",bs="var(",st="${}",vs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ee(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(vs,u=>(x.test(u)?(s.color.push(r),i.push(Zt),n.push(x.parse(u))):u.startsWith(bs)?(s.var.push(r),i.push(ys),n.push(u)):(s.number.push(r),i.push(Xt),n.push(parseFloat(u))),++r,st)).split(st);return{values:n,split:a,indexes:s,types:i}}function Jt(t){return ee(t).values}function Qt(t){const{split:e,types:n}=ee(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Xt?r+=J(i[o]):a===Zt?r+=x.transform(i[o]):r+=i[o]}return r}}const Ts=t=>typeof t=="number"?0:x.test(t)?x.getAnimatableNone(t):t;function Vs(t){const e=Jt(t);return Qt(t)(e.map(Ts))}const Y={test:gs,parse:Jt,createTransformer:Qt,getAnimatableNone:Vs};function pe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function As({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=pe(u,a,t+1/3),r=pe(u,a,t),o=pe(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function oe(t,e){return n=>n>0?e:t}const fe=(t,e,n)=>t+(e-t)*n,me=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ws=[Ve,L,$],Ss=t=>ws.find(e=>e.test(t));function it(t){const e=Ss(t);if(!e)return!1;let n=e.parse(t);return e===$&&(n=As(n)),n}const rt=(t,e)=>{const n=it(t),s=it(e);if(!n||!s)return oe(t,e);const i={...n};return r=>(i.red=me(n.red,s.red,r),i.green=me(n.green,s.green,r),i.blue=me(n.blue,s.blue,r),i.alpha=fe(n.alpha,s.alpha,r),L.transform(i))},Ae=new Set(["none","hidden"]);function xs(t,e){return Ae.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ms(t,e){return n=>fe(t,e,n)}function He(t){return typeof t=="number"?Ms:typeof t=="string"?Le(t)?oe:x.test(t)?rt:Fs:Array.isArray(t)?en:typeof t=="object"?x.test(t)?rt:Cs:oe}function en(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>He(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Cs(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=He(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ps(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Fs=(t,e)=>{const n=Y.createTransformer(e),s=ee(t),i=ee(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ae.has(t)&&!i.values.length||Ae.has(e)&&!s.values.length?xs(t,e):he(en(Ps(s,i),i.values),n):oe(t,e)};function tn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?fe(t,e,n):He(t)(t,e)}const Ds=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>Te(e),now:()=>re.isProcessing?re.timestamp:I.now()}},nn=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ae=2e4;function ze(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ae;)e+=n,s=t.next(e);return e>=ae?1/0:e}function Is(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(ze(s),ae);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:O(i)}}const Os=5;function sn(t,e,n){const s=Math.max(e-Os,0);return Bt(n-t(s),e-s)}const S={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ge=.001;function Es({duration:t=S.duration,bounce:e=S.bounce,velocity:n=S.velocity,mass:s=S.mass}){let i,r,o=1-e;o=z(S.minDamping,S.maxDamping,o),t=z(S.minDuration,S.maxDuration,O(t)),o<1?(i=c=>{const l=c*o,h=l*t,f=l-n,d=we(c,o),v=Math.exp(-h);return ge-f/d*v},r=c=>{const h=c*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(c,2)*t,v=Math.exp(-h),T=we(Math.pow(c,2),o);return(-i(c)+ge>0?-1:1)*((f-d)*v)/T}):(i=c=>{const l=Math.exp(-c*t),h=(c-n)*t+1;return-ge+l*h},r=c=>{const l=Math.exp(-c*t),h=(n-c)*(t*t);return l*h});const a=5/t,u=Ks(i,r,a);if(t=R(t),isNaN(u))return{stiffness:S.stiffness,damping:S.damping,duration:t};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Rs=12;function Ks(t,e,n){let s=n;for(let i=1;i<Rs;i++)s=s-t(s)/e(s);return s}function we(t,e){return t*Math.sqrt(1-e*e)}const Ns=["duration","bounce"],ks=["stiffness","damping","mass"];function ot(t,e){return e.some(n=>t[n]!==void 0)}function Bs(t){let e={velocity:S.velocity,stiffness:S.stiffness,damping:S.damping,mass:S.mass,isResolvedFromDuration:!1,...t};if(!ot(t,ks)&&ot(t,Ns))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*z(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:S.mass,stiffness:i,damping:r}}else{const n=Es(t);e={...e,...n,mass:S.mass},e.isResolvedFromDuration=!0}return e}function ue(t=S.visualDuration,e=S.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:c,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Bs({...n,velocity:-O(n.velocity||0)}),v=f||0,T=c/(2*Math.sqrt(u*l)),b=o-r,p=O(Math.sqrt(u/l)),V=Math.abs(b)<5;s||(s=V?S.restSpeed.granular:S.restSpeed.default),i||(i=V?S.restDelta.granular:S.restDelta.default);let g;if(T<1){const m=we(p,T);g=A=>{const M=Math.exp(-T*p*A);return o-M*((v+T*p*b)/m*Math.sin(m*A)+b*Math.cos(m*A))}}else if(T===1)g=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{const m=p*Math.sqrt(T*T-1);g=A=>{const M=Math.exp(-T*p*A),y=Math.min(m*A,300);return o-M*((v+T*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}const w={calculatedDuration:d&&h||null,next:m=>{const A=g(m);if(d)a.done=m>=h;else{let M=m===0?v:0;T<1&&(M=m===0?R(v):sn(g,m,A));const y=Math.abs(M)<=s,P=Math.abs(o-A)<=i;a.done=y&&P}return a.value=a.done?o:A,a},toString:()=>{const m=Math.min(ze(w),ae),A=nn(M=>w.next(m*M).value,m,30);return m+"ms "+A},toTransition:()=>{}};return w}ue.applyToOptions=t=>{const e=Is(t,100,ue);return t.ease=e.ease,t.duration=R(e.duration),t.type="keyframes",t};function Se({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=y=>a!==void 0&&y<a||u!==void 0&&y>u,v=y=>a===void 0?u:u===void 0||Math.abs(a-y)<Math.abs(u-y)?a:u;let T=n*e;const b=h+T,p=o===void 0?b:o(b);p!==b&&(T=p-h);const V=y=>-T*Math.exp(-y/s),g=y=>p+V(y),w=y=>{const P=V(y),F=g(y);f.done=Math.abs(P)<=c,f.value=f.done?p:F};let m,A;const M=y=>{d(f.value)&&(m=y,A=ue({keyframes:[f.value,v(f.value)],velocity:sn(g,y,f.value),damping:i,stiffness:r,restDelta:c,restSpeed:l}))};return M(0),{calculatedDuration:null,next:y=>{let P=!1;return!A&&m===void 0&&(P=!0,w(y),M(y)),m!==void 0&&y>=m?A.next(y-m):(!P&&w(y),f)}}}function Ls(t,e,n){const s=[],i=n||K.mix||tn,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const u=Array.isArray(e)?e[o]||q:e;a=he(u,a)}s.push(a)}return s}function _s(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(_e(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ls(e,s,i),u=a.length,c=l=>{if(o&&l<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Nt(t[h],t[h+1],l);return a[h](f)};return n?l=>c(z(t[0],t[r-1],l)):c}function Us(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Nt(0,e,s);t.push(fe(n,1,i))}}function Gs(t){const e=[0];return Us(e,t.length-1),e}function js(t,e){return t.map(n=>n*e)}function Ws(t,e){return t.map(()=>e||Ht).splice(0,t.length-1)}function Q({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=rs(s)?s.map(nt):nt(s),r={done:!1,value:e[0]},o=js(n&&n.length===e.length?n:Gs(e),t),a=_s(o,e,{ease:Array.isArray(i)?i:Ws(e,i)});return{calculatedDuration:t,next:u=>(r.value=a(u),r.done=u>=t,r)}}const $s=t=>t!==null;function qe(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter($s),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Hs={decay:Se,inertia:Se,tween:Q,keyframes:Q,spring:ue};function rn(t){typeof t.type=="string"&&(t.type=Hs[t.type])}class Ye{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const zs=t=>t/100;class Xe extends Ye{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;rn(e);const{type:n=Q,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const u=n||Q;u!==Q&&typeof a[0]!="number"&&(this.mixKeyframes=he(zs,tn(a[0],a[1])),a=[0,100]);const c=u({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ze(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:v,onUpdate:T,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-c*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=s;if(h){const y=Math.min(this.currentTime,i)/a;let P=Math.floor(y),F=y%1;!F&&y>=1&&(F=1),F===1&&P--,P=Math.min(P,h+1),!!(P%2)&&(f==="reverse"?(F=1-F,d&&(F-=d/a)):f==="mirror"&&(w=o)),g=z(0,1,F)*a}const m=V?{done:!1,value:l[0]}:w.next(g);r&&(m.value=r(m.value));let{done:A}=m;!V&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&v!==Se&&(m.value=qe(l,this.options,b,this.speed)),T&&T(m.value),M&&this.finish(),m}then(e,n){return this.finished.then(e,n)}get duration(){return O(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(I.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ds,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function qs(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const _=t=>t*180/Math.PI,xe=t=>{const e=_(Math.atan2(t[1],t[0]));return Me(e)},Ys={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xe,rotateZ:xe,skewX:t=>_(Math.atan(t[1])),skewY:t=>_(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Me=t=>(t=t%360,t<0&&(t+=360),t),at=xe,ut=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),lt=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ut,scaleY:lt,scale:t=>(ut(t)+lt(t))/2,rotateX:t=>Me(_(Math.atan2(t[6],t[5]))),rotateY:t=>Me(_(Math.atan2(-t[2],t[0]))),rotateZ:at,rotate:at,skewX:t=>_(Math.atan(t[4])),skewY:t=>_(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ce(t){return t.includes("scale")?1:0}function Pe(t,e){if(!t||t==="none")return Ce(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Xs,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ys,i=a}if(!i)return Ce(e);const r=s[e],o=i[1].split(",").map(Js);return typeof r=="function"?r(o):o[r]}const Zs=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Pe(n,e)};function Js(t){return parseFloat(t.trim())}const ct=t=>t===Be||t===Mt,Qs=new Set(["x","y","z"]),ei=Ct.filter(t=>!Qs.has(t));function ti(t){const e=[];return ei.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const U={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Pe(e,"x"),y:(t,{transform:e})=>Pe(e,"y")};U.translateX=U.x;U.translateY=U.y;const G=new Set;let Fe=!1,De=!1,Ie=!1;function on(){if(De){const t=Array.from(G).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ti(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}De=!1,Fe=!1,G.forEach(t=>t.complete(Ie)),G.clear()}function an(){G.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function ni(){Ie=!0,an(),on(),Ie=!1}class Ze{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(G.add(this),Fe||(Fe=!0,E.read(an),E.resolveKeyframes(on))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}qs(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),G.delete(this)}cancel(){this.state==="scheduled"&&(G.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const si=t=>t.startsWith("--");function ii(t,e,n){si(e)?t.style.setProperty(e,n):t.style[e]=n}const ri=Ue(()=>window.ScrollTimeline!==void 0),oi={};function ai(t,e){const n=Ue(t);return()=>oi[e]??n()}const un=ai(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Z=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ht={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])};function ln(t,e){if(t)return typeof t=="function"?un()?nn(t,e):"ease-out":zt(t)?Z(t):Array.isArray(t)?t.map(n=>ln(n,e)||ht.easeOut):ht[t]}function ui(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const l={[e]:n};u&&(l.offset=u);const h=ln(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(l,f)}function cn(t){return typeof t=="function"&&"applyToOptions"in t}function li({type:t,...e}){return cn(t)&&un()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ci extends Ye{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,_e(typeof e.type!="string");const c=li(e);this.animation=ui(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=qe(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):ii(n,s,l),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return O(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=R(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ri()?(this.animation.timeline=e,q):n(this)}}const hn={anticipate:Wt,backInOut:jt,circInOut:$t};function hi(t){return t in hn}function fi(t){typeof t.ease=="string"&&hi(t.ease)&&(t.ease=hn[t.ease])}const ft=10;class di extends ci{constructor(e){fi(e),rn(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Xe({...o,autoplay:!1}),u=R(this.finishedTime??this.time);n.setWithVelocity(a.sample(u-ft).value,a.sample(u).value,ft),a.stop()}}const dt=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function pi(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function mi(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=dt(i,e),a=dt(r,e);return!o||!a?!1:pi(t)||(n==="spring"||cn(n))&&s}function Oe(t){t.duration=0,t.type="keyframes"}const gi=new Set(["opacity","clipPath","filter","transform"]),yi=Ue(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bi(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return yi()&&n&&gi.has(n)&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const vi=40;class Ti extends Ye{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:c,element:l,...h},d=l?.KeyframeResolver||Ze;this.keyframeResolver=new d(a,(v,T,b)=>this.onKeyframesResolved(v,T,f,!b),u,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=I.now(),mi(e,r,o,a)||((K.instantAnimations||!u)&&l?.(qe(e,s,n)),e[0]=e[e.length-1],Oe(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>vi?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&bi(f)?new di({...f,element:f.motionValue.owner.current}):new Xe(f);d.finished.then(()=>this.notifyFinished()).catch(q),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ni()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Vi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ai(t){const e=Vi.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function fn(t,e,n=1){const[s,i]=Ai(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Rt(o)?parseFloat(o):o}return Le(i)?fn(i,e,n+1):i}function dn(t,e){return t?.[e]??t?.default??t}const pn=new Set(["width","height","top","left","right","bottom",...Ct]),wi={test:t=>t==="auto",parse:t=>t},mn=t=>e=>e.test(t),gn=[Be,Mt,ve,En,Rn,Kn,wi],pt=t=>gn.find(mn(t));function Si(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Kt(t):!0}const xi=new Set(["brightness","contrast","saturate","opacity"]);function Mi(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(We)||[];if(!s)return t;const i=n.replace(s,"");let r=xi.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ci=/\b([a-z-]*)\(.*?\)/gu,Ee={...Y,getAnimatableNone:t=>{const e=t.match(Ci);return e?e.map(Mi).join(" "):t}},Pi={...Nn,color:x,backgroundColor:x,outlineColor:x,fill:x,stroke:x,borderColor:x,borderTopColor:x,borderRightColor:x,borderBottomColor:x,borderLeftColor:x,filter:Ee,WebkitFilter:Ee},yn=t=>Pi[t];function bn(t,e){let n=yn(t);return n!==Ee&&(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Fi=new Set(["auto","none","0"]);function Di(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Fi.has(r)&&ee(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=bn(n,i)}class Ii extends Ze{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let c=e[u];if(typeof c=="string"&&(c=c.trim(),Le(c))){const l=fn(c,n.current);l!==void 0&&(e[u]=l),u===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!pn.has(s)||e.length!==2)return;const[i,r]=e,o=pt(i),a=pt(r);if(o!==a)if(ct(o)&&ct(a))for(let u=0;u<e.length;u++){const c=e[u];typeof c=="string"&&(e[u]=parseFloat(c))}else U[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Si(e[i]))&&s.push(i);s.length&&Di(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Oi(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const mt=30,Ei=t=>!isNaN(parseFloat(t));class Ri{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=I.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ei(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new kt);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>mt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mt);return Bt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function le(t,e){return new Ri(t,e)}const{schedule:Ki}=qt(queueMicrotask,!1),Ni={y:!1};function ki(){return Ni.y}function vn(t,e){const n=Oi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function gt(t){return!(t.pointerType==="touch"||ki())}function Bi(t,e,n={}){const[s,i,r]=vn(t,n),o=a=>{if(!gt(a))return;const{target:u}=a,c=e(u,a);if(typeof c!="function"||!u)return;const l=h=>{gt(h)&&(c(h),u.removeEventListener("pointerleave",l))};u.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Tn=(t,e)=>e?t===e?!0:Tn(t,e.parentElement):!1,Li=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,_i=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ui(t){return _i.has(t.tagName)||t.tabIndex!==-1}const ie=new WeakSet;function yt(t){return e=>{e.key==="Enter"&&t(e)}}function ye(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Gi=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=yt(()=>{if(ie.has(n))return;ye(n,"down");const i=yt(()=>{ye(n,"up")}),r=()=>ye(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function bt(t){return Li(t)&&!0}function ji(t,e,n={}){const[s,i,r]=vn(t,n),o=a=>{const u=a.currentTarget;if(!bt(a))return;ie.add(u);const c=e(u,a),l=(d,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ie.has(u)&&ie.delete(u),bt(d)&&typeof c=="function"&&c(d,{success:v})},h=d=>{l(d,u===window||u===document||n.useGlobalTarget||Tn(u,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),kn(a)&&(a.addEventListener("focus",c=>Gi(c,i)),!Ui(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const Wi=[...gn,x,Y],$i=t=>Wi.find(mn(t));function Hi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function zi(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function qi(t,e){return Hi(zi(t.getBoundingClientRect(),e))}const vt=()=>({min:0,max:0}),Vn=()=>({x:vt(),y:vt()}),Re={current:null},An={current:!1};function Yi(){if(An.current=!0,!!Bn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addEventListener("change",e),e()}else Re.current=!1}const Xi=new WeakMap;function Zi(t,e,n){for(const s in e){const i=e[s],r=n[s];if(N(i))t.addValue(s,i);else if(N(r))t.addValue(s,le(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,le(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Tt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ji{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ze,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=I.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,E.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ln(n),this.isVariantNode=_n(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];u[f]!==void 0&&N(d)&&d.set(u[f])}}mount(e){this.current=e,Xi.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),An.current||Yi(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Re.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Te(this.notifyUpdate),Te(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=ce.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in tt){const n=tt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Vn()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Tt.length;s++){const i=Tt[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Zi(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=le(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Rt(s)||Kt(s))?s=parseFloat(s):!$i(s)&&Y.test(n)&&(s=bn(e,n)),this.setBaseTarget(e,N(s)?s.get():s)),N(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Pt(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!N(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new kt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ki.render(this.render)}}class wn extends Ji{constructor(){super(...arguments),this.KeyframeResolver=Ii}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;N(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Sn(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Qi(t){return window.getComputedStyle(t)}class er extends wn{constructor(){super(...arguments),this.type="html",this.renderInstance=Sn}readValueFromInstance(e,n){if(ce.has(n))return this.projection?.isProjecting?Ce(n):Zs(e,n);{const s=Qi(e),i=(Un(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return qi(e,n)}build(e,n,s){Gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return jn(e,n,s)}}const xn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tr(t,e,n,s){Sn(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(xn.has(i)?i:Ft(i),e.attrs[i])}class nr extends wn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Vn}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ce.has(n)){const s=yn(n);return s&&s.default||0}return n=xn.has(n)?n:Ft(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wn(e,n,s)}build(e,n,s){$n(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){tr(e,n,s,i)}mount(e){this.isSVGTag=Hn(e.tagName),super.mount(e)}}const sr=(t,e)=>zn(t)?new nr(e):new er(e,{allowProjection:t!==Yn.Fragment});function H(t,e,n){const s=t.getProps();return Pt(s,e,n!==void 0?n:s.custom,t)}const Ke=t=>Array.isArray(t);function ir(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,le(n))}function rr(t){return Ke(t)?t[t.length-1]||0:t}function or(t,e){const n=H(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=rr(r[o]);ir(t,o,a)}}function ar(t){return!!(N(t)&&t.add)}function ur(t,e){const n=t.getValue("willChange");if(ar(n))return n.add(e);if(!n&&K.WillChange){const s=new K.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function lr(t){return t.props[qn]}const cr=t=>t!==null;function hr(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(cr),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}const fr={type:"spring",stiffness:500,damping:25,restSpeed:10},dr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),pr={type:"keyframes",duration:.8},mr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gr=(t,{keyframes:e})=>e.length>2?pr:ce.has(t)?t.startsWith("scale")?dr(e[1]):fr:mr;function yr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}const br=(t,e,n,s={},i,r)=>o=>{const a=dn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-R(u);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};yr(a)||Object.assign(l,gr(t,l)),l.duration&&(l.duration=R(l.duration)),l.repeatDelay&&(l.repeatDelay=R(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Oe(l),l.delay===0&&(h=!0)),(K.instantAnimations||K.skipAnimations)&&(h=!0,Oe(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=hr(l.keyframes,a);if(f!==void 0){E.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Xe(l):new Ti(l)};function vr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Mn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const l in a){const h=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||c&&vr(c,l))continue;const d={delay:n,...dn(r||{},l)},v=h.get();if(v!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===v&&!d.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const p=lr(t);if(p){const V=window.MotionHandoffAnimation(p,l,E);V!==null&&(d.startTime=V,T=!0)}}ur(t,l),h.start(br(l,h,f,t.shouldReduceMotion&&pn.has(l)?{type:!1}:d,t,T));const b=h.animation;b&&u.push(b)}return o&&Promise.all(u).then(()=>{E.update(()=>{o&&or(t,o)})}),u}function Cn(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,l)=>c.sortNodePosition(l)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function Ne(t,e,n={}){const s=H(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Mn(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:l,staggerDirection:h}=i;return Tr(t,e,u,c,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Tr(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Ne(u,e,{...o,delay:n+(typeof s=="function"?0:s)+Cn(t.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function Vr(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ne(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ne(t,e,n);else{const i=typeof e=="function"?H(t,e,n.custom):e;s=Promise.all(Mn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Pn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Ar=It.length;function Fn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Fn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ar;n++){const s=It[n],i=t.props[s];(Dt(i)||i===!1)&&(e[s]=i)}return e}const wr=[...Et].reverse(),Sr=Et.length;function xr(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Vr(t,n,s)))}function Mr(t){let e=xr(t),n=Vt(),s=!0;const i=u=>(c,l)=>{const h=H(t,l,u==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...v}=h;c={...c,...v,...d}}return c};function r(u){e=u(t)}function o(u){const{props:c}=t,l=Fn(t.parent)||{},h=[],f=new Set;let d={},v=1/0;for(let b=0;b<Sr;b++){const p=wr[b],V=n[p],g=c[p]!==void 0?c[p]:l[p],w=Dt(g),m=p===u?V.isActive:null;m===!1&&(v=b);let A=g===l[p]&&g!==c[p]&&w;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),V.protectedKeys={...d},!V.isActive&&m===null||!g&&!V.prevProp||Ot(g)||typeof g=="boolean")continue;const M=Cr(V.prevProp,g);let y=M||p===u&&V.isActive&&!A&&w||b>v&&w,P=!1;const F=Array.isArray(g)?g:[g];let j=F.reduce(i(p),{});m===!1&&(j={});const{prevResolvedValues:Je={}}=V,In={...Je,...j},Qe=C=>{y=!0,f.has(C)&&(P=!0,f.delete(C)),V.needsAnimating[C]=!0;const D=t.getValue(C);D&&(D.liveStyle=!1)};for(const C in In){const D=j[C],k=Je[C];if(d.hasOwnProperty(C))continue;let W=!1;Ke(D)&&Ke(k)?W=!Pn(D,k):W=D!==k,W?D!=null?Qe(C):f.add(C):D!==void 0&&f.has(C)?Qe(C):V.protectedKeys[C]=!0}V.prevProp=g,V.prevResolvedValues=j,V.isActive&&(d={...d,...j}),s&&t.blockInitialAnimation&&(y=!1);const et=A&&M;y&&(!et||P)&&h.push(...F.map(C=>{const D={type:p};if(typeof C=="string"&&s&&!et&&t.manuallyAnimateOnMount&&t.parent){const{parent:k}=t,W=H(k,C);if(k.enteringChildren&&W){const{delayChildren:On}=W.transition||{};D.delay=Cn(k.enteringChildren,t,On)}}return{animation:C,options:D}}))}if(f.size){const b={};if(typeof c.initial!="boolean"){const p=H(t,Array.isArray(c.initial)?c.initial[0]:c.initial);p&&p.transition&&(b.transition=p.transition)}f.forEach(p=>{const V=t.getBaseTarget(p),g=t.getValue(p);g&&(g.liveStyle=!0),b[p]=V??null}),h.push({animation:b})}let T=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?e(h):Promise.resolve()}function a(u,c){if(n[u].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(u,c)),n[u].isActive=c;const l=o(u);for(const h in n)n[h].protectedKeys={};return l}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Vt()}}}function Cr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Pn(e,t):!1}function B(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vt(){return{animate:B(!0),whileInView:B(),whileHover:B(),whileTap:B(),whileDrag:B(),whileFocus:B(),exit:B()}}class X{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Pr extends X{constructor(e){super(e),e.animationState||(e.animationState=Mr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ot(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Fr=0;class Dr extends X{constructor(){super(...arguments),this.id=Fr++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Ir={animation:{Feature:Pr},exit:{Feature:Dr}};function At(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Dn(t){return{point:{x:t.pageX,y:t.pageY}}}function wt(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&E.postRender(()=>r(e,Dn(e)))}class Or extends X{mount(){const{current:e}=this.node;e&&(this.unmount=Bi(e,(n,s)=>(wt(this.node,s,"Start"),i=>wt(this.node,i,"End"))))}unmount(){}}class Er extends X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=he(At(this.node.current,"focus",()=>this.onFocus()),At(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function St(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&E.postRender(()=>r(e,Dn(e)))}class Rr extends X{mount(){const{current:e}=this.node;e&&(this.unmount=ji(e,(n,s)=>(St(this.node,s,"Start"),(i,{success:r})=>St(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ke=new WeakMap,be=new WeakMap,Kr=t=>{const e=ke.get(t.target);e&&e(t)},Nr=t=>{t.forEach(Kr)};function kr({root:t,...e}){const n=t||document;be.has(n)||be.set(n,{});const s=be.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Nr,{root:t,...e})),s[i]}function Br(t,e,n){const s=kr(e);return ke.set(t,n),s.observe(t),()=>{ke.delete(t),s.unobserve(t)}}const Lr={some:0,all:1};class _r extends X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Lr[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=c?l:h;f&&f(u)};return Br(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ur(e,n))&&this.startObserver()}unmount(){}}function Ur({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Gr={inView:{Feature:_r},tap:{Feature:Rr},focus:{Feature:Er},hover:{Feature:Or}},jr={renderer:sr,...Ir,...Gr};var zr=jr;export{zr as default};
@@ -0,0 +1 @@
1
+ @font-face{font-family:Pixel;src:url(/dashboard/assets/press-start-2p-2BZhbCiP.ttf) format("truetype");font-style:normal;font-weight:400;font-display:swap}:root{--ink:#182844;--paper:#fffdf6;--sky:#e6f4fc;--blue:#2452cc;--red:#ce302e;--gold:#ffce46;--green:#187348;--muted:#58677c;--line:#d5dee7;--body:"Trebuchet MS","Segoe UI",sans-serif;--mono:"Cascadia Code",Consolas,monospace;--pixel:Pixel,monospace;--shadow:4px 4px 0 var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:#f3f6f9;color:var(--ink);font:16px/1.5 var(--body)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button svg,a svg{flex-shrink:0}button{color:inherit}img,svg{max-width:100%}button,input,select{min-width:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2}button{border:0}::selection{background:var(--gold);color:var(--ink)}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:8px;left:8px;z-index:100;padding:12px 20px;background:var(--ink);color:#fff;transform:translateY(-150%)}.skip-link:focus{transform:none}.mono,code{font-family:var(--mono)}.tiny-pixel{font-family:var(--pixel);font-size:9px;line-height:1.8}.tiny-sprite{display:inline-flex;width:30px;height:30px;flex:none}.tiny-sprite svg{width:100%;height:100%;image-rendering:pixelated}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:230px;background:var(--paper);border-right:2px solid var(--ink);padding:32px 20px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;min-height:68px;font:15px/1.75 var(--pixel);letter-spacing:-1px}.brand strong{color:var(--red);font-weight:400}.brand small{display:block;font:11px/1.6 var(--mono);letter-spacing:1px;color:var(--muted);margin-top:5px}.brand-sprite{width:44px;height:44px;flex:none}.brand-sprite svg{width:100%;height:100%;image-rendering:pixelated}.nav-caption{font:10px/1.5 var(--mono);font-weight:700;letter-spacing:1.4px;color:var(--muted);margin:48px 10px 16px}.main-nav{display:flex;flex-direction:column;gap:8px}.nav-item{display:flex;gap:12px;align-items:center;min-height:50px;border:2px solid transparent;border-radius:9px;padding:10px 12px;font-size:13px;font-weight:700;transition:background-color .16s,transform .16s}.nav-item:hover{background:#eaf0fb}.nav-item.active{background:#dce9ff;border-color:var(--ink);box-shadow:3px 3px 0 var(--ink);color:#183c9b}.nav-item .icon{width:18px;height:18px}.nav-index{margin-left:auto;font:11px var(--mono)}.nav-count{margin-left:auto;padding:1px 5px;border-radius:4px;background:#e7ebf2;font:11px var(--mono)}.nav-dot{width:6px;height:6px;background:var(--red);margin-left:auto}.sidebar-note{margin-top:auto;padding:48px 12px 30px}.sidebar-note .tiny-pixel{color:var(--blue);font-size:8px}.sidebar-note p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:12px}.mini-bricks{display:flex;margin-top:26px;gap:4px}.mini-bricks span{width:27px;height:27px;border:2px solid var(--ink);background:#db7851;box-shadow:inset 2px 2px #f5b38a;position:relative}.mini-bricks span:not(:nth-child(2)):after{content:"";position:absolute;inset:11px 0 auto;border-top:2px solid var(--ink)}.mini-bricks span:nth-child(2){background:var(--gold);text-align:center;font:17px/23px var(--pixel);box-shadow:inset 2px 2px #fff1a8}.sidebar-bottom{border-top:1px dashed #a8b4c4;padding:20px 5px 0;font-size:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sidebar-bottom small{display:block;width:100%;font:9px var(--mono);letter-spacing:.9px;color:var(--muted)}.connection-dot,.status-dot{width:8px;height:8px;display:inline-block;flex:none;border-radius:50%;background:#8a95a5}.connection-dot.connected{background:var(--green);box-shadow:0 0 0 3px #dff0e7}.workspace{margin-left:230px;min-width:0}.topbar{min-height:78px;background:var(--paper);border-bottom:1px solid var(--line);padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.breadcrumb .tiny-pixel{font-size:8px;color:var(--ink)}.breadcrumb-separator{color:#9aa9be}.toolbar{display:flex;gap:10px;align-items:center}.connection-label{font:11px var(--mono);margin-right:4px;color:var(--muted)}.icon-button,.player-button{min-width:44px;min-height:44px;border:1px solid #c9d3e0;display:inline-flex;align-items:center;justify-content:center;background:var(--paper);border-radius:8px;transition:background-color .18s,transform .18s}.icon-button:hover{background:#e9f1fd}.icon-button[aria-pressed=true]{background:var(--gold);border-color:var(--ink)}.player-button{background:#ffe8bf;border:2px solid var(--ink);font-size:12px;font-weight:900;box-shadow:2px 2px var(--ink)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border:2px solid var(--ink);padding:12px 18px;border-radius:8px;background:var(--paper);font-size:13px;font-weight:700;line-height:1.3;transition:transform .18s,box-shadow .18s,background-color .18s}.button:hover{transform:translate(-2px,-2px);box-shadow:3px 3px var(--ink)}.button:active{transform:translate(1px,1px);box-shadow:none}.button-primary{background:var(--red);color:#fff;box-shadow:3px 3px var(--ink)}.button-primary:hover{background:#b92624;box-shadow:5px 5px var(--ink)}.button-paper{box-shadow:3px 3px var(--ink)}.button-small{min-height:44px;padding:9px 12px;font-size:12px}.button .icon{width:17px;height:17px}main{max-width:1510px;margin:auto;padding:30px 32px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 27px}.eyebrow{font:10px/1.6 var(--mono);letter-spacing:1.5px;color:var(--muted);font-weight:700;margin-bottom:10px}h1{font-size:clamp(24px,2.5vw,38px);letter-spacing:-1.5px;font-weight:900}.title-dot{color:var(--red)}.page-heading p:last-child{font-size:14px;color:var(--muted);margin-top:9px}.page-heading .mono{color:var(--blue)}.clock{text-align:right;flex:none}.clock>span:first-child{display:block;font:9px/2 var(--mono);letter-spacing:1px;color:var(--muted)}.clock .tiny-pixel{font-size:15px}.world-card{position:relative;display:grid;grid-template-columns:1fr 1.15fr;min-height:350px;background:#d9eeff;border:2px solid var(--ink);border-radius:18px;box-shadow:5px 5px 0 var(--ink);overflow:clip;isolation:isolate}.world-copy{position:relative;z-index:3;padding:34px 12px 30px 34px}.world-label{font:9px var(--mono);letter-spacing:1px;font-weight:700;display:flex;align-items:center;gap:7px}.world-copy h2{font:clamp(28px,3.2vw,48px)/1.45 var(--pixel);letter-spacing:-2px;margin:16px 0 12px;text-shadow:3px 3px 0 #fffdf6}.world-copy h2>span{color:var(--blue)}.world-copy>p{font-size:14px;line-height:1.6;color:#38516d}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.world-model{display:flex;align-items:center;gap:10px;margin-top:25px;min-width:0}.pixel-chip{width:30px;height:30px;border:2px solid var(--ink);border-radius:6px;display:grid;place-items:center;background:var(--paper);font:13px var(--pixel);box-shadow:2px 2px var(--ink);flex:none}.world-model>div{min-width:0}.world-model div>span{display:block;font:8px var(--mono);letter-spacing:1px;color:#46617b}.world-model strong{display:block;font:12px/1.8 var(--mono);overflow-wrap:anywhere;font-weight:700}.world-art{position:relative;min-width:0;align-self:stretch;overflow:clip}.world-scene{position:absolute;inset:0}.world-scene>svg{width:100%;height:100%;display:block}.world-hud{position:absolute;top:28px;left:22px;right:24px;display:flex;justify-content:space-between;font:8px/1.6 var(--pixel);color:#315580}.world-hud>span:last-child{display:flex;align-items:center;gap:8px}.coin-mini{width:10px;height:15px;display:inline-block;background:var(--gold);box-shadow:2px 0 #bd7913,-2px 0 #bd7913;border-top:2px solid #fff5b9;border-bottom:2px solid #a97119}.mario-pet{position:absolute;bottom:70px;left:47%;width:66px;height:84px;padding:0;background:transparent;border-radius:0;z-index:4;transform-origin:center bottom;transition:filter .18s}.mario-pet>span{display:block;width:100%;height:100%}.mario-pet svg{width:100%;height:100%;image-rendering:pixelated;filter:drop-shadow(3px 3px 0 #17254128)}.mario-pet:hover{filter:brightness(1.08)}.pet-shadow{position:absolute;bottom:68px;left:46%;width:75px;height:8px;background:#1a6b5a40}.question-block{position:absolute;bottom:203px;left:49%;z-index:3;width:46px;height:46px;display:grid;place-items:center;background:var(--gold);color:#714209;border:3px solid #84541c;box-shadow:inset 3px 3px #ffe797,3px 3px #84541c;font:24px var(--pixel);border-radius:1px;transition:background-color .15s}.question-block:hover{background:#ffe79c}.pet-bubble{position:absolute;left:25%;bottom:174px;z-index:5;font:10px/1.5 var(--mono);padding:8px 12px;background:var(--paper);border:2px solid var(--ink);box-shadow:2px 2px var(--ink);border-radius:6px;pointer-events:none;opacity:0;max-width:70%;transform:translateY(5px);transition:opacity .2s,transform .2s}.pet-bubble.visible{opacity:1;transform:none}.world-coordinates{position:absolute;bottom:24px;left:18px;right:18px;font:8px var(--mono);letter-spacing:1.5px;color:#fff6dd;text-align:center;z-index:3}.floating-coin{position:absolute;width:24px;height:24px;left:52%;bottom:250px;pointer-events:none;z-index:5}.ambient-cloud{animation:cloud-drift 18s ease-in-out infinite alternate}.ambient-cloud:nth-of-type(2){animation-delay:-9s}@keyframes cloud-drift{0%{transform:translate(-6px)}to{transform:translate(14px)}}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}.metric{min-width:0;background:var(--paper);border:1px solid #cfd9e3;border-radius:12px;padding:18px 20px 16px;position:relative}.metric:before{content:"";position:absolute;left:20px;top:0;height:3px;width:28px;background:var(--blue)}.metric:nth-child(2):before{background:var(--red)}.metric:nth-child(3):before{background:#e8b12e}.metric:nth-child(4):before{background:var(--green)}.metric-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font:9px/1.5 var(--mono);letter-spacing:.5px;color:var(--muted);min-height:25px}.metric-heading .icon{width:19px;height:19px;color:var(--blue)}.metric-pixel{height:25px;width:25px;flex:none;display:inline-flex}.metric>strong{display:block;font-size:33px;line-height:1.2;margin:12px 0 6px;font-weight:900;letter-spacing:-1.3px;font-variant-numeric:tabular-nums}.metric small{display:block;font-size:11px;color:var(--muted)}.metric-unit{font:12px var(--mono);color:var(--muted);margin-left:7px}.panel{background:var(--paper);border:1px solid #cbd5e1;border-radius:14px;min-width:0;scroll-margin-top:24px}.panel-heading{padding:24px 24px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px}.section-kicker{display:flex;align-items:center;gap:7px;font:9px/1.5 var(--mono);letter-spacing:1.3px;font-weight:700;color:var(--muted);margin-bottom:10px}.section-kicker .icon{width:15px;height:15px}.panel-heading h2{font-size:20px;font-weight:900;letter-spacing:-.65px}.section-description{color:var(--muted);font-size:12px;line-height:1.65;margin-top:8px;max-width:510px}.status-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr);gap:22px;margin-bottom:24px}.provider-tag{font:10px var(--mono);padding:7px 10px;background:#ecf1f7;border:1px solid #d3deeb;border-radius:5px;text-transform:uppercase;letter-spacing:.5px}.model-status-heading{margin:0 24px 20px;padding:16px;background:#f4f8fc;border:1px solid #d9e3ec;display:flex;align-items:center;gap:12px;border-radius:9px;min-width:0}.model-status-heading>div{min-width:0;flex:1}.model-status-heading h3{font:12px/1.5 var(--mono);font-weight:700;overflow-wrap:anywhere}.model-status-heading p{font-size:11px;color:var(--muted);margin-top:5px}.status-emblem{display:grid;place-items:center;flex:none;width:34px;height:34px;background:#e5ecf4;border-radius:7px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;font-size:10px;font-weight:700;border-radius:5px;white-space:nowrap}.badge:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor}.badge.good{background:#e2f3e4;color:var(--green)}.badge.bad{background:#ffeded;color:#ad2929}.badge.degraded{background:#fff2c4;color:#825200}.badge.neutral{background:#e7edf4;color:#53627a}.status-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 24px 24px}.status-facts>div{padding:0 14px;border-right:1px solid var(--line);min-width:0}.status-facts>div:first-child{padding-left:0}.status-facts>div:last-child{border:0;padding-right:0}.status-facts span{font:8px/1.6 var(--mono);letter-spacing:.5px;color:var(--muted);display:block}.status-facts strong{display:block;margin-top:8px;font-size:23px;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums}.status-facts small{font-size:14px;font-weight:400;color:var(--muted)}.history-header{display:flex;justify-content:space-between;gap:10px;margin:0 24px 10px;font-size:11px;font-weight:700}.history-header span:last-child{color:var(--muted);font-weight:400}.history-bars{display:flex;height:34px;gap:3px;margin:0 24px}.history-bar{min-width:0;flex:1;border-radius:2px;background:#d9e2ec;position:relative}.history-bar.good{background:#2f9465}.history-bar.degraded{background:#e2ab30}.history-bar.bad{background:#d94a48}.history-bar:focus-visible{outline-offset:2px}.history-scale{display:flex;justify-content:space-between;margin:7px 24px 15px;font:9px var(--mono);color:var(--muted)}.status-footnote{display:flex;flex-wrap:wrap;gap:12px;margin:0 24px 15px;font-size:10px;color:var(--muted)}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px;background:#95a4b8}.legend-dot.good{background:#2f9465}.legend-dot.degraded{background:#bc891c}.legend-dot.bad{background:#d94a48}.source-note{padding:11px 24px;background:#f7f9fc;border-top:1px solid #e0e7ee;font:9px/1.7 var(--mono);color:var(--muted);border-radius:0 0 14px 14px;overflow-wrap:anywhere}.count-disc{width:30px;height:30px;border:1px solid #d0dceb;border-radius:50%;background:#edf3fb;display:grid;place-items:center;font:12px var(--mono)}.accounts-list{padding:0 24px;max-height:255px;overflow-y:auto;scrollbar-width:thin}.account-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px dashed #d4dce5}.account-row:last-child{border:0}.account-avatar{flex:none;width:32px;height:32px;border:1px solid #b3caec;background:#e7effe;border-radius:8px;display:grid;place-items:center;font:11px var(--mono);font-weight:700;color:#2452cc}.account-info{flex:1;min-width:0}.account-info strong{display:block;font:11px/1.4 var(--mono);overflow-wrap:anywhere}.account-info small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.account-row .badge{font-size:9px}.account-footer{margin:18px 24px 24px;background:#fff6d9;border:1px solid #eee0b4;border-radius:8px;padding:13px;display:flex;align-items:center;gap:12px}.account-footer p{font-size:11px;font-weight:700}.account-footer p span{font-size:10px;font-weight:400;color:#786341}.requests-panel{margin-bottom:24px}.filter-group{display:flex;gap:6px;background:#f0f4f8;border-radius:7px;padding:4px}.filter-button{min-height:44px;padding:8px 14px;background:transparent;border:1px solid transparent;border-radius:6px;font-size:12px;font-weight:700;transition:background-color .16s,transform .16s}.filter-button:hover{background:#dce8f8}.filter-button.active{border-color:#b7c7de;background:var(--paper);color:var(--blue);box-shadow:0 2px #d4dbe5}.table-wrapper{padding:0 24px}.request-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}.request-table caption{text-align:left}.request-table th{font:8px/1.5 var(--mono);letter-spacing:.5px;color:var(--muted);padding:12px 8px;background:#f2f6fa;border-top:1px solid #e0e7ee;border-bottom:1px solid #e0e7ee}.request-table th:first-child{width:20%;padding-left:12px}.request-table th:nth-child(2){width:22%}.request-table th:nth-child(5){width:12%}.request-table td{padding:14px 8px;font:10px/1.6 var(--mono);border-bottom:1px solid #e7ecf1;overflow-wrap:anywhere}.request-table td:first-child{padding-left:12px}.request-table tr:last-child td{border-bottom:0}.request-table td small{display:block;color:var(--muted);font-size:9px}.route-label{font-size:11px;font-weight:700}.request-table tr:hover td{background:#f7faff}.table-footer{border-top:1px solid var(--line);margin-top:10px;padding:13px 24px;display:flex;justify-content:space-between;gap:10px;font:9px/1.5 var(--mono);color:var(--muted)}.empty{padding:25px;text-align:center;font-size:13px!important;color:var(--muted)}.catalog-panel{margin-bottom:32px}.text-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:var(--blue);white-space:nowrap}.text-link:hover{text-decoration:underline}.text-link .icon{width:16px;height:16px}.catalog-toolbar{display:flex;align-items:center;gap:12px;padding:0 24px 22px}.search-field{display:flex;align-items:center;gap:10px;border:1px solid #bfcbdc;background:#fff;border-radius:8px;min-height:46px;padding:0 13px;flex:1;min-width:0}.search-field .icon{width:18px;height:18px;color:var(--muted);flex:none}.search-field input{width:100%;background:transparent;border:0;min-height:44px;font-size:12px;color:var(--ink)}.search-field input:focus-visible{outline-offset:0}.select-field select{background:#fff;border:1px solid #bfcbdc;border-radius:8px;min-height:46px;padding:10px 30px 10px 12px;font-size:12px;color:var(--ink);max-width:100%}.result-count{font:10px var(--mono);color:var(--muted);white-space:nowrap}.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px}.model-card{min-width:0;border:1px solid #d3dde7;border-radius:9px;padding:16px;background:#fcfdfd;transition:border-color .18s,transform .18s}.model-card.selected{border:2px solid var(--blue);padding:15px;background:#edf4ff}.model-card:hover{border-color:#7d98c1;transform:translateY(-2px)}.model-card-heading{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}.model-card h3{font:11px/1.6 var(--mono);font-weight:700;overflow-wrap:anywhere;min-height:36px}.model-card .badge{font-size:9px;flex:none}.model-card p{font:9px/1.6 var(--mono);margin:12px 0;color:var(--muted)}.mini-history{display:flex;gap:2px;height:17px}.model-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;font-size:10px;color:var(--muted)}.model-copy{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;background:transparent;border-radius:5px;color:var(--blue)}.model-copy:hover{background:#e3edff}.model-copy .icon{width:15px;height:15px}.catalog-footer{padding:18px 24px;display:flex;align-items:center;gap:16px;justify-content:space-between}.catalog-footer p{font-size:11px;color:var(--muted)}.catalog-footer code{color:var(--blue)}.lab-section{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;padding:34px;background:#e2ebff;border:2px solid var(--ink);border-radius:16px;box-shadow:4px 4px var(--ink);align-items:center;position:relative}.lab-copy{min-width:0}.lab-copy .section-kicker{color:#405e93}.lab-copy h2{font-size:30px;letter-spacing:-1px;line-height:1.2}.lab-copy h2 span{color:var(--blue)}.lab-copy>p{font-size:13px;line-height:1.8;color:#425a80;max-width:410px;margin-top:16px}.lab-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.lab-copy .lab-footnote{font:9px/1.8 var(--mono);margin-top:16px}.sprite-lab{background:#fffdf6;border:2px solid var(--ink);border-radius:10px;overflow:clip;min-width:0;transform:rotate(1deg);box-shadow:3px 3px var(--ink)}.sprite-lab-top{display:flex;justify-content:space-between;gap:8px;padding:14px 16px;border-bottom:2px solid var(--ink);align-items:center}.sprite-lab-top .tiny-pixel{font-size:8px}.sprite-lab-top .mono{font-size:8px;color:var(--muted)}.sprite-stage{height:178px;position:relative;display:grid;place-items:center;background-color:#f2f6fd;background-image:linear-gradient(#cfdbeb88 1px,transparent 1px),linear-gradient(90deg,#cfdbeb88 1px,transparent 1px);background-size:12px 12px}.sprite-stage>div{width:106px;height:106px;filter:drop-shadow(4px 4px 0 #18284420)}.sprite-stage svg{width:100%;height:100%;image-rendering:pixelated}.sprite-axis{position:absolute;right:8px;bottom:6px;font:8px var(--mono);color:var(--muted)}.sprite-controls{display:flex;justify-content:center;gap:4px;padding:8px;border-top:2px solid var(--ink)}.sprite-controls .filter-button{font-size:11px;padding:7px 13px}.footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0 25px;font:10px/1.6 var(--mono);color:var(--muted)}.footer>div{display:flex;gap:10px;align-items:center}.footer .tiny-sprite{height:19px;width:19px}.footer>span{font-size:9px;white-space:nowrap}.footer strong{color:var(--ink)}.footer-divider{margin:0 10px;color:#8d9caf}.notice,.lab-banner{padding:12px 16px;margin-bottom:22px;border:1px solid #d4b468;border-radius:8px;background:#fff3d2;font-size:12px;color:#725019}.lab-banner{background:#fff4c0;color:#584205;border-color:#bba353}.lab-banner strong{font:9px var(--pixel);margin-right:10px}.notice a{text-decoration:underline}.toast{position:fixed;bottom:24px;left:calc(50% + 90px);transform:translate(-50%);max-width:min(500px,calc(100% - 32px));border:2px solid var(--ink);background:var(--gold);color:var(--ink);box-shadow:4px 4px var(--ink);padding:13px 20px;z-index:80;border-radius:8px;font-size:13px;font-weight:700}.noscript-message{position:fixed;bottom:0;inset-inline:0;background:var(--gold);padding:15px;z-index:80}dialog{color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:16px;box-shadow:7px 7px var(--ink);padding:28px;max-width:480px;width:calc(100% - 32px);max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#1828449e}dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}dialog .dialog-heading .section-kicker{margin:0}dialog h2{font-size:28px;letter-spacing:-.8px;margin:16px 0}dialog p{color:var(--muted);font-size:13px;line-height:1.8}dialog label{display:block;margin:20px 0 8px;font-size:12px;font-weight:700}dialog input{width:100%;min-height:48px;border:1px solid #8c9db6;border-radius:8px;background:#fff;padding:12px;font:14px var(--mono)}dialog .form-message{min-height:24px;color:#ad2929;font-size:11px;padding:6px 0}dialog .button-primary{width:100%}.dialog-url{margin-top:25px;padding-top:20px;border-top:1px dashed #a8b4c4;display:grid;gap:10px}.dialog-url>span{font:10px var(--mono);color:var(--muted)}.dialog-url code{font-size:12px;overflow-wrap:anywhere}.dialog-url .button{justify-self:start}.reveal{opacity:1}.is-observed:not(.is-visible){opacity:0;transform:translateY(18px)}.is-observed{transition:opacity .5s ease,transform .55s cubic-bezier(.16,1,.3,1)}.motion-paused .ambient-cloud,.page-hidden .ambient-cloud{animation-play-state:paused}.offline .connection-dot{background:var(--red)}@media(min-width:1600px){.world-card{min-height:390px}.world-copy{padding:38px 42px}.world-copy h2{font-size:48px}.metrics{gap:22px}.metric{padding:22px 26px}.metric-heading{font-size:10px}.metric small{font-size:12px}.world-model strong{font-size:13px}}@media(max-width:1200px){.sidebar{width:202px;padding:26px 14px}.brand{font-size:13px;gap:9px}.brand-sprite{width:36px;height:36px}.workspace{margin-left:202px}main{padding:24px 24px 0}.topbar{padding:14px 24px}.nav-item{font-size:12px;padding:10px}.world-copy{padding:28px 6px 24px 26px}.world-copy h2{font-size:32px}.world-card{grid-template-columns:1fr 1fr}.hero-actions .button{font-size:11px;padding:11px 12px}.metrics{gap:12px}.metric{padding:16px 14px}.metric-heading{font-size:8px}.metric>strong{font-size:28px}.status-layout{grid-template-columns:minmax(0,1.4fr) minmax(235px,1fr);gap:16px}.panel-heading{padding:20px}.panel-heading h2{font-size:18px}.model-status-heading{margin-inline:20px;flex-wrap:wrap}.model-status-heading .badge{margin-left:46px}.status-facts{margin-inline:20px}.status-facts strong{font-size:20px}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-section{padding:26px}.lab-copy h2{font-size:26px}.clock{display:none}}@media(max-width:1000px){.sidebar{width:80px;padding:24px 12px}.brand{justify-content:center}.brand>span:last-child,.nav-caption,.nav-item>span,.sidebar-note,.sidebar-bottom{display:none}.brand-sprite{width:40px;height:40px}.main-nav{margin-top:35px;gap:14px}.nav-item{justify-content:center;padding:12px 10px}.nav-item .icon{width:20px;height:20px}.workspace{margin-left:80px}.connection-label{font-size:10px}.status-layout{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr)}.world-copy h2{font-size:34px}.sprite-controls .filter-button{padding:7px 10px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-heading{font-size:8px}.metric small{font-size:10px}.request-table td{font-size:9px}.request-table th{font-size:7px}.lab-actions{gap:10px}.lab-actions .button{padding:10px 12px;font-size:11px}}@media(max-width:780px){.topbar{padding:12px 20px}.breadcrumb>span:last-child,.breadcrumb-separator,.connection-label{display:none}main{padding:24px 20px 0}.world-card{min-height:352px;grid-template-columns:1fr 1fr}.world-copy{padding:25px 0 22px 22px}.world-copy h2{font-size:27px}.world-copy>p{font-size:12px}.hero-actions{gap:10px}.hero-actions .button{min-height:44px;font-size:11px;padding:10px}.hero-actions .button .icon{width:14px}.world-label{font-size:8px;letter-spacing:.5px}.world-model{margin-top:18px}.world-model strong{font-size:10px}.world-hud{font-size:6px;left:16px;right:15px}.world-coordinates{font-size:6px;letter-spacing:.5px}.mario-pet{left:41%;width:56px;height:72px}.question-block{left:43%;width:44px;height:44px;font-size:21px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.metric{padding:18px 20px}.metric>strong{font-size:30px}.metric-heading{font-size:9px}.metric small{font-size:11px}.status-layout{grid-template-columns:1fr}.model-status-heading .badge{margin-left:0}.accounts-list{max-height:210px}.account-row{padding:12px 0}.accounts-panel .panel-heading{padding-bottom:12px}.account-footer{margin-top:14px;margin-bottom:18px}.lab-section{gap:20px;grid-template-columns:1fr 1fr;padding:24px}.lab-copy h2{font-size:24px}.lab-copy>p{font-size:12px}.sprite-lab-top{padding:12px 10px;flex-wrap:wrap}.sprite-stage{height:160px}.sprite-controls .filter-button{font-size:10px;padding:7px}.footer{font-size:9px}.footer>span{font-size:8px}.catalog-toolbar{flex-wrap:wrap}.result-count{display:none}.table-wrapper{padding:0 16px}.panel-heading{padding:20px 20px 18px}.requests-panel .panel-heading{align-items:flex-start;flex-direction:column}.catalog-panel .panel-heading{flex-wrap:wrap}.catalog-panel .text-link{margin-top:-8px}.status-facts strong{font-size:25px}.status-facts span{font-size:9px}.history-header{font-size:12px}.source-note{font-size:10px}.pet-bubble{left:5%;max-width:90%}}@media(max-width:560px){html{scroll-padding-top:20px}.sidebar{position:fixed;inset:auto 0 0;z-index:40;height:calc(67px + env(safe-area-inset-bottom));width:100%;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-right:0;border-top:2px solid var(--ink);box-shadow:0 -3px #18284408}.sidebar .brand{display:none}.main-nav{margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.nav-item{min-height:54px;border-radius:7px;padding:8px 4px;gap:4px;flex-direction:column}.nav-item.active{box-shadow:2px 2px var(--ink)}.nav-item>span:not(.nav-index,.nav-count,.nav-dot){display:block;font-size:7px;line-height:1.5;white-space:nowrap}.nav-item .icon{width:19px;height:19px}.workspace{margin-left:0;padding-bottom:calc(67px + env(safe-area-inset-bottom))}.topbar{min-height:68px;padding:10px 16px;gap:12px}.toolbar{gap:8px}.toolbar .button-small{font-size:11px;padding:9px 10px}.toolbar .button-small .icon{width:15px;height:15px}.breadcrumb .tiny-pixel{font-size:7px}.player-button{min-width:40px;min-height:44px;font-size:11px}.icon-button{min-width:44px}.topbar .icon-button{border:0;background:transparent}.page-heading{margin-bottom:22px}.eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:9px}h1{font-size:26px;line-height:1.15;letter-spacing:-1px}.page-heading p:last-child{font-size:12px;margin-top:9px}main{padding:23px 16px 0}.world-card{display:flex;flex-direction:column;border-radius:14px;min-height:0;box-shadow:4px 4px var(--ink)}.world-copy{padding:24px 24px 6px}.world-label{font-size:8px}.world-copy h2{font-size:31px;line-height:1.45;margin:13px 0 7px}.world-copy h2 br{display:none}.world-copy h2 span{display:block}.world-copy>p{font-size:13px;line-height:1.6}.hero-actions{margin-top:18px;gap:12px}.hero-actions .button{font-size:11px;padding:12px}.world-model{margin-top:20px}.world-model strong{font-size:10px}.world-model div>span{font-size:8px}.pixel-chip{width:27px;height:27px;font-size:11px}.world-art{height:260px;flex:none;margin-top:6px}.world-hud{top:16px;left:24px;right:24px;font-size:7px}.world-coordinates{font-size:7px;bottom:15px}.mario-pet{bottom:51px;left:46%;height:76px;width:62px}.pet-shadow{bottom:50px;left:45%;width:70px}.question-block{left:49%;bottom:166px}.pet-bubble{bottom:137px;left:20%;max-width:75%}.floating-coin{bottom:210px}.metrics{margin:22px 0;gap:12px}.metric{padding:16px 14px 14px;border-radius:10px}.metric-heading{font-size:8px;letter-spacing:0;min-height:25px;align-items:flex-start}.metric-pixel{width:20px;height:20px}.metric>strong{font-size:29px;margin:12px 0 7px}.metric small{font-size:10px;line-height:1.5}.metric-unit{font-size:10px;margin-left:5px}.status-layout{gap:18px;margin-bottom:20px}.panel{border-radius:12px}.panel-heading{padding:20px 18px 18px}.panel-heading h2{font-size:19px}.section-kicker{font-size:8px;letter-spacing:1px}.model-status-heading{margin:0 18px 20px;padding:12px;gap:10px}.model-status-heading .badge{margin-left:44px}.model-status-heading h3{font-size:11px}.model-status-heading p{font-size:10px}.status-facts{margin:0 18px 24px}.status-facts>div{padding:0 10px}.status-facts strong{font-size:20px}.status-facts span{font-size:7px}.status-facts small{font-size:12px}.history-bars{margin:0 18px;height:32px;gap:2px}.history-header{margin-inline:18px;font-size:10px}.history-scale{margin-inline:18px;font-size:8px}.status-footnote{margin-inline:18px;gap:10px;font-size:9px}.source-note{padding:12px 18px;font-size:9px}.accounts-list{padding:0 18px}.account-row .badge{font-size:10px}.account-footer{margin:16px 18px 20px}.account-info strong{font-size:12px}.table-wrapper{padding:0 18px}.request-table,.request-table tbody{display:block}.request-table thead{display:none}.request-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;padding:14px 0;border-bottom:1px solid #d9e2eb}.request-table td{display:block;border:0;padding:0!important;font-size:10px}.request-table td:before{content:attr(data-label);display:block;font:7px/1.7 var(--mono);letter-spacing:.5px;color:var(--muted)}.request-table td.empty{grid-column:1/-1;padding:16px!important}.request-table td small{font-size:9px}.request-table td .badge{font-size:10px}.request-table tr:hover td{background:none}.request-table tr:last-child{border:0}.table-footer{padding:12px 18px;flex-direction:column;gap:5px;font-size:9px}.requests-panel{margin-bottom:20px}.catalog-toolbar{padding:0 18px 18px;gap:10px}.search-field{flex-basis:100%;padding:0 10px}.search-field input{font-size:12px}.select-field{width:100%}.select-field select{width:100%;font-size:12px}.model-grid{grid-template-columns:1fr;padding:0 18px;gap:12px}.model-card{padding:15px}.model-card.selected{padding:14px}.model-card h3{font-size:12px;min-height:0}.model-card p{font-size:10px;margin:10px 0}.model-card .badge{font-size:9px}.model-card-footer{margin-top:5px;font-size:10px}.mini-history{height:21px}.catalog-footer{padding:18px;align-items:flex-start;flex-direction:column}.catalog-footer p{font-size:11px}.lab-section{grid-template-columns:1fr;gap:26px;padding:24px 20px;box-shadow:3px 3px var(--ink)}.lab-copy h2{font-size:25px}.lab-copy>p{font-size:13px}.lab-actions .button{font-size:11px;min-height:46px}.sprite-lab{margin:0 6px 4px}.sprite-stage{height:180px}.sprite-lab-top .tiny-pixel,.sprite-lab-top .mono{font-size:8px}.sprite-controls .filter-button{font-size:11px;padding:8px 16px}.footer{flex-direction:column;align-items:flex-start;gap:10px;padding:25px 0;font-size:9px}.footer>span{padding-left:29px}.toast{left:50%;bottom:calc(86px + env(safe-area-inset-bottom));font-size:12px}.lab-banner{font-size:11px;line-height:1.8}.lab-banner strong{display:block;margin-bottom:4px}.notice{font-size:11px}dialog{padding:22px}dialog h2{font-size:25px}}@media(max-width:350px){main{padding-inline:12px}.topbar{padding-inline:12px;gap:8px}.breadcrumb .tiny-pixel{font-size:6px}.toolbar{gap:3px}.toolbar .button-small{padding:9px 8px}.toolbar .button-small span{font-size:10px}.toolbar .icon-button{min-width:40px}h1{font-size:24px}.world-copy{padding:22px 18px 6px}.world-copy h2{font-size:27px}.hero-actions{gap:10px}.hero-actions .button{font-size:10px;padding:11px 10px}.metric-heading{font-size:7px}.metric{padding:15px 12px}.metric>strong{font-size:26px}.status-facts strong{font-size:18px}.panel-heading h2{font-size:17px}.nav-item>span:not(.nav-index,.nav-count,.nav-dot){font-size:6px}.lab-section{padding:22px 16px}.lab-copy h2{font-size:23px}.sprite-controls .filter-button{padding:8px 12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ambient-cloud{animation:none}.is-observed:not(.is-visible){opacity:1;transform:none}.is-observed,.button,.nav-item,.filter-button,.model-card,.pet-bubble{transition:none}.model-card:hover,.button:hover,.button:active{transform:none}}.motion-paused{scroll-behavior:auto}.motion-paused .is-observed{opacity:1;transform:none;transition:none}.history-track{position:relative;min-height:44px;display:flex;align-items:center}.history-track .history-bars{flex:1}.history-track input{position:absolute;inset:0 20px;width:calc(100% - 40px);height:44px;margin:0;opacity:0;cursor:crosshair}.history-track:focus-within{outline:3px solid var(--blue);outline-offset:-3px}.history-bar.inspected{outline:2px solid var(--ink);outline-offset:2px}.history-detail{font:10px/1.7 var(--mono);color:var(--muted);margin:0 24px 14px;min-height:34px}.copy-buffer{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0}.status-emblem.good{background:#e2f3e4;color:var(--green)}.status-emblem.bad{background:#ffeded;color:#ad2929}.status-emblem.degraded{background:#fff2c4;color:#825200}.sprite{display:inline-block}.sprite svg{display:block;width:100%;height:100%;image-rendering:pixelated}.floating-coin>.sprite{width:100%;height:100%}.sidebar{padding-block:24px 18px}.brand{font-size:14px}.nav-caption{margin:28px 10px 12px;font-size:11px}.main-nav{gap:5px}.nav-item{font-size:13px;min-height:48px}.sidebar-note{padding:25px 12px 20px}.sidebar-note .tiny-pixel{font-size:9px}.sidebar-bottom small{font-size:10px}.page-heading h1:focus{outline:none}.eyebrow{font-size:11px;letter-spacing:1px}.breadcrumb{font-size:13px}.connection-label{font-size:12px}.tiny-pixel{font-size:10px}.world-label{font-size:11px;letter-spacing:.4px;line-height:1.6}.world-copy{padding-bottom:24px}.world-copy h2{font-size:clamp(30px,3.2vw,46px)}.world-model div>span{font-size:10px}.world-model strong{font-size:13px}.world-hud{font-size:9px}.world-coordinates{font-size:10px;letter-spacing:.6px}.hero-replay{display:flex;gap:7px;align-items:center;min-height:44px;margin-top:8px;padding:4px 0;background:transparent;font-size:12px;color:#375579}.hero-replay .icon{width:15px}.hero-replay span{color:#455d72;font-size:11px}.world-render,.world-fallback,.world-gpu{position:absolute;inset:0;width:100%;height:100%}.world-fallback>svg{display:block;width:100%;height:100%}.world-render.gpu-ready .world-fallback{visibility:hidden}.world-gpu{pointer-events:none}.status-dot.good{background:var(--green)}.status-dot.degraded{background:#a16b08}.status-dot.bad{background:var(--red)}.metric-heading{font-size:11px;line-height:1.5;letter-spacing:0}.metric small{font-size:12px}.metric-unit{font-size:13px}.section-kicker{font-size:11px;letter-spacing:.8px}.section-description{font-size:14px}.provider-tag{font-size:12px}.model-status-heading h3{font-size:13px}.model-status-heading p{font-size:12px}.badge{font-size:12px;white-space:normal}.status-facts span{font-size:10px;letter-spacing:0}.history-header{font-size:12px}.history-detail{font-size:11px;min-height:38px}.history-scale,.status-footnote,.source-note{font-size:11px}.account-info strong{font-size:13px}.account-info small{font-size:12px}.account-row .badge{font-size:11px}.account-footer p,.account-footer p span{font-size:12px}.account-footer .tiny-sprite{width:32px;height:32px}.request-table th{font-size:10px;letter-spacing:0}.request-table td{font-size:12px}.request-table td small{font-size:11px}.route-label{font-size:12px}.request-table th:first-child{width:17%}.request-table th:nth-child(2){width:24%}.request-table th:nth-child(3){width:17%}.request-table th:nth-child(4){width:17%}.request-table th:nth-child(5){width:13%}.table-footer{font-size:11px}.requests-top .table-wrapper{max-height:300px;overflow:auto}.requests-top{margin-bottom:24px}.search-field input,.select-field select{font-size:14px}.result-count{font-size:12px}.model-card h3{font-size:13px}.model-card-heading{flex-wrap:wrap}.model-card .badge,.model-card p{font-size:11px}.model-card-footer{font-size:12px}.model-copy .icon{width:18px;height:18px}.model-grid .empty{grid-column:1/-1}.catalog-footer p,.text-link{font-size:12px}.lab-copy .lab-footnote{font-size:11px}.sprite-lab-top .mono,.sprite-axis{font-size:10px}.footer{font-size:12px}.footer>span{font-size:11px}.overview-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.portal-card{display:flex;align-items:center;gap:14px;min-height:100px;border:1px solid #cbd5e1;border-radius:12px;background:var(--paper);padding:20px;transition:border-color .16s,transform .16s}.portal-card>.icon{color:var(--blue)}.portal-card>.icon:last-child{width:16px;margin-left:auto}.portal-card strong{display:block;font-size:14px}.portal-card span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.portal-card:hover{border-color:var(--blue);transform:translateY(-2px)}.logs-toolbar{display:flex;gap:12px;padding:0 24px 16px;flex-wrap:wrap}.logs-toolbar .search-field{min-width:190px}.logs-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 18px}.logs-actions>span{font:12px var(--mono);color:var(--muted);margin-left:auto}.log-viewer{min-height:320px;max-height:65vh;overflow:auto;background:#17243b;color:#eef4ff;padding:16px 0;scrollbar-color:#8c9cb4 #17243b}.log-line{display:grid;grid-template-columns:34px 48px 1fr;gap:12px;padding:6px 18px;line-height:1.6;border-bottom:1px solid #ffffff09;font:12px/1.7 var(--mono)}.log-number{color:#9daec9}.log-level{font-size:10px;color:#a6d9bd;align-self:start}.log-line.error .log-level{color:#ffaaa3}.log-line.warning .log-level{color:#ffd66a}.log-line code{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.log-viewer .empty{color:#c0cde0}.logs-panel .notice{margin:0 24px 16px}.lab-banner{font-size:13px}.lab-banner strong{font-size:10px}.lab-scenarios{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.lab-scenarios a{min-height:44px;display:inline-flex;align-items:center;border:1px solid #9d821d;border-radius:5px;padding:8px 12px;font-size:12px;background:#fffbeb;color:#584205}.lab-scenarios a:hover{background:var(--gold)}body:has(dialog[open]){overflow:hidden}@media(max-width:1200px){.world-copy h2{font-size:31px}.world-label{font-size:10px}.hero-actions .button{font-size:12px}.metric-heading{font-size:10px}.overview-links{grid-template-columns:1fr}.portal-card{min-height:82px}.model-status-heading .badge{margin-left:0}.status-facts span{font-size:10px}.request-table th{font-size:9px}.request-table td{font-size:11px}}@media(max-width:1000px){.main-nav{margin-top:28px;gap:10px}.sidebar-note,.sidebar-bottom{display:none}.brand-sprite{width:40px;height:40px}.metric-heading{font-size:10px}.world-hud{font-size:8px}.world-coordinates{font-size:9px}}@media(max-width:780px){.world-card{grid-template-columns:1fr 1fr}.world-copy{padding:24px 0 20px 22px}.world-copy h2{font-size:28px}.world-hud{left:14px;right:14px;font-size:7px}.metric small{font-size:12px}.status-facts span{font-size:10px}.source-note{font-size:11px}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.request-table td{font-size:11px}.logs-toolbar,.logs-actions{padding-inline:20px}.log-line{font-size:11px;gap:8px;padding-inline:14px}}@media(max-width:560px){.sidebar{height:calc(123px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom))}.main-nav{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,52px);gap:5px;margin:0}.nav-item{min-height:52px;padding:5px 2px;gap:2px}.nav-item>span:not(.nav-index,.nav-count,.nav-dot){font-size:9px;line-height:1.4;white-space:normal;text-align:center}.nav-item .icon{width:18px;height:18px}.workspace{padding-bottom:calc(123px + env(safe-area-inset-bottom))}.topbar{padding:10px 14px}.page-heading h1{font-size:28px}.page-heading p:last-child{font-size:13px}.eyebrow{font-size:10px}.world-copy{padding:24px 22px 6px}.world-copy h2{font-size:33px}.world-label{font-size:10px}.hero-actions .button{font-size:12px}.world-art{height:280px}.world-hud{font-size:8px;left:22px;right:22px}.world-model strong{font-size:12px}.world-model div>span{font-size:10px}.world-coordinates{font-size:9px}.world-copy>p{font-size:14px}.hero-replay{font-size:12px}.metric-heading{font-size:10px;min-height:30px}.metric small{font-size:11px}.metric>strong{font-size:29px}.metric-unit{font-size:11px}.section-kicker{font-size:10px}.model-status-heading h3{font-size:12px}.model-status-heading p{font-size:11px}.model-status-heading .badge{margin-left:44px}.status-facts span{font-size:9px}.status-facts strong{font-size:20px}.history-detail{font-size:11px;margin-inline:18px}.history-scale,.status-footnote{font-size:10px}.account-info strong{font-size:12px}.account-row .badge{font-size:11px}.request-table td{font-size:12px}.request-table td:before{font-size:10px}.request-table td small,.request-table td .badge{font-size:11px}.request-table th{font-size:10px}.table-footer{font-size:11px}.model-grid{grid-template-columns:1fr}.model-card h3{font-size:13px}.model-card p,.model-card .badge{font-size:11px}.model-card-footer{font-size:12px}.portal-card{padding:18px}.logs-toolbar,.logs-actions{padding-inline:18px}.logs-toolbar .select-field,.logs-toolbar select{width:100%}.log-line{grid-template-columns:26px 40px 1fr;font-size:11px;gap:6px;padding-inline:10px}.log-level{font-size:9px}.logs-actions>span{margin-left:0;flex-basis:100%}.log-viewer{min-height:300px}.footer{font-size:11px}.footer>span{font-size:10px}.lab-banner{font-size:12px}.lab-scenarios{gap:6px}.lab-scenarios a{font-size:11px;padding-inline:10px}.toast{bottom:calc(140px + env(safe-area-inset-bottom))}.sprite-axis{font-size:10px}}@media(max-width:350px){.world-copy h2{font-size:29px}.world-copy{padding-inline:18px}.hero-actions .button{font-size:11px;padding:11px}.metric{padding-inline:12px}.metric-heading{font-size:9px}.status-facts>div{padding-inline:7px}.status-facts strong{font-size:18px}.nav-item>span:not(.nav-index,.nav-count,.nav-dot){font-size:9px}.page-heading h1{font-size:26px}}@keyframes dashboard-enter{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.page-heading{animation:dashboard-enter .55s cubic-bezier(.16,1,.3,1) both}.metrics{animation:dashboard-enter .65s .18s cubic-bezier(.16,1,.3,1) both}@media(prefers-reduced-motion:reduce){.portal-card:hover{transform:none}.page-heading,.metrics{animation:none}}.motion-paused .portal-card:hover{transform:none}.motion-paused .page-heading,.motion-paused .metrics{animation:none}