Mitigating Resampling Artifacts for the JWST Integral-field Unit Spectrometers with Adaptive Trace Modeling | Synapse