"use strict";const d=require("./layers.9pNaFvaX.js"),f=require("./layers.DOrgOHBr.js"),m=require("./layers.BUx-KQN_.js");function v(t){return t[0]}function q(t){return t[1]}function y(t,u){var s=f.constant(!0),o=null,c=m.curveLinear,r=null,p=f.withPath(e);t=typeof t=="function"?t:t===void 0?v:f.constant(t),u=typeof u=="function"?u:u===void 0?q:f.constant(u);function e(n){var i,h=(n=d.array(n)).length,a,l=!1,g;for(o==null&&(r=c(g=p())),i=0;i<=h;++i)!(i<h&&s(a=n[i],i,n))===l&&((l=!l)?r.lineStart():r.lineEnd()),l&&r.point(+t(a,i,n),+u(a,i,n));if(g)return r=null,g+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:f.constant(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:f.constant(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:f.constant(!!n),e):s},e.curve=function(n){return arguments.length?(c=n,o!=null&&(r=c(o)),e):c},e.context=function(n){return arguments.length?(n==null?o=r=null:r=c(o=n),e):o},e}exports.line=y;
