diff --git a/fmatte.html b/fmatte.html new file mode 100644 index 0000000..2059755 --- /dev/null +++ b/fmatte.html @@ -0,0 +1,25 @@ + + +
+ + + +=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Dt);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o >1)+h+t+M+S.slice(T);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Ku(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($u(n)/3))),i=Math.pow(10,-r),o=ic[8+r/3];return function(t){return e(i*t)+o}}}}function ac(n){return ec=oc(n),t.format=ec.format,t.formatPrefix=ec.formatPrefix,ec}function uc(t){return Math.max(0,-$u(Math.abs(t)))}function cc(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($u(n)/3)))-$u(Math.abs(t)))}function fc(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,$u(n)-$u(t))+1}ac({thousands:",",grouping:[3],currency:["$",""]});var sc=1e-6,lc=1e-12,hc=Math.PI,dc=hc/2,pc=hc/4,gc=2*hc,yc=180/hc,vc=hc/180,_c=Math.abs,bc=Math.atan,mc=Math.atan2,xc=Math.cos,wc=Math.ceil,Mc=Math.exp,Ac=Math.hypot,Tc=Math.log,Sc=Math.pow,Ec=Math.sin,kc=Math.sign||function(t){return t>0?1:t<0?-1:0},Nc=Math.sqrt,Cc=Math.tan;function Pc(t){return t>1?0:t<-1?hc:Math.acos(t)}function zc(t){return t>1?dc:t<-1?-dc:Math.asin(t)}function Dc(t){return(t=Ec(t/2))*t}function qc(){}function Rc(t,n){t&&Oc.hasOwnProperty(t.type)&&Oc[t.type](t,n)}var Fc={Feature:function(t,n){Rc(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=xc(n=(n*=vc)/2+pc),a=Ec(n),u=Xc*a,c=Hc*o+u*xc(i),f=u*r*Ec(i);rf.add(mc(f,c)),jc=t,Hc=o,Xc=a}function lf(t){return[mc(t[1],t[0]),zc(t[2])]}function hf(t){var n=t[0],e=t[1],r=xc(e);return[r*xc(n),r*Ec(n),Ec(e)]}function df(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function pf(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function gf(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function yf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function vf(t){var n=Nc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var _f,bf,mf,xf,wf,Mf,Af,Tf,Sf,Ef,kf,Nf,Cf,Pf,zf,Df,qf={point:Rf,lineStart:Of,lineEnd:Uf,polygonStart:function(){qf.point=If,qf.lineStart=Bf,qf.lineEnd=Yf,tf=new g,af.polygonStart()},polygonEnd:function(){af.polygonEnd(),qf.point=Rf,qf.lineStart=Of,qf.lineEnd=Uf,rf<0?(Gc=-($c=180),Vc=-(Wc=90)):tf>sc?Wc=90:tf<-1e-6&&(Vc=-90),ef[0]=Gc,ef[1]=$c},sphere:function(){Gc=-($c=180),Vc=-(Wc=90)}};function Rf(t,n){nf.push(ef=[Gc=t,$c=t]),n 0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r >>1;f[g]9999?"+"+Ka(t,6):Ka(t,4)}(t.getUTCFullYear())+"-"+Ka(t.getUTCMonth()+1,2)+"-"+Ka(t.getUTCDate(),2)+(i?"T"+Ka(n,2)+":"+Ka(e,2)+":"+Ka(r,2)+"."+Ka(i,3)+"Z":r?"T"+Ka(n,2)+":"+Ka(e,2)+":"+Ka(r,2)+"Z":e||n?"T"+Ka(n,2)+":"+Ka(e,2)+"Z":"")}function Ja(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,f=!1;function s(){if(c)return $a;if(f)return f=!1,Va;var n,r,i=a;if(34===t.charCodeAt(i)){for(;a++=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),m=_*_+b*b;if(m=s;--l)u.point(y[l],v[l]);u.lineEnd(),u.areaEnd()}g&&(y[f]=+t(h,f,c),v[f]=+n(h,f,c),u.point(r?+r(h,f,c):y[f],e?+e(h,f,c):v[f]))}if(d)return u=null,d+""||null}function f(){return mb().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?_b:V_(+t),n="function"==typeof n?n:V_(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?bb:V_(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:V_(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:V_(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:V_(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:V_(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:V_(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:V_(+t),c):e},c.lineX0=c.lineY0=function(){return f().x(t).y(n)},c.lineY1=function(){return f().x(t).y(e)},c.lineX1=function(){return f().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:V_(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function wb(t,n){return nnb)if(p>ib-nb)u.moveTo(l*Z_(h),l*J_(h)),u.arc(0,0,l,h,d,!g),s>nb&&(u.moveTo(s*Z_(d),s*J_(d)),u.arc(0,0,s,d,h,g));else{var y,v,_=h,b=d,m=h,x=d,w=p,M=p,A=a.apply(this,arguments)/2,T=A>nb&&(r?+r.apply(this,arguments):tb(s*s+l*l)),S=Q_($_(l-s)/2,+e.apply(this,arguments)),E=S,k=S;if(T>nb){var N=ab(T/s*J_(A)),C=ab(T/l*J_(A));(w-=2*N)>nb?(m+=N*=g?1:-1,x-=N):(w=0,m=x=(h+d)/2),(M-=2*C)>nb?(_+=C*=g?1:-1,b-=C):(M=0,_=b=(h+d)/2)}var P=l*Z_(_),z=l*J_(_),D=s*Z_(x),q=s*J_(x);if(S>nb){var R,F=l*Z_(b),O=l*J_(b),U=s*Z_(m),I=s*J_(m);if(pnb&&w>nb?E>nb?(y=db(D,q,F,O,s,-E,g),v=db(P,z,U,I,s,-E,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),E>a,f=i+2*u>>a,s=da(20);function l(r){var i=new Float32Array(c*f),l=new Float32Array(c*f);r.forEach((function(r,o,s){var l=+t(r,o,s)+u>>a,h=+n(r,o,s)+u>>a,d=+e(r,o,s);l>=0&&l=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Uu(e))*l),0===h&&(p+=(h=Uu(e))*h),p(t=(1664525*t+1013904223)%ju)/ju}();function l(){h(),f.call("tick",n),e1?(f.on(t,e),n):f.on(t)}}},t.forceX=function(t){var n,e,r,i=Ou(.1);function o(t){for(var i,o=0,a=n.length;o=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++eLf(r[0],r[1])&&(r[1]=i[1]),Lf(i[0],r[1])>Lf(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Lf(r[1],i[0]))>a&&(a=u,Gc=i[0],$c=r[1])}return nf=ef=null,Gc===1/0||Vc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Gc,Vc],[$c,Wc]]},t.geoCentroid=function(t){_f=bf=mf=xf=wf=Mf=Af=Tf=0,Sf=new g,Ef=new g,kf=new g,Bc(t,Xf);var n=+Sf,e=+Ef,r=+kf,i=Ac(n,e,r);return i=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){var n,r,i,o,l,c=new h(t),d=+t.value&&(c.value=t.value),u=[c];for(null==e&&(e=s);n=u.pop();)if(d&&(n.value=+n.data.value),(i=e(n.data))&&(l=i.length))for(n.children=new Array(l),o=l-1;o>=0;--o)u.push(r=n.children[o]=new h(i[o])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(a)}function s(t){return t.children}function o(t){t.data=t.data.data}function a(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function h(t){this.data=t,this.depth=this.height=0,this.parent=null}h.prototype=i.prototype={constructor:h,count:function(){return this.eachAfter(r)},each:function(t){var e,n,r,i,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return i(this).eachBefore(o)}};const l=Object.freeze({children:t=>t.children,nodeSize:t=>t.data.size,spacing:0});function c(t){const e=Object.assign({},l,t);function n(t){const n=e[t];return"function"==typeof n?n:()=>n}function r(t){const e=o(function(){const t=s(),e=n("nodeSize"),r=n("spacing");return class extends t{constructor(t){super(t),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return e(this.data)}spacing(t){return r(this.data,t.data)}get x(){return this.data.x}set x(t){this.data.x=t}get y(){return this.data.y}set y(t){this.data.y=t}update(){return d(this),u(this),this}}}(),t,(t=>t.children));return e.update(),e.data}function s(){const t=n("nodeSize"),e=n("spacing");return class n extends i.prototype.constructor{constructor(t){super(t)}copy(){const t=o(this.constructor,this,(t=>t.children));return t.each((t=>t.data=t.data.data)),t}get size(){return t(this)}spacing(t){return e(this,t)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const t=this.ancestors();return t[t.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return null===this.children}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce(((t,e)=>n.maxExtents(t,e.extents)),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(t,e){return{top:Math.min(t.top,e.top),bottom:Math.max(t.bottom,e.bottom),left:Math.min(t.left,e.left),right:Math.max(t.right,e.right)}}}}function o(t,e,n){const r=(e,i)=>{const s=new t(e);Object.assign(s,{parent:i,depth:null===i?0:i.depth+1,height:0,length:1});const o=n(e)||[];return s.children=0===o.length?null:o.map((t=>r(t,s))),s.children&&Object.assign(s,s.children.reduce(((t,e)=>({height:Math.max(t.height,e.height+1),length:t.length+e.length})),s)),s};return r(e,null)}return Object.assign(r,{nodeSize(t){return arguments.length?(e.nodeSize=t,r):e.nodeSize},spacing(t){return arguments.length?(e.spacing=t,r):e.spacing},children(t){return arguments.length?(e.children=t,r):e.children},hierarchy(t,n){const r=void 0===n?e.children:n;return o(s(),t,r)},dump(t){const e=n("nodeSize"),r=t=>n=>{const i=t+" ",s=t+" ",{x:o,y:a}=n,h=e(n),l=n.children||[],c=0===l.length?" ":`,${i}children: [${s}${l.map(r(s)).join(s)}${i}],${t}`;return`{ size: [${h.join(", ")}],${i}x: ${o}, y: ${a}${c}},`};return r("\n")(t)}}),r}c.version="2.1.1";const d=(t,e=0)=>(t.y=e,(t.children||[]).reduce(((e,n)=>{const[r,i]=e;d(n,t.y+t.ySize);const s=(0===r?n.lExt:n.rExt).bottom;0!==r&&f(t,r,i);return[r+1,E(s,r,i)]}),[0,null]),p(t),S(t),t),u=(t,e,n)=>{void 0===e&&(e=-t.relX-t.prelim,n=0);const r=e+t.relX;return t.relX=r+t.prelim-n,t.prelim=0,t.x=n+t.relX,(t.children||[]).forEach((e=>u(e,r,t.x))),t},p=t=>{(t.children||[]).reduce(((t,e)=>{const[n,r]=t,i=n+e.shift,s=r+i+e.change;return e.relX+=s,[i,s]}),[0,0])},f=(t,e,n)=>{const r=t.children[e-1],i=t.children[e];let s=r,o=r.relX,a=i,h=i.relX,l=!0;for(;s&&a;){s.bottom>n.lowY&&(n=n.next);const r=o+s.prelim-(h+a.prelim)+s.xSize/2+a.xSize/2+s.spacing(a);(r>0||r<0&&l)&&(h+=r,g(i,r),m(t,e,n.index,r)),l=!1;const c=s.bottom,d=a.bottom;c<=d&&(s=y(s),s&&(o+=s.relX)),c>=d&&(a=x(a),a&&(h+=a.relX))}!s&&a?v(t,e,a,h):s&&!a&&z(t,e,s,o)},g=(t,e)=>{t.relX+=e,t.lExtRelX+=e,t.rExtRelX+=e},m=(t,e,n,r)=>{const i=t.children[e],s=e-n;if(s>1){const e=r/s;t.children[n+1].shift+=e,i.shift-=e,i.change-=r-e}},x=t=>t.hasChildren?t.firstChild:t.lThr,y=t=>t.hasChildren?t.lastChild:t.rThr,v=(t,e,n,r)=>{const i=t.firstChild,s=i.lExt,o=t.children[e];s.lThr=n;const a=r-n.relX-i.lExtRelX;s.relX+=a,s.prelim-=a,i.lExt=o.lExt,i.lExtRelX=o.lExtRelX},z=(t,e,n,r)=>{const i=t.children[e],s=i.rExt,o=t.children[e-1];s.rThr=n;const a=r-n.relX-i.rExtRelX;s.relX+=a,s.prelim-=a,i.rExt=o.rExt,i.rExtRelX=o.rExtRelX},S=t=>{if(t.hasChildren){const e=t.firstChild,n=t.lastChild,r=(e.prelim+e.relX-e.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(t,{prelim:r,lExt:e.lExt,lExtRelX:e.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},E=(t,e,n)=>{for(;null!==n&&t>=n.lowY;)n=n.next;return{lowY:t,index:e,next:n}};
+/*! markmap-common v0.1.1 | MIT License */
+class ${constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const e of this.listeners)e(...t)}}const k=Math.random().toString(36).slice(2,8);let w=0;function X(){}function b(t,e,n="c"){const r=(t,i)=>e(t,(()=>{var e;null==(e=t[n])||e.forEach((e=>{r(e,t)}))}),i);r(t)}function C(t){if(Array.from)return Array.from(t);const e=[];for(let n=0;n