Added the dist directory

This commit is contained in:
Mike Lynch 2026-01-03 13:23:59 +11:00
parent c7139b4c53
commit a85560c6a1
50 changed files with 9056 additions and 0 deletions

1102
dist/01/genuary01.svg vendored Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 20 KiB

1129
dist/01/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
dist/02/_file/observable.1af93621.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-axis@3.0.0/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function t(t){return t}var n=1e-6;function r(t){return"translate("+t+",0)"}function e(t){return"translate(0,"+t+")"}function i(t){return n=>+t(n)}function a(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function o(){return!this.__axis}function u(u,c){var l=[],s=null,f=null,d=6,m=6,h=3,g="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,p=1===u||4===u?-1:1,k=4===u||2===u?"x":"y",x=1===u||3===u?r:e;function y(r){var e=null==s?c.ticks?c.ticks.apply(c,l):c.domain():s,y=null==f?c.tickFormat?c.tickFormat.apply(c,l):t:f,A=Math.max(d,0)+h,M=c.range(),v=+M[0]+g,w=+M[M.length-1]+g,_=(c.bandwidth?a:i)(c.copy(),g),F=r.selection?r.selection():r,V=F.selectAll(".domain").data([null]),z=F.selectAll(".tick").data(e,c).order(),H=z.exit(),b=z.enter().append("g").attr("class","tick"),C=z.select("line"),S=z.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(b),C=C.merge(b.append("line").attr("stroke","currentColor").attr(k+"2",p*d)),S=S.merge(b.append("text").attr("fill","currentColor").attr(k,p*A).attr("dy",1===u?"0em":3===u?"0.71em":"0.32em")),r!==F&&(V=V.transition(r),z=z.transition(r),C=C.transition(r),S=S.transition(r),H=H.transition(r).attr("opacity",n).attr("transform",(function(t){return isFinite(t=_(t))?x(t+g):this.getAttribute("transform")})),b.attr("opacity",n).attr("transform",(function(t){var n=this.parentNode.__axis;return x((n&&isFinite(n=n(t))?n:_(t))+g)}))),H.remove(),V.attr("d",4===u||2===u?m?"M"+p*m+","+v+"H"+g+"V"+w+"H"+p*m:"M"+g+","+v+"V"+w:m?"M"+v+","+p*m+"V"+g+"H"+w+"V"+p*m:"M"+v+","+g+"H"+w),z.attr("opacity",1).attr("transform",(function(t){return x(_(t)+g)})),C.attr(k+"2",p*d),S.attr(k,p*A).text(y),F.filter(o).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===u?"start":4===u?"end":"middle"),F.each((function(){this.__axis=_}))}return y.scale=function(t){return arguments.length?(c=t,y):c},y.ticks=function(){return l=Array.from(arguments),y},y.tickArguments=function(t){return arguments.length?(l=null==t?[]:Array.from(t),y):l.slice()},y.tickValues=function(t){return arguments.length?(s=null==t?null:Array.from(t),y):s&&s.slice()},y.tickFormat=function(t){return arguments.length?(f=t,y):f},y.tickSize=function(t){return arguments.length?(d=m=+t,y):d},y.tickSizeInner=function(t){return arguments.length?(d=+t,y):d},y.tickSizeOuter=function(t){return arguments.length?(m=+t,y):m},y.tickPadding=function(t){return arguments.length?(h=+t,y):h},y.offset=function(t){return arguments.length?(g=+t,y):g},y}function c(t){return u(1,t)}function l(t){return u(2,t)}function s(t){return u(3,t)}function f(t){return u(4,t)}export{s as axisBottom,f as axisLeft,l as axisRight,c as axisTop};export default null;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-chord@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
import{path as n}from"../d3-path@3.1.0/20d3f133.js";var t=Math.abs,e=Math.cos,r=Math.sin,u=Math.PI,l=u/2,o=2*u,a=Math.max,i=1e-12;function c(n,t){return Array.from({length:t-n},((t,e)=>n+e))}function f(){return p(!1,!1)}function s(){return p(!1,!0)}function g(){return p(!0,!1)}function p(n,t){var e=0,r=null,u=null,l=null;function i(i){var f,s=i.length,g=new Array(s),p=c(0,s),h=new Array(s*s),d=new Array(s),v=0;i=Float64Array.from({length:s*s},t?(n,t)=>i[t%s][t/s|0]:(n,t)=>i[t/s|0][t%s]);for(let t=0;t<s;++t){let e=0;for(let r=0;r<s;++r)e+=i[t*s+r]+n*i[r*s+t];v+=g[t]=e}f=(v=a(0,o-e*s)/v)?e:o/s;{let t=0;r&&p.sort(((n,t)=>r(g[n],g[t])));for(const e of p){const r=t;if(n){const n=c(1+~s,s).filter((n=>n<0?i[~n*s+e]:i[e*s+n]));u&&n.sort(((n,t)=>u(n<0?-i[~n*s+e]:i[e*s+n],t<0?-i[~t*s+e]:i[e*s+t])));for(const r of n)if(r<0){(h[~r*s+e]||(h[~r*s+e]={source:null,target:null})).target={index:e,startAngle:t,endAngle:t+=i[~r*s+e]*v,value:i[~r*s+e]}}else{(h[e*s+r]||(h[e*s+r]={source:null,target:null})).source={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]}}d[e]={index:e,startAngle:r,endAngle:t,value:g[e]}}else{const n=c(0,s).filter((n=>i[e*s+n]||i[n*s+e]));u&&n.sort(((n,t)=>u(i[e*s+n],i[e*s+t])));for(const r of n){let n;if(e<r?(n=h[e*s+r]||(h[e*s+r]={source:null,target:null}),n.source={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]}):(n=h[r*s+e]||(h[r*s+e]={source:null,target:null}),n.target={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]},e===r&&(n.source=n.target)),n.source&&n.target&&n.source.value<n.target.value){const t=n.source;n.source=n.target,n.target=t}}d[e]={index:e,startAngle:r,endAngle:t,value:g[e]}}t+=f}}return(h=Object.values(h)).groups=d,l?h.sort(l):h}return i.padAngle=function(n){return arguments.length?(e=a(0,n),i):e},i.sortGroups=function(n){return arguments.length?(r=n,i):r},i.sortSubgroups=function(n){return arguments.length?(u=n,i):u},i.sortChords=function(n){return arguments.length?(null==n?l=null:(t=n,l=function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)})._=n,i):l&&l._;var t},i}var h=Array.prototype.slice;function d(n){return function(){return n}}function v(n){return n.source}function y(n){return n.target}function A(n){return n.radius}function x(n){return n.startAngle}function m(n){return n.endAngle}function T(){return 0}function b(){return 10}function M(u){var o=v,a=y,c=A,f=A,s=x,g=m,p=T,b=null;function M(){var d,v=o.apply(this,arguments),y=a.apply(this,arguments),A=p.apply(this,arguments)/2,x=h.call(arguments),m=+c.apply(this,(x[0]=v,x)),T=s.apply(this,x)-l,M=g.apply(this,x)-l,C=+f.apply(this,(x[0]=y,x)),q=s.apply(this,x)-l,w=g.apply(this,x)-l;if(b||(b=d=n()),A>i&&(t(M-T)>2*A+i?M>T?(T+=A,M-=A):(T-=A,M+=A):T=M=(T+M)/2,t(w-q)>2*A+i?w>q?(q+=A,w-=A):(q-=A,w+=A):q=w=(q+w)/2),b.moveTo(m*e(T),m*r(T)),b.arc(0,0,m,T,M),T!==q||M!==w)if(u){var R=C-+u.apply(this,arguments),P=(q+w)/2;b.quadraticCurveTo(0,0,R*e(q),R*r(q)),b.lineTo(C*e(P),C*r(P)),b.lineTo(R*e(w),R*r(w))}else b.quadraticCurveTo(0,0,C*e(q),C*r(q)),b.arc(0,0,C,q,w);if(b.quadraticCurveTo(0,0,m*e(T),m*r(T)),b.closePath(),d)return b=null,d+""||null}return u&&(M.headRadius=function(n){return arguments.length?(u="function"==typeof n?n:d(+n),M):u}),M.radius=function(n){return arguments.length?(c=f="function"==typeof n?n:d(+n),M):c},M.sourceRadius=function(n){return arguments.length?(c="function"==typeof n?n:d(+n),M):c},M.targetRadius=function(n){return arguments.length?(f="function"==typeof n?n:d(+n),M):f},M.startAngle=function(n){return arguments.length?(s="function"==typeof n?n:d(+n),M):s},M.endAngle=function(n){return arguments.length?(g="function"==typeof n?n:d(+n),M):g},M.padAngle=function(n){return arguments.length?(p="function"==typeof n?n:d(+n),M):p},M.source=function(n){return arguments.length?(o=n,M):o},M.target=function(n){return arguments.length?(a=n,M):a},M.context=function(n){return arguments.length?(b=null==n?null:n,M):b},M}function C(){return M()}function q(){return M(b)}export{f as chord,g as chordDirected,s as chordTranspose,C as ribbon,q as ribbonArrow};export default null;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-dispatch@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var n={value:()=>{}};function r(){for(var n,r=0,e=arguments.length,o={};r<e;++r){if(!(n=arguments[r]+"")||n in o||/[\s.]/.test(n))throw new Error("illegal type: "+n);o[n]=[]}return new t(o)}function t(n){this._=n}function e(n,r){for(var t,e=0,o=n.length;e<o;++e)if((t=n[e]).name===r)return t.value}function o(r,t,e){for(var o=0,i=r.length;o<i;++o)if(r[o].name===t){r[o]=n,r=r.slice(0,o).concat(r.slice(o+1));break}return null!=e&&r.push({name:t,value:e}),r}t.prototype=r.prototype={constructor:t,on:function(n,r){var t,i,l=this._,a=(i=l,(n+"").trim().split(/^|\s+/).map((function(n){var r="",t=n.indexOf(".");if(t>=0&&(r=n.slice(t+1),n=n.slice(0,t)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}}))),f=-1,u=a.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++f<u;)if(t=(n=a[f]).type)l[t]=o(l[t],n.name,r);else if(null==r)for(t in l)l[t]=o(l[t],n.name,null);return this}for(;++f<u;)if((t=(n=a[f]).type)&&(t=e(l[t],n.name)))return t},copy:function(){var n={},r=this._;for(var e in r)n[e]=r[e].slice();return new t(n)},call:function(n,r){if((t=arguments.length-2)>0)for(var t,e,o=new Array(t),i=0;i<t;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,t=(e=this._[n]).length;i<t;++i)e[i].value.apply(r,o)},apply:function(n,r,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var e=this._[n],o=0,i=e.length;o<i;++o)e[o].value.apply(r,t)}};export{r as dispatch};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-drag@3.0.0/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
import{dispatch as e}from"../d3-dispatch@3.0.1/9ba9c7f3.js";import{select as t,pointer as n}from"../d3-selection@3.0.0/4d94e5b7.js";const r={passive:!1},o={capture:!0,passive:!1};function a(e){e.stopImmediatePropagation()}function i(e){e.preventDefault(),e.stopImmediatePropagation()}function u(e){var n=e.document.documentElement,r=t(e).on("dragstart.drag",i,o);"onselectstart"in n?r.on("selectstart.drag",i,o):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function c(e,n){var r=e.document.documentElement,a=t(e).on("dragstart.drag",null);n&&(a.on("click.drag",i,o),setTimeout((function(){a.on("click.drag",null)}),0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}var l=e=>()=>e;function s(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:a,x:i,y:u,dx:c,dy:l,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:s}})}function f(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function g(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function m(){var m,v,p,b,y=f,x=d,_=g,w=h,E={},T=e("start","drag","end"),j=0,k=0;function M(e){e.on("mousedown.drag",P).filter(w).on("touchstart.drag",S).on("touchmove.drag",U,r).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(e,n){if(!b&&y.call(this,e,n)){var r=X(this,x.call(this,e,n),e,n,"mouse");r&&(t(e.view).on("mousemove.drag",z,o).on("mouseup.drag",D,o),u(e.view),a(e),p=!1,m=e.clientX,v=e.clientY,r("start",e))}}function z(e){if(i(e),!p){var t=e.clientX-m,n=e.clientY-v;p=t*t+n*n>k}E.mouse("drag",e)}function D(e){t(e.view).on("mousemove.drag mouseup.drag",null),c(e.view,p),i(e),E.mouse("end",e)}function S(e,t){if(y.call(this,e,t)){var n,r,o=e.changedTouches,i=x.call(this,e,t),u=o.length;for(n=0;n<u;++n)(r=X(this,i,e,t,o[n].identifier,o[n]))&&(a(e),r("start",e,o[n]))}}function U(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=E[r[t].identifier])&&(i(e),n("drag",e,r[t]))}function I(e){var t,n,r=e.changedTouches,o=r.length;for(b&&clearTimeout(b),b=setTimeout((function(){b=null}),500),t=0;t<o;++t)(n=E[r[t].identifier])&&(a(e),n("end",e,r[t]))}function X(e,t,r,o,a,i){var u,c,l,f=T.copy(),d=n(i||r,t);if(null!=(l=_.call(e,new s("beforestart",{sourceEvent:r,target:M,identifier:a,active:j,x:d[0],y:d[1],dx:0,dy:0,dispatch:f}),o)))return u=l.x-d[0]||0,c=l.y-d[1]||0,function r(i,g,h){var m,v=d;switch(i){case"start":E[a]=r,m=j++;break;case"end":delete E[a],--j;case"drag":d=n(h||g,t),m=j}f.call(i,e,new s(i,{sourceEvent:g,subject:l,target:M,identifier:a,active:m,x:d[0]+u,y:d[1]+c,dx:d[0]-v[0],dy:d[1]-v[1],dispatch:f}),o)}}return M.filter=function(e){return arguments.length?(y="function"==typeof e?e:l(!!e),M):y},M.container=function(e){return arguments.length?(x="function"==typeof e?e:l(e),M):x},M.subject=function(e){return arguments.length?(_="function"==typeof e?e:l(e),M):_},M.touchable=function(e){return arguments.length?(w="function"==typeof e?e:l(!!e),M):w},M.on=function(){var e=T.on.apply(T,arguments);return e===T?M:e},M.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,M):Math.sqrt(k)},M}s.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};export{m as drag,u as dragDisable,c as dragEnable};export default null;

7
dist/02/_npm/d3-dsv@3.0.1/9cffc2bd.js vendored Normal file
View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-dsv@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var r={},n={};function t(r){return new Function("d","return {"+r.map((function(r,n){return JSON.stringify(r)+": d["+n+'] || ""'})).join(",")+"}")}function e(r){var n=Object.create(null),t=[];return r.forEach((function(r){for(var e in r)e in n||t.push(n[e]=e)})),t}function o(r,n){var t=r+"",e=t.length;return e<n?new Array(n-e+1).join(0)+t:t}function a(r){var n,t=r.getUTCHours(),e=r.getUTCMinutes(),a=r.getUTCSeconds(),u=r.getUTCMilliseconds();return isNaN(r)?"Invalid Date":((n=r.getUTCFullYear())<0?"-"+o(-n,6):n>9999?"+"+o(n,6):o(n,4))+"-"+o(r.getUTCMonth()+1,2)+"-"+o(r.getUTCDate(),2)+(u?"T"+o(t,2)+":"+o(e,2)+":"+o(a,2)+"."+o(u,3)+"Z":a?"T"+o(t,2)+":"+o(e,2)+":"+o(a,2)+"Z":e||t?"T"+o(t,2)+":"+o(e,2)+"Z":"")}function u(o){var u=new RegExp('["'+o+"\n\r]"),i=o.charCodeAt(0);function f(t,e){var o,a=[],u=t.length,f=0,c=0,s=u<=0,l=!1;function d(){if(s)return n;if(l)return l=!1,r;var e,o,a=f;if(34===t.charCodeAt(a)){for(;f++<u&&34!==t.charCodeAt(f)||34===t.charCodeAt(++f););return(e=f)>=u?s=!0:10===(o=t.charCodeAt(f++))?l=!0:13===o&&(l=!0,10===t.charCodeAt(f)&&++f),t.slice(a+1,e-1).replace(/""/g,'"')}for(;f<u;){if(10===(o=t.charCodeAt(e=f++)))l=!0;else if(13===o)l=!0,10===t.charCodeAt(f)&&++f;else if(o!==i)continue;return t.slice(a,e)}return s=!0,t.slice(a,u)}for(10===t.charCodeAt(u-1)&&--u,13===t.charCodeAt(u-1)&&--u;(o=d())!==n;){for(var m=[];o!==r&&o!==n;)m.push(o),o=d();e&&null==(m=e(m,c++))||a.push(m)}return a}function c(r,n){return r.map((function(r){return n.map((function(n){return l(r[n])})).join(o)}))}function s(r){return r.map(l).join(o)}function l(r){return null==r?"":r instanceof Date?a(r):u.test(r+="")?'"'+r.replace(/"/g,'""')+'"':r}return{parse:function(r,n){var e,o,a=f(r,(function(r,a){if(e)return e(r,a-1);o=r,e=n?function(r,n){var e=t(r);return function(t,o){return n(e(t),o,r)}}(r,n):t(r)}));return a.columns=o||[],a},parseRows:f,format:function(r,n){return null==n&&(n=e(r)),[n.map(l).join(o)].concat(c(r,n)).join("\n")},formatBody:function(r,n){return null==n&&(n=e(r)),c(r,n).join("\n")},formatRows:function(r){return r.map(s).join("\n")},formatRow:s,formatValue:l}}var i=u(","),f=i.parse,c=i.parseRows,s=i.format,l=i.formatBody,d=i.formatRows,m=i.formatRow,p=i.formatValue,h=u("\t"),C=h.parse,g=h.parseRows,v=h.format,w=h.formatBody,T=h.formatRows,A=h.formatRow,R=h.formatValue;function j(r){for(var n in r){var t,e,o=r[n].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(t=+o)){if(!(e=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;N&&e[4]&&!e[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=t;else o=null;r[n]=o}return r}const N=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();export{j as autoType,s as csvFormat,l as csvFormatBody,m as csvFormatRow,d as csvFormatRows,p as csvFormatValue,f as csvParse,c as csvParseRows,u as dsvFormat,v as tsvFormat,w as tsvFormatBody,A as tsvFormatRow,T as tsvFormatRows,R as tsvFormatValue,C as tsvParse,g as tsvParseRows};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-ease@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
const n=n=>+n;function t(n){return n*n}function e(n){return n*(2-n)}function a(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function u(n){return n*n*n}function r(n){return--n*n*n+1}function s(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var o=function n(t){function e(n){return Math.pow(n,t)}return t=+t,e.exponent=n,e}(3),i=function n(t){function e(n){return 1-Math.pow(1-n,t)}return t=+t,e.exponent=n,e}(3),c=function n(t){function e(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,e.exponent=n,e}(3),f=Math.PI,h=f/2;function M(n){return 1==+n?1:1-Math.cos(n*h)}function p(n){return Math.sin(n*h)}function I(n){return(1-Math.cos(f*n))/2}function l(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function O(n){return l(1-+n)}function x(n){return 1-l(n)}function d(n){return((n*=2)<=1?l(1-n):2-l(n-1))/2}function v(n){return 1-Math.sqrt(1-n*n)}function B(n){return Math.sqrt(1- --n*n)}function C(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var E=4/11,m=6/11,P=8/11,w=9/11,b=10/11,k=21/22,q=7.5625;function y(n){return 1-Q(1-n)}function Q(n){return(n=+n)<E?q*n*n:n<P?q*(n-=m)*n+.75:n<b?q*(n-=w)*n+.9375:q*(n-=k)*n+.984375}function S(n){return((n*=2)<=1?1-Q(1-n):Q(n-1)+1)/2}var L=1.70158,g=function n(t){function e(n){return(n=+n)*n*(t*(n-1)+n)}return t=+t,e.overshoot=n,e}(L),j=function n(t){function e(n){return--n*n*((n+1)*t+n)+1}return t=+t,e.overshoot=n,e}(L),z=function n(t){function e(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,e.overshoot=n,e}(L),A=2*Math.PI,D=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=A);function u(n){return t*l(- --n)*Math.sin((a-n)/e)}return u.amplitude=function(t){return n(t,e*A)},u.period=function(e){return n(t,e)},u}(1,.3),F=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=A);function u(n){return 1-t*l(n=+n)*Math.sin((n+a)/e)}return u.amplitude=function(t){return n(t,e*A)},u.period=function(e){return n(t,e)},u}(1,.3),G=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=A);function u(n){return((n=2*n-1)<0?t*l(-n)*Math.sin((a-n)/e):2-t*l(n)*Math.sin((a+n)/e))/2}return u.amplitude=function(t){return n(t,e*A)},u.period=function(e){return n(t,e)},u}(1,.3);export{z as easeBack,g as easeBackIn,z as easeBackInOut,j as easeBackOut,Q as easeBounce,y as easeBounceIn,S as easeBounceInOut,Q as easeBounceOut,C as easeCircle,v as easeCircleIn,C as easeCircleInOut,B as easeCircleOut,s as easeCubic,u as easeCubicIn,s as easeCubicInOut,r as easeCubicOut,F as easeElastic,D as easeElasticIn,G as easeElasticInOut,F as easeElasticOut,d as easeExp,O as easeExpIn,d as easeExpInOut,x as easeExpOut,n as easeLinear,c as easePoly,o as easePolyIn,c as easePolyInOut,i as easePolyOut,a as easeQuad,t as easeQuadIn,a as easeQuadInOut,e as easeQuadOut,I as easeSin,M as easeSinIn,I as easeSinInOut,p as easeSinOut};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-fetch@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
import{dsvFormat as t,csvParse as n,tsvParse as r}from"../d3-dsv@3.0.1/9cffc2bd.js";function e(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function o(t,n){return fetch(t,n).then(e)}function u(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function f(t,n){return fetch(t,n).then(u)}function i(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function s(t,n){return fetch(t,n).then(i)}function a(t){return function(n,r,e){return 2===arguments.length&&"function"==typeof r&&(e=r,r=void 0),s(n,r).then((function(n){return t(n,e)}))}}function c(n,r,e,o){3===arguments.length&&"function"==typeof e&&(o=e,e=void 0);var u=t(n);return s(r,e).then((function(t){return u.parse(t,o)}))}var h=a(n),l=a(r);function m(t,n){return new Promise((function(r,e){var o=new Image;for(var u in n)o[u]=n[u];o.onerror=e,o.onload=function(){r(o)},o.src=t}))}function w(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function p(t,n){return fetch(t,n).then(w)}function x(t){return(n,r)=>s(n,r).then((n=>(new DOMParser).parseFromString(n,t)))}var v=x("application/xml"),d=x("text/html"),g=x("image/svg+xml");export{o as blob,f as buffer,h as csv,c as dsv,d as html,m as image,p as json,g as svg,s as text,l as tsv,v as xml};export default null;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-format@3.1.0/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function t(t,i){if((n=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i(i){return(i=t(Math.abs(i)))?i[1]:NaN}var n,r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function e(t){if(!(i=r.exec(t)))throw new Error("invalid format: "+t);var i;return new o({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a(i,n){var r=t(i,n);if(!r)return i+"";var e=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+e:e.length>o+1?e.slice(0,o+1)+"."+e.slice(o+1):e+new Array(o-e.length+2).join("0")}e.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var s={"%":(t,i)=>(100*t).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>a(100*t,i),r:a,s:function(i,r){var e=t(i,r);if(!e)return i+"";var o=e[0],a=e[1],s=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,h=o.length;return s===h?o:s>h?o+new Array(s-h+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+t(i,Math.max(0,r+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function h(t){return t}var c,l,u,f=Array.prototype.map,m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d(t){var r,o,a=void 0===t.grouping||void 0===t.thousands?h:(r=f.call(t.grouping,Number),o=t.thousands+"",function(t,i){for(var n=t.length,e=[],a=0,s=r[0],h=0;n>0&&s>0&&(h+s+1>i&&(s=Math.max(1,i-h)),e.push(t.substring(n-=s,n+s)),!((h+=s+1)>i));)s=r[a=(a+1)%r.length];return e.reverse().join(o)}),c=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?h:function(t){return function(i){return i.replace(/[0-9]/g,(function(i){return t[+i]}))}}(f.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",p=void 0===t.minus?"":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function M(t){var i=(t=e(t)).fill,r=t.align,o=t.sign,h=t.symbol,f=t.zero,M=t.width,y=t.comma,x=t.precision,b=t.trim,w=t.type;"n"===w?(y=!0,w="g"):s[w]||(void 0===x&&(x=12),b=!0,w="g"),(f||"0"===i&&"="===r)&&(f=!0,i="0",r="=");var S="$"===h?c:"#"===h&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===h?l:/[%p]/.test(w)?g:"",z=s[w],A=/[defgprs%]/.test(w);function N(t){var e,s,h,c=S,l=k;if("c"===w)l=z(t)+l,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:z(Math.abs(t),x),b&&(t=function(t){t:for(var i,n=t.length,r=1,e=-1;r<n;++r)switch(t[r]){case".":e=i=r;break;case"0":0===e&&(e=r),i=r;break;default:if(!+t[r])break t;e>0&&(e=0)}return e>0?t.slice(0,e)+t.slice(i+1):t}(t)),g&&0==+t&&"+"!==o&&(g=!1),c=(g?"("===o?o:p:"-"===o||"("===o?"":o)+c,l=("s"===w?m[8+n/3]:"")+l+(g&&"("===o?")":""),A)for(e=-1,s=t.length;++e<s;)if(48>(h=t.charCodeAt(e))||h>57){l=(46===h?u+t.slice(e+1):t.slice(e))+l,t=t.slice(0,e);break}}y&&!f&&(t=a(t,1/0));var N=c.length+t.length+l.length,j=N<M?new Array(M-N+1).join(i):"";switch(y&&f&&(t=a(j+t,j.length?M-l.length:1/0),j=""),r){case"<":t=c+t+l+j;break;case"=":t=c+j+t+l;break;case"^":t=j.slice(0,N=j.length>>1)+c+t+l+j.slice(N);break;default:t=j+c+t+l}return d(t)}return x=void 0===x?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),N.toString=function(){return t+""},N}return{format:M,formatPrefix:function(t,n){var r=M(((t=e(t)).type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(i(n)/3))),a=Math.pow(10,-o),s=m[8+o/3];return function(t){return r(a*t)+s}}}}function g(t){return c=d(t),l=c.format,u=c.formatPrefix,c}function p(t){return Math.max(0,-i(Math.abs(t)))}function v(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(n)/3)))-i(Math.abs(t)))}function M(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,i(n)-i(t))+1}g({thousands:",",grouping:[3],currency:["$",""]});export{o as FormatSpecifier,l as format,g as formatDefaultLocale,d as formatLocale,u as formatPrefix,e as formatSpecifier,p as precisionFixed,v as precisionPrefix,M as precisionRound};export default null;

7
dist/02/_npm/d3-geo@3.1.1/40599fb3.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-path@3.1.0/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
const t=Math.PI,i=2*t,h=1e-6,s=i-h;function _(t){this._+=t[0];for(let i=1,h=t.length;i<h;++i)this._+=arguments[i]+t[i]}class e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?_:function(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return _;const h=10**i;return function(t){this._+=t[0];for(let i=1,s=t.length;i<s;++i)this._+=Math.round(arguments[i]*h)/h+t[i]}}(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,h,s){this._append`Q${+t},${+i},${this._x1=+h},${this._y1=+s}`}bezierCurveTo(t,i,h,s,_,e){this._append`C${+t},${+i},${+h},${+s},${this._x1=+_},${this._y1=+e}`}arcTo(i,s,_,e,n){if(i=+i,s=+s,_=+_,e=+e,(n=+n)<0)throw new Error(`negative radius: ${n}`);let $=this._x1,a=this._y1,r=_-i,o=e-s,p=$-i,l=a-s,u=p*p+l*l;if(null===this._x1)this._append`M${this._x1=i},${this._y1=s}`;else if(u>h)if(Math.abs(l*r-o*p)>h&&n){let x=_-$,d=e-a,y=r*r+o*o,M=x*x+d*d,c=Math.sqrt(y),f=Math.sqrt(u),w=n*Math.tan((t-Math.acos((y+u-M)/(2*c*f)))/2),v=w/f,g=w/c;Math.abs(v-1)>h&&this._append`L${i+v*p},${s+v*l}`,this._append`A${n},${n},0,0,${+(l*x>p*d)},${this._x1=i+g*r},${this._y1=s+g*o}`}else this._append`L${this._x1=i},${this._y1=s}`;else;}arc(_,e,n,$,a,r){if(_=+_,e=+e,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos($),p=n*Math.sin($),l=_+o,u=e+p,x=1^r,d=r?$-a:a-$;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>h||Math.abs(this._y1-u)>h)&&this._append`L${l},${u}`,n&&(d<0&&(d=d%i+i),d>s?this._append`A${n},${n},0,1,${x},${_-o},${e-p}A${n},${n},0,1,${x},${this._x1=l},${this._y1=u}`:d>h&&this._append`A${n},${n},0,${+(d>=t)},${x},${this._x1=_+n*Math.cos(a)},${this._y1=e+n*Math.sin(a)}`)}rect(t,i,h,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${h=+h}v${+s}h${-h}Z`}toString(){return this._}}function n(){return new e}function $(t=3){return new e(+t)}n.prototype=e.prototype;export{e as Path,n as path,$ as pathRound};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-polygon@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function n(n){for(var r,t=-1,o=n.length,e=n[o-1],l=0;++t<o;)r=e,e=n[t],l+=r[1]*e[0]-r[0]*e[1];return l/2}function r(n){for(var r,t,o=-1,e=n.length,l=0,u=0,f=n[e-1],a=0;++o<e;)r=f,f=n[o],a+=t=r[0]*f[1]-f[0]*r[1],l+=(r[0]+f[0])*t,u+=(r[1]+f[1])*t;return[l/(a*=3),u/a]}function t(n,r){return n[0]-r[0]||n[1]-r[1]}function o(n){const r=n.length,t=[0,1];let o,e=2;for(o=2;o<r;++o){for(;e>1&&(l=n[t[e-2]],u=n[t[e-1]],f=n[o],(u[0]-l[0])*(f[1]-l[1])-(u[1]-l[1])*(f[0]-l[0])<=0);)--e;t[e++]=o}var l,u,f;return t.slice(0,e)}function e(n){if((e=n.length)<3)return null;var r,e,l=new Array(e),u=new Array(e);for(r=0;r<e;++r)l[r]=[+n[r][0],+n[r][1],r];for(l.sort(t),r=0;r<e;++r)u[r]=[l[r][0],-l[r][1]];var f=o(l),a=o(u),g=a[0]===f[0],h=a[a.length-1]===f[f.length-1],i=[];for(r=f.length-1;r>=0;--r)i.push(n[l[f[r]][2]]);for(r=+g;r<a.length-h;++r)i.push(n[l[a[r]][2]]);return i}function l(n,r){for(var t,o,e=n.length,l=n[e-1],u=r[0],f=r[1],a=l[0],g=l[1],h=!1,i=0;i<e;++i)t=(l=n[i])[0],(o=l[1])>f!=g>f&&u<(a-t)*(f-o)/(g-o)+t&&(h=!h),a=t,g=o;return h}function u(n){for(var r,t,o=-1,e=n.length,l=n[e-1],u=l[0],f=l[1],a=0;++o<e;)r=u,t=f,r-=u=(l=n[o])[0],t-=f=l[1],a+=Math.hypot(r,t);return a}export{n as polygonArea,r as polygonCentroid,l as polygonContains,e as polygonHull,u as polygonLength};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-quadtree@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function t(t,i,r,n){if(isNaN(i)||isNaN(r))return t;var e,h,s,o,a,u,l,_,f,x=t._root,c={data:n},y=t._x0,v=t._y0,d=t._x1,p=t._y1;if(!x)return t._root=c,t;for(;x.length;)if((u=i>=(h=(y+d)/2))?y=h:d=h,(l=r>=(s=(v+p)/2))?v=s:p=s,e=x,!(x=x[_=l<<1|u]))return e[_]=c,t;if(o=+t._x.call(null,x.data),a=+t._y.call(null,x.data),i===o&&r===a)return c.next=x,e?e[_]=c:t._root=c,t;do{e=e?e[_]=new Array(4):t._root=new Array(4),(u=i>=(h=(y+d)/2))?y=h:d=h,(l=r>=(s=(v+p)/2))?v=s:p=s}while((_=l<<1|u)==(f=(a>=s)<<1|o>=h));return e[f]=x,e[_]=c,t}function i(t,i,r,n,e){this.node=t,this.x0=i,this.y0=r,this.x1=n,this.y1=e}function r(t){return t[0]}function n(t){return t[1]}function e(t,i,e){var s=new h(null==i?r:i,null==e?n:e,NaN,NaN,NaN,NaN);return null==t?s:s.addAll(t)}function h(t,i,r,n,e,h){this._x=t,this._y=i,this._x0=r,this._y0=n,this._x1=e,this._y1=h,this._root=void 0}function s(t){for(var i={data:t.data},r=i;t=t.next;)r=r.next={data:t.data};return i}var o=e.prototype=h.prototype;o.copy=function(){var t,i,r=new h(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var e=0;e<4;++e)(i=n.source[e])&&(i.length?t.push({source:i,target:n.target[e]=new Array(4)}):n.target[e]=s(i));return r},o.add=function(i){const r=+this._x.call(null,i),n=+this._y.call(null,i);return t(this.cover(r,n),r,n,i)},o.addAll=function(i){var r,n,e,h,s=i.length,o=new Array(s),a=new Array(s),u=1/0,l=1/0,_=-1/0,f=-1/0;for(n=0;n<s;++n)isNaN(e=+this._x.call(null,r=i[n]))||isNaN(h=+this._y.call(null,r))||(o[n]=e,a[n]=h,e<u&&(u=e),e>_&&(_=e),h<l&&(l=h),h>f&&(f=h));if(u>_||l>f)return this;for(this.cover(u,l).cover(_,f),n=0;n<s;++n)t(this,o[n],a[n],i[n]);return this},o.cover=function(t,i){if(isNaN(t=+t)||isNaN(i=+i))return this;var r=this._x0,n=this._y0,e=this._x1,h=this._y1;if(isNaN(r))e=(r=Math.floor(t))+1,h=(n=Math.floor(i))+1;else{for(var s,o,a=e-r||1,u=this._root;r>t||t>=e||n>i||i>=h;)switch(o=(i<n)<<1|t<r,(s=new Array(4))[o]=u,u=s,a*=2,o){case 0:e=r+a,h=n+a;break;case 1:r=e-a,h=n+a;break;case 2:e=r+a,n=h-a;break;case 3:r=e-a,n=h-a}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=e,this._y1=h,this},o.data=function(){var t=[];return this.visit((function(i){if(!i.length)do{t.push(i.data)}while(i=i.next)})),t},o.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},o.find=function(t,r,n){var e,h,s,o,a,u,l,_=this._x0,f=this._y0,x=this._x1,c=this._y1,y=[],v=this._root;for(v&&y.push(new i(v,_,f,x,c)),null==n?n=1/0:(_=t-n,f=r-n,x=t+n,c=r+n,n*=n);u=y.pop();)if(!(!(v=u.node)||(h=u.x0)>x||(s=u.y0)>c||(o=u.x1)<_||(a=u.y1)<f))if(v.length){var d=(h+o)/2,p=(s+a)/2;y.push(new i(v[3],d,p,o,a),new i(v[2],h,p,d,a),new i(v[1],d,s,o,p),new i(v[0],h,s,d,p)),(l=(r>=p)<<1|t>=d)&&(u=y[y.length-1],y[y.length-1]=y[y.length-1-l],y[y.length-1-l]=u)}else{var w=t-+this._x.call(null,v.data),N=r-+this._y.call(null,v.data),g=w*w+N*N;if(g<n){var A=Math.sqrt(n=g);_=t-A,f=r-A,x=t+A,c=r+A,e=v.data}}return e},o.remove=function(t){if(isNaN(h=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var i,r,n,e,h,s,o,a,u,l,_,f,x=this._root,c=this._x0,y=this._y0,v=this._x1,d=this._y1;if(!x)return this;if(x.length)for(;;){if((u=h>=(o=(c+v)/2))?c=o:v=o,(l=s>=(a=(y+d)/2))?y=a:d=a,i=x,!(x=x[_=l<<1|u]))return this;if(!x.length)break;(i[_+1&3]||i[_+2&3]||i[_+3&3])&&(r=i,f=_)}for(;x.data!==t;)if(n=x,!(x=x.next))return this;return(e=x.next)&&delete x.next,n?(e?n.next=e:delete n.next,this):i?(e?i[_]=e:delete i[_],(x=i[0]||i[1]||i[2]||i[3])&&x===(i[3]||i[2]||i[1]||i[0])&&!x.length&&(r?r[f]=x:this._root=x),this):(this._root=e,this)},o.removeAll=function(t){for(var i=0,r=t.length;i<r;++i)this.remove(t[i]);return this},o.root=function(){return this._root},o.size=function(){var t=0;return this.visit((function(i){if(!i.length)do{++t}while(i=i.next)})),t},o.visit=function(t){var r,n,e,h,s,o,a=[],u=this._root;for(u&&a.push(new i(u,this._x0,this._y0,this._x1,this._y1));r=a.pop();)if(!t(u=r.node,e=r.x0,h=r.y0,s=r.x1,o=r.y1)&&u.length){var l=(e+s)/2,_=(h+o)/2;(n=u[3])&&a.push(new i(n,l,_,s,o)),(n=u[2])&&a.push(new i(n,e,_,l,o)),(n=u[1])&&a.push(new i(n,l,h,s,_)),(n=u[0])&&a.push(new i(n,e,h,l,_))}return this},o.visitAfter=function(t){var r,n=[],e=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));r=n.pop();){var h=r.node;if(h.length){var s,o=r.x0,a=r.y0,u=r.x1,l=r.y1,_=(o+u)/2,f=(a+l)/2;(s=h[0])&&n.push(new i(s,o,a,_,f)),(s=h[1])&&n.push(new i(s,_,a,u,f)),(s=h[2])&&n.push(new i(s,o,f,_,l)),(s=h[3])&&n.push(new i(s,_,f,u,l))}e.push(r)}for(;r=e.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this},o.x=function(t){return arguments.length?(this._x=t,this):this._x},o.y=function(t){return arguments.length?(this._y=t,this):this._y};export{e as quadtree};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-random@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var r=Math.random,n=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,1===arguments.length?(t=r,r=0):t-=r,function(){return n()*t+r}}return t.source=r,t}(r),t=function r(n){function t(r,t){return arguments.length<2&&(t=r,r=0),r=Math.floor(r),t=Math.floor(t)-r,function(){return Math.floor(n()*t+r)}}return t.source=r,t}(r),o=function r(n){function t(r,t){var o,u;return r=null==r?0:+r,t=null==t?1:+t,function(){var a;if(null!=o)a=o,o=null;else do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(!u||u>1);return r+t*a*Math.sqrt(-2*Math.log(u)/u)}}return t.source=r,t}(r),u=function r(n){var t=o.source(n);function u(){var r=t.apply(this,arguments);return function(){return Math.exp(r())}}return u.source=r,u}(r),a=function r(n){function t(r){return(r=+r)<=0?()=>0:function(){for(var t=0,o=r;o>1;--o)t+=n();return t+o*n()}}return t.source=r,t}(r),e=function r(n){var t=a.source(n);function o(r){if(0==(r=+r))return n;var o=t(r);return function(){return o()/r}}return o.source=r,o}(r),i=function r(n){function t(r){return function(){return-Math.log1p(-n())/r}}return t.source=r,t}(r),c=function r(n){function t(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-n(),r)}}return t.source=r,t}(r),f=function r(n){function t(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+r)}}return t.source=r,t}(r),l=function r(n){function t(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return 0===r?()=>1/0:1===r?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-n())/r)})}return t.source=r,t}(r),s=function r(n){var t=o.source(n)();function u(r,o){if((r=+r)<0)throw new RangeError("invalid k");if(0===r)return()=>0;if(o=null==o?1:+o,1===r)return()=>-Math.log1p(-n())*o;var u=(r<1?r+1:r)-1/3,a=1/(3*Math.sqrt(u)),e=r<1?()=>Math.pow(n(),1/r):()=>1;return function(){do{do{var r=t(),i=1+a*r}while(i<=0);i*=i*i;var c=1-n()}while(c>=1-.0331*r*r*r*r&&Math.log(c)>=.5*r*r+u*(1-i+Math.log(i)));return u*i*e()*o}}return u.source=r,u}(r),h=function r(n){var t=s.source(n);function o(r,n){var o=t(r),u=t(n);return function(){var r=o();return 0===r?0:r/(r+u())}}return o.source=r,o}(r),M=function r(n){var t=l.source(n),o=h.source(n);function u(r,n){return r=+r,(n=+n)>=1?()=>r:n<=0?()=>0:function(){for(var u=0,a=r,e=n;a*e>16&&a*(1-e)>16;){var i=Math.floor((a+1)*e),c=o(i,a-i+1)();c<=e?(u+=i,a-=i,e=(e-c)/(1-c)):(a=i-1,e/=c)}for(var f=e<.5,l=t(f?e:1-e),s=l(),h=0;s<=a;++h)s+=l();return u+(f?h:a-h)}}return u.source=r,u}(r),v=function r(n){function t(r,t,o){var u;return 0==(r=+r)?u=r=>-Math.log(r):(r=1/r,u=n=>Math.pow(n,r)),t=null==t?0:+t,o=null==o?1:+o,function(){return t+o*u(-Math.log1p(-n()))}}return t.source=r,t}(r),d=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,function(){return r+t*Math.tan(Math.PI*n())}}return t.source=r,t}(r),m=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,function(){var o=n();return r+t*Math.log(o/(1-o))}}return t.source=r,t}(r),g=function r(n){var t=s.source(n),o=M.source(n);function u(r){return function(){for(var u=0,a=r;a>16;){var e=Math.floor(.875*a),i=t(e)();if(i>a)return u+o(e-1,a/i)();u+=e,a-=i}for(var c=-Math.log1p(-n()),f=0;c<=a;++f)c-=Math.log1p(-n());return u+f}}return u.source=r,u}(r);const p=1/4294967296;function w(r=Math.random()){let n=0|(0<=r&&r<1?r/p:Math.abs(r));return()=>(n=1664525*n+1013904223|0,p*(n>>>0))}export{e as randomBates,f as randomBernoulli,h as randomBeta,M as randomBinomial,d as randomCauchy,i as randomExponential,s as randomGamma,l as randomGeometric,t as randomInt,a as randomIrwinHall,w as randomLcg,u as randomLogNormal,m as randomLogistic,o as randomNormal,c as randomPareto,g as randomPoisson,n as randomUniform,v as randomWeibull};export default null;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3-timer@3.0.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var t,n,e=0,r=0,o=0,i=0,a=0,l=0,u="object"==typeof performance&&performance.now?performance:Date,c="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function s(){return a||(c(f),a=u.now()+l)}function f(){a=0}function _(){this._call=this._time=this._next=null}function w(t,n,e){var r=new _;return r.restart(t,n,e),r}function m(){s(),++e;for(var n,r=t;r;)(n=a-r._time)>=0&&r._call.call(void 0,n),r=r._next;--e}function p(){a=(i=u.now())+l,e=r=0;try{m()}finally{e=0,function(){var e,r,o=t,i=1/0;for(;o;)o._call?(i>o._time&&(i=o._time),e=o,o=o._next):(r=o._next,o._next=null,o=e?e._next=r:t=r);n=e,v(i)}(),a=0}}function h(){var t=u.now(),n=t-i;n>1e3&&(l-=n,i=t)}function v(t){e||(r&&(r=clearTimeout(r)),t-a>24?(t<1/0&&(r=setTimeout(p,t-u.now()-l)),o&&(o=clearInterval(o))):(o||(i=u.now(),o=setInterval(h,1e3)),e=1,c(p)))}function x(t,n,e){var r=new _;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}function y(t,n,e){var r=new _,o=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?s():+e,r._restart((function i(a){a+=o,r._restart(i,o+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)}_.prototype=w.prototype={constructor:_,restart:function(e,r,o){if("function"!=typeof e)throw new TypeError("callback is not a function");o=(null==o?s():+o)+(null==r?0:+r),this._next||n===this||(n?n._next=this:t=this,n=this),this._call=e,this._time=o,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};export{y as interval,s as now,x as timeout,w as timer,m as timerFlush};export default null;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

7
dist/02/_npm/d3@7.9.0/e780feca.js vendored Normal file
View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/d3@7.9.0/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
export*from"../d3-array@3.2.4/e93ca09f.js";export*from"../d3-axis@3.0.0/0f2de24d.js";export*from"../d3-brush@3.0.0/65eb105b.js";export*from"../d3-chord@3.0.1/7ef8fb2e.js";export*from"../d3-color@3.1.0/aeb57b94.js";export*from"../d3-contour@4.0.2/1d2aed74.js";export*from"../d3-delaunay@6.0.4/5ced1d52.js";export*from"../d3-dispatch@3.0.1/9ba9c7f3.js";export*from"../d3-drag@3.0.0/4202580c.js";export*from"../d3-dsv@3.0.1/9cffc2bd.js";export*from"../d3-ease@3.0.1/cdd7e898.js";export*from"../d3-fetch@3.0.1/b4e2ad9a.js";export*from"../d3-force@3.0.0/5e804d15.js";export*from"../d3-format@3.1.0/86074ef6.js";export*from"../d3-geo@3.1.1/40599fb3.js";export*from"../d3-hierarchy@3.1.2/e49e792c.js";export*from"../d3-interpolate@3.0.1/8d1e5425.js";export*from"../d3-path@3.1.0/20d3f133.js";export*from"../d3-polygon@3.0.1/7553081f.js";export*from"../d3-quadtree@3.0.1/0dfd751c.js";export*from"../d3-random@3.0.1/3c90ee06.js";export*from"../d3-scale@4.0.2/843b6a76.js";export*from"../d3-scale-chromatic@3.1.0/ba24c2e7.js";export*from"../d3-selection@3.0.0/4d94e5b7.js";export*from"../d3-shape@3.2.0/6d3a6726.js";export*from"../d3-time@3.1.0/9f03c579.js";export*from"../d3-time-format@4.1.0/07c9626f.js";export*from"../d3-timer@3.0.1/b58a267d.js";export*from"../d3-transition@3.0.1/004da2ac.js";export*from"../d3-zoom@3.0.0/b5786b3f.js";export default null;

File diff suppressed because one or more lines are too long

7
dist/02/_npm/htl@0.3.1/72f4716c.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/internmap@2.0.3/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
class e extends Map{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(n(this,e),t)}delete(e){return super.delete(s(this,e))}}class t extends Set{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(r(this,e))}add(e){return super.add(n(this,e))}delete(e){return super.delete(s(this,e))}}function r({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function n({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function s({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function u(e){return null!==e&&"object"==typeof e?e.valueOf():e}export{e as InternMap,t as InternSet};export default null;

View File

@ -0,0 +1,7 @@
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/isoformat@0.2.1/src/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function t(t,n){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"function"==typeof n?n(t):n;const o=t.getUTCHours(),d=t.getUTCMinutes(),r=t.getUTCSeconds(),u=t.getUTCMilliseconds();return`${$=t.getUTCFullYear(),$<0?`-${e(-$,6)}`:$>9999?`+${e($,6)}`:e($,4)}-${e(t.getUTCMonth()+1,2)}-${e(t.getUTCDate(),2)}${o||d||r||u?`T${e(o,2)}:${e(d,2)}${r||u?`:${e(r,2)}${u?`.${e(u,3)}`:""}`:""}Z`:""}`;var $}function e(t,e){return`${t}`.padStart(e,"0")}const n=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function o(t,e){return n.test(t+="")?new Date(t):"function"==typeof e?e(t):e}export{t as format,o as parse};export default null;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.inputs-3a86ea{--length1: 3.25px;--length2: 6.5px;--length3: 13px;--label-width: 120px;--input-width: 240px;font:13px/1.2 var(--sans-serif)}form.inputs-3a86ea{display:flex;align-items:center;flex-wrap:wrap;min-height:25.5px;margin:var(--length3) 0}form.inputs-3a86ea>label{width:100%;padding-bottom:3px}form.inputs-3a86ea-toggle{flex-wrap:nowrap}form.inputs-3a86ea-toggle>label{align-self:start;padding:5px 0 4px;margin-right:var(--length2)}form.inputs-3a86ea-toggle>label,form.inputs-3a86ea-toggle .inputs-3a86ea-input{width:initial}@media only screen and (min-width: 30em){form.inputs-3a86ea{flex-wrap:nowrap;width:calc(var(--input-width) + var(--label-width));max-width:100%;margin:initial}form.inputs-3a86ea>label{flex-shrink:0;align-self:start;padding:5px 0 4px;width:var(--label-width);margin-right:var(--length2)}}.inputs-3a86ea button,.inputs-3a86ea input,.inputs-3a86ea select,.inputs-3a86ea table,.inputs-3a86ea textarea{color:inherit;font:inherit;box-sizing:border-box}.inputs-3a86ea button,.inputs-3a86ea input{line-height:normal}.inputs-3a86ea button{margin:0}.inputs-3a86ea button+button{margin-left:var(--length1)}.inputs-3a86ea-textarea{--input-width: 520px}.inputs-3a86ea-textarea>div{width:100%;text-align:right}.inputs-3a86ea-textarea>div textarea{display:block;width:100%;margin:0;padding:4px;min-height:calc(2.5em + 8px);max-height:calc(14em + 8px);resize:vertical}.inputs-3a86ea-textarea>div button{margin:4px 0 0}.inputs-3a86ea input[type=radio],.inputs-3a86ea input[type=checkbox]{margin-right:var(--length2)}.inputs-3a86ea-input{display:flex;align-items:center;width:100%}.inputs-3a86ea-input>input,.inputs-3a86ea-input>button,.inputs-3a86ea-input>output{width:inherit;min-width:0}.inputs-3a86ea-input>button,.inputs-3a86ea-input>output,.inputs-3a86ea-input>input[type=number]{flex-shrink:2.5}.inputs-3a86ea-input>output{white-space:pre;margin-left:var(--length2)}.inputs-3a86ea-input>button{margin-left:var(--length1)}.inputs-3a86ea-input>input[type=number]{font-variant-numeric:tabular-nums;flex-shrink:1.5;text-overflow:ellipsis}.inputs-3a86ea-input>input[type=color]~output{font-family:ui-monospace,var(--monospace)}.inputs-3a86ea-input:not(:only-child)>input[type=color]~output{flex-shrink:1}.inputs-3a86ea-input>input[type=range]{margin:0;margin-left:var(--length2)}.inputs-3a86ea-input>input[type=date],.inputs-3a86ea-input>input[type=datetime-local]{height:22px}form.inputs-3a86ea-checkbox{width:auto;max-width:640px}.inputs-3a86ea-checkbox div label{display:inline-flex;align-items:center;margin-right:var(--length3)}form.inputs-3a86ea-table{display:block;overflow-y:auto;width:100%}.inputs-3a86ea-table table{max-width:initial;min-height:33px;margin:0;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.inputs-3a86ea-table tr:not(:last-child) td,.inputs-3a86ea-table tr:not(:last-child) th{border-bottom:solid 1px var(--theme-foreground-faintest)}.inputs-3a86ea-table thead tr td,.inputs-3a86ea-table thead tr th{border-bottom:solid 1px var(--theme-foreground-fainter)}.inputs-3a86ea-table thead th span{display:inline-block;width:.5em;margin-left:-.5em}.inputs-3a86ea-table td,.inputs-3a86ea-table th{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:3px 6.5px 3px 0}.inputs-3a86ea-table tr>:not(:first-of-type){padding-left:var(--length2)}.inputs-3a86ea-table tr>:last-of-type{padding-right:var(--length3)}.inputs-3a86ea-table tr>:first-of-type{text-overflow:unset;width:19px}.inputs-3a86ea-table tr>:first-of-type input{opacity:0;margin:0 3px 1px 4px}.inputs-3a86ea-table tr:hover>:first-of-type input:enabled,.inputs-3a86ea-table tr>:first-of-type input:focus,.inputs-3a86ea-table tr>:first-of-type input:checked,.inputs-3a86ea-table tr>:first-of-type input[type=checkbox]:indeterminate{opacity:inherit}.inputs-3a86ea-table thead tr{border-bottom:none}.inputs-3a86ea-table thead th{position:sticky;top:0;background:var(--theme-background);cursor:ns-resize}.inputs-3a86ea-table tbody tr:first-child td{padding-top:4px}

File diff suppressed because one or more lines are too long

230
dist/02/index.html vendored Normal file
View File

@ -0,0 +1,230 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="generator" content="Observable Framework v1.13.3">
<title>Genuary26 - 2 | Genuary02</title>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&amp;display=swap" crossorigin>
<link rel="preload" as="style" href="./_observablehq/theme-air,near-midnight.dcdbf18e.css">
<link rel="preload" as="style" href="./_observablehq/stdlib/inputs.ea9fd553.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&amp;display=swap" crossorigin>
<link rel="stylesheet" type="text/css" href="./_observablehq/theme-air,near-midnight.dcdbf18e.css">
<link rel="stylesheet" type="text/css" href="./_observablehq/stdlib/inputs.ea9fd553.css">
<link rel="modulepreload" href="./_observablehq/client.28f3e803.js">
<link rel="modulepreload" href="./_observablehq/runtime.e080113b.js">
<link rel="modulepreload" href="./_observablehq/stdlib.73a8ec5a.js">
<link rel="modulepreload" href="./_npm/d3@7.9.0/e780feca.js">
<link rel="modulepreload" href="./_observablehq/stdlib/inputs.4ef1d259.js">
<link rel="modulepreload" href="./_npm/htl@0.3.1/72f4716c.js">
<link rel="modulepreload" href="./_npm/isoformat@0.2.1/18cbf477.js">
<link rel="modulepreload" href="./_npm/d3-array@3.2.4/e93ca09f.js">
<link rel="modulepreload" href="./_npm/d3-axis@3.0.0/0f2de24d.js">
<link rel="modulepreload" href="./_npm/d3-brush@3.0.0/65eb105b.js">
<link rel="modulepreload" href="./_npm/d3-chord@3.0.1/7ef8fb2e.js">
<link rel="modulepreload" href="./_npm/d3-color@3.1.0/aeb57b94.js">
<link rel="modulepreload" href="./_npm/d3-contour@4.0.2/1d2aed74.js">
<link rel="modulepreload" href="./_npm/d3-delaunay@6.0.4/5ced1d52.js">
<link rel="modulepreload" href="./_npm/d3-dispatch@3.0.1/9ba9c7f3.js">
<link rel="modulepreload" href="./_npm/d3-drag@3.0.0/4202580c.js">
<link rel="modulepreload" href="./_npm/d3-dsv@3.0.1/9cffc2bd.js">
<link rel="modulepreload" href="./_npm/d3-ease@3.0.1/cdd7e898.js">
<link rel="modulepreload" href="./_npm/d3-fetch@3.0.1/b4e2ad9a.js">
<link rel="modulepreload" href="./_npm/d3-force@3.0.0/5e804d15.js">
<link rel="modulepreload" href="./_npm/d3-format@3.1.0/86074ef6.js">
<link rel="modulepreload" href="./_npm/d3-geo@3.1.1/40599fb3.js">
<link rel="modulepreload" href="./_npm/d3-hierarchy@3.1.2/e49e792c.js">
<link rel="modulepreload" href="./_npm/d3-interpolate@3.0.1/8d1e5425.js">
<link rel="modulepreload" href="./_npm/d3-path@3.1.0/20d3f133.js">
<link rel="modulepreload" href="./_npm/d3-polygon@3.0.1/7553081f.js">
<link rel="modulepreload" href="./_npm/d3-quadtree@3.0.1/0dfd751c.js">
<link rel="modulepreload" href="./_npm/d3-random@3.0.1/3c90ee06.js">
<link rel="modulepreload" href="./_npm/d3-scale@4.0.2/843b6a76.js">
<link rel="modulepreload" href="./_npm/d3-scale-chromatic@3.1.0/ba24c2e7.js">
<link rel="modulepreload" href="./_npm/d3-selection@3.0.0/4d94e5b7.js">
<link rel="modulepreload" href="./_npm/d3-shape@3.2.0/6d3a6726.js">
<link rel="modulepreload" href="./_npm/d3-time@3.1.0/9f03c579.js">
<link rel="modulepreload" href="./_npm/d3-time-format@4.1.0/07c9626f.js">
<link rel="modulepreload" href="./_npm/d3-timer@3.0.1/b58a267d.js">
<link rel="modulepreload" href="./_npm/d3-transition@3.0.1/004da2ac.js">
<link rel="modulepreload" href="./_npm/d3-zoom@3.0.0/b5786b3f.js">
<link rel="modulepreload" href="./_npm/internmap@2.0.3/e08981d9.js">
<link rel="modulepreload" href="./_npm/delaunator@5.0.1/02d43215.js">
<link rel="modulepreload" href="./_npm/robust-predicates@3.0.2/aa00730b.js">
<link rel="icon" href="./_file/observable.1af93621.png" type="image/png" sizes="32x32">
<script type="module">
import {define} from "./_observablehq/client.28f3e803.js";
define({id: "fc1b3d75", outputs: ["WIDTH","HEIGHT","CELL","CELLW","CELLH","GEN_TIME","INIT_PROB","restart"], body: () => {
const WIDTH = 800;
const HEIGHT = 600;
const CELL = 10;
const CELLW = 80;
const CELLH = 60;
const GEN_TIME = 1000;
const INIT_PROB = 0.5;
const restart = { restart: false };
return {WIDTH,HEIGHT,CELL,CELLW,CELLH,GEN_TIME,INIT_PROB,restart};
}});
define({id: "4fd53651", inputs: ["view","Inputs"], outputs: ["trigger"], body: (view,Inputs) => {
const trigger = view(Inputs.button("Restart"));
return {trigger};
}});
define({id: "1eae74b2", inputs: ["trigger","restart"], body: (trigger,restart) => {
trigger;
restart["restart"] = true;
}});
define({id: "6dda8554", inputs: ["CELLW","CELLH","CELL","INIT_PROB","restart","GEN_TIME"], outputs: ["neighbours","show_grid"], body: (CELLW,CELLH,CELL,INIT_PROB,restart,GEN_TIME) => {
function neighbours(i, j, id) {
const VWRAP = CELLW * (CELLH - 1);
const e = i > 0 ? id - 1 : id + CELLW - 1;
const w = i < CELLW - 1 ? id + 1 : id - CELLW + 1;
const n = [e, id, w].map((v) => j > 0 ? v - CELLW : v + VWRAP);
const s = [e, id, w].map((v) => j < CELLH - 1 ? v + CELLW : v - VWRAP);
return [...n, e, w, ...s];
}
const show_grid = (async function* () {
const grid = [];
for( let j = 0; j < CELLH; j++ ) {
for ( let i = 0; i < CELLW; i++ ) {
const id = j * CELLW + i;
const cell = { id: id, x: (i + 0.5) * CELL, y: (j + 0.5) * CELL, live: Math.random() > INIT_PROB };
cell["n"] = neighbours(i, j, id);
grid.push(cell);
}
}
let i = 0;
while ( true ) {
if( restart["restart"] ) {
grid.forEach((c) => c.live = Math.random() > INIT_PROB);
restart["restart"] = false
}
yield grid.filter((d) => d.live);
i++;
const ngrid = [];
for( const id in grid ) {
const live_n = grid[id].n.filter((i) => grid[i].live).length;
if( grid[id].live ) {
ngrid[id] = ( live_n > 2 && live_n < 4 );
} else {
ngrid[id] = ( live_n === 3 );
}
}
for( const id in grid ) {
grid[id].live = ngrid[id];
}
await new Promise((resolve) => setTimeout(resolve, GEN_TIME));
}
})();
return {neighbours,show_grid};
}});
define({id: "983245fe", inputs: ["d3","WIDTH","HEIGHT","display"], outputs: ["svg","bg_g","cells_g","ease"], body: (d3,WIDTH,HEIGHT,display) => {
// Set up the svg canvas
const svg = d3.create("svg")
.attr("width", WIDTH)
.attr("height", HEIGHT)
.attr("viewBox", [ 0, 0, WIDTH, HEIGHT ]);
svg.append("clipPath")
.attr("id", "clipRect")
.append("rect")
.attr("x", 0)
.attr("y", 0)
.attr("width", WIDTH)
.attr("height", HEIGHT);
const bg_g = svg.append("g")
.attr("id", "background");
bg_g.selectAll("rect")
.data( [ { bg: "white" } ] )
.join("rect")
.attr("x", 0)
.attr("y", 0)
.attr("width", WIDTH)
.attr("height", HEIGHT)
.attr("fill", (d) => d.bg)
;
const cells_g = svg.append("g")
.attr("id", "cells");
// .attr("clip-path", "url(#clipRect)");
display(svg.node());
const ease = d3.easeElastic.period(0.4).amplitude(3);
return {svg,bg_g,cells_g,ease};
}});
define({id: "8b3388da", inputs: ["cells_g","show_grid","ease"], body: (cells_g,show_grid,ease) => {
cells_g.selectAll("circle")
.data(show_grid, d => d.id)
.join(
enter => enter.append("circle")
.attr("cx", (d) => d.x)
.attr("cy", (d) => d.y)
.attr("fill", "green")
.transition()
.ease(ease)
.duration(1000)
.attr("r", (d) => 10),
update => update.attr("fill", "blue"),
exit => exit
.transition()
.duration(2000)
.attr("r", 0)
.attr("cy", (d) => d.y + 400)
.remove()
);
}});
</script>
</head>
<body>
<div id="observablehq-center">
<aside id="observablehq-toc" data-selector="h1:not(:first-of-type)[id], h2:first-child[id], :not(h1) + h2[id]">
<nav>
</nav>
</aside>
<main id="observablehq-main" class="observablehq">
<h1 id="genuary26-2" tabindex="-1"><a class="observablehq-header-anchor" href="#genuary26-2">Genuary26 - 2</a></h1>
<p>Prompt: <a href="https://en.wikipedia.org/wiki/Twelve_basic_principles_of_animation" target="_blank" rel="noopener noreferrer">Twelve principles of animation</a></p>
<p><a href="https://en.wikipedia.org/wiki/Conway's_Game_of_Life" target="_blank" rel="noopener noreferrer">Conway's Game of Life</a> jazzed up with some d3 transitions.</p>
<p><a href="https://etc.mikelynch.org/genuary26/" target="_blank" rel="noopener noreferrer">back to Genuary26</a></p>
<div class="observablehq observablehq--block"><!--:fc1b3d75:--></div>
<div class="observablehq observablehq--block"><!--:4fd53651:--></div>
<div class="observablehq observablehq--block"><!--:1eae74b2:--></div>
<div class="observablehq observablehq--block"><!--:6dda8554:--></div>
<div class="observablehq observablehq--block"><!--:983245fe:--></div>
<div class="observablehq observablehq--block"><!--:8b3388da:--></div>
</main>
<footer id="observablehq-footer">
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2026-01-03T08:29:42">Jan 3, 2026</a>.</div>
</footer>
</div>
</body>
</html>

5052
dist/03/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

1102
dist/genuary01.svg vendored Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 20 KiB

32
dist/index.html vendored Normal file
View File

@ -0,0 +1,32 @@
<html>
<head>
<title>etc.mikelynch.org | Genuary 2026</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="main">
<h1>Genuary 2026</h1>
<p><a href="https://genuary.art/">Genuary</a> is a month of prompts for generative
art, this page is where I'm putting links as I build them. I'm also posting them
on the Fedivers at <a href="https://old.mermaid.town/@fsvo">@fsvo@old.mermaid.town</a></p>
<ul>
<li><a href="01/">1: one colour, one shape</a></li>
<li><a href="02/">2: twelve principles of animation</a></li>
</ul>
<p><a href="https://git.tilde.town/bombinans/genuary2026">Source code</a></p>
<p><a href="https://etc.mikelynch.org">More of my generative projects</a> | <a href="https://mikelynch.org">Blog</a></p>
</div>
</body>
</html>

46
dist/styles.css vendored Normal file
View File

@ -0,0 +1,46 @@
body {
background-color: #cee;
margin: 2em;
}
p, li, code, pre {
font-family: Helvetica, Arial, sans-serif;
font-size: 12pt;
}
h1 {
font-family: Helvetica, Arial, sans-serif;
font-size: 18pt;
}
h2 {
padding-top: 1em;
font-family: Helvetica, Arial, sans-serif;
font-size: 14pt;
}
h3 {
padding-top: 1em;
font-family: Helvetica, Arial, sans-serif;
font-size: 12pt;
}
div#main {
background-color: #fff;
color: #222;
margin-left: 100px;
margin-right: 100px;
margin-top: 40px;
margin-bottom: 40px;
padding: 1.5em;
}
table {
border-spacing: 3em 0em;
}
img {
max-width: 100%;
height: auto;
}