"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[1132],{18364:(e,a,t)=>{t.r(a),t.d(a,{useCalcAreaStore:()=>i});var u=t(57268),n=t(10435),r=t(14754);const i=(0,n.Q_)("calc-components-area",{state:()=>({unitItemsArr:[{name:"平方米",unit:"m²",base:!0,calcBase:!0,value:1},{name:"平方千米",unit:"km²",getValue:e=>(0,r.uf)(e/1e3/1e3),reverseValue:e=>(0,r.uf)(1e3*e*1e3)},{name:"公顷",unit:"ha",getValue:e=>(0,r.uf)(e/1e4),reverseValue:e=>(0,r.uf)(1e4*e)},{name:"公亩",unit:"are",getValue:e=>(0,r.uf)(e/100),reverseValue:e=>(0,r.uf)(100*e)},{name:"平方分米",unit:"dm²",getValue:e=>(0,r.uf)(100*e),reverseValue:e=>(0,r.uf)(e/100)},{name:"平方厘米",unit:"cm²",getValue:e=>(0,r.uf)(1e4*e),reverseValue:e=>(0,r.uf)(e/1e4)},{name:"平方毫米",unit:"mm²",getValue:e=>(0,r.uf)(1e4*e*100),reverseValue:e=>(0,r.uf)(e/1e4/100)},{name:"平方微米",unit:"μm²",getValue:e=>(0,r.uf)(1e4*e*1e4*1e4),reverseValue:e=>(0,r.uf)(e/1e4/1e4/1e4)},{name:"平方英寸",unit:"in²",getValue:e=>(0,r.uf)(1550.0031*e),reverseValue:e=>(0,r.uf)(e/1550.0031)},{name:"平方英尺",unit:"ft²",getValue:e=>(0,r.uf)(10.7639104*e),reverseValue:e=>(0,r.uf)(e/10.7639104)},{name:"平方竿",unit:"rd²",getValue:e=>(0,r.uf)(.0395369*e),reverseValue:e=>(0,r.uf)(e/.0395369)},{name:"英亩",unit:"arce",getValue:e=>(0,r.uf)(2471e-7*e),reverseValue:e=>(0,r.uf)(e/2471e-7)},{name:"平方英里",unit:"mile²",getValue:e=>(0,r.uf)(3.861*e/1e4/1e3),reverseValue:e=>(0,r.uf)(1e3*e*1e4/3.861)},{name:"平方码",unit:"yd²",getValue:e=>(0,r.uf)(1.19599*e),reverseValue:e=>(0,r.uf)(e/1.19599)},{name:"市顷",unit:"qing",getValue:e=>(0,r.uf)(15e-6*e),reverseValue:e=>(0,r.uf)(e/15e-6)},{name:"市亩",unit:"mou",getValue:e=>(0,r.uf)(.0015*e),reverseValue:e=>(0,r.uf)(e/.0015)},{name:"平方尺",unit:"chi²",getValue:e=>(0,r.uf)(9*e),reverseValue:e=>(0,r.uf)(e/9)},{name:"平方寸",unit:"cun²",getValue:e=>(0,r.uf)(900*e),reverseValue:e=>(0,r.uf)(e/900)},{name:"平方公里",unit:"gongli²",getValue:e=>(0,r.uf)(35198.873636*e),reverseValue:e=>(0,r.uf)(e/35198.873636)}]}),getters:{getAllUnits(){return this.unitItemsArr},getBaseUnit(){return this.unitItemsArr.find((e=>e.base))},getPanelList(){return this.unitItemsArr.filter((e=>!e.base))},getCalcbase(){return this.unitItemsArr.find((e=>e.calcBase))}},actions:{changeBaseUnit(e){this.unitItemsArr=(0,r.vZ)(e,this.unitItemsArr)},changeBaseValue(e){this.getBaseUnit.value=e},calcUnitsArr(){this.unitItemsArr=(0,r.UC)(this.unitItemsArr)}}});(0,u.YP)((()=>{var e;return null===(e=i().unitItemsArr.find((e=>e.base)))||void 0===e?void 0:e.value}),(()=>{i().calcUnitsArr()}),{immediate:!0}),(0,u.YP)((()=>{var e;return null===(e=i().unitItemsArr.find((e=>e.base)))||void 0===e?void 0:e.name}),(()=>{i().calcUnitsArr()}))},14754:(e,a,t)=>{t.d(a,{D:()=>v,Mb:()=>o,UC:()=>r,WS:()=>f,fS:()=>l,uf:()=>u,vZ:()=>n,zX:()=>i});const u=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!e)return 0;const u=Math.floor(Math.log(Math.abs(e))/Math.LN10);if(Math.abs(u)<=a)return Number(e.toFixed(t));{const a=e*Math.pow(10,-u);return Number(a.toFixed(t))+"e"+(u>0?"+"+u:u)}},n=(e,a)=>{const t=[...a],u=t.find((e=>e.base)),n=t.find((a=>a.name===e.name));return u.base=!1,n.base=!0,n.value=u.value,t},r=e=>{const a=[...e],t=e.find((e=>e.calcBase)),u=e.find((e=>e.base));var n;t.base?a.map((e=>{var a;e.base||e.calcBase||(e.value=null===(a=e.getValue)||void 0===a?void 0:a.call(null,Number(t.value)))})):(t.value=null===(n=u.reverseValue)||void 0===n?void 0:n.call(null,Number(u.value)),a.map((e=>{var a;e.base||e.calcBase||(e.value=null===(a=e.getValue)||void 0===a?void 0:a.call(null,Number(t.value)))})));return a},i=(e,a)=>{const t=String(e).split("."),u=t[1].split("");let n=0;for(let e=0;e<t[1].length;e++)n+=u[e]*Math.pow(a,-1*(e+1));return parseInt(t[0],a)+n},l=e=>Number(e||0).toFixed(2).replace(/\d+/,(e=>e.replace(/(\d)(?=(?:\d{3})+$)/g,"$1,"))),m=[{min:-1/0,max:36e3,rate:.03,deduction:0},{min:36e3,max:144e3,rate:.1,deduction:2520},{min:144e3,max:3e5,rate:.2,deduction:16920},{min:3e5,max:42e4,rate:.25,deduction:31920},{min:42e4,max:66e4,rate:.3,deduction:52920},{min:66e4,max:96e4,rate:.35,deduction:85920},{min:96e4,max:1/0,rate:.45,deduction:181920}],s=[{min:-1/0,max:3e3,rate:.03,deduction:0},{min:3e3,max:12e3,rate:.1,deduction:210},{min:12e3,max:25e3,rate:.2,deduction:1410},{min:25e3,max:35e3,rate:.25,deduction:2660},{min:35e3,max:55e3,rate:.3,deduction:4410},{min:55e3,max:8e4,rate:.35,deduction:7160},{min:8e4,max:1/0,rate:.45,deduction:15160}],d=[{min:-1/0,max:2e4,rate:.2,deduction:0},{min:2e4,max:5e4,rate:.3,deduction:2e3},{min:5e4,max:1/0,rate:.4,deduction:7e3}],c=(e,a)=>a.find((a=>e>a.min&&e<=a.max)),f=e=>c(e,m),o=e=>c(e,s),v=e=>c(e,d)}}]);