///|
/// Shared keyboard entry, landmarks, table semantics and SVG names for reports.
fn accessible_report(html : String) -> String {
  let css = ""
  let script =
    #|if(document.querySelectorAll){
    #| const reportMain=document.querySelector('main');if(reportMain){reportMain.id='report-main';reportMain.setAttribute('tabindex','-1');}
    #| const repair=()=>{for(const th of document.querySelectorAll('thead th'))if(!th.hasAttribute('scope'))th.setAttribute('scope','col');for(const svg of document.querySelectorAll('svg')){if(!svg.hasAttribute('role'))svg.setAttribute('role','img');if(!svg.hasAttribute('aria-label')&&!svg.hasAttribute('aria-labelledby'))svg.setAttribute('aria-label',svg.querySelector('title')?.textContent||'拓扑图表,数值与含义见相邻说明和表格');}for(const control of document.querySelectorAll('input,select'))if(!control.getAttribute('aria-label')&&!control.getAttribute('aria-labelledby')&&!control.labels?.length)control.setAttribute('aria-label',({'yaw':'水平旋转角度','pitch':'俯仰角度','minimum':'最小观察寿命','dimension':'同调维度','scale':'观察尺度'})[control.id]||control.id||'分析参数');};repair();
    #| const scrollRepair=()=>{for(const region of document.querySelectorAll('.scroll,.table-wrap,.panel'))if(region.matches('.scroll,.table-wrap')||region.scrollWidth>region.clientWidth||region.scrollHeight>region.clientHeight){region.setAttribute('tabindex','0');region.setAttribute('role','region');if(!region.hasAttribute('aria-label')&&!region.hasAttribute('aria-labelledby'))region.setAttribute('aria-label','可滚动的数据区域,使用方向键滚动');}};scrollRepair();
    #| if(typeof MutationObserver!=='undefined'&&reportMain)new MutationObserver(()=>{repair();scrollRepair();}).observe(reportMain,{childList:true,subtree:true});
    #|}
  let scope = "

结果的适用范围

结果仅对应声明的输入、预处理和观察尺度。截止存活不证明无限寿命;未计算、没有特征和不可比较不能混同。请结合本报告的条件说明,另核对单位、采样方案与研究假设。

" let html = if html.contains("id=\"result-boundaries\"") { html } else { html.replace_all(old="", new="" + scope) } let result = html .replace_all(old="", new=css + "") .replace_all( old="", new="跳到报告内容", ) if result.contains("") { result.replace_all(old="", new=script + "") } else if result.contains("") { result.replace_all(old="", new=script + "") } else { result .replace_all(old="
", new="
") .replace_all( old="
", new="
", ) .replace_all(old="") } }