isorite 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +3 -3
  2. package/dist/core.js +4 -2
  3. package/dist/embed-worker.js +9 -4
  4. package/dist/main.js +7707 -7203
  5. package/docs/setup-for-agents.md +27 -2
  6. package/docs/setup.md +28 -2
  7. package/docs/terminal.md +16 -4
  8. package/package.json +1 -1
  9. package/plugin/tui.tsx +3 -77
  10. package/web/_app/immutable/assets/{0.IOi79DXH.css → 0.DNvf5eFW.css} +1 -1
  11. package/web/_app/immutable/chunks/-7PsQOY4.js +3 -0
  12. package/web/_app/immutable/chunks/B9vLu37F.js +1 -0
  13. package/web/_app/immutable/chunks/BAVeNK5c.js +20 -0
  14. package/web/_app/immutable/chunks/C1xA2mdF.js +1 -0
  15. package/web/_app/immutable/chunks/CQqNkDRK.js +1 -0
  16. package/web/_app/immutable/chunks/Cs9sQ8Oa.js +1 -0
  17. package/web/_app/immutable/chunks/{BNCmWi9e.js → D4Jg9Smi.js} +1 -1
  18. package/web/_app/immutable/chunks/{BN1DRYj2.js → DG2llOXe.js} +21 -21
  19. package/web/_app/immutable/chunks/DqVFJWdL.js +1 -0
  20. package/web/_app/immutable/chunks/{BZeALCyJ.js → HCrXwzvD.js} +1 -1
  21. package/web/_app/immutable/chunks/MjV3DsQW.js +1 -0
  22. package/web/_app/immutable/chunks/uID4v_1K.js +1 -0
  23. package/web/_app/immutable/entry/app.CR9ubCCo.js +2 -0
  24. package/web/_app/immutable/entry/start.D4DOZCP6.js +1 -0
  25. package/web/_app/immutable/nodes/0.BYXv43VP.js +26 -0
  26. package/web/_app/immutable/nodes/1.DGP71l35.js +1 -0
  27. package/web/_app/immutable/nodes/2.CxspTYRG.js +1 -0
  28. package/web/_app/immutable/nodes/3.ZTzs6oEI.js +1 -0
  29. package/web/_app/immutable/nodes/4.CeIGu2c2.js +2 -0
  30. package/web/_app/immutable/nodes/5.k1DmYkGm.js +5 -0
  31. package/web/_app/immutable/nodes/6.Q0yGno8p.js +1 -0
  32. package/web/_app/immutable/nodes/7.BJRu312o.js +1 -0
  33. package/web/_app/version.json +1 -1
  34. package/web/index.html +17 -20
  35. package/dist/tutorial/barnes_hut.py +0 -46
  36. package/dist/tutorial/sim.py +0 -29
  37. package/plugin/tour.ts +0 -74
  38. package/web/_app/immutable/assets/8.CFA9_nYZ.css +0 -1
  39. package/web/_app/immutable/assets/Tutorial.DOfsM49T.css +0 -1
  40. package/web/_app/immutable/chunks/-XH9wLvF.js +0 -1
  41. package/web/_app/immutable/chunks/B_AYGp9o.js +0 -1
  42. package/web/_app/immutable/chunks/BavLcJN1.js +0 -1
  43. package/web/_app/immutable/chunks/BcrJkegU.js +0 -1
  44. package/web/_app/immutable/chunks/BqrPWk6N.js +0 -20
  45. package/web/_app/immutable/chunks/Bze-M_kr.js +0 -3
  46. package/web/_app/immutable/chunks/CRzLMJPS.js +0 -1
  47. package/web/_app/immutable/chunks/Cr4-_2Vw.js +0 -1
  48. package/web/_app/immutable/chunks/D25FgEb3.js +0 -43
  49. package/web/_app/immutable/chunks/D8jeeZa0.js +0 -1
  50. package/web/_app/immutable/chunks/DHMLhlug.js +0 -1
  51. package/web/_app/immutable/chunks/DsnHcTIO.js +0 -1
  52. package/web/_app/immutable/entry/app.B9MdwZzs.js +0 -2
  53. package/web/_app/immutable/entry/start.gtQcHKDR.js +0 -1
  54. package/web/_app/immutable/nodes/0.DSajjyn5.js +0 -15
  55. package/web/_app/immutable/nodes/1.hmQ_l8t-.js +0 -1
  56. package/web/_app/immutable/nodes/2.Bu6Zvx8F.js +0 -1
  57. package/web/_app/immutable/nodes/3.DcSG1nNk.js +0 -1
  58. package/web/_app/immutable/nodes/4.QUhLgH4i.js +0 -2
  59. package/web/_app/immutable/nodes/5.D3JSWVyR.js +0 -5
  60. package/web/_app/immutable/nodes/6.CWfUNDww.js +0 -1
  61. package/web/_app/immutable/nodes/7.DmPPLDvb.js +0 -1
  62. package/web/_app/immutable/nodes/8.CwMTBog4.js +0 -486
@@ -1,3 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible,x=()=>{};function S(e){return typeof e?.then==`function`}function ee(e){return e()}function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function re(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var C=1024,w=2048,ie=4096,ae=8192,oe=16384,se=32768,ce=1<<25,le=65536,ue=1<<18,de=1<<19,fe=1<<20,pe=1<<25,me=1<<21,he=1<<22,ge=1<<23,_e=Symbol(`$state`),ve=Symbol(`component`),ye=Symbol(`legacy props`),be=Symbol(``),xe=Symbol(`attributes`),Se=Symbol(`class`),Ce=Symbol(`style`),we=Symbol(`text`),Te=Symbol(`form reset`),Ee=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},De=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),Oe={},T=Symbol(`uninitialized`),ke=`http://www.w3.org/1999/xhtml`,Ae=`http://www.w3.org/2000/svg`,je=`http://www.w3.org/1998/Math/MathML`;function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Pe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Fe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw Pe(),Oe;return O=e}function A(){return k(R(O))}function Ie(e){if(E){if(R(O)!==null)throw Pe(),Oe;O=e}}function Le(e=1){if(E){for(var t=e,n=O;t--;)n=R(n);O=n}}function Re(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function ze(e){if(!e||e.nodeType!==8)throw Pe(),Oe;return e.data}function Be(e){return e===this.v}function Ve(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function He(e){return!Ve(e,this.v)}function Ue(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function We(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Ge(){throw Error(`https://svelte.dev/e/missing_context`)}function Ke(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function qe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Je(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ze(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Qe(){throw Error(`https://svelte.dev/e/fork_discarded`)}function $e(){throw Error(`https://svelte.dev/e/fork_timing`)}function et(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function tt(){throw Error(`https://svelte.dev/e/hydration_failed`)}function nt(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function rt(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function it(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function at(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ot(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function st(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var ct=!1;function lt(){ct=!0}function ut(e,t,n){let r={};return[()=>(n(r)||Ge(),e(r)),e=>t(r,e),()=>n(r)]}function dt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function ft(e,t){return e===null&&We(t),e.c??=new Map(dt(e)||void 0)}var j=null;function pt(e){j=e}function mt(){return ut(ht,gt,_t)}function ht(e){return ft(j,`getContext`).get(e)}function gt(e,t){return ft(j,`setContext`).set(e,t),t}function _t(e){return ft(j,`hasContext`).has(e)}function vt(){return ft(j,`getAllContexts`)}function yt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:K,l:ct&&!t?{s:null,u:null,$:[]}:null}}function bt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)Xn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,xt(e)}function xt(e={}){return m(e,ve,{value:!0}),e}function St(){return!ct||j!==null&&j.l===null}var Ct=[];function wt(){var e=Ct;Ct=[],te(e)}function M(e){if(Ct.length===0&&!Qt){var t=Ct;queueMicrotask(()=>{t===Ct&&wt()})}Ct.push(e)}function Tt(){for(;Ct.length>0;)wt()}var Et=~(w|ie|C);function N(e,t){e.f=e.f&Et|t}function Dt(e){e.f&512||e.deps===null?N(e,C):N(e,ie)}function Ot(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),N(e,C)}function kt(e,t){if(t){let t=document.body;e.autofocus=!0,M(()=>{document.activeElement===t&&e.focus()})}}function At(e){E&&L(e)!==null&&Bn(e)}var jt=!1;function Mt(){jt||(jt=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Te]?.()})},{capture:!0}))}function Nt(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function Pt(e,t,n,r=n){e.addEventListener(t,()=>Nt(n));let i=e[Te];e[Te]=i?()=>{i(),r(!0)}:()=>r(!0),Mt()}function Ft(e,t,n,r){let i=St()?zt:Ut;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=K,c=It(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){z(e,s)}Lt()}}var d=Rt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Vt(e))).then(u).catch(e=>z(e,s)).finally(d)}l?l.then(()=>{s.f&16384?d():(c(),f(),Lt())}):f()}function It(){var e=K,t=U,n=j,r=P;return function(i=!0){q(e),G(t),pt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Lt(e=!0){q(null),G(null),pt(null),e&&P?.deactivate()}function Rt(){var e=K,t=e.b,n=P,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function zt(e){var t=2|w;return K!==null&&(K.f|=de),{ctx:j,deps:null,effects:null,equals:Be,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:K,ac:null}}var Bt=Symbol(`obsolete`);function Vt(e,t,n){let r=K;r===null&&Ke();var i=void 0,a=yn(T),o=!U,s=new Set;return er(()=>{var t=K,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Ee&&n.reject(e)}).finally(Lt)}catch(e){n.reject(e),Lt()}var c=P;if(o){if(t.f&32768)var l=Rt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Bt);else for(let e of s.values())e.reject(Bt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Bt&&(c.activate(),t?(a.f|=ge,Tn(a,t)):(a.f&8388608&&(a.f^=ge),Tn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Jn(()=>{for(let e of s)e.reject(Bt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Ht(e){let t=zt(e);return vr(t),t}function Ut(e){let t=zt(e);return t.equals=He,t}function Wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Gt(e){var t,n=K,r=e.parent;if(!gr&&r!==null&&e.v!==T&&r.f&24576)return Me(),e.v;q(r);try{Wt(e),t=Dr(e)}finally{q(n)}return t}function Kt(e){var t=Gt(e);!e.equals(t)&&(e.wv=wr(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),Xt?.capture(e,t,!0)),e.deps===null))?N(e,C):gr||(F===null?Dt(e):(qn()||P?.is_fork)&&F.set(e,t))}function qt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Nt(()=>{t.ac.abort(Ee),t.ac=null}),t.fn!==null&&(t.teardown=x),Ar(t,0),or(t))}function Jt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&jr(t)}var Yt=null,P=null,Xt=null,F=null,Zt=null,Qt=!1,$t=!1,en=null,tn=null,nn=0,rn=1,an=class e{id=rn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Yt===null?Yt=this:(Yt.#n=this,this.#t=Yt),Yt=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)N(r,w),t(r);for(r of n.m)N(r,ie),t(r)}this.#p.add(e)}#g(){var e=[];for(let i of this.#c)if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=C}}n||e.push(t)}return this.#c=[],e}#_(){this.#e=!0;for(let e of this.#u)this.#d.delete(e),N(e,w),this.schedule(e);for(let e of this.#d)N(e,ie),this.schedule(e);this.apply();for(var t=en=[],n=[],r=tn=[];this.#c.length>0;){nn++>1e3&&(this.#S(),sn());for(let e of this.#g())try{this.#v(e,t,n)}catch(t){throw pn(e),this.#h()||this.discard(),t}}if(P=null,r.length>0){var i=e.ensure();for(let e of r)i.schedule(e)}if(en=null,tn=null,this.#h()){this.#x(n),this.#x(t);for(let[e,t]of this.#f)fn(e,t);r.length>0&&P.#_();return}let a=this.#y();if(a)this.#x(n),this.#x(t),a.#b(this);else{this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Xt=this,ln(n),ln(t),Xt=null,this.#s?.resolve();var o=P;if(this.#a===0&&(this.#c.length===0||o!==null)&&this.#S(),this.#c.length>0){if(o!==null){for(let e of this.#c)o.#c.push(e);this.#c=[]}else o=this}o!==null&&(gn.clear(),o.#_())}}#v(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):Tr(r)&&(i&16&&this.#d.add(r),jr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),N(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),P=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)Ot(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{$t=!0,P=this,this.#_()}finally{nn=0,Zt=null,en=null,tn=null,$t=!1,P=null,F=null,gn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Bt);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,M(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=ne()).promise}static ensure(){if(P===null){let t=P=new e;!$t&&!Qt&&M(()=>{t.#e||t.flush()})}return P}apply(){F=null}schedule(e){Zt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)?e.b.defer_effect(e):this.#c.push(e)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Yt=e:t.#t=e,this.linked=!1}}};function on(e){var t=Qt,n=Xt;Xt=null,Qt=!0;try{var r;for(e&&(on(),r=e());;){if(Tt(),P===null)return r;P.flush()}}finally{Qt=t,Xt=n}}function sn(){try{Ze()}catch(e){z(e,Zt)}}var cn=null;function ln(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Tr(r)&&(cn=new Set,jr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&lr(r),cn?.size>0)){gn.clear();for(let e of cn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)cn.has(n)&&(cn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||jr(n)}}cn.clear()}}cn=null}}function un(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?un(n,t):e&131072&&(N(n,w),t.add(n))}}function dn(e){P.schedule(e)}function fn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,C);for(var n=e.first;n!==null;)fn(n,t),n=n.next}}function pn(e){N(e,C);for(var t=e.first;t!==null;)pn(t),t=t.next}function mn(e){Ue(`fork`),P!==null&&$e(),on();var t=an.ensure();t.is_fork=!0,F=new Map;var n=!1,r=t.settled();return e(),on(),{commit:async()=>{if(n)await r;else{t.linked||Qe(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=wr();on(()=>{var e=new Set;for(var n of t.current.keys())un(n,e);_n(e),En()}),t.flush(),await r}},discard:()=>{for(var e of t.current.keys())e.wv=wr();!n&&t.linked&&t.discard()}}}var hn=new Set,gn=new Map;function _n(e){hn=e}var vn=!1;function yn(e,t){return{f:0,v:e,reactions:null,equals:Be,rv:0,wv:0}}function bn(e,t){let n=yn(e,t);return vr(n),n}function xn(e,t=!1,n=!0){let r=yn(e);return t||(r.equals=He),ct&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function Sn(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&St()&&U.f&4325394&&(J===null||!J.has(e))&&ot(),Tn(e,n?kn(t):t,tn)}var Cn=null,wn=0;function Tn(e,t,n=null){if(!e.equals(t)){gr?gn.set(e,t):gn.has(e)||gn.set(e,e.v);var r=an.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Gt(t),F===null&&Dt(t)}e.wv=wr(),Cn=null,wn=0,On(e,w,n),Cn=null,St()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?yr([e]):Z.push(e)),!r.is_fork&&hn.size>0&&!vn&&En()}return t}function En(){vn=!1;for(let e of hn){e.f&1024&&N(e,ie);let t;try{t=Tr(e)}catch{t=!0}t&&jr(e)}hn.clear()}function Dn(e){Sn(e,e.v+1)}function On(e,t,n){var r=e.reactions;if(r!==null){var i=St(),a=r.length;if(wn+=a,wn>1e5&&Cn===null&&(Cn=new Set),Cn!==null){if(Cn.has(e))return;Cn.add(e)}for(var o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==K){var l=(c&w)===0;if(l&&N(s,t),c&131072)hn.add(s);else if(c&2){var u=s;F?.delete(u),On(u,ie,n)}else if(l){var d=s;c&16&&cn!==null&&cn.add(d),n===null?dn(d):n.push(d)}}}}}function kn(e){if(typeof e!=`object`||!e||_e in e||ve in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=bn(0),a=null,o=Sr,s=e=>{if(Sr===o)return e();var t=U,n=Sr;G(null),Cr(o);var r=e();return G(t),Cr(n),r};return r&&n.set(`length`,bn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&it();var i=n.get(t);return i===void 0?s(()=>{var e=bn(r.value,a);return n.set(t,e),e}):Sn(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>bn(T,a));n.set(t,e),Dn(i)}}else Sn(r,T),Dn(i);return!0},get(t,r,i){if(r===_e)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>bn(kn(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){this.has?.(e,t);var r=Reflect.getOwnPropertyDescriptor(e,t),i=n.get(t);if(i!==void 0){var a=Q(i);if(a===T)return;if(r&&`value`in r)r.value=a;else return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(e,t){if(t===_e)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||K!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>bn(i?kn(e[t]):T,a)),n.set(t,r)),Q(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>bn(T,a)),n.set(d+``,f)):Sn(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>bn(void 0,a)),Sn(l,kn(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>kn(o));Sn(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&Sn(g,_+1)}Dn(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){at()}})}var An,jn,Mn,Nn,Pn;function Fn(){if(An===void 0){An=window,jn=document,Mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nn=h(t,`firstChild`).get,Pn=h(t,`nextSibling`).get,b(e)&&(e[Se]=void 0,e[xe]=null,e[Ce]=void 0,e.__e=void 0),b(n)&&(n[we]=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return Nn.call(e)}function R(e){return Pn.call(e)}function In(e,t){if(!E)return L(e);var n=L(O);if(n===null)n=O.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),k(r),r}return t&&Un(n),k(n),n}function Ln(e,t=!1){if(!E){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(O?.nodeType!==3){var r=I();return O?.before(r),k(r),r}Un(O)}return O}function Rn(e,t=!1){if(!E)return L(e);var n=In(e,t);return Ie(e),n}function zn(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=R(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),k(a),a}Un(r)}return k(r),r}function Bn(e){e.textContent=``}function Vn(){return!1}function Hn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Un(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Wn(e){var t=K;if(t===null)return U.f|=ge,e;if(!(t.f&32768)&&!(t.f&4))throw e;z(e,t)}function z(e,t){if(e===Oe)throw e;if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Gn(e){K===null&&(U===null&&Xe(e),Ye()),gr&&Je(e)}function Kn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=ae);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)en===null?an.ensure().schedule(r):en.push(r);else if(t!==null){try{jr(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=le))}if(i!==null&&(i.parent=n,n!==null&&Kn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function qn(){return U!==null&&!W}function Jn(e){let t=B(8,null);return N(t,C),t.teardown=e,t}function Yn(e){Gn(`$effect`);var t=K.f;if(!U&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return Xn(e)}function Xn(e){return B(4|fe,e)}function Zn(e){return Gn(`$effect.pre`),B(8|fe,e)}function Qn(e){an.ensure();let t=B(64|de,e);return(e={})=>new Promise(n=>{e.outro?ur(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function $n(e){return B(4,e)}function er(e){return B(he|de,e)}function tr(e,t=0){return B(8|t,e)}function nr(e,t=[],n=[],r=[]){Ft(r,t,n,t=>{B(8,()=>{e(...t.map(Q))})})}function rr(e,t=[],n=[],r=[]){Ft(r,t,n,t=>{B(4,()=>e(...t.map(Q)))})}function ir(e,t=0){return B(16|t,e)}function V(e){return B(32|de,e)}function ar(e){var t=e.teardown;if(t!==null){let n=gr,r=U;_r(!0),G(null);try{t.call(null)}catch(t){z(t,e.parent)}finally{_r(n),G(r)}}}function or(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Nt(()=>{e.abort(Ee)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function sr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(cr(e.nodes.start,e.nodes.end),n=!0),e.f|=ce,or(e,t&&!n),Ar(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();ar(e),e.f^=ce,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function cr(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function lr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ur(e,t,n=!0){var r=[];e.f|=256,dr(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function dr(e,t,n){if(!(e.f&8192)){e.f^=ae;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);dr(i,t,o?n:!1)}i=a}}}function fr(e){e.f&=-257,pr(e,!0)}function pr(e,t){if(!(e.f&256)&&e.f&8192){e.f^=ae,e.f&1024||(N(e,w),an.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);pr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function mr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var hr=null,gr=!1;function _r(e){gr=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function vr(e){U!==null&&(U.f&2097152||U.f&2)&&(J??=new Set).add(e)}var Y=null,X=0,Z=null;function yr(e){Z=e}var br=1,xr=0,Sr=xr;function Cr(e){Sr=e}function wr(){return++br}function Tr(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Tr(a)&&Kt(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,C)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(J!==null&&J.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Er(a,t,!1):t===a&&(n?N(a,w):a.f&1024&&N(a,ie),dn(a))}}function Dr(e){var t=Y,n=X,r=Z,i=U,a=J,o=j,s=W,c=Sr,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,pt(e.ctx),W=!1,Sr=++xr,e.ac!==null&&(Nt(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=me;var u=e.fn,d=u();e.f|=se;var f=Or(e);if(St()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(var p=0;p<Z.length;p++)Er(Z[p],e);if(i!==null&&i!==e){if(xr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=xr;if(t!==null)for(let e of t)e.rv=xr;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=ge),d}catch(t){return Or(e),Wn(t)}finally{e.f^=me,Y=t,X=n,Z=r,U=i,J=a,pt(o),W=s,Sr=c}}function Or(e){var t=e.deps,n=P?.is_fork;if(Y!==null){var r;if(n||Ar(e,X),t!==null&&X>0)for(t.length=X+Y.length,r=0;r<Y.length;r++)t[X+r]=Y[r];else e.deps=t=Y;if(qn()&&e.f&512)for(r=X;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&X<t.length&&(Ar(e,X),t.length=X);return t}function kr(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!f.call(Y,t))){var a=t;a.f&512&&(a.f^=512),a.v!==T&&Dt(a),a.ac!==null&&Nt(()=>{a.ac.abort(Ee),a.ac=null,N(a,w)}),qt(a),Ar(a,0)}}function Ar(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)kr(e,n[r])}function jr(e){var t=e.f;if(!(t&16384)){N(e,C);var n=K;K=e;try{t&16777232?sr(e):or(e),ar(e);var r=Dr(e);e.teardown=typeof r==`function`?r:null,e.wv=br}finally{K=n}}}async function Mr(){await Promise.resolve(),on()}function Nr(){return an.ensure().settled()}function Q(e){var t=!!(e.f&2);if(hr?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!J.has(e))){var n=U.deps;if(U.f&2097152)e.rv<xr&&(e.rv=xr,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{U.deps??=[],f.call(U.deps,e)||U.deps.push(e);var r=e.reactions;r===null?e.reactions=[U]:f.call(r,U)||r.push(U)}}if(gr&&gn.has(e))return gn.get(e);if(t){var i=e;if(gr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Fr(i))&&(a=Gt(i)),gn.set(i,a),a}var o=!(i.f&512)&&!W&&U!==null&&!!(U.f&512),s=(i.f&se)===0;Tr(i)&&(o&&(i.f|=512),Kt(i)),o&&!s&&(Jt(i),Pr(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function Pr(e){if(e.f|=512,e.deps!==null)for(let n of e.deps){var t=n.reactions;t===null?n.reactions=[e]:f.call(t,e)||t.push(e),n.f&2&&!(n.f&512)&&(Jt(n),Pr(n))}}function Fr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(gn.has(t)||t.f&2&&Fr(t))return!0;return!1}function Ir(e){var t=W;try{return W=!0,e()}finally{W=t}}function Lr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(_e in e)Rr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&_e in n&&Rr(n)}}}function Rr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Rr(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var zr=[`touchstart`,`touchmove`];function Br(e){return zr.includes(e)}var Vr=Symbol(`events`),Hr=new Set,Ur=new Set;function Wr(e,t,n,r={}){function i(e){if(r.capture||Xr.call(t,e),!e.cancelBubble)return Nt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?(i.__removed=!1,M(()=>{i.__removed||t.addEventListener(e,i,r)})):t.addEventListener(e,i,r),i}function Gr(e,t,n,r,i){var a={capture:r,passive:i},o=Wr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Jn(()=>{o.__removed=!0,t.removeEventListener(e,o,a)})}function Kr(e,t,n){(t[Vr]??={})[e]=n}function qr(e){for(var t=0;t<e.length;t++)Hr.add(e[t]);for(var n of Ur)n(e)}var Jr=null,Yr=!1;function Xr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Jr=e,Yr||(Yr=!0,setTimeout(()=>{Yr=!1,Jr=null}));var o=0,s=Jr===e&&e[Vr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Vr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=K;G(null),q(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[Vr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Vr]=t,delete e.currentTarget,G(u),q(d)}}}var Zr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Qr(e){return Zr?.createHTML(e)??e}function $r(e){var t=Hn(`template`);return t.innerHTML=Qr(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ei(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=$r(a?e:`<!>`+e),n||(i=L(i)));var t=r||Mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function ti(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return $(O,null),O;if(!o){var e=L($r(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function ni(e,t){return ti(e,t,`svg`)}function ri(e=``){if(!E){var t=I(e+``);return $(t,t),t}var n=O;return n.nodeType===3?Un(n):(n.before(n=I()),k(n)),$(n,n),n}function ii(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),$(t,n),e}function ai(e,t){if(E){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),A()}else e!==null&&e.before(t)}function oi(e){let t=0,n=yn(0),r;return()=>{qn()&&(Q(n),tr(()=>(t===0&&(r=Ir(()=>e(()=>Dn(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,Dn(n))})})))}}var si=le|de;function ci(e,t,n,r){new li(e,t,n,r)}var li=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=oi(()=>(this.#m=yn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ir(()=>{if(E){let e=ze(this.#t);A();let t=e===`[!`;if(e.startsWith(`[?`)){let t=JSON.parse(e.slice(2));this.#_(t)}else t?this.#b():this.#g()}else this.#x()},si),E&&(this.#e=O)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);M(r),t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{this.#y()||(t?Fe():(t=!0,n&&st(),this.#s!==null&&ur(this.#s,()=>{this.#s=null}),this.#C(()=>{this.#x()})))};return{reset:r,invoke_onerror:()=>{if(!this.#y())try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){z(e,this.#i&&this.#i.parent)}}}}#y(){return(this.#i.f&(oe|ce))!==0}#b(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),M(()=>{if(!this.#y()){var e=this.#c=document.createDocumentFragment(),t=I(),n=!1;e.append(t),this.#a=this.#C(()=>{try{return V(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){z(e,this.#i.parent)}return null}}),this.#a===null?(this.#c=null,n&&this.#S(P)):this.#u===0&&(this.#e.before(e),this.#c=null,ur(this.#o,()=>{this.#o=null}),this.#S(P))}}))}#x(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();mr(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#S(P)}catch(e){this.error(e)}}#S(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ot(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#C(e){var t=K,n=U,r=j;q(this.#i),G(this.#i),pt(this.#i.ctx);try{return an.ensure(),e()}finally{q(t),G(n),pt(r)}}#w(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#S(t),this.#o&&ur(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#w(e,t)}update_pending_count(e,t){this.#w(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&Tn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){if(e===Oe||!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.oncommit(()=>{this.#y()||this.#T(e)})):this.#T(e)}#T(e){this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),E&&(k(this.#t),Le(),k(Re()));let t=this.#n.failed,n=e=>{if(this.#y())return;let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&!this.#y()&&(this.#s=this.#C(()=>{try{return V(()=>{var r=K;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return z(e,this.#i.parent),null}}))};M(()=>{if(!this.#y()){var t;try{t=this.transform_error(e)}catch(e){z(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>z(e,this.#i&&this.#i.parent)):n(t)}})}};function ui(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[we]??=e.nodeValue)&&(e[we]=n,e.nodeValue=`${n}`)}function di(e,t){return mi(e,t)}function fi(e,t){Fn(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw Oe;D(!0),k(a);let r=mi(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
- `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Oe&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&tt(),Fn(),Bn(n),D(!1),di(e,t)}finally{D(r),k(i)}}var pi=new Map;function mi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Fn();var c=void 0,l=Qn(()=>{var o=n??t.appendChild(I());ci(o,{pending:()=>{}},t=>{yt({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&$(t,null),c=e(t,r)||xt(),E&&(K.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Pe(),Oe;bt()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Br(r);for(let e of[t,document]){var a=pi.get(e);a===void 0&&(a=new Map,pi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Xr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Hr)),Ur.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=pi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Xr),r.delete(e),r.size===0&&pi.delete(n)):r.set(e,i)}Ur.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return hi.set(c,l),c}var hi=new WeakMap;function gi(e,t){let n=hi.get(e);return n?(hi.delete(e),n(t)):Promise.resolve()}var _i=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)fr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(fr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();mr(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),ur(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=Vn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}},vi=0,yi=1,bi=2;function xi(e,t,n,r,i){E&&A();var a=St(),o=T,s=a?yn(o):xn(o,!1,!1),c=a?yn(o):xn(o,!1,!1),l=new _i(e);ir(()=>{var a=P,o=t(),u=!1;let d=E&&S(o)===(e.data===`[!`);if(d&&(k(Re()),D(!1)),S(o)){var f=It(),p=!1;let e=e=>{if(!u){p=!0,f(!1),P===a&&a.deactivate(),an.ensure();try{e()}finally{Lt(!1),Qt||on()}}};o.then(t=>{e(()=>{Tn(s,t),l.ensure(yi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Tn(c,t),l.ensure(bi,i&&(e=>i(e,c))),!i)throw c.v})}),E?l.ensure(vi,n):M(()=>{p||e(()=>{l.ensure(vi,n)})})}else Tn(s,o),l.ensure(yi,r&&(e=>r(e,s)));return d&&D(!0),()=>{u=!0}})}function Si(e,t,n=!1){var r;E&&(r=O,A());var i=new _i(e),a=n?le:0;function o(e,t){if(E){var n=ze(r);if(e!==parseInt(n.substring(1))){var a=Re();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}ir(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Ci=Symbol(`NaN`);function wi(e,t,n){E&&A();var r=new _i(e),i=!St();ir(()=>{var e=t();e!==e&&(e=Ci),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Ti(e,t){return t}function Ei(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];ur(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Di(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;Bn(u),u.append(l),e.items.clear()}Di(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Di(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=pe,mr(a,document.createDocumentFragment())):H(t[i],n)}}var Oi;function ki(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(L(c)):c.appendChild(I())}E&&A();var l=null,d=Ut(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f=new Map,m=!0;function h(e){if(!(_.effect.f&16384)){_.pending.delete(e);var n=Q(d);_.fallback=l,ji(_,n,o,t,r),l!==null&&(n.length===0?l.f&33554432?(l.f^=pe,Ni(l,null,o)):fr(l):ur(l,()=>{l=null}))}}function g(e){_.pending.delete(e)}var _={effect:ir(()=>{var e=Q(d),c=e.length;let u=!1;E&&ze(o)===`[!`!=(c===0)&&(o=Re(),k(o),D(!1),u=!0);for(var p=new Set,_=P,v=Vn(),y=0;y<c;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,u=!0,D(!1));var b=e[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&Tn(S.v,b),S.i&&Tn(S.i,y),v&&_.unskip_effect(S.e)):(S=Mi(s,m?o:Oi??=I(),b,x,y,i,t,n),m||(S.e.f|=pe),s.set(x,S)),p.add(x)}if(c===0&&a&&!l&&(m?l=V(()=>a(o)):(l=V(()=>a(Oi??=I())),l.f|=pe)),c>p.size&&qe(``,``,``),E&&c>0&&k(Re()),!m){if(f.set(_,p),v){for(let[e,t]of s)p.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_)}u&&D(!0),Q(d)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};m=!1,E&&(o=O)}function Ai(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ji(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=Ai(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(fr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=pe,_===c)Ni(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Pi(e,u,_),Pi(e,_,y),Ni(_,y,n),u=_,f=[],m=[],c=Ai(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)Ni(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);Pi(e,S.prev,ee.next),Pi(e,u,S),Pi(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),Ni(_,c,n),Pi(e,_.prev,_.next),Pi(e,_,u===null?e.effect.first:u.next),Pi(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=Ai(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Ai(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Di(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=Ai(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Ei(e,te,re)}}a&&M(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Mi(e,t,n,r,i,a,o,s){var c=o&1?o&16?yn(n):xn(n,!1,!1):null,l=o&2?yn(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ni(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function Pi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Fi(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(L(c)))}nr(()=>{var e=K;if(s===(s=t()??``))E&&A();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&$(L(c),c.lastChild);else if(e.nodes!==null&&(cr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=O.data,l=A(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=R(l);if(l===null)throw Pe(),Oe;$(O,u),o=k(l)}else{var d=Hn(r?`svg`:i?`math`:`template`,r?Ae:i?je:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(L(f),f.lastChild),r||i)for(;L(f);)o.before(L(f));else o.before(f)}}})}function Ii(e,t,...n){var r=new _i(e);ir(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},le)}function Li(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,A()):(i=L($r(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&Jn(a)}}function Ri(e,t,n){var r;E&&(r=O,A());var i=new _i(e);ir(()=>{var e=t()??null;if(E&&ze(r)===`[`!=(e!==null)){var a=Re();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0)}else i.ensure(e,e&&(t=>n(t,e)))},le)}function zi(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=L(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=R(a);if(a===null)D(!1);else{var o=R(a);a.remove(),k(o)}}E||(i=document.head.appendChild(I()));try{ir(()=>{var e=V(()=>t(i));e.f|=ue,E||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(D(!0),k(n))}}function Bi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Bi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Vi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Bi(e))&&(r&&(r+=` `),r+=t);return r}function Hi(e){return typeof e==`object`?Vi(e):e??``}var Ui=[...`
3
- \r\f\xA0\v`];function Wi(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ui.includes(r[o-1]))&&(s===r.length||Ui.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Gi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ki(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function qi(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ki)),i&&c.push(...Object.keys(i).map(Ki));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ki(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Gi(r)),i&&(n+=Gi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ji(e,t,n,r,i,a){var o=e[Se];if(E||o!==n||o===void 0){var s=Wi(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Se]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Yi(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Xi(e,t,n,r){var i=e[Ce];if(E||i!==t){var a=qi(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ce]=t}else r&&(Array.isArray(r)?(Yi(e,n?.[0],r[0]),Yi(e,n?.[1],r[1],`important`)):Yi(e,n,r));return r}var Zi=Symbol(`is custom element`),Qi=Symbol(`is html`),$i=De?`link`:`LINK`,ea=De?`progress`:`PROGRESS`;function ta(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ra(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ra(e,`checked`,null),e.checked=r}}};e[Te]=n,M(n),Mt()}}function na(e,t){var n=ia(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===ea)&&(e.value=t??``)}function ra(e,t,n,r){var i=ia(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===$i)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[be]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&oa(e).has(t)?e[t]=n:e.setAttribute(t,n))}function ia(e){return e[xe]??={[Zi]:e.nodeName.includes(`-`),[Qi]:e.namespaceURI===ke}}var aa=new Map;function oa(e){var t=e.getAttribute(`is`)||e.nodeName,n=aa.get(t);if(n)return n;aa.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=y(i)}return n}function sa(e,t,n=t){var r=new WeakSet;Pt(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ca(e)?la(a):a,n(a),P!==null&&r.add(P),await Mr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||Ir(t)==null&&e.value)&&(n(ca(e)?la(e.value):e.value),P!==null&&r.add(P)),tr(()=>{var n=t();if(e===document.activeElement){var i=P;if(r.has(i))return}ca(e)&&n===la(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function ca(e){var t=e.type;return t===`number`||t===`range`}function la(e){return e===``?null:+e}function ua(e,t){return e===t||e?.[_e]===t}function da(e=xt(),t,n,r){var i=j.r,a=K;return $n(()=>{var o,s;return tr(()=>{o=s,s=r?.()||[],Ir(()=>{ua(n(...s),e)||(t(e,...s),o&&ua(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ua(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function fa(e=!1){let t=j,n=t.l.u;if(!n)return;let r=()=>Lr(t.s);if(e){let e=0,n={},i=zt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Q(i)}n.b.length&&Zn(()=>{pa(t,r),te(n.b)}),Yn(()=>{let e=Ir(()=>n.m.map(ee));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Yn(()=>{pa(t,r),te(n.a)})}function pa(e,t){if(e.l.s)for(let t of e.l.s)Q(t);t()}var ma=[];function ha(e,t=x){let n=null,r=new Set;function i(t){if(Ve(e,t)&&(e=t,n)){let t=!ma.length;for(let t of r)t[1](),ma.push(t,e);if(t){for(let e=0;e<ma.length;e+=2)ma[e][0](ma[e+1]);ma.length=0}}}function a(t){i(t(e))}function o(o,s=x){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||x),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var ga=!1;function _a(e){var t=ga;try{return ga=!1,[e(),ga]}finally{ga=t}}function va(e,t,n,r){var i=!ct||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=zt(r),Q(l)):(c&&(c=!1,s=o?Ir(r):r),s);let d;if(a){var f=_e in e||ye in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=_a(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&rt(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?zt:Ut)(()=>(v=!1,g()));a&&Q(y);var b=K;return(function(e,t){if(arguments.length>0){let n=t?Q(y):i&&a?kn(e):e;return Sn(y,n),v=!0,s!==void 0&&(s=n),e}return gr&&v||b.f&16384?y.v:Q(y)})}function ya(e){return class extends ba{constructor(t){super({component:e,...t})}}}var ba=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=xn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ye||(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return Sn(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?fi:di)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&on(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{gi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function xa(e,t){if(Ue(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ne(e)}return t()}var Sa=s({afterUpdate:()=>ka,beforeUpdate:()=>Oa,createContext:()=>mt,createEventDispatcher:()=>Da,createRawSnippet:()=>Li,flushSync:()=>on,fork:()=>mn,getAbortSignal:()=>Ca,getAllContexts:()=>vt,getContext:()=>ht,hasContext:()=>_t,hydratable:()=>xa,hydrate:()=>fi,mount:()=>di,onDestroy:()=>Ta,onMount:()=>wa,setContext:()=>gt,settled:()=>Nr,tick:()=>Mr,unmount:()=>gi,untrack:()=>Ir});function Ca(){return U===null&&et(),(U.ac??=new AbortController).signal}function wa(e){j===null&&We(`onMount`),ct&&j.l!==null?Aa(j).m.push(e):Yn(()=>{let t=Ir(e);if(typeof t==`function`)return t})}function Ta(e){j===null&&We(`onDestroy`),wa(()=>()=>Ir(e))}function Ea(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Da(){let e=j;return e===null&&We(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=Ea(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function Oa(e){j===null&&We(`beforeUpdate`),j.l===null&&nt(`beforeUpdate`),Aa(j).b.push(e)}function ka(e){j===null&&We(`afterUpdate`),j.l===null&&nt(`afterUpdate`),Aa(j).a.push(e)}function Aa(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Ht as $,ni as A,nr as B,xi as C,ai as D,gi as E,Q as F,In as G,Zn as H,Nr as I,zn as J,Ln as K,Mr as L,qr as M,Kr as N,ii as O,Gr as P,Ut as Q,Ir as R,Si as S,ui as T,jn as U,Yn as V,An as W,Sn as X,kn as Y,bn as Z,Ii as _,ha as a,gt as at,Ti as b,sa as c,Ie as ct,na as d,o as dt,kt as et,Xi as f,s as ft,Ri as g,zi as h,va as i,yt as it,ri as j,ei as k,ta as l,x as lt,Hi as m,wa as n,ht as nt,fa as o,lt as ot,Ji as p,l as pt,Rn as q,ya as r,bt as rt,da as s,Le as st,Sa as t,At as tt,ra as u,re as ut,Fi as v,di as w,wi as x,ki as y,rr as z};
@@ -1 +0,0 @@
1
- var e=function(e,t){return new URL(e,t).href},t={},n=function(e){return e.pathname.endsWith(`.css`)},r=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=e(a,o);let s=d(a),c=n(s);return r(t,s.href,()=>{if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let e=document.createElement(`link`);if(e.rel=c?`stylesheet`:`modulepreload`,c||(e.as=`script`),e.crossOrigin=``,e.href=s.href,l&&e.setAttribute(`nonce`,l),document.head.appendChild(e),c)return new Promise((t,n)=>{e.addEventListener(`load`,t),e.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${s}`)))})})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})};export{i as t};
@@ -1 +0,0 @@
1
- import{$ as e,B as t,D as n,F as r,G as i,J as a,M as o,N as s,P as c,S as l,T as u,V as d,X as f,Z as p,c as m,ct as h,et as g,it as _,k as v,l as y,q as b,rt as x,u as S,ut as C,y as w}from"./Bze-M_kr.js";import{t as T}from"./BZeALCyJ.js";import"./xihTtKlq.js";import{i as E,r as D,t as O}from"./BavLcJN1.js";import{t as k}from"./-XH9wLvF.js";var A=v(`<p class="problem svelte-btgyzc" role="alert"> </p>`),j=v(`<form class="frame new svelte-btgyzc"><span class="frame-title">a new note</span> <label class="svelte-btgyzc"><span class="label">title</span> <input class="field" placeholder="Entropy" autocomplete="off"/></label> <label for="new-folder" class="svelte-btgyzc"><span class="label">folder</span></label> <!> <p class="faint path svelte-btgyzc"> </p> <!> <div class="row svelte-btgyzc"><button class="btn primary" type="submit">make it</button><button class="btn quiet" type="button">cancel</button></div></form>`),M=v(`<p class="soft empty svelte-btgyzc">This base has no notes yet. Make the first one.</p>`),N=v(`<span class="soft desc svelte-btgyzc"> </span>`),ee=v(`<li class="svelte-btgyzc"><a class="svelte-btgyzc"><span class="serif title svelte-btgyzc"> </span><!></a></li>`),te=v(`<section><h2 class="svelte-btgyzc"><span class="label"> </span><button class="btn quiet add svelte-btgyzc" type="button">+</button></h2> <ul class="svelte-btgyzc"></ul></section>`),ne=v(`<li class="svelte-btgyzc"><a class="svelte-btgyzc"><span class="serif title svelte-btgyzc"> </span><span class="soft desc svelte-btgyzc"> </span></a></li>`),re=v(`<section><h2 class="svelte-btgyzc"><span class="label">in the text</span></h2> <ul class="svelte-btgyzc"></ul></section>`),ie=v(`<p class="soft empty svelte-btgyzc">No note matches.</p>`),ae=v(`<div class="notes svelte-btgyzc"><div class="top svelte-btgyzc"><label class="hidden-label" for="filter">Find a note</label> <input id="filter" class="field grow" type="search" placeholder="find a note" autocomplete="off"/> <button class="btn primary" type="button" data-tour="new-note">new note</button></div> <!> <!> <!> <!> <!></div>`);function P(o,v){_(v,!0);let P=p(``),F=p([]),I=p(!1),L=p(``),R=p(``),z=p(``),B=e(()=>r(P).trim().toLowerCase().split(/\s+/).filter(Boolean)),V=e=>r(B).every(t=>`${e.title}\n${e.id}\n${e.description}`.toLowerCase().includes(t)),H=e(()=>r(B).length?O.listing.notes.filter(V):O.listing.notes),U=e(()=>{let e=new Map;if(!r(B).length)for(let t of O.listing.dirs)e.set(t,[]);for(let t of r(H))e.set(t.dir,[...e.get(t.dir)??[],t]);return[...e].sort(([e],[t])=>e<t?-1:+(e>t))}),W=e(()=>r(B).length?r(F).filter(e=>!r(H).some(t=>t.id===e.id)):[]);d(()=>{let e=r(P).trim();if(e.length<2){f(F,[]);return}let t=setTimeout(()=>{O.api.search(e).then(t=>{r(P).trim()===e&&f(F,t)},()=>void 0)},200);return()=>clearTimeout(t)});let G=e(()=>[r(R).trim().replace(/^\/+|\/+$/g,``),E(r(L))].filter(Boolean).join(`/`));function K(e=``){f(I,!0),f(R,e,!0),f(L,``),f(z,``)}async function oe(e){if(e.preventDefault(),!E(r(L)))f(z,`Give the note a title.`);else try{await O.api.createNote(r(G),`---\ntype: Concept\ntitle: ${JSON.stringify(r(L).trim())}\n---\n\n`),await O.refresh(),await T(D(r(G)))}catch(e){f(z,e.message,!0)}}var q=ae(),J=i(q),Y=a(i(J),2);y(Y),g(Y,!0);var se=a(Y,2);h(J);var X=a(J,2),ce=e=>{var o=j(),d=a(i(o),2),p=a(i(d),2);y(p),g(p,!0),h(d);var _=a(d,4);k(_,{id:`new-folder`,label:`folder`,placeholder:`none: the top of the base`,get value(){return r(R)},set value(e){f(R,e,!0)}});var v=a(_,2),x=b(v,!0),S=a(v,2),C=e=>{var i=A(),a=b(i,!0);t(()=>u(a,r(z))),n(e,i)};l(S,e=>{r(z)&&e(C)});var w=a(S,2),T=a(i(w));h(w),h(o),t(()=>u(x,r(G)?`${r(G)}.md`:` `)),c(`submit`,o,oe),m(p,()=>r(L),e=>f(L,e)),s(`click`,T,()=>f(I,!1)),n(e,o)};l(X,e=>{r(I)&&e(ce)});var Z=a(X,2),le=e=>{var t=M();n(e,t)};l(Z,e=>{!O.listing.notes.length&&!r(I)&&e(le)});var Q=a(Z,2);w(Q,17,()=>r(U),([e,t])=>e,(o,c)=>{var d=e(()=>C(r(c),2));let f=()=>r(d)[0],p=()=>r(d)[1];var m=te(),g=i(m),_=i(g),v=b(_,!0),y=a(_);h(g);var x=a(g,2);w(x,21,p,e=>e.id,(e,o)=>{var s=ee(),c=i(s),d=i(c),f=b(d,!0),p=a(d),m=e=>{var i=N(),a=b(i,!0);t(()=>u(a,r(o).description)),n(e,i)};l(p,e=>{r(o).description&&e(m)}),h(c),h(s),t(e=>{S(c,`href`,e),u(f,r(o).title)},[()=>D(r(o).id)]),n(e,s)}),h(x),h(m),t(()=>{u(v,f()||`the top of the base`),S(y,`aria-label`,`New note in ${f()||`the top of the base`}`)}),s(`click`,y,()=>K(f())),n(o,m)});var $=a(Q,2),ue=e=>{var o=re(),s=a(i(o),2);w(s,21,()=>r(W),e=>e.id,(e,o)=>{var s=ne(),c=i(s),l=i(c),d=b(l,!0),f=a(l),p=b(f,!0);h(c),h(s),t(e=>{S(c,`href`,e),u(d,r(o).title),u(p,r(o).snippet)},[()=>D(r(o).id)]),n(e,s)}),h(s),h(o),n(e,o)};l($,e=>{r(W).length&&e(ue)});var de=a($,2),fe=e=>{var t=ie();n(e,t)};l(de,e=>{r(B).length&&!r(H).length&&!r(W).length&&e(fe)}),h(q),m(Y,()=>r(P),e=>f(P,e)),s(`click`,se,()=>K()),n(o,q),x()}o([`click`]);export{P as t};
@@ -1,43 +0,0 @@
1
- import{$ as e,A as t,B as n,D as r,F as i,G as a,J as o,K as s,M as c,N as l,O as u,S as d,T as f,X as p,Y as m,Z as h,b as g,ct as _,f as ee,it as v,j as te,k as y,n as b,p as x,q as S,rt as ne,s as re,st as ie,u as ae,y as oe}from"./Bze-M_kr.js";import{t as se}from"./BZeALCyJ.js";import"./xihTtKlq.js";import{t as C}from"./BavLcJN1.js";import{i as w}from"./BN1DRYj2.js";import{i as T}from"./BcrJkegU.js";import{t as E}from"./DsnHcTIO.js";async function ce(){let{notes:e}=await C.api.notes(),t=await Promise.all(e.map(async e=>[e.id,(await C.api.readNote(e.id)).text]));return new Map(t)}async function le(e){let t=await ce(),n=[...e.keys()].filter(e=>!t.has(e));for(let[r,i]of t){if(e.has(r))continue;let t=n.find(t=>e.get(t)===i),{version:a}=await C.api.readNote(r);t?(await C.api.moveNote(r,t,a),n.splice(n.indexOf(t),1)):await C.api.deleteNote(r,a)}for(let t of n)await C.api.createNote(t,e.get(t));for(let[t,r]of e){if(n.includes(t))continue;let e=await C.api.readNote(t);e.text!==r&&await C.api.saveNote(t,{base:e.version,text:r})}await C.refresh()}var D={type:`string`};({...D}),{...D},{...D},{...D},{...D};var O={type:`string`};({...O}),{...O},{...O},{...O},{...O},{...O},{...O},{...O},{...O},{...O},{...O},{...O},{...O};var ue=`The change is written at once, under your name: the person sees your words marked in the note, and can undo it from the browser. Use this, never edit or write, for any note of the knowledge base.`;`${ue}`,`${ue}`;var k={insert:`how is a body inserted, and what does each node keep?`,rewrite:`answer my TODO`,speed:`how much faster is Barnes–Hut at N = 5000?`,octree:`How does the quadtree become an octree for 3D, and what changes in Barnes–Hut?`,close:`What goes wrong when two bodies pass close?`,octreeWrite:`write a note in algorithms on the octree: how the quadtree becomes one for 3D, and what changes in Barnes–Hut`,understand:`help me see why leapfrog's energy error stays bounded`,answer:`run backwards with −Δt, it retraces its steps`},A=`physics`,j=`integrators`,M=`algorithms`,N=`simulation`,P=(e,t)=>`${e}/${t}`,F=P(A,`newtons-law-of-gravitation`);P(A,`the-n-body-problem`);var I=P(A,`units`),L=P(A,`energy-conservation`),R=P(A,`softening`),z=P(j,`eulers-method`),B=P(j,`leapfrog`),de=P(j,`symplectic-integrators`),fe=P(j,`choosing-the-timestep`),pe=P(M,`direct-summation`),me=P(M,`centre-of-mass`),V=P(M,`the-quadtree`),H=P(M,`barnes-hut`),he=P(M,`cost-and-accuracy`),ge=P(N,`the-main-loop`);P(N,`initial-conditions`);var _e=P(N,`diagnostics`),U=P(N,`two-galaxies-colliding`),ve=`$F = G m_1 m_2 / d^2 = 1 \\cdot \\tfrac12 \\cdot \\tfrac12 / 1 = \\tfrac14$.
2
-
3
- Each accelerates at $a = F/m = \\tfrac14 / \\tfrac12$.
4
-
5
- So each accelerates at $\\tfrac12$, towards the other.`,ye=`$K = \\tfrac12 \\cdot \\tfrac12 \\cdot (\\tfrac12)^2 = \\tfrac1{16}$.
6
-
7
- $U = -G m_1 m_2 / d = -\\tfrac14$.
8
-
9
- So $E = \\tfrac1{16} - \\tfrac14 = -\\tfrac3{16}$.`,be=`$K = 2 \\times \\tfrac12 \\cdot \\tfrac12 \\cdot (\\tfrac12)^2 = \\tfrac18$, both bodies moving.
10
-
11
- $U = -G m_1 m_2 / d = -\\tfrac14$.
12
-
13
- So $E = \\tfrac18 - \\tfrac14 = -\\tfrac18$.`,xe=`After the step, $\\mathbf{r}' = \\mathbf{R} + \\mathbf{v}\\,\\Delta t$.
14
-
15
- So $|\\mathbf{r}'| = R + v\\,\\Delta t$.`,Se=`After the step, $\\mathbf{r}' = \\mathbf{R} + \\mathbf{v}\\,\\Delta t$, with $\\mathbf{v}$ at right angles to $\\mathbf{R}$.
16
-
17
- So $|\\mathbf{r}'|^2 = R^2 + v^2 \\Delta t^2$.
18
-
19
- So $|\\mathbf{r}'| \\approx R\\,(1 + v^2 \\Delta t^2 / 2R^2)$: larger, every step, whatever the sign of $\\Delta t$.`,Ce=`Kick: $\\mathbf{v} \\mathrel{+}= \\Delta t\\, \\mathbf{a}$.
20
-
21
- Drift: $\\mathbf{r} \\mathrel{+}= \\Delta t\\, \\mathbf{v}$.
22
-
23
- Kick: $\\mathbf{v} \\mathrel{+}= \\Delta t\\, \\mathbf{a}$, with the new $\\mathbf{a}$.`,we=`Kick: $\\mathbf{v} \\mathrel{+}= \\tfrac12 \\Delta t\\, \\mathbf{a}$.
24
-
25
- Drift: $\\mathbf{r} \\mathrel{+}= \\Delta t\\, \\mathbf{v}$.
26
-
27
- Kick: $\\mathbf{v} \\mathrel{+}= \\tfrac12 \\Delta t\\, \\mathbf{a}$, with the new $\\mathbf{a}$: two half kicks make one whole.`,W=`Leapfrog keeps a nearby energy $\\tilde H = H + O(\\Delta t^2)$ exactly.
28
-
29
- So $H$ can only wobble around $\\tilde H$, never drift.
30
-
31
- RK4 keeps no such quantity, so its small errors add up.`,Te=`$M = 1 + 2 + 1 = 4$.
32
-
33
- $\\mathbf{R} = (1 \\cdot (0,0) + 2 \\cdot (3,0) + 1 \\cdot (0,4)) / 4 = (6, 4)/4$.
34
-
35
- So $\\mathbf{R} = (1.5, 1)$, with $M = 4$.`,Ee=`The drift falls as $\\Delta t^2$; at $T/100$ it is a few parts in a million.
36
-
37
- So $\\Delta t = 2\\pi/100 \\approx 0.06$ is enough.
38
-
39
- Check: record $E$ every 100 steps and plot the drift; halve $\\Delta t$ and it should fall by four.`,De=[{folder:A,name:`the-pull-between-two-bodies`,title:`The pull between two bodies`,uses:[F,I],made:20,question:`In units with $G = 1$, two bodies of mass $\\tfrac12$ are 1 apart. How fast does each accelerate, and which way?`,attempts:[20,17,12,5,2].map(e=>({day:e,working:ve}))},{folder:A,name:`the-energy-of-the-orbit`,title:`The energy of the two-body orbit`,uses:[L,F],made:16,question:`For the two-body orbit of the notes (masses $\\tfrac12$, 1 apart, each moving at $\\tfrac12$), find $K$, $U$ and $E$.`,attempts:[{day:16,working:ye},{day:14,working:be},{day:9,working:be},{day:3,working:be}]},{folder:j,name:`why-eulers-orbit-spirals-out`,title:`Why Euler's orbit spirals out`,uses:[z,L],made:15,question:`A body on a circular orbit of radius $R$ takes one Euler step. Show that its distance from the centre grows, and by how much, to leading order in $\\Delta t$.`,attempts:[{day:15,working:xe},{day:13,working:Se},{day:6,working:Se},{day:3,working:Se}]},{folder:j,name:`one-leapfrog-step`,title:`One leapfrog step`,uses:[B],made:12,question:`Write one leapfrog step as kick, drift and kick, and say how many times the accelerations are computed.`,attempts:[{day:12,working:Ce},{day:8,working:we},{day:3,working:we}]},{folder:j,name:`why-leapfrog-does-not-drift`,title:`Why leapfrog does not drift`,uses:[de,B],made:10,question:`RK4 is more accurate than leapfrog over one step. Why, then, does its energy drift over a long run while leapfrog's does not?`,attempts:[{day:10,working:W},{day:1,working:W}]},{folder:M,name:`the-centre-of-mass-of-a-node`,title:`The centre of mass of a node`,uses:[me],made:6,question:`A node holds bodies of mass 1 at $(0,0)$, 2 at $(3,0)$ and 1 at $(0,4)$. What is its total mass, and where is its centre of mass?`,attempts:[6,4,2,1].map(e=>({day:e,working:Te}))},{folder:M,name:`the-cost-of-direct-summation`,title:`The cost of direct summation`,uses:[pe],made:1,question:`Using Newton's third law, how many pairs does direct summation compute each step for $N$ bodies? At 20 ns a pair, how long is a step at $N = 2000$?`,attempts:[],unsent:`Each body feels the other $N - 1$.
40
-
41
- So there are $N(N-1)$ pairs: $2000 \\times 1999 \\approx 4 \\times 10^6$.
42
-
43
- At 20 ns a pair, a step takes 0.08 s.`},{folder:N,name:`a-timestep-for-the-orbit`,title:`A timestep for the orbit`,uses:[fe,_e],made:11,question:`For the two-body orbit (period $2\\pi$), choose $\\Delta t$ for leapfrog so that the energy drift stays below $10^{-5}$, and say how you would check it.`,attempts:[11,7].map(e=>({day:e,working:Ee}))}],G=`surfaces`,K=`curvature`,q=`global`,J=(e,t)=>`${e}/${t}`;J(G,`regular-surfaces`),J(G,`first-ff`),J(G,`second-ff`),J(G,`orientable`),J(K,`gaussian-curvature`),J(K,`egregium`),J(K,`gauss-equation`),J(K,`geodesic-curvature`),J(q,`euler`);var Y=J(q,`gauss-bonnet`);J(q,`triangulations`);var Oe=J(q,`where-is-compactness-used`);J(G,`why-ii-changes-sign`),J(K,`derivatives-when-f-is-zero`),J(q,`kg-at-the-corners`);var ke=J(q,`total-curvature-of-the-torus`),Ae=J(q,`angles-of-a-geodesic-triangle`);J(q,`gauss-bonnet-and-the-mobius-band`),J(K,`curvature-of-a-sphere`),J(K,`curvature-of-the-saddle`),J(K,`the-cylinder-and-the-plane`),J(K,`k-from-e-and-g-alone`),J(K,`catenoid-and-helicoid`),J(q,`chi-of-a-surface-of-genus-g`),`${Y}${ke}${Y}${Oe}${Ae}`;var je={back:`where is compactness used in the proof?`,remark:`put my answers on compactness together as a remark for the note`},Me=18+De.length,Ne=new Map,Pe=0,Fe=(e,t)=>n=>n.type===`iso-start`&&n.place.form===`turn`&&n.place.mode===e&&t.test(n.asked.toLowerCase()),Ie=(e,t,n=()=>!0)=>r=>{if(r.type!==`iso-done`)return!1;let i=Ne.get(r.request);return!!i&&i.mode===e&&t.test(i.asked.toLowerCase())&&n(i)},Le=e=>t=>t.type===`iso-done`&&e.test(Ne.get(t.request)?.asked.toLowerCase()??``),Re=0,ze=e=>()=>decodeURIComponent(location.hash).startsWith(e),Be=e=>()=>document.querySelector(e)!==null,Ve=e=>()=>document.querySelector(`[data-note="${e}"]`)?.classList.contains(`at`)??!1,He=e=>C.listing.notes.find(t=>e.test(t.title)),X=new Map,Ue=new Map;function We(e){C.api.readNote(e).then(t=>{X.set(e,t.text),Ue.has(e)||Ue.set(e,t.text)},()=>X.delete(e))}var Z=e=>(X.has(e)||(X.set(e,``),We(e)),X.get(e)??``),Ge=e=>(Z(e),Ue.get(e)??``),Ke=!1;function qe(){!Ke&&C.api&&(Ke=!0,C.on(e=>{e.type===`note-changed`&&X.has(e.id)&&We(e.id),e.type===`iso-start`&&e.place.form===`turn`&&Ne.set(e.request,{mode:e.place.mode,asked:e.asked,understanding:e.place.given.some(e=>e.kind===`understanding`)}),e.type===`iso-item`&&e.item.kind===`undone`&&Pe++,Ie(`write`,/todo/)(e)&&Re++}))}var Je=(e,t)=>(qe(),e.match(t)?.length??0),Ye=(e,t)=>Je(e,RegExp(`\\]\\(/${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}\\.md`,`g`)),Xe=()=>C.atlas?.chosenId?[...document.querySelectorAll(`.atlas`)]:[],Ze=!1,Qe=``,$e=0,et=()=>T.layoutChanges>$e&&T.layout===Qe;function tt(e){let t=!1,n=0;return()=>{let r=document.querySelector(`[data-folder="${e}"]`)?.getBoundingClientRect(),i=document.querySelector(`.atlas`)?.getBoundingClientRect();if(!r||!i?.width)return!1;let a=Math.max(r.width/i.width,r.height/i.height);return n||=a,(C.atlas?.here===e||a>Math.max(.5,n*1.6))&&(t=!0),t&&C.atlas?.here!==e&&a<n*1.3}}var Q=`[data-pane="iso"]`,nt=new Set;function rt(){if(qe(),!nt.size)for(let e of C.listing.notes)nt.add(e.id);Qe=T.layout,$e=T.layoutChanges}var it=()=>C.listing.notes.filter(e=>nt.size&&!nt.has(e.id)),at=[{key:`L1`,title:`The isorite knowledge base`,about:`Understand the basics of an isorite knowledge base in its three panes: the note, the Atlas, and Iso. Edit Markdown, link notes, and see the links on the Atlas.`,steps:[{go:`/atlas`,target:`[data-pane="note"] [data-settings="note"], [role="dialog"][aria-label="Note settings"]`,check:et,title:`Three panes`,text:`The Note pane is for thinking and writing, the Atlas for connecting, Iso for building and talking. The layouts are in the Note pane's settings, at the right of its header: try another, then come back to this one.`,phone:{go:`/notes`,target:`nav[aria-label="Panes"]`,check:()=>T.focus===`atlas`,text:`The Note pane is for thinking and writing, the Atlas for connecting, Iso for building and talking. On a phone they are the tabs at the foot: tap Atlas.`}},{go:`/atlas`,target:`[data-folder="integrators"]`,check:tt(`integrators`),title:`This is the Atlas`,text:`Each block is a note, each bubble a folder, each line a link. Step into integrators: click inside it, or scroll in. Then click open ground to step out.`,phone:{text:`Each block is a note, each bubble a folder, each line a link. Tap inside integrators to step in, then ↑ out at the top.`}},{go:`/atlas`,target:`[data-note="${B}"]`,check:Ve(B),title:`What a note rests on`,wrong:()=>C.atlas?.chosenId&&C.atlas.chosenId!==B?`That is ${C.atlas.chosen}. Choose Leapfrog, in integrators.`:null,text:`Click Leapfrog. What it requires, and what builds on it, light up.`,phone:{text:`Tap Leapfrog. What it requires, and what builds on it, light up.`}},{target:Xe,check:ze(`#/n/${B}`),title:`Open it`,text:`Click Leapfrog again. It opens in the Note pane.`,phone:{text:`Tap Leapfrog again. It opens in the Note pane, and the Note tab comes forward.`}},{go:`/n/${B}`,target:`[data-pane="note"] .cm-content`,check:()=>Je(Z(B),/\*\*[^*\n]+\*\*/g)>Je(Ge(B),/\*\*[^*\n]+\*\*/g),title:`A note is Markdown`,text:`Select a word and press Ctrl+B. Changes save as you type: the dot in the Note pane's header says so.`,phone:{text:`Make a word bold: type ** on each side of it. Changes save as you type.`}},{target:`[data-pane="note"] .cm-content`,check:()=>Ye(Z(B),L)>Ye(Ge(B),L),title:`Link a note`,text:`At the end of the last paragraph, type [[ener and choose Energy and its conservation.`},{target:()=>[...Xe(),...document.querySelectorAll(`path.grown`)],title:`The link, on the Atlas`,text:`Watch the Atlas: the new link is drawn from Leapfrog to Energy and its conservation.`,phone:{go:`/atlas`,target:`[data-note="${L}"]`,text:`On the Atlas, the new link runs from Leapfrog to Energy and its conservation.`}},{go:`/n/${B}`,target:`[data-pane="note"] .cm-content`,check:()=>/\]\(\/physics\/energy-conservation\.md "requires"\)/.test(Z(B)),title:`Its kind`,text:`Click in the new link, press Alt+L, and choose Requires.`,phone:{text:`Tap the button beside the new link and choose Requires.`}},{target:Xe,title:`The kind, on the Atlas`,text:`On the Atlas, requires is drawn strongest.`,phone:{go:`/atlas`,target:`[data-note="${L}"]`,text:`On the Atlas, requires is drawn strongest.`}},{go:`/n/${B}`,target:()=>[...document.querySelectorAll(`[data-pane="note"] .sw[data-switch="timeline"], .timeline, .atbar`)],check:()=>(Be(`.atbar`)()&&(Ze=!0),Ze&&!Be(`.atbar`)()),title:`Every change is kept`,text:`Switch on the timeline in the Note pane's header, then click its first mark: the note as it was. The → at the right of the bar brings you back.`,phone:{text:`Switch on the timeline in the Note pane's header, then tap its first mark: the note as it was. The → at the right of the bar brings you back.`}},{go:`/n/${B}`,target:`[data-pane="note"] .cm-content`,check:ze(`#/n/${L}`),title:`Follow the link`,wrong:()=>{let e=decodeURIComponent(location.hash).match(/^#\/n\/([^?]+)/)?.[1];return e&&e!==B&&e!==L?`That is another note. Go back, and follow the link to Energy and its conservation.`:null},text:`Ctrl+click (⌘ on a Mac) the link to Energy and its conservation.`,phone:{go:`/atlas`,target:`[data-note="${L}"]`,text:`Tap Energy and its conservation on the Atlas, then tap it again.`}},{go:`/n/${L}`,target:`[data-pane="note"] button[aria-label="All notes"], [data-pane="note"] .tree`,check:ze(`#/n/${R}`),title:`All the notes`,text:`The icon by the settings, in the Note pane's header, opens every note. Type soft to find Softening, and open it.`},{go:`/n/${R}`,target:()=>[...document.querySelectorAll(`[data-pane="note"] .tools, [data-pane="note"] .details`)],check:()=>/^tags:/m.test(Z(R))&&!/^tags:/m.test(Ge(R)),title:`Its details`,text:`Open details above the text and add a tag, say numerics.`},{go:`/atlas`,target:`[data-folder="physics"]`,check:()=>He(/^plummer sphere$/i)?.dir===`physics`,wrong:()=>{let e=He(/^plummer sphere$/i);return e&&e.dir!==`physics`?`It went into ${e.dir||`the top of the base`}. Redo, and hold inside physics.`:null},title:`A new note, where you hold`,text:`On the Atlas, press and hold inside physics until a note's icon is marked, and let go. An untitled note opens with its title chosen: type Plummer sphere, and press Enter.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .details, [data-pane="note"] .tools`)],check:()=>it().length>0&&it().every(e=>e.dir===`galaxies`),title:`Move it`,wrong:()=>{let e=it().find(e=>e.dir!==`physics`&&e.dir!==`galaxies`);return e?`It went into ${e.dir||`the top of the base`}. Type galaxies: a new folder is made for it.`:null},text:`In details, change its folder to galaxies, a folder the base does not have yet: it is made for the note.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .details, [data-pane="note"] .tools`)],check:()=>nt.size>0&&it().length===0&&C.listing.notes.length===Me,title:`Delete it`,text:`In details, click delete, then confirm.`},{title:`That is the base`,text:`The base is a folder of Markdown files: any editor opens them. Next, Iso, in L2.`}]},{key:`L2`,title:`Iso`,about:`Iso is an agent who knows your knowledge base. Talk with it in its own pane: ask, give it notes and passages, and let it write, with every change marked and undoable.`,steps:[{go:`/n/${V}`,target:`${Q}`,fill:k.insert,until:Fe(`ask`,/inserted/),title:`Ask Iso`,text:`Iso has a pane of its own. With the quill in its header off, it reads your notes and changes nothing. Your question from the quadtree is written in its box: press Enter.`,phone:{text:`Iso has a pane of its own: tap its tab. With the quill in its header off, it reads your notes and changes nothing. Your question from the quadtree is written in its box: send it with the arrow.`}},{target:()=>[...document.querySelectorAll(`[data-pane="atlas"] .sw[data-switch="context"], ${Q}`)],until:Ie(`ask`,/inserted/),title:`Watch it read`,text:`Switch on Iso's context, the diamond in the Atlas's header: what Iso reads is numbered on the map in order, as it reads it. In Iso's pane, each note it read opens with a click.`,phone:{target:Q,text:`Each note Iso reads is said in its pane as it reads it. On the Atlas, with the diamond in its header on, what it read is numbered in order.`}},{go:`/n/${V}`,target:()=>[...document.querySelectorAll(`[data-note="${H}"], [data-pane="note"] .cm-content`)],check:()=>w.parts.some(e=>e.kind===`note`&&e.id===H)&&w.parts.some(e=>e.kind===`passage`&&e.id===V),title:`Give Iso a note, and a passage`,text:`Iso answers from what it finds. To give it what you mean: hold Barnes–Hut on the Atlas (or drag it onto Iso's pane). Then select a sentence of the quadtree, and click send to Iso beside it.`,phone:{text:`Iso answers from what it finds. To give it what you mean: on the Atlas, hold Barnes–Hut and choose Give to Iso. Then select a sentence of the quadtree, and tap send to Iso under it.`}},{target:`${Q} .ctx, ${Q} .context`,check:()=>E.view===`context`&&E.off.length>0&&!w.parts.some(e=>e.kind===`passage`),title:`What Iso is sent`,text:`The icon in Iso's header counts what you gave: click it. Here is what Iso is sent, part by part, each with its size. Switch off your first question, and take the sentence out with its ×.`},{go:`/n/${H}`,target:()=>[...document.querySelectorAll(`${Q} .sw[data-switch="notes"], #iso-box`)],fill:k.rewrite,until:Ie(`write`,/todo/),title:`Let it write`,text:`Click the Context icon again for the conversation. Switch on the quill in Iso's header: Iso may change your notes. Barnes–Hut is open, with its TODO; the request is written for you: send it.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .sw[data-switch="provenance"], [data-pane="note"] .cm-content`)],title:`Its words, marked`,text:`The change went straight into the note. Switch on provenance, the half-filled square in the Note pane's header: Iso's words are marked.`},{target:()=>[...document.querySelectorAll(`${Q} button[aria-label="Undo this turn's changes"], [data-pane="note"] .cm-content`)],check:()=>Pe>0&&Re>=2&&!/TODO:/.test(Z(H)),title:`Undo, and again`,text:`Under Iso's reply, ↺ puts back everything the turn changed: the TODO is back. Then send the request again, and leave the answer this time.`},{title:`Iso, in short`,text:`With the quill off Iso reads; on, it writes, and every change it makes is marked and can be undone. What it is sent is yours to choose. Next: L3, questions and problems.`}]},{key:`E1`,title:`Knowledge work with isorite`,earlier:!0,about:`isorite provides a home for structured project knowledge work. This walkthrough shows how isorite can be used in an example knowledge base on an N-body simulation.`,steps:[{go:`/n/${U}`,target:`[data-pane="note"] .cm-content`,title:`The goal`,text:`Two galaxies colliding, at N = 5000: where the tidal tails start to look right, and where direct summation is too slow. This evening's work is to get there with Barnes–Hut.`},{go:`/atlas`,target:`[data-note="${U}"]`,check:Ve(U),title:`What it rests on`,text:`Choose Two galaxies colliding: what it requires is lit, and a click on one of those steps back to it, and on, back to Newton's law. That is the reading list for tonight.`},{go:`/n/${he}`,target:Q,fill:k.speed,until:Ie(`ask`,/faster/),title:`How much faster?`,text:`Cost and accuracy is open. With the quill off, ask Iso how much faster Barnes–Hut is at N = 5000: the question is written for you.`},{target:Q,title:`Checked against your notes`,text:`Iso checked its arithmetic against direct summation and Barnes–Hut, and says to measure, as your note says.`},{target:Q,fill:k.octreeWrite,until:Ie(`write`,/octree/),title:`Plan the octree`,text:`The simulation is 3D, and the quadtree is 2D. With the quill on, ask Iso to write a note on the octree, in algorithms: the request is written for you.`},{target:`${Q} .change`,check:()=>ze(`#/n/algorithms/the-octree`)(),title:`Its note`,text:`Iso made The octree. Click it in Iso's pane to open it: it is one of your notes now, linked to the quadtree and Barnes–Hut.`},{go:`/n/${ge}`,target:`[data-pane="note"] .cm-content`,check:()=>/octree/i.test(document.querySelector(`[data-pane="note"] .cm-content`)?.textContent??``),title:`Link it in`,text:`The main loop is where it will be used. At the end of the first paragraph, type [[oct and choose the octree.`}]},{key:`L3`,base:`geometry`,title:`Questions and problems`,about:`Open questions and problems are notes of their own, beside the notes they are about. See who wrote what, follow them on the Atlas, let Iso ask you back and put your own answers together, and read how Iso reads you. On notes about the geometry of surfaces.`,steps:[{go:`/n/${Y}`,target:()=>[...document.querySelectorAll(`[data-pane="note"] .sw[data-switch="provenance"], [data-pane="note"] .cm-content`)],check:()=>T.on.provenance,title:`Whose words`,text:`These are notes on the geometry of surfaces. Gauss–Bonnet is open. Switch on provenance, the half-filled square in the Note pane's header: the proof sketch is Iso's, untouched, and the examples are yours.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .sw[data-switch="timeline"], .timeline`)],check:()=>T.on.timeline,title:`Every change is kept`,text:`Switch on the timeline, beside it: each mark is a moment in the note's life, Iso's sketch among them.`},{target:`.cm-lp-embed`,check:ze(`#/n/${Oe}`),title:`A question in a note`,text:`After Compact: stands a question of yours, embedded. Click it: it opens as a note of its own.`,phone:{text:`After Compact: stands a question of yours, embedded. Tap it: it opens as a note of its own.`}},{go:`/atlas`,target:`.atlas a.n.question`,check:Ve(Oe),title:`Questions on the Atlas`,text:`Open questions are blocks on the Atlas with a ? in the notch, each beside what it is about. Click Where is compactness used?: its note lights, and the note it asks about.`,phone:{text:`Open questions are blocks on the Atlas with a ? in the notch, each beside what it is about. Tap Where is compactness used?: its note lights, and the note it asks about.`}},{target:()=>[...document.querySelectorAll(`[data-pane="atlas"] .sw[data-switch="web"], [data-pane="atlas"] .sw[data-switch="code"], .sat`)],check:()=>T.on.web&&T.on.code,title:`Links out of the base`,text:`Switch on web and code in the Atlas's header: links to a page and to code stand beside their note as small blocks. geodesics.jl is struck through: it is not in the repository.`},{go:`/atlas`,target:`[data-note="${Y}"]`,check:()=>w.parts.some(e=>e.kind===`note`&&e.id===Y),title:`Give Iso the note`,text:`Hold Gauss–Bonnet on the Atlas (or drag it onto Iso's pane). Its open questions go with it.`,phone:{text:`On the Atlas, hold Gauss–Bonnet and choose Give to Iso. Its open questions go with it.`}},{target:Q,fill:je.back,until:Le(/compactness is used|compactness used/),title:`Iso asks you back`,text:`Gauss–Bonnet is in Iso's context with its question. The request is written for you: send it. Given an open question, Iso asks before it explains.`},{target:Q,fill:je.remark,until:Le(/answers on compactness/),title:`Your answers, put together`,text:`Under Where is compactness used? are two answers of yours. Ask Iso to put them together: the request is written for you.`},{target:()=>[...document.querySelectorAll(`${Q} [data-offer]`)],check:()=>Je(Z(Y),/\*\*Compact:\*\*/g)>=2,title:`Inserted as yours`,text:`Iso offers the remark in your words. The arrow inserts it at the end of Gauss–Bonnet, as yours: Iso's offer is not in the note until you say.`},{go:`/n/${Y}`,target:`[data-tour="understanding"], [data-pane="note"] .u`,check:()=>T.understanding,title:`How Iso reads you`,text:`Open Gauss–Bonnet's Understanding note, the sprig in the Note pane's header. Each sentence of Iso's reading rests on something you can open: your examples, the torus you solved, the question still open.`},{go:`/n/${Oe}`,target:`[data-tour="understanding"], [data-pane="note"] .titlerow`,check:()=>/^resolved:/m.test(Z(Oe)),title:`Resolve it`,text:`Your remark is in the note. Close the Understanding note with the sprig, then press the ✓ in the question's title row: it resolves it, yours to press and never Iso's.`},{title:`Questions and problems, in short`,text:`A question or a problem is a note with a type, kept beside the notes it is about. Iso asks you back, checks a solution without marking it, and offers your own answers for you to insert. Resolving and solving are yours.`}]},{key:`E2`,title:`Learning with isorite`,steps:[],about:`How isorite gets you up to speed quickly, on the same N-body simulation project.`},{key:`L4`,title:`The terminal interface`,earlier:!0,about:`Iso shares a common substrate of understanding with you as you build together. Extending the familiar OpenCode 2, learn to use isorite's terminal and web interfaces jointly.`,steps:[{title:`isorite in the terminal`,text:`For work that needs more than notes: code. isorite term runs OpenCode, an agent that edits code, with your base beside it. To walk through it on your machine, with OpenCode 2 installed: isorite --tutorial.`},{title:`It looks before it codes`,text:`The agent has your base as tools: brief_base, search_notes, find_similar, outline_note and read_note. Asked to write Barnes–Hut, it reads your notes on it first, and cites them.`},{go:`/atlas`,target:`.atlas-world`,title:`Watched from here`,text:`While it works, this Atlas follows it: what it found and read is drawn as Iso's path is, and what it used.`},{title:`Its changes to notes wait`,text:`edit_note and write_note: what the agent changes in your notes is written at once under its name, its words marked as Iso's are, and undone the same way. Its changes to code are OpenCode's own, which asks before it writes.`},{title:`From here to there`,text:`In the terminal, /note opens a note and /atlas shows what it requires and what builds on it.`},{title:`Its tour, replayed`,link:{href:`#/terminal`,text:`isorite in the terminal: its tour, replayed`},text:`Every screen of the terminal's tour, as OpenCode drew it.`}],local:{about:`The agent in OpenCode, in the terminal beside this page, with your notes as its tools; this page follows it.`,steps:[{title:`The terminal beside this page`,text:`The terminal you ran isorite --tutorial in is this part: its own card leads, a step at a time. This page follows it. Keep the Atlas open where you can see both.`},{go:`/atlas`,target:`.atlas-world`,until:e=>e.type===`agent-done`,title:`Watched from here`,text:`In the terminal, ask the agent for code, as its card says. It looks in your notes first: watch its path drawn here as it reads, found by words, by meaning, or along a link.`},{go:`/n/${U}`,title:`Its changes to notes wait here too`,text:`When the agent would change a note, the change waits in the note, here as in the terminal, under its name. Keep it in either; the other sees it.`},{title:`On your own notes`,text:`In your project's folder: isorite term <your base>, and the browser at the address it gives. isorite serve <your base> opens the browser alone.`}]}},{key:`E3`,title:`Building with isorite`,steps:[],about:`Putting it all together: rewrite the N-body simulation to use the Barnes–Hut algorithm, with structured agentic awareness of the project.`}],ot=()=>new URLSearchParams(location.search).get(`base`)===`geometry`?`geometry`:`nbody`,st=(e,t)=>`${location.pathname}${e===`geometry`?`?base=geometry`:``}#${t}`,$=m({part:-1,at:0,left:!1,ticks:{},mistake:``}),ct=`isorite.tour`;function lt(e,t){try{sessionStorage.setItem(ct,JSON.stringify({part:e,at:t,left:!1,ticks:$.ticks}))}catch{}}function ut(){try{let e=JSON.parse(sessionStorage.getItem(ct)??`null`);return sessionStorage.removeItem(ct),e?(Object.assign($,{part:e.part,at:e.at,left:e.left,ticks:e.ticks}),e.part>=0):!1}catch{return!1}}var dt={snap:null};function ft(e,t){$.ticks[e]??=[],$.ticks[e].includes(t)||$.ticks[e].push(t)}var pt=e=>{var t=mt();r(e,t)},mt=t(`<svg class="tick svelte-1195hbs" viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M2 6.5l2.6 2.6L10 3.4" fill="none" stroke="currentColor" stroke-width="1.6"></path></svg>`),ht=y(`<button class="back btn quiet svelte-1195hbs" type="button">the tutorial</button>`),gt=y(`<span class="note svelte-1195hbs">an earlier version, being rewritten</span>`),_t=y(`<button type="button" class="section svelte-1195hbs"><span class="key svelte-1195hbs"> </span> <span class="what svelte-1195hbs"><span class="t svelte-1195hbs"> </span><span class="about svelte-1195hbs"> </span><!></span> <span class="progress svelte-1195hbs"><!><span class="go svelte-1195hbs" aria-hidden="true">›</span></span></button>`),vt=y(`<div class="section coming svelte-1195hbs"><span class="key svelte-1195hbs"> </span> <span class="what svelte-1195hbs"><span class="t svelte-1195hbs"> </span><span class="about svelte-1195hbs"> </span><span class="note svelte-1195hbs">coming</span></span></div>`),yt=y(`<li><!></li>`),bt=y(`<div class="coach frame parts svelte-1195hbs" role="dialog" aria-label="The tutorial" aria-live="polite"><span class="label">isorite, tutorial</span> <p class="svelte-1195hbs">This is a demo of isorite on example projects: an N-body simulation, and notes on the geometry of surfaces. Explore and read the knowledge base as you like, or follow the sections below for an interactive walkthrough.</p> <p class="faint svelte-1195hbs"><!></p> <ol class="list svelte-1195hbs"></ol> <div class="row actions svelte-1195hbs"><span class="grow"></span><button class="btn quiet svelte-1195hbs" type="button">leave</button></div></div>`),xt=y(`<div aria-hidden="true"></div>`),St=y(`<i></i>`),Ct=y(`<button class="fold svelte-1195hbs" type="button"> </button>`),wt=y(`<p class="svelte-1195hbs"> </p>`),Tt=y(`<p class="svelte-1195hbs"><a> </a></p>`),Et=y(`<p class="mistake svelte-1195hbs" role="status"> </p>`),Dt=y(`<button class="btn quiet svelte-1195hbs" type="button" aria-label="back a step">‹ back</button>`),Ot=y(`<span class="label done svelte-1195hbs"><!> done</span>`),kt=y(`<button class="btn quiet svelte-1195hbs" type="button" title="put the base back as this step found it"> </button>`),At=y(`<!> <div role="dialog" aria-label="The tutorial" aria-live="polite"><div class="row head svelte-1195hbs"><span class="label"> </span><span class="grow"></span> <span class="seg svelte-1195hbs"></span> <button class="link svelte-1195hbs" type="button">sections</button> <button class="link svelte-1195hbs" type="button">leave</button></div> <h2 class="svelte-1195hbs"><!></h2> <!> <!> <!> <div><!> <!> <span class="grow"></span> <!> <button type="button"> </button></div></div>`,1);function jt(t,c){v(c,!0);let m=!!C.session?.tutorial,y=at.filter(e=>!(m&&e.base)).map(e=>m&&e.local?{...e,...e.local}:e),w=e(()=>$.left),T=e(()=>$.part>=0?y[$.part]:null),E=h(!1),D=e(()=>{let e=i(T)?.steps[$.at];return e?{...e,...i(E)?e.phone:{}}:null}),O=e(()=>!!(i(D)?.until||i(D)?.check)),ue=e(()=>i(T)!==null&&$.at===i(T).steps.length-1),k=(e,t)=>$.ticks[e]?.includes(t)??!1,A=e(()=>i(T)!==null&&k(i(T).key,$.at)),j=h(null),M=h(void 0),N=h(!1),P=h(!1),F=h(!1),I=h(0),L=h(!1);async function R(e,t){let n=y[e].steps[t],r=(i(E)?n.phone?.go:void 0)??n.go,a=y[e].base??`nbody`;return m||a===ot()?!1:(lt(e,t),location.assign(st(a,r?typeof r==`string`?r:await r():`/`)),!0)}async function z(e){if(await R($.part,e))return;$.at=e,$.mistake=``,p(L,!1),p(P,!0),setTimeout(()=>p(P,!1),200);let t=y[$.part].steps[e],n=(i(E)?t.phone?.go:void 0)??t.go;n&&await se(`#${typeof n==`string`?n:await n()}`),dt.snap=ce().catch(()=>null)}async function B(e){rt(),!await R(e,0)&&($.part=e,$.left=!1,z(0))}function de(){i(T)&&(i(O)||ft(i(T).key,$.at),i(ue)?$.part=-1:z($.at+1))}function fe(){$.at>0&&z($.at-1)}async function pe(){let e=await dt.snap;if(e&&!i(F)){p(F,!0);try{await le(e)}finally{p(F,!1)}await z($.at)}}function me(e){return e?typeof e==`function`?e():[...document.querySelectorAll(e)]:[]}b(()=>{ut()&&(rt(),z($.at));let e=matchMedia(`(max-width: 600px)`);p(E,e.matches,!0);let t=()=>{p(E,e.matches,!0)};e.addEventListener(`change`,t);let n=()=>{i(T)&&ft(i(T).key,$.at),de()},r=C.on(e=>{!i(w)&&i(D)?.until?.(e)&&n()}),a=0,o=()=>{if(a=requestAnimationFrame(o),i(w)||!i(D)){p(j,null);return}if(p(I,0),i(E))for(let e of document.querySelectorAll(`.seed, .foot, .changes, .deck, [data-pane="iso"] .composer`)){let t=e.getBoundingClientRect();t.height&&t.top>innerHeight/2&&t.left<innerWidth&&t.right>0&&p(I,Math.max(i(I),innerHeight-t.top+8),!0)}let e=1/0,t=1/0,n=-1/0,r=-1/0;for(let a of me(i(D).target)){let i=a.getBoundingClientRect();i.width&&i.height&&(e=Math.min(e,i.left),t=Math.min(t,i.top),n=Math.max(n,i.right),r=Math.max(r,i.bottom))}if(p(j,e<n?{x:e,y:t,w:n-e,h:r-t}:null),!i(E)&&i(M)){let e=i(M).getBoundingClientRect(),t=e.width,n=e.height,r=innerHeight-48-n,a=e=>i(j)?Math.max(0,Math.min(e+t,i(j).x+i(j).w)-Math.max(e,i(j).x))*Math.max(0,Math.min(r+n,i(j).y+i(j).h)-Math.max(r,i(j).y)):0,o=a(innerWidth-24-t),s=a(24);p(N,o>0&&s<o,!0)}};o();let s=setInterval(()=>{if(!(i(w)||!i(D)||i(F))){if(i(D).fill){let e=document.querySelector(`#iso-box`);e&&!e.value&&e.dataset.filled!==i(D).fill&&(e.dataset.filled=i(D).fill,e.value=i(D).fill,e.dispatchEvent(new Event(`input`,{bubbles:!0})))}i(D).check?.()?n():$.mistake=i(D).wrong?.()??``}},250);return()=>{r(),cancelAnimationFrame(a),clearInterval(s),e.removeEventListener(`change`,t)}});var V=u(),H=s(V),he=e=>{var t=ht();l(`click`,t,()=>{$.left=!1,$.part=-1}),r(e,t)},ge=t=>{var s=bt(),c=o(a(s),4),u=a(c),p=e=>{var t=te(`Iso and the agent are scripted, and nothing leaves your machine; what you change is kept in the tutorial's folder.`);r(e,t)},h=e=>{var t=te(`Iso is scripted, and nothing leaves this page; a reload starts it all again.`);r(e,t)};d(u,e=>{m?e(p):e(h,-1)}),_(c);var g=o(c,2);oe(g,23,()=>y,e=>e.key,(t,s,c)=>{let u=e(()=>$.ticks[i(s).key]?.length??0);var p=yt(),m=a(p),h=e=>{var t=_t(),p=a(t),m=S(p,!0),h=o(p,2),g=a(h),ee=S(g,!0),v=o(g),y=S(v,!0),b=o(v),x=e=>{var t=gt();r(e,t)};d(b,e=>{i(s).earlier&&e(x)}),_(h);var ne=o(h,2),re=a(ne),oe=e=>{pt(e)},se=e=>{var t=te();n(()=>f(t,`${i(u)??``} of ${i(s).steps.length??``}`)),r(e,t)};d(re,e=>{i(u)===i(s).steps.length?e(oe):i(u)&&e(se,1)}),ie(),_(ne),_(t),n(()=>{ae(t,`aria-label`,`${i(s).key??``}: ${i(s).title??``}${i(u)?`, ${i(u)} of ${i(s).steps.length} done`:``}`),f(m,i(s).key),f(ee,i(s).title),f(y,i(s).about)}),l(`click`,t,()=>B(i(c))),r(e,t)},g=e=>{var t=vt(),c=a(t),l=S(c,!0),u=o(c,2),d=a(u),p=S(d,!0),m=o(d),h=S(m,!0);ie(),_(u),_(t),n(()=>{ae(t,`aria-label`,`${i(s).key??``}: ${i(s).title??``}, coming`),f(l,i(s).key),f(p,i(s).title),f(h,i(s).about)}),r(e,t)};d(m,e=>{i(s).steps.length?e(h):e(g,-1)}),_(p),r(t,p)}),_(g);var ee=o(g,2),v=o(a(ee));_(ee),_(s),l(`click`,v,()=>$.left=!0),r(t,s)},_e=e=>{var t=At(),c=s(t),m=e=>{var t=xt();let a;n(()=>{a=x(t,1,`spot svelte-1195hbs`,null,a,{easing:i(P)}),ee(t,`left:${i(j).x-8}px;top:${i(j).y-8}px;width:${i(j).w+16}px;height:${i(j).h+16}px`)}),r(e,t)};d(c,e=>{i(j)&&e(m)});var h=o(c,2);let v,y;var b=a(h),ne=a(b),se=S(ne),C=o(ne,3);oe(C,21,()=>i(T).steps,g,(e,t,a)=>{var o=St();let s;n(e=>s=x(o,1,`svelte-1195hbs`,null,s,{d:e,at:a===$.at}),[()=>k(i(T).key,a)]),r(e,o)}),_(C);var w=o(C,2),ce=o(w,2);_(b);var le=o(b,2),R=a(le),z=e=>{var t=Ct(),a=S(t,!0);n(()=>{ae(t,`aria-expanded`,!i(L)),f(a,i(D).title)}),l(`click`,t,()=>p(L,!i(L))),r(e,t)},B=e=>{var t=te();n(()=>f(t,i(D).title)),r(e,t)};d(R,e=>{i(E)?e(z):e(B,-1)}),_(le);var me=o(le,2),V=e=>{var t=wt(),a=S(t,!0);n(()=>f(a,i(D).text)),r(e,t)};d(me,e=>{i(L)||e(V)});var H=o(me,2),he=e=>{var t=Tt(),o=a(t),s=S(o,!0);_(t),n(()=>{ae(o,`href`,i(D).link.href),f(s,i(D).link.text)}),r(e,t)};d(H,e=>{i(D).link&&!i(L)&&e(he)});var ge=o(H,2),_e=e=>{var t=Et(),i=S(t,!0);n(()=>f(i,$.mistake)),r(e,t)};d(ge,e=>{$.mistake&&!i(L)&&e(_e)});var U=o(ge,2);let ve;var ye=a(U),be=e=>{var t=Dt();l(`click`,t,fe),r(e,t)};d(ye,e=>{$.at>0&&e(be)});var xe=o(ye,2),Se=e=>{var t=u(),n=s(t),o=e=>{var t=Ot();pt(a(t)),ie(),_(t),r(e,t)};d(n,e=>{i(A)&&e(o)}),r(e,t)};d(xe,e=>{i(O)&&e(Se)});var Ce=o(xe,4),we=e=>{var t=kt(),a=S(t,!0);n(()=>{t.disabled=i(F),f(a,i(F)?`redoing…`:`redo`)}),l(`click`,t,pe),r(e,t)};d(Ce,e=>{i(O)&&e(we)});var W=o(Ce,2),Te=S(W,!0);_(U),_(h),re(h,e=>p(M,e),()=>i(M)),n(e=>{v=x(h,1,`coach frame svelte-1195hbs`,null,v,{small:i(L),left:i(N)&&!i(E)}),y=ee(h,``,y,{bottom:i(I)?`${i(I)}px`:null}),f(se,`${i(T).key??``} · ${e??``}`),ae(C,`aria-label`,`step ${$.at+1} of ${i(T).steps.length??``}, ${$.ticks[i(T).key]?.length??0??``} done`),ve=x(U,1,`row actions svelte-1195hbs`,null,ve,{hidden:i(L)}),x(W,1,`btn ${i(O)&&!i(A)?`quiet`:`primary`}`,`svelte-1195hbs`),f(Te,i(ue)?`done`:`next ›`)},[()=>i(T).title.toLowerCase()]),l(`click`,w,()=>$.part=-1),l(`click`,ce,()=>$.left=!0),l(`click`,W,de),r(e,t)};d(H,e=>{i(w)?e(he):i(T)?i(D)&&e(_e,2):e(ge,1)}),r(t,V),ne()}c([`click`]);export{jt as default};
@@ -1 +0,0 @@
1
- import{$ as e,B as t,D as n,F as r,G as i,J as a,K as o,M as s,N as c,O as l,P as u,S as d,T as f,ct as p,i as m,it as h,k as g,p as _,q as v,rt as y,u as b,y as x}from"./Bze-M_kr.js";import"./xihTtKlq.js";import{a as S}from"./BN1DRYj2.js";var C={wrote:`wrote the note`,found:`found`,edited:`edited`,kept:`kept`,offered:`offered`,discarded:`removed`,restored:`restored an earlier version`,moved:`moved the note`,"changed elsewhere":`changed elsewhere`};function w(e){let t=e.who===`you`?`you`:e.who===`external`?`outside isorite`:e.who.startsWith(`agent:`)?S(e.who):`Iso`;return e.asked===void 0?e.who===`external`?e.what===`found`?`found as it was, outside isorite`:`changed outside isorite`:`${t} ${C[e.what]}`:`${t} · “${e.asked.length>80?e.asked.slice(0,80)+`…`:e.asked}” · ${e.what===`offered`?`not kept yet`:C[e.what]}`}function T(e,t=Date.now()){let n=Math.max(0,(t-Date.parse(e))/1e3),[r,i]=n<90?[0,`now`]:n<5400?[Math.round(n/60),`minute`]:n<129600?[Math.round(n/3600),`hour`]:[Math.round(n/86400),`day`];return i===`now`?`just now`:`${r} ${i}${r===1?``:`s`} ago`}var E=e=>e.ids.at(-1),D=g(`<i aria-hidden="true"></i>`);function O(i,a){h(a,!0);let s=e(()=>a.moment.who.startsWith(`iso:`)),c=e(()=>a.moment.who.startsWith(`agent:`));var u=l(),f=o(u),p=e=>{var i=D();let o;t(()=>o=_(i,1,`dia svelte-1jroppb`,null,o,{open:a.moment.what===`offered`||a.moment.what===`discarded`,gone:a.moment.what===`discarded`,agent:r(c)})),n(e,i)},m=e=>{var r=D();let i;t(()=>i=_(r,1,`sq`,null,i,{empty:a.moment.who===`external`})),n(e,r)};d(f,e=>{r(s)||r(c)?e(p):e(m,-1)}),n(i,u),y()}var k=g(`<span class="asked svelte-112n2zp" aria-hidden="true"> </span>`),A=g(`<li class="svelte-112n2zp"><button type="button"><!></button> <!></li>`),j=g(`<ol></ol>`);function M(o,s){h(s,!0);let l=m(s,`label`,3,e=>e.asked===void 0?void 0:`“${e.asked}”`),g=m(s,`name`,3,`The note's timeline`),S=m(s,`leftward`,3,!1);var C=j();let D;x(C,21,()=>s.moments,e=>e.ids[0],(o,m)=>{var h=A(),g=i(h);let y;O(i(g),{get moment(){return r(m)}}),p(g);var x=a(g,2),S=e=>{var i=k(),a=v(i,!0);t(e=>f(a,e),[()=>l()(r(m))]),n(e,i)},C=e(()=>s.pointed===r(m)&&l()(r(m))!==void 0);d(x,e=>{r(C)&&e(S)}),p(h),t((e,t,n,r)=>{y=_(g,1,`moment svelte-112n2zp`,null,y,{at:e}),b(g,`aria-current`,t),b(g,`aria-label`,`${n??``}, ${r??``}`)},[()=>s.at===E(r(m)),()=>s.at===E(r(m))?`step`:void 0,()=>w(r(m)),()=>T(r(m).at)]),u(`pointerenter`,g,()=>s.point(r(m))),u(`pointerleave`,g,()=>s.point(null)),u(`focus`,g,()=>s.point(r(m))),u(`blur`,g,()=>s.point(null)),c(`click`,g,()=>s.pick(r(m))),n(o,h)}),p(C),t(()=>{D=_(C,1,`timeline svelte-112n2zp`,null,D,{leftward:S()}),b(C,`aria-label`,g())}),n(o,C),y()}s([`click`]);export{E as i,T as n,w as r,M as t};
@@ -1 +0,0 @@
1
- import{ot as e}from"./Bze-M_kr.js";e();
@@ -1 +0,0 @@
1
- import{F as e,X as t,Z as n}from"./Bze-M_kr.js";import{t as r}from"./BavLcJN1.js";import{i,r as a}from"./BN1DRYj2.js";import{i as o}from"./BcrJkegU.js";var s=new class{#e=n(``);get id(){return e(this.#e)}set id(e){t(this.#e,e,!0)}#t=n([]);get turns(){return e(this.#t)}set turns(e){t(this.#t,e)}#n=n(``);get streaming(){return e(this.#n)}set streaming(e){t(this.#n,e,!0)}#r=n(``);get problem(){return e(this.#r)}set problem(e){t(this.#r,e,!0)}#i=n(null);get report(){return e(this.#i)}set report(e){t(this.#i,e)}#a=n(`chat`);get view(){return e(this.#a)}set view(e){t(this.#a,e,!0)}#o=n([]);get off(){return e(this.#o)}set off(e){t(this.#o,e)}toggleTurn(e){this.off=this.off.includes(e)?this.off.filter(t=>t!==e):[...this.off,e],this.measure()}sizeOf(e){let t=this.report?.given?.find(t=>t.kind===e.kind&&t.id===e.id&&(e.kind!==`passage`||t.text===e.text));return t?t.tokens:null}started=!1;timer;get running(){let e=this.turns.at(-1);return e?.state===`running`?e:null}start(){!this.started&&r.api&&(this.started=!0,r.api.conversation().then(e=>{e&&!this.id&&this.show(e)},()=>void 0),r.on(e=>this.follow(e)),this.measure())}show(e){this.id=e.id,this.turns=e.turns}fresh(){this.running||(this.id=``,this.turns=[],this.streaming=``,this.off=[],this.measure())}async send(e){if(this.problem=``,!e.trim()||this.running)return!1;try{let t=i.sent.map(e=>e.kind===`passage`?{kind:e.kind,id:e.id,text:e.text}:{kind:e.kind,id:e.id}),{conversation:n}=await r.api.converse({...this.id?{conversation:this.id}:{},mode:o.mode,asked:e.trim(),given:t,tier:a.tier,...this.off.length?{off:this.off}:{}});return this.id=n,!0}catch(e){return this.problem=e.message,!1}}async stop(){let e=this.running;e&&await r.api.stop(e.id)}async undo(e){this.problem=``;try{await r.api.undoTurn(this.id,e)}catch(e){this.problem=e.message}}async take(e,t){this.problem=``;try{await r.api.takeItem(this.id,e,t)}catch(e){this.problem=e.message}}async answer(e,t){let n=this.running;n&&await r.api.answer(n.id,e,t)}follow(e){if(e.type===`iso-start`&&e.place.form===`turn`){if(this.id&&e.place.conversation!==this.id)return;this.id=e.place.conversation,this.streaming=``,this.turns=[...this.turns.filter(t=>t.id!==e.request),{id:e.request,conversation:e.place.conversation,at:new Date().toISOString(),mode:e.place.mode,asked:e.asked,given:e.place.given,tier:e.tier,items:[],state:`running`}];return}if(!(`request`in e)){(e.type===`note-changed`||e.type===`journal`)&&this.measure();return}let t=this.turns.findIndex(t=>t.id===e.request);if(t<0)return;let n=this.turns[t],r=e=>{this.turns=this.turns.map((n,r)=>r===t?e:n)};e.type===`iso-text`?this.streaming=e.again?e.delta:this.streaming+e.delta:e.type===`iso-item`?(e.item.kind===`text`&&(this.streaming=``),r({...n,items:[...n.items,e.item]})):e.type===`iso-taken`?r({...n,items:n.items.map(t=>t.kind===`question`&&t.id===e.item?{...t,made:e.note}:t.kind===`offer`&&t.id===e.item?{...t,taken:!0}:t)}):e.type===`iso-answer`?r({...n,items:n.items.map(t=>t.kind===`permission`&&t.id===e.permission?{...t,answer:e.decision}:t)}):e.type===`iso-done`?(r({...n,state:`done`,cost:e.cost}),this.streaming=``,this.measure()):e.type===`iso-stopped`?(r({...n,state:`stopped`,...this.streaming?{items:[...n.items,{kind:`text`,text:this.streaming}]}:{}}),this.streaming=``):e.type===`iso-failed`&&(r({...n,state:`failed`,message:e.message}),this.streaming=``)}measure(){clearTimeout(this.timer),this.timer=setTimeout(()=>{if(!r.api)return;let e=i.sent.map(e=>e.kind===`passage`?{kind:e.kind,id:e.id,text:e.text}:{kind:e.kind,id:e.id});r.api.turnContext({...this.id?{conversation:this.id}:{},mode:o.mode,given:e,tier:a.tier,...this.off.length?{off:this.off}:{}}).then(e=>this.report=e,()=>void 0)},250)}};export{s as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DSajjyn5.js","../chunks/Bze-M_kr.js","../chunks/BZeALCyJ.js","../chunks/CRzLMJPS.js","../chunks/xihTtKlq.js","../chunks/BavLcJN1.js","../chunks/BN1DRYj2.js","../chunks/BcrJkegU.js","../chunks/D8jeeZa0.js","../assets/Timeline.KTc3LKuK.css","../chunks/BNCmWi9e.js","../chunks/DsnHcTIO.js","../chunks/Cr4-_2Vw.js","../chunks/-XH9wLvF.js","../assets/FolderField._A4_sc1Z.css","../assets/NoteList.F579Zvj_.css","../chunks/B_AYGp9o.js","../assets/0.IOi79DXH.css","../nodes/1.hmQ_l8t-.js","../nodes/2.Bu6Zvx8F.js","../chunks/DHMLhlug.js","../nodes/3.DcSG1nNk.js","../nodes/4.QUhLgH4i.js","../chunks/BqrPWk6N.js","../assets/NoteEditor.BCjOff8L.css","../assets/4.CUdclsPi.css","../nodes/5.D3JSWVyR.js","../assets/5.TsqJFEFF.css","../nodes/6.CWfUNDww.js","../nodes/7.DmPPLDvb.js","../assets/7.ljiu9bn5.css","../nodes/8.CwMTBog4.js","../assets/8.CFA9_nYZ.css"])))=>i.map(i=>d[i]);
2
- import{$ as e,B as t,D as n,F as r,G as i,H as a,J as o,K as s,L as c,O as l,S as u,T as d,V as f,X as p,Z as m,ct as h,g,i as _,it as v,j as y,k as b,n as x,r as S,rt as C,s as w}from"../chunks/Bze-M_kr.js";import{t as T}from"../chunks/CRzLMJPS.js";import"../chunks/xihTtKlq.js";var E={},D=b(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=b(`<!> <!>`,1);function k(b,S){v(S,!0);let T=_(S,`components`,23,()=>[]),E=_(S,`data_0`,3,null),k=_(S,`data_1`,3,null);a(()=>S.stores.page.set(S.page)),f(()=>{S.stores,S.page,S.constructors,T(),S.form,E(),k(),S.stores.page.notify()});let A=m(!1),j=m(!1),M=m(null);x(()=>{let e=S.stores.page.subscribe(()=>{r(A)&&(p(j,!0),c().then(()=>{p(M,document.title||`untitled page`,!0)}))});return p(A,!0),e});let N=e(()=>S.constructors[1]);var P=O(),F=s(P),I=t=>{let i=e(()=>S.constructors[0]);var a=l(),o=s(a);g(o,()=>r(i),(e,t)=>{w(t(e,{get data(){return E()},get form(){return S.form},get params(){return S.page.params},children:(e,t)=>{var i=l(),a=s(i);g(a,()=>r(N),(e,t)=>{w(t(e,{get data(){return k()},get form(){return S.form},get params(){return S.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),n(e,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),n(t,a)},L=t=>{let i=e(()=>S.constructors[0]);var a=l(),o=s(a);g(o,()=>r(i),(e,t)=>{w(t(e,{get data(){return E()},get form(){return S.form},get params(){return S.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),n(t,a)};u(F,e=>{S.constructors[1]?e(I):e(L,-1)});var R=o(F,2),z=e=>{var a=D(),o=i(a),s=e=>{var i=y();t(()=>d(i,r(M))),n(e,i)};u(o,e=>{r(j)&&e(s)}),h(a),n(e,a)};u(R,e=>{r(A)&&e(z)}),n(b,P),C()}var A=S(k),j=[()=>T(()=>import(`../nodes/0.DSajjyn5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),()=>T(()=>import(`../nodes/1.hmQ_l8t-.js`),__vite__mapDeps([18,1,4,10,2]),import.meta.url),()=>T(()=>import(`../nodes/2.Bu6Zvx8F.js`),__vite__mapDeps([19,1,2,4,5,7,20]),import.meta.url),()=>T(()=>import(`../nodes/3.DcSG1nNk.js`),__vite__mapDeps([21,1,2,4,5,10,7,20]),import.meta.url),()=>T(()=>import(`../nodes/4.QUhLgH4i.js`),__vite__mapDeps([22,1,2,4,5,6,7,10,20,23,24,25]),import.meta.url),()=>T(()=>import(`../nodes/5.D3JSWVyR.js`),__vite__mapDeps([26,1,2,4,5,6,7,8,9,10,13,14,23,24,27]),import.meta.url),()=>T(()=>import(`../nodes/6.CWfUNDww.js`),__vite__mapDeps([28,1,4,12,2,5,13,14,15,20]),import.meta.url),()=>T(()=>import(`../nodes/7.DmPPLDvb.js`),__vite__mapDeps([29,1,4,16,20,30]),import.meta.url),()=>T(()=>import(`../nodes/8.CwMTBog4.js`),__vite__mapDeps([31,1,4,32]),import.meta.url)],M=[],N={"/":[2],"/atlas":[3],"/draft/[id]":[4],"/notes":[6],"/n/[...id]":[5],"/parts":[7],"/terminal":[8]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!0,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
@@ -1 +0,0 @@
1
- export{a as load_css,n as start}from"../chunks/BZeALCyJ.js";