Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
No EOL
663 B
Text
25 lines
No EOL
663 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = piecewise;
|
|
|
|
var _value = _interopRequireDefault(require("./value.js"));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function piecewise(interpolate, values) {
|
|
if (values === undefined) values = interpolate, interpolate = _value.default;
|
|
var i = 0,
|
|
n = values.length - 1,
|
|
v = values[0],
|
|
I = new Array(n < 0 ? 0 : n);
|
|
|
|
while (i < n) I[i] = interpolate(v, v = values[++i]);
|
|
|
|
return function (t) {
|
|
var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
|
|
return I[i](t - i);
|
|
};
|
|
} |