import{t as h}from"./layers.CqVTtuYm-C3YJfAyO.js";import{q as y,P as l}from"./layers.DLwuMfdd-B0oSrkCJ.js";import{a0 as d}from"./layers.BfHNcLbu-DoBpzOGI.js";function v(t){return t[0]}function x(t){return t[1]}function w(t,e){var a=l(!0),f=null,i=d,o=null,s=y(r);t=typeof t=="function"?t:t===void 0?v:l(t),e=typeof e=="function"?e:e===void 0?x:l(e);function r(n){var u,p=(n=h(n)).length,g,c=!1,m;for(f==null&&(o=i(m=s())),u=0;u<=p;++u)!(u<p&&a(g=n[u],u,n))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+t(g,u,n),+e(g,u,n));if(m)return o=null,m+""||null}return r.x=function(n){return arguments.length?(t=typeof n=="function"?n:l(+n),r):t},r.y=function(n){return arguments.length?(e=typeof n=="function"?n:l(+n),r):e},r.defined=function(n){return arguments.length?(a=typeof n=="function"?n:l(!!n),r):a},r.curve=function(n){return arguments.length?(i=n,f!=null&&(o=i(f)),r):i},r.context=function(n){return arguments.length?(n==null?f=o=null:o=i(f=n),r):f},r}export{w as P};
