var Yt=Object.defineProperty,Qt=Object.defineProperties;var Jt=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ut=(e,i,a)=>i in e?Yt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,P=(e,i)=>{for(var a in i||(i={}))ct.call(i,a)&&ut(e,a,i[a]);if(ye)for(var a of ye(i))dt.call(i,a)&&ut(e,a,i[a]);return e},ve=(e,i)=>Qt(e,Jt(i));var mt=(e,i)=>{var a={};for(var l in e)ct.call(e,l)&&i.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&ye)for(var l of ye(e))i.indexOf(l)<0&&dt.call(e,l)&&(a[l]=e[l]);return a};var X=(e,i,a)=>new Promise((l,r)=>{var d=_=>{try{p(a.next(_))}catch(g){r(g)}},h=_=>{try{p(a.throw(_))}catch(g){r(g)}},p=_=>_.done?l(_.value):Promise.resolve(_.value).then(d,h);p((a=a.apply(e,i)).next())});import{_ as bt,o as m,c as f,a as u,t as E,r as pe,b as x,d as k,w as We,p as ft,i as ht,n as B,u as R,e as we,f as yt,g as A,h as St,j as S,k as vt,l as Zt,m as Xt,q as ea,s as q,v as N,x as Le,F as ge,y as De,z as ta,A as Fe,B as aa,C as na,D as z,E as ia,G as H}from"./index-1784378651390.js";import{g as te}from"./index-e9f36657-1784378651390.js";const gt=""+new URL("bottom-menu-arrow-big-180b7071-balabala-1784378651390.svg",import.meta.url).href,pt=""+new URL("bottom-menu-arrow-small-19304179-balabala-1784378651390.svg",import.meta.url).href;/**
 * @name: autofit.js
 * @author: Larry Zhu
 * @version: 3.2.8
 * @description: autofit.js 是迄今为止最易用的自适应工具
 * @license: MIT
 */let Ie=null,ne="",ze="",He="",Pe=null,wt=null,$=1,ee=!1;const ke={isAutofitRunning:!1,init(e={},i=!0){i&&console.log("autofit.js is running");const{dw:a=1920,dh:l=1080,el:r=typeof e=="string"?e:"body",resize:d=!0,ignore:h=[],transition:p="none",delay:_=0,limit:g=.1,cssMode:v="scale",allowScroll:w=!1}=e;Ie=r;const c=document.querySelector(r);if(!c){console.error(`autofit: '${r}' is not exist`);return}const b=document.createElement("style"),M=document.createElement("style");b.lang="text/css",M.lang="text/css",b.id="autofit-style",M.id="ignoreStyle",!w&&(b.innerHTML="body {overflow: hidden;}");const V=document.querySelector("body");V.appendChild(b),V.appendChild(M),c.style.height=`${l}px`,c.style.width=`${a}px`,c.style.transformOrigin="0 0",!w&&(c.style.overflow="hidden"),qe(a,l,c,h,g,v),Pe=()=>{clearTimeout(wt),_!=0?wt=setTimeout(()=>{qe(a,l,c,h,g,v),ee&&Oe(ne,He,ze)},_):(qe(a,l,c,h,g,v),ee&&Oe(ne,He,ze))},d&&window.addEventListener("resize",Pe),this.isAutofitRunning=!0,setTimeout(()=>{c.style.transition=`${p}s`})},off(e="body"){try{window.removeEventListener("resize",Pe);const i=document.querySelector("#autofit-style");i&&i.remove();const a=document.querySelector("#ignoreStyle");a&&a.remove();const l=document.querySelector(Ie||e);l&&(l.style.cssText=""),ee&&Tt()}catch(i){console.error("autofit: Failed to remove normally",i)}this.isAutofitRunning=!1,console.log("autofit.js is off")},elRectification:null,scale:$};function Oe(e,i=!0,a=1){if(!ke.isAutofitRunning){console.error("autofit.js：(elRectification): autofit has not been initialized yet");return}Tt(),!e&&console.error(`autofit.js：elRectification bad selector: ${e}`),ne=e,ze=a,He=i;const l=Array.from(document.querySelectorAll(e));if(l.length==0){console.error(`autofit.js：elRectification found no element by selector: "${e}"`);return}for(const r of l){const d=$==1?1:Number($)*Number(a);ee||(r.originalWidth=r.clientWidth,r.originalHeight=r.clientHeight),i?(r.style.width=`${r.originalWidth*d}px`,r.style.height=`${r.originalHeight*d}px`):(r.style.width=`${100*d}%`,r.style.height=`${100*d}%`),r.style.transform=`translateZ(0) scale(${1/Number($)})`,r.style.transformOrigin="0 0"}ee=!0}function Tt(){if(ne){ee=!1;for(const e of Array.from(document.querySelectorAll(ne)))e.style.width="",e.style.height="",e.style.transform=""}}function qe(e,i,a,l,r,d="scale"){const h=document.documentElement.clientHeight,p=document.documentElement.clientWidth;$=p/h<e/i?p/e:h/i,$=Math.abs(1-$)>r?$:1,ke.scale=+$;const _=Math.round(h/Number($)),g=Math.round(p/Number($));a.style.height=`${_}px`,a.style.width=`${g}px`,d==="zoom"?a.style.zoom=`${$}`:a.style.transform=`translateZ(0) scale(${$})`;const v=document.querySelector("#ignoreStyle");v.innerHTML="";for(const w of l){const c=w;let b=c.el||c.dom;if(typeof c=="string"&&(b=c),!b||typeof b=="object"&&!Object.keys(b).length){console.error(`autofit: found invalid or empty selector/object: ${b}`);continue}const M=c.scale?c.scale:1/Number($),V=M!=$&&c.fontSize,I=M!=$&&c.width,U=M!=$&&c.height;v.innerHTML+=`
${b} { 
      transform: scale(${M})!important;
      transform-origin: 0 0;
      ${I?`width: ${I}!important;`:""}
      ${U?`height: ${U}!important;`:""}
    }`,V&&(v.innerHTML+=`
${b} div ,${b} span,${b} a,${b} * {
        font-size: ${V}px;
      }`)}}ke.elRectification=Oe;const oa={name:"SvglineAnimation",props:{width:{type:Number,default:135},height:{type:Number,default:150},path:{type:String,default:"M0 72.5H682L732 0.5H3082"},color:{type:String,default:"#0091FF"},duration:{type:Number,default:3},length:{type:Number,default:100},begin:{type:Number,default:0},dir:{type:Array,default:()=>[0,1]},strokeWidth:{type:Number,default:4}},data(){let e=1;return{maskId:"svgline-"+e,radialGradientId:"radialGradient-"+e}},mounted(){let e=this._.uid;this.maskId="svgline-"+e,this.radialGradientId="radialGradient-"+e}},la={class:"svg-line-animation"},ra=["viewBox"],sa=["id"],ua=["stop-opacity"],ca=["stop-opacity"],da=["id"],ma=["r","fill"],fa=["begin","dur","path","keyPoints"],ha=["d","stroke","stroke-width","mask"];function ya(e,i,a,l,r,d){return m(),f("div",la,[(m(),f("svg",{width:"100%",height:"100%",viewBox:`0 0 ${a.width} ${a.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("defs",null,[u("radialGradient",{id:r.radialGradientId,cx:"50%",cy:"50%",fx:"100%",fy:"50%",r:"50%"},[u("stop",{offset:"0%","stop-color":"#fff","stop-opacity":a.dir[1]},null,8,ua),u("stop",{offset:"100%","stop-color":"#fff","stop-opacity":a.dir[0]},null,8,ca)],8,sa),u("mask",{id:r.maskId},[u("circle",{r:a.length,cx:"0",cy:"0",fill:`url(#${r.radialGradientId})`},[u("animateMotion",{begin:`${a.begin}s`,dur:`${a.duration}s`,path:a.path,rotate:"auto",keyPoints:`${a.dir[0]};${a.dir[1]}`,keyTimes:"0;1",repeatCount:"indefinite"},null,8,fa)],8,ma)],8,da)]),u("path",{class:"path-line",d:a.path,stroke:a.color,"stroke-width":a.strokeWidth,mask:`url(#${r.maskId})`},null,8,ha)],8,ra))])}const _e=bt(oa,[["render",ya]]);const va={class:"m-header"},ga={class:"m-header-wrap"},pa={class:"m-header-title"},wa={class:"m-header-subtext"},_a={class:"m-header-left",style:{color:"#fff"}},ka={class:"m-header-right"},ba={class:"m-header-line"},Sa={__name:"index",props:{title:{type:String,default:"红原县数字畜牧业监管平台"},subText:{type:String,default:"Hongyuan Digital Animal Husbandry Supervision Platform"}},setup(e){return(i,a)=>(m(),f("div",va,[u("div",ga,[u("div",pa,E(e.title),1),u("div",wa,E(e.subText),1)]),u("div",_a,[pe(i.$slots,"left")]),u("div",ka,[pe(i.$slots,"right")]),u("div",ba,[x(_e,{class:"m-header-line-left",width:961,height:79,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:100,path:"M1 1.52783L535 25.6808C552.73 26.5835 571.454 31.3851 588.834 39.2194C593.758 41.4385 598.692 43.7289 603.643 46.0273C633.567 59.9182 664.121 74.1016 696.754 74.6262C696.765 74.6264 696.775 74.6265 696.786 74.6267C821.602 76.5993 879.336 78 961 78"}),x(_e,{class:"m-header-line-right",width:961,height:79,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:100,path:"M1 1.52783L535 25.6808C552.73 26.5835 571.454 31.3851 588.834 39.2194C593.758 41.4385 598.692 43.7289 603.643 46.0273C633.567 59.9182 664.121 74.1016 696.754 74.6262C696.765 74.6264 696.775 74.6265 696.786 74.6267C821.602 76.5993 879.336 78 961 78"})])]))}};const Ta={class:"m-menu"},$a={__name:"index",props:{defaultActive:{type:[String,Number],default:""}},emits:["select"],setup(e,{emit:i}){const a=i,l=e,r=k(l.defaultActive);return ft("updateActive",h=>{h!==r.value&&(r.value=h,a("select",h))}),ft("activeIndex",r),We(()=>l.defaultActive,h=>{h!==r.value&&(r.value=h)}),(h,p)=>(m(),f("div",Ta,[pe(h.$slots,"default")]))}},xa=["aria-current","onKeydown"],Ea={__name:"index",props:{index:{type:[String,Number],required:!0}},setup(e){const i=e,a=ht("updateActive"),l=ht("activeIndex"),r=()=>{a(i.index)};return(d,h)=>(m(),f("div",{class:B(["m-menu-item",{"is-active":e.index===R(l)}]),role:"button",tabindex:"0","aria-current":e.index===R(l)?"page":void 0,onClick:r,onKeydown:[we(yt(r,["prevent"]),["enter"]),we(yt(r,["prevent"]),["space"])]},[pe(d.$slots,"default")],42,xa))}};let _t=0;const kt="webkit moz ms o".split(" ");let D,F;const Ma=typeof window=="undefined";if(Ma)D=function(){},F=function(){};else{D=window.requestAnimationFrame,F=window.cancelAnimationFrame;let e;for(let i=0;i<kt.length&&!(D&&F);i++)e=kt[i],D=D||window[e+"RequestAnimationFrame"],F=F||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];(!D||!F)&&(D=function(i){const a=new Date().getTime(),l=Math.max(0,16-(a-_t)),r=window.setTimeout(()=>{i(a+l)},l);return _t=a+l,r},F=function(i){window.clearTimeout(i)})}const Va={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default(e,i,a,l){return a*(-Math.pow(2,-10*e/l)+1)*1024/1023+i}}},data(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown(){return this.startVal>this.endVal}},watch:{startVal(){this.autoplay&&this.start()},endVal(){this.autoplay&&this.start()}},mounted(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=D(this.count)},pauseResume(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause(){F(this.rAF)},resume(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,D(this.count)},reset(){this.startTime=null,F(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count(e){this.startTime||(this.startTime=e),this.timestamp=e;const i=e-this.startTime;this.remaining=this.localDuration-i,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(i,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(i,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(i/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(i/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),i<this.localDuration?this.rAF=D(this.count):this.$emit("callback")},isNumber(e){return!isNaN(parseFloat(e))},formatNumber(e){e=e.toFixed(this.decimals),e+="";const i=e.split(".");let a=i[0];const l=i.length>1?this.decimal+i[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(a);)a=a.replace(r,"$1"+this.separator+"$2");return this.prefix+a+l+this.suffix}},destroyed(){F(this.rAF)}};function Aa(e,i,a,l,r,d){return m(),f("span",null,E(r.displayValue),1)}const $t=bt(Va,[["render",Aa]]);typeof window!="undefined"&&window.Vue&&window.Vue.component("count-to",$t);const Ra={class:"count-card-left"},Ca={class:"count-card-title"},La={class:"title-zh"},Da={key:0,class:"title-en"},Fa={class:"count-card-right"},Ia={class:"unit"},Pa={__name:"index",props:{info:{type:Object,default:()=>({icon:"xiaoshoujine",zh:"2023年销售金额",en:"Sales amount in 2023",value:9500,unit:"万元",decimals:0})}},setup(e){const i=e,a=k(!0),l=k(!1),r=k(0);let d=null;const h=A(()=>i.info.duration||1800);We(()=>[i.info.value,i.info.zh],()=>{d&&window.clearTimeout(d),a.value=!0,l.value=!1,r.value+=1},{immediate:!0});function p(v){return v.toUpperCase()}function _(){a.value=!0,l.value=!1}function g(){a.value=!1,l.value=!0,d&&window.clearTimeout(d),d=window.setTimeout(()=>{l.value=!1},900)}return St(()=>{d&&window.clearTimeout(d)}),(v,w)=>(m(),f("div",{class:B(["count-card",{"is-counting":a.value,"is-settled":l.value}])},[u("div",Ra,[u("div",{class:B(["count-card-icon","icon-"+e.info.icon])},null,2),u("div",Ca,[u("div",La,E(e.info.zh),1),e.info.en?(m(),f("div",Da,E(p(e.info.en)),1)):S("",!0)])]),u("div",Fa,[(m(),f("div",{class:"value",key:r.value},[x(R($t),{startVal:0,endVal:e.info.value,decimals:e.info.decimals,duration:h.value,separator:"",autoplay:!0,onMountedCallback:_,onCallback:g},null,8,["endVal","decimals","duration"])])),u("div",Ia,E(e.info.unit),1)])],2))}},ae=[{key:"home",label:"首页",bottomLabel:"核心指标",status:"ready"},{key:"forest-grass-wet",label:"林草湿资源",bottomLabel:"林草湿",status:"ready"},{key:"ecological-protection",label:"生态保护",bottomLabel:"生态保护",status:"ready"},{key:"yak-management",label:"牦牛管理",bottomLabel:"牦牛管理",status:"ready"},{key:"pasture-management",label:"牧场管理",bottomLabel:"牧场管理",status:"ready"},{key:"yak-industry-chain",label:"牦牛产业全链",bottomLabel:"产业全链",status:"ready"},{key:"smart-management",label:"智慧管理",bottomLabel:"智慧管理",status:"ready"},{key:"grass-livestock-balance",label:"草畜平衡",bottomLabel:"草畜平衡",status:"ready"}];function qa(e){return ae.find(i=>i.key===e)||ae[1]}const Ne=[{key:"ecological-redline",label:"生态保护红线",bottomLabel:"生态保护红线"},{key:"natural-protected-area",label:"自然保护地",bottomLabel:"自然保护地"},{key:"national-park",label:"若尔盖国家公园",bottomLabel:"若尔盖国家公园"},{key:"restoration",label:"生态修复工程",bottomLabel:"生态修复工程"},{key:"engineering-analysis",label:"生态工程分析",bottomLabel:"生态工程分析"}],Na=12e3;function za(e,i={}){const a=new URLSearchParams;Object.entries(i).forEach(([r,d])=>{d!=null&&d!==""&&a.append(r,d)});const l=a.toString();return l?`${e}${e.includes("?")?"&":"?"}${l}`:e}function Ha(a){return X(this,arguments,function*(e,i={}){const g=i,{params:l,timeout:r=Na}=g,d=mt(g,["params","timeout"]),h=new AbortController;let p=!1;const _=window.setTimeout(()=>{p=!0,h.abort()},r);try{const v=yield fetch(za(e,l),ve(P({credentials:"include"},d),{signal:h.signal,headers:P({Accept:"application/json"},d.headers||{})}));if(!v.ok){const c=new Error(v.status===401?"用户未登录或授权已过期。":`HTTP ${v.status}`);throw c.code=`HTTP_${v.status}`,c.status=v.status,v.status===401&&vt(),c}const w=yield v.json();if((w==null?void 0:w.code)===401||(w==null?void 0:w.code)==="401"){const c=new Error((w==null?void 0:w.msg)||"用户未登录或授权已过期。");throw c.code="HTTP_401",c.status=401,vt(),c}return w}catch(v){if(h.signal.aborted||(v==null?void 0:v.name)==="AbortError"||/aborted/i.test((v==null?void 0:v.message)||"")){const c=new Error(p?"服务响应超时，请稍后再试。":"请求已取消，请重新发送。");throw c.code=p?"REQUEST_TIMEOUT":"REQUEST_ABORTED",c}throw v}finally{window.clearTimeout(_)}})}function Oa(e){return(e==null?void 0:e.data)!==void 0?e.data:(e==null?void 0:e.result)!==void 0?e.result:e}const Wa="/jsyApi",ja={}.VITE_AMAP_WEATHER_KEY||"b72b3e3b2023760dae2cdf2e00561812",Ka="513233";function Ba(e){if((e==null?void 0:e.success)===!1||(e==null?void 0:e.code)!==void 0&&![0,200,"0","200"].includes(e.code))throw new Error((e==null?void 0:e.msg)||(e==null?void 0:e.message)||"天气接口请求失败");return Oa(e)}function xt(e){var h,p,_,g;const i=(p=(h=e==null?void 0:e.data)!=null?h:e==null?void 0:e.result)!=null?p:e,a=Array.isArray(i)?i[0]:Array.isArray(i==null?void 0:i.rows)?i.rows[0]:Array.isArray(i==null?void 0:i.list)?i.list[0]:i;if(!a||typeof a!="object")return null;const l=(...v)=>v.find(w=>w!=null&&w!==""),r=l(a.temp,a.temperature,a.temperature_float,a.tempDay,a.temperatureDay),d=l(a.humidity,a.humidity_float,a.pop,a.relativeHumidity);return{condition:a.conditionDay||a.condition||a.weather||a.weatherText||"",temperature:r==null||r===""?"--":r,humidity:d==null||d===""?"--":d,windDirection:a.windDir||a.windDirection||"",windLevel:a.windLevel||a.windScale||a.windPower||"",icon:(g=(_=a.icon)!=null?_:a.weatherIcon)!=null?g:null}}function Ua(e){return X(this,null,function*(){const i=yield Ha(`${Wa}${e}`,{timeout:8e3});return xt(Ba(i))})}function Ga(){return new Promise((e,i)=>{const a=`__hongyuanWeather${Date.now()}${Math.random().toString(16).slice(2)}`,l=document.createElement("script"),r=()=>{window.clearTimeout(d),l.remove(),delete window[a]},d=window.setTimeout(()=>{r(),i(new Error("高德天气接口响应超时"))},8e3);window[a]=p=>{var g;const _=(g=p==null?void 0:p.lives)==null?void 0:g[0];if(r(),!_){i(new Error((p==null?void 0:p.info)||"高德天气暂无数据"));return}e(xt(_))},l.onerror=()=>{r(),i(new Error("高德天气接口加载失败"))};const h=new URLSearchParams({city:Ka,key:ja,extensions:"base",output:"JSON",callback:a});l.src=`https://restapi.amap.com/v3/weather/weatherInfo?${h}`,document.head.appendChild(l)})}function Ya(){return X(this,null,function*(){const e=["/api/home/realTimeWeather","/api/home/weatherForecast"];let i=null;for(const a of e)try{const l=yield Ua(a);if(l)return l}catch(l){i=l}try{const a=yield Ga();if(a)return a}catch(a){i=a}throw i||new Error("天气数据暂不可用")})}const Qa=["aria-hidden","inert"],Ja=["aria-hidden","inert"],Za=["aria-hidden","inert"],Xa=["aria-hidden","inert"],en=["aria-hidden","inert"],tn=["aria-hidden","inert"],an=["aria-hidden","inert"],nn=["aria-hidden","inert"],on={class:"large-screen-wrap"},ln={class:"m-header-tools"},rn=["src","alt"],sn={key:1,class:"platform-weather__fallback-icon","aria-hidden":"true"},un={class:"platform-weather__copy"},cn={class:"platform-weather__primary"},dn={key:0},mn={key:0},fn={key:0},hn={key:1,"aria-hidden":"true"},yn={key:2},vn={class:"platform-datetime","aria-label":"当前日期和时间"},gn={class:"top-menu"},pn={key:0,class:"top-menu-mid-space"},wn={key:1,class:"platform-map-tools","aria-label":"地图工具"},_n=["title","aria-label"],kn={key:2,class:"module-coming"},bn={class:"module-coming-title"},Sn={key:3,class:"bottom-tray"},Tn={class:"bottom-menu"},$n=["onClick"],xn={key:8,class:"loading platform-loading"},En={class:"loading-progress"},Mn={class:"value"},Vn=2,An=650,Rn={__name:"index",setup(e){const i=z(()=>H(()=>import("./index-d4054a96-1784378651390.js"),["./index-d4054a96-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./live-scene-1-50d94f3b-1784378651390.js","./index.esm.min-6b4ee6a0-1784378651390.js","./index-8193533d-1784378651390.js","./index-148a2898-balabala-1784378651390.css","./index-ae8926ff-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./screen2Standard-f85af2d3-1784378651390.js","./index-e9f36657-1784378651390.js","./screen2Standard-cdb21878-balabala-1784378651390.css","./data-b6eb78ac-1784378651390.js","./TopicSwitcher-c2a18053-1784378651390.js","./TopicSwitcher-b6474311-balabala-1784378651390.css","./livestockData-36ec0ae2-1784378651390.js","./FeatureInfoPanel-aedbb434-1784378651390.js","./FeatureInfoPanel-9c9af689-balabala-1784378651390.css","./openApi-d82392d3-1784378651390.js","./geoserver-b3bc784b-1784378651390.js","./featurePanelLayout-311dd995-1784378651390.js","./yakApi-788472d8-1784378651390.js","./chartTheme-dcb51ba1-1784378651390.js","./data-ee410ed3-1784378651390.js","./data-1cbde9f2-1784378651390.js","./index-6592e13d-balabala-1784378651390.css"],import.meta.url)),a=z(()=>H(()=>import("./index-5229e5f6-1784378651390.js"),["./index-5229e5f6-1784378651390.js","./index-e9f36657-1784378651390.js","./assets-a26a4c41-1784378651390.js","./screen2Standard-f85af2d3-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./screen2Standard-cdb21878-balabala-1784378651390.css","./TopicSwitcher-c2a18053-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./TopicSwitcher-b6474311-balabala-1784378651390.css","./index-ae8926ff-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./openApi-d82392d3-1784378651390.js","./geoserver-b3bc784b-1784378651390.js","./featurePanelLayout-311dd995-1784378651390.js","./LayerPanel-e35ca392-1784378651390.js","./index-8193533d-1784378651390.js","./index-148a2898-balabala-1784378651390.css","./LayerPanel-506c2edc-balabala-1784378651390.css","./FeatureInfoPanel-aedbb434-1784378651390.js","./FeatureInfoPanel-9c9af689-balabala-1784378651390.css","./index-fea14f56-balabala-1784378651390.css","./layout-9e63e529-balabala-1784378651390.css"],import.meta.url)),l=z(()=>H(()=>import("./index-2c5b1158-1784378651390.js"),["./index-2c5b1158-1784378651390.js","./index-e9f36657-1784378651390.js","./index-8193533d-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./index-148a2898-balabala-1784378651390.css","./townshipBoundaries-a3a8b9c1-1784378651390.js","./featurePanelLayout-311dd995-1784378651390.js","./assets-a26a4c41-1784378651390.js","./screen2Standard-f85af2d3-1784378651390.js","./screen2Standard-cdb21878-balabala-1784378651390.css","./TopicSwitcher-c2a18053-1784378651390.js","./TopicSwitcher-b6474311-balabala-1784378651390.css","./index-ae8926ff-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./LayerPanel-e35ca392-1784378651390.js","./LayerPanel-506c2edc-balabala-1784378651390.css","./FeatureInfoPanel-aedbb434-1784378651390.js","./FeatureInfoPanel-9c9af689-balabala-1784378651390.css","./data-93a1fea5-1784378651390.js","./data-ee410ed3-1784378651390.js","./index-6d729227-balabala-1784378651390.css","./layout-9e63e529-balabala-1784378651390.css"],import.meta.url)),r=z(()=>H(()=>import("./index-89dde0cb-1784378651390.js"),["./index-89dde0cb-1784378651390.js","./index-8193533d-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./index-148a2898-balabala-1784378651390.css","./data-ee410ed3-1784378651390.js","./index-e9f36657-1784378651390.js","./index-08bb8500-balabala-1784378651390.css"],import.meta.url)),d=z(()=>H(()=>import("./index-5ec89bde-1784378651390.js"),["./index-5ec89bde-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./index.esm.min-6b4ee6a0-1784378651390.js","./index-8193533d-1784378651390.js","./index-148a2898-balabala-1784378651390.css","./screen2Standard-f85af2d3-1784378651390.js","./index-e9f36657-1784378651390.js","./screen2Standard-cdb21878-balabala-1784378651390.css","./data-b6eb78ac-1784378651390.js","./TopicSwitcher-c2a18053-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./TopicSwitcher-b6474311-balabala-1784378651390.css","./livestockData-36ec0ae2-1784378651390.js","./geoserver-b3bc784b-1784378651390.js","./LayerPanel-e35ca392-1784378651390.js","./LayerPanel-506c2edc-balabala-1784378651390.css","./assets-a26a4c41-1784378651390.js","./index-ae8926ff-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./yakApi-788472d8-1784378651390.js","./index-f8442b64-balabala-1784378651390.css"],import.meta.url)),h=z(()=>H(()=>import("./index-69aa3df4-1784378651390.js"),["./index-69aa3df4-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./live-scene-1-50d94f3b-1784378651390.js","./index-8193533d-1784378651390.js","./index-148a2898-balabala-1784378651390.css","./index-ae8926ff-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./LayerPanel-e35ca392-1784378651390.js","./LayerPanel-506c2edc-balabala-1784378651390.css","./FeatureInfoPanel-aedbb434-1784378651390.js","./screen2Standard-f85af2d3-1784378651390.js","./index-e9f36657-1784378651390.js","./screen2Standard-cdb21878-balabala-1784378651390.css","./FeatureInfoPanel-9c9af689-balabala-1784378651390.css","./featurePanelLayout-311dd995-1784378651390.js","./data-f1ce69f3-1784378651390.js","./livestockData-36ec0ae2-1784378651390.js","./index-c633956d-balabala-1784378651390.css"],import.meta.url)),p=z(()=>H(()=>import("./index-ed881d9e-1784378651390.js"),["./index-ed881d9e-1784378651390.js","./index.esm.min-6b4ee6a0-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./index-8193533d-1784378651390.js","./index-148a2898-balabala-1784378651390.css","./index-ae8926ff-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./index-78d8ce18-balabala-1784378651390.css","./FeatureInfoPanel-aedbb434-1784378651390.js","./screen2Standard-f85af2d3-1784378651390.js","./index-e9f36657-1784378651390.js","./screen2Standard-cdb21878-balabala-1784378651390.css","./FeatureInfoPanel-9c9af689-balabala-1784378651390.css","./LayerPanel-e35ca392-1784378651390.js","./LayerPanel-506c2edc-balabala-1784378651390.css","./TopicSwitcher-c2a18053-1784378651390.js","./TopicSwitcher-b6474311-balabala-1784378651390.css","./assets-a26a4c41-1784378651390.js","./chartTheme-dcb51ba1-1784378651390.js","./data-b35fbab4-1784378651390.js","./livestockData-36ec0ae2-1784378651390.js","./index-e1ab2b59-balabala-1784378651390.css"],import.meta.url)),_=z(()=>H(()=>import("./index-65a7e48b-1784378651390.js"),["./index-65a7e48b-1784378651390.js","./index-1784378651390.js","./index-fd7ca850-balabala-1784378651390.css","./yakApi-788472d8-1784378651390.js","./data-1cbde9f2-1784378651390.js","./livestockData-36ec0ae2-1784378651390.js","./data-ee410ed3-1784378651390.js","./data-f1ce69f3-1784378651390.js","./data-93a1fea5-1784378651390.js","./townshipBoundaries-a3a8b9c1-1784378651390.js","./data-b35fbab4-1784378651390.js","./index-e9f36657-1784378651390.js","./index-0a7426a0-balabala-1784378651390.css"],import.meta.url)),g=Zt(),v=Xt(),w=se(g.query.module),c=k(w),b=k(w==="ecological-protection"?at(g.query.view):"ecological-redline"),M=k(w==="yak-management"?Re(g.query.view):"structure"),V=k({[w]:!0});let I=[w];const U=k({}),G=k(!0),Y=k(0),be=k(null),Se=k(null),je=k(null),Ke=k(null),Be=k(null),Ue=k(null),Ge=k(null),Ye=k(!1),Qe=k(""),Je=k(""),C=k({condition:"",temperature:"--",humidity:"--",windDirection:"",windLevel:"",icon:null}),Q=k(!1),Te=k(!1);let J=null,$e=null,xe=null,ie=!1,oe=null;const Et=Date.now(),O={progress:0},Mt=new Set(["home","grass-livestock-balance","pasture-management","yak-industry-chain"]),W=["town","area","wetland","yield","rate","stack","leaf","risk","grass-basic","grass-general","forest","park","project","length","device","certificate"],Vt=new Set(W),s=A(()=>qa(c.value)),At=A(()=>`/images/weather/W${C.value.icon}.png`),Rt=A(()=>Q.value&&C.value.icon!==null&&!Te.value),Ee=A(()=>!["","--",null,void 0].includes(C.value.humidity)),le=A(()=>{const t=String(C.value.windDirection||"").trim(),n=String(C.value.windLevel||"").trim();return!t&&!n?"":`${t}${t&&n?" ":""}${n?`${n}级`:""}`}),Ze=A(()=>Ye.value?"退出":"全屏"),Ct=A(()=>!["smart-management","grass-livestock-balance"].includes(s.value.key)),Lt=A(()=>j.value.length===5&&(s.value.key==="home"||s.value.key==="ecological-protection"&&Me.value==="national-park")),Dt=A(()=>c.value==="ecological-protection"?Ne:ae),Me=A(()=>c.value==="ecological-protection"?b.value:c.value),j=A(()=>{const t=U.value[c.value];return Array.isArray(t)||t!=null&&t.length?t:it([{zh:"草地面积",en:"",value:756.37,unit:"万亩",decimals:2},{zh:"林地总面积",en:"",value:177.92,unit:"万亩",decimals:2},{zh:"湿地面积",en:"",value:291.82,unit:"万亩",decimals:2}])});ea(()=>{Xe(),et(),$e=window.setInterval(Xe,1e3),xe=window.setInterval(et,30*60*1e3),J=ke.init({dh:1080,dw:1920,el:"#large-screen",resize:!0,cssMode:"zoom"}),jt(),fe(),Ce(),Nt(c.value)?zt(c.value):(ie=!0,Y.value=100,G.value=!1)}),St(()=>{var t;$e&&window.clearInterval($e),xe&&window.clearInterval(xe),de(),(t=J==null?void 0:J.off)==null||t.call(J,"#large-screen"),Kt(),te.killTweensOf(O)});function Xe(){const t=new Date,n=T=>String(T).padStart(2,"0"),o=["周日","周一","周二","周三","周四","周五","周六"];Qe.value=`${t.getFullYear()}.${n(t.getMonth()+1)}.${n(t.getDate())} ${o[t.getDay()]}`,Je.value=`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function et(){return X(this,null,function*(){try{C.value=yield Ya(),Q.value=!0,Te.value=!1}catch(t){Q.value=!1,console.warn("[platform] weather unavailable",t)}})}function Ft(){Te.value=!0}function Ve(t,n={}){const o=se(t),T=o==="home"&&!n.fromRoute;if(o==="yak-management"&&!n.fromRoute&&(M.value="structure"),o===c.value){T&&me(),re(o);return}c.value=o,Wt(o),re(o),T&&me(),Fe(Ce)}function Ae(t){se(t)==="home"&&c.value==="home"&&me()}function It(t){if(t!=null&&t.key){if(c.value==="ecological-protection"){tt(t.key);return}Ve(t.key)}}function tt(t){const n=Ne.some(o=>o.key===t)?t:"ecological-redline";n===b.value&&c.value==="ecological-protection"||(b.value=n,c.value==="ecological-protection"&&re("ecological-protection"),Fe(Ce))}function Pt(t){const n=Re(t);n!==M.value&&(M.value=n,c.value==="yak-management"&&re("yak-management"))}We(()=>[g.query.module,g.query.view],([t,n])=>{const o=se(t);o==="ecological-protection"&&(b.value=at(n)),o==="yak-management"&&(M.value=Re(n)),o!==c.value&&Ve(o,{fromRoute:!0})});function re(t=c.value){const n=ve(P({},g.query),{module:t});t==="yak-management"?n.view=M.value:t==="ecological-protection"?n.view=b.value:delete n.view;const o=g.query||{},T=String(o.module||"")===String(n.module||"")&&String(o.view||"")===String(n.view||"");g.path==="/platform"&&T||v.replace({path:"/platform",query:n}).catch(()=>{})}function se(t){const n=Array.isArray(t)?t[0]:t;return ae.some(o=>o.key===n)?n:"home"}function Re(t){const n=Array.isArray(t)?t[0]:t;return["structure","forecast","epidemic","trade"].includes(n)?n:"structure"}function at(t){const n=Array.isArray(t)?t[0]:t;return Ne.some(o=>o.key===n)?n:"ecological-redline"}function K(t){const n=t.moduleKey||(t.topicKey?"forest-grass-wet":c.value);U.value=ve(P({},U.value),{[n]:it(t.items||[])})}function ue(t={}){const n=typeof t=="number"?t:t.progress;qt(n)}function ce(){de(),te.killTweensOf(O),O.progress=100,Y.value=100;const t=Date.now()-Et,n=Math.max(80,An-t);window.setTimeout(nt,n)}function qt(t){if(!G.value)return;const n=Math.max(0,Math.min(100,Math.floor(Number(t)||0)));n<Y.value||te.to(O,{progress:n,duration:.35,ease:"power2.out",onUpdate:()=>{Y.value=Math.floor(O.progress)}})}function nt(){if(!G.value||ie)return;de(),ie=!0;const t=te.timeline({onComplete:()=>{G.value=!1}});t.to(".platform-loading .loading-text span",{y:"200%",opacity:0,ease:"power4.inOut",duration:.45,stagger:.035}),t.to(".platform-loading .loading-progress",{opacity:0,ease:"power4.inOut",duration:.3},"<"),t.to(".platform-loading",{opacity:0,ease:"power4.inOut",duration:.28},"-=0.12")}function Nt(t){return Mt.has(t)}function zt(t){de();const n=t==="home"?12e3:8e3;oe=window.setTimeout(()=>{!G.value||ie||(te.killTweensOf(O),O.progress=100,Y.value=100,window.setTimeout(nt,120))},n)}function de(){oe&&(window.clearTimeout(oe),oe=null)}function it(t=[]){const n=new Set;return t.slice(0,10).map((o,T)=>{var Z;const y=Number(o.value)||0,L={zh:o.zh||o.name||`指标${T+1}`,en:o.en||"",value:y,unit:o.unit||"",decimals:(Z=o.decimals)!=null?Z:Number.isInteger(y)?0:2},he=Ht(P(P({},o),L),T,n);return n.add(he),P({icon:he},L)})}function Ht(t={},n=0,o=new Set){const y=Ot(t,n).find(L=>Vt.has(L)&&!o.has(L));return y||W.find(L=>!o.has(L))||W[n%W.length]}function Ot(t={},n=0){const o=`${t.zh||t.name||""}${t.unit||""}`,T=[],y=(...he)=>{he.forEach(Z=>{Z&&!T.includes(Z)&&T.push(Z)})};y(t.icon),/风险|预警|告警/.test(o)&&y("risk","rate"),/模型|修正|共识|预测|变化|净/.test(o)&&y("rate","stack"),/率|占比|比例|超载/.test(o)&&y("rate","project"),/生态牧场|家庭生态/.test(o)&&y("leaf","town"),/出证|证书|证/.test(o)&&y("certificate","project"),/交易|销售/.test(o)&&y("yield","certificate"),/流通|出栏|流出/.test(o)&&y("length","certificate","project"),/运输|车辆|无人机|识别|设备|监测/.test(o)&&y("device","length"),/工程长度|长度|公里/.test(o)&&y("length","project"),/修复项目|项目|工程|治理/.test(o)&&y("project","length"),/国家公园|保护范围|保护区|划定/.test(o)&&y("park","leaf"),/产量|库容|鲜草|饲草|收入|产值|繁殖|补充/.test(o)&&y("yield","leaf"),/湿地/.test(o)&&y("wetland","leaf"),/基本草原/.test(o)&&y("grass-basic","area"),/一般草原/.test(o)&&y("grass-general","area"),/林地|森林|公益林/.test(o)&&y("forest","leaf"),/面积|草地|草原|草场|万亩|亩/.test(o)&&y("area","grass-basic","grass-general"),/牦牛|存栏|头|结构/.test(o)&&y("stack","yield","leaf"),/乡镇|镇域|村|点位|主体|牧户|农户|联户|户|个|覆盖/.test(o)&&y("town","project"),/生态|林草/.test(o)&&y("leaf","wetland");const L=n%W.length;return y(...W.slice(L),...W.slice(0,L)),T}function Wt(t){["home","forest-grass-wet","ecological-protection","grass-livestock-balance","yak-management","pasture-management","yak-industry-chain","smart-management"].includes(t)&&(I=I.filter(n=>n!==t),I.push(t),I=I.slice(-Vn),V.value=Object.fromEntries(I.map(n=>[n,!0])))}function Ce(){window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0;const t=document.querySelector("#app");t&&(t.scrollTop=0)}function me(t=4){Fe(()=>{const n=Se.value;if(n!=null&&n.showDefaultThreeMap){n.showDefaultThreeMap();return}t>0&&window.setTimeout(()=>me(t-1),80)})}const ot=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];function lt(){return typeof document=="undefined"?null:document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null}function fe(){var o;const t=lt(),n=be.value;Ye.value=!!(n&&t&&(t===n||n.contains(t)||(o=t.contains)!=null&&o.call(t,n)))}function jt(){typeof document!="undefined"&&ot.forEach(t=>document.addEventListener(t,fe))}function Kt(){typeof document!="undefined"&&ot.forEach(t=>document.removeEventListener(t,fe))}function rt(){var t,n;(n=(t=st())==null?void 0:t.refreshMapView)==null||n.call(t)}function Bt(){return X(this,null,function*(){if(typeof document=="undefined")return;const t=lt();try{if(t){const n=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen;yield n==null?void 0:n.call(document)}else{const n=be.value||document.documentElement,o=n.requestFullscreen||n.webkitRequestFullscreen||n.mozRequestFullScreen||n.msRequestFullscreen;yield o==null?void 0:o.call(n)}}catch(n){console.warn("[platform] fullscreen toggle failed",n)}finally{fe(),window.setTimeout(rt,80),window.setTimeout(rt,280)}})}function Ut(){var t,n;(n=(t=st())==null?void 0:t.resetMap)==null||n.call(t)}function st(){return s.value.key==="home"?Se.value:s.value.key==="forest-grass-wet"?je.value:s.value.key==="ecological-protection"?Ke.value:s.value.key==="yak-management"?Be.value:s.value.key==="pasture-management"?Ue.value:s.value.key==="yak-industry-chain"?Ge.value:null}function Gt(){ia()}return(t,n)=>(m(),f("div",{ref_key:"platformScreenRef",ref:be,class:B(["large-screen platform-screen",{"is-home":s.value.key==="home","is-forest-grass-wet":s.value.key==="forest-grass-wet","is-ecological-protection":s.value.key==="ecological-protection","is-grass-livestock-balance":s.value.key==="grass-livestock-balance","is-yak-management":s.value.key==="yak-management","is-pasture-management":s.value.key==="pasture-management","is-yak-industry-chain":s.value.key==="yak-industry-chain","is-smart-management":s.value.key==="smart-management","is-ecology-national-park":s.value.key==="ecological-protection"&&Me.value==="national-park"}]),id:"large-screen"},[V.value.home?q((m(),f("div",{key:0,class:"platform-module-pane","aria-hidden":s.value.key!=="home",inert:s.value.key!=="home"},[x(R(i),{ref_key:"homeDashboardRef",ref:Se,active:s.value.key==="home",onLoadingProgress:ue,onMapReady:ce,onModuleStats:K},null,8,["active"])],8,Qa)),[[N,s.value.key==="home"]]):S("",!0),V.value["forest-grass-wet"]?q((m(),f("div",{key:1,class:"platform-module-pane","aria-hidden":s.value.key!=="forest-grass-wet",inert:s.value.key!=="forest-grass-wet"},[x(R(a),{ref_key:"forestGrassWetRef",ref:je,active:s.value.key==="forest-grass-wet","show-loading":!1,onTopicStats:K},null,8,["active"])],8,Ja)),[[N,s.value.key==="forest-grass-wet"]]):S("",!0),V.value["ecological-protection"]?q((m(),f("div",{key:2,class:"platform-module-pane","aria-hidden":s.value.key!=="ecological-protection",inert:s.value.key!=="ecological-protection"},[x(R(l),{ref_key:"ecologicalProtectionRef",ref:Ke,active:s.value.key==="ecological-protection","active-view":b.value,"show-loading":!1,onModuleStats:K,onViewChange:tt},null,8,["active","active-view"])],8,Za)),[[N,s.value.key==="ecological-protection"]]):S("",!0),V.value["grass-livestock-balance"]?q((m(),f("div",{key:3,class:"platform-module-pane","aria-hidden":s.value.key!=="grass-livestock-balance",inert:s.value.key!=="grass-livestock-balance"},[x(R(r),{active:s.value.key==="grass-livestock-balance",onLoadingProgress:ue,onMapReady:ce,onModuleStats:K},null,8,["active"])],8,Xa)),[[N,s.value.key==="grass-livestock-balance"]]):S("",!0),V.value["yak-management"]?q((m(),f("div",{key:4,class:"platform-module-pane","aria-hidden":s.value.key!=="yak-management",inert:s.value.key!=="yak-management"},[x(R(d),{ref_key:"yakManagementRef",ref:Be,active:s.value.key==="yak-management","view-key":M.value,onModuleStats:K,onViewChange:Pt},null,8,["active","view-key"])],8,en)),[[N,s.value.key==="yak-management"]]):S("",!0),V.value["pasture-management"]?q((m(),f("div",{key:5,class:"platform-module-pane","aria-hidden":s.value.key!=="pasture-management",inert:s.value.key!=="pasture-management"},[x(R(h),{ref_key:"pastureManagementRef",ref:Ue,active:s.value.key==="pasture-management",onLoadingProgress:ue,onMapReady:ce,onModuleStats:K},null,8,["active"])],8,tn)),[[N,s.value.key==="pasture-management"]]):S("",!0),V.value["yak-industry-chain"]?q((m(),f("div",{key:6,class:"platform-module-pane","aria-hidden":s.value.key!=="yak-industry-chain",inert:s.value.key!=="yak-industry-chain"},[x(R(p),{ref_key:"yakIndustryChainRef",ref:Ge,active:s.value.key==="yak-industry-chain",onLoadingProgress:ue,onMapReady:ce,onModuleStats:K},null,8,["active"])],8,an)),[[N,s.value.key==="yak-industry-chain"]]):S("",!0),V.value["smart-management"]?q((m(),f("div",{key:7,class:"platform-module-pane","aria-hidden":s.value.key!=="smart-management",inert:s.value.key!=="smart-management"},[x(R(_),{active:s.value.key==="smart-management"},null,8,["active"])],8,nn)),[[N,s.value.key==="smart-management"]]):S("",!0),u("div",on,[x(Sa,{title:"红原县数字畜牧业监管平台","sub-text":"Hongyuan Digital Animal Husbandry Supervision Platform"},{right:Le(()=>[u("div",ln,[u("div",{class:B(["platform-weather",{"is-unavailable":!Q.value}])},[Rt.value?(m(),f("img",{key:0,class:"platform-weather__icon",src:At.value,alt:C.value.condition||"天气",onError:Ft},null,40,rn)):(m(),f("span",sn)),u("div",un,[u("div",cn,[u("strong",null,E(Q.value?C.value.condition||"实时天气":"天气暂无数据"),1),Q.value?(m(),f("em",dn,E(C.value.temperature)+"℃",1)):S("",!0)]),Ee.value||le.value?(m(),f("small",mn,[Ee.value?(m(),f("span",fn,"湿度 "+E(C.value.humidity)+"%",1)):S("",!0),Ee.value&&le.value?(m(),f("i",hn)):S("",!0),le.value?(m(),f("span",yn,E(le.value),1)):S("",!0)])):S("",!0)])],2),u("div",vn,[u("strong",null,E(Je.value),1),u("span",null,E(Qe.value),1)]),u("button",{class:"logout-button","aria-label":"退出登录",title:"退出登录",type:"button",onClick:Gt},[...n[0]||(n[0]=[u("svg",{class:"logout-icon",viewBox:"0 0 24 24","aria-hidden":"true"},[u("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),u("path",{d:"M16 17l5-5-5-5"}),u("path",{d:"M21 12H9"})],-1)])])])]),_:1}),u("div",gn,[x($a,{"default-active":c.value,onSelect:Ve},{default:Le(()=>[(m(!0),f(ge,null,De(R(ae),(o,T)=>(m(),f(ge,{key:o.key},[x(Ea,{index:o.key,onClick:y=>Ae(o.key),onKeydown:[we(y=>Ae(o.key),["enter"]),we(y=>Ae(o.key),["space"])]},{default:Le(()=>[aa(E(o.label),1)]),_:2},1032,["index","onClick","onKeydown"]),T===3?(m(),f("div",pn)):S("",!0)],64))),128))]),_:1},8,["default-active"])]),j.value.length&&!["smart-management","grass-livestock-balance"].includes(s.value.key)?(m(),f("div",{key:0,class:B(["top-count-card",{"is-four":j.value.length>3&&j.value.length<=4,"is-multi":j.value.length>4,"is-count-five":j.value.length===5,"is-home-five":Lt.value}])},[(m(!0),f(ge,null,De(j.value,o=>(m(),na(Pa,{key:o.zh,info:o},null,8,["info"]))),128))],2)):S("",!0),Ct.value?(m(),f("div",wn,[u("button",{type:"button",title:Ze.value,"aria-label":Ze.value,onClick:Bt},[...n[1]||(n[1]=[u("span",{class:"platform-map-tool-icon is-fullscreen","aria-hidden":"true"},null,-1)])],8,_n),u("button",{type:"button",title:"复位地图","aria-label":"复位地图",onClick:Ut},[...n[2]||(n[2]=[u("span",{class:"platform-map-tool-icon is-reset","aria-hidden":"true"},null,-1)])])])):S("",!0),s.value.status!=="ready"?(m(),f("div",kn,[u("div",bn,E(s.value.label),1),n[3]||(n[3]=u("div",{class:"module-coming-text"},"模块建设中，平台框架已预留入口",-1))])):S("",!0),["home","forest-grass-wet","ecological-protection","grass-livestock-balance","yak-management","pasture-management","yak-industry-chain","smart-management"].includes(s.value.key)?S("",!0):(m(),f("div",Sn,[x(_e,{class:"bottom-svg-line-left",width:721,height:57,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:50,path:"M1 56.6105C1 31.5123 185.586 10.0503 451.904 1.35519C458.942 1.12543 465.781 4.00883 470.505 9.22964L484.991 25.2383C487.971 28.4775 492.938 30.4201 498.254 30.4201H720.142"}),x(_e,{class:"bottom-svg-line-left bottom-svg-line-right",width:721,height:57,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:50,path:"M1 56.6105C1 31.5123 185.586 10.0503 451.904 1.35519C458.942 1.12543 465.781 4.00883 470.505 9.22964L484.991 25.2383C487.971 28.4775 492.938 30.4201 498.254 30.4201H720.142"}),n[4]||(n[4]=u("div",{class:"bottom-tray-arrow"},[u("img",{src:gt,alt:""}),u("img",{src:pt,alt:""})],-1)),u("div",Tn,[(m(!0),f(ge,null,De(Dt.value,o=>(m(),f("div",{key:o.key,class:B(["bottom-menu-item",{"is-active":o.key===Me.value}]),onClick:T=>It(o)},[u("span",null,E(o.bottomLabel),1)],10,$n))),128))]),n[5]||(n[5]=u("div",{class:"bottom-tray-arrow is-reverse"},[u("img",{src:gt,alt:""}),u("img",{src:pt,alt:""})],-1))])),n[6]||(n[6]=u("div",{class:"large-screen-left-zsline"},null,-1)),n[7]||(n[7]=u("div",{class:"large-screen-right-zsline"},null,-1))]),G.value?(m(),f("div",xn,[n[9]||(n[9]=ta('<div class="loading-text"><span style="--index:1;">L</span><span style="--index:2;">O</span><span style="--index:3;">A</span><span style="--index:4;">D</span><span style="--index:5;">I</span><span style="--index:6;">N</span><span style="--index:7;">G</span></div>',1)),u("div",En,[u("span",Mn,E(Y.value),1),n[8]||(n[8]=u("span",{class:"unit"},"%",-1))])])):S("",!0)],2))}},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"}));export{Fn as i,Oa as n,Ha as r};
