@flowfuse/node-red-dashboard 1.17.1 → 1.17.2-2f7e5aa-202409241526.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/nodes/config/ui_base.js +17 -0
  2. package/package.json +1 -1
  3. package/dist/apple-touch-icon.png +0 -0
  4. package/dist/assets/Tableau10-B-NsZVaP.js +0 -1
  5. package/dist/assets/array-BKyUJesY.js +0 -1
  6. package/dist/assets/blockDiagram-9f4a6865-DLv1eFji.js +0 -118
  7. package/dist/assets/c4Diagram-ae766693-o3_gKRLa.js +0 -10
  8. package/dist/assets/channel-Dn_B0cca.js +0 -1
  9. package/dist/assets/classDiagram-fb54d2a0-CWSUvD1l.js +0 -2
  10. package/dist/assets/classDiagram-v2-a2b738ad-Bn9nyPj-.js +0 -2
  11. package/dist/assets/clone-ClVghFG1.js +0 -1
  12. package/dist/assets/createText-ca0c5216-NgaX3QcM.js +0 -7
  13. package/dist/assets/edges-066a5561-DCS2xMnD.js +0 -4
  14. package/dist/assets/erDiagram-09d1c15f-Ddsaz8A1.js +0 -51
  15. package/dist/assets/flowDb-c1833063-BotOmiVg.js +0 -10
  16. package/dist/assets/flowDiagram-b222e15a-kzqyHu-B.js +0 -4
  17. package/dist/assets/flowDiagram-v2-13329dc7-ncDLokBL.js +0 -1
  18. package/dist/assets/flowchart-elk-definition-ae0efee6-BgpxVLL5.js +0 -139
  19. package/dist/assets/ganttDiagram-b62c793e-DMSuENQE.js +0 -257
  20. package/dist/assets/gitGraphDiagram-942e62fe-DtgW2Vr3.js +0 -70
  21. package/dist/assets/graph-B4DSEYBQ.js +0 -1
  22. package/dist/assets/index-01f381cb-gI_ycIVk.js +0 -1
  23. package/dist/assets/index-MSWd7-zB.js +0 -245
  24. package/dist/assets/index-mw8XLttV.css +0 -13
  25. package/dist/assets/infoDiagram-94cd232f-C6UmgqPm.js +0 -7
  26. package/dist/assets/init-Gi6I4Gst.js +0 -1
  27. package/dist/assets/journeyDiagram-6625b456-D_NtRpRB.js +0 -139
  28. package/dist/assets/katex-CvgdMzdh.js +0 -261
  29. package/dist/assets/layout-B7_CN_XE.js +0 -1
  30. package/dist/assets/line-B-5cYoyU.js +0 -1
  31. package/dist/assets/linear-DCMDy9G4.js +0 -1
  32. package/dist/assets/logo-DIAzbBuw.png +0 -0
  33. package/dist/assets/materialdesignicons-webfont-B7mPwVP_.ttf +0 -0
  34. package/dist/assets/materialdesignicons-webfont-CSr8KVlo.eot +0 -0
  35. package/dist/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 +0 -0
  36. package/dist/assets/materialdesignicons-webfont-PXm3-2wK.woff +0 -0
  37. package/dist/assets/mindmap-definition-307c710a-BKJDBCUQ.js +0 -110
  38. package/dist/assets/ordinal-Cboi1Yqb.js +0 -1
  39. package/dist/assets/pieDiagram-bb1d19e5-D2S4vlEU.js +0 -35
  40. package/dist/assets/quadrantDiagram-c759a472-Hjyw1H0_.js +0 -7
  41. package/dist/assets/requirementDiagram-87253d64-CVMd8qM_.js +0 -52
  42. package/dist/assets/sankeyDiagram-707fac0f-C_pMXBxK.js +0 -8
  43. package/dist/assets/sequenceDiagram-6894f283-DaqQdNNn.js +0 -122
  44. package/dist/assets/stateDiagram-5dee940d-BX7BTBKG.js +0 -1
  45. package/dist/assets/stateDiagram-v2-1992cada-BSrrlHiB.js +0 -1
  46. package/dist/assets/styles-0784dbeb-fDzSaL7R.js +0 -207
  47. package/dist/assets/styles-483fbfea-qVvElSNx.js +0 -116
  48. package/dist/assets/styles-b83b31c9-BZIIICGT.js +0 -160
  49. package/dist/assets/svgDrawCommon-5e1cfd1d-BHVF_mpL.js +0 -1
  50. package/dist/assets/timeline-definition-bf702344-DpJi5nhf.js +0 -61
  51. package/dist/assets/workbox-window.prod.es5-D5gOYdM7.js +0 -2
  52. package/dist/assets/xychartDiagram-f11f50a6-BHcm5GC0.js +0 -7
  53. package/dist/favicon.ico +0 -0
  54. package/dist/favicon.svg +0 -482
  55. package/dist/index.html +0 -22
  56. package/dist/logo-512x512.png +0 -0
  57. package/dist/logo.svg +0 -482
  58. package/dist/manifest.webmanifest +0 -1
  59. package/dist/maskable-icon-512x512.png +0 -0
  60. package/dist/pwa-192x192.png +0 -0
  61. package/dist/pwa-512x512.png +0 -0
  62. package/dist/pwa-64x64.png +0 -0
  63. package/dist/sw.js +0 -2
@@ -1 +0,0 @@
1
- import{a as F,b as gn,c as zn,d as L,k as Xn,e as Un,g as Hn,j as P,l as xn,m as En,n as kn,t as jn,o as yn,p as Jn,q as Kn,f as s,G as x,h as w,i as g,r as M,v as y,s as Y}from"./graph-B4DSEYBQ.js";import{a7 as A,a8 as Zn,a9 as Qn,aa as Nn,ab as B,ac as Ln,ad as ne,ae as _n,af as J,ag as ee,ah as re,ai as K,aj as te,ak as Cn,al as ie,am as ae,an as H}from"./index-MSWd7-zB.js";var oe=/\s/;function ue(n){for(var e=n.length;e--&&oe.test(n.charAt(e)););return e}var de=/^\s+/;function fe(n){return n&&n.slice(0,ue(n)+1).replace(de,"")}var un=NaN,se=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,he=/^0o[0-7]+$/i,le=parseInt;function ve(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=fe(n);var r=ce.test(n);return r||he.test(n)?le(n.slice(2),r?2:8):se.test(n)?un:+n}var dn=1/0,pe=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=ve(n),n===dn||n===-dn){var e=n<0?-1:1;return e*pe}return n===n?n:0}function we(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?gn(n):[]}function me(n){return Zn(Qn(n,void 0,_),n+"")}var be=1,ge=4;function xe(n){return zn(n,be|ge)}var In=Object.prototype,Ee=In.hasOwnProperty,ke=Nn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=Ln(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||ne(c,In[f])&&!Ee.call(n,f))&&(n[f]=o[f])}return n});function G(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function ye(n){return function(e,r,t){var i=Object(e);if(!_n(e)){var o=L(r);e=Xn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ne=Math.max;function Le(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:we(r);return i<0&&(i=Ne(t+i,0)),Un(n,L(e),i)}var Z=ye(Le);function Rn(n,e){var r=-1,t=_n(n)?Array(n.length):[];return Hn(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=J(n)?P:Rn;return r(n,L(e))}function _e(n,e){return n==null?n:ee(n,xn(e),Ln)}function Ce(n,e){return n&&En(n,xn(e))}function Ie(n,e){return n>e}function Tn(n,e){return n<e}function $(n,e){var r={};return e=L(e),En(n,function(t,i,o){re(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function E(n){return n&&n.length?Q(n,K,Ie):void 0}function R(n){return n&&n.length?Q(n,K,Tn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Tn):void 0}function Re(n,e,r,t){if(!A(n))return n;e=kn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=void 0,f===void 0&&(f=A(c)?c:te(e[i+1])?[]:{})}Cn(u,d,f),u=u[d]}return n}function Te(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=yn(n,a);r(u,a)&&Re(o,kn(a,n),u)}return o}function Me(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Oe(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Pe(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Oe(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Se(n,e,r){e.length?e=P(e,function(o){return J(o)?function(a){return yn(a,o.length===1?o[0]:o)}:o}):e=[K];var t=-1;e=P(e,ie(L));var i=Rn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Me(i,function(o,a){return Pe(o,a,r)})}function Fe(n,e){return Te(n,e,function(r,t){return Jn(n,t)})}var V=me(function(n,e){return n==null?{}:Fe(n,e)}),Ae=Math.ceil,Be=Math.max;function Ge(n,e,r,t){for(var i=-1,o=Be(Ae((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function Ve(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),Ge(e,r,t)}}var N=Ve(),O=Nn(function(n,e){if(n==null)return[];var r=e.length;return r>1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Se(n,gn(e),[])}),Ye=0;function en(n){var e=++Ye;return Kn(n)+e}function $e(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function De(n,e){return $e(n||[],e||[],Cn)}class qe{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return fn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&fn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,We)),t=t._prev;return"["+e.join(", ")+"]"}}function fn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function We(n,e){if(n!=="_next"&&n!=="_prev")return e}var ze=ae(1);function Xe(n,e){if(n.nodeCount()<=1)return[];var r=He(n,e||ze),t=Ue(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function Ue(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,j(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,j(e,r,f)}),n.removeNode(t.v),o}function He(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new qe}),a=t+1;return s(r.nodes(),function(u){j(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function j(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function je(n){var e=n.graph().acyclicer==="greedy"?Xe(n,r(n)):Je(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Je(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function Ke(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function Ze(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Mn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function sn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(On(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function Qe(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function nr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function cn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function On(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function er(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function rr(n,e){return e()}function tr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)hn(n,"borderLeft","_bl",r,i,o),hn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function hn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function ir(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Pn(n)}function ar(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&or(n),(e==="lr"||e==="rl")&&(ur(n),Pn(n))}function Pn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function or(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function ur(n){s(n.nodes(),function(e){z(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,z),w(r,"x")&&z(r)})}function z(n){var e=n.x;n.x=n.y,n.y=e}function dr(n){n.graph().dummyChains=[],s(n.edges(),function(e){fr(n,e)})}function fr(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function sr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Sn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;cr(e,n)<t;)i=hr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),lr(e,n,o);return e}function cr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function hr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function lr(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function vr(){}vr.prototype=new Error;function Fn(n,e,r){J(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function pr(n,e){return Fn(n,e,"post")}function wr(n,e){return Fn(n,e,"pre")}k.initLowLimValues=an;k.initCutValues=tn;k.calcCutValue=Bn;k.leaveEdge=Vn;k.enterEdge=Yn;k.exchangeEdges=$n;function k(n){n=Ze(n),rn(n);var e=Sn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),$n(e,n,r,t)}function tn(n,e){var r=pr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){mr(n,e,t)})}function mr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,l=e.edge(d).weight;if(u+=h?l:-l,gr(n,r,c)){var v=n.edge(r,c).cutvalue;u+=h?-v:v}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return Z(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===vn(n,n.node(c.v),u)&&d!==vn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function $n(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),br(n,e)}function br(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=wr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function gr(n,e,r){return n.hasEdge(e,r)}function vn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function xr(n){switch(n.graph().ranker){case"network-simplex":pn(n);break;case"tight-tree":kr(n);break;case"longest-path":Er(n);break;default:pn(n)}}var Er=rn;function kr(n){rn(n),Sn(n)}function pn(n){k(n)}function yr(n){var e=C(n,"root",{},"_root"),r=Nr(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Lr(n)+1;s(n.children(),function(a){Dn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function Dn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=cn(n,"_bt"),f=cn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){Dn(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Nr(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Lr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function _r(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Cr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Ir(n,e,r){var t=Rr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Rr(n){for(var e;n.hasNode(e=en("_root")););return e}function Tr(n,e){for(var r=0,t=1;t<e.length;++t)r+=Mr(n,e[t-1],e[t]);return r}function Mr(n,e,r){for(var t=De(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Or(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Pr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Sr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Fr(t)}function Fr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Ar(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Ar(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Br(n,e){var r=er(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Gr(!!e)),d=wn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=wn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function wn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Gr(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Pr(n,i);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Yr(p,b)}});var c=Sr(f,r);Vr(c,d);var h=Br(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Vr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Yr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function $r(n){var e=On(n),r=mn(n,N(1,e+1),"inEdges"),t=mn(n,N(e-1,-1,-1),"outEdges"),i=Or(n);bn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Dr(u%2?r:t,u%4>=2),i=D(n);var f=Tr(n,i);f<o&&(d=0,a=xe(i),o=f)}bn(n,a)}function mn(n,e,r){return m(e,function(t){return Ir(n,t,r)})}function Dr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=qn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Cr(t,r,o.vs)})}function bn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function qr(n){var e=zr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Wr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Wr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function zr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Xr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=Hr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||v<on)&&!(I.dummy&&n.node(p).dummy)&&Wn(r,b,p)})}),u=h+1,a=v)}),o}return Y(e,t),r}function Ur(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(l){var v=n.node(l);v.dummy&&(v.order<d||v.order>f)&&Wn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function Hr(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Wn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function jr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Jr(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d<a[p]&&!jr(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function Kr(n,e,r,t,i){var o={},a=Zr(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,l){for(var v=a.nodes(),p=v.pop(),b={};p;)b[p]?h(p):(b[p]=!0,v.push(p),v=v.concat(l(p))),p=v.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(l,v){return Math.max(l,o[v.v]+a.edge(v))},0)}function c(h){var l=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),v=n.node(h);l!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(o[h]=Math.max(o[h],l))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function Zr(n,e,r,t){var i=new x,o=n.graph(),a=tt(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],l=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),l||0))}d=f})}),i}function Qr(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return _e(r,function(o,a){var u=it(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function nt(n,e){var r=y(e),t=R(r),i=E(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-E(c),f&&(n[u]=$(d,function(h){return h+f}))}})})}function et(n,e){return $(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function rt(n){var e=D(n),r=H(Xr(n,e),Ur(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=Jr(n,i,r,d),c=Kr(n,i,f.root,f.align,u==="r");u==="r"&&(c=$(c,function(h){return-h})),t[a+u]=c})});var o=Qr(n,t);return nt(t,o),et(t,n.graph().align)}function tt(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function it(n,e){return n.node(e).width}function at(n){n=Mn(n),ot(n),Ce(rt(n),function(e,r){n.node(r).x=e})}function ot(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=E(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Ot(n,e){var r=rr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return mt(n)});r(" runLayout",function(){ut(t,r)}),r(" updateInputGraph",function(){dt(n,t)})})}function ut(n,e){e(" makeSpaceForEdgeLabels",function(){bt(n)}),e(" removeSelfEdges",function(){Ct(n)}),e(" acyclic",function(){je(n)}),e(" nestingGraph.run",function(){yr(n)}),e(" rank",function(){xr(Mn(n))}),e(" injectEdgeLabelProxies",function(){gt(n)}),e(" removeEmptyRanks",function(){nr(n)}),e(" nestingGraph.cleanup",function(){_r(n)}),e(" normalizeRanks",function(){Qe(n)}),e(" assignRankMinMax",function(){xt(n)}),e(" removeEdgeLabelProxies",function(){Et(n)}),e(" normalize.run",function(){dr(n)}),e(" parentDummyChains",function(){qr(n)}),e(" addBorderSegments",function(){tr(n)}),e(" order",function(){$r(n)}),e(" insertSelfEdges",function(){It(n)}),e(" adjustCoordinateSystem",function(){ir(n)}),e(" position",function(){at(n)}),e(" positionSelfEdges",function(){Rt(n)}),e(" removeBorderNodes",function(){_t(n)}),e(" normalize.undo",function(){sr(n)}),e(" fixupEdgeLabelCoords",function(){Nt(n)}),e(" undoCoordinateSystem",function(){ar(n)}),e(" translateGraph",function(){kt(n)}),e(" assignNodeIntersects",function(){yt(n)}),e(" reversePoints",function(){Lt(n)}),e(" acyclic.undo",function(){Ke(n)})}function dt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var ft=["nodesep","edgesep","ranksep","marginx","marginy"],st={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ct=["acyclicer","ranker","rankdir","align"],ht=["width","height"],lt={width:0,height:0},vt=["minlen","weight","width","height","labeloffset"],pt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},wt=["labelpos"];function mt(n){var e=new x({multigraph:!0,compound:!0}),r=U(n.graph());return e.setGraph(H({},st,X(r,ft),V(r,ct))),s(n.nodes(),function(t){var i=U(n.node(t));e.setNode(t,ke(X(i,ht),lt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=U(n.edge(t));e.setEdge(t,H({},pt,X(i,vt),V(i,wt)))}),e}function bt(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function gt(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function xt(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=E(e,t.maxRank))}),n.graph().maxRank=e}function Et(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function kt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,l=f.width,v=f.height;e=Math.min(e,c-l/2),r=Math.max(r,c+l/2),t=Math.min(t,h-v/2),i=Math.max(i,h+v/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function yt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(sn(t,o)),r.points.push(sn(i,a))})}function Nt(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Lt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function _t(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(G(r.borderLeft)),a=n.node(G(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ct(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function It(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function X(n,e){return $(V(n,e),Number)}function U(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{ke as d,Ot as l,m,V as p,N as r,en as u};
@@ -1 +0,0 @@
1
- import{a as m}from"./array-BKyUJesY.js";import{aW as d,V as o,n as v}from"./index-MSWd7-zB.js";function b(t){return t[0]}function w(t){return t[1]}function L(t,u){var s=o(!0),i=null,l=v,r=null,h=d(e);t=typeof t=="function"?t:t===void 0?b:o(t),u=typeof u=="function"?u:u===void 0?w:o(u);function e(n){var f,p=(n=m(n)).length,a,c=!1,g;for(i==null&&(r=l(g=h())),f=0;f<=p;++f)!(f<p&&s(a=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(a,f,n),+u(a,f,n));if(g)return r=null,g+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{L as l};
@@ -1 +0,0 @@
1
- import{a1 as rn,a2 as en}from"./index-MSWd7-zB.js";import{i as an}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function on(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function K(n){let t,e,r;n.length!==2?(t=F,e=(o,c)=>F(n(o),c),r=(o,c)=>n(o)-c):(t=n===F||n===on?n:un,e=n,r=n);function a(o,c,i=0,l=o.length){if(i<l){if(t(c,c)!==0)return l;do{const h=i+l>>>1;e(o[h],c)<0?i=h+1:l=h}while(i<l)}return i}function f(o,c,i=0,l=o.length){if(i<l){if(t(c,c)!==0)return l;do{const h=i+l>>>1;e(o[h],c)<=0?i=h+1:l=h}while(i<l)}return i}function u(o,c,i=0,l=o.length){const h=a(o,c,i,l-1);return h>i&&r(o[h-1],c)>-r(o[h],c)?h-1:h}return{left:a,center:u,right:f}}function un(){return 0}function fn(n){return n===null?NaN:+n}const cn=K(F),hn=cn.right;K(fn).center;const mn=Math.sqrt(50),sn=Math.sqrt(10),ln=Math.sqrt(2);function E(n,t,e){const r=(t-n)/Math.max(0,e),a=Math.floor(Math.log10(r)),f=r/Math.pow(10,a),u=f>=mn?10:f>=sn?5:f>=ln?2:1;let o,c,i;return a<0?(i=Math.pow(10,-a)/u,o=Math.round(n*i),c=Math.round(t*i),o/i<n&&++o,c/i>t&&--c,i=-i):(i=Math.pow(10,a)*u,o=Math.round(n/i),c=Math.round(t/i),o*i<n&&++o,c*i>t&&--c),c<o&&.5<=e&&e<2?E(n,t,e*2):[o,c,i]}function dn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[a,f,u]=r?E(t,n,e):E(n,t,e);if(!(f>=a))return[];const o=f-a+1,c=new Array(o);if(r)if(u<0)for(let i=0;i<o;++i)c[i]=(f-i)/-u;else for(let i=0;i<o;++i)c[i]=(f-i)*u;else if(u<0)for(let i=0;i<o;++i)c[i]=(a+i)/-u;else for(let i=0;i<o;++i)c[i]=(a+i)*u;return c}function T(n,t,e){return t=+t,n=+n,e=+e,E(n,t,e)[2]}function gn(n,t,e){t=+t,n=+n,e=+e;const r=t<n,a=r?T(t,n,e):T(n,t,e);return(r?-1:1)*(a<0?1/-a:a)}function Mn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function yn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function R(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function S(n){return n=R(Math.abs(n)),n?n[1]:NaN}function pn(n,t){return function(e,r){for(var a=e.length,f=[],u=0,o=n[0],c=0;a>0&&o>0&&(c+o+1>r&&(o=Math.max(1,r-c)),f.push(e.substring(a-=o,a+o)),!((c+=o+1)>r));)o=n[u=(u+1)%n.length];return f.reverse().join(t)}}function wn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var bn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function I(n){if(!(t=bn.exec(n)))throw new Error("invalid format: "+n);var t;return new C({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}I.prototype=C.prototype;function C(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}C.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Nn(n){n:for(var t=n.length,e=1,r=-1,a;e<t;++e)switch(n[e]){case".":r=a=e;break;case"0":r===0&&(r=e),a=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(a+1):n}var Q;function kn(n,t){var e=R(n,t);if(!e)return n+"";var r=e[0],a=e[1],f=a-(Q=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,u=r.length;return f===u?r:f>u?r+new Array(f-u+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+R(n,Math.max(0,t+f-1))[0]}function O(n,t){var e=R(n,t);if(!e)return n+"";var r=e[0],a=e[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const U={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:yn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>O(n*100,t),r:O,s:kn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Y(n){return n}var Z=Array.prototype.map,H=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xn(n){var t=n.grouping===void 0||n.thousands===void 0?Y:pn(Z.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",a=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Y:wn(Z.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",o=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function i(h){h=I(h);var s=h.fill,p=h.align,M=h.sign,A=h.symbol,N=h.zero,v=h.width,L=h.comma,w=h.precision,D=h.trim,d=h.type;d==="n"?(L=!0,d="g"):U[d]||(w===void 0&&(w=12),D=!0,d="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var _=A==="$"?e:A==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",nn=A==="$"?r:/[%p]/.test(d)?u:"",G=U[d],tn=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function X(m){var b=_,g=nn,k,B,P;if(d==="c")g=G(m)+g,m="";else{m=+m;var z=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),D&&(m=Nn(m)),z&&+m==0&&M!=="+"&&(z=!1),b=(z?M==="("?M:o:M==="-"||M==="("?"":M)+b,g=(d==="s"?H[8+Q/3]:"")+g+(z&&M==="("?")":""),tn){for(k=-1,B=m.length;++k<B;)if(P=m.charCodeAt(k),48>P||P>57){g=(P===46?a+m.slice(k+1):m.slice(k))+g,m=m.slice(0,k);break}}}L&&!N&&(m=t(m,1/0));var j=b.length+m.length+g.length,y=j<v?new Array(v-j+1).join(s):"";switch(L&&N&&(m=t(y+m,y.length?v-g.length:1/0),y=""),p){case"<":m=b+m+g+y;break;case"=":m=b+y+m+g;break;case"^":m=y.slice(0,j=y.length>>1)+b+m+g+y.slice(j);break;default:m=y+b+m+g;break}return f(m)}return X.toString=function(){return h+""},X}function l(h,s){var p=i((h=I(h),h.type="f",h)),M=Math.max(-8,Math.min(8,Math.floor(S(s)/3)))*3,A=Math.pow(10,-M),N=H[8+M/3];return function(v){return p(A*v)+N}}return{format:i,formatPrefix:l}}var $,V,W;Sn({thousands:",",grouping:[3],currency:["$",""]});function Sn(n){return $=xn(n),V=$.format,W=$.formatPrefix,$}function An(n){return Math.max(0,-S(Math.abs(n)))}function vn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(S(t)/3)))*3-S(Math.abs(n)))}function Pn(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,S(t)-S(n))+1}function zn(n){return function(){return n}}function jn(n){return+n}var J=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:zn(isNaN(t)?NaN:.5)}function $n(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Fn(n,t,e){var r=n[0],a=n[1],f=t[0],u=t[1];return a<r?(r=q(a,r),f=e(u,f)):(r=q(r,a),f=e(f,u)),function(o){return f(r(o))}}function En(n,t,e){var r=Math.min(n.length,t.length)-1,a=new Array(r),f=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)a[u]=q(n[u],n[u+1]),f[u]=e(t[u],t[u+1]);return function(o){var c=hn(n,o,1,r)-1;return f[c](a[c](o))}}function Rn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function In(){var n=J,t=J,e=en,r,a,f,u=x,o,c,i;function l(){var s=Math.min(n.length,t.length);return u!==x&&(u=$n(n[0],n[s-1])),o=s>2?En:Fn,c=i=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(r),t,e)))(r(u(s)))}return h.invert=function(s){return u(a((i||(i=o(t,n.map(r),rn)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,jn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),e=Mn,l()},h.clamp=function(s){return arguments.length?(u=s?!0:x,l()):u!==x},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,a=p,l()}}function Ln(){return In()(x,x)}function Tn(n,t,e,r){var a=gn(n,t,e),f;switch(r=I(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=vn(a,u))&&(r.precision=f),W(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Pn(a,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=An(a))&&(r.precision=f-(r.type==="%")*2);break}}return V(r)}function qn(n){var t=n.domain;return n.ticks=function(e){var r=t();return dn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var a=t();return Tn(a[0],a[a.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),a=0,f=r.length-1,u=r[a],o=r[f],c,i,l=10;for(o<u&&(i=u,u=o,o=i,i=a,a=f,f=i);l-- >0;){if(i=T(u,o,e),i===c)return r[a]=u,r[f]=o,t(r);if(i>0)u=Math.floor(u/i)*i,o=Math.ceil(o/i)*i;else if(i<0)u=Math.ceil(u*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function Cn(){var n=Ln();return n.copy=function(){return Rn(n,Cn())},an.apply(n,arguments),qn(n)}export{Rn as a,K as b,Ln as c,Cn as l,gn as t};
Binary file