//#region src/components/PlElementList/utils.ts
var e = (e, t, n) => {
	let r = [...e];
	if (n >= 0 && n < r.length) {
		let [e] = r.splice(t, 1);
		r.splice(n, 0, e);
	} else console.warn(`Invalid move operation: from ${t} to ${n} in array of length ${r.length}`);
	return r;
};
//#endregion
export { e as moveElements };

//# sourceMappingURL=utils.js.map