import{n,t}from"./cd6fe1d0b-DoqP7i95.js";import{t as u}from"./cf1f713c9-B0vPCVKH.js";import{rt as o}from"./c3880bcbc-D5xW2M9A.js";function r(n){return n[0]}function e(n){return n[1]}function f(f,i){var l=n(!0),c=null,p=o,a=null,s=t(d);function d(n){var t,o,r,e=(n=u(n)).length,d=!1;for(null==c&&(a=p(r=s())),t=0;t<=e;++t)!(t<e&&l(o=n[t],t,n))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+f(o,t,n),+i(o,t,n));if(r)return a=null,r+""||null}return f="function"==typeof f?f:void 0===f?r:n(f),i="function"==typeof i?i:void 0===i?e:n(i),d.x=function(t){return arguments.length?(f="function"==typeof t?t:n(+t),d):f},d.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),d):i},d.defined=function(t){return arguments.length?(l="function"==typeof t?t:n(!!t),d):l},d.curve=function(n){return arguments.length?(p=n,null!=c&&(a=p(c)),d):p},d.context=function(n){return arguments.length?(null==n?c=a=null:a=p(c=n),d):c},d}export{f as t};