import e from "./number.js";
//#region ../../node_modules/d3-interpolate/src/string.js
var t = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, n = new RegExp(t.source, "g");
function r(e) {
	return function() {
		return e;
	};
}
function i(e) {
	return function(t) {
		return e(t) + "";
	};
}
function a(a, o) {
	var s = t.lastIndex = n.lastIndex = 0, c, l, u, d = -1, f = [], p = [];
	for (a += "", o += ""; (c = t.exec(a)) && (l = n.exec(o));) (u = l.index) > s && (u = o.slice(s, u), f[d] ? f[d] += u : f[++d] = u), (c = c[0]) === (l = l[0]) ? f[d] ? f[d] += l : f[++d] = l : (f[++d] = null, p.push({
		i: d,
		x: e(c, l)
	})), s = n.lastIndex;
	return s < o.length && (u = o.slice(s), f[d] ? f[d] += u : f[++d] = u), f.length < 2 ? p[0] ? i(p[0].x) : r(o) : (o = p.length, function(e) {
		for (var t = 0, n; t < o; ++t) f[(n = p[t]).i] = n.x(e);
		return f.join("");
	});
}
//#endregion
export { a as default };
