diff --git a/docs/_app/immutable/chunks/_examples.DJO-zfaW.js b/docs/_app/immutable/chunks/_examples.DJO-zfaW.js new file mode 100644 index 00000000..512a4bc9 --- /dev/null +++ b/docs/_app/immutable/chunks/_examples.DJO-zfaW.js @@ -0,0 +1 @@ +import{s as B,e as w,c as E,b as x,f as _,u as k,i as h,a as b,g as y,n as P,E as ae,v as be,t as G,d as X,h as z,j as xe,A as U,U as se,y as $e,r as Ne,a4 as It,k as We,a5 as ct,B as fe,C as le}from"./scheduler.P37s_KnH.js";import{S as M,i as j,c as i,b as m,m as p,t as c,a as u,d as g,g as ye,e as ke,f as oe}from"./index.GooPGtyi.js";import{a0 as zt,L as V,I as q,T as L,K as ce,M as ue,a8 as ut,N as Re,P as it,O as mt,f as te,J as Y,Q as pt,R as Q,S as we,U as gt,V as Pt,W as Tt,X as Vt,Y as Z,Z as ie,_ as _t,$ as F,w as dt,a1 as Lt,u as Bt,a2 as J,a3 as Mt,a4 as jt,a5 as At,a6 as Ye,a7 as Nt,a9 as Rt,aa as Ot,ab as qt,ac as Ut,ad as Wt,ae as Yt,af as Jt,ag as Gt,ah as Oe,ai as Xt,aj as Ft,o as Ht,ak as ht}from"./Brush.html.I1clC5X0.js";import{A as R,a as W,S as Qt,b as vt,V as Zt,T as er,c as tr,C as rr,d as Ke,e as nr,R as ar,f as bt,g as yt,h as sr,i as $r,j as fr,B as lr,K as kt,k as or,l as cr,m as ur,n as ir}from"./dots.plnXAFy8.js";import{e as H}from"./each.zMdpk9aP.js";import{b as mr,u as Je,g as pr,e as gr,d as Ge,c as _r,t as dr,a as Xe,f as hr,p as he,h as vr,i as br,j as yr,k as kr,l as wr,m as Er}from"./pointsFour.fzEDaS5G.js";function Dr($,e,{domain:a,thresholds:t}={}){if(typeof $!="object")throw new TypeError("The first argument of bin() must be an array or data object");let n=mr();if(e){const r=typeof e=="function"?e:f=>f[e];n=n.value(r)}return a&&(n=n.domain(a)),t&&(n=n.thresholds(t)),n($)}function qe($,e,{value:a,order:t,offset:n}={}){if(typeof $!="object")throw new TypeError("The first argument of stack() must be an array or data object");if(!Array.isArray(e))throw new TypeError("The second argument of stack() must be an array of key names");let r=zt().keys(e);return a&&(r=r.value(a)),t&&(r=r.order(t)),n&&(r=r.offset(n)),r($)}function Sr($,e,{groupTo:a="group",valueTo:t="value",keepKeys:n=void 0}={}){if(!Array.isArray($))throw new TypeError("The first argument of groupLonger() must be an array of data");if(!Array.isArray(e))throw new TypeError("The second argument of groupLonger() must be an array of key names");const r=new Set(e),f=n||Object.keys($[0]).filter(s=>!r.has(s));return e.map(s=>({[a]:s,values:$.map(l=>({...Object.fromEntries(f.map(o=>[o,l[o]])),[t]:l[s],[a]:s}))}))}function xr($){let e,a,t,n,r,f,s,l;return e=new R({}),t=new W({props:{ticks:4}}),r=new ce({}),s=new ue({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p:P,i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function Kr($){let e,a;return e=new L({props:{$$slots:{default:[xr]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Cr($){let e,a,t;return a=new V({props:{padding:{top:8,right:10,bottom:20,left:25},x:Ir,y:Ce,yDomain:[0,null],data:q,$$slots:{default:[Kr]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ir="myX",Ce="myY";function zr($){return q.forEach(e=>{e[Ce]=+e[Ce]}),[]}class Pr extends M{constructor(e){super(),j(this,e,zr,Cr,B,{})}}function Tr($){let e,a,t,n;return e=new R({props:{gridlines:!1}}),t=new W({props:{gridlines:!1,ticks:4}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Vr($){let e,a;return e=new Qt({props:{r:wt*1.5,fill:"#0cf"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Lr($){let e,a,t,n;return e=new vt({props:{r:wt,fill:Ar}}),t=new Zt({props:{stroke:"#333"}}),t.$on("voronoi-mouseover",Nr),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Br($){let e,a,t,n,r,f;return e=new L({props:{$$slots:{default:[Tr]},$$scope:{ctx:$}}}),t=new ut({props:{$$slots:{default:[Vr]},$$scope:{ctx:$}}}),r=new L({props:{$$slots:{default:[Lr]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&1&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&1&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&1&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Mr($){let e,a,t;return a=new V({props:{padding:{top:10,right:5,bottom:20,left:25},x:jr,y:Ie,xPadding:[me,me],yPadding:[me,me],data:q,$$slots:{default:[Br]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const jr="myX",Ie="myY",wt=3,me=10,Ar="#fff";function Nr($){console.log("dispatched event",$,$.detail)}function Rr($){return q.forEach(e=>{e[Ie]=+e[Ie]}),[]}class Or extends M{constructor(e){super(),j(this,e,Rr,Mr,B,{})}}function Fe($){const e={...$[11].props,...$[2].get($[11].props[Et])};$[12]=e}function He($,e,a){const t=$.slice();t[13]=e[a][0],t[14]=e[a][1];const n=t[13].replace(/^\w/,r=>r.toUpperCase());return t[15]=n,t}function qr($){let e,a;return e=new pt({props:{projection:$[4]}}),e.$on("mousemove",$[8]),e.$on("mouseout",$[9]),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Qe($){let e,a;return e=new er({props:{evt:$[0],$$slots:{default:[Ur,({detail:t})=>({11:t}),({detail:t})=>t?2048:0]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.evt=t[0]),n&264192&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ze($){let e,a,t=$[15]+"",n,r,f,s=(typeof $[14]=="number"?$[7]($[14]):$[14])+"",l;return{c(){e=w("div"),a=w("span"),n=G(t),r=G(":"),f=b(),l=G(s),this.h()},l(o){e=E(o,"DIV",{class:!0});var d=x(e);a=E(d,"SPAN",{});var v=x(a);n=X(v,t),r=X(v,":"),v.forEach(_),f=y(d),l=X(d,s),d.forEach(_),this.h()},h(){k(e,"class","row")},m(o,d){h(o,e,d),z(e,a),z(a,n),z(a,r),z(e,f),z(e,l)},p(o,d){d&2048&&t!==(t=o[15]+"")&&xe(n,t),d&2048&&s!==(s=(typeof o[14]=="number"?o[7](o[14]):o[14])+"")&&xe(l,s)},d(o){o&&_(e)}}}function Ur($){Fe($);let e,a=H(Object.entries($[12])),t=[];for(let n=0;n{t=null}),ke())},i(n){a||(c(t),a=!0)},o(n){u(t),a=!1},d(n){n&&_(e),t&&t.d(n)}}}function Yr($){let e,a,t,n;return e=new L({props:{$$slots:{default:[qr]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Wr]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&262147&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&262147&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Jr($){let e,a,t;return a=new V({props:{data:$[3],z:$[10],zScale:Re(),zRange:$[6],flatData:$[5],$$slots:{default:[Yr]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&262147&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Gr="myValue",Xr="name",Et="name";function Fr($,e,a){const t=new Map,n=it(Je,Je.objects.states),r=pr;mt.forEach(I=>{t.set(I[Xr],I)});let f,s=!0;const l=n.features.map(I=>I.properties),o=["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],d=te(",");return[f,s,t,n,r,l,o,d,I=>a(0,f=a(1,s=I)),()=>a(1,s=!0),I=>t.get(I[Et])[Gr]]}class Hr extends M{constructor(e){super(),j(this,e,Fr,Jr,B,{})}}function Qr($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1}}),t=new W({props:{snapBaselineLabel:!0}}),r=new gt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Zr($){let e,a;return e=new Pt({props:{annotations:$[0]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function en($){let e,a;return e=new Tt({props:{annotations:$[0]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function tn($){let e,a;return e=new Vt({}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function rn($){let e,a,t,n,r,f;return e=new L({props:{$$slots:{default:[Qr]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[Zr]},$$scope:{ctx:$}}}),r=new L({props:{$$slots:{defs:[tn],default:[en]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&2&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&2&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&2&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function nn($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:20},x:an,y:ze,xScale:Q().paddingInner(.02).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:we,$$slots:{default:[rn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&2&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const an="year",ze="value";function sn($){const e=[{text:"Example text...",top:"18%",left:"30%",arrows:[{clockwise:!1,source:{anchor:"left-bottom",dx:-2,dy:-7},target:{x:"28%",y:"75%"}},{source:{anchor:"right-bottom",dy:-7,dx:5},target:{x:"68%",y:"48%"}}]}];return we.forEach(a=>{a[ze]=+a[ze]}),[e]}class $n extends M{constructor(e){super(),j(this,e,sn,nn,B,{})}}function fn($){let e,a,t,n,r,f;return e=new R({props:{format:$[3],tickMarks:!0}}),t=new W({props:{format:$[4]}}),r=new Lt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ln($){let e,a;return e=new L({props:{$$slots:{default:[fn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&256&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function on($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:17},x:$[6],y:$[0],z:cn,zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[5]),data:$[5],$$slots:{default:[ln]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&256&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ne="month",cn="key";function un($){const e=[0,1],a=_t("%Y-%m-%d"),t=Object.keys(F[0]).filter(o=>o!==ne),n=["#ff00cc","#ff7ac7","#ffb3c0","#ffe4b8"],r=dt("%b. %-d"),f=o=>te("~s")(o);F.forEach(o=>{o[ne]=typeof o[ne]=="string"?a(o[ne]):o[ne],t.forEach(d=>{o[d]=+o[d]})});const s=qe(F,t);return[e,t,n,r,f,s,o=>o.data[ne]]}class mn extends M{constructor(e){super(),j(this,e,un,on,B,{})}}function pn($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1}}),t=new W({props:{ticks:4,gridlines:!1,format:$[3]}}),r=new Mt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function gn($){let e,a;return e=new L({props:{$$slots:{default:[pn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function _n($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:20},x:$[5],y:$[0],z:dn,xScale:Q().paddingInner(.02).round(!0),xDomain:Bt(J,Pe),zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[4]),data:$[4],$$slots:{default:[gn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Pe="year",dn="key";function hn($){const e=[0,1],a=Object.keys(J[0]).filter(s=>s!==Pe),t=["#00e047","#7ceb68","#b7f486","#ecfda5"];J.forEach(s=>{a.forEach(l=>{s[l]=+s[l]})});const n=s=>te("~s")(s),r=qe(J,a);return[e,a,t,n,r,s=>s.data[Pe]]}class vn extends M{constructor(e){super(),j(this,e,hn,_n,B,{})}}function bn($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1,ticks:F.map($[4]).sort(En),format:$[1],snapLabels:!0,tickMarks:!0}}),t=new W({props:{ticks:4,format:$[2]}}),r=new jt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function yn($){let e,a,t,n;return e=new At({}),t=new tr({props:{formatTitle:$[1],dataset:F}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function kn($){let e,a,t,n;return e=new L({props:{$$slots:{default:[bn]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[yn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&128&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&128&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function wn($){let e,a,t;return a=new V({props:{padding:{top:7,right:10,bottom:20,left:25},x:ee,y:Dt,z:St,yDomain:[0,null],zScale:Z(),zRange:$[0],flatData:ie($[3],"values"),data:$[3],$$slots:{default:[kn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&128&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ee="month",Dt="value",St="fruit",En=($,e)=>$-e;function Dn($){const e=_t("%Y-%m-%d"),a=Object.keys(F[0]).filter(l=>l!==ee),t=["#ffe4b8","#ffb3c0","#ff7ac7","#ff00cc"];F.forEach(l=>{l[ee]=typeof l[ee]=="string"?e(l[ee]):l[ee],a.forEach(o=>{l[o]=+l[o]})});const n=dt("%b. %e"),r=l=>te("~s")(l),f=Sr(F,a,{groupTo:St,valueTo:Dt});return[t,n,r,f,l=>l[ee]]}class Sn extends M{constructor(e){super(),j(this,e,Dn,wn,B,{})}}function xn($){let e,a;return e=new Ot({props:{projection:$[1],fill:"#fff"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Kn($){let e,a;return e=new pt({props:{projection:$[1],features:$[0].features.slice(40,50)}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Cn($){let e,a;return e=new qt({props:{projection:$[1],features:$[3],getCoordinates:$[6],getLabel:$[7]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function In($){let e,a,t,n,r,f;return e=new ut({props:{$$slots:{default:[xn]},$$scope:{ctx:$}}}),t=new L({props:{$$slots:{default:[Kn]},$$scope:{ctx:$}}}),r=new Y({props:{pointerEvents:!1,$$slots:{default:[Cn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&1024&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&1024&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&1024&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function zn($){let e,a,t;return a=new V({props:{data:$[0],z:$[8],zScale:Re(),zRange:$[5],flatData:$[4],$$slots:{default:[In]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1024&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Pn="myValue",Tn="center",et="abbr",Vn="name",Ln="name";function Bn($){const e=it(Ye,Ye.objects.collection),a=Rt,t=new Map;mt.forEach(v=>{t.set(v[Vn],v[Pn])});const n=["VT","MD","NJ","RI","DC","DE","WV","MA","CT","NH"],r=Nt.filter(v=>!n.includes(v[et])),f=e.features.map(v=>v.properties);return[e,a,t,r,f,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],v=>v[Tn],v=>v[et],v=>t.get(v[Ln])]}class Mn extends M{constructor(e){super(),j(this,e,Bn,zn,B,{})}}function jn($){let e,a,t,n,r,f;return e=new R({props:{tickMarks:!0,baseline:!0,snapLabels:!0}}),t=new W({props:{tickMarks:!0,gridlines:!1}}),r=new Ut({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function An($){let e,a;return e=new L({props:{$$slots:{default:[jn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Nn($){let e,a,t;return a=new V({props:{padding:{bottom:20,left:35},x:Te,y:Rn,yScale:Q().paddingInner(.05),xDomain:[0,null],data:we,$$slots:{default:[An]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Te="value",Rn="year";function On($){return we.forEach(e=>{e[Te]=+e[Te]}),[]}class qn extends M{constructor(e){super(),j(this,e,On,Nn,B,{})}}function Un($){let e,a,t,n,r,f;return e=new R({props:{baseline:!0,snapLabels:!0,format:$[3]}}),t=new W({props:{gridlines:!1}}),r=new Wt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Wn($){let e,a;return e=new L({props:{$$slots:{default:[Un]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Yn($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:35},x:$[0],y:$[5],z:Jn,yScale:Q().paddingInner(.05),zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[4]),data:$[4],$$slots:{default:[Wn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const tt="year",Jn="key";function Gn($){const e=[0,1],a=Object.keys(J[0]).filter(s=>s!==tt),t=["#00bbff","#8bcef6","#c4e2ed","#f7f6e3"];J.forEach(s=>{a.forEach(l=>{s[l]=+s[l]})});const n=s=>te("~s")(s),r=qe(J,a);return[e,a,t,n,r,s=>s.data[tt]]}class Xn extends M{constructor(e){super(),j(this,e,Gn,Yn,B,{})}}function Fn($){let e,a,t,n;return e=new R({}),t=new W({props:{tickMarks:!1,ticks:5}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Hn($){let e,a;return e=new Jt({props:{r:na}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Qn($){let e;return{c(){e=w("div"),this.h()},l(a){e=E(a,"DIV",{class:!0,style:!0}),x(e).forEach(_),this.h()},h(){k(e,"class","circle svelte-d2cww5"),U(e,"top",$[1]+"px"),U(e,"left",$[0]+"px"),U(e,"display",$[2]?"block":"none")},m(a,t){h(a,e,t)},p(a,t){t&2&&U(e,"top",a[1]+"px"),t&1&&U(e,"left",a[0]+"px"),t&4&&U(e,"display",a[2]?"block":"none")},d(a){a&&_(e)}}}function Zn($){let e,a;return e=new Gt({props:{$$slots:{default:[Qn,({x:t,y:n,visible:r})=>({0:t,1:n,2:r}),({x:t,y:n,visible:r})=>(t?1:0)|(n?2:0)|(r?4:0)]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&15&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ea($){let e,a,t,n,r,f;return e=new L({props:{$$slots:{default:[Fn]},$$scope:{ctx:$}}}),t=new Yt({props:{$$slots:{default:[Hn]},$$scope:{ctx:$}}}),r=new Y({props:{$$slots:{default:[Zn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&8&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&8&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ta($){let e,a,t;return a=new V({props:{padding:{top:5,right:5,bottom:20,left:25},x:ra,y:Ve,xPadding:[pe,pe],yPadding:[pe,pe],data:q,$$slots:{default:[ea]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-d2cww5")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&8&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ra="myX",Ve="myY",na=3,pe=6;function aa($){return q.forEach(e=>{e[Ve]=+e[Ve]}),[]}class sa extends M{constructor(e){super(),j(this,e,aa,ta,B,{})}}function $a($){let e,a,t,n,r,f;return e=new R({}),t=new W({props:{gridlines:!1}}),r=new rr({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function fa($){let e,a;return e=new L({props:{$$slots:{default:[$a]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&4&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function la($){let e,a,t;return a=new V({props:{padding:{right:10,bottom:20,left:30},x:$[0],y:xt,yScale:Q().paddingInner(.05).round(!0),xDomain:[0,null],xPadding:[10,0],zScale:Z(),zDomain:$[0],zRange:$[1],data:J,$$slots:{default:[fa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&4&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const xt="year";function oa($){const e=Object.keys(J[0]).filter(t=>t!==xt),a=["#f0c","#00bbff","#00e047","#ff7a33"];return J.forEach(t=>{e.forEach(n=>{t[n]=+t[n]})}),[e,a]}class ca extends M{constructor(e){super(),j(this,e,oa,la,B,{})}}function ua($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1,baseline:!0,ticks:$[3],format:$[7]}}),t=new W({props:{gridlines:!1,ticks:3}}),r=new gt({props:{fill:"#fff",stroke:"#000",strokeWidth:1}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&8&&(o.ticks=s[3]),e.$set(o)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ia($){let e,a;return e=new L({props:{$$slots:{default:[ua]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&520&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ma($){let e,a,t,n,r,f,s,l,o,d,v,K;return o=new V({props:{padding:{top:20,right:5,bottom:20,left:30},x:$[5],y:pa,xDomain:$[1],xScale:Q().paddingInner(0),yDomain:[0,null],data:$[2],$$slots:{default:[ia]},$$scope:{ctx:$}}}),{c(){e=w("div"),a=w("input"),t=b(),n=w("span"),r=G($[0]),f=G(" bins"),s=b(),l=w("div"),i(o.$$.fragment),this.h()},l(S){e=E(S,"DIV",{class:!0,style:!0});var I=x(e);a=E(I,"INPUT",{style:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),t=y(I),n=E(I,"SPAN",{class:!0,style:!0});var N=x(n);r=X(N,$[0]),f=X(N," bins"),N.forEach(_),I.forEach(_),s=y(S),l=E(S,"DIV",{class:!0});var D=x(l);m(o.$$.fragment,D),D.forEach(_),this.h()},h(){U(a,"margin","0"),k(a,"type","range"),k(a,"min","4"),k(a,"max","100"),k(a,"step","4"),k(a,"class","svelte-v09z8s"),k(n,"class","counter-container"),U(n,"display","inline-block"),U(n,"vertical-align","top"),U(n,"width","70px"),U(n,"text-align","right"),k(e,"class","input-container"),U(e,"position","absolute"),U(e,"right","10px"),U(e,"z-index","9"),k(l,"class","chart-container svelte-v09z8s")},m(S,I){h(S,e,I),z(e,a),se(a,$[0]),z(e,t),z(e,n),z(n,r),z(n,f),h(S,s,I),h(S,l,I),p(o,l,null),d=!0,v||(K=[$e(a,"change",$[6]),$e(a,"input",$[6])],v=!0)},p(S,[I]){I&1&&se(a,S[0]),(!d||I&1)&&xe(r,S[0]);const N={};I&2&&(N.xDomain=S[1]),I&4&&(N.data=S[2]),I&520&&(N.$$scope={dirty:I,ctx:S}),o.$set(N)},i(S){d||(c(o.$$.fragment,S),d=!0)},o(S){u(o.$$.fragment,S),d=!1},d(S){S&&(_(e),_(s),_(l)),g(o),v=!1,Ne(K)}}}const pa="length";function ga($,e,a){let t,n,r;const f=te(".2f"),s=["x0","x1"];let l=40;const o=gr(Ge);function d(){l=It(this.value),a(0,l)}const v=K=>+f(K);return $.$$.update=()=>{$.$$.dirty&1&&a(1,t=_r(o,l)),$.$$.dirty&2&&a(3,n=dr(t,5)),$.$$.dirty&2&&a(2,r=Dr(Ge,K=>K,{domain:o,thresholds:t}))},[l,t,r,n,f,s,d,v]}class _a extends M{constructor(e){super(),j(this,e,ga,ma,B,{})}}function da($){let e,a;return e=new ce({props:{stroke:"#000"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ha($){let e,a;return e=new L({props:{$$slots:{default:[da]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function va($){let e,a;return e=new V({props:{padding:{top:2,right:6,bottom:2,left:6},x:$[1].x,y:$[1].y,data:$[0],xDomain:$[2],yDomain:$[3],$$slots:{default:[ha]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,[n]){const r={};n&2&&(r.x=t[1].x),n&2&&(r.y=t[1].y),n&1&&(r.data=t[0]),n&4&&(r.xDomain=t[2]),n&8&&(r.yDomain=t[3]),n&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ba($,e,a){let t,n,{data:r}=e,{fullExtents:f}=e,{scale:s}=e,{extentGetters:l}=e;const o={duration:300,easing:hr},d=Xe(void 0,o);We($,d,S=>a(2,t=S));const v=Xe(void 0,o);We($,v,S=>a(3,n=S));const K=Oe(r,l);return $.$$set=S=>{"data"in S&&a(0,r=S.data),"fullExtents"in S&&a(6,f=S.fullExtents),"scale"in S&&a(7,s=S.scale),"extentGetters"in S&&a(1,l=S.extentGetters)},$.$$.update=()=>{$.$$.dirty&192&&d.set(s==="shared"?f.x:K.x),$.$$.dirty&192&&v.set(s==="shared"?f.y:K.y)},[r,l,t,n,d,v,f,s]}class ya extends M{constructor(e){super(),j(this,e,ba,va,B,{data:0,fullExtents:6,scale:7,extentGetters:1})}}function rt($,e,a){const t=$.slice();return t[6]=e[a],t}function nt($){let e,a,t,n;return a=new ya({props:{data:$[6],fullExtents:$[2],scale:$[0],extentGetters:$[1]}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),this.h()},l(r){e=E(r,"DIV",{class:!0});var f=x(e);m(a.$$.fragment,f),t=y(f),f.forEach(_),this.h()},h(){k(e,"class","small-multiple-container svelte-1xmktbf")},m(r,f){h(r,e,f),p(a,e,null),z(e,t),n=!0},p(r,f){const s={};f&1&&(s.scale=r[0]),a.$set(s)},i(r){n||(c(a.$$.fragment,r),n=!0)},o(r){u(a.$$.fragment,r),n=!1},d(r){r&&_(e),g(a)}}}function ka($){let e,a,t,n,r,f,s,l,o,d,v,K,S,I,N=H(he),D=[];for(let C=0;Cu(D[C],1,1,()=>{D[C]=null});return K=ct($[4][0]),{c(){e=w("div"),a=w("label"),t=w("input"),n=G("Individual scale"),r=b(),f=w("label"),s=w("input"),l=G("Shared scale"),o=b(),d=w("div");for(let C=0;Co.x,y:o=>o.y},n=Oe(ie(he),t);he.sort((o,d)=>d[d.length-1].y-o[o.length-1].y);let r="individual";const f=[[]];function s(){r=this.__value,a(0,r)}function l(){r=this.__value,a(0,r)}return[r,t,n,s,f,l]}class Ea extends M{constructor(e){super(),j(this,e,wa,ka,B,{})}}function at($,e,a){const t=$.slice();return t[5]=e[a],t[7]=a,t}function Da($){let e,a;return e=new Ft({}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Sa($){let e,a;return e=new L({props:{$$slots:{default:[Da]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&256&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function st($){let e,a,t,n;return a=new V({props:{padding:{top:1,right:1,bottom:1,left:1},x:"key",z:Ka,zScale:Re(),zRange:$[1],data:$[5].values,$$slots:{default:[Sa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),this.h()},l(r){e=E(r,"DIV",{class:!0,style:!0,"data-month":!0});var f=x(e);m(a.$$.fragment,f),t=y(f),f.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-1lqvxpk"),k(e,"style","width:calc("+100/$[2].length+"% - "+$t+"px);"+($[7]===0?`margin-right:${$t*2}px`:"")),k(e,"data-month",$[0][+$[5].key+1])},m(r,f){h(r,e,f),p(a,e,null),z(e,t),n=!0},p(r,f){const s={};f&256&&(s.$$scope={dirty:f,ctx:r}),a.$set(s)},i(r){n||(c(a.$$.fragment,r),n=!0)},o(r){u(a.$$.fragment,r),n=!1},d(r){r&&_(e),g(a)}}}function xa($){let e,a,t=H($[2]),n=[];for(let f=0;fu(n[f],1,1,()=>{n[f]=null});return{c(){for(let f=0;f$.values.length;function Ca($){const e=["January","February","March","April","May","June","July","August","September","October","November","December"],a=vr.map(f=>(f.date=new Date(f.timestring),f)),t=["#fff5cc","#ffeba9","#ffe182","#ffd754","#ffcc00"],r=Xt().key(f=>f.date.getUTCMonth()).key(f=>f.timestring.split("T")[0]).entries(a).sort((f,s)=>f.key-s.key);return[e,t,r]}class Ia extends M{constructor(e){super(),j(this,e,Ca,xa,B,{})}}function za($){let e,a,t,n,r,f;return e=new R({props:{ticks:[0,4,8,12,16,20,24].map(La),format:$[2]}}),t=new W({}),r=new vt({props:{r:Va,fill:"rgba(255, 204, 0, 0.75)"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Pa($){let e,a;return e=new L({props:{$$slots:{default:[za]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ta($){let e,a,t;return a=new V({props:{padding:{top:0,right:15,bottom:20,left:75},x:Kt,y:Ct,xDomain:[0,24*60*60],yDomain:$[1],xScale:br(),yScale:Q().paddingInner(.05).round(!0),data:$[0],$$slots:{default:[Pa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Kt="seconds",Ct="day",Va=4,La=$=>$*60*60;function Ba($){const e=yr.map(s=>{const l=s.timestring.split("T"),o=l[1].replace("Z","").split(":").map(d=>+d);return s[Kt]=o[0]*60*60+o[1]*60+o[2],s[Ct]=l[0],s}),a=Oe(e,{x:s=>s.timestring}),t=a.x[0].toString().split("T")[0].split("-").map(s=>+s),n=a.x[1].toString().split("T")[0].split("-").map(s=>+s),r=Ht.range(new Date(Date.UTC(t[0],t[1]-1,t[2])),new Date(Date.UTC(n[0],n[1]-1,n[2]+1))).map(s=>s.toISOString().split("T")[0]).sort();return[e,r,s=>`${Math.floor(s/60/60)}:00`]}class Ma extends M{constructor(e){super(),j(this,e,Ba,Ta,B,{})}}function ja($){let e,a,t,n;return e=new nr({}),t=new ar({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Aa($){let e,a;return e=new L({props:{$$slots:{default:[ja]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&4&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Na($){let e,a,t;return a=new V({props:{padding:{top:30,right:0,bottom:7,left:0},x:$[0],xDomain:[0,10],xRange:Oa,data:Ke,$$slots:{default:[Aa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&4&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ra="name",Oa=({height:$})=>[0,$/2];function qa($){const e=["fastball","change","slider","cutter","curve"],a=Object.keys(Ke[0]).filter(t=>t!==Ra);return Ke.forEach(t=>{a.forEach(n=>{t[n]=+t[n]})}),[e]}class Ua extends M{constructor(e){super(),j(this,e,qa,Na,B,{})}}function Wa($){let e,a;return e=new yt({props:{idKey:Ga,valueKey:Le,fill:"#ff00cc",stroke:"#9f0080",textColor:"#61004e",textStroke:"#ffdbf8",textStrokeWidth:1}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ya($){let e,a;return e=new Y({props:{$$slots:{default:[Wa]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ja($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:30},data:bt,$$slots:{default:[Ya]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ga="fruit",Le="value";function Xa($){return bt.forEach(e=>{e[Le]=+e[Le]}),[]}class Fa extends M{constructor(e){super(),j(this,e,Xa,Ja,B,{})}}const Ha=[{name:"Eve",parent:""},{name:"Cain",parent:"Eve"},{name:"Seth",parent:"Eve"},{name:"Enos",parent:"Seth"},{name:"Noam",parent:"Seth"},{name:"Abel",parent:"Eve"},{name:"Awan",parent:"Eve"},{name:"Enoch",parent:"Awan"},{name:"Azura",parent:"Eve"}];function Qa($){let e,a;return e=new yt({props:{idKey:ts,parentKey:rs,spacing:5,sortBy:ns,labelVisibilityThreshold:as,stroke:"#00bbff"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Za($){let e,a;return e=new Y({props:{$$slots:{default:[Qa]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function es($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:30},data:Ha,$$slots:{default:[Za]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ts="name",rs="parent",ns=($,e)=>e.depth-$.depth,as=$=>!1;class ss extends M{constructor(e){super(),j(this,e,null,es,B,{})}}function $s($){let e,a;return e=new $r({props:{colorNodes:os,colorLinks:cs}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function fs($){let e,a;return e=new L({props:{$$slots:{default:[$s]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ls($){let e,a,t;return a=new V({props:{data:sr,$$slots:{default:[fs]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const os=$=>"#00bbff",cs=$=>"#00bbff35";class us extends M{constructor(e){super(),j(this,e,null,ls,B,{})}}function is($){let e,a,t,n,r,f,s,l;return e=new R({props:{ticks:hs}}),t=new W({props:{ticks:4}}),r=new ce({props:{stroke:"#00e047"}}),s=new ue({props:{fill:"#00e04710"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p:P,i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function ms($){let e,a;return e=new L({props:{$$slots:{default:[is]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&16&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ps($){let e,a,t,n;return e=new ce({props:{stroke:"#00e047"}}),t=new ue({props:{fill:"#00e04710"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function gs($){let e,a,t,n;function r(l){$[2](l)}function f(l){$[3](l)}let s={};return $[0][0]!==void 0&&(s.min=$[0][0]),$[0][1]!==void 0&&(s.max=$[0][1]),e=new ht({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0][0],le(()=>a=!1)),!t&&o&1&&(t=!0,d.max=l[0][1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function _s($){let e,a,t,n;return e=new L({props:{$$slots:{default:[ps]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[gs]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&16&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&17&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function ds($){let e,a,t,n,r,f;return a=new V({props:{padding:{right:10,bottom:20,left:25},x:ft,y:ve,yDomain:[0,null],data:$[1],$$slots:{default:[ms]},$$scope:{ctx:$}}}),r=new V({props:{padding:{top:5},x:ft,y:ve,yDomain:[0,null],data:q,$$slots:{default:[_s]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),n=w("div"),i(r.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var l=x(e);m(a.$$.fragment,l),l.forEach(_),t=y(s),n=E(s,"DIV",{class:!0});var o=x(n);m(r.$$.fragment,o),o.forEach(_),this.h()},h(){k(e,"class","brushed-chart-container svelte-12vpq9d"),k(n,"class","brush-container svelte-12vpq9d")},m(s,l){h(s,e,l),p(a,e,null),h(s,t,l),h(s,n,l),p(r,n,null),f=!0},p(s,[l]){const o={};l&2&&(o.data=s[1]),l&16&&(o.$$scope={dirty:l,ctx:s}),a.$set(o);const d={};l&17&&(d.$$scope={dirty:l,ctx:s}),r.$set(d)},i(s){f||(c(a.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(a.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(e),_(t),_(n)),g(a),g(r)}}}const ft="myX",ve="myY",hs=$=>{const e=$.filter(a=>a%1===0);return e.length>7?e.filter((a,t)=>t%2===0):e};function vs($,e,a){let t=[null,null];q.forEach(s=>{s[ve]=+s[ve]});let n;function r(s){$.$$.not_equal(t[0],s)&&(t[0]=s,a(0,t))}function f(s){$.$$.not_equal(t[1],s)&&(t[1]=s,a(0,t))}return $.$$.update=()=>{$.$$.dirty&3&&(a(1,n=q.slice((t[0]||0)*q.length,(t[1]||1)*q.length)),n.length<2&&a(1,n=q.slice(t[0]*q.length,t[0]*q.length+2)))},[t,n,r,f]}class bs extends M{constructor(e){super(),j(this,e,vs,ds,B,{})}}function ys($){let e,a,t,n,r,f,s,l;return e=new R({props:{ticks:xs}}),t=new W({props:{ticks:2}}),r=new ce({props:{stroke:$[5]}}),s=new ue({props:{fill:`${$[5]}10`}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p(o,d){const v={};d&32&&(v.stroke=o[5]),r.$set(v);const K={};d&32&&(K.fill=`${o[5]}10`),s.$set(K)},i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function ks($){let e,a;return e=new L({props:{$$slots:{default:[ys]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&544&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ws($){let e,a,t,n;return e=new ce({props:{stroke:$[5]}}),t=new ue({props:{fill:`${$[5]}10`}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&32&&(s.stroke=r[5]),e.$set(s);const l={};f&32&&(l.fill=`${r[5]}10`),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Es($){let e,a,t,n;function r(l){$[7](l)}function f(l){$[8](l)}let s={};return $[0]!==void 0&&(s.min=$[0]),$[1]!==void 0&&(s.max=$[1]),e=new ht({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0],le(()=>a=!1)),!t&&o&2&&(t=!0,d.max=l[1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function Ds($){let e,a,t,n;return e=new L({props:{$$slots:{default:[ws]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[Es]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&544&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&515&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Ss($){let e,a,t,n,r,f,s;return t=new V({props:{padding:{right:10,bottom:20,left:25},x:$[2],y:$[3],yDomain:[0,null],data:$[6],$$slots:{default:[ks]},$$scope:{ctx:$}}}),f=new V({props:{padding:{top:5},x:$[2],y:$[3],yDomain:[0,null],data:$[4],$$slots:{default:[Ds]},$$scope:{ctx:$}}}),{c(){e=w("div"),a=w("div"),i(t.$$.fragment),n=b(),r=w("div"),i(f.$$.fragment),this.h()},l(l){e=E(l,"DIV",{class:!0});var o=x(e);a=E(o,"DIV",{class:!0});var d=x(a);m(t.$$.fragment,d),d.forEach(_),n=y(o),r=E(o,"DIV",{class:!0});var v=x(r);m(f.$$.fragment,v),v.forEach(_),o.forEach(_),this.h()},h(){k(a,"class","chart-container svelte-ypfvhs"),k(r,"class","brush-container svelte-ypfvhs"),k(e,"class","chart-wrapper svelte-ypfvhs")},m(l,o){h(l,e,o),z(e,a),p(t,a,null),z(e,n),z(e,r),p(f,r,null),s=!0},p(l,[o]){const d={};o&4&&(d.x=l[2]),o&8&&(d.y=l[3]),o&64&&(d.data=l[6]),o&544&&(d.$$scope={dirty:o,ctx:l}),t.$set(d);const v={};o&4&&(v.x=l[2]),o&8&&(v.y=l[3]),o&16&&(v.data=l[4]),o&547&&(v.$$scope={dirty:o,ctx:l}),f.$set(v)},i(l){s||(c(t.$$.fragment,l),c(f.$$.fragment,l),s=!0)},o(l){u(t.$$.fragment,l),u(f.$$.fragment,l),s=!1},d(l){l&&_(e),g(t),g(f)}}}const xs=$=>{const e=$.filter(a=>a%1===0);return e.length>7?e.filter((a,t)=>t%2===0):e};function Ks($,e,a){let{min:t=null}=e,{max:n=null}=e,{xKey:r="x"}=e,{yKey:f="y"}=e,{data:s=[]}=e,{stroke:l="#00e047"}=e,o;function d(K){t=K,a(0,t)}function v(K){n=K,a(1,n)}return $.$$set=K=>{"min"in K&&a(0,t=K.min),"max"in K&&a(1,n=K.max),"xKey"in K&&a(2,r=K.xKey),"yKey"in K&&a(3,f=K.yKey),"data"in K&&a(4,s=K.data),"stroke"in K&&a(5,l=K.stroke)},$.$$.update=()=>{$.$$.dirty&83&&(a(6,o=s.slice((t||0)*s.length,(n||1)*s.length)),o.length<2&&a(6,o=s.slice(t*s.length,t*s.length+2)))},[t,n,r,f,s,l,o,d,v]}class Cs extends M{constructor(e){super(),j(this,e,Ks,Ss,B,{min:0,max:1,xKey:2,yKey:3,data:4,stroke:5})}}function lt($,e,a){const t=$.slice();return t[5]=e[a],t[7]=a,t}function ot($){let e,a,t,n;function r(l){$[3](l)}function f(l){$[4](l)}let s={data:$[5],xKey:zs,yKey:Be,stroke:$[2][$[7]]};return $[0][0]!==void 0&&(s.min=$[0][0]),$[0][1]!==void 0&&(s.max=$[0][1]),e=new Cs({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0][0],le(()=>a=!1)),!t&&o&1&&(t=!0,d.max=l[0][1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function Is($){let e,a,t=H($[1]),n=[];for(let f=0;fu(n[f],1,1,()=>{n[f]=null});return{c(){e=w("div");for(let f=0;f{l.forEach(o=>{o[Be]=+o[Be]})});const r=["#00e047","#00bbff","#ff00cc","#ffcc00"];function f(l){$.$$.not_equal(t[0],l)&&(t[0]=l,a(0,t))}function s(l){$.$$.not_equal(t[1],l)&&(t[1]=l,a(0,t))}return[t,n,r,f,s]}class Ts extends M{constructor(e){super(),j(this,e,Ps,Is,B,{})}}function Vs($){let e,a,t,n;return e=new R({props:{baseline:!0,format:$[2],tickMarks:!0}}),t=new lr({props:{r:$[5]<400?ge/1.6:ge,spacing:1,getTitle:$[3]}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&32&&(s.r=r[5]<400?ge/1.6:ge),t.$set(s)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Ls($){let e,a;return e=new kt({props:{align:"end",shape:"circle",lookup:{USA:"U.S."}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Bs($){let e,a,t,n;return e=new L({props:{$$slots:{default:[Vs]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Ls]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&96&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&64&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Ms($){let e,a,t;return a=new V({props:{padding:{bottom:15},x:Me,z:de,zScale:Z(),zRange:$[0],data:$[1],$$slots:{default:[Bs,({width:n})=>({5:n}),({width:n})=>n?32:0]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&96&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Me="Weight_in_lbs",de="Origin",De="Name",ge=4;function js($){const e=new Set,a=["#ccc","#fc0","#000"],t=fr.map(f=>(e.add(f[de]),{[De]:f[De],[Me]:+f[Me],[de]:f[de]})),n=te(",");return[a,t,n,f=>f.data[De]]}class As extends M{constructor(e){super(),j(this,e,js,Ms,B,{})}}function Ns($){let e,a,t,n;return e=new R({}),t=new cr({props:{r:$[3]<400?_e/1.25:_e,strokeWidth:1,xStrength:.95,yStrength:.075,getTitle:$[2]}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&8&&(s.r=r[3]<400?_e/1.25:_e),t.$set(s)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Rs($){let e,a;return e=new kt({props:{shape:"circle"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Os($){let e,a,t,n;return e=new L({props:{$$slots:{default:[Ns]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Rs]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&24&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&16&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function qs($){let e,a,t;return a=new V({props:{padding:{bottom:15},x:je,z:Ae,zScale:Z(),zRange:$[0],data:$[1],$$slots:{default:[Os,({width:n})=>({3:n}),({width:n})=>n?8:0]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&24&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const je="date_of_birth",Ae="gender",Se="name",_e=6;function Us($){const e=["#fc0","#000"],a=or.map(n=>({[Se]:n[Se],[Ae]:n[Ae],[je]:+n[je].split("-")[0]}));return[e,a,n=>n[Se]]}class Ws extends M{constructor(e){super(),j(this,e,Us,qs,B,{})}}function Ys($){let e,a;return e=new ir({props:{manyBodyStrength:Qs,xStrength:Zs,groupBy:JSON.parse($[0]),nodeStroke:"#000"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.groupBy=JSON.parse(t[0])),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Js($){let e,a;return e=new L({props:{$$slots:{default:[Ys]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&33&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Gs($){let e,a,t,n,r,f,s,l,o,d,v,K,S,I,N;return v=new V({props:{data:ur,x:Xs,r:Fs,z:Hs,xScale:Q(),rRange:[3,12],zScale:Z(),zRange:$[1],$$slots:{default:[Js]},$$scope:{ctx:$}}}),S=ct($[3][0]),{c(){e=w("div"),a=w("label"),t=w("input"),n=G("Group by category"),r=b(),f=w("label"),s=w("input"),l=G("Clump together"),o=b(),d=w("div"),i(v.$$.fragment),this.h()},l(D){e=E(D,"DIV",{class:!0});var O=x(e);a=E(O,"LABEL",{class:!0});var C=x(a);t=E(C,"INPUT",{type:!0,class:!0}),n=X(C,"Group by category"),C.forEach(_),r=y(O),f=E(O,"LABEL",{class:!0});var A=x(f);s=E(A,"INPUT",{type:!0,class:!0}),l=X(A,"Clump together"),A.forEach(_),O.forEach(_),o=y(D),d=E(D,"DIV",{class:!0});var T=x(d);m(v.$$.fragment,T),T.forEach(_),this.h()},h(){k(t,"type","radio"),t.__value="true",se(t,t.__value),k(t,"class","svelte-11z1nx4"),k(a,"class","svelte-11z1nx4"),k(s,"type","radio"),s.__value="false",se(s,s.__value),k(s,"class","svelte-11z1nx4"),k(f,"class","svelte-11z1nx4"),k(e,"class","input-container"),k(d,"class","chart-container svelte-11z1nx4"),S.p(t,s)},m(D,O){h(D,e,O),z(e,a),z(a,t),t.checked=t.__value===$[0],z(a,n),z(e,r),z(e,f),z(f,s),s.checked=s.__value===$[0],z(f,l),h(D,o,O),h(D,d,O),p(v,d,null),K=!0,I||(N=[$e(t,"change",$[2]),$e(s,"change",$[4])],I=!0)},p(D,[O]){O&1&&(t.checked=t.__value===D[0]),O&1&&(s.checked=s.__value===D[0]);const C={};O&33&&(C.$$scope={dirty:O,ctx:D}),v.$set(C)},i(D){K||(c(v.$$.fragment,D),K=!0)},o(D){u(v.$$.fragment,D),K=!1},d(D){D&&(_(e),_(o),_(d)),g(v),S.r(),I=!1,Ne(N)}}}const Xs="category",Fs="value",Hs="category";let Qs=3,Zs=.1;function e$($,e,a){let t="true";const n=["#f0c","#0cf","#fc0"],r=[[]];function f(){t=this.__value,a(0,t)}function s(){t=this.__value,a(0,t)}return[t,n,f,r,s]}class t$ extends M{constructor(e){super(),j(this,e,e$,Gs,B,{})}}const l$=[{replPath:"ad32f9f301484d0cace82272126e9d09?version=3.46.2",title:"Line + area",slug:"Line",component:Pr},{replPath:"71cde05fa1e94583be57046207f72c02?version=3.46.2",title:"WebGL Scatter (svg axes, quadtree hover)",slug:"ScatterWebgl",component:sa},{replPath:"14b8f866cc414a9ebdfbb5eaabf66ae2?version=3.46.2",title:"Map (svg, tooltip, pre-projected)",slug:"MapSvg",component:Hr},{replPath:"a8135fcccf3d42e68b1f29be00fc72c6?version=3.46.2",title:"Multilayer map (canvas + svg)",slug:"MapLayered",component:Mn},{replPath:"666164c95fb9441188aab2622a4e8547?version=3.46.2",title:"Column annotated",slug:"Column",component:$n},{replPath:"f38656e90d0644cfb460206005c492e5?version=3.46.2",title:"Stacked column",slug:"ColumnStacked",component:vn},{replPath:"91fe94cac36c4829903238382563bc81?version=3.46.2",title:"Bar",slug:"Bar",component:qn},{replPath:"8d2e9a75cb0e4bf7abb86cb65915a93c?version=3.46.2",title:"Stacked bar",slug:"BarStacked",component:Xn},{replPath:"cc8d7b6ace40433da8d694f2877258a8?version=3.46.2",title:"Multiline (html labels + quadtree tooltip)",slug:"MultiLine",component:Sn},{replPath:"e6ae831e723646c8a01a039b3eeb33cb?version=3.46.2",title:"Stacked area",slug:"AreaStacked",component:mn},{replPath:"d9a9c151058d4e3eb74a4eed60eabb54?version=3.46.2",title:"Scatter (svg + canvas + voronoi)",slug:"Scatter",component:Or},{replPath:"f9f33add37d440f78b24092c7ba8154d?version=3.46.2",title:"Cleveland dot plot",slug:"ClevelandDotPlot",component:ca},{replPath:"fd96397862ff43e09fc8c83bfd818642?version=3.46.2",title:"Calendar (one cake per month)",slug:"Calendar",component:Ia},{replPath:"2c5131bd0b694d54a6211b40afbd3c09?version=3.46.2",title:"Time of day plot",slug:"Timeplot",component:Ma},{replPath:"58a15bea15bd46ee8364409c15045a8b?version=3.46.2",title:"Histogram (variable bins)",slug:"Histogram",component:_a},{replPath:"1c3297c4347248fc885b215f4907f8b2?version=3.46.2",title:"Small multiples (animated domain transition)",slug:"SmallMultiples",component:Ea},{replPath:"cb6bb95b7d1549f7be8d8fc7258ea1da?version=3.46.2",title:"Radar chart",slug:"Radar",component:Ua},{replPath:"5d3d22482b3d400d96c88d7de7ff45b1?version=3.46.2",title:"Circle pack",slug:"CirclePack",component:Fa},{replPath:"8ecba3df31e24658bf039a1a4d5daedc?version=3.46.2",title:"Nested circle pack",slug:"CirclePackNested",component:ss},{replPath:"0f7f35ffe2f14a25860772897f7a0b5c?version=3.46.2",title:"Sankey",slug:"Sankey",component:us},{replPath:"4e7a8affd4724d03b33493c85e50471c?version=3.46.2",title:"Brush",slug:"Brush",component:bs},{replPath:"0eaf387a0a564971865fb6176f959940?version=3.46.2",title:"Synced brush",slug:"SyncedBrush",component:Ts},{replPath:"132d2c81c3f841a0be0162443b008a92?version=3.46.2",title:"Beeswarm",slug:"Beeswarm",component:As},{replPath:"9d0e23f494f645b4a9623c46474462f6?version=3.46.2",title:"Beeswarm, force layout",slug:"BeeswarmForce",component:Ws},{replPath:"1879eb5e27f74784a69b65a11844f373?version=3.46.2",title:"Circle pack, force layout",slug:"CirclePackForce",component:t$}];export{l$ as e}; diff --git a/docs/_app/immutable/chunks/_examples.sYS4I3XL.js b/docs/_app/immutable/chunks/_examples.sYS4I3XL.js deleted file mode 100644 index 49a84cb6..00000000 --- a/docs/_app/immutable/chunks/_examples.sYS4I3XL.js +++ /dev/null @@ -1 +0,0 @@ -import{s as L,e as w,c as E,b as x,f as _,u as k,i as h,a as b,g as y,n as P,E as ae,v as be,t as G,d as X,h as z,j as xe,A as U,U as se,y as $e,r as Ne,a4 as It,k as We,a5 as ct,B as fe,C as le}from"./scheduler.P37s_KnH.js";import{S as M,i as j,c as i,b as m,m as p,t as c,a as u,d as g,g as ye,e as ke,f as oe}from"./index.GooPGtyi.js";import{a0 as zt,L as V,I as q,T as B,K as ce,M as ue,a8 as ut,N as Re,P as it,O as mt,f as te,J as Y,Q as pt,R as Q,S as we,U as gt,V as Pt,W as Tt,X as Vt,Y as Z,Z as ie,_ as _t,$ as F,w as dt,a1 as Bt,u as Lt,a2 as J,a3 as Mt,a4 as jt,a5 as At,a6 as Ye,a7 as Nt,a9 as Rt,aa as Ot,ab as qt,ac as Ut,ad as Wt,ae as Yt,af as Jt,ag as Gt,ah as Oe,ai as Xt,aj as Ft,o as Ht,ak as ht}from"./Brush.html.I1clC5X0.js";import{A as R,a as W,S as Qt,b as vt,V as Zt,T as er,c as tr,C as rr,d as Ke,e as nr,R as ar,f as bt,g as yt,h as sr,i as $r,j as fr,B as lr,K as kt,k as or,l as cr,m as ur,n as ir}from"./dots.plnXAFy8.js";import{e as H}from"./each.zMdpk9aP.js";import{b as mr,u as Je,g as pr,e as gr,d as Ge,c as _r,t as dr,a as Xe,f as hr,p as he,h as vr,i as br,j as yr,k as kr,l as wr,m as Er}from"./pointsFour.fzEDaS5G.js";function Dr($,e,{domain:a,thresholds:t}={}){if(typeof $!="object")throw new TypeError("The first argument of bin() must be an array or data object");let n=mr();if(e){const r=typeof e=="function"?e:f=>f[e];n=n.value(r)}return a&&(n=n.domain(a)),t&&(n=n.thresholds(t)),n($)}function qe($,e,{value:a,order:t,offset:n}={}){if(typeof $!="object")throw new TypeError("The first argument of stack() must be an array or data object");if(!Array.isArray(e))throw new TypeError("The second argument of stack() must be an array of key names");let r=zt().keys(e);return a&&(r=r.value(a)),t&&(r=r.order(t)),n&&(r=r.offset(n)),r($)}function Sr($,e,{groupTo:a="group",valueTo:t="value",keepKeys:n=void 0}={}){if(!Array.isArray($))throw new TypeError("The first argument of groupLonger() must be an array of data");if(!Array.isArray(e))throw new TypeError("The second argument of groupLonger() must be an array of key names");const r=new Set(e),f=n||Object.keys($[0]).filter(s=>!r.has(s));return e.map(s=>({[a]:s,values:$.map(l=>({...Object.fromEntries(f.map(o=>[o,l[o]])),[t]:l[s],[a]:s}))}))}function xr($){let e,a,t,n,r,f,s,l;return e=new R({}),t=new W({props:{ticks:4}}),r=new ce({}),s=new ue({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p:P,i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function Kr($){let e,a;return e=new B({props:{$$slots:{default:[xr]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Cr($){let e,a,t;return a=new V({props:{padding:{top:8,right:10,bottom:20,left:25},x:Ir,y:Ce,yDomain:[0,null],data:q,$$slots:{default:[Kr]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ir="myX",Ce="myY";function zr($){return q.forEach(e=>{e[Ce]=+e[Ce]}),[]}class Pr extends M{constructor(e){super(),j(this,e,zr,Cr,L,{})}}function Tr($){let e,a,t,n;return e=new R({props:{gridlines:!1}}),t=new W({props:{gridlines:!1,ticks:4}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Vr($){let e,a;return e=new Qt({props:{r:wt*1.5,fill:"#0cf"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Br($){let e,a,t,n;return e=new vt({props:{r:wt,fill:Ar}}),t=new Zt({props:{stroke:"#333"}}),t.$on("voronoi-mouseover",Nr),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Lr($){let e,a,t,n,r,f;return e=new B({props:{$$slots:{default:[Tr]},$$scope:{ctx:$}}}),t=new ut({props:{$$slots:{default:[Vr]},$$scope:{ctx:$}}}),r=new B({props:{$$slots:{default:[Br]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&1&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&1&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&1&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Mr($){let e,a,t;return a=new V({props:{padding:{top:10,right:5,bottom:20,left:25},x:jr,y:Ie,xPadding:[me,me],yPadding:[me,me],data:q,$$slots:{default:[Lr]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const jr="myX",Ie="myY",wt=3,me=10,Ar="#fff";function Nr($){console.log("dispatched event",$,$.detail)}function Rr($){return q.forEach(e=>{e[Ie]=+e[Ie]}),[]}class Or extends M{constructor(e){super(),j(this,e,Rr,Mr,L,{})}}function Fe($){const e={...$[11].props,...$[2].get($[11].props[Et])};$[12]=e}function He($,e,a){const t=$.slice();t[13]=e[a][0],t[14]=e[a][1];const n=t[13].replace(/^\w/,r=>r.toUpperCase());return t[15]=n,t}function qr($){let e,a;return e=new pt({props:{projection:$[4]}}),e.$on("mousemove",$[8]),e.$on("mouseout",$[9]),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Qe($){let e,a;return e=new er({props:{evt:$[0],$$slots:{default:[Ur,({detail:t})=>({11:t}),({detail:t})=>t?2048:0]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.evt=t[0]),n&264192&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ze($){let e,a,t=$[15]+"",n,r,f,s=(typeof $[14]=="number"?$[7]($[14]):$[14])+"",l;return{c(){e=w("div"),a=w("span"),n=G(t),r=G(":"),f=b(),l=G(s),this.h()},l(o){e=E(o,"DIV",{class:!0});var d=x(e);a=E(d,"SPAN",{});var v=x(a);n=X(v,t),r=X(v,":"),v.forEach(_),f=y(d),l=X(d,s),d.forEach(_),this.h()},h(){k(e,"class","row")},m(o,d){h(o,e,d),z(e,a),z(a,n),z(a,r),z(e,f),z(e,l)},p(o,d){d&2048&&t!==(t=o[15]+"")&&xe(n,t),d&2048&&s!==(s=(typeof o[14]=="number"?o[7](o[14]):o[14])+"")&&xe(l,s)},d(o){o&&_(e)}}}function Ur($){Fe($);let e,a=H(Object.entries($[12])),t=[];for(let n=0;n{t=null}),ke())},i(n){a||(c(t),a=!0)},o(n){u(t),a=!1},d(n){n&&_(e),t&&t.d(n)}}}function Yr($){let e,a,t,n;return e=new B({props:{$$slots:{default:[qr]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Wr]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&262147&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&262147&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Jr($){let e,a,t;return a=new V({props:{data:$[3],z:$[10],zScale:Re(),zRange:$[6],flatData:$[5],$$slots:{default:[Yr]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&262147&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Gr="myValue",Xr="name",Et="name";function Fr($,e,a){const t=new Map,n=it(Je,Je.objects.states),r=pr;mt.forEach(I=>{t.set(I[Xr],I)});let f,s=!0;const l=n.features.map(I=>I.properties),o=["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],d=te(",");return[f,s,t,n,r,l,o,d,I=>a(0,f=a(1,s=I)),()=>a(1,s=!0),I=>t.get(I[Et])[Gr]]}class Hr extends M{constructor(e){super(),j(this,e,Fr,Jr,L,{})}}function Qr($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1}}),t=new W({props:{snapBaselineLabel:!0}}),r=new gt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Zr($){let e,a;return e=new Pt({props:{annotations:$[0]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function en($){let e,a;return e=new Tt({props:{annotations:$[0]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function tn($){let e,a;return e=new Vt({}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function rn($){let e,a,t,n,r,f;return e=new B({props:{$$slots:{default:[Qr]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[Zr]},$$scope:{ctx:$}}}),r=new B({props:{$$slots:{defs:[tn],default:[en]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&2&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&2&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&2&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function nn($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:20},x:an,y:ze,xScale:Q().paddingInner(.02).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:we,$$slots:{default:[rn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&2&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const an="year",ze="value";function sn($){const e=[{text:"Example text...",top:"18%",left:"30%",arrows:[{clockwise:!1,source:{anchor:"left-bottom",dx:-2,dy:-7},target:{x:"28%",y:"75%"}},{source:{anchor:"right-bottom",dy:-7,dx:5},target:{x:"68%",y:"48%"}}]}];return we.forEach(a=>{a[ze]=+a[ze]}),[e]}class $n extends M{constructor(e){super(),j(this,e,sn,nn,L,{})}}function fn($){let e,a,t,n,r,f;return e=new R({props:{format:$[3],tickMarks:!0}}),t=new W({props:{format:$[4]}}),r=new Bt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ln($){let e,a;return e=new B({props:{$$slots:{default:[fn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&256&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function on($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:17},x:$[6],y:$[0],z:cn,zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[5]),data:$[5],$$slots:{default:[ln]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&256&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ne="month",cn="key";function un($){const e=[0,1],a=_t("%Y-%m-%d"),t=Object.keys(F[0]).filter(o=>o!==ne),n=["#ff00cc","#ff7ac7","#ffb3c0","#ffe4b8"],r=dt("%b. %-d"),f=o=>te("~s")(o);F.forEach(o=>{o[ne]=typeof o[ne]=="string"?a(o[ne]):o[ne],t.forEach(d=>{o[d]=+o[d]})});const s=qe(F,t);return[e,t,n,r,f,s,o=>o.data[ne]]}class mn extends M{constructor(e){super(),j(this,e,un,on,L,{})}}function pn($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1}}),t=new W({props:{ticks:4,gridlines:!1,format:$[3]}}),r=new Mt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function gn($){let e,a;return e=new B({props:{$$slots:{default:[pn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function _n($){let e,a,t;return a=new V({props:{padding:{top:0,right:0,bottom:20,left:20},x:$[5],y:$[0],z:dn,xScale:Q().paddingInner(.02).round(!0),xDomain:Lt(J,Pe),zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[4]),data:$[4],$$slots:{default:[gn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Pe="year",dn="key";function hn($){const e=[0,1],a=Object.keys(J[0]).filter(s=>s!==Pe),t=["#00e047","#7ceb68","#b7f486","#ecfda5"];J.forEach(s=>{a.forEach(l=>{s[l]=+s[l]})});const n=s=>te("~s")(s),r=qe(J,a);return[e,a,t,n,r,s=>s.data[Pe]]}class vn extends M{constructor(e){super(),j(this,e,hn,_n,L,{})}}function bn($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1,ticks:F.map($[4]).sort(En),format:$[1],snapTicks:!0,tickMarks:!0}}),t=new W({props:{ticks:4,format:$[2]}}),r=new jt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function yn($){let e,a,t,n;return e=new At({}),t=new tr({props:{formatTitle:$[1],dataset:F}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function kn($){let e,a,t,n;return e=new B({props:{$$slots:{default:[bn]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[yn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&128&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&128&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function wn($){let e,a,t;return a=new V({props:{padding:{top:7,right:10,bottom:20,left:25},x:ee,y:Dt,z:St,yDomain:[0,null],zScale:Z(),zRange:$[0],flatData:ie($[3],"values"),data:$[3],$$slots:{default:[kn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&128&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ee="month",Dt="value",St="fruit",En=($,e)=>$-e;function Dn($){const e=_t("%Y-%m-%d"),a=Object.keys(F[0]).filter(l=>l!==ee),t=["#ffe4b8","#ffb3c0","#ff7ac7","#ff00cc"];F.forEach(l=>{l[ee]=typeof l[ee]=="string"?e(l[ee]):l[ee],a.forEach(o=>{l[o]=+l[o]})});const n=dt("%b. %e"),r=l=>te("~s")(l),f=Sr(F,a,{groupTo:St,valueTo:Dt});return[t,n,r,f,l=>l[ee]]}class Sn extends M{constructor(e){super(),j(this,e,Dn,wn,L,{})}}function xn($){let e,a;return e=new Ot({props:{projection:$[1],fill:"#fff"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Kn($){let e,a;return e=new pt({props:{projection:$[1],features:$[0].features.slice(40,50)}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Cn($){let e,a;return e=new qt({props:{projection:$[1],features:$[3],getCoordinates:$[6],getLabel:$[7]}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function In($){let e,a,t,n,r,f;return e=new ut({props:{$$slots:{default:[xn]},$$scope:{ctx:$}}}),t=new B({props:{$$slots:{default:[Kn]},$$scope:{ctx:$}}}),r=new Y({props:{pointerEvents:!1,$$slots:{default:[Cn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&1024&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&1024&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&1024&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function zn($){let e,a,t;return a=new V({props:{data:$[0],z:$[8],zScale:Re(),zRange:$[5],flatData:$[4],$$slots:{default:[In]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1024&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Pn="myValue",Tn="center",et="abbr",Vn="name",Bn="name";function Ln($){const e=it(Ye,Ye.objects.collection),a=Rt,t=new Map;mt.forEach(v=>{t.set(v[Vn],v[Pn])});const n=["VT","MD","NJ","RI","DC","DE","WV","MA","CT","NH"],r=Nt.filter(v=>!n.includes(v[et])),f=e.features.map(v=>v.properties);return[e,a,t,r,f,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],v=>v[Tn],v=>v[et],v=>t.get(v[Bn])]}class Mn extends M{constructor(e){super(),j(this,e,Ln,zn,L,{})}}function jn($){let e,a,t,n,r,f;return e=new R({props:{tickMarks:!0,baseline:!0,snapTicks:!0}}),t=new W({props:{tickMarks:!0,gridlines:!1}}),r=new Ut({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function An($){let e,a;return e=new B({props:{$$slots:{default:[jn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Nn($){let e,a,t;return a=new V({props:{padding:{bottom:20,left:35},x:Te,y:Rn,yScale:Q().paddingInner(.05),xDomain:[0,null],data:we,$$slots:{default:[An]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Te="value",Rn="year";function On($){return we.forEach(e=>{e[Te]=+e[Te]}),[]}class qn extends M{constructor(e){super(),j(this,e,On,Nn,L,{})}}function Un($){let e,a,t,n,r,f;return e=new R({props:{baseline:!0,snapLabels:!0,format:$[3]}}),t=new W({props:{gridlines:!1}}),r=new Wt({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Wn($){let e,a;return e=new B({props:{$$slots:{default:[Un]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Yn($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:35},x:$[0],y:$[5],z:Jn,yScale:Q().paddingInner(.05),zScale:Z(),zDomain:$[1],zRange:$[2],flatData:ie($[4]),data:$[4],$$slots:{default:[Wn]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const tt="year",Jn="key";function Gn($){const e=[0,1],a=Object.keys(J[0]).filter(s=>s!==tt),t=["#00bbff","#8bcef6","#c4e2ed","#f7f6e3"];J.forEach(s=>{a.forEach(l=>{s[l]=+s[l]})});const n=s=>te("~s")(s),r=qe(J,a);return[e,a,t,n,r,s=>s.data[tt]]}class Xn extends M{constructor(e){super(),j(this,e,Gn,Yn,L,{})}}function Fn($){let e,a,t,n;return e=new R({}),t=new W({props:{tickMarks:!1,ticks:5}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Hn($){let e,a;return e=new Jt({props:{r:na}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Qn($){let e;return{c(){e=w("div"),this.h()},l(a){e=E(a,"DIV",{class:!0,style:!0}),x(e).forEach(_),this.h()},h(){k(e,"class","circle svelte-d2cww5"),U(e,"top",$[1]+"px"),U(e,"left",$[0]+"px"),U(e,"display",$[2]?"block":"none")},m(a,t){h(a,e,t)},p(a,t){t&2&&U(e,"top",a[1]+"px"),t&1&&U(e,"left",a[0]+"px"),t&4&&U(e,"display",a[2]?"block":"none")},d(a){a&&_(e)}}}function Zn($){let e,a;return e=new Gt({props:{$$slots:{default:[Qn,({x:t,y:n,visible:r})=>({0:t,1:n,2:r}),({x:t,y:n,visible:r})=>(t?1:0)|(n?2:0)|(r?4:0)]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&15&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ea($){let e,a,t,n,r,f;return e=new B({props:{$$slots:{default:[Fn]},$$scope:{ctx:$}}}),t=new Yt({props:{$$slots:{default:[Hn]},$$scope:{ctx:$}}}),r=new Y({props:{$$slots:{default:[Zn]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:s}),e.$set(o);const d={};l&8&&(d.$$scope={dirty:l,ctx:s}),t.$set(d);const v={};l&8&&(v.$$scope={dirty:l,ctx:s}),r.$set(v)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ta($){let e,a,t;return a=new V({props:{padding:{top:5,right:5,bottom:20,left:25},x:ra,y:Ve,xPadding:[pe,pe],yPadding:[pe,pe],data:q,$$slots:{default:[ea]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-d2cww5")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&8&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ra="myX",Ve="myY",na=3,pe=6;function aa($){return q.forEach(e=>{e[Ve]=+e[Ve]}),[]}class sa extends M{constructor(e){super(),j(this,e,aa,ta,L,{})}}function $a($){let e,a,t,n,r,f;return e=new R({}),t=new W({props:{gridlines:!1}}),r=new rr({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function fa($){let e,a;return e=new B({props:{$$slots:{default:[$a]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&4&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function la($){let e,a,t;return a=new V({props:{padding:{right:10,bottom:20,left:30},x:$[0],y:xt,yScale:Q().paddingInner(.05).round(!0),xDomain:[0,null],xPadding:[10,0],zScale:Z(),zDomain:$[0],zRange:$[1],data:J,$$slots:{default:[fa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&4&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const xt="year";function oa($){const e=Object.keys(J[0]).filter(t=>t!==xt),a=["#f0c","#00bbff","#00e047","#ff7a33"];return J.forEach(t=>{e.forEach(n=>{t[n]=+t[n]})}),[e,a]}class ca extends M{constructor(e){super(),j(this,e,oa,la,L,{})}}function ua($){let e,a,t,n,r,f;return e=new R({props:{gridlines:!1,baseline:!0,ticks:$[3],format:$[7]}}),t=new W({props:{gridlines:!1,ticks:3}}),r=new gt({props:{fill:"#fff",stroke:"#000",strokeWidth:1}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p(s,l){const o={};l&8&&(o.ticks=s[3]),e.$set(o)},i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function ia($){let e,a;return e=new B({props:{$$slots:{default:[ua]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&520&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ma($){let e,a,t,n,r,f,s,l,o,d,v,K;return o=new V({props:{padding:{top:20,right:5,bottom:20,left:30},x:$[5],y:pa,xDomain:$[1],xScale:Q().paddingInner(0),yDomain:[0,null],data:$[2],$$slots:{default:[ia]},$$scope:{ctx:$}}}),{c(){e=w("div"),a=w("input"),t=b(),n=w("span"),r=G($[0]),f=G(" bins"),s=b(),l=w("div"),i(o.$$.fragment),this.h()},l(S){e=E(S,"DIV",{class:!0,style:!0});var I=x(e);a=E(I,"INPUT",{style:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),t=y(I),n=E(I,"SPAN",{class:!0,style:!0});var N=x(n);r=X(N,$[0]),f=X(N," bins"),N.forEach(_),I.forEach(_),s=y(S),l=E(S,"DIV",{class:!0});var D=x(l);m(o.$$.fragment,D),D.forEach(_),this.h()},h(){U(a,"margin","0"),k(a,"type","range"),k(a,"min","4"),k(a,"max","100"),k(a,"step","4"),k(a,"class","svelte-v09z8s"),k(n,"class","counter-container"),U(n,"display","inline-block"),U(n,"vertical-align","top"),U(n,"width","70px"),U(n,"text-align","right"),k(e,"class","input-container"),U(e,"position","absolute"),U(e,"right","10px"),U(e,"z-index","9"),k(l,"class","chart-container svelte-v09z8s")},m(S,I){h(S,e,I),z(e,a),se(a,$[0]),z(e,t),z(e,n),z(n,r),z(n,f),h(S,s,I),h(S,l,I),p(o,l,null),d=!0,v||(K=[$e(a,"change",$[6]),$e(a,"input",$[6])],v=!0)},p(S,[I]){I&1&&se(a,S[0]),(!d||I&1)&&xe(r,S[0]);const N={};I&2&&(N.xDomain=S[1]),I&4&&(N.data=S[2]),I&520&&(N.$$scope={dirty:I,ctx:S}),o.$set(N)},i(S){d||(c(o.$$.fragment,S),d=!0)},o(S){u(o.$$.fragment,S),d=!1},d(S){S&&(_(e),_(s),_(l)),g(o),v=!1,Ne(K)}}}const pa="length";function ga($,e,a){let t,n,r;const f=te(".2f"),s=["x0","x1"];let l=40;const o=gr(Ge);function d(){l=It(this.value),a(0,l)}const v=K=>+f(K);return $.$$.update=()=>{$.$$.dirty&1&&a(1,t=_r(o,l)),$.$$.dirty&2&&a(3,n=dr(t,5)),$.$$.dirty&2&&a(2,r=Dr(Ge,K=>K,{domain:o,thresholds:t}))},[l,t,r,n,f,s,d,v]}class _a extends M{constructor(e){super(),j(this,e,ga,ma,L,{})}}function da($){let e,a;return e=new ce({props:{stroke:"#000"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ha($){let e,a;return e=new B({props:{$$slots:{default:[da]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function va($){let e,a;return e=new V({props:{padding:{top:2,right:6,bottom:2,left:6},x:$[1].x,y:$[1].y,data:$[0],xDomain:$[2],yDomain:$[3],$$slots:{default:[ha]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,[n]){const r={};n&2&&(r.x=t[1].x),n&2&&(r.y=t[1].y),n&1&&(r.data=t[0]),n&4&&(r.xDomain=t[2]),n&8&&(r.yDomain=t[3]),n&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ba($,e,a){let t,n,{data:r}=e,{fullExtents:f}=e,{scale:s}=e,{extentGetters:l}=e;const o={duration:300,easing:hr},d=Xe(void 0,o);We($,d,S=>a(2,t=S));const v=Xe(void 0,o);We($,v,S=>a(3,n=S));const K=Oe(r,l);return $.$$set=S=>{"data"in S&&a(0,r=S.data),"fullExtents"in S&&a(6,f=S.fullExtents),"scale"in S&&a(7,s=S.scale),"extentGetters"in S&&a(1,l=S.extentGetters)},$.$$.update=()=>{$.$$.dirty&192&&d.set(s==="shared"?f.x:K.x),$.$$.dirty&192&&v.set(s==="shared"?f.y:K.y)},[r,l,t,n,d,v,f,s]}class ya extends M{constructor(e){super(),j(this,e,ba,va,L,{data:0,fullExtents:6,scale:7,extentGetters:1})}}function rt($,e,a){const t=$.slice();return t[6]=e[a],t}function nt($){let e,a,t,n;return a=new ya({props:{data:$[6],fullExtents:$[2],scale:$[0],extentGetters:$[1]}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),this.h()},l(r){e=E(r,"DIV",{class:!0});var f=x(e);m(a.$$.fragment,f),t=y(f),f.forEach(_),this.h()},h(){k(e,"class","small-multiple-container svelte-1xmktbf")},m(r,f){h(r,e,f),p(a,e,null),z(e,t),n=!0},p(r,f){const s={};f&1&&(s.scale=r[0]),a.$set(s)},i(r){n||(c(a.$$.fragment,r),n=!0)},o(r){u(a.$$.fragment,r),n=!1},d(r){r&&_(e),g(a)}}}function ka($){let e,a,t,n,r,f,s,l,o,d,v,K,S,I,N=H(he),D=[];for(let C=0;Cu(D[C],1,1,()=>{D[C]=null});return K=ct($[4][0]),{c(){e=w("div"),a=w("label"),t=w("input"),n=G("Individual scale"),r=b(),f=w("label"),s=w("input"),l=G("Shared scale"),o=b(),d=w("div");for(let C=0;Co.x,y:o=>o.y},n=Oe(ie(he),t);he.sort((o,d)=>d[d.length-1].y-o[o.length-1].y);let r="individual";const f=[[]];function s(){r=this.__value,a(0,r)}function l(){r=this.__value,a(0,r)}return[r,t,n,s,f,l]}class Ea extends M{constructor(e){super(),j(this,e,wa,ka,L,{})}}function at($,e,a){const t=$.slice();return t[5]=e[a],t[7]=a,t}function Da($){let e,a;return e=new Ft({}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Sa($){let e,a;return e=new B({props:{$$slots:{default:[Da]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&256&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function st($){let e,a,t,n;return a=new V({props:{padding:{top:1,right:1,bottom:1,left:1},x:"key",z:Ka,zScale:Re(),zRange:$[1],data:$[5].values,$$slots:{default:[Sa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),this.h()},l(r){e=E(r,"DIV",{class:!0,style:!0,"data-month":!0});var f=x(e);m(a.$$.fragment,f),t=y(f),f.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-1lqvxpk"),k(e,"style","width:calc("+100/$[2].length+"% - "+$t+"px);"+($[7]===0?`margin-right:${$t*2}px`:"")),k(e,"data-month",$[0][+$[5].key+1])},m(r,f){h(r,e,f),p(a,e,null),z(e,t),n=!0},p(r,f){const s={};f&256&&(s.$$scope={dirty:f,ctx:r}),a.$set(s)},i(r){n||(c(a.$$.fragment,r),n=!0)},o(r){u(a.$$.fragment,r),n=!1},d(r){r&&_(e),g(a)}}}function xa($){let e,a,t=H($[2]),n=[];for(let f=0;fu(n[f],1,1,()=>{n[f]=null});return{c(){for(let f=0;f$.values.length;function Ca($){const e=["January","February","March","April","May","June","July","August","September","October","November","December"],a=vr.map(f=>(f.date=new Date(f.timestring),f)),t=["#fff5cc","#ffeba9","#ffe182","#ffd754","#ffcc00"],r=Xt().key(f=>f.date.getUTCMonth()).key(f=>f.timestring.split("T")[0]).entries(a).sort((f,s)=>f.key-s.key);return[e,t,r]}class Ia extends M{constructor(e){super(),j(this,e,Ca,xa,L,{})}}function za($){let e,a,t,n,r,f;return e=new R({props:{ticks:[0,4,8,12,16,20,24].map(Ba),format:$[2]}}),t=new W({}),r=new vt({props:{r:Va,fill:"rgba(255, 204, 0, 0.75)"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment)},l(s){m(e.$$.fragment,s),a=y(s),m(t.$$.fragment,s),n=y(s),m(r.$$.fragment,s)},m(s,l){p(e,s,l),h(s,a,l),p(t,s,l),h(s,n,l),p(r,s,l),f=!0},p:P,i(s){f||(c(e.$$.fragment,s),c(t.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(e.$$.fragment,s),u(t.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(a),_(n)),g(e,s),g(t,s),g(r,s)}}}function Pa($){let e,a;return e=new B({props:{$$slots:{default:[za]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&64&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ta($){let e,a,t;return a=new V({props:{padding:{top:0,right:15,bottom:20,left:75},x:Kt,y:Ct,xDomain:[0,24*60*60],yDomain:$[1],xScale:br(),yScale:Q().paddingInner(.05).round(!0),data:$[0],$$slots:{default:[Pa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&64&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Kt="seconds",Ct="day",Va=4,Ba=$=>$*60*60;function La($){const e=yr.map(s=>{const l=s.timestring.split("T"),o=l[1].replace("Z","").split(":").map(d=>+d);return s[Kt]=o[0]*60*60+o[1]*60+o[2],s[Ct]=l[0],s}),a=Oe(e,{x:s=>s.timestring}),t=a.x[0].toString().split("T")[0].split("-").map(s=>+s),n=a.x[1].toString().split("T")[0].split("-").map(s=>+s),r=Ht.range(new Date(Date.UTC(t[0],t[1]-1,t[2])),new Date(Date.UTC(n[0],n[1]-1,n[2]+1))).map(s=>s.toISOString().split("T")[0]).sort();return[e,r,s=>`${Math.floor(s/60/60)}:00`]}class Ma extends M{constructor(e){super(),j(this,e,La,Ta,L,{})}}function ja($){let e,a,t,n;return e=new nr({}),t=new ar({}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Aa($){let e,a;return e=new B({props:{$$slots:{default:[ja]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&4&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Na($){let e,a,t;return a=new V({props:{padding:{top:30,right:0,bottom:7,left:0},x:$[0],xDomain:[0,10],xRange:Oa,data:Ke,$$slots:{default:[Aa]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&4&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ra="name",Oa=({height:$})=>[0,$/2];function qa($){const e=["fastball","change","slider","cutter","curve"],a=Object.keys(Ke[0]).filter(t=>t!==Ra);return Ke.forEach(t=>{a.forEach(n=>{t[n]=+t[n]})}),[e]}class Ua extends M{constructor(e){super(),j(this,e,qa,Na,L,{})}}function Wa($){let e,a;return e=new yt({props:{idKey:Ga,valueKey:Be,fill:"#ff00cc",stroke:"#9f0080",textColor:"#61004e",textStroke:"#ffdbf8",textStrokeWidth:1}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ya($){let e,a;return e=new Y({props:{$$slots:{default:[Wa]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ja($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:30},data:bt,$$slots:{default:[Ya]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Ga="fruit",Be="value";function Xa($){return bt.forEach(e=>{e[Be]=+e[Be]}),[]}class Fa extends M{constructor(e){super(),j(this,e,Xa,Ja,L,{})}}const Ha=[{name:"Eve",parent:""},{name:"Cain",parent:"Eve"},{name:"Seth",parent:"Eve"},{name:"Enos",parent:"Seth"},{name:"Noam",parent:"Seth"},{name:"Abel",parent:"Eve"},{name:"Awan",parent:"Eve"},{name:"Enoch",parent:"Awan"},{name:"Azura",parent:"Eve"}];function Qa($){let e,a;return e=new yt({props:{idKey:ts,parentKey:rs,spacing:5,sortBy:ns,labelVisibilityThreshold:as,stroke:"#00bbff"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Za($){let e,a;return e=new Y({props:{$$slots:{default:[Qa]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function es($){let e,a,t;return a=new V({props:{padding:{top:0,bottom:20,left:30},data:Ha,$$slots:{default:[Za]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const ts="name",rs="parent",ns=($,e)=>e.depth-$.depth,as=$=>!1;class ss extends M{constructor(e){super(),j(this,e,null,es,L,{})}}function $s($){let e,a;return e=new $r({props:{colorNodes:os,colorLinks:cs}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function fs($){let e,a;return e=new B({props:{$$slots:{default:[$s]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ls($){let e,a,t;return a=new V({props:{data:sr,$$slots:{default:[fs]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&1&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const os=$=>"#00bbff",cs=$=>"#00bbff35";class us extends M{constructor(e){super(),j(this,e,null,ls,L,{})}}function is($){let e,a,t,n,r,f,s,l;return e=new R({props:{ticks:hs}}),t=new W({props:{ticks:4}}),r=new ce({props:{stroke:"#00e047"}}),s=new ue({props:{fill:"#00e04710"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p:P,i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function ms($){let e,a;return e=new B({props:{$$slots:{default:[is]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&16&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ps($){let e,a,t,n;return e=new ce({props:{stroke:"#00e047"}}),t=new ue({props:{fill:"#00e04710"}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p:P,i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function gs($){let e,a,t,n;function r(l){$[2](l)}function f(l){$[3](l)}let s={};return $[0][0]!==void 0&&(s.min=$[0][0]),$[0][1]!==void 0&&(s.max=$[0][1]),e=new ht({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0][0],le(()=>a=!1)),!t&&o&1&&(t=!0,d.max=l[0][1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function _s($){let e,a,t,n;return e=new B({props:{$$slots:{default:[ps]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[gs]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&16&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&17&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function ds($){let e,a,t,n,r,f;return a=new V({props:{padding:{right:10,bottom:20,left:25},x:ft,y:ve,yDomain:[0,null],data:$[1],$$slots:{default:[ms]},$$scope:{ctx:$}}}),r=new V({props:{padding:{top:5},x:ft,y:ve,yDomain:[0,null],data:q,$$slots:{default:[_s]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),t=b(),n=w("div"),i(r.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var l=x(e);m(a.$$.fragment,l),l.forEach(_),t=y(s),n=E(s,"DIV",{class:!0});var o=x(n);m(r.$$.fragment,o),o.forEach(_),this.h()},h(){k(e,"class","brushed-chart-container svelte-12vpq9d"),k(n,"class","brush-container svelte-12vpq9d")},m(s,l){h(s,e,l),p(a,e,null),h(s,t,l),h(s,n,l),p(r,n,null),f=!0},p(s,[l]){const o={};l&2&&(o.data=s[1]),l&16&&(o.$$scope={dirty:l,ctx:s}),a.$set(o);const d={};l&17&&(d.$$scope={dirty:l,ctx:s}),r.$set(d)},i(s){f||(c(a.$$.fragment,s),c(r.$$.fragment,s),f=!0)},o(s){u(a.$$.fragment,s),u(r.$$.fragment,s),f=!1},d(s){s&&(_(e),_(t),_(n)),g(a),g(r)}}}const ft="myX",ve="myY",hs=$=>{const e=$.filter(a=>a%1===0);return e.length>7?e.filter((a,t)=>t%2===0):e};function vs($,e,a){let t=[null,null];q.forEach(s=>{s[ve]=+s[ve]});let n;function r(s){$.$$.not_equal(t[0],s)&&(t[0]=s,a(0,t))}function f(s){$.$$.not_equal(t[1],s)&&(t[1]=s,a(0,t))}return $.$$.update=()=>{$.$$.dirty&3&&(a(1,n=q.slice((t[0]||0)*q.length,(t[1]||1)*q.length)),n.length<2&&a(1,n=q.slice(t[0]*q.length,t[0]*q.length+2)))},[t,n,r,f]}class bs extends M{constructor(e){super(),j(this,e,vs,ds,L,{})}}function ys($){let e,a,t,n,r,f,s,l;return e=new R({props:{ticks:xs}}),t=new W({props:{ticks:2}}),r=new ce({props:{stroke:$[5]}}),s=new ue({props:{fill:`${$[5]}10`}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment),n=b(),i(r.$$.fragment),f=b(),i(s.$$.fragment)},l(o){m(e.$$.fragment,o),a=y(o),m(t.$$.fragment,o),n=y(o),m(r.$$.fragment,o),f=y(o),m(s.$$.fragment,o)},m(o,d){p(e,o,d),h(o,a,d),p(t,o,d),h(o,n,d),p(r,o,d),h(o,f,d),p(s,o,d),l=!0},p(o,d){const v={};d&32&&(v.stroke=o[5]),r.$set(v);const K={};d&32&&(K.fill=`${o[5]}10`),s.$set(K)},i(o){l||(c(e.$$.fragment,o),c(t.$$.fragment,o),c(r.$$.fragment,o),c(s.$$.fragment,o),l=!0)},o(o){u(e.$$.fragment,o),u(t.$$.fragment,o),u(r.$$.fragment,o),u(s.$$.fragment,o),l=!1},d(o){o&&(_(a),_(n),_(f)),g(e,o),g(t,o),g(r,o),g(s,o)}}}function ks($){let e,a;return e=new B({props:{$$slots:{default:[ys]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&544&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function ws($){let e,a,t,n;return e=new ce({props:{stroke:$[5]}}),t=new ue({props:{fill:`${$[5]}10`}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&32&&(s.stroke=r[5]),e.$set(s);const l={};f&32&&(l.fill=`${r[5]}10`),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Es($){let e,a,t,n;function r(l){$[7](l)}function f(l){$[8](l)}let s={};return $[0]!==void 0&&(s.min=$[0]),$[1]!==void 0&&(s.max=$[1]),e=new ht({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0],le(()=>a=!1)),!t&&o&2&&(t=!0,d.max=l[1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function Ds($){let e,a,t,n;return e=new B({props:{$$slots:{default:[ws]},$$scope:{ctx:$}}}),t=new Y({props:{$$slots:{default:[Es]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&544&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&515&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Ss($){let e,a,t,n,r,f,s;return t=new V({props:{padding:{right:10,bottom:20,left:25},x:$[2],y:$[3],yDomain:[0,null],data:$[6],$$slots:{default:[ks]},$$scope:{ctx:$}}}),f=new V({props:{padding:{top:5},x:$[2],y:$[3],yDomain:[0,null],data:$[4],$$slots:{default:[Ds]},$$scope:{ctx:$}}}),{c(){e=w("div"),a=w("div"),i(t.$$.fragment),n=b(),r=w("div"),i(f.$$.fragment),this.h()},l(l){e=E(l,"DIV",{class:!0});var o=x(e);a=E(o,"DIV",{class:!0});var d=x(a);m(t.$$.fragment,d),d.forEach(_),n=y(o),r=E(o,"DIV",{class:!0});var v=x(r);m(f.$$.fragment,v),v.forEach(_),o.forEach(_),this.h()},h(){k(a,"class","chart-container svelte-ypfvhs"),k(r,"class","brush-container svelte-ypfvhs"),k(e,"class","chart-wrapper svelte-ypfvhs")},m(l,o){h(l,e,o),z(e,a),p(t,a,null),z(e,n),z(e,r),p(f,r,null),s=!0},p(l,[o]){const d={};o&4&&(d.x=l[2]),o&8&&(d.y=l[3]),o&64&&(d.data=l[6]),o&544&&(d.$$scope={dirty:o,ctx:l}),t.$set(d);const v={};o&4&&(v.x=l[2]),o&8&&(v.y=l[3]),o&16&&(v.data=l[4]),o&547&&(v.$$scope={dirty:o,ctx:l}),f.$set(v)},i(l){s||(c(t.$$.fragment,l),c(f.$$.fragment,l),s=!0)},o(l){u(t.$$.fragment,l),u(f.$$.fragment,l),s=!1},d(l){l&&_(e),g(t),g(f)}}}const xs=$=>{const e=$.filter(a=>a%1===0);return e.length>7?e.filter((a,t)=>t%2===0):e};function Ks($,e,a){let{min:t=null}=e,{max:n=null}=e,{xKey:r="x"}=e,{yKey:f="y"}=e,{data:s=[]}=e,{stroke:l="#00e047"}=e,o;function d(K){t=K,a(0,t)}function v(K){n=K,a(1,n)}return $.$$set=K=>{"min"in K&&a(0,t=K.min),"max"in K&&a(1,n=K.max),"xKey"in K&&a(2,r=K.xKey),"yKey"in K&&a(3,f=K.yKey),"data"in K&&a(4,s=K.data),"stroke"in K&&a(5,l=K.stroke)},$.$$.update=()=>{$.$$.dirty&83&&(a(6,o=s.slice((t||0)*s.length,(n||1)*s.length)),o.length<2&&a(6,o=s.slice(t*s.length,t*s.length+2)))},[t,n,r,f,s,l,o,d,v]}class Cs extends M{constructor(e){super(),j(this,e,Ks,Ss,L,{min:0,max:1,xKey:2,yKey:3,data:4,stroke:5})}}function lt($,e,a){const t=$.slice();return t[5]=e[a],t[7]=a,t}function ot($){let e,a,t,n;function r(l){$[3](l)}function f(l){$[4](l)}let s={data:$[5],xKey:zs,yKey:Le,stroke:$[2][$[7]]};return $[0][0]!==void 0&&(s.min=$[0][0]),$[0][1]!==void 0&&(s.max=$[0][1]),e=new Cs({props:s}),fe.push(()=>oe(e,"min",r)),fe.push(()=>oe(e,"max",f)),{c(){i(e.$$.fragment)},l(l){m(e.$$.fragment,l)},m(l,o){p(e,l,o),n=!0},p(l,o){const d={};!a&&o&1&&(a=!0,d.min=l[0][0],le(()=>a=!1)),!t&&o&1&&(t=!0,d.max=l[0][1],le(()=>t=!1)),e.$set(d)},i(l){n||(c(e.$$.fragment,l),n=!0)},o(l){u(e.$$.fragment,l),n=!1},d(l){g(e,l)}}}function Is($){let e,a,t=H($[1]),n=[];for(let f=0;fu(n[f],1,1,()=>{n[f]=null});return{c(){e=w("div");for(let f=0;f{l.forEach(o=>{o[Le]=+o[Le]})});const r=["#00e047","#00bbff","#ff00cc","#ffcc00"];function f(l){$.$$.not_equal(t[0],l)&&(t[0]=l,a(0,t))}function s(l){$.$$.not_equal(t[1],l)&&(t[1]=l,a(0,t))}return[t,n,r,f,s]}class Ts extends M{constructor(e){super(),j(this,e,Ps,Is,L,{})}}function Vs($){let e,a,t,n;return e=new R({props:{baseline:!0,format:$[2],tickMarks:!0}}),t=new lr({props:{r:$[5]<400?ge/1.6:ge,spacing:1,getTitle:$[3]}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&32&&(s.r=r[5]<400?ge/1.6:ge),t.$set(s)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Bs($){let e,a;return e=new kt({props:{align:"end",shape:"circle",lookup:{USA:"U.S."}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Ls($){let e,a,t,n;return e=new B({props:{$$slots:{default:[Vs]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Bs]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&96&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&64&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Ms($){let e,a,t;return a=new V({props:{padding:{bottom:15},x:Me,z:de,zScale:Z(),zRange:$[0],data:$[1],$$slots:{default:[Ls,({width:n})=>({5:n}),({width:n})=>n?32:0]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&96&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const Me="Weight_in_lbs",de="Origin",De="Name",ge=4;function js($){const e=new Set,a=["#ccc","#fc0","#000"],t=fr.map(f=>(e.add(f[de]),{[De]:f[De],[Me]:+f[Me],[de]:f[de]})),n=te(",");return[a,t,n,f=>f.data[De]]}class As extends M{constructor(e){super(),j(this,e,js,Ms,L,{})}}function Ns($){let e,a,t,n;return e=new R({}),t=new cr({props:{r:$[3]<400?_e/1.25:_e,strokeWidth:1,xStrength:.95,yStrength:.075,getTitle:$[2]}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&8&&(s.r=r[3]<400?_e/1.25:_e),t.$set(s)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function Rs($){let e,a;return e=new kt({props:{shape:"circle"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p:P,i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Os($){let e,a,t,n;return e=new B({props:{$$slots:{default:[Ns]},$$scope:{ctx:$}}}),t=new Y({props:{pointerEvents:!1,$$slots:{default:[Rs]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment),a=b(),i(t.$$.fragment)},l(r){m(e.$$.fragment,r),a=y(r),m(t.$$.fragment,r)},m(r,f){p(e,r,f),h(r,a,f),p(t,r,f),n=!0},p(r,f){const s={};f&24&&(s.$$scope={dirty:f,ctx:r}),e.$set(s);const l={};f&16&&(l.$$scope={dirty:f,ctx:r}),t.$set(l)},i(r){n||(c(e.$$.fragment,r),c(t.$$.fragment,r),n=!0)},o(r){u(e.$$.fragment,r),u(t.$$.fragment,r),n=!1},d(r){r&&_(a),g(e,r),g(t,r)}}}function qs($){let e,a,t;return a=new V({props:{padding:{bottom:15},x:je,z:Ae,zScale:Z(),zRange:$[0],data:$[1],$$slots:{default:[Os,({width:n})=>({3:n}),({width:n})=>n?8:0]},$$scope:{ctx:$}}}),{c(){e=w("div"),i(a.$$.fragment),this.h()},l(n){e=E(n,"DIV",{class:!0});var r=x(e);m(a.$$.fragment,r),r.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(n,r){h(n,e,r),p(a,e,null),t=!0},p(n,[r]){const f={};r&24&&(f.$$scope={dirty:r,ctx:n}),a.$set(f)},i(n){t||(c(a.$$.fragment,n),t=!0)},o(n){u(a.$$.fragment,n),t=!1},d(n){n&&_(e),g(a)}}}const je="date_of_birth",Ae="gender",Se="name",_e=6;function Us($){const e=["#fc0","#000"],a=or.map(n=>({[Se]:n[Se],[Ae]:n[Ae],[je]:+n[je].split("-")[0]}));return[e,a,n=>n[Se]]}class Ws extends M{constructor(e){super(),j(this,e,Us,qs,L,{})}}function Ys($){let e,a;return e=new ir({props:{manyBodyStrength:Qs,xStrength:Zs,groupBy:JSON.parse($[0]),nodeStroke:"#000"}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&1&&(r.groupBy=JSON.parse(t[0])),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Js($){let e,a;return e=new B({props:{$$slots:{default:[Ys]},$$scope:{ctx:$}}}),{c(){i(e.$$.fragment)},l(t){m(e.$$.fragment,t)},m(t,n){p(e,t,n),a=!0},p(t,n){const r={};n&33&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){u(e.$$.fragment,t),a=!1},d(t){g(e,t)}}}function Gs($){let e,a,t,n,r,f,s,l,o,d,v,K,S,I,N;return v=new V({props:{data:ur,x:Xs,r:Fs,z:Hs,xScale:Q(),rRange:[3,12],zScale:Z(),zRange:$[1],$$slots:{default:[Js]},$$scope:{ctx:$}}}),S=ct($[3][0]),{c(){e=w("div"),a=w("label"),t=w("input"),n=G("Group by category"),r=b(),f=w("label"),s=w("input"),l=G("Clump together"),o=b(),d=w("div"),i(v.$$.fragment),this.h()},l(D){e=E(D,"DIV",{class:!0});var O=x(e);a=E(O,"LABEL",{class:!0});var C=x(a);t=E(C,"INPUT",{type:!0,class:!0}),n=X(C,"Group by category"),C.forEach(_),r=y(O),f=E(O,"LABEL",{class:!0});var A=x(f);s=E(A,"INPUT",{type:!0,class:!0}),l=X(A,"Clump together"),A.forEach(_),O.forEach(_),o=y(D),d=E(D,"DIV",{class:!0});var T=x(d);m(v.$$.fragment,T),T.forEach(_),this.h()},h(){k(t,"type","radio"),t.__value="true",se(t,t.__value),k(t,"class","svelte-11z1nx4"),k(a,"class","svelte-11z1nx4"),k(s,"type","radio"),s.__value="false",se(s,s.__value),k(s,"class","svelte-11z1nx4"),k(f,"class","svelte-11z1nx4"),k(e,"class","input-container"),k(d,"class","chart-container svelte-11z1nx4"),S.p(t,s)},m(D,O){h(D,e,O),z(e,a),z(a,t),t.checked=t.__value===$[0],z(a,n),z(e,r),z(e,f),z(f,s),s.checked=s.__value===$[0],z(f,l),h(D,o,O),h(D,d,O),p(v,d,null),K=!0,I||(N=[$e(t,"change",$[2]),$e(s,"change",$[4])],I=!0)},p(D,[O]){O&1&&(t.checked=t.__value===D[0]),O&1&&(s.checked=s.__value===D[0]);const C={};O&33&&(C.$$scope={dirty:O,ctx:D}),v.$set(C)},i(D){K||(c(v.$$.fragment,D),K=!0)},o(D){u(v.$$.fragment,D),K=!1},d(D){D&&(_(e),_(o),_(d)),g(v),S.r(),I=!1,Ne(N)}}}const Xs="category",Fs="value",Hs="category";let Qs=3,Zs=.1;function e$($,e,a){let t="true";const n=["#f0c","#0cf","#fc0"],r=[[]];function f(){t=this.__value,a(0,t)}function s(){t=this.__value,a(0,t)}return[t,n,f,r,s]}class t$ extends M{constructor(e){super(),j(this,e,e$,Gs,L,{})}}const l$=[{replPath:"ad32f9f301484d0cace82272126e9d09?version=3.46.2",title:"Line + area",slug:"Line",component:Pr},{replPath:"71cde05fa1e94583be57046207f72c02?version=3.46.2",title:"WebGL Scatter (svg axes, quadtree hover)",slug:"ScatterWebgl",component:sa},{replPath:"14b8f866cc414a9ebdfbb5eaabf66ae2?version=3.46.2",title:"Map (svg, tooltip, pre-projected)",slug:"MapSvg",component:Hr},{replPath:"a8135fcccf3d42e68b1f29be00fc72c6?version=3.46.2",title:"Multilayer map (canvas + svg)",slug:"MapLayered",component:Mn},{replPath:"666164c95fb9441188aab2622a4e8547?version=3.46.2",title:"Column annotated",slug:"Column",component:$n},{replPath:"f38656e90d0644cfb460206005c492e5?version=3.46.2",title:"Stacked column",slug:"ColumnStacked",component:vn},{replPath:"91fe94cac36c4829903238382563bc81?version=3.46.2",title:"Bar",slug:"Bar",component:qn},{replPath:"8d2e9a75cb0e4bf7abb86cb65915a93c?version=3.46.2",title:"Stacked bar",slug:"BarStacked",component:Xn},{replPath:"cc8d7b6ace40433da8d694f2877258a8?version=3.46.2",title:"Multiline (html labels + quadtree tooltip)",slug:"MultiLine",component:Sn},{replPath:"e6ae831e723646c8a01a039b3eeb33cb?version=3.46.2",title:"Stacked area",slug:"AreaStacked",component:mn},{replPath:"d9a9c151058d4e3eb74a4eed60eabb54?version=3.46.2",title:"Scatter (svg + canvas + voronoi)",slug:"Scatter",component:Or},{replPath:"f9f33add37d440f78b24092c7ba8154d?version=3.46.2",title:"Cleveland dot plot",slug:"ClevelandDotPlot",component:ca},{replPath:"fd96397862ff43e09fc8c83bfd818642?version=3.46.2",title:"Calendar (one cake per month)",slug:"Calendar",component:Ia},{replPath:"2c5131bd0b694d54a6211b40afbd3c09?version=3.46.2",title:"Time of day plot",slug:"Timeplot",component:Ma},{replPath:"58a15bea15bd46ee8364409c15045a8b?version=3.46.2",title:"Histogram (variable bins)",slug:"Histogram",component:_a},{replPath:"1c3297c4347248fc885b215f4907f8b2?version=3.46.2",title:"Small multiples (animated domain transition)",slug:"SmallMultiples",component:Ea},{replPath:"cb6bb95b7d1549f7be8d8fc7258ea1da?version=3.46.2",title:"Radar chart",slug:"Radar",component:Ua},{replPath:"5d3d22482b3d400d96c88d7de7ff45b1?version=3.46.2",title:"Circle pack",slug:"CirclePack",component:Fa},{replPath:"8ecba3df31e24658bf039a1a4d5daedc?version=3.46.2",title:"Nested circle pack",slug:"CirclePackNested",component:ss},{replPath:"0f7f35ffe2f14a25860772897f7a0b5c?version=3.46.2",title:"Sankey",slug:"Sankey",component:us},{replPath:"4e7a8affd4724d03b33493c85e50471c?version=3.46.2",title:"Brush",slug:"Brush",component:bs},{replPath:"0eaf387a0a564971865fb6176f959940?version=3.46.2",title:"Synced brush",slug:"SyncedBrush",component:Ts},{replPath:"132d2c81c3f841a0be0162443b008a92?version=3.46.2",title:"Beeswarm",slug:"Beeswarm",component:As},{replPath:"9d0e23f494f645b4a9623c46474462f6?version=3.46.2",title:"Beeswarm, force layout",slug:"BeeswarmForce",component:Ws},{replPath:"1879eb5e27f74784a69b65a11844f373?version=3.46.2",title:"Circle pack, force layout",slug:"CirclePackForce",component:t$}];export{l$ as e}; diff --git a/docs/_app/immutable/chunks/_examples_ssr.B2SUOK7Z.js b/docs/_app/immutable/chunks/_examples_ssr.B2SUOK7Z.js deleted file mode 100644 index 5a04adbe..00000000 --- a/docs/_app/immutable/chunks/_examples_ssr.B2SUOK7Z.js +++ /dev/null @@ -1 +0,0 @@ -import{s as M,e as D,c as x,b as S,f as _,u as k,i as h,a as v,g as b,n as P,A as q,h as L,t as oe,d as ce,U as ie,y as me,j as it,r as Qe,a4 as mt,k as Le,a5 as pt,v as Se,E as Me,B as Z,C as ee}from"./scheduler.P37s_KnH.js";import{S as V,i as T,c,b as i,m,t as u,a as o,d as p,g as Ee,e as Ke,f as te}from"./index.GooPGtyi.js";import{L as R,I as N,J as j,K as re,M as se,N as Ie,O as Ze,P as et,Q as tt,R as G,S as ae,T as gt,U as nt,V as _t,W as dt,X as ht,Y as $e,Z as fe,_ as rt,$ as H,a0 as Pe,w as at,f as le,a1 as vt,u as bt,a2 as O,a3 as yt,a4 as kt,a5 as wt,a6 as Ve,a7 as Dt,a8 as xt,a9 as St,aa as Et,ab as Kt,ac as It,ad as Pt,ae as Ct,af as Rt,ag as zt,ah as Ce,ai as Lt,aj as Mt,o as Vt,ak as st}from"./Brush.html.I1clC5X0.js";import{S as Y,A as W,a as X,b as $t,c as Tt,C as jt}from"./ClevelandDotPlot.percent-range.html.BOdAxcUZ.js";import{u as Te,g as At,d as ye,e as Bt,c as qt,b as Nt,t as Yt,a as je,f as Wt,p as pe,h as Xt,i as Ot,j as Jt,k as Ut,l as Gt,m as Ht}from"./pointsFour.fzEDaS5G.js";import{e as ne}from"./each.zMdpk9aP.js";function Ft(f){let e,r,n,a;return e=new W({}),n=new X({props:{ticks:4}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Qt(f){let e,r,n,a;return e=new re({}),n=new se({}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Zt(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Ft]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Qt]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&2&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&2&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function en(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:8,right:10,bottom:20,left:25},x:tn,y:f[0],yDomain:[0,null],data:N,$$slots:{default:[Zt]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&2&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const tn="myX",be="myY";function nn(f){return N.forEach(r=>{r[be]=+r[be]}),[r=>r[be]]}class rn extends V{constructor(e){super(),T(this,e,nn,en,M,{})}}function an(f){let e,r,n,a,t,s;return e=new W({}),n=new X({}),t=new $t({props:{r:ln,fill:un,stroke:on,strokeWidth:cn}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:P,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function sn(f){let e,r;return e=new j({props:{$$slots:{default:[an]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function $n(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:10,right:5,bottom:20,left:25},x:fn,y:ke,xPadding:[ue,ue],yPadding:[ue,ue],data:N,$$slots:{default:[sn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&1&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const fn="myX",ke="myY",ln=4.5,ue=2.5,un="#fff",on="#0cf",cn=1.5;function mn(f){return N.forEach(e=>{e[ke]=+e[ke]}),[]}class pn extends V{constructor(e){super(),T(this,e,mn,$n,M,{})}}function gn(f){let e,r;return e=new tt({props:{fixedAspectRatio:Re,projection:f[2]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function _n(f){let e,r;return e=new Y({props:{fixedAspectRatio:Re,$$slots:{default:[gn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&64&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function dn(f){let e,r,n;return r=new R({props:{ssr:!0,position:"absolute",data:f[1],z:f[5],zScale:Ie(),zRange:f[4],flatData:f[3],$$slots:{default:[_n]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0,style:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","map-container svelte-lie9rj"),q(e,"padding-bottom",100/Re+"%")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&64&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const hn="myValue",vn="name",bn="name",Re=2.63;function yn(f){const e=new Map;Ze.forEach($=>{e.set($[vn],$[hn])});const r=et(Te,Te.objects.states),n=At,a=r.features.map($=>$.properties);return[e,r,n,a,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],$=>e.get($[bn])]}class kn extends V{constructor(e){super(),T(this,e,yn,dn,M,{})}}function wn(f){let e,r;return e=new nt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Dn(f){let e,r,n,a,t,s;return e=new W({props:{gridlines:!1}}),n=new X({props:{ticks:4,gridlines:!1}}),t=new _t({props:{annotations:f[0]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:P,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function xn(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[wn]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Dn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&2&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&2&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sn(f){let e,r;return e=new dt({props:{annotations:f[0]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function En(f){let e,r;return e=new ht({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Kn(f){let e,r;return e=new gt({props:{$$slots:{defs:[En],default:[Sn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&2&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function In(f){let e,r,n,a,t;return r=new R({props:{ssr:!0,percentRange:!0,position:"absolute",padding:{top:0,right:0,bottom:20,left:20},x:Ae,y:ge,xScale:G().paddingInner(.028).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:ae,$$slots:{default:[xn]},$$scope:{ctx:f}}}),a=new R({props:{position:"absolute",padding:{top:0,right:0,bottom:20,left:20},x:Ae,y:ge,xScale:G().paddingInner(.028).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:ae,$$slots:{default:[Kn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-93joy6")},m(s,$){h(s,e,$),m(r,e,null),L(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&2&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&2&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const Ae="year",ge="value";function Pn(f){const e=[{text:"Example text...",top:"18%",left:"30%",arrows:[{clockwise:!1,source:{anchor:"left-bottom",dx:-2,dy:-7},target:{x:"28%",y:"75%"}},{source:{anchor:"right-bottom",dy:-7,dx:5},target:{x:"68%",y:"48%"}}]}];return ae.forEach(r=>{r[ge]=+r[ge]}),[e]}class Cn extends V{constructor(e){super(),T(this,e,Pn,In,M,{})}}function Rn(f){let e,r,n,a;return e=new W({props:{format:f[4],tickMarks:!0}}),n=new X({props:{format:f[5]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function zn(f){let e,r;return e=new vt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Ln(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Rn]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[zn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&512&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&512&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Mn(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:17},x:f[6],y:f[0],z:Vn,zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[Ln]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&512&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const Q="month",Vn="key";function Tn(f){const e=[0,1],r=rt("%Y-%m-%d"),n=Object.keys(H[0]).filter(d=>d!==Q),a=["#ff00cc","#ff7ac7","#ffb3c0","#ffe4b8"];H.forEach(d=>{d[Q]=typeof d[Q]=="string"?r(d[Q]):d[Q],n.forEach(y=>{d[y]=+d[y]})});const s=Pe().keys(n)(H),$=at("%b. %-d");return[e,n,a,s,$,d=>le("~s")(d),d=>d.data[Q]]}class jn extends V{constructor(e){super(),T(this,e,Tn,Mn,M,{})}}function An(f){let e,r,n,a;return e=new W({props:{gridlines:!1}}),n=new X({props:{ticks:4,gridlines:!1,format:f[4]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Bn(f){let e,r;return e=new yt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function qn(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[An]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Bn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&128&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&128&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Nn(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:20},x:f[5],y:f[0],z:Yn,xScale:G().paddingInner(.028).round(!0),xDomain:bt(O,we),zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[qn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const we="year",Yn="key";function Wn(f){const e=[0,1],r=Object.keys(O[0]).filter(l=>l!==we),n=["#00e047","#7ceb68","#b7f486","#ecfda5"];O.forEach(l=>{r.forEach(g=>{l[g]=+l[g]})});const t=Pe().keys(r)(O);return[e,r,n,t,l=>le("~s")(l),l=>l.data[we]]}class Xn extends V{constructor(e){super(),T(this,e,Wn,Nn,M,{})}}function On(f){let e,r,n,a;return e=new W({props:{gridlines:!1,ticks:H.map(f[4]).sort(Fn),format:f[2],snapTicks:!0,tickMarks:!0}}),n=new X({props:{baseline:!0,format:f[3]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Jn(f){let e,r;return e=new kt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Un(f){let e,r,n,a;return e=new wt({}),n=new Tt({props:{formatTitle:f[2],dataset:H}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Gn(f){let e,r,n,a,t,s;return e=new j({props:{$$slots:{default:[On]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Jn]},$$scope:{ctx:f}}}),t=new j({props:{$$slots:{default:[Un]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p($,l){const g={};l&128&&(g.$$scope={dirty:l,ctx:$}),e.$set(g);const d={};l&128&&(d.$$scope={dirty:l,ctx:$}),n.$set(d);const y={};l&128&&(y.$$scope={dirty:l,ctx:$}),t.$set(y)},i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function Hn(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:7,right:10,bottom:20,left:25},x:J,y:ft,z:De,zScale:$e(),zRange:f[0],flatData:fe(f[1],"values"),yDomain:[0,null],data:f[1],$$slots:{default:[Gn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const J="month",ft="value",De="fruit",Fn=(f,e)=>f-e;function Qn(f){const e=Object.keys(H[0]).filter(l=>l!==J),r=["#ffe4b8","#ffb3c0","#ff7ac7","#ff00cc"],n=rt("%Y-%m-%d"),a=e.map(l=>({[De]:l,values:H.map(g=>(g[J]=typeof g[J]=="string"?n(g[J]):g[J],{[ft]:+g[l],[J]:g[J],[De]:l}))})),t=at("%b. %e");return[r,a,t,l=>le("~s")(l),l=>l[J]]}class Zn extends V{constructor(e){super(),T(this,e,Qn,Hn,M,{})}}function er(f){let e,r;return e=new Et({props:{projection:f[1],fill:"#fff"}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function tr(f){let e,r;return e=new xt({props:{$$slots:{default:[er]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function nr(f){let e,r;return e=new tt({props:{fixedAspectRatio:he,projection:f[1],features:f[0].features.slice(40,50)}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function rr(f){let e,r;return e=new Kt({props:{fixedAspectRatio:he,projection:f[1],features:f[3],getCoordinates:f[6],getLabel:f[7]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function ar(f){let e,r,n,a;return e=new Y({props:{fixedAspectRatio:he,$$slots:{default:[nr]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[rr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&1024&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&1024&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function sr(f){let e,r,n,a,t;return r=new R({props:{position:"absolute",data:f[0],flatData:f[4],$$slots:{default:[tr]},$$scope:{ctx:f}}}),a=new R({props:{position:"absolute",ssr:!0,data:f[0],z:f[8],zScale:Ie(),zRange:f[5],flatData:f[4],$$slots:{default:[ar]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0,style:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","map-container svelte-1enkenv"),q(e,"aspect-ratio",he)},m(s,$){h(s,e,$),m(r,e,null),L(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&1024&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&1024&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const $r="myValue",he=2.63,fr="name",lr="name",ur="center",Be="abbr";function or(f){const e=et(Ve,Ve.objects.collection),r=St,n=new Map;Ze.forEach(y=>{n.set(y[fr],y[$r])});const a=["VT","MD","NJ","RI","DC","DE","WV","MA","CT","NH"],t=Dt.filter(y=>!a.includes(y[Be])),s=e.features.map(y=>y.properties);return[e,r,n,t,s,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],y=>y[ur],y=>y[Be],y=>n.get(y[lr])]}class cr extends V{constructor(e){super(),T(this,e,or,sr,M,{})}}function ir(f){let e,r,n,a;return e=new W({props:{gridlines:!0,baseline:!0,snapTicks:!0}}),n=new X({props:{gridlines:!1,tickMarks:!0}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function mr(f){let e,r;return e=new It({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function pr(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[ir]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[mr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&1&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&1&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function gr(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:0,right:20,bottom:20,left:35},x:"value",y:"year",yScale:G().paddingInner(.05).round(!0),yDomain:["1979","1980","1981","1982","1983"],xDomain:[0,null],data:ae,$$slots:{default:[pr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&1&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}function _r(f){return ae.forEach(e=>{e.value=+e.value}),[]}class dr extends V{constructor(e){super(),T(this,e,_r,gr,M,{})}}function hr(f){let e,r,n,a;return e=new W({props:{baseline:!0,snapTicks:!0,format:f[4]}}),n=new X({props:{gridlines:!1}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function vr(f){let e,r;return e=new Pt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function br(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[hr]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[vr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&128&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&128&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function yr(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:35},y:f[5],x:f[0],z:kr,yScale:G().paddingInner(.05).round(!0),yDomain:["2016","2017","2018","2019"],zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[br]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const qe="year",kr="key";function wr(f){const e=[0,1],r=Object.keys(O[0]).filter(l=>l!==qe),n=["#00bbff","#8bcef6","#c4e2ed","#f7f6e3"];O.forEach(l=>{r.forEach(g=>{l[g]=+l[g]})});const t=Pe().keys(r)(O);return[e,r,n,t,l=>le("~s")(l),l=>l.data[qe]]}class Dr extends V{constructor(e){super(),T(this,e,wr,yr,M,{})}}function xr(f){let e,r,n,a;return e=new W({}),n=new X({props:{tickMarks:!1}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sr(f){let e,r;return e=new j({props:{$$slots:{default:[xr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&16&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Er(f){let e,r;return e=new Rt({props:{r:Rr}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Kr(f){let e;return{c(){e=D("div"),this.h()},l(r){e=x(r,"DIV",{class:!0,style:!0}),S(e).forEach(_),this.h()},h(){k(e,"class","circle svelte-va9vq4"),q(e,"top",f[2]+"px"),q(e,"left",f[1]+"px"),q(e,"display",f[3]?"block":"none")},m(r,n){h(r,e,n)},p(r,n){n&4&&q(e,"top",r[2]+"px"),n&2&&q(e,"left",r[1]+"px"),n&8&&q(e,"display",r[3]?"block":"none")},d(r){r&&_(e)}}}function Ir(f){let e,r;return e=new zt({props:{$$slots:{default:[Kr,({x:n,y:a,visible:t})=>({1:n,2:a,3:t}),({x:n,y:a,visible:t})=>(n?2:0)|(a?4:0)|(t?8:0)]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&30&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Pr(f){let e,r,n,a;return e=new Ct({props:{$$slots:{default:[Er]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Ir]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&16&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Cr(f){let e,r,n,a,t;return r=new R({props:{position:"absolute",ssr:!0,percentRange:!0,padding:f[0],x:Ne,y:_e,xPadding:[U,U],yPadding:[U,U],data:N,$$slots:{default:[Sr]},$$scope:{ctx:f}}}),a=new R({props:{position:"absolute",padding:f[0],x:Ne,y:_e,xPadding:[U,U],yPadding:[U,U],data:N,$$slots:{default:[Pr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-va9vq4")},m(s,$){h(s,e,$),m(r,e,null),L(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&16&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&16&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const Ne="myX",_e="myY",Rr=3,U=6;function zr(f){const e={top:5,right:5,bottom:20,left:25};return N.forEach(r=>{r[_e]=+r[_e]}),[e]}class Lr extends V{constructor(e){super(),T(this,e,zr,Cr,M,{})}}function Mr(f){let e,r,n,a,t,s;return e=new W({}),n=new X({props:{gridlines:!1}}),t=new jt({}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:P,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function Vr(f){let e,r;return e=new j({props:{$$slots:{default:[Mr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&4&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Tr(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:30},x:f[0],y:lt,yScale:G().paddingInner(.05).round(!0),xDomain:[0,null],xPadding:[2,0],zScale:$e(),zDomain:f[0],zRange:f[1],data:O,$$slots:{default:[Vr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&4&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const lt="year";function jr(f){const e=Object.keys(O[0]).filter(n=>n!==lt),r=["#f0c","#00bbff","#00e047","#ff7a33"];return O.forEach(n=>{e.forEach(a=>{n[a]=+n[a]})}),[e,r]}class Ar extends V{constructor(e){super(),T(this,e,jr,Tr,M,{})}}function Br(f){let e,r,n,a;return e=new W({props:{gridlines:!1,baseline:!0,ticks:f[2],format:f[7]}}),n=new X({props:{gridlines:!1,ticks:3}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&4&&($.ticks=t[2]),e.$set($)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function qr(f){let e,r;return e=new nt({props:{fill:"#fff",stroke:"#000",strokeWidth:1}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Nr(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Br]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[qr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&516&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&512&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Yr(f){let e,r,n,a,t,s,$,l,g,d,y,E;return g=new R({props:{ssr:!0,percentRange:!0,padding:{top:20,right:5,bottom:20,left:31},x:f[5],y:Wr,xDomain:f[1],xScale:G().paddingInner(0),yDomain:[0,null],data:f[3](ye),$$slots:{default:[Nr]},$$scope:{ctx:f}}}),{c(){e=D("div"),r=D("input"),n=v(),a=D("span"),t=oe(f[0]),s=oe(" bins"),$=v(),l=D("div"),c(g.$$.fragment),this.h()},l(w){e=x(w,"DIV",{class:!0,style:!0});var A=S(e);r=x(A,"INPUT",{style:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),n=b(A),a=x(A,"SPAN",{class:!0,style:!0});var B=S(a);t=ce(B,f[0]),s=ce(B," bins"),B.forEach(_),A.forEach(_),$=b(w),l=x(w,"DIV",{class:!0});var I=S(l);i(g.$$.fragment,I),I.forEach(_),this.h()},h(){q(r,"margin","0"),k(r,"type","range"),k(r,"min","4"),k(r,"max","100"),k(r,"step","4"),k(r,"class","svelte-1jk7v2q"),k(a,"class","counter-container"),q(a,"display","inline-block"),q(a,"vertical-align","top"),q(a,"width","70px"),q(a,"text-align","right"),k(e,"class","input-container"),q(e,"position","absolute"),q(e,"right","10px"),q(e,"z-index","9"),k(l,"class","chart-container svelte-1jk7v2q")},m(w,A){h(w,e,A),L(e,r),ie(r,f[0]),L(e,n),L(e,a),L(a,t),L(a,s),h(w,$,A),h(w,l,A),m(g,l,null),d=!0,y||(E=[me(r,"change",f[6]),me(r,"input",f[6])],y=!0)},p(w,[A]){A&1&&ie(r,w[0]),(!d||A&1)&&it(t,w[0]);const B={};A&2&&(B.xDomain=w[1]),A&8&&(B.data=w[3](ye)),A&516&&(B.$$scope={dirty:A,ctx:w}),g.$set(B)},i(w){d||(u(g.$$.fragment,w),d=!0)},o(w){o(g.$$.fragment,w),d=!1},d(w){w&&(_(e),_($),_(l)),p(g),y=!1,Qe(E)}}}const Wr="length";function Xr(f,e,r){let n,a,t;const s=le(".2f");let $=40;const l=["x0","x1"],g=Bt(ye);function d(){$=mt(this.value),r(0,$)}const y=E=>+s(E);return f.$$.update=()=>{f.$$.dirty&1&&r(1,n=qt(g,$)),f.$$.dirty&2&&r(3,a=Nt().domain(g).thresholds(n)),f.$$.dirty&2&&r(2,t=Yt(n,7))},[$,n,t,a,s,l,d,y]}class Or extends V{constructor(e){super(),T(this,e,Xr,Yr,M,{})}}function Jr(f){let e,r;return e=new re({props:{stroke:"#000"}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Ur(f){let e,r;return e=new Y({props:{$$slots:{default:[Jr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Gr(f){let e,r;return e=new R({props:{ssr:!0,percentRange:!0,padding:{top:2,right:6,bottom:2,left:6},x:f[1].x,y:f[1].y,data:f[0],xDomain:f[2],yDomain:f[3],$$slots:{default:[Ur]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,[a]){const t={};a&2&&(t.x=n[1].x),a&2&&(t.y=n[1].y),a&1&&(t.data=n[0]),a&4&&(t.xDomain=n[2]),a&8&&(t.yDomain=n[3]),a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Hr(f,e,r){let n,a,{data:t}=e,{fullExtents:s}=e,{scale:$}=e,{extentGetters:l}=e;const g={duration:300,easing:Wt},d=je(void 0,g);Le(f,d,w=>r(2,n=w));const y=je(void 0,g);Le(f,y,w=>r(3,a=w));const E=Ce(t,l);return f.$$set=w=>{"data"in w&&r(0,t=w.data),"fullExtents"in w&&r(6,s=w.fullExtents),"scale"in w&&r(7,$=w.scale),"extentGetters"in w&&r(1,l=w.extentGetters)},f.$$.update=()=>{f.$$.dirty&192&&d.set($==="shared"?s.x:E.x),f.$$.dirty&192&&y.set($==="shared"?s.y:E.y)},[t,l,n,a,d,y,s,$]}class Fr extends V{constructor(e){super(),T(this,e,Hr,Gr,M,{data:0,fullExtents:6,scale:7,extentGetters:1})}}function Ye(f,e,r){const n=f.slice();return n[6]=e[r],n}function We(f){let e,r,n,a;return r=new Fr({props:{data:f[6],fullExtents:f[2],scale:f[0],extentGetters:f[1]}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),this.h()},l(t){e=x(t,"DIV",{class:!0});var s=S(e);i(r.$$.fragment,s),n=b(s),s.forEach(_),this.h()},h(){k(e,"class","small-multiple-container svelte-1xmktbf")},m(t,s){h(t,e,s),m(r,e,null),L(e,n),a=!0},p(t,s){const $={};s&1&&($.scale=t[0]),r.$set($)},i(t){a||(u(r.$$.fragment,t),a=!0)},o(t){o(r.$$.fragment,t),a=!1},d(t){t&&_(e),p(r)}}}function Qr(f){let e,r,n,a,t,s,$,l,g,d,y,E,w,A,B=ne(pe),I=[];for(let K=0;Ko(I[K],1,1,()=>{I[K]=null});return E=pt(f[4][0]),{c(){e=D("div"),r=D("label"),n=D("input"),a=oe("Individual scale"),t=v(),s=D("label"),$=D("input"),l=oe("Shared scale"),g=v(),d=D("div");for(let K=0;Kg.x,y:g=>g.y},a=Ce(fe(pe),n);pe.sort((g,d)=>d[d.length-1].y-g[g.length-1].y);let t="individual";const s=[[]];function $(){t=this.__value,r(0,t)}function l(){t=this.__value,r(0,t)}return[t,n,a,$,s,l]}class ea extends V{constructor(e){super(),T(this,e,Zr,Qr,M,{})}}function Xe(f,e,r){const n=f.slice();return n[5]=e[r],n[7]=r,n}function ta(f){let e,r;return e=new Mt({props:{calcCellSize:aa}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:P,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function na(f){let e,r;return e=new Y({props:{$$slots:{default:[ta]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&256&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Oe(f){let e,r,n,a;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:1,right:1,bottom:1,left:1},x:"key",z:sa,zScale:Ie(),zRange:f[1],data:f[5].values,$$slots:{default:[na]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),this.h()},l(t){e=x(t,"DIV",{class:!0,style:!0,"data-month":!0});var s=S(e);i(r.$$.fragment,s),n=b(s),s.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-xb94lj"),k(e,"style","width:calc("+100/f[2].length+"% - "+Je+"px);"+(f[7]===0?`margin-right:${Je*2}px`:"")),k(e,"data-month",f[0][+f[5].key+1])},m(t,s){h(t,e,s),m(r,e,null),L(e,n),a=!0},p(t,s){const $={};s&256&&($.$$scope={dirty:s,ctx:t}),r.$set($)},i(t){a||(u(r.$$.fragment,t),a=!0)},o(t){o(r.$$.fragment,t),a=!1},d(t){t&&_(e),p(r)}}}function ra(f){let e,r,n=ne(f[2]),a=[];for(let s=0;so(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s100/7,sa=f=>f.values.length;function $a(f){const e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=Xt.map(s=>(s.date=new Date(s.timestring),s)),n=["#fff5cc","#ffeba9","#ffe182","#ffd754","#ffcc00"],t=Lt().key(s=>s.date.getUTCMonth()).key(s=>s.timestring.split("T")[0]).entries(r).sort((s,$)=>s.key-$.key);return[e,n,t]}class fa extends V{constructor(e){super(),T(this,e,$a,ra,M,{})}}function la(f){let e,r,n,a,t,s;return e=new W({props:{ticks:[0,4,8,12,16,20,24].map(ia),format:f[2]}}),n=new X({}),t=new $t({props:{r:ca,fill:"rgba(255, 204, 0, 0.75)",strokeWidth:0}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:P,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function ua(f){let e,r;return e=new j({props:{$$slots:{default:[la]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&64&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function oa(f){let e,r,n;return r=new R({props:{ssr:!0,percentRange:!0,padding:{top:0,right:15,bottom:20,left:75},x:ut,y:ot,xDomain:[0,24*60*60],yDomain:f[1],xScale:Ot(),yScale:G().paddingInner(.05).round(!0),xPadding:[Ue,Ue],data:f[0],$$slots:{default:[ua]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&64&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const ut="seconds",ot="day",ca=4,Ue=2,ia=f=>f*60*60;function ma(f){const e=Jt.map($=>{const l=$.timestring.split("T"),g=l[1].replace("Z","").split(":").map(d=>+d);return $[ut]=g[0]*60*60+g[1]*60+g[2],$[ot]=l[0],$}),r=Ce(e,{x:$=>$.timestring}),n=r.x[0].toString().split("T")[0].split("-").map($=>+$),a=r.x[1].toString().split("T")[0].split("-").map($=>+$),t=Vt.range(new Date(Date.UTC(n[0],n[1]-1,n[2])),new Date(Date.UTC(a[0],a[1]-1,a[2]+1))).map($=>$.toISOString().split("T")[0]).sort();return[e,t,$=>`${Math.floor($/60/60)}:00`]}class pa extends V{constructor(e){super(),T(this,e,ma,oa,M,{})}}function ga(f){let e,r,n,a;return e=new W({props:{ticks:ka}}),n=new X({props:{ticks:4}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function _a(f){let e,r,n,a;return e=new re({props:{stroke:"#00e047"}}),n=new se({props:{fill:"#00e04710"}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function da(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[ga]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[_a]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&16&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function ha(f){let e,r,n,a;return e=new re({props:{stroke:"#00e047"}}),n=new se({props:{fill:"#00e04710"}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function va(f){let e,r,n,a;function t(l){f[2](l)}function s(l){f[3](l)}let $={};return f[0][0]!==void 0&&($.min=f[0][0]),f[0][1]!==void 0&&($.max=f[0][1]),e=new st({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0][0],ee(()=>r=!1)),!n&&g&1&&(n=!0,d.max=l[0][1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function ba(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[ha]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[va]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&17&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function ya(f){let e,r,n,a,t,s;return r=new R({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:25},x:Ge,y:de,yDomain:[0,null],data:f[1],$$slots:{default:[da]},$$scope:{ctx:f}}}),t=new R({props:{ssr:!0,percentRange:!0,padding:{top:5},x:Ge,y:de,yDomain:[0,null],data:N,$$slots:{default:[ba]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),a=D("div"),c(t.$$.fragment),this.h()},l($){e=x($,"DIV",{class:!0});var l=S(e);i(r.$$.fragment,l),l.forEach(_),n=b($),a=x($,"DIV",{class:!0});var g=S(a);i(t.$$.fragment,g),g.forEach(_),this.h()},h(){k(e,"class","brushed-chart-container svelte-12vpq9d"),k(a,"class","brush-container svelte-12vpq9d")},m($,l){h($,e,l),m(r,e,null),h($,n,l),h($,a,l),m(t,a,null),s=!0},p($,[l]){const g={};l&2&&(g.data=$[1]),l&16&&(g.$$scope={dirty:l,ctx:$}),r.$set(g);const d={};l&17&&(d.$$scope={dirty:l,ctx:$}),t.$set(d)},i($){s||(u(r.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(r.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(e),_(n),_(a)),p(r),p(t)}}}const Ge="myX",de="myY",ka=f=>{const e=f.filter(r=>r%1===0);return e.length>7?e.filter((r,n)=>n%2===0):e};function wa(f,e,r){let n=[null,null];N.forEach($=>{$[de]=+$[de]});let a;function t($){f.$$.not_equal(n[0],$)&&(n[0]=$,r(0,n))}function s($){f.$$.not_equal(n[1],$)&&(n[1]=$,r(0,n))}return f.$$.update=()=>{f.$$.dirty&3&&(r(1,a=N.slice((n[0]||0)*N.length,(n[1]||1)*N.length)),a.length<2&&r(1,a=N.slice(n[0]*N.length,n[0]*N.length+2)))},[n,a,t,s]}class Da extends V{constructor(e){super(),T(this,e,wa,ya,M,{})}}function xa(f){let e,r,n,a;return e=new W({props:{ticks:Ra}}),n=new X({props:{ticks:2}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:P,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sa(f){let e,r,n,a;return e=new re({props:{stroke:f[5]}}),n=new se({props:{fill:`${f[5]}10`}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&32&&($.stroke=t[5]),e.$set($);const l={};s&32&&(l.fill=`${t[5]}10`),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ea(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[xa]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Sa]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&512&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&544&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ka(f){let e,r,n,a;return e=new re({props:{stroke:f[5]}}),n=new se({props:{fill:`${f[5]}10`}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&32&&($.stroke=t[5]),e.$set($);const l={};s&32&&(l.fill=`${t[5]}10`),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ia(f){let e,r,n,a;function t(l){f[7](l)}function s(l){f[8](l)}let $={};return f[0]!==void 0&&($.min=f[0]),f[1]!==void 0&&($.max=f[1]),e=new st({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0],ee(()=>r=!1)),!n&&g&2&&(n=!0,d.max=l[1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function Pa(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[Ka]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Ia]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&544&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&515&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ca(f){let e,r,n,a,t,s,$;return n=new R({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:25},x:f[2],y:f[3],yDomain:[0,null],data:f[6],$$slots:{default:[Ea]},$$scope:{ctx:f}}}),s=new R({props:{ssr:!0,percentRange:!0,padding:{top:5},x:f[2],y:f[3],yDomain:[0,null],data:f[4],$$slots:{default:[Pa]},$$scope:{ctx:f}}}),{c(){e=D("div"),r=D("div"),c(n.$$.fragment),a=v(),t=D("div"),c(s.$$.fragment),this.h()},l(l){e=x(l,"DIV",{class:!0});var g=S(e);r=x(g,"DIV",{class:!0});var d=S(r);i(n.$$.fragment,d),d.forEach(_),a=b(g),t=x(g,"DIV",{class:!0});var y=S(t);i(s.$$.fragment,y),y.forEach(_),g.forEach(_),this.h()},h(){k(r,"class","chart-container svelte-ypfvhs"),k(t,"class","brush-container svelte-ypfvhs"),k(e,"class","chart-wrapper svelte-ypfvhs")},m(l,g){h(l,e,g),L(e,r),m(n,r,null),L(e,a),L(e,t),m(s,t,null),$=!0},p(l,[g]){const d={};g&4&&(d.x=l[2]),g&8&&(d.y=l[3]),g&64&&(d.data=l[6]),g&544&&(d.$$scope={dirty:g,ctx:l}),n.$set(d);const y={};g&4&&(y.x=l[2]),g&8&&(y.y=l[3]),g&16&&(y.data=l[4]),g&547&&(y.$$scope={dirty:g,ctx:l}),s.$set(y)},i(l){$||(u(n.$$.fragment,l),u(s.$$.fragment,l),$=!0)},o(l){o(n.$$.fragment,l),o(s.$$.fragment,l),$=!1},d(l){l&&_(e),p(n),p(s)}}}const Ra=f=>{const e=f.filter(r=>r%1===0);return e.length>7?e.filter((r,n)=>n%2===0):e};function za(f,e,r){let{min:n=null}=e,{max:a=null}=e,{xKey:t="x"}=e,{yKey:s="y"}=e,{data:$=[]}=e,{stroke:l="#00e047"}=e,g;function d(E){n=E,r(0,n)}function y(E){a=E,r(1,a)}return f.$$set=E=>{"min"in E&&r(0,n=E.min),"max"in E&&r(1,a=E.max),"xKey"in E&&r(2,t=E.xKey),"yKey"in E&&r(3,s=E.yKey),"data"in E&&r(4,$=E.data),"stroke"in E&&r(5,l=E.stroke)},f.$$.update=()=>{f.$$.dirty&83&&(r(6,g=$.slice((n||0)*$.length,(a||1)*$.length)),g.length<2&&r(6,g=$.slice(n*$.length,n*$.length+2)))},[n,a,t,s,$,l,g,d,y]}class La extends V{constructor(e){super(),T(this,e,za,Ca,M,{min:0,max:1,xKey:2,yKey:3,data:4,stroke:5})}}function He(f,e,r){const n=f.slice();return n[5]=e[r],n[7]=r,n}function Fe(f){let e,r,n,a;function t(l){f[3](l)}function s(l){f[4](l)}let $={data:f[5],xKey:Va,yKey:xe,stroke:f[2][f[7]]};return f[0][0]!==void 0&&($.min=f[0][0]),f[0][1]!==void 0&&($.max=f[0][1]),e=new La({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0][0],ee(()=>r=!1)),!n&&g&1&&(n=!0,d.max=l[0][1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function Ma(f){let e,r,n=ne(f[1]),a=[];for(let s=0;so(a[s],1,1,()=>{a[s]=null});return{c(){e=D("div");for(let s=0;s{l.forEach(g=>{g[xe]=+g[xe]})});const t=["#00e047","#00bbff","#ff00cc","#ffcc00"];function s(l){f.$$.not_equal(n[0],l)&&(n[0]=l,r(0,n))}function $(l){f.$$.not_equal(n[1],l)&&(n[1]=l,r(0,n))}return[n,a,t,s,$]}class ja extends V{constructor(e){super(),T(this,e,Ta,Ma,M,{})}}const Xa=[{replPath:"ac23120460b1409a9e1e6fd328b63b64?version=3.46.2",title:"Line + area",slug:"Line",component:rn},{replPath:"1969b7c74b124445ad9d55ad28542cd6?version=3.46.2",title:"WebGL Scatter (svg axes, quadtree hover)",slug:"ScatterWebgl",component:Lr},{replPath:"af25643f1e3c4a6f93aed138ac8b1550?version=3.46.2",title:"Map (svg, pre-projected)",slug:"MapSvg",component:kn},{replPath:"14c49b034a1e49bbbcd32e0ba749378c?version=3.46.2",title:"Multilayer map (canvas + svg)",slug:"MapLayered",component:cr},{replPath:"3dcdfc8c7aab4ca5a82f912f377a25e2?version=3.46.2",title:"Column annotated",slug:"Column",component:Cn},{replPath:"9d7b933184db447c83cc315ad278dabd?version=3.46.2",title:"Stacked column",slug:"ColumnStacked",component:Xn},{replPath:"3e18cab5e88a4b29a14a08fdccd418c2?version=3.46.2",title:"Bar",slug:"Bar",component:dr},{replPath:"af5ce39a12d74ed7a484010a49f09eaa?version=3.46.2",title:"Stacked bar",slug:"BarStacked",component:Dr},{replPath:"ea09c9f533594b3ab9ebb509c9bfc03a?version=3.46.2",title:"Multiline (html labels + quadtree tooltip)",slug:"MultiLine",component:Zn},{replPath:"1eb71294f7c147ce906aa2dfc6e2f64e?version=3.46.2",title:"Stacked area",slug:"AreaStacked",component:jn},{replPath:"9862620a31cd4f9dac8191df953e4532?version=3.46.2",title:"Scatter (html)",slug:"Scatter",component:pn},{replPath:"f3f78a8b122b40dda9ac1e32dee0737f?version=3.46.2",title:"Cleveland dot plot",slug:"ClevelandDotPlot",component:Ar},{replPath:"c1e6634def024499ad026ecab3c39499?version=3.46.2",title:"Calendar (one cake per month)",slug:"Calendar",component:fa},{replPath:"3142518ab68f493cad0e327dba5cae1a?version=3.46.2",title:"Time of day plot",slug:"Timeplot",component:pa},{replPath:"74c8fd12be824840bb78bcaa2eea33bb?version=3.46.2",title:"Histogram (variable bins)",slug:"Histogram",component:Or},{replPath:"82b6e8a37e9f4eaa8140498c1b1f490d?version=3.46.2",title:"Small multiples (animated domain transition)",slug:"SmallMultiples",component:ea},{replPath:"7b692f97938f4bc2a79d62d5ccdbb02d?version=3.46.2",title:"Brush",slug:"Brush",component:Da},{replPath:"1868bf7315654558894580f43ddeace8?version=3.46.2",title:"Synced brush",slug:"SyncedBrush",component:ja}];export{Xa as e}; diff --git a/docs/_app/immutable/chunks/_examples_ssr.X0tHL2fc.js b/docs/_app/immutable/chunks/_examples_ssr.X0tHL2fc.js new file mode 100644 index 00000000..f24e98b9 --- /dev/null +++ b/docs/_app/immutable/chunks/_examples_ssr.X0tHL2fc.js @@ -0,0 +1 @@ +import{s as M,e as D,c as x,b as S,f as _,u as k,i as h,a as v,g as b,n as L,A as q,h as z,t as oe,d as ce,U as ie,y as me,j as it,r as Qe,a4 as mt,k as ze,a5 as pt,v as Se,E as Me,B as Z,C as ee}from"./scheduler.P37s_KnH.js";import{S as V,i as T,c,b as i,m,t as u,a as o,d as p,g as Ee,e as Ke,f as te}from"./index.GooPGtyi.js";import{L as C,I as N,J as j,K as re,M as se,N as Ie,O as Ze,P as et,Q as tt,R as G,S as ae,T as gt,U as nt,V as _t,W as dt,X as ht,Y as $e,Z as fe,_ as rt,$ as H,a0 as Le,w as at,f as le,a1 as vt,u as bt,a2 as O,a3 as yt,a4 as kt,a5 as wt,a6 as Ve,a7 as Dt,a8 as xt,a9 as St,aa as Et,ab as Kt,ac as It,ad as Lt,ae as Pt,af as Ct,ag as Rt,ah as Pe,ai as zt,aj as Mt,o as Vt,ak as st}from"./Brush.html.I1clC5X0.js";import{S as Y,A as W,a as X,b as $t,c as Tt,C as jt}from"./ClevelandDotPlot.percent-range.html.BOdAxcUZ.js";import{u as Te,g as At,d as ye,e as Bt,c as qt,b as Nt,t as Yt,a as je,f as Wt,p as pe,h as Xt,i as Ot,j as Jt,k as Ut,l as Gt,m as Ht}from"./pointsFour.fzEDaS5G.js";import{e as ne}from"./each.zMdpk9aP.js";function Ft(f){let e,r,n,a;return e=new W({}),n=new X({props:{ticks:4}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Qt(f){let e,r,n,a;return e=new re({}),n=new se({}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Zt(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Ft]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Qt]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&2&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&2&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function en(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:8,right:10,bottom:20,left:25},x:tn,y:f[0],yDomain:[0,null],data:N,$$slots:{default:[Zt]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&2&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const tn="myX",be="myY";function nn(f){return N.forEach(r=>{r[be]=+r[be]}),[r=>r[be]]}class rn extends V{constructor(e){super(),T(this,e,nn,en,M,{})}}function an(f){let e,r,n,a,t,s;return e=new W({}),n=new X({}),t=new $t({props:{r:ln,fill:un,stroke:on,strokeWidth:cn}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:L,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function sn(f){let e,r;return e=new j({props:{$$slots:{default:[an]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function $n(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:10,right:5,bottom:20,left:25},x:fn,y:ke,xPadding:[ue,ue],yPadding:[ue,ue],data:N,$$slots:{default:[sn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&1&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const fn="myX",ke="myY",ln=4.5,ue=2.5,un="#fff",on="#0cf",cn=1.5;function mn(f){return N.forEach(e=>{e[ke]=+e[ke]}),[]}class pn extends V{constructor(e){super(),T(this,e,mn,$n,M,{})}}function gn(f){let e,r;return e=new tt({props:{fixedAspectRatio:Ce,projection:f[2]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function _n(f){let e,r;return e=new Y({props:{fixedAspectRatio:Ce,$$slots:{default:[gn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&64&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function dn(f){let e,r,n;return r=new C({props:{ssr:!0,position:"absolute",data:f[1],z:f[5],zScale:Ie(),zRange:f[4],flatData:f[3],$$slots:{default:[_n]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0,style:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","map-container svelte-lie9rj"),q(e,"padding-bottom",100/Ce+"%")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&64&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const hn="myValue",vn="name",bn="name",Ce=2.63;function yn(f){const e=new Map;Ze.forEach($=>{e.set($[vn],$[hn])});const r=et(Te,Te.objects.states),n=At,a=r.features.map($=>$.properties);return[e,r,n,a,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],$=>e.get($[bn])]}class kn extends V{constructor(e){super(),T(this,e,yn,dn,M,{})}}function wn(f){let e,r;return e=new nt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Dn(f){let e,r,n,a,t,s;return e=new W({props:{gridlines:!1}}),n=new X({props:{ticks:4,gridlines:!1}}),t=new _t({props:{annotations:f[0]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:L,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function xn(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[wn]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Dn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&2&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&2&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sn(f){let e,r;return e=new dt({props:{annotations:f[0]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function En(f){let e,r;return e=new ht({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Kn(f){let e,r;return e=new gt({props:{$$slots:{defs:[En],default:[Sn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&2&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function In(f){let e,r,n,a,t;return r=new C({props:{ssr:!0,percentRange:!0,position:"absolute",padding:{top:0,right:0,bottom:20,left:20},x:Ae,y:ge,xScale:G().paddingInner(.028).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:ae,$$slots:{default:[xn]},$$scope:{ctx:f}}}),a=new C({props:{position:"absolute",padding:{top:0,right:0,bottom:20,left:20},x:Ae,y:ge,xScale:G().paddingInner(.028).round(!0),xDomain:["1979","1980","1981","1982","1983"],yDomain:[0,null],data:ae,$$slots:{default:[Kn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-93joy6")},m(s,$){h(s,e,$),m(r,e,null),z(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&2&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&2&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const Ae="year",ge="value";function Ln(f){const e=[{text:"Example text...",top:"18%",left:"30%",arrows:[{clockwise:!1,source:{anchor:"left-bottom",dx:-2,dy:-7},target:{x:"28%",y:"75%"}},{source:{anchor:"right-bottom",dy:-7,dx:5},target:{x:"68%",y:"48%"}}]}];return ae.forEach(r=>{r[ge]=+r[ge]}),[e]}class Pn extends V{constructor(e){super(),T(this,e,Ln,In,M,{})}}function Cn(f){let e,r,n,a;return e=new W({props:{format:f[4],tickMarks:!0}}),n=new X({props:{format:f[5]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Rn(f){let e,r;return e=new vt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function zn(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Cn]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Rn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&512&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&512&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Mn(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:17},x:f[6],y:f[0],z:Vn,zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[zn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&512&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const Q="month",Vn="key";function Tn(f){const e=[0,1],r=rt("%Y-%m-%d"),n=Object.keys(H[0]).filter(d=>d!==Q),a=["#ff00cc","#ff7ac7","#ffb3c0","#ffe4b8"];H.forEach(d=>{d[Q]=typeof d[Q]=="string"?r(d[Q]):d[Q],n.forEach(y=>{d[y]=+d[y]})});const s=Le().keys(n)(H),$=at("%b. %-d");return[e,n,a,s,$,d=>le("~s")(d),d=>d.data[Q]]}class jn extends V{constructor(e){super(),T(this,e,Tn,Mn,M,{})}}function An(f){let e,r,n,a;return e=new W({props:{gridlines:!1}}),n=new X({props:{ticks:4,gridlines:!1,format:f[4]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Bn(f){let e,r;return e=new yt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function qn(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[An]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Bn]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&128&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&128&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Nn(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:20},x:f[5],y:f[0],z:Yn,xScale:G().paddingInner(.028).round(!0),xDomain:bt(O,we),zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[qn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const we="year",Yn="key";function Wn(f){const e=[0,1],r=Object.keys(O[0]).filter(l=>l!==we),n=["#00e047","#7ceb68","#b7f486","#ecfda5"];O.forEach(l=>{r.forEach(g=>{l[g]=+l[g]})});const t=Le().keys(r)(O);return[e,r,n,t,l=>le("~s")(l),l=>l.data[we]]}class Xn extends V{constructor(e){super(),T(this,e,Wn,Nn,M,{})}}function On(f){let e,r,n,a;return e=new W({props:{gridlines:!1,ticks:H.map(f[4]).sort(Fn),format:f[2],snapLabels:!0,tickMarks:!0}}),n=new X({props:{format:f[3]}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Jn(f){let e,r;return e=new kt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Un(f){let e,r,n,a;return e=new wt({}),n=new Tt({props:{formatTitle:f[2],dataset:H}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Gn(f){let e,r,n,a,t,s;return e=new j({props:{$$slots:{default:[On]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Jn]},$$scope:{ctx:f}}}),t=new j({props:{$$slots:{default:[Un]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p($,l){const g={};l&128&&(g.$$scope={dirty:l,ctx:$}),e.$set(g);const d={};l&128&&(d.$$scope={dirty:l,ctx:$}),n.$set(d);const y={};l&128&&(y.$$scope={dirty:l,ctx:$}),t.$set(y)},i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function Hn(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:7,right:10,bottom:20,left:25},x:J,y:ft,z:De,zScale:$e(),zRange:f[0],flatData:fe(f[1],"values"),yDomain:[0,null],data:f[1],$$slots:{default:[Gn]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const J="month",ft="value",De="fruit",Fn=(f,e)=>f-e;function Qn(f){const e=Object.keys(H[0]).filter(l=>l!==J),r=["#ffe4b8","#ffb3c0","#ff7ac7","#ff00cc"],n=rt("%Y-%m-%d"),a=e.map(l=>({[De]:l,values:H.map(g=>(g[J]=typeof g[J]=="string"?n(g[J]):g[J],{[ft]:+g[l],[J]:g[J],[De]:l}))})),t=at("%b. %e");return[r,a,t,l=>le("~s")(l),l=>l[J]]}class Zn extends V{constructor(e){super(),T(this,e,Qn,Hn,M,{})}}function er(f){let e,r;return e=new Et({props:{projection:f[1],fill:"#fff"}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function tr(f){let e,r;return e=new xt({props:{$$slots:{default:[er]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function nr(f){let e,r;return e=new tt({props:{fixedAspectRatio:he,projection:f[1],features:f[0].features.slice(40,50)}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function rr(f){let e,r;return e=new Kt({props:{fixedAspectRatio:he,projection:f[1],features:f[3],getCoordinates:f[6],getLabel:f[7]}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function ar(f){let e,r,n,a;return e=new Y({props:{fixedAspectRatio:he,$$slots:{default:[nr]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[rr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&1024&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&1024&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function sr(f){let e,r,n,a,t;return r=new C({props:{position:"absolute",data:f[0],flatData:f[4],$$slots:{default:[tr]},$$scope:{ctx:f}}}),a=new C({props:{position:"absolute",ssr:!0,data:f[0],z:f[8],zScale:Ie(),zRange:f[5],flatData:f[4],$$slots:{default:[ar]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0,style:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","map-container svelte-1enkenv"),q(e,"aspect-ratio",he)},m(s,$){h(s,e,$),m(r,e,null),z(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&1024&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&1024&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const $r="myValue",he=2.63,fr="name",lr="name",ur="center",Be="abbr";function or(f){const e=et(Ve,Ve.objects.collection),r=St,n=new Map;Ze.forEach(y=>{n.set(y[fr],y[$r])});const a=["VT","MD","NJ","RI","DC","DE","WV","MA","CT","NH"],t=Dt.filter(y=>!a.includes(y[Be])),s=e.features.map(y=>y.properties);return[e,r,n,t,s,["#ffdecc","#ffc09c","#ffa06b","#ff7a33"],y=>y[ur],y=>y[Be],y=>n.get(y[lr])]}class cr extends V{constructor(e){super(),T(this,e,or,sr,M,{})}}function ir(f){let e,r,n,a;return e=new W({props:{gridlines:!0,baseline:!0,snapLabels:!0}}),n=new X({props:{gridlines:!1,tickMarks:!0}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function mr(f){let e,r;return e=new It({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function pr(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[ir]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[mr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&1&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&1&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function gr(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:0,right:20,bottom:20,left:35},x:"value",y:"year",yScale:G().paddingInner(.05).round(!0),yDomain:["1979","1980","1981","1982","1983"],xDomain:[0,null],data:ae,$$slots:{default:[pr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&1&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}function _r(f){return ae.forEach(e=>{e.value=+e.value}),[]}class dr extends V{constructor(e){super(),T(this,e,_r,gr,M,{})}}function hr(f){let e,r,n,a;return e=new W({props:{baseline:!0,snapLabels:!0,format:f[4]}}),n=new X({props:{gridlines:!1}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function vr(f){let e,r;return e=new Lt({}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function br(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[hr]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[vr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&128&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&128&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function yr(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:0,right:0,bottom:20,left:35},y:f[5],x:f[0],z:kr,yScale:G().paddingInner(.05).round(!0),yDomain:["2016","2017","2018","2019"],zScale:$e(),zDomain:f[1],zRange:f[2],flatData:fe(f[3]),data:f[3],$$slots:{default:[br]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&128&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const qe="year",kr="key";function wr(f){const e=[0,1],r=Object.keys(O[0]).filter(l=>l!==qe),n=["#00bbff","#8bcef6","#c4e2ed","#f7f6e3"];O.forEach(l=>{r.forEach(g=>{l[g]=+l[g]})});const t=Le().keys(r)(O);return[e,r,n,t,l=>le("~s")(l),l=>l.data[qe]]}class Dr extends V{constructor(e){super(),T(this,e,wr,yr,M,{})}}function xr(f){let e,r,n,a;return e=new W({}),n=new X({props:{tickMarks:!1}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sr(f){let e,r;return e=new j({props:{$$slots:{default:[xr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&16&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Er(f){let e,r;return e=new Ct({props:{r:Cr}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Kr(f){let e;return{c(){e=D("div"),this.h()},l(r){e=x(r,"DIV",{class:!0,style:!0}),S(e).forEach(_),this.h()},h(){k(e,"class","circle svelte-va9vq4"),q(e,"top",f[2]+"px"),q(e,"left",f[1]+"px"),q(e,"display",f[3]?"block":"none")},m(r,n){h(r,e,n)},p(r,n){n&4&&q(e,"top",r[2]+"px"),n&2&&q(e,"left",r[1]+"px"),n&8&&q(e,"display",r[3]?"block":"none")},d(r){r&&_(e)}}}function Ir(f){let e,r;return e=new Rt({props:{$$slots:{default:[Kr,({x:n,y:a,visible:t})=>({1:n,2:a,3:t}),({x:n,y:a,visible:t})=>(n?2:0)|(a?4:0)|(t?8:0)]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&30&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Lr(f){let e,r,n,a;return e=new Pt({props:{$$slots:{default:[Er]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Ir]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&16&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Pr(f){let e,r,n,a,t;return r=new C({props:{position:"absolute",ssr:!0,percentRange:!0,padding:f[0],x:Ne,y:_e,xPadding:[U,U],yPadding:[U,U],data:N,$$slots:{default:[Sr]},$$scope:{ctx:f}}}),a=new C({props:{position:"absolute",padding:f[0],x:Ne,y:_e,xPadding:[U,U],yPadding:[U,U],data:N,$$slots:{default:[Lr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),c(a.$$.fragment),this.h()},l(s){e=x(s,"DIV",{class:!0});var $=S(e);i(r.$$.fragment,$),n=b($),i(a.$$.fragment,$),$.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-va9vq4")},m(s,$){h(s,e,$),m(r,e,null),z(e,n),m(a,e,null),t=!0},p(s,[$]){const l={};$&16&&(l.$$scope={dirty:$,ctx:s}),r.$set(l);const g={};$&16&&(g.$$scope={dirty:$,ctx:s}),a.$set(g)},i(s){t||(u(r.$$.fragment,s),u(a.$$.fragment,s),t=!0)},o(s){o(r.$$.fragment,s),o(a.$$.fragment,s),t=!1},d(s){s&&_(e),p(r),p(a)}}}const Ne="myX",_e="myY",Cr=3,U=6;function Rr(f){const e={top:5,right:5,bottom:20,left:25};return N.forEach(r=>{r[_e]=+r[_e]}),[e]}class zr extends V{constructor(e){super(),T(this,e,Rr,Pr,M,{})}}function Mr(f){let e,r,n,a,t,s;return e=new W({}),n=new X({props:{gridlines:!1}}),t=new jt({}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:L,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function Vr(f){let e,r;return e=new j({props:{$$slots:{default:[Mr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&4&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Tr(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:30},x:f[0],y:lt,yScale:G().paddingInner(.05).round(!0),xDomain:[0,null],xPadding:[2,0],zScale:$e(),zDomain:f[0],zRange:f[1],data:O,$$slots:{default:[Vr]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&4&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const lt="year";function jr(f){const e=Object.keys(O[0]).filter(n=>n!==lt),r=["#f0c","#00bbff","#00e047","#ff7a33"];return O.forEach(n=>{e.forEach(a=>{n[a]=+n[a]})}),[e,r]}class Ar extends V{constructor(e){super(),T(this,e,jr,Tr,M,{})}}function Br(f){let e,r,n,a;return e=new W({props:{gridlines:!1,baseline:!0,ticks:f[2],format:f[7]}}),n=new X({props:{gridlines:!1,ticks:3}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&4&&($.ticks=t[2]),e.$set($)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function qr(f){let e,r;return e=new nt({props:{fill:"#fff",stroke:"#000",strokeWidth:1}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Nr(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[Br]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[qr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&516&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&512&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Yr(f){let e,r,n,a,t,s,$,l,g,d,y,E;return g=new C({props:{ssr:!0,percentRange:!0,padding:{top:20,right:5,bottom:20,left:31},x:f[5],y:Wr,xDomain:f[1],xScale:G().paddingInner(0),yDomain:[0,null],data:f[3](ye),$$slots:{default:[Nr]},$$scope:{ctx:f}}}),{c(){e=D("div"),r=D("input"),n=v(),a=D("span"),t=oe(f[0]),s=oe(" bins"),$=v(),l=D("div"),c(g.$$.fragment),this.h()},l(w){e=x(w,"DIV",{class:!0,style:!0});var A=S(e);r=x(A,"INPUT",{style:!0,type:!0,min:!0,max:!0,step:!0,class:!0}),n=b(A),a=x(A,"SPAN",{class:!0,style:!0});var B=S(a);t=ce(B,f[0]),s=ce(B," bins"),B.forEach(_),A.forEach(_),$=b(w),l=x(w,"DIV",{class:!0});var I=S(l);i(g.$$.fragment,I),I.forEach(_),this.h()},h(){q(r,"margin","0"),k(r,"type","range"),k(r,"min","4"),k(r,"max","100"),k(r,"step","4"),k(r,"class","svelte-1jk7v2q"),k(a,"class","counter-container"),q(a,"display","inline-block"),q(a,"vertical-align","top"),q(a,"width","70px"),q(a,"text-align","right"),k(e,"class","input-container"),q(e,"position","absolute"),q(e,"right","10px"),q(e,"z-index","9"),k(l,"class","chart-container svelte-1jk7v2q")},m(w,A){h(w,e,A),z(e,r),ie(r,f[0]),z(e,n),z(e,a),z(a,t),z(a,s),h(w,$,A),h(w,l,A),m(g,l,null),d=!0,y||(E=[me(r,"change",f[6]),me(r,"input",f[6])],y=!0)},p(w,[A]){A&1&&ie(r,w[0]),(!d||A&1)&&it(t,w[0]);const B={};A&2&&(B.xDomain=w[1]),A&8&&(B.data=w[3](ye)),A&516&&(B.$$scope={dirty:A,ctx:w}),g.$set(B)},i(w){d||(u(g.$$.fragment,w),d=!0)},o(w){o(g.$$.fragment,w),d=!1},d(w){w&&(_(e),_($),_(l)),p(g),y=!1,Qe(E)}}}const Wr="length";function Xr(f,e,r){let n,a,t;const s=le(".2f");let $=40;const l=["x0","x1"],g=Bt(ye);function d(){$=mt(this.value),r(0,$)}const y=E=>+s(E);return f.$$.update=()=>{f.$$.dirty&1&&r(1,n=qt(g,$)),f.$$.dirty&2&&r(3,a=Nt().domain(g).thresholds(n)),f.$$.dirty&2&&r(2,t=Yt(n,7))},[$,n,t,a,s,l,d,y]}class Or extends V{constructor(e){super(),T(this,e,Xr,Yr,M,{})}}function Jr(f){let e,r;return e=new re({props:{stroke:"#000"}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Ur(f){let e,r;return e=new Y({props:{$$slots:{default:[Jr]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Gr(f){let e,r;return e=new C({props:{ssr:!0,percentRange:!0,padding:{top:2,right:6,bottom:2,left:6},x:f[1].x,y:f[1].y,data:f[0],xDomain:f[2],yDomain:f[3],$$slots:{default:[Ur]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,[a]){const t={};a&2&&(t.x=n[1].x),a&2&&(t.y=n[1].y),a&1&&(t.data=n[0]),a&4&&(t.xDomain=n[2]),a&8&&(t.yDomain=n[3]),a&1024&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Hr(f,e,r){let n,a,{data:t}=e,{fullExtents:s}=e,{scale:$}=e,{extentGetters:l}=e;const g={duration:300,easing:Wt},d=je(void 0,g);ze(f,d,w=>r(2,n=w));const y=je(void 0,g);ze(f,y,w=>r(3,a=w));const E=Pe(t,l);return f.$$set=w=>{"data"in w&&r(0,t=w.data),"fullExtents"in w&&r(6,s=w.fullExtents),"scale"in w&&r(7,$=w.scale),"extentGetters"in w&&r(1,l=w.extentGetters)},f.$$.update=()=>{f.$$.dirty&192&&d.set($==="shared"?s.x:E.x),f.$$.dirty&192&&y.set($==="shared"?s.y:E.y)},[t,l,n,a,d,y,s,$]}class Fr extends V{constructor(e){super(),T(this,e,Hr,Gr,M,{data:0,fullExtents:6,scale:7,extentGetters:1})}}function Ye(f,e,r){const n=f.slice();return n[6]=e[r],n}function We(f){let e,r,n,a;return r=new Fr({props:{data:f[6],fullExtents:f[2],scale:f[0],extentGetters:f[1]}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),this.h()},l(t){e=x(t,"DIV",{class:!0});var s=S(e);i(r.$$.fragment,s),n=b(s),s.forEach(_),this.h()},h(){k(e,"class","small-multiple-container svelte-1xmktbf")},m(t,s){h(t,e,s),m(r,e,null),z(e,n),a=!0},p(t,s){const $={};s&1&&($.scale=t[0]),r.$set($)},i(t){a||(u(r.$$.fragment,t),a=!0)},o(t){o(r.$$.fragment,t),a=!1},d(t){t&&_(e),p(r)}}}function Qr(f){let e,r,n,a,t,s,$,l,g,d,y,E,w,A,B=ne(pe),I=[];for(let K=0;Ko(I[K],1,1,()=>{I[K]=null});return E=pt(f[4][0]),{c(){e=D("div"),r=D("label"),n=D("input"),a=oe("Individual scale"),t=v(),s=D("label"),$=D("input"),l=oe("Shared scale"),g=v(),d=D("div");for(let K=0;Kg.x,y:g=>g.y},a=Pe(fe(pe),n);pe.sort((g,d)=>d[d.length-1].y-g[g.length-1].y);let t="individual";const s=[[]];function $(){t=this.__value,r(0,t)}function l(){t=this.__value,r(0,t)}return[t,n,a,$,s,l]}class ea extends V{constructor(e){super(),T(this,e,Zr,Qr,M,{})}}function Xe(f,e,r){const n=f.slice();return n[5]=e[r],n[7]=r,n}function ta(f){let e,r;return e=new Mt({props:{calcCellSize:aa}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p:L,i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function na(f){let e,r;return e=new Y({props:{$$slots:{default:[ta]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&256&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function Oe(f){let e,r,n,a;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:1,right:1,bottom:1,left:1},x:"key",z:sa,zScale:Ie(),zRange:f[1],data:f[5].values,$$slots:{default:[na]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),this.h()},l(t){e=x(t,"DIV",{class:!0,style:!0,"data-month":!0});var s=S(e);i(r.$$.fragment,s),n=b(s),s.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-xb94lj"),k(e,"style","width:calc("+100/f[2].length+"% - "+Je+"px);"+(f[7]===0?`margin-right:${Je*2}px`:"")),k(e,"data-month",f[0][+f[5].key+1])},m(t,s){h(t,e,s),m(r,e,null),z(e,n),a=!0},p(t,s){const $={};s&256&&($.$$scope={dirty:s,ctx:t}),r.$set($)},i(t){a||(u(r.$$.fragment,t),a=!0)},o(t){o(r.$$.fragment,t),a=!1},d(t){t&&_(e),p(r)}}}function ra(f){let e,r,n=ne(f[2]),a=[];for(let s=0;so(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s100/7,sa=f=>f.values.length;function $a(f){const e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=Xt.map(s=>(s.date=new Date(s.timestring),s)),n=["#fff5cc","#ffeba9","#ffe182","#ffd754","#ffcc00"],t=zt().key(s=>s.date.getUTCMonth()).key(s=>s.timestring.split("T")[0]).entries(r).sort((s,$)=>s.key-$.key);return[e,n,t]}class fa extends V{constructor(e){super(),T(this,e,$a,ra,M,{})}}function la(f){let e,r,n,a,t,s;return e=new W({props:{ticks:[0,4,8,12,16,20,24].map(ia),format:f[2]}}),n=new X({}),t=new $t({props:{r:ca,fill:"rgba(255, 204, 0, 0.75)",strokeWidth:0}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment),a=v(),c(t.$$.fragment)},l($){i(e.$$.fragment,$),r=b($),i(n.$$.fragment,$),a=b($),i(t.$$.fragment,$)},m($,l){m(e,$,l),h($,r,l),m(n,$,l),h($,a,l),m(t,$,l),s=!0},p:L,i($){s||(u(e.$$.fragment,$),u(n.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(e.$$.fragment,$),o(n.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(r),_(a)),p(e,$),p(n,$),p(t,$)}}}function ua(f){let e,r;return e=new j({props:{$$slots:{default:[la]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment)},l(n){i(e.$$.fragment,n)},m(n,a){m(e,n,a),r=!0},p(n,a){const t={};a&64&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){r||(u(e.$$.fragment,n),r=!0)},o(n){o(e.$$.fragment,n),r=!1},d(n){p(e,n)}}}function oa(f){let e,r,n;return r=new C({props:{ssr:!0,percentRange:!0,padding:{top:0,right:15,bottom:20,left:75},x:ut,y:ot,xDomain:[0,24*60*60],yDomain:f[1],xScale:Ot(),yScale:G().paddingInner(.05).round(!0),xPadding:[Ue,Ue],data:f[0],$$slots:{default:[ua]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),this.h()},l(a){e=x(a,"DIV",{class:!0});var t=S(e);i(r.$$.fragment,t),t.forEach(_),this.h()},h(){k(e,"class","chart-container svelte-v4mhvr")},m(a,t){h(a,e,t),m(r,e,null),n=!0},p(a,[t]){const s={};t&64&&(s.$$scope={dirty:t,ctx:a}),r.$set(s)},i(a){n||(u(r.$$.fragment,a),n=!0)},o(a){o(r.$$.fragment,a),n=!1},d(a){a&&_(e),p(r)}}}const ut="seconds",ot="day",ca=4,Ue=2,ia=f=>f*60*60;function ma(f){const e=Jt.map($=>{const l=$.timestring.split("T"),g=l[1].replace("Z","").split(":").map(d=>+d);return $[ut]=g[0]*60*60+g[1]*60+g[2],$[ot]=l[0],$}),r=Pe(e,{x:$=>$.timestring}),n=r.x[0].toString().split("T")[0].split("-").map($=>+$),a=r.x[1].toString().split("T")[0].split("-").map($=>+$),t=Vt.range(new Date(Date.UTC(n[0],n[1]-1,n[2])),new Date(Date.UTC(a[0],a[1]-1,a[2]+1))).map($=>$.toISOString().split("T")[0]).sort();return[e,t,$=>`${Math.floor($/60/60)}:00`]}class pa extends V{constructor(e){super(),T(this,e,ma,oa,M,{})}}function ga(f){let e,r,n,a;return e=new W({props:{ticks:ka}}),n=new X({props:{ticks:4}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function _a(f){let e,r,n,a;return e=new re({props:{stroke:"#00e047"}}),n=new se({props:{fill:"#00e04710"}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function da(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[ga]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[_a]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&16&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function ha(f){let e,r,n,a;return e=new re({props:{stroke:"#00e047"}}),n=new se({props:{fill:"#00e04710"}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function va(f){let e,r,n,a;function t(l){f[2](l)}function s(l){f[3](l)}let $={};return f[0][0]!==void 0&&($.min=f[0][0]),f[0][1]!==void 0&&($.max=f[0][1]),e=new st({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0][0],ee(()=>r=!1)),!n&&g&1&&(n=!0,d.max=l[0][1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function ba(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[ha]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[va]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&16&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&17&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function ya(f){let e,r,n,a,t,s;return r=new C({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:25},x:Ge,y:de,yDomain:[0,null],data:f[1],$$slots:{default:[da]},$$scope:{ctx:f}}}),t=new C({props:{ssr:!0,percentRange:!0,padding:{top:5},x:Ge,y:de,yDomain:[0,null],data:N,$$slots:{default:[ba]},$$scope:{ctx:f}}}),{c(){e=D("div"),c(r.$$.fragment),n=v(),a=D("div"),c(t.$$.fragment),this.h()},l($){e=x($,"DIV",{class:!0});var l=S(e);i(r.$$.fragment,l),l.forEach(_),n=b($),a=x($,"DIV",{class:!0});var g=S(a);i(t.$$.fragment,g),g.forEach(_),this.h()},h(){k(e,"class","brushed-chart-container svelte-12vpq9d"),k(a,"class","brush-container svelte-12vpq9d")},m($,l){h($,e,l),m(r,e,null),h($,n,l),h($,a,l),m(t,a,null),s=!0},p($,[l]){const g={};l&2&&(g.data=$[1]),l&16&&(g.$$scope={dirty:l,ctx:$}),r.$set(g);const d={};l&17&&(d.$$scope={dirty:l,ctx:$}),t.$set(d)},i($){s||(u(r.$$.fragment,$),u(t.$$.fragment,$),s=!0)},o($){o(r.$$.fragment,$),o(t.$$.fragment,$),s=!1},d($){$&&(_(e),_(n),_(a)),p(r),p(t)}}}const Ge="myX",de="myY",ka=f=>{const e=f.filter(r=>r%1===0);return e.length>7?e.filter((r,n)=>n%2===0):e};function wa(f,e,r){let n=[null,null];N.forEach($=>{$[de]=+$[de]});let a;function t($){f.$$.not_equal(n[0],$)&&(n[0]=$,r(0,n))}function s($){f.$$.not_equal(n[1],$)&&(n[1]=$,r(0,n))}return f.$$.update=()=>{f.$$.dirty&3&&(r(1,a=N.slice((n[0]||0)*N.length,(n[1]||1)*N.length)),a.length<2&&r(1,a=N.slice(n[0]*N.length,n[0]*N.length+2)))},[n,a,t,s]}class Da extends V{constructor(e){super(),T(this,e,wa,ya,M,{})}}function xa(f){let e,r,n,a;return e=new W({props:{ticks:Ca}}),n=new X({props:{ticks:2}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p:L,i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Sa(f){let e,r,n,a;return e=new re({props:{stroke:f[5]}}),n=new se({props:{fill:`${f[5]}10`}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&32&&($.stroke=t[5]),e.$set($);const l={};s&32&&(l.fill=`${t[5]}10`),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ea(f){let e,r,n,a;return e=new j({props:{$$slots:{default:[xa]},$$scope:{ctx:f}}}),n=new Y({props:{$$slots:{default:[Sa]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&512&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&544&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ka(f){let e,r,n,a;return e=new re({props:{stroke:f[5]}}),n=new se({props:{fill:`${f[5]}10`}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&32&&($.stroke=t[5]),e.$set($);const l={};s&32&&(l.fill=`${t[5]}10`),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Ia(f){let e,r,n,a;function t(l){f[7](l)}function s(l){f[8](l)}let $={};return f[0]!==void 0&&($.min=f[0]),f[1]!==void 0&&($.max=f[1]),e=new st({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0],ee(()=>r=!1)),!n&&g&2&&(n=!0,d.max=l[1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function La(f){let e,r,n,a;return e=new Y({props:{$$slots:{default:[Ka]},$$scope:{ctx:f}}}),n=new j({props:{$$slots:{default:[Ia]},$$scope:{ctx:f}}}),{c(){c(e.$$.fragment),r=v(),c(n.$$.fragment)},l(t){i(e.$$.fragment,t),r=b(t),i(n.$$.fragment,t)},m(t,s){m(e,t,s),h(t,r,s),m(n,t,s),a=!0},p(t,s){const $={};s&544&&($.$$scope={dirty:s,ctx:t}),e.$set($);const l={};s&515&&(l.$$scope={dirty:s,ctx:t}),n.$set(l)},i(t){a||(u(e.$$.fragment,t),u(n.$$.fragment,t),a=!0)},o(t){o(e.$$.fragment,t),o(n.$$.fragment,t),a=!1},d(t){t&&_(r),p(e,t),p(n,t)}}}function Pa(f){let e,r,n,a,t,s,$;return n=new C({props:{ssr:!0,percentRange:!0,padding:{right:10,bottom:20,left:25},x:f[2],y:f[3],yDomain:[0,null],data:f[6],$$slots:{default:[Ea]},$$scope:{ctx:f}}}),s=new C({props:{ssr:!0,percentRange:!0,padding:{top:5},x:f[2],y:f[3],yDomain:[0,null],data:f[4],$$slots:{default:[La]},$$scope:{ctx:f}}}),{c(){e=D("div"),r=D("div"),c(n.$$.fragment),a=v(),t=D("div"),c(s.$$.fragment),this.h()},l(l){e=x(l,"DIV",{class:!0});var g=S(e);r=x(g,"DIV",{class:!0});var d=S(r);i(n.$$.fragment,d),d.forEach(_),a=b(g),t=x(g,"DIV",{class:!0});var y=S(t);i(s.$$.fragment,y),y.forEach(_),g.forEach(_),this.h()},h(){k(r,"class","chart-container svelte-ypfvhs"),k(t,"class","brush-container svelte-ypfvhs"),k(e,"class","chart-wrapper svelte-ypfvhs")},m(l,g){h(l,e,g),z(e,r),m(n,r,null),z(e,a),z(e,t),m(s,t,null),$=!0},p(l,[g]){const d={};g&4&&(d.x=l[2]),g&8&&(d.y=l[3]),g&64&&(d.data=l[6]),g&544&&(d.$$scope={dirty:g,ctx:l}),n.$set(d);const y={};g&4&&(y.x=l[2]),g&8&&(y.y=l[3]),g&16&&(y.data=l[4]),g&547&&(y.$$scope={dirty:g,ctx:l}),s.$set(y)},i(l){$||(u(n.$$.fragment,l),u(s.$$.fragment,l),$=!0)},o(l){o(n.$$.fragment,l),o(s.$$.fragment,l),$=!1},d(l){l&&_(e),p(n),p(s)}}}const Ca=f=>{const e=f.filter(r=>r%1===0);return e.length>7?e.filter((r,n)=>n%2===0):e};function Ra(f,e,r){let{min:n=null}=e,{max:a=null}=e,{xKey:t="x"}=e,{yKey:s="y"}=e,{data:$=[]}=e,{stroke:l="#00e047"}=e,g;function d(E){n=E,r(0,n)}function y(E){a=E,r(1,a)}return f.$$set=E=>{"min"in E&&r(0,n=E.min),"max"in E&&r(1,a=E.max),"xKey"in E&&r(2,t=E.xKey),"yKey"in E&&r(3,s=E.yKey),"data"in E&&r(4,$=E.data),"stroke"in E&&r(5,l=E.stroke)},f.$$.update=()=>{f.$$.dirty&83&&(r(6,g=$.slice((n||0)*$.length,(a||1)*$.length)),g.length<2&&r(6,g=$.slice(n*$.length,n*$.length+2)))},[n,a,t,s,$,l,g,d,y]}class za extends V{constructor(e){super(),T(this,e,Ra,Pa,M,{min:0,max:1,xKey:2,yKey:3,data:4,stroke:5})}}function He(f,e,r){const n=f.slice();return n[5]=e[r],n[7]=r,n}function Fe(f){let e,r,n,a;function t(l){f[3](l)}function s(l){f[4](l)}let $={data:f[5],xKey:Va,yKey:xe,stroke:f[2][f[7]]};return f[0][0]!==void 0&&($.min=f[0][0]),f[0][1]!==void 0&&($.max=f[0][1]),e=new za({props:$}),Z.push(()=>te(e,"min",t)),Z.push(()=>te(e,"max",s)),{c(){c(e.$$.fragment)},l(l){i(e.$$.fragment,l)},m(l,g){m(e,l,g),a=!0},p(l,g){const d={};!r&&g&1&&(r=!0,d.min=l[0][0],ee(()=>r=!1)),!n&&g&1&&(n=!0,d.max=l[0][1],ee(()=>n=!1)),e.$set(d)},i(l){a||(u(e.$$.fragment,l),a=!0)},o(l){o(e.$$.fragment,l),a=!1},d(l){p(e,l)}}}function Ma(f){let e,r,n=ne(f[1]),a=[];for(let s=0;so(a[s],1,1,()=>{a[s]=null});return{c(){e=D("div");for(let s=0;s{l.forEach(g=>{g[xe]=+g[xe]})});const t=["#00e047","#00bbff","#ff00cc","#ffcc00"];function s(l){f.$$.not_equal(n[0],l)&&(n[0]=l,r(0,n))}function $(l){f.$$.not_equal(n[1],l)&&(n[1]=l,r(0,n))}return[n,a,t,s,$]}class ja extends V{constructor(e){super(),T(this,e,Ta,Ma,M,{})}}const Xa=[{replPath:"ac23120460b1409a9e1e6fd328b63b64?version=3.46.2",title:"Line + area",slug:"Line",component:rn},{replPath:"1969b7c74b124445ad9d55ad28542cd6?version=3.46.2",title:"WebGL Scatter (svg axes, quadtree hover)",slug:"ScatterWebgl",component:zr},{replPath:"af25643f1e3c4a6f93aed138ac8b1550?version=3.46.2",title:"Map (svg, pre-projected)",slug:"MapSvg",component:kn},{replPath:"14c49b034a1e49bbbcd32e0ba749378c?version=3.46.2",title:"Multilayer map (canvas + svg)",slug:"MapLayered",component:cr},{replPath:"3dcdfc8c7aab4ca5a82f912f377a25e2?version=3.46.2",title:"Column annotated",slug:"Column",component:Pn},{replPath:"9d7b933184db447c83cc315ad278dabd?version=3.46.2",title:"Stacked column",slug:"ColumnStacked",component:Xn},{replPath:"3e18cab5e88a4b29a14a08fdccd418c2?version=3.46.2",title:"Bar",slug:"Bar",component:dr},{replPath:"af5ce39a12d74ed7a484010a49f09eaa?version=3.46.2",title:"Stacked bar",slug:"BarStacked",component:Dr},{replPath:"ea09c9f533594b3ab9ebb509c9bfc03a?version=3.46.2",title:"Multiline (html labels + quadtree tooltip)",slug:"MultiLine",component:Zn},{replPath:"1eb71294f7c147ce906aa2dfc6e2f64e?version=3.46.2",title:"Stacked area",slug:"AreaStacked",component:jn},{replPath:"9862620a31cd4f9dac8191df953e4532?version=3.46.2",title:"Scatter (html)",slug:"Scatter",component:pn},{replPath:"f3f78a8b122b40dda9ac1e32dee0737f?version=3.46.2",title:"Cleveland dot plot",slug:"ClevelandDotPlot",component:Ar},{replPath:"c1e6634def024499ad026ecab3c39499?version=3.46.2",title:"Calendar (one cake per month)",slug:"Calendar",component:fa},{replPath:"3142518ab68f493cad0e327dba5cae1a?version=3.46.2",title:"Time of day plot",slug:"Timeplot",component:pa},{replPath:"74c8fd12be824840bb78bcaa2eea33bb?version=3.46.2",title:"Histogram (variable bins)",slug:"Histogram",component:Or},{replPath:"82b6e8a37e9f4eaa8140498c1b1f490d?version=3.46.2",title:"Small multiples (animated domain transition)",slug:"SmallMultiples",component:ea},{replPath:"7b692f97938f4bc2a79d62d5ccdbb02d?version=3.46.2",title:"Brush",slug:"Brush",component:Da},{replPath:"1868bf7315654558894580f43ddeace8?version=3.46.2",title:"Synced brush",slug:"SyncedBrush",component:ja}];export{Xa as e}; diff --git a/docs/_app/immutable/chunks/entry.O4gFZlXI.js b/docs/_app/immutable/chunks/entry.O4gFZlXI.js deleted file mode 100644 index 8c8dae02..00000000 --- a/docs/_app/immutable/chunks/entry.O4gFZlXI.js +++ /dev/null @@ -1,3 +0,0 @@ -import{G as rt}from"./scheduler.P37s_KnH.js";import{w as de}from"./index.Kwf8FJOX.js";import{H as ee,S as he,R as Oe}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function it(e){return e.split("%25").map(decodeURI).join("%25")}function st(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ie({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return i=>(n(i),a[o](i));t();const s=Reflect.get(a,o);return typeof s=="function"?s.bind(a):s}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&V.delete(pe(e)),je(e,t));const V=new Map;function gt(e,t){const n=pe(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&V.set(n,{body:a,init:o,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function mt(e,t,n){if(V.size>0){const r=pe(e,n),a=V.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return se(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return se(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=_t.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?f===1&&s[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return se(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),o=a.filter(i=>i!==void 0);let s=0;for(let i=0;iu).join("/"),s=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const u=t[i+1],h=a[i+1];u&&!u.rest&&u.optional&&h&&c.chained&&(s=0),!u&&!h&&Object.keys(r).length===o.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function se(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([i,[c,f,u]])=>{const{pattern:h,params:g}=yt(i),d={id:i,exec:m=>{const l=h.exec(m);if(l)return bt(l,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...f||[]].map(s),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function s(i){return i===void 0?i:[a.has(i),e[i]]}}function De(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var xe;const I=((xe=globalThis.__sveltekit_g7cla3)==null?void 0:xe.base)??"";var Ne;const kt=((Ne=globalThis.__sveltekit_g7cla3)==null?void 0:Ne.assets)??I,St="1710090247320",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",At="sveltekit:pageurl",j="sveltekit:history",F="sveltekit:navigation",K={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function Fe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ge(){return{x:pageXOffset,y:pageYOffset}}function N(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Re={...K,"":K.hover};function Ge(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function He(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ge(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||te(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(n==null?void 0:n.origin)===q&&e.hasAttribute("download");return{url:n,external:a,target:r,download:o}}function Y(e){let t=null,n=null,r=null,a=null,o=null,s=null,i=e;for(;i&&i!==document.documentElement;)r===null&&(r=N(i,"preload-code")),a===null&&(a=N(i,"preload-data")),t===null&&(t=N(i,"keepfocus")),n===null&&(n=N(i,"noscroll")),o===null&&(o=N(i,"reload")),s===null&&(s=N(i,"replacestate")),i=Ge(i);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Re[r??"off"],preload_data:Re[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(s)}}function Ie(e){const t=de(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function o(s){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&s(i=c)})}return{notify:r,set:a,subscribe:o}}function Rt(){const{set:e,subscribe:t}=de(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==St;return s&&(e(!0),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function te(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const It=-1,Lt=-2,Pt=-3,Tt=-4,Ut=-5,xt=-6;function Nt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,s=!1){if(o===It)return;if(o===Pt)return NaN;if(o===Tt)return 1/0;if(o===Ut)return-1/0;if(o===xt)return-0;if(s)throw new Error("Invalid input");if(o in r)return r[o];const i=n[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const c=i[0],f=t==null?void 0:t[c];if(f)return r[o]=f(a(i[1]));switch(c){case"Date":r[o]=new Date(i[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Dt="x-sveltekit-invalidated",$t="x-sveltekit-trailing-slash";function W(e){return e instanceof ee||e instanceof he?e.status:500}function Ct(e){return e instanceof he?e.text:"Internal Error"}const x=De(Ce)??{},G=De($e)??{},T={url:Ie({}),page:Ie({}),navigating:de(null),updated:Rt()};function me(e){x[e]=ge()}function Vt(e,t){let n=e+1;for(;x[n];)delete x[n],n+=1;for(n=t+1;G[n];)delete G[n],n+=1}function D(e){return location.href=e.href,new Promise(()=>{})}function Le(){}let ne,fe,z,L,ue,$;const qe=[],J=[];let P=null;const Be=[],Ft=[];let O=[],w={branch:[],error:null,url:null},_e=!1,X=!1,Pe=!0,H=!1,C=!1,Ke=!1,ye=!1,we,k,A,R,Z;async function Zt(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),$=e,ne=Et(e),L=document.documentElement,ue=t,fe=e.nodes[0],z=e.nodes[1],fe(),z(),k=(a=history.state)==null?void 0:a[j],A=(o=history.state)==null?void 0:o[F],k||(k=A=Date.now(),history.replaceState({...history.state,[j]:k,[F]:A},""));const r=x[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(ue,n):Bt(location.href,{replaceState:!0}),Kt()}function Ye(e){J.some(t=>t==null?void 0:t.snapshot)&&(G[e]=J.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function We(e){var t;(t=G[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=J[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){me(k),Ae(Ce,x),Ye(A),Ae($e,G)}async function ze(e,t,n,r){return B({type:"goto",url:Fe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ye=!0)}})}async function Gt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ce(e){const t=ne.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,we=new $.root({target:t,props:{...e.props,stores:T,components:J},hydrate:!0}),We(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};O.forEach(o=>o(r)),X=!0}async function Q({url:e,params:t,branch:n,status:r,error:a,route:o,form:s}){let i="never";if(I&&(e.pathname===I||e.pathname===I+"/"))i="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(i=d.slash);e.pathname=ot(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:jt(n).map(d=>d.node.component),page:R}};s!==void 0&&(c.props.form=s);let f={},u=!R,h=0;for(let d=0;d(i&&(c.route=!0),l[_])}),params:new Proxy(r,{get:(l,_)=>(i&&c.params.add(_),l[_])}),data:(o==null?void 0:o.data)??null,url:lt(n,()=>{i&&(c.url=!0)},l=>{i&&c.search_params.add(l)}),async fetch(l,_){let v;l instanceof Request?(v=l.url,_={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,..._}):v=l;const S=new URL(v,n);return i&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),X?mt(v,S.href,_):gt(v,_)},setHeaders:()=>{},depends:d,parent(){return i&&(c.parent=!0),t()},untrack(l){i=!1;try{return l()}finally{i=!0}}};s=await f.universal.load.call(null,m)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:s,uses:c}:null,data:s??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ue(e,t,n,r,a,o){if(ye)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(o[s]!==w.params[s])return!0;for(const s of a.dependencies)if(qe.some(i=>i(new URL(s))))return!0;return!1}function be(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Ht(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(s=>o.includes(s))&&o.every(s=>a.includes(s))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:s,leaf:i}=a,c=[...s,i];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let f=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Ht(w.url,n);let d=!1;const m=c.map((p,y)=>{var U;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Ue(d,h,u,g,(U=b.server)==null?void 0:U.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{f=await tt(n,m)}catch(p){return ae({status:W(p),error:await M(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(f.type==="redirect")return f}const l=f==null?void 0:f.nodes;let _=!1;const v=c.map(async(p,y)=>{var re;if(!p)return;const b=w.branch[y],E=l==null?void 0:l[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Ue(_,h,u,g,(re=b.universal)==null?void 0:re.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ve({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Se;const ke={};for(let oe=0;oe{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:be(o)}),c={node:await z(),loader:z,universal:null,server:null,data:null};return await Q({url:n,params:a,branch:[i,c],status:e,error:t,route:null})}function Ee(e,t){if(!e||te(e,I))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of ne){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:st(o),url:e}}}function Ze(e){return it(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=at(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const s={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||Be.forEach(i=>i(s)),a?null:o}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:s={},redirect_count:i=0,nav_token:c={},accept:f=Le,block:u=Le}){const h=Ee(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;f(),H=!0,X&&T.navigating.set(g.navigation),Z=c;let l=h&&await Xe(h);if(!l){if(te(t,I))return await D(t);l=await et(t,{id:null},await M(new he(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,Z!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(i>=20)l=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return ze(new URL(l.location,t).href,{},i+1,c),!1;else l.props.page.status>=400&&await T.updated.check()&&await D(t);if(qe.length=0,ye=!1,me(d),Ye(m),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),s=n?n.state:s,!n){const p=o?0:1,y={[j]:k+=p,[F]:A+=p,[Ve]:s};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Vt(k,A)}if(P=null,l.props.page.state=s,X){w=l.state,l.props.page&&(l.props.page.url=t);const p=(await Promise.all(Ft.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){O=O.filter(b=>!p.includes(b))};p.push(y),O.push(...p)}we.$set(l.props),Ke=!0}else Je(l,ue);const{activeElement:_}=document;await rt();const v=n?n.scroll:a?ge():null;if(Pe){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&Wt(),Pe=!0,l.props.page&&(R=l.props.page),H=!1,e==="popstate"&&We(A),g.fulfil(void 0),O.forEach(p=>p(g.navigation)),T.navigating.set(null)}async function et(e,t,n,r){return e.origin===q&&e.pathname===location.pathname&&!_e?await ae({status:r,error:n,url:e,route:t}):await D(e)}function qt(){let e;L.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{r(s,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ce(s.target.href),n.unobserve(s.target))},{threshold:0});function r(o,s){const i=He(o,L);if(!i)return;const{url:c,external:f,download:u}=le(i,I);if(f||u)return;const h=Y(i);if(!h.reload)if(s<=h.preload_data){const g=Ee(c,!1);g&&Gt(g)}else s<=h.preload_code&&ce(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:s,external:i,download:c}=le(o,I);if(i||c)continue;const f=Y(o);f.reload||(f.preload_code===K.viewport&&n.observe(o),f.preload_code===K.eager&&ce(s.pathname))}}O.push(a),a()}function M(e,t){if(e instanceof ee)return e.body;const n=W(e),r=Ct(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bt(e,t={}){return e=Fe(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):ze(e,t,0)}function Kt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=at(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Be.forEach(s=>s(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||qt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=He(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:s,download:i}=le(r,I);if(!a)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const c=Y(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===ie(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(C=!0,me(k),e(a),!c.replace_state)return;C=!1}n.preventDefault(),B({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(te(s,I))return;const i=n.target,c=Y(i);if(c.reload)return;n.preventDefault(),n.stopPropagation();const f=new FormData(i),u=a==null?void 0:a.getAttribute("name");u&&f.append(u,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(f).toString(),B({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[j]){const a=n.state[j];if(Z={},a===k)return;const o=x[a],s=n.state[Ve]??{},i=new URL(n.state[At]??location.href),c=n.state[F],f=ie(location)===ie(w.url);if(c===A&&(Ke||f)){e(i),x[k]=ge(),o&&scrollTo(o.x,o.y),s!==R.state&&(R={...R,state:s},we.$set({page:R})),k=a;return}const h=a-k;await B({type:"popstate",url:i,popped:{state:s,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:Z})}else if(!C){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{C&&(C=!1,history.replaceState({...history.state,[j]:++k,[F]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&T.navigating.set(null)});function e(n){w.url=n,T.page.set({...R,url:n}),T.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:s,form:i}){_e=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ee(c,!1)||{});let f;try{const u=r.map(async(d,m)=>{const l=s[m];return l!=null&&l.uses&&(l.uses=nt(l.uses)),ve({loader:$.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await je(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ee(r.status,o)}return new Promise(async o=>{var h;const s=new Map,i=r.body.getReader(),c=new TextDecoder;function f(g){return Nt(g,{Promise:d=>new Promise((m,l)=>{s.set(d,{fulfil:m,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await i.read();if(g&&!u)break;for(u+=!d&&u?` -`:c.decode(d,{stream:!0});;){const m=u.indexOf(` -`);if(m===-1)break;const l=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=nt(_.uses),_.data=f(_.data))}),o(l);else if(l.type==="chunk"){const{id:_,data:v,error:S}=l,p=s.get(_);s.delete(_),S?p.reject(f(S)):p.fulfil(f(v))}}}})}function nt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Wt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((f=t==null?void 0:t.route)==null?void 0:f.id)??null},url:n},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}export{Zt as a,Bt as g,T as s}; diff --git a/docs/_app/immutable/chunks/entry.k7CtjUtt.js b/docs/_app/immutable/chunks/entry.k7CtjUtt.js new file mode 100644 index 00000000..c79ab180 --- /dev/null +++ b/docs/_app/immutable/chunks/entry.k7CtjUtt.js @@ -0,0 +1,3 @@ +import{G as rt}from"./scheduler.P37s_KnH.js";import{w as de}from"./index.Kwf8FJOX.js";import{H as ee,S as he,R as je}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function it(e){return e.split("%25").map(decodeURI).join("%25")}function st(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ie({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return i=>(n(i),a[o](i));t();const s=Reflect.get(a,o);return typeof s=="function"?s.bind(a):s}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&V.delete(pe(e)),Oe(e,t));const V=new Map;function gt(e,t){const n=pe(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&V.set(n,{body:a,init:o,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function mt(e,t,n){if(V.size>0){const r=pe(e,n),a=V.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return se(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return se(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=_t.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?f===1&&s[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return se(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),o=a.filter(i=>i!==void 0);let s=0;for(let i=0;iu).join("/"),s=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const u=t[i+1],h=a[i+1];u&&!u.rest&&u.optional&&h&&c.chained&&(s=0),!u&&!h&&Object.keys(r).length===o.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function se(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([i,[c,f,u]])=>{const{pattern:h,params:g}=yt(i),d={id:i,exec:m=>{const l=h.exec(m);if(l)return bt(l,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...f||[]].map(s),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function s(i){return i===void 0?i:[a.has(i),e[i]]}}function De(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var xe;const I=((xe=globalThis.__sveltekit_1njxtug)==null?void 0:xe.base)??"";var Ne;const kt=((Ne=globalThis.__sveltekit_1njxtug)==null?void 0:Ne.assets)??I,St="1710090568833",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",At="sveltekit:pageurl",O="sveltekit:history",F="sveltekit:navigation",K={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function Fe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ge(){return{x:pageXOffset,y:pageYOffset}}function N(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Re={...K,"":K.hover};function Ge(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function He(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ge(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||te(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(n==null?void 0:n.origin)===q&&e.hasAttribute("download");return{url:n,external:a,target:r,download:o}}function Y(e){let t=null,n=null,r=null,a=null,o=null,s=null,i=e;for(;i&&i!==document.documentElement;)r===null&&(r=N(i,"preload-code")),a===null&&(a=N(i,"preload-data")),t===null&&(t=N(i,"keepfocus")),n===null&&(n=N(i,"noscroll")),o===null&&(o=N(i,"reload")),s===null&&(s=N(i,"replacestate")),i=Ge(i);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Re[r??"off"],preload_data:Re[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(s)}}function Ie(e){const t=de(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function o(s){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&s(i=c)})}return{notify:r,set:a,subscribe:o}}function Rt(){const{set:e,subscribe:t}=de(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==St;return s&&(e(!0),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function te(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const It=-1,Lt=-2,Pt=-3,Tt=-4,Ut=-5,xt=-6;function Nt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,s=!1){if(o===It)return;if(o===Pt)return NaN;if(o===Tt)return 1/0;if(o===Ut)return-1/0;if(o===xt)return-0;if(s)throw new Error("Invalid input");if(o in r)return r[o];const i=n[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const c=i[0],f=t==null?void 0:t[c];if(f)return r[o]=f(a(i[1]));switch(c){case"Date":r[o]=new Date(i[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Dt="x-sveltekit-invalidated",$t="x-sveltekit-trailing-slash";function W(e){return e instanceof ee||e instanceof he?e.status:500}function Ct(e){return e instanceof he?e.text:"Internal Error"}const x=De(Ce)??{},G=De($e)??{},T={url:Ie({}),page:Ie({}),navigating:de(null),updated:Rt()};function me(e){x[e]=ge()}function Vt(e,t){let n=e+1;for(;x[n];)delete x[n],n+=1;for(n=t+1;G[n];)delete G[n],n+=1}function D(e){return location.href=e.href,new Promise(()=>{})}function Le(){}let ne,fe,z,L,ue,$;const qe=[],J=[];let P=null;const Be=[],Ft=[];let j=[],w={branch:[],error:null,url:null},_e=!1,X=!1,Pe=!0,H=!1,C=!1,Ke=!1,ye=!1,we,k,A,R,Z;async function Zt(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),$=e,ne=Et(e),L=document.documentElement,ue=t,fe=e.nodes[0],z=e.nodes[1],fe(),z(),k=(a=history.state)==null?void 0:a[O],A=(o=history.state)==null?void 0:o[F],k||(k=A=Date.now(),history.replaceState({...history.state,[O]:k,[F]:A},""));const r=x[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(ue,n):Bt(location.href,{replaceState:!0}),Kt()}function Ye(e){J.some(t=>t==null?void 0:t.snapshot)&&(G[e]=J.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function We(e){var t;(t=G[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=J[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){me(k),Ae(Ce,x),Ye(A),Ae($e,G)}async function ze(e,t,n,r){return B({type:"goto",url:Fe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ye=!0)}})}async function Gt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ce(e){const t=ne.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,we=new $.root({target:t,props:{...e.props,stores:T,components:J},hydrate:!0}),We(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(o=>o(r)),X=!0}async function Q({url:e,params:t,branch:n,status:r,error:a,route:o,form:s}){let i="never";if(I&&(e.pathname===I||e.pathname===I+"/"))i="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(i=d.slash);e.pathname=ot(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ot(n).map(d=>d.node.component),page:R}};s!==void 0&&(c.props.form=s);let f={},u=!R,h=0;for(let d=0;d(i&&(c.route=!0),l[_])}),params:new Proxy(r,{get:(l,_)=>(i&&c.params.add(_),l[_])}),data:(o==null?void 0:o.data)??null,url:lt(n,()=>{i&&(c.url=!0)},l=>{i&&c.search_params.add(l)}),async fetch(l,_){let v;l instanceof Request?(v=l.url,_={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,..._}):v=l;const S=new URL(v,n);return i&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),X?mt(v,S.href,_):gt(v,_)},setHeaders:()=>{},depends:d,parent(){return i&&(c.parent=!0),t()},untrack(l){i=!1;try{return l()}finally{i=!0}}};s=await f.universal.load.call(null,m)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:s,uses:c}:null,data:s??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ue(e,t,n,r,a,o){if(ye)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(o[s]!==w.params[s])return!0;for(const s of a.dependencies)if(qe.some(i=>i(new URL(s))))return!0;return!1}function be(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Ht(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(s=>o.includes(s))&&o.every(s=>a.includes(s))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:s,leaf:i}=a,c=[...s,i];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let f=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Ht(w.url,n);let d=!1;const m=c.map((p,y)=>{var U;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Ue(d,h,u,g,(U=b.server)==null?void 0:U.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{f=await tt(n,m)}catch(p){return ae({status:W(p),error:await M(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(f.type==="redirect")return f}const l=f==null?void 0:f.nodes;let _=!1;const v=c.map(async(p,y)=>{var re;if(!p)return;const b=w.branch[y],E=l==null?void 0:l[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Ue(_,h,u,g,(re=b.universal)==null?void 0:re.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ve({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Se;const ke={};for(let oe=0;oe{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:be(o)}),c={node:await z(),loader:z,universal:null,server:null,data:null};return await Q({url:n,params:a,branch:[i,c],status:e,error:t,route:null})}function Ee(e,t){if(!e||te(e,I))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of ne){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:st(o),url:e}}}function Ze(e){return it(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=at(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const s={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||Be.forEach(i=>i(s)),a?null:o}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:s={},redirect_count:i=0,nav_token:c={},accept:f=Le,block:u=Le}){const h=Ee(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;f(),H=!0,X&&T.navigating.set(g.navigation),Z=c;let l=h&&await Xe(h);if(!l){if(te(t,I))return await D(t);l=await et(t,{id:null},await M(new he(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,Z!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(i>=20)l=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return ze(new URL(l.location,t).href,{},i+1,c),!1;else l.props.page.status>=400&&await T.updated.check()&&await D(t);if(qe.length=0,ye=!1,me(d),Ye(m),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),s=n?n.state:s,!n){const p=o?0:1,y={[O]:k+=p,[F]:A+=p,[Ve]:s};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Vt(k,A)}if(P=null,l.props.page.state=s,X){w=l.state,l.props.page&&(l.props.page.url=t);const p=(await Promise.all(Ft.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){j=j.filter(b=>!p.includes(b))};p.push(y),j.push(...p)}we.$set(l.props),Ke=!0}else Je(l,ue);const{activeElement:_}=document;await rt();const v=n?n.scroll:a?ge():null;if(Pe){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&Wt(),Pe=!0,l.props.page&&(R=l.props.page),H=!1,e==="popstate"&&We(A),g.fulfil(void 0),j.forEach(p=>p(g.navigation)),T.navigating.set(null)}async function et(e,t,n,r){return e.origin===q&&e.pathname===location.pathname&&!_e?await ae({status:r,error:n,url:e,route:t}):await D(e)}function qt(){let e;L.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{r(s,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ce(s.target.href),n.unobserve(s.target))},{threshold:0});function r(o,s){const i=He(o,L);if(!i)return;const{url:c,external:f,download:u}=le(i,I);if(f||u)return;const h=Y(i);if(!h.reload)if(s<=h.preload_data){const g=Ee(c,!1);g&&Gt(g)}else s<=h.preload_code&&ce(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:s,external:i,download:c}=le(o,I);if(i||c)continue;const f=Y(o);f.reload||(f.preload_code===K.viewport&&n.observe(o),f.preload_code===K.eager&&ce(s.pathname))}}j.push(a),a()}function M(e,t){if(e instanceof ee)return e.body;const n=W(e),r=Ct(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bt(e,t={}){return e=Fe(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):ze(e,t,0)}function Kt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=at(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Be.forEach(s=>s(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||qt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=He(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:s,download:i}=le(r,I);if(!a)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const c=Y(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===ie(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(C=!0,me(k),e(a),!c.replace_state)return;C=!1}n.preventDefault(),B({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(te(s,I))return;const i=n.target,c=Y(i);if(c.reload)return;n.preventDefault(),n.stopPropagation();const f=new FormData(i),u=a==null?void 0:a.getAttribute("name");u&&f.append(u,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(f).toString(),B({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[O]){const a=n.state[O];if(Z={},a===k)return;const o=x[a],s=n.state[Ve]??{},i=new URL(n.state[At]??location.href),c=n.state[F],f=ie(location)===ie(w.url);if(c===A&&(Ke||f)){e(i),x[k]=ge(),o&&scrollTo(o.x,o.y),s!==R.state&&(R={...R,state:s},we.$set({page:R})),k=a;return}const h=a-k;await B({type:"popstate",url:i,popped:{state:s,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:Z})}else if(!C){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{C&&(C=!1,history.replaceState({...history.state,[O]:++k,[F]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&T.navigating.set(null)});function e(n){w.url=n,T.page.set({...R,url:n}),T.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:s,form:i}){_e=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ee(c,!1)||{});let f;try{const u=r.map(async(d,m)=>{const l=s[m];return l!=null&&l.uses&&(l.uses=nt(l.uses)),ve({loader:$.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await Oe(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ee(r.status,o)}return new Promise(async o=>{var h;const s=new Map,i=r.body.getReader(),c=new TextDecoder;function f(g){return Nt(g,{Promise:d=>new Promise((m,l)=>{s.set(d,{fulfil:m,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await i.read();if(g&&!u)break;for(u+=!d&&u?` +`:c.decode(d,{stream:!0});;){const m=u.indexOf(` +`);if(m===-1)break;const l=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=nt(_.uses),_.data=f(_.data))}),o(l);else if(l.type==="chunk"){const{id:_,data:v,error:S}=l,p=s.get(_);s.delete(_),S?p.reject(f(S)):p.fulfil(f(v))}}}})}function nt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Wt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((f=t==null?void 0:t.route)==null?void 0:f.id)??null},url:n},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}export{Zt as a,Bt as g,T as s}; diff --git a/docs/_app/immutable/chunks/stores.5_u9SQP3.js b/docs/_app/immutable/chunks/stores.PauZgD8C.js similarity index 72% rename from docs/_app/immutable/chunks/stores.5_u9SQP3.js rename to docs/_app/immutable/chunks/stores.PauZgD8C.js index 6d9676b8..b91ae87f 100644 --- a/docs/_app/immutable/chunks/stores.5_u9SQP3.js +++ b/docs/_app/immutable/chunks/stores.PauZgD8C.js @@ -1 +1 @@ -import{s as e}from"./entry.O4gFZlXI.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; +import{s as e}from"./entry.k7CtjUtt.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/docs/_app/immutable/entry/app.pEfIXzME.js b/docs/_app/immutable/entry/app.zQBYankm.js similarity index 88% rename from docs/_app/immutable/entry/app.pEfIXzME.js rename to docs/_app/immutable/entry/app.zQBYankm.js index 1e9d04b1..bfa71035 100644 --- a/docs/_app/immutable/entry/app.pEfIXzME.js +++ b/docs/_app/immutable/entry/app.zQBYankm.js @@ -1,7 +1,7 @@ -import{s as C,a as U,E as h,g as q,i as E,f as g,D as j,F,e as G,c as M,b as W,u as D,A as p,t as z,d as H,j as J,B as A,w as k,G as K}from"../chunks/scheduler.P37s_KnH.js";import{S as Q,i as X,a as w,e as L,t as b,g as y,c as v,b as I,m as R,d as P}from"../chunks/index.GooPGtyi.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},O={},d=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in O)return;O[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let u=c.length-1;u>=0;u--){const m=c[u];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((u,m)=>{o.addEventListener("load",u),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[12](null),e&&P(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[11](null),e&&P(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[10](null),e&&P(e,t)}}}function T(a){let e,n=a[6]&&V(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=M(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=W(e);n&&n.l(s),s.forEach(g),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),p(e,"position","absolute"),p(e,"left","0"),p(e,"top","0"),p(e,"clip","rect(0 0 0 0)"),p(e,"clip-path","inset(50%)"),p(e,"overflow","hidden"),p(e,"white-space","nowrap"),p(e,"width","1px"),p(e,"height","1px")},m(i,s){E(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=V(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function V(a){let e;return{c(){e=z(a[7])},l(n){e=H(n,a[7])},m(n,i){E(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&g(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,u){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let _=a[5]&&T(a);return{c(){n.c(),i=U(),_&&_.c(),s=h()},l(o){n.l(o),i=q(o),_&&_.l(o),s=h()},m(o,u){r[e].m(o,u),E(o,i,u),_&&_.m(o,u),E(o,s,u),c=!0},p(o,[u]){let m=e;e=l(o),e===m?r[e].p(o,u):(y(),w(r[m],1,1,()=>{r[m]=null}),L(),n=r[e],n?n.p(o,u):(n=r[e]=t[e](o),n.c()),b(n,1),n.m(i.parentNode,i)),o[5]?_?_.p(o,u):(_=T(o),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},i(o){c||(b(n),c=!0)},o(o){w(n),c=!1},d(o){o&&(g(i),g(s)),r[e].d(o),_&&_.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;j(i.page.notify);let o=!1,u=!1,m=null;F(()=>{const f=i.page.subscribe(()=>{o&&(n(6,u=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function N(f){A[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,_=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,_,o,u,m,i,s,N,S,B]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,C,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>d(()=>import("../nodes/0.3oi4C38q.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>d(()=>import("../nodes/1.uR2vfZ3U.js"),__vite__mapDeps([23,3,4,8,6,7,2]),import.meta.url),()=>d(()=>import("../nodes/2.8nbfSQQA.js"),__vite__mapDeps([24,3,4,5,25,12,7,13,11,14,15,16,17,18,19,20,21,26]),import.meta.url),()=>d(()=>import("../nodes/3.-O1aSQ1N.js"),__vite__mapDeps([27,3,4,5,28,12,7,13,14,15,19,20,29,30]),import.meta.url),()=>d(()=>import("../nodes/4.hCWRAUnC.js"),__vite__mapDeps([31,1,2,3,4,32,12,7,5,13,25,28,14,15,19,20,29,33]),import.meta.url),()=>d(()=>import("../nodes/5.7TY5Go6n.js"),__vite__mapDeps([34,1,2,3,4,32,12,7,5,13,25,35,36,11,14,15,16,17,37]),import.meta.url),()=>d(()=>import("../nodes/6.8mKyH2F7.js"),__vite__mapDeps([38,1,2,3,4,32,12,7,5,13,25,35,36,18,19,20,16,21,39]),import.meta.url),()=>d(()=>import("../nodes/7.aR520pKK.js"),__vite__mapDeps([40,1,2,3,4,5,9,10,41]),import.meta.url)],le=[],fe={"/":[2],"/components":[3],"/components/[slug]":[4],"/example-ssr/[slug]":[6],"/example/[slug]":[5],"/guide":[7]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +import{s as C,a as U,E as h,g as q,i as E,f as g,D as j,F,e as G,c as M,b as W,u as D,A as p,t as z,d as H,j as J,B as A,w as k,G as K}from"../chunks/scheduler.P37s_KnH.js";import{S as Q,i as X,a as w,e as L,t as b,g as y,c as v,b as I,m as R,d as P}from"../chunks/index.GooPGtyi.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},O={},d=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in O)return;O[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let u=c.length-1;u>=0;u--){const m=c[u];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((u,m)=>{o.addEventListener("load",u),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[12](null),e&&P(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[11](null),e&&P(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){y();const l=e;w(l.$$.fragment,1,0,()=>{P(l,1)}),L()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),b(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&b(e.$$.fragment,t),i=!0)},o(t){e&&w(e.$$.fragment,t),i=!1},d(t){t&&g(n),a[10](null),e&&P(e,t)}}}function T(a){let e,n=a[6]&&V(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=M(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=W(e);n&&n.l(s),s.forEach(g),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),p(e,"position","absolute"),p(e,"left","0"),p(e,"top","0"),p(e,"clip","rect(0 0 0 0)"),p(e,"clip-path","inset(50%)"),p(e,"overflow","hidden"),p(e,"white-space","nowrap"),p(e,"width","1px"),p(e,"height","1px")},m(i,s){E(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=V(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function V(a){let e;return{c(){e=z(a[7])},l(n){e=H(n,a[7])},m(n,i){E(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&g(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,u){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let _=a[5]&&T(a);return{c(){n.c(),i=U(),_&&_.c(),s=h()},l(o){n.l(o),i=q(o),_&&_.l(o),s=h()},m(o,u){r[e].m(o,u),E(o,i,u),_&&_.m(o,u),E(o,s,u),c=!0},p(o,[u]){let m=e;e=l(o),e===m?r[e].p(o,u):(y(),w(r[m],1,1,()=>{r[m]=null}),L(),n=r[e],n?n.p(o,u):(n=r[e]=t[e](o),n.c()),b(n,1),n.m(i.parentNode,i)),o[5]?_?_.p(o,u):(_=T(o),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},i(o){c||(b(n),c=!0)},o(o){w(n),c=!1},d(o){o&&(g(i),g(s)),r[e].d(o),_&&_.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;j(i.page.notify);let o=!1,u=!1,m=null;F(()=>{const f=i.page.subscribe(()=>{o&&(n(6,u=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function N(f){A[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,_=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,_,o,u,m,i,s,N,S,B]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,C,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>d(()=>import("../nodes/0.ES6wwIFu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>d(()=>import("../nodes/1.iKVjZEcc.js"),__vite__mapDeps([23,3,4,8,6,7,2]),import.meta.url),()=>d(()=>import("../nodes/2.NxZIIYNP.js"),__vite__mapDeps([24,3,4,5,25,12,7,13,11,14,15,16,17,18,19,20,21,26]),import.meta.url),()=>d(()=>import("../nodes/3.-O1aSQ1N.js"),__vite__mapDeps([27,3,4,5,28,12,7,13,14,15,19,20,29,30]),import.meta.url),()=>d(()=>import("../nodes/4.hCWRAUnC.js"),__vite__mapDeps([31,1,2,3,4,32,12,7,5,13,25,28,14,15,19,20,29,33]),import.meta.url),()=>d(()=>import("../nodes/5.fyFbRdmr.js"),__vite__mapDeps([34,1,2,3,4,32,12,7,5,13,25,35,36,11,14,15,16,17,37]),import.meta.url),()=>d(()=>import("../nodes/6.9ekSBL7L.js"),__vite__mapDeps([38,1,2,3,4,32,12,7,5,13,25,35,36,18,19,20,16,21,39]),import.meta.url),()=>d(()=>import("../nodes/7.aR520pKK.js"),__vite__mapDeps([40,1,2,3,4,5,9,10,41]),import.meta.url)],le=[],fe={"/":[2],"/components":[3],"/components/[slug]":[4],"/example-ssr/[slug]":[6],"/example/[slug]":[5],"/guide":[7]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["../nodes/0.3oi4C38q.js","../chunks/index.oiCz_B55.js","../chunks/control.pJ1mnnAb.js","../chunks/scheduler.P37s_KnH.js","../chunks/index.GooPGtyi.js","../chunks/each.zMdpk9aP.js","../chunks/entry.O4gFZlXI.js","../chunks/index.Kwf8FJOX.js","../chunks/stores.5_u9SQP3.js","../chunks/GuideContents.ryhBIpq-.js","../assets/GuideContents.eeIw4edl.css","../chunks/_examples.sYS4I3XL.js","../chunks/Brush.html.I1clC5X0.js","../assets/Brush.WOb55UIa.css","../chunks/dots.plnXAFy8.js","../assets/dots.QxBSrjDD.css","../chunks/pointsFour.fzEDaS5G.js","../assets/_examples.I60mRfSI.css","../chunks/_examples_ssr.B2SUOK7Z.js","../chunks/ClevelandDotPlot.percent-range.html.BOdAxcUZ.js","../assets/ClevelandDotPlot.percent-range.qbmqn9wU.css","../assets/_examples_ssr.__jtvDKf.css","../assets/0.BdUKNY1T.css","../nodes/1.uR2vfZ3U.js","../nodes/2.8nbfSQQA.js","../chunks/hljsDefineSvelte.U5_GHsKG.js","../assets/2.cNkqmLdY.css","../nodes/3.-O1aSQ1N.js","../chunks/_components.n4g24P3x.js","../assets/_components.uMyg-Mkn.css","../assets/3.8KVvvJSU.css","../nodes/4.hCWRAUnC.js","../chunks/downloadBlob.5w7X7G5B.js","../assets/4.nfVJSDK7.css","../nodes/5.7TY5Go6n.js","../chunks/cleanTitle.QG-RcJPj.js","../assets/cleanTitle.g9qNC6PL.css","../assets/5.L1iD5KWO.css","../nodes/6.8mKyH2F7.js","../assets/6.tv_A3Rsk.css","../nodes/7.aR520pKK.js","../assets/7.EaB1AJU9.css"] + __vite__mapDeps.viteFileDeps = ["../nodes/0.ES6wwIFu.js","../chunks/index.oiCz_B55.js","../chunks/control.pJ1mnnAb.js","../chunks/scheduler.P37s_KnH.js","../chunks/index.GooPGtyi.js","../chunks/each.zMdpk9aP.js","../chunks/entry.k7CtjUtt.js","../chunks/index.Kwf8FJOX.js","../chunks/stores.PauZgD8C.js","../chunks/GuideContents.ryhBIpq-.js","../assets/GuideContents.eeIw4edl.css","../chunks/_examples.DJO-zfaW.js","../chunks/Brush.html.I1clC5X0.js","../assets/Brush.WOb55UIa.css","../chunks/dots.plnXAFy8.js","../assets/dots.QxBSrjDD.css","../chunks/pointsFour.fzEDaS5G.js","../assets/_examples.I60mRfSI.css","../chunks/_examples_ssr.X0tHL2fc.js","../chunks/ClevelandDotPlot.percent-range.html.BOdAxcUZ.js","../assets/ClevelandDotPlot.percent-range.qbmqn9wU.css","../assets/_examples_ssr.__jtvDKf.css","../assets/0.BdUKNY1T.css","../nodes/1.iKVjZEcc.js","../nodes/2.NxZIIYNP.js","../chunks/hljsDefineSvelte.U5_GHsKG.js","../assets/2.cNkqmLdY.css","../nodes/3.-O1aSQ1N.js","../chunks/_components.n4g24P3x.js","../assets/_components.uMyg-Mkn.css","../assets/3.8KVvvJSU.css","../nodes/4.hCWRAUnC.js","../chunks/downloadBlob.5w7X7G5B.js","../assets/4.nfVJSDK7.css","../nodes/5.fyFbRdmr.js","../chunks/cleanTitle.QG-RcJPj.js","../assets/cleanTitle.g9qNC6PL.css","../assets/5.L1iD5KWO.css","../nodes/6.9ekSBL7L.js","../assets/6.tv_A3Rsk.css","../nodes/7.aR520pKK.js","../assets/7.EaB1AJU9.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/_app/immutable/entry/start.8McKjAmW.js b/docs/_app/immutable/entry/start.8McKjAmW.js deleted file mode 100644 index f85c4802..00000000 --- a/docs/_app/immutable/entry/start.8McKjAmW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.O4gFZlXI.js";export{t as start}; diff --git a/docs/_app/immutable/entry/start.ra6nUAIR.js b/docs/_app/immutable/entry/start.ra6nUAIR.js new file mode 100644 index 00000000..3b821081 --- /dev/null +++ b/docs/_app/immutable/entry/start.ra6nUAIR.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.k7CtjUtt.js";export{t as start}; diff --git a/docs/_app/immutable/nodes/0.3oi4C38q.js b/docs/_app/immutable/nodes/0.ES6wwIFu.js similarity index 97% rename from docs/_app/immutable/nodes/0.3oi4C38q.js rename to docs/_app/immutable/nodes/0.ES6wwIFu.js index 50b18860..5e0ce5cb 100644 --- a/docs/_app/immutable/nodes/0.3oi4C38q.js +++ b/docs/_app/immutable/nodes/0.ES6wwIFu.js @@ -1 +1 @@ -import{e as it}from"../chunks/index.oiCz_B55.js";import{s as Re,B as $e,e as v,a as Y,t as ie,E as De,c as d,b as g,f as i,g as Z,d as re,p as R,u as _,U as w,L as rt,z as oe,i as N,h as f,V as Ue,y as X,j as ct,C as ut,v as qe,r as _t,k as ft,n as xe,W as pt,X as ht,Y as vt,Z as dt,_ as mt}from"../chunks/scheduler.P37s_KnH.js";import{S as et,i as tt,f as gt,c as st,b as lt,m as nt,t as Ie,a as Ne,d as at}from"../chunks/index.GooPGtyi.js";import{e as me}from"../chunks/each.zMdpk9aP.js";import{g as bt}from"../chunks/entry.O4gFZlXI.js";import{p as yt}from"../chunks/stores.5_u9SQP3.js";import{G as kt}from"../chunks/GuideContents.ryhBIpq-.js";import{e as ze}from"../chunks/_examples.sYS4I3XL.js";import{e as He}from"../chunks/_examples_ssr.B2SUOK7Z.js";const Ct=!0,Et="never";async function Ot({fetch:t}){const e=await t("/api/guide-sections.json"),l=await e.json();if(e.status===200)return{sections:l};it(500,`Could not load guide sections: ${l.message}`)}const Ut=Object.freeze(Object.defineProperty({__proto__:null,load:Ot,prerender:Ct,trailingSlash:Et},Symbol.toStringTag,{value:"Module"}));function Be(t,e,l){const a=t.slice();return a[19]=e[l],a}function Xe(t,e,l){const a=t.slice();return a[19]=e[l],a}function Ye(t){let e,l;return{c(){e=v("option"),l=ie("Select..."),this.h()},l(a){e=d(a,"OPTION",{});var n=g(e);l=re(n,"Select..."),n.forEach(i),this.h()},h(){e.__value=t[1],w(e,e.__value),e.disabled=!0},m(a,n){N(a,e,n),f(e,l)},p(a,n){n&2&&(e.__value=a[1],w(e,e.__value))},d(a){a&&i(e)}}}function Ze(t){let e,l;return{c(){e=v("option"),l=ie("Select..."),this.h()},l(a){e=d(a,"OPTION",{});var n=g(e);l=re(n,"Select..."),n.forEach(i),this.h()},h(){e.__value=t[1],w(e,e.__value),e.disabled=!0},m(a,n){N(a,e,n),f(e,l)},p(a,n){n&2&&(e.__value=a[1],w(e,e.__value))},d(a){a&&i(e)}}}function Fe(t){let e,l=t[4](t[19].title)+"",a;return{c(){e=v("option"),a=ie(l),this.h()},l(n){e=d(n,"OPTION",{});var u=g(e);a=re(u,l),u.forEach(i),this.h()},h(){e.__value="/example/"+t[19].slug,w(e,e.__value)},m(n,u){N(n,e,u),f(e,a)},p:xe,d(n){n&&i(e)}}}function Je(t){let e,l=t[4](t[19].title)+"",a;return{c(){e=v("option"),a=ie(l),this.h()},l(n){e=d(n,"OPTION",{});var u=g(e);a=re(u,l),u.forEach(i),this.h()},h(){e.__value="/example-ssr/"+t[19].slug,w(e,e.__value)},m(n,u){N(n,e,u),f(e,a)},p:xe,d(n){n&&i(e)}}}function It(t){let e,l,a,n,u,r=t[2]?"Close":"Menu",o,p,O,A,_e="Layer Cake",$,D,H,m,ce=t[1].startsWith("/components"),x,ue=t[1].startsWith("/guide"),S,I="All",U,T,Se="Client-side",j,P,Te="Server-side",fe,L,M,ee,W,F,Pe="Component gallery",J,Le="Components",pe,ge,te,q,be,he,ye,K,we='',ke,se,z,Ce,ve,V,Ee,Ae,k=ce&&Ye(t),C=ue&&Ze(t),le=me(ze.slice().sort(Ke)),b=[];for(let s=0;sgt(z,"open",ot)),{c(){e=v("div"),a=Y(),n=v("div"),u=v("span"),o=ie(r),O=Y(),A=v("a"),A.textContent=_e,$=Y(),D=v("ul"),H=v("li"),m=v("select"),k&&k.c(),x=De(),C&&C.c(),S=v("option"),S.textContent=I,U=v("option"),T=v("option"),T.textContent=Se;for(let s=0;st[12].call(m)),_(H,"class","svelte-6iinyn"),_(D,"class","dropdown svelte-6iinyn"),_(F,"class","wide-name svelte-6iinyn"),_(J,"class","short-name svelte-6iinyn"),_(W,"class",pe=oe(t[1]==="/components"?"active":"")+" svelte-6iinyn"),_(W,"href","/components"),_(ee,"class","svelte-6iinyn"),_(q,"class",he=oe(t[1]==="/guide"?"active":"")+" svelte-6iinyn"),_(q,"href","/guide"),_(te,"class","svelte-6iinyn"),_(K,"class","svelte-6iinyn"),_(M,"class","primary svelte-6iinyn"),_(se,"class","secondary svelte-6iinyn"),_(L,"class",ve=oe(t[2]?"open":"closed")+" svelte-6iinyn")},m(s,c){N(s,e,c),N(s,a,c),N(s,n,c),f(n,u),f(u,o),f(n,O),f(n,A),N(s,$,c),N(s,D,c),f(D,H),f(H,m),k&&k.m(m,null),f(m,x),C&&C.m(m,null),f(m,S),f(m,U),f(m,T);for(let E=0;ECe=!1)),z.$set(E),(!V||c&4&&ve!==(ve=oe(s[2]?"open":"closed")+" svelte-6iinyn"))&&_(L,"class",ve)},i(s){V||(Ie(z.$$.fragment,s),V=!0)},o(s){Ne(z.$$.fragment,s),V=!1},d(s){s&&(i(e),i(a),i(n),i($),i(D),i(fe),i(L)),k&&k.d(),C&&C.d(),qe(b,s),qe(y,s),at(z),t[16](null),Ee=!1,_t(Ae)}}}const Ke=(t,e)=>t.titlet.titlel(9,n=I));let{sections:u}=e,r,o="",p=!1,O;const A=I=>I.split(" (")[0];function _e(){l(2,p=!1),bt(this.value||"/")}function $(){p?setTimeout(()=>{p||l(3,O.scrollTop=0,O)},350):l(3,O.scrollTop=0,O),l(2,p=!p)}const D=()=>l(2,p=!1),H=()=>l(2,p=!1);function m(){o=pt(this),l(1,o),l(8,a),l(9,n),l(7,r)}const ce=()=>l(2,p=!1),x=()=>l(2,p=!1);function ue(I){p=I,l(2,p)}function S(I){$e[I?"unshift":"push"](()=>{O=I,l(3,O)})}return t.$$set=I=>{"sections"in I&&l(0,u=I.sections)},t.$$.update=()=>{t.$$.dirty&512&&l(8,a=n.url.pathname==="/service-worker.js"),t.$$.dirty&896&&(a||(l(7,r=n.url.pathname),r.split("/")[1],l(1,o=`/${r.replace("/","")}`),r.replace(/\/$/,"").split("/").pop()))},[u,o,p,O,A,_e,$,r,a,n,D,H,m,ce,x,ue,S]}class St extends et{constructor(e){super(),tt(this,e,Nt,It,Re,{sections:0})}}function Tt(t){let e,l,a,n;e=new St({props:{sections:t[0].sections}});const u=t[2].default,r=ht(u,t,t[1],null);return{c(){st(e.$$.fragment),l=Y(),a=v("main"),r&&r.c()},l(o){lt(e.$$.fragment,o),l=Z(o),a=d(o,"MAIN",{});var p=g(a);r&&r.l(p),p.forEach(i)},m(o,p){nt(e,o,p),N(o,l,p),N(o,a,p),r&&r.m(a,null),n=!0},p(o,[p]){const O={};p&1&&(O.sections=o[0].sections),e.$set(O),r&&r.p&&(!n||p&2)&&vt(r,u,o,o[1],n?mt(u,o[1],p,null):dt(o[1]),null)},i(o){n||(Ie(e.$$.fragment,o),Ie(r,o),n=!0)},o(o){Ne(e.$$.fragment,o),Ne(r,o),n=!1},d(o){o&&(i(l),i(a)),at(e,o),r&&r.d(o)}}}function Pt(t,e,l){let{$$slots:a={},$$scope:n}=e,{data:u}=e;return t.$$set=r=>{"data"in r&&l(0,u=r.data),"$$scope"in r&&l(1,n=r.$$scope)},[u,n,a]}class qt extends et{constructor(e){super(),tt(this,e,Pt,Tt,Re,{data:0})}}export{qt as component,Ut as universal}; +import{e as it}from"../chunks/index.oiCz_B55.js";import{s as Re,B as $e,e as v,a as Y,t as ie,E as De,c as d,b as g,f as i,g as Z,d as re,p as R,u as _,U as w,L as rt,z as oe,i as N,h as f,V as Ue,y as X,j as ct,C as ut,v as qe,r as _t,k as ft,n as xe,W as pt,X as ht,Y as vt,Z as dt,_ as mt}from"../chunks/scheduler.P37s_KnH.js";import{S as et,i as tt,f as gt,c as st,b as lt,m as nt,t as Ie,a as Ne,d as at}from"../chunks/index.GooPGtyi.js";import{e as me}from"../chunks/each.zMdpk9aP.js";import{g as bt}from"../chunks/entry.k7CtjUtt.js";import{p as yt}from"../chunks/stores.PauZgD8C.js";import{G as kt}from"../chunks/GuideContents.ryhBIpq-.js";import{e as ze}from"../chunks/_examples.DJO-zfaW.js";import{e as He}from"../chunks/_examples_ssr.X0tHL2fc.js";const Ct=!0,Et="never";async function Ot({fetch:t}){const e=await t("/api/guide-sections.json"),l=await e.json();if(e.status===200)return{sections:l};it(500,`Could not load guide sections: ${l.message}`)}const Ut=Object.freeze(Object.defineProperty({__proto__:null,load:Ot,prerender:Ct,trailingSlash:Et},Symbol.toStringTag,{value:"Module"}));function Be(t,e,l){const a=t.slice();return a[19]=e[l],a}function Xe(t,e,l){const a=t.slice();return a[19]=e[l],a}function Ye(t){let e,l;return{c(){e=v("option"),l=ie("Select..."),this.h()},l(a){e=d(a,"OPTION",{});var n=g(e);l=re(n,"Select..."),n.forEach(i),this.h()},h(){e.__value=t[1],w(e,e.__value),e.disabled=!0},m(a,n){N(a,e,n),f(e,l)},p(a,n){n&2&&(e.__value=a[1],w(e,e.__value))},d(a){a&&i(e)}}}function Ze(t){let e,l;return{c(){e=v("option"),l=ie("Select..."),this.h()},l(a){e=d(a,"OPTION",{});var n=g(e);l=re(n,"Select..."),n.forEach(i),this.h()},h(){e.__value=t[1],w(e,e.__value),e.disabled=!0},m(a,n){N(a,e,n),f(e,l)},p(a,n){n&2&&(e.__value=a[1],w(e,e.__value))},d(a){a&&i(e)}}}function Fe(t){let e,l=t[4](t[19].title)+"",a;return{c(){e=v("option"),a=ie(l),this.h()},l(n){e=d(n,"OPTION",{});var u=g(e);a=re(u,l),u.forEach(i),this.h()},h(){e.__value="/example/"+t[19].slug,w(e,e.__value)},m(n,u){N(n,e,u),f(e,a)},p:xe,d(n){n&&i(e)}}}function Je(t){let e,l=t[4](t[19].title)+"",a;return{c(){e=v("option"),a=ie(l),this.h()},l(n){e=d(n,"OPTION",{});var u=g(e);a=re(u,l),u.forEach(i),this.h()},h(){e.__value="/example-ssr/"+t[19].slug,w(e,e.__value)},m(n,u){N(n,e,u),f(e,a)},p:xe,d(n){n&&i(e)}}}function It(t){let e,l,a,n,u,r=t[2]?"Close":"Menu",o,p,O,A,_e="Layer Cake",$,D,H,m,ce=t[1].startsWith("/components"),x,ue=t[1].startsWith("/guide"),S,I="All",U,T,Se="Client-side",j,P,Te="Server-side",fe,L,M,ee,W,F,Pe="Component gallery",J,Le="Components",pe,ge,te,q,be,he,ye,K,we='',ke,se,z,Ce,ve,V,Ee,Ae,k=ce&&Ye(t),C=ue&&Ze(t),le=me(ze.slice().sort(Ke)),b=[];for(let s=0;sgt(z,"open",ot)),{c(){e=v("div"),a=Y(),n=v("div"),u=v("span"),o=ie(r),O=Y(),A=v("a"),A.textContent=_e,$=Y(),D=v("ul"),H=v("li"),m=v("select"),k&&k.c(),x=De(),C&&C.c(),S=v("option"),S.textContent=I,U=v("option"),T=v("option"),T.textContent=Se;for(let s=0;st[12].call(m)),_(H,"class","svelte-6iinyn"),_(D,"class","dropdown svelte-6iinyn"),_(F,"class","wide-name svelte-6iinyn"),_(J,"class","short-name svelte-6iinyn"),_(W,"class",pe=oe(t[1]==="/components"?"active":"")+" svelte-6iinyn"),_(W,"href","/components"),_(ee,"class","svelte-6iinyn"),_(q,"class",he=oe(t[1]==="/guide"?"active":"")+" svelte-6iinyn"),_(q,"href","/guide"),_(te,"class","svelte-6iinyn"),_(K,"class","svelte-6iinyn"),_(M,"class","primary svelte-6iinyn"),_(se,"class","secondary svelte-6iinyn"),_(L,"class",ve=oe(t[2]?"open":"closed")+" svelte-6iinyn")},m(s,c){N(s,e,c),N(s,a,c),N(s,n,c),f(n,u),f(u,o),f(n,O),f(n,A),N(s,$,c),N(s,D,c),f(D,H),f(H,m),k&&k.m(m,null),f(m,x),C&&C.m(m,null),f(m,S),f(m,U),f(m,T);for(let E=0;ECe=!1)),z.$set(E),(!V||c&4&&ve!==(ve=oe(s[2]?"open":"closed")+" svelte-6iinyn"))&&_(L,"class",ve)},i(s){V||(Ie(z.$$.fragment,s),V=!0)},o(s){Ne(z.$$.fragment,s),V=!1},d(s){s&&(i(e),i(a),i(n),i($),i(D),i(fe),i(L)),k&&k.d(),C&&C.d(),qe(b,s),qe(y,s),at(z),t[16](null),Ee=!1,_t(Ae)}}}const Ke=(t,e)=>t.titlet.titlel(9,n=I));let{sections:u}=e,r,o="",p=!1,O;const A=I=>I.split(" (")[0];function _e(){l(2,p=!1),bt(this.value||"/")}function $(){p?setTimeout(()=>{p||l(3,O.scrollTop=0,O)},350):l(3,O.scrollTop=0,O),l(2,p=!p)}const D=()=>l(2,p=!1),H=()=>l(2,p=!1);function m(){o=pt(this),l(1,o),l(8,a),l(9,n),l(7,r)}const ce=()=>l(2,p=!1),x=()=>l(2,p=!1);function ue(I){p=I,l(2,p)}function S(I){$e[I?"unshift":"push"](()=>{O=I,l(3,O)})}return t.$$set=I=>{"sections"in I&&l(0,u=I.sections)},t.$$.update=()=>{t.$$.dirty&512&&l(8,a=n.url.pathname==="/service-worker.js"),t.$$.dirty&896&&(a||(l(7,r=n.url.pathname),r.split("/")[1],l(1,o=`/${r.replace("/","")}`),r.replace(/\/$/,"").split("/").pop()))},[u,o,p,O,A,_e,$,r,a,n,D,H,m,ce,x,ue,S]}class St extends et{constructor(e){super(),tt(this,e,Nt,It,Re,{sections:0})}}function Tt(t){let e,l,a,n;e=new St({props:{sections:t[0].sections}});const u=t[2].default,r=ht(u,t,t[1],null);return{c(){st(e.$$.fragment),l=Y(),a=v("main"),r&&r.c()},l(o){lt(e.$$.fragment,o),l=Z(o),a=d(o,"MAIN",{});var p=g(a);r&&r.l(p),p.forEach(i)},m(o,p){nt(e,o,p),N(o,l,p),N(o,a,p),r&&r.m(a,null),n=!0},p(o,[p]){const O={};p&1&&(O.sections=o[0].sections),e.$set(O),r&&r.p&&(!n||p&2)&&vt(r,u,o,o[1],n?mt(u,o[1],p,null):dt(o[1]),null)},i(o){n||(Ie(e.$$.fragment,o),Ie(r,o),n=!0)},o(o){Ne(e.$$.fragment,o),Ne(r,o),n=!1},d(o){o&&(i(l),i(a)),at(e,o),r&&r.d(o)}}}function Pt(t,e,l){let{$$slots:a={},$$scope:n}=e,{data:u}=e;return t.$$set=r=>{"data"in r&&l(0,u=r.data),"$$scope"in r&&l(1,n=r.$$scope)},[u,n,a]}class qt extends et{constructor(e){super(),tt(this,e,Pt,Tt,Re,{data:0})}}export{qt as component,Ut as universal}; diff --git a/docs/_app/immutable/nodes/1.uR2vfZ3U.js b/docs/_app/immutable/nodes/1.iKVjZEcc.js similarity index 92% rename from docs/_app/immutable/nodes/1.uR2vfZ3U.js rename to docs/_app/immutable/nodes/1.iKVjZEcc.js index 786179dc..9ebea22f 100644 --- a/docs/_app/immutable/nodes/1.uR2vfZ3U.js +++ b/docs/_app/immutable/nodes/1.iKVjZEcc.js @@ -1 +1 @@ -import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.P37s_KnH.js";import{S as q,i as y}from"../chunks/index.GooPGtyi.js";import{p as C}from"../chunks/stores.5_u9SQP3.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component}; +import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.P37s_KnH.js";import{S as q,i as y}from"../chunks/index.GooPGtyi.js";import{p as C}from"../chunks/stores.PauZgD8C.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component}; diff --git a/docs/_app/immutable/nodes/2.8nbfSQQA.js b/docs/_app/immutable/nodes/2.NxZIIYNP.js similarity index 98% rename from docs/_app/immutable/nodes/2.8nbfSQQA.js rename to docs/_app/immutable/nodes/2.NxZIIYNP.js index 66130935..154c4e0e 100644 --- a/docs/_app/immutable/nodes/2.8nbfSQQA.js +++ b/docs/_app/immutable/nodes/2.NxZIIYNP.js @@ -1,4 +1,4 @@ -import{s as oe,e as u,a as L,H as ne,o as ie,c as g,f as _,g as S,b as C,p as M,q as ce,u as a,h as o,i as z,n as he,v as Q,w as B,t as te,d as ae,x as ve}from"../chunks/scheduler.P37s_KnH.js";import{S as de,i as pe,t as V,a as D,c as G,b as se,m as J,g as re,d as P,e as le}from"../chunks/index.GooPGtyi.js";import{e as Z}from"../chunks/each.zMdpk9aP.js";import{H as Y,h as ee}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{e as fe}from"../chunks/_examples.sYS4I3XL.js";import{e as me}from"../chunks/_examples_ssr.B2SUOK7Z.js";function ue(p,t,l){const n=p.slice();return n[1]=t[l],n}function ge(p,t,l){const n=p.slice();return n[1]=t[l],n}function _e(p){let t,l,n,h=p[1].title+"",y,H,c,$="Edit",E,e,x,b;var m=p[1].component;function A(s,i){return{}}return m&&(e=B(m,A())),{c(){t=u("div"),l=u("h4"),n=u("a"),y=te(h),H=L(),c=u("a"),c.textContent=$,E=L(),e&&G(e.$$.fragment),x=L(),this.h()},l(s){t=g(s,"DIV",{class:!0});var i=C(t);l=g(i,"H4",{class:!0});var f=C(l);n=g(f,"A",{href:!0,class:!0});var k=C(n);y=ae(k,h),k.forEach(_),H=S(f),c=g(f,"A",{class:!0,href:!0,target:!0,rel:!0,"data-svelte-h":!0}),M(c)!=="svelte-3vfqv2"&&(c.textContent=$),f.forEach(_),E=S(i),e&&se(e.$$.fragment,i),x=S(i),i.forEach(_),this.h()},h(){a(n,"href","/example/"+p[1].slug),a(n,"class","svelte-9objxt"),a(c,"class","edit-repl svelte-9objxt"),a(c,"href","https://svelte.dev/repl/"+p[1].replPath),a(c,"target","_blank"),a(c,"rel","noreferrer"),a(l,"class","title svelte-9objxt"),a(t,"class","gallery-item svelte-9objxt")},m(s,i){z(s,t,i),o(t,l),o(l,n),o(n,y),o(l,H),o(l,c),o(t,E),e&&J(e,t,null),o(t,x),b=!0},p(s,i){if(m!==(m=s[1].component)){if(e){re();const f=e;D(f.$$.fragment,1,0,()=>{P(f,1)}),le()}m?(e=B(m,A()),G(e.$$.fragment),V(e.$$.fragment,1),J(e,t,x)):e=null}},i(s){b||(e&&V(e.$$.fragment,s),b=!0)},o(s){e&&D(e.$$.fragment,s),b=!1},d(s){s&&_(t),e&&P(e)}}}function xe(p){let t,l,n,h=p[1].title+"",y,H,c,$="Edit",E,e,x,b;var m=p[1].component;function A(s,i){return{}}return m&&(e=B(m,A())),{c(){t=u("div"),l=u("h4"),n=u("a"),y=te(h),H=L(),c=u("a"),c.textContent=$,E=L(),e&&G(e.$$.fragment),x=L(),this.h()},l(s){t=g(s,"DIV",{class:!0});var i=C(t);l=g(i,"H4",{class:!0});var f=C(l);n=g(f,"A",{href:!0,class:!0});var k=C(n);y=ae(k,h),k.forEach(_),H=S(f),c=g(f,"A",{class:!0,href:!0,target:!0,rel:!0,"data-svelte-h":!0}),M(c)!=="svelte-3vfqv2"&&(c.textContent=$),f.forEach(_),E=S(i),e&&se(e.$$.fragment,i),x=S(i),i.forEach(_),this.h()},h(){a(n,"href","/example-ssr/"+p[1].slug),a(n,"class","svelte-9objxt"),a(c,"class","edit-repl svelte-9objxt"),a(c,"href","https://svelte.dev/repl/"+p[1].replPath),a(c,"target","_blank"),a(c,"rel","noreferrer"),a(l,"class","title svelte-9objxt"),a(t,"class","gallery-item svelte-9objxt"),ve(t,"scaled",p[1].title.toLowerCase().includes("map"))},m(s,i){z(s,t,i),o(t,l),o(l,n),o(n,y),o(l,H),o(l,c),o(t,E),e&&J(e,t,null),o(t,x),b=!0},p(s,i){if(m!==(m=s[1].component)){if(e){re();const f=e;D(f.$$.fragment,1,0,()=>{P(f,1)}),le()}m?(e=B(m,A()),G(e.$$.fragment),V(e.$$.fragment,1),J(e,t,x)):e=null}},i(s){b||(e&&V(e.$$.fragment,s),b=!0)},o(s){e&&D(e.$$.fragment,s),b=!1},d(s){s&&_(t),e&&P(e)}}}function be(p){let t,l,n,h,y,H='

Layer Cake

',c,$,E='

Layer Cake is a graphics framework for Svelte. It uses the measurements of your target div and your data extents to create scales that stay synced on layout changes. Use these scales to organize multiple, mostly-reusable Svelte components, whether they be SVG, HTML, Canvas or WebGL. Since they all share the same coordinate space, you can build your graphic one layer at a time. It can also be used to easily create responsive graphics server-side that work without JavaScript.

Unlike other libraries, chart components live inside your project, so you have complete control for customization. It also includes some handy helper functions to help format your data into the right shape.

Read the guide, try the starter template or check out the example components. See the examples below and even edit them live. Here's a sample of what the code looks like:

',e,x,b,m,A=Y.highlight(p[0],{language:"svelte"}).value+"",s,i,f,k,W='

Server-side rendering

Svelte makes it easy to render your project server side and Layer Cake has built-in helpers to make it even easier for charts. All of these examples below (except for their canvas components) will load and be responsive without client-side JavaScript. The advantage is that you can see the chart as soon as the page loads, avoiding blank placeholder spaces. HTML charts use percentage-based scales and SVG charts take advanage of certain viewBox and CSS settings that Rich Harris, Svelte's creator, outlined in this blog post.

For shapes that are difficult to render using percentages, such as swoopy arrows, Layer Cake makes it easy to superimpose client-side components that will hydrate once JavaScript is available. See the annotated column example below.

',R,I,q,U=Z(fe),j=[];for(let r=0;r +import{s as oe,e as u,a as L,H as ne,o as ie,c as g,f as _,g as S,b as C,p as M,q as ce,u as a,h as o,i as z,n as he,v as Q,w as B,t as te,d as ae,x as ve}from"../chunks/scheduler.P37s_KnH.js";import{S as de,i as pe,t as V,a as D,c as G,b as se,m as J,g as re,d as P,e as le}from"../chunks/index.GooPGtyi.js";import{e as Z}from"../chunks/each.zMdpk9aP.js";import{H as Y,h as ee}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{e as fe}from"../chunks/_examples.DJO-zfaW.js";import{e as me}from"../chunks/_examples_ssr.X0tHL2fc.js";function ue(p,t,l){const n=p.slice();return n[1]=t[l],n}function ge(p,t,l){const n=p.slice();return n[1]=t[l],n}function _e(p){let t,l,n,h=p[1].title+"",y,H,c,$="Edit",E,e,x,b;var m=p[1].component;function A(s,i){return{}}return m&&(e=B(m,A())),{c(){t=u("div"),l=u("h4"),n=u("a"),y=te(h),H=L(),c=u("a"),c.textContent=$,E=L(),e&&G(e.$$.fragment),x=L(),this.h()},l(s){t=g(s,"DIV",{class:!0});var i=C(t);l=g(i,"H4",{class:!0});var f=C(l);n=g(f,"A",{href:!0,class:!0});var k=C(n);y=ae(k,h),k.forEach(_),H=S(f),c=g(f,"A",{class:!0,href:!0,target:!0,rel:!0,"data-svelte-h":!0}),M(c)!=="svelte-3vfqv2"&&(c.textContent=$),f.forEach(_),E=S(i),e&&se(e.$$.fragment,i),x=S(i),i.forEach(_),this.h()},h(){a(n,"href","/example/"+p[1].slug),a(n,"class","svelte-9objxt"),a(c,"class","edit-repl svelte-9objxt"),a(c,"href","https://svelte.dev/repl/"+p[1].replPath),a(c,"target","_blank"),a(c,"rel","noreferrer"),a(l,"class","title svelte-9objxt"),a(t,"class","gallery-item svelte-9objxt")},m(s,i){z(s,t,i),o(t,l),o(l,n),o(n,y),o(l,H),o(l,c),o(t,E),e&&J(e,t,null),o(t,x),b=!0},p(s,i){if(m!==(m=s[1].component)){if(e){re();const f=e;D(f.$$.fragment,1,0,()=>{P(f,1)}),le()}m?(e=B(m,A()),G(e.$$.fragment),V(e.$$.fragment,1),J(e,t,x)):e=null}},i(s){b||(e&&V(e.$$.fragment,s),b=!0)},o(s){e&&D(e.$$.fragment,s),b=!1},d(s){s&&_(t),e&&P(e)}}}function xe(p){let t,l,n,h=p[1].title+"",y,H,c,$="Edit",E,e,x,b;var m=p[1].component;function A(s,i){return{}}return m&&(e=B(m,A())),{c(){t=u("div"),l=u("h4"),n=u("a"),y=te(h),H=L(),c=u("a"),c.textContent=$,E=L(),e&&G(e.$$.fragment),x=L(),this.h()},l(s){t=g(s,"DIV",{class:!0});var i=C(t);l=g(i,"H4",{class:!0});var f=C(l);n=g(f,"A",{href:!0,class:!0});var k=C(n);y=ae(k,h),k.forEach(_),H=S(f),c=g(f,"A",{class:!0,href:!0,target:!0,rel:!0,"data-svelte-h":!0}),M(c)!=="svelte-3vfqv2"&&(c.textContent=$),f.forEach(_),E=S(i),e&&se(e.$$.fragment,i),x=S(i),i.forEach(_),this.h()},h(){a(n,"href","/example-ssr/"+p[1].slug),a(n,"class","svelte-9objxt"),a(c,"class","edit-repl svelte-9objxt"),a(c,"href","https://svelte.dev/repl/"+p[1].replPath),a(c,"target","_blank"),a(c,"rel","noreferrer"),a(l,"class","title svelte-9objxt"),a(t,"class","gallery-item svelte-9objxt"),ve(t,"scaled",p[1].title.toLowerCase().includes("map"))},m(s,i){z(s,t,i),o(t,l),o(l,n),o(n,y),o(l,H),o(l,c),o(t,E),e&&J(e,t,null),o(t,x),b=!0},p(s,i){if(m!==(m=s[1].component)){if(e){re();const f=e;D(f.$$.fragment,1,0,()=>{P(f,1)}),le()}m?(e=B(m,A()),G(e.$$.fragment),V(e.$$.fragment,1),J(e,t,x)):e=null}},i(s){b||(e&&V(e.$$.fragment,s),b=!0)},o(s){e&&D(e.$$.fragment,s),b=!1},d(s){s&&_(t),e&&P(e)}}}function be(p){let t,l,n,h,y,H='

Layer Cake

',c,$,E='

Layer Cake is a graphics framework for Svelte. It uses the measurements of your target div and your data extents to create scales that stay synced on layout changes. Use these scales to organize multiple, mostly-reusable Svelte components, whether they be SVG, HTML, Canvas or WebGL. Since they all share the same coordinate space, you can build your graphic one layer at a time. It can also be used to easily create responsive graphics server-side that work without JavaScript.

Unlike other libraries, chart components live inside your project, so you have complete control for customization. It also includes some handy helper functions to help format your data into the right shape.

Read the guide, try the starter template or check out the example components. See the examples below and even edit them live. Here's a sample of what the code looks like:

',e,x,b,m,A=Y.highlight(p[0],{language:"svelte"}).value+"",s,i,f,k,W='

Server-side rendering

Svelte makes it easy to render your project server side and Layer Cake has built-in helpers to make it even easier for charts. All of these examples below (except for their canvas components) will load and be responsive without client-side JavaScript. The advantage is that you can see the chart as soon as the page loads, avoiding blank placeholder spaces. HTML charts use percentage-based scales and SVG charts take advanage of certain viewBox and CSS settings that Rich Harris, Svelte's creator, outlined in this blog post.

For shapes that are difficult to render using percentages, such as swoopy arrows, Layer Cake makes it easy to superimpose client-side components that will hydrate once JavaScript is available. See the annotated column example below.

',R,I,q,U=Z(fe),j=[];for(let r=0;r // The library provides a main wrapper component // and a bunch empty layout components... import { LayerCake, Svg, Html, Canvas } from 'layercake'; diff --git a/docs/_app/immutable/nodes/5.7TY5Go6n.js b/docs/_app/immutable/nodes/5.fyFbRdmr.js similarity index 99% rename from docs/_app/immutable/nodes/5.7TY5Go6n.js rename to docs/_app/immutable/nodes/5.fyFbRdmr.js index 8eb436ea..45761b38 100644 --- a/docs/_app/immutable/nodes/5.7TY5Go6n.js +++ b/docs/_app/immutable/nodes/5.fyFbRdmr.js @@ -1 +1 @@ -import{e as Se}from"../chunks/index.oiCz_B55.js";import{s as Ve,w as he,a as P,e as D,t as oe,o as $e,f as v,g as L,c as C,b as I,d as re,u as d,z as me,i as F,h as p,y as W,j as Ee,v as _e,r as De,H as Ce,q as Ie,A as pe}from"../chunks/scheduler.P37s_KnH.js";import{S as He,i as Te,c as x,b as ve,m as ee,a as te,e as qe,t as le,d as ae,g as Me}from"../chunks/index.GooPGtyi.js";import{M as Pe,g as Le}from"../chunks/downloadBlob.5w7X7G5B.js";import{e as Q}from"../chunks/each.zMdpk9aP.js";import{H as se,h as ge}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{D as ze,c as O}from"../chunks/cleanTitle.QG-RcJPj.js";import{e as Ae}from"../chunks/_examples.sYS4I3XL.js";async function Oe({fetch:e,params:l}){const s=`${l.slug}.json`,a=await e(s),o=await a.json();if(a.status===200)return{slug:l.slug,content:o,active:"+page"};Se(500,`Could not load ${s}: ${o.message}`)}const Xe=Object.freeze(Object.defineProperty({__proto__:null,load:Oe},Symbol.toStringTag,{value:"Module"})),{document:ne}=Le;function be(e,l,s){const a=e.slice();return a[13]=l[s],a}function we(e,l,s){const a=e.slice();return a[13]=l[s],a}function ke(e){let l,s,a=e[5](e[1].dek)+"";return{c(){l=D("div"),s=new Ce(!1),this.h()},l(o){l=C(o,"DIV",{class:!0});var u=I(l);s=Ie(u,!1),u.forEach(v),this.h()},h(){s.a=null,d(l,"class","dek svelte-1bjw73r")},m(o,u){F(o,l,u),s.m(a,l)},p(o,u){u&2&&a!==(a=o[5](o[1].dek)+"")&&s.p(a)},d(o){o&&v(l)}}}function ye(e){let l,s=e[13].title+"",a,o,u,r;function i(){return e[9](e[13])}function m(){return e[10](e[13])}return{c(){l=D("li"),a=oe(s),this.h()},l(_){l=C(_,"LI",{class:!0});var E=I(l);a=re(E,s),E.forEach(v),this.h()},h(){d(l,"class",o="tab "+(e[2]===O(e[13].title)?"active":"")+" svelte-1bjw73r")},m(_,E){F(_,l,E),p(l,a),u||(r=[W(l,"click",i),W(l,"keypress",m)],u=!0)},p(_,E){e=_,E&8&&s!==(s=e[13].title+"")&&Ee(a,s),E&12&&o!==(o="tab "+(e[2]===O(e[13].title)?"active":"")+" svelte-1bjw73r")&&d(l,"class",o)},d(_){_&&v(l),u=!1,De(r)}}}function je(e){let l,s,a,o=e[6](e[13].contents,e[13].title)+"",u;return{c(){l=D("div"),s=D("pre"),a=new Ce(!1),u=P(),this.h()},l(r){l=C(r,"DIV",{class:!0,style:!0});var i=I(l);s=C(i,"PRE",{class:!0});var m=I(s);a=Ie(m,!1),m.forEach(v),u=L(i),i.forEach(v),this.h()},h(){a.a=null,d(s,"class","svelte-1bjw73r"),d(l,"class","contents"),pe(l,"display",e[2]===O(e[13].title)?"block":"none")},m(r,i){F(r,l,i),p(l,s),a.m(o,s),p(l,u)},p(r,i){i&8&&o!==(o=r[6](r[13].contents,r[13].title)+"")&&a.p(o),i&12&&pe(l,"display",r[2]===O(r[13].title)?"block":"none")},d(r){r&&v(l)}}}function Be(e){let l,s,a,o,u=e[4].title+"",r,i,m,_,E,H,f,U,T,V,h,j,y,S,X,$,z,Y,G,q,Z,ie;ne.title=l=e[4].title;var B=e[4].component;function ce(t,w){return{}}B&&(f=he(B,ce())),V=new ze({props:{data:e[1],slug:e[0]}});let k=e[1].dek&&ke(e),J=Q(e[3]),g=[];for(let t=0;t{ae(n,1)}),qe()}B?(f=he(B,ce()),x(f.$$.fragment),le(f.$$.fragment,1),ee(f,H,null)):f=null}const c={};if(w&2&&(c.data=t[1]),w&1&&(c.slug=t[0]),V.$set(c),t[1].dek?k?k.p(t,w):(k=ke(t),k.c(),k.m(a,j)):k&&(k.d(1),k=null),w&12){J=Q(t[3]);let n;for(n=0;n{f.set(h.slug,h)});function U(){const h=a.filter(j=>O(j.title)===_)[0].contents;if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",h);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const j=document.createElement("textarea");j.textContent=h,j.style.position="fixed",document.body.appendChild(j),j.select();try{return document.execCommand("copy")}catch(y){return console.warn("Copy to clipboard failed.",y),!1}finally{document.body.removeChild(j)}}}const T=h=>s(2,_=O(h.title)),V=h=>s(2,_=O(h.title));return e.$$set=h=>{"data"in h&&s(8,r=h.data)},e.$$.update=()=>{e.$$.dirty&256&&s(0,{slug:i,content:m,active:_}=r,i,(s(1,m),s(8,r)),(s(2,_),s(8,r))),e.$$.dirty&2&&s(3,a=[m.main].concat(m.components).concat(m.componentModules).concat(m.modules).concat(m.componentComponents).concat(m.jsons).concat(m.csvs)),e.$$.dirty&1&&s(4,o=f.get(i))},[i,m,_,a,o,E,H,U,r,T,V]}class Ye extends He{constructor(l){super(),Te(this,l,Je,Be,Ve,{data:8})}}export{Ye as component,Xe as universal}; +import{e as Se}from"../chunks/index.oiCz_B55.js";import{s as Ve,w as he,a as P,e as D,t as oe,o as $e,f as v,g as L,c as C,b as I,d as re,u as d,z as me,i as F,h as p,y as W,j as Ee,v as _e,r as De,H as Ce,q as Ie,A as pe}from"../chunks/scheduler.P37s_KnH.js";import{S as He,i as Te,c as x,b as ve,m as ee,a as te,e as qe,t as le,d as ae,g as Me}from"../chunks/index.GooPGtyi.js";import{M as Pe,g as Le}from"../chunks/downloadBlob.5w7X7G5B.js";import{e as Q}from"../chunks/each.zMdpk9aP.js";import{H as se,h as ge}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{D as ze,c as O}from"../chunks/cleanTitle.QG-RcJPj.js";import{e as Ae}from"../chunks/_examples.DJO-zfaW.js";async function Oe({fetch:e,params:l}){const s=`${l.slug}.json`,a=await e(s),o=await a.json();if(a.status===200)return{slug:l.slug,content:o,active:"+page"};Se(500,`Could not load ${s}: ${o.message}`)}const Xe=Object.freeze(Object.defineProperty({__proto__:null,load:Oe},Symbol.toStringTag,{value:"Module"})),{document:ne}=Le;function be(e,l,s){const a=e.slice();return a[13]=l[s],a}function we(e,l,s){const a=e.slice();return a[13]=l[s],a}function ke(e){let l,s,a=e[5](e[1].dek)+"";return{c(){l=D("div"),s=new Ce(!1),this.h()},l(o){l=C(o,"DIV",{class:!0});var u=I(l);s=Ie(u,!1),u.forEach(v),this.h()},h(){s.a=null,d(l,"class","dek svelte-1bjw73r")},m(o,u){F(o,l,u),s.m(a,l)},p(o,u){u&2&&a!==(a=o[5](o[1].dek)+"")&&s.p(a)},d(o){o&&v(l)}}}function ye(e){let l,s=e[13].title+"",a,o,u,r;function i(){return e[9](e[13])}function m(){return e[10](e[13])}return{c(){l=D("li"),a=oe(s),this.h()},l(_){l=C(_,"LI",{class:!0});var E=I(l);a=re(E,s),E.forEach(v),this.h()},h(){d(l,"class",o="tab "+(e[2]===O(e[13].title)?"active":"")+" svelte-1bjw73r")},m(_,E){F(_,l,E),p(l,a),u||(r=[W(l,"click",i),W(l,"keypress",m)],u=!0)},p(_,E){e=_,E&8&&s!==(s=e[13].title+"")&&Ee(a,s),E&12&&o!==(o="tab "+(e[2]===O(e[13].title)?"active":"")+" svelte-1bjw73r")&&d(l,"class",o)},d(_){_&&v(l),u=!1,De(r)}}}function je(e){let l,s,a,o=e[6](e[13].contents,e[13].title)+"",u;return{c(){l=D("div"),s=D("pre"),a=new Ce(!1),u=P(),this.h()},l(r){l=C(r,"DIV",{class:!0,style:!0});var i=I(l);s=C(i,"PRE",{class:!0});var m=I(s);a=Ie(m,!1),m.forEach(v),u=L(i),i.forEach(v),this.h()},h(){a.a=null,d(s,"class","svelte-1bjw73r"),d(l,"class","contents"),pe(l,"display",e[2]===O(e[13].title)?"block":"none")},m(r,i){F(r,l,i),p(l,s),a.m(o,s),p(l,u)},p(r,i){i&8&&o!==(o=r[6](r[13].contents,r[13].title)+"")&&a.p(o),i&12&&pe(l,"display",r[2]===O(r[13].title)?"block":"none")},d(r){r&&v(l)}}}function Be(e){let l,s,a,o,u=e[4].title+"",r,i,m,_,E,H,f,U,T,V,h,j,y,S,X,$,z,Y,G,q,Z,ie;ne.title=l=e[4].title;var B=e[4].component;function ce(t,w){return{}}B&&(f=he(B,ce())),V=new ze({props:{data:e[1],slug:e[0]}});let k=e[1].dek&&ke(e),J=Q(e[3]),g=[];for(let t=0;t{ae(n,1)}),qe()}B?(f=he(B,ce()),x(f.$$.fragment),le(f.$$.fragment,1),ee(f,H,null)):f=null}const c={};if(w&2&&(c.data=t[1]),w&1&&(c.slug=t[0]),V.$set(c),t[1].dek?k?k.p(t,w):(k=ke(t),k.c(),k.m(a,j)):k&&(k.d(1),k=null),w&12){J=Q(t[3]);let n;for(n=0;n{f.set(h.slug,h)});function U(){const h=a.filter(j=>O(j.title)===_)[0].contents;if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",h);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const j=document.createElement("textarea");j.textContent=h,j.style.position="fixed",document.body.appendChild(j),j.select();try{return document.execCommand("copy")}catch(y){return console.warn("Copy to clipboard failed.",y),!1}finally{document.body.removeChild(j)}}}const T=h=>s(2,_=O(h.title)),V=h=>s(2,_=O(h.title));return e.$$set=h=>{"data"in h&&s(8,r=h.data)},e.$$.update=()=>{e.$$.dirty&256&&s(0,{slug:i,content:m,active:_}=r,i,(s(1,m),s(8,r)),(s(2,_),s(8,r))),e.$$.dirty&2&&s(3,a=[m.main].concat(m.components).concat(m.componentModules).concat(m.modules).concat(m.componentComponents).concat(m.jsons).concat(m.csvs)),e.$$.dirty&1&&s(4,o=f.get(i))},[i,m,_,a,o,E,H,U,r,T,V]}class Ye extends He{constructor(l){super(),Te(this,l,Je,Be,Ve,{data:8})}}export{Ye as component,Xe as universal}; diff --git a/docs/_app/immutable/nodes/6.8mKyH2F7.js b/docs/_app/immutable/nodes/6.9ekSBL7L.js similarity index 99% rename from docs/_app/immutable/nodes/6.8mKyH2F7.js rename to docs/_app/immutable/nodes/6.9ekSBL7L.js index d1ca3082..6d318817 100644 --- a/docs/_app/immutable/nodes/6.8mKyH2F7.js +++ b/docs/_app/immutable/nodes/6.9ekSBL7L.js @@ -1 +1 @@ -import{e as Se}from"../chunks/index.oiCz_B55.js";import{s as Le,w as he,a as q,e as E,t as oe,o as Ve,f as p,g as M,c as D,b as C,d as re,u,z as me,i as F,h as _,y as De,j as Ce,v as _e,H as Ie,q as $e,A as pe}from"../chunks/scheduler.P37s_KnH.js";import{S as je,i as He,c as Z,b as ve,m as ee,a as te,e as Te,t as le,d as ae,g as qe}from"../chunks/index.GooPGtyi.js";import{M as Me,g as Pe}from"../chunks/downloadBlob.5w7X7G5B.js";import{e as Q}from"../chunks/each.zMdpk9aP.js";import{H as se,h as ge}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{D as ze,c as J}from"../chunks/cleanTitle.QG-RcJPj.js";import{e as xe}from"../chunks/_examples_ssr.B2SUOK7Z.js";async function Ae({fetch:t,params:a}){const s=`${a.slug}.json`,l=await t(s),o=await l.json();if(l.status===200)return{slug:a.slug,content:o,active:"+page"};Se(500,`Could not load ${s}: ${o.message}`)}const We=Object.freeze(Object.defineProperty({__proto__:null,load:Ae},Symbol.toStringTag,{value:"Module"})),{document:ne}=Pe;function we(t,a,s){const l=t.slice();return l[12]=a[s],l}function ke(t,a,s){const l=t.slice();return l[12]=a[s],l}function be(t){let a,s,l=t[5](t[1].dek)+"";return{c(){a=E("div"),s=new Ie(!1),this.h()},l(o){a=D(o,"DIV",{class:!0});var h=C(a);s=$e(h,!1),h.forEach(p),this.h()},h(){s.a=null,u(a,"class","dek svelte-4xax0d")},m(o,h){F(o,a,h),s.m(l,a)},p(o,h){h&2&&l!==(l=o[5](o[1].dek)+"")&&s.p(l)},d(o){o&&p(a)}}}function ye(t){let a,s=t[12].title+"",l,o,h,r;function i(){return t[9](t[12])}return{c(){a=E("li"),l=oe(s),this.h()},l(c){a=D(c,"LI",{class:!0});var v=C(a);l=re(v,s),v.forEach(p),this.h()},h(){u(a,"class",o="tab "+(t[2]===J(t[12].title)?"active":"")+" svelte-4xax0d")},m(c,v){F(c,a,v),_(a,l),h||(r=De(a,"click",i),h=!0)},p(c,v){t=c,v&8&&s!==(s=t[12].title+"")&&Ce(l,s),v&12&&o!==(o="tab "+(t[2]===J(t[12].title)?"active":"")+" svelte-4xax0d")&&u(a,"class",o)},d(c){c&&p(a),h=!1,r()}}}function Ee(t){let a,s,l,o=t[6](t[12].contents,t[12].title)+"",h;return{c(){a=E("div"),s=E("pre"),l=new Ie(!1),h=q(),this.h()},l(r){a=D(r,"DIV",{class:!0,style:!0});var i=C(a);s=D(i,"PRE",{class:!0});var c=C(s);l=$e(c,!1),c.forEach(p),h=M(i),i.forEach(p),this.h()},h(){l.a=null,u(s,"class","svelte-4xax0d"),u(a,"class","contents"),pe(a,"display",t[2]===J(t[12].title)?"block":"none")},m(r,i){F(r,a,i),_(a,s),l.m(o,s),_(a,h)},p(r,i){i&8&&o!==(o=r[6](r[12].contents,r[12].title)+"")&&l.p(o),i&12&&pe(a,"display",r[2]===J(r[12].title)?"block":"none")},d(r){r&&p(a)}}}function Oe(t){let a,s,l,o,h=t[4].title+"",r,i,c,v,R,I,f,z,U,m,g,V,j,$,H,W,S,x,X,G,L,Y,ie;ne.title=a=t[4].title;var A=t[4].component;function ce(e,w){return{}}A&&(f=he(A,ce())),g=new ze({props:{data:t[1],slug:t[0],ssr:!0}});let y=t[1].dek&&be(t),O=Q(t[3]),k=[];for(let e=0;e{ae(n,1)}),Te()}A?(f=he(A,ce()),Z(f.$$.fragment),le(f.$$.fragment,1),ee(f,I,null)):f=null}(!L||w&1&&z!==(z=e[0].toLowerCase()))&&u(I,"data-slug",z);const d={};if(w&2&&(d.data=e[1]),w&1&&(d.slug=e[0]),g.$set(d),e[1].dek?y?y.p(e,w):(y=be(e),y.c(),y.m(l,j)):y&&(y.d(1),y=null),w&12){O=Q(e[3]);let n;for(n=0;n{f.set(m.slug.toLowerCase(),m)});function z(){const m=l.filter(g=>J(g.title)===v)[0].contents;if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",m);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const g=document.createElement("textarea");g.textContent=m,g.style.position="fixed",document.body.appendChild(g),g.select();try{return document.execCommand("copy")}catch(V){return console.warn("Copy to clipboard failed.",V),!1}finally{document.body.removeChild(g)}}}const U=m=>s(2,v=J(m.title));return t.$$set=m=>{"data"in m&&s(8,r=m.data)},t.$$.update=()=>{t.$$.dirty&256&&s(0,{slug:i,content:c,active:v}=r,i,(s(1,c),s(8,r)),(s(2,v),s(8,r))),t.$$.dirty&2&&s(3,l=[c.main].concat(c.components).concat(c.componentModules).concat(c.modules).concat(c.componentComponents).concat(c.jsons).concat(c.csvs)),t.$$.dirty&1&&s(4,o=f.get(i.toLowerCase()))},[i,c,v,l,o,R,I,z,r,U]}class Xe extends je{constructor(a){super(),He(this,a,Be,Oe,Le,{data:8})}}export{Xe as component,We as universal}; +import{e as Se}from"../chunks/index.oiCz_B55.js";import{s as Le,w as he,a as q,e as E,t as oe,o as Ve,f as p,g as M,c as D,b as C,d as re,u,z as me,i as F,h as _,y as De,j as Ce,v as _e,H as Ie,q as $e,A as pe}from"../chunks/scheduler.P37s_KnH.js";import{S as je,i as He,c as Z,b as ve,m as ee,a as te,e as Te,t as le,d as ae,g as qe}from"../chunks/index.GooPGtyi.js";import{M as Me,g as Pe}from"../chunks/downloadBlob.5w7X7G5B.js";import{e as Q}from"../chunks/each.zMdpk9aP.js";import{H as se,h as ge}from"../chunks/hljsDefineSvelte.U5_GHsKG.js";import{D as ze,c as J}from"../chunks/cleanTitle.QG-RcJPj.js";import{e as xe}from"../chunks/_examples_ssr.X0tHL2fc.js";async function Ae({fetch:t,params:a}){const s=`${a.slug}.json`,l=await t(s),o=await l.json();if(l.status===200)return{slug:a.slug,content:o,active:"+page"};Se(500,`Could not load ${s}: ${o.message}`)}const We=Object.freeze(Object.defineProperty({__proto__:null,load:Ae},Symbol.toStringTag,{value:"Module"})),{document:ne}=Pe;function we(t,a,s){const l=t.slice();return l[12]=a[s],l}function ke(t,a,s){const l=t.slice();return l[12]=a[s],l}function be(t){let a,s,l=t[5](t[1].dek)+"";return{c(){a=E("div"),s=new Ie(!1),this.h()},l(o){a=D(o,"DIV",{class:!0});var h=C(a);s=$e(h,!1),h.forEach(p),this.h()},h(){s.a=null,u(a,"class","dek svelte-4xax0d")},m(o,h){F(o,a,h),s.m(l,a)},p(o,h){h&2&&l!==(l=o[5](o[1].dek)+"")&&s.p(l)},d(o){o&&p(a)}}}function ye(t){let a,s=t[12].title+"",l,o,h,r;function i(){return t[9](t[12])}return{c(){a=E("li"),l=oe(s),this.h()},l(c){a=D(c,"LI",{class:!0});var v=C(a);l=re(v,s),v.forEach(p),this.h()},h(){u(a,"class",o="tab "+(t[2]===J(t[12].title)?"active":"")+" svelte-4xax0d")},m(c,v){F(c,a,v),_(a,l),h||(r=De(a,"click",i),h=!0)},p(c,v){t=c,v&8&&s!==(s=t[12].title+"")&&Ce(l,s),v&12&&o!==(o="tab "+(t[2]===J(t[12].title)?"active":"")+" svelte-4xax0d")&&u(a,"class",o)},d(c){c&&p(a),h=!1,r()}}}function Ee(t){let a,s,l,o=t[6](t[12].contents,t[12].title)+"",h;return{c(){a=E("div"),s=E("pre"),l=new Ie(!1),h=q(),this.h()},l(r){a=D(r,"DIV",{class:!0,style:!0});var i=C(a);s=D(i,"PRE",{class:!0});var c=C(s);l=$e(c,!1),c.forEach(p),h=M(i),i.forEach(p),this.h()},h(){l.a=null,u(s,"class","svelte-4xax0d"),u(a,"class","contents"),pe(a,"display",t[2]===J(t[12].title)?"block":"none")},m(r,i){F(r,a,i),_(a,s),l.m(o,s),_(a,h)},p(r,i){i&8&&o!==(o=r[6](r[12].contents,r[12].title)+"")&&l.p(o),i&12&&pe(a,"display",r[2]===J(r[12].title)?"block":"none")},d(r){r&&p(a)}}}function Oe(t){let a,s,l,o,h=t[4].title+"",r,i,c,v,R,I,f,z,U,m,g,V,j,$,H,W,S,x,X,G,L,Y,ie;ne.title=a=t[4].title;var A=t[4].component;function ce(e,w){return{}}A&&(f=he(A,ce())),g=new ze({props:{data:t[1],slug:t[0],ssr:!0}});let y=t[1].dek&&be(t),O=Q(t[3]),k=[];for(let e=0;e{ae(n,1)}),Te()}A?(f=he(A,ce()),Z(f.$$.fragment),le(f.$$.fragment,1),ee(f,I,null)):f=null}(!L||w&1&&z!==(z=e[0].toLowerCase()))&&u(I,"data-slug",z);const d={};if(w&2&&(d.data=e[1]),w&1&&(d.slug=e[0]),g.$set(d),e[1].dek?y?y.p(e,w):(y=be(e),y.c(),y.m(l,j)):y&&(y.d(1),y=null),w&12){O=Q(e[3]);let n;for(n=0;n{f.set(m.slug.toLowerCase(),m)});function z(){const m=l.filter(g=>J(g.title)===v)[0].contents;if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",m);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const g=document.createElement("textarea");g.textContent=m,g.style.position="fixed",document.body.appendChild(g),g.select();try{return document.execCommand("copy")}catch(V){return console.warn("Copy to clipboard failed.",V),!1}finally{document.body.removeChild(g)}}}const U=m=>s(2,v=J(m.title));return t.$$set=m=>{"data"in m&&s(8,r=m.data)},t.$$.update=()=>{t.$$.dirty&256&&s(0,{slug:i,content:c,active:v}=r,i,(s(1,c),s(8,r)),(s(2,v),s(8,r))),t.$$.dirty&2&&s(3,l=[c.main].concat(c.components).concat(c.componentModules).concat(c.modules).concat(c.componentComponents).concat(c.jsons).concat(c.csvs)),t.$$.dirty&1&&s(4,o=f.get(i.toLowerCase()))},[i,c,v,l,o,R,I,z,r,U]}class Xe extends je{constructor(a){super(),He(this,a,Be,Oe,Le,{data:8})}}export{Xe as component,We as universal}; diff --git a/docs/_app/version.json b/docs/_app/version.json index 59c3d502..d373ff7f 100644 --- a/docs/_app/version.json +++ b/docs/_app/version.json @@ -1 +1 @@ -{"version":"1710090247320"} \ No newline at end of file +{"version":"1710090568833"} \ No newline at end of file diff --git a/docs/components.html b/docs/components.html index 298a25fa..ea75f2aa 100644 --- a/docs/components.html +++ b/docs/components.html @@ -32,23 +32,23 @@ - - + + - + - + - + - + - + LayerCake - Component gallery @@ -86,7 +86,7 @@ - + \n\n\n\n
\n \n \n \n \n \n \n \n \n \n\n
"},"dek":"Since we want an ordinal y-axis and Layer Cake defaults to a linear scale, pass in a custom scale to `yScale` with a few formatting options. Set the x-scale to always start at `0` so you don't show misleading differences between groups.\n","components":[{"title":"./_components/Bar.svelte","contents":"\n\n\n\n {#each $data as d, i}\n \n {/each}\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n \n {/if}\n \n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}\n \n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/groups.csv","contents":"year,value\n1979,2\n1980,3\n1981,5\n1982,8\n1983,18"}],"jsons":[]} \ No newline at end of file +{"main":{"title":"+page.svelte","contents":"\n\n\n\n
\n \n \n \n \n \n \n \n \n \n\n
"},"dek":"Since we want an ordinal y-axis and Layer Cake defaults to a linear scale, pass in a custom scale to `yScale` with a few formatting options. Set the x-scale to always start at `0` so you don't show misleading differences between groups.\n","components":[{"title":"./_components/Bar.svelte","contents":"\n\n\n\n {#each $data as d, i}\n \n {/each}\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n \n {/if}\n \n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}\n \n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/groups.csv","contents":"year,value\n1979,2\n1980,3\n1981,5\n1982,8\n1983,18"}],"jsons":[]} \ No newline at end of file diff --git a/docs/example-ssr/BarStacked.html b/docs/example-ssr/BarStacked.html index 61e49f9f..03c2c2a5 100644 --- a/docs/example-ssr/BarStacked.html +++ b/docs/example-ssr/BarStacked.html @@ -32,31 +32,31 @@ - - + + - + - + - + - + - + - + Stacked bar -

Stacked barEdit

0
1k
2k
3k
4k
5k
6k
7k
2016
2017
2018
2019
<script>
+		

Stacked barEdit

0
1k
2k
3k
4k
5k
6k
7k
2016
2017
2018
2019
<script>
   import { LayerCake, ScaledSvg, Html, flatten } from 'layercake';
   import { stack } from 'd3-shape';
   import { scaleBand, scaleOrdinal } from 'd3-scale';
@@ -122,7 +122,7 @@
     <Html>
       <AxisX
         baseline
-        snapTicks
+        snapLabels
         format={formatLabelX}
       />
       <AxisY
@@ -434,10 +434,10 @@
 2017,820,1000,640,400
 2016,820,560,720,400
- + \n\n\n\n
\n d.data[xKey]}\n x={yKey}\n z={zKey}\n yScale={scaleBand().paddingInner(0.05).round(true)}\n yDomain={['2016', '2017', '2018', '2019']}\n zScale={scaleOrdinal()}\n zDomain={seriesNames}\n zRange={seriesColors}\n flatData={flatten(series)}\n data={series}\n >\n \n \n \n \n \n \n \n \n\n
"},"dek":"","components":[{"title":"./_components/BarStacked.svelte","contents":"\n\n\n\n {#each $data as series}\n {#each series as d, i}\n \n {/each}\n {/each}\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n \n {format(tick)}
\n
\n {/each}\n
\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}
\n
\n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/fruitOrdinal.csv","contents":"year,apples,bananas,cherries,dates\n2019,3840,1920,960,400\n2018,1600,1440,960,400\n2017,820,1000,640,400\n2016,820,560,720,400"}],"jsons":[]} \ No newline at end of file +{"main":{"title":"+page.svelte","contents":"\n\n\n\n
\n d.data[xKey]}\n x={yKey}\n z={zKey}\n yScale={scaleBand().paddingInner(0.05).round(true)}\n yDomain={['2016', '2017', '2018', '2019']}\n zScale={scaleOrdinal()}\n zDomain={seriesNames}\n zRange={seriesColors}\n flatData={flatten(series)}\n data={series}\n >\n \n \n \n \n \n \n \n \n\n
"},"dek":"","components":[{"title":"./_components/BarStacked.svelte","contents":"\n\n\n\n {#each $data as series}\n {#each series as d, i}\n \n {/each}\n {/each}\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n \n {/if}\n \n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}\n \n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/fruitOrdinal.csv","contents":"year,apples,bananas,cherries,dates\n2019,3840,1920,960,400\n2018,1600,1440,960,400\n2017,820,1000,640,400\n2016,820,560,720,400"}],"jsons":[]} \ No newline at end of file diff --git a/docs/example-ssr/Brush.html b/docs/example-ssr/Brush.html index fae5efbf..9e6deacb 100644 --- a/docs/example-ssr/Brush.html +++ b/docs/example-ssr/Brush.html @@ -32,25 +32,25 @@ - - + + - + - + - + - + - + - + Brush @@ -659,7 +659,7 @@ - + \n\n\n\n
\n \n \n d[xKey]).sort((a, b) => a - b)}\n format={formatLabelX}\n snapTicks\n tickMarks\n />\n \n \n\n \n \n \n\n \n \n \n \n \n
"},"dek":"A multiline example with a quadtree tooltip. This is an interesting example because the data exists in a few different structures:\n\n1. We're loading data from a \"wide\" format CSV file where each series has its own column name.\n ```\n [\n {\n month: 2015-03-31T22:00:00.000Z,\n apples: '3840',\n bananas: '1920',\n cherries: '960',\n dates: '400'\n },\n {\n month: 2015-02-28T23:00:00.000Z,\n apples: '1600',\n bananas: '1440',\n cherries: '960',\n dates: '400'\n },\n ...\n ```\n We need to first turn this into...\n\n2. ...a \"long\" format, where each type of fruit is grouped into its own array and each datapoint is a row. The column name becomes a property on the group whose name we define with the `zKey` variable.\n ```\n [\n {\n \"fruit\": \"apples\",\n \"values\": [\n {\n \"value\": 3840,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n {\n \"value\": 1600,\n \"month\": \"2015-02-28T23:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n ...\n ]\n },\n {\n \"fruit\": \"bananas\",\n \"values\": [\n {\n \"value\": 1920,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"bananas\"\n },\n ...\n ```\n\n3. We also need a flat, ungrouped array of objects so that Layer Cake can measure the full data extents. This gets passed to the `flatData` prop so the scales know the full domain of the data.\n ```\n [\n { value: 3840, month: 2015-03-31T22:00:00.000Z, fruit: 'apples' },\n { value: 1600, month: 2015-02-28T23:00:00.000Z, fruit: 'apples' },\n { value: 640, month: 2015-01-31T23:00:00.000Z, fruit: 'apples' },\n { value: 320, month: 2014-12-31T23:00:00.000Z, fruit: 'apples' },\n { value: 1920, month: 2015-03-31T22:00:00.000Z, fruit: 'bananas' },\n ...\n ```\nWe're using a regular JavaScript transform to do steps one and two. See the [client-side rendered example](https://layercake.graphics/example/MultiLine) for how to do this with Layer Cake's [groupLonger transform function](https://layercake.graphics/guide#grouplonger).\n","components":[{"title":"./_components/MultiLine.svelte","contents":"\n\n\n\n {#each $data as group}\n \n {/each}\n\n\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n \n {/if}\n \n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/GroupLabels.html.svelte","contents":"\n\n\n{#each $data as group}\n {cap($z(group))}\n{/each}\n\n"},{"title":"./_components/SharedTooltip.percent-range.html.svelte","contents":"\n\n\n\n\n\n {@const foundSorted = sortResult(found)}\n {#if visible === true}\n \n \n
{formatTitle(found[$config.x])}
\n {#each foundSorted as row}\n
{formatKey(row.key)}: {formatValue(row.value)}
\n {/each}\n \n {/if}\n"}],"modules":[],"componentModules":[],"componentComponents":[{"title":"./_components/QuadTree.percent-range.html.svelte","contents":"\n\n\n\n\n visible = false}\"\n on:blur=\"{() => visible = false}\"\n>\n"}],"csvs":[{"title":"./_data/fruit.csv","contents":"month,apples,bananas,cherries,dates\n2015-04-01,3840,1920,960,400\n2015-03-01,1600,1440,960,400\n2015-02-01,640,960,640,400\n2015-01-01,320,480,640,400"}],"jsons":[]} \ No newline at end of file +{"main":{"title":"+page.svelte","contents":"\n\n\n\n
\n \n \n d[xKey]).sort((a, b) => a - b)}\n format={formatLabelX}\n snapLabels\n tickMarks\n />\n \n \n\n \n \n \n\n \n \n \n \n \n
"},"dek":"A multiline example with a quadtree tooltip. This is an interesting example because the data exists in a few different structures:\n\n1. We're loading data from a \"wide\" format CSV file where each series has its own column name.\n ```\n [\n {\n month: 2015-03-31T22:00:00.000Z,\n apples: '3840',\n bananas: '1920',\n cherries: '960',\n dates: '400'\n },\n {\n month: 2015-02-28T23:00:00.000Z,\n apples: '1600',\n bananas: '1440',\n cherries: '960',\n dates: '400'\n },\n ...\n ```\n We need to first turn this into...\n\n2. ...a \"long\" format, where each type of fruit is grouped into its own array and each datapoint is a row. The column name becomes a property on the group whose name we define with the `zKey` variable.\n ```\n [\n {\n \"fruit\": \"apples\",\n \"values\": [\n {\n \"value\": 3840,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n {\n \"value\": 1600,\n \"month\": \"2015-02-28T23:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n ...\n ]\n },\n {\n \"fruit\": \"bananas\",\n \"values\": [\n {\n \"value\": 1920,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"bananas\"\n },\n ...\n ```\n\n3. We also need a flat, ungrouped array of objects so that Layer Cake can measure the full data extents. This gets passed to the `flatData` prop so the scales know the full domain of the data.\n ```\n [\n { value: 3840, month: 2015-03-31T22:00:00.000Z, fruit: 'apples' },\n { value: 1600, month: 2015-02-28T23:00:00.000Z, fruit: 'apples' },\n { value: 640, month: 2015-01-31T23:00:00.000Z, fruit: 'apples' },\n { value: 320, month: 2014-12-31T23:00:00.000Z, fruit: 'apples' },\n { value: 1920, month: 2015-03-31T22:00:00.000Z, fruit: 'bananas' },\n ...\n ```\nWe're using a regular JavaScript transform to do steps one and two. See the [client-side rendered example](https://layercake.graphics/example/MultiLine) for how to do this with Layer Cake's [groupLonger transform function](https://layercake.graphics/guide#grouplonger).\n","components":[{"title":"./_components/MultiLine.svelte","contents":"\n\n\n\n {#each $data as group}\n \n {/each}\n\n\n"},{"title":"./_components/AxisX.percent-range.html.svelte","contents":"\n\n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPx = $xScale(tick)}\n\n {#if baseline === true}\n
\n {/if}\n\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n \n {/if}\n \n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.percent-range.html.svelte","contents":"\n \n\n
\n {#each tickVals as tick, i (tick)}\n {@const tickValPerc = $yScale(tick)}\n\n
\n {#if gridlines === true}\n
\n {/if}\n {#if tickMarks === true}\n
\n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/GroupLabels.html.svelte","contents":"\n\n\n{#each $data as group}\n {cap($z(group))}\n{/each}\n\n"},{"title":"./_components/SharedTooltip.percent-range.html.svelte","contents":"\n\n\n\n\n\n {@const foundSorted = sortResult(found)}\n {#if visible === true}\n \n \n
{formatTitle(found[$config.x])}
\n {#each foundSorted as row}\n
{formatKey(row.key)}: {formatValue(row.value)}
\n {/each}\n \n {/if}\n"}],"modules":[],"componentModules":[],"componentComponents":[{"title":"./_components/QuadTree.percent-range.html.svelte","contents":"\n\n\n\n\n visible = false}\"\n on:blur=\"{() => visible = false}\"\n>\n"}],"csvs":[{"title":"./_data/fruit.csv","contents":"month,apples,bananas,cherries,dates\n2015-04-01,3840,1920,960,400\n2015-03-01,1600,1440,960,400\n2015-02-01,640,960,640,400\n2015-01-01,320,480,640,400"}],"jsons":[]} \ No newline at end of file diff --git a/docs/example-ssr/Scatter.html b/docs/example-ssr/Scatter.html index 1f8f5434..74b2c5a3 100644 --- a/docs/example-ssr/Scatter.html +++ b/docs/example-ssr/Scatter.html @@ -32,25 +32,25 @@ - - + + - + - + - + - + - + - + Scatter (html) @@ -469,7 +469,7 @@ - + \n\n\n\n
\n \n \n \n \n \n \n \n
"},"dek":"Since we want an ordinal y-axis and Layer Cake defaults to a linear scale, pass in a custom scale to `yScale` with a few formatting options. Set the x-scale to always start at `0` so you don't show misleading differences between groups.\n","components":[{"title":"./_components/Bar.svelte","contents":"\n\n\n\n {#each $data as d, i}\n \n {/each}\n"},{"title":"./_components/AxisX.svelte","contents":"\n\n\n\n {#each tickVals as tick, i (tick)}\n {#if baseline === true}\n \n {/if}\n\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.svelte","contents":"\n\n\n\n {#each tickVals as tick (tick)}\n {@const tickValPx = $yScale(tick)}\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/groups.csv","contents":"year,value\n1979,2\n1980,3\n1981,5\n1982,8\n1983,18"}],"jsons":[]} \ No newline at end of file +{"main":{"title":"+page.svelte","contents":"\n\n\n\n
\n \n \n \n \n \n \n \n
"},"dek":"Since we want an ordinal y-axis and Layer Cake defaults to a linear scale, pass in a custom scale to `yScale` with a few formatting options. Set the x-scale to always start at `0` so you don't show misleading differences between groups.\n","components":[{"title":"./_components/Bar.svelte","contents":"\n\n\n\n {#each $data as d, i}\n \n {/each}\n"},{"title":"./_components/AxisX.svelte","contents":"\n\n\n\n {#each tickVals as tick, i (tick)}\n {#if baseline === true}\n \n {/if}\n\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.svelte","contents":"\n\n\n\n {#each tickVals as tick (tick)}\n {@const tickValPx = $yScale(tick)}\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"}],"modules":[],"componentModules":[],"componentComponents":[],"csvs":[{"title":"./_data/groups.csv","contents":"year,value\n1979,2\n1980,3\n1981,5\n1982,8\n1983,18"}],"jsons":[]} \ No newline at end of file diff --git a/docs/example/BarStacked.html b/docs/example/BarStacked.html index a5a06ee6..35851eb2 100644 --- a/docs/example/BarStacked.html +++ b/docs/example/BarStacked.html @@ -32,25 +32,25 @@ - - + + - + - + - + - + - + - + Stacked bar @@ -424,7 +424,7 @@ - + \n\n\n\n
\n \n \n d[xKey]).sort((a, b) => a - b)}\n format={formatLabelX}\n snapTicks\n tickMarks\n />\n \n \n \n\n \n \n \n \n \n
"},"dek":"A multiline example with a quadtree tooltip. This is an interesting example because the data exists in a few different structures:\n\n1. We're loading data from a \"wide\" format CSV file where each series has its own column name.\n ```\n [\n {\n month: 2015-03-31T22:00:00.000Z,\n apples: '3840',\n bananas: '1920',\n cherries: '960',\n dates: '400'\n },\n {\n month: 2015-02-28T23:00:00.000Z,\n apples: '1600',\n bananas: '1440',\n cherries: '960',\n dates: '400'\n },\n ...\n ```\n We need to first turn this into...\n\n2. ...a \"long\" format, where each type of fruit is grouped into its own array and each datapoint is a row. The column name becomes a property on the group whose name we define with the `zKey` variable.\n ```\n [\n {\n \"fruit\": \"apples\",\n \"values\": [\n {\n \"value\": 3840,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n {\n \"value\": 1600,\n \"month\": \"2015-02-28T23:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n ...\n ]\n },\n {\n \"fruit\": \"bananas\",\n \"values\": [\n {\n \"value\": 1920,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"bananas\"\n },\n ...\n ```\n\n3. We also need a flat, ungrouped array of objects so that Layer Cake can measure the full data extents. This gets passed to the `flatData` prop so the scales know the full domain of the data.\n ```\n [\n { value: 3840, month: 2015-03-31T22:00:00.000Z, fruit: 'apples' },\n { value: 1600, month: 2015-02-28T23:00:00.000Z, fruit: 'apples' },\n { value: 640, month: 2015-01-31T23:00:00.000Z, fruit: 'apples' },\n { value: 320, month: 2014-12-31T23:00:00.000Z, fruit: 'apples' },\n { value: 1920, month: 2015-03-31T22:00:00.000Z, fruit: 'bananas' },\n ...\n ```\n\nWe're using Layer Cake's [groupLonger transform function](/guide#grouplonger) to do steps one and two. See the [server-side rendered example](/example-ssr/MultiLine) for a regular JavaScript transform.\n","components":[{"title":"./_components/MultiLine.svelte","contents":"\n\n\n\n {#each $data as group}\n \n {/each}\n\n\n"},{"title":"./_components/AxisX.svelte","contents":"\n\n\n\n {#each tickVals as tick, i (tick)}\n {#if baseline === true}\n \n {/if}\n\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.svelte","contents":"\n\n\n\n {#each tickVals as tick (tick)}\n {@const tickValPx = $yScale(tick)}\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/GroupLabels.html.svelte","contents":"\n\n\n{#each $data as group}\n {cap($z(group))}\n{/each}\n\n"},{"title":"./_components/SharedTooltip.html.svelte","contents":"\n\n\n\n\n\n {@const foundSorted = sortResult(found)}\n {#if visible === true}\n \n \n
{formatTitle(found[$config.x])}
\n {#each foundSorted as row}\n
{formatKey(row.key)}: {formatValue(row.value)}
\n {/each}\n \n {/if}\n"}],"modules":[],"componentModules":[],"componentComponents":[{"title":"./_components/QuadTree.html.svelte","contents":"\n\n\n\n\n visible = false}\"\n on:blur=\"{() => visible = false}\"\n>\n"}],"csvs":[{"title":"./_data/fruit.csv","contents":"month,apples,bananas,cherries,dates\n2015-04-01,3840,1920,960,400\n2015-03-01,1600,1440,960,400\n2015-02-01,640,960,640,400\n2015-01-01,320,480,640,400"}],"jsons":[]} \ No newline at end of file +{"main":{"title":"+page.svelte","contents":"\n\n\n\n
\n \n \n d[xKey]).sort((a, b) => a - b)}\n format={formatLabelX}\n snapLabels\n tickMarks\n />\n \n \n \n\n \n \n \n \n \n
"},"dek":"A multiline example with a quadtree tooltip. This is an interesting example because the data exists in a few different structures:\n\n1. We're loading data from a \"wide\" format CSV file where each series has its own column name.\n ```\n [\n {\n month: 2015-03-31T22:00:00.000Z,\n apples: '3840',\n bananas: '1920',\n cherries: '960',\n dates: '400'\n },\n {\n month: 2015-02-28T23:00:00.000Z,\n apples: '1600',\n bananas: '1440',\n cherries: '960',\n dates: '400'\n },\n ...\n ```\n We need to first turn this into...\n\n2. ...a \"long\" format, where each type of fruit is grouped into its own array and each datapoint is a row. The column name becomes a property on the group whose name we define with the `zKey` variable.\n ```\n [\n {\n \"fruit\": \"apples\",\n \"values\": [\n {\n \"value\": 3840,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n {\n \"value\": 1600,\n \"month\": \"2015-02-28T23:00:00.000Z\",\n \"fruit\": \"apples\"\n },\n ...\n ]\n },\n {\n \"fruit\": \"bananas\",\n \"values\": [\n {\n \"value\": 1920,\n \"month\": \"2015-03-31T22:00:00.000Z\",\n \"fruit\": \"bananas\"\n },\n ...\n ```\n\n3. We also need a flat, ungrouped array of objects so that Layer Cake can measure the full data extents. This gets passed to the `flatData` prop so the scales know the full domain of the data.\n ```\n [\n { value: 3840, month: 2015-03-31T22:00:00.000Z, fruit: 'apples' },\n { value: 1600, month: 2015-02-28T23:00:00.000Z, fruit: 'apples' },\n { value: 640, month: 2015-01-31T23:00:00.000Z, fruit: 'apples' },\n { value: 320, month: 2014-12-31T23:00:00.000Z, fruit: 'apples' },\n { value: 1920, month: 2015-03-31T22:00:00.000Z, fruit: 'bananas' },\n ...\n ```\n\nWe're using Layer Cake's [groupLonger transform function](/guide#grouplonger) to do steps one and two. See the [server-side rendered example](/example-ssr/MultiLine) for a regular JavaScript transform.\n","components":[{"title":"./_components/MultiLine.svelte","contents":"\n\n\n\n {#each $data as group}\n \n {/each}\n\n\n"},{"title":"./_components/AxisX.svelte","contents":"\n\n\n\n {#each tickVals as tick, i (tick)}\n {#if baseline === true}\n \n {/if}\n\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/AxisY.svelte","contents":"\n\n\n\n {#each tickVals as tick (tick)}\n {@const tickValPx = $yScale(tick)}\n \n {#if gridlines === true}\n \n {/if}\n {#if tickMarks === true}\n \n {/if}\n {format(tick)}\n \n {/each}\n\n\n"},{"title":"./_components/GroupLabels.html.svelte","contents":"\n\n\n{#each $data as group}\n {cap($z(group))}\n{/each}\n\n"},{"title":"./_components/SharedTooltip.html.svelte","contents":"\n\n\n\n\n\n {@const foundSorted = sortResult(found)}\n {#if visible === true}\n \n \n
{formatTitle(found[$config.x])}
\n {#each foundSorted as row}\n
{formatKey(row.key)}: {formatValue(row.value)}
\n {/each}\n \n {/if}\n"}],"modules":[],"componentModules":[],"componentComponents":[{"title":"./_components/QuadTree.html.svelte","contents":"\n\n\n\n\n visible = false}\"\n on:blur=\"{() => visible = false}\"\n>\n"}],"csvs":[{"title":"./_data/fruit.csv","contents":"month,apples,bananas,cherries,dates\n2015-04-01,3840,1920,960,400\n2015-03-01,1600,1440,960,400\n2015-02-01,640,960,640,400\n2015-01-01,320,480,640,400"}],"jsons":[]} \ No newline at end of file diff --git a/docs/example/Radar.html b/docs/example/Radar.html index f394a123..4bae7901 100644 --- a/docs/example/Radar.html +++ b/docs/example/Radar.html @@ -32,25 +32,25 @@ - - + + - + - + - + - + - + - + Radar chart @@ -270,7 +270,7 @@