feat: 新增 extra/ 静态工具页(forces、water-admin)

This commit is contained in:
xiaozhou233 committed 2026-10-06 14:30:34 +08:00
1 parent f488c2fdd4
commit a3bc44f845
7 files changed
+1330

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/forces">
<title>Redirecting...</title>
<script defer src="https://umami.xiaozhou233.cn/script.js" data-website-id="5a5128e4-1e6c-4c0f-8f45-536d929aa2a1"></script>
</head>
<body>
<p>正在跳转到 <a href="/forces">/forces</a>...</p>
</body>
</html>
+225
View File
@@ -0,0 +1,225 @@
/* 力的课堂 — 样式表 */
*{margin:0;padding:0;box-sizing:border-box}
:root{
--primary:#4f8cff;
--primary-dark:#2a5bd7;
--accent:#ff6b6b;
--gravity:#ff6b6b;
--elastic:#51cf66;
--friction:#ffd43b;
--bg:#f4f6fb;
--card:#ffffff;
--text:#1a202c;
--text-light:#5a6478;
--shadow:0 8px 32px rgba(30,50,90,.08);
--radius:16px;
}
html{scroll-behavior:smooth}
body{
font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.7;
overflow-x:hidden;
}
nav{
position:fixed;top:0;left:0;right:0;z-index:100;
background:rgba(255,255,255,.85);
backdrop-filter:blur(20px);
-webkit-backdrop-filter:blur(20px);
border-bottom:1px solid rgba(0,0,0,.05);
padding:14px 0;
}
.nav-inner{
max-width:1200px;margin:0 auto;padding:0 24px;
display:flex;align-items:center;justify-content:space-between;
}
.logo{
font-size:1.25rem;font-weight:700;
background:linear-gradient(135deg,var(--primary),var(--accent));
-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.nav-links{display:flex;gap:28px;list-style:none;flex-wrap:wrap}
.nav-links a{
text-decoration:none;color:var(--text-light);font-size:.92rem;font-weight:500;
transition:color .2s;
}
.nav-links a:hover{color:var(--primary)}
.hero{
min-height:100vh;
background:linear-gradient(135deg,#667eea 0%,#764ba2 50%,#f093fb 100%);
display:flex;align-items:center;justify-content:center;
text-align:center;padding:120px 24px 80px;
position:relative;overflow:hidden;
}
.hero::before{
content:"";position:absolute;inset:0;
background:
radial-gradient(circle at 20% 30%,rgba(255,255,255,.15),transparent 40%),
radial-gradient(circle at 80% 70%,rgba(255,255,255,.1),transparent 40%);
}
.hero-content{position:relative;z-index:1;max-width:800px;color:#fff}
.hero h1{
font-size:clamp(2.5rem,6vw,4.5rem);
font-weight:800;margin-bottom:20px;
text-shadow:0 4px 24px rgba(0,0,0,.15);
letter-spacing:.02em;
}
.hero p{
font-size:clamp(1.05rem,2vw,1.35rem);
opacity:.95;margin-bottom:36px;max-width:600px;margin-left:auto;margin-right:auto;
}
.hero-btn{
display:inline-block;padding:14px 40px;border-radius:50px;
background:#fff;color:var(--primary-dark);
text-decoration:none;font-weight:700;font-size:1.05rem;
box-shadow:0 8px 24px rgba(0,0,0,.15);
transition:transform .2s,box-shadow .2s;
}
.hero-btn:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,0,0,.2)}
section{padding:80px 24px;max-width:1200px;margin:0 auto}
.section-title{
font-size:clamp(1.75rem,3vw,2.5rem);
font-weight:800;text-align:center;margin-bottom:12px;
}
.section-sub{
text-align:center;color:var(--text-light);margin-bottom:56px;
font-size:1.05rem;
}
.card{
background:var(--card);border-radius:var(--radius);
padding:36px;box-shadow:var(--shadow);
margin-bottom:28px;
transition:transform .25s,box-shadow .25s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(30,50,90,.12)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.concept-item{
padding:28px;border-radius:14px;background:#f8faff;
border-left:4px solid var(--primary);
}
.concept-item h3{color:var(--primary-dark);margin-bottom:8px;font-size:1.2rem}
.concept-item p{color:var(--text-light)}
.vector-diagram{
display:flex;justify-content:center;align-items:center;
margin:20px 0;
}
.vector-diagram svg{max-width:100%;height:auto}
.tag{
display:inline-block;padding:4px 12px;border-radius:20px;
font-size:.8rem;font-weight:600;margin-right:6px;
}
.tag-gravity{background:#ffe8e8;color:#c92a2a}
.tag-elastic{background:#d3f9d8;color:#2b8a3e}
.tag-friction{background:#fff3bf;color:#b8860b}
.tag-primary{background:#d0ebff;color:#1971c2}
.formula{
display:inline-block;padding:4px 14px;border-radius:8px;
background:linear-gradient(135deg,#e7f5ff,#f3f0ff);
font-family:"Cambria Math",Times New Roman,serif;
font-weight:700;font-size:1.15rem;color:var(--primary-dark);
margin:6px 4px;
}
.experiment-card{
background:var(--card);border-radius:var(--radius);
padding:28px;box-shadow:var(--shadow);
border-top:4px solid var(--primary);
}
.experiment-card.gravity{border-top-color:var(--gravity)}
.experiment-card.elastic{border-top-color:var(--elastic)}
.experiment-card.friction{border-top-color:var(--friction)}
.exp-header{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.exp-header h3{font-size:1.25rem}
.exp-badge{
background:linear-gradient(135deg,var(--primary),var(--accent));
color:#fff;padding:3px 10px;border-radius:20px;font-size:.75rem;font-weight:600;
}
.exp-desc{color:var(--text-light);margin-bottom:20px;font-size:.95rem}
.canvas-wrap{
position:relative;background:#f8faff;border-radius:12px;
padding:12px;border:1px solid #eef2f7;
margin-bottom:16px;
}
canvas{display:block;width:100%;height:auto;border-radius:8px}
.controls{
display:flex;flex-wrap:wrap;gap:12px;align-items:center;
padding:14px;background:#f8faff;border-radius:10px;margin-bottom:14px;
}
.controls label{font-size:.88rem;color:var(--text-light);display:flex;align-items:center;gap:8px}
.controls input[type=range]{
width:140px;accent-color:var(--primary);
}
.controls .val{
min-width:48px;text-align:right;font-weight:700;color:var(--primary-dark);
font-variant-numeric:tabular-nums;
}
.btn{
padding:8px 20px;border:none;border-radius:8px;
background:var(--primary);color:#fff;font-weight:600;font-size:.9rem;
cursor:pointer;transition:all .2s;
}
.btn:hover{background:var(--primary-dark)}
.btn.secondary{background:#e9ecef;color:var(--text)}
.btn.secondary:hover{background:#dee2e6}
.data-display{
display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;
padding:14px;background:linear-gradient(135deg,#f8faff,#f0f4ff);
border-radius:10px;font-size:.9rem;
}
.data-item{display:flex;justify-content:space-between;align-items:center}
.data-item span:first-child{color:var(--text-light)}
.data-item span:last-child{font-weight:700;color:var(--primary-dark);font-variant-numeric:tabular-nums}
.data-item .g{color:#c92a2a}
.data-item .e{color:#2b8a3e}
.data-item .f{color:#b8860b}
.comparison-table{
width:100%;border-collapse:separate;border-spacing:0;
background:var(--card);border-radius:var(--radius);
overflow:hidden;box-shadow:var(--shadow);
margin-bottom:24px;
}
.comparison-table th,.comparison-table td{
padding:16px 18px;text-align:left;font-size:.95rem;
border-bottom:1px solid #eef2f7;
}
.comparison-table th{
background:linear-gradient(135deg,#e7f5ff,#f3f0ff);
font-weight:700;color:var(--primary-dark);font-size:1rem;
}
.comparison-table tr:last-child td{border-bottom:none}
.comparison-table td:first-child{font-weight:600;color:var(--text)}
.comparison-table .gravity-row td:first-child{color:#c92a2a}
.comparison-table .elastic-row td:first-child{color:#2b8a3e}
.comparison-table .friction-row td:first-child{color:#b8860b}
.life-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.life-card{
padding:28px;border-radius:14px;color:#fff;position:relative;overflow:hidden;
min-height:180px;display:flex;flex-direction:column;justify-content:flex-end;
}
.life-card.gravity{background:linear-gradient(135deg,#ff6b6b,#ee5a5a)}
.life-card.elastic{background:linear-gradient(135deg,#51cf66,#40c057)}
.life-card.friction{background:linear-gradient(135deg,#ffd43b,#fab005)}
.life-card h4{font-size:1.2rem;margin-bottom:8px}
.life-card p{font-size:.9rem;opacity:.95}
.life-card .icon{position:absolute;top:20px;right:20px;font-size:3rem;opacity:.3}
.life-examples{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.life-examples span{
background:rgba(255,255,255,.2);padding:4px 12px;border-radius:20px;font-size:.82rem;
}
footer{
text-align:center;padding:40px 24px;color:var(--text-light);
font-size:.9rem;border-top:1px solid #eef2f7;margin-top:40px;
}
@media(max-width:768px){
.nav-links{gap:16px;font-size:.85rem}
.nav-links a{font-size:.82rem}
section{padding:56px 18px}
.card{padding:24px}
.experiment-card{padding:20px}
.controls{flex-direction:column;align-items:stretch}
.controls input[type=range]{width:100%}
.comparison-table th,.comparison-table td{padding:10px 12px;font-size:.82rem}
}
.animate-in{opacity:0;transform:translateY(30px);transition:opacity .6s,transform .6s}
.animate-in.visible{opacity:1;transform:translateY(0)}
+291
View File
@@ -0,0 +1,291 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>认识力 — 经典力学互动课堂</title>
<link rel="stylesheet" href="./css/styles.css">
<script defer src="https://umami.xiaozhou233.cn/script.js" data-website-id="5a5128e4-1e6c-4c0f-8f45-536d929aa2a1"></script>
</head>
<body>
<nav>
<div class="nav-inner">
<div class="logo">⚡ 力的课堂</div>
<ul class="nav-links">
<li><a href="#concept">概念</a></li>
<li><a href="#unit">单位</a></li>
<li><a href="#gravity">重力</a></li>
<li><a href="#elastic">弹力</a></li>
<li><a href="#friction">摩擦</a></li>
<li><a href="#compare">对比</a></li>
<li><a href="#life">生活</a></li>
</ul>
</div>
</nav>
<section class="hero">
<div class="hero-content">
<h1>认识力</h1>
<p>力是物体对物体的作用。从苹果落地到弓箭弹射,从走路摩擦到弹簧拉伸——让我们一起走进力的奇妙世界。</p>
<a href="#concept" class="hero-btn">开始探索 →</a>
</div>
</section>
<section id="concept" class="animate-in">
<h2 class="section-title">📐 力的概念</h2>
<p class="section-sub">力是物体对物体的作用,力不能脱离物体而独立存在</p>
<div class="card">
<h3 style="margin-bottom:16px;color:var(--primary-dark);font-size:1.3rem">力的三要素</h3>
<p style="color:var(--text-light);margin-bottom:20px">力的作用效果与力的<strong>大小</strong>、<strong>方向</strong>和<strong>作用点</strong>有关,这三者称为力的三要素。</p>
<div class="grid-3">
<div class="concept-item">
<h3>📏 大小</h3>
<p>力的大小不同,作用效果不同。用力越大,弹簧伸长越长。</p>
</div>
<div class="concept-item" style="border-left-color:var(--accent)">
<h3>➡️ 方向</h3>
<p>力的方向不同,作用效果不同。推车门和拉车门,效果完全不同。</p>
</div>
<div class="concept-item" style="border-left-color:var(--elastic)">
<h3>📍 作用点</h3>
<p>力的作用点不同,作用效果不同。推门的不同位置,用力的大小不同。</p>
</div>
</div>
<div class="vector-diagram">
<svg viewBox="0 0 500 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#4f8cff"/>
</marker>
<marker id="arrowRed" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#ff6b6b"/>
</marker>
</defs>
<line x1="60" y1="100" x2="200" y2="100" stroke="#4f8cff" stroke-width="3" marker-end="url(#arrow)"/>
<text x="130" y="85" text-anchor="middle" fill="#4f8cff" font-weight="bold" font-size="14">F₁ (较大)</text>
<line x1="250" y1="100" x2="340" y2="100" stroke="#ff6b6b" stroke-width="3" marker-end="url(#arrowRed)"/>
<text x="295" y="85" text-anchor="middle" fill="#ff6b6b" font-weight="bold" font-size="14">F₂ (较小)</text>
<circle cx="100" cy="100" r="6" fill="#4f8cff"/>
<circle cx="270" cy="100" r="6" fill="#ff6b6b"/>
<text x="100" y="130" text-anchor="middle" fill="#5a6478" font-size="12">作用点</text>
<text x="270" y="130" text-anchor="middle" fill="#5a6478" font-size="12">作用点</text>
<text x="250" y="180" text-anchor="middle" fill="#1a202c" font-size="13" font-weight="600">力是矢量:既有大小又有方向</text>
</svg>
</div>
</div>
</section>
<section id="unit" class="animate-in">
<h2 class="section-title">🔬 力的单位与测量</h2>
<p class="section-sub">用牛顿(N)作为力的单位,使用弹簧测力计进行测量</p>
<div class="grid-2">
<div class="card">
<span class="tag tag-primary">单位</span>
<h3 style="margin:12px 0;font-size:1.3rem">牛顿 (N)</h3>
<p style="color:var(--text-light)">为纪念英国科学家艾萨克·牛顿而命名。</p>
<div style="margin-top:16px"><span class="formula">1 N ≈ 100 g 物体的重力</span></div>
<p style="color:var(--text-light);margin-top:12px;font-size:.9rem">托起两个鸡蛋的力大约为 1N;一个中学生的体重大约为 500N。</p>
</div>
<div class="card">
<span class="tag tag-primary">测量工具</span>
<h3 style="margin:12px 0;font-size:1.3rem">弹簧测力计</h3>
<p style="color:var(--text-light)">利用弹簧的弹性形变来测量力的大小。<strong>原理:</strong>在弹性限度内,弹簧的伸长量与所受拉力成正比。</p>
<div style="margin-top:16px;padding:12px;background:#f8faff;border-radius:10px">
<strong style="color:var(--primary-dark)">使用注意:</strong>
<ul style="margin-top:8px;padding-left:20px;color:var(--text-light);font-size:.9rem">
<li>使用前调零</li>
<li>被测力的方向沿弹簧轴线方向</li>
<li>不能超过量程</li>
</ul>
</div>
</div>
</div>
</section>
<section id="gravity" class="animate-in">
<h2 class="section-title">🌍 重力</h2>
<p class="section-sub">由于地球的吸引而使物体受到的力,方向总是竖直向下</p>
<div class="grid-2" style="margin-bottom:28px">
<div class="card">
<span class="tag tag-gravity">重力</span>
<h3 style="margin:12px 0;font-size:1.3rem">重力的三要素</h3>
<p style="color:var(--text-light)">
<strong>大小:</strong><span class="formula">G = mg</span> <br>
<strong>方向:</strong>总是<strong>竖直向下</strong>(垂直于水平面向下)<br>
<strong>作用点:</strong>重心(形状规则、质量均匀的物体重心在其几何中心)
</p>
<p style="color:var(--text-light);margin-top:12px;font-size:.9rem">g 为重力加速度,通常取 g = 9.8 N/kg 或 g ≈ 10 N/kg。</p>
</div>
<div class="card">
<h3 style="margin-bottom:12px;font-size:1.2rem">🎮 交互实验:自由落体</h3>
<p style="color:var(--text-light);font-size:.95rem">两个质量不同的球从同一高度同时下落,验证"同时落地"。忽略空气阻力时,下落时间与质量无关。</p>
<div style="margin-top:12px;padding:12px;background:#fff5f5;border-radius:10px;color:#c92a2a;font-size:.88rem">💡 提示:在真空环境中,羽毛和铁球会同时落地!</div>
</div>
</div>
<div class="experiment-card gravity">
<div class="exp-header">
<h3>🎮 自由落体模拟</h3>
<span class="exp-badge">Canvas 交互</span>
</div>
<p class="exp-desc">点击"开始下落"按钮,观察两个质量不同的球是否同时落地。开启"空气阻力"后,重球会先落地。</p>
<div class="canvas-wrap">
<canvas id="gravityCanvas" width="800" height="400"></canvas>
</div>
<div class="controls">
<label><input type="checkbox" id="airResistance"> 开启空气阻力</label>
<button class="btn" id="dropBtn">▶ 开始下落</button>
<button class="btn secondary" id="resetGravity">↻ 重置</button>
</div>
<div class="data-display">
<div class="data-item"><span>大球落地时间</span><span class="g" id="bigTime">0.00 s</span></div>
<div class="data-item"><span>小球落地时间</span><span class="g" id="smallTime">0.00 s</span></div>
<div class="data-item"><span>当前状态</span><span id="gStatus">待开始</span></div>
</div>
</div>
</section>
<section id="elastic" class="animate-in">
<h2 class="section-title">🔩 弹力</h2>
<p class="section-sub">物体发生弹性形变时产生的力,胡克定律描述了弹力与形变的关系</p>
<div class="grid-2" style="margin-bottom:28px">
<div class="card">
<span class="tag tag-elastic">弹力</span>
<h3 style="margin:12px 0;font-size:1.3rem">弹力的产生</h3>
<p style="color:var(--text-light)">弹力是物体发生<strong>弹性形变</strong>时,在物体内部产生的恢复原状的力。</p>
<p style="color:var(--text-light);margin-top:12px"><strong>产生条件:</strong>① 两物体相互接触;② 发生弹性形变。</p>
</div>
<div class="card">
<h3 style="margin-bottom:12px;font-size:1.2rem">📐 胡克定律</h3>
<div style="margin:12px 0"><span class="formula">F = kx</span></div>
<p style="color:var(--text-light)">在弹性限度内,弹簧的弹力 F 与形变量 x 成正比。</p>
<div style="margin-top:12px;color:var(--text-light);font-size:.88rem"><strong>k — 弹簧的劲度系数 (N/m)</strong>,由弹簧本身的性质决定。</div>
</div>
</div>
<div class="experiment-card elastic">
<div class="exp-header">
<h3>🎮 拉伸弹簧实验</h3>
<span class="exp-badge">Canvas 交互</span>
</div>
<p class="exp-desc">拖动滑块拉伸弹簧,实时观察形变量 x 与弹力 F 的变化,直观验证 F = kx 的线性关系。</p>
<div class="canvas-wrap">
<canvas id="elasticCanvas" width="800" height="340"></canvas>
</div>
<div class="controls">
<label>弹簧原长 L₀:<span class="val" id="l0Val">100</span> px</label>
<label>劲度系数 k:<span class="val" id="kVal">50</span> N/m</label>
<input type="range" id="kSlider" min="10" max="200" value="50" step="5">
<button class="btn secondary" id="resetElastic">↻ 重置</button>
</div>
<div class="data-display">
<div class="data-item"><span>形变量 x</span><span class="e" id="xVal">0 px</span></div>
<div class="data-item"><span>弹力 F</span><span class="e" id="fVal">0.00 N</span></div>
<div class="data-item"><span>弹簧长度</span><span id="lenVal">100 px</span></div>
<div class="data-item"><span>弹性势能</span><span class="e" id="epVal">0.00 J</span></div>
</div>
</div>
</section>
<section id="friction" class="animate-in">
<h2 class="section-title">🧱 摩擦力</h2>
<p class="section-sub">两个互相接触的物体,当它们要发生或已经发生相对运动时,在接触面上产生的阻碍相对运动的力</p>
<div class="grid-3" style="margin-bottom:28px">
<div class="card">
<span class="tag tag-friction">滑动摩擦</span>
<h3 style="margin:12px 0;font-size:1.15rem">滑动摩擦力</h3>
<div style="margin:8px 0"><span class="formula">f = μN</span></div>
<p style="color:var(--text-light);font-size:.9rem">物体滑动时受到的摩擦力,与<strong>压力大小</strong>和<strong>接触面粗糙程度</strong>有关。</p>
</div>
<div class="card">
<span class="tag tag-friction">静摩擦</span>
<h3 style="margin:12px 0;font-size:1.15rem">静摩擦力</h3>
<p style="color:var(--text-light);font-size:.9rem">物体有相对运动趋势但未滑动时受到的摩擦力,大小<strong>等于推力</strong>,随推力增大而增大,直到最大静摩擦。</p>
</div>
<div class="card">
<span class="tag tag-friction">滚动摩擦</span>
<h3 style="margin:12px 0;font-size:1.15rem">滚动摩擦力</h3>
<p style="color:var(--text-light);font-size:.9rem">一个物体在另一个物体上滚动时产生的摩擦力。在相同条件下,滚动摩擦比滑动摩擦小得多。</p>
</div>
</div>
<div class="experiment-card friction">
<div class="exp-header">
<h3>🎮 推动木块实验</h3>
<span class="exp-badge">拖拽或按住按钮</span>
</div>
<p class="exp-desc">点击并拖拽木块(左右皆可)模拟推力,或按住"左推/右推"按钮。调节压力和粗糙度,观察静摩擦→滑动摩擦的转变。</p>
<div class="canvas-wrap">
<canvas id="frictionCanvas" width="800" height="340"></canvas>
</div>
<div class="controls">
<button class="btn secondary" id="pushLeftBtn">◀ 左推</button>
<button class="btn" id="pushBtn">▶ 右推</button>
<button class="btn secondary" id="resetBtn">↻ 重置木块</button>
<label>压力 N:<input type="range" id="normalSlider" min="50" max="300" value="100"><span class="val" id="normalVal">100</span> N</label>
<label>粗糙度 μ:<input type="range" id="muSlider" min="0.05" max="0.8" value="0.3" step="0.05"><span class="val" id="muVal">0.30</span></label>
</div>
<div class="data-display">
<div class="data-item"><span>状态</span><span class="f" id="motionState">静止</span></div>
<div class="data-item"><span>推力</span><span id="forceVal">0 N</span></div>
<div class="data-item"><span>摩擦力</span><span class="f" id="frictionForce">0.00 N</span></div>
<div class="data-item"><span>最大静摩擦</span><span class="f" id="maxStatic">30.00 N</span></div>
<div class="data-item"><span>滑动摩擦</span><span class="f" id="slidingF">24.00 N</span></div>
</div>
</div>
</section>
<section id="compare" class="animate-in">
<h2 class="section-title">📊 三种力对比</h2>
<p class="section-sub">重力、弹力、摩擦力是力学中最常见的三种力,它们既有区别又有联系</p>
<table class="comparison-table">
<thead>
<tr>
<th>对比项</th>
<th><span class="tag tag-gravity">重力</span></th>
<th><span class="tag tag-elastic">弹力</span></th>
<th><span class="tag tag-friction">摩擦力</span></th>
</tr>
</thead>
<tbody>
<tr class="gravity-row"><td>产生原因</td><td>地球的吸引</td><td>物体发生弹性形变</td><td>接触面有相对运动或趋势</td></tr>
<tr class="elastic-row"><td>大小</td><td>G = mg</td><td>F = kx(胡克定律)</td><td>静摩擦=推力;滑动 f = μN</td></tr>
<tr class="friction-row"><td>方向</td><td>竖直向下</td><td>指向恢复形变方向</td><td>阻碍相对运动(趋势)</td></tr>
<tr class="gravity-row"><td>作用点</td><td>重心</td><td>接触面上</td><td>接触面上</td></tr>
<tr class="elastic-row"><td>施力物体</td><td>地球</td><td>发生形变的物体</td><td>接触面</td></tr>
<tr class="friction-row"><td>联系</td><td colspan="3">弹力是摩擦力产生的必要条件;重力可影响压力大小,从而影响摩擦力;三种力都是接触力(重力除外),在日常生活中常常同时存在</td></tr>
</tbody>
</table>
</section>
<section id="life" class="animate-in">
<h2 class="section-title">🌿 生活实例</h2>
<p class="section-sub">力学无处不在,观察生活中的力现象</p>
<div class="life-grid">
<div class="life-card gravity">
<div class="icon">🍎</div>
<h4>重力的世界</h4>
<p>熟透的苹果落地、瀑布飞流直下、雨滴从天空落下、抛出去的篮球最终落回地面……</p>
<div class="life-examples"><span>苹果落地</span><span>瀑布</span><span>雨滴</span><span>篮球</span></div>
</div>
<div class="life-card elastic">
<div class="icon">🏹</div>
<h4>弹力的妙用</h4>
<p>拉弓射箭、弹簧床垫、蹦蹦床、橡皮筋弹射、汽车减震器……都是弹力的应用。</p>
<div class="life-examples"><span>弓箭</span><span>床垫</span><span>蹦床</span><span>减震器</span></div>
</div>
<div class="life-card friction">
<div class="icon">👟</div>
<h4>摩擦的利与弊</h4>
<p>走路靠摩擦、轮胎抓地、刹车制动;但机器磨损、能量损耗又需要减小摩擦。</p>
<div class="life-examples"><span>走路</span><span>轮胎</span><span>刹车</span><span>润滑</span></div>
</div>
</div>
</section>
<footer>
<p>⚡ 力的课堂 — 认识力学的奇妙世界</p>
<p style="margin-top:6px;font-size:.82rem">纯 HTML5 Canvas 实现 · 无第三方依赖 · 响应式设计</p>
</footer>
<script src="./js/forces.js"></script>
</body>
</html>
+737
View File
@@ -0,0 +1,737 @@
/* 力的课堂 — 交互脚本 */
// ============ 自由落体实验 ============
(function(){
const canvas = document.getElementById('gravityCanvas');
const ctx = canvas.getContext('2d');
const W = canvas.width, H = canvas.height;
const balls = {
big: { x: 250, y: 40, r: 22, vy: 0, color: '#ff6b6b', mass: 3 },
small: { x: 550, y: 40, r: 12, vy: 0, color: '#4f8cff', mass: 1 }
};
const floorY = 350;
const g = 9.8;
let running = false, startTime = 0;
let landedBig = false, landedSmall = false;
let timeBig = 0, timeSmall = 0;
let airResistance = false;
function drawScene(){
ctx.clearRect(0,0,W,H);
ctx.fillStyle = '#e9ecef';
ctx.fillRect(0, floorY, W, H - floorY);
ctx.strokeStyle = '#adb5bd';
ctx.setLineDash([4,4]);
ctx.beginPath(); ctx.moveTo(0, floorY); ctx.lineTo(W, floorY); ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = '#868e96';
ctx.font = '14px sans-serif';
ctx.fillText('地面', 10, floorY - 6);
ctx.strokeStyle = '#dee2e6'; ctx.lineWidth = 1;
for(let y = 40; y < floorY; y += 40){
ctx.beginPath(); ctx.moveTo(40, y); ctx.lineTo(60, y); ctx.stroke();
ctx.fillStyle = '#adb5bd';
ctx.fillText((floorY - y) + ' px', 10, y + 4);
}
drawBall(balls.big); drawBall(balls.small);
ctx.fillStyle = '#495057'; ctx.font = 'bold 13px sans-serif';
ctx.fillText('大球 (m=3kg)', balls.big.x - 30, 30);
ctx.fillText('小球 (m=1kg)', balls.small.x - 30, 30);
ctx.strokeStyle = 'rgba(255,107,107,.3)'; ctx.lineWidth = 2; ctx.setLineDash([6,4]);
ctx.beginPath(); ctx.moveTo(balls.big.x, balls.big.y); ctx.lineTo(balls.big.x, floorY); ctx.stroke();
ctx.strokeStyle = 'rgba(79,140,255,.3)';
ctx.beginPath(); ctx.moveTo(balls.small.x, balls.small.y); ctx.lineTo(balls.small.x, floorY); ctx.stroke();
ctx.setLineDash([]);
if(!running && !landedBig && !landedSmall){
ctx.fillStyle = '#868e96'; ctx.font = '16px sans-serif';
ctx.fillText('点击"开始下落"', W/2 - 60, H/2);
}
}
function drawBall(b){
const grad = ctx.createRadialGradient(b.x - b.r*0.3, b.y - b.r*0.3, b.r*0.1, b.x, b.y, b.r);
grad.addColorStop(0, '#fff'); grad.addColorStop(0.3, b.color); grad.addColorStop(1, shadeColor(b.color, -30));
ctx.fillStyle = grad;
ctx.beginPath(); ctx.arc(b.x, b.y, b.r, 0, Math.PI*2); ctx.fill();
ctx.strokeStyle = 'rgba(0,0,0,.2)'; ctx.lineWidth = 1; ctx.stroke();
}
function shadeColor(hex, percent){
const f = parseInt(hex.slice(1),16); const t = percent < 0 ? 0 : 255;
const p = Math.abs(percent)/100;
const R = f >> 16, G = (f >> 8) & 0xff, B = f & 0xff;
return '#' + (0x1000000 + (Math.round((t-R)*p)+R)*0x10000 + (Math.round((t-G)*p)+G)*0x100 + (Math.round((t-B)*p)+B)).toString(16).slice(1);
}
let lastTime = 0;
function animate(t){
if(!lastTime) lastTime = t;
const dt = Math.min((t - lastTime)/1000, 0.05); lastTime = t;
if(running){
const elapsed = (t - startTime)/1000;
if(!landedBig){
const a = airResistance ? g - 0.001 * balls.big.vy * balls.big.vy / balls.big.mass : g;
balls.big.vy += a * dt * 50;
if(balls.big.vy < 0) balls.big.vy = 0;
balls.big.y += balls.big.vy * dt * 2;
if(balls.big.y >= floorY - balls.big.r){ balls.big.y = floorY - balls.big.r; balls.big.vy = 0; landedBig = true; timeBig = elapsed; }
}
if(!landedSmall){
const a = airResistance ? g - 0.001 * balls.small.vy * balls.small.vy / balls.small.mass : g;
balls.small.vy += a * dt * 50;
if(balls.small.vy < 0) balls.small.vy = 0;
balls.small.y += balls.small.vy * dt * 2;
if(balls.small.y >= floorY - balls.small.r){ balls.small.y = floorY - balls.small.r; balls.small.vy = 0; landedSmall = true; timeSmall = elapsed; }
}
if(landedBig && landedSmall){ running = false; updateGravityUI(); }
else updateGravityUI(elapsed);
}
drawScene(); requestAnimationFrame(animate);
}
function updateGravityUI(elapsed){
document.getElementById('bigTime').textContent = landedBig ? timeBig.toFixed(2) + ' s' : (elapsed ? elapsed.toFixed(2) + ' s' : '0.00 s');
document.getElementById('smallTime').textContent = landedSmall ? timeSmall.toFixed(2) + ' s' : (elapsed ? elapsed.toFixed(2) + ' s' : '0.00 s');
if(!running && !landedBig && !landedSmall) document.getElementById('gStatus').textContent = '待开始';
else if(landedBig && landedSmall){ const d = Math.abs(timeBig - timeSmall); document.getElementById('gStatus').textContent = d < 0.01 ? '同时落地!🎉' : (timeBig < timeSmall ? '大球先落地' : '小球先落地'); }
else document.getElementById('gStatus').textContent = '下落中...';
}
document.getElementById('dropBtn').addEventListener('click', () => { if(running) return; resetBalls(); running = true; startTime = performance.now(); updateGravityUI(0); });
document.getElementById('resetGravity').addEventListener('click', () => { resetBalls(); updateGravityUI(); });
document.getElementById('airResistance').addEventListener('change', (e) => { airResistance = e.target.checked; });
function resetBalls(){ balls.big.y = 40; balls.big.vy = 0; balls.small.y = 40; balls.small.vy = 0; landedBig = false; landedSmall = false; timeBig = 0; timeSmall = 0; running = false; updateGravityUI(); }
updateGravityUI(); requestAnimationFrame(animate);
})();
// ============ 拉伸弹簧实验 ============
(function(){
const canvas = document.getElementById('elasticCanvas');
const ctx = canvas.getContext('2d');
const W = canvas.width, H = canvas.height;
let wallX = 80;
let springY = H / 2;
let l0 = 100;
let k = 50;
let dragging = false;
let hoverHandle = false;
let dragHandleX = wallX + l0;
function drawScene(){
ctx.clearRect(0, 0, W, H);
ctx.fillStyle = '#868e96';
ctx.fillRect(wallX - 20, springY - 80, 160, 160);
ctx.strokeStyle = '#495057';
ctx.lineWidth = 2;
for(let i = 0; i < 10; i++){
const y = springY - 80 + i * 18;
ctx.beginPath();
ctx.moveTo(wallX - 20, y);
ctx.lineTo(wallX, y + 15);
ctx.stroke();
}
const endX = dragHandleX;
const currentLen = endX - wallX;
const x = currentLen - l0;
drawSpring(wallX, springY, endX, springY, 14);
const isHover = hoverHandle;
const glowR = isHover ? 40 : 0;
if(glowR > 0){
const glow = ctx.createRadialGradient(endX, springY, 5, endX, springY, glowR);
glow.addColorStop(0, 'rgba(79,140,255,.35)');
glow.addColorStop(1, 'rgba(79,140,255,0)');
ctx.fillStyle = glow;
ctx.beginPath(); ctx.arc(endX, springY, glowR, 0, Math.PI*2); ctx.fill();
}
ctx.fillStyle = '#2a5bd7';
ctx.fillRect(endX - 14, springY - 38, 28, 76);
ctx.fillStyle = isHover ? '#4f8cff' : '#5c7cfa';
ctx.fillRect(endX - 12, springY - 36, 24, 72);
ctx.fillStyle = '#fff';
ctx.font = 'bold 11px sans-serif';
ctx.textAlign = 'center';
ctx.fillText('⇔', endX, springY + 4);
ctx.textAlign = 'start';
if(x > 0){
ctx.strokeStyle = '#ff6b6b';
ctx.fillStyle = '#ff6b6b';
ctx.lineWidth = 2;
const forceLen = Math.min(x * 0.7, 100);
ctx.beginPath();
ctx.moveTo(endX, springY + 50);
ctx.lineTo(endX + forceLen, springY + 50);
ctx.stroke();
ctx.beginPath();
ctx.moveTo(endX + forceLen, springY + 50);
ctx.lineTo(endX + forceLen - 8, springY + 45);
ctx.lineTo(endX + forceLen - 8, springY + 55);
ctx.closePath();
ctx.fill();
ctx.fillStyle = '#c92a2a';
ctx.font = 'bold 14px sans-serif';
const forceN = (k * x / 50).toFixed(1);
ctx.fillText('F = ' + forceN + ' N', endX + forceLen + 8, springY + 55);
}
ctx.strokeStyle = '#adb5bd';
ctx.setLineDash([4,4]);
ctx.lineWidth = 1;
ctx.beginPath(); ctx.moveTo(wallX + l0, springY - 60); ctx.lineTo(wallX + l0, springY + 60); ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = '#868e96';
ctx.font = '12px sans-serif';
ctx.fillText('原长 L₀=' + l0 + 'px', wallX + l0 - 30, springY - 70);
ctx.fillStyle = '#495057';
ctx.font = '13px sans-serif';
ctx.fillText('当前长度 L=' + currentLen + 'px', 20, 30);
ctx.fillText('形变量 x=' + x + 'px', 20, 55);
drawFXChart(x);
}
function drawSpring(x1, y1, x2, y2, coils){
const len = x2 - x1;
const amplitude = 10;
ctx.strokeStyle = '#5c7cfa';
ctx.lineWidth = 3;
ctx.beginPath();
ctx.moveTo(x1, y1);
for(let i = 0; i <= coils * 2; i++){
const t = i / (coils * 2);
const px = x1 + len * t;
const py = y1 + (i % 2 === 0 ? -amplitude : amplitude);
ctx.lineTo(px, py);
}
ctx.lineTo(x2, y2);
ctx.stroke();
}
function drawFXChart(currentX){
const cx = 500, cy = 100;
const cw = 250, ch = 140;
ctx.fillStyle = 'rgba(248,250,255,.8)';
ctx.fillRect(cx, cy, cw, ch);
ctx.strokeStyle = '#dee2e6';
ctx.strokeRect(cx, cy, cw, ch);
ctx.strokeStyle = '#868e96';
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo(cx, cy + ch - 20);
ctx.lineTo(cx + cw - 10, cy + ch - 20);
ctx.lineTo(cx, cy + ch - 20);
ctx.lineTo(cx, cy + 10);
ctx.stroke();
ctx.fillStyle = '#868e96';
ctx.font = '10px sans-serif';
ctx.fillText('x (px)', cx + cw - 30, cy + ch - 5);
ctx.save();
ctx.translate(cx + 10, cy + ch - 20);
ctx.rotate(-Math.PI/2);
ctx.fillText('F (N)', 0, 0);
ctx.restore();
ctx.strokeStyle = '#51cf66';
ctx.lineWidth = 2;
ctx.beginPath();
for(let i = 0; i <= 40; i++){
const px = i / 40;
const xVal = px * 400;
const fVal = k * xVal / 50;
const px_ = cx + 10 + (xVal / 400) * (cw - 20);
const py_ = cy + ch - 20 - (fVal / 80) * (ch - 30);
if(i === 0) ctx.moveTo(px_, py_);
else ctx.lineTo(px_, py_);
}
ctx.stroke();
const curF = k * currentX / 50;
const dotPx = cx + 10 + (Math.max(0, currentX) / 400) * (cw - 20);
const dotPy = cy + ch - 20 - (Math.max(0, curF) / 80) * (ch - 30);
ctx.fillStyle = '#ff6b6b';
ctx.beginPath(); ctx.arc(dotPx, dotPy, 5, 0, Math.PI*2); ctx.fill();
ctx.strokeStyle = '#fff';
ctx.lineWidth = 2;
ctx.stroke();
}
function updateUI(){
const curLen = dragHandleX - wallX;
const x = curLen - l0;
const F = k * x / 50;
const ep = 0.5 * k * x * x / 2500;
document.getElementById('l0Val').textContent = l0;
document.getElementById('kVal').textContent = k;
document.getElementById('xVal').textContent = x + ' px';
document.getElementById('fVal').textContent = (x > 0 ? F.toFixed(2) : '0.00') + ' N';
document.getElementById('lenVal').textContent = curLen + ' px';
document.getElementById('epVal').textContent = (x > 0 ? ep.toFixed(2) : '0.00') + ' J';
}
function toCanvasXY(clientX, clientY){
const rect = canvas.getBoundingClientRect();
return {
x: (clientX - rect.left) * (W / rect.width),
y: (clientY - rect.top) * (H / rect.height)
};
}
canvas.addEventListener('mousedown', (e) => {
const {x:mx, y:my} = toCanvasXY(e.clientX, e.clientY);
if(Math.abs(mx - dragHandleX) < 50 && Math.abs(my - springY) < 50){
dragging = true;
canvas.style.cursor = 'grabbing';
}
});
window.addEventListener('mousemove', (e) => {
const {x:mx, y:my} = toCanvasXY(e.clientX, e.clientY);
const nearHandle = Math.abs(mx - dragHandleX) < 50 && Math.abs(my - springY) < 50;
hoverHandle = nearHandle;
if(!dragging){
canvas.style.cursor = nearHandle ? 'grab' : 'default';
return;
}
dragHandleX = Math.max(wallX + 20, Math.min(mx, W - 40));
updateUI();
});
window.addEventListener('mouseup', () => {
dragging = false;
canvas.style.cursor = hoverHandle ? 'grab' : 'default';
});
canvas.addEventListener('touchstart', (e) => {
const t = e.touches[0];
const {x:mx, y:my} = toCanvasXY(t.clientX, t.clientY);
if(Math.abs(mx - dragHandleX) < 70 && Math.abs(my - springY) < 70){
dragging = true;
}
e.preventDefault();
}, {passive: false});
canvas.addEventListener('touchmove', (e) => {
if(!dragging) return;
const t = e.touches[0];
const {x:mx} = toCanvasXY(t.clientX, t.clientY);
dragHandleX = Math.max(wallX + 20, Math.min(mx, W - 40));
updateUI();
e.preventDefault();
}, {passive: false});
canvas.addEventListener('touchend', () => dragging = false);
document.getElementById('kSlider').addEventListener('input', (e) => {
k = parseInt(e.target.value);
updateUI();
});
document.getElementById('resetElastic').addEventListener('click', () => {
dragHandleX = wallX + l0;
k = 50;
document.getElementById('kSlider').value = 50;
updateUI();
});
function loop(){
drawScene();
requestAnimationFrame(loop);
}
updateUI();
loop();
})();
// ============ 推动木块实验 ============
(function(){
const canvas = document.getElementById('frictionCanvas');
const ctx = canvas.getContext('2d');
const W = canvas.width, H = canvas.height;
let box = { x: 160, y: 130, w: 110, h: 75 };
let gY = 230;
let nF = 100, mu = 0.3;
let vel = 0, moving = false;
let appF = 0, maxAppF = 300;
let forceTarget = 0;
let holding = false;
let holdingLeft = false;
let dragging = false, dragTargetX = 0, dragOffsetX = 0, hoverBox = false;
let squash = 0;
const muK = 0.8;
function maxStaticF(){ return mu * nF; }
function slidingF(){ return mu * muK * nF; }
function toCanvasXY(clientX, clientY){
const rect = canvas.getBoundingClientRect();
return {
x: (clientX - rect.left) * (W / rect.width),
y: (clientY - rect.top) * (H / rect.height)
};
}
function drawScene(){
ctx.clearRect(0, 0, W, H);
const groundGrad = ctx.createLinearGradient(0, gY, 0, H);
groundGrad.addColorStop(0, '#f1f3f5');
groundGrad.addColorStop(1, '#e9ecef');
ctx.fillStyle = groundGrad;
ctx.fillRect(0, gY, W, H - gY);
ctx.strokeStyle = '#adb5bd';
ctx.lineWidth = 1;
const rough = Math.floor(mu * 25);
for(let x = 0; x < W; x += 6){
const off = Math.sin(x * 0.15) * rough;
ctx.beginPath();
ctx.moveTo(x, gY);
ctx.lineTo(x + 3, gY - 2 - off);
ctx.stroke();
}
ctx.fillStyle = '#868e96';
ctx.font = '11px sans-serif';
ctx.fillText('接触面 (μ=' + mu.toFixed(2) + ')', 10, gY + 18);
drawForceBars();
const sq = squash;
const bw = box.w * (1 - sq * 0.15);
const bh = box.h * (1 + sq * 0.2);
const bx = box.x + (box.w - bw) / 2;
const by = box.y + (box.h - bh);
if(hoverBox && !dragging){
ctx.shadowColor = '#4f8cff';
ctx.shadowBlur = 12;
} else if(moving){
ctx.shadowColor = '#ff6b6b';
ctx.shadowBlur = 10;
} else {
ctx.shadowColor = 'rgba(0,0,0,.15)';
ctx.shadowBlur = 6;
}
const grad = ctx.createLinearGradient(bx, by, bx, by + bh);
grad.addColorStop(0, '#ffd43b');
grad.addColorStop(1, '#fab005');
ctx.fillStyle = grad;
ctx.fillRect(bx, by, bw, bh);
ctx.shadowBlur = 0;
ctx.strokeStyle = hoverBox ? '#4f8cff' : '#b8860b';
ctx.lineWidth = hoverBox ? 3 : 2;
ctx.strokeRect(bx, by, bw, bh);
ctx.fillStyle = '#868e96';
ctx.font = 'bold 14px sans-serif';
ctx.textAlign = 'center';
ctx.fillText('m', bx + bw / 2, by + bh / 2 + 5);
ctx.textAlign = 'start';
const absAppF = Math.abs(appF);
if(absAppF > 0.5){
const aLen = Math.min(absAppF * 0.55, 150);
const label = 'F推=' + Math.round(absAppF) + 'N';
if(appF >= 0){
drawArrow(bx - aLen - 18, by + bh / 2, bx - 5, by + bh / 2, '#4f8cff', label);
} else {
drawArrow(bx + bw + aLen + 18, by + bh / 2, bx + bw + 5, by + bh / 2, '#4f8cff', label);
}
}
const maxS = maxStaticF();
if(absAppF > 0.5 || moving){
if(moving){
const fricVal = slidingF();
const fLen = Math.min(fricVal * 0.55, 150);
if(vel > 0){
drawArrow(bx + bw + fLen + 18, by + bh / 2 + 18, bx + bw + 5, by + bh / 2 + 18, '#ff6b6b', 'f滑=' + fricVal.toFixed(1) + 'N');
} else {
drawArrow(bx - fLen - 18, by + bh / 2 + 18, bx - 5, by + bh / 2 + 18, '#ff6b6b', 'f滑=' + fricVal.toFixed(1) + 'N');
}
} else {
const fricVal = Math.min(absAppF, maxS);
const fLen = Math.min(fricVal * 0.55, 150);
if(appF >= 0){
drawArrow(bx + bw + fLen + 18, by + bh / 2 + 18, bx + bw + 5, by + bh / 2 + 18, '#f76707', 'f静=' + fricVal.toFixed(1) + 'N');
} else {
drawArrow(bx - fLen - 18, by + bh / 2 + 18, bx - 5, by + bh / 2 + 18, '#f76707', 'f静=' + fricVal.toFixed(1) + 'N');
}
}
}
drawArrow(bx + bw / 2, by - 5, bx + bw / 2, by - 50, '#5c7cfa', 'G=' + nF + 'N');
drawArrow(bx + bw / 2, by + bh + 5, bx + bw / 2, by + bh + 50, '#51cf66', 'N=' + nF + 'N');
ctx.fillStyle = moving ? '#c92a2a' : (absAppF > maxS ? '#e67700' : '#2b8a3e');
ctx.font = 'bold 15px sans-serif';
const stateTxt = moving ? ('运动中 ' + (vel > 0 ? '→' : '←') + ' (v=' + Math.abs(vel).toFixed(1) + ')') : (absAppF > maxS ? '即将滑动…' : '■ 静止');
ctx.fillText(stateTxt, 20, 28);
if(hoverBox && !dragging){
ctx.fillStyle = '#4f8cff';
ctx.font = '12px sans-serif';
ctx.textAlign = 'center';
ctx.fillText('← 拖拽木块施加推力 →', bx + bw / 2, by - 60);
ctx.textAlign = 'start';
}
if(dragging){
const boxCenter = box.x + box.w / 2;
const cy = box.y + box.h / 2;
const tx = Math.max(20, Math.min(W - 20, dragTargetX));
ctx.strokeStyle = 'rgba(79,140,255,.6)';
ctx.lineWidth = 2;
ctx.setLineDash([5, 4]);
ctx.beginPath();
ctx.moveTo(tx, cy);
ctx.lineTo(boxCenter, cy);
ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = 'rgba(79,140,255,.3)';
ctx.beginPath();
ctx.arc(tx, cy, 7, 0, Math.PI*2);
ctx.fill();
ctx.strokeStyle = '#4f8cff';
ctx.lineWidth = 2;
ctx.stroke();
}
}
function drawForceBars(){
const barY = gY + 35;
const barH = 14;
const barW = 220;
const barX = W - barW - 30;
const maxVal = Math.max(maxStaticF() * 1.2, maxAppF);
ctx.fillStyle = '#e9ecef';
ctx.fillRect(barX, barY, barW, barH);
ctx.fillRect(barX, barY + 22, barW, barH);
ctx.fillRect(barX, barY + 44, barW, barH);
const maxS = maxStaticF();
const sF = slidingF();
const absAppF = Math.abs(appF);
const appRatio = Math.min(absAppF / maxVal, 1);
const maxSRatio = Math.min(maxS / maxVal, 1);
const sFRatio = Math.min(sF / maxVal, 1);
const appColor = absAppF > maxS ? '#ff6b6b' : '#4f8cff';
ctx.fillStyle = appColor;
ctx.fillRect(barX, barY, barW * appRatio, barH);
ctx.fillStyle = '#fcc419';
ctx.fillRect(barX, barY + 22, barW * maxSRatio, barH);
ctx.fillStyle = '#ff8787';
ctx.fillRect(barX, barY + 44, barW * sFRatio, barH);
if(maxS > 0){
const thX = barX + barW * maxSRatio;
ctx.strokeStyle = '#e67700';
ctx.lineWidth = 2;
ctx.setLineDash([4, 3]);
ctx.beginPath();
ctx.moveTo(thX, barY - 4);
ctx.lineTo(thX, barY + barH + 70);
ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = '#e67700';
ctx.font = '10px sans-serif';
ctx.fillText('最大静摩擦阈值', thX + 4, barY - 6);
}
ctx.fillStyle = '#495057';
ctx.font = 'bold 11px sans-serif';
ctx.textAlign = 'right';
ctx.fillText('推力', barX - 5, barY + 11);
ctx.fillText('最大静摩擦', barX - 5, barY + 33);
ctx.fillText('滑动摩擦', barX - 5, barY + 55);
ctx.textAlign = 'start';
ctx.fillStyle = appColor;
ctx.font = 'bold 10px sans-serif';
ctx.fillText(Math.round(absAppF) + ' N', barX + barW + 5, barY + 11);
ctx.fillStyle = '#b8860b';
ctx.fillText(maxS.toFixed(1) + ' N', barX + barW + 5, barY + 33);
ctx.fillStyle = '#c92a2a';
ctx.fillText(sF.toFixed(1) + ' N', barX + barW + 5, barY + 55);
}
function drawArrow(x1, y1, x2, y2, color, label){
ctx.strokeStyle = color;
ctx.fillStyle = color;
ctx.lineWidth = 2;
ctx.beginPath();
ctx.moveTo(x1, y1);
ctx.lineTo(x2, y2);
ctx.stroke();
const angle = Math.atan2(y2 - y1, x2 - x1);
const headLen = 10;
ctx.beginPath();
ctx.moveTo(x2, y2);
ctx.lineTo(x2 - headLen * Math.cos(angle - Math.PI / 6), y2 - headLen * Math.sin(angle - Math.PI / 6));
ctx.lineTo(x2 - headLen * Math.cos(angle + Math.PI / 6), y2 - headLen * Math.sin(angle + Math.PI / 6));
ctx.closePath();
ctx.fill();
if(label){
const mx = (x1 + x2) / 2;
const my = (y1 + y2) / 2;
ctx.font = 'bold 11px sans-serif';
const metrics = ctx.measureText(label);
ctx.fillStyle = '#fff';
ctx.fillRect(mx - metrics.width / 2 - 3, my - 8, metrics.width + 6, 16);
ctx.strokeStyle = color;
ctx.lineWidth = 1;
ctx.strokeRect(mx - metrics.width / 2 - 3, my - 8, metrics.width + 6, 16);
ctx.fillStyle = color;
ctx.fillText(label, mx - metrics.width / 2, my + 4);
}
}
function updatePhysics(){
const maxS = maxStaticF();
const sF = slidingF();
const mass = nF / 10;
if(holding){
forceTarget = Math.min(forceTarget + 4, maxAppF);
} else if(holdingLeft){
forceTarget = Math.max(forceTarget - 4, -maxAppF);
} else if(dragging){
const boxCenter = box.x + box.w / 2;
const pull = dragTargetX - boxCenter;
forceTarget = Math.max(-maxAppF, Math.min(pull * 2.5, maxAppF));
} else {
forceTarget *= 0.92;
if(Math.abs(forceTarget) < 0.5) forceTarget = 0;
}
appF += (forceTarget - appF) * 0.25;
const absAppF = Math.abs(appF);
if(Math.abs(vel) < 0.01 && absAppF <= maxS + 0.5){
vel = 0;
moving = false;
} else {
moving = true;
vel += (appF / mass) * 0.016;
if(Math.abs(vel) > 0.01){
const fricStep = (sF / mass) * 0.016;
if(vel > 0) vel = Math.max(0, vel - fricStep);
else vel = Math.min(0, vel + fricStep);
}
}
// 拖拽时按距光标的剩余距离限制速度,越接近光标限速越低,
// 避免速度过大冲过光标后弹簧反向拉回造成左右摆动
if(dragging && moving){
const pullNow = dragTargetX - (box.x + box.w / 2);
const limitV = Math.abs(pullNow) * 0.18 + 0.5;
if(vel > limitV) vel = limitV;
else if(vel < -limitV) vel = -limitV;
}
if(moving){
box.x += vel * 0.016 * 60;
if(box.x < 20){ box.x = 20; vel = 0; moving = false; }
if(box.x + box.w > W - 20){ box.x = W - 20 - box.w; vel = 0; moving = false; }
}
squash *= 0.85;
if(moving && Math.abs(vel) > 5) squash = Math.min(Math.abs(vel) / 40, 0.6);
updateUI();
}
function updateUI(){
document.getElementById('forceVal').textContent = Math.round(Math.abs(appF)) + ' N';
document.getElementById('normalVal').textContent = nF;
document.getElementById('muVal').textContent = mu.toFixed(2);
const maxS = maxStaticF();
const sF = slidingF();
document.getElementById('maxStatic').textContent = maxS.toFixed(2) + ' N';
document.getElementById('slidingF').textContent = sF.toFixed(2) + ' N';
const absAppF = Math.abs(appF);
if(moving){
const dir = vel > 0 ? '→' : '←';
document.getElementById('frictionForce').textContent = '滑动摩擦 ' + sF.toFixed(2) + ' N';
document.getElementById('motionState').textContent = '运动中 ' + dir + ' (滑动摩擦)';
} else if(absAppF > 0.5){
const dir = appF > 0 ? '→' : '←';
if(absAppF <= maxS){
document.getElementById('frictionForce').textContent = '静摩擦 ' + absAppF.toFixed(2) + ' N';
document.getElementById('motionState').textContent = '静止 ' + dir + ' (静摩擦)';
} else {
document.getElementById('frictionForce').textContent = '静摩擦 ' + maxS.toFixed(2) + ' N';
document.getElementById('motionState').textContent = '即将滑动 ' + dir + '…';
}
} else {
document.getElementById('frictionForce').textContent = '0.00 N';
document.getElementById('motionState').textContent = '静止';
}
}
canvas.addEventListener('mousemove', (e) => {
const p = toCanvasXY(e.clientX, e.clientY);
hoverBox = p.x >= box.x && p.x <= box.x + box.w && p.y >= box.y && p.y <= box.y + box.h;
canvas.style.cursor = hoverBox ? 'grab' : 'default';
});
canvas.addEventListener('mousedown', (e) => {
const p = toCanvasXY(e.clientX, e.clientY);
if(hoverBox){
dragging = true;
dragTargetX = box.x + box.w / 2;
dragOffsetX = p.x - (box.x + box.w / 2);
canvas.style.cursor = 'grabbing';
}
});
window.addEventListener('mousemove', (e) => {
if(!dragging) return;
const p = toCanvasXY(e.clientX, e.clientY);
dragTargetX = p.x - dragOffsetX;
});
window.addEventListener('mouseup', () => {
if(dragging){
dragging = false;
canvas.style.cursor = hoverBox ? 'grab' : 'default';
}
});
canvas.addEventListener('touchstart', (e) => {
e.preventDefault();
const t = e.touches[0];
const p = toCanvasXY(t.clientX, t.clientY);
if(p.x >= box.x && p.x <= box.x + box.w && p.y >= box.y && p.y <= box.y + box.h){
dragging = true;
dragTargetX = box.x + box.w / 2;
dragOffsetX = p.x - (box.x + box.w / 2);
}
}, { passive: false });
canvas.addEventListener('touchmove', (e) => {
e.preventDefault();
if(!dragging) return;
const t = e.touches[0];
const p = toCanvasXY(t.clientX, t.clientY);
dragTargetX = p.x - dragOffsetX;
}, { passive: false });
window.addEventListener('touchend', () => {
dragging = false;
});
const pushBtn = document.getElementById('pushBtn');
pushBtn.addEventListener('mousedown', () => { holding = true; });
pushBtn.addEventListener('mouseup', () => { holding = false; });
pushBtn.addEventListener('mouseleave', () => { holding = false; });
pushBtn.addEventListener('touchstart', (e) => { e.preventDefault(); holding = true; });
pushBtn.addEventListener('touchend', () => { holding = false; });
const pushLeftBtn = document.getElementById('pushLeftBtn');
pushLeftBtn.addEventListener('mousedown', () => { holdingLeft = true; });
pushLeftBtn.addEventListener('mouseup', () => { holdingLeft = false; });
pushLeftBtn.addEventListener('mouseleave', () => { holdingLeft = false; });
pushLeftBtn.addEventListener('touchstart', (e) => { e.preventDefault(); holdingLeft = true; });
pushLeftBtn.addEventListener('touchend', () => { holdingLeft = false; });
document.getElementById('resetBtn').addEventListener('click', () => {
box.x = 160;
vel = 0;
moving = false;
appF = 0;
forceTarget = 0;
squash = 0;
});
document.getElementById('normalSlider').addEventListener('input', (e) => {
nF = parseInt(e.target.value);
});
document.getElementById('muSlider').addEventListener('input', (e) => {
mu = parseFloat(e.target.value);
});
function animate(){
updatePhysics();
drawScene();
requestAnimationFrame(animate);
}
updateUI();
animate();
})();
// ============ 滚动显示动画 ============
(function(){
const els = document.querySelectorAll('.animate-in');
const io = new IntersectionObserver((entries) => {
entries.forEach(e => {
if(e.isIntersecting){
e.target.classList.add('visible');
io.unobserve(e.target);
}
});
}, { threshold: 0.1 });
els.forEach(el => io.observe(el));
})();
@@ -0,0 +1 @@
:root,:host{color-scheme:var(--mantine-color-scheme)}*,:before,:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body,:host{font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing);margin:0}@media screen and (device-width<=31.25em){body,:host{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible,.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root,:host{--mantine-z-index-app:100;--mantine-z-index-modal:200;--mantine-z-index-popover:300;--mantine-z-index-overlay:400;--mantine-z-index-max:9999;--mantine-scale:1;--mantine-cursor-type:default;--mantine-webkit-font-smoothing:antialiased;--mantine-moz-font-smoothing:grayscale;--mantine-color-white:#fff;--mantine-color-black:#000;--mantine-line-height:1.55;--mantine-font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight:700;--mantine-heading-text-wrap:wrap;--mantine-radius-default:calc(.5rem * var(--mantine-scale));--mantine-primary-color-filled:var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover:var(--mantine-color-blue-filled-hover);--mantine-primary-color-light:var(--mantine-color-blue-light);--mantine-primary-color-light-hover:var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color:var(--mantine-color-blue-light-color);--mantine-breakpoint-xs:36em;--mantine-breakpoint-sm:48em;--mantine-breakpoint-md:62em;--mantine-breakpoint-lg:75em;--mantine-breakpoint-xl:88em;--mantine-spacing-xs:calc(.625rem * var(--mantine-scale));--mantine-spacing-sm:calc(.75rem * var(--mantine-scale));--mantine-spacing-md:calc(1rem * var(--mantine-scale));--mantine-spacing-lg:calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl:calc(2rem * var(--mantine-scale));--mantine-font-size-xs:calc(.75rem * var(--mantine-scale));--mantine-font-size-sm:calc(.875rem * var(--mantine-scale));--mantine-font-size-md:calc(1rem * var(--mantine-scale));--mantine-font-size-lg:calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl:calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs:1.4;--mantine-line-height-sm:1.45;--mantine-line-height-md:1.55;--mantine-line-height-lg:1.6;--mantine-line-height-xl:1.65;--mantine-shadow-xs:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) #0000001a;--mantine-shadow-sm:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantiLine truncated
@@ -0,0 +1,49 @@
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function te(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,te(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),te(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=te(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=te(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return te(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ne(e,t,n){if(e==null)return e;var r=[],i=0;return te(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e.Line truncated
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+ye+e+be}var Se=!1;function Ce(e,t){if(!e||Se)return``;Se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,ke=t.unstable_shouldYield,Ae=t.unstable_requestPaint,je=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Ne=t.unstable_ImmediatePriority,Pe=t.unstable_UserBlockingPriority,Fe=t.unstable_NormalPriority,Ie=t.unstable_LowPriority,Le=t.unstable_IdlePriority,Re=t.log,ze=t.unstable_setDisableYieldValue,Be=null,Ve=null;function He(e){if(typeof Re==`function`&&ze(e),Ve&&typeof Ve.setStrictMode==`function`)try{Ve.setStrictMode(Be,e)}catch{}}var Ue=Math.clz32?Math.clz32:Ke,We=Math.log,Ge=Math.LN2;function Ke(e){return e>>>=0,e===0?32:31-(We(e)/Ge|0)|0}var qe=256,Je=262144,Ye=4194304;function Xe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Xe(n))):i=Xe(o):i=Xe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Xe(n))):i=Xe(o)):i=Xe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Ye;return Ye<<=1,!(Ye&62914560)&&(Ye=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ue(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ue(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=ie.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function ut(e,t){var n=ie.p;try{return ie.p=e,t()}finally{ie.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,pt=`__reactProps$`+dt,mt=`__reactContainer$`+dt,ht=`__reactEvents$`+dt,gt=`__reactListeners$`+dt,_t=`__reactHandles$`+dt,vt=`__reactResources$`+dt,yt=`__reactMarker$`+dt;function bt(e){delete e[ft],delete e[pt],delete e[ht],delete e[gt],delete e[_t]}function xt(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[ft])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function St(e){if(e=e[ft]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ct(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function wt(e){var t=e[vt];return t||=e[vt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Tt(e){e[yt]=!0}var Et=new Set,Dt={};function Ot(e,t){kt(e,t),kt(e+`Capture`,t)}function kt(e,t){for(Dt[e]=t,e=0;e<t.length;e++)Et.add(t[e])}var At=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\uLine truncated
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`inne Line truncated
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ft(),d;if(t){let e=typeof t==`string`?re(t):t;k(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ae(e,{pathname:p});A(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),A(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Tt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Pe([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Pe([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement(nt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function yt(){let e=Pt(),t=Be(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var bt=S.createElement(yt,null),xt=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=lt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(rt.Provider,{value:this.props.routeContext},S.createElement(it.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(Ct,{error:e},t):t}};xt.contextType=Xe;var St=new WeakMap;function Ct({children:e,error:t}){let{basename:n}=S.useContext(tt);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ct(t.digest);if(e){let r=St.get(t);if(r)throw r;let i=Ue(e.location,n),a=i.absoluteURL||i.to;if(qe(a))throw Error(`Invalid redirect location`);if(He&&!St.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw St.set(t,n),n}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function wt({routeContext:e,match:t,children:n}){let r=S.useContext(Je);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(rt.Provider,{value:e},n)}function Tt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);k(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbLine truncated
`);if(i.length===1)return hf(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=hf(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function _f(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function vf(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function yf(e){return cf(e).stWideCharWidth}function bf(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function xf(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=bf(r[0],n.width),l+=bf(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Sf=`__zr_normal__`,Cf=of.concat([`ignore`]),wf=Wo(of,function(e,t){return e[t]=!0,e},{ignore:!1}),Tf={},Ef=new Y(0,0,0,0),Df=[],Of=function(){function e(e){this.id=Fo(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ef,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Tf,n,d):xf(Tf,n,d),i.x=Tf.x,i.y=Tf.y,a=Tf.align,o=Tf.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=bf(f[0],d.width),m=bf(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Y(0,0,0,0);i.getLocalTransform(Df),jc(Df,Df),Y.copy(_,d),_.applyTransform(Df)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qd:Kd},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&bu(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Ou(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},L(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(Qo(e))for(var n=qo(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransi Line truncated
`);a=hh(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)gh(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function hh(e,t,n,r){r||={};var i=L({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=cf(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=mf(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function gh(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=mf(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?_h(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=mf(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function _h(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=pf(n,e.charCodeAt(i));return i}function vh(e,t,n,r){var i=jh(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=yf(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?Dh(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=hh(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)gh(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=cf(l),S=0;S<_.length;S++)w=Math.max(mf(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var yh=function(){function e(){}return e}(),bh=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),xh=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Sh(e,t,n,r,i){var a=new xh,o=jh(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=ph.lastIndex=0,h;(h=ph.exec(o))!=null;){var g=h.index;g>m&&Ch(a,o.substring(m,g),t,p),Ch(a,h[2],t,p,h[1]),m=ph.lastIndex}m<o.length&&Ch(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,te=k.font=A.font||t.font;k.contentHeight=yf(te);var ne=G(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=ss(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var re=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<re;break outer}var M=A.width,ie=M==null||M===`auto`;if(typeof M==`string`&&M.charAt(M.length-1)===`%`)k.percentWidth=M,_.push(k),k.contentWidth=mf(cf(te),k.text);else{if(ie){var ae=A.backgroundColor,oe=ae&&ae.image;oe&&(oe=lh(oe),fh(oe)&&(k.width=Math.max(k.width,oe.width*ne/oe.height)))}var se=b&&u!=null?u-D:null;se!=null&&se<k.width?!ie||se<ee?(k.text=``,k.width=k.contentWidth=0):(mh(S,k.text,se-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=mf(cf(te),k.text)):k.contentWidth=mf(cf(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ce=k.percentWidth;k.width=parseInt(ce,10)/100*a.width}return a}function Ch(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=bf(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=Dh(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
`);for(var g=cf(c),_=0;_<u.length;_++){var v=u[_],y=new yh;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:mf(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new bh)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new bh([y]))}}function wh(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Th=Wo(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Eh(e){return wh(e)?!!Th[e]:!0}function Dh(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=cf(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=pf(d,p.charCodeAt(0)),h=r?!1:!Eh(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Oh(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Y.set(kh,_f(n,o,i),vf(r,s,a),o,s),Y.intersect(t,kh,null,Ah);var c=Ah.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=_f(c.x,c.width,i,!0),e.baseY=vf(c.y,c.height,a,!0)}}var kh=new Y(0,0,0,0),Ah={outIntersectRect:{},clamp:!0};function jh(e){return e==null?e=``:e+=``}function nee(e){var t=jh(e.text),n=e.font;return Mh(e,mf(cf(n),t),yf(n),null)}function Mh(e,t,n,r){var i=new Y(_f(e.x||0,t,e.textAlign),vf(e.y||0,n,e.textBaseline),t,n),a=r??(Nh(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Nh(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Ph=`__zr_style_`+Math.round(Math.random()*10),Fh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ih={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fh[Ph]=!0;var Lh=[`z`,`z2`,`invisible`],ree=[`invisible`],Rh=function(e){Ts(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=qo(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Vh(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Y(0,0,0,0),t?Y.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Y(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:L(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return bs(Fh,e)},t.prototype.useStyle=function(e){e[Ph]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Ph]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Lh)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=qo(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=qo(l),f=0;f<m.length;f++) Line truncated
`,`
`,`
`];function QT(e,t){return t.type=e,t}function $T(e){return e.type===`section`}function eE(e){return $T(e)?nE:rE}function tE(e){if($T(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(e){var n=tE(e);n>=t&&(t=n+ +(r&&(!n||$T(e)&&!e.noHeader)))}),t}return 0}function nE(e,t,n,r){var i=t.noHeader,a=aE(tE(t)),o=[],s=t.blocks||[];us(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(q(l,c)){var u=new _T(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}z(s,function(n,i){var s=t.valueFormatter,c=eE(n)(s?L(L({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):oE(r,o.join(``),i?n:a.html);if(i)return d;var f=BS(t.header,`ordinal`,e.useUTC),p=YT(r,e.renderMode).nameStyle,m=JT(r);return e.renderMode===`richText`?lE(e,f,p)+a.richText+d:oE(r,`<div style="`+p+`;`+m+`;">`+sc(f)+`</div>`+d,n)}function rE(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=H(e)?e:[e],B(e,function(e,t){return BS(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:BS(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=YT(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:lE(e,f,v))+(o?``:uE(e,m,h,g,y)):oE(r,(s?``:d)+(a?``:sE(f,!s,v))+(o?``:cE(m,h,g,y)),n)}}function iE(e,t,n,r,i,a){if(e)return eE(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function aE(e){return{html:XT[e],richText:ZT[e]}}function oE(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=JT(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function sE(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+sc(e)+`</span>`}function cE(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+B(e,function(e){return sc(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function lE(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function uE(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(` `):t,a)}function dE(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return KS(n)}function fE(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var pE=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Np()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=GS({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?z(t,function(e){return L(n,e)}):L(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function mE(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=H(s),l=dE(t,n),u,d,f,p;if(o>1||c&&!o){var m=hE(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=aT(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=sm(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return QT(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[QT(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!ds(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function hE(e,t,n,r,i){var a=t.getData(),o=Wo(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?z(r,function(e){u(aT(a,n,e),e)}):z(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(QT(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var gE=mm();function _E(e,t){return e.getName(t)||e.getId(t)}var vE=`__universalTransitionEnabled`,yE=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=lT({count:SE,reset:CE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(gE(this).sourceManager=new UT(this)).prepareSource();var r=this.getInitialData(e,n);TE(r,this),this.dataTask.context.data=r,gE(this).dataBeforeProcessed=r,bE(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=vC(this),r=n?bC(e):{},i=this.subType;CC.hasClass(i)&&(i+=`Series`),Lo(e,t.getTheme().get(this.subType)),Lo(e,this.Line truncated
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return lF(i,a)+(i===`style`?o||``:sc(o))+(t?``+n+B(t,function(e){return r(e)}).join(n)+n:``)+uF(i)}return r(e)}function fF(e,t,n){n||={};var r=n.newline?`
`:``,i=` {`+r,a=r+`}`,o=B(qo(e),function(t){return t+i+B(qo(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=B(qo(t),function(e){return`@keyframes `+e+i+B(qo(t[e]),function(n){return n+i+B(qo(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function pF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mF(e,t,n,r){return cF(`svg`,`root`,{width:e,height:t,xmlns:nF,"xmlns:xlink":rF,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var pte=0;function hF(){return pte++}var gF={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},_F=`transform-origin`;function mte(e,t,n){var r=L({},e.shape);L(r,t),e.buildPath(n,r);var i=new JP;return i.reset(Xu(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function hte(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[_F]=n+`px `+r+`px`)}var gte={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function vF(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function _te(e,t,n){var r=e.shape.paths,i={},a,o;if(z(r,function(e){var t=pF(n.zrId);t.animation=!0,bF(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=qo(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=vF(i,n);return a.replace(o,s)}}function yF(e){return W(e)?gF[e]?`cubic-bezier(`+gF[e]+`)`:nu(e)?e:``:``}function bF(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Ry){var s=_te(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=yF(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=yF(d.easing),m=d.rawValue;(W(m)||Zo(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};sf(g,e),L(g,s[h]);var _=Zu(g),v=s[h][u];l[h]=_?{transform:_}:{},hte(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new yg);var S=y.len();y.reset(),l[h].d=mte(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return gte[e]})}for(var w=qo(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][_F]!==l[O][_F]){T=!1;break}E=l[D][_F]}if(T&&E){for(var h in l)l[h][_F]&&delete l[h][_F];t[_F]=E}if(Go(w,function(e){return qo(l[e]).length>0}).length)return vF(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+hF();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function vte(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};xF(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ju(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),xF(r,t,n,!0)}}function xF(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+hF(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var SF=Math.round;function CF(e){return e&&W(e.src)}function wF(e){return e&&U(e.toDataURL)}function TF(e,t,n,r){tF(function(i,a){var o=i===`fill`||i===`stroke`;o&&Ju(a)?NF(t,e,i,r):o&&Gu(a)?PF(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Tte(n,e,r)}function EF(e,t){var n=qf(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).to Line truncated
`+e.message)}var r=new X;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Y(c,l,u,d)}if(o){var p=AH(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new n_({shape:s.plain()}));var m=[];return z(t.named,function(e){Pte.get(e.svgNodeTagLower)!=null&&(m.push(e),Ite(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Ite(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function Lte(e){var t=[],n=K();return z(e,function(e){if(e.namedFrom==null){var r=new uN(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var jH=[126,25],MH=`南海诸岛`,NH=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],PH=0;PH<NH.length;PH++)for(var FH=0;FH<NH[PH].length;FH++)NH[PH][FH][0]/=10.5,NH[PH][FH][1]/=-10.5/.75,NH[PH][FH][0]+=jH[0],NH[PH][FH][1]+=jH[1];function Rte(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===MH)return;t.push(new lN(MH,B(NH,function(e){return{type:`polygon`,exterior:e}}),jH))}}var zte={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Bte(e,t){if(e===`china`){var n=zte[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var Vte=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Hte(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:Vte[0]})}var Ute=`name`,Wte=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=K(),this._mapName=e,this._specialAreas=n,this._geoJSON=Kte(t)}return e.prototype.load=function(e,t){t||=Ute;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:Gte(r)})}var i=K(),a=[];return z(n.regions,function(t){var n=t.name;e&&q(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new Y(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?mN(n,e):[]}catch(e){throw Error(`Invalid geoJson format
`+e.message)}return Rte(t,r),z(r,function(e){var n=e.name;Bte(t,e),Hte(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Gte(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function Kte(e){return W(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var IH=K(),LH={registerMap:function(e,t,n){if(t.svg){var r=new Fte(e,t.svg);IH.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new Wte(e,i,n);IH.set(e,r)}},getGeoResource:function(e){return IH.get(e)},getMapForUser:function(e){var t=IH.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=IH.get(e);if(r)return r.load(t,n)}};function RH(e){return e}var qte=`view`,zH=function(e){F(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=qte,i.dimensions=[`x`,`y`];var a=RH(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=af(),o[1]=af(),o[2]=af(),a.mtRaw=wc(),a.mtRawInv=wc(),a.mtOverall=wc(),a.mtOverallInv=wc(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return HH(null,this)},t.prototype.getViewRect=function(){return UH(null,this)},t.prototype.getRoamTransform=function(){return rf(RH(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?RH(this).mtRaw:RH(this).mtOverall;return n||=[],r?Hs(n,e,r):Ds(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=RH(this).mtOverallInv;return r?Hs(n,e,r):Ds(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=iU(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=iU(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=RH(this);return Jc(BH,t.dataRect),Xc(BH,BH,t.mtOverall),Zc(BH,e[0],e[1])},t.dimensions=[`x`,`y`],t}(nf),BH=Kc();function VH(e,t){return Ec(e||[],RH(t).mtOverall)}function Jte(e){return RH(e).zoom}function HH(e,t){return Jc(e||Kc(),RH(t).dataRect)}function UH(e,t){return Jc(e||Kc(),RH(t).viewRect)}function WH(e,t,n){return sf(e||af(),RH(t).trans[n])}function GH(e){return!!(e.dataRect&&e.viewRect)}function Yte(e,t,n,r){r===1?tU(e,t.trans[0],n):sf(e,n)}function KH(e,t,n){rf(n,qH),Dc(qH,qH,t.mtRawInv),ex(e,qH)}var qH=wc();function JH(e,t){var n=RH(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=yU(t.getShallow(`zoom`)||1,r)||1,GH(n)&&ZH(n)}function YH(e,t,n,r,i){var a=RH(e);a.dataRect=new Y(t,n,r,i),GH(a)&&ZH(a)}function XH(e,t,n,r,i){var a=RH(e);a.viewRect=new Y(t,n,r,i),GH(a)&&ZH(a)}function ZH(e){Xte(e),Qte(e),$te(e)}function Xte(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=Jc(Zte,t),t.y=-t.y-t.height),Yc(QH,t,n),ex(r,QH),i&&(r.scaleY=-r.scaleY);var a=rf(r,e.mtRaw);jc(e.mtRawInv,a)}var QH=wc(),Zte=Kc();function Qte(e){var t=aU(e),n=nne($H,e,e.centerOption)?Hs($H,$H,e.mtRaw):t,r=e.zoom,i=e.trans[1];i.x=t[0]-r*n[0],i.y=t[1]-r*n[1],i.scaleX=i.scaleY=r}var $H=[];function $te(e){var t=e.trans,n=t[1],r=t[0],i=t[2];tU(i,r,n);var a=rf(i,e.mtOverall),o=jc(e.mtOverallInv,a);eU(e,i,a,o),eU(e.lgGeo,i,a,o)}function eU(e,t,n,r){e&&(sf(e,t),Ec(e.transform||=[],n),Ec(e.invTransform||=[],r))}function tU(e,t,n){rf(t,nU),rf(n,rU),Dc(rU,rU,nU),ex(e,rU)}var nU=wc(),rU=wc();function iU(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function aU(e){var t=e.viewRect;return oU[0]=t.x+t.width/2,oU[1]=t.y+t.height/2,oU}var oU=[];function sU(e){return e&&e.type===`view`}function cU(e,t,n,r){var i=RH(n);i.syncBackEl=e,i.syncBackType=t,r?nb(e,WH(null,n,t),r):(WH(e,n,t),e.dirty())}function ene(e,t,n,r){var i=RH(e),a=i.syncBackEl;a?(a.stopAnimation(),Yte(lU,i,a,i.syncBackType)):sf(lU,i.trans[2]),KH(uU,i,lU),r?tne(lU,uU,i,r):sf(lU,uU),KH(lU,i,lU),ine(i,t,n,lU)}var lU=af(),uU=af();function dU(e,t,n){var r=fU(t);r&&(ene(r,t,n,e),JH(r,t))}function fU(e){return e.__ownRoamView?e.__ownRoamView():null}function pU(e,t,n,r){n.setUpdatePayload($b(e));var i=F_(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function tne(e,t,n,r){r.dx!=null&&r.dy!=null&&(e.x+=r.dx,e.y+=r.dy);var i=r.zoom;if(i!=null){var a=mU(t),o=yU(a*i,n.zoomLimit)/a;e.x-=(r.originX-e.x)*(o-1),e.y-=(r.originY-e.y)*(o-1),e.scaleX*=o,e.scaleY*=o}}function mU(e){return e.scaleX}function nne(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?ks(e,Z(n[0],i.w),Z(n[1],i.h)):r&&ks(e,Z(n[0],r.width,r.x),Z(n[1],r.height,r.y)),!0}function rne(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[hU(0,t,n,r),hU(1,t,n,r)]}function hU(e,t,n,r){return n&&r&&r[pb[e]]&&fp(n[e])?(t[e]-r[fb[e]])/r[pb[e]]*100+`%`:t[e]}function gU(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function ine(e,t,n,r){var i=aU(e),a=mU(r),o=ep(a)>1e-6;_U[0]=o?(i[0]-r.x)/a:i[0],_U[1]=o?(i[1]-r.y)/a:i[1],Hs(_U,_U,e.mtRawInv);var s=rne(e,_ Line truncated
`))}),t.join(`
`+c6+`
`)}function f6(e){return B(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+l6:``)+r.join(l6))}),n.join(`
`)}).join(`
`+c6+`
`)}function p6(e){var t=u6(e);return{value:Go([d6(t.seriesGroupByCategoryAxis),f6(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
`+c6+`
`),meta:t.meta}}function m6(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function h6(e){if(e.slice(0,e.indexOf(`
`)).indexOf(l6)>=0)return!0}var g6=RegExp(`[`+l6+`]+`,`g`);function _6(e){for(var t=e.split(/\n+/g),n=m6(t.shift()).split(g6),r=[],i=B(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=m6(t[a]).split(g6);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function v6(e){for(var t=e.split(/\n+/g),n=m6(t.shift()),r=[],i=0;i<t.length;i++){var a=m6(t[i]);if(a){var o=a.split(g6),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function y6(e,t){var n=e.split(RegExp(`
*`+c6+`
*`,`g`)),r={series:[]};return z(n,function(e,n){if(h6(e)){var i=_6(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=v6(e);r.series.push(i)}}),r}var b6=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=p6(e);if(U(l)){var f=l(t.getOption());W(f)?s.innerHTML=f:ts(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}gc(_,`click`,b),gc(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=U(u)?u(s,t.getOption()):y6(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(J3);function x6(e,t){return B(e,function(e,n){var r=t&&t[n];if(Qo(r)&&!H(r)){Qo(e)&&!H(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=R(e,r),i&&delete e.name,e}else return e})}Yk({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];z(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(L({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:x6(e.data,i)})}}),t.mergeOption(R({series:n},e.newOption))});var S6=z,C6=mm();function w6(e,t){var n=O6(e);S6(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function T6(e){var t=O6(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return S6(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function E6(e){C6(e).snapshots=null}function D6(e){return O6(e).length}function O6(e){var t=C6(e);return t.snapshots||=[{}],t.snapshots}var k6=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){E6(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(J3);Yk({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var A6=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],j6=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=N6(t,e);z(P6,function(e,t){(!n||!n.include||Bo(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.co Line truncated
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=x_(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=S8([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new pE;h.marker=g.makeTooltipMarker(`item`,KS(h.color),d);var _=cT(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?iE(y?L({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=x_(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=I(a),a.content=sc(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=S8(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new pE;this._showOrMove(d,function(){var n=I(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=yS(m.axisValue,d,p)),d=US(d,n,!0)}else if(U(u)){var g=V(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||H(t))return{color:r||i};if(!H(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=Z(t[0],s),r=Z(t[1],c);else if(Qo(t)){var p=t;p.width=l[0],p.height=l[1];var m=fC(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=E8(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=w8(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=D8(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=D8(d)?l[1]/2:d===`bottom`?l[1]:0),$6(e)){var h=T8(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){po.node||!t.getDom()||(UE(this,`_updatePosition`),this._tooltipContent.dispose(),w0(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(OE);function S8(e,t,n){var r=t.ecModel,i;n?(i=new Mx(n,r,r),i=new Mx(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Mx&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new Mx(o,i,r)))}return i}function C8(e,t){return e.dispatchAction||V(t.dispatchAction,t)}function w8(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function T8(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function E8(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2* Line truncated
`)){var p=new s7;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,a7(l7,f,null,r,d)).on(`mouseover`,a7(u7,m.name,null,r,d)).on(`mouseout`,a7(d7,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=x_(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=bu(h.fill);_&&_[3]===0&&(_[3]=.2,h=L(L({},h),{fill:Ou(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,a7(l7,null,f,r,d)).on(`mouseover`,a7(u7,null,f,r,d)).on(`mouseout`,a7(d7,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=x_(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};x_(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();o7(e,function(e){var r=e.type,i=new s_({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),ox(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),wv(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=yne(c,r,o,s,d,m,u),y=new s7,b=r.getModel(`textStyle`);if(U(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(bne({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;W(w)&&w?T=w.replace(`{name}`,t??``):U(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new s_({style:cx(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new n_({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Hb({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),wv(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();cC(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){cC(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(OE);function yne(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),o7(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:VO(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function bne(e){var t=e.icon||`roundRect`,n=$D(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.strok Line truncated
`||r===``)){var i=e.isSelected(r);q(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function xne(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Yo(f7,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Yo(f7,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Yo(f7,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Yo(f7,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Yo(f7,`unSelect`))}var Sne=Km(Cne);function Cne(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function m7(e){e.registerComponentModel(i7),e.registerComponentView(c7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Sne),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),xne(e)}var wne=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=bC(t);e.prototype.init.call(this,t,n,r),h7(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),h7(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Lx(i7.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(i7);function h7(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,yC(t,n,{type:`box`,ignoreSize:!!i})}var g7=X,_7=[`width`,`height`],v7=[`x`,`y`],Tne=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new g7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new g7)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=H(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new s_({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Fb(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:V(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=_7[s],l=v7[s],u=_7[1-s],d=v7[1-s];i&&cC(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=I(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;cC(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),cC(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new n_({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&nb(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;z([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o Line truncated
+15
View File
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>智慧河流水质监测系统</title>
<script defer src="https://umami.xiaozhou233.cn/script.js" data-website-id="5a5128e4-1e6c-4c0f-8f45-536d929aa2a1"></script>
<script type="module" crossorigin src="./assets/index-DDcc8Cnj.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C3peSPUB.css">
</head>
<body>
<div id="root"></div>
</body>
</html>