/** JKES 乐跑校区（与 path_data.run_zone_name 一致） */
const JKES_RUN_ZONES = ['学府大道校区', '南山校区']

function isJkesRunZone(name) {
    if (name === '' || name == null) return true
    return JKES_RUN_ZONES.includes(String(name).trim())
}

function normalizeJkesRunZone(name) {
    const s = String(name || '').trim()
    if (!s) return ''
    if (JKES_RUN_ZONES.includes(s)) return s
    if (s.includes('南山')) return '南山校区'
    if (s.includes('学府')) return '学府大道校区'
    return s
}

module.exports = {
    JKES_RUN_ZONES,
    isJkesRunZone,
    normalizeJkesRunZone
}
