function jsonClone(d) {
  // eslint-disable-next-line unicorn/prefer-structured-clone -- casting as JSON drops instance info.
  return JSON.parse(JSON.stringify(d))
}
@param {unknown} d
  Value.
@returns {unknown}
  Cloned value.