| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function s(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(l){if(l.ep)return;l.ep=!0;const o=s(l);fetch(l.href,o)}})();/**
- * @vue/shared v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function On(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Ft={},Le=[],he=()=>{},Rl=()=>!1,Bs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ws=t=>t.startsWith("onUpdate:"),It=Object.assign,An=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},si=Object.prototype.hasOwnProperty,kt=(t,e)=>si.call(t,e),pt=Array.isArray,Ce=t=>_s(t)==="[object Map]",Fs=t=>_s(t)==="[object Set]",tl=t=>_s(t)==="[object Date]",ft=t=>typeof t=="function",jt=t=>typeof t=="string",me=t=>typeof t=="symbol",Tt=t=>t!==null&&typeof t=="object",Nl=t=>(Tt(t)||ft(t))&&ft(t.then)&&ft(t.catch),Bl=Object.prototype.toString,_s=t=>Bl.call(t),ni=t=>_s(t).slice(8,-1),Wl=t=>_s(t)==="[object Object]",qn=t=>jt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ns=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ks=t=>{const e=Object.create(null);return(s=>e[s]||(e[s]=t(s)))},li=/-\w/g,ne=Ks(t=>t.replace(li,e=>e.slice(1).toUpperCase())),oi=/\B([A-Z])/g,Ne=Ks(t=>t.replace(oi,"-$1").toLowerCase()),Kl=Ks(t=>t.charAt(0).toUpperCase()+t.slice(1)),tn=Ks(t=>t?`on${Kl(t)}`:""),fe=(t,e)=>!Object.is(t,e),Ss=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},Ul=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},jn=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let el;const Us=()=>el||(el=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dt(t){if(pt(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],l=jt(n)?ci(n):Dt(n);if(l)for(const o in l)e[o]=l[o]}return e}else if(jt(t)||Tt(t))return t}const ii=/;(?![^(]*\))/g,ai=/:([^]+)/,ri=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ci(t){const e={};return t.replace(ri,s=>s.startsWith("/*")?"":s).split(ii).forEach(s=>{if(s){const n=s.split(ai);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Qt(t){let e="";if(jt(t))e=t;else if(pt(t))for(let s=0;s<t.length;s++){const n=Qt(t[s]);n&&(e+=n+" ")}else if(Tt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const ui="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",di=On(ui);function Vl(t){return!!t||t===""}function pi(t,e,s){if(t.length!==e.length)return!1;let n=!0;for(let l=0;n&&l<t.length;l++)n=Vs(t[l],e[l],s);return n}function sl(t,e,s){if(t.size!==e.size)return!1;const n=Array.from(e),l=new Uint8Array(n.length);for(const o of t){let c=-1;for(let r=0;r<n.length;r++)if(!l[r]&&Vs(o,n[r],s)){c=r;break}if(c<0)return!1;l[c]=1}return!0}function fi(t,e,s){let n=Ce(t),l=Ce(e);if(n||l||(n=Fs(t),l=Fs(e),n||l))return n&&l?sl(t,e,s):!1;const o=Object.keys(t).length,c=Object.keys(e).length;if(o!==c)return!1;for(const r in t){const u=t.hasOwnProperty(r),m=e.hasOwnProperty(r);if(u&&!m||!u&&m||!Vs(t[r],e[r],s))return!1}return String(t)===String(e)}function nl(t,e,s,n){s||(s=[new Map,new Map]);const[l,o]=s;if(l.has(t)||o.has(e))return l.get(t)===e&&o.get(e)===t;l.set(t,e),o.set(e,t);const c=n(t,e,s);return l.delete(t),o.delete(e),c}function Vs(t,e,s){if(t===e)return!0;let n=tl(t),l=tl(e);return n||l?n&&l?t.getTime()===e.getTime():!1:(n=me(t),l=me(e),n||l?t===e:(n=pt(t),l=pt(e),n||l?n&&l?nl(t,e,s,pi):!1:(n=Tt(t),l=Tt(e),n||l?!n||!l?!1:nl(t,e,s,fi):String(t)===String(e))))}const zl=t=>!!(t&&t.__v_isRef===!0),p=t=>jt(t)?t:t==null?"":pt(t)||Tt(t)&&(t.toString===Bl||!ft(t.toString))?zl(t)?p(t.value):JSON.stringify(t,Gl,2):String(t),Gl=(t,e)=>zl(e)?Gl(t,e.value):Ce(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,l],o)=>(s[en(n,o)+" =>"]=l,s),{})}:Fs(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>en(s))}:me(e)?en(e):Tt(e)&&!pt(e)&&!Wl(e)?String(e):e,en=(t,e="")=>{var s;return me(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/**
- * @vue/reactivity v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Lt;class hi{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Lt&&(Lt.active?(this.parent=Lt,this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes){const n=this.scopes.slice();for(e=0,s=n.length;e<s;e++)n[e].pause()}for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes){const l=this.scopes.slice();for(e=0,s=l.length;e<s;e++)l[e].resume()}const n=this.effects.slice();for(e=0,s=n.length;e<s;e++)n[e].resume()}}run(e){if(this._active){const s=Lt;try{return Lt=this,e()}finally{Lt=s}}}on(){++this._on===1&&(this.prevScope=Lt,Lt=this)}off(){if(this._on>0&&--this._on===0){if(Lt===this)Lt=this.prevScope;else{let e=Lt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const l=this.scopes.slice();for(s=0,n=l.length;s<n;s++)l[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function mi(){return Lt}let Ot;const sn=new WeakSet;class Yl{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Lt&&(Lt.active?Lt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,sn.has(this)&&(sn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ll(this),Zl(this);const e=Ot,s=le;Ot=this,le=!0;try{return this.fn()}finally{Ql(this),Ot=e,le=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ln(e);this.deps=this.depsTail=void 0,ll(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?sn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vn(this)&&this.run()}get dirty(){return vn(this)}}let Jl=0,ls,os;function Xl(t,e=!1){if(t.flags|=8,e){t.next=os,os=t;return}t.next=ls,ls=t}function Pn(){Jl++}function Hn(){if(--Jl>0)return;if(os){let e=os;for(os=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;ls;){let e=ls;for(ls=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Zl(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ql(t){let e,s=t.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),Ln(n),_i(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}t.deps=e,t.depsTail=s}function vn(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(to(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function to(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===cs)||(t.globalVersion=cs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!vn(t))))return;t.flags|=2;const e=t.dep,s=Ot,n=le;Ot=t,le=!0;try{Zl(t);const l=t.fn(t._value);(e.version===0||fe(l,t._value))&&(t.flags|=128,t._value=l,e.version++)}catch(l){throw e.version++,l}finally{Ot=s,le=n,Ql(t),t.flags&=-3}}function Ln(t,e=!1){const{dep:s,prevSub:n,nextSub:l}=t;if(n&&(n.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Ln(o,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function _i(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let le=!0;const eo=[];function we(){eo.push(le),le=!1}function ke(){const t=eo.pop();le=t===void 0?!0:t}function ll(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=Ot;Ot=void 0;try{e()}finally{Ot=s}}}let cs=0;class vi{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ot||!le||Ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ot)s=this.activeLink=new vi(Ot,this),Ot.deps?(s.prevDep=Ot.depsTail,Ot.depsTail.nextDep=s,Ot.depsTail=s):Ot.deps=Ot.depsTail=s,so(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Ot.depsTail,s.nextDep=void 0,Ot.depsTail.nextDep=s,Ot.depsTail=s,Ot.deps===s&&(Ot.deps=n)}return s}trigger(e){this.version++,cs++,this.notify(e)}notify(e){Pn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hn()}}}function so(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)so(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const gn=new WeakMap,De=Symbol(""),bn=Symbol(""),us=Symbol("");function Bt(t,e,s){if(le&&Ot){let n=gn.get(t);n||gn.set(t,n=new Map);let l=n.get(s);l||(n.set(s,l=new Dn),l.map=n,l.key=s),l.track()}}function $e(t,e,s,n,l,o){const c=gn.get(t);if(!c){cs++;return}const r=u=>{u&&u.trigger()};if(Pn(),e==="clear")c.forEach(r);else{const u=pt(t),m=u&&qn(s);if(u&&s==="length"){const f=Number(n);c.forEach((_,v)=>{(v==="length"||v===us||!me(v)&&v>=f)&&r(_)})}else switch((s!==void 0||c.has(void 0))&&r(c.get(s)),m&&r(c.get(us)),e){case"add":u?m&&r(c.get("length")):(r(c.get(De)),Ce(t)&&r(c.get(bn)));break;case"delete":u||(r(c.get(De)),Ce(t)&&r(c.get(bn)));break;case"set":Ce(t)&&r(c.get(De));break}}Hn()}function Be(t){const e=wt(t);return e===t||(Bt(e,"iterate",us),ee(t))?e:_e(t)?Fe(t)?e.map(s=>Oe(se(s))):e.map(Oe):e.map(se)}function zs(t){return Bt(t=wt(t),"iterate",us),t}function de(t,e){return _e(t)?Oe(Fe(t)?se(e):e):se(e)}const gi={__proto__:null,[Symbol.iterator](){return nn(this,Symbol.iterator,t=>de(this,t))},concat(...t){return Be(this).concat(...t.map(e=>pt(e)?Be(e):e))},entries(){return nn(this,"entries",t=>(t[1]=de(this,t[1]),t))},every(t,e){return ve(this,"every",t,e,void 0,arguments)},filter(t,e){return ve(this,"filter",t,e,s=>s.map(n=>de(this,n)),arguments)},find(t,e){return ve(this,"find",t,e,s=>de(this,s),arguments)},findIndex(t,e){return ve(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ve(this,"findLast",t,e,s=>de(this,s),arguments)},findLastIndex(t,e){return ve(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ve(this,"forEach",t,e,void 0,arguments)},includes(...t){return ln(this,"includes",t)},indexOf(...t){return ln(this,"indexOf",t)},join(t){return Be(this).join(t)},lastIndexOf(...t){return ln(this,"lastIndexOf",t)},map(t,e){return ve(this,"map",t,e,void 0,arguments)},pop(){return Xe(this,"pop")},push(...t){return Xe(this,"push",t)},reduce(t,...e){return ol(this,"reduce",t,e)},reduceRight(t,...e){return ol(this,"reduceRight",t,e)},shift(){return Xe(this,"shift")},some(t,e){return ve(this,"some",t,e,void 0,arguments)},splice(...t){return Xe(this,"splice",t)},toReversed(){return Be(this).toReversed()},toSorted(t){return Be(this).toSorted(t)},toSpliced(...t){return Be(this).toSpliced(...t)},unshift(...t){return Xe(this,"unshift",t)},values(){return nn(this,"values",t=>de(this,t))}};function nn(t,e,s){const n=zs(t),l=n[e]();return n!==t&&!ee(t)&&(l._next=l.next,l.next=()=>{const o=l._next();return o.done||(o.value=s(o.value)),o}),l}const bi=Array.prototype;function ve(t,e,s,n,l,o){const c=zs(t),r=c!==t&&!ee(t),u=c[e];if(u!==bi[e]){const _=u.apply(t,o);return r?se(_):_}let m=s;c!==t&&(r?m=function(_,v){return s.call(this,de(t,_),v,t)}:s.length>2&&(m=function(_,v){return s.call(this,_,v,t)}));const f=u.call(c,m,n);return r&&l?l(f):f}function ol(t,e,s,n){const l=zs(t),o=l!==t&&!ee(t);let c=s,r=!1;l!==t&&(o?(r=n.length===0,c=function(m,f,_){return r&&(r=!1,m=de(t,m)),s.call(this,m,de(t,f),_,t)}):s.length>3&&(c=function(m,f,_){return s.call(this,m,f,_,t)}));const u=l[e](c,...n);return r?de(t,u):u}function ln(t,e,s){const n=wt(t);Bt(n,"iterate",us);const l=n[e](...s);return(l===-1||l===!1)&&Nn(s[0])?(s[0]=wt(s[0]),n[e](...s)):l}function Xe(t,e,s=[]){we(),Pn();const n=wt(t)[e].apply(t,s);return Hn(),ke(),n}const $i=On("__proto__,__v_isRef,__isVue"),no=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(me));function yi(t){me(t)||(t=String(t));const e=wt(this);return Bt(e,"has",t),e.hasOwnProperty(t)}class lo{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const l=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(l?o?Oi:ro:o?ao:io).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=pt(e);if(!l){let u;if(c&&(u=gi[s]))return u;if(s==="hasOwnProperty")return yi}const r=Reflect.get(e,s,Wt(e)?e:n);if((me(s)?no.has(s):$i(s))||(l||Bt(e,"get",s),o))return r;if(Wt(r)){const u=c&&qn(s)?r:r.value;return l&&Tt(u)?yn(u):u}return Tt(r)?l?yn(r):vs(r):r}}class oo extends lo{constructor(e=!1){super(!1,e)}set(e,s,n,l){let o=e[s];const c=pt(e)&&qn(s);if(!this._isShallow){const m=_e(o);if(!ee(n)&&!_e(n)&&(o=wt(o),n=wt(n)),!c&&Wt(o)&&!Wt(n))return m||(o.value=n),!0}const r=c?Number(s)<e.length:kt(e,s),u=Reflect.set(e,s,n,Wt(e)?e:l);return e===wt(l)&&u&&(r?fe(n,o)&&$e(e,"set",s,n):$e(e,"add",s,n)),u}deleteProperty(e,s){const n=kt(e,s);e[s];const l=Reflect.deleteProperty(e,s);return l&&n&&$e(e,"delete",s,void 0),l}has(e,s){const n=Reflect.has(e,s);return(!me(s)||!no.has(s))&&Bt(e,"has",s),n}ownKeys(e){return Bt(e,"iterate",pt(e)?"length":De),Reflect.ownKeys(e)}}class xi extends lo{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const wi=new oo,ki=new xi,Mi=new oo(!0);const $n=t=>t,$s=t=>Reflect.getPrototypeOf(t);function Si(t,e,s){return function(...n){const l=this.__v_raw,o=wt(l),c=Ce(o),r=t==="entries"||t===Symbol.iterator&&c,u=t==="keys"&&c,m=l[t](...n),f=s?$n:e?Oe:se;return!e&&Bt(o,"iterate",u?bn:De),It(Object.create(m),{next(){const{value:_,done:v}=m.next();return v?{value:_,done:v}:{value:r?[f(_[0]),f(_[1])]:f(_),done:v}}})}}function ys(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Ti(t,e){const s={get(l){const o=this.__v_raw,c=wt(o),r=wt(l);t||(fe(l,r)&&Bt(c,"get",l),Bt(c,"get",r));const{has:u}=$s(c),m=e?$n:t?Oe:se;if(u.call(c,l))return m(o.get(l));if(u.call(c,r))return m(o.get(r));o!==c&&o.get(l)},get size(){const l=this.__v_raw;return!t&&Bt(wt(l),"iterate",De),l.size},has(l){const o=this.__v_raw,c=wt(o),r=wt(l);return t||(fe(l,r)&&Bt(c,"has",l),Bt(c,"has",r)),l===r?o.has(l):o.has(l)||o.has(r)},forEach(l,o){const c=this,r=c.__v_raw,u=wt(r),m=e?$n:t?Oe:se;return!t&&Bt(u,"iterate",De),r.forEach((f,_)=>l.call(o,m(f),m(_),c))}};return It(s,t?{add:ys("add"),set:ys("set"),delete:ys("delete"),clear:ys("clear")}:{add(l){const o=wt(this),c=$s(o),r=wt(l),u=!e&&!ee(l)&&!_e(l)?r:l;return c.has.call(o,u)||fe(l,u)&&c.has.call(o,l)||fe(r,u)&&c.has.call(o,r)||(o.add(u),$e(o,"add",u,u)),this},set(l,o){!e&&!ee(o)&&!_e(o)&&(o=wt(o));const c=wt(this),{has:r,get:u}=$s(c);let m=r.call(c,l);m||(l=wt(l),m=r.call(c,l));const f=u.call(c,l);return c.set(l,o),m?fe(o,f)&&$e(c,"set",l,o):$e(c,"add",l,o),this},delete(l){const o=wt(this),{has:c,get:r}=$s(o);let u=c.call(o,l);u||(l=wt(l),u=c.call(o,l)),r&&r.call(o,l);const m=o.delete(l);return u&&$e(o,"delete",l,void 0),m},clear(){const l=wt(this),o=l.size!==0,c=l.clear();return o&&$e(l,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=Si(l,t,e)}),s}function In(t,e){const s=Ti(t,e);return(n,l,o)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?n:Reflect.get(kt(s,l)&&l in n?s:n,l,o)}const Ei={get:In(!1,!1)},Ci={get:In(!1,!0)},Fi={get:In(!0,!1)};const io=new WeakMap,ao=new WeakMap,ro=new WeakMap,Oi=new WeakMap;function Ai(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(t){return _e(t)?t:Rn(t,!1,wi,Ei,io)}function qi(t){return Rn(t,!1,Mi,Ci,ao)}function yn(t){return Rn(t,!0,ki,Fi,ro)}function Rn(t,e,s,n,l){if(!Tt(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const o=l.get(t);if(o)return o;const c=Ai(ni(t));if(c===0)return t;const r=new Proxy(t,c===2?n:s);return l.set(t,r),r}function Fe(t){return _e(t)?Fe(t.__v_raw):!!(t&&t.__v_isReactive)}function _e(t){return!!(t&&t.__v_isReadonly)}function ee(t){return!!(t&&t.__v_isShallow)}function Nn(t){return t?!!t.__v_raw:!1}function wt(t){const e=t&&t.__v_raw;return e?wt(e):t}function ji(t){return!kt(t,"__v_skip")&&Object.isExtensible(t)&&Ul(t,"__v_skip",!0),t}const se=t=>Tt(t)?vs(t):t,Oe=t=>Tt(t)?yn(t):t;function Wt(t){return t?t.__v_isRef===!0:!1}function Mt(t){return Pi(t,!1)}function Pi(t,e){return Wt(t)?t:new Hi(t,e)}class Hi{constructor(e,s){this.dep=new Dn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:wt(e),this._value=s?e:se(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||ee(e)||_e(e);e=n?e:wt(e),fe(e,s)&&(this._rawValue=e,this._value=n?e:se(e),this.dep.trigger())}}function d(t){return Wt(t)?t.value:t}const Li={get:(t,e,s)=>e==="__v_raw"?t:d(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const l=t[e];return Wt(l)&&!Wt(s)?(l.value=s,!0):Reflect.set(t,e,s,n)}};function co(t){return Fe(t)?t:new Proxy(t,Li)}class Di{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Dn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ot!==this)return Xl(this,!0),!0}get value(){const e=this.dep.track();return to(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ii(t,e,s=!1){let n,l;return ft(t)?n=t:(n=t.get,l=t.set),new Di(n,l,s)}const xs={},Os=new WeakMap;let Pe;function Ri(t,e=!1,s=Pe){if(s){let n=Os.get(s);n||Os.set(s,n=[]),n.push(t)}}function Ni(t,e,s=Ft){const{immediate:n,deep:l,once:o,scheduler:c,augmentJob:r,call:u}=s,m=S=>l?S:ee(S)||l===!1||l===0?ye(S,1):ye(S);let f,_,v,w,P=!1,B=!1;if(Wt(t)?(_=()=>t.value,P=ee(t)):Fe(t)?(_=()=>m(t),P=!0):pt(t)?(B=!0,P=t.some(S=>Fe(S)||ee(S)),_=()=>t.map(S=>{if(Wt(S))return S.value;if(Fe(S))return m(S);if(ft(S))return u?u(S,2):S()})):ft(t)?e?_=u?()=>u(t,2):t:_=()=>{if(v){we();try{v()}finally{ke()}}const S=Pe;Pe=f;try{return u?u(t,3,[w]):t(w)}finally{Pe=S}}:_=he,e&&l){const S=_,L=l===!0?1/0:l;_=()=>ye(S(),L)}const z=mi(),ot=()=>{f.stop(),z&&z.active&&An(z.effects,f)};if(o&&e){const S=e;e=(...L)=>{const mt=S(...L);return ot(),mt}}let q=B?new Array(t.length).fill(xs):xs;const D=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(e){const L=f.run();if(S||l||P||(B?L.some((mt,st)=>fe(mt,q[st])):fe(L,q))){v&&v();const mt=Pe;Pe=f;try{const st=[L,q===xs?void 0:B&&q[0]===xs?[]:q,w];q=L,u?u(e,3,st):e(...st)}finally{Pe=mt}}}else f.run()};return r&&r(D),f=new Yl(_),f.scheduler=c?()=>c(D,!1):D,w=S=>Ri(S,!1,f),v=f.onStop=()=>{const S=Os.get(f);if(S){if(u)u(S,4);else for(const L of S)L();Os.delete(f)}},e?n?D(!0):q=f.run():c?c(D.bind(null,!0),!0):f.run(),ot.pause=f.pause.bind(f),ot.resume=f.resume.bind(f),ot.stop=ot,ot}function ye(t,e=1/0,s){if(e<=0||!Tt(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,Wt(t))ye(t.value,e,s);else if(pt(t))for(let n=0;n<t.length;n++)ye(t[n],e,s);else if(Fs(t)||Ce(t))t.forEach(n=>{ye(n,e,s)});else if(Wl(t)){for(const n in t)ye(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&ye(t[n],e,s)}return t}/**
- * @vue/runtime-core v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function gs(t,e,s,n){try{return n?t(...n):t()}catch(l){Gs(l,e,s)}}function oe(t,e,s,n){if(ft(t)){const l=gs(t,e,s,n);return l&&Nl(l)&&l.catch(o=>{Gs(o,e,s)}),l}if(pt(t)){const l=[];for(let o=0;o<t.length;o++)l.push(oe(t[o],e,s,n));return l}}function Gs(t,e,s,n=!0){const l=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Ft;if(e){let r=e.parent;const u=e.proxy,m=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const f=r.ec;if(f){for(let _=0;_<f.length;_++)if(f[_](t,u,m)===!1)return}r=r.parent}if(o){we(),gs(o,null,10,[t,u,m]),ke();return}}Bi(t,s,l,n,c)}function Bi(t,e,s,n=!0,l=!1){if(l)throw t;console.error(t)}const Vt=[];let ue=-1;const Ue=[];let Te=null,We=0;const uo=Promise.resolve();let As=null;function Wi(t){const e=As||uo;return t?e.then(this?t.bind(this):t):e}function Ki(t){let e=ue+1,s=Vt.length;for(;e<s;){const n=e+s>>>1,l=Vt[n],o=ds(l);o<t||o===t&&l.flags&2?e=n+1:s=n}return e}function Bn(t){if(!(t.flags&1)){const e=ds(t),s=Vt[Vt.length-1];!s||!(t.flags&2)&&e>=ds(s)?Vt.push(t):Vt.splice(Ki(e),0,t),t.flags|=1,po()}}function po(){As||(As=uo.then(ho))}function Ui(t){if(!pt(t))Te&&t.id===-1?Te.splice(We+1,0,t):t.flags&1||(Ue.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)Ue.push(t[e]);po()}function il(t,e,s=ue+1){for(;s<Vt.length;s++){const n=Vt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Vt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function fo(t){if(Ue.length){const e=[...new Set(Ue)].sort((s,n)=>ds(s)-ds(n));if(Ue.length=0,Te){for(let s=0;s<e.length;s++)Te.push(e[s]);return}for(Te=e,We=0;We<Te.length;We++){const s=Te[We];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Te=null,We=0}}const ds=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ho(t){try{for(ue=0;ue<Vt.length;ue++){const e=Vt[ue];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),gs(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ue<Vt.length;ue++){const e=Vt[ue];e&&(e.flags&=-2)}ue=-1,Vt.length=0,fo(),As=null,(Vt.length||Ue.length)&&ho()}}let te=null,mo=null;function qs(t){const e=te;return te=t,mo=t&&t.type.__scopeId||null,e}function Vi(t,e=te,s){if(!e||t._n)return t;const n=(...l)=>{n._d&&vl(-1);const o=qs(e),c=Ie.length;let r;try{r=t(...l)}finally{for(let u=Ie.length;u>c;u--)Do();qs(o),n._d&&vl(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function xn(t,e){if(te===null)return t;const s=Qs(te),n=t.dirs||(t.dirs=[]);for(let l=0;l<e.length;l++){let[o,c,r,u=Ft]=e[l];o&&(ft(o)&&(o={mounted:o,updated:o}),o.deep&&ye(c),n.push({dir:o,instance:s,value:c,oldValue:void 0,arg:r,modifiers:u}))}return t}function qe(t,e,s,n){const l=t.dirs,o=e&&e.dirs;for(let c=0;c<l.length;c++){const r=l[c];o&&(r.oldValue=o[c].value);let u=r.dir[n];u&&(we(),oe(u,s,8,[t.el,r,t,e]),ke())}}function zi(t,e){if(zt){let s=zt.provides;const n=zt.parent&&zt.parent.provides;n===s&&(s=zt.provides=Object.create(n)),s[t]=e}}function Ts(t,e,s=!1){const n=Ka();if(n||ze){let l=ze?ze._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&t in l)return l[t];if(arguments.length>1)return s&&ft(e)?e.call(n&&n.proxy):e}}const Gi=Symbol.for("v-scx"),Yi=()=>Ts(Gi);function Ve(t,e,s){return _o(t,e,s)}function _o(t,e,s=Ft){const{immediate:n,deep:l,flush:o,once:c}=s,r=It({},s),u=e&&n||!e&&o!=="post";let m;if(hs){if(o==="sync"){const w=Yi();m=w.__watcherHandles||(w.__watcherHandles=[])}else if(!u){const w=()=>{};return w.stop=he,w.resume=he,w.pause=he,w}}const f=zt;r.call=(w,P,B)=>oe(w,f,P,B);let _=!1;o==="post"?r.scheduler=w=>{Gt(w,f&&f.suspense)}:o!=="sync"&&(_=!0,r.scheduler=(w,P)=>{P?w():Bn(w)}),r.augmentJob=w=>{e&&(w.flags|=4),_&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const v=Ni(t,e,r);return hs&&(m?m.push(v):u&&v()),v}function Ji(t,e,s){const n=this.proxy,l=jt(t)?t.includes(".")?vo(n,t):()=>n[t]:t.bind(n,n);let o;ft(e)?o=e:(o=e.handler,s=e);const c=bs(this),r=_o(l,o.bind(n),s);return c(),r}function vo(t,e){const s=e.split(".");return()=>{let n=t;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Xi=Symbol("_vte"),Ys=t=>t.__isTeleport,on=Symbol("_leaveCb");function Zi(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Me){e=s;break}}return e}function go(t){if(!Kn(t))return Ys(t.type)&&t.children?Zi(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&ft(s.default))return s.default()}}function Wn(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const s=t.component.subTree;Wn(Ys(s.type)&&go(s)||s,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Rt(t,e){return ft(t)?It({name:t.name},e,{setup:t}):t}function bo(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function al(t,e){let s;return!!((s=Object.getOwnPropertyDescriptor(t,e))&&!s.configurable)}const js=new WeakMap;function is(t,e,s,n,l=!1){if(pt(t)){t.forEach((B,z)=>is(B,e&&(pt(e)?e[z]:e),s,n,l));return}if(as(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&is(t,e,s,n.component.subTree);return}const o=n.shapeFlag&4?Qs(n.component):n.el,c=l?null:o,{i:r,r:u}=t,m=e&&e.r,f=r.refs===Ft?r.refs={}:r.refs,_=r.setupState,v=wt(_),w=_===Ft?Rl:B=>al(f,B)?!1:kt(v,B),P=(B,z)=>!(z&&al(f,z));if(m!=null&&m!==u){if(rl(e),jt(m))f[m]=null,w(m)&&(_[m]=null);else if(Wt(m)){const B=e;P(m,B.k)&&(m.value=null),B.k&&(f[B.k]=null)}}if(ft(u))gs(u,r,12,[c,f]);else{const B=jt(u),z=Wt(u);if(B||z){const ot=()=>{if(t.f){const q=B?w(u)?_[u]:f[u]:P()||!t.k?u.value:f[t.k];if(l)pt(q)&&An(q,o);else if(pt(q))q.includes(o)||q.push(o);else if(B)f[u]=[o],w(u)&&(_[u]=f[u]);else{const D=[o];P(u,t.k)&&(u.value=D),t.k&&(f[t.k]=D)}}else B?(f[u]=c,w(u)&&(_[u]=c)):z&&(P(u,t.k)&&(u.value=c),t.k&&(f[t.k]=c))};if(c){const q=()=>{ot(),js.delete(t)};q.id=-1,js.set(t,q),Gt(q,s)}else rl(t),ot()}}}function rl(t){const e=js.get(t);e&&(e.flags|=8,js.delete(t))}Us().requestIdleCallback;Us().cancelIdleCallback;const as=t=>!!t.type.__asyncLoader,Kn=t=>t.type.__isKeepAlive;function Qi(t,e){$o(t,"a",e)}function ta(t,e){$o(t,"da",e)}function $o(t,e,s=zt){const n=t.__wdc||(t.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(Js(e,n,s),s){let l=s.parent;for(;l&&l.parent;)Kn(l.parent.vnode)&&ea(n,e,s,l),l=l.parent}}function ea(t,e,s,n){const l=Js(e,t,n,!0);Un(()=>{An(n[e],l)},s)}function Js(t,e,s=zt,n=!1){if(s){const l=s[t]||(s[t]=[]),o=e.__weh||(e.__weh=(...c)=>{we();const r=bs(s),u=oe(e,s,t,c);return r(),ke(),u});return n?l.unshift(o):l.push(o),o}}const Se=t=>(e,s=zt)=>{(!hs||t==="sp")&&Js(t,(...n)=>e(...n),s)},sa=Se("bm"),Ye=Se("m"),na=Se("bu"),la=Se("u"),oa=Se("bum"),Un=Se("um"),ia=Se("sp"),aa=Se("rtg"),ra=Se("rtc");function ca(t,e=zt){Js("ec",t,e)}const ua=Symbol.for("v-ndc");function xt(t,e,s,n){let l;const o=s,c=pt(t);if(c||jt(t)){const r=c&&Fe(t);let u=!1,m=!1;r&&(u=!ee(t),m=_e(t),t=zs(t)),l=new Array(t.length);for(let f=0,_=t.length;f<_;f++)l[f]=e(u?m?Oe(se(t[f])):se(t[f]):t[f],f,void 0,o)}else if(typeof t=="number"){l=new Array(t);for(let r=0;r<t;r++)l[r]=e(r+1,r,void 0,o)}else if(Tt(t))if(t[Symbol.iterator])l=Array.from(t,(r,u)=>e(r,u,void 0,o));else{const r=Object.keys(t);l=new Array(r.length);for(let u=0,m=r.length;u<m;u++){const f=r[u];l[u]=e(t[f],f,u,o)}}else l=[];return l}const wn=t=>t?Bo(t)?Qs(t):wn(t.parent):null,rs=It(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>wn(t.parent),$root:t=>wn(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>xo(t),$forceUpdate:t=>t.f||(t.f=()=>{Bn(t.update)}),$nextTick:t=>t.n||(t.n=Wi.bind(t.proxy)),$watch:t=>Ji.bind(t)}),an=(t,e)=>t!==Ft&&!t.__isScriptSetup&&kt(t,e),da={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:o,accessCache:c,type:r,appContext:u}=t;if(e[0]!=="$"){const v=c[e];if(v!==void 0)switch(v){case 1:return n[e];case 2:return l[e];case 4:return s[e];case 3:return o[e]}else{if(an(n,e))return c[e]=1,n[e];if(l!==Ft&&kt(l,e))return c[e]=2,l[e];if(kt(o,e))return c[e]=3,o[e];if(s!==Ft&&kt(s,e))return c[e]=4,s[e];kn&&(c[e]=0)}}const m=rs[e];let f,_;if(m)return e==="$attrs"&&Bt(t.attrs,"get",""),m(t);if((f=r.__cssModules)&&(f=f[e]))return f;if(s!==Ft&&kt(s,e))return c[e]=4,s[e];if(_=u.config.globalProperties,kt(_,e))return _[e]},set({_:t},e,s){const{data:n,setupState:l,ctx:o}=t;return an(l,e)?(l[e]=s,!0):n!==Ft&&kt(n,e)?(n[e]=s,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:l,props:o,type:c}},r){let u;return!!(s[r]||t!==Ft&&r[0]!=="$"&&kt(t,r)||an(e,r)||kt(o,r)||kt(n,r)||kt(rs,r)||kt(l.config.globalProperties,r)||(u=c.__cssModules)&&u[r])},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:kt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function cl(t){return pt(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let kn=!0;function pa(t){const e=xo(t),s=t.proxy,n=t.ctx;kn=!1,e.beforeCreate&&ul(e.beforeCreate,t,"bc");const{data:l,computed:o,methods:c,watch:r,provide:u,inject:m,created:f,beforeMount:_,mounted:v,beforeUpdate:w,updated:P,activated:B,deactivated:z,beforeDestroy:ot,beforeUnmount:q,destroyed:D,unmounted:S,render:L,renderTracked:mt,renderTriggered:st,errorCaptured:Y,serverPrefetch:dt,expose:Kt,inheritAttrs:C,components:G,directives:J,filters:j}=e;if(m&&fa(m,n,null),c)for(const F in c){const H=c[F];ft(H)&&(n[F]=H.bind(s))}if(l){const F=l.call(s,s);Tt(F)&&(t.data=vs(F))}if(kn=!0,o)for(const F in o){const H=o[F],U=ft(H)?H.bind(s,s):ft(H.get)?H.get.bind(s,s):he,I=!ft(H)&&ft(H.set)?H.set.bind(s):he,V=W({get:U,set:I});Object.defineProperty(n,F,{enumerable:!0,configurable:!0,get:()=>V.value,set:tt=>V.value=tt})}if(r)for(const F in r)yo(r[F],n,s,F);if(u){const F=ft(u)?u.call(s):u;Reflect.ownKeys(F).forEach(H=>{zi(H,F[H])})}f&&ul(f,t,"c");function N(F,H){pt(H)?H.forEach(U=>F(U.bind(s))):H&&F(H.bind(s))}if(N(sa,_),N(Ye,v),N(na,w),N(la,P),N(Qi,B),N(ta,z),N(ca,Y),N(ra,mt),N(aa,st),N(oa,q),N(Un,S),N(ia,dt),pt(Kt))if(Kt.length){const F=t.exposed||(t.exposed={});Kt.forEach(H=>{Object.defineProperty(F,H,{get:()=>s[H],set:U=>s[H]=U,enumerable:!0})})}else t.exposed||(t.exposed={});L&&t.render===he&&(t.render=L),C!=null&&(t.inheritAttrs=C),G&&(t.components=G),J&&(t.directives=J),dt&&bo(t)}function fa(t,e,s=he){pt(t)&&(t=Mn(t));for(const n in t){const l=t[n];let o;Tt(l)?"default"in l?o=Ts(l.from||n,l.default,!0):o=Ts(l.from||n):o=Ts(l),Wt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function ul(t,e,s){oe(pt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function yo(t,e,s,n){let l=n.includes(".")?vo(s,n):()=>s[n];if(jt(t)){const o=e[t];ft(o)&&Ve(l,o)}else if(ft(t))Ve(l,t.bind(s));else if(Tt(t))if(pt(t))t.forEach(o=>yo(o,e,s,n));else{const o=ft(t.handler)?t.handler.bind(s):e[t.handler];ft(o)&&Ve(l,o,t)}}function xo(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:l,optionsCache:o,config:{optionMergeStrategies:c}}=t.appContext,r=o.get(e);let u;return r?u=r:!l.length&&!s&&!n?u=e:(u={},l.length&&l.forEach(m=>Ps(u,m,c,!0)),Ps(u,e,c)),Tt(e)&&o.set(e,u),u}function Ps(t,e,s,n=!1){const{mixins:l,extends:o}=e;o&&Ps(t,o,s,!0),l&&l.forEach(c=>Ps(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const r=ha[c]||s&&s[c];t[c]=r?r(t[c],e[c]):e[c]}return t}const ha={data:dl,props:pl,emits:pl,methods:es,computed:es,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:es,directives:es,watch:_a,provide:dl,inject:ma};function dl(t,e){return e?t?function(){return It(ft(t)?t.call(this,this):t,ft(e)?e.call(this,this):e)}:e:t}function ma(t,e){return es(Mn(t),Mn(e))}function Mn(t){if(pt(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function Ut(t,e){return t?[...new Set([].concat(t,e))]:e}function es(t,e){return t?It(Object.create(null),t,e):e}function pl(t,e){return t?pt(t)&&pt(e)?[...new Set([...t,...e])]:It(Object.create(null),cl(t),cl(e??{})):e}function _a(t,e){if(!t)return e;if(!e)return t;const s=It(Object.create(null),t);for(const n in e)s[n]=Ut(t[n],e[n]);return s}function wo(){return{app:null,config:{isNativeTag:Rl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let va=0;function ga(t,e){return function(n,l=null){ft(n)||(n=It({},n)),l!=null&&!Tt(l)&&(l=null);const o=wo(),c=new WeakSet,r=[];let u=!1;const m=o.app={_uid:va++,_component:n,_props:l,_container:null,_context:o,_instance:null,version:Ja,get config(){return o.config},set config(f){},use(f,..._){return c.has(f)||(f&&ft(f.install)?(c.add(f),f.install(m,..._)):ft(f)&&(c.add(f),f(m,..._))),m},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),m},component(f,_){return _?(o.components[f]=_,m):o.components[f]},directive(f,_){return _?(o.directives[f]=_,m):o.directives[f]},mount(f,_,v){if(!u){const w=m._ceVNode||At(n,l);return w.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),t(w,f,v),u=!0,m._container=f,f.__vue_app__=m,Qs(w.component)}},onUnmount(f){r.push(f)},unmount(){u&&(oe(r,m._instance,16),t(null,m._container),delete m._container.__vue_app__)},provide(f,_){return o.provides[f]=_,m},runWithContext(f){const _=ze;ze=m;try{return f()}finally{ze=_}}};return m}}let ze=null;const ba=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ne(e)}Modifiers`]||t[`${Ne(e)}Modifiers`];function $a(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Ft;let l=s;const o=e.startsWith("update:"),c=o&&ba(n,e.slice(7));c&&(c.trim&&(l=s.map(f=>jt(f)?f.trim():f)),c.number&&(l=l.map(jn)));let r,u=n[r=tn(e)]||n[r=tn(ne(e))];!u&&o&&(u=n[r=tn(Ne(e))]),u&&oe(u,t,6,l);const m=n[r+"Once"];if(m){if(!t.emitted)t.emitted={};else if(t.emitted[r])return;t.emitted[r]=!0,oe(m,t,6,l)}}const ya=new WeakMap;function ko(t,e,s=!1){const n=s?ya:e.emitsCache,l=n.get(t);if(l!==void 0)return l;const o=t.emits;let c={},r=!1;if(!ft(t)){const u=m=>{const f=ko(m,e,!0);f&&(r=!0,It(c,f))};!s&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!r?(Tt(t)&&n.set(t,null),null):(pt(o)?o.forEach(u=>c[u]=null):It(c,o),Tt(t)&&n.set(t,c),c)}function Xs(t,e){return!t||!Bs(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,Ne(e))||kt(t,e))}function fl(t){const{type:e,vnode:s,proxy:n,withProxy:l,propsOptions:[o],slots:c,attrs:r,emit:u,render:m,renderCache:f,props:_,data:v,setupState:w,ctx:P,inheritAttrs:B}=t,z=qs(t);let ot,q;try{if(s.shapeFlag&4){const S=l||n,L=S;ot=pe(m.call(L,S,f,_,w,v,P)),q=r}else{const S=e;ot=pe(S.length>1?S(_,{attrs:r,slots:c,emit:u}):S(_,null)),q=e.props?r:xa(r)}}catch(S){Ie.length=0,Gs(S,t,1),ot=At(Me)}let D=ot;if(q&&B!==!1){const S=Object.keys(q),{shapeFlag:L}=D;S.length&&L&7&&(o&&S.some(Ws)&&(q=wa(q,o)),D=Ge(D,q,!1,!0))}if(s.dirs&&(D=Ge(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition){const S=Ys(D.type)&&go(D)||D;Wn(S,s.transition)}return ot=D,qs(z),ot}const xa=t=>{let e;for(const s in t)(s==="class"||s==="style"||Bs(s))&&((e||(e={}))[s]=t[s]);return e},wa=(t,e)=>{const s={};for(const n in t)(!Ws(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function ka(t,e,s){const{props:n,children:l,component:o}=t,{props:c,children:r,patchFlag:u}=e,m=o.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?hl(n,c,m):!!c;if(u&8){const f=e.dynamicProps;for(let _=0;_<f.length;_++){const v=f[_];if(Mo(c,n,v)&&!Xs(m,v))return!0}}}else return(l||r)&&(!r||!r.$stable)?!0:n===c?!1:n?c?hl(n,c,m):!0:!!c;return!1}function hl(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let l=0;l<n.length;l++){const o=n[l];if(Mo(e,t,o)&&!Xs(s,o))return!0}return!1}function Mo(t,e,s){const n=t[s],l=e[s];return s==="style"&&Tt(n)&&Tt(l)?!Vs(n,l):n!==l}function Ma({vnode:t,parent:e,suspense:s},n){for(;e;){const l=e.subTree;if(l.suspense&&l.suspense.activeBranch===t&&(l.suspense.vnode.el=l.el=n,t=l),l===t)(t=e.vnode).el=n,e=e.parent;else break}s&&s.activeBranch===t&&(s.vnode.el=n)}const So={},To=()=>Object.create(So),Eo=t=>Object.getPrototypeOf(t)===So;function Sa(t,e,s,n=!1){const l={},o=To();t.propsDefaults=Object.create(null),Co(t,e,l,o);for(const c in t.propsOptions[0])c in l||(l[c]=void 0);s?t.props=n?l:qi(l):t.type.props?t.props=l:t.props=o,t.attrs=o}function Ta(t,e,s,n){const{props:l,attrs:o,vnode:{patchFlag:c}}=t,r=wt(l),[u]=t.propsOptions;let m=!1;if((n||c>0)&&!(c&16)){if(c&8){const f=t.vnode.dynamicProps;for(let _=0;_<f.length;_++){let v=f[_];if(Xs(t.emitsOptions,v))continue;const w=e[v];if(u)if(kt(o,v))w!==o[v]&&(o[v]=w,m=!0);else{const P=ne(v);l[P]=Sn(u,r,P,w,t,!1)}else w!==o[v]&&(o[v]=w,m=!0)}}}else{Co(t,e,l,o)&&(m=!0);let f;for(const _ in r)(!e||!kt(e,_)&&((f=Ne(_))===_||!kt(e,f)))&&(u?s&&(s[_]!==void 0||s[f]!==void 0)&&(l[_]=Sn(u,r,_,void 0,t,!0)):delete l[_]);if(o!==r)for(const _ in o)(!e||!kt(e,_))&&(delete o[_],m=!0)}m&&$e(t.attrs,"set","")}function Co(t,e,s,n){const[l,o]=t.propsOptions;let c=!1,r;if(e)for(let u in e){if(ns(u))continue;const m=e[u];let f;l&&kt(l,f=ne(u))?!o||!o.includes(f)?s[f]=m:(r||(r={}))[f]=m:Xs(t.emitsOptions,u)||(!(u in n)||m!==n[u])&&(n[u]=m,c=!0)}if(o){const u=wt(s),m=r||Ft;for(let f=0;f<o.length;f++){const _=o[f];s[_]=Sn(l,u,_,m[_],t,!kt(m,_))}}return c}function Sn(t,e,s,n,l,o){const c=t[s];if(c!=null){const r=kt(c,"default");if(r&&n===void 0){const u=c.default;if(c.type!==Function&&!c.skipFactory&&ft(u)){const{propsDefaults:m}=l;if(s in m)n=m[s];else{const f=bs(l);n=m[s]=u.call(null,e),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}c[0]&&(o&&!r?n=!1:c[1]&&(n===""||n===Ne(s))&&(n=!0))}return n}const Ea=new WeakMap;function Fo(t,e,s=!1){const n=s?Ea:e.propsCache,l=n.get(t);if(l)return l;const o=t.props,c={},r=[];let u=!1;if(!ft(t)){const f=_=>{u=!0;const[v,w]=Fo(_,e,!0);It(c,v),w&&r.push(...w)};!s&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!u)return Tt(t)&&n.set(t,Le),Le;if(pt(o))for(let f=0;f<o.length;f++){const _=ne(o[f]);ml(_)&&(c[_]=Ft)}else if(o)for(const f in o){const _=ne(f);if(ml(_)){const v=o[f],w=c[_]=pt(v)||ft(v)?{type:v}:It({},v),P=w.type;let B=!1,z=!0;if(pt(P))for(let ot=0;ot<P.length;++ot){const q=P[ot],D=ft(q)&&q.name;if(D==="Boolean"){B=!0;break}else D==="String"&&(z=!1)}else B=ft(P)&&P.name==="Boolean";w[0]=B,w[1]=z,(B||kt(w,"default"))&&r.push(_)}}const m=[c,r];return Tt(t)&&n.set(t,m),m}function ml(t){return t[0]!=="$"&&!ns(t)}const Vn=t=>t==="_"||t==="_ctx"||t==="$stable",zn=t=>pt(t)?t.map(pe):[pe(t)],Ca=(t,e,s)=>{if(e._n)return e;const n=Vi((...l)=>zn(e(...l)),s);return n._c=!1,n},Oo=(t,e,s)=>{const n=t._ctx;for(const l in t){if(Vn(l))continue;const o=t[l];if(ft(o))e[l]=Ca(l,o,n);else if(o!=null){const c=zn(o);e[l]=()=>c}}},Ao=(t,e)=>{const s=zn(e);t.slots.default=()=>s},qo=(t,e,s)=>{for(const n in e)(s||!Vn(n))&&(t[n]=e[n])},Fa=(t,e,s)=>{const n=t.slots=To();if(t.vnode.shapeFlag&32){const l=e._;l?(qo(n,e,s),s&&Ul(n,"_",l,!0)):Oo(e,n)}else e&&Ao(t,e)},Oa=(t,e,s)=>{const{vnode:n,slots:l}=t;let o=!0,c=Ft;if(n.shapeFlag&32){const r=e._;r?s&&r===1?o=!1:qo(l,e,s):(o=!e.$stable,Oo(e,l)),c=e}else e&&(Ao(t,e),c={default:1});if(o)for(const r in l)!Vn(r)&&c[r]==null&&delete l[r]},Gt=Ha;function Aa(t){return qa(t)}function qa(t,e){const s=Us();s.__VUE__=!0;const{insert:n,remove:l,patchProp:o,createElement:c,createText:r,createComment:u,setText:m,setElementText:f,parentNode:_,nextSibling:v,setScopeId:w=he,insertStaticContent:P}=t,B=(h,g,b,$=null,M=null,E=null,O=void 0,A=null,x=!!g.dynamicChildren)=>{if(h===g)return;h&&!Ze(h,g)&&($=it(h),tt(h,M,E,!0),h=null),g.patchFlag===-2&&(x=!1,g.dynamicChildren=null),g.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(g.dynamicChildren===Le&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:y,ref:Z,shapeFlag:R}=g;switch(y){case Zs:z(h,g,b,$);break;case Me:ot(h,g,b,$);break;case Es:h==null&&q(g,b,$,O);break;case rt:G(h,g,b,$,M,E,O,A,x);break;default:R&1?L(h,g,b,$,M,E,O,A,x):R&6?J(h,g,b,$,M,E,O,A,x):(R&64||R&128)&&y.process(h,g,b,$,M,E,O,A,x,lt)}Z!=null&&M?is(Z,h&&h.ref,E,g||h,!g):Z==null&&h&&h.ref!=null&&is(h.ref,null,E,h,!0)},z=(h,g,b,$)=>{if(h==null)n(g.el=r(g.children),b,$);else{const M=g.el=h.el;g.children!==h.children&&m(M,g.children)}},ot=(h,g,b,$)=>{h==null?n(g.el=u(g.children||""),b,$):g.el=h.el},q=(h,g,b,$)=>{[h.el,h.anchor]=P(h.children,g,b,$,h.el,h.anchor)},D=({el:h,anchor:g},b,$)=>{let M;for(;h&&h!==g;)M=v(h),n(h,b,$),h=M;n(g,b,$)},S=({el:h,anchor:g})=>{let b;for(;h&&h!==g;)b=v(h),l(h),h=b;l(g)},L=(h,g,b,$,M,E,O,A,x)=>{if(g.type==="svg"?O="svg":g.type==="math"&&(O="mathml"),h==null)mt(g,b,$,M,E,O,A,x);else{const y=h.el&&h.el._isVueCE?h.el:null;try{y&&y._beginPatch(),dt(h,g,M,E,O,A,x)}finally{y&&y._endPatch()}}},mt=(h,g,b,$,M,E,O,A)=>{let x,y;const{props:Z,shapeFlag:R,transition:et,dirs:at}=h;if(x=h.el=c(h.type,E,Z&&Z.is,Z),R&8?f(x,h.children):R&16&&Y(h.children,x,null,$,M,rn(h,E),O,A),at&&qe(h,null,$,"created"),st(x,h,h.scopeId,O,$),Z){for(const Et in Z)Et!=="value"&&!ns(Et)&&o(x,Et,null,Z[Et],E,$);"value"in Z&&o(x,"value",null,Z.value,E),(y=Z.onVnodeBeforeMount)&&ce(y,$,h)}at&&qe(h,null,$,"beforeMount");const $t=ja(M,et);$t&&et.beforeEnter(x),n(x,g,b),((y=Z&&Z.onVnodeMounted)||$t||at)&&Gt(()=>{try{y&&ce(y,$,h),$t&&et.enter(x),at&&qe(h,null,$,"mounted")}finally{}},M)},st=(h,g,b,$,M)=>{if(b&&w(h,b),$)for(let E=0;E<$.length;E++)w(h,$[E]);if(M){let E=M.subTree;if(g===E||Lo(E.type)&&(E.ssContent===g||E.ssFallback===g)){const O=M.vnode;st(h,O,O.scopeId,O.slotScopeIds,M.parent)}}},Y=(h,g,b,$,M,E,O,A,x=0)=>{for(let y=x;y<h.length;y++){const Z=h[y]=A?be(h[y]):pe(h[y]);B(null,Z,g,b,$,M,E,O,A)}},dt=(h,g,b,$,M,E,O)=>{const A=g.el=h.el;let{patchFlag:x,dynamicChildren:y,dirs:Z}=g;x|=h.patchFlag&16;const R=h.props||Ft,et=g.props||Ft;let at;if(b&&je(b,!1),(at=et.onVnodeBeforeUpdate)&&ce(at,b,g,h),Z&&qe(g,h,b,"beforeUpdate"),b&&je(b,!0),y&&(!h.dynamicChildren||h.dynamicChildren.length!==y.length)&&(x=0,O=!1,y=null),(R.innerHTML&&et.innerHTML==null||R.textContent&&et.textContent==null)&&f(A,""),y?Kt(h.dynamicChildren,y,A,b,$,rn(g,M),E):O||H(h,g,A,null,b,$,rn(g,M),E,!1),x>0){if(x&16)C(A,R,et,b,M);else if(x&2&&R.class!==et.class&&o(A,"class",null,et.class,M),x&4&&o(A,"style",R.style,et.style,M),x&8){const $t=g.dynamicProps;for(let Et=0;Et<$t.length;Et++){const St=$t[Et],Pt=R[St],Ht=et[St];(Ht!==Pt||St==="value")&&o(A,St,Pt,Ht,M,b)}}x&1&&h.children!==g.children&&f(A,g.children)}else!O&&y==null&&C(A,R,et,b,M);((at=et.onVnodeUpdated)||Z)&&Gt(()=>{at&&ce(at,b,g,h),Z&&qe(g,h,b,"updated")},$)},Kt=(h,g,b,$,M,E,O)=>{for(let A=0;A<g.length;A++){const x=h[A],y=g[A],Z=x.el&&(x.type===rt||!Ze(x,y)||x.shapeFlag&198)?_(x.el):b;B(x,y,Z,null,$,M,E,O,!0)}},C=(h,g,b,$,M)=>{if(g!==b){if(g!==Ft)for(const E in g)!ns(E)&&!(E in b)&&o(h,E,g[E],null,M,$);for(const E in b){if(ns(E))continue;const O=b[E],A=g[E];O!==A&&E!=="value"&&o(h,E,A,O,M,$)}"value"in b&&o(h,"value",g.value,b.value,M)}},G=(h,g,b,$,M,E,O,A,x)=>{const y=g.el=h?h.el:r(""),Z=g.anchor=h?h.anchor:r("");let{patchFlag:R,dynamicChildren:et,slotScopeIds:at}=g;at&&(A=A?A.concat(at):at),h==null?(n(y,b,$),n(Z,b,$),Y(g.children||[],b,Z,M,E,O,A,x)):R>0&&R&64&&et&&h.dynamicChildren&&h.dynamicChildren.length===et.length?(Kt(h.dynamicChildren,et,b,M,E,O,A),(g.key!=null||M&&g===M.subTree)&&jo(h,g,!0)):H(h,g,b,Z,M,E,O,A,x)},J=(h,g,b,$,M,E,O,A,x)=>{g.slotScopeIds=A,h==null?g.shapeFlag&512?M.ctx.activate(g,b,$,O,x):j(g,b,$,M,E,O,x):K(h,g,x)},j=(h,g,b,$,M,E,O)=>{const A=h.component=Wa(h,$,M);if(Kn(h)&&(A.ctx.renderer=lt),Ua(A,!1,O),A.asyncDep){if(M&&M.registerDep(A,N,O),!h.el){const x=A.subTree=At(Me);ot(null,x,g,b),h.placeholder=x.el}}else N(A,h,g,b,M,E,O)},K=(h,g,b)=>{const $=g.component=h.component;if(ka(h,g,b))if($.asyncDep&&!$.asyncResolved){g.el=h.el,F($,g,b);return}else $.next=g,$.update();else g.el=h.el,$.vnode=g},N=(h,g,b,$,M,E,O)=>{const A=()=>{if(h.isMounted){let{next:R,bu:et,u:at,parent:$t,vnode:Et}=h;{const ae=Po(h);if(ae){R&&(R.el=Et.el,F(h,R,O)),ae.asyncDep.then(()=>{Gt(()=>{h.isUnmounted||y()},M)});return}}let St=R,Pt;je(h,!1),R?(R.el=Et.el,F(h,R,O)):R=Et,et&&Ss(et),(Pt=R.props&&R.props.onVnodeBeforeUpdate)&&ce(Pt,$t,R,Et),je(h,!0);const Ht=fl(h),ie=h.subTree;h.subTree=Ht,B(ie,Ht,_(ie.el),it(ie),h,M,E),R.el=Ht.el,St===null&&Ma(h,Ht.el),at&&Gt(at,M),(Pt=R.props&&R.props.onVnodeUpdated)&&Gt(()=>ce(Pt,$t,R,Et),M)}else{let R;const{el:et,props:at}=g,{bm:$t,m:Et,parent:St,root:Pt,type:Ht}=h,ie=as(g);je(h,!1),$t&&Ss($t),!ie&&(R=at&&at.onVnodeBeforeMount)&&ce(R,St,g),je(h,!0);{Pt.ce&&Pt.ce._hasShadowRoot()&&Pt.ce._injectChildStyle(Ht,h.parent?h.parent.type:void 0);const ae=h.subTree=fl(h);B(null,ae,b,$,h,M,E),g.el=ae.el}if(Et&&Gt(Et,M),!ie&&(R=at&&at.onVnodeMounted)){const ae=g;Gt(()=>ce(R,St,ae),M)}(g.shapeFlag&256||St&&as(St.vnode)&&St.vnode.shapeFlag&256)&&h.a&&Gt(h.a,M),h.isMounted=!0,g=b=$=null}};h.scope.on();const x=h.effect=new Yl(A);h.scope.off();const y=h.update=x.run.bind(x),Z=h.job=x.runIfDirty.bind(x);Z.i=h,Z.id=h.uid,x.scheduler=()=>Bn(Z),je(h,!0),y()},F=(h,g,b)=>{g.component=h;const $=h.vnode.props;h.vnode=g,h.next=null,Ta(h,g.props,$,b),Oa(h,g.children,b),we(),il(h),ke()},H=(h,g,b,$,M,E,O,A,x=!1)=>{const y=h&&h.children,Z=h?h.shapeFlag:0,R=g.children,{patchFlag:et,shapeFlag:at}=g;if(et>0){if(et&128){I(y,R,b,$,M,E,O,A,x);return}else if(et&256){U(y,R,b,$,M,E,O,A,x);return}}at&8?(Z&16&&_t(y,M,E),R!==y&&f(b,R)):Z&16?at&16?I(y,R,b,$,M,E,O,A,x):_t(y,M,E,!0):(Z&8&&f(b,""),at&16&&Y(R,b,$,M,E,O,A,x))},U=(h,g,b,$,M,E,O,A,x)=>{h=h||Le,g=g||Le;const y=h.length,Z=g.length,R=Math.min(y,Z);let et;for(et=0;et<R;et++){const at=g[et]=x?be(g[et]):pe(g[et]);B(h[et],at,b,null,M,E,O,A,x)}y>Z?_t(h,M,E,!0,!1,R):Y(g,b,$,M,E,O,A,x,R)},I=(h,g,b,$,M,E,O,A,x)=>{let y=0;const Z=g.length;let R=h.length-1,et=Z-1;for(;y<=R&&y<=et;){const at=h[y],$t=g[y]=x?be(g[y]):pe(g[y]);if(Ze(at,$t))B(at,$t,b,null,M,E,O,A,x);else break;y++}for(;y<=R&&y<=et;){const at=h[R],$t=g[et]=x?be(g[et]):pe(g[et]);if(Ze(at,$t))B(at,$t,b,null,M,E,O,A,x);else break;R--,et--}if(y>R){if(y<=et){const at=et+1,$t=at<Z?g[at].el:$;for(;y<=et;)B(null,g[y]=x?be(g[y]):pe(g[y]),b,$t,M,E,O,A,x),y++}}else if(y>et)for(;y<=R;)tt(h[y],M,E,!0),y++;else{const at=y,$t=y,Et=new Map;for(y=$t;y<=et;y++){const Xt=g[y]=x?be(g[y]):pe(g[y]);Xt.key!=null&&Et.set(Xt.key,y)}let St,Pt=0;const Ht=et-$t+1;let ie=!1,ae=0;const Je=new Array(Ht);for(y=0;y<Ht;y++)Je[y]=0;for(y=at;y<=R;y++){const Xt=h[y];if(Pt>=Ht){tt(Xt,M,E,!0);continue}let re;if(Xt.key!=null)re=Et.get(Xt.key);else for(St=$t;St<=et;St++)if(Je[St-$t]===0&&Ze(Xt,g[St])){re=St;break}re===void 0?tt(Xt,M,E,!0):(Je[re-$t]=y+1,re>=ae?ae=re:ie=!0,B(Xt,g[re],b,null,M,E,O,A,x),Pt++)}const Xn=ie?Pa(Je):Le;for(St=Xn.length-1,y=Ht-1;y>=0;y--){const Xt=$t+y,re=g[Xt],Zn=g[Xt+1],Qn=Xt+1<Z?Zn.el||Ho(Zn):$;Je[y]===0?B(null,re,b,Qn,M,E,O,A,x):ie&&(St<0||y!==Xn[St]?V(re,b,Qn,2):St--)}}},V=(h,g,b,$,M=null)=>{const{el:E,type:O,transition:A,children:x,shapeFlag:y}=h;if(y&6){V(h.component.subTree,g,b,$);return}if(y&128){h.suspense.move(g,b,$);return}if(y&64){O.move(h,g,b,lt);return}if(O===rt){n(E,g,b);for(let R=0;R<x.length;R++)V(x[R],g,b,$);n(h.anchor,g,b);return}if(O===Es){D(h,g,b);return}if($!==2&&y&1&&A)if($===0)A.persisted&&!E[on]?n(E,g,b):(A.beforeEnter(E),n(E,g,b),Gt(()=>A.enter(E),M));else{const{leave:R,delayLeave:et,afterLeave:at}=A,$t=()=>{h.ctx.isUnmounted?l(E):n(E,g,b)},Et=()=>{const St=E._isLeaving||!!E[on];E._isLeaving&&E[on](!0),A.persisted&&!St?$t():R(E,()=>{$t(),at&&at()})};et?et(E,$t,Et):Et()}else n(E,g,b)},tt=(h,g,b,$=!1,M=!1)=>{const{type:E,props:O,ref:A,children:x,dynamicChildren:y,shapeFlag:Z,patchFlag:R,dirs:et,cacheIndex:at,memo:$t}=h;if((R===-2||y&&y.hasOnce)&&(M=!1),A!=null&&(we(),is(A,null,b,h,!0),ke()),at!=null&&(!h.ctx||h.ctx===g)&&(g.renderCache[at]=void 0),Z&256){g.ctx.deactivate(h);return}const Et=Z&1&&et,St=!as(h);let Pt;if(St&&(Pt=O&&O.onVnodeBeforeUnmount)&&ce(Pt,g,h),Z&6)ct(h.component,b,$);else{if(Z&128){h.suspense.unmount(b,$);return}Et&&qe(h,null,g,"beforeUnmount"),Z&64?h.type.remove(h,g,b,lt,$):y&&!y.hasOnce&&(E!==rt||R>0&&R&64)?_t(y,g,b,!1,!0):(E===rt&&R&384||!M&&Z&16)&&_t(x,g,b),$&&nt(h)}const Ht=$t!=null&&at==null;(St&&(Pt=O&&O.onVnodeUnmounted)||Et||Ht)&&Gt(()=>{Pt&&ce(Pt,g,h),Et&&qe(h,null,g,"unmounted"),Ht&&(h.el=null)},b)},nt=h=>{const{type:g,el:b,anchor:$,transition:M}=h;if(g===rt){X(b,$);return}if(g===Es){S(h),M&&!M.persisted&&M.afterLeave&&M.afterLeave();return}const E=()=>{l(b),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(h.shapeFlag&1&&M&&!M.persisted){const{leave:O,delayLeave:A}=M,x=()=>O(b,E);A?A(h.el,E,x):x()}else E()},X=(h,g)=>{let b;for(;h!==g;)b=v(h),l(h),h=b;l(g)},ct=(h,g,b)=>{const{bum:$,scope:M,job:E,subTree:O,um:A,m:x,a:y}=h;_l(x),_l(y),$&&Ss($),M.stop(),E?(E.flags|=8,tt(O,h,g,b)):h.vnode.el&&O&&(O.transition=h.vnode.transition,tt(O,h,g,b)),A&&Gt(A,g),Gt(()=>{h.isUnmounted=!0},g)},_t=(h,g,b,$=!1,M=!1,E=0)=>{for(let O=E;O<h.length;O++)tt(h[O],g,b,$,M)},it=h=>{if(h.shapeFlag&6)return it(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=v(h.anchor||h.el),b=g&&g[Xi];return b?v(b):g};let bt=!1;const vt=(h,g,b)=>{let $;h==null?g._vnode&&(tt(g._vnode,null,null,!0),$=g._vnode.component):B(g._vnode||null,h,g,null,null,null,b),g._vnode=h,bt||(bt=!0,il($),fo(),bt=!1)},lt={p:B,um:tt,m:V,r:nt,mt:j,mc:Y,pc:H,pbc:Kt,n:it,o:t};return{render:vt,hydrate:void 0,createApp:ga(vt)}}function rn({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function je({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function ja(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function jo(t,e,s=!1){const n=t.children,l=e.children;if(pt(n)&&pt(l))for(let o=0;o<n.length;o++){const c=n[o];let r=l[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=l[o]=be(l[o]),r.el=c.el),!s&&r.patchFlag!==-2&&jo(c,r)),r.type===Zs&&(r.patchFlag===-1&&(r=l[o]=be(r)),r.el=c.el),r.type===Me&&!r.el&&(r.el=c.el)}}function Pa(t){const e=t.slice(),s=[0];let n,l,o,c,r;const u=t.length;for(n=0;n<u;n++){const m=t[n];if(m!==0){if(l=s[s.length-1],t[l]<m){e[n]=l,s.push(n);continue}for(o=0,c=s.length-1;o<c;)r=o+c>>1,t[s[r]]<m?o=r+1:c=r;m<t[s[o]]&&(o>0&&(e[n]=s[o-1]),s[o]=n)}}for(o=s.length,c=s[o-1];o-- >0;)s[o]=c,c=e[c];return s}function Po(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Po(e)}function _l(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Ho(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Ho(e.subTree):null}const Lo=t=>t.__isSuspense;function Ha(t,e){e&&e.pendingBranch?pt(t)?e.effects.push(...t):e.effects.push(t):Ui(t)}const rt=Symbol.for("v-fgt"),Zs=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Es=Symbol.for("v-stc"),Ie=[];let Zt=null;function k(t=!1){Ie.push(Zt=t?null:[])}function Do(){Ie.pop(),Zt=Ie[Ie.length-1]||null}let ps=1;function vl(t,e=!1){ps+=t,t<0&&Zt&&e&&(Zt.hasOnce=!0)}function Io(t){return t.dynamicChildren=ps>0?Zt||Le:null,Do(),ps>0&&Zt&&Zt.push(t),t}function T(t,e,s,n,l,o){return Io(a(t,e,s,n,l,o,!0))}function Nt(t,e,s,n,l){return Io(At(t,e,s,n,l,!0))}function Ro(t){return t?t.__v_isVNode===!0:!1}function Ze(t,e){return t.type===e.type&&t.key===e.key}const No=({key:t})=>t??null,Cs=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?jt(t)||Wt(t)||ft(t)?{i:te,r:t,k:e,f:!!s}:t:null);function a(t,e=null,s=null,n=0,l=null,o=t===rt?0:1,c=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&No(e),ref:e&&Cs(e),scopeId:mo,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:te};return r?(Hs(u,s),o&128&&t.normalize(u)):s&&(u.shapeFlag|=jt(s)?8:16),ps>0&&!c&&Zt&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Zt.push(u),u}const At=La;function La(t,e=null,s=null,n=0,l=null,o=!1){if((!t||t===ua)&&(t=Me),Ro(t)){const r=Ge(t,e,!0);return s&&Hs(r,s),ps>0&&!o&&Zt&&(r.shapeFlag&6?Zt[Zt.indexOf(t)]=r:Zt.push(r)),r.patchFlag=-2,r}if(Ya(t)&&(t=t.__vccOpts),e){e=Da(e);let{class:r,style:u}=e;r&&!jt(r)&&(e.class=Qt(r)),Tt(u)&&(Nn(u)&&!pt(u)&&(u=It({},u)),e.style=Dt(u))}const c=jt(t)?1:Lo(t)?128:Ys(t)?64:Tt(t)?4:ft(t)?2:0;return a(t,e,s,n,l,c,o,!0)}function Da(t){return t?Nn(t)||Eo(t)?It({},t):t:null}function Ge(t,e,s=!1,n=!1){const{props:l,ref:o,patchFlag:c,children:r,transition:u}=t,m=e?Ra(l||{},e):l,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&No(m),ref:e&&e.ref?s&&o?pt(o)?o.concat(Cs(e)):[o,Cs(e)]:Cs(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:r,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==rt?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ge(t.ssContent),ssFallback:t.ssFallback&&Ge(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&n&&Wn(f,u.clone(f)),f}function ut(t=" ",e=0){return At(Zs,null,t,e)}function Ia(t,e){const s=At(Es,null,t);return s.staticCount=e,s}function gt(t="",e=!1){return e?(k(),Nt(Me,null,t)):At(Me,null,t)}function pe(t){return t==null||typeof t=="boolean"?At(Me):pt(t)?At(rt,null,t.slice()):Ro(t)?be(t):At(Zs,null,String(t))}function be(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ge(t)}function Hs(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(pt(e))s=16;else if(typeof e=="object")if(n&65){const l=e.default;l&&(l._c&&(l._d=!1),Hs(t,l()),l._c&&(l._d=!0));return}else{s=32;const l=e._;!l&&!Eo(e)?e._ctx=te:l===3&&te&&(te.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(ft(e)){if(n&65){Hs(t,{default:e});return}e={default:e,_ctx:te},s=32}else e=String(e),n&64?(s=16,e=[ut(e)]):s=8;t.children=e,t.shapeFlag|=s}function Ra(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const l in n)if(l==="class")e.class!==n.class&&(e.class=Qt([e.class,n.class]));else if(l==="style")e.style=Dt([e.style,n.style]);else if(Bs(l)){const o=e[l],c=n[l];c&&o!==c&&!(pt(o)&&o.includes(c))?e[l]=o?[].concat(o,c):c:c==null&&o==null&&!Ws(l)&&(e[l]=c)}else l!==""&&(e[l]=n[l])}return e}function ce(t,e,s,n=null){oe(t,e,7,[s,n])}const Na=wo();let Ba=0;function Wa(t,e,s){const n=t.type,l=(e?e.appContext:t.appContext)||Na,o={uid:Ba++,vnode:t,type:n,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new hi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(l.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fo(n,l),emitsOptions:ko(n,l),emit:null,emitted:null,propsDefaults:Ft,inheritAttrs:n.inheritAttrs,ctx:Ft,data:Ft,props:Ft,attrs:Ft,slots:Ft,refs:Ft,setupState:Ft,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=$a.bind(null,o),t.ce&&t.ce(o),o}let zt=null;const Ka=()=>zt||te;let Ls,fs;{const t=Us(),e=(s,n)=>{let l;return(l=t[s])||(l=t[s]=[]),l.push(n),o=>{l.length>1?l.forEach(c=>c(o)):l[0](o)}};Ls=e("__VUE_INSTANCE_SETTERS__",s=>zt=s),fs=e("__VUE_SSR_SETTERS__",s=>hs=s)}const bs=t=>{const e=zt;return Ls(t),t.scope.on(),()=>{t.scope.off(),Ls(e)}},gl=()=>{zt&&zt.scope.off(),Ls(null)};function Bo(t){return t.vnode.shapeFlag&4}let hs=!1;function Ua(t,e=!1,s=!1){e&&fs(e);const{props:n,children:l}=t.vnode,o=Bo(t);Sa(t,n,o,e),Fa(t,l,s||e);const c=o?Va(t,e):void 0;return e&&fs(!1),c}function Va(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,da);const{setup:n}=s;if(n){we();const l=t.setupContext=n.length>1?Ga(t):null,o=bs(t),c=gs(n,t,0,[t.props,l]),r=Nl(c);if(ke(),o(),(r||t.sp)&&!as(t)&&bo(t),r){if(c.then(gl,gl),e)return c.then(u=>{fs(!0);try{bl(t,u,e)}finally{fs(!1)}}).catch(u=>{Gs(u,t,0)});t.asyncDep=c}else bl(t,c)}else Wo(t)}function bl(t,e,s){ft(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Tt(e)&&(t.setupState=co(e)),Wo(t)}function Wo(t,e,s){const n=t.type;t.render||(t.render=n.render||he);{const l=bs(t);we();try{pa(t)}finally{ke(),l()}}}const za={get(t,e){return Bt(t,"get",""),t[e]}};function Ga(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,za),slots:t.slots,emit:t.emit,expose:e}}function Qs(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(co(ji(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in rs)return rs[s](t)},has(e,s){return s in e||s in rs}})):t.proxy}function Ya(t){return ft(t)&&"__vccOpts"in t}const W=(t,e)=>Ii(t,e,hs),Ja="3.5.43";/**
- * @vue/runtime-dom v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Tn;const $l=typeof window<"u"&&window.trustedTypes;if($l)try{Tn=$l.createPolicy("vue",{createHTML:t=>t})}catch{}const Ko=Tn?t=>Tn.createHTML(t):t=>t,Xa="http://www.w3.org/2000/svg",Za="http://www.w3.org/1998/Math/MathML",ge=typeof document<"u"?document:null,yl=ge&&ge.createElement("template"),Qa={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const l=e==="svg"?ge.createElementNS(Xa,t):e==="mathml"?ge.createElementNS(Za,t):s?ge.createElement(t,{is:s}):ge.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>ge.createTextNode(t),createComment:t=>ge.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ge.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,l,o){const c=s?s.previousSibling:e.lastChild;if(l&&(l===o||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),s),!(l===o||!(l=l.nextSibling)););else{yl.innerHTML=Ko(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const r=yl.content;if(n==="svg"||n==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}e.insertBefore(r,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},tr=Symbol("_vtc");function er(t,e,s){const n=t[tr];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Ds=Symbol("_vod"),Uo=Symbol("_vsh"),sr={name:"show",beforeMount(t,{value:e},{transition:s}){t[Ds]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Qe(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:n}){!e!=!s&&(n?e?(n.beforeEnter(t),Qe(t,!0),n.enter(t)):n.leave(t,()=>{Qe(t,!1)}):Qe(t,e))},beforeUnmount(t,{value:e}){Qe(t,e)}};function Qe(t,e){t.style.display=e?t[Ds]:"none",t[Uo]=!e}const nr=Symbol(""),lr=/(?:^|;)\s*display\s*:/;function or(t,e,s){const n=t.style,l=jt(s);let o=!1;if(s&&!l){if(e)if(jt(e))for(const c of e.split(";")){const r=c.slice(0,c.indexOf(":")).trim();s[r]==null&&ss(n,r,"")}else for(const c in e)s[c]==null&&ss(n,c,"");for(const c in s){c==="display"&&(o=!0);const r=s[c];r!=null?ar(t,c,!jt(e)&&e?e[c]:void 0,r)||ss(n,c,r):ss(n,c,"")}}else if(l){if(e!==s){const c=n[nr];c&&(s+=";"+c),n.cssText=s,o=lr.test(s)}}else e&&t.removeAttribute("style");Ds in t&&(t[Ds]=o?n.display:"",t[Uo]&&(n.display="none"))}const ws=/\s*!important$/;function ss(t,e,s){if(pt(s))s.forEach(n=>ss(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))ws.test(s)?t.setProperty(e,s.replace(ws,""),"important"):t.setProperty(e,s);else{const n=ir(t,e);ws.test(s)?t.setProperty(Ne(n),s.replace(ws,""),"important"):t[n]=s}}const xl=["Webkit","Moz","ms"],cn={};function ir(t,e){const s=cn[e];if(s)return s;let n=ne(e);if(n!=="filter"&&n in t)return cn[e]=n;n=Kl(n);for(let l=0;l<xl.length;l++){const o=xl[l]+n;if(o in t)return cn[e]=o}return e}function ar(t,e,s,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&jt(n)&&s===n}const wl="http://www.w3.org/1999/xlink";function kl(t,e,s,n,l,o=di(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(wl,e.slice(6,e.length)):t.setAttributeNS(wl,e,s):s==null||o&&!Vl(s)?t.removeAttribute(e):t.setAttribute(e,o?"":me(s)?String(s):s)}function Ml(t,e,s,n,l){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Ko(s):s);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?t.getAttribute("value")||"":t.value,u=s==null?t.type==="checkbox"?"on":"":String(s);(r!==u||!("_value"in t))&&(t.value=u),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const r=typeof t[e];r==="boolean"?s=Vl(s):s==null&&r==="string"?(s="",c=!0):r==="number"&&(s=0,c=!0)}try{t[e]=s}catch{}c&&t.removeAttribute(l||e)}function Ke(t,e,s,n){t.addEventListener(e,s,n)}function rr(t,e,s,n){t.removeEventListener(e,s,n)}const Sl=Symbol("_vei");function cr(t,e,s,n,l=null){const o=t[Sl]||(t[Sl]={}),c=o[e];if(n&&c)c.value=n;else{const[r,u]=pr(e);if(n){const m=o[e]=mr(n,l);Ke(t,r,m,u)}else c&&(rr(t,r,c,u),o[e]=void 0)}}const ur=/(Once|Passive|Capture)$/,dr=/^on:?(?:Once|Passive|Capture)$/;function pr(t){let e,s;for(;(s=t.match(ur))&&!dr.test(t);)e||(e={}),t=t.slice(0,t.length-s[1].length),e[s[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):Ne(t.slice(2)),e]}let un=0;const fr=Promise.resolve(),hr=()=>un||(fr.then(()=>un=0),un=Date.now());function mr(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(pt(l)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const c=l.slice(),r=[n];for(let u=0;u<c.length&&!n._stopped;u++){const m=c[u];m&&oe(m,e,5,r)}}else oe(l,e,5,[n])};return s.value=t,s.attached=hr(),s}const Tl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,_r=(t,e,s,n,l,o)=>{const c=l==="svg";e==="class"?er(t,n,c):e==="style"?or(t,s,n):Bs(e)?Ws(e)||cr(t,e,s,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vr(t,e,n,c))?(Ml(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&kl(t,e,n,c,o,e!=="value")):t._isVueCE&&(gr(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!jt(n)))?Ml(t,ne(e),n,o,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),kl(t,e,n,c))};function vr(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Tl(e)&&ft(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const l=t.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return Tl(e)&&jt(s)?!1:e in t}function gr(t,e){const s=t._def.props;if(!s)return!1;const n=ne(e);return Array.isArray(s)?s.some(l=>ne(l)===n):Object.keys(s).some(l=>ne(l)===n)}const El=t=>{const e=t.props["onUpdate:modelValue"]||!1;return pt(e)?s=>Ss(e,s):e};function br(t){t.target.composing=!0}function Cl(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ks=Symbol("_assign"),Ms=Symbol("_initialValue");function dn(t,e,s){return e&&(t=t.trim()),s&&(t=jn(t)),t}const Fl={created(t,{modifiers:{lazy:e,trim:s,number:n}},l){t.parentNode&&(t.type==="text"?t[Ms]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[Ms]=t.defaultValue.replace(/\r\n?/g,`
- `))),t[ks]=El(l);const o=n||l.props&&l.props.type==="number";Ke(t,e?"change":"input",c=>{c.target.composing||t[ks](dn(t.value,s,o))}),(s||o)&&Ke(t,"change",()=>{t.value=dn(t.value,s,o)}),e||(Ke(t,"compositionstart",br),Ke(t,"compositionend",Cl),Ke(t,"change",Cl))},mounted(t,{value:e,modifiers:{trim:s,number:n}}){const l=e??"",o=t[Ms];delete t[Ms],o!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==o?t[ks](dn(t.value,s,n)):t.value=l},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:l,number:o}},c){if(t[ks]=El(c),t.composing)return;const r=(o||t.type==="number")&&!/^0\d/.test(t.value)?jn(t.value):t.value,u=e??"";if(r===u)return;const m=t.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===t&&t.type!=="range"&&(n&&e===s||l&&t.value.trim()===u)||(t.value=u)}},$r=["ctrl","shift","alt","meta"],yr={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>$r.some(s=>t[`${s}Key`]&&!e.includes(s))},xr=(t,e)=>{if(!t)return t;const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=((l,...o)=>{for(let c=0;c<e.length;c++){const r=yr[e[c]];if(r&&r(l,e))return}return t(l,...o)}))},wr=It({patchProp:_r},Qa);let Ol;function kr(){return Ol||(Ol=Aa(wr))}const Mr=((...t)=>{const e=kr().createApp(...t),{mount:s}=e;return e.mount=n=>{const l=Tr(n);if(!l)return;const o=e._component;!ft(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const c=s(l,!1,Sr(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),c},e});function Sr(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Tr(t){return jt(t)?document.querySelector(t):t}const Vo={fleet:"/api/fleet",curves:"/api/curves",channels:"/api/channels",facts:"/api/facts",maintSurvey:"/api/maint_survey",maintStd:"/api/maint_std",maintFramework:"/api/maint_framework",dqFindings:"/api/dq_findings",ontList:"/api/ont_list",askStatus:"/api/ask_status",askModels:"/api/ask_models",vibcms:"/api/vibcms",algoHealth:"/algorithm/healthz",algoEndpoints:"/algorithm/api/endpoints",algoMatrix:"/algorithm/api/matrix",algoReliability:"/algorithm/api/reliability",algoPurity:"/algorithm/api/curves_check"};async function zo(t,e){const s=Vo[t],n=performance.now();try{const l=await fetch(s,{headers:{Accept:"application/json",...e?.body?{"Content-Type":"application/json"}:{}},...e}),o=await l.text();let c=o;try{c=JSON.parse(o)}catch{}return{name:t,path:s,ok:l.ok,status:l.status,ms:Math.round(performance.now()-n),data:c}}catch(l){return{name:t,path:s,ok:!1,status:0,ms:Math.round(performance.now()-n),error:l instanceof Error?l.message:String(l)}}}const pn=["facts","maintSurvey","ontList","askStatus","channels","dqFindings","algoHealth","algoEndpoints","algoMatrix","algoReliability","algoPurity"],Er={class:"card"},Cr={class:"hint"},Fr=["disabled"],Or={class:"hint"},Ar=Rt({__name:"ContractSmoke",setup(t){const e=Mt([]),s=Mt(!1),n=Mt(0);function l(c){return Array.isArray(c)?`list[${c.length}]`:c&&typeof c=="object"?Object.keys(c).slice(0,8).join(", "):typeof c}async function o(){s.value=!0,e.value=[],n.value=0;for(const c of pn){const r=await zo(c);e.value.push({name:c,path:r.path,ok:r.ok,status:r.status,ms:r.ms,keys:l(r.data),error:r.error}),n.value+=1}s.value=!1}return Ye(o),(c,r)=>(k(),T("section",Er,[r[3]||(r[3]=a("h2",null,[ut("契约自检 "),a("small",null,"(后端结构与算法服务可达性;对拍基准见 docs/接口契约_前后端_v0.1.md)")],-1)),a("p",Cr,[ut(" 进度 "+p(n.value)+"/"+p(d(pn).length)+' · 只判"通不通",不比数据值(值随数据变,锚点在 Python 侧的门禁里) ',1),a("button",{class:"re",disabled:s.value,onClick:o},"重跑",8,Fr)]),a("table",null,[r[0]||(r[0]=a("thead",null,[a("tr",null,[a("th",null,"接口"),a("th",null,"路径"),a("th",null,"状态"),a("th",null,"耗时"),a("th",null,"顶层键 / 形状")])],-1)),a("tbody",null,[(k(!0),T(rt,null,xt(e.value,u=>(k(),T("tr",{key:u.name,class:Qt({bad:!u.ok})},[a("td",null,p(u.name),1),a("td",null,[a("code",null,p(u.path),1)]),a("td",null,p(u.status),1),a("td",null,p(u.ms)+" ms",1),a("td",null,p(u.error||u.keys),1)],2))),128))])]),a("p",Or,[ut(" 契约登记接口合计 "+p(Object.keys(d(Vo)).length)+" 条(本页抽样 "+p(d(pn).length)+" 条); 全量 42 条由 ",1),r[1]||(r[1]=a("code",null,"python scripts/http_contract_audit.py",-1)),r[2]||(r[2]=ut(" 在线复核。 ",-1))])]))}}),qr={"app.brand":"观澜","app.build":"最新完成构建","app.lang_en":"英文","app.lang_zh":"中文","app.subtitle":"海上风电场","app.title":"观澜 · 风电数据分析与决策支持","ask.common_q":"{cat} · 常用问题 (点即问, 或下方自由输入)","ask.done_meta":"模型 {m} · 用时 {s} 秒 · {n} 步","ask.elapsed":"{s} 秒","ask.empty":"问题为空","ask.en_qa_failed":"英文质检未通过: 已拦截这次模型回答, 请重新提问。","ask.error":"出错: {e}","ask.go":"提问","ask.grounding":"答案句句带 [对象id] 溯源 + 数据回抓校验核验; 判级只转述本体原文带审级, 模型零判级权。","ask.idle":"空闲 — 点常用问题或输入后提问。串行一次一问。","ask.local_down":"本机模型未启动 (Ollama 127.0.0.1:11434 未响应); 离线版不转云","ask.model":"模型","ask.no_models":"无可用模型","ask.offline":"离线版: 模型问答需连接系统。","ask.partial":"初答 · 27B 复核中","ask.placeholder":"自由提问 ({cat})","ask.question":"问题: {q}","ask.refined":"已复核 (默认档 {m} 未过成文校验, 由更强模型重答)","ask.refs.none":"无匹配契约条目 (契约 {sha}): 本回答未被结构化事实契约背书, 按模型输出对待","ask.refs.title":"契约引用 ({n} 条, 契约 {sha}) — 按问题/回答匹配的可交付结论, 引文来自 qa_refs","ask.review":"交叉审核 · {m}","ask.review_err":"审核未完成: {e}","ask.review_note":"由另一模型基于同一份证据复核上述答案。溯源核验仅校验数字与机组号是否越界, 本项校验结论是否有证据支撑。","ask.running":"推理中…","ask.verify_bad":"溯源核验未全过 (引用 {n})","ask.verify_ok":"溯源核验 {n}/{n} 全真","ask.xrev":"交叉审核","ask.xrev_note":"(DeepSeek 14B 互审, +约 1 分钟)","ask.xrev_title":"由另一模型基于同一份证据复核; 同一模型自审无法构成独立校验","asst.alarm_type":"告警类型 {t}","asst.cause_counts":"手册 {r} 次 · 工单 {w} 次 · 涉码 {c}","asst.causes":"← 可能原因 (手册排查方向 + 工单实证)","asst.check":"查什么","asst.code_placeholder":"报警码, 如 3225 / 3130 / 13902","asst.common":"常见","asst.corrective":"抢修","asst.corrective_flow":"报警码 → 失效模式 → 手册分步处置 → 历史工单","asst.drawings":"对应图纸","asst.failmodes":"指向的失效模式","asst.faulttree":"故障树","asst.faulttree_flow":"按证据量排序的系统失效模式 + 部件级成因","asst.fm_counts":"该类本场报警 {a} 条 / 工单 {w} 条","asst.head":"检修助手 — 确定性本体查询","asst.head_note":"结果逐字取自手册与工单, 不经模型","asst.identity":"系统 {sys} · 本场 {n} 条","asst.interval":"周期 {i}","asst.known_tags":"该系统手册出现过的位号 (对图纸时参考):","asst.no_causes":"(手册无该类排查条目 — 原因层待补)","asst.no_name":"(码表未收录)","asst.no_steps":"本码无手册处置条目 (手册覆盖本场 161/322 码) — 需查图纸或联系厂商支持。","asst.node":"节点","asst.nodes":"应检节点 · {c}","asst.nodes_note":"手册此步未给位号 → 按回路构成展开, 逐点查","asst.prev_empty":"(该系统无匹配的年度维护条目 — 维护作业指导书按位置代号编排, 未必逐系统对齐)","asst.prev_fm":"失效模式 (按本场报警量)","asst.prev_head":"{sys} 预防链 · 失效模式 {f} 类 · 预防性任务 {n} 项","asst.prev_tasks":"年度任务","asst.preventive":"预防性维护","asst.preventive_flow":"系统 → 失效模式 → 年度任务 → 作业指导步骤","asst.qty":"量: {q}","asst.query_failed":"查询失败: {e}","asst.querying":"查询中…","asst.spec_name":"名称","asst.spec_no":"参数号","asst.spec_range":"允许范围","asst.spec_val":"整定值","asst.specs":"判定规范 (实机参数表)","asst.step_n":"第 {n} 步","asst.steps":"现场处置 {n} 步","asst.steps_note":"节点部件 = 手册原文元件位号 (确定); 判定规范 = 实机参数表按物理量匹配的候选判据, 非厂商绑定 — 现场以铭牌与图纸复核。","asst.tags":"节点部件","asst.tree_codes":"征兆码 {c}","asst.tree_counts":"本场报警 {a} 条 · 工单 {w} 条","asst.tree_empty":"该系统无失效模式记录","asst.tree_head":"{sys} 故障树 · {n} 个失效模式","asst.tree_note":"一层 = 系统 × 失效类 (归纳自本场码表与工单) · 二层 = 手册排查方向归一 + 工单原因计数; 条长按实证量 (报警条数 + 工单 × 10), 因果来自手册与工单原文非推断, 树深两层不外推。","asst.unassigned":"未归属","asst.wi_steps":"WI {n} 步","asst.wo_action":"处置","asst.wo_fault":"故障","asst.wo_head":"现场实际怎么修的 ({sys} 历史工单 {n} 条, 台账 2020~2024)","asst.wo_note":'工单时间窗止 2024-11-21; 2025–26 现场未提供 ⇒ "0 条" 是记录缺失非未修过。',"attr.变桨与液压":"变桨与液压","attr.塔架/结构":"塔架/结构","attr.无记录停机":"无记录停机","attr.未归类":"未归类","attr.电网/供电(外部)":"电网/供电(外部)","attr.轮毂/叶片":"轮毂/叶片","attr.运维操作":"运维操作","attr.风况(外部)":"风况(外部)","cat.equip":"设备类","cat.equip.hint":"设备状态 / 机制 / 判级 — 从机组档案、对象查询与机制检索取证","cat.equip.q1":"29号机组现在什么状态、为什么、该怎么办?","cat.equip.q2":"全场哪些机组有报警级或定论级判级?逐台列出并注明审级","cat.equip.q3":"失效机制库里有哪些机制族?各涉及哪些机组、状态如何?","cat.loss":"损失分析","cat.loss.hint":"当前 3 个月损失 / 未来损失 — ont_loss / ont_scenario 取证, 金额带电价区间统计方法","cat.loss.q1":"近3个月全场损失结构如何?分状态和分机组说, 电量与金额都给","cat.loss.q2":"29号如果拖到主轴承失效, 未来损失量级是多少?与现在修对比","cat.loss.q3":"限电常态化对检修机会成本有什么影响?","cat.risk":"安全风险预测","cat.risk.hint":"风险敞口 / 劣化趋势 / 盲区 — ont_risk / ont_mechanism_search 取证, 未列 ≠ 正常","cat.risk.q1":"当前哪些机组风险在上升需要重点盯?联动监视读数如何?","cat.risk.q2":'监测有哪些盲区?哪些"没报警"不等于正常?',"cat.risk.q3":"29号轴承正在承受金属接触, 风险敞口怎么评估?","cat.sched":"检修排程决策","cat.sched.hint":"排期沙盘 / 天气窗 / 验收树 — ont_scenario / ont_get 取证","cat.sched.q1":"29号修泵什么时候做最合适?对比各情景的损失与风险","cat.sched.q2":"未来几个月哪些月份适合安排CTV检修和吊装作业?依据历史可作业窗","cat.sched.q3":"29号修好之后按什么判据验收?三分支分别是什么条件?","ch.attrib.none":"无记录 {h}h ({p}%)","ch.attrib.ok":"已归因到部件 {h}h ({p}%)","ch.attrib.uncls":"未归类 {h}h","ch.beta.median":"全场中位 {v}°","ch.blame.d1":"限电与调度令, 不进设备责任","ch.blame.d2":"故障与检修停机, 唯一进设备考核","ch.blame.d3":"正常发电欠发与低风待机","ch.blame.n1":"交易与调度侧","ch.blame.n2":"设备侧","ch.blame.n3":"运行侧","ch.blame.title":"损失 {tot} MWh 按责任归属","ch.cap.legend":"圆内数字 = 台数, 圆面积 ∝ 台数","ch.cap.median":"中位 {v}","ch.cap.p":"满发封顶","ch.cap.w":"转速封顶","ch.ml.legend":"— {s}","ch.pareto.cum80":"累计 80%","ch.pareto.cumtip":"{k} · 累计 {p}%","ch.pareto.key":"关键少数: 前 {k} 项占 80%","ch.pareto.none":"时间窗内无数据","ch.pareto.top3":"前三: ","ch.pareto.total":"共 {n} 项, 合计 {tot}{unit}","ch.pareto.xlab":"报警码 (悬停看全名)","ch.quad.few":"时间窗内码数不足, 不作四象限","ch.quad.q1":"低频长时 · 硬故障","ch.quad.q1s":"备件与检修窗","ch.quad.q2":"高频长时 · 重点治理","ch.quad.q2s":"优先派工","ch.quad.q3":"低频短时 · 本底","ch.quad.q3s":"不单独处置","ch.quad.q4":"高频短时 · 重复触发","ch.quad.q4s":"调整参数或屏蔽, 非硬件故障","ch.quad.tip":"{n} 条 · 单次中位 {med}s · 累计 {h}h · {nt} 台","ch.quad.xlab":"发生条数 (对数)","ch.quad.ylab":"单次中位时长 (对数)","ch.ram.area":"圆面积 = 累计停机时长","ch.ram.equip":"设备类","ch.ram.ext":"外部类","ch.ram.few":"部件数不足, 不作象限","ch.ram.median":"虚线 = 本场中位分界","ch.ram.q1":"常坏且难修","ch.ram.q1s":"最高优先级","ch.ram.q2":"罕发难修","ch.ram.q2s":"备件与作业窗","ch.ram.q3":"频发易修","ch.ram.q3s":"查根因, 换件无用","ch.ram.q4":"少发好修","ch.ram.q4s":"维持","ch.ram.tip":"{p}: 平均无故障间隔(MTBF){mtbf}h · 单次停机时长(MDT){mdt}h · 停机 {h}h · {n}起 · {u}台","ch.ram.tip_ext":" · 外部类不计设备可靠性","ch.ram.xlab":"平均无故障间隔(MTBF,h,对数)→ 越右越可靠","ch.ram.ylab":"单次停机时长(MDT,h)→ 越上越难修","ch.rate.days":"仅{d}天","ch.rate.month":"{m}月","ch.rate.n":"{n}条","ch.rate.tip":"{m}: {v} 条/日 (总 {n} 条, 数据覆盖 {cov}%)","ch.rate.ylab":"条/日","ch.ruler.norm":"正态期望 3.7σ","ch.ruler.row":"{r}σ σ = {s}","ch.wf.act":"实际上网","ch.wf.theo":"理论可发","ch.wf.tip":"{nm}: 损失 {loss} MWh, 占理论 {pct}%, 时长 {h}h","chain.gb":"齿轮箱","chain.gde":"发电机DE","chain.gen":"发电机","chain.gnde":"发电机NDE","chain.hss":"高速","chain.ims":"中间","chain.mba":"主轴承后","chain.mbf":"主轴承前","chain.ps":"行星","cmp.alarm_n":"报警 {a}","cmp.alarm_units":"报警机组","cmp.basis":"依据","cmp.by_system":"按系统查看","cmp.cards_note":"点系统卡 → 该系统全场机组与依据; 九系统 = 交付九分册一一对应; 叶片与叶根 / 塔架与基础无 SCADA 轴 (分册蓝本取 CMS / 巡检)","cmp.counts":"报警 {a} · 不可判 {u} · 良好 {g} · 优秀 {e}","cmp.cross_eyebrow":"多系统交叉机组","cmp.detail":"详情","cmp.detail_head":"{sys} · 全场 {n} 台","cmp.external":"外部","cmp.fleet_n":" · 全场 {n} 台","cmp.fusion_moved":"振动线结论与四源融合已移至独立板块 →","cmp.fusion_n":"({n} 台次收录)","cmp.good_units":"良好 {n} 台 (轻微偏离, 周期观察 — 点开看逐台依据)","cmp.grading_pending":"正在按所选时间窗重算判级…","cmp.grading_pending_why":"时间窗 {span}:变桨/偏航/蓄能/温度四个判级面正按该时间窗重算(首次约 25 秒),下面的系统卡暂时还是上一份统计方法 —— 算完会自动刷新,不会静默混用。","cmp.hit_sys":"命中系统","cmp.n_sys":"系统数","cmp.n_units":"({n} 台)","cmp.none":"本系统全场无非常态。","cmp.problem_page":"该问题页 →","cmp.rel_ev":"事件","cmp.rel_eyebrow":"部件可靠性 · 时间窗 {win}","cmp.rel_fm":"典型失效模式 (按时长)","cmp.rel_h":"停机时长","cmp.rel_head":"部件停机贡献与可靠性","cmp.rel_mdt":"单次停机时长(MDT,h)","cmp.rel_meta":"总停机 {t}h = 设备类 {a} + 外部类 {b}","cmp.rel_mtbo":"平均停机间隔(MTBO,h)","cmp.rel_note":'统计方法 ≥1h 停机段, 不含调度令 — 与"电量算账"里的停机时长{h} 不同, 差额是短于 1h 的停机段 (本页按段做可靠性指标须成段, 能量账按逐条工况态算电量): 两个数都对, 不可互相相减。',"cmp.rel_part":"部件","cmp.rel_units":"影响机组","cmp.unk_n":" · 不可判 {u}","cmp.unk_units":"不可判 (监测/数据不足, ≠ 正常)","cmp.watch_head":"关注机组 (≥2 系统交叉, {n} 台; 点机组号 → 该台独立页)","dec.classic":"维护标准 / 维护框架 / 数据质量三块尚未迁入新版 —","dec.head":"检修决策 · 本体问答 (推理无界, 结论须过校验)","en.balance":"电量平衡","en.blame":"损失责任分账","en.blame_note":'最大一笔是限电不是故障。进设备考核的只有"故障与检修停机" {n} MWh; 限电属交易与调度侧, 2026 起交易策略主导, 少发未必是弃风。',"en.cap_fail":"不通过","en.cap_note":"能量守恒核 · 理论 {op} 全额定上限 {cap}","en.cap_pass":"通过","en.kpi_act":"实际上网 · 等效满发 {h} h","en.kpi_loss":"损失率 · {v} MWh","en.kpi_theo":"理论可发 (实际+损失)","en.loss_mwh":"损失 MWh","en.share":"时长占比","en.state":"工况态","en.states":"工况态明细","en.states_note":"控制参数一致性与曲线欠发筛查在固定干净窗判, 已迁入「发电性能」页 — 本页只出当期电量账。","en.win":"窗 {win}","fig.fleet_median":"全场中位","fig.point":"测点","fig.quartile":"四分位","fig.this_unit":"本台","fig.trend":"趋势","fig.vibbar_note":"条为本台与全场中位之比; 色按 z (稳健离群度): 绿 <2 · 橙 2~3 · 红 ≥3","fig.x_median":"×中位","flt.alarm_face":"报警面","flt.alarm_meta":"{n} 条 · {c} 个码 · 时间窗 {win}","flt.attrib_note":'归因覆盖: "无记录停机" {h}h 是全场最大单项, 因不给 MTBF 而在上图中不出现 — 它不是"没有故障", 是"没归上因"。统计方法为段起点 ±30min 首发码。缺口成因待定: 此前写的"98% 的段在前 72h 内有报警 ⇒ 长停远窗"不成立 — 前 72h 有报警不等于该报警与本段停机有因果 (双模审 2026-08-28 逮)。要定成因须改判"段起止是否落在某条报警的持续区间内", 未做之前只报缺口不报原因。',"flt.block_err":"本块未算出 ({k}): {e}","flt.eyebrow":"故障统计与可靠性","flt.pareto_d":"帕累托 · 按持续时长","flt.pareto_d_note":"时长 = 闩锁统计方法 (复位 − 激活), 只作排序参考不作停机时长","flt.pareto_n":"帕累托 · 按发生条数","flt.pareto_n_note":"条数 = 发生频次, 不反映影响程度 — 高频短时报警码 (信号抖动或重复触发) 排序靠前","flt.per_t":"台级分布 · 报警条数 top{n}","flt.per_t_note":"全场合计 {n} 条 · 单台占比高须先核查是否为单一报警码重复触发","flt.per_t_share":"占全场","flt.quad":"故障模式四象限 · 条数 × 单次时长","flt.quad_note":"时间窗内共 {n} 个码, 图上为条数前 {m} 个。","flt.quad_note2":"点面积表示影响机组数, 大点为批次共性、小点为单台; 竖分界取条数中位, 横分界取 10min (一个 SCADA 采样格)。右下角的码不要按条数排优先级 — 属重复触发, 非硬件故障。上面两张帕累托对照看即此图的两条投影。","flt.quad_partial":"窗含不满月 {m} (覆盖 {c}%), 条数为原始累计未按天归一。","flt.ram":"可靠性 × 可维修性 · 部件象限","flt.ram_note":'按停机时长排序的表看不出这层结构: 同样 500h 的停机, "频发易修"要查根因、"罕发难修"要备件, 处置相反。设备类停机 {a}h / 外部类 {b}h (外部 = 电网·风况·运维操作, 不计设备可靠性)。海上机组 MDT 普遍偏高是交通窗口决定的, 不等于维修本身慢 — 跨场比 MDT 须同为海上。',"flt.rate":"月度故障率","flt.rate_example":"实测: {m} 总数最低但日均 {v} 条/日 = 全时间窗前列。","flt.rate_full":"各月覆盖完整。","flt.rate_note":"柱高 = 日均条数, 不是月总数","flt.rate_partial":"本时间窗 {m} 数据不满月 (灰虚线柱), 直接比月总数会读反。","flt.seasonal":"故障季节性 · top 报警族 × 月","flt.seasonal_note":"全程 19 个月 (跨 2 冬 1 夏); 未做 χ² 显著性检验前为【参考级】, 只看形态不作季节归因","flt.seasonal_unit":"条/月","flt.seasonal_x":"月","flt.stop_face":"停机面","flt.stop_h":"停机时长","flt.stop_meta":"{h}h · {n} 起 · 统计方法 ≥1h 段, 不含调度令","flt.stop_n":"次数","flt.stop_pareto":"停机归因帕累托","flt.stop_pareto_note":"按停机时长; 事件次数见悬停","flt.stop_units":"台级停机 top{n}","flt.stop_units_note":"停机时长高 ≠ 设备差 — 须先看归因里外部类占比 (调度令已剔除)","fus.alarm_n":"{n} 条","fus.alarm_rank":" · 第 {r}/{t}","fus.burst":"⚠ {p}% 是码 {c} 抖动","fus.burst_tip":"⚠ 单码 {c} 占 {p}%, 中位 {m} 秒/次 — 条数被抖动灌满","fus.clear":"× 清除","fus.cms_act":"行动","fus.cms_action":"需行动机组 (报警 / 不可判)","fus.cms_basis":"统计方法说明","fus.cms_basis_note":"本表 = windcms 状态管理判级 (含标量趋势与数据可判性); 融合矩阵 / 逐台结论 = 振动线确诊链转录 (候选以上)。两统计方法差异台: 仅本表列 {a} (多为标量发作 / 数据不可判, 未到确诊链); 仅确诊链列 {b} (预警级在察, 状态管理未升)。","fus.cms_chain":"部件状态链","fus.cms_chain_note":"(主承前 · 主承后 · 齿轮箱 · 发电机; 悬停看逐件等级)","fus.cms_evidence":"证据强度","fus.cms_focus":"状态焦点","fus.cms_focus_note":"(传动链: 主承前 · 主承后 · 齿轮箱 · 发电机两端)","fus.cms_grades":"38 台部件等级一览","fus.cms_head":"振动状态评估 (windcms 报告 {d} 结果转录)","fus.cms_link":"谱图 · 波形 · 判据 · 工作台等分析功能在独立 windcms 系统 →","fus.cms_loading":"载入振动评估结果…","fus.cms_note":"状态管理判级, 不代表确诊数量; 判据/谱线/计算过程不在本页 — 深潜走底部独立系统。","fus.cms_open":"打开 windcms ↗","fus.cms_overall":"综合","fus.cms_static":"(未启动时用静态版)","fus.cms_window":'数据窗 {r} —— 本时间窗**实算**覆盖区间 (窗名只是起始日代号); 页面上的图谱与"末窗"状态取自时间窗内最新记录, 故多显示末期日期。',"fus.col.alarm":"报警","fus.col.claim":"证据时间窗","fus.col.claim_axis":"26-01 → 09","fus.col.display_only":" · 只展示","fus.col.fixed":" · 不随本时间窗","fus.col.lub":"润滑柱塞","fus.col.oil":"油样","fus.col.part":"部件","fus.col.signal":"振动信号","fus.col.state_concl":"设备状态 / 振动结论","fus.col.temp":"温度","fus.col.tempaxis":"温度轴","fus.col.tempaxis_note":"±6 K","fus.col.vib":"振动","fus.col.wo":"工单","fus.ev_code":"码","fus.ev_dur":"累计时长 h","fus.ev_head":"{c} — 报警 {an} 条 / {au} 台 · 工单 {wn} 条 / {wu} 台 (时间窗内)","fus.ev_min":"时长 min","fus.ev_no_alarm":"时间窗内无该部件报警","fus.ev_no_wo":"时间窗内无该部件工单 (工单数据止 2024-11, 2026 类窗必空 = 数据边界)","fus.ev_recent":"最近 {n} 条明细","fus.ev_text":"报警内容","fus.ev_time":"时间","fus.ev_top":"台分布 top: ","fus.ev_units":"台数","fus.ev_win":"时间窗 {win} · 顶部选择器可换","fus.ev_wo_act":"处理","fus.ev_wo_cause":"原因","fus.ev_wo_name":"故障名称","fus.eval_head":"评价体系 (规范化定义 — 两轴并存, 不可互相替代)","fus.eval_meaning":"含义","fus.eval_note":'设备状态答"这台设备现在怎么样" (危险 > 报警 > 良好 > 优秀 > 不可判); 证据状态答"这个判断有多可信" (定论 → INSUFFICIENT)。设备状态一律取自振动线的判级栏这一个来源。本页判级为转录, 不产新判级; 标注为参照同型机组/频谱信号级 (未定位到具体零件)/测量链/未对应到具体部件的行不作部件级结论消费; claim_window = 该结论的证据时间窗, 窗外状态该结论不背书。',"fus.eval_state":"设备状态 (业主统计方法)","fus.eval_tier":"证据状态 (可信度)","fus.eyebrow":"振动与 SCADA 证据视图 · 展示振动结论、SCADA 指标、报警与工单线索","fus.fam_tip":"{n} 条 · 全场最多 {m} 条","fus.legend_note":'两轴不可互相替代: "候选"说的是可信度不是设备好坏; "良好"说的是设备状态不是证据强度。设备状态只取自振动线的判级栏这一个来源。',"fus.legend_state":"格子颜色 = 设备状态 (业主统计方法, 与 windcms 报告同一套):","fus.legend_tier":"徽章 = 证据状态 (可信度, windcms 九枚举):","fus.loop_ba":"换前 → 换后 (同标尺)","fus.loop_bound":"数据边界: {b}","fus.loop_closed":"已闭环 · 换件后恢复 ({n} 例)","fus.loop_date":"换件日","fus.loop_el":"早期 → 近期 (同标尺)","fus.loop_head":"维修后验证案例 (检出 → 换件 → 恢复)","fus.loop_item":"事项","fus.loop_neg":"负面对照: 工单后持平 {n} 例 (换件 ≠ 必然回落, 说明回落非巧合)。","fus.loop_none":"暂无端到端闭环证据:现场提交的振动数据包里没有「报警→检修→复测」的成对记录","fus.loop_note":"有换件记录且同一统计方法指标回落, 可作为检测链已闭合的案例; 指标仍在上升但缺少可匹配工单的机组, 需现场或台账确认后再关闭。","fus.loop_ratio":"恢复比","fus.loop_rising":"未闭环 · 指标上升待现场/工单确认 ({n} 台)","fus.loop_state":"状态","fus.loop_verdict":"判","fus.loop_x":"倍比","fus.lub_now":"润滑柱塞现状","fus.lv.bad":"定论/报警级","fus.lv.note":"候选/监视/观察级","fus.lv.ok":"销案/无新证","fus.lv.warn":"预警级","fus.m.bad":"异常严重, 建议尽快停机检查","fus.m.bad_e":"证据: 已定案","fus.m.ex":"未见异常, 保持常规监视","fus.m.ex_e":"证据: 仅记录 / 已取消","fus.m.ok":"轻微偏离, 记录观察","fus.m.ok_e":"证据: 待现场核实 / 已记为基线下窗观察","fus.m.unk":"数据不足或监测中断 — 不等于正常","fus.m.unk_e":"证据: 数据不足","fus.m.warn":"存在需现场核实或处置的异常","fus.m.warn_e":"证据: 基本确认 / 新出现待核实","fus.matrix_foot":'润滑柱塞各台设定本就不同 (全场单次循环 22~961 秒), 所以此列只展示不判级, 只有已定案的机制链才标色; 油液多数台末次取样距今超 12 个月, 此列看的是"样够不够新", 不代表当前状态。',"fus.matrix_head":"全场融合矩阵 (38 台 × 6 个证据面)","fus.matrix_note1":'各列取数窗口不同 (见列头) — 不同窗的两格同时发红不等于"同时发生", 不可当共时印证。',"fus.matrix_note2":'每格右侧曲线 = 逐月记忆轨迹 ({n} 个月, {m0} 起; 实心点 = 现窗) — 现窗快照会丢形态, 轨迹才看得见"塌→回升→翻转"类机制签名。',"fus.no_alarm":"时间窗内无报警","fus.none_word":"无","fus.oil_fresh":"近共时","fus.oil_none":"无样","fus.oil_stale":"stale > 12 个月","fus.rule1":"① 同一失效机制的多个观测面 ≠ 多源印证 — 融合禁按源数加权 (29# 柱塞/温度/振动稳态/振动瞬态 = 四个观测面一条机制链)。","fus.rule2":'② "没报警" ≠ "正常" — 在已知盲区上, 缺报警只说明监测面无效, 不说明设备无恙。',"fus.rules_head":"两条判读纪律 (随板块常显)","fus.short.nodata":"数据不足","fus.short.normal":"正常","fus.short.nosample":"未取样","fus.short.stale":"样龄过期","fus.short.uneval":"未评估","fus.short.unlisted":"未收录","fus.sub.cms":"振动分析","fus.sub.events":"报警工单","fus.sub.loop":"端到端闭环","fus.sub.matrix":"融合矩阵","fus.sub.units":"逐台情况","fus.temp_now":"温度轴现状","fus.tip_state":" — 设备状态 {s}","fus.tip_tier":" / 证据状态 {e}","fus.unavailable":"融合面数据不可用: {e}","fus.units_filter":" · 筛选: {l}","fus.units_head":'逐台情况 (全场 {u} 台 / {n} 台次{f}; 深入谱图/波形 → "振动分析")',"fus.unlisted_head":"未列机组 {n} 台 (振动线未收录 — 未列 ≠ 正常)","fus.unlisted_link":"未列 {n} 台","fus.win_n":"{n} 个窗段","fus.win_none":"未标窗","fus.wo_n":"{n} 单","fus.wo_none":"时间窗内无传动链工单","gen.beta":"桨距调度同档差","gen.beta_note":"同一功率档下的桨角与全场中位之差。{units} 偏离达中位的 {k} 倍 → {v}","gen.cands":"曲线欠发筛查","gen.cands_meta":"{note} · σ = {s}%","gen.cap":"封顶参数落位","gen.cap_note":"台数落在几个离散位置上, 不是连成一片 — 这是配置/版本差异的形状; 磨损或工况引起的会是连续散布。两轴各自成组且分组不同台 ⇒ 参数级差异, 成因须配置台账。","gen.ctrl":"控制参数一致性","gen.ctrl_win":"窗 {win}","gen.eyebrow":"特性曲线与控制参数","gen.figs":"七个镜头 · 逐档中位与同型机群残差","gen.fixed_win":"随上方时间窗 · 按时间窗重算","gen.loading":"正在计算七个镜头 (剥限电 · 逐档中位 · 同型机群残差)…","gen.no_cands":"无候选","gen.recomputing":"正在按所选时间窗重算七镜头…","gen.recomputing_short":"正在按窗重算…","gen.ruler":"尺子巡检 · 极差 ÷ σ","gen.ruler_note":"判据自身的分辨力。38 台正态抽样的极差期望约 3.7σ, 明显超出即分布非单峰 — 与左图的分组互为印证; 落在期望附近的轴 (额定桨角) 则是连续分布。","gen.win_range":"时间窗 {span}","gen.win_why":'七镜头与月度时序都按所选时间窗重算(含自定义起止日期)。提示:2025-07 ~ 2025-12 是"限电前干净判别窗"——2026 起交易策略主导,曲线含策略性少发,作设备判据时须注意;选到含 2026 的窗时该影响存在但不再遮掩。',"kpi.alarm_units":"九系统有报警的台数 / 全场","kpi.alarm_units.hint":"统计方法: 九系统 (叶片与叶根/变桨/偏航/齿轮箱/发电机/主轴承/变流器/塔架与基础/主控与传感网) 中任一被判「报警」即计一台。与下方「全场状态」格的统计方法不同 —— 那里按每台 振动/温度/润滑/油液/报警/工单 六列取最严一级, 所以两处数字可以不同, 不是矛盾。","kpi.avail":"时间可用率 (不含调度令) · {win}","kpi.curtail":"限电·绑定 电量损失","kpi.downtime":"停机时长 · {n} 起","kpi.loss":"停机电量损失 · {win}","kpi.loss_dispatch":"另调度令 {n}","kpi.mtbo":"平均停机间隔(MTBO;非行业 MTBF)","loss.curtail_bound":"限电 (命令与实际功率对得上)","loss.curtail_unbound":"限电命令期 · 功率未被压制","loss.dispatch":"调度令停机","loss.lowwind":"低风待机","loss.normal":"正常发电时的欠发","loss.stop":"故障与检修停机","mdl.cloud":"云端","mdl.deepseek-chat.nm":"DeepSeek","mdl.deepseek-chat.t":"约 3 到 10 秒","mdl.deepseek-r1:14b.nm":"本机 DeepSeek 14B · 审核档","mdl.deepseek-r1:14b.t":"约 1 到 3 分钟","mdl.deepseek-r1:32b.nm":"本机 DeepSeek 32B","mdl.deepseek-r1:32b.t":"约 3 到 8 分钟","mdl.deepseek-v4-pro.nm":"云端 DS","mdl.deepseek-v4-pro.t":"约 2 到 6 分钟","mdl.kimi-fast.nm":"Kimi","mdl.kimi-fast.t":"约 5 到 20 秒","mdl.local":"本地","mdl.outbound_warn":"内容会外发到模型厂商, 场名与台号已去标识化","mdl.qwen-plus.nm":"通义千问","mdl.qwen-plus.t":"约 5 到 20 秒","mdl.qwen3.8:27b.nm":"标准 27B · 复杂题","mdl.qwen3.8:27b.t":"约 2 到 4 分钟","mdl.qwen3:30b-a3b.nm":"快 30B (a3b)","mdl.qwen3:30b-a3b.t":"约 20 到 60 秒","mdl.qwen3:8b.nm":"轻量 8B · 默认","mdl.qwen3:8b.t":"约 30 到 60 秒","mdl.unknown_warn":"未知档位, 按内容会外发处理","mdl.zero_outbound":"全程零外发","mt.cov":"当前覆盖","mt.eyebrow":"系统维护 · 数据输入与更新端口","mt.fail":"盘点失败: {e}","mt.freq":"频率","mt.head":"数据维护面 · {n} 个源","mt.how":"补数据怎么做","mt.last":"末次更新","mt.layer_data":"数据层","mt.layer_data_note":"随运营滚动 — 新数据到位后跑摄入, 本体与判级自动刷新","mt.layer_mech":"机理层","mt.layer_mech_note":"相对稳定 — 换厂商资料或现场反馈修正时才动; 它是判据的地基, 变更须过审","mt.note":'每个源给出: 当前覆盖 / 末次更新 / 约定位置 / 摄入命令 / 更新频率 / 责任方。要补数据就把新文件放到"约定位置"再跑"摄入命令"。',"mt.put":"放到:","mt.resp":"责任","mt.rows_n":" ({n} 条)","mt.run":"跑:","mt.src":"源","mt.surveying":"盘点中…","ov.all_steps_done":"已走完(待验收)","ov.attention":"需要关注","ov.attention_n":"{n} 台","ov.basis_fusion":"本台依据来自融合面(九系统判级无「报警」行):部件 {part} · 链路走到第 {done}/{n} 步 · 卡在「{stuck}」 · 证据源 {srcs}","ov.caveat":"限定","ov.evidence":"查看完整依据","ov.fus_gap_hint":"这一面(需要关注 / 全场状态)取数来自融合面;缺件时如实为空,不从交付包补齐。在本机放好原始件后跑一次重算即会由观澜自己的生成端补上(scripts/rudong_fusion_handoff.py,见 docs 的「源代码化清单」)。","ov.illustrative":"示意数据","ov.no_srcs":"无(该台无外部证据源)","ov.quiet":"其余 {n} 台未进入优先关注清单;设备状态请查看全场状态评估。","ov.quiet_all":"当前优先关注清单为空;{n} 台机组的设备状态请查看全场状态评估。","ov.ranked_by":"按 设备状态 × 证据量 排序","ov.strip":"全场状态","ov.strip_hint":"一格一台 · 点格定位","ov.systems":"九系统","ov.systems_hint":"点系统看逐台依据","pop.acts":"动作统计","pop.close":"关闭","pop.loading":"载入中…","pop.none":"本时间窗无记录","pop.o_act":"处置","pop.o_cause":"原因","pop.o_check":"排查","pop.o_date":"日期","pop.o_fault":"故障","pop.o_kind":"类别","pop.orders":"工单 {n} 单","pop.orders_none":"时间窗内无工单","pop.orders_one":"工单 1 单","pop.problem":"{u} · {sys}","pop.unit":"{u} · 全部问题","rpt.attrib.note":'"无记录停机"不是没有故障, 是没归上因。',"rpt.attrib.title":"归因覆盖","rpt.aud_in":"场站内部 (全量)","rpt.aud_up":"上报集团 (脱敏)","rpt.b.attrib.d":"已归因 vs 无记录停机的占比 — 无记录不等于没有故障","rpt.b.attrib.nm":"归因覆盖","rpt.b.blame.d":'交易调度侧 / 设备侧 / 运行侧 三段占比 — 回答"谁的责任"',"rpt.b.blame.nm":"损失责任分账","rpt.b.caliber.d":"统计期 / 残月 / 工单时间窗 / 判级性质 — 建议常驻, 没有边界的数字堆不能作汇报依据","rpt.b.caliber.nm":"统计方法与适用边界","rpt.b.chain.d":"证据→机制→判级→排期→动作→验收 六步的瓶颈分布","rpt.b.chain.nm":"决策链进度","rpt.b.emon.d":"逐月上网 / 损失 / 损失率 / 等效满发, 含数据覆盖率","rpt.b.emon.nm":"逐月发电表","rpt.b.frate.d":"按天归一的日均条数, 数据不满月单独标注","rpt.b.frate.nm":"月度故障率","rpt.b.kpi.d":"六个核心数: 上网电量 / 等效满发 / 可用率 / 损失率 / 停机间隔 / 需行动台","rpt.b.kpi.nm":"一级指标","rpt.b.loop.d":"检出 → 换件 → 复测回落的历史例证, 证明这条链是通的","rpt.b.loop.nm":"闭环实证","rpt.b.narr.d":"模型基于实测数据生成的运行总结 — 为图表补充文字结论, 供汇报使用","rpt.b.narr.nm":"运行总结","rpt.b.pareto.d":"按条数降序 + 累计 80% 线, 找关键少数","rpt.b.pareto.nm":"故障帕累托","rpt.b.parts.d":"逐部件停机时长 / 事件数 / 平均无故障间隔(MTBF)/ 单次停机时长(MDT)/ 影响机组数","rpt.b.parts.nm":"部件停机表","rpt.b.plan.d":"由数据推出的行动项, 不是套话","rpt.b.plan.nm":"下期建议","rpt.b.quad.d":"条数 × 单次时长, 区分重复触发与实际停机 — 按条数排序会误定优先级","rpt.b.quad.nm":"故障四象限","rpt.b.ram.d":'平均无故障间隔(MTBF)× 单次停机时长(MDT)部件象限, 分出"频发易修"与"罕发难修", 处置方向相反',"rpt.b.ram.nm":"可靠性象限","rpt.b.units.d":"需跟踪台的部件 / 证据源 / 六步进度 / 卡在哪一步","rpt.b.units.nm":"重点机组","rpt.b.water.d":"理论可发 → 逐段扣损 → 实际上网, 用于定位电量流向","rpt.b.water.nm":"能量瀑布","rpt.blame.cal":"工况态分解 + 限电命令面绑定判别; 平均出力=实发÷台时, 用作风资源代理量","rpt.blame.note":'进设备考核的只有"故障与检修停机"; 限电属交易与调度侧。',"rpt.blame.note2":'限电不是"低风时段收到的空令": 限电·绑定时段平均出力 1.435 MW, 正常发电时段 1.412 MW, 比值 1.02 — 风况相同而出力被压, 说明限电是真压制; 但"限电命令期·功率未被压制"那一档平均出力仅 0.724 MW (18% 额定), 确属低风时段收令。',"rpt.blame.title":"损失责任分账","rpt.cal.deid":"脱敏","rpt.cal.deid_d":"上报版隐去判据门槛与特征频率","rpt.cal.denom":"可用率与损失率分母不同","rpt.cal.denom_d":'可用率分母剔除低风待机与调度令(问"该发时能不能发"), 损失率分母含全部时段(问"理论能发多少"); 同一低风时段在可用率里不计时间、在损失率里计入基数 — 这是两个指标的设计差异不是错, 但两者不可直接相乘或互推。低风待机对损失的贡献仅 118 MWh(0.5%)',"rpt.cal.partial":" — {m} 数据不满月(覆盖 {c}%), 月度已按天归一","rpt.cal.period":"统计期","rpt.cal.rating":"判级","rpt.cal.rating_d":"由振动/温度/润滑/油液四源融合得出; 行动等级由综合报告出具","rpt.cal.stop":"停机","rpt.cal.stop_d":"可靠性统计方法 ≥1h 段, 电量账为逐条工况态 — 两个数都对, 不可相减","rpt.cal.title":"统计方法与数据边界","rpt.cal.wo":"工单","rpt.cal.wo_d":"台账 2020~2024-11, 本报告不对本期检修执行下结论","rpt.caliber_lbl":"统计方法: ","rpt.chain.cal":"「动作」一列不可判 — {b}","rpt.chain.note":"六步: 证据 → 机制 → 判级 → 排期 → 动作 → 验收。当前 {s}。","rpt.chain.title":"决策链进度","rpt.chapters":"{n} 个章节","rpt.cloud_note":"; 内容会外发到模型厂商","rpt.compose":"生成","rpt.compose_fail":"生成失败: {e}","rpt.composed":"已按需求编排 {n} 块{narr} · {m} 用时 {s}s","rpt.composing":"模型编排中… 挑组件 + 写总结","rpt.emon.act":"上网 MWh","rpt.emon.cal":"覆盖率<50% 的月不参与环比","rpt.emon.cov":"覆盖","rpt.emon.eflh":"等效满发 h","rpt.emon.loss":"损失 MWh","rpt.emon.m":"月","rpt.emon.partial":" 不满月","rpt.emon.pct":"损失率","rpt.emon.title":"逐月发电","rpt.empty_canvas":"画布是空的 — 先从组件库选内容","rpt.export_docx":"导出 Word","rpt.export_xlsx":"导出 Excel","rpt.eyebrow":"汇报定制 · 画布","rpt.facts.agg":"聚合层","rpt.facts.sub":"{n} 条, 契约 {sha}; 数据/时间窗/结论只经契约更新","rpt.facts.sys":"系统","rpt.facts.text":"结论","rpt.facts.title":"可交付级结论 · 契约生成","rpt.facts.verdict":"裁决","rpt.foot_asof":"出件 {d}","rpt.foot_deid":"判据门槛与特征频率已脱敏","rpt.foot_src":"数据源 SCADA 10min · 报警事件 · 工单台账 · CMS 振动 · 油液化验","rpt.foot_trace":"结论可回溯至本体对象","rpt.frate.cal":"不满月按天归一","rpt.frate.note":"柱高=日均条数, 不是月总数。","rpt.frate.title":"月度故障率","rpt.g.end":"收尾","rpt.g.flt":"故障","rpt.g.gen":"发电","rpt.g.rel":"可靠性","rpt.g.unit":"机组","rpt.grounded":"数字全部接地","rpt.hint_idle":"悬停查看组件说明 · 已选组件再次点击移出 · 右侧 ↑↓ 调整顺序","rpt.kpi.act":"上网电量","rpt.kpi.action":"需行动机组","rpt.kpi.action_n":"定论 {a} · 预警 {b} · 候选 {c}","rpt.kpi.annual":"年化约 {v} h","rpt.kpi.avail":"时间可用率","rpt.kpi.avail_n":"不含调度令与低风待机","rpt.kpi.eflh":"等效满发小时","rpt.kpi.loss":"损失率","rpt.kpi.mom":"环比 {v}%","rpt.kpi.mom_na":"环比不可比(末月不满)","rpt.kpi.mtbo":"平均停机间隔","rpt.kpi.mtbo_n":"停机 {n} 起 · 单次均 {h}h","rpt.kpi.theo":"理论可发 {v}","rpt.library":"组件库","rpt.library_note":"点击加入报告, 再次点击移出 · 画布里已有 {n} 块","rpt.local_note":"; 数据不出本地","rpt.loop.cal":"振动标量前后对比","rpt.loop.comp":"部件","rpt.loop.date":"换件日期","rpt.loop.note":"这几台正是算法当初的检出台 ⇒ 故障前能看见、换件后能看见恢复。","rpt.loop.post":"换后","rpt.loop.pre":"换前","rpt.loop.ratio":"比值","rpt.loop.title":"端到端闭环实证","rpt.narr.cal":"模型 {m} 生成 · 数字取自系统实测摘要 · 数据回抓校验{g}","rpt.narr.empty":"还没有生成 — 在上面的交互窗输入报告要求。","rpt.narr.g_n":"报 {n} 处待核","rpt.narr.g_ok":"全通过","rpt.narr.title":"运行总结","rpt.narr.ungr":"⚠ 以下数值由模型自行推算, 不在原始数据摘要中, 引用前须核对: {v}","rpt.narr_plus":" + 一段运行总结","rpt.need_empty":"先输入报告要求","rpt.need_head":"输入报告要求","rpt.need_hint":"模型依据需求选取组件, 并基于实测数据生成运行总结","rpt.need_ph":"例如: 上报集团月报, 侧重设备可靠性与重点机组","rpt.no_compose":"本部署未启用编排接口, 画布仍可手动拼装","rpt.no_models":"本部署未配置任何模型密钥, 编排不可用","rpt.paper_sub":"统计期 {win} | {n} 台","rpt.paper_title":"运行分析报告","rpt.pareto.cal":"报警事件表","rpt.pareto.title":"故障帕累托","rpt.parts.cal":"归因=段起点±30min 首发码","rpt.parts.ev":"事件","rpt.parts.ext":" (外部)","rpt.parts.h":"停机h","rpt.parts.mdt":"单次停机时长(MDT,h)","rpt.parts.mtbf":"平均无故障间隔(MTBF,h)","rpt.parts.part":"部件","rpt.parts.title":"部件停机","rpt.parts.units":"影响机组","rpt.plan.1":'补机制定性 — {n} 台停在"判了级但根因未定", 是当前最大单一瓶颈',"rpt.plan.2":"回收 25~26 工单 — 台账止 2024-11, 本期检修执行与闭环无法自动判定","rpt.plan.3":"油液采样节奏 — 四源里油液长期 stale, 只能作回测锚","rpt.plan.4":"限电侧 — 损失六成在交易与调度侧, 设备侧改善空间有限","rpt.plan.cal":"建议级 — 排期与动作须经审批","rpt.plan.title":"下期计划与建议","rpt.preset.blank":"空白画布","rpt.preset.month":"月度运行分析","rpt.preset.topic":"设备专题","rpt.preset.week":"周报","rpt.preset.year":"年度总结","rpt.presets":"预设","rpt.preview_empty":"文档预览窗 — 从上面的组件库点选内容, 此处显示报告预览","rpt.print":"打印 / 存 PDF","rpt.quad.cal":"纵界=10min(一个SCADA采样格)","rpt.quad.note":"右下角报警码属重复触发, 不应按条数排定优先级。","rpt.quad.title":"故障模式四象限","rpt.ram.cal":"SCADA ≥1h 停机段, 不含调度令; 海上 MDT 含交通窗口","rpt.ram.note":"设备类 {a}h / 外部类 {b}h (电网·风况·运维操作不计设备可靠性)","rpt.ram.title":"可靠性 × 可维修性","rpt.ungrounded_n":"{n} 个数字待核","rpt.units.at":"卡在","rpt.units.cal":"四源融合判级","rpt.units.clear":"全通","rpt.units.ev":"部件与证据","rpt.units.head":"需跟踪 {n} 台 / {tot} | 瓶颈 ","rpt.units.prog":"进度","rpt.units.rising":"在升 {r}×","rpt.units.state":"状态","rpt.units.stuck":"{n} 台卡在「{s}」","rpt.units.title":"重点机组与处置","rpt.up_note":"上报版 — 判据门槛与特征频率已脱敏","rpt.up_tag":"上报版","rpt.water.cal":"SCADA 10min 工况态分解; 损失=同工况理论出力与实测之差。量级自检为防虚高的下限校验, 不是风资源判据","rpt.water.cap_bad":"量级自检: 理论 ≥ 全额定上限 {cap} MWh ✗ 数字不可信","rpt.water.cap_ok":"量级自检: 理论低于全额定上限 {cap} MWh ✔","rpt.water.note":"理论可发 {theo} = 上网 {act} + 损失 {loss} MWh ({pct}%)","rpt.water.title":"发电完成情况","rv.advci":"AdvCI","rv.dual":"双模型审","rv.lite":"lite","rv.none":"未审","st.bad":"危险","st.excellent":"优秀","st.ok":"良好","st.ok_excellent":"良好 / 优秀","st.unk":"不可判","st.warn":"报警","step.acceptance":"验收","step.action":"动作","step.evidence":"证据","step.mechanism":"机制","step.rating":"判级","step.schedule":"排期","step.site_records":"现场记录","step.stuck_at":"卡在「{step}」","sys.blade":"叶片与叶根","sys.control":"主控与传感网","sys.converter":"变流器","sys.gearbox":"齿轮箱","sys.generator":"发电机","sys.main_bearing":"主轴承","sys.other":"其他","sys.pitch":"变桨","sys.tower":"塔架与基础","sys.yaw":"偏航","tab.assistant":"检修助手","tab.component":"部件问题","tab.decision":"检修决策","tab.energy":"电量算账","tab.fault":"故障统计","tab.generation":"发电性能","tab.ontology":"本体","tab.overview":"总览","tab.report":"汇报定制","tab.system":"系统维护","tab.vibration":"振动融合分析","tier.candidate":"候选","tier.candidate.s":"候选","tier.candidate_baseline":"候选·记基线","tier.candidate_baseline.s":"候选·记基线","tier.candidate_new":"候选·新发","tier.candidate_new.s":"候选·新发","tier.confirmed":"定论","tier.confirmed.s":"定论","tier.detail.不可判":"不可判","tier.detail.仲裁输入":"仲裁输入","tier.detail.优":"优","tier.detail.优秀":"优秀","tier.detail.传感器项":"传感器项","tier.detail.候选":"候选","tier.detail.候选·监视(复发)":"候选·监视(复发)","tier.detail.候选·跟踪":"候选·跟踪","tier.detail.危险":"危险","tier.detail.可降":"可降","tier.detail.复发候选(两轴合并)":"复发候选(两轴合并)","tier.detail.定论":"定论","tier.detail.弱同向新证":"弱同向新证","tier.detail.报":"报","tier.detail.报警":"报警","tier.detail.本体无新证":"本体无新证","tier.detail.正常":"正常","tier.detail.正样本":"正样本","tier.detail.温度单轴保留":"温度单轴保留","tier.detail.监视":"监视","tier.detail.监视(不开箱)":"监视(不开箱)","tier.detail.良":"良","tier.detail.良好":"良好","tier.detail.蓄能失效候选(定向查)":"蓄能失效候选(定向查)","tier.detail.观察":"观察","tier.detail.观察(发电机侧)":"观察(发电机侧)","tier.detail.记基线观察":"记基线观察","tier.detail.销案(定论)":"销案(定论)","tier.detail.降观察":"降观察","tier.detail.预警":"预警","tier.detail.预警·处置升急":"预警·处置升急","tier.detail.预警·处置规划":"预警·处置规划","tier.insufficient":"不足","tier.insufficient.s":"不足","tier.near":"准定论·预警","tier.near.s":"准定论","tier.normal":"正常","tier.normal.s":"正常","tier.reference":"参考","tier.reference.s":"参考","tier.withdrawn":"撤回","tier.withdrawn.s":"撤回","ui.all":"全部","ui.back_portal":"← 返回门户","ui.back_to":"← 返回{tab}","ui.collapse":"收起","ui.count":"条数","ui.data_hidden":"({n} 处数据文本尚无英文,需复核)","ui.date":"日期","ui.empty":"无数据","ui.error":"出错了","ui.expand":"展开","ui.loading":"载入中…","ui.not_ported":"本页尚未迁入新版。","ui.not_recorded":"台账未填","ui.open":"查看 →","ui.open_classic":"在经典版打开 →","ui.query":"查询","ui.reselect":"重新选择机组 / 测点","ui.retry":"重试","ui.system":"系统","ui.unit":"机组","ui.units":"机组","ui.verbatim":"原始记录 (中文)","ui.verbatim_note":"{n} 处为手册/工单原文, 无英文译本, 按原文转录。","unit.h":"h","unit.n":" 条","unit.units":"台","vp.(振动线未收录)":"(振动线未收录)","vp.主轴承(后)+集中润滑泵":"主轴承(后)+集中润滑泵","vp.发电机(引用同族, 见族主台)":"发电机(无本台独立证据, 参照同型机组)","vp.发电机(未映射)":"发电机(未对应到具体部件)","vp.发电机DE":"发电机DE","vp.发电机DE+NDE(两端)":"发电机DE+NDE(两端)","vp.发电机NDE":"发电机NDE","vp.齿轮箱(未映射)":"齿轮箱(未对应到具体部件)","vp.齿轮箱(测量链问题, 非部件)":"齿轮箱(测量链问题, 非部件)","vp.齿轮箱(谱线级, 未映射到部件)":"齿轮箱(频谱信号级 (未定位到具体零件), 未对应到具体部件)","vp.齿轮箱中间轴":"齿轮箱中间轴","vp.齿轮箱二级行星内齿圈":"齿轮箱二级行星内齿圈","vp.齿轮箱高速轴":"齿轮箱高速轴","win.2025H2":"2025H2","win.2026":"2026年","win.2026H1":"2026H1","win.30d":"近30日","win.90d":"近90日","win.all":"全程","win.apply":"应用","win.bad_order":"开始日期不能晚于结束日期","win.banner":"时间窗 {win} · 本页全部数字随上方时间窗切换","win.custom":"自定义","win.custom_hint":"自定义起止日期(含两端)。日粒度件(判级/停机台账/曲线)按日精确;月度聚合件按所跨月份取整,图上会写明。","win.custom_sel":"自定义 {a} ~ {b}","win.from":"开始日期(含)","win.label":"时间窗","win.months":"按月","win.need_both":"请把开始与结束日期都选上","win.partial":"时间窗内 {m} 数据不满月 (覆盖 {c}%), 月度图已按天归一","win.presets":"预设时间窗","win.through":"至{date}","win.to":"结束日期(含)","tab.documents":"交付文档","tab.recalc":"数据重算","doc.eyebrow":"交付文档","doc.loading":"正在读取交付文档…","doc.head":"交付文档 ({n})","doc.note":"交付文档随包提供;下载后可离线查阅。","doc.name":"文档","doc.size":"大小","doc.get":"获取","doc.download":"下载","rc.eyebrow":"数据重算","rc.loading":"正在读取重算状态…","rc.running":"重算进行中","rc.idle":"当前空闲","rc.note":"重算链按步执行;本页每 5 秒刷新状态与日志尾部。","rc.since":"开始于","rc.start":"开始重算","rc.log":"重算日志(尾部)","rc.empty":"(暂无日志)","tab.portal":"门户栏目","pt.eyebrow":"门户栏目","pt.head":"重构前门户上的栏目(已迁移 / 可达)","pt.note":"总览、振动·CMS、交付文档、数据重算已迁为页签;系统架构/方法/经验发现/案例·液压 见「架构与资料」页签;下列两项为在线服务入口。","pt.col":"栏目","pt.what":"说明","pt.open":"打开","pt.kind_portal":"门户存档页(release/portal.html 经网关 /portal 伺服)","pt.kind_svc":"在线服务(经网关)","tab.portal_sec":"架构与资料","ps.eyebrow":"系统架构 · 方法 · 经验发现 · 案例·液压","ps.missing":"该节内容未抽取到(请检查 v2.9.2 门户原文)。","tab.portal_src":"门户","pv.eyebrow":"观澜门户(Vue 装配 · v2.9.2 原文外壳与内嵌件)","pv.loading":"正在装配门户(外壳 + 内嵌件)…","pv.assembled":"门户已装配:内嵌件 {n} 件(外壳与内嵌件均取自 v2.9.2 原文)"};function i(t,e){let s=qr[t]??t;if(e)for(const[n,l]of Object.entries(e))s=s.split(`{${n}}`).join(String(l));return s}const jr=["overview","energy","component","vibration","generation","fault","decision","assistant","report","system","documents"],En=["overview","energy","component","fault","vibration","generation","decision","assistant","system","report","documents"],Pr={class:"eyebrow"},Hr={key:0,class:"panel"},Lr={class:"small",style:{color:"var(--critical)"}},Dr={key:1,class:"panel"},Ir={class:"small muted"},Rr={class:"panel mb"},Nr={class:"small muted"},Br={class:"panel mb"},Wr={class:"tblwrap"},Kr={style:{"margin-top":"4px"}},Ur={style:{width:"60%"}},Vr={style:{width:"16%"}},zr={style:{width:"24%"}},Gr={class:"small"},Yr={class:"small num"},Jr={class:"small"},Xr=["href","download"],Zr=Rt({__name:"Documents",setup(t){const e=Mt(null),s=Mt(""),n=l=>l>=1048576?(l/1048576).toFixed(1)+" MB":Math.max(1,Math.round(l/1024))+" KB";return Ye(async()=>{try{const o=await(await fetch("/api/delivery_docs")).json();o&&o.error?s.value=String(o.error):e.value=o&&o.docs||[]}catch(l){s.value=String(l&&l.message||l)}}),(l,o)=>(k(),T("section",null,[a("div",Pr,p(d(i)("doc.eyebrow")),1),s.value?(k(),T("div",Hr,[a("p",Lr,p(s.value),1)])):e.value?(k(),T(rt,{key:2},[a("div",Rr,[a("h3",null,p(d(i)("doc.head",{n:e.value.length})),1),a("p",Nr,p(d(i)("doc.note")),1)]),a("div",Br,[a("div",Wr,[a("table",Kr,[a("tr",null,[a("th",Ur,p(d(i)("doc.name")),1),a("th",Vr,p(d(i)("doc.size")),1),a("th",zr,p(d(i)("doc.get")),1)]),(k(!0),T(rt,null,xt(e.value,c=>(k(),T("tr",{key:c.name},[a("td",Gr,p(c.name),1),a("td",Yr,p(n(c.size||0)),1),a("td",Jr,[a("a",{href:c.url,download:c.name},p(d(i)("doc.download")),9,Xr)])]))),128))])])])],64)):(k(),T("div",Dr,[a("p",Ir,p(d(i)("doc.loading")),1)]))]))}}),Qr={class:"portal-full"},tc={key:0,class:"portal-loading"},fn="/web/portal/",ec=Rt({__name:"PortalView",setup(t){const e=Mt(null),s=Mt("loading"),n=Mt("");async function l(r){const u=await fetch(r);if(!u.ok)throw new Error(r+" "+u.status);return await u.text()}Ye(async()=>{try{let r=await l(fn+"shell.html");const u=r.match(/<title[^>]*>([^<]*)<\/title>/i);u&&u[1].trim()&&(document.title=u[1].trim());const m=Array.from(r.matchAll(/<!--@TEMPLATE:([^>]+?)-->/g)).map(v=>v[1]);m.forEach(v=>{r=r.replace("<!--@TEMPLATE:"+v+"-->",'<template id="'+v+'"></template>')});try{const v=await l(fn+"governance_sources.json");r=r.replace("<!--@GOVERNANCE_SOURCES-->",v.replace(/</g,"\\u003c"))}catch{}const f=[[/<a([^>]*?)href="#cms"/g,'<a$1target="_top" href="/detail/v2#tab=vibration"'],[/<a([^>]*?)href="#documents"/g,'<a$1target="_top" href="/detail/v2#tab=documents"'],[/<a([^>]*?)href="#recalc"/g,'<a$1target="_top" href="/detail/v2#tab=recalc"'],[/<a([^>]*?)href="(?:https?:\/\/[^"]*)?\/(?:detail\/v2|v2)[^"]*"/g,'<a$1target="_top" href="/detail/v2#workbench"']];for(const[v,w]of f)r=r.replace(v,w);n.value=i("pv.assembled",{n:m.length});const _=new Blob([r],{type:"text/html;charset=utf-8"});e.value&&(e.value.src=URL.createObjectURL(_)),c(),o(m),s.value="ready"}catch(r){n.value=String(r&&r.message||r),s.value="error"}});async function o(r){let m=0,f=0;const _=async()=>{for(;m<r.length;){const v=r[m++];try{const w=await fetch(fn+"templates/"+encodeURIComponent(v)+".html",{cache:"force-cache"}),P=w.ok?await w.text():"",B=e.value&&e.value.contentDocument,z=B&&B.getElementById(v);if(B&&z){const ot=B.createElement("template");ot.id=v,ot.innerHTML=P,z.replaceWith(ot)}}catch{}f++,n.value=i("pv.assembled",{n:f})}};await Promise.all(Array.from({length:6},()=>_()))}function c(){const r=[['nav a[data-nav="cms"]',"#tab=vibration"],['nav a[data-nav="documents"]',"#tab=documents"],['nav a[data-nav="recalc"]',"#tab=recalc"]],u=()=>{const f=e.value&&e.value.contentDocument;if(!f)return;const _=P=>B=>{B.preventDefault(),B.stopImmediatePropagation();const z=window.top;try{z.location.href=P}catch{location.href=P}};for(const[P,B]of r){const z=f.querySelector(P);z&&z.addEventListener("click",_("/detail/v2"+B),!0)}const v=f.querySelector("nav a:not([data-nav])")||f.querySelector('a[href*="18033"]');v&&v.addEventListener("click",_("/detail/v2#workbench"),!0);const w=f.querySelector("a.portal-wb");w&&w.addEventListener("click",_("/detail/v2#workbench"),!0)},m=e.value;m&&(m.addEventListener("load",u),u())}return(r,u)=>(k(),T("div",Qr,[s.value!=="ready"?(k(),T("div",tc,p(s.value==="loading"?d(i)("pv.loading"):n.value),1)):gt("",!0),u[0]||(u[0]=a("a",{class:"portal-wb",href:"#workbench",title:"切换到 Vue 工作台"},"工作台",-1)),a("iframe",{ref_key:"frame",ref:e,class:"portal-frame",title:"观澜门户"},null,512)]))}}),Go=(t,e)=>{const s=t.__vccOpts||t;for(const[n,l]of e)s[n]=l;return s},Yo=Go(ec,[["__scopeId","data-v-b81f180d"]]),Gn=["叶片与叶根","变桨","偏航","齿轮箱","发电机","主轴承","变流器","塔架与基础","主控与传感网"],Is={叶片与叶根:"blade",变桨:"pitch",偏航:"yaw",齿轮箱:"gearbox",发电机:"generator",主轴承:"main_bearing",变流器:"converter",塔架与基础:"tower",主控与传感网:"control",主轴:"main_bearing",其他:"other"},Jo=(()=>{const t={};for(const e of Gn)t[Is[e]]=e;for(const[e,s]of Object.entries(Is))s in t||(t[s]=e);return t})(),Rs=t=>Is[String(t)]||String(t),Al=t=>Jo[String(t)]||String(t),xe=t=>{const e=Is[String(t)]||String(t);return Jo[e]?i("sys."+e):String(t??"")},ms=t=>xe(t),sc={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},nc={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},Ns=t=>sc[String(t)]||nc[String(t)],ql={证据:"evidence",机制:"mechanism",判级:"rating",排期:"schedule",动作:"action",验收:"acceptance"},Cn=t=>"st."+(t==="ex"?"excellent":t),qt=t=>String(t).replace("WTG","").replace(/^0/,"")+"#",Ct=(t,e=0)=>{if(t==null||typeof t=="number"&&isNaN(t))return"—";const s=Number(t);return isNaN(s)?"—":s.toLocaleString("zh-CN",{maximumFractionDigits:e,minimumFractionDigits:e})},jl=t=>{const e=Ns(t);return e?i(Cn(e)):String(t??"")},lc=["振动","温度","润滑","油液","报警","工单"];function Pl(t){const e=lc.map(n=>Ns((t?.[n]||{}).ostate)).filter(Boolean);if(!e.length)return"unk";if(e.includes("bad"))return"bad";if(e.includes("warn"))return"warn";const s=e.filter(n=>n!=="unk");return s.length?s.includes("ok")?"ok":"ex":"unk"}const Hl={bad:"critical",warn:"warning",unk:"unknown",ok:"good",ex:"excellent"},Ae=t=>String(t??""),oc={key:0},ic={class:"small"},ac={href:"#tab=component","data-back":"1"},rc={class:"panel mb"},cc={style:{display:"flex",height:"12px","border-radius":"4px",overflow:"hidden",margin:"8px 0 4px"}},uc={class:"small muted"},dc={class:"tblwrap"},pc={style:{width:"74px"}},fc={class:"r",style:{width:"96px"}},hc=["href"],mc={class:"small"},_c={class:"r"},vc=["href"],gc={key:0,class:"panel mb"},bc={style:{cursor:"pointer","font-weight":"600"}},$c={class:"tblwrap"},yc={style:{"margin-top":"10px"}},xc={style:{width:"74px"}},wc={class:"small"},kc={key:1,class:"panel"},Mc={class:"small"},Sc={key:0},Tc={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Ec={class:"eyebrow"},Cc={class:"panel mb"},Fc={style:{display:"grid","grid-template-columns":"repeat(auto-fit,minmax(170px,1fr))",gap:"10px"}},Oc=["data-sys"],Ac={class:"t"},qc={class:"bar"},jc=["innerHTML"],Pc={class:"small muted",style:{"margin-top":"8px"}},Hc={key:1,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},Lc={class:"small"},Dc={class:"eyebrow"},Ic={class:"panel mb"},Rc={class:"small muted",style:{"font-weight":"400"}},Nc={class:"small muted",style:{margin:"-2px 0 8px"}},Bc={class:"tblwrap"},Wc={class:"r"},Kc={class:"r"},Uc={class:"r"},Vc={class:"r"},zc={key:0,class:"badge"},Gc={class:"num small"},Yc={class:"r"},Jc={class:"r"},Xc={class:"r"},Zc={class:"r"},Qc={class:"small"},tu={class:"small muted"},eu={key:3,class:"panel mb"},su={class:"small"},nu={href:"#tab=vibration"},lu={class:"eyebrow"},ou={class:"panel mb"},iu={class:"tblwrap"},au={class:"r"},ru=["href"],cu={class:"r"},uu=["innerHTML"],du={class:"small"},pu=Rt({__name:"Component",props:{d:{},sys:{}},setup(t){const e=t,s=W(()=>e.d?.sysdist||{}),n=W(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),l=W(()=>e.sys?Al(e.sys):null),o=W(()=>Gn.filter(f=>s.value[f]).map(f=>{const _=s.value[f],v=_.报警||0,w=_.不可判||0,P=Object.values(_).reduce((z,ot)=>z+ot,0)||1,B=v>=8?"var(--critical)":v>=3?"var(--warning)":v?"var(--accent)":"var(--good)";return{segs:[["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]].filter(([z])=>_[z]).map(([z,ot])=>({col:ot,w:(_[z]/P*100).toFixed(1)})),line:i("cmp.alarm_n",{a:`<b style="color:${B}">${v}</b>`})+(w?i("cmp.unk_n",{u:w}):"")+i("cmp.fleet_n",{n:P}),s:f,dist:_,a:v,u:w,N:P,col:B}}));function c(f){return(f.syss||[]).map(_=>`<a href="/problem/${f.t}/${encodeURIComponent(Al(_)||_)}">${xe(_)}</a>`).join(" · ")}const r=W(()=>{const _=(((e.d?.control||{}).energy||{}).items||[]).filter(v=>v.k==="停机").map(v=>v.h)[0];return _??null}),u=W(()=>{const f=n.value?.表||[],_=Math.max(1,...f.map(v=>v.停机时长h));return f.map(v=>({r:v,maxH:_,sev:v.部件==="无记录停机"?"var(--unknown)":v.外部?"var(--accent)":v.占停机>=.06?"var(--critical)":v.占停机>=.03?"var(--warning)":"var(--good)"}))}),m=W(()=>{const f=l.value;if(!f)return null;const _=(e.d?.systems||{})[f]||[],v=s.value[f]||{},w=(e.d?.systems||{})[f+"·良好"]||[],P=z=>v[z]||0,B=Object.values(v).reduce((z,ot)=>z+ot,0)||1;return{s:f,N:B,gd:w,cnt:P,al:_.filter(z=>z.st==="报警"),un:_.filter(z=>z.st==="不可判"),dist:v}});return(f,_)=>m.value?(k(),T("section",oc,[a("p",ic,[a("a",ac,p(d(i)("ui.back_to",{tab:d(i)("tab.component")})),1)]),a("div",rc,[a("h3",null,p(d(i)("cmp.detail_head",{sys:d(xe)(m.value.s),n:m.value.N})),1),a("div",cc,[(k(),T(rt,null,xt([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([v,w])=>a("i",{key:v,style:Dt(`width:${(m.value.cnt(v)/m.value.N*100).toFixed(1)}%;background:var(--${w})`)},null,4)),64))]),a("div",uc,p(d(i)("cmp.counts",{a:m.value.cnt("报警"),u:m.value.cnt("不可判"),g:m.value.cnt("良好"),e:m.value.cnt("优秀")})),1)]),(k(!0),T(rt,null,xt([m.value.al,m.value.un],(v,w)=>xn((k(),T("div",{key:w,class:"panel mb"},[a("h3",null,p(w===0?d(i)("cmp.alarm_units"):d(i)("cmp.unk_units"))+" "+p(d(i)("cmp.n_units",{n:v.length})),1),a("div",dc,[a("table",null,[a("tr",null,[a("th",pc,p(d(i)("ui.unit")),1),a("th",null,p(d(i)("cmp.why")),1),a("th",fc,p(d(i)("cmp.detail")),1)]),(k(!0),T(rt,null,xt(v,P=>(k(),T("tr",{key:P.t},[a("td",null,[a("a",{href:`/turbine/${P.t}`},[a("b",null,p(d(qt)(P.t)),1)],8,hc)]),a("td",mc,p(P.why),1),a("td",_c,[a("a",{class:"small",href:`/problem/${P.t}/${encodeURIComponent(m.value.s)}`},p(d(i)("cmp.detail_link")),9,vc)])]))),128))])])])),[[sr,v.length]])),128)),m.value.gd.length?(k(),T("details",gc,[a("summary",bc,p(d(i)("cmp.good_units",{n:m.value.gd.length})),1),a("div",$c,[a("table",yc,[a("tr",null,[a("th",xc,p(d(i)("ui.unit")),1),a("th",null,p(d(i)("cmp.why")),1)]),(k(!0),T(rt,null,xt(m.value.gd,v=>(k(),T("tr",{key:v.t},[a("td",null,[a("b",null,p(d(qt)(v.t)),1)]),a("td",wc,p(v.why),1)]))),128))])])])):gt("",!0),!m.value.al.length&&!m.value.un.length&&!m.value.gd.length?(k(),T("div",kc,[a("p",Mc,p(d(i)("cmp.none")),1)])):gt("",!0)])):(k(),T(rt,{key:1},[t.d.sysmx_pending?(k(),T("section",Sc,[a("div",Tc,[a("b",null,p(d(i)("cmp.grading_pending")),1),ut(" "+p(d(i)("cmp.grading_pending_why",{span:t.d.sysmx_span||""})),1)])])):gt("",!0),a("section",null,[a("div",Ec,p(d(i)("cmp.by_system")),1),a("div",Cc,[a("div",Fc,[(k(!0),T(rt,null,xt(o.value,v=>(k(),T("div",{key:v.s,class:"sysc",role:"button",tabindex:"0","data-sys":d(Rs)(v.s),style:Dt(`cursor:pointer;border-left:3px solid ${v.col}`)},[a("div",Ac,[a("b",null,p(d(xe)(v.s)),1)]),a("div",qc,[(k(!0),T(rt,null,xt(v.segs,w=>(k(),T("i",{key:w.col,style:Dt(`width:${w.w}%;background:var(--${w.col})`)},null,4))),128))]),a("div",{class:"small muted",innerHTML:v.line},null,8,jc)],12,Oc))),128))]),a("p",Pc,p(d(i)("cmp.cards_note")),1)])]),t.d.rel&&t.d.rel.err?(k(),T("div",Hc,[a("p",Lc,p(d(i)("flt.block_err",{k:"rel",e:t.d.rel.err})),1)])):n.value?(k(),T(rt,{key:2},[a("div",Dc,p(d(i)("cmp.rel_eyebrow",{win:n.value.窗})),1),a("div",Ic,[a("h3",null,[ut(p(d(i)("cmp.rel_head"))+" ",1),a("span",Rc,p(d(i)("cmp.rel_meta",{t:n.value.总停机h,a:n.value.设备类停机h,b:n.value.外部类停机h})),1)]),a("p",Nc,p(d(i)("cmp.rel_note",{h:r.value==null?"":" "+d(Ct)(r.value)+"h"})),1),a("div",Bc,[a("table",null,[a("tr",null,[a("th",null,p(d(i)("cmp.rel_part")),1),a("th",null,p(d(i)("cmp.rel_h")),1),a("th",Wc,p(d(i)("cmp.rel_ev")),1),a("th",Kc,p(d(i)("cmp.rel_mtbo")),1),a("th",Uc,p(d(i)("cmp.rel_mdt")),1),a("th",Vc,p(d(i)("cmp.rel_units")),1),a("th",null,p(d(i)("cmp.rel_fm")),1)]),(k(!0),T(rt,null,xt(u.value,v=>(k(),T("tr",{key:v.r.部件},[a("td",null,[a("b",null,p(d(ms)(v.r.部件)),1),_[0]||(_[0]=ut(" ",-1)),v.r.外部?(k(),T("span",zc,p(d(i)("cmp.external")),1)):gt("",!0)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(v.r.停机时长h/v.maxH*72)}px;background:${v.sev}`)},null,4),a("span",Gc,p(v.r.停机时长h)+"h · "+p((v.r.占停机*100).toFixed(1))+"%",1)]),a("td",Yc,p(v.r.事件数),1),a("td",Jc,p(v.r.外部?"—":v.r.MTBF_h||"—"),1),a("td",Xc,p(v.r.MDT_h),1),a("td",Zc,p(v.r.影响台数),1),a("td",Qc,p(v.r.典型失效模式||"—"),1)]))),128))])]),a("p",tu,p(n.value.口径),1)])],64)):gt("",!0),t.d.fus&&!t.d.fus.err?(k(),T("div",eu,[a("p",su,[ut(p(d(i)("cmp.fusion_moved"))+" ",1),a("a",nu,[a("b",null,p(d(i)("tab.vibration")),1)]),ut(" "+p(d(i)("cmp.fusion_n",{n:(t.d.fus.表||[]).length})),1)])])):gt("",!0),a("div",lu,p(d(i)("cmp.cross_eyebrow")),1),a("div",ou,[a("h3",null,p(d(i)("cmp.watch_head",{n:(t.d.watch||[]).length})),1),a("div",iu,[a("table",null,[a("tr",null,[a("th",null,p(d(i)("ui.unit")),1),a("th",au,p(d(i)("cmp.n_sys")),1),a("th",null,p(d(i)("cmp.hit_sys")),1),a("th",null,p(d(i)("cmp.basis")),1)]),(k(!0),T(rt,null,xt(t.d.watch||[],v=>(k(),T("tr",{key:v.t},[a("td",null,[a("a",{href:`/turbine/${v.t}`},[a("b",null,p(d(qt)(v.t)),1)],8,ru)]),a("td",cu,p(v.n),1),a("td",{class:"small",innerHTML:c(v)},null,8,uu),a("td",du,p(v.why),1)]))),128))])])])],64))}}),fu=["innerHTML"],Yt=Rt({__name:"LegacyChart",props:{html:{}},setup(t){return(e,s)=>(k(),T("div",{class:"legacy-chart",innerHTML:t.html},null,8,fu))}}),hu=typeof window<"u"?window:globalThis;hu.__charts=function(t){const{t:e,fmt:s,esc:n,dv:l,EN:o}=t,c=/[㐀-鿿]/,r=C=>o&&c.test(String(C??"")),u=C=>(C=t.displayText?t.displayText(C):C==null?"":String(C),r(C)&&t.verb&&t.verb(),C),m=C=>{const G=u(C);return`<title${r(G)?' class="verbatim"':""}>${n(G)}</title>`},f=(C,G,J)=>`<svg class="dt" viewBox="0 0 ${C} ${G}" style="width:${C}px;max-width:100%;height:auto" role="img">${J}</svg>`,_=(C,G,J,j={})=>`<text x="${(+C).toFixed(1)}" y="${(+G).toFixed(1)}" font-size="${j.fs||9}" fill="${j.fill||"var(--muted)"}"${j.anchor?` text-anchor="${j.anchor}"`:""}${j.op?` opacity="${j.op}"`:""}${j.w?` font-weight="${j.w}"`:""}${j.tr?` transform="${j.tr}"`:""}${j.cls?` class="${j.cls}"`:""}>${J}</text>`,v=(C,G,J,j={})=>{const K=u(J);return _(C,G,n(K),r(K)?Object.assign({},j,{cls:"verbatim"}):j)},w={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},P=C=>w[C]?e(w[C]):u(C);function B(C){const G=(C||[]).filter(x=>x&&x.n>0&&x.med>0);if(G.length<3)return`<p class="small muted">${e("ch.quad.few")}</p>`;const J=720,j=330,K=58,N=16,F=44,H=16,U=x=>Math.log10(x),I=G.map(x=>U(x.n)),V=G.map(x=>U(x.med)),tt=Math.min(...I)-.15,nt=Math.max(...I)+.15,X=Math.min(...V)-.15,ct=Math.max(...V)+.15,_t=x=>K+(U(x)-tt)/(nt-tt)*(J-K-N),it=x=>j-F-(U(x)-X)/(ct-X)*(j-H-F),bt=G.map(x=>x.n).sort((x,y)=>x-y),vt=bt[Math.floor(bt.length/2)],lt=_t(vt),Q=it(600),h=Math.max(...G.map(x=>x.nt)),g=G.map(x=>{const y=3+Math.sqrt(x.nt/h)*7,Z=x.n>=vt&&x.med>=600,R=Z?"var(--critical)":"var(--accent)";return`<circle cx="${_t(x.n).toFixed(1)}" cy="${it(x.med).toFixed(1)}" r="${y.toFixed(1)}" fill="${R}" fill-opacity=".5" stroke="${R}" stroke-width="1">${m(`${x.code} ${u(x.k)}
- `+e("ch.quad.tip",{n:x.n,med:x.med,h:x.h,nt:x.nt}))}</circle>`}).join(""),b=G.filter(x=>x.n>=vt||x.med>=600).slice(0,8).map(x=>_(_t(x.n)+9,it(x.med)+3,n(x.code))).join(""),$=(x,y,Z,R)=>_(x,y,Z,{fs:10,op:.85})+_(x,y+12,R,{fs:8.5,op:.6}),M=x=>x>=3600?x/3600+"h":x>=60?x/60+"min":x+"s",E=[10,60,600,3600,36e3].filter(x=>U(x)>=X&&U(x)<=ct).map(x=>`<line x1="${K}" y1="${it(x).toFixed(1)}" x2="${J-N}" y2="${it(x).toFixed(1)}" stroke="var(--line)" stroke-opacity=".4"/>`+_(K-6,it(x)+3,M(x),{anchor:"end"})).join(""),O=[1,10,100,1e3,1e4].filter(x=>U(x)>=tt&&U(x)<=nt).map(x=>_(_t(x),j-F+14,x,{anchor:"middle"})).join(""),A=H+(j-F-H)/2;return f(J,j,`${E}${O}
- <line x1="${lt.toFixed(1)}" y1="${H}" x2="${lt.toFixed(1)}" y2="${j-F}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- <line x1="${K}" y1="${Q.toFixed(1)}" x2="${J-N}" y2="${Q.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- ${$(K+6,H+12,e("ch.quad.q1"),e("ch.quad.q1s"))}${$(J-N-130,H+12,e("ch.quad.q2"),e("ch.quad.q2s"))}
- ${$(K+6,j-F-18,e("ch.quad.q3"),e("ch.quad.q3s"))}${$(J-N-130,j-F-18,e("ch.quad.q4"),e("ch.quad.q4s"))}
- ${g}${b}
- ${_(K+(J-N-K)/2,j-6,e("ch.quad.xlab"),{fs:9.5,anchor:"middle"})}
- ${_(14,A,e("ch.quad.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${A.toFixed(1)})`})}`)}function z(C){const G=C.months||[],J=C.vals||[],j=C.cov||G.map(()=>1),K=C.per_day||[],N=720,F=250,H=48,U=14,I=52,V=18,tt=G.length||1,nt=Math.max(...K.filter(vt=>vt!=null),1),X=(N-H-U)/tt;let ct="",_t="";G.forEach((vt,lt)=>{const Q=K[lt],h=j[lt]<.5;if(Q==null)return;const g=Q/nt*(F-V-I),b=H+lt*X+X*.16,$=F-I-g,M=b+X*.34;ct+=`<rect x="${b.toFixed(1)}" y="${$.toFixed(1)}" width="${(X*.68).toFixed(1)}" height="${g.toFixed(1)}" rx="2" fill="${h?"var(--muted)":"var(--accent)"}" fill-opacity="${h?.32:.8}" stroke="${h?"var(--warning)":"none"}" stroke-dasharray="${h?"3 2":""}"><title>${e("ch.rate.tip",{m:vt,v:Q,n:J[lt],cov:(j[lt]*100).toFixed(0)})}</title></rect>`,_t+=_(M,$-4,Q,{anchor:"middle"})+_(M,F-I+13,e("ch.rate.month",{m:vt.slice(5)}),{anchor:"middle"})+_(M,F-I+25,e("ch.rate.n",{n:J[lt]}),{fs:8,op:.65,anchor:"middle"})+(h?_(M,F-I+37,e("ch.rate.days",{d:Math.round(j[lt]*30)}),{fs:8,fill:"var(--warning)",anchor:"middle"}):"")});const it=[0,.5,1].map(vt=>_(H-6,F-I-vt*(F-V-I)+3,Math.round(nt*vt),{anchor:"end"})).join(""),bt=V+(F-I-V)/2;return f(N,F,`<line x1="${H}" y1="${F-I}" x2="${N-U}" y2="${F-I}" stroke="var(--line)"/><line x1="${H}" y1="${V}" x2="${H}" y2="${F-I}" stroke="var(--line)"/>
- ${ct}${_t}${it}${_(14,bt,e("ch.rate.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${bt.toFixed(1)})`})}`)}function ot(C){if(!C||!C.theo)return"";const G=720,J=300,j=8,K=8,N=30,F=64,H=(C.items||[]).filter(it=>it.loss>0),U=H.length+2,I=(G-j-K)/U,V=(J-N-F)/C.theo;let tt=C.theo,nt="",X=0;const ct=(it,bt,vt,lt,Q)=>`<rect x="${(j+it*I+I*.14).toFixed(1)}" y="${bt.toFixed(1)}" width="${(I*.72).toFixed(1)}" height="${Math.max(vt,1.2).toFixed(1)}" rx="2" fill="${lt}" fill-opacity="${Q}"/>`,_t=(it,bt,vt,lt,Q)=>_(j+it*I+I*.5,bt-6,lt,{fs:10,fill:Q||"var(--ink)",anchor:"middle",w:600})+_(j+it*I+I*.5,J-F+14,vt,{fs:8.5,anchor:"middle"});return nt+=ct(0,J-F-C.theo*V,C.theo*V,"var(--accent)",.45)+_t(0,J-F-C.theo*V,e("ch.wf.theo"),s(C.theo)),H.forEach(it=>{X++;const bt=J-F-tt*V,vt=it.loss*V;tt-=it.loss;const lt=P(it.k);nt+=ct(X,bt,vt,"var(--critical)",.55)+`<line x1="${(j+(X-1)*I+I*.86).toFixed(1)}" y1="${bt.toFixed(1)}" x2="${(j+X*I+I*.14).toFixed(1)}" y2="${bt.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="2 2" stroke-opacity=".6"/>`+_t(X,bt,n(lt.length>12?lt.slice(0,11)+"…":lt),"−"+s(it.loss),"var(--critical)")+m(e("ch.wf.tip",{nm:lt,loss:s(it.loss),pct:(it.loss/C.theo*100).toFixed(1),h:s(it.h)}))}),nt+=ct(U-1,J-F-C.act*V,C.act*V,"var(--good)",.6)+_t(U-1,J-F-C.act*V,e("ch.wf.act"),s(C.act),"var(--good)"),f(G,J,`<line x1="${j}" y1="${J-F}" x2="${G-K}" y2="${J-F}" stroke="var(--line)"/>${_(j,14,"MWh",{fs:9.5})}${nt}`)}function q(C,G){const J=(C||[]).filter(y=>y.MTBF_h&&y.MDT_h);if(J.length<3)return`<p class="small muted">${e("ch.ram.few")}</p>`;const j=720,K=340,N=56,F=112,H=48,U=16,I=y=>Math.log10(y),V=J.map(y=>I(y.MTBF_h)),tt=J.map(y=>y.MDT_h),nt=Math.min(...V)-.08,X=Math.max(...V)+.08,ct=0,_t=Math.max(...tt)*1.12,it=y=>N+(I(y)-nt)/(X-nt)*(j-N-F),bt=y=>K-H-(y-ct)/(_t-ct)*(K-U-H),vt=y=>{const Z=y.slice().sort((R,et)=>R-et);return Z[Math.floor(Z.length/2)]},lt=vt(J.map(y=>y.MTBF_h)),Q=vt(tt),h=it(lt),g=bt(Q),b=Math.max(...J.map(y=>y.停机时长h)),$=y=>u(G?G(y.部件):y.部件),M=J.map(y=>{const Z=4+Math.sqrt(y.停机时长h/b)*13,R=y.外部,et=y.MTBF_h<lt&&y.MDT_h>=Q,at=R?"var(--muted)":et?"var(--critical)":"var(--accent)";return`<circle cx="${it(y.MTBF_h).toFixed(1)}" cy="${bt(y.MDT_h).toFixed(1)}" r="${Z.toFixed(1)}" fill="${at}" fill-opacity="${R?.3:.42}" stroke="${at}" stroke-width="1.2" stroke-dasharray="${R?"3 2":""}">${m(e("ch.ram.tip",{p:$(y),mtbf:y.MTBF_h,mdt:y.MDT_h,h:y.停机时长h,n:y.事件数,u:y.影响台数})+(R?e("ch.ram.tip_ext"):""))}</circle>`+v(it(y.MTBF_h)+Z+4,bt(y.MDT_h)+3.5,u($(y)).slice(0,o?14:7),{fs:9.5,fill:R?"var(--muted)":"currentColor"})}).join(""),E=(y,Z,R,et,at)=>_(y,Z,et,{fs:10,anchor:R,op:.9})+_(y,Z+12,at,{fs:8.5,anchor:R,op:.62}),O=[1e3,2e3,5e3,1e4,2e4].filter(y=>I(y)>=nt&&I(y)<=X).map(y=>`<line x1="${it(y).toFixed(1)}" y1="${U}" x2="${it(y).toFixed(1)}" y2="${K-H}" stroke="var(--line)" stroke-opacity=".3"/>`+_(it(y),K-H+14,y>=1e3?y/1e3+"k":y,{anchor:"middle"})).join(""),A=[0,5,10,15,20].filter(y=>y<=_t).map(y=>_(N-6,bt(y)+3,y,{anchor:"end"})).join(""),x=U+(K-H-U)/2;return f(j,K,`${O}${A}<line x1="${N}" y1="${K-H}" x2="${j-F}" y2="${K-H}" stroke="var(--line)"/><line x1="${N}" y1="${U}" x2="${N}" y2="${K-H}" stroke="var(--line)"/>
- <line x1="${h.toFixed(1)}" y1="${U}" x2="${h.toFixed(1)}" y2="${K-H}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- <line x1="${N}" y1="${g.toFixed(1)}" x2="${j-F}" y2="${g.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- ${E(N+6,U+12,"start",e("ch.ram.q1"),e("ch.ram.q1s"))}${E(j-F-6,U+12,"end",e("ch.ram.q2"),e("ch.ram.q2s"))}
- ${E(N+6,K-H-16,"start",e("ch.ram.q3"),e("ch.ram.q3s"))}${E(j-F-6,K-H-16,"end",e("ch.ram.q4"),e("ch.ram.q4s"))}
- ${M}${_(N+(j-F-N)/2,K-8,e("ch.ram.xlab"),{fs:9.5,anchor:"middle"})}
- ${_(13,x,e("ch.ram.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 13 ${x.toFixed(1)})`})}
- <circle cx="${j-F+16}" cy="${U+40}" r="5" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>${_(j-F+26,U+44,e("ch.ram.equip"))}
- <circle cx="${j-F+16}" cy="${U+58}" r="5" fill="var(--muted)" fill-opacity=".3" stroke="var(--muted)" stroke-dasharray="3 2"/>${_(j-F+26,U+62,e("ch.ram.ext"))}
- ${_(j-F+6,U+84,e("ch.ram.area"),{fs:8.5})}${_(j-F+6,U+98,e("ch.ram.median"),{fs:8.5})}`)}function D(C,G){const J=(C||[]).find(nt=>nt.部件==="无记录停机"),j=J?J.停机时长h:0,K=(C||[]).filter(nt=>nt.部件==="未归类").reduce((nt,X)=>nt+X.停机时长h,0),N=G-j-K,F=720,H=54,U=(nt,X,ct,_t)=>`<rect x="${nt.toFixed(1)}" y="14" width="${Math.max(X,1).toFixed(1)}" height="22" rx="3" fill="${ct}" fill-opacity="${_t}"/>`,I=N/G*F,V=K/G*F,tt=j/G*F;return f(F,H,`${U(0,I,"var(--accent)",.55)}${U(I,V,"var(--warning)",.5)}${U(I+V,tt,"var(--critical)",.5)}
- ${_(4,10,e("ch.attrib.ok",{h:Math.round(N),p:(N/G*100).toFixed(0)}))}
- ${_(I+V+tt-2,10,e("ch.attrib.none",{h:Math.round(j),p:(j/G*100).toFixed(0)}),{fill:"var(--critical)",anchor:"end"})}
- ${_(I+V/2,50,e("ch.attrib.uncls",{h:Math.round(K)}),{fill:"var(--warning)",anchor:"middle"})}`)}function S(C,G,J){const j=(C||[]).filter($=>$&&$.v>0);if(!j.length)return`<p class="small muted">${e("ch.pareto.none")}</p>`;const K=520,N=236,F=46,H=40,U=40,I=14,V=j.length,tt=j.reduce(($,M)=>$+M.v,0),nt=Math.max(...j.map($=>$.v)),X=(K-F-H)/V,ct=$=>{$=u($);const M=String($).match(/^([0-9]+)/);return M?M[1]:String($).slice(0,4)};let _t=0,it="",bt=[],vt="",lt=null;j.forEach(($,M)=>{const E=$.v/nt*(N-I-U),O=F+M*X+X*.14,A=N-U-E;it+=`<rect x="${O.toFixed(1)}" y="${A.toFixed(1)}" width="${(X*.72).toFixed(1)}" height="${E.toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity="${M<3?.85:.45}">${m(`${u($.k)}: ${s($.v)}${G}`)}</rect>`,_t+=$.v;const x=_t/tt;lt===null&&x>=.8&&(lt=M+1);const y=F+M*X+X/2,Z=I+(1-x)*(N-I-U);bt.push(`${y.toFixed(1)},${Z.toFixed(1)}`),vt+=`<circle cx="${y.toFixed(1)}" cy="${Z.toFixed(1)}" r="2.4" fill="var(--warning)">${m(e("ch.pareto.cumtip",{k:u($.k),p:(x*100).toFixed(0)}))}</circle>`});const Q=I+.2*(N-I-U),h=j.map(($,M)=>v(F+M*X+X/2,N-U+13,ct($.k),{anchor:"middle"})).join(""),g=[0,.5,1].map($=>_(F-5,N-U-$*(N-I-U)+3,s(Math.round(nt*$)),{anchor:"end"})).join("")+[0,.5,1].map($=>_(K-H+5,I+(1-$)*(N-I-U)+3,Math.round($*100)+"%",{fill:"var(--warning)"})).join(""),b=j.slice(0,3).map($=>`<b>${r(ct($.k))?`<span class="verbatim">${n(u(ct($.k)))}</span>`:n(ct($.k))}</b> ${l(u($.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · ");return f(K,N,`<line x1="${F}" y1="${N-U}" x2="${K-H}" y2="${N-U}" stroke="var(--line)"/><line x1="${F}" y1="${I}" x2="${F}" y2="${N-U}" stroke="var(--line)"/>${it}
- <line x1="${F}" y1="${Q.toFixed(1)}" x2="${K-H}" y2="${Q.toFixed(1)}" stroke="var(--warning)" stroke-dasharray="4 3" stroke-opacity=".7"/>
- ${_(K-H-3,Q-4,e("ch.pareto.cum80"),{fill:"var(--warning)",anchor:"end"})}
- <polyline points="${bt.join(" ")}" fill="none" stroke="var(--warning)" stroke-width="1.5"/>${vt}${h}${g}
- ${_(F+(K-H-F)/2,N-3,e("ch.pareto.xlab"),{fs:8.5,anchor:"middle"})}`)+`<p class="small muted" style="margin-top:5px;line-height:1.6">${lt?`<b>${e("ch.pareto.key",{k:lt})}</b> (${e("ch.pareto.total",{n:V,tot:s(Math.round(tt)),unit:G})})`:e("ch.pareto.total",{n:V,tot:s(Math.round(tt)),unit:G})}<br>${e("ch.pareto.top3")}${b}${J?"<br>"+J:""}</p>`}function L(C){const G=nt=>nt.indexOf("限电")>=0||nt.indexOf("调度")>=0?0:nt==="停机"?1:2,J=[e("ch.blame.n1"),e("ch.blame.n2"),e("ch.blame.n3")],j=[e("ch.blame.d1"),e("ch.blame.d2"),e("ch.blame.d3")],K=["var(--accent)","var(--critical)","var(--muted)"],N=[0,0,0];(C.items||[]).forEach(nt=>{N[G(nt.k)]+=nt.loss});const F=N.reduce((nt,X)=>nt+X,0)||1,H=500,U=44;let I=0,V="";N.forEach((nt,X)=>{const ct=nt/F*H;V+=`<rect x="${I.toFixed(1)}" y="12" width="${Math.max(ct,1).toFixed(1)}" height="26" rx="3" fill="${K[X]}" fill-opacity=".55"><title>${J[X]}: ${s(Math.round(nt))} MWh</title></rect>`+(ct>46?_(I+ct/2,29,(nt/F*100).toFixed(0)+"%",{fs:10.5,fill:"currentColor",anchor:"middle",w:600}):""),I+=ct});const tt=N.map((nt,X)=>`<div style="display:flex;align-items:baseline;gap:7px;margin-top:5px"><i style="flex:none;width:9px;height:9px;border-radius:2px;background:${K[X]};opacity:.55"></i><span style="font-weight:600">${J[X]}</span><span class="num">${s(Math.round(nt))} MWh</span><span class="small muted">${j[X]}</span></div>`).join("");return f(H,U,`${_(0,8,e("ch.blame.title",{tot:s(Math.round(F))}))}${V}`)+tt}function mt(C){const G=C.months||C.x||[],J=G.length;if(!J)return"";const j=620,K=250,N=52,F=34,H=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],U=[];if((C.series||[]).forEach(Q=>Q.vals.forEach(h=>{h!=null&&h===h&&U.push(h)})),(C.thresholds||[]).forEach(Q=>{Q&&Q.v!=null&&U.push(Q.v)}),!U.length)return"";let I=C.zero===!1?Math.min(...U):Math.min(0,...U),V=Math.max(...U);I===V&&(I-=1,V+=1);const tt=(V-I)*.08;V+=tt,C.zero===!1&&(I-=tt);const nt=Q=>N+Q/Math.max(J-1,1)*(j-N-12),X=Q=>K-F-(Q-I)/(V-I)*(K-F-14),ct=(Q,h)=>{let g=[],b=[];return Q.forEach(($,M)=>{$==null||$!==$?(b.length&&g.push(b),b=[]):b.push(`${nt(M).toFixed(1)},${X($).toFixed(1)}`)}),b.length&&g.push(b),g.map($=>`<polyline points="${$.join(" ")}" fill="none" stroke="${h}" stroke-width="1.8"/>`).join("")};let _t=(C.series||[]).map((Q,h)=>ct(Q.vals,H[h%4])).join("");const it=Math.max(1,Math.ceil(J/8));let bt="";for(let Q=0;Q<J;Q+=it)bt+=_(nt(Q),K-10,String(G[Q]).includes("-")?String(G[Q]).slice(2,7):String(G[Q]),{fs:10,anchor:"middle"});let vt="";for(let Q=0;Q<5;Q++){const h=I+(V-I)*Q/4;vt+=_(N-6,X(h)+3,h.toFixed(Math.abs(V)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${N}" x2="${j-12}" y1="${X(h).toFixed(1)}" y2="${X(h).toFixed(1)}" stroke="var(--line)"/>`}(C.thresholds||[]).forEach(Q=>{!Q||Q.v==null||(_t+=`<line x1="${N}" x2="${j-12}" y1="${X(Q.v).toFixed(1)}" y2="${X(Q.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(Q.label?v(N+6,X(Q.v)-4,Q.label,{fs:10}):""))}),C.xlab&&(_t+=v((N+j)/2,K-1,C.xlab,{fs:10,anchor:"middle"}));const lt='<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+(C.series||[]).map((Q,h)=>`<span><i style="background:${H[h%4]}"></i>${r(Q.name)?`<span class="verbatim">${n(u(Q.name))}</span>`:n(Q.name)}</span>`).join("")+"</div>";return f(j,K,`${vt}${_t}${bt}`)+lt}function st(C,G){const F=(H,U,I)=>{const V=Object.entries(U.分组||{}).map(([lt,Q])=>({v:parseFloat(lt),n:Q,raw:lt}));if(!V.length)return"";const tt=Math.min(...V.map(lt=>lt.v)),nt=Math.max(...V.map(lt=>lt.v)),X=(nt-tt)*.22||1,ct=tt-X,_t=nt+X,it=lt=>54+(lt-ct)/(_t-ct)*412,bt=Math.max(...V.map(lt=>lt.n)),vt=U.中位;return _(48,H+3,I,{fs:9.5,anchor:"end"})+`<line x1="54" y1="${H}" x2="466" y2="${H}" stroke="var(--line)"/><line x1="${it(vt).toFixed(1)}" y1="${H-24}" x2="${it(vt).toFixed(1)}" y2="${H+18}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".55"/>`+_(it(vt),H+28,e("ch.cap.median",{v:vt}),{fs:8.5,anchor:"middle"})+V.map(lt=>{const Q=5+Math.sqrt(lt.n/bt)*9;return`<circle cx="${it(lt.v).toFixed(1)}" cy="${H}" r="${Q.toFixed(1)}" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>`+_(it(lt.v),H-Q-5,n(lt.raw),{anchor:"middle",fill:"currentColor"})+_(it(lt.v),H+3.5,lt.n,{anchor:"middle",fill:"var(--panel)",w:600})}).join("")};return f(500,158,`${F(44,C||{},e("ch.cap.p"))}${F(120,G||{},e("ch.cap.w"))}${_(466,12,e("ch.cap.legend"),{fs:8.5,anchor:"end"})}`)}function Y(C,G){const J=C.离群||[],j=C.全场同档差中位||0,K=500,N=34+J.length*26,F=52,H=58,U=Math.max(j,...J.map(tt=>tt.平均偏))*1.18||1,I=tt=>F+tt/U*(K-F-H),V=J.map((tt,nt)=>{const X=30+nt*26;return _(F-6,X+10,n(G(tt.t)),{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${F}" y="${X+1}" width="${(I(tt.平均偏)-F).toFixed(1)}" height="13" rx="2" fill="var(--warning)" fill-opacity=".62"/>`+_(I(tt.平均偏)+5,X+11,tt.平均偏+"°",{fill:"var(--warning)"})}).join("");return f(K,N,`<line x1="${I(j).toFixed(1)}" y1="18" x2="${I(j).toFixed(1)}" y2="${N-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${_(I(j),12,e("ch.beta.median",{v:j}),{fs:8.5,fill:"var(--good)"})}<line x1="${F}" y1="18" x2="${F}" y2="${N-4}" stroke="var(--line)"/>${V}`)}function dt(C){const G=Object.entries(C||{}),J=500,j=26+G.length*30,K=96,N=76,F=3.7,H=Math.max(F*1.35,...G.map(([,V])=>V.极差/V.σ)),U=V=>K+V/H*(J-K-N),I=G.map(([V,tt],nt)=>{const X=22+nt*30,ct=tt.极差/tt.σ,_t=ct>F;return v(K-6,X+11,V,{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${K}" y="${X+2}" width="${(U(ct)-K).toFixed(1)}" height="12" rx="2" fill="${_t?"var(--warning)":"var(--accent)"}" fill-opacity=".55"/>`+_(U(ct)+5,X+11,e("ch.ruler.row",{r:ct.toFixed(1),s:tt.σ}))}).join("");return f(J,j,`<line x1="${U(F).toFixed(1)}" y1="14" x2="${U(F).toFixed(1)}" y2="${j-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${_(U(F),10,e("ch.ruler.norm"),{fs:8.5,fill:"var(--good)",anchor:"middle"})}${I}`)}function Kt(C){const G=C.kind;if(G==="vib")return`<p class="small">${r(C.text||C.comp)?`<span class="verbatim">${n(u(C.text||C.comp))}</span>`:n(C.text||C.comp||"")}</p>`;if(G==="vibbar"){const b=C.rows||[];if(!b.length)return"";const $=O=>{const A=Math.abs(O);return A>=100?O.toFixed(0):A>=10?O.toFixed(1):A>=1?O.toFixed(2):A>=.01?O.toFixed(3):Number(O).toExponential(1)},M={};b.forEach(O=>{(M[O.指标]=M[O.指标]||[]).push(O)});let E=`<p class="small muted">${e("fig.vibbar_note")}</p>`;for(const[O,A]of Object.entries(M))E+=`<div class="tblwrap" style="margin-top:8px"><b class="small muted">${l(O)}</b><table style="margin-top:2px"><tr><th>${e("fig.point")}</th><th class="r">${e("fig.x_median")}</th><th class="r">${e("fig.this_unit")}</th><th class="r">${e("fig.fleet_median")}</th><th class="r">z</th><th class="r">${e("fig.trend")}</th></tr>`+A.map(x=>{const y=Math.abs(x.z)>=3?"var(--critical)":Math.abs(x.z)>=2?"var(--warning)":"var(--good)";return`<tr><td class="small">${l(x.测点)}</td><td class="r" style="color:${y};font-weight:600">${x.倍中位!=null?x.倍中位+"×":"—"}</td><td class="r small">${$(x.本台)}</td><td class="r small muted">${$(x.全场中位)}</td><td class="r small" style="color:${Math.abs(x.z)>=3?"var(--critical)":"var(--muted)"}">${x.z}</td><td class="r small" style="color:${x.六窗比>1.15?"var(--warning)":"var(--muted)"}">${x.六窗比!=null?x.六窗比+"×":"—"}</td></tr>`}).join("")+"</table></div>";return E}const J=C.months||C.x||[],j=J.length;if(!j)return"";const K=620,N=250,F=52,H=34,U=14,I=[];if(G==="band"?[C.self,C.med,C.q1,C.q3].forEach(b=>(b||[]).forEach($=>{$!=null&&$===$&&I.push($)})):G==="bars"?(I.push(0),(C.vals||[]).forEach(b=>{b!=null&&b===b&&I.push(b)})):G==="xy"?[C.self,C.med].forEach(b=>(b||[]).forEach($=>{$!=null&&$===$&&I.push($)})):(C.series||[]).forEach(b=>(b.vals||[]).forEach($=>{$!=null&&$===$&&I.push($)})),(C.thresholds||[]).forEach(b=>{b&&b.v!=null&&I.push(b.v)}),!I.length)return"";let V=Math.min(...I),tt=Math.max(...I);V===tt&&(V-=1,tt+=1);const nt=(tt-V)*.08;V-=nt,tt+=nt;const X=b=>F+b/Math.max(j-1,1)*(K-F-12),ct=b=>N-H-(b-V)/(tt-V)*(N-H-U),_t=(b,$,M)=>{let E=[],O=[];return(b||[]).forEach((A,x)=>{A==null||A!==A?(O.length&&E.push(O),O=[]):O.push(`${X(x).toFixed(1)},${ct(A).toFixed(1)}`)}),O.length&&E.push(O),E.map(A=>`<polyline points="${A.join(" ")}" fill="none" stroke="${$}" stroke-width="${M||1.8}"/>`).join("")};let it="";if(G==="band"&&C.q1&&C.q3){const b=[],$=[];C.q3.forEach((M,E)=>{M!=null&&b.push(`${X(E).toFixed(1)},${ct(M).toFixed(1)}`)});for(let M=C.q1.length-1;M>=0;M--)C.q1[M]!=null&&$.push(`${X(M).toFixed(1)},${ct(C.q1[M]).toFixed(1)}`);b.length&&$.length&&(it+=`<polygon points="${b.join(" ")} ${$.join(" ")}" fill="var(--unknown)" fill-opacity=".18"/>`)}if(G==="bars"){const b=Math.max(3,(K-F-20)/j*.6),$=ct(Math.max(V,0));it+=(C.vals||[]).map((M,E)=>M==null||M!==M?"":`<rect x="${(X(E)-b/2).toFixed(1)}" y="${ct(M).toFixed(1)}" width="${b.toFixed(1)}" height="${Math.max($-ct(M),.8).toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity=".75"/>`).join("")}C.med&&(it+=_t(C.med,"var(--muted)",1.7)),C.self&&(it+=_t(C.self,"var(--critical)",2.1)+(C.self||[]).map((b,$)=>b==null||b!==b?"":`<circle cx="${X($).toFixed(1)}" cy="${ct(b).toFixed(1)}" r="2.4" fill="var(--critical)"/>`).join(""));const bt=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"];(C.series||[]).forEach((b,$)=>{it+=_t(b.vals,bt[$%4])}),(C.thresholds||[]).forEach(b=>{b==null||b.v==null||(it+=`<line x1="${F}" x2="${K-12}" y1="${ct(b.v).toFixed(1)}" y2="${ct(b.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(b.label?v(F+6,ct(b.v)-4,b.label,{fs:10}):""))});const vt=Math.max(1,Math.ceil(j/8));let lt="";for(let b=0;b<j;b+=vt)lt+=_(X(b),N-10,String(J[b]).includes("-")?String(J[b]).slice(2,7):String(J[b]),{fs:10,anchor:"middle"});let Q="";for(let b=0;b<5;b++){const $=V+(tt-V)*b/4;Q+=_(F-6,ct($)+3,$.toFixed(Math.abs(tt)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${F}" x2="${K-12}" y1="${ct($).toFixed(1)}" y2="${ct($).toFixed(1)}" stroke="var(--line)"/>`}const h=G==="band"?_(K-190,12,e("fig.this_unit"),{fill:"var(--critical)",fs:10})+_(K-110,12,e("fig.fleet_median"),{fs:10})+_(K-40,12,e("fig.quartile"),{fs:10}):(C.series||[]).length&&(C.series||[]).length<=2?C.series.map((b,$)=>_(K-12-(C.series.length-1-$)*118,12,"— "+n(u(b.name)),{fill:bt[$%4],fs:10,anchor:"end"})).join(""):"",g=(C.series||[]).length>2?'<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+C.series.map((b,$)=>`<span><i style="background:${bt[$%4]}"></i>${r(b.name)?`<span class="verbatim">${n(u(b.name))}</span>`:n(b.name)}</span>`).join("")+"</div>":"";return f(K,N,`${Q}${it}${lt}${h}`)+g}return{quadChart:B,rateChart:z,waterfall:ot,ramChart:q,attribBar:D,paretoChart:S,blameBar:L,lossName:P,multiline:mt,capAxis:st,betaBar:Y,rulerBar:dt,fig:Kt}};const mu=[[/DE[/]NDE/g,"驱动端与非驱动端"],[/GenDE/g,"发电机驱动端"],[/GenNDE/g,"发电机非驱动端"],[/HS_gen2?/g,"高速轴发电机侧"],[/HS_rot/g,"高速轴转子侧"],[/IMS/g,"中间轴"],[/(?<![A-Za-z])NDE(?![A-Za-z])/g,"非驱动端"],[/(?<![A-Za-z])DE(?![A-Za-z])/g,"驱动端"],[/内圈BPFI/g,"内圈特征频率"],[/外圈BPFO/g,"外圈特征频率"],[/BPFI/g,"内圈特征频率"],[/BPFO/g,"外圈特征频率"],[/FTF/g,"保持架特征频率"],[/BSF/g,"滚动体特征频率"],[/TD_1R/g,"时域单转指标"],[/Peak/g,"冲击峰值"],[/Rms/gi,"有效值"],[/([0-9]+(?:[.][0-9]+)?)[ ]*阶/g,"$1 倍轴频"],[/[(]o([0-9]+(?:[.][0-9]+)?)[)]/g,"(轴频 $1 倍)"],[/×p90/g,"×全场90分位"],[/×fleet/g,"×全场中位"],[/六窗/g,"六个观测窗"],[/([0-9])窗/g,"$1 个观测窗"],[/宽带/g,"宽频带总量"],[/台阶/g,"阶跃上升"],[/缓升/g,"缓慢上升"],[/回落/g,"回落至"],[/全净|六窗全净/g,"各窗均干净"],[/清洁/g,"干净"],[/回归/g,"回到常态"],[/同族/g,"同批次共性 (见该批主台)"],[/族第([^ ]+)台/g,"同批次第$1台"],[/族/g,"批次共性组"],[/gain异常/g,"测点增益异常"],[/gain/g,"测点增益"],[/[(]销[)]/g,"(已销案)"],[/梯度/g,"沿链梯度最高点"],[/周期主导/g,"周期成分主导"],[/急性事件/g,"突发事件"],[/慢性/g,"长期"],[/主异常在/g,"主要异常位于"]],ht=t=>String(t??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),Xo=t=>String(t??""),yt=t=>ht(t),_u={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},vu={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},Yn=t=>_u[String(t)]||vu[String(t)],Zo={bad:"var(--critical)",warn:"var(--warning)",unk:"var(--unknown)",ok:"var(--good)",ex:"var(--excellent)"},Qo={优秀:"var(--excellent)",良好:"var(--good)",报警:"var(--warning)",危险:"var(--critical)",不可判:"var(--unknown)",监测不可用:"var(--unknown)",无监测:"var(--unknown)"},ti={bad:"var(--critical)",warn:"var(--warning)",note:"var(--muted)",ok:"var(--good)",unlisted:"var(--muted)",stale:"var(--muted)",meta:"var(--muted)"},gu={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},Jn=t=>"st."+(t==="ex"?"excellent":t),Ee=t=>{const e=Yn(t);return e?i(Jn(e)):yt(t)},hn=t=>{const e=gu[String(t)],s="tier."+e;return e?i(s):String(t)==="—"?"—":yt(t)},ei=(t,e,s)=>`<span class="duo" style="--c:${s}"><span class="st">${t}</span><span class="ev">${e}</span></span>`,Re=t=>{let e=String(t??"");for(const[s,n]of mu)e=e.replace(s,n);return e},mn=t=>Re(t),bu=(t,e)=>{if(!t||t.filter(_=>_!=null).length<3)return"";const s=t.filter(_=>_!=null),n=Math.min(...s),l=Math.max(...s),o=l-n||1,c=84,r=22,u=t.length;let m="",f=null;return t.forEach((_,v)=>{if(_==null)return;const w=v/(u-1)*c,P=r-2-(_-n)/o*(r-4);m+=(m?"L":"M")+w.toFixed(1)+" "+P.toFixed(1),f=[w,P]}),`<svg width="${c}" height="${r}" style="vertical-align:middle;margin-left:6px"><path d="${m}" fill="none" stroke="${e}" stroke-width="1.2" opacity=".75"/><circle cx="${f[0]}" cy="${f[1]}" r="2.4" fill="${e}"/></svg>`},$u={齿轮箱:"#8A6D3B",发电机:"#4A6FA5",主轴承:"#2E7D6B",变桨叶片:"#4A6FA5",偏航:"#2E7D6B",测风:"#7C5295",其他:"#5A6470"},yu=(t,e,s)=>{if(!e)return`<span class="small muted">${i("fus.no_alarm")}</span>`;const n=118,l=Math.max(6,Math.round(e/Math.max(s||e,1)*n));return`<div title="${ht(i("fus.fam_tip",{n:e,m:s||e}))}" style="display:flex;height:9px;border-radius:3px;overflow:hidden;width:${l}px">${(t||[]).map(o=>`<i title="${ht(xe(o.k))} ${o.n}" style="width:${(o.n/e*100).toFixed(1)}%;background:${$u[o.k]||"#5A6470"}"></i>`).join("")}</div><div class="small muted" style="margin-top:3px">${(t||[]).slice(0,2).map(o=>xe(o.k)+" "+o.n).join(" · ")}</div>`};function xu(t){const e=(t.列窗||{}).months||[];let s=`<div class="panel mb" style="border-left:3px solid var(--warning)"><b>${i("fus.rules_head")}</b><p class="small" style="margin-top:4px">${i("fus.rule1")}<br>${i("fus.rule2")}</p></div>`;s+=`<div class="panel mb"><h3>${i("fus.matrix_head")}</h3><p class="small muted">${i("fus.matrix_note1")}</p><p class="small">${i("fus.matrix_note2",{n:e.length,m0:e[0]||"?"})}</p>
- <div class="small muted" style="margin:6px 0 12px;line-height:2"><div><b>${i("fus.legend_state")}</b> ${["bad","warn","ok","ex","unk"].map(v=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${Zo[v]}"></i>${i(Jn(v))}</span>`).join("")}</div>
- <div><b>${i("fus.legend_tier")}</b> ${["定论","准定论·预警","候选·新发","候选","候选·记基线","参考","INSUFFICIENT"].map(v=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${(t.色标||{})[v]||"#ccc"}"></i>${hn(v)}</span>`).join("")}</div><div>${i("fus.legend_note")}</div></div>`;const n=v=>{const w=String(v||""),P=w.match(/20[0-9][0-9]-[0-9][0-9](?:~20[0-9][0-9]-[0-9][0-9])?|至[ ]*20[0-9][0-9]-[0-9][0-9]|20[0-9][0-9]~20[0-9][0-9]/);return P?P[0].startsWith("至")?i("win.through",{date:P[0].replace(/^至\s*/,"")}):P[0]:w.slice(0,14)},l=(v,w,P)=>`<th title="${ht(w||"")}${P||""}"><div>${v}</div><div class="small muted" style="font-weight:400">${yt(n(w))}${P||""}</div></th>`,o=t.列窗||{};s+=`<div class="tblwrap"><table class="fmx" style="table-layout:fixed;width:100%;min-width:900px"><colgroup><col style="width:7%">${'<col style="width:15.5%">'.repeat(6)}</colgroup><tr><th>${i("ui.unit")}</th>${l(i("fus.col.vib"),o.振动,i("fus.col.fixed"))}${l(i("fus.col.temp"),o.温度)}${l(i("fus.col.lub"),o.润滑,i("fus.col.display_only"))}${l(i("fus.col.oil"),o.油液)}${l(i("fus.col.alarm"),o.报警)}${l(i("fus.col.wo"),o.工单)}</tr>`;const c=t.矩阵||[],r=Math.max(1,...c.map(v=>(v.报警||{}).n||0)),u=Math.max(1,...c.map(v=>(v.工单||{}).n||0)),m=t.色标||{},f=v=>{if(v.ostate&&v.ostate!=="不可判")return Ee(v.ostate);const w=String(v.note||"");return/数据不足|不可判|nsufficient/.test(w)?i("fus.short.nodata"):/未评估|ot assessed/.test(w)?i("fus.short.uneval"):/无样|未取样|o sample/.test(w)?i("fus.short.nosample"):/样龄|stale/.test(w)?i("fus.short.stale"):{ok:i("fus.short.normal"),unlisted:i("fus.short.unlisted"),stale:i("fus.short.stale")}[v.level]||"—"},_=v=>{const w=v||{},P=Qo[w.ostate]||m[w.wlevel]||ti[w.level]||"var(--muted)",B=Re(w.note),z=["bad","warn","note"].includes(w.level),ot=ht(B)+i("fus.tip_state",{s:Ee(w.ostate||"?")});if(!z)return`<td class="small" title="${ot}" style="border-left:3px solid ${P};color:var(--muted)">${f(w)}</td>`;const q=B.split(/[::]/),D=(q.length>1?q.slice(1).join(":"):B).trim(),S=/^[ ]*(评估报告|两口径差异|⚠|ssessment)/.test(D)||D.length>16?"":D,L=S?yt(S):w.ostate&&w.ostate!=="不可判"?"":f(w),mt=w.wlevel&&w.wlevel!=="—"&&w.wlevel!=="正常"&&w.ostate?ei(Ee(w.ostate),hn(w.wlevel),P):"";return`<td class="small" title="${ot}${i("fus.tip_tier",{e:hn(w.wlevel||"?")})}" style="border-left:3px solid ${P};overflow:hidden"><div><div style="color:${P};font-weight:${["bad","warn"].includes(w.level)?600:400}">${L}</div>${mt}</div>${bu(w.hist,w.level==="bad"?"var(--critical)":w.level==="warn"?"var(--warning)":"var(--muted)")}</td>`};return c.forEach(v=>{const w=v.报警||{n:0,fam:[]},P=v.工单||{n:0,acts:[]},B=w.rank&&w.rank<=5?"var(--warning)":"var(--line)",z=w.burst,ot=ht((w.items||[]).map(q=>`${q.code} ${Re(q.text)} — ${q.n} (${q.first}~${q.last})`).join(`
- `))+(z?`
- `+ht(i("fus.burst_tip",{c:z.code,p:(z.share*100).toFixed(0),m:z.med_s})):"");s+=`<tr><td><a href="/turbine/${v.turbine}"><b>${qt(v.turbine)}</b></a></td>${_(v.振动)}${_(v.温度)}${_(v.润滑)}${_(v.油液)}
- <td title="${ot}" style="border-left:3px solid ${z?"var(--unknown)":B}"><b class="small num" style="color:${w.rank&&w.rank<=10?"var(--ink)":"var(--muted)"}">${i("fus.alarm_n",{n:w.n})}</b>${w.rank?`<span class="small muted">${i("fus.alarm_rank",{r:w.rank,t:w.tot})}</span>`:""}${z?`<div class="small" style="color:var(--unknown)">${i("fus.burst",{p:(z.share*100).toFixed(0),c:z.code})}</div>`:""}${w.rank&&w.rank<=10||z?yu(w.fam,w.n,r):""}</td>
- <td title="${ht((P.items||[]).map(q=>`${q.date} ${mn(q.name)} → ${mn(q.act)}${q.part?" "+mn(q.part):""}`).join(`
- `)||i("fus.wo_none"))}" style="min-width:110px">${P.n?`<b class="small">${i("fus.wo_n",{n:P.n})}</b>${P.last?`<span class="small muted"> · ${ht(P.last)}</span>`:""}<div style="height:7px;border-radius:3px;background:var(--muted);opacity:.5;margin-top:4px;width:${Math.max(6,Math.round(P.n/u*90))}px"></div><div class="small muted" style="margin-top:3px">${(P.acts||[]).slice(0,2).map(q=>yt(q.k)+"×"+q.n).join(" · ")}</div>`:'<span class="small muted">—</span>'}</td></tr>`}),s+`</table></div><p class="small muted" style="margin-top:8px">${i("fus.matrix_foot")}</p></div>`}const Ll=(t,e,s)=>{const n=Math.max(t,e,7),l=120,o=c=>Math.max(2,c/n*(l-4));return`<svg class="dt" viewBox="0 0 ${l} 26" style="width:${l}px;height:26px"><rect x="2" y="2" width="${o(t).toFixed(1)}" height="9" rx="2" fill="var(--muted)" fill-opacity=".55"/><rect x="2" y="15" width="${o(e).toFixed(1)}" height="9" rx="2" fill="${s}" fill-opacity=".9"/></svg>`},Fn=(t,e)=>{const s=String(t||"").replace(/main bearing[, ]*[(]?(?:rear|back)[)]?/ig,"主轴承后").replace(/main bearing[, ]*[(]?(?:front|forward)[)]?/ig,"主轴承前").replace(/main bearing/ig,"主轴承").replace(/generator[, ]*(?:NDE|non-drive[- ]end)/ig,"发电机NDE").replace(/generator[, ]*(?:DE|drive[- ]end)/ig,"发电机DE").replace(/generator/ig,"发电机").replace(/gearbox/ig,"齿轮箱").replace(/planetary/ig,"行星").replace(/intermediate[- ](?:speed[- ])?shaft/ig,"中间轴").replace(/high[- ]speed shaft/ig,"高速轴"),n=/齿轮箱/.test(s)&&!/行星|中间轴|中速|高速轴/.test(s);return`<span class="chain" title="${ht(Xo(t))}">${Eu.map(([l,o])=>{const c=o.test(s)||n&&["ps","ims","hss"].includes(l);return`<i class="${c?"on":""}" style="${c?`background:${e};border-color:${e}`:""}" title="${i("chain."+l)}"></i>`}).join("")}</span>`};function wu(t){const e=t.能力&&t.能力.loop&&t.能力.loop["换件闭环 (检出→换件→恢复)"]?t.能力.loop:null;if(!e)return`<div class="panel mb"><p class="small">${i("fus.loop_none")}</p></div>`;const s=e["换件闭环 (检出→换件→恢复)"]||[],n=e["当前在升 (无工单可对)"]||[],l=e["负面对照 (工单后持平)"];return`<div class="panel mb"><h3>${i("fus.loop_head")}</h3><p class="small">${i("fus.loop_note")}</p>
- <h3 style="margin-top:8px">${i("fus.loop_closed",{n:s.length})}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.loop_item")}</th><th>${i("fus.loop_date")}</th><th>${i("fus.loop_ba")}</th><th class="r">${i("fus.loop_ratio")}</th><th>${i("fus.loop_verdict")}</th></tr>
- ${s.map(o=>`<tr><td><b>${qt(o.turbine)}</b></td><td>${Fn(o.component+(o.title||""),"var(--good)")} <span class="small">${ms(o.component)}</span></td><td class="small">${yt(o.title)}</td><td>${ht(o.replace_date)}</td><td>${Ll(o.pre,o.post,"var(--good)")}<span class="small muted">${o.pre} → ${o.post}</span></td><td class="r"><b style="color:var(--good)">${o.ratio}×</b></td><td><span class="chip ok">${yt(o.verdict)}</span></td></tr>`).join("")}</table></div>
- <p class="small" style="margin-top:6px">${i("fus.loop_neg",{n:l})}</p>
- <h3 style="margin-top:14px">${i("fus.loop_rising",{n:n.length})}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.loop_el")}</th><th class="r">${i("fus.loop_x")}</th><th>${i("fus.loop_state")}</th></tr>
- ${n.map(o=>`<tr><td><b>${qt(o.turbine)}</b></td><td>${Fn(o.component,"var(--warning)")} <span class="small">${ms(o.component)}</span></td><td>${Ll(o.early,o.late,"var(--warning)")}<span class="small muted">${o.early} → ${o.late}</span></td><td class="r"><b style="color:var(--warning)">${o.ratio}×</b></td><td><span class="chip warn">${i("rpt.units.rising",{r:o.ratio})}</span></td></tr>`).join("")}</table></div>
- <p class="small muted" style="margin-top:8px">${i("fus.loop_bound",{b:yt(String(e["★数据边界"]||"").split("**").join(""))})}</p></div>`}const ku=(t,e,s,n)=>{if(e==null)return`<span class="small">${yt(Xo(n).slice(0,30))}</span>`;const l=6,o=104,c=o/2,r=Math.max(-1,Math.min(1,e/l)),u=Math.abs(r)*(c-8),f=Math.abs(e)>=3?/候选|andidate/.test(s||"")?"var(--warning)":/记基线|aseline/.test(s||"")?"var(--accent)":/不可判|返服|ndeterm/.test(s||"")?"var(--unknown)":"var(--muted)":"var(--muted)",_=Math.abs(e)>l;return`<div title="${ht(n||"")}" style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 ${o} 18" style="width:${o}px;height:18px;flex:none"><line x1="4" y1="9" x2="${o-4}" y2="9" stroke="var(--line)" stroke-opacity=".7"/><line x1="${c}" y1="1" x2="${c}" y2="17" stroke="var(--muted)" stroke-opacity=".6"/><rect x="${e>=0?c:c-u}" y="4" width="${Math.max(u,1.5)}" height="10" rx="2" fill="${f}" fill-opacity=".9"/>${_?`<path d="M${e>0?o-5:5},9 l${e>0?-5:5},-4 v8 z" fill="${f}"/>`:""}</svg><b class="small num" style="color:${f}">${e>0?"+":""}${e}K</b></div><div class="small muted" style="margin-top:1px">${ht(t||"")}</div>`},Mu=(t,e)=>{if(!t||!t.length)return`<span class="small" title="${ht(e||"")}">${i("fus.win_none")}</span>`;const s=Date.parse("2026-01-01"),n=Date.parse("2026-09-01"),l=118,o=c=>3+Math.max(0,Math.min(1,(Date.parse(c)-s)/(n-s)))*(l-6);return`<div title="${ht(e||"")}"><svg class="dt" viewBox="0 0 ${l} 18" style="width:${l}px;height:18px"><rect x="3" y="4" width="${l-6}" height="10" rx="2" fill="var(--line)" fill-opacity=".5"/>${t.map(([c,r])=>{const u=o(c),m=o(r);return`<rect x="${u.toFixed(1)}" y="4" width="${Math.max(m-u,2.5).toFixed(1)}" height="10" rx="2" fill="var(--accent)" fill-opacity=".8"/>`}).join("")}</svg><div class="small muted">${i("fus.win_n",{n:t.length})}</div></div>`},Su=(t,e,s)=>`<div title="${ht(s||"")}" style="display:flex;align-items:center;gap:6px"><i style="width:9px;height:9px;border-radius:50%;flex:none;background:${e?"var(--good)":"var(--unknown)"}"></i><span class="small num">${ht(t||i("fus.oil_none"))}</span></div><div class="small muted">${t?i(e?"fus.oil_fresh":"fus.oil_stale"):"—"}</div>`,He=(t,e)=>{const s=Yn(t);return s?`<span class="chip ${s} ">${i(Jn(s))}</span>`:t?`<span class="chip">${ht(t)}</span>`:""};function Tu(t,e){const s=t.表||[],n=t.矩阵||[];let l=s,c=`<div class="panel mb"><h3>${i("fus.units_head",{u:new Set(s.map(r=>r.turbine)).size,n:l.length+"",f:""})}</h3>
- <div style="display:flex;gap:8px;margin:8px 0 12px;flex-wrap:wrap">${["bad","warn","note","ok"].map(r=>`<button class="pill ${e===r?"on":""}" data-ffilter="${r}">${i("fus.lv."+r)}</button>`).join("")}<button class="pill " data-ffilter="unlisted">${i("fus.unlisted_link",{n:n.filter(r=>(r.振动||{}).level==="unlisted").length})}</button></div>
- <div class="panel" style="border-left:3px solid var(--accent);margin-bottom:12px"><b class="small">${i("fus.eval_head")}</b><div class="tblwrap"><table style="margin-top:8px"><tr><th style="width:30%">${i("fus.eval_state")}</th><th style="width:30%">${i("fus.eval_tier")}</th><th>${i("fus.eval_meaning")}</th></tr>
- <tr><td>${He("危险")}</td><td><span class="tier confirmed">${i("tier.confirmed.s")}</span></td><td class="small">${i("fus.m.bad")} <span class="muted">(${i("fus.m.bad_e")})</span></td></tr>
- <tr><td>${He("报警")}</td><td><span class="tier near">${i("tier.near")}</span> / <span class="tier candidate">${i("tier.candidate_new")}</span></td><td class="small">${i("fus.m.warn")} <span class="muted">(${i("fus.m.warn_e")})</span></td></tr>
- <tr><td>${He("良好")}</td><td><span class="tier candidate">${i("tier.candidate")}</span> / <span class="tier candidate">${i("tier.candidate_baseline")}</span></td><td class="small">${i("fus.m.ok")} <span class="muted">(${i("fus.m.ok_e")})</span></td></tr>
- <tr><td>${He("优秀")}</td><td><span class="tier reference">${i("tier.reference")}</span> / <span class="tier reference">${i("tier.normal")}</span> / <span class="tier withdrawn">${i("tier.withdrawn")}</span></td><td class="small">${i("fus.m.ex")} <span class="muted">(${i("fus.m.ex_e")})</span></td></tr>
- <tr><td>${He("不可判")}</td><td><span class="tier insufficient">${i("tier.insufficient")}</span></td><td class="small">${i("fus.m.unk")} <span class="muted">(${i("fus.m.unk_e")})</span></td></tr></table></div><p class="small muted" style="margin-top:7px">${i("fus.eval_note")}</p></div>
- <div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.col.state_concl")}</th><th>${i("fus.col.claim")} <span class="small muted" style="font-weight:400">${i("fus.col.claim_axis")}</span></th><th>${i("fus.col.signal")}</th><th>${i("fus.col.tempaxis")} <span class="small muted" style="font-weight:400">${i("fus.col.tempaxis_note")}</span></th><th>${i("fus.col.oil")}</th></tr>`;return l.forEach(r=>{const u=ti[r.级]||"var(--accent)",m=Qo[r.设备状态]||"var(--muted)";c+=`<tr><td><a href="/turbine/${r.turbine}"><b>${qt(r.turbine)}</b></a></td><td style="min-width:200px">${Fn(r.部件,u)} <span class="small">${ms(r.部件)}</span></td>
- <td title="${ht(Re(r.振动结论))}">${ei(Ee(r.设备状态||"—"),yt(r.振动结论),m)}</td><td style="min-width:130px">${Mu(r.窗区间,r.claim_window)}</td>
- <td class="small" title="${ht(r.振动信号||"")}">${yt(Re(r.振动信号))}</td><td style="min-width:158px">${ku(r.温度通道,r.温度dev,r.温度判,r.温度轴)}</td><td style="min-width:112px">${Su(r.油末样,r.油新鲜,r.油样轴)}</td></tr>`}),c+"</table></div></div>"}const Eu=[["mbf",/主轴承[((]前|主轴承前|主轴承[++]|主轴承(?![((前后])/],["mba",/主轴承[((]后|主轴承后/],["ps",/行星|二级行星/],["ims",/中间轴|中速/],["hss",/高速轴|高速(?!.*发电)/],["gde",/发电机DE|发电机[((]|发电机(?!NDE)/],["gnde",/发电机NDE|NDE/]],ts=t=>Zo[Yn(t)]||null,Dl=t=>`<span class="chain">${Object.entries(t).map(([e,s])=>`<i class="${s?"on":""}" style="${s?`background:${s};border-color:${s}`:""}" title="${i("chain."+e)}"></i>`).join("")}</span>`,Cu=t=>{const e=String(t||""),s=/准定论|near[- ](?:conf|establish)/i.test(e)?3:/确诊|onfirmed/.test(e)?4:/定论|ettled|stablished/.test(e)?3:/候选|andidate/.test(e)?2:/参考|eference/.test(e)?1:0,n=s>=4?"var(--critical)":s===3?"var(--warning)":s===2?"var(--accent)":s===1?"var(--muted)":"var(--unknown)";return`<div style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 62 20" style="width:62px;height:20px;flex:none">${[0,1,2,3].map(l=>`<rect x="${2+l*15}" y="${12-l*3}" width="11" height="${6+l*3}" rx="1.5" fill="${l<s?n:"none"}" fill-opacity=".9" stroke="${n}" stroke-opacity="${l<s?1:.4}" ${l>=s?'stroke-dasharray="2 1.5"':""}/>`).join("")}</svg><span class="small" style="color:${n}">${yt(e)}</span></div>`};function Fu(t,e){if(!t.事件)return`<div class="panel mb"><p class="small muted">${i("ui.empty")}</p></div>`;let s=`<div class="panel mb"><p class="small muted"><b>${i("fus.ev_win",{win:Ae(e.win)})}</b></p></div>`;for(const[n,l]of Object.entries(t.事件)){const o=l,c=o.报警||{},r=o.工单||{};s+=`<div class="panel mb"><h3>${i("fus.ev_head",{c:xe(n),an:c.总条数||0,au:c.台数||0,wn:r.总条数||0,wu:r.台数||0})}</h3>`,c.总条数>0?s+=`<div class="tblwrap"><table><tr><th>${i("fus.ev_code")}</th><th>${i("fus.ev_text")}</th><th class="r">${i("ui.count")}</th><th class="r">${i("fus.ev_units")}</th><th class="r">${i("fus.ev_dur")}</th></tr>${(c.码统计||[]).map(u=>`<tr><td>${ht(u.code)}</td><td class="small">${yt(Re(u.text))}</td><td class="r">${u.条数}</td><td class="r">${u.台数}</td><td class="r">${u.时长h}</td></tr>`).join("")}</table></div>
- <p class="small">${i("fus.ev_top")}${Object.entries(c.top台||{}).map(([u,m])=>`<a href="/turbine/${u}">${qt(u)}</a>×${m}`).join(" · ")}</p>
- <details><summary class="small">${i("fus.ev_recent",{n:(c.近况||[]).length})}</summary><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.ev_time")}</th><th>${i("fus.ev_code")}</th><th>${i("fus.ev_text")}</th><th class="r">${i("fus.ev_min")}</th></tr>${(c.近况||[]).map(u=>`<tr><td>${qt(u.t)}</td><td class="small">${ht(u.on)}</td><td>${ht(u.code)}</td><td class="small">${yt(Re(u.text))}</td><td class="r">${u.dur_min??"—"}</td></tr>`).join("")}</table></div></details>`:s+=`<p class="small">${i("fus.ev_no_alarm")}</p>`,r.总条数>0?s+=`<div class="tblwrap"><table style="margin-top:8px"><tr><th>${i("ui.unit")}</th><th>${i("ui.date")}</th><th>${i("fus.ev_wo_name")}</th><th>${i("fus.ev_wo_act")}</th><th>${i("fus.ev_wo_cause")}</th></tr>${(r.明细||[]).map(u=>`<tr><td>${qt(u.t)}</td><td class="small">${ht(u.date)}</td><td class="small">${yt(u.name)}</td><td class="small">${yt(u.act)}</td><td class="small">${yt(u.cause)}</td></tr>`).join("")}</table></div>`:s+=`<p class="small">${i("fus.ev_no_wo")}</p>`,s+="</div>"}return s}function Ou(t,e){if(!t)return`<div class="panel mb"><p class="small muted">${i("fus.cms_loading")}</p></div>`;if(t.error)return`<div class="panel mb"><p class="small" style="color:var(--critical)">${yt(t.error)}</p></div>`;const s={主轴承前:"mbf",主轴承后:"mba",齿轮箱:"gb",发电机:"gen",发电机DE:"gde",发电机NDE:"gnde","Main bearing, front":"mbf","Main bearing, rear":"mba",Gearbox:"gb",Generator:"gen","Generator DE":"gde","Generator NDE":"gnde"};return`<div class="panel mb"><h3>${i("fus.cms_head",{d:ht(t.date||"")})}</h3>
- ${t.时间范围?`<p class="small" style="margin:2px 0 6px">${i("fus.cms_window",{r:ht(t.时间范围)})}</p>`:""}
- <p class="small">${yt(t.overall||"")} ${i("fus.cms_note")}</p>
- <h3 style="margin-top:10px">${i("fus.cms_action")}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.loop_state")}</th><th>${i("fus.cms_focus")} <span class="small muted" style="font-weight:400">${i("fus.cms_focus_note")}</span></th><th>${i("fus.cms_evidence")}</th><th>${i("fus.cms_act")}</th></tr>
- ${(t.action||[]).map(n=>{const l={};return String(n[2]).split(/[;;]/).forEach(o=>{const c=o.split(/[::]/);if(c.length>1){const r=s[c[0].trim()]||null;r&&(l[r]=ts(c[1].trim()))}}),`<tr><td><b>${qt(n[0])}</b></td><td>${He(n[1])}</td><td title="${ht(n[2])}">${Dl(l)} <span class="small muted">${yt(n[2])}</span></td><td style="min-width:150px">${Cu(n[3])}</td><td>${/P0/.test(n[4])?`<b style="color:var(--critical)">${ht(n[4])}</b>`:ht(n[4])}</td></tr>`}).join("")}</table></div>
- <h3 style="margin-top:14px">${i("fus.cms_grades")}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.cms_chain")} <span class="small muted" style="font-weight:400">${i("fus.cms_chain_note")}</span></th><th>${i("fus.cms_overall")}</th><th>${i("fus.cms_act")}</th></tr>
- ${(t.grades||[]).map(n=>`<tr><td><b>${qt(n.t)}</b></td><td title="${i("chain.mbf")} ${Ee(n.主轴承前)} · ${i("chain.mba")} ${Ee(n.主轴承后)} · ${i("chain.gb")} ${Ee(n.齿轮箱)} · ${i("chain.gen")} ${Ee(n.发电机)}">${Dl({mbf:ts(n.主轴承前),mba:ts(n.主轴承后),gb:ts(n.齿轮箱),gen:ts(n.发电机)})}</td><td>${He(n.综合)}</td><td class="small">${ht(n.行动)}</td></tr>`).join("")}</table></div>
- <div class="small" style="margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:8px"><b>${i("fus.cms_basis")}</b> ${i("fus.cms_basis_note",{a:((t.diff||{}).only_cms||[]).map(qt).join(", ")||i("fus.none_word"),b:((t.diff||{}).only_vibration_package||(t.diff||{}).only_handoff||[]).map(qt).join(", ")||i("fus.none_word")})}</div>
- <p class="small muted" style="margin-top:10px">${i("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${i("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${i("fus.cms_static")}</a></p></div>`}const Au=["matrix","loop","units","events","cms"],qu=typeof window<"u"?window:globalThis,Il=qu.__charts,ju=Il?Il({t:i,fmt:Ct,esc:ht,dv:yt,EN:!1,displayText:t=>t==null?"":String(t),verb:()=>{}}):{};function Jt(t,...e){const s=ju[t];if(typeof s!="function")return"";try{return s(...e)}catch{return""}}const Pu={key:0},Hu={class:"panel"},Lu={class:"small muted"},Du={key:1},Iu={class:"kpis",style:{"margin-bottom":"12px"}},Ru={key:0},Nu={class:"grid2"},Bu={class:"panel span2"},Wu={class:"small muted",style:{"font-weight":"400"}},Ku={class:"panel"},Uu={class:"small muted",style:{"margin-top":"6px"}},Vu={class:"panel"},zu={class:"small muted",style:{"font-weight":"400"}},Gu={class:"tblwrap"},Yu={class:"r",style:{width:"90px"}},Ju={class:"small"},Xu={class:"num small"},Zu={class:"r small"},Qu={class:"small muted",style:{"margin-top":"6px"}},td=Rt({__name:"Energy",props:{d:{}},setup(t){const e=t,s=W(()=>(e.d?.control||{}).energy),n=W(()=>(e.d?.control||{}).states||[]),l={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},o=u=>l[u]?i(l[u]):u,c=W(()=>{const u=s.value||{};return[{v:Ct(u.theo),u:"MWh",l:i("en.kpi_theo"),k:""},{v:Ct(u.act),u:"MWh",l:i("en.kpi_act",{h:Ct(u.eflh)}),k:"ok"},{v:Ct(u.loss_pct,1),u:"%",l:i("en.kpi_loss",{v:Ct(u.loss)}),k:u.loss_pct>=10?"warn":""},{v:u.cap_ok?i("en.cap_pass"):i("en.cap_fail"),u:"",l:i("en.cap_note",{op:u.cap_ok?"<":"≥",cap:Ct(u.cap)}),k:u.cap_ok?"ok":"bad"}]}),r=W(()=>Math.max(1,...n.value.map(u=>u.pct)));return(u,m)=>s.value?(k(),T("section",Du,[a("div",Iu,[(k(!0),T(rt,null,xt(c.value,(f,_)=>(k(),T("div",{key:_,class:Qt(["kpi",f.k])},[a("b",null,[ut(p(f.v),1),f.u?(k(),T("small",Ru,p(f.u),1)):gt("",!0)]),a("span",null,p(f.l),1)],2))),128))]),a("div",Nu,[a("div",Bu,[a("h3",null,[ut(p(d(i)("en.balance"))+" ",1),a("span",Wu,p(d(i)("en.win",{win:d(Ae)(t.d.win)})),1)]),At(Yt,{html:d(Jt)("waterfall",s.value)},null,8,["html"])]),a("div",Ku,[a("h3",null,p(d(i)("en.blame")),1),At(Yt,{html:d(Jt)("blameBar",s.value)},null,8,["html"]),a("p",Uu,p(d(i)("en.blame_note",{n:d(Ct)(Math.round(((s.value.items||[]).find(f=>f.k==="停机")||{}).loss||0))})),1)]),a("div",Vu,[a("h3",null,[ut(p(d(i)("en.states"))+" ",1),a("span",zu,p(d(i)("en.win",{win:d(Ae)(t.d.win)})),1)]),a("div",Gu,[a("table",null,[a("tr",null,[a("th",null,p(d(i)("en.state")),1),a("th",null,p(d(i)("en.share")),1),a("th",Yu,p(d(i)("en.loss_mwh")),1)]),(k(!0),T(rt,null,xt(n.value,f=>(k(),T("tr",{key:f.k},[a("td",Ju,p(o(f.k)),1),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(f.pct/r.value*84)}px;background:${f.k.indexOf("停机")>=0&&f.k.indexOf("调度")<0?"var(--critical)":"var(--accent)"}`)},null,4),a("span",Xu,p(f.pct)+"% · "+p(d(Ct)(Math.round(f.h)))+"h",1)]),a("td",Zu,p(d(Ct)(Math.round(f.loss))),1)]))),128))])]),a("p",Qu,[ut(p(t.d.control.anchors||""),1),m[0]||(m[0]=a("br",null,null,-1)),ut(p(d(i)("en.states_note")),1)])])])])):(k(),T("section",Pu,[a("div",Hu,[a("p",Lu,p(d(i)("ui.empty")),1)])]))}}),ed={class:"eyebrow"},sd={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},nd={style:{color:"var(--warning)"}},ld={class:"grid2"},od={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},id={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},ad={class:"panel span2"},rd={class:"small muted",style:{"margin-top":"6px"}},cd={class:"panel"},ud={class:"panel"},dd={class:"panel span2"},pd={class:"small muted",style:{"margin-top":"6px"}},fd={key:0,style:{color:"var(--warning)"}},hd={class:"panel"},md={class:"tblwrap"},_d={style:{width:"70px"}},vd={class:"r",style:{width:"80px"}},gd={class:"num small"},bd={class:"r small"},$d={class:"small muted",style:{"margin-top":"6px"}},yd={key:0,class:"panel",style:{"border-left":"3px solid var(--critical)"}},xd={class:"small"},wd={key:1,class:"panel"},kd={class:"small muted",style:{"font-weight":"400"}},Md={class:"small muted",style:{"margin-top":"6px"}},Sd={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},Td={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},Ed={key:0,class:"panel span2"},Cd={class:"small muted",style:{"margin-top":"6px"}},Fd={style:{"margin-top":"12px"}},Od={class:"small muted",style:{"margin-top":"2px"}},Ad={class:"panel"},qd={class:"small muted",style:{"margin-top":"4px"}},jd={class:"panel"},Pd={class:"tblwrap"},Hd={style:{width:"64px"}},Ld={class:"r",style:{width:"56px"}},Dd={class:"num small"},Id={class:"r small"},Rd={class:"small muted",style:{"margin-top":"6px"}},Nd=Rt({__name:"Fault",props:{d:{}},setup(t){const e=t,s=W(()=>e.d?.faults||{}),n=W(()=>s.value.partial||[]),l=W(()=>e.d?.m8&&!e.d.m8.err?e.d.m8.mtbf:null),o=W(()=>s.value.monthly||{months:[],vals:[]}),c=W(()=>n.value.length?(o.value.months||[]).indexOf(n.value[0]):-1),r=W(()=>{const D=n.value.length?i("flt.rate_partial",{m:n.value.join("/")}):i("flt.rate_full"),S=c.value>=0&&!!o.value.per_day;return D+(S?" "+i("flt.rate_example",{m:n.value[0],v:u.value}):"")}),u=W(()=>{const D=c.value;return D>=0&&o.value.per_day?o.value.per_day[D]:null}),m=W(()=>n.value.length?i("win.partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)}):""),f=W(()=>s.value.per_t||[]),_=W(()=>Math.max(1,...f.value.map(D=>D.v))),v=W(()=>l.value&&e.d?.m8?.seasonal?e.d.m8.seasonal:[]),w=W(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),P=W(()=>(e.d?.m8?.stop_pareto||[]).map(D=>({k:String(D.k).split(";")[0].slice(0,26),v:D.h}))),B=D=>ms(D),z=W(()=>({months:v.value[0]&&v.value[0].months||[],series:v.value.slice(0,4).map(D=>({name:String(D.name).slice(0,16),vals:D.vals})),xlab:i("flt.seasonal_x")})),ot=W(()=>l.value?.台级top||[]),q=W(()=>Math.max(1,...ot.value.map(D=>D.时长h)));return(D,S)=>(k(),T("section",null,[a("div",ed,p(d(i)("flt.eyebrow")),1),a("div",sd,[a("b",null,p(d(i)("win.banner",{win:d(Ae)(t.d.win)})),1),m.value?(k(),T(rt,{key:0},[S[0]||(S[0]=ut(" | ",-1)),a("span",nd,p(m.value),1)],64)):gt("",!0)]),a("div",ld,[a("div",od,[ut(p(d(i)("flt.alarm_face"))+" ",1),a("span",id,p(d(i)("flt.alarm_meta",{n:d(Ct)(s.value.total),c:s.value.n_codes,win:d(Ae)(t.d.win)})),1)]),a("div",ad,[a("h3",null,p(d(i)("flt.rate")),1),At(Yt,{html:d(Jt)("rateChart",o.value)},null,8,["html"]),a("p",rd,[a("b",null,p(d(i)("flt.rate_note")),1),ut(" — "+p(r.value),1)])]),a("div",cd,[a("h3",null,p(d(i)("flt.pareto_n")),1),At(Yt,{html:d(Jt)("paretoChart",s.value.pareto_n||[],d(i)("unit.n"),d(i)("flt.pareto_n_note"))},null,8,["html"])]),a("div",ud,[a("h3",null,p(d(i)("flt.pareto_d")),1),At(Yt,{html:d(Jt)("paretoChart",s.value.pareto_d||[]," h",d(i)("flt.pareto_d_note"))},null,8,["html"])]),a("div",dd,[a("h3",null,p(d(i)("flt.quad")),1),At(Yt,{html:d(Jt)("quadChart",s.value.quad||[])},null,8,["html"]),a("p",pd,[ut(p(d(i)("flt.quad_note",{n:s.value.n_codes,m:(s.value.quad||[]).length}))+" ",1),n.value.length?(k(),T("span",fd,p(d(i)("flt.quad_partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)})),1)):gt("",!0),ut(" "+p(d(i)("flt.quad_note2")),1)])]),a("div",hd,[a("h3",null,p(d(i)("flt.per_t",{n:f.value.length})),1),a("div",md,[a("table",null,[a("tr",null,[a("th",_d,p(d(i)("ui.unit")),1),a("th",null,p(d(i)("ui.count")),1),a("th",vd,p(d(i)("flt.per_t_share")),1)]),(k(!0),T(rt,null,xt(f.value,L=>(k(),T("tr",{key:L.k},[a("td",null,[a("b",null,p(d(qt)(L.k)),1)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(L.v/_.value*90)}px;background:${L.v/_.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",gd,p(d(Ct)(L.v)),1)]),a("td",bd,p((L.v/s.value.total*100).toFixed(1))+"%",1)]))),128))])]),a("p",$d,p(d(i)("flt.per_t_note",{n:d(Ct)(s.value.total)})),1)]),t.d.m8&&t.d.m8.err?(k(),T("div",yd,[a("p",xd,p(d(i)("flt.block_err",{k:"m8",e:t.d.m8.err})),1)])):gt("",!0),l.value&&v.value.length?(k(),T("div",wd,[a("h3",null,[ut(p(d(i)("flt.seasonal"))+" ",1),a("span",kd,"("+p(d(i)("flt.seasonal_unit"))+")",1)]),At(Yt,{html:d(Jt)("multiline",z.value)},null,8,["html"]),a("p",Md,p(d(i)("flt.seasonal_note")),1)])):gt("",!0),l.value?(k(),T(rt,{key:2},[a("div",Sd,[ut(p(d(i)("flt.stop_face"))+" ",1),a("span",Td,p(d(i)("flt.stop_meta",{h:d(Ct)(l.value.停机总时长h),n:d(Ct)(l.value.停机事件数)})),1)]),w.value?(k(),T("div",Ed,[a("h3",null,p(d(i)("flt.ram")),1),At(Yt,{html:d(Jt)("ramChart",w.value&&w.value.表||[],B)},null,8,["html"]),a("p",Cd,p(d(i)("flt.ram_note",{a:w.value.设备类停机h,b:w.value.外部类停机h})),1),a("div",Fd,[At(Yt,{html:d(Jt)("attribBar",w.value&&w.value.表||[],w.value&&w.value.总停机h||0)},null,8,["html"])]),a("p",Od,p(d(i)("flt.attrib_note",{h:((w.value.表||[]).find(L=>L.部件==="无记录停机")||{}).停机时长h||0})),1)])):gt("",!0),a("div",Ad,[a("h3",null,p(d(i)("flt.stop_pareto")),1),At(Yt,{html:d(Jt)("paretoChart",P.value," h",d(i)("flt.stop_pareto_note"))},null,8,["html"]),a("p",qd,p(l.value.口径),1)]),a("div",jd,[a("h3",null,p(d(i)("flt.stop_units",{n:ot.value.length})),1),a("div",Pd,[a("table",null,[a("tr",null,[a("th",Hd,p(d(i)("ui.unit")),1),a("th",null,p(d(i)("flt.stop_h")),1),a("th",Ld,p(d(i)("flt.stop_n")),1)]),(k(!0),T(rt,null,xt(ot.value,L=>(k(),T("tr",{key:L.t},[a("td",null,[a("b",null,p(d(qt)(L.t)),1)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(L.时长h/q.value*90)}px;background:${L.时长h/q.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",Dd,p(d(Ct)(L.时长h)),1),S[1]||(S[1]=ut("h",-1))]),a("td",Id,p(L.次),1)]))),128))])]),a("p",Rd,p(d(i)("flt.stop_units_note")),1)])],64)):gt("",!0)])]))}}),Bd={class:"eyebrow"},Wd={style:{display:"flex",gap:"8px","margin-bottom":"14px","flex-wrap":"wrap"}},Kd=["data-fsub","onClick"],Ud=["innerHTML"],Vd=Rt({__name:"Vibration",props:{d:{},sub:{},cms:{}},emits:["sub"],setup(t,{emit:e}){const s=t,n=e,l=W(()=>s.sub||"matrix"),o=Mt(null),c=Mt("");Ve(l,async f=>{if(f==="cms"&&!o.value&&!s.cms&&!c.value)try{const _=await fetch("/api/vibcms");o.value=await _.json()}catch(_){c.value=String(_?.message||_)}},{immediate:!0});const r=W(()=>s.cms??o.value),u=W(()=>s.d?.fus),m=W(()=>{const f=u.value;return!f||f.err?`<section><div class="panel"><p>${i("fus.unavailable",{e:String(f&&f.err||"")})}</p></div></section>`:l.value==="matrix"?xu(f):l.value==="loop"?wu(f):l.value==="units"?Tu(f,null):l.value==="events"?Fu(f,s.d):l.value==="cms"?Ou(r.value):`<div class="panel mb"><p class="small muted">子视图「${i("fus.sub."+l.value)}」尚未迁移到 Vue(迁移中)。</p></div>`});return(f,_)=>(k(),T("section",null,[a("div",Bd,p(d(i)("fus.eyebrow")),1),a("div",Wd,[(k(!0),T(rt,null,xt(d(Au),v=>(k(),T("button",{key:v,class:Qt(["pill",{on:v===l.value}]),"data-fsub":v,onClick:w=>n("sub",v)},p(d(i)("fus.sub."+v)),11,Kd))),128))]),a("div",{class:"unwrap-host",innerHTML:m.value},null,8,Ud)]))}}),zd={class:"eyebrow"},Gd={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Yd={class:"muted",style:{"margin-top":"3px"}},Jd={key:0,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},Xd={class:"small"},Zd={class:"small muted",style:{"font-weight":"400"}},Qd={key:0,class:"chip"},tp={style:{display:"flex","flex-wrap":"wrap",gap:"18px"}},ep={style:{flex:"1 1 300px","min-width":"280px"}},sp={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},np={class:"small muted",style:{"margin-top":"4px"}},lp={style:{flex:"1 1 300px","min-width":"280px"}},op={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},ip=["innerHTML"],ap={class:"small",style:{"font-weight":"600",margin:"12px 0 4px"}},rp={class:"small muted",style:{"margin-top":"4px"}},cp={key:2,class:"panel mb"},up={class:"small muted",style:{"font-weight":"400"}},dp=["innerHTML"],pp={class:"eyebrow"},fp={key:3,class:"panel",style:{"border-left":"3px solid var(--critical)"}},hp={class:"small"},mp={key:4,class:"panel",style:{"border-left":"3px solid var(--accent)"}},_p={class:"small"},vp={key:5,class:"panel"},gp={class:"small muted"},bp={key:6,class:"grid2"},$p={key:0,class:"small muted",style:{"font-weight":"400"}},yp={key:0,class:"small muted",style:{"margin-top":"6px"}},xp=Rt({__name:"Generation",props:{d:{},curves:{},pending:{type:Boolean}},setup(t){const e=t,s=W(()=>e.d?.m9&&!e.d.m9.err?e.d.m9:null),n=W(()=>e.d?.control||null),l=W(()=>e.curves||null),o=W(()=>(e.d?.sysmx_span||[]).join(" ~ ")||""),c=W(()=>s.value?.β_schedule?.离群||[]),r=W(()=>s.value?.β_schedule?.全场同档差中位||0),u=W(()=>{const _=n.value?.curve?.cands||[];return _.length?_.map(v=>`<a href="/turbine/${v.t}">${qt(v.t)}</a> ${v.dev}% ${yt(v.判)}`).join(" | "):i("gen.no_cands")}),m=W(()=>i("gen.beta_note",{units:c.value.map(_=>`<a href="/turbine/${_.t}">${qt(_.t)}</a>`).join(" / "),k:c.value.length?Math.round(Math.max(...c.value.map(_=>_.平均偏))/Math.max(r.value||0,.01)):"—",v:yt(s.value?.β_schedule?.判)})),f=W(()=>l.value?.figs||[]);return(_,v)=>(k(),T("section",null,[a("div",zd,p(d(i)("gen.eyebrow")),1),a("div",Gd,[a("b",null,p(d(i)("gen.fixed_win")),1),ut(" "+p(o.value?d(i)("gen.win_range",{span:o.value}):"")+" ",1),a("div",Yd,p(d(i)("gen.win_why")),1)]),t.d.m9&&t.d.m9.err?(k(),T("div",Jd,[a("p",Xd,p(d(i)("flt.block_err",{k:"m9",e:d(yt)(t.d.m9.err)})),1)])):gt("",!0),s.value?(k(),T("div",{key:1,class:"panel mb",style:Dt(t.pending?"border-left:3px solid var(--accent)":"")},[a("h3",null,[ut(p(d(i)("gen.ctrl"))+" ",1),a("span",Zd,p(d(i)("gen.ctrl_win",{win:d(yt)(s.value.窗)})),1),t.pending?(k(),T("span",Qd,p(d(i)("gen.recomputing_short")),1)):gt("",!0)]),a("div",tp,[a("div",ep,[a("div",sp,p(d(i)("gen.cap")),1),At(Yt,{html:d(Jt)("capAxis",s.value&&s.value.P封顶,s.value&&s.value.ω封顶)},null,8,["html"]),a("p",np,p(d(i)("gen.cap_note")),1)]),a("div",lp,[a("div",op,p(d(i)("gen.beta")),1),At(Yt,{html:d(Jt)("betaBar",s.value&&s.value.β_schedule||{},d(qt))},null,8,["html"]),a("p",{class:"small muted",style:{"margin-top":"4px"},innerHTML:m.value},null,8,ip),a("div",ap,p(d(i)("gen.ruler")),1),At(Yt,{html:d(Jt)("rulerBar",s.value&&s.value.尺子)},null,8,["html"]),a("p",rp,p(d(i)("gen.ruler_note")),1)])])],4)):gt("",!0),n.value&&n.value.curve?(k(),T("div",cp,[a("h3",null,[ut(p(d(i)("gen.cands"))+" ",1),a("span",up,p(d(i)("gen.cands_meta",{note:d(yt)(n.value.curve.note||""),s:t.d.sigma||n.value.curve.sigma})),1)]),a("p",{class:"small",innerHTML:u.value},null,8,dp)])):gt("",!0),a("div",pp,p(d(i)("gen.figs")),1),l.value&&l.value.err?(k(),T("div",fp,[a("p",hp,p(d(ht)(l.value.err)),1)])):l.value&&l.value.building?(k(),T("div",mp,[a("p",_p,[a("b",null,p(d(i)("gen.recomputing")),1),ut(" "+p(d(yt)(l.value.curves?.note||"")),1)]),v[0]||(v[0]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[1]||(v[1]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))])):l.value?(k(),T("div",bp,[(k(!0),T(rt,null,xt(f.value,(w,P)=>(k(),T("div",{key:P,class:"panel"},[a("h3",null,[ut(p(d(yt)(w.title||"")),1),w.unit?(k(),T("span",$p,"("+p(d(yt)(w.unit))+")",1)):gt("",!0)]),At(Yt,{html:d(Jt)("multiline",Object.assign({zero:!1},w))},null,8,["html"]),w.note?(k(),T("p",yp,p(d(yt)(w.note)),1)):gt("",!0)]))),128))])):(k(),T("div",vp,[a("p",gp,p(d(i)("gen.loading")),1),v[2]||(v[2]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[3]||(v[3]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))]))]))}}),wp={class:"eyebrow"},kp={class:"small muted"},Mp=["href"],Sp=["innerHTML"],Tp={class:"panel mb"},Ep={class:"small muted"},Cp=["innerHTML"],Fp={style:{display:"flex",gap:"8px","flex-wrap":"wrap",margin:"10px 0","align-items":"center"}},Op=["placeholder","value"],Ap={class:"small muted",for:"askm"},qp=["innerHTML"],jp=["innerHTML"],Pp=["title"],Hp={class:"muted"},Lp={class:"btn",id:"askgo"},Dp={id:"askout",class:"small"},Ip=Rt({__name:"Decision",props:{d:{},apis:{}},setup(t){const e=t,s=[["equip","设备类"],["sched","检修排程决策"],["loss","损失分析"],["risk","安全风险预测"]],n={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},l=Mt("equip"),o=Mt(""),c=Mt(""),r=Mt(""),u=W(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),m=W(()=>u.value?u.value.models||{}:null),f=W(()=>!!u.value?.offline||!!u.value?.LOCAL_AI_DOWN),_=W(()=>i("cat."+l.value)),v=W(()=>s.map(([L])=>`<button class="pill ${L===l.value?"on":""}" data-cat="${L}">${i("cat."+L)}</button>`).join("")),w=W(()=>[1,2,3].map(L=>`<div class="qitem" data-q="${ht(i("cat."+l.value+".q"+L))}">${i("cat."+l.value+".q"+L)}</div>`).join("")),P=(L,mt)=>i("mdl."+L+"."+mt),B=L=>(P(L,"nm")||L)+(n[L]?" · "+i("mdl."+n[L]):"")+(P(L,"t")?" · "+P(L,"t"):""),z=L=>n[L]?n[L]==="local"?i("mdl.zero_outbound"):`<span style="color:var(--warning)">${i("mdl.outbound_warn")}</span>`:`<span style="color:var(--warning)">${i("mdl.unknown_warn")}</span>`,ot=W(()=>{const L=m.value;if(L===null)return c.value;const mt=Object.keys(L);return!c.value||!mt.includes(c.value)?mt[0]||"":c.value}),q=W(()=>{const L=m.value;return L===null?'<option value="">…</option>':Object.keys(L).length?Object.keys(L).map(mt=>`<option value="${ht(mt)}" ${mt===ot?"selected":""}>${ht(B(mt))}</option>`).join(""):`<option value="">${f.value?i("ask.local_down"):i("ask.no_models")}</option>`}),D=W(()=>`/?lang=zh&win=${encodeURIComponent(String(e.d?.win||""))}`),S=W(()=>ot.value?z(ot.value):"");return(L,mt)=>(k(),T("section",null,[a("div",wp,p(d(i)("dec.head")),1),a("p",kp,[ut(p(d(i)("dec.classic"))+" ",1),a("a",{href:D.value},p(d(i)("ui.open_classic")),9,Mp)]),a("div",{style:{display:"flex",gap:"8px",margin:"10px 0 12px","flex-wrap":"wrap"},innerHTML:v.value},null,8,Sp),a("div",Tp,[a("h3",null,p(d(i)("ask.common_q",{cat:_.value})),1),a("p",Ep,p(d(i)("cat."+l.value+".hint"))+p("。")+p(d(i)("ask.grounding")),1),a("div",{innerHTML:w.value,class:"unwrap-host"},null,8,Cp),a("div",Fp,[a("input",{id:"askq",type:"text",placeholder:d(ht)(d(i)("ask.placeholder",{cat:_.value})),value:o.value,style:{flex:"1","min-width":"280px"}},null,8,Op),a("label",Ap,p(d(i)("ask.model")),1),a("select",{id:"askm",innerHTML:q.value},null,8,qp),a("span",{id:"mdlnote",class:"small",innerHTML:S.value},null,8,jp),a("label",{class:"small",style:{cursor:"pointer","white-space":"nowrap"},title:d(ht)(d(i)("ask.xrev_title"))},[mt[0]||(mt[0]=a("input",{type:"checkbox",id:"askxrev"},null,-1)),ut(" "+p(d(i)("ask.xrev"))+" ",1),a("span",Hp,p(d(i)("ask.xrev_note")),1)],8,Pp),a("button",Lp,p(d(i)("ask.go")),1)]),a("div",Dp,p(r.value||d(i)("ask.idle")),1)])]))}}),Rp={class:"eyebrow"},Np={class:"panel mb"},Bp={class:"small muted",style:{"font-weight":"400"}},Wp=["placeholder","value"],Kp={class:"btn","data-asst":"fault"},Up={class:"small muted"},Vp=["innerHTML"],zp={id:"asstOut_fault",style:{"margin-top":"10px"}},Gp={class:"panel mb"},Yp={class:"small muted",style:{"font-weight":"400"}},Jp=["innerHTML"],Xp={class:"btn","data-asst":"prev"},Zp={id:"asstOut_prev",style:{"margin-top":"10px"}},Qp={class:"panel mb"},tf={class:"small muted",style:{"font-weight":"400"}},ef=["innerHTML"],sf={class:"btn","data-asst":"tree"},nf={id:"asstOut_tree",style:{"margin-top":"10px"}},_n="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px",lf=Rt({__name:"Assistant",setup(t){const e=["变桨","偏航","主轴承","齿轮箱","发电机","变流器","塔架与基础","主控与传感网","叶片与叶根"],s=["3225","3130","13902","10105","3224"],n=vs({fault:"",prev:"pitch",tree:"pitch",out:{fault:"",prev:"",tree:""}}),l=c=>e.map(r=>`<option value="${Rs(r)}" ${n[c]===Rs(r)?"selected":""}>${xe(r)}</option>`).join(""),o=W(()=>s.map(c=>`<a href="#" data-code="${c}">${c}</a>`).join(" · "));return(c,r)=>(k(),T("section",null,[a("div",Rp,p(d(i)("asst.head"))+" — "+p(d(i)("asst.head_note")),1),a("div",Np,[a("h3",null,[ut(p(d(i)("asst.corrective"))+" ",1),a("span",Bp,p(d(i)("asst.corrective_flow")),1)]),a("div",{style:_n},[a("input",{id:"asstIn_fault",placeholder:d(ht)(d(i)("asst.code_placeholder")),value:n.fault,style:{flex:"1 1 220px"}},null,8,Wp),a("button",Kp,p(d(i)("ui.query")),1),a("span",Up,[ut(p(d(i)("asst.common"))+" ",1),a("span",{class:"unwrap-host",innerHTML:o.value},null,8,Vp)])]),a("div",zp,p(n.out.fault),1)]),a("div",Gp,[a("h3",null,[ut(p(d(i)("asst.preventive"))+" ",1),a("span",Yp,p(d(i)("asst.preventive_flow")),1)]),a("div",{style:_n},[a("select",{id:"asstIn_prev",style:{flex:"1 1 200px"},innerHTML:l("prev")},null,8,Jp),a("button",Xp,p(d(i)("ui.query")),1)]),a("div",Zp,p(n.out.prev),1)]),a("div",Qp,[a("h3",null,[ut(p(d(i)("asst.faulttree"))+" ",1),a("span",tf,p(d(i)("asst.faulttree_flow")),1)]),a("div",{style:_n},[a("select",{id:"asstIn_tree",style:{flex:"1 1 200px"},innerHTML:l("tree")},null,8,ef),a("button",sf,p(d(i)("ui.query")),1)]),a("div",nf,p(n.out.tree),1)])]))}}),of={class:"eyebrow"},af={key:0,class:"panel"},rf={class:"small",style:{color:"var(--critical)"}},cf={key:1,class:"panel"},uf={class:"small muted"},df={class:"panel mb"},pf={class:"small muted"},ff={key:0,class:"small"},hf=["disabled"],mf={class:"panel mb"},_f={class:"small",style:{"max-height":"340px",overflow:"auto",margin:"0"}},vf=Rt({__name:"Recalc",setup(t){const e=Mt(null),s=Mt(""),n=Mt(!1);let l=null;const o=async()=>{try{const r=await fetch("/api/recalc");e.value=await r.json()}catch(r){s.value=String(r&&r.message||r)}},c=async()=>{n.value=!0;try{await fetch("/api/recalc_start",{method:"POST"}),await o()}catch(r){s.value=String(r&&r.message||r)}finally{n.value=!1}};return Ye(()=>{o(),l=setInterval(o,5e3)}),Un(()=>{l&&clearInterval(l)}),(r,u)=>(k(),T("section",null,[a("div",of,p(d(i)("rc.eyebrow")),1),s.value?(k(),T("div",af,[a("p",rf,p(s.value),1)])):e.value?(k(),T(rt,{key:2},[a("div",df,[a("h3",null,p(e.value.running?d(i)("rc.running"):d(i)("rc.idle")),1),a("p",pf,p(d(i)("rc.note")),1),e.value.started_at?(k(),T("p",ff,[ut(p(d(i)("rc.since"))+" ",1),a("code",null,p(e.value.started_at),1)])):gt("",!0),a("button",{class:"pill",disabled:n.value||e.value.running,onClick:c},p(d(i)("rc.start")),9,hf)]),a("div",mf,[a("h3",null,p(d(i)("rc.log")),1),a("pre",_f,p(e.value.log||d(i)("rc.empty")),1)])],64)):(k(),T("div",cf,[a("p",uf,p(d(i)("rc.loading")),1)]))]))}}),gf={class:"eyebrow"},bf={key:0,class:"panel"},$f={class:"small muted"},yf={key:1,class:"panel"},xf={class:"small",style:{color:"var(--critical)"}},wf={class:"panel mb"},kf={class:"small muted"},Mf={class:"small muted"},Sf={class:"tblwrap"},Tf={style:{"margin-top":"10px"}},Ef={style:{width:"18%"}},Cf={style:{width:"20%"}},Ff={style:{width:"13%"}},Of={style:{width:"10%"}},Af={style:{width:"11%"}},qf={class:"small"},jf={class:"small num"},Pf={key:0,class:"muted"},Hf={class:"small muted"},Lf={class:"small"},Df={class:"small"},If={class:"small"},Rf={class:"muted"},Nf={style:{"margin-top":"3px"}},Bf={class:"muted",style:{"margin-top":"3px"}},Wf={class:"eyebrow",style:{"margin-top":"18px"}},Kf=Rt({__name:"System",props:{apis:{}},setup(t){const e=t,s=r=>String(r??""),n=W(()=>e.apis?.["/detail/api/maint_survey"]??e.apis?.["/api/maint_survey"]??null),l=[[["数据","Data"],"mt.layer_data","mt.layer_data_note","var(--accent)"],[["机理","Domain model","Mechanism"],"mt.layer_mech","mt.layer_mech_note","var(--warning)"]],o=W(()=>n.value?.rows||[]),c=W(()=>l.map(([r,u,m,f])=>({kn:u,kd:m,col:f,rs:o.value.filter(_=>r.includes(String(_.层)))})).filter(r=>r.rs.length));return(r,u)=>(k(),T("section",null,[a("div",gf,p(d(i)("mt.eyebrow")),1),n.value?n.value.error?(k(),T("div",yf,[a("p",xf,p(d(yt)(n.value.error)),1)])):(k(),T(rt,{key:2},[a("div",wf,[a("h3",null,p(d(i)("mt.head",{n:o.value.length})),1),a("p",kf,p(d(i)("mt.note")),1)]),(k(!0),T(rt,null,xt(c.value,m=>(k(),T("div",{key:m.kn,class:"panel mb",style:Dt(`border-left:3px solid ${m.col}`)},[a("h3",null,p(d(i)(m.kn))+" ("+p(m.rs.length)+")",1),a("p",Mf,p(d(i)(m.kd)),1),a("div",Sf,[a("table",Tf,[a("tr",null,[a("th",Ef,p(d(i)("mt.src")),1),a("th",Cf,p(d(i)("mt.cov")),1),a("th",Ff,p(d(i)("mt.last")),1),a("th",Of,p(d(i)("mt.freq")),1),a("th",Af,p(d(i)("mt.resp")),1),a("th",null,p(d(i)("mt.how")),1)]),(k(!0),T(rt,null,xt(m.rs,(f,_)=>(k(),T("tr",{key:_},[a("td",qf,[a("b",null,p(f.存在?"":"✗ ")+p(s(f.名)),1)]),a("td",jf,[ut(p(s(f.覆盖)),1),f.条数?(k(),T("span",Pf,p(d(i)("mt.rows_n",{n:d(Ct)(f.条数)})),1)):gt("",!0)]),a("td",Hf,p(d(ht)(f.末次更新||"—")),1),a("td",Lf,p(s(f.频率)),1),a("td",Df,p(s(f.责任)),1),a("td",If,[a("div",Rf,[ut(p(d(i)("mt.put"))+" ",1),a("code",null,p(s(f.位置)),1)]),a("div",Nf,[ut(p(d(i)("mt.run"))+" ",1),a("code",null,p(s(f.摄入)),1)]),a("div",Bf,p(s(f.说明)),1)])]))),128))])])],4))),128))],64)):(k(),T("div",bf,[a("p",$f,p(d(i)("mt.surveying")),1)])),a("div",Wf,p(d(i)("tab.recalc")),1),At(vf)]))}}),Uf={class:"eyebrow"},Vf={class:"panel mb noprint"},zf={style:{display:"flex",gap:"10px","align-items":"center","flex-wrap":"wrap","margin-bottom":"10px"}},Gf={class:"small",style:{"font-weight":"600"}},Yf=["data-preset"],Jf={id:"rptaud"},Xf=["selected"],Zf=["selected"],Qf={class:"btn quiet",id:"rptprint"},th={class:"btn quiet","data-export":"docx"},eh={class:"btn quiet","data-export":"xlsx"},sh={key:0,class:"small",style:{color:"var(--warning)","flex-basis":"100%"}},nh={class:"small",style:{"font-weight":"600","margin-bottom":"7px"}},lh={style:{"font-weight":"400",color:"var(--muted)"}},oh=["innerHTML"],ih={id:"rpthint",class:"small muted",style:{"margin-top":"9px","padding-top":"8px","border-top":"1px solid var(--line)","min-height":"19px"}},ah={style:{"margin-top":"11px","padding-top":"10px","border-top":"1px solid var(--line)"}},rh={class:"small",style:{"font-weight":"600","margin-bottom":"6px"}},ch=["innerHTML"],uh={style:{display:"flex",gap:"8px","align-items":"center","flex-wrap":"wrap"}},dh=["placeholder","value"],ph=["innerHTML"],fh=["disabled"],hh={id:"rptout",class:"small muted",style:{"margin-top":"7px"}},mh={key:0,class:"paper",style:{"text-align":"center",padding:"56px 40px"}},_h={class:"small muted"},vh={key:1,class:"paper"},gh={class:"paper-hd"},bh={class:"paper-ti"},$h={class:"small muted",style:{"margin-top":"3px"}},yh={class:"small muted",style:{"text-align":"right"}},xh={key:0,class:"noprint",style:{display:"flex",gap:"3px","justify-content":"flex-end","margin-bottom":"-6px",position:"relative","z-index":"2"}},wh=["data-k","disabled"],kh=["data-k","disabled"],Mh=["data-k"],Sh=["innerHTML"],Th=["innerHTML"],Eh={class:"paper-ft"},Ch=Rt({__name:"Report",props:{d:{},apis:{}},setup(t){const e=t,s={month:["kpi","water","emon","blame","ram","pareto","units","plan","caliber"],week:["kpi","frate","units","plan","caliber"],topic:["units","chain","ram","loop","caliber"],year:["kpi","water","emon","ram","loop","caliber"],blank:[]},n={kpi:"gen",water:"gen",emon:"gen",blame:"gen",ram:"rel",parts:"rel",attrib:"rel",pareto:"flt",quad:"flt",frate:"flt",units:"unit",chain:"unit",loop:"unit",plan:"end",caliber:"end",narr:"end"},l={kpi:"▦",water:"▤",emon:"▥",blame:"◧",ram:"◈",parts:"▤",attrib:"▬",pareto:"▮",quad:"◇",frate:"▪",units:"☰",chain:"⛓",loop:"✓",plan:"✎",caliber:"⚑",narr:"✍"},o={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},c=["gen","rel","flt","unit","end"],r=vs({canvas:[],aud:"in",need:"",model:"",models:null,compose:null,narr:null,out:""}),u=W(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),m=W(()=>u.value?u.value.models||{}:r.models),f=W(()=>!!u.value?.offline),_=(st,Y)=>i("mdl."+st+"."+Y),v=st=>(_(st,"nm")||st)+(o[st]?" · "+i("mdl."+o[st]):"")+(_(st,"t")?" · "+_(st,"t"):""),w=st=>r.canvas.includes(st),P=W(()=>r.compose===!0&&!!m.value&&Object.keys(m.value).length>0),B=W(()=>{const st=m.value;return st===null?'<option value="">…</option>':Object.keys(st).length?Object.keys(st).map(Y=>`<option value="${ht(Y)}" ${Y===D?"selected":""}>${ht(v(Y))}</option>`).join(""):`<option value="">${f.value?i("ask.local_down"):i("ask.no_models")}</option>`}),z=W(()=>c.map(st=>`<div class="small muted" style="text-align:right;white-space:nowrap">${i("rpt.g."+st)}</div><div style="display:flex;gap:6px;flex-wrap:wrap">`+Object.keys(n).filter(Y=>n[Y]===st).map(Y=>`<button class="pill ${w(Y)?"on":""}" data-block="${Y}" style="border-radius:7px;padding:5px 11px;font-size:12.5px;opacity:${w(Y)?1:.8}">${l[Y]} ${i("rpt.b."+Y+".nm")}${w(Y)?" ✓":""}</button>`).join("")+"</div>").join("")),ot=W(()=>""),q=st=>"",D=W(()=>{const st=m.value;if(st===null)return r.model;const Y=Object.keys(st);return!r.model||!Y.includes(r.model)?Y[0]||"":r.model}),S=W(()=>i("rpt.need_hint")+(D.value?o[D.value]==="local"?i("rpt.local_note"):`<span style="color:var(--warning)">${i("rpt.cloud_note")}</span>`:"")),L=W(()=>r.out?r.out:r.compose===!1?i("rpt.no_compose"):m.value&&!Object.keys(m.value).length?f.value?i("ask.local_down"):i("rpt.no_models"):""),mt=W(()=>(String(e.d?.fus?.数据时点||"").match(/\d{4}-\d{2}-\d{2}/)||[""])[0]);return(st,Y)=>(k(),T("section",null,[a("div",Uf,p(d(i)("rpt.eyebrow")),1),a("div",Vf,[a("div",zf,[a("span",Gf,p(d(i)("rpt.presets")),1),(k(!0),T(rt,null,xt(Object.keys(s),dt=>(k(),T("button",{key:dt,class:"pill","data-preset":dt},p(d(i)("rpt.preset."+dt)),9,Yf))),128)),Y[0]||(Y[0]=a("span",{style:{flex:"1"}},null,-1)),a("select",Jf,[a("option",{value:"in",selected:r.aud==="in"},p(d(i)("rpt.aud_in")),9,Xf),a("option",{value:"up",selected:r.aud==="up"},p(d(i)("rpt.aud_up")),9,Zf)]),a("button",Qf,p(d(i)("rpt.print")),1),a("button",th,p(d(i)("rpt.export_docx")),1),a("button",eh,p(d(i)("rpt.export_xlsx")),1),r.aud==="up"?(k(),T("span",sh,p(d(i)("rpt.up_note")),1)):gt("",!0)]),a("div",nh,[ut(p(d(i)("rpt.library"))+" ",1),a("span",lh,p(d(i)("rpt.library_note",{n:r.canvas.length})),1)]),a("div",{style:{display:"grid","grid-template-columns":"auto 1fr",gap:"6px 12px","align-items":"center"},innerHTML:z.value},null,8,oh),a("div",ih,p(d(i)("rpt.hint_idle")),1),a("div",ah,[a("div",rh,[ut(p(d(i)("rpt.need_head"))+" ",1),a("span",{id:"rptmdlnote",style:{"font-weight":"400",color:"var(--muted)"},innerHTML:S.value},null,8,ch)]),a("div",uh,[a("input",{id:"rptneed",placeholder:d(ht)(d(i)("rpt.need_ph")),value:r.need,style:{flex:"1 1 300px","min-width":"220px"}},null,8,dh),a("select",{id:"rptmdl",innerHTML:B.value},null,8,ph),a("button",{class:"btn",id:"rptgo",disabled:!P.value},p(d(i)("rpt.compose")),9,fh)]),a("div",hh,p(L.value),1)])]),r.canvas.length?(k(),T("div",vh,[a("div",gh,[a("div",null,[a("div",bh,p(d(i)("app.brand"))+" · "+p(d(i)("rpt.paper_title")),1),a("div",$h,p(d(i)("rpt.paper_sub",{win:d(Ae)(t.d.win),n:(t.d.kpi||{}).全场||38}))+p(r.aud==="up"?" | "+d(i)("rpt.up_tag"):""),1)]),a("div",yh,p(d(i)("rpt.chapters",{n:r.canvas.length})),1)]),(k(!0),T(rt,null,xt(r.canvas,(dt,Kt)=>(k(),T(rt,{key:dt},[n[dt]?(k(),T("div",xh,[a("button",{class:"pill","data-mv":"up","data-k":dt,disabled:Kt===0,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↑",8,wh),a("button",{class:"pill","data-mv":"down","data-k":dt,disabled:Kt===r.canvas.length-1,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↓",8,kh),a("button",{class:"pill","data-mv":"del","data-k":dt,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"×",8,Mh)])):gt("",!0),n[dt]?(k(),T("div",{key:1,innerHTML:q()},null,8,Sh)):gt("",!0)],64))),128)),a("div",{innerHTML:ot.value},null,8,Th),a("div",Eh,[a("span",null,p(d(i)("rpt.foot_src"))+p(mt.value?" | "+d(i)("rpt.foot_asof",{d:mt.value}):""),1),a("span",null,p(d(i)("rpt.foot_trace"))+p(r.aud==="up"?" | "+d(i)("rpt.foot_deid"):""),1)])])):(k(),T("div",mh,[a("div",_h,p(d(i)("rpt.preview_empty")),1)]))]))}}),Fh={class:"kpis"},Oh=["title"],Ah=["innerHTML"],qh={key:1},jh={key:0},Ph={class:"sechead"},Hh={class:"meta"},Lh={class:"meta"},Dh={key:0,class:"card mb",style:{"margin-bottom":"10px"}},Ih={class:"small",style:{color:"var(--warning)"}},Rh={class:"small muted"},Nh={class:"cards"},Bh=["id"],Wh={class:"head"},Kh=["href"],Uh={class:"sys"},Vh={class:"evidence-detail"},zh={class:"why"},Gh={class:"evid"},Yh=["title"],Jh={key:1,class:"rv"},Xh={key:0,class:"caveat"},Zh={class:"sechead"},Qh={class:"meta"},tm={class:"legend"},em={class:"cells"},sm=["data-u","title"],nm={key:1,class:"quiet",style:{padding:"10px"}},lm={class:"nums"},om={class:"quiet"},im={class:"sechead"},am={class:"meta"},rm={class:"systems"},cm={class:"t"},um=["href"],dm={class:"bar"},pm={class:"cnt"},fm=Rt({__name:"Overview",props:{d:{}},setup(t){const e=t,s=W(()=>e.d?.fus||{}),n=W(()=>e.d?.m8?.mtbf||{}),l=W(()=>e.d?.control||{}),o=W(()=>{const q={};for(const D of l.value.states||[])q[D.k]=D.loss;return q}),c=W(()=>{const q=l.value,D=i("kpi.loss",{win:Ae(e.d?.win)})+(o.value["停机(调度令)"]!=null?` · ${i("kpi.loss_dispatch",{n:Ct(o.value["停机(调度令)"])})}`:"");return[{v:Ct(q.avail,1),u:"%",l:i("kpi.avail",{win:Ae(e.d?.win)}),k:q.avail>=95?"ok":"warn",ti:""},{v:Ct(n.value.停机总时长h),u:"h",l:i("kpi.downtime",{n:Ct(n.value.停机事件数)}),k:"warn",ti:""},{v:Ct(n.value.MTBF_h),u:"h",l:i("kpi.mtbo"),k:"",ti:""},{v:Ct(o.value.停机),u:"MWh",l:D,k:"",ti:""},{v:Ct(o.value["限电·绑定"]),u:"MWh",l:i("kpi.curtail"),k:"",ti:""},{vRaw:`${Ct(e.d?.kpi?.报警台)} <small>/ ${Ct(e.d?.kpi?.全场)}</small>`,u:"",l:i("kpi.alarm_units"),k:e.d?.kpi?.报警台?"warn":"ok",ti:i("kpi.alarm_units.hint"),vHtml:!0}]}),r=W(()=>{const q={};for(const D of e.d?.watch||[])q[D.t]=D.why;return q}),u=W(()=>((s.value.链盘||{}).rows||[]).filter(q=>q.lvl==="bad"||q.lvl==="warn"));function m(q){const D=(r.value[q.t]||"").trim();if(D)return D;const S=ql[q.stuck]||String(q.stuck||"").toLowerCase(),L=i(S==="evidence"?"step.site_records":"step."+(S||"evidence"));return i("ov.basis_fusion",{part:q.part||"—",done:q.done==null?"—":q.done,n:(q.steps||[]).length||"—",stuck:q.stuck?L:i("ov.all_steps_done"),srcs:(q.srcs||[]).join(" / ")||i("ov.no_srcs")})}function f(q){if(!q.stuck)return"";const D=ql[q.stuck]||String(q.stuck||"").toLowerCase(),S=i(D==="evidence"?"step.site_records":"step."+(D||"evidence"));return i("step.stuck_at",{step:S})}const _=[["危险","critical"],["报警","warning"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],v=W(()=>{const q=e.d?.sysdist||{};return Gn.map(D=>{const S=q[D]||{},L=Object.values(S).reduce((mt,st)=>mt+st,0)||1;return{name:xe(D),slug:Rs(D),dist:S,n:L,seg:_.filter(([mt])=>S[mt]).map(([mt,st])=>({k:mt,v:st}))}})}),w=W(()=>s.value.矩阵||[]),P=W(()=>new Set(u.value.map(q=>q.t))),B={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},z={candidate_new:"candidate",candidate_baseline:"candidate",normal:"reference"},ot=q=>{const D=B[String(q??"")];return D?z[D]||D:""};return(q,D)=>(k(),T(rt,null,[a("section",null,[a("div",Fh,[(k(!0),T(rt,null,xt(c.value,(S,L)=>(k(),T("div",{key:L,class:Qt(["kpi",S.k]),title:S.ti||void 0},[S.vHtml?(k(),T("b",{key:0,innerHTML:S.vRaw},null,8,Ah)):(k(),T("b",qh,[ut(p(S.v),1),S.u?(k(),T("small",jh,p(S.u),1)):gt("",!0)])),a("span",null,p(S.l),1)],10,Oh))),128))])]),a("section",null,[a("div",Ph,[a("h2",null,p(d(i)("ov.attention")),1),a("span",Hh,p(d(i)("ov.attention_n",{n:u.value.length})),1),a("span",Lh,p(d(i)("ov.ranked_by")),1)]),s.value.gap?(k(),T("div",Dh,[a("p",Ih,p(s.value.gap),1),a("p",Rh,p(d(i)("ov.fus_gap_hint")),1)])):gt("",!0),a("div",Nh,[(k(!0),T(rt,null,xt(u.value,S=>(k(),T("div",{key:S.t,class:"card",id:`u-${S.t}`,style:Dt(`--sev:var(--${d(Hl)[d(Ns)(S.ostate)||(S.lvl==="bad"?"bad":"warn")]})`)},[a("div",Wh,[a("a",{class:"unit",href:`/turbine/${S.t}`},p(d(qt)(S.t)),9,Kh),a("span",Uh,p(S.part||""),1),a("span",{class:Qt(["chip",d(Ns)(S.ostate)||(S.lvl==="bad"?"bad":"warn")])},p(d(jl)(S.ostate||(S.lvl==="bad"?"危险":"报警"))),3)]),a("details",Vh,[a("summary",null,p(d(i)("ov.evidence")),1),a("div",zh,p(m(S)),1)]),a("div",Gh,[S.estate?(k(),T("span",{key:0,class:Qt(["tier",ot(S.estate)]),title:d(i)("tier."+(B[S.estate]||"unknown"))},p(d(jl)(S.estate)),11,Yh)):gt("",!0),S.srcs&&S.srcs.length?(k(),T("span",Jh,p(S.srcs.length)+" sources",1)):gt("",!0)]),f(S)||S.next?(k(),T("div",Xh,[a("b",null,p(d(i)("ov.caveat")),1),ut(p(f(S))+p(f(S)&&S.next?" — ":"")+p(S.next||""),1)])):gt("",!0)],12,Bh))),128))])]),a("section",null,[a("div",Zh,[a("h2",null,p(d(i)("ov.strip")),1),a("span",Qh,p(d(i)("ov.strip_hint")),1),a("div",tm,[(k(),T(rt,null,xt(["bad","warn","unk","ok","ex"],S=>a("span",{key:S},[a("i",{style:Dt(`background:var(--${d(Hl)[S]})`)},null,4),ut(p(d(i)(d(Cn)(S))),1)])),64))])]),a("div",{class:"strip",style:Dt(`--n:${w.value.length||38}`)},[a("div",em,[w.value.length?(k(!0),T(rt,{key:0},xt(w.value,S=>(k(),T("div",{key:S.turbine,class:Qt(["cell",[d(Pl)(S),P.value.has(S.turbine)?"hot":""]]),"data-u":S.turbine,title:`${d(qt)(S.turbine)} ${d(i)(d(Cn)(d(Pl)(S)))}`},null,10,sm))),128)):(k(),T("div",nm,p(s.value.gap||d(i)("ov.fus_gap_hint")),1))]),a("div",lm,[(k(!0),T(rt,null,xt(w.value,S=>(k(),T("span",{key:`n-${S.turbine}`,class:Qt(P.value.has(S.turbine)?"hot":"")},p(d(qt)(S.turbine).replace("#","")),3))),128))]),a("div",om,p(u.value.length?d(i)("ov.quiet",{n:Math.max(0,(w.value.length||38)-u.value.length)}):d(i)("ov.quiet_all",{n:w.value.length||38})),1)],4)]),a("section",null,[a("div",im,[a("h2",null,p(d(i)("ov.systems")),1),a("span",am,p(d(i)("ov.systems_hint")),1)]),a("div",rm,[(k(!0),T(rt,null,xt(v.value,S=>(k(),T("div",{key:S.name,class:"sysc"},[a("div",cm,[a("b",null,p(S.name),1),a("a",{href:`#tab=component&sys=${encodeURIComponent(S.slug)}`},p(d(i)("ui.open")),9,um)]),a("div",dm,[(k(!0),T(rt,null,xt(S.seg,L=>(k(),T("i",{key:L.k,style:Dt(`width:${(S.dist[L.k]/S.n*100).toFixed(1)}%;background:var(--${L.v})`)},null,4))),128))]),a("div",pm,[(k(!0),T(rt,null,xt(S.seg,L=>(k(),T("span",{key:`c-${L.k}`},[a("i",{style:Dt(`background:var(--${L.v})`)},null,4),ut(p(S.dist[L.k]),1)]))),128))])]))),128))])])],64))}}),hm={class:"page-head"},mm={key:12,class:"card"},_m={class:"hint"},vm=Rt({__name:"Workbench",props:{d:{},tab:{},sys:{},sub:{},cms:{},curves:{},apis:{},win:{}},emits:["tab","sub","win","reselect"],setup(t,{emit:e}){const s=t,n=e,l=Mt(""),o=Mt(""),c=Mt("");Ve(()=>s.win,u=>{l.value=u||"";const m=String(u||"").split("~");m.length===2&&(o.value=m[0],c.value=m[1])},{immediate:!0});const r=W(()=>!En.includes(s.tab));return(u,m)=>(k(),T(rt,null,[a("div",hm,[a("h1",null,p(d(i)("tab."+t.tab)),1)]),t.tab==="overview"?(k(),Nt(fm,{key:0,d:t.d},null,8,["d"])):t.tab==="energy"?(k(),Nt(td,{key:1,d:t.d},null,8,["d"])):t.tab==="component"?(k(),Nt(pu,{key:2,d:t.d,sys:t.sys},null,8,["d","sys"])):t.tab==="fault"?(k(),Nt(Nd,{key:3,d:t.d},null,8,["d"])):t.tab==="vibration"?(k(),Nt(Vd,{key:4,d:t.d,sub:t.sub,cms:t.cms,onSub:m[0]||(m[0]=f=>n("sub",f))},null,8,["d","sub","cms"])):t.tab==="generation"?(k(),Nt(xp,{key:5,d:t.d,curves:t.curves,pending:!!t.d.m9_pending},null,8,["d","curves","pending"])):t.tab==="decision"?(k(),Nt(Ip,{key:6,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="assistant"?(k(),Nt(lf,{key:7,d:t.d},null,8,["d"])):t.tab==="system"?(k(),Nt(Kf,{key:8,apis:t.apis},null,8,["apis"])):t.tab==="report"?(k(),Nt(Ch,{key:9,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="documents"?(k(),Nt(Zr,{key:10})):t.tab==="portal_src"?(k(),Nt(Yo,{key:11})):r.value?(k(),T("section",mm,[a("h2",null,[ut(p(d(i)("tab."+t.tab))+" ",1),m[1]||(m[1]=a("small",null,"(本页签尚未迁移到 Vue)",-1))]),a("p",_m,[m[2]||(m[2]=ut(" 迁移纪律:页签逐个搬,每搬一个就用 ",-1)),m[3]||(m[3]=a("code",null,"tools/render_parity.mjs",-1)),m[4]||(m[4]=ut(" 与重构前页面 (现网 ",-1)),m[5]||(m[5]=a("code",null,"/detail/v2",-1)),ut(")对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:"+p(d(En).join("、"))+"。 ",1)])])):gt("",!0)],64))}}),gm=Go(vm,[["__scopeId","data-v-401b393b"]]),bm={key:1,class:"wrap"},$m={class:"top"},ym={class:"right"},xm=["title"],wm=["title"],km={class:"small muted",for:"win"},Mm=["aria-label","value"],Sm=["label"],Tm=["value"],Em=["label"],Cm=["value"],Fm=["label"],Om=["value"],Am=["title"],qm=["aria-label"],jm=["aria-label"],Pm={class:"tabs",id:"tabs"},Hm=["onClick"],Lm={key:0,class:"todo"},Dm={key:0,id:"root"},Im={key:0,class:"hint",style:{padding:"0 18px"}},Rm={key:1,class:"hint",style:{padding:"0 18px",color:"var(--bad)"}},Nm={key:2,class:"card"},Bm=Rt({__name:"App",setup(t){const e=location.hash.replace("#",""),s=(e.match(/^tab=([a-z_]+)/)||[])[1]||"",n=/\/detail\/v2\/?$/.test(location.pathname),l=Mt(n||e==="workbench"||s?"workbench":"portal");function o(st){l.value=st;try{location.hash=st==="portal"?"":st}catch{}}const c=Mt("overview");s&&(c.value=s);const r=Mt(null),u=Mt(null),m=Mt(""),f=[["近30日","win.30d"],["近90日","win.90d"],["2026年","win.2026"],["2026H1","win.2026H1"],["2025H2","win.2025H2"],["全程","win.all"]],_={近30日:"30d",近90日:"90d","2026年":"2026","2026H1":"2026H1","2025H2":"2025H2",全程:"all"},v=W(()=>m.value||""),w=W(()=>/^\d{4}-\d{2}-\d{2}~\d{4}-\d{2}-\d{2}$/.test(v.value)),P=W(()=>((u.value||{}).all_months||[]).slice().reverse()),B=Mt(""),z=Mt("");function ot(st){const Y=st.target.value;m.value=_[Y]||Y}function q(){B.value&&z.value&&(m.value=B.value+"~"+z.value)}const D=Mt(!1),S=Mt("");async function L(){D.value=!0,S.value="";const st=m.value?`?win=${encodeURIComponent(m.value)}`:"",Y=await zo("fleet",{method:"GET"});if(st)try{const dt=await fetch("/api/fleet"+st);u.value=await dt.json()}catch(dt){S.value=dt instanceof Error?dt.message:String(dt)}else Y.ok?(u.value=Y.data,u.value?.win&&(m.value=u.value.win)):S.value=Y.error||`HTTP ${Y.status}`;D.value=!1}Ve(m,st=>{st&&st!==u.value?.win&&L()});function mt(){c.value="overview",r.value=null,L()}return Ye(()=>{L(),window.addEventListener("hashchange",()=>{const st=location.hash.replace("#",""),Y=(st.match(/^tab=([a-z_]+)/)||[])[1]||"";st==="workbench"||Y?(l.value="workbench",Y&&(c.value=Y)):st||(l.value="portal")})}),(st,Y)=>l.value==="portal"?(k(),Nt(Yo,{key:0})):(k(),T("div",bm,[a("header",$m,[Y[7]||(Y[7]=a("span",{class:"mark"},"≋",-1)),Y[8]||(Y[8]=a("span",{class:"brand"},[ut("观澜"),a("small",null,"WIND ASSET INTELLIGENCE")],-1)),a("div",ym,[a("a",{class:"back-portal",href:"#",title:d(i)("ui.back_portal"),onClick:Y[0]||(Y[0]=xr(dt=>o("portal"),["prevent"]))},p(d(i)("ui.back_portal")),9,xm),a("button",{type:"button",class:"reselect",title:d(i)("ui.reselect"),onClick:mt},p(d(i)("ui.reselect")),9,wm),a("label",km,p(d(i)("win.label")),1),a("select",{id:"win","aria-label":d(i)("win.label"),value:v.value,onChange:ot},[a("optgroup",{label:d(i)("win.presets")},[(k(),T(rt,null,xt(f,([dt,Kt])=>a("option",{key:dt,value:dt},p(d(i)(Kt)),9,Tm)),64))],8,Sm),w.value?(k(),T("optgroup",{key:0,label:d(i)("win.custom")},[a("option",{value:v.value},p(d(i)("win.custom_sel",{a:v.value.split("~")[0],b:v.value.split("~")[1]})),9,Cm)],8,Em)):gt("",!0),P.value.length?(k(),T("optgroup",{key:1,label:d(i)("win.months")},[(k(!0),T(rt,null,xt(P.value,dt=>(k(),T("option",{key:dt,value:dt},p(dt),9,Om))),128))],8,Fm)):gt("",!0)],40,Mm),a("span",{class:"winrng",title:d(i)("win.custom_hint")},[xn(a("input",{type:"date","aria-label":d(i)("win.from"),"onUpdate:modelValue":Y[1]||(Y[1]=dt=>B.value=dt)},null,8,qm),[[Fl,B.value]]),Y[6]||(Y[6]=a("span",{class:"muted"},"~",-1)),xn(a("input",{type:"date","aria-label":d(i)("win.to"),"onUpdate:modelValue":Y[2]||(Y[2]=dt=>z.value=dt)},null,8,jm),[[Fl,z.value]]),a("button",{type:"button",onClick:q},p(d(i)("win.apply")),1)],8,Am)])]),a("nav",Pm,[(k(!0),T(rt,null,xt(d(jr),dt=>(k(),T("button",{key:dt,class:Qt({on:dt===c.value}),onClick:Kt=>c.value=dt},[ut(p(d(i)("tab."+dt)),1),d(En).includes(dt)?gt("",!0):(k(),T("sup",Lm,"迁移中"))],10,Hm))),128))]),l.value!=="portal"?(k(),T("main",Dm,[l.value==="workbench"?(k(),T(rt,{key:0},[D.value?(k(),T("p",Im,"取数中(/api/fleet)…")):S.value?(k(),T("p",Rm,"取数失败:"+p(S.value),1)):u.value?(k(),Nt(gm,{key:2,d:u.value,tab:c.value,sub:r.value,onTab:Y[3]||(Y[3]=dt=>c.value=dt),onSub:Y[4]||(Y[4]=dt=>r.value=dt),win:m.value,onWin:Y[5]||(Y[5]=dt=>{m.value=dt}),onReselect:mt},null,8,["d","tab","sub","win"])):gt("",!0)],64)):l.value==="smoke"?(k(),Nt(Ar,{key:1})):(k(),T("section",Nm,[...Y[9]||(Y[9]=[Ia("<h2>关于本前端</h2><ul><li>技术栈:<b>Vue 3 + Vite + TypeScript + Node.js</b>(用户令 2026-09-29)</li><li>与后端交互:只走网关一个源站,路径与形状以 <code>app_backEnd/app_backEnd_guanlan/contract/http_api_v1.json</code> 冻契约为准</li><li>数据来源:与重构前 <code>/detail/v2</code> 同一个接口 <code>/api/fleet?win=</code></li><li>迁移纪律:页签逐个搬,与重构前页面对拍通过后才删对应 Python 源码</li></ul>",2)])]))])):gt("",!0),Y[10]||(Y[10]=a("footer",{id:"foot",class:"small muted",style:{"margin-top":"36px"}},null,-1))]))}});Mr(Bm).mount("#app");
|