High-performance contour extraction library based on Marching Squares algorithm, supporting ESM, CJS and IIFE formats