var w=Object.defineProperty,O=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var i=(e,n,a)=>n in e?w(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,u=(e,n)=>{for(var a in n||(n={}))C.call(n,a)&&i(e,a,n[a]);if(m)for(var a of m(n))N.call(n,a)&&i(e,a,n[a]);return e},d=(e,n)=>O(e,R(n));var T=(e,n)=>{var a={};for(var o in e)C.call(e,o)&&n.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&m)for(var o of m(e))n.indexOf(o)<0&&N.call(e,o)&&(a[o]=e[o]);return a};const f=458230,Y=450817,b=7413;function p(e,n,a="count"){const o=e.reduce((s,c)=>s+(Number(c[a])||0),0);if(!o||!n)return e.map(s=>d(u({},s),{[a]:0}));const t=e.map(s=>d(u({},s),{[a]:Math.round((Number(s[a])||0)/o*n)})),r=n-t.reduce((s,c)=>s+(Number(c[a])||0),0);return r&&t[0]&&(t[0][a]+=r),t}const l={herdsmanCount:129,grasslandArea:7563700,wetArea:2918200,yakCount:458230,projectCount:17,baseCount:12},h=[{zoneName:"色地镇",grasslandArea:1463044,yakCount:11704},{zoneName:"麦洼乡",grasslandArea:660352,yakCount:5283},{zoneName:"阿木乡",grasslandArea:1115947,yakCount:8928},{zoneName:"瓦切镇",grasslandArea:1111492,yakCount:8892},{zoneName:"查尔玛乡",grasslandArea:858500,yakCount:6868},{zoneName:"江茸乡",grasslandArea:644761,yakCount:5158},{zoneName:"龙日镇",grasslandArea:874234,yakCount:6994},{zoneName:"安曲镇",grasslandArea:1165634,yakCount:9325},{zoneName:"刷经寺镇",grasslandArea:62465,yakCount:500},{zoneName:"邛溪镇",grasslandArea:1166721,yakCount:9334}],E=[{zoneName:"色地镇",grasslandArea:350788,wetArea:166983},{zoneName:"麦洼乡",grasslandArea:162198,wetArea:71501},{zoneName:"阿木乡",grasslandArea:305522,wetArea:89411},{zoneName:"瓦切镇",grasslandArea:264640,wetArea:128717},{zoneName:"查尔玛乡",grasslandArea:286159,wetArea:17664},{zoneName:"江茸乡",grasslandArea:175840,wetArea:52341},{zoneName:"龙日镇",grasslandArea:222346,wetArea:87046},{zoneName:"安曲镇",grasslandArea:304970,wetArea:107548},{zoneName:"刷经寺镇",grasslandArea:22107,wetArea:7002},{zoneName:"邛溪镇",grasslandArea:318316,wetArea:94587}],I=[{month:"1月",count:458230,speed:0},{month:"2月",count:458860,speed:630},{month:"3月",count:459520,speed:660},{month:"4月",count:460180,speed:660},{month:"5月",count:461260,speed:1080},{month:"6月",count:462050,speed:790},{month:"7月",count:462850,speed:800},{month:"8月",count:463160,speed:310},{month:"9月",count:463520,speed:360},{month:"10月",count:463940,speed:420},{month:"11月",count:464350,speed:410},{month:"12月",count:464760,speed:410}],y=[{name:"色地镇",count:131983,devices:25},{name:"瓦切镇",count:126611,devices:24},{name:"安曲镇",count:99331,devices:20},{name:"邛溪镇",count:81727,devices:18},{name:"麦洼乡",count:78489,devices:16},{name:"龙日镇",count:66846,devices:15},{name:"阿木乡",count:64176,devices:14},{name:"查尔玛乡",count:47958,devices:11},{name:"江茸乡",count:34576,devices:9},{name:"刷经寺镇",count:30407,devices:8}],z=p(y,450817),_=new Map(p(y,458230).map(e=>[e.name,e.count])),L=h.map(e=>d(u({},e),{yakCount:_.get(e.zoneName)||e.yakCount}));z.reduce((e,n)=>e+n.count,0);const g=458230;l.yakCount=g;function k(e,n){const a=e.map((t,r)=>{const s=n*t.ratio/100;return d(u({},t),{index:r,exact:s,count:Math.floor(s),remainder:s-Math.floor(s)})});let o=n-a.reduce((t,r)=>t+r.count,0);return a.slice().sort((t,r)=>r.remainder-t.remainder||t.index-r.index).forEach(t=>{o<=0||(t.count+=1,o-=1)}),a.map(v=>{var A=v,{index:t,exact:r,remainder:s}=A,c=T(A,["index","exact","remainder"]);return d(u({},c),{count:Math.round(c.count)})})}k([{key:"fertileCow",name:"适龄能繁母牛",ratio:44.8},{key:"meatBull",name:"麦洼公牦牛",ratio:15.2},{key:"breedingBull",name:"种公牛",ratio:3.1},{key:"femaleCalf",name:"母犊牛",ratio:14.9},{key:"maleCalf",name:"公犊牛",ratio:15.1},{key:"overageCow",name:"过龄能繁母牛",ratio:6.9}],g);const S=[{label:"屠宰出栏",value:1706,yoy:6},{label:"活畜交易",value:1043,yoy:-3},{label:"外运销售",value:624,yoy:12},{label:"其他出栏",value:299,yoy:-9}],x=[{name:"饲草储备库",value:7,capacity:10500,unit:"座"},{name:"加工企业",value:7,capacity:13e3,unit:"家"},{name:"工程数量",value:l.projectCount,capacity:17,unit:"个"},{name:"基地数量",value:l.baseCount,capacity:12,unit:"个"}];export{Y,b as a,f as b,z as c,L as d,g as e,E as g,l as h,x as s,S as t,I as y};
