async TCP reader for MCU's BridgeTCPServer
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
var xo=Object.defineProperty;var Vr=a=>{throw TypeError(a)};var ko=(a,t,i)=>t in a?xo(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i;var Xa=(a,t,i)=>ko(a,typeof t!="symbol"?t+"":t,i),vr=(a,t,i)=>t.has(a)||Vr("Cannot "+i);var k=(a,t,i)=>(vr(a,t,"read from private field"),i?i.call(a):t.get(a)),Oe=(a,t,i)=>t.has(a)?Vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,i),Re=(a,t,i,n)=>(vr(a,t,"write to private field"),n?n.call(a,i):t.set(a,i),i),xt=(a,t,i)=>(vr(a,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&n(v)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();const zo=!1;var hn=Array.isArray,Co=Array.prototype.indexOf,vs=Array.prototype.includes,lr=Array.from,mn=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyDescriptors,So=Object.prototype,Po=Array.prototype,gn=Object.getPrototypeOf,Qr=Object.isExtensible;function To(a){return typeof a=="function"}const Ua=()=>{};function Oo(a){for(var t=0;t<a.length;t++)a[t]()}function yn(){var a,t,i=new Promise((n,l)=>{a=n,t=l});return{promise:i,resolve:a,reject:t}}function Eo(a,t){if(Array.isArray(a))return a;if(!(Symbol.iterator in a))return Array.from(a);const i=[];for(const n of a)if(i.push(n),i.length===t)break;return i}const ha=2,fs=4,cr=8,_n=1<<24,ti=16,ai=32,Fi=64,mr=128,Ka=512,Xt=1024,da=2048,li=4096,ba=8192,La=16384,Ai=32768,gr=1<<25,Ki=65536,yr=1<<17,Fo=1<<18,gs=1<<19,Ao=1<<20,oi=1<<25,Vi=65536,_r=1<<21,As=1<<22,Ei=1<<23,Os=Symbol("$state"),Bo=Symbol("legacy props"),Do=Symbol(""),fi=new class extends Error{constructor(){super(...arguments);Xa(this,"name","StaleReactionError");Xa(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jo(a,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function No(a){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Io(a){throw new Error("https://svelte.dev/e/effect_orphan")}function Go(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(a){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ko=1,Vo=2,wn=4,Qo=8,Zo=16,Xo=1,Jo=4,$o=8,el=16,tl=4,bn=1,al=2,na=Symbol(),xn="http://www.w3.org/1999/xhtml";function il(){console.warn("https://svelte.dev/e/derived_inert")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kn(a){return a===this.v}function zn(a,t){return a!=a?t==t:a!==t||a!==null&&typeof a=="object"||typeof a=="function"}function Cn(a){return!zn(a,this.v)}let rl=!1,ja=null;function us(a){ja=a}function $t(a,t=!1,i){ja={p:ja,i:!1,c:null,e:null,s:a,x:null,r:Ye,l:null}}function ea(a){var t=ja,i=t.e;if(i!==null){t.e=null;for(var n of i)Kn(n)}return t.i=!0,ja=t.p,{}}function Mn(){return!0}let Li=[];function Sn(){var a=Li;Li=[],Oo(a)}function _i(a){if(Li.length===0&&!Es){var t=Li;queueMicrotask(()=>{t===Li&&Sn()})}Li.push(a)}function nl(){for(;Li.length>0;)Sn()}function Pn(a){var t=Ye;if(t===null)return We.f|=Ei,a;if((t.f&Ai)===0&&(t.f&fs)===0)throw a;Oi(a,t)}function Oi(a,t){for(;t!==null;){if((t.f&mr)!==0){if((t.f&Ai)===0)throw a;try{t.b.error(a);return}catch(i){a=i}}t=t.parent}throw a}const ol=-7169;function Gt(a,t){a.f=a.f&ol|t}function Lr(a){(a.f&Ka)!==0||a.deps===null?Gt(a,Xt):Gt(a,li)}function Tn(a){if(a!==null)for(const t of a)(t.f&ha)===0||(t.f&Vi)===0||(t.f^=Vi,Tn(t.deps))}function On(a,t,i){(a.f&da)!==0?t.add(a):(a.f&li)!==0&&i.add(a),Tn(a.deps),Gt(a,Xt)}function En(a,t,i){if(a==null)return t(void 0),Ua;const n=ws(()=>a.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}const es=[];function ll(a,t=Ua){let i=null;const n=new Set;function l(f){if(zn(a,f)&&(a=f,i)){const d=!es.length;for(const u of n)u[1](),es.push(u,a);if(d){for(let u=0;u<es.length;u+=2)es[u][0](es[u+1]);es.length=0}}}function c(f){l(f(a))}function v(f,d=Ua){const u=[f,d];return n.add(u),n.size===1&&(i=t(l,c)||Ua),f(aLine truncated
|
||||||
|
\r\f \v\uFEFF`];function dc(a,t,i){var n=a==null?"":""+a;if(t&&(n=n?n+" "+t:t),i){for(var l of Object.keys(i))if(i[l])n=n?n+" "+l:l;else if(n.length)for(var c=l.length,v=0;(v=n.indexOf(l,v))>=0;){var f=v+c;(v===0||rn.includes(n[v-1]))&&(f===n.length||rn.includes(n[f]))?n=(v===0?"":n.substring(0,v))+n.substring(f+1):v=f}}return n===""?null:n}function vc(a,t){return a==null?null:String(a)}function Ie(a,t,i,n,l,c){var v=a.__className;if(v!==i||v===void 0){var f=dc(i,n,c);f==null?a.removeAttribute("class"):t?a.className=f:a.setAttribute("class",f),a.__className=i}else if(c&&l!==c)for(var d in c){var u=!!c[d];(l==null||u!==!!l[d])&&a.classList.toggle(d,u)}return c}function Je(a,t,i,n){var l=a.__style;if(l!==t){var c=vc(t);c==null?a.removeAttribute("style"):a.style.cssText=c,a.__style=t}return n}const fc=Symbol("is custom element"),uc=Symbol("is html");function s(a,t,i,n){var l=pc(a);l[t]!==(l[t]=i)&&(t==="loading"&&(a[Do]=i),i==null?a.removeAttribute(t):typeof i!="string"&&hc(a).includes(t)?a[t]=i:a.setAttribute(t,i))}function pc(a){return a.__attributes??(a.__attributes={[fc]:a.nodeName.includes("-"),[uc]:a.namespaceURI===xn})}var nn=new Map;function hc(a){var t=a.getAttribute("is")||a.nodeName,i=nn.get(t);if(i)return i;nn.set(t,i=[]);for(var n,l=a,c=Element.prototype;c!==l;){n=Mo(l);for(var v in n)n[v].set&&i.push(v);l=gn(l)}return i}function Ys(a,t,i=t){var n=new WeakSet;Bl(a,"input",async l=>{var c=l?a.defaultValue:a.value;if(c=ur(a)?pr(c):c,i(c),Be!==null&&n.add(Be),await Wl(),c!==(c=t())){var v=a.selectionStart,f=a.selectionEnd,d=a.value.length;if(a.value=c??"",f!==null){var u=a.value.length;v===f&&f===d&&u>d?(a.selectionStart=u,a.selectionEnd=u):(a.selectionStart=v,a.selectionEnd=Math.min(f,u))}}}),ws(t)==null&&a.value&&(i(ur(a)?pr(a.value):a.value),Be!==null&&n.add(Be)),Hr(()=>{var l=t();if(a===document.activeElement){var c=Be;if(n.has(c))return}ur(a)&&l===pr(a.value)||a.type==="date"&&!l&&!a.value||l!==a.value&&(a.value=l??"")})}function ur(a){var t=a.type;return t==="number"||t==="range"}function pr(a){return a===""?null:+a}function on(a,t){return a===t||a?.[Os]===t}function vo(a={},t,i,n){var l=ja.r,c=Ye;return Vn(()=>{var v,f;return Hr(()=>{v=f,f=[],ws(()=>{a!==i(...f)&&(t(a,...f),v&&on(i(...v),a)&&t(null,...v))})}),()=>{let d=c;for(;d!==l&&d.parent!==null&&d.parent.f&gr;)d=d.parent;const u=()=>{f&&on(i(...f),a)&&t(null,...f)},p=d.teardown;d.teardown=()=>{u(),p?.()}}}),a}function Jt(a,t,i,n){var l=(i&$o)!==0,c=(i&el)!==0,v=n,f=!0,d=()=>(f&&(f=!1,v=c?ws(n):n),v);let u;if(l){var p=Os in a||Bo in a;u=rs(a,t)?.set??(p&&t in a?H=>a[t]=H:void 0)}var g,b=!1;l?[g,b]=fl(()=>a[t]):g=a[t],g===void 0&&n!==void 0&&(g=d(),u&&(Ho(),u(g)));var y;if(y=()=>{var H=a[t];return H===void 0?d():(f=!0,H)},(i&Jo)===0)return y;if(u){var C=a.$$legacy;return(function(H,w){return arguments.length>0?((!w||C||b)&&u(w?y():H),H):y()})}var E=!1,z=((i&Xo)!==0?dr:jn)(()=>(E=!1,y()));l&&e(z);var G=Ye;return(function(H,w){if(arguments.length>0){const S=w?e(z):l?pa(H):H;return $(z,S),E=!0,v!==void 0&&(v=S),H}return bi&&E||(G.f&La)!==0?z.v:e(z)})}const mc="5";var pn;typeof window<"u"&&((pn=window.__svelte??(window.__svelte={})).v??(pn.v=new Set)).add(mc);const gc=Math.floor(Date.now()/1e3);localStorage.getItem("onboarding_complete");const yc={meta:{device_id:"",firmware_version:"",uptime_s:0,wifi_rssi:0,timestamp_utc:gc},environment:{history:[],live:{temp_c:0,rh_pct:0,co2_ppm:0,co2e_ppm:0,voc_ppb:0,vpd:0},targets:{temp_c:0,rh_pct:0,co2_ppm:0},alerts:[]},chambers:[{id:"colonization",label:"Colonization",type:"colonization",environment:{temp_c:0,rh_pct:0,co2e_ppm:0,voc_ppb:0},slots:[]},{id:"fruiting",label:"Fruiting",type:"fruiting",environment:{temp_c:0,rh_pct:0,co2_ppm:0,voc_ppb:0},slots:[]}],hardware:{fans:[],humidifier:{active:!1,mode:"auto",reservoir_pct:0},lights:[],doors:[],cameras:[]},recipe:{id:"",name:"",species:"",stage:"inoculation",stage_started_ts:0,stage_target_duration_h:0,stage_history:[],next_actions:[]},maintenance:{last_wipe_ts:0,last_reservoir_clean_ts:0},ui:{selected_bag_id:null,onboarding_complete:!1}},_c={};function wc(a){return structuredClone(a)}const ss=_c?.VITE_DAEMON_URL,hr=ss?ss.replace(/^http/,"ws")+"/ws":null;function ln(a,t){return .6108*Math.exp(17.27*a/(a+237.3))*(1-t/100)}function bc(){let t=pa(wc(yc)),i=null,n=null,l=null,c=Me(!1);function v(w){if(t.meta.timestamp_utc=w.t,w.e){w.e.temp!==void 0&&(t.environment.live.temp_c=w.e.temp),w.e.rh!==void 0&&(t.environment.live.rh_pct=w.e.rh),w.e.co2!==void 0&&(t.environment.live.co2_ppm=w.e.co2),w.e.vpd!==void 0&&(t.environment.live.vpd=w.e.vpd);const S={ts:w.t,temp_c:t.environment.live.temp_c,rh_pct:t.environment.live.rh_pct,co2_ppm:t.environment.live.co2_ppm,voc_ppb:t.environment.live.voc_ppb,vpd:t.environment.live.vpd};t.environment.history.push(S),t.environment.history.length>1441&&t.environment.history.shift()}w.hw&&(w.hw.fans&&w.hw.fans.forEach((S,_)=>{t.hardware.fans[_]&&(t.hardware.fans[_].speed_pct=S)}),w.hw.humidifier!==void 0&&(t.hardware.humidifier.a
Line truncated
|
||||||
|
L13 19.2 Q13 21.1 11.1 21.1 L2.9 21.1 Q1 21.1 1 19.2
|
||||||
|
L1 6.2 Q1 5 2.2 4.4 L4.6 3.3 Q5 3 5 2.6 Z" fill="none" stroke="#d99050" stroke-width="1.1" class="reservoir-halo svelte-16kic4w" pointer-events="none"></path>`),od=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),ld=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),cd=ie('<g class="fog-band svelte-16kic4w"><ellipse fill="url(#mist-puff)" class="svelte-16kic4w"></ellipse></g>'),dd=ie('<g filter="url(#mist-soften)" clip-path="url(#mist-clip)" pointer-events="none" class="svelte-16kic4w"></g>'),vd=I(`<div class="twin-wrap svelte-16kic4w"><div class="labels svelte-16kic4w"><div class="label-card svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Colonization</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div> <div class="label-card right svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Fruiting</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div></div> <svg class="appliance svelte-16kic4w" viewBox="-48 -30 576 475" role="img"><defs class="svelte-16kic4w"><radialGradient id="room-spot" cx="50%" cy="0%" r="75%" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff7e2" stop-opacity="0.75" class="svelte-16kic4w"></stop><stop offset="40%" stop-color="#fff7e2" stop-opacity="0.22" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff7e2" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="floor-reflection" x1="0" y1="0" x2="0" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff" stop-opacity="0.35" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff" stop-opacity="0" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="body-grad" x1="0" y1="0" x2="1" y2="0.2" class="svelte-16kic4w"><stop offset="0%" stop-color="#cac9d1" class="svelte-16kic4w"></stop><stop offset="45%" stop-color="#efefef" class="svelte-16kic4w"></stop><stop offset="65%" stop-color="#fff" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="col-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#0c0f0a" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#161a12" class="svelte-16kic4w"></stop></linearGradient><pattern id="col-pattern" patternUnits="userSpaceOnUse" width="250" height="500" class="svelte-16kic4w"><image href="/img/illustration_mycelium.webp" x="-10" y="45" width="250" height="500" opacity="0.25" class="svelte-16kic4w"></image></pattern><linearGradient id="fruit-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#eee" class="svelte-16kic4w"></stop><stop offset="20%" stop-color="#fafafa" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#efefef" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="col-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="60%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="work-spot" cx="50%" cy="0%" r="45%" fx="50%" fy="0%" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.95" class="svelte-16kic4w"></stop><stop offset="10%" stop-color="#fffefb" stop-opacity="0.85" class="svelte-16kic4w"></stop><stop offset="30%" stop-color="#f5f3ed" stop-opacity="0.55" class="svelte-16kic4w"></stop><stop offset="60%" stop-color="#e8e6e0" stop-opacity="0.2" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#e8e6e0" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="fruit-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="70%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="ajar-leak-left" x1="0" y1="0" x2="1" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="ajar-leak-right" x1="1" y1="0" x2="0" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="ajar-bloom-col" cx="0%" cy="50%" r="85%"
Line truncated
|
||||||
|
L9 0.6
|
||||||
|
L9 2.6
|
||||||
|
Q9 3 9.4 3.3
|
||||||
|
L11.8 4.4
|
||||||
|
Q13 5 13 6.2
|
||||||
|
L13 19.2
|
||||||
|
Q13 21.1 11.1 21.1
|
||||||
|
L2.9 21.1
|
||||||
|
Q1 21.1 1 19.2
|
||||||
|
L1 6.2
|
||||||
|
Q1 5 2.2 4.4
|
||||||
|
L4.6 3.3
|
||||||
|
Q5 3 5 2.6
|
||||||
|
Z" fill="#fbf8ec" stroke="#9d9377" stroke-width="0.7" stroke-linejoin="round" class="svelte-16kic4w"></path><g clip-path="url(#reservoir-inside)" class="svelte-16kic4w"><rect x="0" width="14" height="22" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.45" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.35" fill="#ffffff" opacity="0.22" class="svelte-16kic4w"></rect><!></g><path d="M2.1 7
|
||||||
|
Q2.1 6 2.7 6
|
||||||
|
L2.7 18
|
||||||
|
Q2.7 19 2.1 19
|
||||||
|
Z" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></path><line x1="5" y1="2.6" x2="9" y2="2.6" stroke="#8b8269" stroke-width="0.4" opacity="0.35" class="svelte-16kic4w"></line><!></g><g transform="translate(100, 377)" aria-label="Colonization fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g><g transform="translate(380, 377)" aria-label="Fruiting fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g></g><!></svg></div>`);function fd(a,t){$t(t,!0);const i=Jt(t,"showGallery",3,!0);function n(M,Z,Q){Q.stopPropagation(),t.onAddBag?.(M,Z)}const l=m(()=>gt.state.chambers),c=m(()=>e(l).find(M=>M.type==="colonization")??e(l)[0]??{slots:[]}),v=m(()=>e(l).find(M=>M.type==="fruiting")??e(l)[1]??{slots:[]}),f=m(()=>gt.state.hardware),d=m(()=>e(f).humidifier.active),u=m(()=>{const M=new Set,Z=[];for(const pe of e(l)){for(const de of pe.slots){if(!de.bag)continue;const Ae=de.bag.tag.strain_name,ut=Lc(Ae);if(ut&&!M.has(Ae)&&(M.add(Ae),Z.push({strain:Ae,src:ut,slotId:de.bag.slot_id}),Z.length>=6))break}if(Z.length>=6)break}const Q=[{strain:"Family Portrait",src:"/img/illustration.webp",slotId:"est. the Proterozoic",isGeneric:!0},{strain:"The Boys",src:"/img/illustration_oysters.webp",slotId:"oil on canvas · 2024",isGeneric:!0},{strain:"Mycelial Dreams",src:"/img/illustration_mycelium.webp",slotId:"acrylic on canvas · 2025",isGeneric:!0},{strain:"Fungi Friends",src:"/img/illustration_mycelium.webp",slotId:"watercolor · 2025",isGeneric:!0},{strain:"Spore Sisters",src:"/img/illustration_mycelium.webp",slotId:"mixed media · 2025",isGeneric:!0}];for(const pe of Q){if(Z.length>=6)break;Z.push(pe)}return Z});function p(M){return M.isGeneric?M.slotId:`Slot ${M.slotId}`}const g=[M=>({tx:-12,ty:168,rotate:-3.5,frame:{x:-21,y:-34,w:42,h:60,fill:"#4a3a24"},liner:{stroke:"#7a5f3d",opacity:.8},mat:{fill:"#f3e9ce"},image:{href:M.src,x:-16,y:-29,w:32,h:44},placard:{x:-16,y:30,w:32,h:11},title:{text:M.strain,y:35,size:4.2},subtitle:{text:p(M),y:39.2,size:3}}),M=>({tx:490,ty:65,rotate:2.5,frame:{x:-18,y:-26,w:36,h:46,fill:"#8a6f3a",stroke:"#5a461e"},liner:{stroke:"#c2a55a",opacity:.75},mat:{fill:"#fef7e4"},image:{href:M.src,x:-13.5,y:-21.5,w:27,h:32},placard:{x:-14,y:24,w:28,h:10.5,fill:"#f3ead0",stroke:"#a89466"},title:{text:M.strain,y:28.8,size:4.2},subtitle:{text:p(M),y:32.8,size:2.9}}),()=>({tx:492,ty:252,rotate:3.4,frame:{x:-22,y:-30,w:44,h:50,fill:"#cbb592",stroke:"#85714b"},mat:{fill:"#fff8e7"},image:{href:"/img/illustration_mycelium.webp",x:-19,y:-27,w:38,h:44,opacity:.85},lines:[{text:"Live",y:-14,size:6.5,fill:"#fff"},{text:"Laugh",y:-6,size:6.5,fill:"#fff"},{text:"Lignify",y:3,size:6.5,fill:"#fff"}],divider:{y:12,width:14,stroke:"#b09870",strokeWidth:.4,opacity:.7},placard:{x:-19,y:22,w:40,h:12,fill:"#ece2c3",stroke:"#a89466"},title:{text:"Welcome home",y:27.5,size:4.5},subtitle:{text:"hand-stitched, probably",y:32,size:3.4}}),M=>({tx:-8,ty:68,rotate:0,frame:{x:-19,y:-30,w:38,h:52,fill:"#5a4632"},liner:{stroke:"#8a6f4a",opacity:.75},mat:{fill:"#f4ebd1"},image:{href:M.src,x:-14,y:-25,w:28,h:38},placard:{x:-14,y:26,w:28,h:10,fill:"#f0e5c8"},title:{text:M.strain,y:30,size:4},subtitle:{text:p(M),y:34,size:2.8}}),M=>({tx:-12,ty:260,rotate:.2,frame:{x:-20,y:-28,w:40,h:50,fill:"#6b5438"},liner:{stroke:"#9a7f58",opacity:.7},mat:{fill:"#f8f0da"},image:{href:M.src,x:-15,y:-23,w:30,h:36},placard:{x:-15,y:27,w:30,h:10.5,fill:"#f3e8cc"},title:{text:M.strain,y:31.2,size:4.1},subtitle:{text:p(M),y:35.2,size:2.9}}),M=>({tx:490,ty:142,rotate:-2,frame:{x:-22.5,y:-22,w:45,h:57,fill:"#7a5f3d"},liner:{stroke:"#b09870",opacity:.7},mat:{fill:"#fef9e8"},image:{href:M.src,x:-18,y:-17.5,w:36,h:47},placard:{x:-20,y:38,w:40,h:10,fill:"#f4ebd1",stroke:"#a89466"},title:{text:M.strain,y:42.5,size:5},subtitle:{text:p(M),y:46.5,size:3.5}})],b=m(()=>g.map((M,Z)=>{const Q=e(u)[Z];return M?M.length===0?M():Q?M(Q):null:null})),y=m(()=>e(f).fans.find(M=>M.chamber_id==="main")??e(f).fans[0]??{speed_pct:0}),C=m(()=>e(f).fans.find(M=>M.chamber_id==="second")??e(f).fans[1]??{speed_pct:0});function E(M){return M>0?`${(.5+(1-M/100)*2.4).toFixed(2)}s`:"4s"}const z=m(()=>(e(y)?.speed_pct??0)>0),G=m(()=>(e(C)?.speed_pct??0)>0),H=m(()=>E(e(y)?.speed_pct??0)),w=m(()=>E(e(C)?.speed_pct??0)),S=m(()=>e(f).lights.find(M=>M.chamber_id==="main"&&M.purpose==="work")??{on:!1,brightness:0,color_hex:"#f4ecd8"}),_=m(()=>e(f).lights.find(M=>M.chamber_id==="second"&&M.purpose==="grow")??{on:!1,brightness:0,color_hex:"#f7f0dc"}),B=m(()=>e(f).doors.find(M=>M.chamber_id==="main")?.open??!1),W=m(()=>e(f).doors.find(M=>M.chamber_id==="second")?.open??!1),j={x:36,y:52,w:192,h:297},O={x:252,y:52,w:192,h:297};function q(M){const Z=M.h/3;return[M.y,M.y+Z,M.y+2*Z]}function ue(M){const Z=[[{Line truncated
|
||||||
|
functional polypores, and a couple of specimens kept only for their looks, with ideal
|
||||||
|
climate envelopes and yields you can expect from each.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">species in the catalogue</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">beginner-friendly</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--attention)"> </span> <span class="hs-label svelte-1acr5fz">gourmet</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">prepared as extracts</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter species"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Category</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Difficulty</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Edible only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">Numbers are guides, not guarantees. Every strain, every substrate,
|
||||||
|
every room runs a little differently — trust what you see in the bag.</p></footer>`,1),tu=I('<button type="button"><span class="sev-dot svelte-1acr5fz"></span> </button>'),au=I('<button type="button"> </button>'),iu=I('<button class="chip chip-clear svelte-1acr5fz" type="button">Clear</button>'),su=I('<div class="results-note svelte-1acr5fz">Showing <strong class="svelte-1acr5fz"> </strong> </div>'),ru=I('<div class="empty svelte-1acr5fz"><p>No specimens match those filters.</p> <button class="btn-ghost" type="button">Clear filters</button></div>'),nu=I('<span class="salv-mark svelte-1acr5fz" title="Often salvageable" aria-label="Often salvageable"><svg width="11" height="11" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg></span>'),ou=I('<span class="stage-pip svelte-1acr5fz"> </span>'),lu=I('<button class="card svelte-1acr5fz" type="button"><div class="card-art svelte-1acr5fz"><!> <span class="sev-badge svelte-1acr5fz"><span class="sev-badge-dot svelte-1acr5fz"></span> </span> <!></div> <div class="card-body svelte-1acr5fz"><h3 class="card-name font-serif svelte-1acr5fz"> </h3> <div class="card-sci italic svelte-1acr5fz"> </div> <div class="card-chips svelte-1acr5fz"></div> <p class="card-hook svelte-1acr5fz"> </p></div></button>'),cu=I('<section class="grid svelte-1acr5fz" aria-label="Specimens"></section>'),du=I(`<section class="hero svelte-1acr5fz"><div class="eyebrow">Cultivar · Contaminants</div> <h1 class="hero-head font-serif svelte-1acr5fz">Things that may grow <span class="italic svelte-1acr5fz">alongside your mushrooms.</span></h1> <p class="hero-lede svelte-1acr5fz">Not every fuzzy thing is bad news. Some are easy fixes, some are just
|
||||||
|
physiology, a few are worth a careful discard. Here's a short field
|
||||||
|
guide to what you might see, how to recognise it, and what to do.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">specimens catalogued</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">often salvageable</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--urgent)"> </span> <span class="hs-label svelte-1acr5fz">best to discard</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter contaminants"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Severity</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Stage</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Salvageable only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">A curated sample. When in doubt, bag it, seal it, and err on the side
|
||||||
|
of discarding — it's cheaper than losing a whole room to spores.</p></footer>`,1),vu=I('<div class="tabs svelte-1acr5fz" role="tablist" aria-label="Field guide section"><button role="tab" type="button"><span class="tab-label">Species</span> <span class="tab-count svelte-1acr5fz"> </span></button> <button role="tab" type="button"><span class="tab-label">Contaminants</span> <span class="tab-count svelte-1acr5fz"> </span></button></div> <!>',1),fu=I('<div class="reference svelte-1acr5fz"><header class="head svelte-1acr5fz"><!> <div class="head-title font-serif svelte-1acr5fz">Field Guide</div> <div class="head-spacer"></div></header> <div class="page scroll-soft svelte-1acr5fz"><!></div></div>');function uu(a,t){$t(t,!0);let i=Me("species"),n=Me(null),l=Me(null);const c=m(()=>e(n)?as.find(U=>U.id===e(n))??null:null),v=m(()=>e(l)?Us.find(U=>U.id===e(l))??null:null),f=m(()=>e(c)!==null||e(v)!==null);let d=Me(void 0);function u(U){$(n,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function p(U){$(l,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function g(){$(n,null),$(l,null)}function b(U){U!==e(i)&&($(i,U,!0),g(),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"})))}const y=["low","medium","high","critical"],C=["agar","grain","bulk","fruiting"];let E=Me(pa(new Set)),z=Me(pa(new Set)),G=Me(!1);function H(U){const T=new Set(e(E));T.has(U)?T.delete(U):T.add(U),$(E,T,!0)}function w(U){const T=new Set(e(z));T.has(U)?T.delete(U):T.add(U),$(z,T,!0)}function S(){$(E,new Set,!0),$(z,new Set,!0),$(G,!1)}const _=m(()=>Us.filter(U=>!(e(E).size>0&&!e(E).has(U.severity)||e(z).size>0&&!U.stages.some(T=>e(z).has(T))||e(G)&&!U.salvageable))),B=m(()=>e(E).size>0||e(z).size>0||e(G)),W=["gourmet","functional","educational"],j=["beginner","intermediate","advanced"];let O=Me(pa(new Set)),q=Me(pa(new Set)),ue=Me(!1);function ke(U){const T=new Set(e(O));T.has(U)?T.delete(U):T.add(U),$(O,T,!0)}function Se(U){const T=new Set(e(q));T.has(U)?T.delete(U):T.add(U),$(q,T,!0)}function _e(){$(O,new Set,!0),$(q,new Set,!0),$(ue,!1)}const J=m(()=>as.filter(U=>!(e(O).size>0&&!e(O).has(U.category)||e(q).size>0&&!e(q).has(U.difficulty)||e(ue)&&!U.edible))),le=m(()=>e(O).size>0||e(q).size>0||e(ue)),fe={low:"Low concern",medium:"Moderate",high:"Serious",critical:"Critical"},me={low:"Low",medium:"Mod",high:"Serious",critical:"Critical"},xe={low:"var(--forest)",medium:"var(--attention)",high:"#9C4A1E",critical:"var(--urgent)"},we={low:"sage",medium:"amber",high:"sienna",critical:"rust"},D={agar:"Agar",grain:"Grain",bulk:"Bulk",fruiting:"Fruiting"},N={gourmet:"Gourmet",functional:"Functional",educational:"Educational"},X={gourmet:"amber",functional:"sage",educational:"slate"},ce={gourmet:"var(--attention)",functional:"var(--forest)",educational:"var(--ink-muted)"},ne={beginner:"Beginner",intermediate:"Intermediate",advanced:"Advanced"},ge={beginner:"var(--forest)",intermediate:"var(--attention)",advanced:"#9C4A1E"},Ve={clustered:"Clustered",solitary:"Solitary",bracket:"Bracket",shelf:"Shelf",rosette:"Rosette","ear-shaped":"Ear-shaped",branching:"Branching"},Ee=Us.length,st=Us.filter(U=>U.salvageable).length,De=Ee-st,Qe=as.length,yt=as.filter(U=>U.category==="gourmet").length,ct=as.filter(U=>U.category==="functional"||U.functional).length,pt=as.filter(U=>U.difficulty==="beginner").length;function $e(U){const T=U.match(/^[^.!?]+[.!?]/);return T?T[0].trim():U}function rt(U){if(U.key==="Escape"){if(e(f)){g();return}t.onBack()}}var Pt=fu();Kl("keydown",Sr,rt);var Dt=o(Pt),zt=o(Dt);{var ta=U=>{var T=xf();oe("click",T,g),h(U,T)},V=U=>{var T=kf();oe("click",T,function(...Ue){t.onBack?.apply(this,Ue)}),h(U,T)};L(zt,U=>{e(f)?U(ta):U(V,-1)})}var K=r(Dt,2),te=o(K);{var Ge=U=>{const T=m(()=>e(c));var Ue=jf(),Ke=o(Ue),ht=o(Ke),Ot=o(ht),_t=r(ht,2),wt=o(_t),vt=r(_t,2),Ht=o(vt),Et=r(vt,2);{var Lt=ae=>{var re=zf();h(ae,re)};L(Et,ae=>{e(T).edible&&ae(Lt)})}var Wt=r(Et,2);{var Kt=ae=>{var re=Cf();h(ae,re)};L(Wt,ae=>{e(T).functional&&ae(Kt)})}var Ct=r(Wt,2);{var be=ae=>{var re=Mf();h(ae,re)};L(Ct,ae=>{e(T).bioluminescent&&ae(be)})}var Fe=r(Ct,2);{var ot=ae=>{var re=Sf();h(ae,re)};L(Fe,ae=>{e(T).isHybrid&&ae(ot)})}var nt=r(Ke,2),lt=o(nt),jt=r(nt,2),Nt=o(jt),oa=r(Nt);{var Mt=ae=>{var re=Pf(),at=o(re);A(()=>x(at,e(T).authority)),h(ae,re)};L(oa,ae=>{e(T).authority&&ae(Mt)})}var St=r(jt,2);{var Ft=ae=>{var re=Tf(),at=r(o(re)),Xe=o(at);A(It=>x(Xe,It),[()=>e(T).synonyms.join(", ")]),h(ae,re)};L(St,ae=>{e(T).synonyms.length>0&&ae(Ft)})}var la=r(St,2),aa=o(la),Rt=r(la,2),Vt=o(Rt),se=o(Vt),Y=o(se);{var he=ae=>{var re=Of();A(()=>{s(re,"src",e(T).image),s(re,"alt",e(T).commonName)}),h(ae,re)},Te=ae=>{{let re=m(()=>`d-${e(T).id}`);Ks(ae,{get tone(){return X[e(T).category]},get name(){return e(T).commonName},get caption(){return e(T).id},get uid(){return e(re)}})}};L(Y,ae=>{e(T).image?ae(he):ae(Te,-1)})}var et=r(se,2),Ze=o(et),mt=r(Vt,2),ft=o(mt),kt=r(o(ft),2),ma=o(kt),ia=r(ft,2),xa=r(o(ia),2),tt=o(Line truncated
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
var xo=Object.defineProperty;var Vr=a=>{throw TypeError(a)};var ko=(a,t,i)=>t in a?xo(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i;var Xa=(a,t,i)=>ko(a,typeof t!="symbol"?t+"":t,i),dr=(a,t,i)=>t.has(a)||Vr("Cannot "+i);var k=(a,t,i)=>(dr(a,t,"read from private field"),i?i.call(a):t.get(a)),Oe=(a,t,i)=>t.has(a)?Vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,i),Re=(a,t,i,n)=>(dr(a,t,"write to private field"),n?n.call(a,i):t.set(a,i),i),xt=(a,t,i)=>(dr(a,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&n(v)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();const zo=!1;var hn=Array.isArray,Co=Array.prototype.indexOf,ds=Array.prototype.includes,or=Array.from,mn=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyDescriptors,So=Object.prototype,Po=Array.prototype,gn=Object.getPrototypeOf,Qr=Object.isExtensible;function To(a){return typeof a=="function"}const Ua=()=>{};function Oo(a){for(var t=0;t<a.length;t++)a[t]()}function yn(){var a,t,i=new Promise((n,l)=>{a=n,t=l});return{promise:i,resolve:a,reject:t}}function Eo(a,t){if(Array.isArray(a))return a;if(!(Symbol.iterator in a))return Array.from(a);const i=[];for(const n of a)if(i.push(n),i.length===t)break;return i}const ha=2,vs=4,lr=8,_n=1<<24,ti=16,ai=32,Fi=64,hr=128,Ka=512,Xt=1024,da=2048,li=4096,ba=8192,La=16384,Ai=32768,mr=1<<25,Ki=65536,gr=1<<17,Fo=1<<18,ms=1<<19,Ao=1<<20,oi=1<<25,Vi=65536,yr=1<<21,Fs=1<<22,Ei=1<<23,Ts=Symbol("$state"),Bo=Symbol("legacy props"),Do=Symbol(""),fi=new class extends Error{constructor(){super(...arguments);Xa(this,"name","StaleReactionError");Xa(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jo(a,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function No(a){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Io(a){throw new Error("https://svelte.dev/e/effect_orphan")}function Go(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(a){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ko=1,Vo=2,wn=4,Qo=8,Zo=16,Xo=1,Jo=4,$o=8,el=16,tl=4,bn=1,al=2,na=Symbol(),xn="http://www.w3.org/1999/xhtml";function il(){console.warn("https://svelte.dev/e/derived_inert")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kn(a){return a===this.v}function zn(a,t){return a!=a?t==t:a!==t||a!==null&&typeof a=="object"||typeof a=="function"}function Cn(a){return!zn(a,this.v)}let rl=!1,ja=null;function fs(a){ja=a}function $t(a,t=!1,i){ja={p:ja,i:!1,c:null,e:null,s:a,x:null,r:Ye,l:null}}function ea(a){var t=ja,i=t.e;if(i!==null){t.e=null;for(var n of i)Kn(n)}return t.i=!0,ja=t.p,{}}function Mn(){return!0}let Li=[];function Sn(){var a=Li;Li=[],Oo(a)}function _i(a){if(Li.length===0&&!Os){var t=Li;queueMicrotask(()=>{t===Li&&Sn()})}Li.push(a)}function nl(){for(;Li.length>0;)Sn()}function Pn(a){var t=Ye;if(t===null)return We.f|=Ei,a;if((t.f&Ai)===0&&(t.f&vs)===0)throw a;Oi(a,t)}function Oi(a,t){for(;t!==null;){if((t.f&hr)!==0){if((t.f&Ai)===0)throw a;try{t.b.error(a);return}catch(i){a=i}}t=t.parent}throw a}const ol=-7169;function Gt(a,t){a.f=a.f&ol|t}function Lr(a){(a.f&Ka)!==0||a.deps===null?Gt(a,Xt):Gt(a,li)}function Tn(a){if(a!==null)for(const t of a)(t.f&ha)===0||(t.f&Vi)===0||(t.f^=Vi,Tn(t.deps))}function On(a,t,i){(a.f&da)!==0?t.add(a):(a.f&li)!==0&&i.add(a),Tn(a.deps),Gt(a,Xt)}function En(a,t,i){if(a==null)return t(void 0),Ua;const n=_s(()=>a.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}const es=[];function ll(a,t=Ua){let i=null;const n=new Set;function l(f){if(zn(a,f)&&(a=f,i)){const d=!es.length;for(const u of n)u[1](),es.push(u,a);if(d){for(let u=0;u<es.length;u+=2)es[u][0](es[u+1]);es.length=0}}}function c(f){l(f(a))}function v(f,d=Ua){const u=[f,d];return n.add(u),n.size===1&&(i=t(l,c)||Ua),f(aLine truncated
|
||||||
|
\r\f \v\uFEFF`];function dc(a,t,i){var n=a==null?"":""+a;if(t&&(n=n?n+" "+t:t),i){for(var l of Object.keys(i))if(i[l])n=n?n+" "+l:l;else if(n.length)for(var c=l.length,v=0;(v=n.indexOf(l,v))>=0;){var f=v+c;(v===0||rn.includes(n[v-1]))&&(f===n.length||rn.includes(n[f]))?n=(v===0?"":n.substring(0,v))+n.substring(f+1):v=f}}return n===""?null:n}function vc(a,t){return a==null?null:String(a)}function Ie(a,t,i,n,l,c){var v=a.__className;if(v!==i||v===void 0){var f=dc(i,n,c);f==null?a.removeAttribute("class"):t?a.className=f:a.setAttribute("class",f),a.__className=i}else if(c&&l!==c)for(var d in c){var u=!!c[d];(l==null||u!==!!l[d])&&a.classList.toggle(d,u)}return c}function Je(a,t,i,n){var l=a.__style;if(l!==t){var c=vc(t);c==null?a.removeAttribute("style"):a.style.cssText=c,a.__style=t}return n}const fc=Symbol("is custom element"),uc=Symbol("is html");function s(a,t,i,n){var l=pc(a);l[t]!==(l[t]=i)&&(t==="loading"&&(a[Do]=i),i==null?a.removeAttribute(t):typeof i!="string"&&hc(a).includes(t)?a[t]=i:a.setAttribute(t,i))}function pc(a){return a.__attributes??(a.__attributes={[fc]:a.nodeName.includes("-"),[uc]:a.namespaceURI===xn})}var nn=new Map;function hc(a){var t=a.getAttribute("is")||a.nodeName,i=nn.get(t);if(i)return i;nn.set(t,i=[]);for(var n,l=a,c=Element.prototype;c!==l;){n=Mo(l);for(var v in n)n[v].set&&i.push(v);l=gn(l)}return i}function qs(a,t,i=t){var n=new WeakSet;Bl(a,"input",async l=>{var c=l?a.defaultValue:a.value;if(c=fr(a)?ur(c):c,i(c),Be!==null&&n.add(Be),await Wl(),c!==(c=t())){var v=a.selectionStart,f=a.selectionEnd,d=a.value.length;if(a.value=c??"",f!==null){var u=a.value.length;v===f&&f===d&&u>d?(a.selectionStart=u,a.selectionEnd=u):(a.selectionStart=v,a.selectionEnd=Math.min(f,u))}}}),_s(t)==null&&a.value&&(i(fr(a)?ur(a.value):a.value),Be!==null&&n.add(Be)),Hr(()=>{var l=t();if(a===document.activeElement){var c=Be;if(n.has(c))return}fr(a)&&l===ur(a.value)||a.type==="date"&&!l&&!a.value||l!==a.value&&(a.value=l??"")})}function fr(a){var t=a.type;return t==="number"||t==="range"}function ur(a){return a===""?null:+a}function on(a,t){return a===t||a?.[Ts]===t}function vo(a={},t,i,n){var l=ja.r,c=Ye;return Vn(()=>{var v,f;return Hr(()=>{v=f,f=[],_s(()=>{a!==i(...f)&&(t(a,...f),v&&on(i(...v),a)&&t(null,...v))})}),()=>{let d=c;for(;d!==l&&d.parent!==null&&d.parent.f&mr;)d=d.parent;const u=()=>{f&&on(i(...f),a)&&t(null,...f)},p=d.teardown;d.teardown=()=>{u(),p?.()}}}),a}function Jt(a,t,i,n){var l=(i&$o)!==0,c=(i&el)!==0,v=n,f=!0,d=()=>(f&&(f=!1,v=c?_s(n):n),v);let u;if(l){var p=Ts in a||Bo in a;u=ss(a,t)?.set??(p&&t in a?H=>a[t]=H:void 0)}var g,b=!1;l?[g,b]=fl(()=>a[t]):g=a[t],g===void 0&&n!==void 0&&(g=d(),u&&(Ho(),u(g)));var y;if(y=()=>{var H=a[t];return H===void 0?d():(f=!0,H)},(i&Jo)===0)return y;if(u){var C=a.$$legacy;return(function(H,w){return arguments.length>0?((!w||C||b)&&u(w?y():H),H):y()})}var E=!1,z=((i&Xo)!==0?cr:jn)(()=>(E=!1,y()));l&&e(z);var G=Ye;return(function(H,w){if(arguments.length>0){const S=w?e(z):l?pa(H):H;return $(z,S),E=!0,v!==void 0&&(v=S),H}return bi&&E||(G.f&La)!==0?z.v:e(z)})}const mc="5";var pn;typeof window<"u"&&((pn=window.__svelte??(window.__svelte={})).v??(pn.v=new Set)).add(mc);const gc=Math.floor(Date.now()/1e3);localStorage.getItem("onboarding_complete");const yc={meta:{device_id:"",firmware_version:"",uptime_s:0,wifi_rssi:0,timestamp_utc:gc},environment:{history:[],live:{temp_c:0,rh_pct:0,co2_ppm:0,co2e_ppm:0,voc_ppb:0,vpd:0},targets:{temp_c:0,rh_pct:0,co2_ppm:0},alerts:[]},chambers:[{id:"colonization",label:"Colonization",type:"colonization",environment:{temp_c:0,rh_pct:0,co2e_ppm:0,voc_ppb:0},slots:[]},{id:"fruiting",label:"Fruiting",type:"fruiting",environment:{temp_c:0,rh_pct:0,co2_ppm:0,voc_ppb:0},slots:[]}],hardware:{fans:[],humidifier:{active:!1,mode:"auto",reservoir_pct:0},lights:[],doors:[],cameras:[]},recipe:{id:"",name:"",species:"",stage:"inoculation",stage_started_ts:0,stage_target_duration_h:0,stage_history:[],next_actions:[]},maintenance:{last_wipe_ts:0,last_reservoir_clean_ts:0},ui:{selected_bag_id:null,onboarding_complete:!1}};function _c(a){return structuredClone(a)}const Ar="http://192.168.1.23:8000",pr=Ar.replace(/^http/,"ws")+"/ws";function ln(a,t){return .6108*Math.exp(17.27*a/(a+237.3))*(1-t/100)}function wc(){let t=pa(_c(yc)),i=null,n=null,l=null,c=Me(!1);function v(w){if(t.meta.timestamp_utc=w.t,w.e){w.e.temp!==void 0&&(t.environment.live.temp_c=w.e.temp),w.e.rh!==void 0&&(t.environment.live.rh_pct=w.e.rh),w.e.co2!==void 0&&(t.environment.live.co2_ppm=w.e.co2),w.e.vpd!==void 0&&(t.environment.live.vpd=w.e.vpd);const S={ts:w.t,temp_c:t.environment.live.temp_c,rh_pct:t.environment.live.rh_pct,co2_ppm:t.environment.live.co2_ppm,voc_ppb:t.environment.live.voc_ppb,vpd:t.environment.live.vpd};t.environment.history.push(S),t.environment.history.length>1441&&t.environment.history.shift()}w.hw&&(w.hw.fans&&w.hw.fans.forEach((S,_)=>{t.hardware.fans[_]&&(t.hardware.fans[_].speed_pct=S)}),w.hw.humidifier!==void 0&&(t.hardware.humidifier.active=w
Line truncated
|
||||||
|
L13 19.2 Q13 21.1 11.1 21.1 L2.9 21.1 Q1 21.1 1 19.2
|
||||||
|
L1 6.2 Q1 5 2.2 4.4 L4.6 3.3 Q5 3 5 2.6 Z" fill="none" stroke="#d99050" stroke-width="1.1" class="reservoir-halo svelte-16kic4w" pointer-events="none"></path>`),nd=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),od=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),ld=ie('<g class="fog-band svelte-16kic4w"><ellipse fill="url(#mist-puff)" class="svelte-16kic4w"></ellipse></g>'),cd=ie('<g filter="url(#mist-soften)" clip-path="url(#mist-clip)" pointer-events="none" class="svelte-16kic4w"></g>'),dd=I(`<div class="twin-wrap svelte-16kic4w"><div class="labels svelte-16kic4w"><div class="label-card svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Colonization</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div> <div class="label-card right svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Fruiting</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div></div> <svg class="appliance svelte-16kic4w" viewBox="-48 -30 576 475" role="img"><defs class="svelte-16kic4w"><radialGradient id="room-spot" cx="50%" cy="0%" r="75%" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff7e2" stop-opacity="0.75" class="svelte-16kic4w"></stop><stop offset="40%" stop-color="#fff7e2" stop-opacity="0.22" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff7e2" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="floor-reflection" x1="0" y1="0" x2="0" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff" stop-opacity="0.35" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff" stop-opacity="0" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="body-grad" x1="0" y1="0" x2="1" y2="0.2" class="svelte-16kic4w"><stop offset="0%" stop-color="#cac9d1" class="svelte-16kic4w"></stop><stop offset="45%" stop-color="#efefef" class="svelte-16kic4w"></stop><stop offset="65%" stop-color="#fff" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="col-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#0c0f0a" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#161a12" class="svelte-16kic4w"></stop></linearGradient><pattern id="col-pattern" patternUnits="userSpaceOnUse" width="250" height="500" class="svelte-16kic4w"><image href="/img/illustration_mycelium.webp" x="-10" y="45" width="250" height="500" opacity="0.25" class="svelte-16kic4w"></image></pattern><linearGradient id="fruit-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#eee" class="svelte-16kic4w"></stop><stop offset="20%" stop-color="#fafafa" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#efefef" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="col-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="60%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="work-spot" cx="50%" cy="0%" r="45%" fx="50%" fy="0%" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.95" class="svelte-16kic4w"></stop><stop offset="10%" stop-color="#fffefb" stop-opacity="0.85" class="svelte-16kic4w"></stop><stop offset="30%" stop-color="#f5f3ed" stop-opacity="0.55" class="svelte-16kic4w"></stop><stop offset="60%" stop-color="#e8e6e0" stop-opacity="0.2" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#e8e6e0" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="fruit-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="70%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="ajar-leak-left" x1="0" y1="0" x2="1" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="ajar-leak-right" x1="1" y1="0" x2="0" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="ajar-bloom-col" cx="0%" cy="50%" r="85%"
Line truncated
|
||||||
|
L9 0.6
|
||||||
|
L9 2.6
|
||||||
|
Q9 3 9.4 3.3
|
||||||
|
L11.8 4.4
|
||||||
|
Q13 5 13 6.2
|
||||||
|
L13 19.2
|
||||||
|
Q13 21.1 11.1 21.1
|
||||||
|
L2.9 21.1
|
||||||
|
Q1 21.1 1 19.2
|
||||||
|
L1 6.2
|
||||||
|
Q1 5 2.2 4.4
|
||||||
|
L4.6 3.3
|
||||||
|
Q5 3 5 2.6
|
||||||
|
Z" fill="#fbf8ec" stroke="#9d9377" stroke-width="0.7" stroke-linejoin="round" class="svelte-16kic4w"></path><g clip-path="url(#reservoir-inside)" class="svelte-16kic4w"><rect x="0" width="14" height="22" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.45" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.35" fill="#ffffff" opacity="0.22" class="svelte-16kic4w"></rect><!></g><path d="M2.1 7
|
||||||
|
Q2.1 6 2.7 6
|
||||||
|
L2.7 18
|
||||||
|
Q2.7 19 2.1 19
|
||||||
|
Z" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></path><line x1="5" y1="2.6" x2="9" y2="2.6" stroke="#8b8269" stroke-width="0.4" opacity="0.35" class="svelte-16kic4w"></line><!></g><g transform="translate(100, 377)" aria-label="Colonization fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g><g transform="translate(380, 377)" aria-label="Fruiting fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g></g><!></svg></div>`);function vd(a,t){$t(t,!0);const i=Jt(t,"showGallery",3,!0);function n(M,Z,Q){Q.stopPropagation(),t.onAddBag?.(M,Z)}const l=m(()=>gt.state.chambers),c=m(()=>e(l).find(M=>M.type==="colonization")??e(l)[0]??{slots:[]}),v=m(()=>e(l).find(M=>M.type==="fruiting")??e(l)[1]??{slots:[]}),f=m(()=>gt.state.hardware),d=m(()=>e(f).humidifier.active),u=m(()=>{const M=new Set,Z=[];for(const pe of e(l)){for(const de of pe.slots){if(!de.bag)continue;const Ae=de.bag.tag.strain_name,ut=Dc(Ae);if(ut&&!M.has(Ae)&&(M.add(Ae),Z.push({strain:Ae,src:ut,slotId:de.bag.slot_id}),Z.length>=6))break}if(Z.length>=6)break}const Q=[{strain:"Family Portrait",src:"/img/illustration.webp",slotId:"est. the Proterozoic",isGeneric:!0},{strain:"The Boys",src:"/img/illustration_oysters.webp",slotId:"oil on canvas · 2024",isGeneric:!0},{strain:"Mycelial Dreams",src:"/img/illustration_mycelium.webp",slotId:"acrylic on canvas · 2025",isGeneric:!0},{strain:"Fungi Friends",src:"/img/illustration_mycelium.webp",slotId:"watercolor · 2025",isGeneric:!0},{strain:"Spore Sisters",src:"/img/illustration_mycelium.webp",slotId:"mixed media · 2025",isGeneric:!0}];for(const pe of Q){if(Z.length>=6)break;Z.push(pe)}return Z});function p(M){return M.isGeneric?M.slotId:`Slot ${M.slotId}`}const g=[M=>({tx:-12,ty:168,rotate:-3.5,frame:{x:-21,y:-34,w:42,h:60,fill:"#4a3a24"},liner:{stroke:"#7a5f3d",opacity:.8},mat:{fill:"#f3e9ce"},image:{href:M.src,x:-16,y:-29,w:32,h:44},placard:{x:-16,y:30,w:32,h:11},title:{text:M.strain,y:35,size:4.2},subtitle:{text:p(M),y:39.2,size:3}}),M=>({tx:490,ty:65,rotate:2.5,frame:{x:-18,y:-26,w:36,h:46,fill:"#8a6f3a",stroke:"#5a461e"},liner:{stroke:"#c2a55a",opacity:.75},mat:{fill:"#fef7e4"},image:{href:M.src,x:-13.5,y:-21.5,w:27,h:32},placard:{x:-14,y:24,w:28,h:10.5,fill:"#f3ead0",stroke:"#a89466"},title:{text:M.strain,y:28.8,size:4.2},subtitle:{text:p(M),y:32.8,size:2.9}}),()=>({tx:492,ty:252,rotate:3.4,frame:{x:-22,y:-30,w:44,h:50,fill:"#cbb592",stroke:"#85714b"},mat:{fill:"#fff8e7"},image:{href:"/img/illustration_mycelium.webp",x:-19,y:-27,w:38,h:44,opacity:.85},lines:[{text:"Live",y:-14,size:6.5,fill:"#fff"},{text:"Laugh",y:-6,size:6.5,fill:"#fff"},{text:"Lignify",y:3,size:6.5,fill:"#fff"}],divider:{y:12,width:14,stroke:"#b09870",strokeWidth:.4,opacity:.7},placard:{x:-19,y:22,w:40,h:12,fill:"#ece2c3",stroke:"#a89466"},title:{text:"Welcome home",y:27.5,size:4.5},subtitle:{text:"hand-stitched, probably",y:32,size:3.4}}),M=>({tx:-8,ty:68,rotate:0,frame:{x:-19,y:-30,w:38,h:52,fill:"#5a4632"},liner:{stroke:"#8a6f4a",opacity:.75},mat:{fill:"#f4ebd1"},image:{href:M.src,x:-14,y:-25,w:28,h:38},placard:{x:-14,y:26,w:28,h:10,fill:"#f0e5c8"},title:{text:M.strain,y:30,size:4},subtitle:{text:p(M),y:34,size:2.8}}),M=>({tx:-12,ty:260,rotate:.2,frame:{x:-20,y:-28,w:40,h:50,fill:"#6b5438"},liner:{stroke:"#9a7f58",opacity:.7},mat:{fill:"#f8f0da"},image:{href:M.src,x:-15,y:-23,w:30,h:36},placard:{x:-15,y:27,w:30,h:10.5,fill:"#f3e8cc"},title:{text:M.strain,y:31.2,size:4.1},subtitle:{text:p(M),y:35.2,size:2.9}}),M=>({tx:490,ty:142,rotate:-2,frame:{x:-22.5,y:-22,w:45,h:57,fill:"#7a5f3d"},liner:{stroke:"#b09870",opacity:.7},mat:{fill:"#fef9e8"},image:{href:M.src,x:-18,y:-17.5,w:36,h:47},placard:{x:-20,y:38,w:40,h:10,fill:"#f4ebd1",stroke:"#a89466"},title:{text:M.strain,y:42.5,size:5},subtitle:{text:p(M),y:46.5,size:3.5}})],b=m(()=>g.map((M,Z)=>{const Q=e(u)[Z];return M?M.length===0?M():Q?M(Q):null:null})),y=m(()=>e(f).fans.find(M=>M.chamber_id==="main")??e(f).fans[0]??{speed_pct:0}),C=m(()=>e(f).fans.find(M=>M.chamber_id==="second")??e(f).fans[1]??{speed_pct:0});function E(M){return M>0?`${(.5+(1-M/100)*2.4).toFixed(2)}s`:"4s"}const z=m(()=>(e(y)?.speed_pct??0)>0),G=m(()=>(e(C)?.speed_pct??0)>0),H=m(()=>E(e(y)?.speed_pct??0)),w=m(()=>E(e(C)?.speed_pct??0)),S=m(()=>e(f).lights.find(M=>M.chamber_id==="main"&&M.purpose==="work")??{on:!1,brightness:0,color_hex:"#f4ecd8"}),_=m(()=>e(f).lights.find(M=>M.chamber_id==="second"&&M.purpose==="grow")??{on:!1,brightness:0,color_hex:"#f7f0dc"}),B=m(()=>e(f).doors.find(M=>M.chamber_id==="main")?.open??!1),W=m(()=>e(f).doors.find(M=>M.chamber_id==="second")?.open??!1),j={x:36,y:52,w:192,h:297},O={x:252,y:52,w:192,h:297};function q(M){const Z=M.h/3;return[M.y,M.y+Z,M.y+2*Z]}function ue(M){const Z=[[{Line truncated
|
||||||
|
functional polypores, and a couple of specimens kept only for their looks, with ideal
|
||||||
|
climate envelopes and yields you can expect from each.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">species in the catalogue</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">beginner-friendly</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--attention)"> </span> <span class="hs-label svelte-1acr5fz">gourmet</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">prepared as extracts</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter species"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Category</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Difficulty</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Edible only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">Numbers are guides, not guarantees. Every strain, every substrate,
|
||||||
|
every room runs a little differently — trust what you see in the bag.</p></footer>`,1),eu=I('<button type="button"><span class="sev-dot svelte-1acr5fz"></span> </button>'),tu=I('<button type="button"> </button>'),au=I('<button class="chip chip-clear svelte-1acr5fz" type="button">Clear</button>'),iu=I('<div class="results-note svelte-1acr5fz">Showing <strong class="svelte-1acr5fz"> </strong> </div>'),su=I('<div class="empty svelte-1acr5fz"><p>No specimens match those filters.</p> <button class="btn-ghost" type="button">Clear filters</button></div>'),ru=I('<span class="salv-mark svelte-1acr5fz" title="Often salvageable" aria-label="Often salvageable"><svg width="11" height="11" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg></span>'),nu=I('<span class="stage-pip svelte-1acr5fz"> </span>'),ou=I('<button class="card svelte-1acr5fz" type="button"><div class="card-art svelte-1acr5fz"><!> <span class="sev-badge svelte-1acr5fz"><span class="sev-badge-dot svelte-1acr5fz"></span> </span> <!></div> <div class="card-body svelte-1acr5fz"><h3 class="card-name font-serif svelte-1acr5fz"> </h3> <div class="card-sci italic svelte-1acr5fz"> </div> <div class="card-chips svelte-1acr5fz"></div> <p class="card-hook svelte-1acr5fz"> </p></div></button>'),lu=I('<section class="grid svelte-1acr5fz" aria-label="Specimens"></section>'),cu=I(`<section class="hero svelte-1acr5fz"><div class="eyebrow">Cultivar · Contaminants</div> <h1 class="hero-head font-serif svelte-1acr5fz">Things that may grow <span class="italic svelte-1acr5fz">alongside your mushrooms.</span></h1> <p class="hero-lede svelte-1acr5fz">Not every fuzzy thing is bad news. Some are easy fixes, some are just
|
||||||
|
physiology, a few are worth a careful discard. Here's a short field
|
||||||
|
guide to what you might see, how to recognise it, and what to do.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">specimens catalogued</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">often salvageable</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--urgent)"> </span> <span class="hs-label svelte-1acr5fz">best to discard</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter contaminants"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Severity</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Stage</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Salvageable only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">A curated sample. When in doubt, bag it, seal it, and err on the side
|
||||||
|
of discarding — it's cheaper than losing a whole room to spores.</p></footer>`,1),du=I('<div class="tabs svelte-1acr5fz" role="tablist" aria-label="Field guide section"><button role="tab" type="button"><span class="tab-label">Species</span> <span class="tab-count svelte-1acr5fz"> </span></button> <button role="tab" type="button"><span class="tab-label">Contaminants</span> <span class="tab-count svelte-1acr5fz"> </span></button></div> <!>',1),vu=I('<div class="reference svelte-1acr5fz"><header class="head svelte-1acr5fz"><!> <div class="head-title font-serif svelte-1acr5fz">Field Guide</div> <div class="head-spacer"></div></header> <div class="page scroll-soft svelte-1acr5fz"><!></div></div>');function fu(a,t){$t(t,!0);let i=Me("species"),n=Me(null),l=Me(null);const c=m(()=>e(n)?as.find(U=>U.id===e(n))??null:null),v=m(()=>e(l)?Ys.find(U=>U.id===e(l))??null:null),f=m(()=>e(c)!==null||e(v)!==null);let d=Me(void 0);function u(U){$(n,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function p(U){$(l,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function g(){$(n,null),$(l,null)}function b(U){U!==e(i)&&($(i,U,!0),g(),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"})))}const y=["low","medium","high","critical"],C=["agar","grain","bulk","fruiting"];let E=Me(pa(new Set)),z=Me(pa(new Set)),G=Me(!1);function H(U){const T=new Set(e(E));T.has(U)?T.delete(U):T.add(U),$(E,T,!0)}function w(U){const T=new Set(e(z));T.has(U)?T.delete(U):T.add(U),$(z,T,!0)}function S(){$(E,new Set,!0),$(z,new Set,!0),$(G,!1)}const _=m(()=>Ys.filter(U=>!(e(E).size>0&&!e(E).has(U.severity)||e(z).size>0&&!U.stages.some(T=>e(z).has(T))||e(G)&&!U.salvageable))),B=m(()=>e(E).size>0||e(z).size>0||e(G)),W=["gourmet","functional","educational"],j=["beginner","intermediate","advanced"];let O=Me(pa(new Set)),q=Me(pa(new Set)),ue=Me(!1);function ke(U){const T=new Set(e(O));T.has(U)?T.delete(U):T.add(U),$(O,T,!0)}function Se(U){const T=new Set(e(q));T.has(U)?T.delete(U):T.add(U),$(q,T,!0)}function _e(){$(O,new Set,!0),$(q,new Set,!0),$(ue,!1)}const J=m(()=>as.filter(U=>!(e(O).size>0&&!e(O).has(U.category)||e(q).size>0&&!e(q).has(U.difficulty)||e(ue)&&!U.edible))),le=m(()=>e(O).size>0||e(q).size>0||e(ue)),fe={low:"Low concern",medium:"Moderate",high:"Serious",critical:"Critical"},me={low:"Low",medium:"Mod",high:"Serious",critical:"Critical"},xe={low:"var(--forest)",medium:"var(--attention)",high:"#9C4A1E",critical:"var(--urgent)"},we={low:"sage",medium:"amber",high:"sienna",critical:"rust"},D={agar:"Agar",grain:"Grain",bulk:"Bulk",fruiting:"Fruiting"},N={gourmet:"Gourmet",functional:"Functional",educational:"Educational"},X={gourmet:"amber",functional:"sage",educational:"slate"},ce={gourmet:"var(--attention)",functional:"var(--forest)",educational:"var(--ink-muted)"},ne={beginner:"Beginner",intermediate:"Intermediate",advanced:"Advanced"},ge={beginner:"var(--forest)",intermediate:"var(--attention)",advanced:"#9C4A1E"},Ve={clustered:"Clustered",solitary:"Solitary",bracket:"Bracket",shelf:"Shelf",rosette:"Rosette","ear-shaped":"Ear-shaped",branching:"Branching"},Ee=Ys.length,st=Ys.filter(U=>U.salvageable).length,De=Ee-st,Qe=as.length,yt=as.filter(U=>U.category==="gourmet").length,ct=as.filter(U=>U.category==="functional"||U.functional).length,pt=as.filter(U=>U.difficulty==="beginner").length;function $e(U){const T=U.match(/^[^.!?]+[.!?]/);return T?T[0].trim():U}function rt(U){if(U.key==="Escape"){if(e(f)){g();return}t.onBack()}}var Pt=vu();Kl("keydown",Mr,rt);var Dt=o(Pt),zt=o(Dt);{var ta=U=>{var T=bf();oe("click",T,g),h(U,T)},V=U=>{var T=xf();oe("click",T,function(...Ue){t.onBack?.apply(this,Ue)}),h(U,T)};L(zt,U=>{e(f)?U(ta):U(V,-1)})}var K=r(Dt,2),te=o(K);{var Ge=U=>{const T=m(()=>e(c));var Ue=Lf(),Ke=o(Ue),ht=o(Ke),Ot=o(ht),_t=r(ht,2),wt=o(_t),vt=r(_t,2),Ht=o(vt),Et=r(vt,2);{var Lt=ae=>{var re=kf();h(ae,re)};L(Et,ae=>{e(T).edible&&ae(Lt)})}var Wt=r(Et,2);{var Kt=ae=>{var re=zf();h(ae,re)};L(Wt,ae=>{e(T).functional&&ae(Kt)})}var Ct=r(Wt,2);{var be=ae=>{var re=Cf();h(ae,re)};L(Ct,ae=>{e(T).bioluminescent&&ae(be)})}var Fe=r(Ct,2);{var ot=ae=>{var re=Mf();h(ae,re)};L(Fe,ae=>{e(T).isHybrid&&ae(ot)})}var nt=r(Ke,2),lt=o(nt),jt=r(nt,2),Nt=o(jt),oa=r(Nt);{var Mt=ae=>{var re=Sf(),at=o(re);A(()=>x(at,e(T).authority)),h(ae,re)};L(oa,ae=>{e(T).authority&&ae(Mt)})}var St=r(jt,2);{var Ft=ae=>{var re=Pf(),at=r(o(re)),Xe=o(at);A(It=>x(Xe,It),[()=>e(T).synonyms.join(", ")]),h(ae,re)};L(St,ae=>{e(T).synonyms.length>0&&ae(Ft)})}var la=r(St,2),aa=o(la),Rt=r(la,2),Vt=o(Rt),se=o(Vt),Y=o(se);{var he=ae=>{var re=Tf();A(()=>{s(re,"src",e(T).image),s(re,"alt",e(T).commonName)}),h(ae,re)},Te=ae=>{{let re=m(()=>`d-${e(T).id}`);Us(ae,{get tone(){return X[e(T).category]},get name(){return e(T).commonName},get caption(){return e(T).id},get uid(){return e(re)}})}};L(Y,ae=>{e(T).image?ae(he):ae(Te,-1)})}var et=r(se,2),Ze=o(et),mt=r(Vt,2),ft=o(mt),kt=r(o(ft),2),ma=o(kt),ia=r(ft,2),xa=r(o(ia),2),tt=o(Line truncated
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
var xo=Object.defineProperty;var Vr=a=>{throw TypeError(a)};var ko=(a,t,i)=>t in a?xo(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i;var Xa=(a,t,i)=>ko(a,typeof t!="symbol"?t+"":t,i),vr=(a,t,i)=>t.has(a)||Vr("Cannot "+i);var k=(a,t,i)=>(vr(a,t,"read from private field"),i?i.call(a):t.get(a)),Oe=(a,t,i)=>t.has(a)?Vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,i),Re=(a,t,i,n)=>(vr(a,t,"write to private field"),n?n.call(a,i):t.set(a,i),i),xt=(a,t,i)=>(vr(a,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&n(v)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();const zo=!1;var hn=Array.isArray,Co=Array.prototype.indexOf,vs=Array.prototype.includes,lr=Array.from,mn=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyDescriptors,So=Object.prototype,Po=Array.prototype,gn=Object.getPrototypeOf,Qr=Object.isExtensible;function To(a){return typeof a=="function"}const Ua=()=>{};function Oo(a){for(var t=0;t<a.length;t++)a[t]()}function yn(){var a,t,i=new Promise((n,l)=>{a=n,t=l});return{promise:i,resolve:a,reject:t}}function Eo(a,t){if(Array.isArray(a))return a;if(!(Symbol.iterator in a))return Array.from(a);const i=[];for(const n of a)if(i.push(n),i.length===t)break;return i}const ha=2,fs=4,cr=8,_n=1<<24,ti=16,ai=32,Fi=64,mr=128,Ka=512,Xt=1024,da=2048,li=4096,ba=8192,La=16384,Ai=32768,gr=1<<25,Ki=65536,yr=1<<17,Fo=1<<18,gs=1<<19,Ao=1<<20,oi=1<<25,Vi=65536,_r=1<<21,As=1<<22,Ei=1<<23,Os=Symbol("$state"),Bo=Symbol("legacy props"),Do=Symbol(""),fi=new class extends Error{constructor(){super(...arguments);Xa(this,"name","StaleReactionError");Xa(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jo(a,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function No(a){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Io(a){throw new Error("https://svelte.dev/e/effect_orphan")}function Go(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(a){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ko=1,Vo=2,wn=4,Qo=8,Zo=16,Xo=1,Jo=4,$o=8,el=16,tl=4,bn=1,al=2,na=Symbol(),xn="http://www.w3.org/1999/xhtml";function il(){console.warn("https://svelte.dev/e/derived_inert")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kn(a){return a===this.v}function zn(a,t){return a!=a?t==t:a!==t||a!==null&&typeof a=="object"||typeof a=="function"}function Cn(a){return!zn(a,this.v)}let rl=!1,ja=null;function us(a){ja=a}function $t(a,t=!1,i){ja={p:ja,i:!1,c:null,e:null,s:a,x:null,r:Ye,l:null}}function ea(a){var t=ja,i=t.e;if(i!==null){t.e=null;for(var n of i)Kn(n)}return t.i=!0,ja=t.p,{}}function Mn(){return!0}let Li=[];function Sn(){var a=Li;Li=[],Oo(a)}function _i(a){if(Li.length===0&&!Es){var t=Li;queueMicrotask(()=>{t===Li&&Sn()})}Li.push(a)}function nl(){for(;Li.length>0;)Sn()}function Pn(a){var t=Ye;if(t===null)return We.f|=Ei,a;if((t.f&Ai)===0&&(t.f&fs)===0)throw a;Oi(a,t)}function Oi(a,t){for(;t!==null;){if((t.f&mr)!==0){if((t.f&Ai)===0)throw a;try{t.b.error(a);return}catch(i){a=i}}t=t.parent}throw a}const ol=-7169;function Gt(a,t){a.f=a.f&ol|t}function Lr(a){(a.f&Ka)!==0||a.deps===null?Gt(a,Xt):Gt(a,li)}function Tn(a){if(a!==null)for(const t of a)(t.f&ha)===0||(t.f&Vi)===0||(t.f^=Vi,Tn(t.deps))}function On(a,t,i){(a.f&da)!==0?t.add(a):(a.f&li)!==0&&i.add(a),Tn(a.deps),Gt(a,Xt)}function En(a,t,i){if(a==null)return t(void 0),Ua;const n=ws(()=>a.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}const es=[];function ll(a,t=Ua){let i=null;const n=new Set;function l(f){if(zn(a,f)&&(a=f,i)){const d=!es.length;for(const u of n)u[1](),es.push(u,a);if(d){for(let u=0;u<es.length;u+=2)es[u][0](es[u+1]);es.length=0}}}function c(f){l(f(a))}function v(f,d=Ua){const u=[f,d];return n.add(u),n.size===1&&(i=t(l,c)||Ua),f(aLine truncated
|
||||||
|
\r\f \v\uFEFF`];function dc(a,t,i){var n=a==null?"":""+a;if(t&&(n=n?n+" "+t:t),i){for(var l of Object.keys(i))if(i[l])n=n?n+" "+l:l;else if(n.length)for(var c=l.length,v=0;(v=n.indexOf(l,v))>=0;){var f=v+c;(v===0||rn.includes(n[v-1]))&&(f===n.length||rn.includes(n[f]))?n=(v===0?"":n.substring(0,v))+n.substring(f+1):v=f}}return n===""?null:n}function vc(a,t){return a==null?null:String(a)}function Ie(a,t,i,n,l,c){var v=a.__className;if(v!==i||v===void 0){var f=dc(i,n,c);f==null?a.removeAttribute("class"):t?a.className=f:a.setAttribute("class",f),a.__className=i}else if(c&&l!==c)for(var d in c){var u=!!c[d];(l==null||u!==!!l[d])&&a.classList.toggle(d,u)}return c}function Je(a,t,i,n){var l=a.__style;if(l!==t){var c=vc(t);c==null?a.removeAttribute("style"):a.style.cssText=c,a.__style=t}return n}const fc=Symbol("is custom element"),uc=Symbol("is html");function s(a,t,i,n){var l=pc(a);l[t]!==(l[t]=i)&&(t==="loading"&&(a[Do]=i),i==null?a.removeAttribute(t):typeof i!="string"&&hc(a).includes(t)?a[t]=i:a.setAttribute(t,i))}function pc(a){return a.__attributes??(a.__attributes={[fc]:a.nodeName.includes("-"),[uc]:a.namespaceURI===xn})}var nn=new Map;function hc(a){var t=a.getAttribute("is")||a.nodeName,i=nn.get(t);if(i)return i;nn.set(t,i=[]);for(var n,l=a,c=Element.prototype;c!==l;){n=Mo(l);for(var v in n)n[v].set&&i.push(v);l=gn(l)}return i}function Ys(a,t,i=t){var n=new WeakSet;Bl(a,"input",async l=>{var c=l?a.defaultValue:a.value;if(c=ur(a)?pr(c):c,i(c),Be!==null&&n.add(Be),await Wl(),c!==(c=t())){var v=a.selectionStart,f=a.selectionEnd,d=a.value.length;if(a.value=c??"",f!==null){var u=a.value.length;v===f&&f===d&&u>d?(a.selectionStart=u,a.selectionEnd=u):(a.selectionStart=v,a.selectionEnd=Math.min(f,u))}}}),ws(t)==null&&a.value&&(i(ur(a)?pr(a.value):a.value),Be!==null&&n.add(Be)),Hr(()=>{var l=t();if(a===document.activeElement){var c=Be;if(n.has(c))return}ur(a)&&l===pr(a.value)||a.type==="date"&&!l&&!a.value||l!==a.value&&(a.value=l??"")})}function ur(a){var t=a.type;return t==="number"||t==="range"}function pr(a){return a===""?null:+a}function on(a,t){return a===t||a?.[Os]===t}function vo(a={},t,i,n){var l=ja.r,c=Ye;return Vn(()=>{var v,f;return Hr(()=>{v=f,f=[],ws(()=>{a!==i(...f)&&(t(a,...f),v&&on(i(...v),a)&&t(null,...v))})}),()=>{let d=c;for(;d!==l&&d.parent!==null&&d.parent.f&gr;)d=d.parent;const u=()=>{f&&on(i(...f),a)&&t(null,...f)},p=d.teardown;d.teardown=()=>{u(),p?.()}}}),a}function Jt(a,t,i,n){var l=(i&$o)!==0,c=(i&el)!==0,v=n,f=!0,d=()=>(f&&(f=!1,v=c?ws(n):n),v);let u;if(l){var p=Os in a||Bo in a;u=rs(a,t)?.set??(p&&t in a?H=>a[t]=H:void 0)}var g,b=!1;l?[g,b]=fl(()=>a[t]):g=a[t],g===void 0&&n!==void 0&&(g=d(),u&&(Ho(),u(g)));var y;if(y=()=>{var H=a[t];return H===void 0?d():(f=!0,H)},(i&Jo)===0)return y;if(u){var C=a.$$legacy;return(function(H,w){return arguments.length>0?((!w||C||b)&&u(w?y():H),H):y()})}var E=!1,z=((i&Xo)!==0?dr:jn)(()=>(E=!1,y()));l&&e(z);var G=Ye;return(function(H,w){if(arguments.length>0){const S=w?e(z):l?pa(H):H;return $(z,S),E=!0,v!==void 0&&(v=S),H}return bi&&E||(G.f&La)!==0?z.v:e(z)})}const mc="5";var pn;typeof window<"u"&&((pn=window.__svelte??(window.__svelte={})).v??(pn.v=new Set)).add(mc);const gc=Math.floor(Date.now()/1e3);localStorage.getItem("onboarding_complete");const yc={meta:{device_id:"",firmware_version:"",uptime_s:0,wifi_rssi:0,timestamp_utc:gc},environment:{history:[],live:{temp_c:0,rh_pct:0,co2_ppm:0,co2e_ppm:0,voc_ppb:0,vpd:0},targets:{temp_c:0,rh_pct:0,co2_ppm:0},alerts:[]},chambers:[],hardware:{fans:[],humidifier:{active:!1,mode:"auto",reservoir_pct:0},lights:[],doors:[],cameras:[]},recipe:{id:"",name:"",species:"",stage:"inoculation",stage_started_ts:0,stage_target_duration_h:0,stage_history:[],next_actions:[]},maintenance:{last_wipe_ts:0,last_reservoir_clean_ts:0},ui:{selected_bag_id:null,onboarding_complete:!1}},_c={};function wc(a){return structuredClone(a)}const ss=_c?.VITE_DAEMON_URL,hr=ss?ss.replace(/^http/,"ws")+"/ws":null;function ln(a,t){return .6108*Math.exp(17.27*a/(a+237.3))*(1-t/100)}function bc(){let t=pa(wc(yc)),i=null,n=null,l=null,c=Me(!1);function v(w){if(t.meta.timestamp_utc=w.t,w.e){w.e.temp!==void 0&&(t.environment.live.temp_c=w.e.temp),w.e.rh!==void 0&&(t.environment.live.rh_pct=w.e.rh),w.e.co2!==void 0&&(t.environment.live.co2_ppm=w.e.co2),w.e.vpd!==void 0&&(t.environment.live.vpd=w.e.vpd);const S={ts:w.t,temp_c:t.environment.live.temp_c,rh_pct:t.environment.live.rh_pct,co2_ppm:t.environment.live.co2_ppm,voc_ppb:t.environment.live.voc_ppb,vpd:t.environment.live.vpd};t.environment.history.push(S),t.environment.history.length>1441&&t.environment.history.shift()}w.hw&&(w.hw.fans&&w.hw.fans.forEach((S,_)=>{t.hardware.fans[_]&&(t.hardware.fans[_].speed_pct=S)}),w.hw.humidifier!==void 0&&(t.hardware.humidifier.active=w.hw.humidifier))}function f(w){const S=t.chambers.find(B=>B.id===w.chamber_id);if(!S)return;const _=w.ambient;if(_.valid){if(S.environment.temp_c=_.temp_c,S.environment.rh_pct=_.humidity_pct,w.co2?.valid&&(S.environment.co2_p
Line truncated
|
||||||
|
L13 19.2 Q13 21.1 11.1 21.1 L2.9 21.1 Q1 21.1 1 19.2
|
||||||
|
L1 6.2 Q1 5 2.2 4.4 L4.6 3.3 Q5 3 5 2.6 Z" fill="none" stroke="#d99050" stroke-width="1.1" class="reservoir-halo svelte-16kic4w" pointer-events="none"></path>`),od=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),ld=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),cd=ie('<g class="fog-band svelte-16kic4w"><ellipse fill="url(#mist-puff)" class="svelte-16kic4w"></ellipse></g>'),dd=ie('<g filter="url(#mist-soften)" clip-path="url(#mist-clip)" pointer-events="none" class="svelte-16kic4w"></g>'),vd=I(`<div class="twin-wrap svelte-16kic4w"><div class="labels svelte-16kic4w"><div class="label-card svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Colonization</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div> <div class="label-card right svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Fruiting</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div></div> <svg class="appliance svelte-16kic4w" viewBox="-48 -30 576 475" role="img"><defs class="svelte-16kic4w"><radialGradient id="room-spot" cx="50%" cy="0%" r="75%" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff7e2" stop-opacity="0.75" class="svelte-16kic4w"></stop><stop offset="40%" stop-color="#fff7e2" stop-opacity="0.22" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff7e2" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="floor-reflection" x1="0" y1="0" x2="0" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff" stop-opacity="0.35" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff" stop-opacity="0" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="body-grad" x1="0" y1="0" x2="1" y2="0.2" class="svelte-16kic4w"><stop offset="0%" stop-color="#cac9d1" class="svelte-16kic4w"></stop><stop offset="45%" stop-color="#efefef" class="svelte-16kic4w"></stop><stop offset="65%" stop-color="#fff" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="col-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#0c0f0a" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#161a12" class="svelte-16kic4w"></stop></linearGradient><pattern id="col-pattern" patternUnits="userSpaceOnUse" width="250" height="500" class="svelte-16kic4w"><image href="/img/illustration_mycelium.webp" x="-10" y="45" width="250" height="500" opacity="0.25" class="svelte-16kic4w"></image></pattern><linearGradient id="fruit-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#eee" class="svelte-16kic4w"></stop><stop offset="20%" stop-color="#fafafa" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#efefef" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="col-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="60%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="work-spot" cx="50%" cy="0%" r="45%" fx="50%" fy="0%" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.95" class="svelte-16kic4w"></stop><stop offset="10%" stop-color="#fffefb" stop-opacity="0.85" class="svelte-16kic4w"></stop><stop offset="30%" stop-color="#f5f3ed" stop-opacity="0.55" class="svelte-16kic4w"></stop><stop offset="60%" stop-color="#e8e6e0" stop-opacity="0.2" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#e8e6e0" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="fruit-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="70%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="ajar-leak-left" x1="0" y1="0" x2="1" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="ajar-leak-right" x1="1" y1="0" x2="0" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="ajar-bloom-col" cx="0%" cy="50%" r="85%"
Line truncated
|
||||||
|
L9 0.6
|
||||||
|
L9 2.6
|
||||||
|
Q9 3 9.4 3.3
|
||||||
|
L11.8 4.4
|
||||||
|
Q13 5 13 6.2
|
||||||
|
L13 19.2
|
||||||
|
Q13 21.1 11.1 21.1
|
||||||
|
L2.9 21.1
|
||||||
|
Q1 21.1 1 19.2
|
||||||
|
L1 6.2
|
||||||
|
Q1 5 2.2 4.4
|
||||||
|
L4.6 3.3
|
||||||
|
Q5 3 5 2.6
|
||||||
|
Z" fill="#fbf8ec" stroke="#9d9377" stroke-width="0.7" stroke-linejoin="round" class="svelte-16kic4w"></path><g clip-path="url(#reservoir-inside)" class="svelte-16kic4w"><rect x="0" width="14" height="22" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.45" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.35" fill="#ffffff" opacity="0.22" class="svelte-16kic4w"></rect><!></g><path d="M2.1 7
|
||||||
|
Q2.1 6 2.7 6
|
||||||
|
L2.7 18
|
||||||
|
Q2.7 19 2.1 19
|
||||||
|
Z" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></path><line x1="5" y1="2.6" x2="9" y2="2.6" stroke="#8b8269" stroke-width="0.4" opacity="0.35" class="svelte-16kic4w"></line><!></g><g transform="translate(100, 377)" aria-label="Colonization fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g><g transform="translate(380, 377)" aria-label="Fruiting fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g></g><!></svg></div>`);function fd(a,t){$t(t,!0);const i=Jt(t,"showGallery",3,!0);function n(M,Z,Q){Q.stopPropagation(),t.onAddBag?.(M,Z)}const l=m(()=>gt.state.chambers),c=m(()=>e(l).find(M=>M.type==="colonization")??e(l)[0]??{slots:[]}),v=m(()=>e(l).find(M=>M.type==="fruiting")??e(l)[1]??{slots:[]}),f=m(()=>gt.state.hardware),d=m(()=>e(f).humidifier.active),u=m(()=>{const M=new Set,Z=[];for(const pe of e(l)){for(const de of pe.slots){if(!de.bag)continue;const Ae=de.bag.tag.strain_name,ut=Lc(Ae);if(ut&&!M.has(Ae)&&(M.add(Ae),Z.push({strain:Ae,src:ut,slotId:de.bag.slot_id}),Z.length>=6))break}if(Z.length>=6)break}const Q=[{strain:"Family Portrait",src:"/img/illustration.webp",slotId:"est. the Proterozoic",isGeneric:!0},{strain:"The Boys",src:"/img/illustration_oysters.webp",slotId:"oil on canvas · 2024",isGeneric:!0},{strain:"Mycelial Dreams",src:"/img/illustration_mycelium.webp",slotId:"acrylic on canvas · 2025",isGeneric:!0},{strain:"Fungi Friends",src:"/img/illustration_mycelium.webp",slotId:"watercolor · 2025",isGeneric:!0},{strain:"Spore Sisters",src:"/img/illustration_mycelium.webp",slotId:"mixed media · 2025",isGeneric:!0}];for(const pe of Q){if(Z.length>=6)break;Z.push(pe)}return Z});function p(M){return M.isGeneric?M.slotId:`Slot ${M.slotId}`}const g=[M=>({tx:-12,ty:168,rotate:-3.5,frame:{x:-21,y:-34,w:42,h:60,fill:"#4a3a24"},liner:{stroke:"#7a5f3d",opacity:.8},mat:{fill:"#f3e9ce"},image:{href:M.src,x:-16,y:-29,w:32,h:44},placard:{x:-16,y:30,w:32,h:11},title:{text:M.strain,y:35,size:4.2},subtitle:{text:p(M),y:39.2,size:3}}),M=>({tx:490,ty:65,rotate:2.5,frame:{x:-18,y:-26,w:36,h:46,fill:"#8a6f3a",stroke:"#5a461e"},liner:{stroke:"#c2a55a",opacity:.75},mat:{fill:"#fef7e4"},image:{href:M.src,x:-13.5,y:-21.5,w:27,h:32},placard:{x:-14,y:24,w:28,h:10.5,fill:"#f3ead0",stroke:"#a89466"},title:{text:M.strain,y:28.8,size:4.2},subtitle:{text:p(M),y:32.8,size:2.9}}),()=>({tx:492,ty:252,rotate:3.4,frame:{x:-22,y:-30,w:44,h:50,fill:"#cbb592",stroke:"#85714b"},mat:{fill:"#fff8e7"},image:{href:"/img/illustration_mycelium.webp",x:-19,y:-27,w:38,h:44,opacity:.85},lines:[{text:"Live",y:-14,size:6.5,fill:"#fff"},{text:"Laugh",y:-6,size:6.5,fill:"#fff"},{text:"Lignify",y:3,size:6.5,fill:"#fff"}],divider:{y:12,width:14,stroke:"#b09870",strokeWidth:.4,opacity:.7},placard:{x:-19,y:22,w:40,h:12,fill:"#ece2c3",stroke:"#a89466"},title:{text:"Welcome home",y:27.5,size:4.5},subtitle:{text:"hand-stitched, probably",y:32,size:3.4}}),M=>({tx:-8,ty:68,rotate:0,frame:{x:-19,y:-30,w:38,h:52,fill:"#5a4632"},liner:{stroke:"#8a6f4a",opacity:.75},mat:{fill:"#f4ebd1"},image:{href:M.src,x:-14,y:-25,w:28,h:38},placard:{x:-14,y:26,w:28,h:10,fill:"#f0e5c8"},title:{text:M.strain,y:30,size:4},subtitle:{text:p(M),y:34,size:2.8}}),M=>({tx:-12,ty:260,rotate:.2,frame:{x:-20,y:-28,w:40,h:50,fill:"#6b5438"},liner:{stroke:"#9a7f58",opacity:.7},mat:{fill:"#f8f0da"},image:{href:M.src,x:-15,y:-23,w:30,h:36},placard:{x:-15,y:27,w:30,h:10.5,fill:"#f3e8cc"},title:{text:M.strain,y:31.2,size:4.1},subtitle:{text:p(M),y:35.2,size:2.9}}),M=>({tx:490,ty:142,rotate:-2,frame:{x:-22.5,y:-22,w:45,h:57,fill:"#7a5f3d"},liner:{stroke:"#b09870",opacity:.7},mat:{fill:"#fef9e8"},image:{href:M.src,x:-18,y:-17.5,w:36,h:47},placard:{x:-20,y:38,w:40,h:10,fill:"#f4ebd1",stroke:"#a89466"},title:{text:M.strain,y:42.5,size:5},subtitle:{text:p(M),y:46.5,size:3.5}})],b=m(()=>g.map((M,Z)=>{const Q=e(u)[Z];return M?M.length===0?M():Q?M(Q):null:null})),y=m(()=>e(f).fans.find(M=>M.chamber_id==="main")??e(f).fans[0]??{speed_pct:0}),C=m(()=>e(f).fans.find(M=>M.chamber_id==="second")??e(f).fans[1]??{speed_pct:0});function E(M){return M>0?`${(.5+(1-M/100)*2.4).toFixed(2)}s`:"4s"}const z=m(()=>(e(y)?.speed_pct??0)>0),G=m(()=>(e(C)?.speed_pct??0)>0),H=m(()=>E(e(y)?.speed_pct??0)),w=m(()=>E(e(C)?.speed_pct??0)),S=m(()=>e(f).lights.find(M=>M.chamber_id==="main"&&M.purpose==="work")??{on:!1,brightness:0,color_hex:"#f4ecd8"}),_=m(()=>e(f).lights.find(M=>M.chamber_id==="second"&&M.purpose==="grow")??{on:!1,brightness:0,color_hex:"#f7f0dc"}),B=m(()=>e(f).doors.find(M=>M.chamber_id==="main")?.open??!1),W=m(()=>e(f).doors.find(M=>M.chamber_id==="second")?.open??!1),j={x:36,y:52,w:192,h:297},O={x:252,y:52,w:192,h:297};function q(M){const Z=M.h/3;return[M.y,M.y+Z,M.y+2*Z]}function ue(M){const Z=[[{Line truncated
|
||||||
|
functional polypores, and a couple of specimens kept only for their looks, with ideal
|
||||||
|
climate envelopes and yields you can expect from each.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">species in the catalogue</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">beginner-friendly</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--attention)"> </span> <span class="hs-label svelte-1acr5fz">gourmet</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">prepared as extracts</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter species"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Category</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Difficulty</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Edible only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">Numbers are guides, not guarantees. Every strain, every substrate,
|
||||||
|
every room runs a little differently — trust what you see in the bag.</p></footer>`,1),tu=I('<button type="button"><span class="sev-dot svelte-1acr5fz"></span> </button>'),au=I('<button type="button"> </button>'),iu=I('<button class="chip chip-clear svelte-1acr5fz" type="button">Clear</button>'),su=I('<div class="results-note svelte-1acr5fz">Showing <strong class="svelte-1acr5fz"> </strong> </div>'),ru=I('<div class="empty svelte-1acr5fz"><p>No specimens match those filters.</p> <button class="btn-ghost" type="button">Clear filters</button></div>'),nu=I('<span class="salv-mark svelte-1acr5fz" title="Often salvageable" aria-label="Often salvageable"><svg width="11" height="11" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg></span>'),ou=I('<span class="stage-pip svelte-1acr5fz"> </span>'),lu=I('<button class="card svelte-1acr5fz" type="button"><div class="card-art svelte-1acr5fz"><!> <span class="sev-badge svelte-1acr5fz"><span class="sev-badge-dot svelte-1acr5fz"></span> </span> <!></div> <div class="card-body svelte-1acr5fz"><h3 class="card-name font-serif svelte-1acr5fz"> </h3> <div class="card-sci italic svelte-1acr5fz"> </div> <div class="card-chips svelte-1acr5fz"></div> <p class="card-hook svelte-1acr5fz"> </p></div></button>'),cu=I('<section class="grid svelte-1acr5fz" aria-label="Specimens"></section>'),du=I(`<section class="hero svelte-1acr5fz"><div class="eyebrow">Cultivar · Contaminants</div> <h1 class="hero-head font-serif svelte-1acr5fz">Things that may grow <span class="italic svelte-1acr5fz">alongside your mushrooms.</span></h1> <p class="hero-lede svelte-1acr5fz">Not every fuzzy thing is bad news. Some are easy fixes, some are just
|
||||||
|
physiology, a few are worth a careful discard. Here's a short field
|
||||||
|
guide to what you might see, how to recognise it, and what to do.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">specimens catalogued</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">often salvageable</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--urgent)"> </span> <span class="hs-label svelte-1acr5fz">best to discard</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter contaminants"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Severity</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Stage</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Salvageable only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">A curated sample. When in doubt, bag it, seal it, and err on the side
|
||||||
|
of discarding — it's cheaper than losing a whole room to spores.</p></footer>`,1),vu=I('<div class="tabs svelte-1acr5fz" role="tablist" aria-label="Field guide section"><button role="tab" type="button"><span class="tab-label">Species</span> <span class="tab-count svelte-1acr5fz"> </span></button> <button role="tab" type="button"><span class="tab-label">Contaminants</span> <span class="tab-count svelte-1acr5fz"> </span></button></div> <!>',1),fu=I('<div class="reference svelte-1acr5fz"><header class="head svelte-1acr5fz"><!> <div class="head-title font-serif svelte-1acr5fz">Field Guide</div> <div class="head-spacer"></div></header> <div class="page scroll-soft svelte-1acr5fz"><!></div></div>');function uu(a,t){$t(t,!0);let i=Me("species"),n=Me(null),l=Me(null);const c=m(()=>e(n)?as.find(U=>U.id===e(n))??null:null),v=m(()=>e(l)?Us.find(U=>U.id===e(l))??null:null),f=m(()=>e(c)!==null||e(v)!==null);let d=Me(void 0);function u(U){$(n,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function p(U){$(l,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function g(){$(n,null),$(l,null)}function b(U){U!==e(i)&&($(i,U,!0),g(),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"})))}const y=["low","medium","high","critical"],C=["agar","grain","bulk","fruiting"];let E=Me(pa(new Set)),z=Me(pa(new Set)),G=Me(!1);function H(U){const T=new Set(e(E));T.has(U)?T.delete(U):T.add(U),$(E,T,!0)}function w(U){const T=new Set(e(z));T.has(U)?T.delete(U):T.add(U),$(z,T,!0)}function S(){$(E,new Set,!0),$(z,new Set,!0),$(G,!1)}const _=m(()=>Us.filter(U=>!(e(E).size>0&&!e(E).has(U.severity)||e(z).size>0&&!U.stages.some(T=>e(z).has(T))||e(G)&&!U.salvageable))),B=m(()=>e(E).size>0||e(z).size>0||e(G)),W=["gourmet","functional","educational"],j=["beginner","intermediate","advanced"];let O=Me(pa(new Set)),q=Me(pa(new Set)),ue=Me(!1);function ke(U){const T=new Set(e(O));T.has(U)?T.delete(U):T.add(U),$(O,T,!0)}function Se(U){const T=new Set(e(q));T.has(U)?T.delete(U):T.add(U),$(q,T,!0)}function _e(){$(O,new Set,!0),$(q,new Set,!0),$(ue,!1)}const J=m(()=>as.filter(U=>!(e(O).size>0&&!e(O).has(U.category)||e(q).size>0&&!e(q).has(U.difficulty)||e(ue)&&!U.edible))),le=m(()=>e(O).size>0||e(q).size>0||e(ue)),fe={low:"Low concern",medium:"Moderate",high:"Serious",critical:"Critical"},me={low:"Low",medium:"Mod",high:"Serious",critical:"Critical"},xe={low:"var(--forest)",medium:"var(--attention)",high:"#9C4A1E",critical:"var(--urgent)"},we={low:"sage",medium:"amber",high:"sienna",critical:"rust"},D={agar:"Agar",grain:"Grain",bulk:"Bulk",fruiting:"Fruiting"},N={gourmet:"Gourmet",functional:"Functional",educational:"Educational"},X={gourmet:"amber",functional:"sage",educational:"slate"},ce={gourmet:"var(--attention)",functional:"var(--forest)",educational:"var(--ink-muted)"},ne={beginner:"Beginner",intermediate:"Intermediate",advanced:"Advanced"},ge={beginner:"var(--forest)",intermediate:"var(--attention)",advanced:"#9C4A1E"},Ve={clustered:"Clustered",solitary:"Solitary",bracket:"Bracket",shelf:"Shelf",rosette:"Rosette","ear-shaped":"Ear-shaped",branching:"Branching"},Ee=Us.length,st=Us.filter(U=>U.salvageable).length,De=Ee-st,Qe=as.length,yt=as.filter(U=>U.category==="gourmet").length,ct=as.filter(U=>U.category==="functional"||U.functional).length,pt=as.filter(U=>U.difficulty==="beginner").length;function $e(U){const T=U.match(/^[^.!?]+[.!?]/);return T?T[0].trim():U}function rt(U){if(U.key==="Escape"){if(e(f)){g();return}t.onBack()}}var Pt=fu();Kl("keydown",Sr,rt);var Dt=o(Pt),zt=o(Dt);{var ta=U=>{var T=xf();oe("click",T,g),h(U,T)},V=U=>{var T=kf();oe("click",T,function(...Ue){t.onBack?.apply(this,Ue)}),h(U,T)};L(zt,U=>{e(f)?U(ta):U(V,-1)})}var K=r(Dt,2),te=o(K);{var Ge=U=>{const T=m(()=>e(c));var Ue=jf(),Ke=o(Ue),ht=o(Ke),Ot=o(ht),_t=r(ht,2),wt=o(_t),vt=r(_t,2),Ht=o(vt),Et=r(vt,2);{var Lt=ae=>{var re=zf();h(ae,re)};L(Et,ae=>{e(T).edible&&ae(Lt)})}var Wt=r(Et,2);{var Kt=ae=>{var re=Cf();h(ae,re)};L(Wt,ae=>{e(T).functional&&ae(Kt)})}var Ct=r(Wt,2);{var be=ae=>{var re=Mf();h(ae,re)};L(Ct,ae=>{e(T).bioluminescent&&ae(be)})}var Fe=r(Ct,2);{var ot=ae=>{var re=Sf();h(ae,re)};L(Fe,ae=>{e(T).isHybrid&&ae(ot)})}var nt=r(Ke,2),lt=o(nt),jt=r(nt,2),Nt=o(jt),oa=r(Nt);{var Mt=ae=>{var re=Pf(),at=o(re);A(()=>x(at,e(T).authority)),h(ae,re)};L(oa,ae=>{e(T).authority&&ae(Mt)})}var St=r(jt,2);{var Ft=ae=>{var re=Tf(),at=r(o(re)),Xe=o(at);A(It=>x(Xe,It),[()=>e(T).synonyms.join(", ")]),h(ae,re)};L(St,ae=>{e(T).synonyms.length>0&&ae(Ft)})}var la=r(St,2),aa=o(la),Rt=r(la,2),Vt=o(Rt),se=o(Vt),Y=o(se);{var he=ae=>{var re=Of();A(()=>{s(re,"src",e(T).image),s(re,"alt",e(T).commonName)}),h(ae,re)},Te=ae=>{{let re=m(()=>`d-${e(T).id}`);Ks(ae,{get tone(){return X[e(T).category]},get name(){return e(T).commonName},get caption(){return e(T).id},get uid(){return e(re)}})}};L(Y,ae=>{e(T).image?ae(he):ae(Te,-1)})}var et=r(se,2),Ze=o(et),mt=r(Vt,2),ft=o(mt),kt=r(o(ft),2),ma=o(kt),ia=r(ft,2),xa=r(o(ia),2),tt=o(Line truncated
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
var xo=Object.defineProperty;var Vr=a=>{throw TypeError(a)};var ko=(a,t,i)=>t in a?xo(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i;var Xa=(a,t,i)=>ko(a,typeof t!="symbol"?t+"":t,i),vr=(a,t,i)=>t.has(a)||Vr("Cannot "+i);var k=(a,t,i)=>(vr(a,t,"read from private field"),i?i.call(a):t.get(a)),Oe=(a,t,i)=>t.has(a)?Vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,i),Re=(a,t,i,n)=>(vr(a,t,"write to private field"),n?n.call(a,i):t.set(a,i),i),xt=(a,t,i)=>(vr(a,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&n(v)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();const zo=!1;var hn=Array.isArray,Co=Array.prototype.indexOf,ds=Array.prototype.includes,lr=Array.from,mn=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyDescriptors,So=Object.prototype,Po=Array.prototype,gn=Object.getPrototypeOf,Qr=Object.isExtensible;function To(a){return typeof a=="function"}const Ua=()=>{};function Oo(a){for(var t=0;t<a.length;t++)a[t]()}function yn(){var a,t,i=new Promise((n,l)=>{a=n,t=l});return{promise:i,resolve:a,reject:t}}function Eo(a,t){if(Array.isArray(a))return a;if(!(Symbol.iterator in a))return Array.from(a);const i=[];for(const n of a)if(i.push(n),i.length===t)break;return i}const ha=2,vs=4,cr=8,_n=1<<24,ti=16,ai=32,Fi=64,mr=128,Ka=512,Xt=1024,da=2048,li=4096,ba=8192,La=16384,Ai=32768,gr=1<<25,Ki=65536,yr=1<<17,Fo=1<<18,ms=1<<19,Ao=1<<20,oi=1<<25,Vi=65536,_r=1<<21,As=1<<22,Ei=1<<23,Os=Symbol("$state"),Bo=Symbol("legacy props"),Do=Symbol(""),fi=new class extends Error{constructor(){super(...arguments);Xa(this,"name","StaleReactionError");Xa(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jo(a,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function No(a){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Io(a){throw new Error("https://svelte.dev/e/effect_orphan")}function Go(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(a){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ko=1,Vo=2,wn=4,Qo=8,Zo=16,Xo=1,Jo=4,$o=8,el=16,tl=4,bn=1,al=2,na=Symbol(),xn="http://www.w3.org/1999/xhtml";function il(){console.warn("https://svelte.dev/e/derived_inert")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kn(a){return a===this.v}function zn(a,t){return a!=a?t==t:a!==t||a!==null&&typeof a=="object"||typeof a=="function"}function Cn(a){return!zn(a,this.v)}let rl=!1,ja=null;function fs(a){ja=a}function $t(a,t=!1,i){ja={p:ja,i:!1,c:null,e:null,s:a,x:null,r:Ye,l:null}}function ea(a){var t=ja,i=t.e;if(i!==null){t.e=null;for(var n of i)Kn(n)}return t.i=!0,ja=t.p,{}}function Mn(){return!0}let Li=[];function Sn(){var a=Li;Li=[],Oo(a)}function _i(a){if(Li.length===0&&!Es){var t=Li;queueMicrotask(()=>{t===Li&&Sn()})}Li.push(a)}function nl(){for(;Li.length>0;)Sn()}function Pn(a){var t=Ye;if(t===null)return We.f|=Ei,a;if((t.f&Ai)===0&&(t.f&vs)===0)throw a;Oi(a,t)}function Oi(a,t){for(;t!==null;){if((t.f&mr)!==0){if((t.f&Ai)===0)throw a;try{t.b.error(a);return}catch(i){a=i}}t=t.parent}throw a}const ol=-7169;function Gt(a,t){a.f=a.f&ol|t}function Lr(a){(a.f&Ka)!==0||a.deps===null?Gt(a,Xt):Gt(a,li)}function Tn(a){if(a!==null)for(const t of a)(t.f&ha)===0||(t.f&Vi)===0||(t.f^=Vi,Tn(t.deps))}function On(a,t,i){(a.f&da)!==0?t.add(a):(a.f&li)!==0&&i.add(a),Tn(a.deps),Gt(a,Xt)}function En(a,t,i){if(a==null)return t(void 0),Ua;const n=_s(()=>a.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}const es=[];function ll(a,t=Ua){let i=null;const n=new Set;function l(f){if(zn(a,f)&&(a=f,i)){const d=!es.length;for(const u of n)u[1](),es.push(u,a);if(d){for(let u=0;u<es.length;u+=2)es[u][0](es[u+1]);es.length=0}}}function c(f){l(f(a))}function v(f,d=Ua){const u=[f,d];return n.add(u),n.size===1&&(i=t(l,c)||Ua),f(aLine truncated
|
||||||
|
\r\f \v\uFEFF`];function dc(a,t,i){var n=a==null?"":""+a;if(t&&(n=n?n+" "+t:t),i){for(var l of Object.keys(i))if(i[l])n=n?n+" "+l:l;else if(n.length)for(var c=l.length,v=0;(v=n.indexOf(l,v))>=0;){var f=v+c;(v===0||rn.includes(n[v-1]))&&(f===n.length||rn.includes(n[f]))?n=(v===0?"":n.substring(0,v))+n.substring(f+1):v=f}}return n===""?null:n}function vc(a,t){return a==null?null:String(a)}function Ie(a,t,i,n,l,c){var v=a.__className;if(v!==i||v===void 0){var f=dc(i,n,c);f==null?a.removeAttribute("class"):t?a.className=f:a.setAttribute("class",f),a.__className=i}else if(c&&l!==c)for(var d in c){var u=!!c[d];(l==null||u!==!!l[d])&&a.classList.toggle(d,u)}return c}function Je(a,t,i,n){var l=a.__style;if(l!==t){var c=vc(t);c==null?a.removeAttribute("style"):a.style.cssText=c,a.__style=t}return n}const fc=Symbol("is custom element"),uc=Symbol("is html");function s(a,t,i,n){var l=pc(a);l[t]!==(l[t]=i)&&(t==="loading"&&(a[Do]=i),i==null?a.removeAttribute(t):typeof i!="string"&&hc(a).includes(t)?a[t]=i:a.setAttribute(t,i))}function pc(a){return a.__attributes??(a.__attributes={[fc]:a.nodeName.includes("-"),[uc]:a.namespaceURI===xn})}var nn=new Map;function hc(a){var t=a.getAttribute("is")||a.nodeName,i=nn.get(t);if(i)return i;nn.set(t,i=[]);for(var n,l=a,c=Element.prototype;c!==l;){n=Mo(l);for(var v in n)n[v].set&&i.push(v);l=gn(l)}return i}function Ys(a,t,i=t){var n=new WeakSet;Bl(a,"input",async l=>{var c=l?a.defaultValue:a.value;if(c=ur(a)?pr(c):c,i(c),Be!==null&&n.add(Be),await Wl(),c!==(c=t())){var v=a.selectionStart,f=a.selectionEnd,d=a.value.length;if(a.value=c??"",f!==null){var u=a.value.length;v===f&&f===d&&u>d?(a.selectionStart=u,a.selectionEnd=u):(a.selectionStart=v,a.selectionEnd=Math.min(f,u))}}}),_s(t)==null&&a.value&&(i(ur(a)?pr(a.value):a.value),Be!==null&&n.add(Be)),Hr(()=>{var l=t();if(a===document.activeElement){var c=Be;if(n.has(c))return}ur(a)&&l===pr(a.value)||a.type==="date"&&!l&&!a.value||l!==a.value&&(a.value=l??"")})}function ur(a){var t=a.type;return t==="number"||t==="range"}function pr(a){return a===""?null:+a}function on(a,t){return a===t||a?.[Os]===t}function vo(a={},t,i,n){var l=ja.r,c=Ye;return Vn(()=>{var v,f;return Hr(()=>{v=f,f=[],_s(()=>{a!==i(...f)&&(t(a,...f),v&&on(i(...v),a)&&t(null,...v))})}),()=>{let d=c;for(;d!==l&&d.parent!==null&&d.parent.f&gr;)d=d.parent;const u=()=>{f&&on(i(...f),a)&&t(null,...f)},p=d.teardown;d.teardown=()=>{u(),p?.()}}}),a}function Jt(a,t,i,n){var l=(i&$o)!==0,c=(i&el)!==0,v=n,f=!0,d=()=>(f&&(f=!1,v=c?_s(n):n),v);let u;if(l){var p=Os in a||Bo in a;u=ss(a,t)?.set??(p&&t in a?H=>a[t]=H:void 0)}var g,b=!1;l?[g,b]=fl(()=>a[t]):g=a[t],g===void 0&&n!==void 0&&(g=d(),u&&(Ho(),u(g)));var y;if(y=()=>{var H=a[t];return H===void 0?d():(f=!0,H)},(i&Jo)===0)return y;if(u){var C=a.$$legacy;return(function(H,w){return arguments.length>0?((!w||C||b)&&u(w?y():H),H):y()})}var E=!1,z=((i&Xo)!==0?dr:jn)(()=>(E=!1,y()));l&&e(z);var G=Ye;return(function(H,w){if(arguments.length>0){const S=w?e(z):l?pa(H):H;return $(z,S),E=!0,v!==void 0&&(v=S),H}return bi&&E||(G.f&La)!==0?z.v:e(z)})}const mc="5";var pn;typeof window<"u"&&((pn=window.__svelte??(window.__svelte={})).v??(pn.v=new Set)).add(mc);const gc=Math.floor(Date.now()/1e3);localStorage.getItem("onboarding_complete");const yc={meta:{device_id:"",firmware_version:"",uptime_s:0,wifi_rssi:0,timestamp_utc:gc},environment:{history:[],live:{temp_c:0,rh_pct:0,co2_ppm:0,co2e_ppm:0,voc_ppb:0,vpd:0},targets:{temp_c:0,rh_pct:0,co2_ppm:0},alerts:[]},chambers:[{id:"colonization",label:"Colonization",type:"colonization",environment:{temp_c:0,rh_pct:0,co2e_ppm:0,voc_ppb:0},slots:[]},{id:"fruiting",label:"Fruiting",type:"fruiting",environment:{temp_c:0,rh_pct:0,co2_ppm:0,voc_ppb:0},slots:[]}],hardware:{fans:[],humidifier:{active:!1,mode:"auto",reservoir_pct:0},lights:[],doors:[],cameras:[]},recipe:{id:"",name:"",species:"",stage:"inoculation",stage_started_ts:0,stage_target_duration_h:0,stage_history:[],next_actions:[]},maintenance:{last_wipe_ts:0,last_reservoir_clean_ts:0},ui:{selected_bag_id:null,onboarding_complete:!1}},_c={};function wc(a){return structuredClone(a)}const Ts=_c?.VITE_DAEMON_URL??`${window.location.protocol}//${window.location.host}`,hr=Ts.replace(/^http/,"ws")+"/ws";function ln(a,t){return .6108*Math.exp(17.27*a/(a+237.3))*(1-t/100)}function bc(){let t=pa(wc(yc)),i=null,n=null,l=null,c=Me(!1);function v(w){if(t.meta.timestamp_utc=w.t,w.e){w.e.temp!==void 0&&(t.environment.live.temp_c=w.e.temp),w.e.rh!==void 0&&(t.environment.live.rh_pct=w.e.rh),w.e.co2!==void 0&&(t.environment.live.co2_ppm=w.e.co2),w.e.vpd!==void 0&&(t.environment.live.vpd=w.e.vpd);const S={ts:w.t,temp_c:t.environment.live.temp_c,rh_pct:t.environment.live.rh_pct,co2_ppm:t.environment.live.co2_ppm,voc_ppb:t.environment.live.voc_ppb,vpd:t.environment.live.vpd};t.environment.history.push(S),t.environment.history.length>1441&&t.environment.history.shift()}w.hw&&(w.hw.fans&&w.hw.fans.forEach((S,_)=>{t.hardware.fans[_]&&(t.hardware.fans[_].speed_pct=S)}),w.
Line truncated
|
||||||
|
L13 19.2 Q13 21.1 11.1 21.1 L2.9 21.1 Q1 21.1 1 19.2
|
||||||
|
L1 6.2 Q1 5 2.2 4.4 L4.6 3.3 Q5 3 5 2.6 Z" fill="none" stroke="#d99050" stroke-width="1.1" class="reservoir-halo svelte-16kic4w" pointer-events="none"></path>`),od=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),ld=ie('<path d="M0,-0.7 Q1.3,-2.8 0,-4.8 Q-1.3,-2.8 0,-0.7 Z" class="svelte-16kic4w"></path>'),cd=ie('<g class="fog-band svelte-16kic4w"><ellipse fill="url(#mist-puff)" class="svelte-16kic4w"></ellipse></g>'),dd=ie('<g filter="url(#mist-soften)" clip-path="url(#mist-clip)" pointer-events="none" class="svelte-16kic4w"></g>'),vd=I(`<div class="twin-wrap svelte-16kic4w"><div class="labels svelte-16kic4w"><div class="label-card svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Colonization</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div> <div class="label-card right svelte-16kic4w"><div class="lc-kicker svelte-16kic4w">Fruiting</div> <div class="lc-meta svelte-16kic4w"><span class="lc-count svelte-16kic4w"> <span class="lc-total svelte-16kic4w"> </span></span> <span class="lc-desc svelte-16kic4w"> </span></div></div></div> <svg class="appliance svelte-16kic4w" viewBox="-48 -30 576 475" role="img"><defs class="svelte-16kic4w"><radialGradient id="room-spot" cx="50%" cy="0%" r="75%" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff7e2" stop-opacity="0.75" class="svelte-16kic4w"></stop><stop offset="40%" stop-color="#fff7e2" stop-opacity="0.22" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff7e2" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="floor-reflection" x1="0" y1="0" x2="0" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#fff" stop-opacity="0.35" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#fff" stop-opacity="0" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="body-grad" x1="0" y1="0" x2="1" y2="0.2" class="svelte-16kic4w"><stop offset="0%" stop-color="#cac9d1" class="svelte-16kic4w"></stop><stop offset="45%" stop-color="#efefef" class="svelte-16kic4w"></stop><stop offset="65%" stop-color="#fff" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="col-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#0c0f0a" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#161a12" class="svelte-16kic4w"></stop></linearGradient><pattern id="col-pattern" patternUnits="userSpaceOnUse" width="250" height="500" class="svelte-16kic4w"><image href="/img/illustration_mycelium.webp" x="-10" y="45" width="250" height="500" opacity="0.25" class="svelte-16kic4w"></image></pattern><linearGradient id="fruit-inner" x1="0.5" y1="0" x2="0.5" y2="1" class="svelte-16kic4w"><stop offset="0%" stop-color="#eee" class="svelte-16kic4w"></stop><stop offset="20%" stop-color="#fafafa" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#efefef" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="col-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="60%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="work-spot" cx="50%" cy="0%" r="45%" fx="50%" fy="0%" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.95" class="svelte-16kic4w"></stop><stop offset="10%" stop-color="#fffefb" stop-opacity="0.85" class="svelte-16kic4w"></stop><stop offset="30%" stop-color="#f5f3ed" stop-opacity="0.55" class="svelte-16kic4w"></stop><stop offset="60%" stop-color="#e8e6e0" stop-opacity="0.2" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#e8e6e0" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><radialGradient id="fruit-led" cx="50%" cy="0%" r="120%" fy="0%" class="svelte-16kic4w"><stop offset="0%" class="svelte-16kic4w"></stop><stop offset="70%" class="svelte-16kic4w"></stop><stop offset="100%" stop-opacity="0" class="svelte-16kic4w"></stop></radialGradient><linearGradient id="ajar-leak-left" x1="0" y1="0" x2="1" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><linearGradient id="ajar-leak-right" x1="1" y1="0" x2="0" y2="0" class="svelte-16kic4w"><stop offset="0%" stop-color="#ffb268" stop-opacity="0" class="svelte-16kic4w"></stop><stop offset="35%" stop-color="#ffb268" stop-opacity="0.38" class="svelte-16kic4w"></stop><stop offset="100%" stop-color="#ffd79a" stop-opacity="0.1" class="svelte-16kic4w"></stop></linearGradient><radialGradient id="ajar-bloom-col" cx="0%" cy="50%" r="85%"
Line truncated
|
||||||
|
L9 0.6
|
||||||
|
L9 2.6
|
||||||
|
Q9 3 9.4 3.3
|
||||||
|
L11.8 4.4
|
||||||
|
Q13 5 13 6.2
|
||||||
|
L13 19.2
|
||||||
|
Q13 21.1 11.1 21.1
|
||||||
|
L2.9 21.1
|
||||||
|
Q1 21.1 1 19.2
|
||||||
|
L1 6.2
|
||||||
|
Q1 5 2.2 4.4
|
||||||
|
L4.6 3.3
|
||||||
|
Q5 3 5 2.6
|
||||||
|
Z" fill="#fbf8ec" stroke="#9d9377" stroke-width="0.7" stroke-linejoin="round" class="svelte-16kic4w"></path><g clip-path="url(#reservoir-inside)" class="svelte-16kic4w"><rect x="0" width="14" height="22" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.45" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></rect><rect x="0" width="14" height="0.35" fill="#ffffff" opacity="0.22" class="svelte-16kic4w"></rect><!></g><path d="M2.1 7
|
||||||
|
Q2.1 6 2.7 6
|
||||||
|
L2.7 18
|
||||||
|
Q2.7 19 2.1 19
|
||||||
|
Z" fill="#ffffff" opacity="0.55" class="svelte-16kic4w"></path><line x1="5" y1="2.6" x2="9" y2="2.6" stroke="#8b8269" stroke-width="0.4" opacity="0.35" class="svelte-16kic4w"></line><!></g><g transform="translate(100, 377)" aria-label="Colonization fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g><g transform="translate(380, 377)" aria-label="Fruiting fan" class="svelte-16kic4w"><circle r="7" fill="#fff" stroke="#b0a588" stroke-width="0.6" class="svelte-16kic4w"></circle><g></g><circle r="1.1" fill="#94896c" class="svelte-16kic4w"></circle></g></g><!></svg></div>`);function fd(a,t){$t(t,!0);const i=Jt(t,"showGallery",3,!0);function n(M,Z,Q){Q.stopPropagation(),t.onAddBag?.(M,Z)}const l=m(()=>gt.state.chambers),c=m(()=>e(l).find(M=>M.type==="colonization")??e(l)[0]??{slots:[]}),v=m(()=>e(l).find(M=>M.type==="fruiting")??e(l)[1]??{slots:[]}),f=m(()=>gt.state.hardware),d=m(()=>e(f).humidifier.active),u=m(()=>{const M=new Set,Z=[];for(const pe of e(l)){for(const de of pe.slots){if(!de.bag)continue;const Ae=de.bag.tag.strain_name,ut=Lc(Ae);if(ut&&!M.has(Ae)&&(M.add(Ae),Z.push({strain:Ae,src:ut,slotId:de.bag.slot_id}),Z.length>=6))break}if(Z.length>=6)break}const Q=[{strain:"Family Portrait",src:"/img/illustration.webp",slotId:"est. the Proterozoic",isGeneric:!0},{strain:"The Boys",src:"/img/illustration_oysters.webp",slotId:"oil on canvas · 2024",isGeneric:!0},{strain:"Mycelial Dreams",src:"/img/illustration_mycelium.webp",slotId:"acrylic on canvas · 2025",isGeneric:!0},{strain:"Fungi Friends",src:"/img/illustration_mycelium.webp",slotId:"watercolor · 2025",isGeneric:!0},{strain:"Spore Sisters",src:"/img/illustration_mycelium.webp",slotId:"mixed media · 2025",isGeneric:!0}];for(const pe of Q){if(Z.length>=6)break;Z.push(pe)}return Z});function p(M){return M.isGeneric?M.slotId:`Slot ${M.slotId}`}const g=[M=>({tx:-12,ty:168,rotate:-3.5,frame:{x:-21,y:-34,w:42,h:60,fill:"#4a3a24"},liner:{stroke:"#7a5f3d",opacity:.8},mat:{fill:"#f3e9ce"},image:{href:M.src,x:-16,y:-29,w:32,h:44},placard:{x:-16,y:30,w:32,h:11},title:{text:M.strain,y:35,size:4.2},subtitle:{text:p(M),y:39.2,size:3}}),M=>({tx:490,ty:65,rotate:2.5,frame:{x:-18,y:-26,w:36,h:46,fill:"#8a6f3a",stroke:"#5a461e"},liner:{stroke:"#c2a55a",opacity:.75},mat:{fill:"#fef7e4"},image:{href:M.src,x:-13.5,y:-21.5,w:27,h:32},placard:{x:-14,y:24,w:28,h:10.5,fill:"#f3ead0",stroke:"#a89466"},title:{text:M.strain,y:28.8,size:4.2},subtitle:{text:p(M),y:32.8,size:2.9}}),()=>({tx:492,ty:252,rotate:3.4,frame:{x:-22,y:-30,w:44,h:50,fill:"#cbb592",stroke:"#85714b"},mat:{fill:"#fff8e7"},image:{href:"/img/illustration_mycelium.webp",x:-19,y:-27,w:38,h:44,opacity:.85},lines:[{text:"Live",y:-14,size:6.5,fill:"#fff"},{text:"Laugh",y:-6,size:6.5,fill:"#fff"},{text:"Lignify",y:3,size:6.5,fill:"#fff"}],divider:{y:12,width:14,stroke:"#b09870",strokeWidth:.4,opacity:.7},placard:{x:-19,y:22,w:40,h:12,fill:"#ece2c3",stroke:"#a89466"},title:{text:"Welcome home",y:27.5,size:4.5},subtitle:{text:"hand-stitched, probably",y:32,size:3.4}}),M=>({tx:-8,ty:68,rotate:0,frame:{x:-19,y:-30,w:38,h:52,fill:"#5a4632"},liner:{stroke:"#8a6f4a",opacity:.75},mat:{fill:"#f4ebd1"},image:{href:M.src,x:-14,y:-25,w:28,h:38},placard:{x:-14,y:26,w:28,h:10,fill:"#f0e5c8"},title:{text:M.strain,y:30,size:4},subtitle:{text:p(M),y:34,size:2.8}}),M=>({tx:-12,ty:260,rotate:.2,frame:{x:-20,y:-28,w:40,h:50,fill:"#6b5438"},liner:{stroke:"#9a7f58",opacity:.7},mat:{fill:"#f8f0da"},image:{href:M.src,x:-15,y:-23,w:30,h:36},placard:{x:-15,y:27,w:30,h:10.5,fill:"#f3e8cc"},title:{text:M.strain,y:31.2,size:4.1},subtitle:{text:p(M),y:35.2,size:2.9}}),M=>({tx:490,ty:142,rotate:-2,frame:{x:-22.5,y:-22,w:45,h:57,fill:"#7a5f3d"},liner:{stroke:"#b09870",opacity:.7},mat:{fill:"#fef9e8"},image:{href:M.src,x:-18,y:-17.5,w:36,h:47},placard:{x:-20,y:38,w:40,h:10,fill:"#f4ebd1",stroke:"#a89466"},title:{text:M.strain,y:42.5,size:5},subtitle:{text:p(M),y:46.5,size:3.5}})],b=m(()=>g.map((M,Z)=>{const Q=e(u)[Z];return M?M.length===0?M():Q?M(Q):null:null})),y=m(()=>e(f).fans.find(M=>M.chamber_id==="main")??e(f).fans[0]??{speed_pct:0}),C=m(()=>e(f).fans.find(M=>M.chamber_id==="second")??e(f).fans[1]??{speed_pct:0});function E(M){return M>0?`${(.5+(1-M/100)*2.4).toFixed(2)}s`:"4s"}const z=m(()=>(e(y)?.speed_pct??0)>0),G=m(()=>(e(C)?.speed_pct??0)>0),H=m(()=>E(e(y)?.speed_pct??0)),w=m(()=>E(e(C)?.speed_pct??0)),S=m(()=>e(f).lights.find(M=>M.chamber_id==="main"&&M.purpose==="work")??{on:!1,brightness:0,color_hex:"#f4ecd8"}),_=m(()=>e(f).lights.find(M=>M.chamber_id==="second"&&M.purpose==="grow")??{on:!1,brightness:0,color_hex:"#f7f0dc"}),B=m(()=>e(f).doors.find(M=>M.chamber_id==="main")?.open??!1),W=m(()=>e(f).doors.find(M=>M.chamber_id==="second")?.open??!1),j={x:36,y:52,w:192,h:297},O={x:252,y:52,w:192,h:297};function q(M){const Z=M.h/3;return[M.y,M.y+Z,M.y+2*Z]}function ue(M){const Z=[[{Line truncated
|
||||||
|
functional polypores, and a couple of specimens kept only for their looks, with ideal
|
||||||
|
climate envelopes and yields you can expect from each.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">species in the catalogue</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">beginner-friendly</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--attention)"> </span> <span class="hs-label svelte-1acr5fz">gourmet</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">prepared as extracts</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter species"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Category</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Difficulty</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Edible only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">Numbers are guides, not guarantees. Every strain, every substrate,
|
||||||
|
every room runs a little differently — trust what you see in the bag.</p></footer>`,1),tu=I('<button type="button"><span class="sev-dot svelte-1acr5fz"></span> </button>'),au=I('<button type="button"> </button>'),iu=I('<button class="chip chip-clear svelte-1acr5fz" type="button">Clear</button>'),su=I('<div class="results-note svelte-1acr5fz">Showing <strong class="svelte-1acr5fz"> </strong> </div>'),ru=I('<div class="empty svelte-1acr5fz"><p>No specimens match those filters.</p> <button class="btn-ghost" type="button">Clear filters</button></div>'),nu=I('<span class="salv-mark svelte-1acr5fz" title="Often salvageable" aria-label="Often salvageable"><svg width="11" height="11" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg></span>'),ou=I('<span class="stage-pip svelte-1acr5fz"> </span>'),lu=I('<button class="card svelte-1acr5fz" type="button"><div class="card-art svelte-1acr5fz"><!> <span class="sev-badge svelte-1acr5fz"><span class="sev-badge-dot svelte-1acr5fz"></span> </span> <!></div> <div class="card-body svelte-1acr5fz"><h3 class="card-name font-serif svelte-1acr5fz"> </h3> <div class="card-sci italic svelte-1acr5fz"> </div> <div class="card-chips svelte-1acr5fz"></div> <p class="card-hook svelte-1acr5fz"> </p></div></button>'),cu=I('<section class="grid svelte-1acr5fz" aria-label="Specimens"></section>'),du=I(`<section class="hero svelte-1acr5fz"><div class="eyebrow">Cultivar · Contaminants</div> <h1 class="hero-head font-serif svelte-1acr5fz">Things that may grow <span class="italic svelte-1acr5fz">alongside your mushrooms.</span></h1> <p class="hero-lede svelte-1acr5fz">Not every fuzzy thing is bad news. Some are easy fixes, some are just
|
||||||
|
physiology, a few are worth a careful discard. Here's a short field
|
||||||
|
guide to what you might see, how to recognise it, and what to do.</p> <div class="hero-stats svelte-1acr5fz"><div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz"> </span> <span class="hs-label svelte-1acr5fz">specimens catalogued</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--forest)"> </span> <span class="hs-label svelte-1acr5fz">often salvageable</span></div> <div class="hs-item svelte-1acr5fz"><span class="hs-value font-serif svelte-1acr5fz" style="color: var(--urgent)"> </span> <span class="hs-label svelte-1acr5fz">best to discard</span></div></div></section> <section class="filters svelte-1acr5fz" aria-label="Filter contaminants"><div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Severity</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><span class="filter-label svelte-1acr5fz">Stage</span> <div class="chip-row svelte-1acr5fz"></div></div> <div class="filter-group svelte-1acr5fz"><button type="button"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M6 1.5 C 9 3, 10 6, 6 10.5 C 2 6, 3 3, 6 1.5 Z" fill="currentColor"></path></svg> Salvageable only</button> <!></div></section> <!> <!> <footer class="index-foot svelte-1acr5fz"><div class="foot-rule svelte-1acr5fz"></div> <p class="foot-note italic svelte-1acr5fz">A curated sample. When in doubt, bag it, seal it, and err on the side
|
||||||
|
of discarding — it's cheaper than losing a whole room to spores.</p></footer>`,1),vu=I('<div class="tabs svelte-1acr5fz" role="tablist" aria-label="Field guide section"><button role="tab" type="button"><span class="tab-label">Species</span> <span class="tab-count svelte-1acr5fz"> </span></button> <button role="tab" type="button"><span class="tab-label">Contaminants</span> <span class="tab-count svelte-1acr5fz"> </span></button></div> <!>',1),fu=I('<div class="reference svelte-1acr5fz"><header class="head svelte-1acr5fz"><!> <div class="head-title font-serif svelte-1acr5fz">Field Guide</div> <div class="head-spacer"></div></header> <div class="page scroll-soft svelte-1acr5fz"><!></div></div>');function uu(a,t){$t(t,!0);let i=Me("species"),n=Me(null),l=Me(null);const c=m(()=>e(n)?as.find(U=>U.id===e(n))??null:null),v=m(()=>e(l)?Us.find(U=>U.id===e(l))??null:null),f=m(()=>e(c)!==null||e(v)!==null);let d=Me(void 0);function u(U){$(n,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function p(U){$(l,U,!0),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"}))}function g(){$(n,null),$(l,null)}function b(U){U!==e(i)&&($(i,U,!0),g(),requestAnimationFrame(()=>e(d)?.scrollTo({top:0,behavior:"instant"})))}const y=["low","medium","high","critical"],C=["agar","grain","bulk","fruiting"];let E=Me(pa(new Set)),z=Me(pa(new Set)),G=Me(!1);function H(U){const T=new Set(e(E));T.has(U)?T.delete(U):T.add(U),$(E,T,!0)}function w(U){const T=new Set(e(z));T.has(U)?T.delete(U):T.add(U),$(z,T,!0)}function S(){$(E,new Set,!0),$(z,new Set,!0),$(G,!1)}const _=m(()=>Us.filter(U=>!(e(E).size>0&&!e(E).has(U.severity)||e(z).size>0&&!U.stages.some(T=>e(z).has(T))||e(G)&&!U.salvageable))),B=m(()=>e(E).size>0||e(z).size>0||e(G)),W=["gourmet","functional","educational"],j=["beginner","intermediate","advanced"];let O=Me(pa(new Set)),q=Me(pa(new Set)),ue=Me(!1);function ke(U){const T=new Set(e(O));T.has(U)?T.delete(U):T.add(U),$(O,T,!0)}function Se(U){const T=new Set(e(q));T.has(U)?T.delete(U):T.add(U),$(q,T,!0)}function _e(){$(O,new Set,!0),$(q,new Set,!0),$(ue,!1)}const J=m(()=>as.filter(U=>!(e(O).size>0&&!e(O).has(U.category)||e(q).size>0&&!e(q).has(U.difficulty)||e(ue)&&!U.edible))),le=m(()=>e(O).size>0||e(q).size>0||e(ue)),fe={low:"Low concern",medium:"Moderate",high:"Serious",critical:"Critical"},me={low:"Low",medium:"Mod",high:"Serious",critical:"Critical"},xe={low:"var(--forest)",medium:"var(--attention)",high:"#9C4A1E",critical:"var(--urgent)"},we={low:"sage",medium:"amber",high:"sienna",critical:"rust"},D={agar:"Agar",grain:"Grain",bulk:"Bulk",fruiting:"Fruiting"},N={gourmet:"Gourmet",functional:"Functional",educational:"Educational"},X={gourmet:"amber",functional:"sage",educational:"slate"},ce={gourmet:"var(--attention)",functional:"var(--forest)",educational:"var(--ink-muted)"},ne={beginner:"Beginner",intermediate:"Intermediate",advanced:"Advanced"},ge={beginner:"var(--forest)",intermediate:"var(--attention)",advanced:"#9C4A1E"},Ve={clustered:"Clustered",solitary:"Solitary",bracket:"Bracket",shelf:"Shelf",rosette:"Rosette","ear-shaped":"Ear-shaped",branching:"Branching"},Ee=Us.length,st=Us.filter(U=>U.salvageable).length,De=Ee-st,Qe=as.length,yt=as.filter(U=>U.category==="gourmet").length,ct=as.filter(U=>U.category==="functional"||U.functional).length,pt=as.filter(U=>U.difficulty==="beginner").length;function $e(U){const T=U.match(/^[^.!?]+[.!?]/);return T?T[0].trim():U}function rt(U){if(U.key==="Escape"){if(e(f)){g();return}t.onBack()}}var Pt=fu();Kl("keydown",Sr,rt);var Dt=o(Pt),zt=o(Dt);{var ta=U=>{var T=xf();oe("click",T,g),h(U,T)},V=U=>{var T=kf();oe("click",T,function(...Ue){t.onBack?.apply(this,Ue)}),h(U,T)};L(zt,U=>{e(f)?U(ta):U(V,-1)})}var K=r(Dt,2),te=o(K);{var Ge=U=>{const T=m(()=>e(c));var Ue=jf(),Ke=o(Ue),ht=o(Ke),Ot=o(ht),_t=r(ht,2),wt=o(_t),vt=r(_t,2),Ht=o(vt),Et=r(vt,2);{var Lt=ae=>{var re=zf();h(ae,re)};L(Et,ae=>{e(T).edible&&ae(Lt)})}var Wt=r(Et,2);{var Kt=ae=>{var re=Cf();h(ae,re)};L(Wt,ae=>{e(T).functional&&ae(Kt)})}var Ct=r(Wt,2);{var be=ae=>{var re=Mf();h(ae,re)};L(Ct,ae=>{e(T).bioluminescent&&ae(be)})}var Fe=r(Ct,2);{var ot=ae=>{var re=Sf();h(ae,re)};L(Fe,ae=>{e(T).isHybrid&&ae(ot)})}var nt=r(Ke,2),lt=o(nt),jt=r(nt,2),Nt=o(jt),oa=r(Nt);{var Mt=ae=>{var re=Pf(),at=o(re);A(()=>x(at,e(T).authority)),h(ae,re)};L(oa,ae=>{e(T).authority&&ae(Mt)})}var St=r(jt,2);{var Ft=ae=>{var re=Tf(),at=r(o(re)),Xe=o(at);A(It=>x(Xe,It),[()=>e(T).synonyms.join(", ")]),h(ae,re)};L(St,ae=>{e(T).synonyms.length>0&&ae(Ft)})}var la=r(St,2),aa=o(la),Rt=r(la,2),Vt=o(Rt),se=o(Vt),Y=o(se);{var he=ae=>{var re=Of();A(()=>{s(re,"src",e(T).image),s(re,"alt",e(T).commonName)}),h(ae,re)},Te=ae=>{{let re=m(()=>`d-${e(T).id}`);Ks(ae,{get tone(){return X[e(T).category]},get name(){return e(T).commonName},get caption(){return e(T).id},get uid(){return e(re)}})}};L(Y,ae=>{e(T).image?ae(he):ae(Te,-1)})}var et=r(se,2),Ze=o(et),mt=r(Vt,2),ft=o(mt),kt=r(o(ft),2),ma=o(kt),ia=r(ft,2),xa=r(o(ia),2),tt=o(Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.topbar.svelte-1hm81ai{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:14px 24px 12px;flex-shrink:0;border-bottom:1px solid var(--line-soft);background:color-mix(in srgb,var(--paper) 86%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.wordmark.svelte-1hm81ai{justify-self:start;display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.mono.svelte-1hm81ai{width:26px;height:26px;display:block}.brand.svelte-1hm81ai{font-size:22px;font-weight:var(--fw-display);letter-spacing:-.005em;line-height:1}.meta.svelte-1hm81ai{display:flex;align-items:baseline;justify-content:center;gap:8px;font-size:12px;color:var(--ink-muted);min-width:0}.meta-greet.svelte-1hm81ai{font-size:14px;font-weight:var(--fw-body);color:var(--ink-2)}.meta-sep.svelte-1hm81ai{opacity:.4}.meta-date.svelte-1hm81ai{letter-spacing:.01em}.actions.svelte-1hm81ai{justify-self:end;display:flex;align-items:center;gap:10px}.live.svelte-1hm81ai{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:999px;background:var(--forest-tint);color:var(--forest);font-size:11px;font-weight:500;letter-spacing:.02em}.live.disconnected.svelte-1hm81ai{border:1px solid var(--attention);opacity:.25;color:var(--paper)}.live.disconnected.svelte-1hm81ai .dot:where(.svelte-1hm81ai){background-color:var(--attention)}.live.disconnected.svelte-1hm81ai .live-label:where(.svelte-1hm81ai){color:var(--attention)}.dot.svelte-1hm81ai{width:6px;height:6px;border-radius:50%;background:var(--forest);animation:dot-live 2.6s ease-in-out infinite}.nav-link.svelte-1hm81ai{display:inline-flex;align-items:center;gap:6px;padding:5px 11px 5px 9px;border-radius:999px;color:var(--ink-2);font-size:12px;letter-spacing:.01em;border:1px solid var(--line);background:transparent;transition:background .15s,color .15s,border-color .15s}.nav-link.svelte-1hm81ai:hover{color:var(--forest);border-color:color-mix(in srgb,var(--forest) 35%,var(--line));background:var(--forest-tint)}.menu-btn.svelte-1hm81ai{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:var(--ink-2);transition:background .15s,color .15s}.menu-btn.svelte-1hm81ai:hover{background:var(--paper-2);color:var(--ink)}@media(max-width:640px){.topbar.svelte-1hm81ai{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 10px}.meta.svelte-1hm81ai{display:flex;align-items:center;flex:1;justify-content:center;min-width:0}.meta-greet.svelte-1hm81ai{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-date.svelte-1hm81ai,.meta-sep.svelte-1hm81ai,.live-label.svelte-1hm81ai{display:none}.live.svelte-1hm81ai{padding:4px 8px}.nav-label.svelte-1hm81ai{display:none}.nav-link.svelte-1hm81ai{padding:5px 8px}}.twin-wrap.svelte-16kic4w{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;position:relative;z-index:1;content-visibility:auto;contain-intrinsic-size:680px 500px}.twin-wrap.svelte-16kic4w:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(to bottom,var(--paper) 0%,var(--paper-2) 40%,var(--paper-3) 82%,var(--paper) 82%,var(--paper-3) 85%,#555 85%,#888 95%,var(--paper-1) 100%)}.appliance.svelte-16kic4w{width:100%;height:auto;max-width:720px;margin:0 auto;display:block;overflow:visible;position:relative}.mist-ring.svelte-16kic4w{transform-box:fill-box;transform-origin:center;opacity:0;will-change:transform,opacity;animation:svelte-16kic4w-mist-ring-expand 2.2s ease-out infinite}@keyframes svelte-16kic4w-mist-ring-expand{0%{transform:scale(1);opacity:.55}to{transform:scale(2);opacity:0}}.bubble.svelte-16kic4w{transform-box:fill-box;will-change:transform,opacity;opacity:0;animation:svelte-16kic4w-bubble-rise var(--dur, 3s) linear var(--delay, 0s) infinite}@keyframes svelte-16kic4w-bubble-rise{0%{transform:translateY(0);opacity:0}30%{opacity:var(--peak, .8)}to{transform:translateY(var(--rise));opacity:0}}.fog-band.svelte-16kic4w{will-change:transform;animation-name:svelte-16kic4w-fog-drift;animation-timing-function:cubic-bezier(.4,0,.6,1);animation-iteration-count:infinite}@keyframes svelte-16kic4w-fog-drift{0%{transform:translate(0) scaleX(1)}25%{transform:translate(14px,-2px) scaleX(1.08)}50%{transform:translate(0) scaleX(1)}75%{transform:translate(-14px,1px) scaleX(.95)}to{transform:translate(0) scaleX(1)}}.status-led.svelte-16kic4w{animation:svelte-16kic4w-status-breathe 3s ease-in-out infinite;filter:drop-shadow(0 0 1.5px #7bb27b);will-change:opacity}@keyframes svelte-16kic4w-status-breathe{0%,to{opacity:.55}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.mist-ring.svelte-16kic4w,.bubble.svelte-16kic4w,.fog-band.svelte-16kic4w,.status-led.svelte-16kic4w,.harvest-ready.svelte-16kic4w,.slot-cta-disc.svelte-16kic4w{animation:none}}.bag-group.svelte-16kic4w{cursor:pointer;outline:none;transition:filter .15s}.bag-group.svelte-16kic4w:hover{filter:brightness(1.07)}.bag-group.svelte-16kic4w:focus-viLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" zoomAndPan="magnify" viewBox="0 0 300 299.999988" height="400" preserveAspectRatio="xMidYMid meet" version="1.0"><defs><g/><clipPath id="37f48aa3d2"><path d="M 150 0 C 67.15625 0 0 67.15625 0 150 C 0 232.84375 67.15625 300 150 300 C 232.84375 300 300 232.84375 300 150 C 300 67.15625 232.84375 0 150 0 Z M 150 0 " clip-rule="nonzero"/></clipPath><clipPath id="565a5711b0"><rect x="0" width="172" y="0" height="288"/></clipPath><clipPath id="495572fdca"><rect x="0" width="81" y="0" height="157"/></clipPath></defs><g clip-path="url(#37f48aa3d2)"><path stroke-linecap="butt" transform="matrix(0.75, 0, 0, 0.75, 0.000006, -0.000000000000063949)" fill="none" stroke-linejoin="miter" d="M 200.000008 0.000000000000085265 C 89.541666 0.000000000000085265 -0.000008 89.541674 -0.000008 200.000016 C -0.000008 310.458359 89.541666 400.000033 200.000008 400.000033 C 310.458351 400.000033 400.000025 310.458359 400.000025 200.000016 C 400.000025 89.541674 310.458351 0.000000000000085265 200.000008 0.000000000000085265 Z M 200.000008 0.000000000000085265 " stroke="#4d4d4d" stroke-width="36" stroke-opacity="1" stroke-miterlimit="4"/></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(147.175779, 156.749987)"><g/></g></g><g transform="matrix(1, 0, 0, 1, 52, 0)"><g clip-path="url(#565a5711b0)"><g fill="#4d4d4d" fill-opacity="1"><g transform="translate(0.196131, 181.120018)"><g><path d="M 75.59375 -141.53125 C 82.882812 -141.53125 90.171875 -140.347656 97.453125 -137.984375 C 104.742188 -135.628906 111.070312 -131.984375 116.4375 -127.046875 C 122.65625 -131.984375 128.285156 -135.46875 133.328125 -137.5 C 138.367188 -139.539062 143.140625 -140.5625 147.640625 -140.5625 C 152.785156 -140.5625 157.234375 -139.328125 160.984375 -136.859375 C 164.742188 -134.398438 166.625 -131.023438 166.625 -126.734375 C 166.625 -123.734375 165.601562 -121.210938 163.5625 -119.171875 C 161.519531 -117.140625 159 -116.125 156 -116.125 C 153.425781 -116.125 151.390625 -116.710938 149.890625 -117.890625 C 148.390625 -119.066406 146.941406 -120.351562 145.546875 -121.75 C 144.148438 -123.144531 142.703125 -124.429688 141.203125 -125.609375 C 139.703125 -126.785156 137.664062 -127.375 135.09375 -127.375 C 132.738281 -127.375 130.378906 -126.726562 128.015625 -125.4375 C 125.660156 -124.15625 123.625 -122.765625 121.90625 -121.265625 C 129.625 -112.472656 133.484375 -101.960938 133.484375 -89.734375 C 133.484375 -79.878906 131.765625 -71.785156 128.328125 -65.453125 C 124.898438 -59.128906 120.128906 -54.035156 114.015625 -50.171875 C 107.910156 -46.316406 100.78125 -43.53125 92.625 -41.8125 C 84.476562 -40.09375 75.796875 -39.128906 66.578125 -38.921875 C 57.578125 -38.492188 50.445312 -37.367188 45.1875 -35.546875 C 39.9375 -33.722656 37.3125 -30.453125 37.3125 -25.734375 C 37.3125 -22.085938 38.921875 -19.566406 42.140625 -18.171875 C 45.359375 -16.773438 49.644531 -15.863281 55 -15.4375 L 82.984375 -14.15625 C 93.921875 -13.726562 103.625 -12.757812 112.09375 -11.25 C 120.5625 -9.75 127.691406 -7.285156 133.484375 -3.859375 C 139.273438 -0.429688 143.671875 4.28125 146.671875 10.28125 C 149.671875 16.289062 151.171875 23.90625 151.171875 33.125 C 151.171875 41.914062 149.398438 49.632812 145.859375 56.28125 C 142.328125 62.9375 137.34375 68.515625 130.90625 73.015625 C 124.476562 77.515625 116.8125 80.941406 107.90625 83.296875 C 99.007812 85.660156 89.3125 86.84375 78.8125 86.84375 C 69.375 86.84375 60.472656 85.929688 52.109375 84.109375 C 43.742188 82.285156 36.503906 79.550781 30.390625 75.90625 C 24.285156 72.257812 19.460938 67.863281 15.921875 62.71875 C 12.378906 57.570312 10.609375 51.566406 10.609375 44.703125 C 10.609375 41.273438 11.195312 37.898438 12.375 34.578125 C 13.5625 31.253906 15.226562 28.304688 17.375 25.734375 C 19.519531 23.160156 22.035156 21.125 24.921875 19.625 C 27.816406 18.125 30.984375 17.375 34.421875 17.375 C 37.203125 17.375 39.664062 17.910156 41.8125 18.984375 C 43.957031 20.054688 45.992188 21.445312 47.921875 23.15625 C 42.773438 24.226562 38.703125 26.960938 35.703125 31.359375 C 32.703125 35.753906 31.203125 40.738281 31.203125 46.3125 C 31.203125 57.25 35.488281 65.503906 44.0625 71.078125 C 52.644531 76.660156 65.296875 79.453125 82.015625 79.453125 C 96.171875 79.453125 107.59375 76.394531 116.28125 70.28125 C 124.96875 64.164062 129.3125 55.320312 129.3125 43.75 C 129.3125 37.738281 128.128906 32.800781 125.765625 28.9375 C 123.410156 25.082031 120.085938 22.03125 115.796875 19.78125 C 111.503906 17.53125 106.351562 15.867188 100.34375 14.796875 C 94.34375 13.722656 87.695312 13.078125 80.40625 12.859375 L 58.21875 11.90625 C 53.71875 11.6875 49.269531 11.203125 44.875 10.453125 C 40.476562 9.703125 36.507812 8.304688 32.96875 6.265625 C 29.425781 4.234375 26.582031 1.453125 24.4375 -2.078125 C 22.300781 -5.617188 21.234375 -10.285156 21.234375 -16.078125 C 21.234375 -23.367188 23.910156 -29.535156 29.26Line truncated
|
||||||
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,13 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Cultivar</title>
|
||||||
|
<script type="module" crossorigin src="/assets/index-DLt43z94.js"></script>
|
||||||
|
<link rel="stylesheet" crossorigin href="/assets/style-osFtniG3.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -258,4 +258,113 @@ async def replay_from_file(path: str, queue: asyncio.Queue, delay: float = 1.0)
|
|||||||
|
|
||||||
await asyncio.sleep(delay)
|
await asyncio.sleep(delay)
|
||||||
|
|
||||||
log.info(f"[replay] done — {len(lines)} payloads replayed")
|
log.info(f"[replay] done — {len(lines)} payloads replayed")
|
||||||
|
|
||||||
|
# ── TCP chamber reader ─────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
class TCPChamberReader:
|
||||||
|
"""
|
||||||
|
Async TCP reader for one ENV-1 chamber board via BridgeTCPServer.
|
||||||
|
|
||||||
|
Connects to the MCU's BridgeTCPServer (localhost:5678),
|
||||||
|
reads newline-delimited JSON payloads, validates them,
|
||||||
|
and puts valid STM32Payload objects onto the shared queue.
|
||||||
|
|
||||||
|
Reconnects automatically on connection errors.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, host: str, port: int, queue: asyncio.Queue, reconnect_delay: float = 5.0):
|
||||||
|
self.host = host
|
||||||
|
self.port = port
|
||||||
|
self.queue = queue
|
||||||
|
self.reconnect_delay = reconnect_delay
|
||||||
|
self._running = False
|
||||||
|
self._rx_count = 0
|
||||||
|
self._err_count = 0
|
||||||
|
|
||||||
|
async def run(self) -> None:
|
||||||
|
self._running = True
|
||||||
|
log.info(f"[TCP:{self.port}] Starting TCP chamber reader")
|
||||||
|
|
||||||
|
while self._running:
|
||||||
|
try:
|
||||||
|
await self._connect_and_read()
|
||||||
|
except asyncio.CancelledError:
|
||||||
|
log.info(f"[TCP:{self.port}] Reader cancelled")
|
||||||
|
self._running = False
|
||||||
|
break
|
||||||
|
except Exception as e:
|
||||||
|
log.warning(
|
||||||
|
f"[TCP:{self.port}] Connection error: {e} — "
|
||||||
|
f"reconnecting in {self.reconnect_delay}s"
|
||||||
|
)
|
||||||
|
await asyncio.sleep(self.reconnect_delay)
|
||||||
|
|
||||||
|
async def stop(self) -> None:
|
||||||
|
self._running = False
|
||||||
|
|
||||||
|
async def _connect_and_read(self) -> None:
|
||||||
|
log.info(f"[TCP:{self.port}] Connecting to {self.host}:{self.port}")
|
||||||
|
reader, writer = await asyncio.open_connection(self.host, self.port)
|
||||||
|
log.info(f"[TCP:{self.port}] Connected")
|
||||||
|
|
||||||
|
try:
|
||||||
|
while self._running:
|
||||||
|
try:
|
||||||
|
raw = await asyncio.wait_for(reader.readline(), timeout=120.0)
|
||||||
|
except asyncio.TimeoutError:
|
||||||
|
log.debug(f"[TCP:{self.port}] Read timeout — waiting for next payload")
|
||||||
|
continue
|
||||||
|
|
||||||
|
if not raw:
|
||||||
|
log.warning(f"[TCP:{self.port}] Connection closed by MCU")
|
||||||
|
return
|
||||||
|
|
||||||
|
line = raw.decode("utf-8", errors="replace").strip()
|
||||||
|
if line:
|
||||||
|
await self._handle_line(line)
|
||||||
|
finally:
|
||||||
|
writer.close()
|
||||||
|
try:
|
||||||
|
await writer.wait_closed()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def _handle_line(self, line: str) -> None:
|
||||||
|
if not line.startswith("{"):
|
||||||
|
log.debug(f"[TCP:{self.port}] Skipping non-JSON: {line[:80]}")
|
||||||
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
raw = json.loads(line)
|
||||||
|
except json.JSONDecodeError as e:
|
||||||
|
self._err_count += 1
|
||||||
|
log.warning(f"[TCP:{self.port}] JSON parse error: {e}")
|
||||||
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
payload = STM32Payload.model_validate(raw)
|
||||||
|
except ValidationError as e:
|
||||||
|
self._err_count += 1
|
||||||
|
log.warning(f"[TCP:{self.port}] Validation failed: {e.errors(include_url=False)}")
|
||||||
|
return
|
||||||
|
|
||||||
|
self._rx_count += 1
|
||||||
|
log.info(
|
||||||
|
f"[TCP:{self.port}] ✓ payload "
|
||||||
|
f"chamber={payload.chamber_id} "
|
||||||
|
f"sweep={len(payload.sweep)}pts "
|
||||||
|
f"co2={'yes' if payload.co2 and payload.co2.valid else 'no'} "
|
||||||
|
f"ambient={'ok' if payload.ambient.valid else 'invalid'}"
|
||||||
|
)
|
||||||
|
|
||||||
|
await self.queue.put(payload)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def stats(self) -> dict:
|
||||||
|
return {
|
||||||
|
"host": self.host,
|
||||||
|
"port": self.port,
|
||||||
|
"rx_count": self._rx_count,
|
||||||
|
"err_count": self._err_count,
|
||||||
|
}
|
||||||