@korial29/tiny-fps 1.26.0 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/brick-DaLXfFz0.js +1 -0
  3. package/dist/index.js +10 -10
  4. package/dist/landfall-pOrpVwZ8.js +21 -0
  5. package/dist/scene-TAxaSrlj.js +12 -0
  6. package/dist/{stone-HhX4Igzx.js → stone-DfOEdhLs.js} +1 -1
  7. package/dist/tranquility-bgIdZKs5.js +1 -0
  8. package/dist/types/client/announce.d.ts +2 -2
  9. package/dist/types/client/armor/regions.d.ts +1 -1
  10. package/dist/types/client/armor/scratches.d.ts +1 -1
  11. package/dist/types/client/audio.d.ts +2 -1
  12. package/dist/types/client/balls.d.ts +1 -1
  13. package/dist/types/client/body/constants.d.ts +3 -1
  14. package/dist/types/client/body/fingers.d.ts +2 -8
  15. package/dist/types/client/body/motion.d.ts +7 -1
  16. package/dist/types/client/body/wield.d.ts +1 -5
  17. package/dist/types/client/chase.d.ts +6 -6
  18. package/dist/types/client/combat/constants.d.ts +1 -1
  19. package/dist/types/client/combat/create.d.ts +2 -2
  20. package/dist/types/client/combat/events.d.ts +1 -1
  21. package/dist/types/client/expression.d.ts +1 -1
  22. package/dist/types/client/gait/fists.d.ts +2 -2
  23. package/dist/types/client/gait/moves.d.ts +1 -1
  24. package/dist/types/client/gun/held.d.ts +1 -1
  25. package/dist/types/client/gun/kinds.d.ts +1 -1
  26. package/dist/types/client/gun/reload.d.ts +3 -3
  27. package/dist/types/client/hud/format.d.ts +2 -2
  28. package/dist/types/client/hulk/hull.d.ts +1 -1
  29. package/dist/types/client/hunter/animation.d.ts +2 -2
  30. package/dist/types/client/hunter/harpoon.d.ts +1 -5
  31. package/dist/types/client/katana.d.ts +3 -3
  32. package/dist/types/client/limbs.d.ts +2 -2
  33. package/dist/types/client/mission.d.ts +1 -1
  34. package/dist/types/client/props.d.ts +1 -1
  35. package/dist/types/client/render/scene.d.ts +1 -1
  36. package/dist/types/client/render/shader.d.ts +3 -3
  37. package/dist/types/client/render/shots.d.ts +2 -2
  38. package/dist/types/client/seabed/index.d.ts +5 -0
  39. package/dist/types/client/skin/pose.d.ts +1 -1
  40. package/dist/types/client/soldier/animate.d.ts +1 -1
  41. package/dist/types/client/soldier/grasp.d.ts +1 -1
  42. package/dist/types/client/soldier/hunter.d.ts +1 -1
  43. package/dist/types/client/targeting-physics.d.ts +11 -7
  44. package/dist/types/client/targeting.d.ts +1 -1
  45. package/dist/types/client/taunt.d.ts +1 -1
  46. package/dist/types/client/voice/cast-mp3.d.ts +1 -1
  47. package/dist/types/client/voice/cast-opus.d.ts +1 -1
  48. package/dist/types/client/voice/mp3.d.ts +1 -1
  49. package/dist/types/client/voice/opus.d.ts +1 -1
  50. package/dist/types/client/wreck.d.ts +1 -1
  51. package/dist/types/client/xeno/back.d.ts +1 -1
  52. package/dist/types/client/xeno/tail.d.ts +2 -2
  53. package/dist/types/shared/blade.d.ts +2 -2
  54. package/dist/types/shared/gun.d.ts +1 -1
  55. package/dist/types/shared/kit.d.ts +4 -4
  56. package/dist/types/shared/physics.d.ts +5 -5
  57. package/dist/types/shared/plasma.d.ts +2 -2
  58. package/dist/types/shared/routes.d.ts +1 -1
  59. package/dist/types/shared/rover.d.ts +1 -1
  60. package/dist/types/shared/ship.d.ts +1 -1
  61. package/dist/types/shared/world.d.ts +1 -1
  62. package/package.json +8 -13
  63. package/dist/brick-DvzwRQTg.js +0 -1
  64. package/dist/landfall-CVwE3As0.js +0 -21
  65. package/dist/scene-Clcsfo7f.js +0 -12
  66. package/dist/tranquility-cVA6jlPl.js +0 -1
@@ -1 +1 @@
1
- import{Dr as e,ot as t,r as n,st as r}from"./brick-DvzwRQTg.js";var i=e=>(e=Math.min(Math.max(e,0),1))*e*(3-2*e),a=[1,2,3,4,6].map(e=>{let t=(1+Math.sqrt(5))/2,n=[[-1,t,0],[1,t,0],[-1,-t,0],[1,-t,0],[0,-1,t],[0,1,t],[0,-1,-t],[0,1,-t],[t,0,-1],[t,0,1],[-t,0,-1],[-t,0,1]].map(e=>r(e));return[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]].map(e=>e.map(e=>n[e])).flatMap(([t,n,i])=>{let a=(a,o)=>r(t.map((t,r)=>t+((n[r]-t)*a+(i[r]-t)*o)/e)),o=[];for(let t=0;t<e;t++)for(let n=0;t+n<e;n++)o.push([a(t,n),a(t+1,n),a(t,n+1)]),t+n<e-1&&o.push([a(t+1,n),a(t+1,n+1),a(t,n+1)]);return o})}),o=(o,s,c,l,u,d,f,p)=>{let m=/* @__PURE__ */ new Map,h=(typeof s==`number`?a[s-1]:s).map(e=>e.map(e=>{let t=(e=>e.map(e=>Math.round(1e4*e)).join())(e),n=m.get(t);if(!n){let r=c(e);n={p:r,n:[0,0,0],low:!!p&&r[1]<p(r[0],r[2])-.05},m.set(t,n)}return n}));for(let e of h){let r=n(t(e[1].p,e[0].p),t(e[2].p,e[0].p));e.forEach(e=>e.n=[e.n[0]+r[0],e.n[1]+r[1],e.n[2]+r[2]])}for(let a of h){if(a.every(e=>e.low))continue;let s=n(t(a[1].p,a[0].p),t(a[2].p,a[0].p)),c=Math.abs(s[1])>Math.max(Math.abs(s[0]),Math.abs(s[2])),p=Math.abs(s[0])>Math.abs(s[2]);for(let{p:t,n}of a){let a=Math.hypot(...n)>1e-12?r(n):[0,1,0];o.push(...t,...a,...c?[t[0],t[2]]:p?[t[2]+3*d,t[1]]:[t[0]+3*d,t[1]],e.ROCK,.85*f*(.55+.45*i((t[1]-l)/(.3*(u-l)))))}}};export{o as t};
1
+ import{Or as e,ot as t,r as n,st as r}from"./brick-DaLXfFz0.js";var i=e=>(e=Math.min(Math.max(e,0),1))*e*(3-2*e),a=[1,2,3,4,6].map(e=>{let t=(1+Math.sqrt(5))/2,n=[[-1,t,0],[1,t,0],[-1,-t,0],[1,-t,0],[0,-1,t],[0,1,t],[0,-1,-t],[0,1,-t],[t,0,-1],[t,0,1],[-t,0,-1],[-t,0,1]].map(e=>r(e));return[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]].map(e=>e.map(e=>n[e])).flatMap(([t,n,i])=>{let a=(a,o)=>r(t.map((t,r)=>t+((n[r]-t)*a+(i[r]-t)*o)/e)),o=[];for(let t=0;t<e;t++)for(let n=0;t+n<e;n++)o.push([a(t,n),a(t+1,n),a(t,n+1)]),t+n<e-1&&o.push([a(t+1,n),a(t+1,n+1),a(t,n+1)]);return o})}),o=(o,s,c,l,u,d,f,p)=>{let m=/* @__PURE__ */ new Map,h=(typeof s==`number`?a[s-1]:s).map(e=>e.map(e=>{let t=(e=>e.map(e=>Math.round(1e4*e)).join())(e),n=m.get(t);if(!n){let r=c(e);n={p:r,n:[0,0,0],low:!!p&&r[1]<p(r[0],r[2])-.05},m.set(t,n)}return n}));for(let e of h){let r=n(t(e[1].p,e[0].p),t(e[2].p,e[0].p));e.forEach(e=>e.n=[e.n[0]+r[0],e.n[1]+r[1],e.n[2]+r[2]])}for(let a of h){if(a.every(e=>e.low))continue;let s=n(t(a[1].p,a[0].p),t(a[2].p,a[0].p)),c=Math.abs(s[1])>Math.max(Math.abs(s[0]),Math.abs(s[2])),p=Math.abs(s[0])>Math.abs(s[2]);for(let{p:t,n}of a){let a=Math.hypot(...n)>1e-12?r(n):[0,1,0];o.push(...t,...a,...c?[t[0],t[2]]:p?[t[2]+3*d,t[1]]:[t[0]+3*d,t[1]],e.ROCK,.85*f*(.55+.45*i((t[1]-l)/(.3*(u-l)))))}}};export{o as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Cn as t,En as n,Gt as r,H as i,Ht as a,Jt as o,Kt as s,L as c,Or as l,Qt as u,Sn as d,Tn as f,Tr as p,U as m,Vt as h,Wt as g,Y as _,Yt as v,_n as y,a as b,an as x,at as S,bn as C,cn as w,dt as T,et as E,fn as D,gn as ee,hn as O,i as k,in as te,it as A,ln as ne,lt as re,m as ie,n as j,nn as ae,nt as M,o as oe,on as se,ot as ce,qt as le,r as N,rn as ue,rt as P,sn as F,st as I,t as de,tt as fe,u as L,un as pe,v as me,vn as he,wn as ge,xn as _e,y as ve,yn as ye}from"./brick-DaLXfFz0.js";import{t as be}from"./stone-DfOEdhLs.js";var xe=[.8,.82,.86],Se=[.35,.36,.4],Ce=ee.filter(e=>e.min[1]===2.48&&e.max[1]===4),[R,z]=y,we=[R,0,z],B=22.4,Te=[-.6,.6,.53],Ee=[[2,1],[0,2],[0,1]],[De,Oe]=[-2.35,-2.4],ke=[1.25,1.3,1.4],Ae=[.56,.48,.28],je=[.04,.04,.05],{CONCRETE:Me,HULL:Ne,PAINT:Pe}=l,[V,Fe,H,U,Ie,Le]=[[.86,.87,.9],[.55,.57,.6],[.32,.33,.36],[.07,.075,.085],[.42,.52,.66],[.2,.13,.08]],[Re,W,ze,Be,Ve,He]=[[.3,.8,1],[.35,1,.5],[1,.7,.25],[1,.2,.15],[.7,.35,1],[1,.35,.85]],Ue=(e,t,n,r=1,[i,a]=Ee[1])=>{for(let o of[0,1,2,0,2,3])e.push(...t[o],...Te),typeof n==`number`?e.push(t[o][i],t[o][a],n,r):e.push(n[0],n[1],-2,n[2])},G=(e,t,n,r,i,a,o)=>Ue(e,[[0,0],[1,0],[1,1],[0,1]].map(([e,a])=>{let o=[0,0,0],[s,c]=[(t+1)%3,(t+2)%3];return[o[t],o[s],o[c]]=[n,(e?i:r)[s],(a?i:r)[c]],o}),a,o,Ee[t]),We=(e,{min:t,max:n,top:r,side:i},a=0)=>{for(let o=0;o<3;o++)G(e,o,t[o],t,n,i,a+(o==1?.4:1.25-.15*o)),G(e,o,n[o],t,n,o==1?r:i,a+(o==1?1.85:1.25-.15*o))},Ge=(e,t)=>{let n=e.length;t();let r=re(e,0);for(let t=n;t<e.length;t+=10){if(r[t+8]==-1){let e=2.2*(.72+.28*r[t+4]-.12*Math.abs(r[t+3]));r[t+6]*=e,r[t+7]*=e,r[t+9]*=e}[r[t+3],r[t+4],r[t+5]]=Te}},Ke=(e,t,n,r)=>{let i=re(e,0);for(let a=t;a<e.length;a+=10)[i[a+3],i[a+4],i[a+5],i[a+8]]=[n[0],n[1],n[2],r]},qe=(e,t,n,r,i,a)=>{for(let[o,s,c]of[[r,r+.1,0],[i-.1,i,0],[r,i,a-.1]])G(e,t,n,[o,c,o],[s,a,s],ke)},Je=(e,t,n,r,i,a,o,s=[])=>{[...s,[i,i,0]].forEach(([i,c,l],u)=>{let[d,f]=[[0,0,0],[0,a,0]];[d[2-t],f[2-t]]=[u?s[u-1][1]:r,i],G(e,t,n,d,f,Pe,o),c>i&&([d[1],d[2-t],f[2-t]]=[l,i,c],G(e,t,n,d,f,Pe,o))})},Ye=(e,t,n,r,i)=>{let a=Math.min(i,...n.map((e,n)=>(e-t[n])/3)),o=t.map((e,t)=>(e+n[t])/2),s=(e,r)=>[0,1,2].map(i=>{let o=e>>i&1,s=o?n[i]:t[i];return i==r?s:s+(o?-a:a)});for(let t=0;t<3;t++){let[n,i]=[1<<(t+1)%3,1<<(t+2)%3];for(let a of[0,1<<t])k(e,[a,a|n,a|n|i,a|i].map(e=>s(e,t)),r,o);let[a,c]=[(t+1)%3,(t+2)%3];for(let l of[0,n,i,n|i])k(e,[s(l,a),s(l,c),s(l|1<<t,c),s(l|1<<t,a)],r,o)}for(let t=0;t<8;t++)k(e,[s(t,0),s(t,1),s(t,2)],r,o)},Xe=(e,t,[n,r,i])=>e.push(...t,...Te,n,r,-2,i),Ze=(e,t,n,r,[i,a],o,s,c=12,l=0)=>{let u=l>0?c/2:c,d=Array.from({length:l>0?2*(u+1):c+1},(e,t)=>{let n=l>0?t<=u?1:-1:0,r=l>0?(t<=u?t:t-u-1)/u*Math.PI-Math.PI/2:t/c*2*Math.PI;return[n,n<0?Math.PI+r:r]});l>0&&d.push(d[0]);let f=([e,i],a)=>{let[o,s]=[e*l+Math.cos(i)*a,Math.sin(i)*a];return[0,1,2].map(e=>t[e]+n[e]*o+r[e]*s)};for(let t=0;t+1<d.length;t++){let[n,r]=[d[t],d[t+1]],c=[[f(n,i),o],[f(n,a),s],[f(r,a),s]];(i>0||n[0]!=r[0])&&c.push([f(n,i),o],[f(r,a),s],[f(r,i),o]);for(let[t,n]of c)Xe(e,t,n)}},[Qe,$e,et]=[[.13,.135,.15],[.2,.205,.22],[.05,.05,.06]],tt=[.62,.6,1.05],nt=[.04,.04,.09],[rt,it,at]=[7,38*Math.PI/180,32*Math.PI/180],ot=[[-.2,-.22,.2,-.2],[-.2,.2,.2,.22],[-.2,-.22,-.18,.22],[.18,-.22,.2,.22],[-.12,-.1,-.1,.1],[.1,-.1,.12,.1],[-.12,-.01,.12,.01],[-.02,.12,.02,.16],[-.02,-.16,.02,-.12],[.22,-.05,.25,.05]],st=(e,t,[n,r,i,a],[o,s,c])=>{for(let[l,u]of[[n,r],[n,a],[i,a],[n,r],[i,a],[i,r]])e.push(l,t,u,0,1,0,o,s,-2,c)},ct=(()=>{let e=[];Ye(e,[.95,0,-.22],[1.35,.74,.22],Qe,.05);let t=e.length;Ye(e,[-.32,-.05,-.3],[.32,.03,.3],Qe,.03),st(e,.032,[-.27,-.25,.27,.25],tt.map(e=>.9*e));for(let t of ot)st(e,.034,[t[1],t[0],t[3],t[2]],nt);for(let[t,n]of[[-.15,[.5,1,.6]],[0,tt],[.15,[1,.7,.3]]])Ze(e,[-.322,-.01,t],[0,0,-1],[0,1,0],[0,.014],n.map(e=>2*e),n,8);return((e,t,n)=>{let[r,i]=[Math.cos(n),Math.sin(n)];for(let n=t;n<e.length;n+=10)for(let[t,a]of[[0,1],[3,0]]){let[o,s]=[e[n+t],e[n+t+1]];[e[n+t],e[n+t+1]]=[r*o-i*s+(a?1.1:0),i*o+r*s+(a?.86:0)]}})(e,t,at),e})(),lt=[0,1,0],ut=[.035,.037,.045],dt=(e,t)=>e.map(e=>(e+(1-e)/3)*t),ft=[[-1,96.2,242.65,98.6,242.7,1,2.3,3],[-1,96.2,229.3,98.6,229.35,1,2.3,1],[-1,61.4,242.65,63.8,242.7,1,2.3,3],[-1,61.4,229.3,63.8,229.35,1,2.3,1],[-1,73.3,252.4,73.35,255.4,4.3,5.5,0],[-1,86.65,252.4,86.7,255.4,4.3,5.5,2],[-1,73.3,216.6,73.35,219.6,1,2.3,0],[-1,86.65,216.6,86.7,219.6,1,2.3,2]],pt=(e,t,n,r,a,o)=>{let s=re(e,0);for(let c=t;c<e.length;c+=10){let e=[0,1,2].map(e=>s[c+e]-n[e]),t=e[0]*r[0]+e[1]*r[1]+e[2]*r[2];[s[c+3],s[c+4],s[c+5]]=I([0,1,2].map(n=>r[n]+o*(e[n]-t*r[n])/a)),s[c+8]=i}},mt=[[-T/4-Math.asin(ge[0][2]/B),-T/4+Math.asin(ge[0][2]/B),ge[0][3]],[-Math.acos((f[1].min[0]-R)/B),Math.asin((f[0].max[2]-z)/B),ge[1][3]]],ht=e=>e.filter((t,n)=>{let r=n-n%30;return Math.max(e[r],e[r+10],e[r+20])>-.49}),gt=ht(E(A([[1,0],[1,1]],12),xe)),_t=ht(E(A([[1.06,0],[1.06,.3]],12),Se)),vt=({brushes:e},r)=>{let i=[];for(let t of e)t.ghost&&t.tint&&We(i,t,2*Math.max(0,r.indexOf(`${t.tint}`)));let a=[];(e=>{[...d,...ft].forEach(t=>((e,[t,n,r,i,a,o,s,c])=>{let l=1&c?2:0,[u,d]=[[n,o,r],[i,s,a]],f=c<2?1:-1,p=(e,t,n)=>{let r=[0,o+t,0];return r[l]=(f>0?u[l]:d[l])+f*n,r[2-l]=u[2-l]+e,r},[m,h,g]=[d[2-l]-u[2-l],d[l]-u[l],s-o],_=(t,n,r)=>{let[i,a]=[p(t[0],t[1],t[2]),p(n[0],n[1],n[2])];j(e,i.map((e,t)=>Math.min(e,a[t])),i.map((e,t)=>Math.max(e,a[t])),r)},v=(t,n,r,i=.025)=>{let[a,o]=[p(t[0],t[1],t[2]),p(n[0],n[1],n[2])];Ye(e,a.map((e,t)=>Math.min(e,o[t])),a.map((e,t)=>Math.max(e,o[t])),r,i)},y=[0,0,0];y[2-l]=(l?1:-1)*f;let x=[0,1,0],C=(t,n,r,i,a,o=1.6,s=!0,c=8,l=0)=>{Ze(e,p(t,n,i+.004),y,x,[0,r],dt(a,1.4*o),a.map(e=>e*o),c,l),s&&Ze(e,p(t,n,i+.001),y,x,[r,3*r],a.map(e=>.45*e),ut,c,l)},w=(t,n,r,i,a,o,s=1)=>b(e,s,()=>k(e,[p(t,n,a),p(r,n,a),p(r,i,a),p(t,i,a)],o,p(t,n,a-1))),T=(e,t,n,r,i,a)=>{v([e,t,i-.06],[n,r,i],U,.025),w(e+.04,t+.04,n-.04,r-.04,i+.005,a,.45);for(let o=0;r-t>.3&&o<4;o++){let s=r-.12-o*((r-t-.16)/4);w(e+.08,s-.025,e+.08+(n-e-.16)*(.4+(7*e+o)%4*.15),s,i+.01,a,1.1)}};t==_e.CONSOLE?((e,t,n,r,i)=>{Ge(e,()=>{let a=S(2,1,[1,1],[0,0]);P(e,a,[t,r,n],[t,r+.08,n],[1,0,0],1,1.48,$e),P(e,a,[t,r+.08,n],[t,r+.14,n],[1,0,0],1,.75,Qe),P(e,a,[t,r+.14,n],[t,r+.5,n],[1,0,0],1,.05,$e),P(e,a,[t,r+.5,n],[t,r+.6,n],[1,0,0],1,.22,et);for(let a=0;a<rt;a++){let o=i+Math.PI+(a-(rt-1)/2)*it;oe(e,ct,[t,r,n],-o)}})})(e,(n+i)/2,(r+a)/2,o,c*Math.PI/2):Ge(e,()=>{if(t==_e.BENCH){v([0,g-.06,0],[m,g,h],V,.03),v([.05,0,0],[m-.05,g-.06,h-.06],Fe,.04);for(let e=1.1;e<m-.5;e+=1.1)_([e-.01,.1,h-.06],[e+.01,g-.1,h-.05],U);for(let t=0;t<4;t++){let n=1.4+2.75*t;_([n-.05,g,.16],[n+.05,g+.22,.22],U),T(n-.45,g+.2,n+.45,g+.75,.28,[Re,W,ze,Re][t]),_([n-.3,g,.45],[n+.3,g+.025,.65],H);let r=S(2,1,[1,1],[0,0]);P(e,r,p(n+.76,g,.26),p(n+.76,g+.2,.26),[1,0,0],1,.055,[W,Ie,ze,Ve][t])}}else if(t==_e.RACKS){v([0,0,0],[m,g,h],U,.05);for(let e=0;e<3;e++){let t=.1+1.63*e;for(let n=0;n<12;n++){let r=.25+.2*n;w(t,r,t+1.43,r+.16,h+.01,H,.25);for(let i=0;i<5;i++){let a=[W,ze,W,Re,Be,null][(7*e+5*n+3*i)%6];a&&C(t+.12+.08*i,r+.08,.017,h+.011,a,1.9,!1,6)}}w(t,g-.4,t+1.43,g-.34,h+.01,Re,.9)}}else if(t==_e.SCOPE){_([.2,0,.2],[1,.1,1],U),v([.45,.1,.45],[.75,.85,.75],V,.04),C(.6,.6,.035,.75,W,1.8,!1),v([.35,.85,.35],[.85,1.05,.85],H,.04);let[t,n]=[p(.6,.9,.2),p(1.4,2.8,2.1)];P(e,S(2,1,[1,1],[0,0]),t,n,[1,0,0],1,.2,V),P(e,S(2,1,[1,1],[0,0]),p(1.3,2.56,1.86),p(1.42,2.83,2.13),[1,0,0],1,.24,U),P(e,S(2,1,[1,1],[0,0]),p(.86,1.4,.6),p(1.2,2.2,1.4),[1,0,0],1,.05,H)}else if(t==_e.ANALYSER){v([0,0,0],[m,.9,h],V,.04),v([0,.9,0],[m,g,.5],V,.04),T(.12,.92,.95,1.26,.56,W),v([1.1,.9,.55],[1.88,1.18,1.1],H,.03),w(1.16,.95,1.82,1.13,1.105,Ve,1.3),v([.08,.68,h-.01],[.9,.86,h+.015],U,.012);for(let e=0;e<6;e++)C(.185+.125*e,.77,.025,h+.015,[ze,W,Re][e%3]);for(let e of[.3,.6])_([.05,e,h],[m-.05,e+.015,h+.005],U)}else if(t==_e.PLANTS){for(let e of[0,m/2-.03,m-.06])v([e,0,0],[e+.06,g,h],H,.02);v([0,g-.04,0],[m,g,h],V,.015);for(let t of[.3,.9,1.5]){v([0,t,0],[m,t+.04,h],V,.015),_([.1,t+.04,.12],[m-.1,t+.18,h-.12],Le);for(let e=.25;e<m-.15;e+=.4)_([e-.1,t+.18,.2],[e+.1,t+.18+(.12+(10*e+3*t)%3*.06),h-.2],10*e%2<1?[.18,.5,.16]:[.3,.62,.2]);b(e,1.1,()=>_([.1,t+.53,.3],[m-.1,t+.56,h-.3],He))}}else if(t==_e.LOCKERS){v([0,0,0],[m,g,h],Ie,.04);for(let e=0;e<6;e++){let t=.8*e;e&&_([t-.01,.05,h],[t+.01,g-.05,h+.01],U);for(let e=0;e<3;e++)_([t+.2,1.7+.08*e,h],[t+.6,1.73+.08*e,h+.01],U);v([t+.64,.95,h],[t+.68,1.2,h+.04],Fe,.015),C(t+.4,1.53,.025,h+.008,ze,1.3,!1,12,.07)}}else if(t==_e.SUIT){_([.1,0,.1],[.9,.06,.9],U),_([.47,.06,.06],[.53,1.7,.14],H);for(let e of[.27,.54])_([e-.02,.06,.36],[e+.21,.22,.68],H),_([e,.22,.4],[e+.19,.95,.62],V);v([.22,.95,.32],[.78,1.58,.7],V,.07),v([.25,1,.14],[.75,1.62,.32],Fe,.05);for(let e of[.08,.78])_([e,1,.4],[e+.14,1.54,.6],V),_([e,.88,.4],[e+.14,1,.6],H);C(.42,1.36,.05,.7,Re,1.3,!1),C(.6,1.38,.03,.7,Be,1.6,!1),M(e,S(2,0,[1,1]),p(.5,1.8,.5),de,[0,0,0],.21,V),w(.38,1.74,.62,1.88,.715,ze,.7)}else{v([0,0,0],[m,g,.05],H,.03),v([.08,.3,.03],[.6*m+.02,g-.08,.07],U,.02),w(.12,.34,.6*m-.02,g-.12,.071,Re,.5),v([.64*m,.3,.03],[m-.08,g-.08,.07],U,.02);for(let e=0;e<12;e++){let[t,n]=[.64*m+.15+e%3*.24,.42+.23*Math.floor(e/3)];C(t,n,.04,.07,[W,ze,Be,Re][(e+Math.floor(e/3))%4])}v([.1,.09,.03],[m-.1,.21,.06],U,.015),C(m/2,.15,.03,.06,ze,1.4,!1,12,m/2-.2)}})})(e,t));let[,r]=ge[0],i=z+r+.03;G(e,2,i,[R-3,3.4,0],[R+3,4.3,0],je);for(let t of[3.42,4.22])G(e,2,i+.01,[R-2.95,t,0],[R+2.95,t+.05,0],ke);for(let t=0;t<9;t++){let n=R-2.6+.6*t;G(e,2,i+.01,[n,3.9,0],[n+.45,4.1,0],[.9,.95,1]),G(e,2,i+.01,[n+.05,3.6,0],[n+.3+t%2*.1,3.7,0],Re)}for(let[t,n]of[[R+16.6,.3],[R+17.1,.15]])Ge(e,()=>j(e,[t,2.94,z-6.7],[t+n,3.06,z+6.7],U));f.forEach(({min:t,max:r},i)=>{let a=i?2:0,[o,s]=[t[a],i?f[0].min[2]:r[a]],c=t[2-a]+n,l=[0,2,0],u=[0,2.1,0];[l[a],u[a],l[2-a],u[2-a]]=[o,s,c,c+.12],Ge(e,()=>j(e,l,u,U));let[d,p]=[[0,0,0],[0,0,0]];[d[a],p[2-a]]=[a?-1:1,1];for(let t=o+2.5;t<s-1;t+=5){let[n,r]=[[0,1.22,0],[0,1.58,0]];[n[a],r[a],n[2-a],r[2-a]]=[t-.3,t+.3,c,c+.03],Ge(e,()=>Ye(e,n,r,U,.012));let i=[0,1.4,0];[i[a],i[2-a]]=[t,c+.03],Ze(e,i,d,lt,[.05,.13],W.map(e=>.5*e),ut,12,.16),Ze(e,i.map((e,t)=>e+.002*p[t]),d,lt,[0,.05],dt(W,2),W.map(e=>1.4*e),12,.16)}});for(let n of Ce){let r=n.max[0]-n.min[0]<1?0:2,[i]=t.filter(({min:e,max:t})=>e[0]<=n.min[0]&&n.max[0]<=t[0]&&e[2]<=n.min[2]&&n.max[2]<=t[2]),a=(i.min[r]+i.max[r])/2>n.min[r]?1:-1,o=(a>0?n.max[r]:n.min[r])+.02*a,[s,c]=[n.min[2-r],n.max[2-r]];if(f.some(e=>[0,2].every(t=>e.min[t]<=n.max[t]+.01&&n.min[t]-.01<=e.max[t])))continue;for(let t=0;s+.3*t<c;t++){let[n,i]=[[0,C+.05,0],[0,C+.35,0]];[n[2-r],i[2-r]]=[s+.3*t,Math.min(s+.3*t+.15,c)],G(e,r,o,n,i,ze),[n[2-r],i[2-r]]=[i[2-r],Math.min(s+.3*t+.3,c)],G(e,r,o,n,i,U)}let l=(s+c)/2,[u,d]=[[0,3.32,0],[0,0,0]];[u[r],u[2-r],d[2-r]]=[o,l,(r?1:-1)*a],Ze(e,u,d,lt,[.12,.17],ut,ut,14),u[r]+=.003*a,Ze(e,u,d,lt,[0,.12],dt(Be,2.2),Be.map(e=>1.6*e),14)}})(a);for(let e of a)i.push(e);for(let e=0;e<a.length;e+=30)for(let t of[0,2,1]){let n=e+10*t;i.push(a[n],a[n+1],280-a[n+2],a[n+3],a[n+4],-a[n+5],...a.slice(n+6,n+10))}return i},K=e=>Number.isInteger(e)?`${e}.`:`${e}`,yt=e=>`vec3(${e.map(K)})`,[[bt,xt],[St,Ct]]=t.map(({min:e,max:t})=>[[e[0]+n,0,e[2]+n],[t[0]-n,4,t[2]-n]]),[wt,Tt]=y,Et=[...ye,...ye.map(([e,t])=>[t,e])],Dt=`if(L<${(De+.05).toFixed(2)}&&L>${(Oe-.05).toFixed(2)}){\nbool rd=P.z>${K(140)};vec3 id=1./(r+step(abs(r),vec3(1e-5))*1e-5),h,e,W=vec3(.55,.56,.58);float t=0.;\nif(L<${((De+Oe)/2).toFixed(3)}){vec2 o=P.xz-vec2(${K(wt)},rd?${K(Tt)}:${K(280-Tt)}),E[4]=vec2[](${Et.map(([e,t])=>`vec2(${K(e)},${K(t)})`)});float ax=0.;\nfor(int n=0;n<2;n++)for(int i=0;i<4;i++){vec2 a=(-E[i]-o)*id.xz,b=(E[i]-o)*id.xz,lo=min(a,b),hi=max(a,b);float t1=min(hi.x,hi.y);\nif(max(lo.x,lo.y)<=t+.01&&t1>t){t=t1;ax=hi.x<hi.y?0.:1.;}}\nfloat tf=r.y<0.?-P.y*id.y:1e3;bool fl=tf<t;t=min(t,tf);h=P+r*t;float u=fract((ax<.5?h.z:h.x)/2.4);\ne=fl?vec3(.42,.43,.45)*(min(fract(h.x),fract(h.z))<.03?.7:1.):h.y>${K(8)}?vec3(.03,.03,.04):h.y>${K(7.4)}&&h.y<${K(7.6)}?vec3(1.3):h.y<.25?vec3(.04):\n((h.y>1.7&&h.y<2.9)||(h.y>5.1&&h.y<6.3))&&u>.25&&u<.75?vec3(.56,.48,.28):W;}\nelse{bool m0=P.x>${K((Ct[0]+bt[0])/2)};vec3 lo=m0?${yt(bt)}:${yt(St)},hi=m0?${yt(xt)}:${yt(Ct)};\nif(!rd){float z=lo.z;lo.z=${K(280)}-hi.z;hi.z=${K(280)}-z;}\nvec3 x=max((lo-P)*id,(hi-P)*id);t=min(x.x,min(x.y,x.z));h=P+r*t;float s=(hi.x-lo.x)/3.,lx=abs(fract((h.x-lo.x)/s)-.5)*s,wx=abs(fract((h.x-lo.x-${K(1-n)})*.5+.5)-.5)*2.;\ne=t==x.y?(r.y>0.?(lx<1.2&&abs(h.z-(lo.z+hi.z)*.5)<.3?vec3(1.6):vec3(.5)):vec3(.4,.41,.44)):\nt==x.z&&h.y>2.7&&h.y<3.7&&wx<.46?vec3(.22,.24,.26):W;}\nvec3 dv=normalize(P-E),w;if(dv.y>0.)w=K0(dv,.0015);else{float tg=-P.y/dv.y;vec2 g=P.xz+dv.xz*tg;\nw=vec3(.5,.49,.47)*(.7+.45*vn(g*.12))*(.75+.35*vn(g*1.7))*(.25+.75*max(O.y,0.));}\nc=mix(w,e,.08+.6*fr);}`,Ot=(e,t,n)=>{let[r,i]=[(t-e.x0)/e.cell,(n-e.z0)/e.cell],[a,o]=[Math.floor(r),Math.floor(i)],[s,c]=[r-a,i-o],l=a+o*e.nx,[u,d,f,p]=[e.h[l],e.h[l+1],e.h[l+e.nx],e.h[l+e.nx+1]];return s>=c?u+(d-u)*s+(p-d)*c:u+(f-u)*c+(p-f)*s},kt=(e,t)=>[[e*F,t*F],[(e+1)*F,t*F],[(e+1)*F,(t+1)*F],[e*F,(t+1)*F]],At=e=>(1&e)+(e>>1&1)+(e>>2&1)+(e>>3&1),jt=(e,t)=>!ne(e,t),Mt=(e,t)=>{let[n,r]=[Math.floor(e/F),Math.floor(t/F)],i=pe(n,r);if(jt(n,r)||At(i)!==3)return jt(n,r);let[a,o]=[e/F-n,t/F-r],s=[1,2,4,8].findIndex(e=>!(i&e));return(s===0||s===3?a:1-a)+(s<2?o:1-o)<1},Nt=(()=>{let e=/* @__PURE__ */ new Set;for(let t=0;t<=x;t++)for(let n=0;n<=te;n++)if(w(n,t))for(let r of[n-1,n])for(let n of[t-1,t])r>=0&&n>=0&&r<te&&n<x&&e.add(64*Math.floor(r*F/4)+Math.floor(n*F/4));return e})(),Pt=(e,t)=>{let n=t>=140?t-140:140-t-4;return e>=0&&e<te*F&&n<x*F&&Nt.has(e/4*64+n/4)},Ft=[[0,1],[-4,.7],[-30,.12]],[It,Lt]=y,Rt=22.4,q=T/48,zt=[.4,.42,.46],Bt=[.27,.29,.33],[J,Vt,Ht,Ut,Wt,Gt,Kt]=[[.16,.17,.2],[.6,.62,.66],[1,.8,.45],[.7,.9,1],[1,.6,.2],[1,.12,.08],[.35,1,.5]],qt=[.6,.64,.48],Jt=E(A([[1,0],[1,1]],6),[1,1,1]),Yt=E(A([[0,-1],[1,0],[0,1]],6),[1,1,1]),Xt=E(A([[0,0],[1,.4],[.93,.42],[0,.12]],12),[.82,.84,.88]),Zt=(e,t,n,r,i=Vt)=>P(e,Jt,t,n,qt,1,r,i),Qt=(e,t,n,r,i=2.2)=>{let a=e.length;M(e,Yt,t,de,[0,0,0],n,r),i&&me(e,a,i)},$t=(e,t,n)=>b(e,1.8,()=>k(e,[[t-.15,.03,n-.15],[t+.15,.03,n-.15],[t+.15,.03,n+.15],[t-.15,.03,n+.15]],Ut,[t,-5,n])),en=e=>[Rt*Math.cos(e*T/40),12*Math.sin(e*T/40)],Y=(e,t,n=.02)=>{let r=Math.max(t-5,0),i=Math.floor(r),[a,o]=[en(i),en(i+1)],[s,c]=[a[0]+(o[0]-a[0])*(r-i),a[1]+(o[1]-a[1])*(r-i)],l=I([s/Rt/Rt,c/144,0]),u=s*Math.cos(q/2)/Math.cos((e%q+q)%q-q/2)+n*l[0];return[It+u*Math.cos(e),Math.min(t,5)+c+n*l[1],Lt+u*Math.sin(e)]},tn=mt.map(([e,t])=>[e-.03,t+.03]),nn=e=>!tn.some(([t,n])=>[e,e-T].some(e=>e>t&&e<n)),rn=[...Array.from({length:35},(e,t)=>(2*t+1)*T/70).filter(e=>nn(e-.03)&&nn(e+.03)).map(e=>{let[t,n]=[Math.cos(e),Math.sin(e)];return[It+22.419999999999998*t,4.02,Lt+22.419999999999998*n,t,n,.38,0]}),...t.flatMap(({min:e,max:t})=>[-1,1].flatMap(n=>[-2,2].map(r=>[(n>0?t[0]:e[0])+.02*n,3.1,(e[2]+t[2])/2+r,n,0,.45,1]))).filter(([e,,t])=>!f.some(n=>e>n.min[0]-.5&&e<n.max[0]+.5&&t>n.min[2]-.6&&t<n.max[2]+.6))],an=(e,[t,n,r,i,a],o,s,c)=>k(e,Array.from({length:12},(e,c)=>{let l=o*Math.cos(c*T/12);return[t+s*i-a*l,n+o*Math.sin(c*T/12),r+s*a+i*l]}),c,[t-i,n,r-a]),on=(e,[t,n,r,i,a],o,s)=>{let c=e.length,l=e=>{let c=o*Math.cos(e*T/12);return[t+s*i-a*c,n+o*Math.sin(e*T/12),r+s*a+i*c]},u=[t+s*i,n,r+s*a];for(let o=0;o<12;o++)k(e,[u,l(o),l(o+1)],Ht,[t-i,n,r-a]);me(e,c,.7),pt(e,c,u,[i,0,a],o,.8)},[sn,cn]=[160,280],ln=[80,0,140],un=ln,dn=I([.3,.62,-.75]),fn=e=>(e=Math.min(Math.max(e,0),1))*e*(3-2*e),X=(e,t,n)=>{let[r,i]=[Math.floor(e),Math.floor(t)],[a,o]=[e-r,t-i].map(e=>e*e*(3-2*e)),s=(e,t)=>L(r+e,i+t,n);return(s(0,0)*(1-a)+s(1,0)*a)*(1-o)+(s(0,1)*(1-a)+s(1,1)*a)*o},pn=(e,t,n)=>.55*X(e,t,n)+.3*X(2*e,2*t,n+1)+.15*X(4*e,4*t,n+2),mn=E(A([[1,0],[1,1]],6),[.5,.52,.56]),hn=E(A([[0,-1],[1,0],[0,1]],6),[1,1,1]),gn=E(A([[0,0],[.5,1.6],[.85,3.5],[1,6],[1,10],[.8,12.5],[.55,14],[0,14]],12),[.9,.9,.92]),_n=E(A([[0,0],[2.2,.6],[0,.9]],12),[.8,.82,.86]),vn=(e,t,n)=>{let r=e=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]-n,i=[],a=e.map(e=>{let t=[];return e.forEach((n,a)=>{let o=e[(a+1)%e.length],[s,c]=[r(n),r(o)];if(s<=0&&t.push(n),s*c<0){let e=s/(s-c),r=[n[0]+(o[0]-n[0])*e,n[1]+(o[1]-n[1])*e,n[2]+(o[2]-n[2])*e];t.push(r),i.some(e=>Math.abs(e[0]-r[0])+Math.abs(e[1]-r[1])+Math.abs(e[2]-r[2])<1e-9)||i.push(r)}}),t}).filter(e=>e.length>2);if(i.length>2){let e=i.reduce((e,t)=>e.map((e,n)=>e+t[n]/i.length),[0,0,0]),n=I(N(t,Math.abs(t[1])<.9?[0,1,0]:[1,0,0])),r=N(t,n),o=t=>{let i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]];return Math.atan2(i[0]*r[0]+i[1]*r[1]+i[2]*r[2],i[0]*n[0]+i[1]*n[1]+i[2]*n[2])};a.push(i.sort((e,t)=>o(e)-o(t)))}return a},yn=[0,1,2].flatMap(e=>[-1,1].map(t=>[[-1,-1],[1,-1],[1,1],[-1,1]].map(([n,r])=>{let i=[0,0,0];return i[e]=1.2*t,i[(e+1)%3]=1.2*n,i[(e+2)%3]=1.2*r,i}))),bn=(e,t,[n,r,i],a,o,s=!0)=>{let c=(e,t)=>L(e,t,a),u=vn(yn,[0,-1,0],.35),d=(e,t,n)=>{let r=Math.sqrt(1-e*e);u=vn(u,[r*Math.cos(t),e,r*Math.sin(t)],n)};d(.92+.08*c(0,1),T*c(0,2),.72+.15*c(0,3));for(let[e,t,n,r,i,a]of[[7,-.4,.2,.62,.2,0],[8,-.05,.25,.74,.18,.3],[6,.45,.3,.6,.2,.6],[s?14:0,-.22,.2,.78,.1,.5],[s?12:0,.24,.2,.76,.1,.15],[s?9:0,.66,.2,.74,.1,.4]])for(let o=0;o<e;o++){let s=10*e+o;d(t+n*c(s,1),T*((o+a+.45*c(s,2))/e),r+i*c(s,3))}let[f,p]=[.8+.4*L(a,1,9),T*L(a,2,9)],[m,h]=[Math.cos(p),Math.sin(p)],g=([e,a,o])=>{let[s,c]=[e*n*f,o*i*(2-f)];return[t[0]+s*m-c*h,t[1]+a*r,t[2]+s*h+c*m]};u.forEach((n,r)=>{let i=n.map(g).filter((e,t,n)=>Math.hypot(...e.map((e,r)=>e-n[(t+n.length-1)%n.length][r]))>1e-5);if(i.length<3)return;let a=I(N([i[1][0]-i[0][0],i[1][1]-i[0][1],i[1][2]-i[0][2]],[i[2][0]-i[0][0],i[2][1]-i[0][1],i[2][2]-i[0][2]]));a[0]*(i[0][0]-t[0])+a[1]*(i[0][1]-t[1])+a[2]*(i[0][2]-t[2])<0&&(i.reverse(),a.forEach((e,t)=>a[t]=-e));let s=I(N(a,Math.abs(a[1])<.9?[0,1,0]:[1,0,0])),u=N(a,s),d=.85*o*(.88+.24*c(r,7))*(.8+.2*Math.sqrt(Math.max(a[1]+1,0)/2)),f=e=>[...e,...a,e[0]*s[0]+e[1]*s[1]+e[2]*s[2]+7*c(0,5),e[0]*u[0]+e[1]*u[1]+e[2]*u[2]+7*c(0,6),l.ROCK,d];for(let t=1;t<i.length-1;t++)e.push(...f(i[0]),...f(i[t]),...f(i[t+1]))})},xn=(e,t,n,r,i,a)=>{let[o,s,c,l,u,d]=t[0],f=[(o+l)/2,n+.3*(u-n),(c+d)/2],[p,m]=[(i>1?.54:.5)*(l-o),(i>1?.54:.5)*(d-c)];be(e,i>2?5:i>1?3:l-o>1.4?2:1,e=>{let t=e[1]>0?u-f[1]:f[1]-s,n=[e[0]/p,e[1]/t,e[2]/m].map(e=>e*e),a=i>1?1/Math.sqrt(Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2])):1/Math.sqrt(n[0]+n[1]+n[2]),o=a*(.93+.14*X(1.3*e[0]+r,1.3*e[2]+e[1],r));return[f[0]+e[0]*o,Math.min(f[1]+e[1]*a,u),f[2]+e[2]*o]},n,u,r,a)},Sn=(e,t,n)=>{M(e,E(A([[13,0],[13,.27],[0,.27]],32),[.13,.13,.15]),[t,0,n],de,[0,0,0],1),ve(e,[t,.29,n],7.6,8,[.8,.8,.82]);for(let r=0;r<24;r++){let i=r*T/24,[a,o]=[t+11.6*Math.cos(i),n+11.6*Math.sin(i)],s=(e,t)=>[a+e,.31,o+t];b(e,1.8,()=>k(e,[s(-.25,-.25),s(.25,-.25),s(.25,.25),s(-.25,.25)],r%3?[1,.95,.8]:[1,.45,.1],[a,-5,o]))}},Cn=(e,t,n,r,i=10,a=[1,.93,.75])=>{M(e,mn,[t,r,n],de,[0,0,0],[.2,.2,i]),M(e,mn,[t,r,n],de,[0,0,0],[.5,.5,.5]),b(e,ie,()=>M(e,hn,[t,r+i+.4,n],de,[0,0,0],[.55,.55,.45],a))},wn=(e,t)=>{let n=(n,r)=>{let[i,a]=[t[n],T*(r+.5*n)/e];return[Math.sqrt(1-i*i)*Math.cos(a),i,Math.sqrt(1-i*i)*Math.sin(a)]},r=[];for(let i=0;i<e;i++){r.push([[0,1,0],n(0,i+1),n(0,i)]);for(let e=0;e+1<t.length;e++)r.push([n(e,i),n(e,i+1),n(e+1,i)],[n(e+1,i),n(e,i+1),n(e+1,i+1)])}return r},Tn=[wn(6,[-.35]),wn(5,[.45,-.35]),wn(9,[.62,.1,-.35])],En=[.08,.2,.45],Dn=(e,t,n,r,i,a,o)=>{xn(e,[[t,a-4,n,r,a,i]],a-3.4,o,3,.9),xn(e,[[t+.15,-17,n+.15,r-.15,a-3,i-.15]],-15,o+9,2,.5)},On=[[0,.02,.6],[.55,.04,.72],[.88,.2,1.05],[1,.24,1.12],[1.4,.015,1]],kn=({brushes:e},t,n,r)=>!e.some(e=>e.max[1]>0&&Math.hypot(Math.max(e.min[0]-t,t-e.max[0],0),Math.max(e.min[2]-n,n-e.max[2],0))<r+.5)&&[0,1,2,3,4].every(i=>{let[a,o]=i?[t+r*Math.cos(1.57*i),n+r*Math.sin(1.57*i)]:[t,n];return Math.abs(a-ln[0])<=ln[0]-.5&&Math.abs(o-ln[2])<=ln[2]-.5&&e.some(e=>e.max[1]==0&&a>e.min[0]&&a<e.max[0]&&o>e.min[2]&&o<e.max[2])}),An=(e,t)=>{let n=[0,20,40,60,80,120,160,200,240];return[...n.map(t=>e-t).reverse(),...Array.from({length:(t-e)/20-1},(t,n)=>e+20*(n+1)),...n.map(e=>t+e)]},jn=[[640,75,4,.17,.02,3],[690,95,3,.16,.03,5],[740,115,3,.15,.04,8]],Mn=(e,t,n,r)=>{let i=(i,a)=>X(e*n/i+7*r,t*n/i-3*r,r+a),a=n=>{let i=T*L(r,n,97);return e*Math.cos(i)+t*Math.sin(i)},o=Math.max(fn((a(1)-.93)/.07),.8*fn((a(2)-.95)/.05)),s=Math.max(fn((a(3)-.985)/.015),fn((a(4)-.985)/.015)),c=1-Math.abs(2*i(150,2)-1);return(.42+.2*i(520,1)+.14*c*c+.24*o)*(1-.5*s)+.1*(i(60,3)-.5)+.04*(i(24,4)-.5)};function*Nn(i){let o=[];(e=>{(e=>{(e=>{let t=Array.from({length:9},(e,t)=>{let n=(t+1)/10*(T/4);return[B*Math.cos(n),5+12*Math.sin(n)]}),n=[];M(n,E(A([[B,0],[B,5],...t,[0,17]],48),xe),[R,0,z],de,[0,0,0],1);let r=(e,t)=>(t?Math.ceil:Math.floor)(e*48/T)*T/48;for(let t=0;t<n.length;t+=30){let[i,a,o]=[t,t+10,t+20],s=Math.atan2(n[i+2]+n[a+2]+n[o+2]-3*z,n[i]+n[a]+n[o]-3*R);if(Math.max(n[i+1],n[a+1],n[o+1])>5.01||!mt.some(([e,t])=>s>r(e,0)&&s<r(t,1)))for(let r=t;r<t+30;r++)e.push(n[r])}let i=(e,t)=>[R+B*Math.cos(e),t,z+B*Math.sin(e),Math.cos(e),0,Math.sin(e),xe[0],xe[1],-1,xe[2]];for(let[t,n,a]of mt){let o=[r(t,0),t];for(let e=Math.ceil(t*48/T);e*T/48<n;e++)o.push(e*T/48);o.push(n,r(n,1)),o.slice(1).forEach((t,n)=>{let r=o[n],s=n&&n<o.length-2?a:0;e.push(...i(r,s),...i(t,s),...i(t,5),...i(r,s),...i(t,5),...i(r,5))})}let a=(e,t,n)=>[R+(B+n)*Math.cos(e),t,z+(B+n)*Math.sin(e)];for(let t=0;t<70;t++){let n=t*T/70,r=n>T/2?n-T:n;if(mt.some(([e,t])=>r>e-.04&&r<t+.04))continue;let i=(e,t,r,i)=>[[-e,t],[e,t],[e,r],[-e,r]].map(([e,t])=>a(n+e/B,t,i));k(e,i(.72,1.5,2.9,.04),[.06,.06,.08],[R,2.2,z]);let o=e.length;b(e,.56,()=>k(e,i(.6,1.7,2.7,.07),[1,.85,.5],[R,2.2,z])),pt(e,o,a(n,2.2,.07),[Math.cos(n),0,Math.sin(n)],.6,.25)}let[,o,s,c,l]=ge[0],u=z+o-l;for(let[t,n,r]of[[-s-.3,-s-.02,0],[s+.02,s+.3,0],[-s-.3,s+.3,c]])j(e,[R+t,r,u-.1],[R+n,c+.3,u+.5],Se),G(e,2,u-.12,[R+t+.09,r+.09,0],[R+n-.09,c+.21,0],ke)})(e),(e=>{let t=[...ye,...ye.map(([e,t])=>[t,e]).reverse()];for(let[n,r]of t)G(e,1,.02,[R-n,0,z-r],[R+n,0,z+r],Me,1.85);let n=t.flatMap(([e,n],r)=>[[e,n],...t[r+1]?[[t[r+1][0],n]]:[]]),r=[...n,...n.map(([e,t])=>[-e,t]).reverse(),...n.map(([e,t])=>[-e,-t]),...n.map(([e,t])=>[e,-t]).reverse()];r.forEach((t,n)=>{let i=r[(n+1)%r.length],a=t[0]==i[0]?0:2,o=2-a,[s,c]=[we[a]+t[a/2],Math.sign(t[a/2])],[l,u]=[t[o/2],i[o/2]].sort((e,t)=>e-t),d=ge.find(e=>e[a/2]==t[a/2]&&e[o/2]>l&&e[o/2]<u),[f,p,m,h]=d?[d[o/2],d[2],d[3],d[4]]:[l,0,0,0],g=(t,n,r,i,l,u=0,d=0)=>{let[f,p]=[[0,r,0],[0,i,0]];[f[o],p[o]]=[we[o]+t,we[o]+n],G(e,a,s-c*d,f,p,l,u)};Je(e,a,s,we[o]+l,we[o]+u,8,1.7,d&&[[we[o]+f-p,we[o]+f+p,m]]),g(l,u,0,.25,je,0,.02),g(l,u,7.4,7.6,ke,0,.03);let _=u-l>6?Math.floor((u-l)/2.4):0;for(let t=0;t<_;t++){let n=l+(u-l)*(t+.5)/_;for(let t of[1.5,4.9])if(t>m||Math.abs(n-f)>p+.8){g(n-.72,n+.72,t,t+1.4,je,0,.02);let r=e.length;g(n-.6,n+.6,t+.2,t+1.2,Ae,0,.04);let i=[0,0,0];i[a]=-c,Ke(e,r,i,Oe)}}let v=Math.ceil((u-l)/4.2);for(let n=0;n<v;n++){let r=(e,n)=>{let r=[0,8,0];[r[a],r[o]]=[t[a/2],l+(u-l)*e/v];let i=n?21.55/Math.hypot(r[0],r[2]):1;return[R+r[0]*i,8,z+r[2]*i]};Ue(e,[r(n,0),r(n+1,0),r(n+1,1),r(n,1)],Me,1)}if(d){let[t,n]=[[0,0,0],[0,m,0]];[t[a],n[a]]=[s,s+c*h].sort((e,t)=>e-t),[t[o],n[o]]=[we[o]+f-p,we[o]+f+p],G(e,o,t[o],t,n,Pe,1.4),G(e,o,n[o],t,n,Pe,1.4),G(e,1,m,t,n,Pe,.9),G(e,1,.02,t,n,Me,1.85),qe(e,a,s-.03*c,t[o],n[o],m)}});let[i,a,o]=[32,6,Math.asin(3/11.7)],s=(e,t)=>{let[n,r]=[o+(T/4-o)*t/a,e*T/i],s=(B-.3)*Math.cos(n);return[R+s*Math.cos(r),5+11.7*Math.sin(n),z+s*Math.sin(r)]};for(let t=0;t<a;t++)for(let n=0;n<i;n++){let r=.31-.028*t-.018*(n+t&1);Ue(e,[s(n,t),s(n+1,t),s(n+1,t+1),s(n,t+1)],[r,r,1.06*r])}for(let t=0;t<16;t+=2){let n=e=>[R+3*Math.cos(e*T/16),16.2,z+3*Math.sin(e*T/16)];Ue(e,[[R,16.2,z],n(t),n(t+1),n(t+2)],ke)}he.forEach(t=>We(e,t))})(e),(e=>{f.forEach(({min:t,max:r},i)=>{let a=i?2:0,[o,s,c]=[t[a],i?f[0].min[2]:r[a],(t[2-a]+r[2-a])/2],l=e=>a?[c,1.75,e]:[e,1.75,c],u=(r[2-a]-t[2-a])/2+.1;P(e,gt,l(o),l(s),[0,1,0],1,[1.75,u]);for(let t=5;t<s-o-1;t+=5)P(e,_t,l(o+t),l(o+t+.3),[0,1,0],.3,[1.75,u]);Je(e,2-a,t[2-a]+n+.02,o,s,C,1.4),Je(e,2-a,r[2-a]-n-.02,i?o:f[1].min[0],s,C,1.4),G(e,1,C-.01,t,r,Pe,.9);let[d,p]=[[...t],[...r]];[d[2-a],p[2-a]]=[c-.15,c+.15],G(e,1,C-.02,d,p,ke)})})(e),(e=>{for(let{min:r,max:i}of t){let t=[(r[0]+i[0])/2,2.5,(r[2]+i[2])/2];for(let a of[-1,1]){let o=a>0?i[2]:r[2];for(let i=0;i<7;i++){let s=r[0]+1+2*i;if(Ce.some(e=>Math.abs(e.min[2]-o)<1&&s+.72>e.min[0]&&s-.72<e.max[0]))continue;let c=(e,t,n,r)=>[[-e,t],[e,t],[e,n],[-e,n]].map(([e,t])=>[s+e,t,o+a*r]);k(e,c(.72,2.6,3.8,.02),[.06,.06,.08],t);let l=e.length;b(e,.5,()=>k(e,c(.6,2.7,3.7,.04),[.9,.95,1],t)),pt(e,l,[s,3.2,o+.04*a],[0,0,a],.6,.25),Ue(e,c(.56,2.6,3.8,-n-.04),je);let u=e.length;Ue(e,c(.46,2.7,3.7,-n-.06),[.45,.48,.5]),Ke(e,u,[0,0,-a],De)}}for(let t of[0,2])for(let[a,o]of[[r[t],n+.02],[i[t]-n,-.02]])Je(e,t,a+o,r[2-t]+n,i[2-t]-n,4,1.5,Ce.filter(e=>Math.abs(e.min[t]-a)<.01).map(e=>[e.min[2-t],e.max[2-t],C]));G(e,1,3.99,r,i,Pe,.9);for(let n=0;n<3;n++){let a=r[0]+(i[0]-r[0])*(n+.5)/3;G(e,1,3.98,[a-1.2,0,t[2]-.3],[a+1.2,0,t[2]+.3],ke)}}})(e);for(let{min:n,max:r}of[...t,...f])G(e,1,.02,n,r,Ne,1.99);for(let{min:t,max:n}of Ce){let r=n[0]-t[0]<1?0:2;for(let i of[t[r]-.02,n[r]+.02])qe(e,r,i,t[2-r],n[2-r],t[1])}})(e),(e=>{(e=>{let t=(t,n=zt)=>k(e,t,n,[It,5,Lt]),n=(e,n,r,i,a,o)=>{for(let s=e;s<n-1e-9;){let e=Math.min(n,(Math.floor(s/q+1e-9)+1)*q);t([Y(s,r,o),Y(e,r,o),Y(e,i,o),Y(s,i,o)],a),s=e}};for(let[t,r]of[[tn[0][1],tn[1][0]],[tn[1][1],tn[0][0]+T]])n(t,r,0,.45,J),b(e,1.6,()=>n(t,r,.16,.3,Ut,.035)),n(t,r,3.18,3.32);n(0,T,4.55,5.01,J,.03),[.4,1.9,2.5,3.7,5.2].forEach(e=>n(e,e+.05,4.68,4.86,Vt,.045));for(let e=0;e<70;e++){let n=(e+.5)*T/70,r=.07/Rt;nn(n)&&[0,2].includes(e%5)&&t([Y(n-r,.45),Y(n+r,.45),Y(n+r,4.55),Y(n-r,4.55)])}let r=(e,n=.1,r,i=.03)=>e.slice(1).forEach(([a,o],s)=>{let[c,l]=e[s],u=Math.max(Math.abs(a-c),Math.abs(o-l)),d=(e,t)=>{let[r,s]=[c+(a-c)*e/u,l+(o-l)*e/u];return a==c?Y(r*q+t*n/en(s)[0],5+s,i):Y(r*q,5+s+t*n/2.5,i)};for(let e=0;e<u;e++)t([d(e,-1),d(e,1),d(e+1,1),d(e+1,-1)],r)});for(let t=0;t<12;t++){let n=4*t;r([[n,0],[n,9]],.22,Bt,.05),1&t?(b(e,1.6,()=>r([[n,1],[n,8]],.04,Ut,.065)),r([[n,4],[n+2,2],[n+4,4]]),r([[n,6],[n+1,7],[n+3,7],[n+4,6]])):(r([[n,2],[n+1,3],[n+3,3],[n+4,2]]),r([[n+1,3],[n+1,5],[n+2,6],[n+3,5],[n+3,3]]))}n(0,T,13.75,14.15,Bt,.05),b(e,1.6,()=>n(0,T,13.9,14,Ut,.065));for(let[t,r]of[[5,0],[22,1],[34,0]])n(t*q+.02,(t+2)*q-.02,5.25+r,5.8+r,J,.03),b(e,2,()=>n(t*q+.04,t*q+.05,5.65+r,5.72+r,Kt,.045));let[,i,a,o,s]=ge[0],c=Lt+i-s;for(let[t,n,r]of[[-a-.62,-a-.3,0],[a+.3,a+.62,0],[-a-.62,a+.62,o+.3]])j(e,[It+t,r,c-.04],[It+n,o+.62,c+.6],J),b(e,1.5,()=>k(e,[[t+.1,r+.1],[n-.1,r+.1],[n-.1,o+.52],[t+.1,o+.52]].map(([e,t])=>[It+e,t,c-.055]),Wt,[It,1,Lt]));for(let t=1;t<7;t++)for(let n of[-2.6,2.6])$t(e,It+n,c-2.5*t);let l=(e,t=0,n=0)=>[It+t,e,Lt+n];Qt(e,l(17),.7,J,0),Zt(e,l(17),l(25.099999999999998),.11),[1.9,1.5,1.1].forEach((t,n)=>{let r=20+1.6*n;Zt(e,1&n?l(r,0,-t):l(r,-t),1&n?l(r,0,t):l(r,t),.06)}),Qt(e,l(25.4),.34,Gt)})(e),(e=>{f.forEach(({min:t,max:n},r)=>{let i=r?2:0,a=2-i,[o,s]=[t[i],r?f[0].min[2]:n[i]];for(let r=1;o+5*r/3<s-1;r++)if(r%3){let[s,c]=[[0,0,0],[0,3.53,0]];[s[i],c[i]]=[o+5*r/3-.06,o+5*r/3+.06];for(let r of[0,1]){s[a]=r?n[a]:t[a]-.12,c[a]=s[a]+.12,j(e,s,c,zt,12|(i?32:2)>>r);let o=r?c[a]+.015:s[a]-.015;b(e,1.8,()=>k(e,[[s[i]+.015,2.7],[c[i]-.015,2.7],[c[i]-.015,2.9],[s[i]+.015,2.9]].map(([e,t])=>{let n=[0,t,0];return[n[i],n[a]]=[e,o],n}),Ut,[(t[0]+n[0])/2,2.8,(t[2]+n[2])/2]))}[s[a],c[a],s[1]]=[t[a]-.12,n[a]+.12,3.5],j(e,s,c,zt,4|(i?48:3))}})})(e),(e=>{t.forEach(({min:t,max:n},r)=>{for(let r of[0,2]){let i=2-r;for(let a of[-1,1]){let o=a>0?n[r]:t[r],s=(r?1:16)*(a>0?1:2),c=(e,t,n)=>{let s=[0,t,0];return[s[r],s[i]]=[o+a*n,e],s},l=(t,n,r,i=0)=>j(e,t.map((e,t)=>Math.min(e,n[t])),t.map((e,t)=>Math.max(e,n[t])),r,i),u=(t,n,r,i,a,o)=>k(e,[c(t,n,a),c(r,n,a),c(r,i,a),c(t,i,a)],o,c(t,n,-1)),[d]=Ce.filter(e=>Math.abs((a>0?e.max[r]:e.min[r])-o)<.01&&e.min[i]>t[i]&&e.max[i]<n[i]).map(e=>{let t=(e.min[i]+e.max[i])/2;return e.max[i]-e.min[i]>3?[t-2.25,t+2.25,3.62,0]:[t-1.32,t+1.32,C+.14,t]});l(c(t[i]-.06,4.7,0),c(n[i]+.06,5,.06),J,s|(r?48:3));for(let[e,r]of d?[[t[i],d[0]],[d[1],n[i]]]:[[t[i],n[i]]])l(c(e,0,0),c(r,.3,.04),zt,4|s);let f=(t[i]+n[i])/2;for(let i of r?[1,-1]:[]){let r=i>0?t[0]:n[0],a=d?d[i>0?0:1]:f-.8*i;(a-r)*i>4.2&&(u(r,1,r+3*i,1.1,.02,zt),u(r+4*i,2,a,2.1,.02,zt),k(e,[c(r+3*i,1,.02),c(r+4*i,2,.02),c(r+4*i,2.1,.02),c(r+3*i,1.1,.02)],zt,c(r,1,-1)))}if(r&&b(e,1.6,()=>u(t[0]+.3,4.82,n[0]-.3,4.9,.075,Ut)),!r&&!d){u(f-1.1,.9,f+1.1,1.9,.02,J);for(let e=0;e<4;e++)u(f-1,1.05+.2*e,f+1,1.15+.2*e,.035,Vt)}if(d?.[3]){let t=d[3];l(c(t-.5,2.95,0),c(t+.5,3.05,.22),J,s),b(e,1.8,()=>l(c(t-.4,2.83,0),c(t+.4,2.95,.12),Ht,8|s)),l(c(t-.05,4.1,0),c(t+.05,4.2,.5),J,s),l(c(t-.5,4.2,.32),c(t+.5,4.42,.5),Vt),b(e,2,()=>u(t-.42,4.27,t-.3,4.35,.515,Kt)),Zt(e,c(t+.35,4.42,.41),c(t+.35,5.4,.41),.03),Qt(e,c(t+.35,5.45,.41),.07,Gt);for(let n of[1.5,3.5,5.5])for(let r of[t-1.5,t+1.5]){let[t,,i]=c(r,0,n);$t(e,t,i)}}}}if(r){let r=n[0]-.7;j(e,[r-.3,5,t[2]+2],[r+.3,5.2,n[2]-2],J),[3.4,4.6,2.8].forEach((n,i)=>{let a=t[2]+2.5+1.5*i;Zt(e,[r,5.2,a],[r,5.2+n,a],.04),Qt(e,[r,5.26+n,a],.07,1&i?Gt:Ut)})}else{let r=[n[0]-1.4,6.35,t[2]+1.4],i=e=>[r[0]+.6*e,r[1]+.8*e,r[2]];j(e,[r[0]-.4,5,r[2]-.4],[r[0]+.4,5.12,r[2]+.4],J),Zt(e,[r[0],5,r[2]],r,.16),Qt(e,r,.26,J,0),P(e,Xt,i(.1),i(1.1),qt,1,1.15),Zt(e,i(.2),i(1.05),.03),Qt(e,i(1.1),.08,Gt)}})})(e),(e=>{for(let t of rn){let r=t[5];if(an(e,t,r+.1,0,J),on(e,t,r,.015),t[6]){let i=e.length,a=[t[0],t[1],t[2],-t[3],-t[4]];an(e,a,r+.1,n+.06,[.04,.04,.05]),an(e,a,r,n+.08,[.45,.48,.5]);for(let t=i;t<e.length;t+=10)[e[t+3],e[t+4],e[t+5],e[t+8]]=[...Te,-2]}}})(e)})(e);for(let[t,n]of a.pads.slice(0,a.pads.length/2))Sn(e,t,n);for(let[t,n]of a.masts.slice(0,a.masts.length/2))Cn(e,t,n,0)})(o),i.relief&&(e=>{a.pillars.forEach(([t,n,r,i,a],o)=>n>140&&Dn(e,t,n,r,i,a,o+400)),se.forEach(([t,n,r,i],a)=>{let[o,s,c,l]=[t-r,140+n-r,t+r,140+n+r];xn(e,[[o,i-3,s,c,i,l]],i-2.6,a+420,1,.9),j(e,[o,-30,s],[c,i-2.6,l],[.05,.05,.055],12)}),k(e,[[-2,-30,140],[162,-30,140],[162,-30,158],[-2,-30,158]],[.012,.012,.015]);for(let t=0;t<9;t++){let n=6+17*t+8*L(t,1,77);b(e,.1,()=>k(e,[[n,-29.9,140],[n+9+6*L(t,2,77),-29.9,140],[n+5,-29.9,140.25+.3*L(t,3,77)]],[.2,.55,1]));let r=1.5+2.5*L(t,4,77);bn(e,[n,-29.6,142.5+5*L(t,5,77)],[r,.7*r,r],t+200,.25,!1)}})(o);let c=i.relief?.at??(()=>0);a.crags.forEach(e=>((e,{at:[t,n,i],R:a,H:o,s:c},l)=>{let{reach:u}=s(c,a,o),d=[t,n+r(o),i];be(e,a<1.5?3:a<2.5?4:5,e=>{let t=u(e);return[d[0]+e[0]*t,d[1]+e[1]*t,d[2]+e[2]*t]},n,n+o,c,.8+.4*L(c,5,41),l)})(o,e,c));let u=o.concat((e=>{let t=[];for(let n=0;n<e.length;n+=30)for(let r of[0,2,1]){let i=n+10*r;t.push(e[i],e[i+1],cn-e[i+2],e[i+3],e[i+4],-e[i+5],...e.slice(i+6,i+10))}return t})(o));yield,i.relief&&((e,t)=>{for(let[n,r,i,o,s]of(e=>{let t=O(e.relief),[n,r,i,o]=t.bound,s=(e,n)=>{if(e>t.hole[0]-.3&&e<t.hole[2]+.3&&n>t.hole[1]-.3&&n<t.hole[3]+.3||t.pits.some(t=>e>=t[0]-.3&&e<=t[2]+.3&&n>=t[1]-.3&&n<=t[3]+.3))return NaN;let[r,i]=[(e-t.x0)/t.cell,(n-t.z0)/t.cell],[a,o]=[Math.floor(r),Math.floor(i)],[s,c]=[r-a,i-o],l=a+o*t.nx,[u,d,f,p]=[t.h[l],t.h[l+1],t.h[l+t.nx],t.h[l+t.nx+1]];return s>=c?u+(d-u)*s+(p-d)*c:u+(f-u)*c+(p-f)*s},c=[],l=(e,t,l,u=1)=>{if(((e,t)=>{let c=t-cn/2,l=([t,n,r,i])=>Math.hypot(Math.max(t-e,e-r,0),Math.max(n-c,c-i,0));return c>.3&&Math.hypot((e-n)/i,(t-r)/o)<.97&&!h.some(e=>l(e)<2.5)&&!g.some(e=>l(e)<1)&&!a.crags.some(n=>Math.hypot(e-n.at[0],t-n.at[2])<1.3*n.R)&&Number.isFinite(s(e,t))})(e,t)){let n=L(l,3,211);c.push([e,s(e,t),t,n<.62?0:n<.945+.055*(1-u)?1:2,l])}};a.sites.forEach(([e,t,n],r)=>{for(let i=0;i<Math.round(8+5*n);i++){let a=e=>L(r,5*i+e,201),o=n*(.1+1.7*a(1)*a(1));l(e+o*Math.cos(T*a(2)),t+o*Math.sin(T*a(2)),1e3*r+i)}}),a.crags.forEach(({at:[e,,t],R:n},r)=>{for(let i=0;i<Math.round(8+5*n);i++){let a=e=>L(r,5*i+e,215),o=n*(1.32+.75*a(1)*a(1));l(e+o*Math.cos(T*a(2)),t+o*Math.sin(T*a(2)),5e5+1e3*r+i)}}),a.bowls.forEach(([e,t,n],r)=>{for(let i=0;t>=cn/2&&i<Math.round(1.1*n);i++){let a=e=>L(r,5*i+e,203),o=i%5<2?.94+.16*a(1):1.15+1.25*a(1)*a(1);l(e+o*n*Math.cos(T*a(2)),t+o*n*Math.sin(T*a(2)),1e5+1e3*r+i)}});for(let e=0;e<60;e++){let t=t=>L(e,t,205),n=1+158*t(1),r=ue[Math.floor(n)];l(n,cn/2+8+Math.max(r,0)+.5+2.5*t(2)*t(2),2e5+e,.5)}for(let e=0;e<18;e++){let t=t=>L(e,t,207),[r,a,s]=[n+i*(1.8*t(1)-.9),cn/2+4+(o-8)*t(2),T*t(3)];for(let n=0;n<10+12*t(4);n++)s+=.5*(L(e,10+n,208)-.5),[r,a]=[r+(1+1.4*L(e,40+n,208))*Math.cos(s),a+(1+1.4*L(e,40+n,208))*Math.sin(s)],l(r+.8*(L(e,70+n,208)-.5),a+.8*(L(e,100+n,208)-.5),3e5+100*e+n,.6)}for(let e=0;e<520;e++){let t=t=>L(e,t,209),[r,a]=[n+i*(2*t(1)-1),cn/2+o*t(2)];(X(r/20,a/20,77)>.62||t(3)<.04)&&l(r,a,4e5+e,.7)}return[...c,...c.map(([e,,t,n,r])=>[e,s(e,cn-t),cn-t,n,r])]})(t)){let t=e=>L(s,e,213),a=En[o]*(.88+.24*t(1)),[c,l,u]=[a/2,a/2*(.65+.35*t(2)),a*(.5+.3*t(3))],[d,f]=[Math.cos(T*t(4)),Math.sin(T*t(4))],p=r+.1*u;be(e,Tn[o],e=>{let[t,r]=[e[0]*d+e[2]*f,e[2]*d-e[0]*f],a=(.9+.2*X(1.3*e[0]+s,1.3*e[2]+e[1],s%97))/Math.hypot(t/c,2*e[1]/u,r/l);return[n+e[0]*a,p+e[1]*a,i+e[2]*a]},r,p+u/2,s,.5+.25*t(5))}})(u,i);for(let[e,t,n,r,i]of a.pillars)t<140&&r>140&&Dn(u,e,t,n,r,i,401);return((e,t)=>{let n={relief:t.relief&&O(t.relief)},r=(e,r,i)=>!t.relief||Array.from({length:17},(e,t)=>t*T/16).every((t,a)=>D(n,e+(a?i*Math.cos(t):0),r+(a?i*Math.sin(t):0))===0);for(let n=0,i=0;i<72&&n<900;n++){let[a,o,s]=[sn*L(n,1,61),cn*L(n,2,61),.6+2*L(n,3,61)**2];if(!kn(t,a,o,1.5*s)||!r(a,o,1.5*s)||Math.abs(o-ln[2])<24||[-1,1].some(e=>[-1,1].some(t=>Pt(4*Math.floor((a+1.5*e*s)/4),4*Math.floor((o+1.5*t*s)/4))))||(t.rovers??[]).some(([e,,t])=>Math.hypot(a-e,o-t)<6))continue;i++;let c=(e,t)=>{let[r,i,c]=On[e],[u,d]=[r*(e&&e<4?.86+.28*L(n,t%12,67):1),e===2||e===3?i*(.55+.45*L(n,t%12,68)):i],f=t*T/12,[p,m]=[Math.cos(f),Math.sin(f)],[h,g]=[On[Math.max(e-1,0)],On[Math.min(e+1,On.length-1)]],_=-3*(g[1]-h[1])/((g[0]-h[0])*s),v=Math.hypot(_,1),[y,b]=[a+p*u*s,o+m*u*s];return[y,d,b,_*p/v,1/v,_*m/v,y,b,l.STONE,c]};for(let t=0;t<On.length-1;t++)for(let n=0;n<12;n++){let[r,i,a,o]=[c(t,n),c(t+1,n),c(t+1,n+1),c(t,n+1)];e.push(...r,...a,...i,...r,...o,...a)}}})(u,i),yield,i.relief&&(((e,t)=>{let n=O(t.relief);for(let t of[1,-1]){let r=(e,r)=>{let i=140+t*r;return[e,Math.max(Ot(n,e,i),0),i]},i=(e,t)=>{let i=r(e,t),a=I([Ot(n,i[0]-1,i[2])-Ot(n,i[0]+1,i[2]),2,Ot(n,i[0],i[2]-1)-Ot(n,i[0],i[2]+1)]);return[...i,...a,i[0],i[2],l.STONE,Math.min(Math.max(1+i[1]/60,.78),1.2)]},a=(n,r,i)=>e.push(...t>0?[...n,...i,...r]:[...n,...r,...i]);for(let e of Nt){let[r,o]=[4*Math.floor(e/64),e%64*4],s=t>0?140+o:136-o,c=(e,t)=>Ot(n,e,t),l=c(r,s)+c(r+4,s+4)===c(r+4,s)+c(r,s+4),u=/* @__PURE__ */ new Map,d=e=>{let[t,n,r,o]=e,[s,c,l,u]=[i(t*F,r*F),i(n*F,r*F),i(n*F,o*F),i(t*F,o*F)];a(s,l,c),a(s,u,l)};for(let e=o/F;e<(o+4)/F;e++){let n=/* @__PURE__ */ new Map;for(let o=r/F;o<(r+4)/F;){if(!jt(o,e)){let t=pe(o,e);if(At(t)===3){let n=[1,2,4,8].findIndex(e=>!(t&e)),r=kt(o,e).map(([e,t])=>i(e,t));a(r[n],r[(n+1)%4],r[(n+3)%4])}o++;continue}let s=o+1;for(;s<(r+4)/F&&jt(s,e);)s++;if(l){let t=u.get(1e3*o+s)??[o,s,e,e];u.delete(1e3*o+s),t[3]=e+1,n.set(1e3*o+s,t),o=s;continue}let c=Math.min(140+t*e*F,140+t*(e+1)*F),d=r/F+(c-4*Math.floor(c/4))/F,f=(t,n)=>{if(t<n){let[r,o,s,c]=[i(t*F,e*F),i(n*F,e*F),i(n*F,(e+1)*F),i(t*F,(e+1)*F)];a(r,s,o),a(r,c,s)}};if(d>=o&&d<s){f(o,d),f(d+1,s);let[n,r,c,l]=[i(d*F,e*F),i((d+1)*F,e*F),i((d+1)*F,(e+1)*F),i(d*F,(e+1)*F)];t>0?(a(n,c,r),a(n,l,c)):(a(l,r,n),a(l,c,r))}else f(o,s);o=s}u.forEach(d),u=n}u.forEach(d)}let o=(n,i,a)=>{let s=Math.ceil(Math.hypot(i[0]-n[0],i[1]-n[1])/3-1e-9);if(s>1){for(let e=0;e<s;e++){let t=e=>[n[0]+(i[0]-n[0])*e/s,n[1]+(i[1]-n[1])*e/s];o(t(e),t(e+1),7*a+e)}return}let c=(e,t)=>Ft.map(([n],i)=>{let a=r(e,t),o=n=>.9*(L(Math.round(2*e),Math.round(2*t)+400*i,n)-.5);return i?[e+o(61),n,a[2]+o(62)]:a}),[u,d]=[c(n[0],n[1]),c(i[0],i[1])],[f,p,m,h]=[(n[0]+i[0])/2,(n[1]+i[1])/2,i[1]-n[1],n[0]-i[0]],g=Math.hypot(m,h),_=Mt(f+.1*m/g,p+.1*h/g)?-1:1,v=[_*m/g,t*_*h/g];for(let t=0;t<Ft.length-1;t++){let n=[u[t],d[t],d[t+1],u[t+1]];for(let[r,i,o]of[[0,1,2],[0,2,3]]){let s=N(ce(n[i],n[r]),ce(n[o],n[r]));if(Math.hypot(...s)<1e-9)continue;s=I(s),s=s[0]*v[0]+s[2]*v[1]<0?s.map(e=>-e):s;let c=Ft[t][1]*(.85+.3*L(a,t,73));for(let t of[n[r],n[i],n[o]])e.push(...t,...s,t[0]+t[2],t[1],l.ROCK,c)}}},s=0,c=(e,t)=>At(pe(e,t))===4,u=(e,t,n,r)=>{if(!jt(e,t)||jt(n,r))return!1;if(c(n,r))return!0;let[i,a]=[Math.max(e,n),Math.max(t,r)];return(e===n?[[e,a],[e+1,a]]:[[i,t],[i,t+1]]).every(([e,t])=>w(e,t))};for(let e=0;e<=x;e++)for(let[t,n,r]of[[1,-1,0],[-1,0,-1]]){let i=-1;for(let a=0;a<=te;a++){let c=a<te&&u(a,e+n,a,e+r);if(c&&i<0)i=a;else if(!c&&i>=0){let[n,r]=t>0?[[i*F,e*F],[a*F,e*F]]:[[a*F,e*F],[i*F,e*F]];o(n,r,s++),i=-1}}}for(let e=0;e<=te;e++)for(let[t,n,r]of[[1,0,-1],[-1,-1,0]]){let i=-1;for(let a=0;a<=x;a++){let c=a<x&&u(e+n,a,e+r,a);if(c&&i<0)i=a;else if(!c&&i>=0){let[n,r]=t>0?[[e*F,i*F],[e*F,a*F]]:[[e*F,a*F],[e*F,i*F]];o(n,r,s++),i=-1}}}for(let e=0;e<x;e++)for(let t=0;t<te;t++){let n=pe(t,e);if(!jt(t,e)&&At(n)===3){let r=[1,2,4,8].findIndex(e=>!(n&e)),i=kt(t,e);o(i[(r+1)%4],i[(r+3)%4],s++)}}}for(let t of[1,-1])for(let[r,i,a,o]of ae){let s=(e,s)=>{let[c,l]=[r+e*a-s*o,i+e*o+s*a];return[c,Math.max(Ot(n,c,140+t*l),0)+.05,140+t*l]},c=-6;for(;c<0&&!ne(Math.floor((r+c*a)/F),Math.floor((i+c*o)/F));)c+=.1;k(e,[s(c-.7,-2),s(c-.7,2),s(c-.1,2),s(c-.1,-2)],[1,.42,.08],[r,-50,140+t*i])}for(let t of[1,-1])k(e,[[-2,-30.05,140+17*t],[162,-30.05,140+17*t],[162,-30.05,140+t*(x*F+2)],[-2,-30.05,140+t*(x*F+2)]],[.012,.012,.015])})(u,i),yield,((e,t)=>{let{at:n}=t.relief,r={relief:O(t.relief)};a.bowls.forEach(([t,i,a],o)=>{let s=a<12?0:Math.round(T*a/1.5),c=Array.from({length:s},(e,r)=>{let[o,c]=[Math.cos(T*r/s),Math.sin(T*r/s)],[l,u]=[a,-1/0];for(let e=.8*a;e<1.3*a;e+=.5){let r=n(t+o*e,i+c*e);[l,u]=r>u?[e,r]:[l,u]}return l}),u=Array.from({length:s},(e,n)=>{let[a,u]=[Math.cos(T*n/s),Math.sin(T*n/s)],d=[-2,-1,0,1,2].reduce((e,t)=>e+c[(n+t+s)%s],0)/5,f=L(n,o,87);return[-2.4,-1.2,0,1.2,2.4].map((e,s)=>{let[c,p]=[t+a*(d+e),i+u*(d+e)],m=[.04,.12,.1+.15*f,.1,.04][s],h=[.62+.3*L(n>>1,o,88),.9,1.22+.2*f,1.1,1][s];return[c,D(r,c,p)+m,p,0,1,0,c,p,l.STONE,h]})});u.forEach((t,n)=>{let r=u[(n+1)%s];for(let n=0;n<4;n++)[t[n],t[n+1],r[n],r[n+1]].every(e=>Number.isFinite(e[1]))&&e.push(...t[n],...r[n+1],...r[n],...t[n],...t[n+1],...r[n+1])})})})(u,i),yield,((e,t)=>{let n=O(t.relief),[r,i,o,s]=n.bound,[c,u]=[An(n.x0,r+o),An(n.z0,i+s)],d=(e,r)=>{let[i,a]=[(e-n.x0)/n.cell,(r-n.z0)/n.cell];return i%1||a%1||i<0||a<0||i>=n.nx||a>=n.nz?t.relief.at(e,r):n.h[i+a*n.nx]},f=(e,t)=>a.bowls.reduce((n,[r,i,a])=>{let o=Math.hypot(e-r,t-i),s=o/a,c=X((e-r)/o*5+r,(t-i)/o*5+i,19);return s>1.05&&s<2.4?n+.22*fn(5*(c-.55))*fn((2.4-s)/.9)*fn(6*(s-1.05)):n},0),p=/* @__PURE__ */ new Map,m=(e,t)=>{let n=4096*e+t,r=p.get(n);if(!r){let i=d(e,t),a=[d(e-4,t)-d(e+4,t),d(e,t-4)-d(e,t+4)],o=i===0&&a[0]===0&&a[1]===0,s=n=>o?0:1.4*(L(e,t,131+n)-.5);r=[e,i,t,...I([a[0]+s(0),8,a[1]+s(1)]),e,t,l.STONE,Math.min(Math.max(1+i/60,.78),1.2)+f(e,t)],p.set(n,r)}return r},h=(e,t)=>{let[n,a,l,d]=[c[e],c[e+1],u[t],u[t+1]];if(!(n<a&&l<d))return 0;let f=Math.hypot((Math.min(Math.max(r,n),a)-r)/o,(Math.min(Math.max(i,l),d)-i)/s);return f<1?2:+(f<1.65)};for(let t=0;t<c.length-1;t++)for(let r=0;r<u.length-1;r++){let[i,a,o,s,l]=[c[t],c[t+1],u[r],u[r+1],h(t,r)];if(l>1)for(let t=i;t<a;t+=n.cell)for(let r=o;r<s;r+=n.cell){if(t>=n.hole[0]&&t<n.hole[2]&&r>=n.hole[1]&&r<n.hole[3]||Pt(t,r))continue;let[i,a,o,s]=[m(t,r),m(t+n.cell,r),m(t+n.cell,r+n.cell),m(t,r+n.cell)];e.push(...i,...o,...a,...i,...s,...o)}else if(l){let n=[];for(let[e,c,l,u,d]of[[i,o,a,o,h(t,r-1)],[a,o,a,s,h(t+1,r)],[a,s,i,s,h(t,r+1)],[i,s,i,o,h(t-1,r)]]){let t=d>1?5:1;for(let r=0;r<t;r++)n.push(m(e+(l-e)*r/t,c+(u-c)*r/t))}let c=m((i+a)/2,(o+s)/2);n.forEach((t,r)=>e.push(...c,...n[(r+1)%n.length],...t))}}})(u,i),yield,((e,t)=>{let{at:n}=t.relief,r=I(N([0,1,0],dn)),i=[r,N(dn,r),dn];for(let[t,r]of a.dishes)Cn(e,t,r,n(t,r),6,[1,.25,.15]),M(e,_n,[t,n(t,r)+5.2,r],i,[0,0,-.9],1);for(let[t,r,i,o]of a.ramps)for(let a of[-8,8])Cn(e,t+a*o,r-a*i,n(t+a*o,r-a*i),2.2,[1,.45,.1]);let[o,s]=a.wreck,c=n(o,s),l=I([.8,-.35,.5]),u=I(N([0,1,0],l));M(e,gn,[o-3,c+3.1,s-2],[u,N(l,u),l],[0,0,0],[1.6,1.4,.55],[.6,.6,.62]),k(e,[[o+3,c,s+4],[o+6.5,c+.2,s+5],[o+4,c+2.6,s+5.5]],[.7,.3,.14]),Cn(e,o-3.4,s+2.6,c,3.5,[1,.12,.08])})(u,i)),((t,n)=>{for(let[r,i,a,o,s,c]of jn){let l=t=>{let l=t*T/480,[u,d]=[Math.cos(l),Math.sin(l)],f=i*Mn(u,d,r,c),p=(t+1)*T/480,m=(i*Mn(Math.cos(p),Math.sin(p),r,c)-f)/(r*T/480);return Array.from({length:a+1},(t,i)=>{let l=i/a,p=r-.3*f*(1-l),h=r/(30+26*(1-l))*(1+.05*l),g=2*X(u*h+c+1.7*l,d*h-1.3*l,c+9)-1,_=I([-u-d*(-1.5*m-1.6*g*(1-.5*l)),.75,u*(-1.5*m-1.6*g*(1-.5*l))-d]),v=Math.max(e(_,n),0),y=(.8+.3*X(u*r/90-c,d*r/90+2.3*l,c+11))*(.72+.28*fn(.5+.9*g))*(s+(o-s)*Math.min(1.2*v+(i===a?.3:0),1));return[ln[0]+u*p,(f+25)*l-25,ln[2]+d*p,u,0,d,y,y,-2,1.03*y]})},u=l(0);for(let e=1;e<=480;e++){let n=l(e%480);for(let e=0;e<a;e++)t.push(...u[e],...n[e],...n[e+1],...u[e],...n[e+1],...u[e+1]);u=n}}})(u,I(i.sun.dir)),u}var Pn=()=>{let e=[];return(e=>{let t=dn,n=t.map(e=>-e),r=I([n[2],0,-n[0]]),i=N(n,r),a=t.map((e,t)=>ln[t]+800*e),o=t.map((e,t)=>a[t]+100*e),[s,c]=[28,64],l=(e,t)=>a.map((n,a)=>n+60*e*(r[a]*Math.cos(t)+i[a]*Math.sin(t))),u=e.length;for(let t=0;t<s;t++)for(let n=0;n<c;n++){let[r,i]=[n*T/c,(n+1)*T/c],[a,u]=[(t+.5)/s,(n+.5)*T/c],[d,f]=[a*Math.cos(u),a*Math.sin(u)],p=Math.sqrt(1-a*a),[m,h]=[(Math.atan2(d,p)+1.5)/T*12,6*(Math.asin(f)/Math.PI+.5)],g=pn(m,h,11)>.5?fe([.13,.32,.09],[.4,.3,.15],pn(2*m,2*h,13)):[.03,.16,.5],_=Math.abs(f)>.93?1:fn(4*(pn(1.5*m+4,3*h,17)-.5));g=fe(g,[.95,.97,1],_).map(e=>e*(.55+.45*Math.max(0,.3*d+.25*f+.9*p))*(.6+.4*p)),k(e,t?[l(t/s,r),l((t+1)/s,r),l((t+1)/s,i),l(t/s,i)]:[l(0,0),l(1/s,r),l(1/s,i)],g,o)}me(e,u,1.5)})(e),e},{FORWARD:Fn,BACK:In,JUMP:Ln,CROUCH:Rn,SPRINT:zn,USE:Bn}=p,Vn=(e,t,n,r,i)=>e.push(...t,...n,r[0],r[1],i,r[2]),Z=(e,t,n,r,i=-1)=>{let[[a,o],[s,c],[l,u]]=[0,1,2].map(e=>[t[e],n[e]]),d=[[[0,1,0],[[a,c,l],[a,c,u],[o,c,u],[o,c,l]]],[[0,-1,0],[[a,s,l],[o,s,l],[o,s,u],[a,s,u]]],[[1,0,0],[[o,s,l],[o,c,l],[o,c,u],[o,s,u]]],[[-1,0,0],[[a,s,l],[a,s,u],[a,c,u],[a,c,l]]],[[0,0,1],[[a,s,u],[o,s,u],[o,c,u],[a,c,u]]],[[0,0,-1],[[a,s,l],[a,c,l],[o,c,l],[o,s,l]]]];for(let[t,n]of d)for(let a of[0,1,2,0,2,3])Vn(e,n[a],t,r,i)},Hn=(e,t,n,r)=>{let i=E(A(e,r),t);for(let e=8;e<i.length;e+=10)i[e]=n;return i},Q=(e,t,n,r,i,a=m)=>P(e,Hn([[0,0],[r,0],[r,1],[0,1]],i,a,8),t,n,[0,1,0],1),Un=[.2,.22,.26],Wn=[.42,.45,.5],Gn=[.05,.05,.06],Kn=[.3,.32,.36],qn=[.95,.72,.08],Jn=[.08,.35,.8],Yn=[.35,.9,1.4],Xn=[[1.6,.12,.08],[.15,1.4,.35],[1.5,.8,.12],[.3,.6,1.6]],Zn=(e,[t,,n],r,i,a,o)=>{for(let s=0;s<24;s++){let[c,l]=[2*s*Math.PI/24,2*(s+1)*Math.PI/24],u=(e,i)=>[t+r*Math.cos(e),i,n+r*Math.sin(e)],d=(c+l)/2,f=[Math.cos(d),0,Math.sin(d)];for(let t of[u(c,i),u(c,a),u(l,a),u(c,i),u(l,a),u(l,i)])Vn(e,t,f,o,-1);for(let r of[[t,a,n],u(l,a),u(c,a)])Vn(e,r,[0,1,0],o,-1)}},Qn=(e,t)=>{let n=43758.5453*Math.sin(91.7*e+47.3*t);return n-Math.floor(n)},$n=[.2,.22,.26],er=[.5,.53,.58],tr=[.13,.14,.17],nr=[.62,.65,.7],rr=[.42,.44,.48],ir=[.06,.06,.07],ar=[.1,.1,.12],or=[.3,.45,.9],sr=[.55,.7,1.1],cr=[.08,.35,.8],lr=[2.2,2.3,2.6],ur=2*Math.PI,dr=48,fr=(e,t,n,r,i,a,o=-1)=>{let[s,c]=[n,r].map(e=>e.map((e,n)=>e-t[n])),l=[s[1]*c[2]-s[2]*c[1],s[2]*c[0]-s[0]*c[2],s[0]*c[1]-s[1]*c[0]],u=Math.hypot(...l)||1;for(let s of[t,n,r,t,r,i])Vn(e,s,[l[0]/u,l[1]/u,l[2]/u],a,o)},pr=(e,t,n,r,i,a=-1)=>{let o=([e,t],n)=>[n,t,e];fr(e,o(t[0],n),o(t[1],n),o(t[2],n),o(t[3],n),i,a);for(let s=0;s<4;s++){let[c,l]=[t[s],t[(s+1)%4]];fr(e,o(l,n),o(c,n),o(c,r),o(l,r),i,a)}},mr=({hull:[e,,t],deck:n})=>({cz:t,cy:n+le.DAIS+le.UP,px:e+le.X1}),hr=le.R+5,gr=(e,t,n,r,i,a)=>{let{cz:o,cy:s,px:c}=mr(e),l=Math.max(Math.min(n,r)-o,o-Math.max(n,r),0),u=Math.max(i-s,s-a,0);return t>c-4&&Math.hypot(l,u)<le.R+.3},_r=2*Math.PI,vr=[.5,.51,.53],yr=[.62,.63,.64],br=[.36,.37,.4],xr=[.16,.17,.19],Sr=[1.5,1.4,1.05],$=(e,t)=>{let n=43758.5453*Math.sin(91.7*e+47.3*t+3.1);return n-Math.floor(n)},Cr=(e,t,n)=>e>=t+44&&e<n-36,wr=[.78,.8,.84],Tr=[.95,.68,.22],Er=[.06,.06,.07],Dr=[.9,.9,.88],Or=[.14,.24,.55],kr=[.75,.42,.2],Ar=[3.2,.35,.15],jr=2*Math.PI,Mr=(e,t,n,r,i,a=-1,o=48)=>M(e,Hn(t,i,a,o),n,_(r,Math.abs(r[1])>.9?[1,0,0]:[0,1,0]),[0,0,0],1),Nr=(e,t,n)=>{let r=43758.5453*Math.sin(127.1*e+311.7*t+74.7*n);return 2*(r-Math.floor(r))-1},Pr=(e,t)=>{let n=Nr(Math.floor(Math.min(e,jr-e)/(4*jr/72)),Math.floor(t/6),3);return vr.map(e=>e*(1+.12*n))},Fr=(e,t,n,r,i=-2)=>{for(let a of[0,1,2,0,2,3])Vn(e,[t[a][0],n,t[a][1]],[0,1,0],r,i)},Ir=[.55,.57,.6],Lr=[.9,.45,.08],Rr=[.95,.75,.1],zr=[.4,2.6,1.6],Br=[2.6,1.3,.25],Vr=[2.2,2.3,2.6];function*Hr(e,t){let n=yield*Nn(e);return yield,n=n.concat(vt(e,t)),e.station&&(yield,n=n.concat((e=>{let{hall:[t],deck:n,hull:[r,i,a,s],gun:l}=e,u=[],{R:d}=o,[f,p]=[t[0],t[0]+48],h=[f,p].flatMap(e=>{let t=Math.acos((e-r)/d);return[t,jr-t]}),g=[...Array.from({length:72},(e,t)=>t*jr/72),...h,jr].sort((e,t)=>e-t);for(let t=i;t<s-.01;t+=2){let i=Cr(t,n,s);for(let o=0;o+1<g.length;o++){let[s,l]=[g[o],g[o+1]],m=(s+l)/2,h=r+d*Math.cos(m);if(h>f&&h<p&&t>=n-2&&t<n+16||gr(e,r+d*Math.cos(m),a+d*Math.sin(s),a+d*Math.sin(l),t,t+2))continue;let _=i,v=_?Tr:Pr(m,t),y=_?.22:.03;for(let[e,n]of[[o,t],[o+1,t],[o+1,t+2],[o,t],[o+1,t+2],[o,t+2]]){let t=g[e],i=e%(g.length-1),[o,s]=[Nr(i,n,1)*y,Nr(i,n,2)*y],l=[Math.cos(t)+o*Math.sin(t),s,Math.sin(t)-o*Math.cos(t)];Vn(u,[r+d*Math.cos(t),n,a+d*Math.sin(t)],l,v,_?c:-1)}}}Mr(u,[[d,0],[d-3,3],[.6*d,v.DOME-1],[0,v.DOME]],[r,s,a],[0,1,0],wr,m);let _=[r-16,s+v.MAST,a];Q(u,[_[0],s+4,a],_,.8,wr);let y=Array.from({length:6},(e,t)=>[2.4*t,3.6*(t/5)**2]);Mr(u,[...y,...[...y].reverse().map(([e,t])=>[e,t-.3])],_,[-.6,.8,0],Dr,-1,20);let b=v.BARREL*d,x=i-l[1];Mr(u,[[d,0],[d-1.5,2],[b+2,2.6],[0,2.6]],[r,i,a],[0,-1,0],wr,m),Mr(u,[[0,2.6],[b+2,2.6],[b+2,5],[b,6.5],[b,x-4],[b+3,x-1.5],[b+3,x],[b-2,x],[b-3,x-10],[0,x-10.5]],[r,i,a],[0,-1,0],Er,m);for(let e=10;e<x-8;e+=7)Mr(u,[[0,e],[b+.8,e],[b+.8,e+1.6],[0,e+1.6]],[r,i,a],[0,-1,0],wr,m);Mr(u,[[0,x-10.3],[b-3.5,x-10.1],[0,x-9.9]],[r,i,a],[0,-1,0],Ar,-2),Z(u,[r-b-8,l[1]-18,a-16],[r-b-7.2,l[1]+8,a+16],Dr,m),Q(u,[r-b-1,l[1]+3,a],[r-b-7.2,l[1]+3,a],.6,wr);let S=i+(s-i)*v.WING,[C,w,T]=[v.PANEL,v.SPAN,v.GAP],E=(e,t,n,i,o,s)=>Z(u,[r-o,n,a+Math.min(e,t)],[r+o,i,a+Math.max(e,t)],s,m);for(let e of[-1,1]){let t=e*(d+v.BOOM);Q(u,[r,S,a+e*d],[r,S,a+t],1.4,wr),E(t,t+3*e,S-6,S+6,2,wr),Q(u,[r,S,a+t],[r,S,a+t+e*(4*(C+T)+2)],.6,kr);for(let n=0;n<4;n++){let r=t+e*(3+n*(C+T)),[i,a]=[Math.min(r,r+e*C),Math.max(r,r+e*C)];E(i,a,S-w/2,S+w/2,.2,Or);for(let e of[S-w/2,S+w/2-.6,S-.3,S-w/4,S+w/4-.3])E(i,a,e,e+.6,.3,wr);for(let e of[i,i+C/2-.3,a-.6])E(e,e+.6,S-w/2,S+w/2,.3,wr)}}return((e,t=[])=>{let{hall:[n],deck:r,hull:[i,a,s,c]}=e,{R:l}=o,[u,d]=[n[0],n[0]+48],f=a+(c-a)*v.WING,p=(e,t,n,r)=>[i+n*Math.cos(e)-t*Math.sin(e),r,s+n*Math.sin(e)+t*Math.cos(e)],m=(t,n,a,o)=>{let c=i+l*Math.cos(t),p=c>u-4-n&&c<d+4+n&&o>r-4&&a<r+19,m=Math.abs(Math.cos(t))<.2&&o>f-10&&a<f+10,h=((e,t,n,r,i)=>{let{cz:a,cy:o,px:s}=mr(e);return t>s-4&&Math.hypot(n-a,r-o)<hr+.5+i})(e,c,s+l*Math.sin(t),Math.max(a,Math.min(o,r+le.DAIS+le.UP)),n);return!p&&!m&&!h},h=(e,n,r,i,a,o,s)=>{let[c,u]=[l+a,l+o],d=p(e,0,(c+u)/2,(r+i)/2),f=(t,r,i)=>p(e,t*n,r,i);for(let e of[[f(-1,u,r),f(1,u,r),f(1,u,i),f(-1,u,i)],[f(-1,c,i),f(-1,u,i),f(1,u,i),f(1,c,i)],[f(-1,c,r),f(1,c,r),f(1,u,r),f(-1,u,r)],[f(-1,c,r),f(-1,u,r),f(-1,u,i),f(-1,c,i)],[f(1,c,r),f(1,c,i),f(1,u,i),f(1,u,r)]])k(t,e,s,d)},g=e=>e<1e-6||e>Math.PI-1e-6?[e]:[e,_r-e],_=(e,n,r,i,a)=>{for(let o=0;o<72;o++){let[s,c]=[o*_r/72,(o+1)*_r/72],[u,d]=[l+n,l+i];k(t,[p(s,0,u,e),p(c,0,u,e),p(c,0,d,r),p(s,0,d,r)],a,p((s+c)/2,0,l-1,(e+r)/2))}};for(let[e,t]of[[0,a+14],[1,c-24]]){_(t,.12,t+3,.12,xr),_(t-.6,0,t,.45,yr),_(t+3,.45,t+3.6,0,yr);for(let n=0;n<14;n++){let r=(n+.5+.4*$(n,e))*Math.PI/14,i=.5+.9*$(n,e+7);for(let a of g(r))h(a,i,t+.4,t+1.2+1.4*$(n,e+3),.1,.35,br)}}[[a+1,a+13],[a+18,r+44],[c-36,c-25],[c-20,c-1]].forEach(([e,n],r)=>{for(let r=0;r<18;r++){let i=4*r*_r/72;if(m(i,.1,e,n)){let r=(e,t)=>p(i,.09*e,l+.03,t);k(t,[r(-1,e),r(1,e),r(1,n),r(-1,n)],xr,p(i,0,l,e))}}let i=Math.round(.5*(n-e));for(let t=0;t<i;t++){let a=(t+.15+.7*$(t,10+r))*Math.PI/i,o=Math.min(n-e-2,3+8*$(t,20+r)),s=e+1+(n-e-2-o)*$(t,30+r),c=2+4*$(t,40+r);if(m(a,c,s,s+o))for(let e of g(a))h(e,c,s,s+o,0,.35,yr),$(t,45+r)<.5&&o>3&&h(e,.6*c,s+.25*o,s+.75*o,.35,.7,vr)}for(let t=0;t<i;t++){let a=(t+$(t,50+r))*Math.PI/i,o=.8+2.4*$(t,60+r),s=e+.5+(n-e-1-o)*$(t,70+r),c=.6+1.8*$(t,80+r);if(m(a,c,s,s+o))for(let e of g(a))h(e,c,s,s+o,0,.6+1.2*$(t,90+r),br)}for(let i=0;e+3+10*i<n-1;i++){let n=e+3+10*i;for(let e=0;e<9;e++){let a=4+Math.floor(5*$(e,100+r+9*i)),o=1.2/l,s=(a-1)*o,c=(e+.1+.5*$(e,110+r+9*i))*Math.PI/9;if(c+s>Math.PI||!m(c+s/2,s*l/2+1,n,n+.45))continue;let u=t.length;for(let e=0;e<a;e++)for(let r of g(c+e*o)){let e=(e,t)=>p(r,.35*e,l+.06,t);k(t,[e(-1,n),e(1,n),e(1,n+.45),e(-1,n+.45)],Sr,p(r,0,l,n))}me(t,u,1)}}})})(e,u),u})(e.station),(e=>{let{hall:[t],deck:n,hull:[r,,i]}=e,a=[],[s,c]=[t[0]+4,t[0]+44],[l,d]=[i-o.R,i+o.R];for(let[e,t,r,i]of[[s+.5,2.4,.25,1],[s+.5,3.1,.16,1],[s+.7,8.5,.4,1],[c-.5,4.6,.25,-1],[c-.7,8.5,.4,-1]]){Q(a,[e,n+t,l+5],[e,n+t,d-5],r,Ir);for(let o=l+8;o<d-5;o+=8)Z(a,[Math.min(e,e-.5*i),n+t-r-.1,o-.15],[Math.max(e,e-.5*i)+.01,n+t+r+.1,o+.15],Er),o/8%3<1&&Q(a,[e,n+t,o+1.5],[e,n+t,o+1.8],r+.12,Lr,-1)}for(let e of[s+.6,c-.6])for(let t of[l+6,d-6])Q(a,[e,n,t],[e,n+14,t],.3,Ir);for(let e of[r-10,r+10])Q(a,[e,n+13.2,l+5],[e,n+13.2,d-5],.6,Ir);for(let e=l+10;e<d-5;e+=12)Z(a,[r-4,n+13.7,e-.6],[r+4,n+13.9,e+.6],Vr,-2);for(let e of[-1,1]){let[t,o]=[r+6,i+10*e];for(let e=0;e<32;e++){let[r,i]=[e*jr/32,(e+1)*jr/32],s=(e,n)=>[t+n*Math.cos(e),o+n*Math.sin(e)];Fr(a,[s(r,7),s(i,7),s(i,6.4),s(r,6.4)],n+.03,Rr,-1),e%4==0&&Z(a,[t+7.4*Math.cos(r)-.15,n,o+7.4*Math.sin(r)-.15],[t+7.4*Math.cos(r)+.15,n+.12,o+7.4*Math.sin(r)+.15],Br,-2)}let u=e<0?l:d;for(let r=o+10*e;e*(u-r)>4;r+=5*e)for(let i of[-1,1])Fr(a,[[t+.4*i,r+1.2*e],[t+3.2*i,r-.6*e],[t+3.2*i,r-1.3*e],[t+.4*i,r+.5*e]],n+.04,Br);Fr(a,[[s,u-.6*e],[c,u-.6*e],[c,u-.2*e],[s,u-.2*e]],n+.04,zr);for(let t of[s+.06,c-.06])Z(a,[t-.06,n,u-.6*e-.2],[t+.06,n+11,u-.6*e+.2],zr,-2);Z(a,[s,n+10.94,u-.6*e-.2],[c,n+11,u-.6*e+.2],zr,-2)}return((e,t)=>{let{X0:n,X1:r,Z:i,H:a,STAIR0:s,STAIR1:c,STEPS:l,W:d,DAIS:f,GALLERY:p,SIDE:m,R:h}=le,{hull:[g,,_],deck:v}=t,{cy:y,px:b}=mr(t),[x,S]=[g+n,g+r],C=(e,t)=>[_+e*Math.cos(t),y+e*Math.sin(t)],w=[[i,v+a-y],[-i,v+a-y],[-i,v-y],[i,v-y]].map(([e,t])=>(Math.atan2(t,e)+ur)%ur),T=[...Array.from({length:49},(e,t)=>t*ur/dr),...w].sort((e,t)=>e-t),E=e=>{let[t,n]=[Math.cos(e),Math.sin(e)],r=Math.min(Math.abs(t)>1e-9?i/Math.abs(t):1/0,n>1e-9?(v+a-y)/n:n<-1e-9?(v-y)/n:1/0);return[_+r*t,y+r*n]};for(let t=0;t+1<T.length;t++){let[n,r]=[T[t],T[t+1]];if(r-n<1e-6)continue;let i=[C(h,n),C(h,r),E(r),E(n)],a=([e,t],n)=>[n,t,e];fr(e,a(i[0],b),a(i[1],b),a(i[2],b),a(i[3],b),$n),fr(e,a(i[3],b+.5),a(i[2],b+.5),a(i[1],b+.5),a(i[0],b+.5),$n)}let D=(e,t,n)=>{let[r,i]=C(e,t);return[g+Math.sqrt(o.R**2-(r-_)**2)+n,i,r]};for(let t=0;t<dr;t++){let[n,r]=[t*ur/dr,(t+1)*ur/dr],[i,a]=C(h,n),[o,s]=C(h,r);fr(e,[b+.5,a,i],[b+.5,s,o],D(h,r,.3),D(h,n,.3),er),fr(e,D(h,n,.3),D(h,r,.3),D(hr,r,.15),D(hr,n,.15),rr),fr(e,D(hr,n,.15),D(hr,r,.15),D(hr,r,-.3),D(hr,n,-.3),tr)}for(let t=0;t<dr;t++){let[n,r]=[t*ur/dr,(t+1)*ur/dr];pr(e,[C(h,n),C(h-.7,n),C(h-.7,r),C(h,r)],b-.8,b,er),pr(e,[C(h+1.6,n),C(h,n),C(h,r),C(h+1.6,r)],b-.3,b,tr),pr(e,[C(4.6,n),C(4.1,n),C(4.1,r),C(4.6,r)],b-.4,b,er)}for(let t=0;t<9;t++){let[n,r]=[(t+.06)*Math.PI/9,(t+.94)*Math.PI/9];pr(e,[C(h+3,n),C(h+1.7,n),C(h+1.7,r),C(h+3,r)],b-1.2,b,er),pr(e,[C(h+2.8,n),C(h+1.9,n),C(h+1.9,r),C(h+2.8,r)],b-1.25,b,sr,-2)}for(let t=0;t<8;t++){let n=t*ur/8+ur/16,[r,i]=[Math.cos(n),Math.sin(n)],a=.18,o=(e,t)=>[_+e*r-t*i,y+e*i+t*r];pr(e,[o(h-.6,a),o(4.4,a),o(4.4,-.18),o(h-.6,-.18)],b-.3,b,er)}let ee=(c-s)/l;for(let t=0;t<l;t++){let[n,r]=[g+s+ee*t,v+f*(t+1)/l];Z(e,[n-.02,r-.08,_-d+.1],[n+.06,r-.02,_+d-.1],or,-2)}for(let t of[-1,1]){let n=_+t*(d-.15),r=g+s+.3;Q(e,[r,v+1.1,n],[g+c,v+f+1.1,n],.05,nr);for(let t=r;t<g+c;t+=1.5){let r=v+f*(t-g-s+ee)/(c-s);Q(e,[t,Math.min(r,v+f),n],[t,Math.min(r,v+f)+1.1,n],.04,nr)}let o=_+t*(m+.15);for(let[n,r]of[[[g+p+.15,o],[g+c+.15,o]],[[g+c+.15,o],[g+c+.15,_+t*d]],[[g+p+.15,o],[g+p+.15,_+t*(i-.3)]]]){Q(e,[n[0],v+f+1.1,n[1]],[r[0],v+f+1.1,r[1]],.05,nr);let t=Math.max(1,Math.round(Math.hypot(r[0]-n[0],r[1]-n[1])/1.5));for(let i=0;i<=t;i++){let[a,o]=[n[0]+(r[0]-n[0])*i/t,n[1]+(r[1]-n[1])*i/t];Q(e,[a,v+f,o],[a,v+f+1.1,o],.04,nr)}}let l=_+t*i,u=e=>t<0?[l,l+e]:[l-e,l];for(let t=x+1.5;t<S-.5;t+=3){let[n,r]=u(.7);Z(e,[t-.3,v,n],[t+.3,v+a,r],tr)}let[h,y]=u(1.1);Z(e,[x,v+19,h],[S,v+19.6,y],tr);let[b,C]=u(.05);for(let t=x+4.6;t<g+c;t+=3)Z(e,[t-1.1,v+8,b],[t+1.1,v+12,C],sr,-2),Z(e,[t-1.1,v+22,b],[t+1.1,v+26,C],cr,-2);let[w,T]=u(1.1);Z(e,[g+p+.6,v+f,w],[g+c-.4,v+f+1,T],ir);for(let t=g+p+1;t<g+c-1.8;t+=2.3)Z(e,[t,v+f+1.4,b],[t+1.9,v+f+2.6,C],cr,-2);let[E,D]=u(.25);Z(e,[x,v+.05,E],[g+p,v+.15,D],or,-2);let O=_+6*t;Z(e,[g+37.4,v+f,O-.6],[g+38.6,v+f+1.2,O+.6],ir),Z(e,[g+37.3,v+f+1.2,O-.7],[g+38.7,v+f+1.3,O+.7],sr,-2);let k=_+3*t;Q(e,[g+36,v+a,k],[g+36,v+18,k],.25,er),Q(e,[g+36,v+18,k],[g+38,v+14,k],.2,er),Z(e,[g+37.6,v+13.4,k-.4],[g+38.4,v+14,k+.4],lr,-2)}((e,t)=>{let[n,r]=t.post,[i,a]=[n[1],(n[2]+r[2])/2];Z(e,[n[0]+.15,i,n[2]+.15],[r[0]-.1,i+.12,r[2]-.15],Gn),Z(e,[n[0]+.2,i+.12,n[2]+.1],[r[0]-.05,i+.95,r[2]-.1],Un);for(let t=0;t<6;t++){let a=i+.32+.08*t;Z(e,[n[0]+.17,a,n[2]+.45],[n[0]+.2,a+.03,r[2]-.45],Gn)}Z(e,[n[0]+.16,i+.15,n[2]+.3],[n[0]+.2,i+.19,r[2]-.3],Xn[0],-2),Z(e,[n[0],i+.95,n[2]],[r[0],r[1],r[2]],Wn),Z(e,[n[0]-.02,i+1.01,n[2]+.05],[n[0],i+1.04,r[2]-.05],Yn,-2);for(let t of[-1,1])for(let i=0;i<4;i++)for(let o=0;o<6;o++){let[s,c]=[n[0]+.14+.19*i,a+t*(.5+.15*o)],l=Qn(i+4*t,o),[u,d]=l<.3?[Xn[Math.floor(13*l)%4],-2]:[Kn,-1];Z(e,[s,r[1],c-.055],[s+.13,r[1]+.035,c+.055],u,d)}let o=u(t);Zn(e,o,.31,r[1],r[1]+.02,qn),Zn(e,o,.25,r[1],r[1]+.035,Gn);let s=r[0]-.6;Z(e,[s,r[1],n[2]+.05],[r[0]-.05,i+2.4,r[2]-.05],Un),Z(e,[s-.02,i+1.35,a-.65],[s,i+2.15,a+.65],Jn,-2);for(let t=1;t<4;t++){let n=i+1.35+.2*t;Z(e,[s-.03,n,a-.6],[s-.02,n+.012,a+.6],Yn,-2);let r=a-.65+.325*t;Z(e,[s-.03,i+1.4,r],[s-.02,i+2.1,r+.012],Yn,-2)}for(let[t,n]of[[-1,Xn[1]],[1,Xn[2]]]){let[r,o]=[a+.8*t,a+1.35*t];Z(e,[s-.02,i+1.5,Math.min(r,o)],[s,i+2,Math.max(r,o)],n,-2)}for(let t=0;t<8;t++){let n=a-1.2+.33*t;Z(e,[s-.04,i+2.22,n-.05],[s,i+2.3,n+.05],Xn[t%2?1:0],-2)}Z(e,[s-.1,i+2.4,n[2]],[r[0]+.05,i+2.5,r[2]],Wn);for(let t of[-1,1])Q(e,[r[0]-.05,i+.5,a+.9*t],[r[0]+.5,i+.04,a+1.2*t],.06,Gn)})(e,t);let[O,k]=[g+39.6,v+f];Z(e,[O-.3,k,_-.3],[O+.3,k+.45,_+.3],ir),Z(e,[O-.45,k+.45,_-.45],[O+.45,k+.6,_+.45],ar),Z(e,[O-.6,k+.6,_-.5],[O-.45,k+2.2,_+.5],ar);for(let t of[-1,1])Z(e,[O-.45,k+.6,_+.45*t-.07],[O+.4,k+.9,_+.45*t+.07],ar);for(let t of[-1,1])Z(e,[x,v,_+3.2*t-.12],[x+.08,v+3.4,_+3.2*t+.12],or,-2);Z(e,[x,v+3.3,_-3.3],[x+.08,v+3.45,_+3.3],or,-2),Z(e,[x,v+19,_-i],[x+1.1,v+19.6,_+i],tr);for(let t=x+1.5;t<S-.5;t+=3)Z(e,[t-.3,v+a-1.2,_-i],[t+.3,v+a,_+i],tr),t+1.5<S-1&&Z(e,[t+1.1,v+a-.15,_-4],[t+1.9,v+a-.05,_+4],lr,-2)})(a,e),a})(e.station))),yield,{land:n,sky:Pn(),heavens:un,glaze:Dt}}export{Hr as default};
@@ -4,10 +4,10 @@ import type { Beat } from './beats';
4
4
  /** Seconds between two frags for them to count as a double kill, a multi kill and on. */
5
5
  export declare const MULTI = 4;
6
6
  /** The lines of the 2nd, 3rd, 4th, 5th frag in quick succession; the last for every one after. */
7
- export declare const QUICK: (16 | 14 | 15 | 18 | 17)[];
7
+ export declare const QUICK: (14 | 15 | 16 | 17 | 18)[];
8
8
  /** Frags without going down between two lines of a run; the last line for every SPREE after. */
9
9
  export declare const SPREE = 5;
10
- export declare const RUNS: (20 | 19 | 22 | 23 | 21)[];
10
+ export declare const RUNS: (19 | 20 | 21 | 22 | 23)[];
11
11
  /** Shots of the gun in one run judged for the aim, and the share of them that must hit. */
12
12
  export declare const AIM_SHOTS = 12;
13
13
  export declare const AIM_SHARE = 0.75;
@@ -301,4 +301,4 @@ export declare const OFF = 0.012;
301
301
  export declare const WHITE: number[];
302
302
  /** The plates' edges seen side on: their thickness. */
303
303
  export declare const WALL: number[];
304
- export declare const partOf: (l: number) => 0 | 1 | 2 | -1;
304
+ export declare const partOf: (l: number) => -1 | 0 | 1 | 2;
@@ -1,4 +1,4 @@
1
1
  import type { Skin } from '../skin';
2
2
  import type { Corner, Moulded } from './types';
3
3
  import type { Region } from './regions';
4
- export declare const scratchesOn: (s: Skin, add: (cs: Corner[], offs: number[], swell: Region["swell"], col: number[], layer: number, wall: number, k: number, moulded?: Moulded[]) => void, moulds: (((c: Corner, k: number) => Moulded) | undefined)[], tag: (g: number) => void) => void;
4
+ export declare const scratchesOn: (s: Skin, add: (cs: Corner[], offs: number[], swell: Region['swell'], col: number[], layer: number, wall: number, k: number, moulded?: Moulded[]) => void, moulds: (((c: Corner, k: number) => Moulded) | undefined)[], tag: (g: number) => void) => void;
@@ -1,4 +1,5 @@
1
1
  import type { Vec3 } from './mesh';
2
+ import { anthem, music } from './sfx';
2
3
  import type { Air, Voice } from './sfx';
3
4
  /** A sound that plays on and on, started on its first set. */
4
5
  export interface Loop {
@@ -80,7 +81,7 @@ export declare const MIMIC: {
80
81
  export declare const SPRITES: (() => Promise<string>)[];
81
82
  /** The players' voices (voice/cast.ts), loaded the same way after the announcer's. */
82
83
  export declare const VOICED: (() => Promise<string>)[];
83
- export declare const createAudio: (layers?: Voice[][], sprites?: (() => Promise<string>)[], song?: () => Float32Array, voiced?: (() => Promise<string>)[], theme?: () => Float32Array, air?: Air) => Audio;
84
+ export declare const createAudio: (layers?: Voice[][], sprites?: (() => Promise<string>)[], song?: typeof music, voiced?: (() => Promise<string>)[], theme?: typeof anthem, air?: Air) => Audio;
84
85
  /** The mute choice of the last visit. Storage throws when blocked: no memory then. */
85
86
  export declare const savedMute: () => boolean;
86
87
  /** Flips mute, remembers it, and returns the new state. */
@@ -7,7 +7,7 @@ import type { Vec3 } from './mesh';
7
7
  * centre within the body's cylinder grown by the ball's radius. A hit the host counts but takes no
8
8
  * health for yet (a laser round, a vehicle's bolt) is seen this way.
9
9
  */
10
- export declare const onBody: (b: Ball, p: Pick<PlayerState, "x" | "y" | "z" | "mode">) => boolean;
10
+ export declare const onBody: (b: Ball, p: Pick<PlayerState, 'x' | 'y' | 'z' | 'mode'>) => boolean;
11
11
  /** Seconds a ball takes to come from the muzzle onto its line, and the metres of its trail. */
12
12
  export declare const CATCH = 0.12;
13
13
  export declare const TRAIL = 1.2;
@@ -3,11 +3,13 @@ import type { Quat } from '../rig';
3
3
  import type { Part } from '../xeno';
4
4
  import type { Out } from '../verts';
5
5
  /** The xenomorph's feet: each foot's joint and its toes'. */
6
- export declare const FEET: ((16 | 15)[] | (20 | 19)[])[];
6
+ export declare const FEET: ((15 | 16)[] | (19 | 20)[])[];
7
7
  /** What mesh() makes of a part: the part at the origin. */
8
8
  export declare const made: ({ make }: Part) => (o: Out) => void;
9
9
  /** Metres the camera may be from the eye of the body and still show it: the bob is centimetres, a crouch's ease under a metre. */
10
10
  export declare const AWAY = 1;
11
+ /** Metres under the swimming level over which a diver's arms go from level (the stroke kept in the water) to the view's pitch. */
12
+ export declare const SURFACED = 0.6;
11
13
  /** On a ledge the camera sits this far behind the head and below it, so that the arms reach the ledge. */
12
14
  export declare const BEHIND: number, DROP: number;
13
15
  export declare const X: Vec3, Y: Vec3, Z: Vec3;
@@ -72,7 +72,7 @@ export declare const TUCK: Vec3;
72
72
  * `prog` of his cut (-1: none): out through the wind-up to the strike, then in within a tenth of
73
73
  * the cut, held, and back to the guard over its last quarter.
74
74
  */
75
- export declare const counter: (p: Pick<PlayerState, "cut">, prog: number) => [number, number];
75
+ export declare const counter: (p: Pick<PlayerState, 'cut'>, prog: number) => [number, number];
76
76
  export declare const HUNTER_CLAW: Vec3;
77
77
  export type Claws = boolean | 'short';
78
78
  /** A finger's half thickness at its root (11.2 mm until the fingers closed round a grip, 2026-11-09). */
@@ -99,13 +99,7 @@ export declare const CREASE = 0.6;
99
99
  export declare const FLESH: number, JOINT_HEAD: number, JOINT_WIDE: number;
100
100
  /** How far the head of a knuckle stands out of the back of the hand, metres: on a straight finger, and what a bend adds for each unit of 1 - cos of half of it. */
101
101
  export declare const KNUCKLE: number[];
102
- export declare const finger: (p: Vec3, d1: Vec3, d2: Vec3, d3: Vec3, l: number, r: number, t: Vec3,
103
- /** 0 to 1: a skeleton's finger (the xenomorph's), thin bones between swollen knuckles, a fine tip. */
104
- bony?: number,
105
- /** How far each joint's curve reaches along the bones, a share of them: less, a sharper joint. */
106
- knee?: number,
107
- /** 0 to 1: a fist's finger, the flesh inside each joint pressed flat (CREASE) where a sharp bend would fold the skin through itself. */
108
- crease?: number) => Ring[];
102
+ export declare const finger: (p: Vec3, d1: Vec3, d2: Vec3, d3: Vec3, l: number, r: number, t: Vec3, bony?: number, knee?: number, crease?: number) => Ring[];
109
103
  /** A spread hand's thumb mound, from its foot on the palm to the thumb's root, in this many steps (others 2). */
110
104
  export declare const MOUND_RINGS = 4;
111
105
  /** A fist's joints, radians: the first bone off the line of the hand, the middle joint's bend and the last's. */
@@ -6,8 +6,14 @@ import type { Vec3 } from '../mesh';
6
6
  export declare const floorOf: (world: World, y: number) => Floor;
7
7
  /** On a wall run the rail gun is put away, unless its bolt is going out; a swimmer's hands are free. */
8
8
  export declare const stowed: (p: PlayerState) => boolean;
9
- /** How flat the hand lies (0 open, 1 a fist) and how far it rolls about the forearm (radians, added to the palm down), at the same keys: joined and flat, cupped through the pull, joined again under the chin. */
9
+ /** How flat the hand lies (0 open, 1 a fist) at the same keys: flat ahead, cupped through the pull, flat again under the chin. */
10
10
  export declare const CURLS: number[];
11
+ /**
12
+ * How far the hand rolls about the forearm (radians, added to the palm down; over 0 the palm turns
13
+ * outward), at twice PULL's keys (the user, 2026-11-27): the palms joined under the chin, turned
14
+ * down quickly as the hands shoot out (within a twelfth of the stroke), then a little outward at
15
+ * the end of the reach, ready to sweep wide.
16
+ */
11
17
  export declare const ROLLS: number[];
12
18
  /** A closed Catmull-Rom curve through `keys` at phase `u`: it never stops at a key. */
13
19
  export declare const loop: (keys: number[], u: number) => number;
@@ -10,11 +10,7 @@ import type { Solved } from './types';
10
10
  * allow. The elbow is a hinge, and the forearm's turn about itself goes half to the elbow and half
11
11
  * to the wrist, as a forearm's twist does. Out of reach the hand stops short.
12
12
  */
13
- export declare const wield: (q: Pose, solved: Solved, j: number, at: Vec3, g: Vec3, pole: Vec3, held?: Vec3, [reach, palm]?: number[], [S, C]?: number[],
14
- /** The forearm on `held`'s line, not the hand's: the wrist cocked by the hand's own tilt. */
15
- bent?: boolean,
16
- /** The shoulder follows a hand out of reach. */
17
- far?: boolean) => void;
13
+ export declare const wield: (q: Pose, solved: Solved, j: number, at: Vec3, g: Vec3, pole: Vec3, held?: Vec3, [reach, palm]?: number[], [S, C]?: number[], bent?: boolean, far?: boolean) => void;
18
14
  /** `v` turned by the rotation vector `w` (its length the angle, radians). */
19
15
  export declare const rotate: (v: Vec3, w: Vec3) => Vec3;
20
16
  /**
@@ -27,17 +27,17 @@ export declare const CHASE: {
27
27
  };
28
28
  /** A ship's: further back and higher (it is 14 m long), its pitch the whole of the nose's. */
29
29
  export declare const SHIP_CHASE: {
30
- UP: number;
31
- BACK: number;
32
- RISE: number;
33
- LO: number;
34
- HI: 1.25;
35
30
  W: 16;
36
31
  OUT: 5;
37
32
  PAD: 0.3;
38
33
  BLEND: 0.3;
39
34
  FOV: 10;
40
35
  FOV_W: 4;
36
+ UP: number;
37
+ BACK: number;
38
+ RISE: number;
39
+ LO: number;
40
+ HI: 1.25;
41
41
  };
42
42
  /** What a frame is drawn from. */
43
43
  export interface Shot {
@@ -57,5 +57,5 @@ export interface Chase {
57
57
  frame(r: Rover | undefined, seated: boolean, eye: Vec3, tilt: number, yaw: number, pitch: number, dt: number): Shot;
58
58
  }
59
59
  /** The look's pitch as the chase camera takes it, behind a rover or a ship (`r`). */
60
- export declare const chasePitch: (pitch: number, r?: Pick<Rover, "ship">) => number;
60
+ export declare const chasePitch: (pitch: number, r?: Pick<Rover, 'ship'>) => number;
61
61
  export declare const createChase: (world: World) => Chase;
@@ -1,5 +1,5 @@
1
1
  /** The sound of each cue of a swap (CUES): the gun's, then the rail gun's. */
2
- export declare const RELOADS: ((32 | 31)[] | (34 | 33)[])[];
2
+ export declare const RELOADS: ((31 | 32)[] | (33 | 34)[])[];
3
3
  /** Seconds between two buzzes of a saber lock, and two crackles of a rail gun's bolt. */
4
4
  export declare const BUZZ = 0.16;
5
5
  export declare const CRACKLE = 0.09;
@@ -6,9 +6,9 @@ import type { Effects } from '../effects';
6
6
  import type { Hud } from '../hud';
7
7
  import type { Vec3 } from '../mesh';
8
8
  import type { Combat } from './types';
9
- export declare const createCombat: (world: World, audio: Pick<Audio, "play"> & Partial<Pick<Audio, "loop">>, hud: Pick<Hud, "vitals" | "hit" | "down">, fx: Pick<Effects, "fire" | "cut" | "wound" | "lie" | "quake" | "blow" | "punch">, tracer: Pick<Tracer, "flash" | "burst" | "impact" | "blast" | "orbs" | "update" | "mount" | "crackle" | "laser" | "charging" | "lightning" | "tesla">, ctl: {
9
+ export declare const createCombat: (world: World, audio: Pick<Audio, 'play'> & Partial<Pick<Audio, 'loop'>>, hud: Pick<Hud, 'vitals' | 'hit' | 'down'>, fx: Pick<Effects, 'fire' | 'cut' | 'wound' | 'lie' | 'quake' | 'blow' | 'punch'>, tracer: Pick<Tracer, 'flash' | 'burst' | 'impact' | 'blast' | 'orbs' | 'update' | 'mount' | 'crackle' | 'laser' | 'charging' | 'lightning' | 'tesla'>, ctl: {
10
10
  pitch: number;
11
- }, balls: Pick<Balls, "fire" | "frame">,
11
+ }, balls: Pick<Balls, 'fire' | 'frame'>,
12
12
  /** The muzzle of a runner's long gun as last drawn, from his feet (Renderer.muzzle()). */
13
13
  drawn?: (id: number) => Vec3 | undefined,
14
14
  /** The pitch of a player's voice (voiceOf()). */
@@ -29,7 +29,7 @@ export declare const struck: (a?: Blade, b?: Blade, xeno?: boolean) => boolean;
29
29
  /** The pitch of a player's voice: the woman's higher, and each a little off the next by his id. */
30
30
  export declare const voiceOf: (id: number, body?: number) => number;
31
31
  /** Health and armour together: what a hit takes. */
32
- export declare const life: (p: Pick<PlayerState, "hp" | "armor">) => number;
32
+ export declare const life: (p: Pick<PlayerState, 'hp' | 'armor'>) => number;
33
33
  /**
34
34
  * A death worth a cry of pain rather than a groan (the user, 2026-11-17): a katana's cut that took
35
35
  * a limb, a fall hard enough to hurt (the speed a frame before the landing), or a hit of 3 or more
@@ -65,4 +65,4 @@ export declare const strain: (p: PlayerState) => number;
65
65
  * Whether `p` just put a foe down: his hit counter went on from `was` in the frame one of the
66
66
  * `others` went down (the snapshot says no more).
67
67
  */
68
- export declare const felled: (was: Pick<PlayerState, "hits">, p: PlayerState, before: (id: number) => Pick<PlayerState, "down"> | undefined, others: PlayerState[]) => boolean;
68
+ export declare const felled: (was: Pick<PlayerState, 'hits'>, p: PlayerState, before: (id: number) => Pick<PlayerState, 'down'> | undefined, others: PlayerState[]) => boolean;
@@ -38,9 +38,9 @@ export declare const bare: (p: PlayerState) => boolean;
38
38
  * The blow (BLOW) of a bare-handed swing. The xenomorph's (`xeno`) cut reads TAILS: its claws, else
39
39
  * its tail's TAIL_BLOW.
40
40
  */
41
- export declare const blowOf: (p: Pick<PlayerState, "cut">, xeno?: boolean) => number;
41
+ export declare const blowOf: (p: Pick<PlayerState, 'cut'>, xeno?: boolean) => number;
42
42
  /** The numbers of the swing a bare-handed player is in: the blow's, or the xenomorph's (TAILS, a heavy one's own). */
43
- export declare const blowing: (p: Pick<PlayerState, "cut" | "heavy">, xeno?: boolean) => {
43
+ export declare const blowing: (p: Pick<PlayerState, 'cut' | 'heavy'>, xeno?: boolean) => {
44
44
  ticks: number;
45
45
  strike: number;
46
46
  reach: number;
@@ -109,7 +109,7 @@ export declare const strokeShare: (v: number) => number;
109
109
  */
110
110
  export declare const stroke: (row: number[], u: number, m: number) => number[];
111
111
  /** What a move poses: the pelvis, the spine, the arms and the legs, and nothing of the head. */
112
- export declare const FK: (0 | 1 | 2 | 6 | 16 | 7 | 10 | 11 | 13 | 14 | 15 | 20 | 18 | 19 | 17)[];
112
+ export declare const FK: (0 | 1 | 2 | 6 | 7 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20)[];
113
113
  export declare const fk: (c: number[]) => Quat[];
114
114
  export declare const IDENT: Quat;
115
115
  /**
@@ -40,7 +40,7 @@ export interface Lit {
40
40
  carry?: [Vec3, Vec3[]];
41
41
  }
42
42
  /** The levels of the rail gun's three cells for `p` (0 to 1): the capsule in use, then what it carries beside, a capsule's worth to each. */
43
- export declare const cellsOf: (p: Pick<PlayerState, "rail" | "cap">) => number[];
43
+ export declare const cellsOf: (p: Pick<PlayerState, 'rail' | 'cap'>) => number[];
44
44
  /**
45
45
  * Appends the gun (the rail gun or the laser rifle by `kind`, the rail gun's spark at the time `t`) held in the hand at `pos`
46
46
  * with the world rotation `q`, `k` times its size about the grip, with the ammo on its back when
@@ -2,7 +2,7 @@ import type { PlayerState } from '../../shared/types';
2
2
  /** The Hunter's pistol: its own model (pistol.ts), on the gun's marks. */
3
3
  export declare const hunterGun: (lod: number) => number[];
4
4
  /** The weapon a gun model is, from a player or a flag: 0 the gun, 2 the rail gun (or true), 3 the laser rifle. */
5
- export declare const kindOf: (p: Pick<PlayerState, "railed" | "rifled"> | boolean | number) => number;
5
+ export declare const kindOf: (p: Pick<PlayerState, 'railed' | 'rifled'> | boolean | number) => number;
6
6
  export declare const LONG_TILT: number[];
7
7
  export declare const LONG_HOLD: number[];
8
8
  export declare const LONG_CURL = 0.72;
@@ -6,7 +6,7 @@ export declare const ease: (t: number) => number;
6
6
  /** `t` from `a` to `b` as 0 to 1. */
7
7
  export declare const span: (t: number, a: number, b: number) => number;
8
8
  /** How far through the swap of the gun in hand `p` is, 0 to 1; -1 when it is not swapping. */
9
- export declare const swapOf: (p: Pick<PlayerState, "reload" | "railed" | "rifled">) => number;
9
+ export declare const swapOf: (p: Pick<PlayerState, 'reload' | 'railed' | 'rifled'>) => number;
10
10
  /**
11
11
  * The glow of a weapon `t` seconds after it came to hand: dark as it rises, then flickering up to
12
12
  * full at `end` (0.6 s; the gun's 1.4 s).
@@ -31,13 +31,13 @@ export declare const pressAt: (kind: number) => number;
31
31
  * The selected weapon slot, or -1 when bare-handed or down: 0 the gun, which is also the Hunter's
32
32
  * pistol (`sided`) beside his harpoon.
33
33
  */
34
- export declare const handOf: (p: Pick<PlayerState, "down" | "fists" | "wield" | "rifled" | "railed" | "ammo" | "sided">) => number;
34
+ export declare const handOf: (p: Pick<PlayerState, 'down' | 'fists' | 'wield' | 'rifled' | 'railed' | 'ammo' | 'sided'>) => number;
35
35
  /**
36
36
  * A tracker of the weapons each player has had in hand since taking them: true when the weapon in
37
37
  * `p`'s hand comes to it for the first time, the only time it is switched on (the user,
38
38
  * 2026-11-09). A weapon the player no longer carries (lost going down) is forgotten.
39
39
  */
40
- export declare const firsts: () => (p: Pick<PlayerState, "id" | "ammo" | "fists" | "blade" | "rail" | "rifle" | "down" | "wield" | "rifled" | "railed">) => boolean;
40
+ export declare const firsts: () => (p: Pick<PlayerState, 'id' | 'ammo' | 'fists' | 'blade' | 'rail' | 'rifle' | 'down' | 'wield' | 'rifled' | 'railed'>) => boolean;
41
41
  /**
42
42
  * The rail gun's capsule `t` after the gun came to hand, the left hand on it at `at`: turned a
43
43
  * quarter of a turn to tune it on (the user, 2026-11-09), radians, as the screw turns it.
@@ -5,9 +5,9 @@ import type { PlayerState, Rover } from '../../shared/types';
5
5
  * is there and has no pilot (a carrier does not fly), '' with no free seat in reach, seated or
6
6
  * down. The nearest vehicle with a seat for him counts, as the room judges it (nearby(), free()).
7
7
  */
8
- export declare const boarding: (me: Pick<PlayerState, "x" | "y" | "z" | "mode" | "down"> | undefined, rovers: readonly Rover[], carrying?: boolean) => "" | "drive" | "ride" | "fly";
8
+ export declare const boarding: (me: Pick<PlayerState, 'x' | 'y' | 'z' | 'mode' | 'down'> | undefined, rovers: readonly Rover[], carrying?: boolean) => '' | 'drive' | 'ride' | 'fly';
9
9
  /** The speed-o-meter's reading of a rover: whole km/h over the ground. */
10
- export declare const kmh: (r: Pick<Rover, "vx" | "vz">) => number;
10
+ export declare const kmh: (r: Pick<Rover, 'vx' | 'vz'>) => number;
11
11
  /** The warning of the nearest limit once one is within its last half of WARN, or ''. */
12
12
  export declare const warning: (up: number, out: number) => string;
13
13
  /** The ship's height on its panel: metres under the edge of space, kilometres in orbit. */
@@ -79,7 +79,7 @@ export declare const SNAPPED: number[][];
79
79
  export declare const ragged: (l: V[], d: V, c: V) => void;
80
80
  /** A section's outer skin: one loft, holed where the map is; its torn ends, the edges of its holes in the skin's thickness. */
81
81
  /** `only`: the canopy's glass alone instead of the skin. */
82
- export declare const skin: (n: number, only?: "glass") => void;
82
+ export declare const skin: (n: number, only?: 'glass') => void;
83
83
  /** The tail's stern, its bell, the stubs of its two engines' pylons, the fins on its shoulders and the number on its flanks. */
84
84
  export declare const tail: () => void;
85
85
  /** The nose's blunt tip and its probe. */
@@ -8,13 +8,13 @@ export declare const unfold: (k: number, out: boolean, dt: number) => number;
8
8
  * The Hunter as his arms are posed: with the shoulder cannon in use his hands hold nothing, so he
9
9
  * is drawn as with no weapon in hand (not the rail gun's hold, nor the harpoon's).
10
10
  */
11
- export declare const handsFree: <P extends Pick<PlayerState, "railed" | "ammo" | "zapping">>(p: P) => P;
11
+ export declare const handsFree: <P extends Pick<PlayerState, 'railed' | 'ammo' | 'zapping'>>(p: P) => P;
12
12
  /** How far along its swing a cannon folded out by `k` is: a smooth start and stop. */
13
13
  export declare const folded: (k: number) => number;
14
14
  /** Where each bone of HUNTER_REST ends: its first child (the spine, the neck), or a stub past a leaf. */
15
15
  export declare const boneEnd: (j: number) => Vec3;
16
16
  export declare const toBone: (p: Vec3, j: number) => number;
17
- export declare const LEGS: ((16 | 13 | 14 | 15)[] | (20 | 18 | 19 | 17)[])[];
17
+ export declare const LEGS: ((13 | 14 | 15 | 16)[] | (17 | 18 | 19 | 20)[])[];
18
18
  export declare const HEAD_PARTS: RegExp;
19
19
  export declare const TRUNK_PARTS: Set<string>;
20
20
  export declare const ALL: number[];
@@ -41,11 +41,7 @@ export declare const quatOf: ([r, u, f]: Vec3[]) => Quat;
41
41
  * `pieces`, its shell, slide and stock are kept on the GPU (store.ts) and only placed, so their
42
42
  * brushed metal lies on their rest place; the bolt, shortened as it folds, stays in `out`.
43
43
  */
44
- export declare const drawHarpoon: (out: Out, lod: 0 | 1 | 2, at: Vec3, axes: Vec3[], scale: number, open: number, loaded?: boolean,
45
- /** 0 as the reload starts to 1: the next bolt slides forward from behind the stock into its seat. */
46
- feed?: number, pieces?: Pieces,
47
- /** How far (m, unscaled) the bolt just fired has flown out of the muzzle; drawn under HARPOON_GONE. */
48
- fired?: number) => void;
44
+ export declare const drawHarpoon: (out: Out, lod: 0 | 1 | 2, at: Vec3, axes: Vec3[], scale: number, open: number, loaded?: boolean, feed?: number, pieces?: Pieces, fired?: number) => void;
49
45
  /**
50
46
  * Seconds the harpoon takes to unfold as it comes to hand (drawHarpoon()'s `open`, eased): slow
51
47
  * enough to be seen (the user, 2026-11-24), SOUND.HARPOON_OPEN timed on it.
@@ -101,7 +101,7 @@ export declare const SWAY = 0.2;
101
101
  * in ticks, and the snapshots of the others come every second tick: the answer runs on with the
102
102
  * time, never more than two ticks ahead of the count, never behind it. `was` is the last answer.
103
103
  */
104
- export declare const progress: (was: number, p: Pick<PlayerState, "swing" | "cut" | "heavy" | "charge">, dt: number) => number;
104
+ export declare const progress: (was: number, p: Pick<PlayerState, 'swing' | 'cut' | 'heavy' | 'charge'>, dt: number) => number;
105
105
  /** How much wider a heavy release swings than its cut: the hands round the guard, and the trunk. */
106
106
  export declare const AMPLE: number, AMPLE_TRUNK: number;
107
107
  /**
@@ -109,8 +109,8 @@ export declare const AMPLE: number, AMPLE_TRUNK: number;
109
109
  * release goes AMPLE times as far from the guard, across and up; held at the top, charging, the hands tremble
110
110
  * with the clock `t` (s).
111
111
  */
112
- export declare const poised: (p: Pick<PlayerState, "cut" | "heavy" | "charge">, prog: number, t: number) => number[];
112
+ export declare const poised: (p: Pick<PlayerState, 'cut' | 'heavy' | 'charge'>, prog: number, t: number) => number[];
113
113
  /** The trunk's twist, bend and lean (see trunk()) for the cut `p` swings at `prog`: AMPLE_TRUNK times a heavy release's, from its strike on. */
114
- export declare const bent: (p: Pick<PlayerState, "cut" | "heavy">, prog: number) => number[];
114
+ export declare const bent: (p: Pick<PlayerState, 'cut' | 'heavy'>, prog: number) => number[];
115
115
  /** Whether the blade is cutting at `p` of its swing: the wind-up, over by 0.22 to 0.27, and the recovery leave no trail. */
116
116
  export declare const cutting: (p: number) => boolean;
@@ -51,13 +51,13 @@ export declare const fall: (c: Piece, dt: number, floor: Ground) => void;
51
51
  */
52
52
  export declare const track: (r: {
53
53
  p: PlayerState;
54
- gait: Pick<Gait, "pose">;
54
+ gait: Pick<Gait, 'pose'>;
55
55
  cut?: Piece;
56
56
  build?: number;
57
57
  look?: Choice;
58
58
  /** The skeleton as last drawn, which the limb leaves from: the gait's pose without it. */
59
59
  s?: ReturnType<typeof solve>;
60
- }, dt: number, floor: Ground, fresh: boolean, tracer?: Pick<Tracer, "shock" | "spit">) => void;
60
+ }, dt: number, floor: Ground, fresh: boolean, tracer?: Pick<Tracer, 'shock' | 'spit'>) => void;
61
61
  /**
62
62
  * The skeleton the piece is skinned with, where it lies now: the pose of the cut carried by the
63
63
  * piece's own turn and place, sunk by `sink`. Skinned with it, the limb lands where piece() moves
@@ -10,4 +10,4 @@ export interface Brief {
10
10
  /** The brief of the own player of `team`: `flying` a ship, `inside` the station. */
11
11
  export declare const brief: (st: StationState | undefined, team: number, flying: boolean, inside: boolean) => Brief | undefined;
12
12
  /** Where a brief's marker points: the middle of the hangar, or the top of the console. */
13
- export declare const goal: ({ post: [lo, hi], hall: [a, b] }: StationDef, to: Brief["to"]) => Vec3;
13
+ export declare const goal: ({ post: [lo, hi], hall: [a, b] }: StationDef, to: Brief['to']) => Vec3;
@@ -34,7 +34,7 @@ export declare const RACK_RGB: number[];
34
34
  * Each team's gun rack, katana rack, rail gun rack and laser rifle rack, where it has them, as the
35
35
  * own class sees them (`set`): none at all for a class that takes nothing from them.
36
36
  */
37
- export declare const racks: (out: Out, guns?: readonly (Vec3 | undefined)[], blades?: readonly (Vec3 | undefined)[], t?: number, rails?: readonly (Vec3 | undefined)[], rifles?: readonly (Vec3 | undefined)[], pieces?: Pieces, set?: RackSet) => false | void;
37
+ export declare const racks: (out: Out, guns?: readonly (Vec3 | undefined)[], blades?: readonly (Vec3 | undefined)[], t?: number, rails?: readonly (Vec3 | undefined)[], rifles?: readonly (Vec3 | undefined)[], pieces?: Pieces, set?: RackSet) => void | false;
38
38
  /** A health pack at `at`: a white box with a glowing green cross on each side. */
39
39
  export declare const kit: (out: Out, at: Vec3, t: number) => void;
40
40
  /** An ammo pack at `at`: a violet box with a glowing cyan cartridge on each side, the gun's colours. */
@@ -3,7 +3,7 @@ import type { Vec3 } from '../mesh';
3
3
  import type { Look } from '../rover/draw';
4
4
  import type { Instances } from '../instances/types';
5
5
  /** The tints of a world's textures (tints()): the shader's palette, MAX_TINTS at most. */
6
- export declare const palette: ({ def }: Pick<World, "def">) => Vec3[];
6
+ export declare const palette: ({ def }: Pick<World, 'def'>) => Vec3[];
7
7
  /** The corners of a face's two triangles, as [along p, along q] picks of its min or max. */
8
8
  export declare const CORNERS: number[][];
9
9
  /**
@@ -73,8 +73,8 @@ export declare const mirrors: (brushes?: readonly Brush[]) => boolean;
73
73
  * vision: its loop and palettes were 4.6 ms a frame on Highline with none ever drawn, 1.4 on
74
74
  * Tranquility and none on Landfall, through the registers they take from every pixel.
75
75
  */
76
- export declare const fragOf: (def: Pick<WorldDef, "scenery" | "seam" | "relief" | "helmets"> & Partial<Pick<WorldDef, "brushes">>, kind?: string, rock?: string, sight?: boolean, glaze?: string, forest?: string, fade?: string) => string;
76
+ export declare const fragOf: (def: Pick<WorldDef, 'scenery' | 'seam' | 'relief' | 'helmets'> & Partial<Pick<WorldDef, 'brushes'>>, kind?: string, rock?: string, sight?: boolean, glaze?: string, forest?: string, fade?: string) => string;
77
77
  /** A map whose ground takes footprints (createPrints): Landfall's sand, the moon's regolith. */
78
- export declare const printed: (def: Pick<WorldDef, "scenery" | "relief">) => boolean;
78
+ export declare const printed: (def: Pick<WorldDef, 'scenery' | 'relief'>) => boolean;
79
79
  /** A map with the moon's sky: its globe, stars and craters. Not the beach, whose sand is a relief too. */
80
- export declare const moonly: (def: Pick<WorldDef, "scenery" | "seam" | "relief">) => boolean;
80
+ export declare const moonly: (def: Pick<WorldDef, 'scenery' | 'seam' | 'relief'>) => boolean;
@@ -13,13 +13,13 @@ export declare const PORTRAIT: {
13
13
  };
14
14
  /** A haircut's picture: the head alone, seen three quarters from behind so a tail or a bun shows. */
15
15
  export declare const HEAD: {
16
+ y: number;
17
+ sun: number;
16
18
  eye: number;
17
19
  away: number;
18
20
  turn: number;
19
21
  fov: number;
20
22
  side: number;
21
- y: number;
22
- sun: number;
23
23
  };
24
24
  /** A picture's framing, and whether he grins in it. */
25
25
  export type Shot = typeof PORTRAIT & {
@@ -0,0 +1,5 @@
1
+ import type { WorldDef } from '../../shared/world';
2
+ /** How many of each on one half of the map: groups of pebbles, shells, clumps of kelp. */
3
+ export declare const PEBBLE_GROUPS: number, SHELLS: number, CLUMPS: number;
4
+ /** Pebbles, shells and laminaria on the bed, in the renderer's format (the land's). */
5
+ export declare const seabed: (def: WorldDef) => number[];