<script>
//
// The code below was originally written by the authors of Wflow.jl. Their
// license is provided below. ChatGPT was used to iterately modify the code.
//

// MIT License for Wflow.jl
//
// Copyright (c) 2020 Deltares and contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi