rapid-spreadjs 1.0.148 → 1.0.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import{groupByJson,forEachJson,orderByJson,chunkJson,preciseCalc}from"rapid-utils";import*as echarts from"echarts";import*as math from"mathjs";import{saveAs}from"file-saver";function __awaiter(e,l,t,a){return new(t||(t=Promise))(function(n,o){function y(e){try{x(a.next(e))}catch(e){o(e)}}function r(e){try{x(a.throw(e))}catch(e){o(e)}}function x(e){var l;e.done?n(e.value):(l=e.value,l instanceof t?l:new t(function(e){e(l)})).then(y,r)}x((a=a.apply(e,l||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const CommonUtils={getFileBlob:e=>__awaiter(void 0,void 0,void 0,function*(){const l=yield fetch(e,{method:"GET"});if(l.ok){return yield l.blob()}return null}),getColLetterName:e=>{e+=1;let l="";for(;e>0;){const t=(e-1)%26;l=String.fromCharCode(t+65)+l,e=Math.floor((e-1)/26)}return l.toUpperCase()}},SheetUtils={getActiveSheetSelectCells:e=>e.getActiveSheet().getSelections(),setActiveSheetSelectCells:(e,l)=>{e.getActiveSheet().setSelection(l.row,l.col,l.rowCount,l.colCount)},getAllCellObjsByRange:(e,l,t=!1)=>SheetUtils.getAllCellObjsByRanges(e,[l],t),getAllCellObjsByRanges:(e,l,t=!1,a=!1)=>{let n=[];return l.forEach((l,a)=>{let o=e.getSpans(l);if(o=orderByJson(o,t?["col","row"]:["row","col"],["asc","asc"]),o.forEach(e=>{n.push({row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount})}),void 0===l.row||void 0===l.col||void 0===l.rowCount||void 0===l.colCount)throw new Error("row、col、rowCount、colCount is required.");for(let t=l.row;t<+l.row+l.rowCount;t++)for(let a=l.col;a<l.col+l.colCount;a++){null==e.getSpan(t,a)&&n.push({row:t,col:a,rowCount:1,colCount:1})}}),a||(n=orderByJson(n,t?["col","row"]:["row","col"],["asc","asc"])),n},getAllCellObjsByRangeStr:(e,l)=>{let t=[];if(l.indexOf(",")>-1){l.split(",").forEach((l,a)=>{const n=l.substring(l.lastIndexOf("!")+1);t.push(e.getRange(n))})}else t.push(e.getRange(l));return t},getSheetAllCellObjs:e=>{const l=[{row:0,col:0,rowCount:e.getRowCount(),colCount:e.getColumnCount()}];return SheetUtils.getAllCellObjsByRanges(e,l)},getSheetSelectCellObjs:(e,l=!1)=>{const t=e.getSelections();return SheetUtils.getAllCellObjsByRanges(e,t,l)},getActiveSheetSelectCellObjs:(e,l=!1)=>{const t=e.getActiveSheet();return SheetUtils.getSheetSelectCellObjs(t,l)},getSheetCellObjsByGroup:(e,l,t="row")=>{e.suspendPaint();const a=SheetUtils.getAllCellObjsByRange(e,l),n=groupByJson(a,t),o=[];return forEachJson(n,(e,l,t)=>{o.push(e)}),e.resumePaint(),o},getSheetSelectVals:(e,l=!1,t)=>{const a=SheetUtils.getSheetSelectCellObjs(e,l);let n=[];return a.forEach(l=>{let a=e.getValue(l.row,l.col);null!=t&&null!=t&&null==a&&(a=t),n.push(a)}),n},getActiveSheetSelectVals:(e,l=!1,t)=>{const a=e.getActiveSheet();return SheetUtils.getSheetSelectVals(a,l,t)},getSheetRangeValsByGroup:(e,l,t="row",a)=>{e.suspendPaint();const n=SheetUtils.getAllCellObjsByRange(e,l),o=groupByJson(n,t),y=[];return forEachJson(o,(l,t,n)=>{const o=[];forEachJson(l,(l,t,n)=>{let y=e.getValue(l.row,l.col);null!=a&&null!=a&&null==y&&(y=a),o.push(y)}),y.push(o)}),e.resumePaint(),y},getCellType:(e,l,t,a)=>{let n;const o=l.getCellType(t,a);if(o instanceof e.Spread.Sheets.CellTypes.Button?n="button":o instanceof e.Spread.Sheets.CellTypes.RadioButtonList?n="radio":o instanceof e.Spread.Sheets.CellTypes.CheckBox?n="checkbox":o instanceof e.Spread.Sheets.CellTypes.CheckBoxList?n="checkboxList":o instanceof e.Spread.Sheets.CellTypes.HyperLink?n="hyperLink":o instanceof e.Spread.Sheets.CellTypes.ComboBox&&(n="comboBox"),null==n||null==n){const e=l.getStyle(t,a);e&&e.cellButtons&&e.cellButtons.length>0&&("openDateTimePicker"==e.cellButtons[0].command?e.dropDowns&&e.dropDowns.length>0&&(n=e.dropDowns[0].option.showDateRange?"dateRange":"date"):"openCalculator"==e.cellButtons[0].command&&(n="calc"))}return n},setSheetZoom:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).zoom(l)}e.resumePaint()},setActiveSheetSelectBgColor:(e,l)=>{const t=e.getActiveSheet();t.suspendPaint();SheetUtils.getActiveSheetSelectCells(e).forEach(e=>{t.getRange(e.row,e.col,e.rowCount,e.colCount).backColor(l)}),t.resumePaint()},setSheetBgColor:(e,l,t)=>{e.suspendPaint(),l.forEach(l=>{e.getRange(l.row,l.col,l.rowCount,l.colCount).backColor(t)}),e.resumePaint()},setSheetShowPrintPageLine:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).isPrintLineVisible(l)}e.resumePaint()},ignoreSheetShowStrs:e=>{const l=["#DIV/0!","#VALUE!","#NAME?","#N/A","#NULL!","#NUM!","#REF!"],t=e.Spread.Sheets.CellTypes.Text.prototype.paint;e.Spread.Sheets.CellTypes.Text.prototype.paint=function(e,a,n,o,y,r,x,s){l.some(e=>e==a)?t.call(this,e,"/",n,o,y,r,x,s):t.apply(this,arguments)}},setSheetAuxiliaryLine:(e,l,t,a,n=1,o="#409eff",y=!1)=>{let r=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineBottom"+(y?"Hb":""),0,a,t,n),x=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineRight"+(y?"Hb":""),t,0,n,a),s=document.createElement("div"),i=document.createElement("div");s.style.width=`${t}px`,s.style.height="1px",s.style.borderBottom=`${n}px dashed ${o}`,i.style.width="1px",i.style.height=`${a}px`,i.style.borderLeft=`${n}px dashed ${o}`,r.allowResize(!1),r.allowMove(!1),r.content(s),x.allowResize(!1),x.allowMove(!1),x.content(i),l.floatingObjects.add(r),l.floatingObjects.add(x)},setActiveSheetWatermark:(e,l,t,a=!0)=>{if(null==l||null==l)return;const n=e.getActiveSheet();n.suspendPaint(),l.forEach(e=>{n.getCell(e.row,e.col).watermark(t?`{${e.title}}`:void 0),n.setBindingPath(e.row,e.col,a?`${e.pathPrev}.${e.pathField}`:void 0)}),n.resumePaint()},setSheetCellDate:(e,l,t,a=!0)=>{t.forEach((t,n)=>{let o=l.getStyle(t.row,t.col);o||(o=new e.Spread.Sheets.Style),o.cellButtons=[{imageType:e.Spread.Sheets.ButtonImageType.dropdown,command:"openDateTimePicker",visibility:e.Spread.Sheets.ButtonVisibility.onSelected}],o.dropDowns=[{type:e.Spread.Sheets.DropDownType.dateTimePicker,option:{showTime:!1,showDateRange:!1}}],o.formatter=t.dateFormat,o.shrinkToFit=a,l.setStyle(t.row,t.col,o)})},getRangeStr:e=>`${CommonUtils.getColLetterName(e.col)}${e.row+1}:${CommonUtils.getColLetterName(e.col+e.colCount-1)}${e.row+e.rowCount}`,getCellsRangeStr:(e,l,t)=>{const a=SheetUtils.getAllCellObjsByRanges(e,[t]);let n=[];a.forEach(t=>{const a=e.getValue(t.row,t.col),o=e.getFormula(t.row,t.col);(1==l&&!o&&null!=a&&""!==a||2==l&&(null==a||null==a||""==a)||3==l&&o)&&(n.push(t),2!=l||null!=a&&null!=a&&""!=a||e.setFormatter(t.row,t.col,"@"))});const o=e.name();return"="+n.map(e=>{const l=(e=>{let l="";for(;e>=0&&(l=String.fromCharCode(65+e%26)+l,!((e=Math.floor(e/26)-1)<0)););return l})(e.col),t=e.row+1;e.rowCount>1||e.colCount;return`${o}!${l}${t}`}).join(",")},pasteCellValues:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){if(!navigator.clipboard||!navigator.clipboard.readText)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"您的浏览器不支持剪贴板读取功能!"));if("denied"===(yield navigator.permissions.query({name:"clipboard-read"})).state)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"剪贴板读取权限被拒绝!"));function t(e){const l=[];let t=0;for(let a=0;a<e.length;a++){const n=e[a].trim();""===n?t++:(t>0&&l.length,l.push(n),t=0)}return l}const a=SheetUtils.getSheetSelectCellObjs(e),n=groupByJson(a,"row"),o=[];forEachJson(n,(e,l,t)=>{o.push(e)});const y=function(e){const l=[];let a=[],n="",o=!1;for(let y=0;y<e.length;y++){const r=e[y];if('"'===r)o&&'"'===e[y+1]?(n+='"',y++):o=!o;else if("\t"!==r||o)if("\n"!==r&&"\r"!==r||o)n+=r;else{"\r"===r&&"\n"===e[y+1]&&y++,a.push(n);const o=t(a);o.length>0&&l.push(o),a=[],n=""}else a.push(n),n=""}if(""!==n||a.length>0){a.push(n);const e=t(a);e.length>0&&l.push(e)}return l.filter(e=>e.some(e=>""!==e.trim()))}(yield navigator.clipboard.readText());e.suspendPaint();for(let l=0;l<o.length;l++){const t=o[l];for(let a=0;a<t.length;a++){const n=t[a],o=y[l][a];e.setValue(n.row,n.col,o),o&&o.includes("\n")&&e.getCell(n.row,n.col).wordWrap(!0)}}e.resumePaint(),null!=l&&null!=l&&"function"==typeof l&&l(!0,"粘贴成功!")})},BusinessUtils={createTestObjectAttrsCells:(e,l,t,a=0,n=0,o=!0,y="left",r=0,x=1,s=77,i=24)=>{if(!t||0===t.length)return;const u=o?12:10,m=o?26:15,c=chunkJson(t,o?2:3);l.suspendPaint();const h=l.getRowCount();a>h-1&&(a=h),n>0&&l.deleteRows(a,n);const p=(t,a,n=!1)=>{const o=l.getCell(t,a);o.fontFamily("宋体").fontSize("9pt").cellPadding(`0 0 0 ${r}`),n&&o.hAlign("left"==y?e.Spread.Sheets.HorizontalAlign.left:"center"==y?e.Spread.Sheets.HorizontalAlign.center:"right"==y?e.Spread.Sheets.HorizontalAlign.right:e.Spread.Sheets.HorizontalAlign.left)};for(let t=0;t<c.length;t++){const n=c[t],y=a+t;l.addRows(y,1),l.setRowHeight(y,i,e.Spread.Sheets.SheetArea.viewport);const r=l.getRange(y,1,x,s,e.Spread.Sheets.SheetArea.viewport);if(r.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),r.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:0==t,bottom:!1}),r.hAlign(e.Spread.Sheets.HorizontalAlign.center),r.vAlign(e.Spread.Sheets.HorizontalAlign.center),l.addSpan(y,x,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,x+u,1,n.length>1?m:s-u,e.Spread.Sheets.SheetArea.viewport),l.setValue(y,x,n[0].title),l.setValue(y,x+u,n[0].value),p(y,x),p(y,x+u,!0),n.length>1){const t=x+u+m,a=t+u;l.addSpan(y,t,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,a,1,m+1+(o||2!=n.length?0:u+m+1),e.Spread.Sheets.SheetArea.viewport),l.setValue(y,t,n[1].title),l.setValue(y,a,n[1].value),p(y,t),p(y,a,!0)}if(n.length>2){const t=x+u+m+u+m+1,a=t+u;l.addSpan(y,t,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,a,1,m+1,e.Spread.Sheets.SheetArea.viewport),l.setValue(y,t,n[2].title),l.setValue(y,a,n[2].value),p(y,t),p(y,a,!0)}}return l.resumePaint(),c.length},getTestObjectAttrsVals:(e,l,t=0,a=!0,n=1,o=77)=>{const y=a?2:3,r=chunkJson(l,y);e.suspendPaint();const x=SheetUtils.getAllCellObjsByRange(e,{row:t,col:n,rowCount:e.getRowCount(),colCount:o}),s=chunkJson(x,2*y),i=[];for(let e=0;e<s.length;e++)i.push(chunkJson(s[e],2));let u=[];for(let l=0;l<r.length;l++){const t=r[l];for(let a=0;a<t.length;a++){const n=t[a];u.push({title:e.getValue(i[l][a][0].row,i[l][a][0].col),fieldName:n.fieldName,value:e.getValue(i[l][a][1].row,i[l][a][1].col)})}}return e.resumePaint(),u},dynamicCreateCyclicRows:(e,l,t,a,n=0,o=!1,y=!1,r=null,x)=>{if(a<=1&&0==n||a==n&&n>0)return;const s=l.getActiveSheet(),i=t.row+t.rowCount==s.getRowCount();let u=[];for(let e=t.row;e<=t.row+t.rowCount-1;e++)u.push(s.getRowHeight(e));const m=(l,a,n)=>{s.addRows(l,a);let y=0;for(let t=l;t<=l+a;t++)s.setRowHeight(t,null!=x&&null!=x?x:u[y],e.Spread.Sheets.SheetArea.viewport),y<u.length-1?y++:y=0;for(let a=1;a<=n;a++){const n=l+(a-1)*t.rowCount;s.copyTo(t.row,t.col,n,t.col,t.rowCount,t.colCount,e.Spread.Sheets.CopyToOptions.all)}if(o){SheetUtils.getAllCellObjsByRange(s,{row:l,col:1,rowCount:a,colCount:77}).forEach(e=>{s.setValue(e.row,e.col,"")})}};s.suspendPaint(),s.suspendCalcService(),s.suspendDirty(),s.suspendEvent(),a<=1&&n>0?s.deleteRows(t.row+t.rowCount,(a-1)*t.rowCount):a>1&&n>1?a>n?m(t.row+n*t.rowCount,(a-n)*t.rowCount,a-n):a<n&&s.deleteRows(t.row+t.rowCount+(a-1)*t.rowCount,(n-a)*t.rowCount):a>1&&0==n&&m(t.row+t.rowCount,(a-1)*t.rowCount,a-1);const c=s.getRange(t.row,t.col,a*t.rowCount,t.colCount>77?77:t.colCount);i&&c.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{inside:!0});const h={row:c.row,col:c.col,rowCount:c.rowCount,colCount:c.colCount},p=SheetUtils.getAllCellObjsByRanges(s,[h]),f=groupByJson(p,"row");let d=[];if(!o&&y){forEachJson(f,(e,l,t)=>{d.push(e)});let e=0;d.forEach((l,t)=>{l.forEach((l,t)=>{0==t&&(e++,s.setValue(l.row,l.col,e))})})}s.resumeDirty(),s.resumeEvent(),s.resumeCalcService(),s.resumePaint(),null!=r&&null!=r&&"function"==typeof r&&r(h,d)},overRemindComments:(spread,cctxConfigs,cellRowIndex,cellColIndex,isValueChgedUse=!0,commentOptions={color:"#E11010",size:10,defaultTextIsSet:!0,defaultText:"无效"})=>{if(!cctxConfigs||0==cctxConfigs.length)return;const sheet=spread.getActiveSheet();spread.suspendPaint(),spread.suspendCalcService(),spread.suspendEvent();let commentColor=commentOptions.color?commentOptions.color:"#E11010",commentSize=commentOptions.size?commentOptions.size:10,commentDefaultTextIsSet=!commentOptions.defaultTextIsSet||commentOptions.defaultTextIsSet,commentDefaultText=commentOptions.defaultText?commentOptions.defaultText:"无效";const replaceVar=(e,l)=>(["a","b","c","d","e","f"].forEach(t=>{e.indexOf(t)>-1&&(e=e.replaceAll(t,l.find(e=>e.var==t).value))}),e),replaceNum=(e,l)=>{const t=[];for(let e=1;e<=20;e++)t.push(e);return t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(t,`#${t}#`))}),t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(`#${t}#`,`(${l[t-1]})`))}),e},getConJsonArrNew=(e,l)=>{let t=[];return e.forEach(e=>{let a=e;a=a.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]"),a=replaceVar(a,l),a=a.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)"),t.push(a)}),t};for(let i=0;i<cctxConfigs.length;i++){const item=cctxConfigs[i];if(item.isQz){let varJsonArr=JSON.parse(item.varJson),qzCellJsonArr=JSON.parse(item.qzCellJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);qzCellJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let qzGsJsonArr=JSON.parse(item.qzGsJson);qzGsJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let isAllNotCc=!0;for(let j=0;j<qzGsJsonArr.length;j++){const itemQzgs=qzGsJsonArr[j];let curGsQz=itemQzgs.qzFor.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]");curGsQz=replaceVar(curGsQz,qzCellJsonArr),curGsQz=curGsQz.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)");try{if(eval(curGsQz)){const lastFor=replaceNum(itemQzgs.conFor,conJsonArrNew);try{if(eval(lastFor))isAllNotCc=!1,sheet.comments.add(item.row,item.col,itemQzgs.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}break}}catch(e){}}if(isAllNotCc&&(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet)){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}};isValueChgedUse?(varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)||qzCellJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex))&&doEvent():doEvent()}else{let varJsonArr=JSON.parse(item.varJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);const lastFor=replaceNum(item.conFor,conJsonArrNew);try{if(eval(lastFor))sheet.comments.add(item.row,item.col,item.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}};isValueChgedUse?varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)&&doEvent():doEvent()}}spread.resumeEvent(),spread.resumeCalcService(),spread.resumePaint()},dynamicLoadRows:(e,l,t,a,n,o=500,y=1,r="空白")=>{const x=l.getActiveSheet();x.suspendPaint();const s=SheetUtils.getAllCellObjsByRanges(x,t);s.forEach((e,l)=>{x.setRowVisible(e.row,!0)});const i=groupByJson(s,"row");let u=null,m=[];forEachJson(i,(l,t,a)=>{if(null==u){const e=x.getSpans(x.getCell(parseInt(t),1));u=e[0].colCount}const n=x.getSpans({row:parseInt(t),col:1,rowCount:l[0].rowCount,colCount:u})[0];let o=!1,y=[];for(let t=0;t<l.length;t++){const a=l[t];for(let e=a.row;e<a.row+a.rowCount;e++)y.some(l=>l==e)||y.push(e);const n=x.getValue(a.row,a.col);if(null!=n&&""!==n&&"/"!==n&&!(n instanceof e.Spread.CalcEngine.CalcError)){o=!0;break}}let r={row:parseInt(t),rows:y,cells:l,hasValue:o};if(m.some(e=>e.rowSpan==n.row)){m.find(e=>e.rowSpan==n.row).rows.push(r)}else{let e=[];const l=x.getSpans({row:n.row,col:1,rowCount:1,colCount:1})[0];for(let t=0;t<l.rowCount;t++)e.push(n.row+t);m.push({rowSpan:n.row,rowIndexs:e,rows:[r]})}});let c=[],h=[],p=[];m.forEach((e,l)=>{e.rows.some(e=>e.hasValue)&&!p.some(l=>l==e.rowSpan)&&p.push(e.rowSpan),e.rows.some(e=>e.hasValue)?e.rowIndexs.forEach(e=>{c.some(l=>l==e)||c.push(e)}):e.rowIndexs.forEach(e=>{h.some(l=>l==e)||h.push(e)})});let f=0;p.forEach((e,l)=>{const t=x.getValue(e,1);/^(?!\d+$)[\u4e00-\u9fa5a-zA-Z0-9!@#$%^&*()_+[\]{};':",.\/?\\|-]+$/.test(t)||(f++,x.setValue(e,1,f))}),c.forEach((e,l)=>{x.setRowVisible(e,!0)}),h.forEach(e=>{x.setRowVisible(e,!1)});return(()=>{const l=1==y?1055:615;let t=-1,s=0;for(let e=0;e<x.getRowCount();e++){const l=x.getRowVisible(e),a=x.getTag(e,1);!l||null!=a&&null!=a&&"BlankCell"==a||(s+=x.getRowHeight(e)),"BlankCell"==a&&(t=e)}let i=!0;if(1==y&&s-a-n>=o&&(i=!1),!i)return void(-1!=t&&x.setRowVisible(t,!1));const u=m[m.length-1].rowSpan+x.getSpans({row:m[m.length-1].rowSpan,col:1,rowCount:1,colCount:1})[0].rowCount-1;if(s<l){const t=x.getTag(u+1,1);if(t&&"BlankCell"===t)x.setRowHeight(u+1,l-s),x.setRowVisible(u+1,!0);else{x.addRows(u+1,1),x.addSpan(u+1,1,1,77),x.setRowHeight(u+1,l-s);const t=x.getRange(u+1,1,1,77);t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:!1,bottom:!1}),t.hAlign(e.Spread.Sheets.HorizontalAlign.center),t.vAlign(e.Spread.Sheets.HorizontalAlign.center),x.setValue(u+1,1,r),x.setTag(u+1,1,"BlankCell")}}else{const e=x.getTag(u+1,1);e&&"BlankCell"==e&&x.setRowVisible(u+1,!1)}})(),x.resumePaint(),{hasValueIndex:c,noValueIndex:h}},dynamicLoadRows_Backup:(e,l,t,a,n,o=500,y=1,r="空白")=>{const x=l.getActiveSheet();x.suspendPaint();const s=SheetUtils.getAllCellObjsByRanges(x,t);s.forEach((e,l)=>{x.setRowVisible(e.row,!0)});const i=groupByJson(s,"row");let u=null,m=[];forEachJson(i,(l,t,a)=>{if(null==u){const e=x.getSpans(x.getCell(parseInt(t),1));u=e[0].colCount}const n=x.getSpans({row:parseInt(t),col:1,rowCount:l[0].rowCount,colCount:u})[0];let o=!1,y=[];for(let t=0;t<l.length;t++){const a=l[t];for(let e=a.row;e<a.row+a.rowCount;e++)y.some(l=>l==e)||y.push(e);const n=x.getValue(a.row,a.col);if(null!=n&&""!==n&&"/"!==n&&!(n instanceof e.Spread.CalcEngine.CalcError)){o=!0;break}}let r={row:parseInt(t),rows:y,cells:l,hasValue:o};if(m.some(e=>e.rowSpan==n.row)){m.find(e=>e.rowSpan==n.row).rows.push(r)}else m.push({rowSpan:n.row,rows:[r]})});let c=[],h=[],p=[];m.forEach((e,l)=>{e.rows.some(e=>e.hasValue)&&!p.some(l=>l==e.rowSpan)&&p.push(e.rowSpan),e.rows.some(e=>e.hasValue)?e.rows.forEach(e=>{e.rows.forEach(e=>{c.some(l=>l==e)||c.push(e)})}):e.rows.forEach(e=>{e.rows.forEach(e=>{h.some(l=>l==e)||h.push(e)})})}),p.forEach((e,l)=>{x.setValue(e,1,l+1)}),c.forEach((e,l)=>{x.setRowVisible(e,!0)}),h.forEach(e=>{x.setRowVisible(e,!1)});return(()=>{const l=1==y?1055:615;let s=-1,i=0;for(let e=0;e<x.getRowCount();e++){const l=x.getRowVisible(e),t=x.getTag(e,1);!l||null!=t&&null!=t&&"BlankCell"==t||(i+=x.getRowHeight(e)),"BlankCell"==t&&(s=e)}let u=!0;if(1==y&&i-a-n>=o&&(u=!1),!u)return void(-1!=s&&x.setRowVisible(s,!1));const m=t[0].row+t[0].rowCount-1;if(i<l){const t=x.getTag(m+1,1);if(t&&"BlankCell"===t)x.setRowHeight(m+1,l-i),x.setRowVisible(m+1,!0);else{x.addRows(m+1,1),x.addSpan(m+1,1,1,77),x.setRowHeight(m+1,l-i);const t=x.getRange(m+1,1,1,77);t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:!1,bottom:!1}),t.hAlign(e.Spread.Sheets.HorizontalAlign.center),t.vAlign(e.Spread.Sheets.HorizontalAlign.center),x.setValue(m+1,1,r),x.setTag(m+1,1,"BlankCell")}}else{const e=x.getTag(m+1,1);e&&"BlankCell"==e&&x.setRowVisible(m+1,!1)}})(),x.resumePaint(),{hasValueIndex:c,noValueIndex:h}}},EChartsUtilsComm={filterValues:(e,l=["","/",null,void 0,0])=>{if(!Array.isArray(e)||0===e.length)return[];const t=[],a=e[0]?e[0].length:0;for(let n=0;n<a;n++){e.every(e=>{const t=e[n];return!l.includes(t)})&&t.push(n)}return e.map(e=>t.map(l=>e[l]))},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=1/l;const n=(e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(Number((e*a).toFixed(8)))/a;let o=l+"";if(-1==o.indexOf("."))return t?-n:n;{const e=n+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<o.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${n}.${e}`}{const a=e.split(".")[1];if(o.split(".")[1].length>a.length)for(let e=0;e<o.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${n}${l}`}}},calcTrend:(e,l,t)=>{let a=e.length,n=0,o=0,y=0,r=0;for(let t=0;t<a;t++)n+=e[t],o+=l[t],y+=e[t]*l[t],r+=e[t]*e[t];let x=(a*y-n*o)/(a*r-n*n),s=(o-x*n)/a;return x+""=="NaN"?{y:"",gs:"",xl:"",jj:""}:{y:x*t+s,gs:`${x}*x+${s}`,xl:x,jj:s}},filterNullEmptyErrArray:e=>e.filter(e=>0!=e&&null!=e&&null!=e&&(null==e._error||null==e._error)&&"/"!=e)},EChartsUtilsAll={chart10:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Number(EChartsUtilsComm.getRound(h+.05,.01)),g=Number(EChartsUtilsComm.getRound(c-.05,.01)),b=[],C=[];s.forEach((e,l)=>{C.push([e,i[l]])});const S=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),w=math.transpose(S),V=math.multiply(w,S),F=math.multiply(w,math.matrix(i));let E=null,N=[];try{E=math.lusolve(V,F),N=E.valueOf()}catch(e){for(let e=0;e<s.length;e++)N.push([0])}function A(e){let l=0;return N.forEach((t,a)=>{l+=t*e**a}),l}let v=[],D=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));D.push(A(l)),v.push(l)}let U=Math.max(...D),J=D.findIndex(e=>e===U),k=e.chartXName,O=e.chartYName;v.forEach((e,l)=>{s.includes(e)?b.push({value:[e,D[l]]}):b.push({value:[e,D[l]],symbol:"none"})});const M=[v[J],Number(EChartsUtilsComm.getRound(U,.001))],L=[M[0],g];null!=o&&(null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,u),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,m)),null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,v[J]));let j=[],I=[];j=[[{coord:L,lineStyle:{color:"#333",type:"dashed"}},{coord:M}]],I=[{xAxis:M[0],yAxis:M[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:M[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a1"}},itemStyle:{color:"transparent"}}];let z=!1;return b.forEach(e=>{z=e.value.every(e=>0==e)}),z&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:z?25:30,right:10,bottom:z?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:z?5:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:I},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:j}}]}},chart11:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=null,S=7.5;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=e.chartXName,L=e.chartYName;function j(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function I(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let z=[],R=[],T=[],Y=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&j(J[l-1],J[l],C,C)){let e=I(J[l-1],J[l],C);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?T.push(0):T.push(1)}if(null!=S&&j(J[l-1],J[l],S,S)){let e=I(J[l-1],J[l],S);R.push([U[l+e],J[l+e]]),J[l-1]>J[l]?Y.push(0):Y.push(1)}}});let q=u,G=m;0==z.length&&R.length>0?0==Y[0]?(q=u,G=R[0][0]):(q=R[0][0],G=1==R.length?m:R[1][0]):z.length>0&&0==R.length?0==T[0]?(q=z[0][0],G=1==z.length?m:z[1][0]):(q=u,G=z[0][0]):z.length>0&&R.length>0&&(0==T[0]?(q=z[0][0],G=R[0][0]):(q=R[0][0],G=z[0][0])),null!=o&&(null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,q),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,G)),null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,U[O]));const B=[U[O],Number(EChartsUtilsComm.getRound(k,.001))];let P=[],H=[];P=[[{coord:[B[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:B}]],H=[{xAxis:B[0],yAxis:B[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:B[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a2"}},itemStyle:{color:"transparent"}}],null!=C&&P.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&P.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let W=!1;return b.forEach(e=>{W=e.value.every(e=>0==e)}),W&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:W?25:30,right:10,bottom:W?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:M,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:L,nameGap:W?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:H},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:P}}]}},chart12:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=5,S=3;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&I.length>0?0==R[0]?(T=u,Y=I[0][0]):(T=I[0][0],Y=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(T=j[0][0],Y=I[0][0]):(T=I[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];if(j.length>0&&j.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=o&&null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,e),q.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),G.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a3"}},itemStyle:{color:"transparent"}})}null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart13:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=2;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&I.length>0?0==R[0]?(T=u,Y=I[0][0]):(T=I[0][0],Y=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(T=j[0][0],Y=I[0][0]):(T=I[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];q=[],G=[],null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart14:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=13.5;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&I.length>0?0==R[0]?(T=u,Y=I[0][0]):(T=I[0][0],Y=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(T=j[0][0],Y=I[0][0]):(T=I[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];q=[],G=[],null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart15:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+10),g=Math.floor(c-10),b=[],C=75,S=60;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+10),null!=S&&S>d&&(g=S-10);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=C&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&I.length>0?0==R[0]?(T=u,Y=I[0][0]):(T=I[0][0],Y=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(T=j[0][0],Y=I[0][0]):(T=I[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];if(j.length>0&&j.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=o&&null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,e),q.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),G.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a4"}},itemStyle:{color:"transparent"}})}null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart16:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=[[a.getValue(o.lqhhlHz[0].row,o.lqhhlHz[0].col),a.getValue(o.lqhhlHz[1].row,o.lqhhlHz[1].col)],[a.getValue(o.lqhhlHz[2].row,o.lqhhlHz[2].col),a.getValue(o.lqhhlHz[3].row,o.lqhhlHz[3].col)],[a.getValue(o.lqhhlHz[4].row,o.lqhhlHz[4].col),a.getValue(o.lqhhlHz[5].row,o.lqhhlHz[5].col)],[a.getValue(o.lqhhlHz[6].row,o.lqhhlHz[6].col),a.getValue(o.lqhhlHz[7].row,o.lqhhlHz[7].col)],[a.getValue(o.lqhhlHz[8].row,o.lqhhlHz[8].col),a.getValue(o.lqhhlHz[9].row,o.lqhhlHz[9].col)],[a.getValue(o.lqhhlHz[10].row,o.lqhhlHz[10].col),a.getValue(o.lqhhlHz[11].row,o.lqhhlHz[11].col)]],r=l[0],x=5.5,s=3.5,i=0,u=6,m=["VFA","VMA","流值","稳定度","空隙率","密度"];let c=[],h=[],p=Math.max(...y.map(e=>e[0])),f=Math.min(...y.map(e=>e[1]));if(y.forEach((e,l)=>{c.push([{coord:[e[0],y.length-l],lineStyle:{color:n[0].lineColor,type:"solid",width:2}},{coord:[e[1],y.length-l]}])}),p<=f&&(c.push([{coord:[p,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[p,6]}]),c.push([{coord:[f,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[f,6]}]),h=[{xAxis:p,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmin"}},itemStyle:{color:"transparent"}},{xAxis:f,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmax"}},itemStyle:{color:"transparent"}}]),p<=f){const e=(p+f)/2;c.push([{coord:[e,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[e,6]}]),h.push({xAxis:e,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OAC2"}},itemStyle:{color:"transparent"}})}isNaN(p)&&(p=0),isNaN(f)&&(f=0),null!=o&&(null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,p),null!=o.lqhhlSc2&&null!=o.lqhhlSc2&&a.setValue(o.lqhhlSc2.row,o.lqhhlSc2.col,f));let d=!1;return y.forEach(e=>{d=e.every(e=>"/"==e)}),d&&(s=null,x=null,i=null,u=null),{grid:{top:25,left:10,right:10,bottom:d?20:16,containLabel:!0},title:[{show:!0,text:"OAC",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:"油石比(%)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:x,min:s,data:r,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:u,min:i,axisLabel:{formatter:function(e){return 0==e?"":m[e-1]}}}],series:[{name:"图例1",type:"line",markPoint:{data:h},markLine:{symbol:["none","none"],data:c}}]}},chart30:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);null==o||null!=o.jsIsJz&&null!=o.jsIsJz||(o.jsIsJz=!0);let y=2==l.length;t.length>1&&!t[1].some(e=>null!=e&&null!=e&&"/"!=e)&&(y=!1);let r=l[0],x=y?l[1]:[],s=t[0],i=y?t[1]:[],u=[],m=[];if(r.forEach((e,l)=>{"/"!=e&&0!=e&&null!=e&&null!=e&&"/"!=s[l]&&0!=s[l]&&null!=s[l]&&null!=s[l]&&(u.push(e),m.push(s[l]))}),r=u,s=m,y){let e=[],l=[];x.forEach((t,a)=>{"/"!=t&&0!=t&&null!=t&&null!=t&&"/"!=i[a]&&0!=i[a]&&null!=i[a]&&null!=i[a]&&(e.push(t),l.push(i[a]))}),x=e,i=l}let c=e.chartTitle,h=e.chartXName,p=e.chartYName;const f=(e,l,t,y,r)=>{let x=null!=o?o.dxsJs:5,s=[],i=[],u=[];if(e.forEach((e,t)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&0!=e&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(l[t])&&0!=l[t]&&(s.push(e),i.push(l[t]))}),0==i.length)return;x>=i.length&&(x=i.length-1);let m,c,h=Math.min(...s),p=Math.max(...s),f=Math.min(...i),d=Math.max(...i),g=Math.ceil(p+.1),b=Math.trunc(h-.1),C=Number(EChartsUtilsComm.getRound(d+.02,.01)),S=Number(EChartsUtilsComm.getRound(f-.02,.01));null!=o&&o.jsIsJz&&(null!=o.jsZjhslJz&&null!=o.jsZjhslJz&&(m=a.getValue(o.jsZjhslJz.row,o.jsZjhslJz.col)),null!=o.jsZdgmdJz&&null!=o.jsZdgmdJz&&(c=a.getValue(o.jsZdgmdJz.row,o.jsZdgmdJz.col)),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&c>C&&(C=Number(EChartsUtilsComm.getRound(c+.02,.01))));let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=h;e<=p;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));e=Number(l),J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=.01,L=.001,j=0,I=0;null!=o&&(null!=o.jsZjhslJd&&null!=o.jsZjhslJd&&(M=o.jsZjhslJd),null!=o.jsZdgmdJd&&null!=o.jsZdgmdJd&&(L=o.jsZdgmdJd),0==U[O]&&0==k?(a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,"/"),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,"/")):(j=EChartsUtilsComm.getRound(U[O],M),I=EChartsUtilsComm.getRound(k,L),a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,j),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,I))),U.forEach((e,l)=>{s.includes(e)?u.push({value:[e,J[l]]}):u.push({value:[e,J[l]],symbol:"none"})});const z=[U[O],Number(EChartsUtilsComm.getRound(k,L))],R=[z[0],S],T=[b,z[1]];let Y={data:[{xAxis:EChartsUtilsComm.getRound(z[0],M),yAxis:EChartsUtilsComm.getRound(z[1],L),symbolOffset:[0,15],symbol:"circle",symbolSize:6,label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},q={symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:[[{coord:R,lineStyle:{color:"#333",type:"dashed"}},{coord:z}],[{coord:T,lineStyle:{color:"#333",type:"dashed"}},{coord:z}]]};o.jsIsJz&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(m)&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&(q=null,Y.data[0].label=null,Y.data[0].symbolOffset=null,Y.data[0].itemStyle.color="#F56C6C",Y.data[0].xAxis=m,Y.data[0].yAxis=c,q=null);let G={name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[r?1:0].lineColor,type:r?"dotted":"solid"},itemStyle:{color:n[r?1:0].lineColor},data:u,markPoint:t?Y:null,markLine:y?q:null};return{xAxisMin:b,xAxisMax:g,yAxisMin:S,yAxisMax:C,xData:s,seriesDataObj:G,maxPointData:[U[O],k]}};let d,g=0,b=0,C=0,S=0,w=[],V=[],F=0,E=0,N=f(r,s,!y,!y,!1);y&&(d=f(x,i,!1,!1,!0));let A=!1;if(null!=N&&null!=N||(A=!0),!A)if(y){if(null==d||null==d)return;b=N.xAxisMax,d.xAxisMax>b&&(b=d.xAxisMax),g=N.xAxisMin,d.xAxisMin<g&&(g=d.xAxisMin),S=N.yAxisMax,d.yAxisMax>S&&(S=d.yAxisMax),C=N.yAxisMin,d.yAxisMin<C&&(C=d.yAxisMin),N.xData.forEach(e=>{w.push(e)}),d.xData.forEach(e=>{w.push(e)}),V.push(N.seriesDataObj),V.push(d.seriesDataObj),F=(N.maxPointData[0]+d.maxPointData[0])/2,E=(N.maxPointData[1]+d.maxPointData[1])/2;let e=.01,l=.001,t=0,n=0;null!=o&&(null!=o.jsZjhslJd&&null!=o.jsZjhslJd&&(e=o.jsZjhslJd),null!=o.jsZdgmdJd&&null!=o.jsZdgmdJd&&(l=o.jsZdgmdJd),0==F&&0==E?(a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,"/"),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,"/")):(t=EChartsUtilsComm.getRound(F,e),n=EChartsUtilsComm.getRound(E,l),a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,t),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,n)))}else g=N.xAxisMin,b=N.xAxisMax,C=N.yAxisMin,S=N.yAxisMax,w=N.xData,V.push(N.seriesDataObj);return V.forEach(e=>{A=e.data[0].value.every(e=>0==e)}),A&&(g=null,b=null,C=null,S=null,V=[]),{grid:{top:25,left:A?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:A?0:b,min:A?0:g,data:w,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:A?0:S,min:A?0:C,name:p,nameGap:A?25:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:A?[]:V}},chart50:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,o=e.chartYName;const y=l[0],r=t[0],x=t[1],s=t[2],i=[];y.forEach((e,l)=>{i.push({x:e,y:r[l],ySx:x[l],yXx:s[l]})}),i.sort(function(e,l){return e.x-l.x});const u=[],m=[],c=[],h=[];let p=0;x.forEach((e,l)=>{null!=e&&"/"!=e||p++}),p==x.length?i.forEach((e,l)=>{u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx)}):i.forEach((e,l)=>{null!=e.ySx&&"/"!=e.ySx&&null!=e.yXx&&"/"!=e.yXx&&(u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx))});let f=[],d=[],g=[],b=[];u.forEach((e,l)=>{const t=Number(EChartsUtilsComm.getRound(e**.45,.001));f.push([t,m[l]]),b.push({name:e+"",xAxis:t,label:{show:!(u.length>=6&&l%2!=0&&l<6),fontSize:10}}),d.push([t,c[l]]),g.push([t,h[l]])});const C=(e,l)=>{const t=1==e?"筛分曲线":2==e?"上限":"下限",n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;let r={name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,z:10,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l,connectNulls:!0,markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:b}};return r};let S=!1;0==f.length&&(S=!0);let w=0;return f.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||w++}),w==f.length&&(S=!0),(x.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(S=!1),f.filter(e=>0==e[1]).length==f.length&&d.filter(e=>0==e[1]).length==d.length&&g.filter(e=>0==e[1]).length==g.length&&(S=!0),t[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[1].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[2].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(S=!0),{grid:{top:20,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){if(e&&e[0].data.length>1){let l=b.filter(l=>l.xAxis==e[0].data[0]);return e[0].seriesName+"("+l[0].name+"):"+e[0].data[1]}return e[0].data}},title:[{show:!0,text:"",left:"center",top:5,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",data:["筛分曲线","上限","下限"],selected:{"筛分曲线":!0,"上限":!0,"下限":!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:f.length>0?f[0][0]>.2?f[0][0]-.2:0:null,max:f.length>0?f[f.length-1][0]+.1:null},yAxis:[{type:"value",name:o,nameGap:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},min:0,max:100,splitNumber:10,axisLabel:{fontSize:10}}],series:[C(1,S?[]:f),C(2,S?[]:d),C(3,S?[]:g)]}},chart70:(e,l,t,a)=>{JSON.parse(e.chartLinesJson);const n=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);if(l[0].some(e=>null==e||""==e||null==e)||t[0].some(e=>null==e||""==e||null==e))return{};let o=e.chartTitle,y=e.chartXName,r=e.chartYName,x=l[0],s=t[0],i=100,u="砂类土",m=[],c=[];if(null!=n){let e=a.getValue(n.jxhslZtzl.row,n.jxhslZtzl.col),l=a.getValue(n.jxhslCllx.row,n.jxhslCllx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(e=Number(e),100!=e&&76!=e||(i=e)),"砂类土"!=l&&"细粒土"!=l||(u=l)}for(const e of x)m.push(Math.log(e));for(const e of s)c.push(Math.log(e));let h=(c[2]-c[1])/(m[2]-m[1]),p=(c[2]-c[0])/(m[2]-m[0]);const f=Math.max.apply(Math,x)+1,d=Math.min.apply(Math,x)-.3,g=Math.max.apply(Math,s)+1,b=Math.min.apply(Math,s)-2,C=["C","B","A"],S=[];function w(e,l,t){const a=Math.log(e[0]),n=Math.log(e[1]),o=Math.log(l[0]),y=n+(Math.log(l[1])-n)/(o-a)*(Math.log(t)-a);return Math.exp(y)}x.forEach((e,l)=>{S.push([e,s[l],C[l]])});let V=[20,w([x[2],s[2]],[x[1],s[1]],20)],F=[20,w([x[2],s[2]],[x[0],s[0]],20)];function E(e){let l;return l="砂类土"==u?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),l}let N,A,v,D=[],U=[],J=[],k=E(x[2]),O=Math.log(k),M=(h*m[2]-(c[2]-O))/h,L=(p*m[2]-(c[2]-O))/p,j=Math.exp((M+L)/2),I=Math.log(j),z=(c[2]-O)/(m[2]-I);if(76==i){let e=Math.log(17),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=Math.log(2),n=(z*m[2]-(c[2]-a))/z,o=Math.exp(n);J=[j,k],D=[j,b],U=[d,k],S.push([j,k,"Hp"]),N=k,A=t,v=o}else if(100==i){let e=Math.log(20),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=E(t),n=Math.log(a),o=(h*m[2]-(c[2]-n))/h,y=(p*m[2]-(c[2]-n))/p,r=Math.exp((o+y)/2),x=r;J=[r,a],D=[r,b],U=[d,a],S.push([r,a,"Hp"]),N=a,A=t,v=x}if((isNaN(N)||isNaN(A)||isNaN(v))&&(N=0,A=0,v=0),null!=n){let e=.01,l=.01,t=.01;null!=n.jxhslScHpJd&&null!=n.jxhslScHpJd&&(e=n.jxhslScHpJd),null!=n.jxhslScWlJd&&null!=n.jxhslScWlJd&&(l=n.jxhslScWlJd),null!=n.jxhslScWpJd&&null!=n.jxhslScWpJd&&(t=n.jxhslScWpJd),null!=n.jxhslScHp&&null!=n.jxhslScHp&&(0==N?a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,"/"):a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,EChartsUtilsComm.getRound(N,e))),null!=n.jxhslScWl&&null!=n.jxhslScWl&&(0==A?a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,"/"):a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,EChartsUtilsComm.getRound(A,l))),null!=n.jxhslScWp&&null!=n.jxhslScWp&&(0==v?a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,"/"):a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,EChartsUtilsComm.getRound(v,t)))}let R=!1;0==x.length&&(R=!0);let T=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||T++}),T==x.length&&(R=!0),(s.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(R=!1),{grid:{top:20,left:R?25:50,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",min:d,max:f,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"log",name:r,nameGap:R?5:30,nameRotate:90,nameLocation:"middle",min:b,max:g,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},series:[{name:"图例1",data:S,type:"scatter",symbol:"circle",smooth:!1,symbolSize:6,label:{show:!0,formatter:function(e){return e.data[2]},position:"right",minMargin:2},markLine:{symbol:["none","none"],silent:!0,label:{show:!0,position:"start",color:"#000000"},lineStyle:{type:"solid",color:"#333"},data:[{xAxis:S[0][0]},{xAxis:S[1][0]},{xAxis:S[2][0]},{yAxis:S[0][1]},{yAxis:S[1][1]},{yAxis:S[2][1]},[{coord:D,lineStyle:{color:"#333",type:"dashed"}},{coord:J}],[{coord:U,lineStyle:{color:"#333",type:"dashed"}},{coord:J}]]}},{type:"line",data:[[x[2],s[2]],[x[1],s[1]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[x[1],s[1]],[V[0],V[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[x[2],s[2]],[x[0],s[0]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[x[0],s[0]],[F[0],F[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[x[2],s[2]],J],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"}]}},chart90:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.jxhslSnShScfc&&null!=chartExtJson.jxhslSnShScfc)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,curYData]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1),yDataArr[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(yValIsAllNull=!0);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"dotted"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart110:(e,l,t,a,n)=>{let o=JSON.parse(e.chartLinesJson),y=e.chartTitle,r=e.chartXName,x=e.chartYName;const s=a[0];let i=[];s.forEach((e,l)=>{"/"==e?i.push(e):i.push(Number(e))});let u=t[0],m=[];i.forEach((e,l)=>{"/"!=e&&null!=e&&null!=e&&m.push([e,u[l]])});let c=!1;return 0==m.length&&(c=!0),{grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){let l="";for(let t=0;t<i.length;t++)if(i[t]==e){l=s[t],"/"==l&&(l="");break}return l}}},yAxis:[{type:"value",name:x,nameGap:c?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:o[0].lineColor},itemStyle:{color:o[0].lineColor},data:m}]}},chart130:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=.01,i=200,u=[];r.forEach((e,l)=>{u.push(["筛底"==e?0:e,x[l]])});let m=!1;0==r.length&&(m=!0);let c=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||c++}),c==r.length&&(m=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),m&&(s=null,i=null),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:s,max:i},yAxis:[{type:"value",name:y,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:u}]}},chart150:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=!1;0==r.length&&(i=!0);let u=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==r.length&&(i=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:y,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:r.map(e=>({xAxis:e}))}}]}},chart170:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=!1;0==r.length&&(i=!0);let u=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==r.length&&(i=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:y,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:r.map(e=>({xAxis:e}))}}]}},chart190:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,o=e.chartYName,y=l[0],r=t[0];y=y.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code)),r=r.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code));let x=!1;0==y.length&&(x=!0);let s=0;return y.forEach(e=>{null!=e&&null!=e&&"/"!=e||s++}),s==y.length&&(x=!0,y=[]),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(x=!1),{grid:{top:10,left:x?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:y,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:o,nameGap:x?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:r}]}},chart210:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l[0],o=t[0],y=e.chartTitle,r=e.chartXName,x=e.chartYName;const s=[];for(let e=n.length-1;e>=0;e--){const l=n[e];null==l||null==l||"/"==l||null!=l._error&&null!=l._error||s.push([l,o[e]])}let i=!1;0==n.length&&(i=!0);let u=0;n.forEach(e=>{(null==e||null==e||"/"==e||null!=e._error&&null!=e._error)&&u++}),u==n.length&&(i=!0),o.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1);return{grid:{top:25,left:!i&&s.length>0?30:25,right:10,bottom:40,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:x,nameGap:!i&&s.length>0?30:5,nameRotate:90,nameLocation:"middle",axisLabel:{fontSize:10}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value,fontSize:10},lineStyle:{color:"#ddd",type:"solid"},data:(()=>{let e=[];[0,.02,.04,.06,.08,.1].forEach(l=>{n.forEach(t=>{let a={xAxis:""};"/"==t?(a.xAxis="",e.push(a)):(a.xAxis=l,e.push(a))})});let l=e.filter((e,l,t)=>l===t.findIndex(l=>l.xAxis==e.xAxis));return u==n.length?[]:l})()}}]}},chart230:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l.length,o=[],y=[],r=[],x=[],s=[],i=[];o=EChartsUtilsComm.filterNullEmptyErrArray(l[0]),x=EChartsUtilsComm.filterNullEmptyErrArray(t[0]),2==n&&(y=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1])),3==n&&(y=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1]),r=EChartsUtilsComm.filterNullEmptyErrArray(l[2]),i=EChartsUtilsComm.filterNullEmptyErrArray(t[2]));let u=[],m=[],c=[];o.forEach((e,l)=>{if("object"==typeof e)u.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)u.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);u.push(t)}}),y.forEach((e,l)=>{if("object"==typeof e)m.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)m.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);m.push(t)}}),r.forEach((e,l)=>{if("object"==typeof e)c.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)c.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);c.push(t)}}),o.length>0&&(u.push(u[u.length-1]+20),u.unshift(u[0]-20),x.push(null),x.unshift(null)),2==n&&y.length>0&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null)),3==n&&0==r.length&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null),c.push(c[c.length-1]+20),c.unshift(c[0]-20),i.push(null),i.unshift(null));let h=e.chartTitle,p=e.chartXName,f=e.chartYName;const d=(e,l)=>({type:"category",data:l,axisTick:{alignWithLabel:!0},show:1==e,splitLine:{show:!0}});let g=[d(1,u)];2==n&&g.push(d(2,m)),3==n&&(g.push(d(2,m)),g.push(d(3,c)));const b=(e,l)=>{const t=1==e?"第一组":2==e?"第二组":"第三组",n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e&&a.length>=1?a[0].lineColor:2==e&&a.length>=2?a[1].lineColor:3==e&&a.length>=3?a[2].lineColor:"#000";return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:6,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l}};let C=[b(1,x)];2==n&&s.length>0&&C.push(b(2,s)),3==n&&(s.length>0&&C.push(b(2,s)),i.length>0&&C.push(b(3,i)));let S=1==n?["第一组"]:2==n?["第一组","第二组"]:["第一组","第二组","第三组"],w=1==n?{"第一组":!0}:2==n?{"第一组":!0,"第二组":!0}:{"第一组":!0,"第二组":!0,"第三组":!0},V=!1,F=!1,E=0;return 0==o.length?(F=!0,E=15,S=["第二组","第三组"],w={"第一组":!1,"第二组":!0,"第三组":!0},g=[],C=[],g.push(d(1,m)),g.push(d(3,c)),C.push(b(2,s)),C.push(b(3,i)),0==y.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,c)),C.push(b(3,i)),0==r.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==y.length?(E=15,F=!0,S=["第一组","第三组"],w={"第一组":!0,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),g.push(d(3,c)),C.push(b(1,x)),C.push(b(3,i)),0==o.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),C.push(b(3,x)),0==r.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==r.length&&(E=15,F=!0,S=["第一组","第二组"],w={"第一组":!0,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,u)),g.push(d(2,m)),C.push(b(1,x)),C.push(b(2,s)),0==o.length&&(E=35,S=["第二组"],w={"第一组":!1,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,m)),C.push(b(2,s)),0==y.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(2,[]))))),{grid:{top:F?E:-5,left:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:h,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:p,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",top:16,data:S,selected:w,selectedMode:"multiple"},xAxis:g,yAxis:[{type:"value",name:f,nameGap:V?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:C}},chart250:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=.001,u=100,m=!1;0==r.length&&(m=!0);let c=0;return r.forEach(e=>{null!=e&&null!=e&&"/"!=e||c++}),c==r.length&&(m=!0,i=null,u=null),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:i,max:u},yAxis:[{type:"value",name:y,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s}]}},chart270:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=[],x=[],s=[],i=[],u=[],m=[];l[0].forEach((e,l)=>{0!=e&&0!=t[0][l]&&(r.push(e),i.push(t[0][l]))}),l[1].forEach((e,l)=>{0!=e&&0!=t[1][l]&&(x.push(e),u.push(t[1][l]))}),l[2].forEach((e,l)=>{0!=e&&0!=t[2][l]&&(s.push(e),m.push(t[2][l]))});const c=(e,l,t)=>{const n=`曲线${e}`,o=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],r=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor,x=[];return l.forEach((e,l)=>{x.push([e,t[l]])}),{name:n,type:"line",smooth:!0,symbol:o,symbolSize:5,lineStyle:{color:r,type:y},itemStyle:{color:r},data:x}};let h=!1;return r.every(e=>"/"==e)&&x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0),{grid:{top:35,left:h?25:30,right:20,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,r,i),c(2,x,u),c(3,s,m)]}},chart279_280_281:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=279==e.chartType?5:280==e.chartType?.1:.15,x=l[0],s=t[0],i=Math.min(...x),u=Number(EChartsUtilsComm.getRound(Math.min(...s)-r,.001)),m=Number(EChartsUtilsComm.getRound(Math.max(...s)+r,.001));i=Number(EChartsUtilsComm.getRound(i-.01*i,.001));let c=[];x.forEach((e,l)=>{c.push([e,s[l]])});let h=!1;return s.every(e=>"/"==e)&&(h=!0),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",min:i,max:100},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0},min:u,max:m}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:c}]}},chart290:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=l[0],x=l[0],s=l[0],i=t[0],u=t[1],m=t[2];const c=(e,l)=>{const t=`曲线${e}`,n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l}};let h=!1;return r.every(e=>"/"==e)&&x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0,r=[]),{grid:{top:35,left:h?25:30,right:10,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end",axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,i),c(2,u),c(3,m)]}},chart310:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=l[0],x=t[0],s=[],i=[];r.forEach((e,l)=>{null==e||null==e||"/"==e||null!=e._code&&null!=e._code||(s.push(e),i.push(x[l]))}),r=s,x=i;let u=!1;return r.every(e=>"/"==e||null!=e._code&&null!=e._code)&&x.every(e=>"/"==e||null!=e._code&&null!=e._code)&&(u=!0,r=[]),{grid:{top:35,left:u?25:30,right:20,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisLabel:{formatter:function(e){return"/"==e?"":e}},axisTick:{alignWithLabel:!0},axisLine:{symbol:["none","arrow"],symbolSize:10},splitLine:{show:!0},position:"top",name:"p",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:y,nameGap:u?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0,symbol:["arrow","none"],symbolSize:10}},{name:"L",nameRotate:0,nameLocation:"end",nameGap:5,position:"left",inverse:!0}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:x}]}},chart330:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartXName,r=e.chartYName,x=l[0],s=t[0];const i=EChartsUtilsComm.calcTrend(x,s,x[0]);let u=EChartsUtilsComm.getRound((.15-i.jj)/i.xl,0),m=EChartsUtilsComm.getRound((.19-i.jj)/i.xl,0),c=EChartsUtilsComm.getRound((.25-i.jj)/i.xl,0),h=EChartsUtilsComm.getRound((.31-i.jj)/i.xl,0);u==1/0&&(u=0),m==1/0&&(m=0),c==1/0&&(c=0),h==1/0&&(h=0);let p=`${u}~${m}`,f=`${c}~${h}`;null!=o&&(0==u&&0==m?a.setValue(o.bszdjBh.row,o.bszdjBh.col,"/"):a.setValue(o.bszdjBh.row,o.bszdjBh.col,p),0==c&&0==h?a.setValue(o.bszdjYs.row,o.bszdjYs.col,"/"):a.setValue(o.bszdjYs.row,o.bszdjYs.col,f));let d=!1;return x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&(d=!0,x=[]),{grid:{top:10,left:d?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:r,nameGap:d?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:s}]}},chart350:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson)[0].lineColor;const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson),y=[l[0][0],l[0][1]],r=[t[0][0],t[0][1]],x=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,y[0]).y,.1)),s=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,y[1]).y,.1)),i=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,25).y,.1)),u=Math.floor(Number(s))-2,m=Math.floor(Number(x))+2;let c=e.chartTitle,h=e.chartXName,p=e.chartYName,f=!0;f=0==l[0].filter(e=>null!=e&&null!=e&&"/"!=e).length,f&&(f=0==t[0].filter(e=>null!=e&&null!=e&&"/"!=e).length);let d=[{name:"图例1",type:"line",symbol:"circle",z:10,lineStyle:{color:n},itemStyle:{color:n},connectNulls:!0,data:[[0,null],[2,null],[3.5,null],[4.9,null],[5.9,null],[6.9,null],{value:[10.4,i-2.7*(i-x)/2.1],symbol:"none"},[11,x],[11.8,null],[13.1,i],[14.6,s],{value:[15.2,2.1/1.5*(s-i)+i],symbol:"none"},[16.4,null],[17.4,null],[18.9,null],[19.8,null],[20.7,null],[21.6,null],[22.6,null]],markPoint:{data:[{xAxis:13.1,yAxis:i,symbolOffset:[40,25],label:{show:!0,color:"#000",formatter:function(e){return f?"":"(25 , "+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:[{name:"5",xAxis:0,label:{fontSize:8}},{name:"6",xAxis:2,label:{fontSize:8}},{name:"7",xAxis:3.5,label:{fontSize:8}},{name:"8",xAxis:4.9,label:{fontSize:8}},{name:"9",xAxis:5.9,label:{fontSize:8}},{name:"10",xAxis:6.9,label:{fontSize:8}},{name:"",xAxis:10.4,lineStyle:{opacity:0}},{name:"",xAxis:11},{name:"20",xAxis:11.8,label:{fontSize:8}},{name:"25",xAxis:13.1,label:{fontSize:8}},{name:"30",xAxis:14.6,label:{fontSize:8}},{name:"",xAxis:15.2,lineStyle:{opacity:0}},{name:"40",xAxis:16.4,label:{fontSize:8}},{name:"50",xAxis:17.4,label:{fontSize:8}},{name:"",xAxis:18.9},{name:"",xAxis:19.8},{name:"",xAxis:20.7},{name:"",xAxis:21.6},{name:"100",xAxis:22.6,label:{fontSize:8}},[{coord:[0,i],lineStyle:{color:"#529b2e",type:"solid"}},{coord:[13.1,i]}],[{coord:[13.1,u],lineStyle:{color:"#000",type:"silid"}},{coord:[13.1,i]}]]}}];if(f&&(d=[]),null!=o&&null!=o&&null!=o.yxdsyHsl&&null!=o.yxdsyHsl){let e=.1,l=0;null!=o.yxdsyHslJd&&null!=o.yxdsyHslJd&&(e=o.yxdsyHslJd),l=EChartsUtilsComm.getRound(i,e),a.setValue(o.yxdsyHsl.row,o.yxdsyHsl.col,l)}return{grid:{top:25,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e[0].data.length>1?null==e[0].data[1]?"":e[0].seriesName+"("+e[0].data[0]+"):"+e[0].data[1]:e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:0,max:23.5},yAxis:[{type:"value",name:p,nameGap:f?10:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},splitNumber:4,min:f?null:u,max:m,axisLabel:{show:!f,fontSize:8},axisTick:{show:!f}}],series:d}},chart370:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=null!=o?o.dxsJs:5;const r=n[0].lineColor,x=EChartsUtilsComm.filterValues([l[0],t[0]]);for(var s=x[0],i=x[1],u=0,m=0,c=0,h=0,p=0,f=0;f<s.length;f++){var d=s[f],g=i[f],b=d*d,C=b*d;u+=C*d,m+=C,c+=b,h+=b*g,p+=d*g}var S=u*c-m*m,w=(h*c-p*m)/S,V=(u*p-m*h)/S,F=V*V+4*w*50,E=(-V+Math.sqrt(F))/(y*w);(E<0||E>Math.max(...s)+Math.min(...s))&&(E=(-V-Math.sqrt(F))/(y*w));var N=[],A=[],v=Math.max(...s)+Math.min(...s);for(d=0;d<=v;d+=.01)N.push(d),A.push(w*d*d+V*d);let D=!1;if(0==A.length)D=!0;else{let e=0;A.forEach(l=>{null!=l&&null!=l&&"/"!=l&&""!=l||e++}),e==A.length&&(D=!0)}const U=N.map((e,l)=>[e,A[l]]);let J=.01,k=0;return null!=o&&(D?a.setValue(o.jsDzvi.row,o.jsDzvi.col,"/"):(null!=o.jsDzviJd&&null!=o.jsDzviJd&&(J=o.jsDzviJd),k=EChartsUtilsComm.getRound(E,J),a.setValue(o.jsDzvi.row,o.jsDzvi.col,k))),{title:[{show:!0,text:"V₂₀(mm/s)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:10,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,max:v,axisLine:{show:!0}},yAxis:{type:"value",name:"Δh (mm)",nameGap:D?5:30,nameRotate:90,nameLocation:"middle",min:0,max:Math.max(...i)+10,interval:10,axisLine:{show:!0}},series:[{name:"趋势线",type:"line",data:U,symbol:"none",lineStyle:{color:r,type:"solid"},smooth:!0},{name:"y=50 标注点",type:"scatter",data:[[E,50]],symbolSize:10,itemStyle:{color:r},label:{show:!0,position:"right",formatter:"("+E.toFixed(2)+", 50)",color:"#333",fontSize:12},markLine:{symbol:"none",lineStyle:{color:"#333",type:"dashed",width:1},data:[[{coord:[0,50]},{coord:[E,50]}],[{coord:[E,50]},{coord:[E,0]}]]}}]}},chart390:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=[],x=[];a.forEach((e,a)=>{l[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&t[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&(r.push(e.legend),x.push({name:e.legend,type:"line",data:l[0].filter(e=>0!=e&&null!=e&&null!=e&&"/"!=e).map((e,l)=>[e,t[a][l]]),symbol:0==a?"triangle":1==a?"circle":"rect",lineStyle:{color:e.lineColor,type:2==a?"solid":"dotted"},smooth:!0}))});return{title:[{show:!0,text:n,left:"100px",top:5,textStyle:{fontSize:12,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{top:"2px",right:"5px",data:r,selectedMode:"multiple"},grid:{top:25,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,axisLine:{show:!0}},yAxis:{type:"value",name:y,nameGap:30,nameRotate:90,nameLocation:"middle",min:0,interval:10,axisLine:{show:!0}},series:x}},chart410:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.yhmhlBzHgx&&null!=chartExtJson.yhmhlBzHgx)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,yDataSource[index]]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"solid"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart430:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];let m=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(m=!0);let c="/",h="/",p="/",f=[];const d=Math.max(...i);if(!m){const e=function(e,l,t){const a=e.length;let n=[];for(let o=0;o<a;o++){let a=[];for(let l=0;l<=t;l++)a.push(Math.pow(e[o],l));n.push([l[o]])}let o=[];for(let l=0;l<=t;l++){o[l]=[];for(let n=0;n<=t;n++){let t=0;for(let o=0;o<a;o++)t+=Math.pow(e[o],l+n);o[l][n]=t}}let y=[];for(let n=0;n<=t;n++){let t=0;for(let o=0;o<a;o++)t+=Math.pow(e[o],n)*l[o];y[n]=t}let r=[];for(let e=0;e<=t;e++){r[e]=[];for(let l=0;l<=t;l++)r[e][l]=o[e][l];r[e][t+1]=y[e]}for(let e=0;e<=t;e++){let l=e;for(let a=e+1;a<=t;a++)Math.abs(r[a][e])>Math.abs(r[l][e])&&(l=a);[r[e],r[l]]=[r[l],r[e]];const a=r[e][e];for(let l=e;l<=t+1;l++)r[e][l]/=a;for(let l=e+1;l<=t;l++){const a=r[l][e];for(let n=e;n<=t+1;n++)r[l][n]-=a*r[e][n]}}const x=new Array(t+1);for(let e=t;e>=0;e--){x[e]=r[e][t+1];for(let l=e+1;l<=t;l++)x[e]-=r[e][l]*x[l]}return x}(i,u,2);c=e[2].toFixed(4),h=e[1].toFixed(4),p=e[0].toFixed(4);const l=Math.min(...i),t=(d-l)/100;for(let e=l;e<=d;e+=t){const l=parseFloat(c)*e*e+parseFloat(h)*e+parseFloat(p);f.push([e,l])}}return null!=o&&(null!=o.dwylHtbxGs&&null!=o.dwylHtbxGs&&a.setValue(o.dwylHtbxGs.row,o.dwylHtbxGs.col,"NaN"!=c&&"NaN"!=h&&"NaN"!=p?`Y=${c}X²+${h}X+${p}`:"/"),null!=o.dwylHtbxA&&null!=o.dwylHtbxA&&a.setValue(o.dwylHtbxA.row,o.dwylHtbxA.col,"NaN"!=c?c:"/"),null!=o.dwylHtbxB&&null!=o.dwylHtbxB&&a.setValue(o.dwylHtbxB.row,o.dwylHtbxB.col,"NaN"!=h?h:"/"),null!=o.dwylHtbxC&&null!=o.dwylHtbxC&&a.setValue(o.dwylHtbxC.row,o.dwylHtbxC.col,"NaN"!=p?p:"/")),{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",nameLocation:"end",nameTextStyle:{fontSize:14,padding:[10,0,0,0]},min:0,max:d+.05},yAxis:{type:"value",name:x,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",interval:20,min:0,max:Math.max(...u)+10,axisLine:{lineStyle:{color:"#333"}}},tooltip:{trigger:"axis",formatter:function(e){return e.length>1?`单位压力: ${e[0].value[0]} MPa<br/>回弹变形: ${e[0].value[1]} (1/1000mm)`:`趋势线<br/>单位压力: ${e[0].value[0]} MPa<br/>预测回弹变形: ${e[0].value[1].toFixed(2)} (1/1000mm)`}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:5,itemStyle:{color:s}},{name:"多项式趋势线",type:"line",data:f,symbol:"none",lineStyle:{color:s,width:1,type:"dashed"},smooth:.3,tooltip:{trigger:"item"}}]}},chart450:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=a[0].lineColor;const x=l[0],s=t[0];const i=function(e,l){const t=e.length;let a=0,n=0,o=0,y=0;for(let r=0;r<t;r++)a+=e[r],n+=l[r],o+=e[r]*l[r],y+=e[r]*e[r];const r=(t*o-a*n)/(t*y-a*a);return{slope:r,intercept:(n-r*a)/t}}(x,s);Math.min(...x);const u=Math.max(...x)+50,m=[];for(let e=0;e<=u;e+=10){const l=i.slope*e+i.intercept;m.push([e,l])}let c=!1;0!=x.length&&0!=s.length&&(x.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),x.filter(e=>0==e).length!=x.length&&s.filter(e=>0==e).length!=s.length||(c=!0);return{title:[{show:!0,text:n,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e){let l="";return e.forEach(e=>{"实际数据"===e.seriesName?l+=`法向应力: ${e.value[0]} kPA<br/>剪应力: ${e.value[1]} kPA`:"趋势线"===e.seriesName&&(l+=`趋势线<br/>法向应力: ${e.value[0]} kPA<br/>预测剪应力: ${e.value[1].toFixed(2)} kPA`)}),l}},xAxis:{name:o,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12,fontWeight:"bold"},type:"value",min:0,max:450,interval:50,axisLine:{lineStyle:{color:"#333"}}},yAxis:{name:y,nameGap:c?5:35,nameRotate:90,nameLocation:"middle",type:"value",min:0,interval:50,axisLine:{lineStyle:{color:"#333"}}},series:[{name:"实际数据",type:"scatter",data:c?[]:x.map((e,l)=>[e,s[l]]),symbolSize:5,itemStyle:{color:r}},{name:"趋势线",type:"line",data:c?[]:m,symbol:"none",lineStyle:{color:r,width:1,type:"solid"}}]}},chart470:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];function m(e,l,t){for(let a=0;a<t.length-1;a++)if(t[a]>=e&&t[a+1]<=e||t[a]<=e&&t[a+1]>=e){const n=l[a],o=l[a+1],y=t[a];return n+(o-n)*(e-y)/(t[a+1]-y)}return null}const c=m(5,i,u),h=m(10,i,u);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0),null!=o&&(null!=o.tghcclYxkj5&&null!=o.tghcclYxkj5&&a.setValue(o.tghcclYxkj5.row,o.tghcclYxkj5.col,c?EChartsUtilsComm.getRound(c,.001):"/"),null!=o.tghcclYxkj10&&null!=o.tghcclYxkj10&&a.setValue(o.tghcclYxkj10.row,o.tghcclYxkj10.col,h?EChartsUtilsComm.getRound(h,.001):"/"));return{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],tooltip:{trigger:"axis",formatter:function(e){return`标准颗粒直径: ${e[0].value[0].toFixed(3)} mm<br>过筛率: ${e[0].value[1].toFixed(2)} %`}},grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{name:r,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12},type:"log",axisLine:{lineStyle:{color:"#333"}},min:.01,max:1,axisLabel:{formatter:function(e){return e.toFixed(2)}},splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}},minorTick:{show:!0},minorSplitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}}},yAxis:{type:"value",name:x,nameLocation:"middle",nameGap:25,nameTextStyle:{fontSize:12},axisLine:{lineStyle:{color:"#333"}},min:0,max:25,splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1}}},series:p?[]:[{name:"孔径分布",type:"line",data:i.map((e,l)=>[e,u[l]]),smooth:!0,lineStyle:{width:2,type:"solid"},showSymbol:!0,symbol:"circle",symbolSize:8,itemStyle:{color:s,borderColor:"#fff",borderWidth:1},markPoint:{symbol:"circle",symbolSize:1,data:[{name:"y=5",coord:[c,5],value:5,itemStyle:{color:"red"},label:{show:!0,formatter:`(${c.toFixed(3)},5)`,position:"right",fontSize:12}},{name:"y=10",coord:[h,10],value:10,itemStyle:{color:"red"},label:{show:!0,formatter:`(${h.toFixed(3)},10)`,position:"right",fontSize:12}}]},markLine:{symbol:"none",data:[[{coord:[.01,5],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[c,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[.01,10],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[h,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}]]}}]}},chart490:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];const m=u.map(e=>Math.log10(e)),c=function(e,l){const t=e.length,a=e.reduce((e,l)=>e+l,0)/t,n=l.reduce((e,l)=>e+l,0)/t;let o=0,y=0;for(let r=0;r<t;r++)o+=(e[r]-a)*(l[r]-n),y+=(e[r]-a)*(e[r]-a);const r=o/y;return{slope:r,intercept:n-r*a}}(i,m),h=function(e,l,t,a){const n=e.length,o=l.reduce((e,l)=>e+l,0)/n;let y=0,r=0;for(let x=0;x<n;x++){y+=Math.pow(l[x]-o,2);const n=t*e[x]+a;r+=Math.pow(l[x]-n,2)}return 1-r/y}(i,m,c.slope,c.intercept);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0);const f=(p?[]:[30,70,100,150,200]).map(e=>({yAxis:e,label:{show:!0,formatter:"{c}"},lineStyle:{color:"#e0e0e0",width:1,type:"solid"}}));null!=o&&(null!=o.wdzrdXlA&&null!=o.wdzrdXlA&&a.setValue(o.wdzrdXlA.row,o.wdzrdXlA.col,c.slope?EChartsUtilsComm.getRound(c.slope,1e-4):"/"),null!=o.wdzrdCsB&&null!=o.wdzrdCsB&&a.setValue(o.wdzrdCsB.row,o.wdzrdCsB.col,c.intercept?EChartsUtilsComm.getRound(c.intercept,1e-4):"/"),null!=o.wdzrdXsR&&null!=o.wdzrdXsR&&a.setValue(o.wdzrdXsR.row,o.wdzrdXsR.col,h?EChartsUtilsComm.getRound(h,1e-4):"/"));return{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:p?20:40,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",name:r,min:Math.min(...i)},yAxis:{type:"log",name:x,nameLocation:"middle",nameGap:p?5:25,logBase:10,min:function(e){return Math.max(1,Math.pow(10,Math.floor(Math.log10(e.min))))},max:function(e){const l=e.max;if(l<=0)return 100;const t=Math.log10(l),a=Math.floor(t),n=t-a;let o;return o=n<.3?a+.3:n<.7?a+1:a+1.5,Math.pow(10,o)},splitLine:{show:!1},axisLabel:{show:!1},zlevel:1,minorSplitLine:{show:!1}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:6,zlevel:4,itemStyle:{color:s}},{name:"趋势线",type:"line",data:(()=>{const e=Math.min(...i),l=Math.max(...i),t=[];for(let a=e;a<=l;a+=.5){const e=c.slope*a+c.intercept,l=Math.pow(10,e);t.push([a,l])}return t})(),showSymbol:!1,lineStyle:{color:s,width:1},zlevel:5},{name:"自定义网格线",type:"line",data:[],markLine:{symbol:"none",lineStyle:{color:"#e0e0e0",width:1,type:"solid"},label:{show:!0,position:"start",formatter:"{c}"},data:f},silent:!0}]}},chart510:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson),o=e.chartTitle,y=e.chartXName,r=n[0].lineColor,x=n[1].lineColor;const s=l[0],i=t[0],u=t[1];let m=!1,c=!1;0!=s.length&&0!=i.length&&(s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),s.filter(e=>0==e).length!=s.length&&i.filter(e=>0==e).length!=i.length||(m=!0),0!=s.length&&0!=u.length&&(s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),s.filter(e=>0==e).length!=s.length&&u.filter(e=>0==e).length!=u.length||(c=!0);return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1},grid:{top:25,left:25,right:25,bottom:m&&c?25:20,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",data:s,splitLine:{show:!0}},yAxis:[{type:"value",name:"磨耗值(g/㎡)",nameLocation:"middle",nameGap:m?5:35,max:Math.max(...i)+100,splitLine:{show:!0},axisLine:{show:!0},axisLabel:{formatter:"{value}"},axisTick:{show:!0}},{type:"value",name:"粘附砂量(g/㎡)",nameLocation:"middle",nameGap:c?5:35,max:Math.max(...u)+100,splitLine:{show:!1},axisLine:{show:!0},axisLabel:{formatter:"{value}"},axisTick:{show:!0}}],series:[{name:"磨耗值",type:"line",smooth:!0,data:m?[]:i.filter(e=>0!=e),yAxisIndex:0,symbol:"circle",symbolSize:5,lineStyle:{color:r},itemStyle:{color:r}},{name:"粘附砂量",type:"line",smooth:!0,data:c?[]:u.filter(e=>0!=e),yAxisIndex:1,symbol:"circle",symbolSize:5,lineStyle:{color:x},itemStyle:{color:x}}]}}},EChartsUtils={create:(e,l,t,a,...n)=>__awaiter(void 0,[e,l,t,a,...n],void 0,function*(e,l,t,a,n=!1,o=!1){a.chartIdStr&&a.chartIdStr.length>0&&(a.chartId=a.chartIdStr);const y=null==a.chartExtJson||null==a.chartExtJson?null:JSON.parse(a.chartExtJson);if(null!=y&&null!=y.isShowCon&&null!=y.isShowCon){if(t.getValue(y.isShowCon.row,y.isShowCon.col)!=y.isShowVal)return void t.floatingObjects.remove(a.chartId)}let r=0,x=0,s=0,i=0;for(let e=0;e<a.row;e++)r+=t.getRowHeight(e);r+=t.getRowHeight(0,e.Spread.Sheets.SheetArea.colHeader);for(let e=a.col;e<a.col+a.colCount;e++)x+=t.getColumnWidth(e);for(let e=0;e<a.col;e++)s+=t.getColumnWidth(e);s+=t.getColumnWidth(0,e.Spread.Sheets.SheetArea.rowHeader);for(let e=a.row;e<a.row+a.rowCount;e++)i+=t.getRowHeight(e);const u={x:s-40+2,y:r-20+2,w:x-6,h:i-6};let m=t.floatingObjects.get(a.chartId);if(null==m||null==m?(m=new e.Spread.Sheets.FloatingObjects.FloatingObject(a.chartId,u.x,u.y,u.w,u.h),m.allowResize(!1),m.allowMove(!1),t.floatingObjects.add(m)):(m.x(u.x),m.y(u.y),m.width(u.w),m.height(u.h)),null==document.getElementById(a.chartId+"_ec")){const e=document.createElement("div");e.setAttribute("style","background-color:#fff;width:100%;height:100%;"),e.innerHTML=`<div id="${a.chartId}_ec" style="width:100%;height:100%;"></div>`,m.content(e)}let c=null;return c=(yield new Promise((e,y)=>{setTimeout(()=>{e({ecObj:EChartsUtils.initChart(l,t,a,n,o)})},10)})).ecObj,{fObj:m,fObjPosition:u,ecObj:c}}),initChart:(e,l,t,a=!1,n=!1)=>{if(null==document.getElementById(t.chartId+"_ec"))return null;let o=[],y=[],r=[],x=[];const s=(e,l,t,a)=>{let n={dataOneArr:[],dataOneSourceArr:[]},o=null;return null!=t&&null!=t&&t.length>0&&(o=e.getSheetFromName(t)),null==a||a.forEach((e,t)=>{const a=null!=o?o.getValue(e.row,e.col):l.getValue(e.row,e.col);n.dataOneSourceArr.push(a),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(a)?n.dataOneArr.push(Number(a)):n.dataOneArr.push(null==a||null!=a&&null!=a&&null!=a._error&&null!=a._error?0:a)}),n};JSON.parse(t.chartLinesJson).forEach((t,a)=>{let n=[],i=[],u=[],m=[];const c=s(e,l,t.sheetNameX,t.xCells);n=c.dataOneArr,u=c.dataOneSourceArr;const h=s(e,l,t.sheetNameY,t.yCells);i=h.dataOneArr,m=h.dataOneSourceArr,o.push(n),y.push(i),r.push(u),x.push(m)});const i=document.getElementById(t.chartId+"_ec");let u,m=echarts.getInstanceByDom(i);return null!=m&&null!=m||(m=echarts.init(i,null,{renderer:"canvas",useDirtyRect:!1})),10==t.chartType?u=EChartsUtilsAll.chart10(t,o,y,l):11==t.chartType?u=EChartsUtilsAll.chart11(t,o,y,l):12==t.chartType?u=EChartsUtilsAll.chart12(t,o,y,l):13==t.chartType?u=EChartsUtilsAll.chart13(t,o,y,l):14==t.chartType?u=EChartsUtilsAll.chart14(t,o,y,l):15==t.chartType?u=EChartsUtilsAll.chart15(t,o,y,l):16==t.chartType?u=EChartsUtilsAll.chart16(t,o,y,l):30==t.chartType?u=EChartsUtilsAll.chart30(t,o,y,l):50==t.chartType?u=EChartsUtilsAll.chart50(t,o,y):70==t.chartType?u=EChartsUtilsAll.chart70(t,o,y,l):90==t.chartType?u=EChartsUtilsAll.chart90(t,o,y,l):110==t.chartType?u=EChartsUtilsAll.chart110(t,o,y,r,x):130==t.chartType?u=EChartsUtilsAll.chart130(t,o,y):150==t.chartType?u=EChartsUtilsAll.chart150(t,o,y):170==t.chartType?u=EChartsUtilsAll.chart170(t,o,y):190==t.chartType?u=EChartsUtilsAll.chart190(t,o,y):210==t.chartType?u=EChartsUtilsAll.chart210(t,o,y):230==t.chartType?u=EChartsUtilsAll.chart230(t,o,y):250==t.chartType?u=EChartsUtilsAll.chart250(t,o,y):270==t.chartType?u=EChartsUtilsAll.chart270(t,o,y):279==t.chartType||280==t.chartType||281==t.chartType?u=EChartsUtilsAll.chart279_280_281(t,o,y):290==t.chartType?u=EChartsUtilsAll.chart290(t,o,y):310==t.chartType?u=EChartsUtilsAll.chart310(t,o,y):330==t.chartType?u=EChartsUtilsAll.chart330(t,o,y,l):350==t.chartType?u=EChartsUtilsAll.chart350(t,o,y,l):370==t.chartType?u=EChartsUtilsAll.chart370(t,o,y,l):390==t.chartType?u=EChartsUtilsAll.chart390(t,o,y):410==t.chartType?u=EChartsUtilsAll.chart410(t,o,y,l):430==t.chartType?u=EChartsUtilsAll.chart430(t,o,y,l):450==t.chartType?u=EChartsUtilsAll.chart450(t,o,y):470==t.chartType?u=EChartsUtilsAll.chart470(t,o,y,l):490==t.chartType?u=EChartsUtilsAll.chart490(t,o,y,l):510==t.chartType&&(u=EChartsUtilsAll.chart510(t,o,y,l)),u&&"object"==typeof u&&(a&&(u.animation=!1),m.setOption(u)),m.setOption(u),m},getEChartsObj:e=>{const l=document.getElementById(e+"_ec");let t=echarts.getInstanceByDom(l);return null==t||null==t?null:t}},FormulaUtilsOther={YJHTQD:(e,l,t,a)=>{var n;if("非泵送混凝土"==l){for(var o="",y=a,r=t,x=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<x.length;s++){if(y==x[s]){o=s;break}if(1*y>"6"){o=x.length-1;break}}var i=[{x:20,y:10.3},{x:20.2,y:10.5},{x:20.4,y:10.7},{x:20.6,y:11},{x:20.8,y:11.2},{x:21,y:11.4},{x:21.2,y:11.6},{x:21.4,y:11.8},{x:21.6,y:12},{x:21.8,y:12.3},{x:22,y:12.5},{x:22.2,y:12.7},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.4},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.4},{x:24.6,y:15.6},{x:24.8,y:15.9},{x:25,y:16.2},{x:25.2,y:16.4},{x:25.4,y:16.7},{x:25.6,y:16.9},{x:25.8,y:17.2},{x:26,y:17.5},{x:26.2,y:17.8},{x:26.4,y:18},{x:26.6,y:18.3},{x:26.8,y:18.6},{x:27,y:18.9},{x:27.2,y:19.1},{x:27.4,y:19.4},{x:27.6,y:19.7},{x:27.8,y:20},{x:28,y:20.3},{x:28.2,y:20.6},{x:28.4,y:20.9},{x:28.6,y:21.2},{x:28.8,y:21.5},{x:29,y:21.8},{x:29.2,y:22.1},{x:29.4,y:22.4},{x:29.6,y:22.7},{x:29.8,y:23},{x:30,y:23.3},{x:30.2,y:23.6},{x:30.4,y:23.9},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.6},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.9},{x:32.4,y:27.2},{x:32.6,y:27.6},{x:32.8,y:27.9},{x:33,y:28.2},{x:33.2,y:28.6},{x:33.4,y:28.9},{x:33.6,y:29.3},{x:33.8,y:29.6},{x:34,y:30},{x:34.2,y:30.3},{x:34.4,y:30.7},{x:34.6,y:31.1},{x:34.8,y:31.4},{x:35,y:31.8},{x:35.2,y:32.1},{x:35.4,y:32.5},{x:35.6,y:32.9},{x:35.8,y:33.3},{x:36,y:33.6},{x:36.2,y:34},{x:36.4,y:34.4},{x:36.6,y:34.8},{x:36.8,y:35.2},{x:37,y:35.5},{x:37.2,y:35.9},{x:37.4,y:36.3},{x:37.6,y:36.7},{x:37.8,y:37.1},{x:38,y:37.5},{x:38.2,y:37.9},{x:38.4,y:38.3},{x:38.6,y:38.7},{x:38.8,y:39.1},{x:39,y:39.5},{x:39.2,y:39.9},{x:39.4,y:40.3},{x:39.6,y:40.7},{x:39.8,y:41.2},{x:40,y:41.6},{x:40.2,y:42},{x:40.4,y:42.4},{x:40.6,y:42.8},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.9},{x:42.2,y:46.3},{x:42.4,y:46.7},{x:42.6,y:47.2},{x:42.8,y:47.6},{x:43,y:48.1},{x:43.2,y:48.5},{x:43.4,y:49},{x:43.6,y:49.4},{x:43.8,y:49.9},{x:44,y:50.4},{x:44.2,y:50.8},{x:44.4,y:51.3},{x:44.6,y:51.7},{x:44.8,y:52.2},{x:45,y:52.7},{x:45.2,y:53.2},{x:45.4,y:53.6},{x:45.6,y:54.1},{x:45.8,y:54.6},{x:46,y:55},{x:46.2,y:55.5},{x:46.4,y:56},{x:46.6,y:56.5},{x:46.8,y:57},{x:47,y:57.5},{x:47.2,y:58},{x:47.4,y:58.5},{x:47.6,y:59},{x:47.8,y:59.5},{x:48,y:60}],u=[{x:20,y:10.1},{x:20.2,y:10.3},{x:20.4,y:10.5},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.4},{x:21.4,y:11.6},{x:21.6,y:11.8},{x:21.8,y:12.1},{x:22,y:12.2},{x:22.2,y:12.4},{x:22.4,y:12.7},{x:22.6,y:12.9},{x:22.8,y:13.1},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.8},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15.1},{x:24.6,y:15.3},{x:24.8,y:15.6},{x:25,y:15.9},{x:25.2,y:16.1},{x:25.4,y:16.4},{x:25.6,y:16.6},{x:25.8,y:16.9},{x:26,y:17.2},{x:26.2,y:17.4},{x:26.4,y:17.6},{x:26.6,y:17.9},{x:26.8,y:18.2},{x:27,y:18.5},{x:27.2,y:18.7},{x:27.4,y:19},{x:27.6,y:19.3},{x:27.8,y:19.6},{x:28,y:19.7},{x:28.2,y:20},{x:28.4,y:20.3},{x:28.6,y:20.6},{x:28.8,y:20.9},{x:29,y:21.1},{x:29.2,y:21.4},{x:29.4,y:21.7},{x:29.6,y:22},{x:29.8,y:22.3},{x:30,y:22.6},{x:30.2,y:22.9},{x:30.4,y:23.2},{x:30.6,y:23.6},{x:30.8,y:23.9},{x:31,y:24.2},{x:31.2,y:24.4},{x:31.4,y:24.8},{x:31.6,y:25.1},{x:31.8,y:25.4},{x:32,y:25.7},{x:32.2,y:26.1},{x:32.4,y:26.4},{x:32.6,y:26.8},{x:32.8,y:27.1},{x:33,y:27.4},{x:33.2,y:27.7},{x:33.4,y:28},{x:33.6,y:28.4},{x:33.8,y:28.7},{x:34,y:29.1},{x:34.2,y:29.4},{x:34.4,y:29.8},{x:34.6,y:30.2},{x:34.8,y:30.5},{x:35,y:30.8},{x:35.2,y:31.1},{x:35.4,y:31.5},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.4},{x:36.6,y:33.8},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.2},{x:37.6,y:35.6},{x:37.8,y:36},{x:38,y:36.4},{x:38.2,y:36.8},{x:38.4,y:37.2},{x:38.6,y:37.5},{x:38.8,y:37.9},{x:39,y:38.2},{x:39.2,y:38.5},{x:39.4,y:38.8},{x:39.6,y:39.1},{x:39.8,y:39.6},{x:40,y:39.9},{x:40.2,y:40.3},{x:40.4,y:40.7},{x:40.6,y:41.1},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.3},{x:41.4,y:42.7},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44.1},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.3},{x:42.8,y:45.7},{x:43,y:46.2},{x:43.2,y:46.6},{x:43.4,y:47},{x:43.6,y:47.4},{x:43.8,y:47.9},{x:44,y:48.4},{x:44.2,y:48.8},{x:44.4,y:49.2},{x:44.6,y:49.6},{x:44.8,y:50.1},{x:45,y:50.6},{x:45.2,y:51.1},{x:45.4,y:51.5},{x:45.6,y:51.9},{x:45.8,y:52.4},{x:46,y:52.8},{x:46.2,y:53.3},{x:46.4,y:53.8},{x:46.6,y:54.2},{x:46.8,y:54.7},{x:47,y:55.2},{x:47.2,y:55.7},{x:47.4,y:56.2},{x:47.6,y:56.6},{x:47.8,y:57.1},{x:48,y:57.6},{x:48.2,y:58},{x:48.4,y:58.6},{x:48.6,y:59},{x:48.8,y:59.5},{x:49,y:60}],m=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.7},{x:22,y:11.9},{x:22.2,y:12.1},{x:22.4,y:12.4},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:13},{x:23.2,y:13.2},{x:23.4,y:13.4},{x:23.6,y:13.7},{x:23.8,y:13.9},{x:24,y:14.2},{x:24.2,y:14.3},{x:24.4,y:14.6},{x:24.6,y:14.8},{x:24.8,y:15.1},{x:25,y:15.4},{x:25.2,y:15.6},{x:25.4,y:15.9},{x:25.6,y:16.1},{x:25.8,y:16.3},{x:26,y:16.6},{x:26.2,y:16.9},{x:26.4,y:17.1},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:18},{x:27.2,y:18.1},{x:27.4,y:18.4},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.2},{x:28.2,y:19.5},{x:28.4,y:19.7},{x:28.6,y:20},{x:28.8,y:20},{x:29,y:20.5},{x:29.2,y:20.8},{x:29.4,y:21.1},{x:29.6,y:21.3},{x:29.8,y:21.6},{x:30,y:21.9},{x:30.2,y:22.2},{x:30.4,y:22.5},{x:30.6,y:22.8},{x:30.8,y:23.1},{x:31,y:23.4},{x:31.2,y:23.7},{x:31.4,y:24.1},{x:31.6,y:24.3},{x:31.8,y:24.6},{x:32,y:24.9},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28},{x:34.2,y:28.3},{x:34.4,y:28.6},{x:34.6,y:28.9},{x:34.8,y:29.2},{x:35,y:29.6},{x:35.2,y:29.9},{x:35.4,y:30.2},{x:35.6,y:30.6},{x:35.8,y:31},{x:36,y:31.2},{x:36.2,y:31.6},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.9},{x:38.2,y:35.2},{x:38.4,y:35.6},{x:38.6,y:36},{x:38.8,y:36.4},{x:39,y:36.7},{x:39.2,y:37},{x:39.4,y:37.3},{x:39.6,y:37.6},{x:39.8,y:38},{x:40,y:38.3},{x:40.2,y:38.6},{x:40.4,y:39},{x:40.6,y:39.4},{x:40.8,y:39.8},{x:41,y:40.2},{x:41.2,y:40.6},{x:41.4,y:40.9},{x:41.6,y:41.4},{x:41.8,y:41.8},{x:42,y:42.2},{x:42.2,y:42.6},{x:42.4,y:43},{x:42.6,y:43.4},{x:42.8,y:43.8},{x:43,y:44.2},{x:43.2,y:44.6},{x:43.4,y:45.1},{x:43.6,y:45.4},{x:43.8,y:45.9},{x:44,y:46.4},{x:44.2,y:46.7},{x:44.4,y:47.2},{x:44.6,y:47.6},{x:44.8,y:48},{x:45,y:48.5},{x:45.2,y:48.9},{x:45.4,y:49.4},{x:45.6,y:49.8},{x:45.8,y:50.2},{x:46,y:50.6},{x:46.2,y:51.1},{x:46.4,y:51.5},{x:46.6,y:52},{x:46.8,y:52.4},{x:47,y:52.9},{x:47.2,y:53.4},{x:47.4,y:53.8},{x:47.6,y:54.3},{x:47.8,y:54.7},{x:48,y:55.2},{x:48.2,y:55.7},{x:48.4,y:56.1},{x:48.6,y:56.6},{x:48.8,y:57.1},{x:49,y:57.5},{x:49.2,y:58},{x:49.4,y:58.5},{x:49.6,y:58.9},{x:49.8,y:59.4},{x:50,y:59.9},{x:50.2,y:60}],c=[{x:20.6,y:10.1},{x:20.8,y:10.3},{x:21,y:10.5},{x:21.2,y:10.7},{x:21.4,y:10.9},{x:21.6,y:11},{x:21.8,y:11.3},{x:22,y:11.5},{x:22.2,y:11.7},{x:22.4,y:12},{x:22.6,y:12.1},{x:22.8,y:12.3},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13},{x:23.6,y:13.2},{x:23.8,y:13.4},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.4},{x:25.6,y:15.7},{x:25.8,y:15.8},{x:26,y:16.1},{x:26.2,y:16.4},{x:26.4,y:16.6},{x:26.6,y:16.8},{x:26.8,y:17.1},{x:27,y:17.4},{x:27.2,y:17.6},{x:27.4,y:17.8},{x:27.6,y:18},{x:27.8,y:18.2},{x:28,y:18.4},{x:28.2,y:18.6},{x:28.4,y:18.8},{x:28.6,y:19.1},{x:28.8,y:19.4},{x:29,y:19.6},{x:29.2,y:19.9},{x:29.4,y:20.2},{x:29.6,y:20.4},{x:29.8,y:20.7},{x:30,y:21},{x:30.2,y:21.2},{x:30.4,y:21.5},{x:30.6,y:21.9},{x:30.8,y:22.1},{x:31,y:22.4},{x:31.2,y:22.7},{x:31.4,y:23},{x:31.6,y:23.3},{x:31.8,y:23.6},{x:32,y:23.9},{x:32.2,y:24.2},{x:32.4,y:24.5},{x:32.6,y:24.8},{x:32.8,y:25.1},{x:33,y:25.4},{x:33.2,y:25.7},{x:33.4,y:26},{x:33.6,y:26.4},{x:33.8,y:26.6},{x:34,y:26.8},{x:34.2,y:27},{x:34.4,y:27.2},{x:34.6,y:27.4},{x:34.8,y:27.6},{x:35,y:28},{x:35.2,y:28.2},{x:35.4,y:28.6},{x:35.6,y:29},{x:35.8,y:29.3},{x:36,y:29.6},{x:36.2,y:29.9},{x:36.4,y:30.3},{x:36.6,y:30.6},{x:36.8,y:31},{x:37,y:31.2},{x:37.2,y:31.6},{x:37.4,y:31.9},{x:37.6,y:32.3},{x:37.8,y:32.6},{x:38,y:33},{x:38.2,y:33.4},{x:38.4,y:33.7},{x:38.6,y:34.1},{x:38.8,y:34.4},{x:39,y:34.7},{x:39.2,y:35},{x:39.4,y:35.3},{x:39.6,y:35.6},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.5},{x:40.4,y:36.9},{x:40.6,y:37.2},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.2},{x:41.8,y:39.5},{x:42,y:39.9},{x:42.2,y:40.3},{x:42.4,y:40.6},{x:42.6,y:41.1},{x:42.8,y:41.4},{x:43,y:41.8},{x:43.2,y:42.2},{x:43.4,y:42.6},{x:43.6,y:43},{x:43.8,y:43.4},{x:44,y:43.8},{x:44.2,y:44.2},{x:44.4,y:44.6},{x:44.6,y:45},{x:44.8,y:45.4},{x:45,y:45.8},{x:45.2,y:46.3},{x:45.4,y:46.6},{x:45.6,y:47.1},{x:45.8,y:47.5},{x:46,y:47.9},{x:46.2,y:48.3},{x:46.4,y:48.7},{x:46.6,y:49.2},{x:46.8,y:49.6},{x:47,y:50},{x:47.2,y:50.5},{x:47.4,y:50.9},{x:47.6,y:51.3},{x:47.8,y:51.8},{x:48,y:52.2},{x:48.2,y:52.6},{x:48.4,y:53.1},{x:48.6,y:53.5},{x:48.8,y:54},{x:49,y:54.4},{x:49.2,y:54.8},{x:49.4,y:55.3},{x:49.6,y:55.7},{x:49.8,y:56.2},{x:50,y:56.7},{x:50.2,y:57.1},{x:50.4,y:57.6},{x:50.6,y:58},{x:50.8,y:58.5},{x:51,y:59},{x:51.2,y:59.4},{x:51.4,y:59.9},{x:51.6,y:60}],h=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.4},{x:21.6,y:10.6},{x:21.8,y:10.8},{x:22,y:11},{x:22.2,y:11.2},{x:22.4,y:11.4},{x:22.6,y:11.6},{x:22.8,y:11.8},{x:23,y:12.1},{x:23.2,y:12.2},{x:23.4,y:12.4},{x:23.6,y:12.7},{x:23.8,y:12.8},{x:24,y:13.1},{x:24.2,y:13.3},{x:24.4,y:13.6},{x:24.6,y:13.7},{x:24.8,y:14},{x:25,y:14.3},{x:25.2,y:14.4},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.1},{x:26,y:15.4},{x:26.2,y:15.7},{x:26.4,y:15.8},{x:26.6,y:16.1},{x:26.8,y:16.4},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17},{x:27.6,y:17.2},{x:27.8,y:17.4},{x:28,y:17.6},{x:28.2,y:17.8},{x:28.4,y:18},{x:28.6,y:18.2},{x:28.8,y:18.5},{x:29,y:18.7},{x:29.2,y:19},{x:29.4,y:19.3},{x:29.6,y:19.5},{x:29.8,y:19.8},{x:30,y:20},{x:30.2,y:20.3},{x:30.4,y:20.6},{x:30.6,y:20.9},{x:30.8,y:21.2},{x:31,y:21.4},{x:31.2,y:21.7},{x:31.4,y:22},{x:31.6,y:22.3},{x:31.8,y:22.5},{x:32,y:22.8},{x:32.2,y:23.1},{x:32.4,y:23.4},{x:32.6,y:23.7},{x:32.8,y:24},{x:33,y:24.3},{x:33.2,y:24.6},{x:33.4,y:24.9},{x:33.6,y:25.2},{x:33.8,y:25.4},{x:34,y:25.6},{x:34.2,y:25.8},{x:34.4,y:26},{x:34.6,y:26.2},{x:34.8,y:26.4},{x:35,y:26.7},{x:35.2,y:27},{x:35.4,y:27.3},{x:35.6,y:27.6},{x:35.8,y:28},{x:36,y:28.2},{x:36.2,y:28.6},{x:36.4,y:28.9},{x:36.6,y:29.2},{x:36.8,y:29.6},{x:37,y:29.8},{x:37.2,y:30.2},{x:37.4,y:30.5},{x:37.6,y:30.8},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.1},{x:38.6,y:32.4},{x:38.8,y:32.7},{x:39,y:33},{x:39.2,y:33.3},{x:39.4,y:33.6},{x:39.6,y:33.9},{x:39.8,y:34.2},{x:40,y:34.5},{x:40.2,y:34.8},{x:40.4,y:35.1},{x:40.6,y:35.4},{x:40.8,y:35.7},{x:41,y:36},{x:41.2,y:36.3},{x:41.4,y:36.6},{x:41.6,y:36.9},{x:41.8,y:37.2},{x:42,y:37.6},{x:42.2,y:38},{x:42.4,y:38.3},{x:42.6,y:38.7},{x:42.8,y:39},{x:43,y:39.4},{x:43.2,y:39.8},{x:43.4,y:40.2},{x:43.6,y:40.5},{x:43.8,y:40.9},{x:44,y:41.3},{x:44.2,y:41.7},{x:44.4,y:42.1},{x:44.6,y:42.4},{x:44.8,y:42.8},{x:45,y:43.2},{x:45.2,y:43.6},{x:45.4,y:44},{x:45.6,y:44.4},{x:45.8,y:44.8},{x:46,y:45.2},{x:46.2,y:45.5},{x:46.4,y:45.9},{x:46.6,y:46.3},{x:46.8,y:46.7},{x:47,y:47.2},{x:47.2,y:47.6},{x:47.4,y:48},{x:47.6,y:48.4},{x:47.8,y:48.8},{x:48,y:49.2},{x:48.2,y:49.6},{x:48.4,y:50},{x:48.6,y:50.4},{x:48.8,y:50.9},{x:49,y:51.3},{x:49.2,y:51.7},{x:49.4,y:52.1},{x:49.6,y:52.5},{x:49.8,y:53},{x:50,y:53.4},{x:50.2,y:53.8},{x:50.4,y:54.3},{x:50.6,y:54.7},{x:50.8,y:55.1},{x:51,y:55.6},{x:51.2,y:56},{x:51.4,y:56.4},{x:51.6,y:56.9},{x:51.8,y:57.3},{x:52,y:57.8},{x:52.2,y:58.2},{x:52.4,y:58.7},{x:52.8,y:59.6},{x:53,y:60}],p=[{x:21.4,y:10},{x:21.6,y:10.2},{x:21.8,y:10.5},{x:22,y:10.6},{x:22.2,y:10.8},{x:22.4,y:11},{x:22.6,y:11.2},{x:22.8,y:11.4},{x:23,y:11.6},{x:23.2,y:11.8},{x:23.4,y:12},{x:23.6,y:12.2},{x:23.8,y:12.4},{x:24,y:12.7},{x:24.2,y:12.8},{x:24.4,y:13.1},{x:24.6,y:13.3},{x:24.8,y:13.5},{x:25,y:13.8},{x:25.2,y:13.9},{x:25.4,y:14.2},{x:25.6,y:14.4},{x:25.8,y:14.6},{x:26,y:14.9},{x:26.2,y:15.1},{x:26.4,y:15.3},{x:26.6,y:15.6},{x:26.8,y:15.8},{x:27,y:16.1},{x:27.2,y:16.2},{x:27.4,y:16.4},{x:27.6,y:16.6},{x:27.8,y:16.8},{x:28,y:17},{x:28.2,y:17.2},{x:28.4,y:17.4},{x:28.6,y:17.6},{x:28.8,y:17.8},{x:29,y:18.1},{x:29.2,y:18.3},{x:29.4,y:18.6},{x:29.6,y:18.8},{x:29.8,y:19.1},{x:30,y:19.3},{x:30.2,y:19.6},{x:30.4,y:19.8},{x:30.6,y:20.2},{x:30.8,y:20.4},{x:31,y:20.7},{x:31.2,y:20.9},{x:31.4,y:21.2},{x:31.6,y:21.5},{x:31.8,y:21.7},{x:32,y:22},{x:32.2,y:22.3},{x:32.4,y:22.6},{x:32.6,y:22.9},{x:32.8,y:23.2},{x:33,y:23.4},{x:33.2,y:23.7},{x:33.4,y:24},{x:33.6,y:24.2},{x:33.8,y:24.4},{x:34,y:24.6},{x:34.2,y:24.8},{x:34.4,y:25},{x:34.6,y:25.2},{x:34.8,y:25.4},{x:35,y:25.8},{x:35.2,y:26},{x:35.4,y:26.3},{x:35.6,y:26.6},{x:35.8,y:27},{x:36,y:27.2},{x:36.2,y:27.5},{x:36.4,y:27.9},{x:36.6,y:28.2},{x:36.8,y:28.5},{x:37,y:28.8},{x:37.2,y:29.1},{x:37.4,y:29.4},{x:37.6,y:29.7},{x:37.8,y:30},{x:38,y:30.3},{x:38.2,y:30.6},{x:38.4,y:30.9},{x:38.6,y:31.2},{x:38.8,y:31.5},{x:39,y:31.8},{x:39.2,y:32.1},{x:39.4,y:32.4},{x:39.6,y:32.7},{x:39.8,y:33},{x:40,y:33.3},{x:40.2,y:33.6},{x:40.4,y:33.9},{x:40.6,y:34.2},{x:40.8,y:34.5},{x:41,y:34.8},{x:41.2,y:35.1},{x:41.4,y:35.4},{x:41.6,y:35.7},{x:41.8,y:36},{x:42,y:36.3},{x:42.2,y:36.6},{x:42.4,y:36.9},{x:42.6,y:37.3},{x:42.8,y:37.6},{x:43,y:38},{x:43.2,y:38.3},{x:43.4,y:38.7},{x:43.6,y:39},{x:43.8,y:39.4},{x:44,y:39.8},{x:44.2,y:40.1},{x:44.4,y:40.5},{x:44.6,y:40.8},{x:44.8,y:41.2},{x:45,y:41.6},{x:45.2,y:42},{x:45.4,y:42.3},{x:45.6,y:42.7},{x:45.8,y:43.1},{x:46,y:43.5},{x:46.2,y:43.8},{x:46.4,y:44.2},{x:46.6,y:44.6},{x:46.8,y:45},{x:47,y:45.2},{x:47.2,y:45.8},{x:47.4,y:46.2},{x:47.6,y:46.6},{x:47.8,y:47},{x:48,y:47.4},{x:48.2,y:47.8},{x:48.4,y:48.2},{x:48.6,y:48.6},{x:48.8,y:49},{x:49,y:49.4},{x:49.2,y:49.8},{x:49.4,y:50.2},{x:49.6,y:50.6},{x:49.8,y:51},{x:50,y:51.4},{x:50.2,y:51.9},{x:50.4,y:52.3},{x:50.6,y:52.7},{x:50.8,y:53.1},{x:51,y:53.5},{x:51.2,y:54},{x:51.4,y:54.4},{x:51.6,y:54.8},{x:51.8,y:55.2},{x:52,y:55.7},{x:52.2,y:56.1},{x:52.4,y:56.5},{x:52.8,y:57.4},{x:53,y:57.8},{x:53.2,y:58.3},{x:53.4,y:58.7},{x:53.6,y:59.2},{x:53.8,y:59.6},{x:54,y:60}],f=[{x:21.8,y:10.1},{x:22,y:10.2},{x:22.2,y:10.4},{x:22.4,y:10.7},{x:22.6,y:10.8},{x:22.8,y:11},{x:23,y:11.2},{x:23.2,y:11.4},{x:23.4,y:11.6},{x:23.6,y:11.8},{x:23.8,y:12},{x:24,y:12.2},{x:24.2,y:12.4},{x:24.4,y:12.6},{x:24.6,y:12.8},{x:24.8,y:13},{x:25,y:13.3},{x:25.2,y:13.4},{x:25.4,y:13.7},{x:25.6,y:13.9},{x:25.8,y:14.1},{x:26,y:14.4},{x:26.2,y:14.6},{x:26.4,y:14.8},{x:26.6,y:15},{x:26.8,y:15.3},{x:27,y:15.5},{x:27.2,y:15.7},{x:27.4,y:15.9},{x:27.6,y:16.1},{x:27.8,y:16.3},{x:28,y:16.5},{x:28.2,y:16.7},{x:28.4,y:16.9},{x:28.6,y:17.1},{x:28.8,y:17.3},{x:29,y:17.5},{x:29.2,y:17.7},{x:29.4,y:17.9},{x:29.6,y:18.2},{x:29.8,y:18.4},{x:30,y:18.6},{x:30.2,y:18.9},{x:30.4,y:19.1},{x:30.6,y:19.4},{x:30.8,y:19.7},{x:31,y:19.9},{x:31.2,y:20.2},{x:31.4,y:20.5},{x:31.6,y:20.7},{x:31.8,y:21},{x:32,y:21.2},{x:32.2,y:21.5},{x:32.4,y:21.8},{x:32.6,y:22.1},{x:32.8,y:22.3},{x:33,y:22.6},{x:33.2,y:22.9},{x:33.4,y:23.1},{x:33.6,y:23.3},{x:33.8,y:23.5},{x:34,y:23.7},{x:34.2,y:23.9},{x:34.4,y:24.1},{x:34.6,y:24.3},{x:34.8,y:24.5},{x:35,y:24.8},{x:35.2,y:25},{x:35.4,y:25.4},{x:35.6,y:25.7},{x:35.8,y:26},{x:36,y:26.2},{x:36.2,y:26.5},{x:36.4,y:26.8},{x:36.6,y:27.1},{x:36.8,y:27.5},{x:37,y:27.7},{x:37.2,y:28},{x:37.4,y:28.3},{x:37.6,y:28.6},{x:37.8,y:28.9},{x:38,y:29.2},{x:38.2,y:29.5},{x:38.4,y:29.8},{x:38.6,y:30.1},{x:38.8,y:30.4},{x:39,y:30.6},{x:39.2,y:30.8},{x:39.4,y:31},{x:39.6,y:31.2},{x:39.8,y:31.4},{x:40,y:31.7},{x:40.2,y:32},{x:40.4,y:32.3},{x:40.6,y:32.6},{x:40.8,y:32.9},{x:41,y:33.2},{x:41.2,y:33.5},{x:41.4,y:33.8},{x:41.6,y:34.2},{x:41.8,y:34.5},{x:42,y:34.9},{x:42.2,y:35.2},{x:42.4,y:35.5},{x:42.6,y:35.9},{x:42.8,y:36.2},{x:43,y:36.6},{x:43.2,y:36.9},{x:43.4,y:37.2},{x:43.6,y:37.5},{x:43.8,y:37.9},{x:44,y:38.3},{x:44.2,y:38.6},{x:44.4,y:39},{x:44.6,y:39.3},{x:44.8,y:39.7},{x:45,y:40.1},{x:45.2,y:40.4},{x:45.4,y:40.7},{x:45.6,y:41.1},{x:45.8,y:41.5},{x:46,y:41.9},{x:46.2,y:42.2},{x:46.4,y:42.6},{x:46.6,y:42.9},{x:46.8,y:43.3},{x:47,y:43.7},{x:47.2,y:44.1},{x:47.4,y:44.5},{x:47.6,y:44.8},{x:47.8,y:45.2},{x:48,y:45.6},{x:48.2,y:46},{x:48.4,y:46.4},{x:48.6,y:46.7},{x:48.8,y:47.1},{x:49,y:47.5},{x:49.2,y:47.9},{x:49.4,y:48.3},{x:49.6,y:48.7},{x:49.8,y:49.1},{x:50,y:49.5},{x:50.2,y:49.9},{x:50.4,y:50.3},{x:50.6,y:50.7},{x:50.8,y:51.1},{x:51,y:51.5},{x:51.2,y:51.9},{x:51.4,y:52.3},{x:51.6,y:52.7},{x:51.8,y:53.1},{x:52,y:53.6},{x:52.2,y:54},{x:52.4,y:54.4},{x:52.8,y:55.2},{x:53,y:55.6},{x:53.2,y:56.1},{x:53.4,y:56.5},{x:53.6,y:56.9},{x:53.8,y:57.3},{x:54,y:57.8},{x:54.2,y:58.2},{x:54.4,y:58.6},{x:54.6,y:59.1},{x:54.8,y:59.5},{x:55,y:59.9},{x:55.2,y:60}],d=[{x:22.2,y:10},{x:22.4,y:10.3},{x:22.6,y:10.4},{x:22.8,y:10.6},{x:23,y:10.8},{x:23.2,y:11},{x:23.4,y:11.2},{x:23.6,y:11.4},{x:23.8,y:11.5},{x:24,y:11.8},{x:24.2,y:11.9},{x:24.4,y:12.2},{x:24.6,y:12.3},{x:24.8,y:12.6},{x:25,y:12.8},{x:25.2,y:13},{x:25.4,y:13.2},{x:25.6,y:13.4},{x:25.8,y:13.6},{x:26,y:13.8},{x:26.2,y:14},{x:26.4,y:14.2},{x:26.6,y:14.4},{x:26.8,y:14.6},{x:27,y:14.8},{x:27.2,y:15},{x:27.4,y:15.2},{x:27.6,y:15.4},{x:27.8,y:15.6},{x:28,y:15.8},{x:28.2,y:16},{x:28.4,y:16.2},{x:28.6,y:16.4},{x:28.8,y:16.6},{x:29,y:16.8},{x:29.2,y:17},{x:29.4,y:17.2},{x:29.6,y:17.5},{x:29.8,y:17.7},{x:30,y:17.9},{x:30.2,y:18.2},{x:30.4,y:18.4},{x:30.6,y:18.7},{x:30.8,y:18.9},{x:31,y:19.2},{x:31.2,y:19.4},{x:31.4,y:19.7},{x:31.6,y:19.9},{x:31.8,y:20.2},{x:32,y:20.4},{x:32.2,y:20.7},{x:32.4,y:20.9},{x:32.6,y:21.3},{x:32.8,y:21.5},{x:33,y:21.7},{x:33.2,y:22},{x:33.4,y:22.3},{x:33.6,y:22.6},{x:33.8,y:22.8},{x:34,y:23},{x:34.2,y:23.2},{x:34.4,y:23.4},{x:34.6,y:23.6},{x:34.8,y:23.8},{x:35,y:24},{x:35.2,y:24.2},{x:35.4,y:24.4},{x:35.6,y:24.7},{x:35.8,y:25},{x:36,y:25.2},{x:36.2,y:25.5},{x:36.4,y:25.8},{x:36.6,y:26.1},{x:36.8,y:26.4},{x:37,y:26.6},{x:37.2,y:26.9},{x:37.4,y:27.2},{x:37.6,y:27.5},{x:37.8,y:27.8},{x:38,y:28.1},{x:38.2,y:28.4},{x:38.4,y:28.7},{x:38.6,y:29},{x:38.8,y:29.3},{x:39,y:29.6},{x:39.2,y:29.8},{x:39.4,y:30},{x:39.6,y:30.2},{x:39.8,y:30.5},{x:40,y:30.8},{x:40.2,y:31.1},{x:40.4,y:31.4},{x:40.6,y:31.7},{x:40.8,y:32},{x:41,y:32.3},{x:41.2,y:32.6},{x:41.4,y:32.9},{x:41.6,y:33.3},{x:41.8,y:33.6},{x:42,y:34},{x:42.2,y:34.3},{x:42.4,y:34.6},{x:42.6,y:34.9},{x:42.8,y:35.2},{x:43,y:35.6},{x:43.2,y:35.9},{x:43.4,y:36.3},{x:43.6,y:36.6},{x:43.8,y:36.9},{x:44,y:37.3},{x:44.2,y:37.6},{x:44.4,y:38},{x:44.6,y:38.3},{x:44.8,y:38.6},{x:45,y:39},{x:45.2,y:39.4},{x:45.4,y:39.7},{x:45.6,y:40},{x:45.8,y:40.4},{x:46,y:40.8},{x:46.2,y:41.1},{x:46.4,y:41.4},{x:46.6,y:41.8},{x:46.8,y:42.2},{x:47,y:42.6},{x:47.2,y:42.9},{x:47.4,y:43.3},{x:47.6,y:43.7},{x:47.8,y:44},{x:48,y:44.4},{x:48.2,y:44.8},{x:48.4,y:45.1},{x:48.6,y:45.5},{x:48.8,y:45.9},{x:49,y:46.2},{x:49.2,y:46.6},{x:49.4,y:47},{x:49.6,y:47.4},{x:49.8,y:47.8},{x:50,y:48.2},{x:50.2,y:48.5},{x:50.4,y:49},{x:50.6,y:49.4},{x:50.8,y:49.8},{x:51,y:50.1},{x:51.2,y:50.5},{x:51.4,y:50.9},{x:51.6,y:51.3},{x:51.8,y:51.7},{x:52,y:52.1},{x:52.2,y:52.5},{x:52.4,y:53},{x:52.8,y:53.8},{x:53,y:54.2},{x:53.2,y:54.6},{x:53.4,y:55},{x:53.6,y:55.4},{x:53.8,y:55.8},{x:54,y:56.3},{x:54.2,y:56.7},{x:54.4,y:57.1},{x:54.6,y:57.5},{x:54.8,y:57.9},{x:55,y:58.4},{x:55.2,y:58.8},{x:55.4,y:59.2},{x:55.6,y:59.7},{x:55.8,y:60}],g=[{x:22.4,y:10},{x:22.6,y:10.2},{x:22.8,y:10.3},{x:23,y:10.5},{x:23.2,y:10.7},{x:23.4,y:10.9},{x:23.6,y:11.1},{x:23.8,y:11.2},{x:24,y:11.5},{x:24.2,y:11.6},{x:24.4,y:11.9},{x:24.6,y:12},{x:24.8,y:12.2},{x:25,y:12.5},{x:25.2,y:12.6},{x:25.4,y:12.9},{x:25.6,y:13},{x:25.8,y:13.2},{x:26,y:13.5},{x:26.2,y:13.7},{x:26.4,y:13.9},{x:26.6,y:14.1},{x:26.8,y:14.3},{x:27,y:14.6},{x:27.2,y:14.7},{x:27.4,y:14.9},{x:27.6,y:15.1},{x:27.8,y:15.3},{x:28,y:15.4},{x:28.2,y:15.6},{x:28.4,y:15.8},{x:28.6,y:16},{x:28.8,y:16.2},{x:29,y:16.4},{x:29.2,y:16.6},{x:29.4,y:16.8},{x:29.6,y:17},{x:29.8,y:17.2},{x:30,y:17.4},{x:30.2,y:17.6},{x:30.4,y:17.8},{x:30.6,y:18},{x:30.8,y:18.2},{x:31,y:18.4},{x:31.2,y:18.6},{x:31.4,y:18.9},{x:31.6,y:19.2},{x:31.8,y:19.4},{x:32,y:19.6},{x:32.2,y:19.9},{x:32.4,y:20.1},{x:32.6,y:20.4},{x:32.8,y:20.6},{x:33,y:20.9},{x:33.2,y:21.2},{x:33.4,y:21.4},{x:33.6,y:21.7},{x:33.8,y:21.9},{x:34,y:22.1},{x:34.2,y:22.3},{x:34.4,y:22.5},{x:34.6,y:22.7},{x:34.8,y:22.9},{x:35,y:23.2},{x:35.2,y:23.4},{x:35.4,y:23.7},{x:35.6,y:24},{x:35.8,y:24.3},{x:36,y:24.5},{x:36.2,y:24.8},{x:36.4,y:25.1},{x:36.6,y:25.4},{x:36.8,y:25.7},{x:37,y:25.9},{x:37.2,y:26.2},{x:37.4,y:26.6},{x:37.6,y:26.8},{x:37.8,y:27.1},{x:38,y:27.4},{x:38.2,y:27.7},{x:38.4,y:28},{x:38.6,y:28.3},{x:38.8,y:28.5},{x:39,y:28.8},{x:39.2,y:29},{x:39.4,y:29.2},{x:39.6,y:29.4},{x:39.8,y:29.7},{x:40,y:30},{x:40.2,y:30.2},{x:40.4,y:30.5},{x:40.6,y:30.8},{x:40.8,y:31.2},{x:41,y:31.5},{x:41.2,y:31.8},{x:41.4,y:32},{x:41.6,y:32.4},{x:41.8,y:32.7},{x:42,y:33},{x:42.2,y:33.3},{x:42.4,y:33.6},{x:42.6,y:34},{x:42.8,y:34.3},{x:43,y:34.6},{x:43.2,y:34.9},{x:43.4,y:35.3},{x:43.6,y:35.6},{x:43.8,y:35.9},{x:44,y:36.3},{x:44.2,y:36.6},{x:44.4,y:36.9},{x:44.6,y:37.2},{x:44.8,y:37.6},{x:45,y:37.9},{x:45.2,y:38.3},{x:45.4,y:38.6},{x:45.6,y:39},{x:45.8,y:39.3},{x:46,y:39.7},{x:46.2,y:40},{x:46.4,y:40.3},{x:46.6,y:40.7},{x:46.8,y:41},{x:47,y:41.4},{x:47.2,y:41.8},{x:47.4,y:42.1},{x:47.6,y:42.5},{x:47.8,y:42.8},{x:48,y:43.2},{x:48.2,y:43.6},{x:48.4,y:43.9},{x:48.6,y:44.3},{x:48.8,y:44.6},{x:49,y:45},{x:49.2,y:45.4},{x:49.4,y:45.8},{x:49.6,y:46.2},{x:49.8,y:46.5},{x:50,y:46.9},{x:50.2,y:47.2},{x:50.4,y:47.7},{x:50.6,y:48},{x:50.8,y:48.4},{x:51,y:48.8},{x:51.2,y:49.2},{x:51.4,y:49.6},{x:51.6,y:50},{x:51.8,y:50.3},{x:52,y:50.7},{x:52.2,y:51.1},{x:52.4,y:51.5},{x:52.8,y:52.3},{x:53,y:52.7},{x:53.2,y:53.1},{x:53.4,y:53.5},{x:53.6,y:53.9},{x:53.8,y:54.3},{x:54,y:54.7},{x:54.2,y:55.1},{x:54.4,y:55.6},{x:54.6,y:56},{x:54.8,y:56.4},{x:55,y:56.8},{x:55.2,y:57.2},{x:55.4,y:57.6},{x:55.6,y:58},{x:55.8,y:58.5},{x:56,y:58.9},{x:56.2,y:59.3},{x:56.4,y:59.7},{x:56.6,y:60}],b=[{x:23,y:10.1},{x:23.2,y:10.3},{x:23.4,y:10.4},{x:23.6,y:10.7},{x:23.8,y:10.8},{x:24,y:11},{x:24.2,y:11.2},{x:24.4,y:11.4},{x:24.6,y:11.5},{x:24.8,y:11.8},{x:25,y:12},{x:25.2,y:12.1},{x:25.4,y:12.4},{x:25.6,y:12.5},{x:25.8,y:12.7},{x:26,y:13},{x:26.2,y:13.2},{x:26.4,y:13.3},{x:26.6,y:13.5},{x:26.8,y:13.8},{x:27,y:14},{x:27.2,y:14.1},{x:27.4,y:14.3},{x:27.6,y:14.5},{x:27.8,y:14.7},{x:28,y:14.8},{x:28.2,y:15},{x:28.4,y:15.2},{x:28.6,y:15.4},{x:28.8,y:15.6},{x:29,y:15.8},{x:29.2,y:16},{x:29.4,y:16.2},{x:29.6,y:16.4},{x:29.8,y:16.6},{x:30,y:16.8},{x:30.2,y:17},{x:30.4,y:17.2},{x:30.6,y:17.5},{x:30.8,y:17.7},{x:31,y:17.9},{x:31.2,y:16.1},{x:31.4,y:18.4},{x:31.6,y:18.6},{x:31.8,y:18.9},{x:32,y:19.1},{x:32.2,y:19.4},{x:32.4,y:19.6},{x:32.6,y:19.9},{x:32.8,y:20.1},{x:33,y:20.3},{x:33.2,y:20.5},{x:33.4,y:20.7},{x:33.6,y:20.9},{x:33.8,y:21.1},{x:34,y:21.3},{x:34.2,y:21.5},{x:34.4,y:21.7},{x:34.6,y:21.9},{x:34.8,y:22.1},{x:35,y:22.3},{x:35.2,y:22.5},{x:35.4,y:22.8},{x:35.6,y:23},{x:35.8,y:23.3},{x:36,y:23.5},{x:36.2,y:23.8},{x:36.4,y:24.1},{x:36.6,y:24.4},{x:36.8,y:24.6},{x:37,y:24.8},{x:37.2,y:25.1},{x:37.4,y:25.4},{x:37.6,y:25.7},{x:37.8,y:26},{x:38,y:26.2},{x:38.2,y:26.5},{x:38.4,y:29.8},{x:38.6,y:27},{x:38.8,y:27.2},{x:39,y:27.4},{x:39.2,y:27.6},{x:39.4,y:27.8},{x:39.6,y:28},{x:39.8,y:28.2},{x:40,y:28.4},{x:40.2,y:28.6},{x:40.4,y:28.8},{x:40.6,y:29.1},{x:40.8,y:29.4},{x:41,y:29.7},{x:41.2,y:30},{x:41.4,y:30.3},{x:41.6,y:30.6},{x:41.8,y:30.9},{x:42,y:31.2},{x:42.2,y:31.5},{x:42.4,y:31.8},{x:42.6,y:32.1},{x:42.8,y:32.4},{x:43,y:32.7},{x:43.2,y:33},{x:43.4,y:33.3},{x:43.6,y:33.6},{x:43.8,y:33.9},{x:44,y:34.3},{x:44.2,y:34.5},{x:44.4,y:34.9},{x:44.6,y:35.2},{x:44.8,y:35.5},{x:45,y:35.8},{x:45.2,y:36.2},{x:45.4,y:36.4},{x:45.6,y:36.8},{x:45.8,y:37.1},{x:46,y:37.5},{x:46.2,y:37.7},{x:46.4,y:38.1},{x:46.6,y:38.4},{x:46.8,y:38.8},{x:47,y:39.1},{x:47.2,y:39.4},{x:47.4,y:39.8},{x:47.6,y:40.1},{x:47.8,y:40.5},{x:48,y:40.8},{x:48.2,y:41.1},{x:48.4,y:41.5},{x:48.6,y:41.8},{x:48.8,y:42.2},{x:49,y:42.5},{x:49.2,y:42.8},{x:49.4,y:43.2},{x:49.6,y:43.6},{x:49.8,y:43.9},{x:50,y:44.3},{x:50.2,y:44.6},{x:50.4,y:45},{x:50.6,y:45.4},{x:50.8,y:45.7},{x:51,y:46.1},{x:51.2,y:46.4},{x:51.4,y:46.8},{x:51.6,y:47.2},{x:51.8,y:47.5},{x:52,y:47.9},{x:52.2,y:48.3},{x:52.4,y:48.7},{x:52.8,y:49.4},{x:53,y:49.8},{x:53.2,y:50.2},{x:53.4,y:50.5},{x:53.6,y:50.9},{x:53.8,y:51.3},{x:54,y:51.7},{x:54.2,y:52.1},{x:54.4,y:52.5},{x:54.6,y:52.9},{x:54.8,y:53.2},{x:55,y:53.6},{x:55.2,y:54},{x:55.4,y:54.4},{x:55.6,y:54.8},{x:55.8,y:55.2},{x:56,y:55.6},{x:56.2,y:56},{x:56.4,y:56.4},{x:56.6,y:56.8},{x:56.8,y:57.2},{x:57,y:57.6},{x:57.2,y:58},{x:57.4,y:58.4},{x:57.6,y:58.9},{x:57.8,y:59.3},{x:58,y:59.7},{x:58.2,y:60}],C=[{x:23.2,y:10},{x:23.4,y:10.2},{x:23.6,y:10.4},{x:23.8,y:10.5},{x:24,y:10.7},{x:24.2,y:10.9},{x:24.4,y:11.1},{x:24.6,y:11.2},{x:24.8,y:11.4},{x:25,y:11.7},{x:25.2,y:11.8},{x:25.4,y:12},{x:25.6,y:12.2},{x:25.8,y:12.4},{x:26,y:12.6},{x:26.2,y:12.8},{x:26.4,y:13},{x:26.6,y:13.2},{x:26.8,y:13.4},{x:27,y:13.6},{x:27.2,y:13.8},{x:27.4,y:14},{x:27.6,y:14.1},{x:27.8,y:14.2},{x:28,y:14.4},{x:28.2,y:14.6},{x:28.4,y:14.8},{x:28.6,y:15},{x:28.8,y:15.2},{x:29,y:15.4},{x:29.2,y:15.6},{x:29.4,y:15.8},{x:29.6,y:16},{x:29.8,y:16.2},{x:30,y:16.4},{x:30.2,y:16.6},{x:30.4,y:16.8},{x:30.6,y:17},{x:30.8,y:17.2},{x:31,y:17.4},{x:31.2,y:17.6},{x:31.4,y:17.8},{x:31.6,y:18},{x:31.8,y:18.2},{x:32,y:18.4},{x:32.2,y:18.6},{x:32.4,y:18.8},{x:32.6,y:19},{x:32.8,y:19.2},{x:33,y:19.4},{x:33.2,y:19.6},{x:33.4,y:19.8},{x:33.6,y:20},{x:33.8,y:20.2},{x:34,y:20.4},{x:34.2,y:20.6},{x:34.4,y:20.8},{x:34.6,y:21},{x:34.8,y:21.2},{x:35,y:21.4},{x:35.2,y:21.6},{x:35.4,y:21.8},{x:35.6,y:22},{x:35.8,y:22.2},{x:36,y:22.4},{x:36.2,y:22.6},{x:36.4,y:22.8},{x:36.6,y:23},{x:36.8,y:23.2},{x:37,y:23.4},{x:37.2,y:23.7},{x:37.4,y:24},{x:37.6,y:24.2},{x:37.8,y:24.5},{x:38,y:24.8},{x:38.2,y:25},{x:38.4,y:25.2},{x:38.6,y:25.5},{x:38.8,y:25.8},{x:39,y:26},{x:39.2,y:26.2},{x:39.4,y:26.4},{x:39.6,y:26.6},{x:39.8,y:26.8},{x:40,y:27},{x:40.2,y:27.3},{x:40.4,y:27.6},{x:40.6,y:27.8},{x:40.8,y:28.1},{x:41,y:28.4},{x:41.2,y:28.7},{x:41.4,y:28.9},{x:41.6,y:29.2},{x:41.8,y:29.5},{x:42,y:29.8},{x:42.2,y:30.1},{x:42.4,y:30.4},{x:42.6,y:30.7},{x:42.8,y:30.9},{x:43,y:31.3},{x:43.2,y:31.5},{x:43.4,y:31.8},{x:43.6,y:32.1},{x:43.8,y:32.4},{x:44,y:32.8},{x:44.2,y:33},{x:44.4,y:33.3},{x:44.6,y:33.6},{x:44.8,y:33.9},{x:45,y:34.3},{x:45.2,y:34.6},{x:45.4,y:34.8},{x:45.6,y:35.2},{x:45.8,y:35.5},{x:46,y:35.8},{x:46.2,y:36.1},{x:46.4,y:36.4},{x:46.6,y:36.7},{x:46.8,y:37},{x:47,y:37.4},{x:47.2,y:37.7},{x:47.4,y:38},{x:47.6,y:40},{x:47.8,y:38.7},{x:48,y:39},{x:48.2,y:39.3},{x:48.4,y:39.6},{x:48.6,y:40},{x:48.8,y:40.3},{x:49,y:40.6},{x:49.2,y:41},{x:49.4,y:41.3},{x:49.6,y:41.7},{x:49.8,y:42},{x:50,y:42.3},{x:50.2,y:42.6},{x:50.4,y:43},{x:50.6,y:43.4},{x:50.8,y:43.7},{x:51,y:44.1},{x:51.2,y:44.4},{x:51.4,y:44.7},{x:51.6,y:45.1},{x:51.8,y:45.4},{x:52,y:45.8},{x:52.2,y:46.2},{x:52.4,y:46.5},{x:52.8,y:47.3},{x:53,y:47.6},{x:53.2,y:48},{x:53.4,y:48.3},{x:53.6,y:48.7},{x:53.8,y:49},{x:54,y:49.4},{x:54.2,y:49.8},{x:54.4,y:50.2},{x:54.6,y:50.5},{x:54.8,y:50.9},{x:55,y:51.3},{x:55.2,y:51.6},{x:55.4,y:52},{x:55.6,y:52.4},{x:55.8,y:52.8},{x:56,y:53.2},{x:56.2,y:53.5},{x:56.4,y:53.9},{x:56.6,y:54.3},{x:56.8,y:54.7},{x:57,y:55.1},{x:57.2,y:55.5},{x:57.4,y:55.9}],S=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:56.3},{x:57.8,y:56.7},{x:58,y:57},{x:58.2,y:57.4},{x:58.4,y:57.8},{x:58.6,y:58.2},{x:58.8,y:58.6},{x:59,y:59},{x:59.2,y:59.4},{x:59.4,y:59.8},{x:59.6,y:60}],w=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:53.7},{x:57.8,y:54},{x:58,y:54.4},{x:58.2,y:54.8},{x:58.4,y:55.2},{x:58.6,y:55.6},{x:58.8,y:55.9},{x:59,y:56.3},{x:59.2,y:56.7},{x:59.4,y:57.1},{x:59.6,y:57.5},{x:59.8,y:57.9},{x:60,y:58.3}],V=new Array;if(o>=0){"0"==(D=1*y)?V=i:"0.5"==D?V=u:"1"==D?V=m:"1.5"==D?V=c:"2"==D?V=h:"2.5"==D?V=p:"3"==D?V=f:"3.5"==D?V=d:"4"==D?V=g:"4.5"==D?V=b:"5"==D?V=C:"5.5"==D?V=S:D>="6"&&(V=w);var F=-1;for(s=0;s<V.length;s++){if(1*V[0].x>r){F=1;break}if(1*V[s].x>r){F=s;break}if(1*V[V.length-1].x<r){F=V.length-1;break}if(r==V[s].x){n=e.GetDataOddIncreaseEvenDecrease(V[s].y,-1);break}}if(-1!=F){var E=V[F-1].x,N=V[F-1].y,A=V[F].x,v=V[F].y;r>=53&&2==D||r>=48&&0==D||r>=49&&.5==D||r>=50.2&&1==D||r>=51.6&&1.5==D||r>=54&&2.5==D||r>=55.2&&3==D||r>=55.8&&3.5==D||r>=56.6&&4==D||r>=58.2&&4.5==D||r>=59.6&&5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,A,N,v,r),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}else if("泵送混凝土"==l){for(y=a,r=t,o="",x=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<x.length;s++){if(y==x[s]){o=s;break}if(1*y>"6.0"){o=x.length-1;break}}i=[{x:18.6,y:10},{x:18.8,y:10.2},{x:19,y:10.4},{x:19.2,y:10.6},{x:19.4,y:10.9},{x:19.6,y:11.1},{x:19.8,y:11.3},{x:20,y:11.5},{x:20.2,y:11.8},{x:20.4,y:12},{x:20.6,y:12.2},{x:20.8,y:12.4},{x:21,y:12.7},{x:21.2,y:12.9},{x:21.4,y:13.1},{x:21.6,y:13.4},{x:21.8,y:13.6},{x:22,y:13.9},{x:22.2,y:14.1},{x:22.4,y:14.4},{x:22.6,y:14.6},{x:22.8,y:14.9},{x:23,y:15.1},{x:23.2,y:15.4},{x:23.4,y:15.6},{x:23.6,y:15.9},{x:23.8,y:16.2},{x:24,y:16.4},{x:24.2,y:16.7},{x:24.4,y:17},{x:24.6,y:17.2},{x:24.8,y:17.5},{x:25,y:17.8},{x:25.2,y:18},{x:25.4,y:18.3},{x:25.6,y:18.6},{x:25.8,y:18.9},{x:26,y:19.2},{x:26.2,y:19.5},{x:26.4,y:19.8},{x:26.6,y:20},{x:26.8,y:20.3},{x:27,y:20.6},{x:27.2,y:20.9},{x:27.4,y:21.2},{x:27.6,y:21.5},{x:27.8,y:21.8},{x:28,y:22.1},{x:28.2,y:22.4},{x:28.4,y:22.8},{x:28.6,y:23.1},{x:28.8,y:23.4},{x:29,y:23.7},{x:29.2,y:24},{x:29.4,y:24.3},{x:29.6,y:24.7},{x:29.8,y:25},{x:30,y:25.3},{x:30.2,y:25.6},{x:30.4,y:26},{x:30.6,y:26.3},{x:30.8,y:26.6},{x:31,y:27},{x:31.2,y:27.3},{x:31.4,y:27.7},{x:31.6,y:28},{x:31.8,y:28.3},{x:32,y:28.7},{x:32.2,y:29},{x:32.4,y:29.4},{x:32.6,y:29.7},{x:32.8,y:30.1},{x:33,y:30.4},{x:33.2,y:30.8},{x:33.4,y:31.2},{x:33.6,y:31.5},{x:33.8,y:31.9},{x:34,y:32.3},{x:34.2,y:32.6},{x:34.4,y:33},{x:34.6,y:33.4},{x:34.8,y:33.8},{x:35,y:34.1},{x:35.2,y:34.5},{x:35.4,y:34.9},{x:35.6,y:35.3},{x:35.8,y:35.7},{x:36,y:36},{x:36.2,y:36.4},{x:36.4,y:36.8},{x:36.6,y:37.2},{x:36.8,y:37.6},{x:37,y:38},{x:37.2,y:38.4},{x:37.4,y:38.8},{x:37.6,y:39.2},{x:37.8,y:39.6},{x:38,y:40},{x:38.2,y:40.4},{x:38.4,y:40.9},{x:38.6,y:41.3},{x:38.8,y:41.7},{x:39,y:42.1},{x:39.2,y:42.5},{x:39.4,y:42.9},{x:39.6,y:43.4},{x:39.8,y:43.8},{x:40,y:44.2},{x:40.2,y:44.7},{x:40.4,y:45.1},{x:40.6,y:45.5},{x:40.8,y:46},{x:41,y:46.4},{x:41.2,y:46.8},{x:41.4,y:47.3},{x:41.6,y:47.7},{x:41.8,y:48.2},{x:42,y:48.6},{x:42.2,y:49.1},{x:42.4,y:49.5},{x:42.6,y:50},{x:42.8,y:50.4},{x:43,y:50.9},{x:43.2,y:51.3},{x:43.4,y:51.8},{x:43.6,y:52.3},{x:43.8,y:52.7},{x:44,y:53.2},{x:44.2,y:53.7},{x:44.4,y:54.1},{x:44.6,y:54.6},{x:44.8,y:55.1},{x:45,y:55.6},{x:45.2,y:56.1},{x:45.4,y:56.5},{x:45.6,y:57},{x:45.8,y:57.5},{x:46,y:58},{x:46.2,y:58.5},{x:46.4,y:59},{x:46.6,y:59.5},{x:46.8,y:60}],u=[{x:18.8,y:10},{x:19,y:10.2},{x:19.2,y:10.4},{x:19.4,y:10.7},{x:19.6,y:10.9},{x:19.8,y:11.1},{x:20,y:11.3},{x:20.2,y:11.5},{x:20.4,y:11.7},{x:20.6,y:12},{x:20.8,y:12.2},{x:21,y:12.4},{x:21.2,y:12.6},{x:21.4,y:12.9},{x:21.6,y:13.1},{x:21.8,y:13.3},{x:22,y:13.6},{x:22.2,y:13.8},{x:22.4,y:14.1},{x:22.6,y:14.3},{x:22.8,y:14.6},{x:23,y:14.8},{x:23.2,y:15.1},{x:23.4,y:15.3},{x:23.6,y:15.6},{x:23.8,y:15.8},{x:24,y:16.1},{x:24.2,y:16.4},{x:24.4,y:16.6},{x:24.6,y:16.9},{x:24.8,y:17.1},{x:25,y:17.4},{x:25.2,y:17.7},{x:25.4,y:18},{x:25.6,y:18.2},{x:25.8,y:18.5},{x:26,y:18.8},{x:26.2,y:19.1},{x:26.4,y:19.4},{x:26.6,y:19.6},{x:26.8,y:19.9},{x:27,y:20.2},{x:27.2,y:20.5},{x:27.4,y:20.8},{x:27.6,y:21.1},{x:27.8,y:21.4},{x:28,y:21.7},{x:28.2,y:22},{x:28.4,y:22.3},{x:28.6,y:22.6},{x:28.8,y:22.9},{x:29,y:23.2},{x:29.2,y:23.5},{x:29.4,y:23.9},{x:29.6,y:24.2},{x:29.8,y:24.5},{x:30,y:24.8},{x:30.2,y:25.1},{x:30.4,y:25.5},{x:30.6,y:25.8},{x:30.8,y:26.1},{x:31,y:26.4},{x:31.2,y:26.8},{x:31.4,y:27.1},{x:31.6,y:27.4},{x:31.8,y:27.8},{x:32,y:28.1},{x:32.2,y:28.5},{x:32.4,y:28.8},{x:32.6,y:29.2},{x:32.8,y:29.5},{x:33,y:29.8},{x:33.2,y:30.2},{x:33.4,y:30.6},{x:33.6,y:30.9},{x:33.8,y:31.3},{x:34,y:31.6},{x:34.2,y:32},{x:34.4,y:32.4},{x:34.6,y:32.7},{x:34.8,y:33.1},{x:35,y:33.5},{x:35.2,y:33.8},{x:35.4,y:34.2},{x:35.6,y:34.6},{x:35.8,y:35},{x:36,y:35.3},{x:36.2,y:35.7},{x:36.4,y:36.1},{x:36.6,y:36.5},{x:36.8,y:36.9},{x:37,y:37.3},{x:37.2,y:37.7},{x:37.4,y:38.1},{x:37.6,y:38.4},{x:37.8,y:38.8},{x:38,y:39.2},{x:38.2,y:39.6},{x:38.4,y:40.1},{x:38.6,y:40.5},{x:38.8,y:40.9},{x:39,y:41.3},{x:39.2,y:41.7},{x:39.4,y:42.1},{x:39.6,y:42.5},{x:39.8,y:42.9},{x:40,y:43.4},{x:40.2,y:43.8},{x:40.4,y:44.2},{x:40.6,y:44.6},{x:40.8,y:45.1},{x:41,y:45.5},{x:41.2,y:45.9},{x:41.4,y:46.3},{x:41.6,y:46.8},{x:41.8,y:47.2},{x:42,y:47.7},{x:42.2,y:48.1},{x:42.4,y:48.5},{x:42.6,y:49},{x:42.8,y:49.4},{x:43,y:49.9},{x:43.2,y:50.3},{x:43.4,y:50.8},{x:43.6,y:51.2},{x:43.8,y:51.7},{x:44,y:52.2},{x:44.2,y:52.6},{x:44.4,y:53.1},{x:44.6,y:53.5},{x:44.8,y:54},{x:45,y:54.5},{x:45.2,y:55},{x:45.4,y:55.4},{x:45.6,y:55.9},{x:45.8,y:56.4},{x:46,y:56.9},{x:46.2,y:57.3},{x:46.4,y:57.8},{x:46.6,y:58.3},{x:46.8,y:58.8},{x:47,y:59.3},{x:47.2,y:59.8},{x:47.4,y:60}],m=[{x:19,y:10},{x:19.2,y:10.2},{x:19.4,y:10.4},{x:19.6,y:10.6},{x:19.8,y:10.9},{x:20,y:11.1},{x:20.2,y:11.3},{x:20.4,y:11.5},{x:20.6,y:11.7},{x:20.8,y:12},{x:21,y:12.2},{x:21.2,y:12.4},{x:21.4,y:12.6},{x:21.6,y:12.9},{x:21.8,y:13.1},{x:22,y:13.3},{x:22.2,y:13.6},{x:22.4,y:13.8},{x:22.6,y:14},{x:22.8,y:14.3},{x:23,y:14.5},{x:23.2,y:14.8},{x:23.4,y:15},{x:23.6,y:15.3},{x:23.8,y:15.5},{x:24,y:15.8},{x:24.2,y:16},{x:24.4,y:16.3},{x:24.6,y:16.5},{x:24.8,y:16.8},{x:25,y:17.1},{x:25.2,y:17.3},{x:25.4,y:17.6},{x:25.6,y:17.9},{x:25.8,y:18.2},{x:26,y:18.4},{x:26.2,y:18.7},{x:26.4,y:19},{x:26.6,y:19.3},{x:26.8,y:19.5},{x:27,y:19.8},{x:27.2,y:20.1},{x:27.4,y:20.4},{x:27.6,y:20.7},{x:27.8,y:21},{x:28,y:21.3},{x:28.2,y:21.6},{x:28.4,y:21.9},{x:28.6,y:22.2},{x:28.8,y:22.5},{x:29,y:22.8},{x:29.2,y:23.1},{x:29.4,y:23.4},{x:29.6,y:23.7},{x:29.8,y:24},{x:30,y:24.3},{x:30.2,y:24.6},{x:30.4,y:25},{x:30.6,y:25.3},{x:30.8,y:25.6},{x:31,y:25.9},{x:31.2,y:26.2},{x:31.4,y:26.6},{x:31.6,y:26.9},{x:31.8,y:27.2},{x:32,y:27.6},{x:32.2,y:27.9},{x:32.4,y:28.2},{x:32.6,y:28.6},{x:32.8,y:28.9},{x:33,y:29.3},{x:33.2,y:29.6},{x:33.4,y:30},{x:33.6,y:30.3},{x:33.8,y:30.7},{x:34,y:31},{x:34.2,y:31.4},{x:34.4,y:31.7},{x:34.6,y:32.1},{x:34.8,y:32.4},{x:35,y:32.8},{x:35.2,y:33.2},{x:35.4,y:33.5},{x:35.6,y:33.9},{x:35.8,y:34.3},{x:36,y:34.6},{x:36.2,y:35},{x:36.4,y:35.4},{x:36.6,y:35.8},{x:36.8,y:36.2},{x:37,y:36.5},{x:37.2,y:36.9},{x:37.4,y:37.3},{x:37.6,y:37.7},{x:37.8,y:38.1},{x:38,y:38.5},{x:38.2,y:38.9},{x:38.4,y:39.3},{x:38.6,y:39.7},{x:38.8,y:40.1},{x:39,y:40.5},{x:39.2,y:40.9},{x:39.4,y:41.3},{x:39.6,y:41.7},{x:39.8,y:42.1},{x:40,y:42.5},{x:40.2,y:42.9},{x:40.4,y:43.3},{x:40.6,y:43.7},{x:40.8,y:44.2},{x:41,y:44.6},{x:41.2,y:45},{x:41.4,y:45.4},{x:41.6,y:45.9},{x:41.8,y:46.3},{x:42,y:46.7},{x:42.2,y:47.1},{x:42.4,y:47.6},{x:42.6,y:48},{x:42.8,y:48.5},{x:43,y:48.9},{x:43.2,y:49.3},{x:43.4,y:49.8},{x:43.6,y:50.2},{x:43.8,y:50.7},{x:44,y:51.1},{x:44.2,y:51.6},{x:44.4,y:52},{x:44.6,y:52.5},{x:44.8,y:52.9},{x:45,y:53.4},{x:45.2,y:53.9},{x:45.4,y:54.3},{x:45.6,y:54.8},{x:45.8,y:55.3},{x:46,y:55.7},{x:46.2,y:56.2},{x:46.4,y:56.7},{x:46.6,y:57.2},{x:46.8,y:57.6},{x:47,y:58.1},{x:47.2,y:58.6},{x:47.4,y:59.1},{x:47.6,y:59.6},{x:47.8,y:60}],c=[{x:19.2,y:10},{x:19.4,y:10.2},{x:19.6,y:10.4},{x:19.8,y:10.6},{x:20,y:10.9},{x:20.2,y:11.1},{x:20.4,y:11.3},{x:20.6,y:11.5},{x:20.8,y:11.7},{x:21,y:11.9},{x:21.2,y:12.2},{x:21.4,y:12.4},{x:21.6,y:12.6},{x:21.8,y:12.8},{x:22,y:13.1},{x:22.2,y:13.3},{x:22.4,y:13.5},{x:22.6,y:13.8},{x:22.8,y:14},{x:23,y:14.2},{x:23.2,y:14.5},{x:23.4,y:14.7},{x:23.6,y:15},{x:23.8,y:15.2},{x:24,y:15.5},{x:24.2,y:15.7},{x:24.4,y:16},{x:24.6,y:16.1},{x:24.8,y:16.5},{x:25,y:16.7},{x:25.2,y:17},{x:25.4,y:17.3},{x:25.6,y:17.5},{x:25.8,y:17.8},{x:26,y:18.1},{x:26.2,y:18.3},{x:26.4,y:18.6},{x:26.6,y:18.9},{x:26.8,y:19.2},{x:27,y:19.4},{x:27.2,y:19.7},{x:27.4,y:20},{x:27.6,y:20.3},{x:27.8,y:20.6},{x:28,y:20.9},{x:28.2,y:21.1},{x:28.4,y:21.4},{x:28.6,y:21.7},{x:28.8,y:22},{x:29,y:22.3},{x:29.2,y:22.6},{x:29.4,y:22.9},{x:29.6,y:23.1},{x:29.8,y:23.5},{x:30,y:23.8},{x:30.2,y:24.2},{x:30.4,y:24.5},{x:30.6,y:24.8},{x:30.8,y:25.1},{x:31,y:25.4},{x:31.2,y:25.7},{x:31.4,y:26},{x:31.6,y:26.4},{x:31.8,y:26.7},{x:32,y:27},{x:32.2,y:27.4},{x:32.4,y:27.7},{x:32.6,y:28},{x:32.8,y:28.3},{x:33,y:28.7},{x:33.2,y:29},{x:33.4,y:29.4},{x:33.6,y:29.7},{x:33.8,y:30},{x:34,y:30.4},{x:34.2,y:30.7},{x:34.4,y:31.1},{x:34.6,y:31.4},{x:34.8,y:31.8},{x:35,y:32.2},{x:35.2,y:32.5},{x:35.4,y:32.9},{x:35.6,y:33.2},{x:35.8,y:33.6},{x:36,y:34},{x:36.2,y:34.3},{x:36.4,y:34.7},{x:36.6,y:35.1},{x:36.8,y:35.4},{x:37,y:35.8},{x:37.2,y:36.2},{x:37.4,y:36.6},{x:37.6,y:36.9},{x:37.8,y:37.3},{x:38,y:37.7},{x:38.2,y:38.1},{x:38.4,y:38.5},{x:38.6,y:38.9},{x:38.8,y:39.3},{x:39,y:39.7},{x:39.2,y:40.1},{x:39.4,y:40.5},{x:39.6,y:40.9},{x:39.8,y:41.3},{x:40,y:41.7},{x:40.2,y:42.1},{x:40.4,y:42.5},{x:40.6,y:42.9},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.8},{x:42.2,y:46.2},{x:42.4,y:46.6},{x:42.6,y:47.1},{x:42.8,y:47.5},{x:43,y:47.9},{x:43.2,y:48.4},{x:43.4,y:48.8},{x:43.6,y:49.2},{x:43.8,y:49.7},{x:44,y:50.1},{x:44.2,y:50.6},{x:44.4,y:51},{x:44.6,y:51.5},{x:44.8,y:51.9},{x:45,y:52.4},{x:45.2,y:52.8},{x:45.4,y:53.3},{x:45.6,y:53.7},{x:45.8,y:54.2},{x:46,y:54.6},{x:46.2,y:55.1},{x:46.4,y:55.6},{x:46.6,y:56},{x:46.8,y:56.5},{x:47,y:57},{x:47.2,y:57.4},{x:47.4,y:57.9},{x:47.6,y:58.4},{x:47.8,y:58.9},{x:48,y:59.3},{x:48.2,y:59.8},{x:48.4,y:60}],h=[{x:19.4,y:10},{x:19.6,y:10.2},{x:19.8,y:10.4},{x:20,y:10.6},{x:20.2,y:10.9},{x:20.4,y:11.1},{x:20.6,y:11.3},{x:20.8,y:11.5},{x:21,y:11.7},{x:21.2,y:11.9},{x:21.4,y:12.2},{x:21.6,y:12.4},{x:21.8,y:12.6},{x:22,y:12.8},{x:22.2,y:13.1},{x:22.4,y:13.3},{x:22.6,y:13.5},{x:22.8,y:13.7},{x:23,y:14},{x:23.2,y:14.2},{x:23.4,y:14.4},{x:23.6,y:14.7},{x:23.8,y:14.9},{x:24,y:15.2},{x:24.2,y:15.4},{x:24.4,y:15.7},{x:24.6,y:15.9},{x:24.8,y:16.2},{x:25,y:16.4},{x:25.2,y:16.7},{x:25.4,y:16.9},{x:25.6,y:17.2},{x:25.8,y:17.4},{x:26,y:17.7},{x:26.2,y:18},{x:26.4,y:18.2},{x:26.6,y:18.5},{x:26.8,y:18.8},{x:27,y:19.1},{x:27.2,y:19.3},{x:27.4,y:19.6},{x:27.6,y:19.9},{x:27.8,y:20.2},{x:28,y:20.4},{x:28.2,y:20.7},{x:28.4,y:21},{x:28.6,y:21.3},{x:28.8,y:21.6},{x:29,y:21.9},{x:29.2,y:22},{x:29.4,y:22.5},{x:29.6,y:22.8},{x:29.8,y:23.1},{x:30,y:23.4},{x:30.2,y:23.7},{x:30.4,y:24},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.5},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.8},{x:32.4,y:27.1},{x:32.6,y:27.5},{x:32.8,y:27.8},{x:33,y:28.1},{x:33.2,y:28.4},{x:33.4,y:28.8},{x:33.6,y:29},{x:33.8,y:29.5},{x:34,y:29.8},{x:34.2,y:30.1},{x:34.4,y:30.5},{x:34.6,y:30.8},{x:34.8,y:31.2},{x:35,y:31.5},{x:35.2,y:31.9},{x:35.4,y:32.2},{x:35.6,y:32.5},{x:35.8,y:32.9},{x:36,y:33.2},{x:36.2,y:33.6},{x:36.4,y:34},{x:36.6,y:34.3},{x:36.8,y:34.7},{x:37,y:35.1},{x:37.2,y:35.5},{x:37.4,y:35.8},{x:37.6,y:36.2},{x:37.8,y:36.6},{x:38,y:37},{x:38.2,y:37.3},{x:38.4,y:37.7},{x:38.6,y:38.1},{x:38.8,y:38.5},{x:39,y:38.9},{x:39.2,y:39.3},{x:39.4,y:39.7},{x:39.6,y:40},{x:39.8,y:40.4},{x:40,y:40.8},{x:40.2,y:41.2},{x:40.4,y:41.6},{x:40.6,y:42},{x:40.8,y:42.4},{x:41,y:42.8},{x:41.2,y:43.2},{x:41.4,y:43.7},{x:41.6,y:44.1},{x:41.8,y:44.5},{x:42,y:44.9},{x:42.2,y:45.3},{x:42.4,y:45.7},{x:42.6,y:46.1},{x:42.8,y:46.6},{x:43,y:47},{x:43.2,y:47.4},{x:43.4,y:47.8},{x:43.6,y:48.3},{x:43.8,y:48.7},{x:44,y:49.1},{x:44.2,y:49.6},{x:44.4,y:50},{x:44.6,y:50.4},{x:44.8,y:50.9},{x:45,y:51.3},{x:45.2,y:51.8},{x:45.4,y:52.2},{x:45.6,y:52.7},{x:45.8,y:53.1},{x:46,y:53.6},{x:46.2,y:54},{x:46.4,y:54.5},{x:46.6,y:54.9},{x:46.8,y:55.4},{x:47,y:55.8},{x:47.2,y:56.3},{x:47.4,y:56.8},{x:47.6,y:57.2},{x:47.8,y:57.7},{x:48,y:58.2},{x:48.2,y:58.6},{x:48.4,y:59.1},{x:48.6,y:59.6},{x:48.8,y:60}],p=[{x:19.6,y:10},{x:19.8,y:10.2},{x:20,y:10.4},{x:20.2,y:10.6},{x:20.4,y:10.8},{x:20.6,y:11},{x:20.8,y:11.3},{x:21,y:11.5},{x:21.2,y:11.7},{x:21.4,y:11.9},{x:21.6,y:12.1},{x:21.8,y:12.3},{x:22,y:12.6},{x:22.2,y:12.8},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.5},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.3},{x:24.6,y:15.6},{x:24.8,y:15.8},{x:25,y:16.1},{x:25.2,y:16.3},{x:25.4,y:16.6},{x:25.6,y:16.8},{x:25.8,y:17.1},{x:26,y:17.4},{x:26.2,y:17.6},{x:26.4,y:17.9},{x:26.6,y:18.1},{x:26.8,y:18.4},{x:27,y:18.7},{x:27.2,y:18.9},{x:27.4,y:19.2},{x:27.6,y:19.5},{x:27.8,y:19.8},{x:28,y:20},{x:28.2,y:20.3},{x:28.4,y:20.6},{x:28.6,y:20.9},{x:28.8,y:21.2},{x:29,y:21.5},{x:29.2,y:21.7},{x:29.4,y:22},{x:29.6,y:22.3},{x:29.8,y:22.6},{x:30,y:22.9},{x:30.2,y:23.2},{x:30.4,y:23.5},{x:30.6,y:23.8},{x:30.8,y:24.1},{x:31,y:24.4},{x:31.2,y:24.7},{x:31.4,y:25},{x:31.6,y:25.3},{x:31.8,y:25.7},{x:32,y:26},{x:32.2,y:26.3},{x:32.4,y:26.6},{x:32.6,y:26.9},{x:32.8,y:27.2},{x:33,y:27.6},{x:33.2,y:27.9},{x:33.4,y:28.2},{x:33.6,y:28.5},{x:33.8,y:28.9},{x:34,y:29.2},{x:34.2,y:29.5},{x:34.4,y:29.9},{x:34.6,y:30.2},{x:34.8,y:30.6},{x:35,y:30.9},{x:35.2,y:31.2},{x:35.4,y:31.6},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.3},{x:36.6,y:33.7},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.1},{x:37.6,y:35.5},{x:37.8,y:35.9},{x:38,y:36.2},{x:38.2,y:36.6},{x:38.4,y:37},{x:38.6,y:37.3},{x:38.8,y:37.7},{x:39,y:38.1},{x:39.2,y:38.5},{x:39.4,y:38.9},{x:39.6,y:39.3},{x:39.8,y:39.7},{x:40,y:40},{x:40.2,y:40.4},{x:40.4,y:40.8},{x:40.6,y:41.2},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.4},{x:41.4,y:42.8},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.2},{x:42.8,y:45.6},{x:43,y:46.1},{x:43.2,y:46.5},{x:43.4,y:46.9},{x:43.6,y:47.3},{x:43.8,y:47.7},{x:44,y:48.2},{x:44.2,y:48.6},{x:44.4,y:49},{x:44.6,y:49.4},{x:44.8,y:49.9},{x:45,y:50.3},{x:45.2,y:50.7},{x:45.4,y:51.2},{x:45.6,y:51.6},{x:45.8,y:52.1},{x:46,y:52.5},{x:46.2,y:52.9},{x:46.4,y:53.4},{x:46.6,y:53.8},{x:46.8,y:54.3},{x:47,y:54.7},{x:47.2,y:55.2},{x:47.4,y:55.6},{x:47.6,y:56.1},{x:47.8,y:56.6},{x:48,y:57},{x:48.2,y:57.5},{x:48.4,y:57.9},{x:48.6,y:58.4},{x:48.8,y:58.9},{x:49,y:59.3},{x:49.2,y:59.8},{x:49.4,y:60}],f=[{x:19.8,y:10},{x:20,y:10.2},{x:20.2,y:10.4},{x:20.4,y:10.6},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.5},{x:21.4,y:11.7},{x:21.6,y:11.9},{x:21.8,y:12.1},{x:22,y:12.3},{x:22.2,y:12.5},{x:22.4,y:12.7},{x:22.6,y:13},{x:22.8,y:13.2},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.9},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15},{x:24.6,y:15.3},{x:24.8,y:15.5},{x:25,y:15.8},{x:25.2,y:16},{x:25.4,y:16.3},{x:25.6,y:16.5},{x:25.8,y:16.8},{x:26,y:17},{x:26.2,y:17.3},{x:26.4,y:17.5},{x:26.6,y:17.8},{x:26.8,y:18},{x:27,y:18.3},{x:27.2,y:18.6},{x:27.4,y:18.8},{x:27.6,y:19.1},{x:27.8,y:19.4},{x:28,y:19.6},{x:28.2,y:19.9},{x:28.4,y:20.2},{x:28.6,y:20.5},{x:28.8,y:20.7},{x:29,y:21},{x:29.2,y:21.3},{x:29.4,y:21.6},{x:29.6,y:21.9},{x:29.8,y:22.2},{x:30,y:22.5},{x:30.2,y:22.8},{x:30.4,y:23},{x:30.6,y:23.3},{x:30.8,y:23.6},{x:31,y:23.9},{x:31.2,y:24.2},{x:31.4,y:24.5},{x:31.6,y:24.8},{x:31.8,y:25.1},{x:32,y:25.5},{x:32.2,y:25.8},{x:32.4,y:26.1},{x:32.6,y:26.4},{x:32.8,y:26.7},{x:33,y:27},{x:33.2,y:27.3},{x:33.4,y:27.7},{x:33.6,y:28},{x:33.8,y:28.3},{x:34,y:28.6},{x:34.2,y:29},{x:34.4,y:29.3},{x:34.6,y:29.6},{x:34.8,y:30},{x:35,y:30.3},{x:35.2,y:30.6},{x:35.4,y:31},{x:35.6,y:31.3},{x:35.8,y:31.6},{x:36,y:32},{x:36.2,y:32.3},{x:36.4,y:32.7},{x:36.6,y:33},{x:36.8,y:33.4},{x:37,y:33.7},{x:37.2,y:34.1},{x:37.4,y:34.4},{x:37.6,y:38.4},{x:37.8,y:35.2},{x:38,y:35.5},{x:38.2,y:35.9},{x:38.4,y:36.3},{x:38.6,y:36.6},{x:38.8,y:37},{x:39,y:37.4},{x:39.2,y:37.7},{x:39.4,y:38.1},{x:39.6,y:38.5},{x:39.8,y:38.9},{x:40,y:39.2},{x:40.2,y:39.6},{x:40.4,y:40},{x:40.6,y:40.4},{x:40.8,y:40.8},{x:41,y:41.2},{x:41.2,y:41.6},{x:41.4,y:42},{x:41.6,y:42.3},{x:41.8,y:42.7},{x:42,y:43.1},{x:42.2,y:43.5},{x:42.4,y:43.9},{x:42.6,y:44.3},{x:42.8,y:44.7},{x:43,y:45.2},{x:43.2,y:45.6},{x:43.4,y:46},{x:43.6,y:46.4},{x:43.8,y:46.8},{x:44,y:47.2},{x:44.2,y:47.6},{x:44.4,y:48},{x:44.6,y:48.5},{x:44.8,y:48.9},{x:45,y:49.3},{x:45.2,y:49.7},{x:45.4,y:50.2},{x:45.6,y:50.6},{x:45.8,y:51},{x:46,y:51.5},{x:46.2,y:51.9},{x:46.4,y:52.3},{x:46.6,y:52.8},{x:46.8,y:53.2},{x:47,y:53.7},{x:47.2,y:54.1},{x:47.4,y:54.5},{x:47.6,y:55},{x:47.8,y:55.4},{x:48,y:55.9},{x:48.2,y:56.3},{x:48.4,y:56.8},{x:48.6,y:57.3},{x:48.8,y:57.7},{x:49,y:58.2},{x:49.2,y:58.6},{x:49.4,y:59.1},{x:49.6,y:59.6},{x:49.8,y:60}],d=[{x:20,y:10},{x:20.2,y:10.2},{x:20.4,y:10.4},{x:20.6,y:10.6},{x:20.8,y:10.8},{x:21,y:11},{x:21.2,y:11.2},{x:21.4,y:11.4},{x:21.6,y:11.6},{x:21.8,y:11.9},{x:22,y:12.1},{x:22.2,y:12.3},{x:22.4,y:12.5},{x:22.6,y:12.7},{x:22.8,y:12.9},{x:23,y:13.1},{x:23.2,y:13.4},{x:23.4,y:13.6},{x:23.6,y:13.8},{x:23.8,y:14.1},{x:24,y:14.3},{x:24.2,y:14.5},{x:24.4,y:14.7},{x:24.6,y:15},{x:24.8,y:15.2},{x:25,y:15.5},{x:25.2,y:15.7},{x:25.4,y:15.9},{x:25.6,y:16.2},{x:25.8,y:16.4},{x:26,y:16.7},{x:26.2,y:16.9},{x:26.4,y:17.2},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:17.9},{x:27.2,y:18.2},{x:27.4,y:18.5},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.3},{x:28.2,y:19.5},{x:28.4,y:19.8},{x:28.6,y:20.1},{x:28.8,y:20.3},{x:29,y:20.6},{x:29.2,y:20.9},{x:29.4,y:21.2},{x:29.6,y:21.4},{x:29.8,y:21.7},{x:30,y:22},{x:30.2,y:22.3},{x:30.4,y:22.6},{x:30.6,y:22.9},{x:30.8,y:23.2},{x:31,y:23.5},{x:31.2,y:23.8},{x:31.4,y:24.1},{x:31.6,y:24.4},{x:31.8,y:24.7},{x:32,y:25},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28.1},{x:34.2,y:28.4},{x:34.4,y:28.7},{x:34.6,y:29},{x:34.8,y:29.4},{x:35,y:29.7},{x:35.2,y:30},{x:35.4,y:30.4},{x:35.6,y:30.7},{x:35.8,y:31},{x:36,y:31.4},{x:36.2,y:31.7},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33.1},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.8},{x:38.2,y:35.2},{x:38.4,y:35.5},{x:38.6,y:35.9},{x:38.8,y:36.3},{x:39,y:36.6},{x:39.2,y:37},{x:39.4,y:37.4},{x:39.6,y:37.7},{x:39.8,y:38.1},{x:40,y:38.5},{x:40.2,y:38.8},{x:40.4,y:39.2},{x:40.6,y:39.6},{x:40.8,y:40},{x:41,y:40.4},{x:41.2,y:40.7},{x:41.4,y:41.1},{x:41.6,y:41.5},{x:41.8,y:41.9},{x:42,y:42.3},{x:42.2,y:42.7},{x:42.4,y:43.1},{x:42.6,y:43.5},{x:42.8,y:43.9},{x:43,y:44.3},{x:43.2,y:44.7},{x:43.4,y:45.1},{x:43.6,y:45.5},{x:43.8,y:45.9},{x:44,y:46.3},{x:44.2,y:46.7},{x:44.4,y:47.1},{x:44.6,y:47.5},{x:44.8,y:47.9},{x:45,y:48.3},{x:45.2,y:48.8},{x:45.4,y:49.2},{x:45.6,y:49.6},{x:45.8,y:50},{x:46,y:50.5},{x:46.2,y:50.9},{x:46.4,y:51.3},{x:46.6,y:51.7},{x:46.8,y:52.2},{x:47,y:52.6},{x:47.2,y:53},{x:47.4,y:53.5},{x:47.6,y:53.9},{x:47.8,y:54.4},{x:48,y:54.8},{x:48.2,y:55.2},{x:48.4,y:55.7},{x:48.6,y:56.1},{x:48.8,y:56.6},{x:49,y:57},{x:49.2,y:57.5},{x:49.4,y:57.9},{x:49.6,y:58.4},{x:49.8,y:58.8},{x:50,y:59.3},{x:50.2,y:59.8},{x:50.4,y:60}],g=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.6},{x:22,y:11.8},{x:22.2,y:12},{x:22.4,y:12.2},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:12.9},{x:23.2,y:13.1},{x:23.4,y:13.3},{x:23.6,y:13.5},{x:23.8,y:13.8},{x:24,y:14},{x:24.2,y:14.2},{x:24.4,y:14.5},{x:24.6,y:14.7},{x:24.8,y:14.9},{x:25,y:15.2},{x:25.2,y:15.4},{x:25.4,y:15.6},{x:25.6,y:15.9},{x:25.8,y:16.1},{x:26,y:16.3},{x:26.2,y:16.6},{x:26.4,y:16.8},{x:26.6,y:17.1},{x:26.8,y:17.3},{x:27,y:17.6},{x:27.2,y:17.8},{x:27.4,y:18.1},{x:27.6,y:18.4},{x:27.8,y:18.6},{x:28,y:18.9},{x:28.2,y:19.1},{x:28.4,y:19.4},{x:28.6,y:19.7},{x:28.8,y:19.9},{x:29,y:20.2},{x:29.2,y:20.5},{x:29.4,y:20.8},{x:29.6,y:21},{x:29.8,y:21.3},{x:30,y:21.6},{x:30.2,y:21.9},{x:30.4,y:22.1},{x:30.6,y:22.4},{x:30.8,y:22.7},{x:31,y:23},{x:31.2,y:23.6},{x:31.4,y:23.6},{x:31.6,y:23.9},{x:31.8,y:24.2},{x:32,y:24.5},{x:32.2,y:24.8},{x:32.4,y:25.1},{x:32.6,y:25.4},{x:32.8,y:25.7},{x:33,y:26},{x:33.2,y:26.3},{x:33.4,y:26.6},{x:33.6,y:26.9},{x:33.8,y:27.2},{x:34,y:27.5},{x:34.2,y:27.8},{x:34.4,y:28.1},{x:34.6,y:28.5},{x:34.8,y:28.8},{x:35,y:29.1},{x:35.2,y:29.4},{x:35.4,y:29.8},{x:35.6,y:30.1},{x:35.8,y:30.4},{x:36,y:30.7},{x:36.2,y:31.1},{x:36.4,y:31.4},{x:36.6,y:31.7},{x:36.8,y:32.1},{x:37,y:32.4},{x:37.2,y:32.8},{x:37.4,y:33.1},{x:37.6,y:33.4},{x:37.8,y:33.8},{x:38,y:34.1},{x:38.2,y:34.5},{x:38.4,y:34.8},{x:38.6,y:35.2},{x:38.8,y:35.5},{x:39,y:35.9},{x:39.2,y:36.3},{x:39.4,y:36.6},{x:39.6,y:37},{x:39.8,y:37.3},{x:40,y:37.7},{x:40.2,y:38.1},{x:40.4,y:38.4},{x:40.6,y:38.8},{x:40.8,y:39.2},{x:41,y:39.6},{x:41.2,y:39.9},{x:41.4,y:40.3},{x:41.6,y:40.7},{x:41.8,y:41.1},{x:42,y:41.5},{x:42.2,y:41.8},{x:42.4,y:42.2},{x:42.6,y:42.6},{x:42.8,y:43},{x:43,y:43.4},{x:43.2,y:43.8},{x:43.4,y:44.2},{x:43.6,y:44.6},{x:43.8,y:45},{x:44,y:45.4},{x:44.2,y:45.8},{x:44.4,y:46.2},{x:44.6,y:46.6},{x:44.8,y:47},{x:45,y:47.4},{x:45.2,y:47.8},{x:45.4,y:48.2},{x:45.6,y:48.6},{x:45.8,y:49},{x:46,y:49.5},{x:46.2,y:49.9},{x:46.4,y:50.3},{x:46.6,y:50.7},{x:46.8,y:51.1},{x:47,y:51.6},{x:47.2,y:52},{x:47.4,y:52.4},{x:47.6,y:52.8},{x:47.8,y:53.3},{x:48,y:53.7},{x:48.2,y:54.1},{x:48.4,y:54.6},{x:48.6,y:55},{x:48.8,y:55.5},{x:49,y:55.9},{x:49.2,y:56.3},{x:49.4,y:56.8},{x:49.6,y:57.2},{x:49.8,y:57.7},{x:50,y:58.1},{x:50.2,y:58.6},{x:50.4,y:59},{x:50.6,y:59.5},{x:50.8,y:60}],b=[{x:20.4,y:10},{x:20.6,y:10.2},{x:20.8,y:10.4},{x:21,y:10.6},{x:21.2,y:10.8},{x:21.4,y:11},{x:21.6,y:11.2},{x:21.8,y:11.4},{x:22,y:11.6},{x:22.2,y:11.8},{x:22.4,y:12},{x:22.6,y:12.2},{x:22.8,y:12.4},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13.1},{x:23.6,y:13.1},{x:23.8,y:13.5},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.3},{x:25.6,y:15.6},{x:25.8,y:15.8},{x:26,y:16},{x:26.2,y:16.3},{x:26.4,y:16.5},{x:26.6,y:16.8},{x:26.8,y:17},{x:27,y:17.2},{x:27.2,y:17.5},{x:27.4,y:17.7},{x:27.6,y:18},{x:27.8,y:18.3},{x:28,y:18.5},{x:28.2,y:18.8},{x:28.4,y:19},{x:28.6,y:19.3},{x:28.8,y:19.5},{x:29,y:19.8},{x:29.2,y:20.1},{x:29.4,y:20.3},{x:29.6,y:20.6},{x:29.8,y:20.9},{x:30,y:21.2},{x:30.2,y:21.4},{x:30.4,y:21.7},{x:30.6,y:22},{x:30.8,y:22.3},{x:31,y:22.5},{x:31.2,y:22.8},{x:31.4,y:23.1},{x:31.6,y:23.4},{x:31.8,y:23.7},{x:32,y:24},{x:32.2,y:24.3},{x:32.4,y:24.6},{x:32.6,y:24.9},{x:32.8,y:25.2},{x:33,y:25.5},{x:33.2,y:25.8},{x:33.4,y:26.1},{x:33.6,y:26.4},{x:33.8,y:26.7},{x:34,y:27},{x:34.2,y:27.3},{x:34.4,y:27.6},{x:34.6,y:27.9},{x:34.8,y:28.2},{x:35,y:28.5},{x:35.2,y:28.8},{x:35.4,y:29.2},{x:35.6,y:29.5},{x:35.8,y:29.8},{x:36,y:30.1},{x:36.2,y:30.5},{x:36.4,y:30.8},{x:36.6,y:31.1},{x:36.8,y:31.4},{x:37,y:31.8},{x:37.2,y:32.1},{x:37.4,y:32.4},{x:37.6,y:32.8},{x:37.8,y:33.1},{x:38,y:33.5},{x:38.2,y:33.8},{x:38.4,y:34.2},{x:38.6,y:34.5},{x:38.8,y:34.8},{x:39,y:35.2},{x:39.2,y:35.5},{x:39.4,y:35.9},{x:39.6,y:36.3},{x:39.8,y:36.6},{x:40,y:37},{x:40.2,y:37.3},{x:40.4,y:37.7},{x:40.6,y:38.1},{x:40.8,y:38.4},{x:41,y:38.8},{x:41.2,y:39.1},{x:41.4,y:39.5},{x:41.6,y:39.9},{x:41.8,y:40.3},{x:42,y:40.6},{x:42.2,y:41},{x:42.4,y:41.4},{x:42.6,y:41.8},{x:42.8,y:42.2},{x:43,y:42.5},{x:43.2,y:42.9},{x:43.4,y:43.3},{x:43.6,y:43.7},{x:43.8,y:44.1},{x:44,y:44.5},{x:44.2,y:44.9},{x:44.4,y:45.3},{x:44.6,y:45.7},{x:44.8,y:46.1},{x:45,y:46.5},{x:45.2,y:46.9},{x:45.4,y:47.3},{x:45.6,y:47.7},{x:45.8,y:48.1},{x:46,y:48.5},{x:46.2,y:48.9},{x:46.4,y:49.3},{x:46.6,y:49.7},{x:46.8,y:50.1},{x:47,y:50.5},{x:47.2,y:51},{x:47.4,y:51.4},{x:47.6,y:51.8},{x:47.8,y:52.2},{x:48,y:52.7},{x:48.2,y:53.1},{x:48.4,y:53.5},{x:48.6,y:53.9},{x:48.8,y:54.4},{x:49,y:54.8},{x:49.2,y:55.2},{x:49.4,y:55.7},{x:49.6,y:56.1},{x:49.8,y:56.6},{x:50,y:57},{x:50.2,y:57.4},{x:50.4,y:57.9},{x:50.6,y:58.3},{x:50.8,y:58.8},{x:51,y:59.2},{x:51.2,y:59.7},{x:51.4,y:60}],C=[{x:20.6,y:10},{x:20.8,y:10.2},{x:21,y:10.4},{x:21.2,y:10.6},{x:21.4,y:10.8},{x:21.6,y:11},{x:21.8,y:11.2},{x:22,y:11.4},{x:22.2,y:11.6},{x:22.4,y:11.8},{x:22.6,y:12},{x:22.8,y:12.2},{x:23,y:12.4},{x:23.2,y:12.6},{x:23.4,y:12.8},{x:23.6,y:13},{x:23.8,y:13.2},{x:24,y:13.5},{x:24.2,y:13.7},{x:24.4,y:13.9},{x:24.6,y:14.1},{x:24.8,y:14.3},{x:25,y:14.6},{x:25.2,y:14.8},{x:25.4,y:15},{x:25.6,y:15.2},{x:25.8,y:15.5},{x:26,y:15.7},{x:26.2,y:15.9},{x:26.4,y:16.2},{x:26.6,y:16.4},{x:26.8,y:16.7},{x:27,y:16.9},{x:27.2,y:17.1},{x:27.4,y:17.4},{x:27.6,y:17.6},{x:27.8,y:17.9},{x:28,y:18.1},{x:28.2,y:18.4},{x:28.4,y:18.6},{x:28.6,y:18.9},{x:28.8,y:19.2},{x:29,y:19.4},{x:29.2,y:19.7},{x:29.4,y:19.9},{x:29.6,y:20.2},{x:29.8,y:20.5},{x:30,y:20.7},{x:30.2,y:21},{x:30.4,y:21.3},{x:30.6,y:21.6},{x:30.8,y:21.8},{x:31,y:22.1},{x:31.2,y:22.4},{x:31.4,y:22.7},{x:31.6,y:22.9},{x:31.8,y:23.2},{x:32,y:23.5},{x:32.2,y:23.8},{x:32.4,y:24.1},{x:32.6,y:24.4},{x:32.8,y:24.7},{x:33,y:25},{x:33.2,y:25.2},{x:33.4,y:25.5},{x:33.6,y:25.8},{x:33.8,y:26.1},{x:34,y:26.4},{x:34.2,y:26.4},{x:34.4,y:27},{x:34.6,y:27.4},{x:34.8,y:27.7},{x:35,y:28},{x:35.2,y:28.3},{x:35.4,y:28.6},{x:35.6,y:28.9},{x:35.8,y:29.2},{x:36,y:29.5},{x:36.2,y:29.9},{x:36.4,y:30.2},{x:36.6,y:30.5},{x:36.8,y:30.8},{x:37,y:31.2},{x:37.2,y:31.5},{x:37.4,y:31.8},{x:37.6,y:32.1},{x:37.8,y:32.5},{x:38,y:32.8},{x:38.2,y:33.1},{x:38.4,y:33.5},{x:38.6,y:33.8},{x:38.8,y:34.2},{x:39,y:34.5},{x:39.2,y:34.8},{x:39.4,y:35.2},{x:39.6,y:35.5},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.6},{x:40.4,y:36.9},{x:40.6,y:37.3},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.1},{x:41.8,y:39.5},{x:42,y:39.8},{x:42.2,y:40.2},{x:42.4,y:40.6},{x:42.6,y:40.9},{x:42.8,y:41.3},{x:43,y:41.7},{x:43.2,y:42.1},{x:43.4,y:42.5},{x:43.6,y:42.8},{x:43.8,y:43.2},{x:44,y:43.6},{x:44.2,y:44},{x:44.4,y:44.4},{x:44.6,y:44.8},{x:44.8,y:45.1},{x:45,y:45.5},{x:45.2,y:45.9},{x:45.4,y:46.3},{x:45.6,y:46.7},{x:45.8,y:47.1},{x:46,y:47.5},{x:46.2,y:47.9},{x:46.4,y:48.3},{x:46.6,y:48.7},{x:46.8,y:49.1},{x:47,y:49.5},{x:47.2,y:50.5},{x:47.4,y:50.4},{x:47.6,y:50.8},{x:47.8,y:51.2},{x:48,y:51.6},{x:48.2,y:52},{x:48.4,y:52.5},{x:48.6,y:52.9},{x:48.8,y:53.3},{x:49,y:53.7},{x:49.2,y:54.1},{x:49.4,y:54.6},{x:49.6,y:55},{x:49.8,y:55.4},{x:50,y:55.9},{x:50.2,y:56.3},{x:50.4,y:56.7},{x:50.6,y:57.2},{x:50.8,y:57.6},{x:51,y:58.1},{x:51.2,y:58.5},{x:51.4,y:58.9},{x:51.6,y:59.4},{x:51.8,y:59.8},{x:52,y:60}],S=[{x:20.8,y:10},{x:21,y:10.2},{x:21.2,y:10.4},{x:21.4,y:10.6},{x:21.6,y:10.7},{x:21.8,y:10.9},{x:22,y:11.1},{x:22.2,y:11.3},{x:22.4,y:11.5},{x:22.6,y:11.7},{x:22.8,y:11.9},{x:23,y:12.1},{x:23.2,y:12.3},{x:23.4,y:12.6},{x:23.6,y:12.8},{x:23.8,y:13},{x:24,y:13.2},{x:24.2,y:13.4},{x:24.4,y:13.6},{x:24.6,y:13.8},{x:24.8,y:14.1},{x:25,y:14.3},{x:25.2,y:14.5},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.2},{x:26,y:15.4},{x:26.2,y:15.6},{x:26.4,y:15.9},{x:26.6,y:16.1},{x:26.8,y:16.3},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17.1},{x:27.6,y:17.3},{x:27.8,y:17.5},{x:28,y:17.8},{x:28.2,y:18},{x:28.4,y:18.3},{x:28.6,y:18.5},{x:28.8,y:18.8},{x:29,y:19},{x:29.2,y:19.3},{x:29.4,y:19.5},{x:29.6,y:19.8},{x:29.8,y:20.1},{x:30,y:20.3},{x:30.2,y:20.6},{x:30.4,y:20.9},{x:30.6,y:21.1},{x:30.8,y:21.4},{x:31,y:21.7},{x:31.2,y:21.9},{x:31.4,y:22.2},{x:31.6,y:22.5},{x:31.8,y:22.8},{x:32,y:23},{x:32.2,y:23.3},{x:32.4,y:23.6},{x:32.6,y:23.9},{x:32.8,y:24.2},{x:33,y:24.5},{x:33.2,y:24.7},{x:33.4,y:25},{x:33.6,y:25.3},{x:33.8,y:25.6},{x:34,y:25.9},{x:34.2,y:26.2},{x:34.4,y:26.5},{x:34.6,y:26.8},{x:34.8,y:27.1},{x:35,y:27.4},{x:35.2,y:27.7},{x:35.4,y:28},{x:35.6,y:28.3},{x:35.8,y:28.6},{x:36,y:29},{x:36.2,y:29.3},{x:36.4,y:29.6},{x:36.6,y:29.9},{x:36.8,y:30.2},{x:37,y:30.5},{x:37.2,y:30.9},{x:37.4,y:31.2},{x:37.6,y:31.5},{x:37.8,y:31.8},{x:38,y:32.2},{x:38.2,y:32.5},{x:38.4,y:32.8},{x:38.6,y:33.2},{x:38.8,y:33.5},{x:39,y:33.8},{x:39.2,y:34.2},{x:39.4,y:34.5},{x:39.6,y:34.8},{x:39.8,y:35.2},{x:40,y:35.5},{x:40.2,y:35.9},{x:40.4,y:36.2},{x:40.6,y:36.6},{x:40.8,y:36.9},{x:41,y:37.3},{x:41.2,y:37.6},{x:41.4,y:38},{x:41.6,y:38.3},{x:41.8,y:38.7},{x:42,y:39.1},{x:42.2,y:39.4},{x:42.4,y:39.8},{x:42.6,y:40.1},{x:42.8,y:40.5},{x:43,y:40.9},{x:43.2,y:41.2},{x:43.4,y:41.6},{x:43.6,y:42},{x:43.8,y:42.4},{x:44,y:42.7},{x:44.2,y:43.1},{x:44.4,y:43.5},{x:44.6,y:43.9},{x:44.8,y:44.3},{x:45,y:44.6},{x:45.2,y:45},{x:45.4,y:45.4},{x:45.6,y:45.8},{x:45.8,y:46.2},{x:46,y:46.6},{x:46.2,y:47},{x:46.4,y:47.4},{x:46.6,y:47.8},{x:46.8,y:48.2},{x:47,y:48.6},{x:47.2,y:49},{x:47.4,y:49.4},{x:47.6,y:49.8},{x:47.8,y:50.2},{x:48,y:50.6},{x:48.2,y:51},{x:48.4,y:51.4},{x:48.6,y:51.8},{x:48.8,y:52.2},{x:49,y:52.7},{x:49.2,y:53.1},{x:49.4,y:53.5},{x:49.6,y:53.9},{x:49.8,y:54.3},{x:50,y:54.8},{x:50.2,y:55.2},{x:50.4,y:55.6},{x:50.6,y:56},{x:50.8,y:56.5},{x:51,y:56.9},{x:51.2,y:57.3},{x:51.4,y:57.8},{x:51.6,y:58.2},{x:51.8,y:58.7},{x:52,y:59.1},{x:52.2,y:59.5},{x:52.4,y:60}],w=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.3},{x:21.6,y:10.5},{x:21.8,y:10.7},{x:22,y:10.9},{x:22.2,y:11.1},{x:22.4,y:11.3},{x:22.6,y:11.5},{x:22.8,y:11.7},{x:23,y:11.9},{x:23.2,y:12.1},{x:23.4,y:12.3},{x:23.6,y:12.5},{x:23.8,y:12.7},{x:24,y:12.9},{x:24.2,y:13.1},{x:24.4,y:13.3},{x:24.6,y:13.6},{x:24.8,y:13.8},{x:25,y:14},{x:25.2,y:14.2},{x:25.4,y:14.4},{x:25.6,y:14.7},{x:25.8,y:14.9},{x:26,y:15.1},{x:26.2,y:15.3},{x:26.4,y:15.6},{x:26.6,y:15.8},{x:26.8,y:16},{x:27,y:16.2},{x:27.2,y:16.5},{x:27.4,y:16.7},{x:27.6,y:17},{x:27.8,y:17.2},{x:28,y:17.4},{x:28.2,y:17.7},{x:28.4,y:17.9},{x:28.6,y:18.2},{x:28.8,y:18.4},{x:29,y:18.7},{x:29.2,y:18.9},{x:29.4,y:19.2},{x:29.6,y:19.4},{x:29.8,y:19.7},{x:30,y:19.9},{x:30.2,y:20.2},{x:30.4,y:20.4},{x:30.6,y:20.7},{x:30.8,y:21},{x:31,y:21.2},{x:31.2,y:21.5},{x:31.4,y:21.8},{x:31.6,y:22},{x:31.8,y:22.3},{x:32,y:22.6},{x:32.2,y:22.9},{x:32.4,y:23.1},{x:32.6,y:23.4},{x:32.8,y:23.7},{x:33,y:24},{x:33.2,y:24.3},{x:33.4,y:24.5},{x:33.6,y:24.8},{x:33.8,y:25.1},{x:34,y:25.4},{x:34.2,y:25.7},{x:34.4,y:26},{x:34.6,y:26.3},{x:34.8,y:26.6},{x:35,y:26.9},{x:35.2,y:27.2},{x:35.4,y:27.5},{x:35.6,y:27.8},{x:35.8,y:28.1},{x:36,y:28.4},{x:36.2,y:28.7},{x:36.4,y:29},{x:36.6,y:29.3},{x:36.8,y:29.6},{x:37,y:29.9},{x:37.2,y:30.2},{x:37.4,y:30.6},{x:37.6,y:30.9},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.2},{x:38.6,y:32.5},{x:38.8,y:32.8},{x:39,y:33.2},{x:39.2,y:33.5},{x:39.4,y:33.8},{x:39.6,y:34.2},{x:39.8,y:34.5},{x:40,y:34.8},{x:40.2,y:35.2},{x:40.4,y:35.5},{x:40.6,y:35.8},{x:40.8,y:36.2},{x:41,y:36.5},{x:41.2,y:36.9},{x:41.4,y:37.2},{x:41.6,y:37.6},{x:41.8,y:37.9},{x:42,y:38.3},{x:42.2,y:38.6},{x:42.4,y:39},{x:42.6,y:39.3},{x:42.8,y:39.7},{x:43,y:40.1},{x:43.2,y:40.4},{x:43.4,y:40.8},{x:43.6,y:41.2},{x:43.8,y:41.5},{x:44,y:41.9},{x:44.2,y:42.3},{x:44.4,y:42.6},{x:44.6,y:43},{x:44.8,y:43.4},{x:45,y:43.8},{x:45.2,y:44.1},{x:45.4,y:44.5},{x:45.6,y:44.9},{x:45.8,y:45.3},{x:46,y:45.7},{x:46.2,y:46.1},{x:46.4,y:46.4},{x:46.6,y:46.8},{x:46.8,y:47.2},{x:47,y:47.6},{x:47.2,y:48},{x:47.4,y:48.4},{x:47.6,y:48.8},{x:47.8,y:49.2},{x:48,y:49.6},{x:48.2,y:50},{x:48.4,y:50.4},{x:48.6,y:50.8},{x:48.8,y:51.2},{x:49,y:51.6},{x:49.2,y:52},{x:49.4,y:52.4},{x:49.6,y:52.9},{x:49.8,y:53.3},{x:50,y:53.7},{x:50.2,y:54.1},{x:50.4,y:54.5},{x:50.6,y:54.9},{x:50.8,y:55.4},{x:51,y:55.8},{x:51.2,y:56.2},{x:51.4,y:56.6},{x:51.6,y:57.1},{x:51.8,y:57.5},{x:52,y:57.9},{x:52.2,y:58.4},{x:52.4,y:58.8},{x:52.6,y:59.2},{x:52.8,y:59.7}];if(o>=0){var D;"0"==(D=1*y)?V=i:"0.5"==D?V=u:"1"==D?V=m:"1.5"==D?V=c:"2"==D?V=h:"2.5"==D?V=p:"3"==D?V=f:"3.5"==D?V=d:"4"==D?V=g:"4.5"==D?V=b:"5"==D?V=C:"5.5"==D?V=S:D>="6"&&(V=w);F=-1;for(s=0;s<V.length;s++){if(1*V[0].x>r){F=1;break}if(1*V[s].x>r){F=s;break}if(1*V[V.length-1].x<r){F=V.length-1;break}if(r==V[s].x){n=e.GetDataOddIncreaseEvenDecrease(V[s].y,-1);break}}if(-1!=F){E=V[F-1].x,N=V[F-1].y,A=V[F].x,v=V[F].y;r>=46.8&&0==D||r>=47.4&&.5==D||r>=47.8&&1==D||r>=48.4&&1.5==D||r>=48.8&&2==D||r>=49.4&&2.5==D||r>=49.8&&3==D||r>=50.4&&3.5==D||r>=50.8&&4==D||r>=51.4&&4.5==D||r>=52&&5==D||r>=52.4&&5.5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,A,N,v,r),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}return n}},FormulaUtils={initFormulas:(e,l)=>{FormulaUtils.allCusFormulas.forEach(t=>{const a=FormulaUtils.initForFun(e,l,t.funName,t.funDesc,t.funCallback,t.funDefaultVal,t.funMinArgs,t.funMaxArgs,t.funParams,t.isContext,t.isAcceptArea,t.isContainNullUndefinedVal);e.Spread.CalcEngine.Functions.defineGlobalCustomFunction(t.funName,new a)})},initForFun:(e,l,t,a,n,o=0,y=1,r=1e3,x=[],s=!0,i=!0,u=!1)=>{const m=function(){this.name=t,this.minArgs=y,this.maxArgs=r};return(m.prototype=new e.Spread.CalcEngine.Functions.Function(t,y,r)).description=function(){return{description:a,parameters:x}},m.prototype.isContextSensitive=function(){return s},m.prototype.acceptsReference=function(){return i},m.prototype.evaluate=function(){let e,t;s&&(e=arguments[0].source.getSheet(),t=e.getSpan(arguments[0].row,arguments[0].column),null!=t&&null!=t||(t={row:arguments[0].row,col:arguments[0].column,rowCount:1,colCount:1}));let a=[],y=[];if(i&&arguments.length>1){const e=arguments[0].source.getSheet();for(let l=1;l<arguments.length;l++){const t=arguments[l];if(null!=t.$gt&&null!=t.$gt&&t.$gt.length>0){let l=[],a=e.getSpans(t.$gt[0]);if(a=orderByJson(a,"row","asc"),a.length>0)a.forEach(t=>{l.push(e.getValue(t.row,t.col))});else{e.getArray(t.$gt[0].row,t.$gt[0].col,t.$gt[0].rowCount,t.$gt[0].colCount).forEach(e=>{e.forEach(e=>{l.push(e)})})}y.push(l)}else y.push(t)}}let r=arguments.length;for(let l=1;l<r;l++){const t=arguments[l];if("string"==typeof t||"number"==typeof t)a.push(t);else{e=t.getSource().getSheet();const l=t.getRow(),n=t.getColumn(),o=t.getRowCount(),y=t.getColumnCount();e.getArray(l,n,o,y).forEach(e=>{e.forEach(e=>{(u||null!=e&&null!=e)&&a.push(e)})})}}function x(e){if(null===e||"object"!=typeof e)return!1;const l=Object.getPrototypeOf(e);return(null===l||l===Object.prototype)&&e.constructor===Object}if(0==a.length&&null!=o&&null!=a&&(a=[o]),null!=a&&null!=a&&a.length>0)for(var m=0;m<a.length;m++){let e=a[m];null!=e&&null!=e&&x(e)&&e.hasOwnProperty("con")&&e.hasOwnProperty("val")&&(a[m]=e.val)}if(null!=y&&null!=y&&y.length>0)for(m=0;m<y.length;m++){let e=y[m];if(null!=e&&null!=e&&e.length>0)for(var c=0;c<e.length;c++){let l=e[c];null!=l&&null!=l&&x(l)&&l.hasOwnProperty("con")&&l.hasOwnProperty("val")&&(y[m][c]=l.val)}}return n(l,e,{arguments:arguments,cellObj:t,allCellVals:a,allCellValsEw:y})},m},commFun:{getForRangeCellsValArr:e=>{let l=[];if(e.length>1){const t=e[0].source.getSheet();for(let a=1;a<e.length;a++){const n=e[a];let o=t.getArray(n.$gt[0].row,n.$gt[0].col,n.$gt[0].rowCount,n.$gt[0].colCount);l.push(o)}}return l},isNumber:e=>"number"==typeof e||/^(-?\d+)(\.\d+)?$/.test(e),convertToInt:e=>{let l=[];return e.forEach((e,t)=>{l.push(Number(e))}),l},getMax:e=>0==e.length?"":Math.max(...e),getMin:e=>0==e.length?"":Math.min(...e),getAverage:e=>{if(0==e.length)return"";let l=[];e.forEach(e=>{l.push(math.bignumber(e))});return math.mean(l).toNumber()},getNum:e=>{let l,t;const a=/[×φ*]/g;try{let n;t=e.split(a),"φ"==e.substring(0,1)?(n=t[1]-0,l=Math.PI*n*n/4):(l=t[0]-0,n=t[1]-0,l*=n)}catch(e){return 0}return l},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=preciseCalc(1,l,"div"),n=preciseCalc(e,a,"mul");const o=preciseCalc((e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(n),a,"div");let y=l+"";if(-1==y.indexOf("."))return t?-o:o;{const e=o+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<y.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${o}.${e}`}{const a=e.split(".")[1];if(y.split(".")[1].length>a.length)for(let e=0;e<y.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${o}${l}`}}},InterpolationMethod_y:(e,l,t,a,n)=>{let o=(n-e)*(t-a)/(e-l)+1*t;return isNaN(o)?"/":o},GetDataOddIncreaseEvenDecrease:(e,l)=>{let t,a,n,o;if(-1!=e.toString().indexOf("00000000")&&(e=e.toString().substring(0,e.toString().indexOf("00000000")+2)),-1!=e.toString().indexOf("999999")){let t=l;t<0&&(t=Math.abs(t-1)),e=parseFloat(e).toFixed(t)}if(l*=1,t=1,n=e*=1,1*Math.floor(e)==1*e)switch(l){case-7:o=e+".000000000";break;case-6:o=e+".00000000";break;case-5:o=e+".0000000";break;case-4:o=e+".000000";break;case-3:o=e+".00000";break;case-2:o=e+".0000";break;case-1:o=e+".000";break;case 1:o=e+".00";break;case 2:o=e+".0";break;case 3:o=e}else switch(l){case-7:o=(1*e).toFixed(9);break;case-6:o=(1*e).toFixed(8);break;case-5:o=(1*e).toFixed(7);break;case-4:o=(1*e).toFixed(6);break;case-3:o=(1*e).toFixed(5);break;case-2:o=(1*e).toFixed(4);break;case-1:o=(1*e).toFixed(3);break;case 1:o=(1*e).toFixed(2);break;case 2:o=(1*e).toFixed(1);break;case 3:o=1*e}if(1*o>1*n)switch(l){case-7:o=(o-1e-8).toFixed(9);break;case-6:o=(o-1e-8).toFixed(8);break;case-5:o=(o-1e-7).toFixed(7);break;case-4:o=(o-1e-6).toFixed(6);break;case-3:o=(o-1e-5).toFixed(5);break;case-2:o=(o-1e-4).toFixed(4);break;case-1:o=(o-.001).toFixed(3);break;case 1:o=(o-.01).toFixed(2);break;case 2:o=(o-.1).toFixed(1);break;case 3:o=(o-1).toFixed(0)}if(n=o+"1",o=n.substr(0,n.length-1),3==l||-1==l||-2==l||-3==l||-4==l||-5==l||-6==l||-7==l)if(50==o.substr(o.length-2,2))if(o.substr(o.length-3,1)%2==0)a=o.substr(0,o.length-2),-1!=e.toString().indexOf(o)&&1*e-1*o>0&&(a=e);else switch(a=o.substr(0,o.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}else if(o.substr(o.length-2,2)<50){if(a=o.substr(0,o.length-2),3===l)a=1*a*100}else if(o.substr(o.length-2,2)>50||o<e)switch(a=o.substr(0,o.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}switch(1==l&&(50==o.substr(o.length-2,2)?o.substr(o.length-4,1)%2==0?a=o.substr(0,o.length-3):(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t):o.substr(o.length-2,2)<50?a=o.substr(0,o.length-3):(o.substr(o.length-2,2)>50||1*o<e)&&(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t)),2==l&&(5==o.substr(o.length-3,3)&&1*o==e?o.substr(o.length-4,1)%2==0?a=10*o.substr(0,o.length-3):(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t):o.substr(o.length-3,3)<5?a=10*o.substr(0,o.length-3):(o.substr(o.length-3,3)>5||1*o<e)&&(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t)),l){case-7:n=(1*a).toFixed(7);break;case-6:n=(1*a).toFixed(6);break;case-5:n=(1*a).toFixed(5);break;case-4:n=(1*a).toFixed(4);break;case-3:n=(1*a).toFixed(3);break;case-2:n=(1*a).toFixed(2);break;case-1:n=(1*a).toFixed(1);break;default:n=(1*a).toFixed(0)}return isNaN(n)&&(n="/"),n},GetS:e=>{let l,t=0,a=e.length,n=0,o=0;for(let l=0;l<a;l++)t+=1*e[l];n=t/a;for(let l=0;l<a;l++)o+=(e[l]-n)*(e[l]-n);return l=Math.sqrt(o/(a-1)),isNaN(1*l)&&(l=""),l}},allCusFormulas:[{funName:"ZERO",funDesc:"将单元格值为空或/返回默认值0",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||null!=t.allCellValsEw[0][0]._error&&null!=t.allCellValsEw[0][0]._error||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?0:a}},{funName:"ONE",funDesc:"将单元格值为空或/返回默认值1",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?1:1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:a}},{funName:"SLASH",funDesc:"将单元格值为空或0(包括0.0、0.00等)返回默认值/",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),1==t.allCellVals.length&&0==t.allCellVals[0]&&1==t.allCellValsEw.length&&0==t.allCellValsEw[0]?"/":1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(0==t.allCellValsEw[0][0]||"0.0"==t.allCellValsEw[0][0]||"0.00"==t.allCellValsEw[0][0]||"0.000"==t.allCellValsEw[0][0]||"0.0000"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?"/":a}},{funName:"YJMAX",funDesc:"返回一组数值中的最大值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.max(...n)}},{funName:"YJMIN",funDesc:"返回一组数值中的最小值",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.min(...n)}},{funName:"YJSUM",funDesc:"计算单元格区域中所有数值的和",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":n.reduce((e,l)=>e+l,0)}},{funName:"YJCOUNT",funDesc:"计算区域中包含数字的单元格的个数",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;return t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),a?(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length):"/"}},{funName:"YJMID",funDesc:"获取所有选择的单元格中的中间值",funDefaultVal:null,funParams:[{name:"单元格范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{const a=t.allCellVals.filter(e=>{const l=Number(e);return!isNaN(l)&&0!==l&&isFinite(l)&&""!==e&&"/"!==e}).map(e=>Number(e));if(0===a.length)return"/";a.sort((e,l)=>e-l);const n=Math.floor(a.length/2);return a.length%2==1?a[n]:(a[n-1]+a[n])/2}},{funName:"YJAVERAGE",funDesc:"计算平均值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":FormulaUtils.commFun.getAverage(n)}},{funName:"YJRESULTPD",funDesc:"报告上根据技术要求判定",funDefaultVal:null,funParams:[{name:"技术要求",repeatable:!1,optional:!1},{name:"试验结果",repeatable:!1,optional:!1}],funCallback:(spread,sheet,retData)=>{let symbol="/";if(retData.allCellVals.length<2)return symbol;if(null!=retData.allCellVals[0]._error&&null!=retData.allCellVals[0]._error)return symbol;let jsyq=retData.allCellVals[0]+"",syjglist=[];retData.allCellVals.forEach((e,l)=>{l>0&&("/"==e||null==e||null!=e._error&&null!=e._error||syjglist.push(e))});let kk="合格";if(jsyq==symbol||"/"==jsyq||""==jsyq||syjglist.some(e=>"无效"==e)||0==syjglist.length)return symbol;for(let i=0;i<syjglist.length;i++){let k1=syjglist[i];if(-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">")||-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">"))if(jsyq=jsyq.replace("<","<"),jsyq=jsyq.replace(">",">"),-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf(">")&&-1==e.indexOf("<")||(e=jsyq.split(",")[0].replace(">",""),l=jsyq.split(",")[1].replace("<","")),kk=1*k1>1*e&&k1<1*l?"合格":"不合格")}else kk=eval(k1+jsyq)?"合格":"不合格";else if(-1!=jsyq.indexOf("≥")||-1!=jsyq.indexOf("不小于")||-1!=jsyq.indexOf("≮"))if(-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf("≥")&&-1==e.indexOf("≤")||(e=jsyq.split(",")[0].replace("≥",""),l=jsyq.split(",")[1].replace("≤","")),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格")}else{let e=1*jsyq.replace("≥","").replace("不小于","").replace("≮","");FormulaUtils.commFun.isNumber(k1)?kk=k1>e||k1==e?"合格":"不合格":-1!=k1.indexOf("大于")?kk=k1.replace("大于","")==jsyq.replace("≮","")?"合格":"不合格":-1!=k1.indexOf("不足")?kk="不合格":-1!=k1.indexOf("+")&&(kk=k1.replace("+","")>=e?"合格":"不合格")}else if(-1!=jsyq.indexOf("≤")||-1!=jsyq.indexOf("不大于")||-1!=jsyq.indexOf("≯")){let e=1*jsyq.replace("≤","").replace("不大于","").replace("≯","");kk=k1<e||k1==e?"合格":"不合格"}else if(-1!=jsyq.indexOf("≠")){let e=1*jsyq.replace("≠","");kk=k1!=e?"合格":"不合格"}else if(-1!=jsyq.indexOf("~")||-1!=jsyq.indexOf(",")||-1!=jsyq.indexOf("~")){let e,l;-1!=jsyq.indexOf("~")?(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf("~")?-1!=jsyq.split("~")[0].indexOf("+")?(e=jsyq.split("~")[1],l=jsyq.split("~")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf(",")&&(-1!=jsyq.split(",")[0].indexOf("+")?(e=jsyq.split(",")[1],l=jsyq.split(",")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.toString().indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split(",")[0],l=jsyq.split(",")[1])),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格"}else if(-1!=jsyq.indexOf("±")){let e=jsyq.split("±")[0],l=jsyq.split("±")[1],t=1*e-1*l,a=1*e+1*l;kk=k1>=t&&k1<=a?"合格":"不合格"}else FormulaUtils.commFun.isNumber(jsyq)&&(jsyq*=1),kk=k1>=jsyq?"合格":"不合格";if("不合格"==kk)return"不合格"}return kk}},{funName:"YJROUND",funDesc:"计算常规修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约精度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return t.allCellVals[0];let a=t.allCellVals[1],n=Number(t.allCellVals[0]);return n=Number(n.toFixed(8)),FormulaUtils.commFun.getRound(n,a)}},{funName:"YjGetNum",funDesc:"根据试件尺寸计算面积",funDefaultVal:null,funParams:[{name:"cellContent",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>t.allCellVals.length<1?"/":"string"!=typeof t.allCellVals[0]||0!=t.allCellVals[0].trim().length&&"/"!=t.allCellVals[0].trim()?FormulaUtils.commFun.getNum(t.allCellVals[0]):"/"},{funName:"YjGetS",funDesc:"计算标准差",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"/";let n=FormulaUtils.commFun.convertToInt(t.allCellVals),o=0,y=n.length,r=0,x=0;for(let e=0;e<y;e++)o+=1*n[e];r=o/y;for(let e=0;e<y;e++)x+=(n[e]-r)*(n[e]-r);const s=Math.sqrt(x/(y-1));return isNaN(1*s)?"":s}},{funName:"YjGetCv",funDesc:"计算变异系数Cv",funDefaultVal:null,funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=0,o=a.length,y=0,r=0;for(let e=0;e<o;e++)n+=1*a[e];y=n/o;for(let e=0;e<o;e++)r+=(a[e]-y)*(a[e]-y);const x=100*Math.sqrt(r/(o-1))/y;return x||""}},{funName:"YjInterpolationMethod",funDesc:"直线内插法(已知y求x)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentY",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=(t.allCellVals[4]-o)*(n-a)/(y-o)+1*a;return FormulaUtils.commFun.isNumber(r)?r:"/"}},{funName:"YjInterpolationMethod_Y",funDesc:"直线内插法(已知x求y)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentX",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=(t.allCellVals[4]-a)*(o-y)/(a-n)+1*o;return FormulaUtils.commFun.isNumber(r)?r:"/"}},{funName:"YJROUNDYX",funDesc:"计算有效数字修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约位数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"/";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=Math.floor(a[1]);if(n<=0||0==a[0])return a[0];const o=a[0].toPrecision(n);if(o.indexOf("e")>-1){const e=Number(o);return String(e).length>n?String(e).substring(0,n):e}return o}},{funName:"YJDZ",funDesc:"按照单元格点选顺序,优先提取最后一个有数据的单元格值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=[];return t.allCellVals.forEach(e=>{null!=e&&null!=e&&"/"!=e&&(null==e._error||null==e._error)&&(e+"").trim().length>0&&a.push(e)}),0==a.length?"/":a[a.length-1]}},{funName:"YJTKY",funDesc:"混凝土抗压强度",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.15",repeatable:!1,optional:!1},{name:"试验名称,如:混凝土抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(t.allCellVals[3]);t.allCellVals[4],r*=1;let x=FormulaUtils.commFun.getAverage(a),s=1*FormulaUtils.commFun.getMax(a),i=1*FormulaUtils.commFun.getMin(a),u=1*n+1*o+1*y-1*s-1*i;return Math.abs(s-u)>u*r&&Math.abs(i-u)>u*r?(x="无效",x):((Math.abs(s-u)>u*r||Math.abs(i-u)>u*r)&&(x=u),x)}},{funName:"YJJSKZ",funDesc:"水泥胶砂抗折",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗折",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(t.allCellVals[3]);t.allCellVals[4],r*=1;let x=[n,o,y],s=new Array;x.sort(function(e,l){return e-l});let i=FormulaUtils.commFun.getAverage(x);for(let e=0;e<x.length;e++)s[e]=Math.abs(x[e]-i),s.sort(function(e,l){return e-l});if(x.length>2){let e=FormulaUtils.commFun.getMax(s)/i,l=FormulaUtils.commFun.getMin(s)/i,t=s[1]/i;if(e<=r);else{if(Math.abs(e)>r&&Math.abs(l)>r&&Math.abs(t)>r)return i="作废",i;if(x[2]>i+r*i&&x[0]<i-r*i)i=x[1];else{let e=FormulaUtils.commFun.getMin(x),l=FormulaUtils.commFun.getAverage(x);i=e<l-.1*l?FormulaUtils.commFun.getAverage([x[1],x[2]]):FormulaUtils.commFun.getAverage([x[0],x[1]])}}}return i}},{funName:"YJJSKY",funDesc:"水泥胶砂抗压",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[0])&&FormulaUtils.commFun.isNumber(t.allCellVals[1])&&FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(a[3]),x=Number(a[4]),s=Number(a[5]),i=Number(t.allCellVals[6]);t.allCellVals[7],i*=1;let u=[n,o,y,r,x,s],m=new Array,c=new Array,h=new Array,p=new Array,f=0;u.sort(function(e,l){return e-l});let d,g=FormulaUtils.commFun.getAverage(u),b=0;m[0]=Math.abs(u[0]-g),m[1]=Math.abs(u[1]-g),m[2]=Math.abs(u[2]-g),m[3]=Math.abs(u[3]-g),m[4]=Math.abs(u[4]-g),m[5]=Math.abs(u[5]-g),p[0]=Math.abs(u[0]-g)/g,p[1]=Math.abs(u[1]-g)/g,p[2]=Math.abs(u[2]-g)/g,p[3]=Math.abs(u[3]-g)/g,p[4]=Math.abs(u[4]-g)/g,p[5]=Math.abs(u[5]-g)/g;for(let e=0;e<6;e++)p[e]>i&&f++;if(u.length>5){let e=FormulaUtils.commFun.getMax(m),l=FormulaUtils.commFun.getMin(m);if(e/g<=i&&l/g<=i)d=g;else if(f>=2)d="作废";else{for(let l=0;l<6;l++)e!=m[l]&&(c[b]=u[l],b++);g=FormulaUtils.commFun.getAverage(c),h[0]=Math.abs(c[0]-g),h[1]=Math.abs(c[1]-g),h[2]=Math.abs(c[2]-g),h[3]=Math.abs(c[3]-g),h[4]=Math.abs(c[4]-g);let l=FormulaUtils.commFun.getMax(h)/g,t=FormulaUtils.commFun.getMin(c),a=FormulaUtils.commFun.getMax(c),n=FormulaUtils.commFun.getAverage(c);if(a>n+n*i||t<n-n*i)return d="作废",d;l<=i&&(d=g)}}return d}},{funName:"YJTN",funDesc:"ta/√n()查表",funDefaultVal:null,funParams:[{name:"保证率",repeatable:!1,optional:!1},{name:"检测点数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a=100*t.allCellVals[0]+"",n=Number(t.allCellVals[1]),o=new Array,y=0;if(n>100)"99"==a?y=2.3265/Math.sqrt(n):"95"==a?y=1.6449/Math.sqrt(n):"90"==a&&(y=1.2815/Math.sqrt(n));else{"99"==a?o=new Array("2-22.501","3-4.021","4-2.270","5-1.676","6-1.374","7-1.188","8-1.060","9-0.966","10-0.892","11-0.833","12-0.785","13-0.744","14-0.708","15-0.678","16-0.651","17-0.626","18-0.605","19-0.586","20-0.568","21-0.552","22-0.537","23-0.523","24-0.510","25-0.498","26-0.487","27-0.477","28-0.467","29-0.458","30-0.449","40-0.383","50-0.340","60-0.308","70-0.285","80-0.266","90-0.249","100-0.236"):"95"==a?o=new Array("2-4.465","3-1.686","4-1.177","5-0.953","6-0.823","7-0.734","8-0.670","9-0.620","10-0.580","11-0.546","12-0.518","13-0.494","14-0.473","15-0.455","16-0.438","17-0.423","18-0.410","19-0.398","20-0.387","21-0.376","22-0.367","23-0.358","24-0.350","25-0.342","26-0.335","27-0.328","28-0.322","29-0.316","30-0.310","40-0.266","50-0.237","60-0.216","70-0.199","80-0.186","90-0.175","100-0.166"):"90"==a&&(o=new Array("2-2.176","3-1.089","4-0.819","5-0.686","6-0.603","7-0.544","8-0.500","9-0.466","10-0.437","11-0.414","12-0.393","13-0.376","14-0.361","15-0.347","16-0.335","17-0.324","18-0.314","19-0.305","20-0.297","21-0.289","22-0.282","23-0.275","24-0.269","25-0.264","26-0.258","27-0.253","28-0.248","29-0.244","30-0.239","40-0.206","50-0.184","60-0.167","70-0.155","80-0.145","90-0.136","100-0.129"));for(let e=0;e<o.length;e++){let l=o[e].split("-");l[0]==n&&(y=l[1])}}return y}},{funName:"YJSMD",funDesc:"水密度查表",funDefaultVal:null,funParams:[{name:"水的温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";let a,n=t.allCellVals[0]+"",o=new Array("15-0.99913","16-0.99897","17-0.99880","18-0.99862","19-0.99843","20-0.99822","21-0.99802","22-0.99779","23-0.99756","24-0.99733","25-0.99702");for(let e=0;e<o.length;e++){let l=o[e].split("-");n==l[0]&&(a=l[1])}if(n.length>2){let e=n;e=e.substring(0,e.indexOf("."));let l=0;for(let t=0;t<o.length;t++){e==o[t].split("-")[0]&&(l=t)}if(l==o.length-1){let e=o[l].split("-"),t=o[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}else{let e=o[l].split("-"),t=o[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}}return a}},{funName:"YJSYMD",funDesc:"水银密度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0]+"";return a="8"==n||"8.0"==n?"13.58":"10"==n||"10.0"==n||"12"==n||"12.0"==n?"13.57":"14"==n||"14.0"==n||"16"==n||"16.0"==n?"13.56":"18"==n||"18.0"==n||"20"==n||"20.0"==n?"13.55":"22"==n||"22.0"==n||"24"==n||"24.0"==n?"13.54":"26"==n||"26.0"==n||"28"==n||"28.0"==n?"13.53":"30"==n||"30.0"==n||"32"==n||"32.0"==n?"13.52":"34"==n||"34.0"==n?"13.51":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y("8","30","13.58","13.52",n),-2),a}},{funName:"YJKQND",funDesc:"空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"/"==t.allCellVals[0])return"/";let a,n=new Array("8-17.49","9-17.54","10-17.59","11-17.64","12-17.68","13-17.73","14-17.78","15-17.83","16-17.88","17-17.93","18-17.98","19-18.03","20-18.08","21-18.13","22-18.18","23-18.23","24-18.28","25-18.32","26-18.37","27-18.42","28-18.47","29-18.52","30-18.57","31-18.62","32-18.67","33-18.72","34-18.76"),o=t.allCellVals[0]+"";for(let e=0;e<n.length;e++){let l=n[e].split("-");o==l[0]&&(a=l[1])}if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<n.length;t++){e==n[t].split("-")[0]&&(l=t)}if(l==n.length-1){let e=n[l].split("-"),t=n[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-2)}else{let e=n[l].split("-"),t=n[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-2)}}return a}},{funName:"YJSBBZCA",funDesc:"3倍标准差方法剔除特异值:平均值(YJSBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+3*y*1,l=1*o-3*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJSBBZCS",funDesc:"3倍标准差方法剔除特异值:标准差(YJSBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+3*y*1,l=1*o-3*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t),y=FormulaUtils.commFun.GetS(t)}return y}},{funName:"YJTWL",funDesc:"计算混凝土抗弯拉强度",funDefaultVal:null,funParams:[{name:"断裂面1",repeatable:!1,optional:!1},{name:"断裂面2",repeatable:!1,optional:!1},{name:"断裂面3",repeatable:!1,optional:!1},{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[3])||!FormulaUtils.commFun.isNumber(t.allCellVals[4])||!FormulaUtils.commFun.isNumber(t.allCellVals[5]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=t.allCellVals[0],o=t.allCellVals[1],y=t.allCellVals[2],r=a[0],x=a[1],s=a[2],i="/",u=a;if(u.sort(function(e,l){return e-l}),"加荷点外"==n||"加荷点外"==o||"加荷点外"==y){if("加荷点外"==n&&"加荷点内"==o&&"加荷点内"==y){let e=FormulaUtils.commFun.getMin([x,s]);i=Math.abs(x-s)<=.15*e?FormulaUtils.commFun.getAverage([x,s]):"无效"}if("加荷点内"==n&&"加荷点外"==o&&"加荷点内"==y){let e=FormulaUtils.commFun.getMin([r,s]);i=Math.abs(r-s)<=.15*e?FormulaUtils.commFun.getAverage([r,s]):"无效"}if("加荷点内"==n&&"加荷点内"==o&&"加荷点外"==y){let e=FormulaUtils.commFun.getMin([x,r]);i=Math.abs(x-r)<=.15*e?FormulaUtils.commFun.getAverage([x,r]):"无效"}("加荷点外"==n&&"加荷点外"==o&&"加荷点内"==y||"加荷点内"==n&&"加荷点外"==o&&"加荷点外"==y||"加荷点外"==n&&"加荷点内"==o&&"加荷点外"==y)&&(i="无效")}else if("加荷点内"==n||"加荷点内"==o||"加荷点内"==y){let e=FormulaUtils.commFun.getMax([r,x,s]),l=FormulaUtils.commFun.getMin([r,x,s]);i=Math.abs(e-u[1])>.15*u[1]&&Math.abs(l-u[1])>.15*u[1]?"无效":Math.abs(e-u[1])>.15*u[1]||Math.abs(l-u[1])>.15*u[1]?u[1]:FormulaUtils.commFun.getAverage([r,x,s])}return i}},{funName:"YJHJGJPD",funDesc:"焊接钢筋结构判定(YJHJGJPD)",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2])||!FormulaUtils.commFun.isNumber(t.allCellVals[3]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[1],t.allCellVals[2],t.allCellVals[3]]),n=t.allCellVals[0],o=a[0],y=a[1],r=a[2],x=t.allCellVals[4],s=t.allCellVals[5],i=t.allCellVals[6],u="",m="";m="HRB335"==n||"HRB335E"==n?"≥455":"R235"==n?"≥370":"Q235"==n?"≥410":"HRB400"==n||"HRB400E"==n?"≥540":"HPB300"==n?"≥420":"HRB500"==n||"HRBF500"==n||"HRB500E"==n||"HRBF500E"==n?"≥630":"HRB600"==n?"≥730":"/",m=1*m.replace("≥","");let c=1*o,h=1*y,p=1*r;return u="/"!=x&&"/"!=s&&"/"!=i?c>=m&&h>=m&&p>=m?"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈脆性断裂"!=i||"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=x?"合格":("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==i||"断于焊缝,呈延性断裂"==i||"断于热影响区,呈延性断裂"==i)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于钢筋母材,呈脆性断裂"==s||"断于焊缝,呈延性断裂"==s||"断于热影响区,呈延性断裂"==s)&&("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==x||"断于焊缝,呈延性断裂"==x||"断于热影响区,呈延性断裂"==x)?"无效":"合格":c>=m&&h>=m&&p<m?"断于热影响区,呈延性断裂"==i?"无效":"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"!=i?"复检":("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=i)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&p>=m&&h<m?"断于热影响区,呈延性断裂"==s?"无效":"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=s?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=s)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":h>=m&&p>=m&&c<m?"断于热影响区,呈延性断裂"==x?"无效":"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=x?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=x)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&h<m&&p<m||h>=m&&c<m&&p<m||p>=m&&h<m&&c<m||c<m&&h<m&&p<m?"不合格":"无效":"/",u}},{funName:"YJYSXHP",funDesc:"液塑限:HP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a,n,o=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),y=t.allCellVals[0],r=t.allCellVals[1],x=o[0],s=o[1],i=o[2],u=o[3],m=o[4],c=o[5],h="/",p=20;"76"!=y&&76!=y||(p=17);let f,d,g=new Array,b=new Array,C=[x,s,i],S=[u,m,c];for(let e=0;e<C.length;e++)a=1*S[e],n=1*C[e],""!=a&&"/"!=a&&""!=n&&"/"!=n&&(g[e]=a,b[e]=n);function w(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function V(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(g.sort(function(e,l){return e-l}),b.sort(function(e,l){return e-l}),"细粒土"==r)if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,1),-1);else{a=g[2],n=V(a,1);let e=(1*w(g[2],b[2],g[0],b[0],n)+1*w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,1),-1)}else if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,0),-1);else{a=g[2],n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(a,0),-1);let e=(w(g[2],b[2],g[0],b[0],n)+w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,0),-1)}return h=d,isNaN(h)&&(h="/"),h}},{funName:"YJYSXWP",funDesc:"液塑限:WP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],o=t.allCellVals[1],y=a[0],r=a[1],x=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[y,r,x],V=[s,i,u];for(let e=0;e<w.length;e++)c=1*V[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function F(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==o)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*F(C[2],S[2],C[0],S[0],h)+1*F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(F(C[2],S[2],C[0],S[0],h)+F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}return f=p,isNaN(f)&&(f="/"),f}},{funName:"YSXWL",funDesc:"液塑限:WL值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],o=t.allCellVals[1],y=a[0],r=a[1],x=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[y,r,x],V=[s,i,u];for(let e=0;e<w.length;e++)c=1*V[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function F(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==o)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*F(C[2],S[2],C[0],S[0],h)+1*F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(F(C[2],S[2],C[0],S[0],h)+F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}return f=g,isNaN(f)&&(f="/"),f}},{funName:"YJLBBZCA",funDesc:"2倍标准差方法剔除特异值:平均值(YJLBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+2*y*1,l=1*o-2*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJLBBZCS",funDesc:"2倍标准差方法剔除特异值:标准差(YJLBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+2*y*1,l=1*o-2*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t),y=FormulaUtils.commFun.GetS(t)}return y}},{funName:"YJKBBZCA",funDesc:"k倍标准差方法剔除特异值:平均值(YJKBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let o=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||""==n[e]||(o[e]=n[e]);let y=FormulaUtils.commFun.getAverage(o);if(0===o.length||o.every(e=>e===o[0]))return y;let r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(o),-2);if(""==a||"/"==a)o.length,y*=1,r*=1;else{let e=1*y+1*a*r*1,l=1*y-1*a*r*1,t=new Array;for(let a=0;a<o.length;a++)o[a]>l&&o[a]<e&&t.push(o[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJKBBZCS",funDesc:"k倍标准差方法剔除特异值:标准差(YJKBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let o=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||(o[e]=n[e]);let y=FormulaUtils.commFun.getAverage(o),r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(o),-2);if(""==a||"/"==a)o.length,y*=1,r*=1;else{let e=1*y+1*a*r*1,l=1*y-1*a*r*1,t=new Array;for(let a=0;a<o.length;a++)o[a]>l&&o[a]<e&&t.push(o[a]);y=FormulaUtils.commFun.getAverage(t),r=FormulaUtils.commFun.GetS(t)}return r}},{funName:"YJKBBZCC",funDesc:"被剔除的特异值点数:YJKBBZCC",funDefaultVal:null,funParams:[{name:"弯沉左侧和右侧的数值范围",repeatable:!1,optional:!1},{name:"舍弃值的倍数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n,o=FormulaUtils.commFun.convertToInt(a),y=t.allCellVals[t.allCellVals.length-1],r=new Array;for(let e=0;e<o.length;e++)isNaN(o[e])||"/"==o[e]||(r[e]=o[e]);let x=FormulaUtils.commFun.getAverage(r),s=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(r),-2);if(""==y||"/"==y)n=r.length;else{let e=1*x+1*y*s*1,l=1*x-1*y*s*1,t=new Array;for(let a=0;a<r.length;a++)r[a]>l&&r[a]<e&&t.push(r[a]);n=t.length}return n}},{funName:"YJHTJD",funDesc:"回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试方向",repeatable:!1,optional:!1},{name:"角度",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a,n,o=t.allCellVals[0],y=t.allCellVals[1],r=t.allCellVals[2];function x(e,l){let t=0;return l>=50?90==e?t=-3.5:60==e?t=-3:45==e?t=-2.5:30==e?t=-1.5:-30==e?t=1:-45==e?t=1.5:-60==e?t=2:-90==e&&(t=2.5):l<=20&&(90==e?t=-6:60==e?t=-5:45==e?t=-4:30==e?t=-3:-30==e?t=2.5:-45==e?t=3:-60==e?t=3.5:-90==e&&(t=4)),t}if("非水平方向"==o){let e=new Array("90","60","45","30","-30","-45","-60","-90");for(let l=0;l<e.length;l++)if(y==e[l]){a=l;break}let l=[{x:20,y:-6},{x:21,y:-5.9},{x:22,y:-5.8},{x:23,y:-5.7},{x:24,y:-5.6},{x:25,y:-5.5},{x:26,y:-5.4},{x:27,y:-5.3},{x:28,y:-5.2},{x:29,y:-5.1},{x:30,y:-5},{x:31,y:-4.9},{x:32,y:-4.8},{x:33,y:-4.7},{x:34,y:-4.6},{x:35,y:-4.5},{x:36,y:-4.4},{x:37,y:-4.3},{x:38,y:-4.2},{x:39,y:-4.1},{x:40,y:-4},{x:41,y:-4},{x:42,y:-3.9},{x:43,y:-3.9},{x:44,y:-3.8},{x:45,y:-3.8},{x:46,y:-3.7},{x:47,y:-3.7},{x:48,y:-3.6},{x:49,y:-3.6},{x:50,y:-3.5}],t=[{x:20,y:-5},{x:21,y:-4.9},{x:22,y:-4.8},{x:23,y:-4.7},{x:24,y:-4.6},{x:25,y:-4.5},{x:26,y:-4.4},{x:27,y:-4.3},{x:28,y:-4.2},{x:29,y:-4.1},{x:30,y:-4},{x:31,y:-4},{x:32,y:-3.9},{x:33,y:-3.9},{x:34,y:-3.8},{x:35,y:-3.8},{x:36,y:-3.7},{x:37,y:-3.7},{x:38,y:-3.6},{x:39,y:-3.6},{x:40,y:-3.5},{x:41,y:-3.5},{x:42,y:-3.4},{x:43,y:-3.4},{x:44,y:-3.3},{x:45,y:-3.3},{x:46,y:-3.2},{x:47,y:-3.2},{x:48,y:-3.1},{x:49,y:-3.1},{x:50,y:-3}],o=[{x:20,y:-4},{x:21,y:-4},{x:22,y:-3.9},{x:23,y:-3.9},{x:24,y:-3.8},{x:25,y:-3.8},{x:26,y:-3.7},{x:27,y:-3.7},{x:28,y:-3.6},{x:29,y:-3.6},{x:30,y:-3.5},{x:31,y:-3.5},{x:32,y:-3.4},{x:33,y:-3.4},{x:34,y:-3.3},{x:35,y:-3.3},{x:36,y:-3.2},{x:37,y:-3.2},{x:38,y:-3.1},{x:39,y:-3.1},{x:40,y:-3},{x:41,y:-3},{x:42,y:-2.9},{x:43,y:-2.9},{x:44,y:-2.8},{x:45,y:-2.8},{x:46,y:-2.7},{x:47,y:-2.7},{x:48,y:-2.6},{x:49,y:-2.6},{x:50,y:-2.5}],s=[{x:20,y:-3},{x:21,y:-3},{x:22,y:-2.9},{x:23,y:-2.9},{x:24,y:-2.8},{x:25,y:-2.8},{x:26,y:-2.7},{x:27,y:-2.7},{x:28,y:-2.6},{x:29,y:-2.6},{x:30,y:-2.5},{x:31,y:-2.5},{x:32,y:-2.4},{x:33,y:-2.4},{x:34,y:-2.3},{x:35,y:-2.3},{x:36,y:-2.2},{x:37,y:-2.2},{x:38,y:-2.1},{x:39,y:-2.1},{x:40,y:-2},{x:41,y:-2},{x:42,y:-1.9},{x:43,y:-1.9},{x:44,y:-1.8},{x:45,y:-1.8},{x:46,y:-1.7},{x:47,y:-1.7},{x:48,y:-1.6},{x:49,y:-1.6},{x:50,y:-1.5}],i=[{x:20,y:2.5},{x:21,y:2.5},{x:22,y:2.4},{x:23,y:2.4},{x:24,y:2.3},{x:25,y:2.3},{x:26,y:2.2},{x:27,y:2.2},{x:28,y:2.1},{x:29,y:2.1},{x:30,y:2},{x:31,y:2},{x:32,y:1.9},{x:33,y:1.9},{x:34,y:1.8},{x:35,y:1.8},{x:36,y:1.7},{x:37,y:1.7},{x:38,y:1.6},{x:39,y:1.6},{x:40,y:1.5},{x:41,y:1.5},{x:42,y:1.4},{x:43,y:1.4},{x:44,y:1.3},{x:45,y:1.3},{x:46,y:1.2},{x:47,y:1.2},{x:48,y:1.1},{x:49,y:1.1},{x:50,y:1}],u=[{x:20,y:3},{x:21,y:3},{x:22,y:2.9},{x:23,y:2.9},{x:24,y:2.8},{x:25,y:2.8},{x:26,y:2.7},{x:27,y:2.7},{x:28,y:2.6},{x:29,y:2.6},{x:30,y:2.5},{x:31,y:2.5},{x:32,y:2.4},{x:33,y:2.4},{x:34,y:2.3},{x:35,y:2.3},{x:36,y:2.2},{x:37,y:2.2},{x:38,y:2.1},{x:39,y:2.1},{x:40,y:2},{x:41,y:2},{x:42,y:1.9},{x:43,y:1.9},{x:44,y:1.8},{x:45,y:1.8},{x:46,y:1.7},{x:47,y:1.7},{x:48,y:1.6},{x:49,y:1.6},{x:50,y:1.5}],m=[{x:20,y:3.5},{x:21,y:3.5},{x:22,y:3.4},{x:23,y:3.4},{x:24,y:3.3},{x:25,y:3.3},{x:26,y:3.2},{x:27,y:3.2},{x:28,y:3.1},{x:29,y:3.1},{x:30,y:3},{x:31,y:3},{x:32,y:2.9},{x:33,y:2.9},{x:34,y:2.8},{x:35,y:2.8},{x:36,y:2.7},{x:37,y:2.7},{x:38,y:2.6},{x:39,y:2.6},{x:40,y:2.5},{x:41,y:2.5},{x:42,y:2.4},{x:43,y:2.4},{x:44,y:2.3},{x:45,y:2.3},{x:46,y:2.2},{x:47,y:2.2},{x:48,y:2.1},{x:49,y:2.1},{x:50,y:2}],c=[{x:20,y:4},{x:21,y:4},{x:22,y:3.9},{x:23,y:3.9},{x:24,y:3.8},{x:25,y:3.8},{x:26,y:3.7},{x:27,y:3.7},{x:28,y:3.6},{x:29,y:3.6},{x:30,y:3.5},{x:31,y:3.5},{x:32,y:3.4},{x:33,y:3.4},{x:34,y:3.3},{x:35,y:3.3},{x:36,y:3.2},{x:37,y:3.2},{x:38,y:3.1},{x:39,y:3.1},{x:40,y:3},{x:41,y:3},{x:42,y:2.9},{x:43,y:2.9},{x:44,y:2.8},{x:45,y:2.8},{x:46,y:2.7},{x:47,y:2.7},{x:48,y:2.6},{x:49,y:2.6},{x:50,y:2.5}],h=new Array;if(""==a&&0!=a||"0"==y){let e,l,t=40,a=50;1*y>0?(e=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-2,y),l=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-1.5,y),n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t,a,e,l,r),-1)):n="0.0",(r>=50||r<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x(y,r),-1))}else{"90"==y?h=l:"60"==y?h=t:"45"==y?h=o:"30"==y?h=s:"-30"==y?h=i:"-45"==y?h=u:"-60"==y?h=m:"-90"==y&&(h=c);let e=-1;for(let l=0;l<h.length;l++){if(1*h[0].x>r){e=1;break}if(1*h[l].x>r){e=l;break}if(1*h[h.length-1].x<r){e=h.length-1;break}if(r==h[l].x){n=h[l].y;break}}if(-1!=e){let l=h[e-1].x,t=h[e-1].y,a=h[e].x,o=h[e].y;n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(l,a,t,o,r),-1)}(r>=50||r<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x(y,r),-1))}}else n="/";return n}},{funName:"YJHTJZM",funDesc:"回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a,n=t.allCellVals[0],o=Number(t.allCellVals[1]);if("表面"==n){let e=new Array;e=["20-2.5","21-2.4","22-2.3","23-2.2","24-2.1","25-2.0","26-1.9","27-1.8","28-1.7","29-1.6","30-1.5","31-1.4","32-1.3","33-1.2","34-1.1","35-1.0","36-0.9","37-0.8","38-0.7","39-0.6","40-0.5","41-0.4","42-0.3","43-0.2","44-0.1","45-0","46-0","47-0","48-0","49-0","50-0"];for(let l=1;l<11;l++)if(1*o>50)a="0";else if(1*o<20)a="2.5";else{o=Math.round(o);for(let l=0;l<e.length;l++){let t=e[l].split("-");o==t[0]&&(a=t[1])}}}else if("底面"==n){let e=new Array;e=["20-3.0","21-2.9","22-2.8","23-2.7","24-2.6","25-2.5","26-2.4","27-2.3","28-2.2","29-2.1","30-2.0","31-1.9","32-1.8","33-1.7","34-1.6","35-1.5","36-1.4","37-1.3","38-1.2","39-1.1","40-1.0","41-0.9","42-0.8","43-0.7","44-0.6","45-0.5","46-0.4","47-0.3","48-0.2","49-0.1","50-0"];for(let l=1;l<11;l++)if(1*o>50)a="0";else if(1*o<20)a="3.0";else{o=Math.round(o);for(let l=0;l<e.length;l++){let t=e[l].split("-");o==t[0]&&(a=-1*t[1])}}}return a}},{funName:"YJTKLZC",funDesc:"土的d60、d30、d10 计算)",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<25)return"";let a,n,o=t.allCellVals[0],y=t.allCellVals[1],r=t.allCellVals[2],x=t.allCellVals[3],s=t.allCellVals[4],u=t.allCellVals[5],m=t.allCellVals[6],c=t.allCellVals[7],h=t.allCellVals[8],p=t.allCellVals[9],f=t.allCellVals[10],d=t.allCellVals[11],g=t.allCellVals[12],b=t.allCellVals[13],C=t.allCellVals[14],S=t.allCellVals[15],w=t.allCellVals[16],V=t.allCellVals[17],F=t.allCellVals[18],E=t.allCellVals[19],N=t.allCellVals[20],A=t.allCellVals[21],v=t.allCellVals[22],D=t.allCellVals[23],U=t.allCellVals[24],J=[o,y,r,x,s,u,m,c,h,p,f,d],k=[g,b,C,S,w,V,F,E,N,A,v,D],O=new Array,M=new Array,L=0;for(let e=0;e<=11;e++)n=k[e],"/"==n||""==n||isNaN(n)||(0==n||1*n>0)&&(O[L]=n,-1!=J[e].indexOf("底")?M[L]="0.001":M[L]=J[e],L++);if(L<3)return;let j=0;for(i=0;i<O.length&&O[i]>=U;i++)j++;if(0==j)return;let I=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};var z;return I.x1=O[j-1],I.x2=O[j],I.y1=M[j-1],I.y2=M[j],I.x=U,a=1*(z=I).y1-(1*z.x1-1*z.x)*(1*z.y1-1*z.y2)/(1*z.x1-1*z.x2),a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(a,-1),a}},{funName:"YJJGX",funDesc:"集料坚固性公式",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"质量百分率数据区域",repeatable:!1,optional:!1},{name:"试验前烘干质量数据区域",repeatable:!1,optional:!1},{name:"试验后烘干质量数据区域",repeatable:!1,optional:!1},{name:"质量损失百分率数据区域",repeatable:!1,optional:!1},{name:"序号(从1开始)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],o=t.allCellValsEw[2],y=t.allCellValsEw[3],r=Number(t.allCellValsEw[4])-1,x="";for(let e=0;e<n.length;e++){if(!(parseFloat(a[r])<5)){x=isNaN(n[r])||isNaN(o[r])?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((parseFloat(n[r])-parseFloat(o[r]))/parseFloat(n[r])*100,-1);break}{let e=r-1,l=0,t=r+1,n=0;for(;e>=0&&parseFloat(a[e])<5;)e--;for(;t<=a.length&&parseFloat(a[t])<5;)t++;if(e>=0&&(l=parseFloat(y[e])),t<a.length&&(n=parseFloat(y[t])),l&&n){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((l+n)/2,-1);break}if(l){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(l,-1);break}if(n){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n,-1);break}}}return x}},{funName:"YJNC",funDesc:"内插值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数据区域Xn",repeatable:!1,optional:!1},{name:"数据区域Yn",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)可以为固定值 也可以为填入值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<3)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellValsEw[0].filter(e=>FormulaUtils.commFun.isNumber(e))),n=FormulaUtils.commFun.convertToInt(t.allCellValsEw[1].filter(e=>FormulaUtils.commFun.isNumber(e))),o=t.allCellValsEw[2];o=Array.isArray(o)&&o.length>0?Number(o[0]):Number(o);let y=[],r=[];a.forEach((e,l)=>{e&&0!=e&&(y.push(e),r.push(n[l]))}),a=y,n=r;let x=a,s=n,i=o;var u,m,c=new Array,h=new Array,p=0;i*=1;for(var f=0;f<=s.length;f++)m=s[f],isNaN(m)||(0==m||1*m>0)&&(h[p]=m,c[p]=x[f],p++);if(p<3)return"/";var d=0;if(c[0]>i){for(f=0;f<c.length&&c[f]>=i;f++)d++;if(0==d)return"/"}else if(c[0]<i){for(f=0;f<c.length&&c[f]<=i;f++)d++;if(0==d)return"/"}var g,b=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};return b.x1=c[d-1],b.x2=c[d],b.y1=h[d-1],b.y2=h[d],b.x=i,d==c.length?(b.x1=c[d-2],b.x2=c[d-1],b.y1=h[d-2],b.y2=h[d-1],b.x=i):0==d&&(b.x1=c[d],b.x2=c[d+1],b.y1=h[d],b.y2=h[d+1],b.x=i),u=b.y1==i?b.x1:1*(g=b).y1-(1*g.x1-1*g.x)*(1*g.y1-1*g.y2)/(1*g.x1-1*g.x2),isNaN(u)?"/":u}},{funName:"YJMDJWDJZ",funDesc:"土密度计温度校正查表",funDefaultVal:null,funParams:[{name:"密度计种类",repeatable:!1,optional:!1},{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2||"string"==typeof t.allCellVals[1]&&(0==t.allCellVals[1].trim().length||"/"==t.allCellVals[1]))return"/";let a,n=t.allCellVals[0],o=t.allCellVals[1],y=new Array;if(y[0]=["10.0","-2.0","-0.0012"],y[1]=["10.5","-1.9","-0.0012"],y[2]=["11.0","-1.9","-0.0012"],y[3]=["11.5","-1.8","-0.0011"],y[4]=["12.0","-1.8","-0.0011"],y[5]=["12.5","-1.7","-0.0010"],y[6]=["13.0","-1.6","-0.0010"],y[7]=["13.5","-1.5","-0.0009"],y[8]=["14.0","-1.4","-0.0009"],y[9]=["14.5","-1.3","-0.0008"],y[10]=["15.0","-1.2","-0.0008"],y[11]=["15.5","-1.1","-0.0007"],y[12]=["16.0","-1.0","-0.0006"],y[13]=["16.5","-0.9","-0.0006"],y[14]=["17.0","-0.8","-0.0005"],y[15]=["17.5","-0.7","-0.0004"],y[16]=["18.0","-0.5","-0.0003"],y[17]=["18.5","-0.4","-0.0003"],y[18]=["19.0","-0.3","-0.0002"],y[19]=["19.5","-0.1","-0.0001"],y[20]=["20.0","-0.0","-0.0000"],y[21]=["20.2","0.0","+0.0000"],y[22]=["20.5","+0.1","+0.0001"],y[23]=["21.0","+0.3","+0.0002"],y[24]=["21.5","+0.5","+0.0003"],y[25]=["22.0","+0.6","+0.0004"],y[26]=["22.5","+0.8","+0.0005"],y[27]=["23.0","+0.9","+0.0006"],y[28]=["23.5","+1.1","+0.0007"],y[29]=["24.0","+1.3","+0.0008"],y[30]=["24.5","+1.5","+0.0009"],y[31]=["25.0","+1.7","+0.0010"],y[32]=["25.5","+1.7","+0.0011"],y[33]=["26.0","+2.1","+0.0013"],y[34]=["26.5","+2.2","+0.0014"],y[35]=["27.0","+2.5","+0.0015"],y[36]=["27.5","+2.6","+0.0016"],y[37]=["28.0","+2.9","+0.0018"],y[38]=["28.5","+3.1","+0.0019"],y[39]=["29.0","+3.3","+0.0021"],y[40]=["29.5","+3.5","+0.0022"],y[41]=["30.0","+3.7","+0.0023"],""!=o&&"/"!=o&&"甲种"==n){for(let e=0;e<y.length;e++)if(1*y[e][0]==o)return a=y[e][1],a;if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<y.length;t++)e==y[t][0].substring(0,o.indexOf("."))&&(l=t);if(l==y.length-1){let e=y[l],t=y[l-1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1)}else{let e=y[l],t=y[l+1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1)}}}if(""!=o&&"/"!=o&&"乙种"==n){for(let e=0;e<y.length;e++)if(1*y[e][0]==o)return a=y[e][2],a;if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<y.length;t++)e==y[t][0].substring(0,o.indexOf("."))&&(l=t);if(l==y.length-1){let e=y[l],t=y[l-1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4)}else{let e=y[l],t=y[l+1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4)}}}return a}},{funName:"YJSDLNZXS",funDesc:"水的动力粘滞系数查表",funDefaultVal:null,funParams:[{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0]))return"/";let a,n=t.allCellVals[0],o=new Array;o[0]=["10.0","1.310"],o[1]=["10.5","1.292"],o[2]=["11.0","1.274"],o[3]=["11.5","1.256"],o[4]=["12.0","1.239"],o[5]=["12.5","1.223"],o[6]=["13.0","1.206"],o[7]=["13.5","1.190"],o[8]=["14.0","1.175"],o[9]=["14.5","1.160"],o[10]=["15.0","1.144"],o[11]=["15.5","1.130"],o[12]=["16.0","1.115"],o[13]=["16.5","1.101"],o[14]=["17.0","1.088"],o[15]=["17.5","1.074"],o[16]=["18.0","1.061"],o[17]=["18.5","1.048"],o[18]=["19.0","1.035"],o[19]=["19.5","1.022"],o[20]=["20.0","1.010"],o[21]=["20.5","0.998"],o[22]=["21.0","0.986"],o[23]=["21.5","0.974"],o[24]=["22.0","0.963"],o[25]=["22.5","0.952"],o[26]=["23.0","0.941"],o[27]=["23.5","0.930"],o[28]=["24.0","0.920"],o[29]=["24.5","0.909"],o[30]=["25.0","0.899"],o[31]=["25.5","0.889"],o[32]=["26.0","0.879"],o[33]=["26.5","0.869"],o[34]=["27.0","0.860"],o[35]=["27.5","0.850"],o[36]=["28.0","0.841"],o[37]=["28.5","0.832"],o[38]=["29.0","0.823"],o[39]=["29.5","0.814"];for(let e=1;e<=11;e++)if(""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1]);return a}},{funName:"YJK1",funDesc:"混凝土芯样强度K1查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],o=new Array;if(o[0]=["10","1.01730"],o[1]=["11","1.04127"],o[2]=["12","1.06247"],o[3]=["13","1.08141"],o[4]=["14","1.09848"],o[5]=["15","1.11394"],o[6]=["16","1.12812"],o[7]=["17","1.14112"],o[8]=["18","1.15311"],o[9]=["19","1.16423"],o[10]=["20","1.17458"],o[11]=["21","1.18425"],o[12]=["22","1.9330"],o[13]=["23","1.20181"],o[14]=["24","1.20982"],o[15]=["25","1.21739"],o[16]=["26","1.22455"],o[17]=["27","1.23135"],o[18]=["28","1.23780"],o[19]=["29","1.24395"],o[20]=["30","1.24981"],o[21]=["31","1.25540"],o[22]=["32","1.26075"],o[23]=["33","1.26588"],o[24]=["34","1.27079"],o[25]=["35","1.27079"],o[26]=["36","1.28004"],o[27]=["37","1.28441"],o[28]=["38","1.28861"],o[29]=["39","1.29266"],o[30]=["40","1.29657"],o[31]=["41","1.30035"],o[32]=["42","1.30399"],o[33]=["43","1.30752"],o[34]=["44","1.31094"],o[35]=["45","1.31425"],o[36]=["46","1.31746"],o[37]=["47","1.32058"],o[38]=["48","1.32360"],o[39]=["49","1.32653"],o[40]=["50","1.32939"],o[41]=["60","1.35412"],o[42]=["70","1.37364"],o[43]=["80","1.38959"],o[44]=["90","1.40294"],o[45]=["100","1.41433"],o[46]=["110","1.42421"],o[47]=["120","1.43289"],o[48]=["130","1.44060"],o[49]=["140","1.44750"],o[50]=["150","1.45372"],o[51]=["160","1.45938"],o[52]=["170","1.46456"],o[53]=["180","1.46931"],o[54]=["190","1.47370"],o[55]=["200","1.47777"],o[56]=["250","1.49443"],o[57]=["300","1.50687"],o[58]=["400","1.52453"],o[59]=["500","1.53671"],""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1]);return a}},{funName:"YJK2",funDesc:"混凝土芯样强度K2查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1},{name:"直径",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],o=t.allCellVals[1],y=new Array;if(y[0]=["10","2.91096","2.56837"],y[1]=["11","2.81499","2.50262"],y[2]=["12","2.73634","2.44825"],y[3]=["13","2.67050","2.40240"],y[4]=["14","2.61443","2.36311"],y[5]=["15","2.56600","2.32898"],y[6]=["16","2.52366","2.29900"],y[7]=["17","2.48626","2.27240"],y[8]=["18","2.45295","2.24862"],y[9]=["19","2.42304","2.22720"],y[10]=["20","2.39600","2.20778"],y[11]=["21","2.37142","2.19007"],y[12]=["22","2.34896","2.17385"],y[13]=["23","2.32832","2.15891"],y[14]=["24","2.30929","2.14510"],y[15]=["25","2.29167","2.13229"],y[16]=["26","2.27530","2.12037"],y[17]=["27","2.26005","2.10924"],y[18]=["28","2.24578","2.09881"],y[19]=["29","2.23241","2.08903"],y[20]=["30","2.21984","2.07982"],y[21]=["31","2.20800","2.07113"],y[22]=["32","2.19682","2.06292"],y[23]=["33","2.18625","2.05514"],y[24]=["34","2.17623","2.04776"],y[25]=["35","2.16672","2.04075"],y[26]=["36","2.15768","2.03407"],y[27]=["37","2.14906","2.02771"],y[28]=["38","2.14085","2.02164"],y[29]=["39","2.13300","2.01583"],y[30]=["40","2.12549","2.01027"],y[31]=["41","2.11831","2.00494"],y[32]=["42","2.11142","1.99983"],y[33]=["43","2.10481","1.99493"],y[34]=["44","2.09846","1.99021"],y[35]=["45","2.09235","1.98567"],y[36]=["46","2.08648","1.98130"],y[37]=["47","2.08081","1.97708"],y[38]=["48","2.07535","1.97302"],y[39]=["49","2.07008","1.96909"],y[40]=["50","2.06499","1.96529"],y[41]=["60","2.02216","1.93327"],y[42]=["70","1.98987","1.90903"],y[43]=["80","1.96444","1.87428"],y[44]=["90","1.94376","1.87428"],y[45]=["100","1.92654","1.86125"],y[46]=["110","1.91191","1.85017"],y[47]=["120","1.89929","1.84059"],y[48]=["130","1.88827","1.83222"],y[49]=["140","1.87852","1.82481"],y[50]=["150","1.86984","1.81820"],y[51]=["160","1.86203","1.81225"],y[52]=["170","1.85497","1.80686"],y[53]=["180","1.84854","1.80196"],y[54]=["190","1.84265","1.79746"],y[55]=["200","1.83724","1.79332"],y[56]=["250","1.81547","1.77667"],y[57]=["300","1.79964","1.76454"],y[58]=["400","1.77776","1.74773"],y[59]=["500","1.76305","1.73641"],"70"==o){if(""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1])}else if("100"==o&&""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][2]);return a}},{funName:"YJCSHTJZM",funDesc:"超声回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=new Array("20.0","25.0","30.0","35.0","40.0","45.0","50.0"),y=new Array("2.5","2.0","1.5","1.0","0.5","0","0"),r=new Array("3.0","2.5","2.0","1.5","1.0","0.5","0");1*n>50?n="50.0":1*n<20&&(n="20.0");let x="";if("/"!=n){if("侧面"==a)x="0.0";else if("顶面"==a){let e,l;l=!1;for(let t=0;t<o.length;t++)n!=o[t]||(e=y[t],l=!0);if(0==l)for(let l=0;l<y.length;l++)n>o[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(o[l],o[l+1],y[l],y[l+1],n));x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}else if("底面"==a){let e,l;l=!1;for(let t=0;t<r.length;t++)n!=o[t]||(e=r[t],l=!0);if(0==l)for(let l=0;l<r.length;l++)n>o[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(o[l],o[l+1],-r[l],-r[l+1],n));x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}return x}}},{funName:"YJCSHTQD",funDesc:"超声回弹强度换算计算",funDefaultVal:null,funParams:[{name:"fccu,i",repeatable:!1,optional:!1},{name:"υai^",repeatable:!1,optional:!1},{name:"Rai^",repeatable:!1,optional:!1},{name:"声速值平均值(km/s)",repeatable:!1,optional:!1},{name:"超声测试面修正系数β",repeatable:!1,optional:!1},{name:"回弹平均值",repeatable:!1,optional:!1},{name:"浇筑面修正值",repeatable:!1,optional:!1},{name:"角度修正值",repeatable:!1,optional:!1},{name:"平测声速修正系数λ",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<9)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m="";if("/"!=x&&""!=x&&"/"!=y&&""!=y){let e=1*y*r*u;(""==u||"/"==u||isNaN(u))&&(e=1*y*r);let l=1*x+1*i+1*s,t=1*a*Math.pow(e,n)*Math.pow(l,o);m=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(t,-1)}return m}},{funName:"YJCSHTJD",funDesc:"超声回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试角度",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o="";n>50?n="50.0":n<20&&(n="20.0");let y=new Array,r=new Array;if(a>0&&n.length>=2){y=new Array("30","45","60","90");let e=0;r[0]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),r[1]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35-3.3","40.0-3.0","45.0-2.8","50.0-2.5"),r[2]=new Array("20.0-5.0","25.0-4.5","30.0-4.0","35-3.8","40.0-3.5","45.0-3.3","50.0-3.0"),r[3]=new Array("20.0-6.0","25.0-5.5","30.0-5.0","35-4.5","40.0-4.0","45.0-3.8","50.0-3.5");for(let l=0;l<y.length;l++)y[l]==a&&(e=l);for(let l=0;l<r[e].length;l++){let t=new String;if(t=r[e][l],t=t.split("-"),t[0]==n)o=-t[1];else{let a;if(n>t[0]){let t,y;a=l,t=r[e][a],y=r[e][a+1],t=t.split("-"),y=y.split("-"),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],y[0],-t[1],-y[1],n),-1)}}}}else if(a<0&&n.length>=2){y=new Array("-30","-45","-60","-90");let e=0;r[0]=new Array("20.0-2.5","25.0-2.3","30.0-2.0","35.0-1.8","40.0-1.5","45.0-1.3","50.0-1.0"),r[1]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35.0-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),r[2]=new Array("20.0-3.5","25.0-3.3","30.0-3.0","35.0-2.8","40.0-2.5","45.0-2.3","50.0-2.0"),r[3]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35.0-3.3","40.0-3.0","45.0-2.8","50.0-2.5");for(let l=0;l<y.length;l++)y[l]==a&&(e=l);for(let l=0;l<r[e].length;l++){let t=new String;if(t=r[e][l],t=t.split("-"),t[0]==n)o=t[1];else{let a;if(Math.abs(n)>Math.abs(t[0])){let t,y;a=l,t=r[e][a],y=r[e][a+1],t=t.split("-"),y=y.split("-"),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],y[0],t[1],y[1],n),-1)}}}}return"0"==a&&(o="0"),isNaN(o)||""==o?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(o,-1)}},{funName:"YJTDM",funDesc:"土样定名及代号",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"液限",repeatable:!1,optional:!1},{name:"塑限",repeatable:!1,optional:!1},{name:"不均匀系数",repeatable:!1,optional:!1},{name:"曲率系数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<28)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12],f=t.allCellVals[13],d=t.allCellVals[14],g=t.allCellVals[15],b=t.allCellVals[16],C=t.allCellVals[17],S=t.allCellVals[18],w=t.allCellVals[19],V=t.allCellVals[20],F=t.allCellVals[21],E=t.allCellVals[22],N=t.allCellVals[23],A=t.allCellVals[24],v=t.allCellVals[25],D=t.allCellVals[26],U=t.allCellVals[27],J=[a+"-"+n,o+"-"+y,r+"-"+x,s+"-"+i,u+"-"+m,c+"-"+h,p+"-"+f,d+"-"+g,b+"-"+C,S+"-"+w,V+"-"+F,E+"-"+N];function k(e,l){let t="0";for(let a=0;a<J.length;a++){let n=J[a].split("-");1*n[0]==1*e&&("Y"==l?t=100-n[1]:"Z"==l&&(t=n[1]))}return t}let O="/";return 1*k("60","Y")>15?1*k("60","Y")>75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石B":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石Cb"):1*k("60","Y")>50&&1*k("60","Y")<=75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石夹土BSl":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石夹土CbSl"):1*k("60","Y")>15&&1*k("60","Y")<=50&&(1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石质土SlB":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石质土SlCb")):1*k("60","Y")<=15&&(1*k("0.075","Y")>50?1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))>0?k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砾GW":"级配不良砾GP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砾GF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=v<.73*(1*A-20)?"粉土质砾GM":"黏土质砾GC"):1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))<=0&&(k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砂SW":"级配不良砂SP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砂SF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=v<.73*(1*A-20)?"粉土质砂SM":"黏土质砂SC")):1*k("0.075","Y")<=50&&(1*k("0.075","Y")-1*k("60","Y")<=25?v>=.73*(1*A-20)?1*A>=50?O="高液限黏土CH":1*A<50&&v>7&&(O="低液限黏土CL"):1*A>=50?O="高液限粉土MH":1*A<50&&v<4&&(O="低液限粉土ML"):1*(1*k("0.075","Y")-1*k("60","Y"))>25&&1*(1*k("0.075","Y")-1*k("60","Y"))<=50&&(1*k("2","Y")-1*k("60","Y")-(1*k("0.075","Y")-1*k("2","Y"))>=0?v>=.73*(1*A-20)?A>=50?O="含砾高液限黏土CHG":A<50&&v>7&&(O="含砾低液限黏土CLG"):A>=50?O="含砾高液限粉土MHG":A<50&&v<4&&(O="含砾低液限粉土MLG"):v>=.73*(1*A-20)?A>=50?O="含砂高液限黏土CHS":A<50&&v>7&&(O="含砂低液限黏土CLS"):A>=50?O="含砂高液限粉土MHS":A<50&&v<4&&(O="含砂低液限粉土MLS")))),O}},{funName:"YJHTQD",funDesc:"回弹强度换算查表",funDefaultVal:null,funParams:[{name:"浇筑方式",repeatable:!1,optional:!1},{name:"修正后回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];return FormulaUtilsOther.YJHTQD(FormulaUtils.commFun,a,n,o)}},{funName:"DJCZL",funDesc:"地基承载力计算",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"N63.5",repeatable:!1,optional:!1},{name:"修正系数",repeatable:!1,optional:!1},{name:"机械修正/水位修正",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<4)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3];var r,x=0;return"/"!=n&&""!=n||(n="1"),x="水位修正"==y?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*o*1.1+1,1):"机械修正"==y?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*o,1):n,"中砂-砂砾土"==a?x<3?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x,1):x>=3&&x<=5?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+30,1):x>5&&(r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x-20,1)):x<3?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(140/3*x,1):x>=3&&x<=5?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+50,1):x>5&&x<=12?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x,1):x>12&&x<=22?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+120,1):x>22&&x<=24?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(25*x+230,1):x>24&&x<=26?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(20*x+350,1):x>26&&x<=30?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(15*x+480,1):x>30&&x<=35?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(8*x+690,1):x>35&&(r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(6*x+760,1)),r}},{funName:"YJLJJSYQ",funDesc:"钢筋机械连接技术要求",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头等级",repeatable:!1,optional:!1},{name:"拉断性状",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];var y;if("I级"==n){"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥594":"≥540":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥693":"≥630":"HRB600"==a&&(y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥803":"≥730")}else"II级"==n?"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="≥540":"HRB335"==a||"HRBF335"==a?y="≥455":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="≥630":"HRB600"==a&&(y="≥730"):"III级"==n&&("HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="≥500":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="≥625":"HRB600"==a&&(y="≥750"));return y}},{funName:"YJLJGJPD",funDesc:"机械连接钢筋结构判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),o=1*o.replace("≥",""),"/"!=y&&"/"!=r&&"/"!=x?y>=a&&r>=n&&x>=o?"合格":y>=a&&r>=n&&x<o||y>=a&&r<n&&x>=o||y<a&&r>=n&&x>=o?"复检":"不合格":"/"}},{funName:"YJLJFJPD",funDesc:"机械连接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"技术要求4",repeatable:!1,optional:!1},{name:"技术要求5",repeatable:!1,optional:!1},{name:"技术要求6",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1},{name:"抗压强度4",repeatable:!1,optional:!1},{name:"抗压强度5",repeatable:!1,optional:!1},{name:"抗压强度6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<12)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),o=1*o.replace("≥",""),y=1*y.replace("≥",""),r=1*r.replace("≥",""),x=1*x.replace("≥",""),isNaN(s)||isNaN(i)||isNaN(u)||isNaN(m)||isNaN(c)||isNaN(h)?"/":s>=a&&i>=n&&u>=o&&m>=y&&c>=r&&h>=x?"合格":"不合格"}},{funName:"YJHJFJPD",funDesc:"焊接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"接头极限强度4",repeatable:!1,optional:!1},{name:"接头极限强度5",repeatable:!1,optional:!1},{name:"接头极限强度6",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1},{name:"断裂形状4",repeatable:!1,optional:!1},{name:"断裂形状5",repeatable:!1,optional:!1},{name:"断裂形状6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<13)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12];var f,d=new Array,g=new Array,b=0,C=0,S="/";if("/"!=(f=1*(f="HRB335"==a?"≥455":"R235"==a?"≥370":"Q235"==a?"≥410":"HRB400"==a||"HRB400E"==a?"≥540":"HPB300"==a?"≥420":"HRB500"==a||"HRBF500"==a||"HRB500E"==a||"HRBF500E"==a?"≥630":"/").replace("≥",""))&&"/"!=n&&"/"!=o&&"/"!=y&&"/"!=r&&"/"!=x&&"/"!=s&&"/"!=i&&"/"!=u&&"/"!=m&&"/"!=c&&"/"!=h&&"/"!=p){d.push(n,o,y,r,x,s),g.push(i,u,m,c,h,p);for(var w=0;w<d.length;w++)1*d[w]<f&&b++;for(var V=0;V<g.length;V++)"断于焊缝,呈脆性断裂"!=g[V]&&"断于热影响区,呈脆性断裂"!=g[V]||C++;S=b>0||C>=3?"不合格":"合格"}return S}},{funName:"YJWJLKQND",funDesc:"无机结合料空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,o=new Array("8-17.49","10-17.59","12-17.68","14-17.78","16-17.88","18-17.98","20-18.09","22-18.19","24-18.28","26-18.37","28-18.47","30-18.57","32-18.67","34-18.76"),y=0;y<o.length;y++){a==(s=o[y].split("-"))[0]&&(n=s[1])}if(a.length>0){var r=a.substring(0,a.indexOf(".")),x=0;for(y=0;y<o.length;y++){var s;r==(s=o[y].split("-"))[0]&&(x=y)}if(x==o.length-1){var i=o[x].split("-"),u=o[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}else{i=o[x].split("-"),u=o[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}}return n}},{funName:"YJYSSMD",funDesc:"岩石-水密度公式",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,o=new Array("5-0.9999919","6-0.9999681","7-0.9999295","8-0.9998762","9-0.9998088","10-0.9997277","11-0.9996328","12-0.9995247","13-0.9994040","14-0.9992712","15-0.9991265","16-0.9989701","17-0.9988022","18-0.9986232","19-0.9984331","20-0.9982323","21-0.9980210","22-0.9977993","23-0.9975674","24-0.9973256","25-0.9970739","26-0.9968128","27-0.9965241","28-0.9962623","29-0.9959735","30-0.9956756","31-0.9953692","32-0.9950542","33-0.9947308","34-0.9943991","35-0.9940594"),y=0;y<o.length;y++){if(a==(s=o[y].split("-"))[0]){n=s[1];break}}if(String(a).length>2){var r=parseInt(a),x=0;for(y=0;y<o.length;y++){var s=o[y].split("-");r==Number(s[0])&&(x=y)}if(x==o.length-1){var i=o[x].split("-"),u=o[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}else{i=o[x].split("-"),u=o[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}}return n}},{funName:"YJHTTDZ",funDesc:"混凝土强度推定値公式",funDefaultVal:null,funParams:[{name:"强度换算值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{let a=[];t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{a.push(e)}):a.push(e)});let n=a;var o,y=0,r=new Array,x=new Array,s=new Array;for(let e=0;e<10;e++)""!=n[e]&&"/"!=n[e]&&(r[y]=n[e],1*n[e],y++),(n[e].indexOf("<")>-1||n[e].indexOf(">")>-1)&&x.push(n[e]),-1==n[e].indexOf("<")&&-1==n[e].indexOf(">")&&-1==n[e].indexOf("/")&&s.push(n[e]);return o=1*(o=FormulaUtils.commFun.getAverage(a.filter(e=>FormulaUtils.commFun.isNumber(e))))-1.645*FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(s),-3),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(o,-1),10==r.length?10==x.length?">60.0":x.length>0?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1):o:s.length<1?">60.0":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1)}},{funName:"YJSXS",funDesc:"水温查表",funDefaultVal:null,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0]+"";for(var n=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008"),o=0;o<n.length;o++){a==(x=n[o].split("-"))[0]&&(y=x[1])}if(a.length>2){var y;y=(y=a).substring(0,y.indexOf("."));var r=0;for(o=0;o<n.length;o++){var x;y==(x=n[o].split("-"))[0]&&(r=o)}if(r==n.length-1){var s=n[r].split("-"),i=n[r-1].split("-");y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=n[r].split("-"),i=n[r+1].split("-");y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return y}},{funName:"YJFN635",funDesc:"重型动力触探承载力查表",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"修正后击数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var o;if("中砂、粗砂、砾砂"==a)var y=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008");else y=new Array("3-140","4-170","5-200","6-240","7-280","8-320","9-360","10-400","12-480","14-540","16-600","18-660","20-720","22-780","24-830","26-870","28-900","30-930","35-970","40-1000");for(var r=0;r<y.length;r++){var x=y[r].split("-");n==x[0]&&(o=x[1])}return o}},{funName:"YJLHL",funDesc:"沥青蜡含量",funDefaultVal:null,funParams:[{name:"析出蜡质量1",repeatable:!1,optional:!1},{name:"析出蜡质量2",repeatable:!1,optional:!1},{name:"析出蜡质量3",repeatable:!1,optional:!1},{name:"蜡含量1",repeatable:!1,optional:!1},{name:"蜡含量2",repeatable:!1,optional:!1},{name:"蜡含量3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";var a=[t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]],n=[t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]],o=a.map(e=>+e>=.065&&+e<=.085).map((e,l)=>e?l:-1).filter(e=>e>=0);if(0===o.length)return"重新试验";var y=o.map(e=>+n[e]),r=y.reduce((e,l)=>e+l)/y.length;return FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r,-1)}},{funName:"YJNFX",funDesc:"沥青黏附性",funDefaultVal:null,funParams:[{name:"沥青膜剥落情况",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];return"沥青膜裹覆率接近100%"==a?"5":"沥青膜少部剥落,厚度不均,沥青膜裹覆率不小于90%"==a?"4":"沥青膜局部明显剥落,沥青膜裹覆率为75%~90%"==a?"3":"沥青膜大部分剥落,沥青膜裹覆率为25%~75%"==a?"2":"沥青膜几乎完全剥落,沥青膜裹覆率小于25%"==a?"1":"/"}},{funName:"YJNDCS",funDesc:"沥青黏度常数",funDefaultVal:null,funParams:[{name:"毛细管型号",repeatable:!1,optional:!1},{name:"标管编号",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var o;if("管B"==n)var y=new Array("25-0.2","50-0.8","100-3.2","200-12.8","400-50.0");else if("管C"==n)y=new Array("25-0.1","50-0.4","100-1.6","200-6.4","400-25.0");else if("管D"==n)y=new Array("25-0.07","50-0.3","100-1.0","200-4.0","400-16.0");else if("球B"==n)y=new Array("4-0.0002","5-0.0006","6-0.002","7-0.006","8-0.02","9-0.06");else if("球C"==n)y=new Array("4-0.00006","5-0.0002","6-0.0006","7-0.002","8-0.006","9-0.02");for(var r=0;r<y.length;r++){var x=y[r].split("-");a==x[0]&&(o=x[1])}return o}},{funName:"YJTXHF",funDesc:"沥青弹性恢复率",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];var y=[a,n,o],r=(1*a+1*n+1*o)/3;if(Math.max(...y)-Math.min(...y)<=.05*r)return r;var x=y.slice().sort((e,l)=>e-l);return 1*x[2]-1*x[1]<=.05*r?(1*x[1]+1*x[2])/2:"/"}},{funName:"YJSZF",funDesc:"沥青四组分FID法",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1},{name:"标准差",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n=t.allCellVals[t.allCellVals.length-1];var o;if(o=FormulaUtils.commFun.getAverage(a),n<=5)return o;a.sort((e,l)=>e-l),a.shift(),a.pop();var y=FormulaUtils.commFun.GetS(a),r=FormulaUtils.commFun.getAverage(a);return o=y<=5?r:"无效"}},{funName:"YJSZFBZC",funDesc:"四组分标准差",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals;var n;return(n=FormulaUtils.commFun.GetS(a))<=5?n:(a.sort((e,l)=>e-l),a.shift(),a.pop(),n=FormulaUtils.commFun.GetS(a))}},{funName:"YJFRAC",funDesc:"根据小数返回分数(1/x)形式的文本(如:1/300、1/478)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"被除数",repeatable:!1,optional:!1},{name:"除数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";const a=t.allCellVals[0],n=t.allCellVals[1],o=preciseCalc(a,n,"div"),y=Math.abs(preciseCalc(n,a,"div"));let r=Math.round(y);r<1&&(r=1);const x=o<0?"-":"";return l.getCell(t.cellObj.row,t.cellObj.col).formatter(`${x}1/${r}`),o}},{funName:"YJDXPD",funDesc:"单项判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"判定范围,格式如:-2,2、-2~2或±2",repeatable:!1,optional:!1},{name:"判定值,如:1",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";try{const e=t.allCellVals[0],l=t.allCellVals[1];if(null==e||null==e||"string"!=typeof e||"number"!=typeof l||isNaN(l))return"/";const a=e.replace(/\s/g,"");let n,o;if(a.includes(",")){const e=a.split(",");if(2!==e.length)return"/";n=parseFloat(e[0]),o=parseFloat(e[1])}else if(a.includes("~")){const e=a.split("~");if(2!==e.length)return"/";n=parseFloat(e[0]),o=parseFloat(e[1])}else{if(!a.includes("±"))return"/";{const e=a.replace("±",""),l=parseFloat(e);if(isNaN(l))return"/";n=-l,o=l}}return isNaN(n)||isNaN(o)?"/":l>=n&&l<=o?"合格":"不合格"}catch(e){return"/"}}},{funName:"YJTEXTJOIN",funDesc:"此函数将多个区域和/或字符串的文本组合起来,并包括你在要组合的各文本值之间指定的分隔符。",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"需要用作判断的数字数组、字符串数组或单值",repeatable:!1,optional:!1},{name:"返回值的数组",repeatable:!1,optional:!1},{name:"比较大小或比较相等的字符串,格式为:“>”、“<”、“>=”、“<=”、“=”、“±”",repeatable:!1,optional:!1},{name:"比较的值,类型为数字类型或字符串类型,如:3或“合格”",repeatable:!1,optional:!1},{name:"返回值的分隔符,默认为:,",repeatable:!1,optional:!1},{name:"是否返回相反的结果(传数字的1或0,0:满足条件的结果、1:相反的结果),默认为:0",repeatable:!1,optional:!1},{name:"是否返回符合或不符合结果的数量(传数字的1或0,0:不返回数量、1:返回数量),默认为:0",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"/";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],o=t.allCellValsEw[2],y=t.allCellValsEw[3],r=t.allCellValsEw[4],x=t.allCellValsEw.length<6?0:t.allCellValsEw[5],s=t.allCellValsEw.length<7?0:t.allCellValsEw[6];try{(null==a||null==a||"string"==typeof a&&0==a.trim().length)&&(a=[]),(null==n||null==n||"string"==typeof n&&0==n.trim().length)&&(n=[]),("number"==typeof a||"string"==typeof a&&a.trim().length>0)&&(a=[a]),"string"==typeof n&&n.trim().length>0&&(n=[n]),Array.isArray(o)&&o.length>0&&(o=o[0]),Array.isArray(y)&&y.length>0&&(y=y[0]),Array.isArray(r)&&r.length>0&&(r=r[0]),Array.isArray(x)&&x.length>0&&(x=x[0]),Array.isArray(s)&&s.length>0&&(s=s[0]),"1"!=x&&"0"!=x||(x=parseInt(x)),0!=x&&1!=x&&(x=0),"1"!=s&&"0"!=s||(s=parseInt(s)),0!=s&&1!=s&&(s=0);const e=n.length>a.length&&1==a.length;if(!Array.isArray(a)||!Array.isArray(n)||"string"!=typeof o||"string"!=typeof r)return"/";if(![">",">","<","<",">=","≥","≧","<=","≤","≦","=","=","±"].includes(o))return"/";const l=a.length>0&&("number"==typeof a[0]||!isNaN(parseFloat(a[0]))),t=[],i=[];for(let r=0;r<n.length;r++){let x=!1;if(l){const l=e?parseFloat(a[0]):parseFloat(a[r]),t=parseFloat(n[r]),s=parseFloat(y);if(isNaN(l)||isNaN(s)&&!e)continue;switch(o){case">":case">":x=e?t>l:l>s;break;case"<":case"<":x=e?t<l:l<s;break;case">=":case"≥":case"≧":x=e?t>=l:l>=s;break;case"<=":case"≤":case"≦":x=e?t<=l:l<=s;break;case"=":case"=":x=e?t===l:l===s;break;case"±":x=t>=l-s&&t<=l+s}}else x=String(a[r])===String(y);x?t.push(r):i.push(r)}const u=(0==x?t:i).map(e=>e>=0&&e<n.length?String(n[e]):"").filter(e=>""!==e&&"/"!=e&&"null"!=e&&null!=e&&null!=e);return 1==s?u.length:u.join(r)}catch(e){return"/"}}},{funName:"YJDLNZXSB",funDesc:"水温修正系数查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";const a=t.allCellVals[0];for(var n="/",o=new Array("18-1.050","18.5-1.038","19-1.025","19.5-1.012","20-1.000","20.5-0.988","21-0.976","21.5-0.965","22-0.953"),y=0;y<o.length;y++){a==(x=o[y].split("-"))[0]&&(n=x[1])}if(a.length>2){n=a;var r=0;for(y=0;y<o.length;y++){var x;n==(x=o[y].split("-"))[0]&&(r=y)}if(r==o.length-1){var s=o[r].split("-"),i=o[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=o[r].split("-"),i=o[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return n}},{funName:"YJWDDLZ",funDesc:"马歇尔稳定度/流值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超过比例,如:0.15、0.2",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<7)return"/";const a=t.allCellValsEw[0][0],n=t.allCellValsEw[1][0],o=t.allCellValsEw[2][0],y=t.allCellValsEw[3][0],r=t.allCellValsEw[4][0],x=t.allCellValsEw[5][0],s=t.allCellValsEw[6];if("number"!=typeof s||isNaN(s))return"/";const i=[parseFloat(a),parseFloat(n),parseFloat(o),parseFloat(y),parseFloat(r),parseFloat(x)];let u=0,m=[];for(let e=0;e<i.length;e++)"number"!=typeof i[e]||isNaN(i[e])?u++:m.push(i[e]);if(u==i.length)return"/";const c=m.reduce((e,l)=>preciseCalc(e,l,"add"),0),h=preciseCalc(c,m.length,"div");if(0===m.filter(e=>preciseCalc(e,h,"sub")>preciseCalc(s,e,"mul")).length)return h;const p=m.filter(e=>preciseCalc(e,h,"sub")<=preciseCalc(s,e,"mul"));if(0===p.length)return"/";const f=p.reduce((e,l)=>preciseCalc(e,l,"add"),0);return preciseCalc(f,p.length,"div")}},{funName:"YJSDXNPD",funDesc:"色度性能判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"技术要求,固定传入的值,格式如:0,0;0,10;10,10;10,0",repeatable:!1,optional:!1},{name:"x试验结果",repeatable:!1,optional:!1},{name:"y试验结果",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=a.split(";").map(e=>{const[l,t]=e.split(",").map(Number);return{x:l,y:t}});if(4!==y.length)return"/";const r={x:n,y:o};let x=!1;const s=y.length;function i(e,l,t){const a=(e.y-l.y)*(t.x-l.x)-(e.x-l.x)*(t.y-l.y);if(Math.abs(a)>1e-10)return!1;const n=(e.x-l.x)*(t.x-l.x)+(e.y-l.y)*(t.y-l.y);if(n<0)return!1;return!(n>(t.x-l.x)**2+(t.y-l.y)**2)}for(let e=0,l=s-1;e<s;l=e++){const t=y[e].x,a=y[e].y,s=y[l].x,u=y[l].y;if(i(r,y[e],y[l]))return"合格";a>o!=u>o&&n<(s-t)*(o-a)/(u-a)+t&&(x=!x)}return x?"合格":"不合格"}},{funName:"YJCQHTQD",funDesc:"高强度回弹抗压强度查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"实测回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";const a=t.allCellVals[0],n=t.allCellVals[1];var o,y=new Array,r=new Array,x=new Array,s=new Array,i=new Array;y=["30.0-50.1","30.1-50.3","30.2-50.6","30.3-50.8","30.4-51.1","30.5-51.4","30.6-51.6","30.7-51.9","30.8-52.2","30.9-52.4","31.0-52.7","31.1-53.0","31.2-53.2","31.3-53.5","31.4-53.8","31.5-54.0","31.6-54.3","31.7-54.6","31.8-54.8","31.9-55.1","32.0-55.4","32.1-55.6","32.2-55.9","32.3-56.2","32.4-56.5","32.5-56.7","32.6-57.0","32.7-57.3","32.8-57.6","32.9-57.8","33.0-58.1","33.1-58.4","33.2-58.7","33.3-58.9","33.4-59.2","33.5-59.5","33.6-59.8","33.7-60.0","33.8-60.3","33.9-60.6","34.0-60.9","34.1-61.2","34.2-61.4","34.3-61.7","34.4-62.0","34.5-62.3","34.6-62.6","34.7-62.9","34.8-63.1","34.9-63.4","35.0-63.7","35.1-64.0","35.2-64.3","35.3-64.6","35.4-64.9","35.5-65.1","35.6-65.4","35.7-65.7","35.8-66.0","35.9-66.3","36.0-66.6","36.1-66.9","36.2-67.2","36.3-67.5","36.4-67.7","36.5-68.0","36.6-68.3","36.7-68.6","36.8-68.9","36.9-69.2","37.0-69.5","37.1-69.8","37.2-70.1","37.3-70.4","37.4-70.7","37.5-71.0","37.6-71.3","37.7-71.6","37.8-71.9","37.9-72.2","38.0-72.5","38.1-72.8","38.2-73.1","38.3-73.4","38.4-73.7","38.5-74.0","38.6-74.3","38.7-74.6","38.8-74.9","38.9-75.2","39.0-75.5","39.1-75.8","39.2-76.1","39.3-76.4","39.4-76.7","39.5-77.0","39.6-77.3","39.7-77.6","39.8-77.9","39.9-78.2","40.0-78.5","40.1-78.8","40.2-79.1","40.3-79.4","40.4-79.8","40.5-80.1","40.6-80.4","40.7-80.7","40.8-81.0","40.9-81.3","41.0-81.6","41.1-81.9","41.2-82.2","41.3-82.6","41.4-82.9","41.5-83.2","41.6-83.5","41.7-83.8","41.8-84.1","41.9-84.4","42.0-84.8","42.1-85.1","42.2-85.4","42.3-85.7","42.4-86.0","42.5-86.3","42.6-86.7","42.7-87.0","42.8-87.3","42.9-87.6","43.0-87.9","43.1-88.3","43.2-88.6","43.3-88.9","43.4-89.2","43.5-89.5","43.6-89.9","43.7-90.2","43.8-90.5","43.9-90.8","44.0-91.2","44.1-91.5","44.2-91.8","44.3-92.1","44.4-92.5","44.5-92.8","44.6-93.1","44.7-93.4","44.8-93.8","44.9-94.1","45.0-94.4","45.1-94.8","45.2-95.1","45.3-95.4","45.4-95.7","45.5-96.1","45.6-96.4","45.7-96.7","45.8-97.1","45.9-97.4","46.0-97.7","46.1-98.1","46.2-98.4","46.3-98.7","46.4-99.1","46.5-99.4","46.6-99.7"],r=["30.5-50.0","30.6-50.3","30.7-50.5","30.8-50.8","30.9-51.0","31.0-51.3","31.1-51.5","31.2-51.8","31.3-52.1","31.4-52.3","31.5-52.6","31.6-52.8","31.7-53.1","31.8-53.4","31.9-53.6","32.0-53.9","32.1-54.2","32.2-54.4","32.3-54.7","32.4-55.0","32.5-55.2","32.6-55.5","32.7-55.8","32.8-56.0","32.9-56.3","33.0-56.6","33.1-56.8","33.2-57.1","33.4-57.6","33.5-57.9","33.6-58.2","33.7-58.4","33.8-60.3","33.9-60.6","34.0-59.3","34.1-59.5","34.2-59.8","34.3-60.1","34.4-60.4","34.5-60.6","34.6-60.9","34.7-61.2","34.8-61.5","34.9-61.7","35.0-62.0","35.1-62.3","35.2-62.6","35.3-62.8","35.4-63.1","35.5-63.4","35.6-63.7","35.7-64.0","35.8-64.2","35.9-64.5","36.0-64.8","36.1-65.1","36.2-65.4","36.3-65.7","36.4-65.9","36.5-66.2","36.6-66.5","36.7-66.8","36.8-67.1","36.9-67.4","37.0-67.6","37.1-67.9","37.2-68.2","37.3-68.5","37.4-68.8","37.5-69.1","37.6-69.4","37.7-69.7","37.8-69.9","37.9-70.2","38.0-70.5","38.1-70.8","38.2-71.1","38.3-71.4","38.4-71.7","38.5-72.0","38.6-72.3","38.7-72.6","38.8-72.9","38.9-73.2","39.0-73.5","39.1-73.8","39.2-74.0","39.3-74.3","39.4-74.6","39.5-74.9","39.6-75.2","39.7-75.5","39.8-75.8","39.9-76.1","40.0-76.4","40.1-76.7","40.2-77.0","40.3-77.3","40.4-77.6","40.5-77.9","40.6-78.2","40.7-78.5","40.8-78.8","40.9-79.1","41.0-79.4","41.1-79.7","41.2-80.0","41.3-80.3","41.4-80.7","41.5-81.0","41.6-81.3","41.7-81.6","41.8-81.9","41.9-82.2","42.0-82.5","42.1-82.8","42.2-83.1","42.3-83.4","42.4-83.7","42.5-84.0","42.6-84.3","42.7-84.7","42.8-85.0","42.9-85.3","43.0-85.6","43.1-85.9","43.2-86.2","43.3-86.5","43.4-86.8","43.5-87.1","43.6-87.5","43.7-87.8","43.8-88.1","43.9-88.4","44.0-88.7","44.1-89.0","44.2-89.4","44.3-89.7","44.4-90.0","44.5-90.3","44.6-90.6","44.7-90.9","44.8-91.3","44.9-91.6","45.0-91.9","45.1-92.2","45.2-92.5","45.3-92.9","45.4-93.2","45.5-93.5","45.6-93.8","45.7-94.1","45.8-94.5","45.9-94.8","46.0-95.1","46.1-95.4","46.2-95.8","46.3-96.1","46.4-96.4","46.5-96.7","46.6-97.1","46.7-97.4","46.8-97.7","46.9-98.0","47.0-98.4","47.1-98.7","47.2-99.0","47.3-99.4","47.4-99.7","47.5-100"],x=["31.1-50.2","31.2-50.4","31.3-50.7","31.4-50.9","31.5-51.2","31.6-51.4","31.7-51.7","31.8-51.9","31.9-52.2","32.0-52.5","32.1-52.7","32.2-53.0","32.3-53.2","32.4-53.5","32.5-53.7","32.6-54.0","32.7-54.3","32.8-54.5","32.9-54.8","33.0-55.0","33.1-55.3","33.2-55.6","33.3-55.8","33.4-56.1","33.5-56.4","33.6-56.6","33.7-56.9","33.8-57.1","33.9-57.4","34.0-57.7","34.1-57.9","34.2-58.2","34.3-58.5","34.4-58.7","34.5-59.0","34.6-59.3","34.7-59.5","34.8-59.8","34.9-60.1","35.0-60.4","35.1-60.6","35.2-60.9","35.3-61.2","35.4-61.4","35.5-61.7","35.6-62.0","35.7-62.3","35.8-62.5","35.9-62.8","36.0-63.1","36.1-63.3","36.2-63.6","36.3-63.9","36.4-64.2","36.5-64.4","36.6-64.7","36.7-65.0","36.8-65.3","36.9-65.6","37.0-65.8","37.1-66.1","37.2-66.4","37.3-66.7","37.4-67.0","37.5-67.2","37.6-67.5","37.7-67.8","37.8-68.1","37.9-68.4","38.0-68.6","38.1-68.9","38.2-69.2","38.3-69.5","38.4-69.8","38.5-70.1","38.6-70.3","38.7-70.6","38.8-70.9","38.9-71.2","39.0-71.5","39.1-71.8","39.2-72.1","39.3-72.4","39.4-72.6","39.5-72.9","39.6-73.2","39.7-73.5","39.8-73.8","39.9-74.1","40.0-74.4","40.1-74.7","40.2-75.0","40.3-75.3","40.4-75.5","40.5-75.8","40.6-76.1","40.7-76.4","40.8-76.7","40.9-77.0","41.0-77.3","41.1-77.6","41.2-77.9","41.3-78.2","41.4-78.5","41.5-78.8","41.6-79.1","41.7-79.4","41.8-79.7","41.9-80.0","42.0-80.3","42.1-80.6","42.2-80.9","42.3-81.2","42.4-81.5","42.5-81.8","42.6-82.1","42.7-82.4","42.8-82.7","42.9-83.0","43.0-83.3","43.1-83.6","43.2-83.9","43.3-84.2","43.4-84.5","43.5-84.8","43.6-85.1","43.7-85.4","43.8-85.7","43.9-86.0","44.0-86.3","44.1-86.7","44.2-87.0","44.3-87.3","44.4-87.6","44.5-87.9","44.6-88.2","44.7-88.5","44.8-88.8","44.9-89.1","45.0-89.4","45.1-89.8","45.2-90.1","45.3-90.4","45.4-90.7","45.5-91.0","45.6-91.3","45.7-91.6","45.8-91.9","45.9-92.3","46.0-92.6","46.1-92.9","46.2-93.2","46.3-93.5","46.4-93.8","46.5-94.1","46.6-94.5","46.7-94.8","46.8-95.1","46.9-95.4","47.0-95.7","47.1-96.1","47.2-96.4","47.3-96.7","47.4-97.0","47.5-97.3","47.6-97.7","47.7-98.0","47.8-98.3","47.9-98.6","48.0-98.9","48.1-99.3","48.2-99.6","48.3-99.9"],s=["31.6-50.1","31.7-50.3","31.8-50.6","31.9-50.8","32.0-51.1","32.1-51.3","32.2-51.6","32.3-51.8","32.4-52.1","32.5-52.3","32.6-52.6","32.7-52.8","32.8-53.1","32.9-53.3","33.0-53.6","33.1-53.8","33.2-54.1","33.3-54.3","33.4-54.6","33.5-54.8","33.6-55.1","33.7-55.4","33.8-55.6","33.9-55.9","34.0-56.1","34.1-56.4","34.2-56.7","34.3-56.9","34.4-57.2","34.5-57.4","34.6-57.7","34.7-58.0","34.8-58.2","34.9-58.5","35.0-58.7","35.1-59.0","35.2-59.3","35.3-59.5","35.4-59.8","35.5-60.1","35.6-60.3","35.7-60.6","35.8-60.9","35.9-61.1","36.0-61.4","36.1-61.7","36.2-61.9","36.3-62.2","36.4-62.5","36.5-62.7","36.6-63.0","36.7-63.3","36.8-63.5","36.9-63.8","37.0-64.1","37.1-64.3","37.2-64.6","37.3-64.9","37.4-65.2","37.5-65.4","37.6-65.7","37.7-66.0","37.8-66.3","37.9-66.5","38.0-66.8","38.1-67.1","38.2-67.4","38.3-67.6","38.4-67.9","38.5-68.2","38.6-68.5","38.7-68.7","38.8-69.0","38.9-69.3","39.0-69.6","39.1-69.9","39.2-70.1","39.3-70.4","39.4-70.7","39.5-71.0","39.6-71.3","39.7-71.5","39.8-71.8","39.9-72.1","40.0-72.4","40.1-72.7","40.2-73.0","40.3-73.2","40.4-73.5","40.5-73.8","40.6-74.1","40.7-74.4","40.8-74.7","40.9-75.0","41.0-75.2","41.1-75.5","41.2-75.8","41.3-76.1","41.4-76.4","41.5-76.7","41.6-77.0","41.7-77.3","41.8-77.6","41.9-77.8","42.0-78.1","42.1-78.4","42.2-78.7","42.3-79.0","42.4-79.3","42.5-79.6","42.6-79.9","42.7-80.2","42.8-80.5","42.9-80.8","43.0-81.1","43.1-81.4","43.2-81.7","43.3-82.0","43.4-82.3","43.5-82.5","43.6-82.8","43.7-83.1","43.8-83.4","43.9-83.7","44.0-84.0","44.1-84.3","44.2-84.6","44.3-84.9","44.4-85.2","44.5-85.5","44.6-85.8","44.7-86.1","44.8-86.4","44.9-86.7","45.0-87.0","45.1-87.4","45.2-87.7","45.3-88.0","45.4-88.3","45.5-88.6","45.6-88.9","45.7-89.2","45.8-89.5","45.9-89.8","46.0-90.1","46.1-90.4","46.2-90.7","46.3-91.0","46.4-91.3","46.5-91.6","46.6-91.9","46.7-92.2","46.8-92.6","46.9-92.9","47.0-93.2","47.1-93.5","47.2-93.8","47.3-94.1","47.4-94.4","47.5-94.7","47.6-95.0","47.7-95.4","47.8-95.7","47.9-96.0","48.0-96.3","48.1-96.6","48.2-96.9","48.3-97.2","48.4-97.6","48.5-97.9","48.6-98.2","48.7-98.5","48.8-98.8","48.9-99.1","49.0-99.5","49.1-99.8"],i=["32.2-50.2","32.3-50.4","32.4-50.7","32.5-50.9","32.6-51.2","32.7-51.4","32.8-51.6","32.9-51.9","33.0-52.1","33.1-52.4","33.2-52.6","33.3-52.9","33.4-53.1","33.5-53.4","33.6-53.6","33.7-53.9","33.8-54.1","33.9-54.4","34.0-54.6","34.1-54.9","34.2-55.1","34.3-55.4","34.4-55.6","34.5-55.9","34.6-56.1","34.7-56.4","34.8-56.7","34.9-56.9","35.0-57.2","35.1-57.4","35.2-57.7","35.3-57.9","35.4-58.2","35.5-58.5","35.6-58.7","35.7-59.0","35.8-59.2","35.9-59.5","36.0-59.7","36.1-60.0","36.2-60.3","36.3-60.5","36.4-60.8","36.5-61.0","36.6-61.3","36.7-61.6","36.8-61.8","36.9-62.1","37.0-62.4","37.1-62.6","37.2-62.9","37.3-63.2","37.4-63.4","37.5-63.7","37.6-64.0","37.7-64.2","37.8-64.5","37.9-64.8","38.0-65.0","38.1-65.3","38.2-65.6","38.3-65.8","38.4-66.1","38.5-66.4","38.6-66.6","38.7-66.9","38.8-67.2","38.9-67.4","39.0-67.7","39.1-68.0","39.2-68.3","39.3-68.5","39.4-68.8","39.5-69.1","39.6-69.4","39.7-69.6","39.8-69.9","39.9-70.2","40.0-70.5","40.1-70.7","40.2-71.0","40.3-71.3","40.4-71.6","40.5-71.8","40.6-72.1","40.7-72.4","40.8-72.7","40.9-73.0","41.0-73.2","41.1-73.5","41.2-73.8","41.3-74.1","41.4-74.4","41.5-74.6","41.6-74.9","41.7-75.2","41.8-75.5","41.9-75.8","42.0-76.0","42.1-76.3","42.2-76.6","42.3-76.9","42.4-77.2","42.5-77.5","42.6-77.8","42.7-78.0","42.8-78.3","42.9-78.6","43.0-78.9","43.1-79.2","43.2-79.5","43.3-79.8","43.4-80.1","43.5-80.3","43.6-80.6","43.7-80.9","43.8-81.2","43.9-81.5","44.0-81.8","44.1-82.1","44.2-82.4","44.3-82.7","44.4-83.0","44.5-83.3","44.6-83.5","44.7-83.8","44.8-84.1","44.9-84.4","45.0-84.7","45.1-85.0","45.2-85.3","45.3-85.6","45.4-85.9","45.5-86.2","45.6-86.5","45.7-86.8","45.8-87.1","45.9-87.4","46.0-87.7","46.1-88.0","46.2-88.3","46.3-88.6","46.4-88.9","46.5-89.2","46.6-89.5","46.7-89.8","46.8-90.1","46.9-90.4","47.0-90.7","47.1-91.0","47.2-91.3","47.3-91.6","47.4-91.9","47.5-92.2","47.6-92.5","47.7-92.8","47.8-93.1","47.9-93.4","48.0-93.7","48.1-94.0","48.2-94.3","48.3-94.6","48.4-95.0","48.5-95.3","48.6-95.6","48.7-95.9","48.8-96.2","48.9-96.5","49.0-96.8","49.1-97.1","49.2-97.4","49.3-97.7","49.4-98.0","49.5-98.4","49.6-98.7","49.7-99.0","49.8-99.3","49.9-99.6","50.0-99.9"];for(var u=1;u<11;u++)if("0.0"==n)for(var m=0;m<y.length;m++){a==(c=y[m].split("-"))[0]&&(o=c[1])}else if("0.5"==n)for(m=0;m<r.length;m++){a==(c=r[m].split("-"))[0]&&(o=c[1])}else if("1.0"==n)for(m=0;m<x.length;m++){a==(c=x[m].split("-"))[0]&&(o=c[1])}else if("1.5"==n)for(m=0;m<s.length;m++){a==(c=s[m].split("-"))[0]&&(o=c[1])}else if(n>="2.0")for(m=0;m<i.length;m++){var c;a==(c=i[m].split("-"))[0]&&(o=c[1])}return o}},{funName:"YJTEST",funDesc:"云检测试函数",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"测试参数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>"OK"}]},WorkbookUtils={loadSjsFile:(e,l,t,a)=>__awaiter(void 0,void 0,void 0,function*(){const n=yield fetch(l,{method:"GET"});if(n.ok){const l=yield n.blob(),o=new Blob([l],{type:"application/zip"});e.open(o,()=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof t&&(yield t(e))}),e=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof a&&(yield a(e))}))}}),getWookbookBlob:e=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((l,t)=>{e.save(e=>l(e),e=>t(e))})}),print:(e,l)=>{const t=l.getSheetCount();for(let a=0;a<t;a++){const t=l.getSheet(a);let n=t.printInfo();n.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.rowStart(0),n.rowEnd(t.getRowCount()),n.columnStart(1),n.columnEnd(77),n.margin({top:59.055119999999995,bottom:59.055119999999995,left:98.42520000000002,right:59.055119999999995,header:0,footer:0}),n.paperSize(new e.Spread.Sheets.Print.PaperSize(e.Spread.Sheets.Print.PaperKind.a4)),t.printInfo(n)}l.print()},exportToExcel:(e,l,t="")=>{const a=l.toJSON({includeBindingSource:!0}),n=["YJMAX","YJMIN","YJMID","YJGETNUM","YJGETS","YJGETCV","YJINTERPOLATIONMETHOD","YJINTERPOLATIONMETHOD_Y"],o=new e.Spread.Sheets.Workbook;o.fromJSON(a),o.suspendPaint();const y=o.getSheetCount();for(let e=0;e<y;e++){const l=o.getSheet(e);l.suspendCalcService();for(var r=0;r<l.getRowCount();r++)for(var x=0;x<l.getColumnCount();x++){const e=l.getFormula(r,x);if(null!=e&&null!=e&&n.some(l=>e.indexOf(l)>-1)){const e=l.getValue(r,x);l.getCell(r,x).formula(void 0),l.setValue(r,x,e)}}l.resumeCalcService(!1)}o.resumePaint(),""==t&&(t=o.getSheet(0).name());let s={fileType:e.Spread.Sheets.FileType.excel,includeBindingSource:!0,includeStyles:!0,includeFormulas:!0,saveAsView:!1,rowHeadersAsFrozenColumns:!1,columnHeadersAsFrozenRows:!1,includeAutoMergedCells:!1,includeCalcModelCache:!1,includeUnusedNames:!0,includeEmptyRegionCells:!0};o.export(e=>{saveAs(e,`${t}.xlsx`)},()=>{},s),o.destroy()},mergeWorkbooksToExcelOrPdf:(e,l,...t)=>__awaiter(void 0,[e,l,...t],void 0,function*(e,l,t=!0,a,n=[{name:"宋体",type:"normal",url:"/spreadJsFonts/simsun.ttf"},{name:"Arial",type:"normal",url:"/spreadJsFonts/arial.ttf"}],o=77,y=!1){if(!l||0==l.length)return;t||(yield WorkbookUtils.registerFont(e,n));const r=new e.Spread.Sheets.Workbook;r.suspendPaint(),r.fromJSON(l[0].toJSON());for(let t=1;t<l.length;t++){const a=new e.Spread.Sheets.Workbook;a.suspendPaint(),a.fromJSON(l[t].toJSON());const n=t+"";a.getNamedStyles().forEach(function(e){e.name=`new_${n}_${e.name}`,r.addNamedStyle(e)});let o=a.getSheet(0),y=JSON.stringify(o.toJSON());y=y.replace(/"style":"/g,'"style":"new_'+n+"_"),y=y.replace(/"parentName":"/g,'"parentName":"new_'+n+"_");let x=new e.Spread.Sheets.Worksheet(`newSheet${n}_`);r.addSheet(r.getSheetCount(),x),x.fromJSON(JSON.parse(y));const s=x.getRowCount(),i=r.getSheet(0);i.addRows(i.getRowCount(),s);let u=i.getRowCount()-s;const m=[new e.Spread.Sheets.Range(-1,-1,-1,-1)],c=[new e.Spread.Sheets.Range(u,0,s,x.getColumnCount())];r.commandManager().execute({cmd:"clipboardPaste",sheetName:i.name(),fromSheet:x,fromRanges:m,pastedRanges:c,isCutting:!1,clipboardText:"",pasteOption:e.Spread.Sheets.ClipboardPasteOptions.all}),r.removeSheet(r.getSheetCount()-1),i.clearSelection(),a.resumePaint(),a.destroy()}const x=r.getActiveSheet();if(x.zoom(1),x.options.rowHeaderVisible=!0,x.options.colHeaderVisible=!0,r.options.tabStripVisible=!0,r.options.showHorizontalScrollbar=!0,r.options.showVerticalScrollbar=!0,r.options.scrollbarMaxAlign=!1,!t){let l=r.getSheet(r.getSheetCount()-1).printInfo();l.margin({top:0,bottom:0,left:0,right:0,header:0,footer:0}),l.columnEnd(o),l.showBorder(!1),l.showGridLine(!1),l.blackAndWhite(!1),l.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.zoomFactor(y?1:1.06)}return r.resumePaint(),t?WorkbookUtils.exportToExcel(e,r,a):r.savePDF(function(e){saveAs(e,`${a&&a.length>0?a:"文件"}.pdf`)},console.log),r}),registerFont:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((t,a)=>__awaiter(void 0,void 0,void 0,function*(){try{l&&0!=l.length||t(null);for(let a=0;a<l.length;a++){const o=l[a],y=yield fetch(o.url,{method:"GET"});if(y.ok){const l=yield y.blob();var n=new FileReader;n.readAsArrayBuffer(l),n.onload=function(a){var y=n.result,r={};r[o.type]=y,e.Spread.Sheets.PDF.PDFFontsManager.registerFont(o.name,r),t(l)}}}}catch(e){a(e)}}))})};export{BusinessUtils,CommonUtils,EChartsUtils,FormulaUtils,SheetUtils,WorkbookUtils};
1
+ import{groupByJson,forEachJson,orderByJson,chunkJson,preciseCalc}from"rapid-utils";import*as echarts from"echarts";import*as math from"mathjs";import{saveAs}from"file-saver";function __awaiter(e,l,t,a){return new(t||(t=Promise))(function(n,o){function y(e){try{x(a.next(e))}catch(e){o(e)}}function r(e){try{x(a.throw(e))}catch(e){o(e)}}function x(e){var l;e.done?n(e.value):(l=e.value,l instanceof t?l:new t(function(e){e(l)})).then(y,r)}x((a=a.apply(e,l||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const CommonUtils={getFileBlob:e=>__awaiter(void 0,void 0,void 0,function*(){const l=yield fetch(e,{method:"GET"});if(l.ok){return yield l.blob()}return null}),getColLetterName:e=>{e+=1;let l="";for(;e>0;){const t=(e-1)%26;l=String.fromCharCode(t+65)+l,e=Math.floor((e-1)/26)}return l.toUpperCase()}},SheetUtils={getActiveSheetSelectCells:e=>e.getActiveSheet().getSelections(),setActiveSheetSelectCells:(e,l)=>{e.getActiveSheet().setSelection(l.row,l.col,l.rowCount,l.colCount)},getAllCellObjsByRange:(e,l,t=!1)=>SheetUtils.getAllCellObjsByRanges(e,[l],t),getAllCellObjsByRanges:(e,l,t=!1,a=!1)=>{let n=[];return l.forEach((l,a)=>{let o=e.getSpans(l);if(o=orderByJson(o,t?["col","row"]:["row","col"],["asc","asc"]),o.forEach(e=>{n.push({row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount})}),void 0===l.row||void 0===l.col||void 0===l.rowCount||void 0===l.colCount)throw new Error("row、col、rowCount、colCount is required.");for(let t=l.row;t<+l.row+l.rowCount;t++)for(let a=l.col;a<l.col+l.colCount;a++){null==e.getSpan(t,a)&&n.push({row:t,col:a,rowCount:1,colCount:1})}}),a||(n=orderByJson(n,t?["col","row"]:["row","col"],["asc","asc"])),n},getAllCellObjsByRangeStr:(e,l)=>{let t=[];if(l.indexOf(",")>-1){l.split(",").forEach((l,a)=>{const n=l.substring(l.lastIndexOf("!")+1);t.push(e.getRange(n))})}else t.push(e.getRange(l));return t},getSheetAllCellObjs:e=>{const l=[{row:0,col:0,rowCount:e.getRowCount(),colCount:e.getColumnCount()}];return SheetUtils.getAllCellObjsByRanges(e,l)},getSheetSelectCellObjs:(e,l=!1)=>{const t=e.getSelections();return SheetUtils.getAllCellObjsByRanges(e,t,l)},getActiveSheetSelectCellObjs:(e,l=!1)=>{const t=e.getActiveSheet();return SheetUtils.getSheetSelectCellObjs(t,l)},getSheetCellObjsByGroup:(e,l,t="row")=>{e.suspendPaint();const a=SheetUtils.getAllCellObjsByRange(e,l),n=groupByJson(a,t),o=[];return forEachJson(n,(e,l,t)=>{o.push(e)}),e.resumePaint(),o},getSheetSelectVals:(e,l=!1,t)=>{const a=SheetUtils.getSheetSelectCellObjs(e,l);let n=[];return a.forEach(l=>{let a=e.getValue(l.row,l.col);null!=t&&null!=t&&null==a&&(a=t),n.push(a)}),n},getActiveSheetSelectVals:(e,l=!1,t)=>{const a=e.getActiveSheet();return SheetUtils.getSheetSelectVals(a,l,t)},getSheetRangeValsByGroup:(e,l,t="row",a)=>{e.suspendPaint();const n=SheetUtils.getAllCellObjsByRange(e,l),o=groupByJson(n,t),y=[];return forEachJson(o,(l,t,n)=>{const o=[];forEachJson(l,(l,t,n)=>{let y=e.getValue(l.row,l.col);null!=a&&null!=a&&null==y&&(y=a),o.push(y)}),y.push(o)}),e.resumePaint(),y},getCellType:(e,l,t,a)=>{let n;const o=l.getCellType(t,a);if(o instanceof e.Spread.Sheets.CellTypes.Button?n="button":o instanceof e.Spread.Sheets.CellTypes.RadioButtonList?n="radio":o instanceof e.Spread.Sheets.CellTypes.CheckBox?n="checkbox":o instanceof e.Spread.Sheets.CellTypes.CheckBoxList?n="checkboxList":o instanceof e.Spread.Sheets.CellTypes.HyperLink?n="hyperLink":o instanceof e.Spread.Sheets.CellTypes.ComboBox&&(n="comboBox"),null==n||null==n){const e=l.getStyle(t,a);e&&e.cellButtons&&e.cellButtons.length>0&&("openDateTimePicker"==e.cellButtons[0].command?e.dropDowns&&e.dropDowns.length>0&&(n=e.dropDowns[0].option.showDateRange?"dateRange":"date"):"openCalculator"==e.cellButtons[0].command&&(n="calc"))}return n},setSheetZoom:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).zoom(l)}e.resumePaint()},setActiveSheetSelectBgColor:(e,l)=>{const t=e.getActiveSheet();t.suspendPaint();SheetUtils.getActiveSheetSelectCells(e).forEach(e=>{t.getRange(e.row,e.col,e.rowCount,e.colCount).backColor(l)}),t.resumePaint()},setSheetBgColor:(e,l,t)=>{e.suspendPaint(),l.forEach(l=>{e.getRange(l.row,l.col,l.rowCount,l.colCount).backColor(t)}),e.resumePaint()},setSheetShowPrintPageLine:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).isPrintLineVisible(l)}e.resumePaint()},ignoreSheetShowStrs:e=>{const l=["#DIV/0!","#VALUE!","#NAME?","#N/A","#NULL!","#NUM!","#REF!"],t=e.Spread.Sheets.CellTypes.Text.prototype.paint;e.Spread.Sheets.CellTypes.Text.prototype.paint=function(e,a,n,o,y,r,x,s){l.some(e=>e==a)?t.call(this,e,"/",n,o,y,r,x,s):t.apply(this,arguments)}},setSheetAuxiliaryLine:(e,l,t,a,n=1,o="#409eff",y=!1)=>{let r=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineBottom"+(y?"Hb":""),0,a,t,n),x=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineRight"+(y?"Hb":""),t,0,n,a),s=document.createElement("div"),i=document.createElement("div");s.style.width=`${t}px`,s.style.height="1px",s.style.borderBottom=`${n}px dashed ${o}`,i.style.width="1px",i.style.height=`${a}px`,i.style.borderLeft=`${n}px dashed ${o}`,r.allowResize(!1),r.allowMove(!1),r.content(s),x.allowResize(!1),x.allowMove(!1),x.content(i),l.floatingObjects.add(r),l.floatingObjects.add(x)},setActiveSheetWatermark:(e,l,t,a=!0)=>{if(null==l||null==l)return;const n=e.getActiveSheet();n.suspendPaint(),l.forEach(e=>{n.getCell(e.row,e.col).watermark(t?`{${e.title}}`:void 0),n.setBindingPath(e.row,e.col,a?`${e.pathPrev}.${e.pathField}`:void 0)}),n.resumePaint()},setSheetCellDate:(e,l,t,a=!0)=>{t.forEach((t,n)=>{let o=l.getStyle(t.row,t.col);o||(o=new e.Spread.Sheets.Style),o.cellButtons=[{imageType:e.Spread.Sheets.ButtonImageType.dropdown,command:"openDateTimePicker",visibility:e.Spread.Sheets.ButtonVisibility.onSelected}],o.dropDowns=[{type:e.Spread.Sheets.DropDownType.dateTimePicker,option:{showTime:!1,showDateRange:!1}}],o.formatter=t.dateFormat,o.shrinkToFit=a,l.setStyle(t.row,t.col,o)})},getRangeStr:e=>`${CommonUtils.getColLetterName(e.col)}${e.row+1}:${CommonUtils.getColLetterName(e.col+e.colCount-1)}${e.row+e.rowCount}`,getCellsRangeStr:(e,l,t)=>{const a=SheetUtils.getAllCellObjsByRanges(e,[t]);let n=[];a.forEach(t=>{const a=e.getValue(t.row,t.col),o=e.getFormula(t.row,t.col);(1==l&&!o&&null!=a&&""!==a||2==l&&(null==a||null==a||""==a)||3==l&&o)&&(n.push(t),2!=l||null!=a&&null!=a&&""!=a||e.setFormatter(t.row,t.col,"@"))});const o=e.name();return"="+n.map(e=>{const l=(e=>{let l="";for(;e>=0&&(l=String.fromCharCode(65+e%26)+l,!((e=Math.floor(e/26)-1)<0)););return l})(e.col),t=e.row+1;e.rowCount>1||e.colCount;return`${o}!${l}${t}`}).join(",")},pasteCellValues:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){if(!navigator.clipboard||!navigator.clipboard.readText)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"您的浏览器不支持剪贴板读取功能!"));if("denied"===(yield navigator.permissions.query({name:"clipboard-read"})).state)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"剪贴板读取权限被拒绝!"));function t(e){const l=[];let t=0;for(let a=0;a<e.length;a++){const n=e[a].trim();""===n?t++:(t>0&&l.length,l.push(n),t=0)}return l}const a=SheetUtils.getSheetSelectCellObjs(e),n=groupByJson(a,"row"),o=[];forEachJson(n,(e,l,t)=>{o.push(e)});const y=function(e){const l=[];let a=[],n="",o=!1;for(let y=0;y<e.length;y++){const r=e[y];if('"'===r)o&&'"'===e[y+1]?(n+='"',y++):o=!o;else if("\t"!==r||o)if("\n"!==r&&"\r"!==r||o)n+=r;else{"\r"===r&&"\n"===e[y+1]&&y++,a.push(n);const o=t(a);o.length>0&&l.push(o),a=[],n=""}else a.push(n),n=""}if(""!==n||a.length>0){a.push(n);const e=t(a);e.length>0&&l.push(e)}return l.filter(e=>e.some(e=>""!==e.trim()))}(yield navigator.clipboard.readText());e.suspendPaint();for(let l=0;l<o.length;l++){const t=o[l];for(let a=0;a<t.length;a++){const n=t[a],o=y[l][a];e.setValue(n.row,n.col,o),o&&o.includes("\n")&&e.getCell(n.row,n.col).wordWrap(!0)}}e.resumePaint(),null!=l&&null!=l&&"function"==typeof l&&l(!0,"粘贴成功!")})},BusinessUtils={createTestObjectAttrsCells:(e,l,t,a=0,n=0,o=!0,y="left",r=0,x=1,s=77,i=24)=>{if(!t||0===t.length)return;const u=o?12:10,m=o?26:15,c=chunkJson(t,o?2:3);l.suspendPaint();const h=l.getRowCount();a>h-1&&(a=h),n>0&&l.deleteRows(a,n);const p=(t,a,n=!1)=>{const o=l.getCell(t,a);o.fontFamily("宋体").fontSize("9pt").fontStyle("normail").cellPadding(`0 0 0 ${r}`),n&&o.hAlign("left"==y?e.Spread.Sheets.HorizontalAlign.left:"center"==y?e.Spread.Sheets.HorizontalAlign.center:"right"==y?e.Spread.Sheets.HorizontalAlign.right:e.Spread.Sheets.HorizontalAlign.left)};for(let t=0;t<c.length;t++){const n=c[t],y=a+t;l.addRows(y,1),l.setRowHeight(y,i,e.Spread.Sheets.SheetArea.viewport);const r=l.getRange(y,1,x,s,e.Spread.Sheets.SheetArea.viewport);if(r.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),r.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:0==t,bottom:!1}),r.hAlign(e.Spread.Sheets.HorizontalAlign.center),r.vAlign(e.Spread.Sheets.HorizontalAlign.center),l.addSpan(y,x,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,x+u,1,n.length>1?m:s-u,e.Spread.Sheets.SheetArea.viewport),l.setValue(y,x,n[0].title),l.setValue(y,x+u,null!=n[0].blindDisplayStatus&&null!=n[0].blindDisplayStatus&&0==n[0].blindDisplayStatus?"此处隐藏":n[0].value),p(y,x),p(y,x+u,!0),null!=n[0].blindDisplayStatus&&null!=n[0].blindDisplayStatus&&0==n[0].blindDisplayStatus&&l.getCell(y,x+u).fontFamily("宋体").fontSize("12px").fontStyle("italic"),n.length>1){const t=x+u+m,a=t+u;l.addSpan(y,t,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,a,1,m+1+(o||2!=n.length?0:u+m+1),e.Spread.Sheets.SheetArea.viewport),l.setValue(y,t,n[1].title),l.setValue(y,a,null!=n[1].blindDisplayStatus&&null!=n[1].blindDisplayStatus&&0==n[1].blindDisplayStatus?"此处隐藏":n[1].value),p(y,t),p(y,a,!0),null!=n[1].blindDisplayStatus&&null!=n[1].blindDisplayStatus&&0==n[1].blindDisplayStatus&&l.getCell(y,a).fontFamily("宋体").fontSize("12px").fontStyle("italic")}if(n.length>2){const t=x+u+m+u+m+1,a=t+u;l.addSpan(y,t,1,u,e.Spread.Sheets.SheetArea.viewport),l.addSpan(y,a,1,m+1,e.Spread.Sheets.SheetArea.viewport),l.setValue(y,t,n[2].title),l.setValue(y,a,null!=n[2].blindDisplayStatus&&null!=n[2].blindDisplayStatus&&0==n[2].blindDisplayStatus?"此处隐藏":n[2].value),p(y,t),p(y,a,!0),null!=n[2].blindDisplayStatus&&null!=n[2].blindDisplayStatus&&0==n[2].blindDisplayStatus&&l.getCell(y,a).fontFamily("宋体").fontSize("12px").fontStyle("italic")}}return l.resumePaint(),c},getTestObjectAttrsVals:(e,l,t=0,a=!0,n=1,o=77)=>{const y=a?2:3,r=chunkJson(l,y);e.suspendPaint();const x=SheetUtils.getAllCellObjsByRange(e,{row:t,col:n,rowCount:e.getRowCount(),colCount:o}),s=chunkJson(x,2*y),i=[];for(let e=0;e<s.length;e++)i.push(chunkJson(s[e],2));let u=[];for(let l=0;l<r.length;l++){const t=r[l];for(let a=0;a<t.length;a++){const n=t[a];u.push({title:e.getValue(i[l][a][0].row,i[l][a][0].col),fieldName:n.fieldName,value:e.getValue(i[l][a][1].row,i[l][a][1].col)})}}return e.resumePaint(),u},dynamicCreateCyclicRows:(e,l,t,a,n=0,o=!1,y=!1,r=null,x)=>{if(a<=1&&0==n||a==n&&n>0)return;const s=l.getActiveSheet(),i=t.row+t.rowCount==s.getRowCount();let u=[];for(let e=t.row;e<=t.row+t.rowCount-1;e++)u.push(s.getRowHeight(e));const m=(l,a,n)=>{s.addRows(l,a);let y=0;for(let t=l;t<=l+a;t++)s.setRowHeight(t,null!=x&&null!=x?x:u[y],e.Spread.Sheets.SheetArea.viewport),y<u.length-1?y++:y=0;for(let a=1;a<=n;a++){const n=l+(a-1)*t.rowCount;s.copyTo(t.row,t.col,n,t.col,t.rowCount,t.colCount,e.Spread.Sheets.CopyToOptions.all)}if(o){SheetUtils.getAllCellObjsByRange(s,{row:l,col:1,rowCount:a,colCount:77}).forEach(e=>{s.setValue(e.row,e.col,"")})}};s.suspendPaint(),s.suspendCalcService(),s.suspendDirty(),s.suspendEvent(),a<=1&&n>0?s.deleteRows(t.row+t.rowCount,(a-1)*t.rowCount):a>1&&n>1?a>n?m(t.row+n*t.rowCount,(a-n)*t.rowCount,a-n):a<n&&s.deleteRows(t.row+t.rowCount+(a-1)*t.rowCount,(n-a)*t.rowCount):a>1&&0==n&&m(t.row+t.rowCount,(a-1)*t.rowCount,a-1);const c=s.getRange(t.row,t.col,a*t.rowCount,t.colCount>77?77:t.colCount);i&&c.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{inside:!0});const h={row:c.row,col:c.col,rowCount:c.rowCount,colCount:c.colCount},p=SheetUtils.getAllCellObjsByRanges(s,[h]),f=groupByJson(p,"row");let d=[];if(!o&&y){forEachJson(f,(e,l,t)=>{d.push(e)});let e=0;d.forEach((l,t)=>{l.forEach((l,t)=>{0==t&&(e++,s.setValue(l.row,l.col,e))})})}s.resumeDirty(),s.resumeEvent(),s.resumeCalcService(),s.resumePaint(),null!=r&&null!=r&&"function"==typeof r&&r(h,d)},overRemindComments:(spread,cctxConfigs,cellRowIndex,cellColIndex,isValueChgedUse=!0,commentOptions={color:"#E11010",size:10,defaultTextIsSet:!0,defaultText:"无效"})=>{if(!cctxConfigs||0==cctxConfigs.length)return;const sheet=spread.getActiveSheet();spread.suspendPaint(),spread.suspendCalcService(),spread.suspendEvent();let commentColor=commentOptions.color?commentOptions.color:"#E11010",commentSize=commentOptions.size?commentOptions.size:10,commentDefaultTextIsSet=!commentOptions.defaultTextIsSet||commentOptions.defaultTextIsSet,commentDefaultText=commentOptions.defaultText?commentOptions.defaultText:"无效";const replaceVar=(e,l)=>(["a","b","c","d","e","f"].forEach(t=>{e.indexOf(t)>-1&&(e=e.replaceAll(t,l.find(e=>e.var==t).value))}),e),replaceNum=(e,l)=>{const t=[];for(let e=1;e<=20;e++)t.push(e);return t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(t,`#${t}#`))}),t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(`#${t}#`,`(${l[t-1]})`))}),e},getConJsonArrNew=(e,l)=>{let t=[];return e.forEach(e=>{let a=e;a=a.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]"),a=replaceVar(a,l),a=a.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)"),t.push(a)}),t};for(let i=0;i<cctxConfigs.length;i++){const item=cctxConfigs[i];if(item.isQz){let varJsonArr=JSON.parse(item.varJson),qzCellJsonArr=JSON.parse(item.qzCellJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);qzCellJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let qzGsJsonArr=JSON.parse(item.qzGsJson);qzGsJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let isAllNotCc=!0;for(let j=0;j<qzGsJsonArr.length;j++){const itemQzgs=qzGsJsonArr[j];let curGsQz=itemQzgs.qzFor.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]");curGsQz=replaceVar(curGsQz,qzCellJsonArr),curGsQz=curGsQz.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)");try{if(eval(curGsQz)){const lastFor=replaceNum(itemQzgs.conFor,conJsonArrNew);try{if(eval(lastFor))isAllNotCc=!1,sheet.comments.add(item.row,item.col,itemQzgs.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}break}}catch(e){}}if(isAllNotCc&&(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet)){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}};isValueChgedUse?(varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)||qzCellJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex))&&doEvent():doEvent()}else{let varJsonArr=JSON.parse(item.varJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);const lastFor=replaceNum(item.conFor,conJsonArrNew);try{if(eval(lastFor))sheet.comments.add(item.row,item.col,item.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}};isValueChgedUse?varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)&&doEvent():doEvent()}}spread.resumeEvent(),spread.resumeCalcService(),spread.resumePaint()},dynamicLoadRows:(e,l,t,a,n,o=500,y=1,r="空白")=>{const x=l.getActiveSheet();x.suspendPaint();const s=SheetUtils.getAllCellObjsByRanges(x,t);s.forEach((e,l)=>{x.setRowVisible(e.row,!0)});const i=groupByJson(s,"row");let u=null,m=[];forEachJson(i,(l,t,a)=>{if(null==u){const e=x.getSpans(x.getCell(parseInt(t),1));u=e[0].colCount}const n=x.getSpans({row:parseInt(t),col:1,rowCount:l[0].rowCount,colCount:u})[0];let o=!1,y=[];for(let t=0;t<l.length;t++){const a=l[t];for(let e=a.row;e<a.row+a.rowCount;e++)y.some(l=>l==e)||y.push(e);const n=x.getValue(a.row,a.col);if(null!=n&&""!==n&&"/"!==n&&!(n instanceof e.Spread.CalcEngine.CalcError)){o=!0;break}}let r={row:parseInt(t),rows:y,cells:l,hasValue:o};if(m.some(e=>e.rowSpan==n.row)){m.find(e=>e.rowSpan==n.row).rows.push(r)}else{let e=[];const l=x.getSpans({row:n.row,col:1,rowCount:1,colCount:1})[0];for(let t=0;t<l.rowCount;t++)e.push(n.row+t);m.push({rowSpan:n.row,rowIndexs:e,rows:[r]})}});let c=[],h=[],p=[];m.forEach((e,l)=>{e.rows.some(e=>e.hasValue)&&!p.some(l=>l==e.rowSpan)&&p.push(e.rowSpan),e.rows.some(e=>e.hasValue)?e.rowIndexs.forEach(e=>{c.some(l=>l==e)||c.push(e)}):e.rowIndexs.forEach(e=>{h.some(l=>l==e)||h.push(e)})});let f=0;p.forEach((e,l)=>{const t=x.getValue(e,1);/^(?!\d+$)[\u4e00-\u9fa5a-zA-Z0-9!@#$%^&*()_+[\]{};':",.\/?\\|-]+$/.test(t)||(f++,x.setValue(e,1,f))}),c.forEach((e,l)=>{x.setRowVisible(e,!0)}),h.forEach(e=>{x.setRowVisible(e,!1)});return(()=>{const l=1==y?1055:615;let t=-1,s=0;for(let e=0;e<x.getRowCount();e++){const l=x.getRowVisible(e),a=x.getTag(e,1);!l||null!=a&&null!=a&&"BlankCell"==a||(s+=x.getRowHeight(e)),"BlankCell"==a&&(t=e)}let i=!0;if(1==y&&s-a-n>=o&&(i=!1),!i)return void(-1!=t&&x.setRowVisible(t,!1));const u=m[m.length-1].rowSpan+x.getSpans({row:m[m.length-1].rowSpan,col:1,rowCount:1,colCount:1})[0].rowCount-1;if(s<l){const t=x.getTag(u+1,1);if(t&&"BlankCell"===t)x.setRowHeight(u+1,l-s),x.setRowVisible(u+1,!0);else{x.addRows(u+1,1),x.addSpan(u+1,1,1,77),x.setRowHeight(u+1,l-s);const t=x.getRange(u+1,1,1,77);t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:!1,bottom:!1}),t.hAlign(e.Spread.Sheets.HorizontalAlign.center),t.vAlign(e.Spread.Sheets.HorizontalAlign.center),x.setValue(u+1,1,r),x.setTag(u+1,1,"BlankCell")}}else{const e=x.getTag(u+1,1);e&&"BlankCell"==e&&x.setRowVisible(u+1,!1)}})(),x.resumePaint(),{hasValueIndex:c,noValueIndex:h}},dynamicLoadRows_Backup:(e,l,t,a,n,o=500,y=1,r="空白")=>{const x=l.getActiveSheet();x.suspendPaint();const s=SheetUtils.getAllCellObjsByRanges(x,t);s.forEach((e,l)=>{x.setRowVisible(e.row,!0)});const i=groupByJson(s,"row");let u=null,m=[];forEachJson(i,(l,t,a)=>{if(null==u){const e=x.getSpans(x.getCell(parseInt(t),1));u=e[0].colCount}const n=x.getSpans({row:parseInt(t),col:1,rowCount:l[0].rowCount,colCount:u})[0];let o=!1,y=[];for(let t=0;t<l.length;t++){const a=l[t];for(let e=a.row;e<a.row+a.rowCount;e++)y.some(l=>l==e)||y.push(e);const n=x.getValue(a.row,a.col);if(null!=n&&""!==n&&"/"!==n&&!(n instanceof e.Spread.CalcEngine.CalcError)){o=!0;break}}let r={row:parseInt(t),rows:y,cells:l,hasValue:o};if(m.some(e=>e.rowSpan==n.row)){m.find(e=>e.rowSpan==n.row).rows.push(r)}else m.push({rowSpan:n.row,rows:[r]})});let c=[],h=[],p=[];m.forEach((e,l)=>{e.rows.some(e=>e.hasValue)&&!p.some(l=>l==e.rowSpan)&&p.push(e.rowSpan),e.rows.some(e=>e.hasValue)?e.rows.forEach(e=>{e.rows.forEach(e=>{c.some(l=>l==e)||c.push(e)})}):e.rows.forEach(e=>{e.rows.forEach(e=>{h.some(l=>l==e)||h.push(e)})})}),p.forEach((e,l)=>{x.setValue(e,1,l+1)}),c.forEach((e,l)=>{x.setRowVisible(e,!0)}),h.forEach(e=>{x.setRowVisible(e,!1)});return(()=>{const l=1==y?1055:615;let s=-1,i=0;for(let e=0;e<x.getRowCount();e++){const l=x.getRowVisible(e),t=x.getTag(e,1);!l||null!=t&&null!=t&&"BlankCell"==t||(i+=x.getRowHeight(e)),"BlankCell"==t&&(s=e)}let u=!0;if(1==y&&i-a-n>=o&&(u=!1),!u)return void(-1!=s&&x.setRowVisible(s,!1));const m=t[0].row+t[0].rowCount-1;if(i<l){const t=x.getTag(m+1,1);if(t&&"BlankCell"===t)x.setRowHeight(m+1,l-i),x.setRowVisible(m+1,!0);else{x.addRows(m+1,1),x.addSpan(m+1,1,1,77),x.setRowHeight(m+1,l-i);const t=x.getRange(m+1,1,1,77);t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),t.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:!1,bottom:!1}),t.hAlign(e.Spread.Sheets.HorizontalAlign.center),t.vAlign(e.Spread.Sheets.HorizontalAlign.center),x.setValue(m+1,1,r),x.setTag(m+1,1,"BlankCell")}}else{const e=x.getTag(m+1,1);e&&"BlankCell"==e&&x.setRowVisible(m+1,!1)}})(),x.resumePaint(),{hasValueIndex:c,noValueIndex:h}}},EChartsUtilsComm={filterValues:(e,l=["","/",null,void 0,0])=>{if(!Array.isArray(e)||0===e.length)return[];const t=[],a=e[0]?e[0].length:0;for(let n=0;n<a;n++){e.every(e=>{const t=e[n];return!l.includes(t)})&&t.push(n)}return e.map(e=>t.map(l=>e[l]))},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=1/l;const n=(e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(Number((e*a).toFixed(8)))/a;let o=l+"";if(-1==o.indexOf("."))return t?-n:n;{const e=n+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<o.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${n}.${e}`}{const a=e.split(".")[1];if(o.split(".")[1].length>a.length)for(let e=0;e<o.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${n}${l}`}}},calcTrend:(e,l,t)=>{let a=e.length,n=0,o=0,y=0,r=0;for(let t=0;t<a;t++)n+=e[t],o+=l[t],y+=e[t]*l[t],r+=e[t]*e[t];let x=(a*y-n*o)/(a*r-n*n),s=(o-x*n)/a;return x+""=="NaN"?{y:"",gs:"",xl:"",jj:""}:{y:x*t+s,gs:`${x}*x+${s}`,xl:x,jj:s}},filterNullEmptyErrArray:e=>e.filter(e=>0!=e&&null!=e&&null!=e&&(null==e._error||null==e._error)&&"/"!=e)},EChartsUtilsAll={chart10:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Number(EChartsUtilsComm.getRound(h+.05,.01)),g=Number(EChartsUtilsComm.getRound(c-.05,.01)),b=[],C=[];s.forEach((e,l)=>{C.push([e,i[l]])});const S=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),w=math.transpose(S),V=math.multiply(w,S),F=math.multiply(w,math.matrix(i));let E=null,N=[];try{E=math.lusolve(V,F),N=E.valueOf()}catch(e){for(let e=0;e<s.length;e++)N.push([0])}function A(e){let l=0;return N.forEach((t,a)=>{l+=t*e**a}),l}let v=[],D=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));D.push(A(l)),v.push(l)}let U=Math.max(...D),J=D.findIndex(e=>e===U),k=e.chartXName,O=e.chartYName;v.forEach((e,l)=>{s.includes(e)?b.push({value:[e,D[l]]}):b.push({value:[e,D[l]],symbol:"none"})});const M=[v[J],Number(EChartsUtilsComm.getRound(U,.001))],L=[M[0],g];null!=o&&(null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,u),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,m)),null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,v[J]));let j=[],z=[];j=[[{coord:L,lineStyle:{color:"#333",type:"dashed"}},{coord:M}]],z=[{xAxis:M[0],yAxis:M[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:M[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a1"}},itemStyle:{color:"transparent"}}];let I=!1;return b.forEach(e=>{I=e.value.every(e=>0==e)}),I&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:I?25:30,right:10,bottom:I?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:I?5:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:z},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:j}}]}},chart11:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=null,S=7.5;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=e.chartXName,L=e.chartYName;function j(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function z(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let I=[],R=[],T=[],Y=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&j(J[l-1],J[l],C,C)){let e=z(J[l-1],J[l],C);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?T.push(0):T.push(1)}if(null!=S&&j(J[l-1],J[l],S,S)){let e=z(J[l-1],J[l],S);R.push([U[l+e],J[l+e]]),J[l-1]>J[l]?Y.push(0):Y.push(1)}}});let q=u,G=m;0==I.length&&R.length>0?0==Y[0]?(q=u,G=R[0][0]):(q=R[0][0],G=1==R.length?m:R[1][0]):I.length>0&&0==R.length?0==T[0]?(q=I[0][0],G=1==I.length?m:I[1][0]):(q=u,G=I[0][0]):I.length>0&&R.length>0&&(0==T[0]?(q=I[0][0],G=R[0][0]):(q=R[0][0],G=I[0][0])),null!=o&&(null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,q),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,G)),null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,U[O]));const B=[U[O],Number(EChartsUtilsComm.getRound(k,.001))];let P=[],H=[];P=[[{coord:[B[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:B}]],H=[{xAxis:B[0],yAxis:B[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:B[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a2"}},itemStyle:{color:"transparent"}}],null!=C&&P.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&P.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let W=!1;return b.forEach(e=>{W=e.value.every(e=>0==e)}),W&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:W?25:30,right:10,bottom:W?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:M,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:L,nameGap:W?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:H},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:P}}]}},chart12:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=5,S=3;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],z=[],I=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?I.push(0):I.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&z.length>0?0==R[0]?(T=u,Y=z[0][0]):(T=z[0][0],Y=1==z.length?m:z[1][0]):j.length>0&&0==z.length?0==I[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&z.length>0&&(0==I[0]?(T=j[0][0],Y=z[0][0]):(T=z[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];if(j.length>0&&j.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),z.length>0&&z.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==z.length){const e=((j[0][0]+z[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=o&&null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,e),q.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),G.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a3"}},itemStyle:{color:"transparent"}})}null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart13:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=2;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],z=[],I=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?I.push(0):I.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&z.length>0?0==R[0]?(T=u,Y=z[0][0]):(T=z[0][0],Y=1==z.length?m:z[1][0]):j.length>0&&0==z.length?0==I[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&z.length>0&&(0==I[0]?(T=j[0][0],Y=z[0][0]):(T=z[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];q=[],G=[],null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart14:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=13.5;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],z=[],I=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?I.push(0):I.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&z.length>0?0==R[0]?(T=u,Y=z[0][0]):(T=z[0][0],Y=1==z.length?m:z[1][0]):j.length>0&&0==z.length?0==I[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&z.length>0&&(0==I[0]?(T=j[0][0],Y=z[0][0]):(T=z[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];q=[],G=[],null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart15:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=l[0],r=t[0],x=null!=o?o.dxsJs:5,s=[],i=[];if(y.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),r.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),x>=i.length&&(x=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+10),g=Math.floor(c-10),b=[],C=75,S=60;if(null!=o){if(null!=o.lqhhlSx&&null!=o.lqhhlSx){const e=a.getValue(o.lqhhlSx.row,o.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=o.lqhhlXx&&null!=o.lqhhlXx){const e=a.getValue(o.lqhhlXx.row,o.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+10),null!=S&&S>d&&(g=S-10);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],z=[],I=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?I.push(0):I.push(1)}if(null!=C&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let T=u,Y=m;0==j.length&&z.length>0?0==R[0]?(T=u,Y=z[0][0]):(T=z[0][0],Y=1==z.length?m:z[1][0]):j.length>0&&0==z.length?0==I[0]?(T=j[0][0],Y=1==j.length?m:j[1][0]):(T=u,Y=j[0][0]):j.length>0&&z.length>0&&(0==I[0]?(T=j[0][0],Y=z[0][0]):(T=z[0][0],Y=j[0][0])),null!=o&&null!=o.lqhhlKs&&null!=o.lqhhlKs&&(a.setValue(o.lqhhlKs.row,o.lqhhlKs.col,T),a.setValue(o.lqhhlJs.row,o.lqhhlJs.col,Y));let q=[],G=[];if(j.length>0&&j.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),z.length>0&&z.forEach((e,l)=>{q.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==z.length){const e=((j[0][0]+z[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=o&&null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,e),q.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),G.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a4"}},itemStyle:{color:"transparent"}})}null!=C&&q.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&q.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let B=!1;return b.forEach(e=>{B=e.value.every(e=>0==e)}),B&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:B?25:30,right:10,bottom:B?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:B?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:G},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:q}}]}},chart16:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=[[a.getValue(o.lqhhlHz[0].row,o.lqhhlHz[0].col),a.getValue(o.lqhhlHz[1].row,o.lqhhlHz[1].col)],[a.getValue(o.lqhhlHz[2].row,o.lqhhlHz[2].col),a.getValue(o.lqhhlHz[3].row,o.lqhhlHz[3].col)],[a.getValue(o.lqhhlHz[4].row,o.lqhhlHz[4].col),a.getValue(o.lqhhlHz[5].row,o.lqhhlHz[5].col)],[a.getValue(o.lqhhlHz[6].row,o.lqhhlHz[6].col),a.getValue(o.lqhhlHz[7].row,o.lqhhlHz[7].col)],[a.getValue(o.lqhhlHz[8].row,o.lqhhlHz[8].col),a.getValue(o.lqhhlHz[9].row,o.lqhhlHz[9].col)],[a.getValue(o.lqhhlHz[10].row,o.lqhhlHz[10].col),a.getValue(o.lqhhlHz[11].row,o.lqhhlHz[11].col)]],r=l[0],x=5.5,s=3.5,i=0,u=6,m=["VFA","VMA","流值","稳定度","空隙率","密度"];let c=[],h=[],p=Math.max(...y.map(e=>e[0])),f=Math.min(...y.map(e=>e[1]));if(y.forEach((e,l)=>{c.push([{coord:[e[0],y.length-l],lineStyle:{color:n[0].lineColor,type:"solid",width:2}},{coord:[e[1],y.length-l]}])}),p<=f&&(c.push([{coord:[p,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[p,6]}]),c.push([{coord:[f,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[f,6]}]),h=[{xAxis:p,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmin"}},itemStyle:{color:"transparent"}},{xAxis:f,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmax"}},itemStyle:{color:"transparent"}}]),p<=f){const e=(p+f)/2;c.push([{coord:[e,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[e,6]}]),h.push({xAxis:e,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OAC2"}},itemStyle:{color:"transparent"}})}isNaN(p)&&(p=0),isNaN(f)&&(f=0),null!=o&&(null!=o.lqhhlSc1&&null!=o.lqhhlSc1&&a.setValue(o.lqhhlSc1.row,o.lqhhlSc1.col,p),null!=o.lqhhlSc2&&null!=o.lqhhlSc2&&a.setValue(o.lqhhlSc2.row,o.lqhhlSc2.col,f));let d=!1;return y.forEach(e=>{d=e.every(e=>"/"==e)}),d&&(s=null,x=null,i=null,u=null),{grid:{top:25,left:10,right:10,bottom:d?20:16,containLabel:!0},title:[{show:!0,text:"OAC",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:"油石比(%)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:x,min:s,data:r,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:u,min:i,axisLabel:{formatter:function(e){return 0==e?"":m[e-1]}}}],series:[{name:"图例1",type:"line",markPoint:{data:h},markLine:{symbol:["none","none"],data:c}}]}},chart30:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);null==o||null!=o.jsIsJz&&null!=o.jsIsJz||(o.jsIsJz=!0);let y=2==l.length;t.length>1&&!t[1].some(e=>null!=e&&null!=e&&"/"!=e)&&(y=!1);let r=l[0],x=y?l[1]:[],s=t[0],i=y?t[1]:[],u=[],m=[];if(r.forEach((e,l)=>{"/"!=e&&0!=e&&null!=e&&null!=e&&"/"!=s[l]&&0!=s[l]&&null!=s[l]&&null!=s[l]&&(u.push(e),m.push(s[l]))}),r=u,s=m,y){let e=[],l=[];x.forEach((t,a)=>{"/"!=t&&0!=t&&null!=t&&null!=t&&"/"!=i[a]&&0!=i[a]&&null!=i[a]&&null!=i[a]&&(e.push(t),l.push(i[a]))}),x=e,i=l}let c=e.chartTitle,h=e.chartXName,p=e.chartYName;const f=(e,l,t,y,r)=>{let x=null!=o?o.dxsJs:5,s=[],i=[],u=[];if(e.forEach((e,t)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&0!=e&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(l[t])&&0!=l[t]&&(s.push(e),i.push(l[t]))}),0==i.length)return;x>=i.length&&(x=i.length-1);let m,c,h=Math.min(...s),p=Math.max(...s),f=Math.min(...i),d=Math.max(...i),g=Math.ceil(p+.1),b=Math.trunc(h-.1),C=Number(EChartsUtilsComm.getRound(d+.02,.01)),S=Number(EChartsUtilsComm.getRound(f-.02,.01));null!=o&&o.jsIsJz&&(null!=o.jsZjhslJz&&null!=o.jsZjhslJz&&(m=a.getValue(o.jsZjhslJz.row,o.jsZjhslJz.col)),null!=o.jsZdgmdJz&&null!=o.jsZdgmdJz&&(c=a.getValue(o.jsZdgmdJz.row,o.jsZdgmdJz.col)),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&c>C&&(C=Number(EChartsUtilsComm.getRound(c+.02,.01))));let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const V=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math.pow(e[a],t));t.push(n)}return math.matrix(t)}(s,x),F=math.transpose(V),E=math.multiply(F,V),N=math.multiply(F,math.matrix(i));let A=null,v=[];try{A=math.lusolve(E,N),v=A.valueOf()}catch(e){for(let e=0;e<s.length;e++)v.push([0])}function D(e){let l=0;return v.forEach((t,a)=>{l+=t*e**a}),l}let U=[],J=[];for(let e=h;e<=p;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));e=Number(l),J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=.01,L=.001,j=0,z=0;null!=o&&(null!=o.jsZjhslJd&&null!=o.jsZjhslJd&&(M=o.jsZjhslJd),null!=o.jsZdgmdJd&&null!=o.jsZdgmdJd&&(L=o.jsZdgmdJd),0==U[O]&&0==k?(a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,"/"),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,"/")):(j=EChartsUtilsComm.getRound(U[O],M),z=EChartsUtilsComm.getRound(k,L),a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,j),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,z))),U.forEach((e,l)=>{s.includes(e)?u.push({value:[e,J[l]]}):u.push({value:[e,J[l]],symbol:"none"})});const I=[U[O],Number(EChartsUtilsComm.getRound(k,L))],R=[I[0],S],T=[b,I[1]];let Y={data:[{xAxis:EChartsUtilsComm.getRound(I[0],M),yAxis:EChartsUtilsComm.getRound(I[1],L),symbolOffset:[0,15],symbol:"circle",symbolSize:6,label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},q={symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:[[{coord:R,lineStyle:{color:"#333",type:"dashed"}},{coord:I}],[{coord:T,lineStyle:{color:"#333",type:"dashed"}},{coord:I}]]};o.jsIsJz&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(m)&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&(q=null,Y.data[0].label=null,Y.data[0].symbolOffset=null,Y.data[0].itemStyle.color="#F56C6C",Y.data[0].xAxis=m,Y.data[0].yAxis=c,q=null);let G={name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[r?1:0].lineColor,type:r?"dotted":"solid"},itemStyle:{color:n[r?1:0].lineColor},data:u,markPoint:t?Y:null,markLine:y?q:null};return{xAxisMin:b,xAxisMax:g,yAxisMin:S,yAxisMax:C,xData:s,seriesDataObj:G,maxPointData:[U[O],k]}};let d,g=0,b=0,C=0,S=0,w=[],V=[],F=0,E=0,N=f(r,s,!y,!y,!1);y&&(d=f(x,i,!1,!1,!0));let A=!1;if(null!=N&&null!=N||(A=!0),!A)if(y){if(null==d||null==d)return;b=N.xAxisMax,d.xAxisMax>b&&(b=d.xAxisMax),g=N.xAxisMin,d.xAxisMin<g&&(g=d.xAxisMin),S=N.yAxisMax,d.yAxisMax>S&&(S=d.yAxisMax),C=N.yAxisMin,d.yAxisMin<C&&(C=d.yAxisMin),N.xData.forEach(e=>{w.push(e)}),d.xData.forEach(e=>{w.push(e)}),V.push(N.seriesDataObj),V.push(d.seriesDataObj),F=(N.maxPointData[0]+d.maxPointData[0])/2,E=(N.maxPointData[1]+d.maxPointData[1])/2;let e=.01,l=.001,t=0,n=0;null!=o&&(null!=o.jsZjhslJd&&null!=o.jsZjhslJd&&(e=o.jsZjhslJd),null!=o.jsZdgmdJd&&null!=o.jsZdgmdJd&&(l=o.jsZdgmdJd),0==F&&0==E?(a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,"/"),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,"/")):(t=EChartsUtilsComm.getRound(F,e),n=EChartsUtilsComm.getRound(E,l),a.setValue(o.jsZjhsl.row,o.jsZjhsl.col,t),a.setValue(o.jsZdgmd.row,o.jsZdgmd.col,n)))}else g=N.xAxisMin,b=N.xAxisMax,C=N.yAxisMin,S=N.yAxisMax,w=N.xData,V.push(N.seriesDataObj);return V.forEach(e=>{A=e.data[0].value.every(e=>0==e)}),A&&(g=null,b=null,C=null,S=null,V=[]),{grid:{top:25,left:A?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:A?0:b,min:A?0:g,data:w,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:A?0:S,min:A?0:C,name:p,nameGap:A?25:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:A?[]:V}},chart50:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,o=e.chartYName;const y=l[0],r=t[0],x=t[1],s=t[2],i=[];y.forEach((e,l)=>{i.push({x:e,y:r[l],ySx:x[l],yXx:s[l]})}),i.sort(function(e,l){return e.x-l.x});const u=[],m=[],c=[],h=[];let p=0;x.forEach((e,l)=>{null!=e&&"/"!=e||p++}),p==x.length?i.forEach((e,l)=>{u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx)}):i.forEach((e,l)=>{null!=e.ySx&&"/"!=e.ySx&&null!=e.yXx&&"/"!=e.yXx&&(u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx))});let f=[],d=[],g=[],b=[];u.forEach((e,l)=>{const t=Number(EChartsUtilsComm.getRound(e**.45,.001));f.push([t,m[l]]),b.push({name:e+"",xAxis:t,label:{show:!(u.length>=6&&l%2!=0&&l<6),fontSize:10}}),d.push([t,c[l]]),g.push([t,h[l]])});const C=(e,l)=>{const t=1==e?"筛分曲线":2==e?"上限":"下限",n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;let r={name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,z:10,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l,connectNulls:!0,markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:b}};return r};let S=!1;0==f.length&&(S=!0);let w=0;return f.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||w++}),w==f.length&&(S=!0),(x.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(S=!1),f.filter(e=>0==e[1]).length==f.length&&d.filter(e=>0==e[1]).length==d.length&&g.filter(e=>0==e[1]).length==g.length&&(S=!0),t[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[1].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[2].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(S=!0),{grid:{top:20,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){if(e&&e[0].data.length>1){let l=b.filter(l=>l.xAxis==e[0].data[0]);return e[0].seriesName+"("+l[0].name+"):"+e[0].data[1]}return e[0].data}},title:[{show:!0,text:"",left:"center",top:5,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",data:["筛分曲线","上限","下限"],selected:{"筛分曲线":!0,"上限":!0,"下限":!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:f.length>0?f[0][0]>.2?f[0][0]-.2:0:null,max:f.length>0?f[f.length-1][0]+.1:null},yAxis:[{type:"value",name:o,nameGap:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},min:0,max:100,splitNumber:10,axisLabel:{fontSize:10}}],series:[C(1,S?[]:f),C(2,S?[]:d),C(3,S?[]:g)]}},chart70:(e,l,t,a)=>{JSON.parse(e.chartLinesJson);const n=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);if(l[0].some(e=>null==e||""==e||null==e)||t[0].some(e=>null==e||""==e||null==e))return{};let o=e.chartTitle,y=e.chartXName,r=e.chartYName,x=l[0],s=t[0],i=100,u="砂类土",m=[],c=[];if(null!=n){let e=a.getValue(n.jxhslZtzl.row,n.jxhslZtzl.col),l=a.getValue(n.jxhslCllx.row,n.jxhslCllx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(e=Number(e),100!=e&&76!=e||(i=e)),"砂类土"!=l&&"细粒土"!=l||(u=l)}for(const e of x)m.push(Math.log(e));for(const e of s)c.push(Math.log(e));let h=(c[2]-c[1])/(m[2]-m[1]),p=(c[2]-c[0])/(m[2]-m[0]);const f=Math.max.apply(Math,x)+1,d=Math.min.apply(Math,x)-.3,g=Math.max.apply(Math,s)+1,b=Math.min.apply(Math,s)-2,C=["C","B","A"],S=[];function w(e,l,t){const a=Math.log(e[0]),n=Math.log(e[1]),o=Math.log(l[0]),y=n+(Math.log(l[1])-n)/(o-a)*(Math.log(t)-a);return Math.exp(y)}x.forEach((e,l)=>{S.push([e,s[l],C[l]])});let V=[20,w([x[2],s[2]],[x[1],s[1]],20)],F=[20,w([x[2],s[2]],[x[0],s[0]],20)];function E(e){let l;return l="砂类土"==u?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),l}let N,A,v,D=[],U=[],J=[],k=E(x[2]),O=Math.log(k),M=(h*m[2]-(c[2]-O))/h,L=(p*m[2]-(c[2]-O))/p,j=Math.exp((M+L)/2),z=Math.log(j),I=(c[2]-O)/(m[2]-z);if(76==i){let e=Math.log(17),l=(I*m[2]-(c[2]-e))/I,t=Math.exp(l),a=Math.log(2),n=(I*m[2]-(c[2]-a))/I,o=Math.exp(n);J=[j,k],D=[j,b],U=[d,k],S.push([j,k,"Hp"]),N=k,A=t,v=o}else if(100==i){let e=Math.log(20),l=(I*m[2]-(c[2]-e))/I,t=Math.exp(l),a=E(t),n=Math.log(a),o=(h*m[2]-(c[2]-n))/h,y=(p*m[2]-(c[2]-n))/p,r=Math.exp((o+y)/2),x=r;J=[r,a],D=[r,b],U=[d,a],S.push([r,a,"Hp"]),N=a,A=t,v=x}if((isNaN(N)||isNaN(A)||isNaN(v))&&(N=0,A=0,v=0),null!=n){let e=.01,l=.01,t=.01;null!=n.jxhslScHpJd&&null!=n.jxhslScHpJd&&(e=n.jxhslScHpJd),null!=n.jxhslScWlJd&&null!=n.jxhslScWlJd&&(l=n.jxhslScWlJd),null!=n.jxhslScWpJd&&null!=n.jxhslScWpJd&&(t=n.jxhslScWpJd),null!=n.jxhslScHp&&null!=n.jxhslScHp&&(0==N?a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,"/"):a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,EChartsUtilsComm.getRound(N,e))),null!=n.jxhslScWl&&null!=n.jxhslScWl&&(0==A?a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,"/"):a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,EChartsUtilsComm.getRound(A,l))),null!=n.jxhslScWp&&null!=n.jxhslScWp&&(0==v?a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,"/"):a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,EChartsUtilsComm.getRound(v,t)))}let R=!1;0==x.length&&(R=!0);let T=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||T++}),T==x.length&&(R=!0),(s.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(R=!1),{grid:{top:20,left:R?25:50,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",min:d,max:f,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"log",name:r,nameGap:R?5:30,nameRotate:90,nameLocation:"middle",min:b,max:g,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},series:[{name:"图例1",data:S,type:"scatter",symbol:"circle",smooth:!1,symbolSize:6,label:{show:!0,formatter:function(e){return e.data[2]},position:"right",minMargin:2},markLine:{symbol:["none","none"],silent:!0,label:{show:!0,position:"start",color:"#000000"},lineStyle:{type:"solid",color:"#333"},data:[{xAxis:S[0][0]},{xAxis:S[1][0]},{xAxis:S[2][0]},{yAxis:S[0][1]},{yAxis:S[1][1]},{yAxis:S[2][1]},[{coord:D,lineStyle:{color:"#333",type:"dashed"}},{coord:J}],[{coord:U,lineStyle:{color:"#333",type:"dashed"}},{coord:J}]]}},{type:"line",data:[[x[2],s[2]],[x[1],s[1]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[x[1],s[1]],[V[0],V[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[x[2],s[2]],[x[0],s[0]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[x[0],s[0]],[F[0],F[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[x[2],s[2]],J],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"}]}},chart90:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.jxhslSnShScfc&&null!=chartExtJson.jxhslSnShScfc)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,curYData]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1),yDataArr[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(yValIsAllNull=!0);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"dotted"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart110:(e,l,t,a,n)=>{let o=JSON.parse(e.chartLinesJson),y=e.chartTitle,r=e.chartXName,x=e.chartYName;const s=a[0];let i=[];s.forEach((e,l)=>{"/"==e?i.push(e):i.push(Number(e))});let u=t[0],m=[];i.forEach((e,l)=>{"/"!=e&&null!=e&&null!=e&&m.push([e,u[l]])});let c=!1;return 0==m.length&&(c=!0),{grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){let l="";for(let t=0;t<i.length;t++)if(i[t]==e){l=s[t],"/"==l&&(l="");break}return l}}},yAxis:[{type:"value",name:x,nameGap:c?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:o[0].lineColor},itemStyle:{color:o[0].lineColor},data:m}]}},chart130:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=.01,i=200,u=[];r.forEach((e,l)=>{u.push(["筛底"==e?0:e,x[l]])});let m=!1;0==r.length&&(m=!0);let c=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||c++}),c==r.length&&(m=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),m&&(s=null,i=null),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:s,max:i},yAxis:[{type:"value",name:y,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:u}]}},chart150:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=!1;0==r.length&&(i=!0);let u=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==r.length&&(i=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:y,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:r.map(e=>({xAxis:e}))}}]}},chart170:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=!1;0==r.length&&(i=!0);let u=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==r.length&&(i=!0),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:y,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:r.map(e=>({xAxis:e}))}}]}},chart190:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,o=e.chartYName,y=l[0],r=t[0];y=y.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code)),r=r.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code));let x=!1;0==y.length&&(x=!0);let s=0;return y.forEach(e=>{null!=e&&null!=e&&"/"!=e||s++}),s==y.length&&(x=!0,y=[]),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(x=!1),{grid:{top:10,left:x?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:y,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:o,nameGap:x?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:r}]}},chart210:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l[0],o=t[0],y=e.chartTitle,r=e.chartXName,x=e.chartYName;const s=[];for(let e=n.length-1;e>=0;e--){const l=n[e];null==l||null==l||"/"==l||null!=l._error&&null!=l._error||s.push([l,o[e]])}let i=!1;0==n.length&&(i=!0);let u=0;n.forEach(e=>{(null==e||null==e||"/"==e||null!=e._error&&null!=e._error)&&u++}),u==n.length&&(i=!0),o.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1);return{grid:{top:25,left:!i&&s.length>0?30:25,right:10,bottom:40,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:x,nameGap:!i&&s.length>0?30:5,nameRotate:90,nameLocation:"middle",axisLabel:{fontSize:10}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value,fontSize:10},lineStyle:{color:"#ddd",type:"solid"},data:(()=>{let e=[];[0,.02,.04,.06,.08,.1].forEach(l=>{n.forEach(t=>{let a={xAxis:""};"/"==t?(a.xAxis="",e.push(a)):(a.xAxis=l,e.push(a))})});let l=e.filter((e,l,t)=>l===t.findIndex(l=>l.xAxis==e.xAxis));return u==n.length?[]:l})()}}]}},chart230:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l.length,o=[],y=[],r=[],x=[],s=[],i=[];o=EChartsUtilsComm.filterNullEmptyErrArray(l[0]),x=EChartsUtilsComm.filterNullEmptyErrArray(t[0]),2==n&&(y=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1])),3==n&&(y=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1]),r=EChartsUtilsComm.filterNullEmptyErrArray(l[2]),i=EChartsUtilsComm.filterNullEmptyErrArray(t[2]));let u=[],m=[],c=[];o.forEach((e,l)=>{if("object"==typeof e)u.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)u.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);u.push(t)}}),y.forEach((e,l)=>{if("object"==typeof e)m.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)m.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);m.push(t)}}),r.forEach((e,l)=>{if("object"==typeof e)c.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)c.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);c.push(t)}}),o.length>0&&(u.push(u[u.length-1]+20),u.unshift(u[0]-20),x.push(null),x.unshift(null)),2==n&&y.length>0&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null)),3==n&&0==r.length&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null),c.push(c[c.length-1]+20),c.unshift(c[0]-20),i.push(null),i.unshift(null));let h=e.chartTitle,p=e.chartXName,f=e.chartYName;const d=(e,l)=>({type:"category",data:l,axisTick:{alignWithLabel:!0},show:1==e,splitLine:{show:!0}});let g=[d(1,u)];2==n&&g.push(d(2,m)),3==n&&(g.push(d(2,m)),g.push(d(3,c)));const b=(e,l)=>{const t=1==e?"第一组":2==e?"第二组":"第三组",n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e&&a.length>=1?a[0].lineColor:2==e&&a.length>=2?a[1].lineColor:3==e&&a.length>=3?a[2].lineColor:"#000";return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:6,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l}};let C=[b(1,x)];2==n&&s.length>0&&C.push(b(2,s)),3==n&&(s.length>0&&C.push(b(2,s)),i.length>0&&C.push(b(3,i)));let S=1==n?["第一组"]:2==n?["第一组","第二组"]:["第一组","第二组","第三组"],w=1==n?{"第一组":!0}:2==n?{"第一组":!0,"第二组":!0}:{"第一组":!0,"第二组":!0,"第三组":!0},V=!1,F=!1,E=0;return 0==o.length?(F=!0,E=15,S=["第二组","第三组"],w={"第一组":!1,"第二组":!0,"第三组":!0},g=[],C=[],g.push(d(1,m)),g.push(d(3,c)),C.push(b(2,s)),C.push(b(3,i)),0==y.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,c)),C.push(b(3,i)),0==r.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==y.length?(E=15,F=!0,S=["第一组","第三组"],w={"第一组":!0,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),g.push(d(3,c)),C.push(b(1,x)),C.push(b(3,i)),0==o.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),C.push(b(3,x)),0==r.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==r.length&&(E=15,F=!0,S=["第一组","第二组"],w={"第一组":!0,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,u)),g.push(d(2,m)),C.push(b(1,x)),C.push(b(2,s)),0==o.length&&(E=35,S=["第二组"],w={"第一组":!1,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,m)),C.push(b(2,s)),0==y.length&&(E=0,V=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(2,[]))))),{grid:{top:F?E:-5,left:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:h,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:p,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",top:16,data:S,selected:w,selectedMode:"multiple"},xAxis:g,yAxis:[{type:"value",name:f,nameGap:V?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:C}},chart250:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName;const r=l[0],x=t[0];let s=[];r.forEach((e,l)=>{s.push([e,x[l]])});let i=.001,u=100,m=!1;0==r.length&&(m=!0);let c=0;return r.forEach(e=>{null!=e&&null!=e&&"/"!=e||c++}),c==r.length&&(m=!0,i=null,u=null),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:i,max:u},yAxis:[{type:"value",name:y,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s}]}},chart270:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=[],x=[],s=[],i=[],u=[],m=[];l[0].forEach((e,l)=>{0!=e&&0!=t[0][l]&&(r.push(e),i.push(t[0][l]))}),l[1].forEach((e,l)=>{0!=e&&0!=t[1][l]&&(x.push(e),u.push(t[1][l]))}),l[2].forEach((e,l)=>{0!=e&&0!=t[2][l]&&(s.push(e),m.push(t[2][l]))});const c=(e,l,t)=>{const n=`曲线${e}`,o=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],r=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor,x=[];return l.forEach((e,l)=>{x.push([e,t[l]])}),{name:n,type:"line",smooth:!0,symbol:o,symbolSize:5,lineStyle:{color:r,type:y},itemStyle:{color:r},data:x}};let h=!1;return r.every(e=>"/"==e)&&x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0),{grid:{top:35,left:h?25:30,right:20,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,r,i),c(2,x,u),c(3,s,m)]}},chart279_280_281:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=279==e.chartType?5:280==e.chartType?.1:.15,x=l[0],s=t[0],i=Math.min(...x),u=Number(EChartsUtilsComm.getRound(Math.min(...s)-r,.001)),m=Number(EChartsUtilsComm.getRound(Math.max(...s)+r,.001));i=Number(EChartsUtilsComm.getRound(i-.01*i,.001));let c=[];x.forEach((e,l)=>{c.push([e,s[l]])});let h=!1;return s.every(e=>"/"==e)&&(h=!0),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",min:i,max:100},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0},min:u,max:m}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:c}]}},chart290:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=l[0],x=l[0],s=l[0],i=t[0],u=t[1],m=t[2];const c=(e,l)=>{const t=`曲线${e}`,n=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],y=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,lineStyle:{color:y,type:o},itemStyle:{color:y},data:l}};let h=!1;return r.every(e=>"/"==e)&&x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0,r=[]),{grid:{top:35,left:h?25:30,right:10,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end",axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:y,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,i),c(2,u),c(3,m)]}},chart310:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=l[0],x=t[0],s=[],i=[];r.forEach((e,l)=>{null==e||null==e||"/"==e||null!=e._code&&null!=e._code||(s.push(e),i.push(x[l]))}),r=s,x=i;let u=!1;return r.every(e=>"/"==e||null!=e._code&&null!=e._code)&&x.every(e=>"/"==e||null!=e._code&&null!=e._code)&&(u=!0,r=[]),{grid:{top:35,left:u?25:30,right:20,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisLabel:{formatter:function(e){return"/"==e?"":e}},axisTick:{alignWithLabel:!0},axisLine:{symbol:["none","arrow"],symbolSize:10},splitLine:{show:!0},position:"top",name:"p",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:y,nameGap:u?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0,symbol:["arrow","none"],symbolSize:10}},{name:"L",nameRotate:0,nameLocation:"end",nameGap:5,position:"left",inverse:!0}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:x}]}},chart330:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartXName,r=e.chartYName,x=l[0],s=t[0];const i=EChartsUtilsComm.calcTrend(x,s,x[0]);let u=EChartsUtilsComm.getRound((.15-i.jj)/i.xl,0),m=EChartsUtilsComm.getRound((.19-i.jj)/i.xl,0),c=EChartsUtilsComm.getRound((.25-i.jj)/i.xl,0),h=EChartsUtilsComm.getRound((.31-i.jj)/i.xl,0);u==1/0&&(u=0),m==1/0&&(m=0),c==1/0&&(c=0),h==1/0&&(h=0);let p=`${u}~${m}`,f=`${c}~${h}`;null!=o&&(0==u&&0==m?a.setValue(o.bszdjBh.row,o.bszdjBh.col,"/"):a.setValue(o.bszdjBh.row,o.bszdjBh.col,p),0==c&&0==h?a.setValue(o.bszdjYs.row,o.bszdjYs.col,"/"):a.setValue(o.bszdjYs.row,o.bszdjYs.col,f));let d=!1;return x.every(e=>"/"==e)&&s.every(e=>"/"==e)&&(d=!0,x=[]),{grid:{top:10,left:d?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:r,nameGap:d?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:s}]}},chart350:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson)[0].lineColor;const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson),y=[l[0][0],l[0][1]],r=[t[0][0],t[0][1]],x=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,y[0]).y,.1)),s=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,y[1]).y,.1)),i=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(y,r,25).y,.1)),u=Math.floor(Number(s))-2,m=Math.floor(Number(x))+2;let c=e.chartTitle,h=e.chartXName,p=e.chartYName,f=!0;f=0==l[0].filter(e=>null!=e&&null!=e&&"/"!=e).length,f&&(f=0==t[0].filter(e=>null!=e&&null!=e&&"/"!=e).length);let d=[{name:"图例1",type:"line",symbol:"circle",z:10,lineStyle:{color:n},itemStyle:{color:n},connectNulls:!0,data:[[0,null],[2,null],[3.5,null],[4.9,null],[5.9,null],[6.9,null],{value:[10.4,i-2.7*(i-x)/2.1],symbol:"none"},[11,x],[11.8,null],[13.1,i],[14.6,s],{value:[15.2,2.1/1.5*(s-i)+i],symbol:"none"},[16.4,null],[17.4,null],[18.9,null],[19.8,null],[20.7,null],[21.6,null],[22.6,null]],markPoint:{data:[{xAxis:13.1,yAxis:i,symbolOffset:[40,25],label:{show:!0,color:"#000",formatter:function(e){return f?"":"(25 , "+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:[{name:"5",xAxis:0,label:{fontSize:8}},{name:"6",xAxis:2,label:{fontSize:8}},{name:"7",xAxis:3.5,label:{fontSize:8}},{name:"8",xAxis:4.9,label:{fontSize:8}},{name:"9",xAxis:5.9,label:{fontSize:8}},{name:"10",xAxis:6.9,label:{fontSize:8}},{name:"",xAxis:10.4,lineStyle:{opacity:0}},{name:"",xAxis:11},{name:"20",xAxis:11.8,label:{fontSize:8}},{name:"25",xAxis:13.1,label:{fontSize:8}},{name:"30",xAxis:14.6,label:{fontSize:8}},{name:"",xAxis:15.2,lineStyle:{opacity:0}},{name:"40",xAxis:16.4,label:{fontSize:8}},{name:"50",xAxis:17.4,label:{fontSize:8}},{name:"",xAxis:18.9},{name:"",xAxis:19.8},{name:"",xAxis:20.7},{name:"",xAxis:21.6},{name:"100",xAxis:22.6,label:{fontSize:8}},[{coord:[0,i],lineStyle:{color:"#529b2e",type:"solid"}},{coord:[13.1,i]}],[{coord:[13.1,u],lineStyle:{color:"#000",type:"silid"}},{coord:[13.1,i]}]]}}];if(f&&(d=[]),null!=o&&null!=o&&null!=o.yxdsyHsl&&null!=o.yxdsyHsl){let e=.1,l=0;null!=o.yxdsyHslJd&&null!=o.yxdsyHslJd&&(e=o.yxdsyHslJd),l=EChartsUtilsComm.getRound(i,e),a.setValue(o.yxdsyHsl.row,o.yxdsyHsl.col,l)}return{grid:{top:25,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e[0].data.length>1?null==e[0].data[1]?"":e[0].seriesName+"("+e[0].data[0]+"):"+e[0].data[1]:e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:0,max:23.5},yAxis:[{type:"value",name:p,nameGap:f?10:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},splitNumber:4,min:f?null:u,max:m,axisLabel:{show:!f,fontSize:8},axisTick:{show:!f}}],series:d}},chart370:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=null!=o?o.dxsJs:5;const r=n[0].lineColor,x=EChartsUtilsComm.filterValues([l[0],t[0]]);for(var s=x[0],i=x[1],u=0,m=0,c=0,h=0,p=0,f=0;f<s.length;f++){var d=s[f],g=i[f],b=d*d,C=b*d;u+=C*d,m+=C,c+=b,h+=b*g,p+=d*g}var S=u*c-m*m,w=(h*c-p*m)/S,V=(u*p-m*h)/S,F=V*V+4*w*50,E=(-V+Math.sqrt(F))/(y*w);(E<0||E>Math.max(...s)+Math.min(...s))&&(E=(-V-Math.sqrt(F))/(y*w));var N=[],A=[],v=Math.max(...s)+Math.min(...s);for(d=0;d<=v;d+=.01)N.push(d),A.push(w*d*d+V*d);let D=!1;if(0==A.length)D=!0;else{let e=0;A.forEach(l=>{null!=l&&null!=l&&"/"!=l&&""!=l||e++}),e==A.length&&(D=!0)}const U=N.map((e,l)=>[e,A[l]]);let J=.01,k=0;return null!=o&&(D?a.setValue(o.jsDzvi.row,o.jsDzvi.col,"/"):(null!=o.jsDzviJd&&null!=o.jsDzviJd&&(J=o.jsDzviJd),k=EChartsUtilsComm.getRound(E,J),a.setValue(o.jsDzvi.row,o.jsDzvi.col,k))),{title:[{show:!0,text:"V₂₀(mm/s)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:10,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,max:v,axisLine:{show:!0}},yAxis:{type:"value",name:"Δh (mm)",nameGap:D?5:30,nameRotate:90,nameLocation:"middle",min:0,max:Math.max(...i)+10,interval:10,axisLine:{show:!0}},series:[{name:"趋势线",type:"line",data:U,symbol:"none",lineStyle:{color:r,type:"solid"},smooth:!0},{name:"y=50 标注点",type:"scatter",data:[[E,50]],symbolSize:10,itemStyle:{color:r},label:{show:!0,position:"right",formatter:"("+E.toFixed(2)+", 50)",color:"#333",fontSize:12},markLine:{symbol:"none",lineStyle:{color:"#333",type:"dashed",width:1},data:[[{coord:[0,50]},{coord:[E,50]}],[{coord:[E,50]},{coord:[E,0]}]]}}]}},chart390:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=[],x=[];a.forEach((e,a)=>{l[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&t[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&(r.push(e.legend),x.push({name:e.legend,type:"line",data:l[0].filter(e=>0!=e&&null!=e&&null!=e&&"/"!=e).map((e,l)=>[e,t[a][l]]),symbol:0==a?"triangle":1==a?"circle":"rect",lineStyle:{color:e.lineColor,type:2==a?"solid":"dotted"},smooth:!0}))});return{title:[{show:!0,text:n,left:"100px",top:5,textStyle:{fontSize:12,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{top:"2px",right:"5px",data:r,selectedMode:"multiple"},grid:{top:25,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,axisLine:{show:!0}},yAxis:{type:"value",name:y,nameGap:30,nameRotate:90,nameLocation:"middle",min:0,interval:10,axisLine:{show:!0}},series:x}},chart410:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.yhmhlBzHgx&&null!=chartExtJson.yhmhlBzHgx)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,yDataSource[index]]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"solid"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart430:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];let m=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(m=!0);let c="/",h="/",p="/",f=[];const d=Math.max(...i);if(!m){const e=function(e,l,t){const a=e.length;let n=[];for(let o=0;o<a;o++){let a=[];for(let l=0;l<=t;l++)a.push(Math.pow(e[o],l));n.push([l[o]])}let o=[];for(let l=0;l<=t;l++){o[l]=[];for(let n=0;n<=t;n++){let t=0;for(let o=0;o<a;o++)t+=Math.pow(e[o],l+n);o[l][n]=t}}let y=[];for(let n=0;n<=t;n++){let t=0;for(let o=0;o<a;o++)t+=Math.pow(e[o],n)*l[o];y[n]=t}let r=[];for(let e=0;e<=t;e++){r[e]=[];for(let l=0;l<=t;l++)r[e][l]=o[e][l];r[e][t+1]=y[e]}for(let e=0;e<=t;e++){let l=e;for(let a=e+1;a<=t;a++)Math.abs(r[a][e])>Math.abs(r[l][e])&&(l=a);[r[e],r[l]]=[r[l],r[e]];const a=r[e][e];for(let l=e;l<=t+1;l++)r[e][l]/=a;for(let l=e+1;l<=t;l++){const a=r[l][e];for(let n=e;n<=t+1;n++)r[l][n]-=a*r[e][n]}}const x=new Array(t+1);for(let e=t;e>=0;e--){x[e]=r[e][t+1];for(let l=e+1;l<=t;l++)x[e]-=r[e][l]*x[l]}return x}(i,u,2);c=e[2].toFixed(4),h=e[1].toFixed(4),p=e[0].toFixed(4);const l=Math.min(...i),t=(d-l)/100;for(let e=l;e<=d;e+=t){const l=parseFloat(c)*e*e+parseFloat(h)*e+parseFloat(p);f.push([e,l])}}return null!=o&&(null!=o.dwylHtbxGs&&null!=o.dwylHtbxGs&&a.setValue(o.dwylHtbxGs.row,o.dwylHtbxGs.col,"NaN"!=c&&"NaN"!=h&&"NaN"!=p?`Y=${c}X²+${h}X+${p}`:"/"),null!=o.dwylHtbxA&&null!=o.dwylHtbxA&&a.setValue(o.dwylHtbxA.row,o.dwylHtbxA.col,"NaN"!=c?c:"/"),null!=o.dwylHtbxB&&null!=o.dwylHtbxB&&a.setValue(o.dwylHtbxB.row,o.dwylHtbxB.col,"NaN"!=h?h:"/"),null!=o.dwylHtbxC&&null!=o.dwylHtbxC&&a.setValue(o.dwylHtbxC.row,o.dwylHtbxC.col,"NaN"!=p?p:"/")),{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",nameLocation:"end",nameTextStyle:{fontSize:14,padding:[10,0,0,0]},min:0,max:d+.05},yAxis:{type:"value",name:x,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",interval:20,min:0,max:Math.max(...u)+10,axisLine:{lineStyle:{color:"#333"}}},tooltip:{trigger:"axis",formatter:function(e){return e.length>1?`单位压力: ${e[0].value[0]} MPa<br/>回弹变形: ${e[0].value[1]} (1/1000mm)`:`趋势线<br/>单位压力: ${e[0].value[0]} MPa<br/>预测回弹变形: ${e[0].value[1].toFixed(2)} (1/1000mm)`}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:5,itemStyle:{color:s}},{name:"多项式趋势线",type:"line",data:f,symbol:"none",lineStyle:{color:s,width:1,type:"dashed"},smooth:.3,tooltip:{trigger:"item"}}]}},chart450:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,o=e.chartXName,y=e.chartYName,r=a[0].lineColor;const x=l[0],s=t[0];const i=function(e,l){const t=e.length;let a=0,n=0,o=0,y=0;for(let r=0;r<t;r++)a+=e[r],n+=l[r],o+=e[r]*l[r],y+=e[r]*e[r];const r=(t*o-a*n)/(t*y-a*a);return{slope:r,intercept:(n-r*a)/t}}(x,s);Math.min(...x);const u=Math.max(...x)+50,m=[];for(let e=0;e<=u;e+=10){const l=i.slope*e+i.intercept;m.push([e,l])}let c=!1;0!=x.length&&0!=s.length&&(x.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),x.filter(e=>0==e).length!=x.length&&s.filter(e=>0==e).length!=s.length||(c=!0);return{title:[{show:!0,text:n,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e){let l="";return e.forEach(e=>{"实际数据"===e.seriesName?l+=`法向应力: ${e.value[0]} kPA<br/>剪应力: ${e.value[1]} kPA`:"趋势线"===e.seriesName&&(l+=`趋势线<br/>法向应力: ${e.value[0]} kPA<br/>预测剪应力: ${e.value[1].toFixed(2)} kPA`)}),l}},xAxis:{name:o,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12,fontWeight:"bold"},type:"value",min:0,max:450,interval:50,axisLine:{lineStyle:{color:"#333"}}},yAxis:{name:y,nameGap:c?5:35,nameRotate:90,nameLocation:"middle",type:"value",min:0,interval:50,axisLine:{lineStyle:{color:"#333"}}},series:[{name:"实际数据",type:"scatter",data:c?[]:x.map((e,l)=>[e,s[l]]),symbolSize:5,itemStyle:{color:r}},{name:"趋势线",type:"line",data:c?[]:m,symbol:"none",lineStyle:{color:r,width:1,type:"solid"}}]}},chart470:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];function m(e,l,t){for(let a=0;a<t.length-1;a++)if(t[a]>=e&&t[a+1]<=e||t[a]<=e&&t[a+1]>=e){const n=l[a],o=l[a+1],y=t[a];return n+(o-n)*(e-y)/(t[a+1]-y)}return null}const c=m(5,i,u),h=m(10,i,u);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0),null!=o&&(null!=o.tghcclYxkj5&&null!=o.tghcclYxkj5&&a.setValue(o.tghcclYxkj5.row,o.tghcclYxkj5.col,c?EChartsUtilsComm.getRound(c,.001):"/"),null!=o.tghcclYxkj10&&null!=o.tghcclYxkj10&&a.setValue(o.tghcclYxkj10.row,o.tghcclYxkj10.col,h?EChartsUtilsComm.getRound(h,.001):"/"));return{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],tooltip:{trigger:"axis",formatter:function(e){return`标准颗粒直径: ${e[0].value[0].toFixed(3)} mm<br>过筛率: ${e[0].value[1].toFixed(2)} %`}},grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{name:r,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12},type:"log",axisLine:{lineStyle:{color:"#333"}},min:.01,max:1,axisLabel:{formatter:function(e){return e.toFixed(2)}},splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}},minorTick:{show:!0},minorSplitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}}},yAxis:{type:"value",name:x,nameLocation:"middle",nameGap:25,nameTextStyle:{fontSize:12},axisLine:{lineStyle:{color:"#333"}},min:0,max:25,splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1}}},series:p?[]:[{name:"孔径分布",type:"line",data:i.map((e,l)=>[e,u[l]]),smooth:!0,lineStyle:{width:2,type:"solid"},showSymbol:!0,symbol:"circle",symbolSize:8,itemStyle:{color:s,borderColor:"#fff",borderWidth:1},markPoint:{symbol:"circle",symbolSize:1,data:[{name:"y=5",coord:[c,5],value:5,itemStyle:{color:"red"},label:{show:!0,formatter:`(${c.toFixed(3)},5)`,position:"right",fontSize:12}},{name:"y=10",coord:[h,10],value:10,itemStyle:{color:"red"},label:{show:!0,formatter:`(${h.toFixed(3)},10)`,position:"right",fontSize:12}}]},markLine:{symbol:"none",data:[[{coord:[.01,5],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[c,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[.01,10],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[h,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}]]}}]}},chart490:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const o=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let y=e.chartTitle,r=e.chartXName,x=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];const m=u.map(e=>Math.log10(e)),c=function(e,l){const t=e.length,a=e.reduce((e,l)=>e+l,0)/t,n=l.reduce((e,l)=>e+l,0)/t;let o=0,y=0;for(let r=0;r<t;r++)o+=(e[r]-a)*(l[r]-n),y+=(e[r]-a)*(e[r]-a);const r=o/y;return{slope:r,intercept:n-r*a}}(i,m),h=function(e,l,t,a){const n=e.length,o=l.reduce((e,l)=>e+l,0)/n;let y=0,r=0;for(let x=0;x<n;x++){y+=Math.pow(l[x]-o,2);const n=t*e[x]+a;r+=Math.pow(l[x]-n,2)}return 1-r/y}(i,m,c.slope,c.intercept);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0);const f=(p?[]:[30,70,100,150,200]).map(e=>({yAxis:e,label:{show:!0,formatter:"{c}"},lineStyle:{color:"#e0e0e0",width:1,type:"solid"}}));null!=o&&(null!=o.wdzrdXlA&&null!=o.wdzrdXlA&&a.setValue(o.wdzrdXlA.row,o.wdzrdXlA.col,c.slope?EChartsUtilsComm.getRound(c.slope,1e-4):"/"),null!=o.wdzrdCsB&&null!=o.wdzrdCsB&&a.setValue(o.wdzrdCsB.row,o.wdzrdCsB.col,c.intercept?EChartsUtilsComm.getRound(c.intercept,1e-4):"/"),null!=o.wdzrdXsR&&null!=o.wdzrdXsR&&a.setValue(o.wdzrdXsR.row,o.wdzrdXsR.col,h?EChartsUtilsComm.getRound(h,1e-4):"/"));return{title:[{show:!0,text:y,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:r,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:p?20:40,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",name:r,min:Math.min(...i)},yAxis:{type:"log",name:x,nameLocation:"middle",nameGap:p?5:25,logBase:10,min:function(e){return Math.max(1,Math.pow(10,Math.floor(Math.log10(e.min))))},max:function(e){const l=e.max;if(l<=0)return 100;const t=Math.log10(l),a=Math.floor(t),n=t-a;let o;return o=n<.3?a+.3:n<.7?a+1:a+1.5,Math.pow(10,o)},splitLine:{show:!1},axisLabel:{show:!1},zlevel:1,minorSplitLine:{show:!1}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:6,zlevel:4,itemStyle:{color:s}},{name:"趋势线",type:"line",data:(()=>{const e=Math.min(...i),l=Math.max(...i),t=[];for(let a=e;a<=l;a+=.5){const e=c.slope*a+c.intercept,l=Math.pow(10,e);t.push([a,l])}return t})(),showSymbol:!1,lineStyle:{color:s,width:1},zlevel:5},{name:"自定义网格线",type:"line",data:[],markLine:{symbol:"none",lineStyle:{color:"#e0e0e0",width:1,type:"solid"},label:{show:!0,position:"start",formatter:"{c}"},data:f},silent:!0}]}},chart510:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson),o=e.chartTitle,y=e.chartXName,r=n[0].lineColor,x=n[1].lineColor;const s=l[0],i=t[0],u=t[1];let m=!1,c=!1;0!=s.length&&0!=i.length&&(s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),s.filter(e=>0==e).length!=s.length&&i.filter(e=>0==e).length!=i.length||(m=!0),0!=s.length&&0!=u.length&&(s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),s.filter(e=>0==e).length!=s.length&&u.filter(e=>0==e).length!=u.length||(c=!0);return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1},grid:{top:25,left:25,right:25,bottom:m&&c?25:20,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",data:s,splitLine:{show:!0}},yAxis:[{type:"value",name:"磨耗值(g/㎡)",nameLocation:"middle",nameGap:m?5:35,max:Math.max(...i)+100,splitLine:{show:!0},axisLine:{show:!0},axisLabel:{formatter:"{value}"},axisTick:{show:!0}},{type:"value",name:"粘附砂量(g/㎡)",nameLocation:"middle",nameGap:c?5:35,max:Math.max(...u)+100,splitLine:{show:!1},axisLine:{show:!0},axisLabel:{formatter:"{value}"},axisTick:{show:!0}}],series:[{name:"磨耗值",type:"line",smooth:!0,data:m?[]:i.filter(e=>0!=e),yAxisIndex:0,symbol:"circle",symbolSize:5,lineStyle:{color:r},itemStyle:{color:r}},{name:"粘附砂量",type:"line",smooth:!0,data:c?[]:u.filter(e=>0!=e),yAxisIndex:1,symbol:"circle",symbolSize:5,lineStyle:{color:x},itemStyle:{color:x}}]}}},EChartsUtils={create:(e,l,t,a,...n)=>__awaiter(void 0,[e,l,t,a,...n],void 0,function*(e,l,t,a,n=!1,o=!1){a.chartIdStr&&a.chartIdStr.length>0&&(a.chartId=a.chartIdStr);const y=null==a.chartExtJson||null==a.chartExtJson?null:JSON.parse(a.chartExtJson);if(null!=y&&null!=y.isShowCon&&null!=y.isShowCon){if(t.getValue(y.isShowCon.row,y.isShowCon.col)!=y.isShowVal)return void t.floatingObjects.remove(a.chartId)}let r=0,x=0,s=0,i=0;for(let e=0;e<a.row;e++)r+=t.getRowHeight(e);r+=t.getRowHeight(0,e.Spread.Sheets.SheetArea.colHeader);for(let e=a.col;e<a.col+a.colCount;e++)x+=t.getColumnWidth(e);for(let e=0;e<a.col;e++)s+=t.getColumnWidth(e);s+=t.getColumnWidth(0,e.Spread.Sheets.SheetArea.rowHeader);for(let e=a.row;e<a.row+a.rowCount;e++)i+=t.getRowHeight(e);const u={x:s-40+2,y:r-20+2,w:x-6,h:i-6};let m=t.floatingObjects.get(a.chartId);if(null==m||null==m?(m=new e.Spread.Sheets.FloatingObjects.FloatingObject(a.chartId,u.x,u.y,u.w,u.h),m.allowResize(!1),m.allowMove(!1),t.floatingObjects.add(m)):(m.x(u.x),m.y(u.y),m.width(u.w),m.height(u.h)),null==document.getElementById(a.chartId+"_ec")){const e=document.createElement("div");e.setAttribute("style","background-color:#fff;width:100%;height:100%;"),e.innerHTML=`<div id="${a.chartId}_ec" style="width:100%;height:100%;"></div>`,m.content(e)}let c=null;return c=(yield new Promise((e,y)=>{setTimeout(()=>{e({ecObj:EChartsUtils.initChart(l,t,a,n,o)})},10)})).ecObj,{fObj:m,fObjPosition:u,ecObj:c}}),initChart:(e,l,t,a=!1,n=!1)=>{if(null==document.getElementById(t.chartId+"_ec"))return null;let o=[],y=[],r=[],x=[];const s=(e,l,t,a)=>{let n={dataOneArr:[],dataOneSourceArr:[]},o=null;return null!=t&&null!=t&&t.length>0&&(o=e.getSheetFromName(t)),null==a||a.forEach((e,t)=>{const a=null!=o?o.getValue(e.row,e.col):l.getValue(e.row,e.col);n.dataOneSourceArr.push(a),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(a)?n.dataOneArr.push(Number(a)):n.dataOneArr.push(null==a||null!=a&&null!=a&&null!=a._error&&null!=a._error?0:a)}),n};JSON.parse(t.chartLinesJson).forEach((t,a)=>{let n=[],i=[],u=[],m=[];const c=s(e,l,t.sheetNameX,t.xCells);n=c.dataOneArr,u=c.dataOneSourceArr;const h=s(e,l,t.sheetNameY,t.yCells);i=h.dataOneArr,m=h.dataOneSourceArr,o.push(n),y.push(i),r.push(u),x.push(m)});const i=document.getElementById(t.chartId+"_ec");let u,m=echarts.getInstanceByDom(i);return null!=m&&null!=m||(m=echarts.init(i,null,{renderer:"canvas",useDirtyRect:!1})),10==t.chartType?u=EChartsUtilsAll.chart10(t,o,y,l):11==t.chartType?u=EChartsUtilsAll.chart11(t,o,y,l):12==t.chartType?u=EChartsUtilsAll.chart12(t,o,y,l):13==t.chartType?u=EChartsUtilsAll.chart13(t,o,y,l):14==t.chartType?u=EChartsUtilsAll.chart14(t,o,y,l):15==t.chartType?u=EChartsUtilsAll.chart15(t,o,y,l):16==t.chartType?u=EChartsUtilsAll.chart16(t,o,y,l):30==t.chartType?u=EChartsUtilsAll.chart30(t,o,y,l):50==t.chartType?u=EChartsUtilsAll.chart50(t,o,y):70==t.chartType?u=EChartsUtilsAll.chart70(t,o,y,l):90==t.chartType?u=EChartsUtilsAll.chart90(t,o,y,l):110==t.chartType?u=EChartsUtilsAll.chart110(t,o,y,r,x):130==t.chartType?u=EChartsUtilsAll.chart130(t,o,y):150==t.chartType?u=EChartsUtilsAll.chart150(t,o,y):170==t.chartType?u=EChartsUtilsAll.chart170(t,o,y):190==t.chartType?u=EChartsUtilsAll.chart190(t,o,y):210==t.chartType?u=EChartsUtilsAll.chart210(t,o,y):230==t.chartType?u=EChartsUtilsAll.chart230(t,o,y):250==t.chartType?u=EChartsUtilsAll.chart250(t,o,y):270==t.chartType?u=EChartsUtilsAll.chart270(t,o,y):279==t.chartType||280==t.chartType||281==t.chartType?u=EChartsUtilsAll.chart279_280_281(t,o,y):290==t.chartType?u=EChartsUtilsAll.chart290(t,o,y):310==t.chartType?u=EChartsUtilsAll.chart310(t,o,y):330==t.chartType?u=EChartsUtilsAll.chart330(t,o,y,l):350==t.chartType?u=EChartsUtilsAll.chart350(t,o,y,l):370==t.chartType?u=EChartsUtilsAll.chart370(t,o,y,l):390==t.chartType?u=EChartsUtilsAll.chart390(t,o,y):410==t.chartType?u=EChartsUtilsAll.chart410(t,o,y,l):430==t.chartType?u=EChartsUtilsAll.chart430(t,o,y,l):450==t.chartType?u=EChartsUtilsAll.chart450(t,o,y):470==t.chartType?u=EChartsUtilsAll.chart470(t,o,y,l):490==t.chartType?u=EChartsUtilsAll.chart490(t,o,y,l):510==t.chartType&&(u=EChartsUtilsAll.chart510(t,o,y,l)),u&&"object"==typeof u&&(a&&(u.animation=!1),m.setOption(u)),m.setOption(u),m},getEChartsObj:e=>{const l=document.getElementById(e+"_ec");let t=echarts.getInstanceByDom(l);return null==t||null==t?null:t}},FormulaUtilsOther={YJHTQD:(e,l,t,a)=>{var n;if("非泵送混凝土"==l){for(var o="",y=a,r=t,x=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<x.length;s++){if(y==x[s]){o=s;break}if(1*y>"6"){o=x.length-1;break}}var i=[{x:20,y:10.3},{x:20.2,y:10.5},{x:20.4,y:10.7},{x:20.6,y:11},{x:20.8,y:11.2},{x:21,y:11.4},{x:21.2,y:11.6},{x:21.4,y:11.8},{x:21.6,y:12},{x:21.8,y:12.3},{x:22,y:12.5},{x:22.2,y:12.7},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.4},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.4},{x:24.6,y:15.6},{x:24.8,y:15.9},{x:25,y:16.2},{x:25.2,y:16.4},{x:25.4,y:16.7},{x:25.6,y:16.9},{x:25.8,y:17.2},{x:26,y:17.5},{x:26.2,y:17.8},{x:26.4,y:18},{x:26.6,y:18.3},{x:26.8,y:18.6},{x:27,y:18.9},{x:27.2,y:19.1},{x:27.4,y:19.4},{x:27.6,y:19.7},{x:27.8,y:20},{x:28,y:20.3},{x:28.2,y:20.6},{x:28.4,y:20.9},{x:28.6,y:21.2},{x:28.8,y:21.5},{x:29,y:21.8},{x:29.2,y:22.1},{x:29.4,y:22.4},{x:29.6,y:22.7},{x:29.8,y:23},{x:30,y:23.3},{x:30.2,y:23.6},{x:30.4,y:23.9},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.6},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.9},{x:32.4,y:27.2},{x:32.6,y:27.6},{x:32.8,y:27.9},{x:33,y:28.2},{x:33.2,y:28.6},{x:33.4,y:28.9},{x:33.6,y:29.3},{x:33.8,y:29.6},{x:34,y:30},{x:34.2,y:30.3},{x:34.4,y:30.7},{x:34.6,y:31.1},{x:34.8,y:31.4},{x:35,y:31.8},{x:35.2,y:32.1},{x:35.4,y:32.5},{x:35.6,y:32.9},{x:35.8,y:33.3},{x:36,y:33.6},{x:36.2,y:34},{x:36.4,y:34.4},{x:36.6,y:34.8},{x:36.8,y:35.2},{x:37,y:35.5},{x:37.2,y:35.9},{x:37.4,y:36.3},{x:37.6,y:36.7},{x:37.8,y:37.1},{x:38,y:37.5},{x:38.2,y:37.9},{x:38.4,y:38.3},{x:38.6,y:38.7},{x:38.8,y:39.1},{x:39,y:39.5},{x:39.2,y:39.9},{x:39.4,y:40.3},{x:39.6,y:40.7},{x:39.8,y:41.2},{x:40,y:41.6},{x:40.2,y:42},{x:40.4,y:42.4},{x:40.6,y:42.8},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.9},{x:42.2,y:46.3},{x:42.4,y:46.7},{x:42.6,y:47.2},{x:42.8,y:47.6},{x:43,y:48.1},{x:43.2,y:48.5},{x:43.4,y:49},{x:43.6,y:49.4},{x:43.8,y:49.9},{x:44,y:50.4},{x:44.2,y:50.8},{x:44.4,y:51.3},{x:44.6,y:51.7},{x:44.8,y:52.2},{x:45,y:52.7},{x:45.2,y:53.2},{x:45.4,y:53.6},{x:45.6,y:54.1},{x:45.8,y:54.6},{x:46,y:55},{x:46.2,y:55.5},{x:46.4,y:56},{x:46.6,y:56.5},{x:46.8,y:57},{x:47,y:57.5},{x:47.2,y:58},{x:47.4,y:58.5},{x:47.6,y:59},{x:47.8,y:59.5},{x:48,y:60}],u=[{x:20,y:10.1},{x:20.2,y:10.3},{x:20.4,y:10.5},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.4},{x:21.4,y:11.6},{x:21.6,y:11.8},{x:21.8,y:12.1},{x:22,y:12.2},{x:22.2,y:12.4},{x:22.4,y:12.7},{x:22.6,y:12.9},{x:22.8,y:13.1},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.8},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15.1},{x:24.6,y:15.3},{x:24.8,y:15.6},{x:25,y:15.9},{x:25.2,y:16.1},{x:25.4,y:16.4},{x:25.6,y:16.6},{x:25.8,y:16.9},{x:26,y:17.2},{x:26.2,y:17.4},{x:26.4,y:17.6},{x:26.6,y:17.9},{x:26.8,y:18.2},{x:27,y:18.5},{x:27.2,y:18.7},{x:27.4,y:19},{x:27.6,y:19.3},{x:27.8,y:19.6},{x:28,y:19.7},{x:28.2,y:20},{x:28.4,y:20.3},{x:28.6,y:20.6},{x:28.8,y:20.9},{x:29,y:21.1},{x:29.2,y:21.4},{x:29.4,y:21.7},{x:29.6,y:22},{x:29.8,y:22.3},{x:30,y:22.6},{x:30.2,y:22.9},{x:30.4,y:23.2},{x:30.6,y:23.6},{x:30.8,y:23.9},{x:31,y:24.2},{x:31.2,y:24.4},{x:31.4,y:24.8},{x:31.6,y:25.1},{x:31.8,y:25.4},{x:32,y:25.7},{x:32.2,y:26.1},{x:32.4,y:26.4},{x:32.6,y:26.8},{x:32.8,y:27.1},{x:33,y:27.4},{x:33.2,y:27.7},{x:33.4,y:28},{x:33.6,y:28.4},{x:33.8,y:28.7},{x:34,y:29.1},{x:34.2,y:29.4},{x:34.4,y:29.8},{x:34.6,y:30.2},{x:34.8,y:30.5},{x:35,y:30.8},{x:35.2,y:31.1},{x:35.4,y:31.5},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.4},{x:36.6,y:33.8},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.2},{x:37.6,y:35.6},{x:37.8,y:36},{x:38,y:36.4},{x:38.2,y:36.8},{x:38.4,y:37.2},{x:38.6,y:37.5},{x:38.8,y:37.9},{x:39,y:38.2},{x:39.2,y:38.5},{x:39.4,y:38.8},{x:39.6,y:39.1},{x:39.8,y:39.6},{x:40,y:39.9},{x:40.2,y:40.3},{x:40.4,y:40.7},{x:40.6,y:41.1},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.3},{x:41.4,y:42.7},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44.1},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.3},{x:42.8,y:45.7},{x:43,y:46.2},{x:43.2,y:46.6},{x:43.4,y:47},{x:43.6,y:47.4},{x:43.8,y:47.9},{x:44,y:48.4},{x:44.2,y:48.8},{x:44.4,y:49.2},{x:44.6,y:49.6},{x:44.8,y:50.1},{x:45,y:50.6},{x:45.2,y:51.1},{x:45.4,y:51.5},{x:45.6,y:51.9},{x:45.8,y:52.4},{x:46,y:52.8},{x:46.2,y:53.3},{x:46.4,y:53.8},{x:46.6,y:54.2},{x:46.8,y:54.7},{x:47,y:55.2},{x:47.2,y:55.7},{x:47.4,y:56.2},{x:47.6,y:56.6},{x:47.8,y:57.1},{x:48,y:57.6},{x:48.2,y:58},{x:48.4,y:58.6},{x:48.6,y:59},{x:48.8,y:59.5},{x:49,y:60}],m=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.7},{x:22,y:11.9},{x:22.2,y:12.1},{x:22.4,y:12.4},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:13},{x:23.2,y:13.2},{x:23.4,y:13.4},{x:23.6,y:13.7},{x:23.8,y:13.9},{x:24,y:14.2},{x:24.2,y:14.3},{x:24.4,y:14.6},{x:24.6,y:14.8},{x:24.8,y:15.1},{x:25,y:15.4},{x:25.2,y:15.6},{x:25.4,y:15.9},{x:25.6,y:16.1},{x:25.8,y:16.3},{x:26,y:16.6},{x:26.2,y:16.9},{x:26.4,y:17.1},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:18},{x:27.2,y:18.1},{x:27.4,y:18.4},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.2},{x:28.2,y:19.5},{x:28.4,y:19.7},{x:28.6,y:20},{x:28.8,y:20},{x:29,y:20.5},{x:29.2,y:20.8},{x:29.4,y:21.1},{x:29.6,y:21.3},{x:29.8,y:21.6},{x:30,y:21.9},{x:30.2,y:22.2},{x:30.4,y:22.5},{x:30.6,y:22.8},{x:30.8,y:23.1},{x:31,y:23.4},{x:31.2,y:23.7},{x:31.4,y:24.1},{x:31.6,y:24.3},{x:31.8,y:24.6},{x:32,y:24.9},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28},{x:34.2,y:28.3},{x:34.4,y:28.6},{x:34.6,y:28.9},{x:34.8,y:29.2},{x:35,y:29.6},{x:35.2,y:29.9},{x:35.4,y:30.2},{x:35.6,y:30.6},{x:35.8,y:31},{x:36,y:31.2},{x:36.2,y:31.6},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.9},{x:38.2,y:35.2},{x:38.4,y:35.6},{x:38.6,y:36},{x:38.8,y:36.4},{x:39,y:36.7},{x:39.2,y:37},{x:39.4,y:37.3},{x:39.6,y:37.6},{x:39.8,y:38},{x:40,y:38.3},{x:40.2,y:38.6},{x:40.4,y:39},{x:40.6,y:39.4},{x:40.8,y:39.8},{x:41,y:40.2},{x:41.2,y:40.6},{x:41.4,y:40.9},{x:41.6,y:41.4},{x:41.8,y:41.8},{x:42,y:42.2},{x:42.2,y:42.6},{x:42.4,y:43},{x:42.6,y:43.4},{x:42.8,y:43.8},{x:43,y:44.2},{x:43.2,y:44.6},{x:43.4,y:45.1},{x:43.6,y:45.4},{x:43.8,y:45.9},{x:44,y:46.4},{x:44.2,y:46.7},{x:44.4,y:47.2},{x:44.6,y:47.6},{x:44.8,y:48},{x:45,y:48.5},{x:45.2,y:48.9},{x:45.4,y:49.4},{x:45.6,y:49.8},{x:45.8,y:50.2},{x:46,y:50.6},{x:46.2,y:51.1},{x:46.4,y:51.5},{x:46.6,y:52},{x:46.8,y:52.4},{x:47,y:52.9},{x:47.2,y:53.4},{x:47.4,y:53.8},{x:47.6,y:54.3},{x:47.8,y:54.7},{x:48,y:55.2},{x:48.2,y:55.7},{x:48.4,y:56.1},{x:48.6,y:56.6},{x:48.8,y:57.1},{x:49,y:57.5},{x:49.2,y:58},{x:49.4,y:58.5},{x:49.6,y:58.9},{x:49.8,y:59.4},{x:50,y:59.9},{x:50.2,y:60}],c=[{x:20.6,y:10.1},{x:20.8,y:10.3},{x:21,y:10.5},{x:21.2,y:10.7},{x:21.4,y:10.9},{x:21.6,y:11},{x:21.8,y:11.3},{x:22,y:11.5},{x:22.2,y:11.7},{x:22.4,y:12},{x:22.6,y:12.1},{x:22.8,y:12.3},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13},{x:23.6,y:13.2},{x:23.8,y:13.4},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.4},{x:25.6,y:15.7},{x:25.8,y:15.8},{x:26,y:16.1},{x:26.2,y:16.4},{x:26.4,y:16.6},{x:26.6,y:16.8},{x:26.8,y:17.1},{x:27,y:17.4},{x:27.2,y:17.6},{x:27.4,y:17.8},{x:27.6,y:18},{x:27.8,y:18.2},{x:28,y:18.4},{x:28.2,y:18.6},{x:28.4,y:18.8},{x:28.6,y:19.1},{x:28.8,y:19.4},{x:29,y:19.6},{x:29.2,y:19.9},{x:29.4,y:20.2},{x:29.6,y:20.4},{x:29.8,y:20.7},{x:30,y:21},{x:30.2,y:21.2},{x:30.4,y:21.5},{x:30.6,y:21.9},{x:30.8,y:22.1},{x:31,y:22.4},{x:31.2,y:22.7},{x:31.4,y:23},{x:31.6,y:23.3},{x:31.8,y:23.6},{x:32,y:23.9},{x:32.2,y:24.2},{x:32.4,y:24.5},{x:32.6,y:24.8},{x:32.8,y:25.1},{x:33,y:25.4},{x:33.2,y:25.7},{x:33.4,y:26},{x:33.6,y:26.4},{x:33.8,y:26.6},{x:34,y:26.8},{x:34.2,y:27},{x:34.4,y:27.2},{x:34.6,y:27.4},{x:34.8,y:27.6},{x:35,y:28},{x:35.2,y:28.2},{x:35.4,y:28.6},{x:35.6,y:29},{x:35.8,y:29.3},{x:36,y:29.6},{x:36.2,y:29.9},{x:36.4,y:30.3},{x:36.6,y:30.6},{x:36.8,y:31},{x:37,y:31.2},{x:37.2,y:31.6},{x:37.4,y:31.9},{x:37.6,y:32.3},{x:37.8,y:32.6},{x:38,y:33},{x:38.2,y:33.4},{x:38.4,y:33.7},{x:38.6,y:34.1},{x:38.8,y:34.4},{x:39,y:34.7},{x:39.2,y:35},{x:39.4,y:35.3},{x:39.6,y:35.6},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.5},{x:40.4,y:36.9},{x:40.6,y:37.2},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.2},{x:41.8,y:39.5},{x:42,y:39.9},{x:42.2,y:40.3},{x:42.4,y:40.6},{x:42.6,y:41.1},{x:42.8,y:41.4},{x:43,y:41.8},{x:43.2,y:42.2},{x:43.4,y:42.6},{x:43.6,y:43},{x:43.8,y:43.4},{x:44,y:43.8},{x:44.2,y:44.2},{x:44.4,y:44.6},{x:44.6,y:45},{x:44.8,y:45.4},{x:45,y:45.8},{x:45.2,y:46.3},{x:45.4,y:46.6},{x:45.6,y:47.1},{x:45.8,y:47.5},{x:46,y:47.9},{x:46.2,y:48.3},{x:46.4,y:48.7},{x:46.6,y:49.2},{x:46.8,y:49.6},{x:47,y:50},{x:47.2,y:50.5},{x:47.4,y:50.9},{x:47.6,y:51.3},{x:47.8,y:51.8},{x:48,y:52.2},{x:48.2,y:52.6},{x:48.4,y:53.1},{x:48.6,y:53.5},{x:48.8,y:54},{x:49,y:54.4},{x:49.2,y:54.8},{x:49.4,y:55.3},{x:49.6,y:55.7},{x:49.8,y:56.2},{x:50,y:56.7},{x:50.2,y:57.1},{x:50.4,y:57.6},{x:50.6,y:58},{x:50.8,y:58.5},{x:51,y:59},{x:51.2,y:59.4},{x:51.4,y:59.9},{x:51.6,y:60}],h=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.4},{x:21.6,y:10.6},{x:21.8,y:10.8},{x:22,y:11},{x:22.2,y:11.2},{x:22.4,y:11.4},{x:22.6,y:11.6},{x:22.8,y:11.8},{x:23,y:12.1},{x:23.2,y:12.2},{x:23.4,y:12.4},{x:23.6,y:12.7},{x:23.8,y:12.8},{x:24,y:13.1},{x:24.2,y:13.3},{x:24.4,y:13.6},{x:24.6,y:13.7},{x:24.8,y:14},{x:25,y:14.3},{x:25.2,y:14.4},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.1},{x:26,y:15.4},{x:26.2,y:15.7},{x:26.4,y:15.8},{x:26.6,y:16.1},{x:26.8,y:16.4},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17},{x:27.6,y:17.2},{x:27.8,y:17.4},{x:28,y:17.6},{x:28.2,y:17.8},{x:28.4,y:18},{x:28.6,y:18.2},{x:28.8,y:18.5},{x:29,y:18.7},{x:29.2,y:19},{x:29.4,y:19.3},{x:29.6,y:19.5},{x:29.8,y:19.8},{x:30,y:20},{x:30.2,y:20.3},{x:30.4,y:20.6},{x:30.6,y:20.9},{x:30.8,y:21.2},{x:31,y:21.4},{x:31.2,y:21.7},{x:31.4,y:22},{x:31.6,y:22.3},{x:31.8,y:22.5},{x:32,y:22.8},{x:32.2,y:23.1},{x:32.4,y:23.4},{x:32.6,y:23.7},{x:32.8,y:24},{x:33,y:24.3},{x:33.2,y:24.6},{x:33.4,y:24.9},{x:33.6,y:25.2},{x:33.8,y:25.4},{x:34,y:25.6},{x:34.2,y:25.8},{x:34.4,y:26},{x:34.6,y:26.2},{x:34.8,y:26.4},{x:35,y:26.7},{x:35.2,y:27},{x:35.4,y:27.3},{x:35.6,y:27.6},{x:35.8,y:28},{x:36,y:28.2},{x:36.2,y:28.6},{x:36.4,y:28.9},{x:36.6,y:29.2},{x:36.8,y:29.6},{x:37,y:29.8},{x:37.2,y:30.2},{x:37.4,y:30.5},{x:37.6,y:30.8},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.1},{x:38.6,y:32.4},{x:38.8,y:32.7},{x:39,y:33},{x:39.2,y:33.3},{x:39.4,y:33.6},{x:39.6,y:33.9},{x:39.8,y:34.2},{x:40,y:34.5},{x:40.2,y:34.8},{x:40.4,y:35.1},{x:40.6,y:35.4},{x:40.8,y:35.7},{x:41,y:36},{x:41.2,y:36.3},{x:41.4,y:36.6},{x:41.6,y:36.9},{x:41.8,y:37.2},{x:42,y:37.6},{x:42.2,y:38},{x:42.4,y:38.3},{x:42.6,y:38.7},{x:42.8,y:39},{x:43,y:39.4},{x:43.2,y:39.8},{x:43.4,y:40.2},{x:43.6,y:40.5},{x:43.8,y:40.9},{x:44,y:41.3},{x:44.2,y:41.7},{x:44.4,y:42.1},{x:44.6,y:42.4},{x:44.8,y:42.8},{x:45,y:43.2},{x:45.2,y:43.6},{x:45.4,y:44},{x:45.6,y:44.4},{x:45.8,y:44.8},{x:46,y:45.2},{x:46.2,y:45.5},{x:46.4,y:45.9},{x:46.6,y:46.3},{x:46.8,y:46.7},{x:47,y:47.2},{x:47.2,y:47.6},{x:47.4,y:48},{x:47.6,y:48.4},{x:47.8,y:48.8},{x:48,y:49.2},{x:48.2,y:49.6},{x:48.4,y:50},{x:48.6,y:50.4},{x:48.8,y:50.9},{x:49,y:51.3},{x:49.2,y:51.7},{x:49.4,y:52.1},{x:49.6,y:52.5},{x:49.8,y:53},{x:50,y:53.4},{x:50.2,y:53.8},{x:50.4,y:54.3},{x:50.6,y:54.7},{x:50.8,y:55.1},{x:51,y:55.6},{x:51.2,y:56},{x:51.4,y:56.4},{x:51.6,y:56.9},{x:51.8,y:57.3},{x:52,y:57.8},{x:52.2,y:58.2},{x:52.4,y:58.7},{x:52.8,y:59.6},{x:53,y:60}],p=[{x:21.4,y:10},{x:21.6,y:10.2},{x:21.8,y:10.5},{x:22,y:10.6},{x:22.2,y:10.8},{x:22.4,y:11},{x:22.6,y:11.2},{x:22.8,y:11.4},{x:23,y:11.6},{x:23.2,y:11.8},{x:23.4,y:12},{x:23.6,y:12.2},{x:23.8,y:12.4},{x:24,y:12.7},{x:24.2,y:12.8},{x:24.4,y:13.1},{x:24.6,y:13.3},{x:24.8,y:13.5},{x:25,y:13.8},{x:25.2,y:13.9},{x:25.4,y:14.2},{x:25.6,y:14.4},{x:25.8,y:14.6},{x:26,y:14.9},{x:26.2,y:15.1},{x:26.4,y:15.3},{x:26.6,y:15.6},{x:26.8,y:15.8},{x:27,y:16.1},{x:27.2,y:16.2},{x:27.4,y:16.4},{x:27.6,y:16.6},{x:27.8,y:16.8},{x:28,y:17},{x:28.2,y:17.2},{x:28.4,y:17.4},{x:28.6,y:17.6},{x:28.8,y:17.8},{x:29,y:18.1},{x:29.2,y:18.3},{x:29.4,y:18.6},{x:29.6,y:18.8},{x:29.8,y:19.1},{x:30,y:19.3},{x:30.2,y:19.6},{x:30.4,y:19.8},{x:30.6,y:20.2},{x:30.8,y:20.4},{x:31,y:20.7},{x:31.2,y:20.9},{x:31.4,y:21.2},{x:31.6,y:21.5},{x:31.8,y:21.7},{x:32,y:22},{x:32.2,y:22.3},{x:32.4,y:22.6},{x:32.6,y:22.9},{x:32.8,y:23.2},{x:33,y:23.4},{x:33.2,y:23.7},{x:33.4,y:24},{x:33.6,y:24.2},{x:33.8,y:24.4},{x:34,y:24.6},{x:34.2,y:24.8},{x:34.4,y:25},{x:34.6,y:25.2},{x:34.8,y:25.4},{x:35,y:25.8},{x:35.2,y:26},{x:35.4,y:26.3},{x:35.6,y:26.6},{x:35.8,y:27},{x:36,y:27.2},{x:36.2,y:27.5},{x:36.4,y:27.9},{x:36.6,y:28.2},{x:36.8,y:28.5},{x:37,y:28.8},{x:37.2,y:29.1},{x:37.4,y:29.4},{x:37.6,y:29.7},{x:37.8,y:30},{x:38,y:30.3},{x:38.2,y:30.6},{x:38.4,y:30.9},{x:38.6,y:31.2},{x:38.8,y:31.5},{x:39,y:31.8},{x:39.2,y:32.1},{x:39.4,y:32.4},{x:39.6,y:32.7},{x:39.8,y:33},{x:40,y:33.3},{x:40.2,y:33.6},{x:40.4,y:33.9},{x:40.6,y:34.2},{x:40.8,y:34.5},{x:41,y:34.8},{x:41.2,y:35.1},{x:41.4,y:35.4},{x:41.6,y:35.7},{x:41.8,y:36},{x:42,y:36.3},{x:42.2,y:36.6},{x:42.4,y:36.9},{x:42.6,y:37.3},{x:42.8,y:37.6},{x:43,y:38},{x:43.2,y:38.3},{x:43.4,y:38.7},{x:43.6,y:39},{x:43.8,y:39.4},{x:44,y:39.8},{x:44.2,y:40.1},{x:44.4,y:40.5},{x:44.6,y:40.8},{x:44.8,y:41.2},{x:45,y:41.6},{x:45.2,y:42},{x:45.4,y:42.3},{x:45.6,y:42.7},{x:45.8,y:43.1},{x:46,y:43.5},{x:46.2,y:43.8},{x:46.4,y:44.2},{x:46.6,y:44.6},{x:46.8,y:45},{x:47,y:45.2},{x:47.2,y:45.8},{x:47.4,y:46.2},{x:47.6,y:46.6},{x:47.8,y:47},{x:48,y:47.4},{x:48.2,y:47.8},{x:48.4,y:48.2},{x:48.6,y:48.6},{x:48.8,y:49},{x:49,y:49.4},{x:49.2,y:49.8},{x:49.4,y:50.2},{x:49.6,y:50.6},{x:49.8,y:51},{x:50,y:51.4},{x:50.2,y:51.9},{x:50.4,y:52.3},{x:50.6,y:52.7},{x:50.8,y:53.1},{x:51,y:53.5},{x:51.2,y:54},{x:51.4,y:54.4},{x:51.6,y:54.8},{x:51.8,y:55.2},{x:52,y:55.7},{x:52.2,y:56.1},{x:52.4,y:56.5},{x:52.8,y:57.4},{x:53,y:57.8},{x:53.2,y:58.3},{x:53.4,y:58.7},{x:53.6,y:59.2},{x:53.8,y:59.6},{x:54,y:60}],f=[{x:21.8,y:10.1},{x:22,y:10.2},{x:22.2,y:10.4},{x:22.4,y:10.7},{x:22.6,y:10.8},{x:22.8,y:11},{x:23,y:11.2},{x:23.2,y:11.4},{x:23.4,y:11.6},{x:23.6,y:11.8},{x:23.8,y:12},{x:24,y:12.2},{x:24.2,y:12.4},{x:24.4,y:12.6},{x:24.6,y:12.8},{x:24.8,y:13},{x:25,y:13.3},{x:25.2,y:13.4},{x:25.4,y:13.7},{x:25.6,y:13.9},{x:25.8,y:14.1},{x:26,y:14.4},{x:26.2,y:14.6},{x:26.4,y:14.8},{x:26.6,y:15},{x:26.8,y:15.3},{x:27,y:15.5},{x:27.2,y:15.7},{x:27.4,y:15.9},{x:27.6,y:16.1},{x:27.8,y:16.3},{x:28,y:16.5},{x:28.2,y:16.7},{x:28.4,y:16.9},{x:28.6,y:17.1},{x:28.8,y:17.3},{x:29,y:17.5},{x:29.2,y:17.7},{x:29.4,y:17.9},{x:29.6,y:18.2},{x:29.8,y:18.4},{x:30,y:18.6},{x:30.2,y:18.9},{x:30.4,y:19.1},{x:30.6,y:19.4},{x:30.8,y:19.7},{x:31,y:19.9},{x:31.2,y:20.2},{x:31.4,y:20.5},{x:31.6,y:20.7},{x:31.8,y:21},{x:32,y:21.2},{x:32.2,y:21.5},{x:32.4,y:21.8},{x:32.6,y:22.1},{x:32.8,y:22.3},{x:33,y:22.6},{x:33.2,y:22.9},{x:33.4,y:23.1},{x:33.6,y:23.3},{x:33.8,y:23.5},{x:34,y:23.7},{x:34.2,y:23.9},{x:34.4,y:24.1},{x:34.6,y:24.3},{x:34.8,y:24.5},{x:35,y:24.8},{x:35.2,y:25},{x:35.4,y:25.4},{x:35.6,y:25.7},{x:35.8,y:26},{x:36,y:26.2},{x:36.2,y:26.5},{x:36.4,y:26.8},{x:36.6,y:27.1},{x:36.8,y:27.5},{x:37,y:27.7},{x:37.2,y:28},{x:37.4,y:28.3},{x:37.6,y:28.6},{x:37.8,y:28.9},{x:38,y:29.2},{x:38.2,y:29.5},{x:38.4,y:29.8},{x:38.6,y:30.1},{x:38.8,y:30.4},{x:39,y:30.6},{x:39.2,y:30.8},{x:39.4,y:31},{x:39.6,y:31.2},{x:39.8,y:31.4},{x:40,y:31.7},{x:40.2,y:32},{x:40.4,y:32.3},{x:40.6,y:32.6},{x:40.8,y:32.9},{x:41,y:33.2},{x:41.2,y:33.5},{x:41.4,y:33.8},{x:41.6,y:34.2},{x:41.8,y:34.5},{x:42,y:34.9},{x:42.2,y:35.2},{x:42.4,y:35.5},{x:42.6,y:35.9},{x:42.8,y:36.2},{x:43,y:36.6},{x:43.2,y:36.9},{x:43.4,y:37.2},{x:43.6,y:37.5},{x:43.8,y:37.9},{x:44,y:38.3},{x:44.2,y:38.6},{x:44.4,y:39},{x:44.6,y:39.3},{x:44.8,y:39.7},{x:45,y:40.1},{x:45.2,y:40.4},{x:45.4,y:40.7},{x:45.6,y:41.1},{x:45.8,y:41.5},{x:46,y:41.9},{x:46.2,y:42.2},{x:46.4,y:42.6},{x:46.6,y:42.9},{x:46.8,y:43.3},{x:47,y:43.7},{x:47.2,y:44.1},{x:47.4,y:44.5},{x:47.6,y:44.8},{x:47.8,y:45.2},{x:48,y:45.6},{x:48.2,y:46},{x:48.4,y:46.4},{x:48.6,y:46.7},{x:48.8,y:47.1},{x:49,y:47.5},{x:49.2,y:47.9},{x:49.4,y:48.3},{x:49.6,y:48.7},{x:49.8,y:49.1},{x:50,y:49.5},{x:50.2,y:49.9},{x:50.4,y:50.3},{x:50.6,y:50.7},{x:50.8,y:51.1},{x:51,y:51.5},{x:51.2,y:51.9},{x:51.4,y:52.3},{x:51.6,y:52.7},{x:51.8,y:53.1},{x:52,y:53.6},{x:52.2,y:54},{x:52.4,y:54.4},{x:52.8,y:55.2},{x:53,y:55.6},{x:53.2,y:56.1},{x:53.4,y:56.5},{x:53.6,y:56.9},{x:53.8,y:57.3},{x:54,y:57.8},{x:54.2,y:58.2},{x:54.4,y:58.6},{x:54.6,y:59.1},{x:54.8,y:59.5},{x:55,y:59.9},{x:55.2,y:60}],d=[{x:22.2,y:10},{x:22.4,y:10.3},{x:22.6,y:10.4},{x:22.8,y:10.6},{x:23,y:10.8},{x:23.2,y:11},{x:23.4,y:11.2},{x:23.6,y:11.4},{x:23.8,y:11.5},{x:24,y:11.8},{x:24.2,y:11.9},{x:24.4,y:12.2},{x:24.6,y:12.3},{x:24.8,y:12.6},{x:25,y:12.8},{x:25.2,y:13},{x:25.4,y:13.2},{x:25.6,y:13.4},{x:25.8,y:13.6},{x:26,y:13.8},{x:26.2,y:14},{x:26.4,y:14.2},{x:26.6,y:14.4},{x:26.8,y:14.6},{x:27,y:14.8},{x:27.2,y:15},{x:27.4,y:15.2},{x:27.6,y:15.4},{x:27.8,y:15.6},{x:28,y:15.8},{x:28.2,y:16},{x:28.4,y:16.2},{x:28.6,y:16.4},{x:28.8,y:16.6},{x:29,y:16.8},{x:29.2,y:17},{x:29.4,y:17.2},{x:29.6,y:17.5},{x:29.8,y:17.7},{x:30,y:17.9},{x:30.2,y:18.2},{x:30.4,y:18.4},{x:30.6,y:18.7},{x:30.8,y:18.9},{x:31,y:19.2},{x:31.2,y:19.4},{x:31.4,y:19.7},{x:31.6,y:19.9},{x:31.8,y:20.2},{x:32,y:20.4},{x:32.2,y:20.7},{x:32.4,y:20.9},{x:32.6,y:21.3},{x:32.8,y:21.5},{x:33,y:21.7},{x:33.2,y:22},{x:33.4,y:22.3},{x:33.6,y:22.6},{x:33.8,y:22.8},{x:34,y:23},{x:34.2,y:23.2},{x:34.4,y:23.4},{x:34.6,y:23.6},{x:34.8,y:23.8},{x:35,y:24},{x:35.2,y:24.2},{x:35.4,y:24.4},{x:35.6,y:24.7},{x:35.8,y:25},{x:36,y:25.2},{x:36.2,y:25.5},{x:36.4,y:25.8},{x:36.6,y:26.1},{x:36.8,y:26.4},{x:37,y:26.6},{x:37.2,y:26.9},{x:37.4,y:27.2},{x:37.6,y:27.5},{x:37.8,y:27.8},{x:38,y:28.1},{x:38.2,y:28.4},{x:38.4,y:28.7},{x:38.6,y:29},{x:38.8,y:29.3},{x:39,y:29.6},{x:39.2,y:29.8},{x:39.4,y:30},{x:39.6,y:30.2},{x:39.8,y:30.5},{x:40,y:30.8},{x:40.2,y:31.1},{x:40.4,y:31.4},{x:40.6,y:31.7},{x:40.8,y:32},{x:41,y:32.3},{x:41.2,y:32.6},{x:41.4,y:32.9},{x:41.6,y:33.3},{x:41.8,y:33.6},{x:42,y:34},{x:42.2,y:34.3},{x:42.4,y:34.6},{x:42.6,y:34.9},{x:42.8,y:35.2},{x:43,y:35.6},{x:43.2,y:35.9},{x:43.4,y:36.3},{x:43.6,y:36.6},{x:43.8,y:36.9},{x:44,y:37.3},{x:44.2,y:37.6},{x:44.4,y:38},{x:44.6,y:38.3},{x:44.8,y:38.6},{x:45,y:39},{x:45.2,y:39.4},{x:45.4,y:39.7},{x:45.6,y:40},{x:45.8,y:40.4},{x:46,y:40.8},{x:46.2,y:41.1},{x:46.4,y:41.4},{x:46.6,y:41.8},{x:46.8,y:42.2},{x:47,y:42.6},{x:47.2,y:42.9},{x:47.4,y:43.3},{x:47.6,y:43.7},{x:47.8,y:44},{x:48,y:44.4},{x:48.2,y:44.8},{x:48.4,y:45.1},{x:48.6,y:45.5},{x:48.8,y:45.9},{x:49,y:46.2},{x:49.2,y:46.6},{x:49.4,y:47},{x:49.6,y:47.4},{x:49.8,y:47.8},{x:50,y:48.2},{x:50.2,y:48.5},{x:50.4,y:49},{x:50.6,y:49.4},{x:50.8,y:49.8},{x:51,y:50.1},{x:51.2,y:50.5},{x:51.4,y:50.9},{x:51.6,y:51.3},{x:51.8,y:51.7},{x:52,y:52.1},{x:52.2,y:52.5},{x:52.4,y:53},{x:52.8,y:53.8},{x:53,y:54.2},{x:53.2,y:54.6},{x:53.4,y:55},{x:53.6,y:55.4},{x:53.8,y:55.8},{x:54,y:56.3},{x:54.2,y:56.7},{x:54.4,y:57.1},{x:54.6,y:57.5},{x:54.8,y:57.9},{x:55,y:58.4},{x:55.2,y:58.8},{x:55.4,y:59.2},{x:55.6,y:59.7},{x:55.8,y:60}],g=[{x:22.4,y:10},{x:22.6,y:10.2},{x:22.8,y:10.3},{x:23,y:10.5},{x:23.2,y:10.7},{x:23.4,y:10.9},{x:23.6,y:11.1},{x:23.8,y:11.2},{x:24,y:11.5},{x:24.2,y:11.6},{x:24.4,y:11.9},{x:24.6,y:12},{x:24.8,y:12.2},{x:25,y:12.5},{x:25.2,y:12.6},{x:25.4,y:12.9},{x:25.6,y:13},{x:25.8,y:13.2},{x:26,y:13.5},{x:26.2,y:13.7},{x:26.4,y:13.9},{x:26.6,y:14.1},{x:26.8,y:14.3},{x:27,y:14.6},{x:27.2,y:14.7},{x:27.4,y:14.9},{x:27.6,y:15.1},{x:27.8,y:15.3},{x:28,y:15.4},{x:28.2,y:15.6},{x:28.4,y:15.8},{x:28.6,y:16},{x:28.8,y:16.2},{x:29,y:16.4},{x:29.2,y:16.6},{x:29.4,y:16.8},{x:29.6,y:17},{x:29.8,y:17.2},{x:30,y:17.4},{x:30.2,y:17.6},{x:30.4,y:17.8},{x:30.6,y:18},{x:30.8,y:18.2},{x:31,y:18.4},{x:31.2,y:18.6},{x:31.4,y:18.9},{x:31.6,y:19.2},{x:31.8,y:19.4},{x:32,y:19.6},{x:32.2,y:19.9},{x:32.4,y:20.1},{x:32.6,y:20.4},{x:32.8,y:20.6},{x:33,y:20.9},{x:33.2,y:21.2},{x:33.4,y:21.4},{x:33.6,y:21.7},{x:33.8,y:21.9},{x:34,y:22.1},{x:34.2,y:22.3},{x:34.4,y:22.5},{x:34.6,y:22.7},{x:34.8,y:22.9},{x:35,y:23.2},{x:35.2,y:23.4},{x:35.4,y:23.7},{x:35.6,y:24},{x:35.8,y:24.3},{x:36,y:24.5},{x:36.2,y:24.8},{x:36.4,y:25.1},{x:36.6,y:25.4},{x:36.8,y:25.7},{x:37,y:25.9},{x:37.2,y:26.2},{x:37.4,y:26.6},{x:37.6,y:26.8},{x:37.8,y:27.1},{x:38,y:27.4},{x:38.2,y:27.7},{x:38.4,y:28},{x:38.6,y:28.3},{x:38.8,y:28.5},{x:39,y:28.8},{x:39.2,y:29},{x:39.4,y:29.2},{x:39.6,y:29.4},{x:39.8,y:29.7},{x:40,y:30},{x:40.2,y:30.2},{x:40.4,y:30.5},{x:40.6,y:30.8},{x:40.8,y:31.2},{x:41,y:31.5},{x:41.2,y:31.8},{x:41.4,y:32},{x:41.6,y:32.4},{x:41.8,y:32.7},{x:42,y:33},{x:42.2,y:33.3},{x:42.4,y:33.6},{x:42.6,y:34},{x:42.8,y:34.3},{x:43,y:34.6},{x:43.2,y:34.9},{x:43.4,y:35.3},{x:43.6,y:35.6},{x:43.8,y:35.9},{x:44,y:36.3},{x:44.2,y:36.6},{x:44.4,y:36.9},{x:44.6,y:37.2},{x:44.8,y:37.6},{x:45,y:37.9},{x:45.2,y:38.3},{x:45.4,y:38.6},{x:45.6,y:39},{x:45.8,y:39.3},{x:46,y:39.7},{x:46.2,y:40},{x:46.4,y:40.3},{x:46.6,y:40.7},{x:46.8,y:41},{x:47,y:41.4},{x:47.2,y:41.8},{x:47.4,y:42.1},{x:47.6,y:42.5},{x:47.8,y:42.8},{x:48,y:43.2},{x:48.2,y:43.6},{x:48.4,y:43.9},{x:48.6,y:44.3},{x:48.8,y:44.6},{x:49,y:45},{x:49.2,y:45.4},{x:49.4,y:45.8},{x:49.6,y:46.2},{x:49.8,y:46.5},{x:50,y:46.9},{x:50.2,y:47.2},{x:50.4,y:47.7},{x:50.6,y:48},{x:50.8,y:48.4},{x:51,y:48.8},{x:51.2,y:49.2},{x:51.4,y:49.6},{x:51.6,y:50},{x:51.8,y:50.3},{x:52,y:50.7},{x:52.2,y:51.1},{x:52.4,y:51.5},{x:52.8,y:52.3},{x:53,y:52.7},{x:53.2,y:53.1},{x:53.4,y:53.5},{x:53.6,y:53.9},{x:53.8,y:54.3},{x:54,y:54.7},{x:54.2,y:55.1},{x:54.4,y:55.6},{x:54.6,y:56},{x:54.8,y:56.4},{x:55,y:56.8},{x:55.2,y:57.2},{x:55.4,y:57.6},{x:55.6,y:58},{x:55.8,y:58.5},{x:56,y:58.9},{x:56.2,y:59.3},{x:56.4,y:59.7},{x:56.6,y:60}],b=[{x:23,y:10.1},{x:23.2,y:10.3},{x:23.4,y:10.4},{x:23.6,y:10.7},{x:23.8,y:10.8},{x:24,y:11},{x:24.2,y:11.2},{x:24.4,y:11.4},{x:24.6,y:11.5},{x:24.8,y:11.8},{x:25,y:12},{x:25.2,y:12.1},{x:25.4,y:12.4},{x:25.6,y:12.5},{x:25.8,y:12.7},{x:26,y:13},{x:26.2,y:13.2},{x:26.4,y:13.3},{x:26.6,y:13.5},{x:26.8,y:13.8},{x:27,y:14},{x:27.2,y:14.1},{x:27.4,y:14.3},{x:27.6,y:14.5},{x:27.8,y:14.7},{x:28,y:14.8},{x:28.2,y:15},{x:28.4,y:15.2},{x:28.6,y:15.4},{x:28.8,y:15.6},{x:29,y:15.8},{x:29.2,y:16},{x:29.4,y:16.2},{x:29.6,y:16.4},{x:29.8,y:16.6},{x:30,y:16.8},{x:30.2,y:17},{x:30.4,y:17.2},{x:30.6,y:17.5},{x:30.8,y:17.7},{x:31,y:17.9},{x:31.2,y:16.1},{x:31.4,y:18.4},{x:31.6,y:18.6},{x:31.8,y:18.9},{x:32,y:19.1},{x:32.2,y:19.4},{x:32.4,y:19.6},{x:32.6,y:19.9},{x:32.8,y:20.1},{x:33,y:20.3},{x:33.2,y:20.5},{x:33.4,y:20.7},{x:33.6,y:20.9},{x:33.8,y:21.1},{x:34,y:21.3},{x:34.2,y:21.5},{x:34.4,y:21.7},{x:34.6,y:21.9},{x:34.8,y:22.1},{x:35,y:22.3},{x:35.2,y:22.5},{x:35.4,y:22.8},{x:35.6,y:23},{x:35.8,y:23.3},{x:36,y:23.5},{x:36.2,y:23.8},{x:36.4,y:24.1},{x:36.6,y:24.4},{x:36.8,y:24.6},{x:37,y:24.8},{x:37.2,y:25.1},{x:37.4,y:25.4},{x:37.6,y:25.7},{x:37.8,y:26},{x:38,y:26.2},{x:38.2,y:26.5},{x:38.4,y:29.8},{x:38.6,y:27},{x:38.8,y:27.2},{x:39,y:27.4},{x:39.2,y:27.6},{x:39.4,y:27.8},{x:39.6,y:28},{x:39.8,y:28.2},{x:40,y:28.4},{x:40.2,y:28.6},{x:40.4,y:28.8},{x:40.6,y:29.1},{x:40.8,y:29.4},{x:41,y:29.7},{x:41.2,y:30},{x:41.4,y:30.3},{x:41.6,y:30.6},{x:41.8,y:30.9},{x:42,y:31.2},{x:42.2,y:31.5},{x:42.4,y:31.8},{x:42.6,y:32.1},{x:42.8,y:32.4},{x:43,y:32.7},{x:43.2,y:33},{x:43.4,y:33.3},{x:43.6,y:33.6},{x:43.8,y:33.9},{x:44,y:34.3},{x:44.2,y:34.5},{x:44.4,y:34.9},{x:44.6,y:35.2},{x:44.8,y:35.5},{x:45,y:35.8},{x:45.2,y:36.2},{x:45.4,y:36.4},{x:45.6,y:36.8},{x:45.8,y:37.1},{x:46,y:37.5},{x:46.2,y:37.7},{x:46.4,y:38.1},{x:46.6,y:38.4},{x:46.8,y:38.8},{x:47,y:39.1},{x:47.2,y:39.4},{x:47.4,y:39.8},{x:47.6,y:40.1},{x:47.8,y:40.5},{x:48,y:40.8},{x:48.2,y:41.1},{x:48.4,y:41.5},{x:48.6,y:41.8},{x:48.8,y:42.2},{x:49,y:42.5},{x:49.2,y:42.8},{x:49.4,y:43.2},{x:49.6,y:43.6},{x:49.8,y:43.9},{x:50,y:44.3},{x:50.2,y:44.6},{x:50.4,y:45},{x:50.6,y:45.4},{x:50.8,y:45.7},{x:51,y:46.1},{x:51.2,y:46.4},{x:51.4,y:46.8},{x:51.6,y:47.2},{x:51.8,y:47.5},{x:52,y:47.9},{x:52.2,y:48.3},{x:52.4,y:48.7},{x:52.8,y:49.4},{x:53,y:49.8},{x:53.2,y:50.2},{x:53.4,y:50.5},{x:53.6,y:50.9},{x:53.8,y:51.3},{x:54,y:51.7},{x:54.2,y:52.1},{x:54.4,y:52.5},{x:54.6,y:52.9},{x:54.8,y:53.2},{x:55,y:53.6},{x:55.2,y:54},{x:55.4,y:54.4},{x:55.6,y:54.8},{x:55.8,y:55.2},{x:56,y:55.6},{x:56.2,y:56},{x:56.4,y:56.4},{x:56.6,y:56.8},{x:56.8,y:57.2},{x:57,y:57.6},{x:57.2,y:58},{x:57.4,y:58.4},{x:57.6,y:58.9},{x:57.8,y:59.3},{x:58,y:59.7},{x:58.2,y:60}],C=[{x:23.2,y:10},{x:23.4,y:10.2},{x:23.6,y:10.4},{x:23.8,y:10.5},{x:24,y:10.7},{x:24.2,y:10.9},{x:24.4,y:11.1},{x:24.6,y:11.2},{x:24.8,y:11.4},{x:25,y:11.7},{x:25.2,y:11.8},{x:25.4,y:12},{x:25.6,y:12.2},{x:25.8,y:12.4},{x:26,y:12.6},{x:26.2,y:12.8},{x:26.4,y:13},{x:26.6,y:13.2},{x:26.8,y:13.4},{x:27,y:13.6},{x:27.2,y:13.8},{x:27.4,y:14},{x:27.6,y:14.1},{x:27.8,y:14.2},{x:28,y:14.4},{x:28.2,y:14.6},{x:28.4,y:14.8},{x:28.6,y:15},{x:28.8,y:15.2},{x:29,y:15.4},{x:29.2,y:15.6},{x:29.4,y:15.8},{x:29.6,y:16},{x:29.8,y:16.2},{x:30,y:16.4},{x:30.2,y:16.6},{x:30.4,y:16.8},{x:30.6,y:17},{x:30.8,y:17.2},{x:31,y:17.4},{x:31.2,y:17.6},{x:31.4,y:17.8},{x:31.6,y:18},{x:31.8,y:18.2},{x:32,y:18.4},{x:32.2,y:18.6},{x:32.4,y:18.8},{x:32.6,y:19},{x:32.8,y:19.2},{x:33,y:19.4},{x:33.2,y:19.6},{x:33.4,y:19.8},{x:33.6,y:20},{x:33.8,y:20.2},{x:34,y:20.4},{x:34.2,y:20.6},{x:34.4,y:20.8},{x:34.6,y:21},{x:34.8,y:21.2},{x:35,y:21.4},{x:35.2,y:21.6},{x:35.4,y:21.8},{x:35.6,y:22},{x:35.8,y:22.2},{x:36,y:22.4},{x:36.2,y:22.6},{x:36.4,y:22.8},{x:36.6,y:23},{x:36.8,y:23.2},{x:37,y:23.4},{x:37.2,y:23.7},{x:37.4,y:24},{x:37.6,y:24.2},{x:37.8,y:24.5},{x:38,y:24.8},{x:38.2,y:25},{x:38.4,y:25.2},{x:38.6,y:25.5},{x:38.8,y:25.8},{x:39,y:26},{x:39.2,y:26.2},{x:39.4,y:26.4},{x:39.6,y:26.6},{x:39.8,y:26.8},{x:40,y:27},{x:40.2,y:27.3},{x:40.4,y:27.6},{x:40.6,y:27.8},{x:40.8,y:28.1},{x:41,y:28.4},{x:41.2,y:28.7},{x:41.4,y:28.9},{x:41.6,y:29.2},{x:41.8,y:29.5},{x:42,y:29.8},{x:42.2,y:30.1},{x:42.4,y:30.4},{x:42.6,y:30.7},{x:42.8,y:30.9},{x:43,y:31.3},{x:43.2,y:31.5},{x:43.4,y:31.8},{x:43.6,y:32.1},{x:43.8,y:32.4},{x:44,y:32.8},{x:44.2,y:33},{x:44.4,y:33.3},{x:44.6,y:33.6},{x:44.8,y:33.9},{x:45,y:34.3},{x:45.2,y:34.6},{x:45.4,y:34.8},{x:45.6,y:35.2},{x:45.8,y:35.5},{x:46,y:35.8},{x:46.2,y:36.1},{x:46.4,y:36.4},{x:46.6,y:36.7},{x:46.8,y:37},{x:47,y:37.4},{x:47.2,y:37.7},{x:47.4,y:38},{x:47.6,y:40},{x:47.8,y:38.7},{x:48,y:39},{x:48.2,y:39.3},{x:48.4,y:39.6},{x:48.6,y:40},{x:48.8,y:40.3},{x:49,y:40.6},{x:49.2,y:41},{x:49.4,y:41.3},{x:49.6,y:41.7},{x:49.8,y:42},{x:50,y:42.3},{x:50.2,y:42.6},{x:50.4,y:43},{x:50.6,y:43.4},{x:50.8,y:43.7},{x:51,y:44.1},{x:51.2,y:44.4},{x:51.4,y:44.7},{x:51.6,y:45.1},{x:51.8,y:45.4},{x:52,y:45.8},{x:52.2,y:46.2},{x:52.4,y:46.5},{x:52.8,y:47.3},{x:53,y:47.6},{x:53.2,y:48},{x:53.4,y:48.3},{x:53.6,y:48.7},{x:53.8,y:49},{x:54,y:49.4},{x:54.2,y:49.8},{x:54.4,y:50.2},{x:54.6,y:50.5},{x:54.8,y:50.9},{x:55,y:51.3},{x:55.2,y:51.6},{x:55.4,y:52},{x:55.6,y:52.4},{x:55.8,y:52.8},{x:56,y:53.2},{x:56.2,y:53.5},{x:56.4,y:53.9},{x:56.6,y:54.3},{x:56.8,y:54.7},{x:57,y:55.1},{x:57.2,y:55.5},{x:57.4,y:55.9}],S=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:56.3},{x:57.8,y:56.7},{x:58,y:57},{x:58.2,y:57.4},{x:58.4,y:57.8},{x:58.6,y:58.2},{x:58.8,y:58.6},{x:59,y:59},{x:59.2,y:59.4},{x:59.4,y:59.8},{x:59.6,y:60}],w=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:53.7},{x:57.8,y:54},{x:58,y:54.4},{x:58.2,y:54.8},{x:58.4,y:55.2},{x:58.6,y:55.6},{x:58.8,y:55.9},{x:59,y:56.3},{x:59.2,y:56.7},{x:59.4,y:57.1},{x:59.6,y:57.5},{x:59.8,y:57.9},{x:60,y:58.3}],V=new Array;if(o>=0){"0"==(D=1*y)?V=i:"0.5"==D?V=u:"1"==D?V=m:"1.5"==D?V=c:"2"==D?V=h:"2.5"==D?V=p:"3"==D?V=f:"3.5"==D?V=d:"4"==D?V=g:"4.5"==D?V=b:"5"==D?V=C:"5.5"==D?V=S:D>="6"&&(V=w);var F=-1;for(s=0;s<V.length;s++){if(1*V[0].x>r){F=1;break}if(1*V[s].x>r){F=s;break}if(1*V[V.length-1].x<r){F=V.length-1;break}if(r==V[s].x){n=e.GetDataOddIncreaseEvenDecrease(V[s].y,-1);break}}if(-1!=F){var E=V[F-1].x,N=V[F-1].y,A=V[F].x,v=V[F].y;r>=53&&2==D||r>=48&&0==D||r>=49&&.5==D||r>=50.2&&1==D||r>=51.6&&1.5==D||r>=54&&2.5==D||r>=55.2&&3==D||r>=55.8&&3.5==D||r>=56.6&&4==D||r>=58.2&&4.5==D||r>=59.6&&5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,A,N,v,r),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}else if("泵送混凝土"==l){for(y=a,r=t,o="",x=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<x.length;s++){if(y==x[s]){o=s;break}if(1*y>"6.0"){o=x.length-1;break}}i=[{x:18.6,y:10},{x:18.8,y:10.2},{x:19,y:10.4},{x:19.2,y:10.6},{x:19.4,y:10.9},{x:19.6,y:11.1},{x:19.8,y:11.3},{x:20,y:11.5},{x:20.2,y:11.8},{x:20.4,y:12},{x:20.6,y:12.2},{x:20.8,y:12.4},{x:21,y:12.7},{x:21.2,y:12.9},{x:21.4,y:13.1},{x:21.6,y:13.4},{x:21.8,y:13.6},{x:22,y:13.9},{x:22.2,y:14.1},{x:22.4,y:14.4},{x:22.6,y:14.6},{x:22.8,y:14.9},{x:23,y:15.1},{x:23.2,y:15.4},{x:23.4,y:15.6},{x:23.6,y:15.9},{x:23.8,y:16.2},{x:24,y:16.4},{x:24.2,y:16.7},{x:24.4,y:17},{x:24.6,y:17.2},{x:24.8,y:17.5},{x:25,y:17.8},{x:25.2,y:18},{x:25.4,y:18.3},{x:25.6,y:18.6},{x:25.8,y:18.9},{x:26,y:19.2},{x:26.2,y:19.5},{x:26.4,y:19.8},{x:26.6,y:20},{x:26.8,y:20.3},{x:27,y:20.6},{x:27.2,y:20.9},{x:27.4,y:21.2},{x:27.6,y:21.5},{x:27.8,y:21.8},{x:28,y:22.1},{x:28.2,y:22.4},{x:28.4,y:22.8},{x:28.6,y:23.1},{x:28.8,y:23.4},{x:29,y:23.7},{x:29.2,y:24},{x:29.4,y:24.3},{x:29.6,y:24.7},{x:29.8,y:25},{x:30,y:25.3},{x:30.2,y:25.6},{x:30.4,y:26},{x:30.6,y:26.3},{x:30.8,y:26.6},{x:31,y:27},{x:31.2,y:27.3},{x:31.4,y:27.7},{x:31.6,y:28},{x:31.8,y:28.3},{x:32,y:28.7},{x:32.2,y:29},{x:32.4,y:29.4},{x:32.6,y:29.7},{x:32.8,y:30.1},{x:33,y:30.4},{x:33.2,y:30.8},{x:33.4,y:31.2},{x:33.6,y:31.5},{x:33.8,y:31.9},{x:34,y:32.3},{x:34.2,y:32.6},{x:34.4,y:33},{x:34.6,y:33.4},{x:34.8,y:33.8},{x:35,y:34.1},{x:35.2,y:34.5},{x:35.4,y:34.9},{x:35.6,y:35.3},{x:35.8,y:35.7},{x:36,y:36},{x:36.2,y:36.4},{x:36.4,y:36.8},{x:36.6,y:37.2},{x:36.8,y:37.6},{x:37,y:38},{x:37.2,y:38.4},{x:37.4,y:38.8},{x:37.6,y:39.2},{x:37.8,y:39.6},{x:38,y:40},{x:38.2,y:40.4},{x:38.4,y:40.9},{x:38.6,y:41.3},{x:38.8,y:41.7},{x:39,y:42.1},{x:39.2,y:42.5},{x:39.4,y:42.9},{x:39.6,y:43.4},{x:39.8,y:43.8},{x:40,y:44.2},{x:40.2,y:44.7},{x:40.4,y:45.1},{x:40.6,y:45.5},{x:40.8,y:46},{x:41,y:46.4},{x:41.2,y:46.8},{x:41.4,y:47.3},{x:41.6,y:47.7},{x:41.8,y:48.2},{x:42,y:48.6},{x:42.2,y:49.1},{x:42.4,y:49.5},{x:42.6,y:50},{x:42.8,y:50.4},{x:43,y:50.9},{x:43.2,y:51.3},{x:43.4,y:51.8},{x:43.6,y:52.3},{x:43.8,y:52.7},{x:44,y:53.2},{x:44.2,y:53.7},{x:44.4,y:54.1},{x:44.6,y:54.6},{x:44.8,y:55.1},{x:45,y:55.6},{x:45.2,y:56.1},{x:45.4,y:56.5},{x:45.6,y:57},{x:45.8,y:57.5},{x:46,y:58},{x:46.2,y:58.5},{x:46.4,y:59},{x:46.6,y:59.5},{x:46.8,y:60}],u=[{x:18.8,y:10},{x:19,y:10.2},{x:19.2,y:10.4},{x:19.4,y:10.7},{x:19.6,y:10.9},{x:19.8,y:11.1},{x:20,y:11.3},{x:20.2,y:11.5},{x:20.4,y:11.7},{x:20.6,y:12},{x:20.8,y:12.2},{x:21,y:12.4},{x:21.2,y:12.6},{x:21.4,y:12.9},{x:21.6,y:13.1},{x:21.8,y:13.3},{x:22,y:13.6},{x:22.2,y:13.8},{x:22.4,y:14.1},{x:22.6,y:14.3},{x:22.8,y:14.6},{x:23,y:14.8},{x:23.2,y:15.1},{x:23.4,y:15.3},{x:23.6,y:15.6},{x:23.8,y:15.8},{x:24,y:16.1},{x:24.2,y:16.4},{x:24.4,y:16.6},{x:24.6,y:16.9},{x:24.8,y:17.1},{x:25,y:17.4},{x:25.2,y:17.7},{x:25.4,y:18},{x:25.6,y:18.2},{x:25.8,y:18.5},{x:26,y:18.8},{x:26.2,y:19.1},{x:26.4,y:19.4},{x:26.6,y:19.6},{x:26.8,y:19.9},{x:27,y:20.2},{x:27.2,y:20.5},{x:27.4,y:20.8},{x:27.6,y:21.1},{x:27.8,y:21.4},{x:28,y:21.7},{x:28.2,y:22},{x:28.4,y:22.3},{x:28.6,y:22.6},{x:28.8,y:22.9},{x:29,y:23.2},{x:29.2,y:23.5},{x:29.4,y:23.9},{x:29.6,y:24.2},{x:29.8,y:24.5},{x:30,y:24.8},{x:30.2,y:25.1},{x:30.4,y:25.5},{x:30.6,y:25.8},{x:30.8,y:26.1},{x:31,y:26.4},{x:31.2,y:26.8},{x:31.4,y:27.1},{x:31.6,y:27.4},{x:31.8,y:27.8},{x:32,y:28.1},{x:32.2,y:28.5},{x:32.4,y:28.8},{x:32.6,y:29.2},{x:32.8,y:29.5},{x:33,y:29.8},{x:33.2,y:30.2},{x:33.4,y:30.6},{x:33.6,y:30.9},{x:33.8,y:31.3},{x:34,y:31.6},{x:34.2,y:32},{x:34.4,y:32.4},{x:34.6,y:32.7},{x:34.8,y:33.1},{x:35,y:33.5},{x:35.2,y:33.8},{x:35.4,y:34.2},{x:35.6,y:34.6},{x:35.8,y:35},{x:36,y:35.3},{x:36.2,y:35.7},{x:36.4,y:36.1},{x:36.6,y:36.5},{x:36.8,y:36.9},{x:37,y:37.3},{x:37.2,y:37.7},{x:37.4,y:38.1},{x:37.6,y:38.4},{x:37.8,y:38.8},{x:38,y:39.2},{x:38.2,y:39.6},{x:38.4,y:40.1},{x:38.6,y:40.5},{x:38.8,y:40.9},{x:39,y:41.3},{x:39.2,y:41.7},{x:39.4,y:42.1},{x:39.6,y:42.5},{x:39.8,y:42.9},{x:40,y:43.4},{x:40.2,y:43.8},{x:40.4,y:44.2},{x:40.6,y:44.6},{x:40.8,y:45.1},{x:41,y:45.5},{x:41.2,y:45.9},{x:41.4,y:46.3},{x:41.6,y:46.8},{x:41.8,y:47.2},{x:42,y:47.7},{x:42.2,y:48.1},{x:42.4,y:48.5},{x:42.6,y:49},{x:42.8,y:49.4},{x:43,y:49.9},{x:43.2,y:50.3},{x:43.4,y:50.8},{x:43.6,y:51.2},{x:43.8,y:51.7},{x:44,y:52.2},{x:44.2,y:52.6},{x:44.4,y:53.1},{x:44.6,y:53.5},{x:44.8,y:54},{x:45,y:54.5},{x:45.2,y:55},{x:45.4,y:55.4},{x:45.6,y:55.9},{x:45.8,y:56.4},{x:46,y:56.9},{x:46.2,y:57.3},{x:46.4,y:57.8},{x:46.6,y:58.3},{x:46.8,y:58.8},{x:47,y:59.3},{x:47.2,y:59.8},{x:47.4,y:60}],m=[{x:19,y:10},{x:19.2,y:10.2},{x:19.4,y:10.4},{x:19.6,y:10.6},{x:19.8,y:10.9},{x:20,y:11.1},{x:20.2,y:11.3},{x:20.4,y:11.5},{x:20.6,y:11.7},{x:20.8,y:12},{x:21,y:12.2},{x:21.2,y:12.4},{x:21.4,y:12.6},{x:21.6,y:12.9},{x:21.8,y:13.1},{x:22,y:13.3},{x:22.2,y:13.6},{x:22.4,y:13.8},{x:22.6,y:14},{x:22.8,y:14.3},{x:23,y:14.5},{x:23.2,y:14.8},{x:23.4,y:15},{x:23.6,y:15.3},{x:23.8,y:15.5},{x:24,y:15.8},{x:24.2,y:16},{x:24.4,y:16.3},{x:24.6,y:16.5},{x:24.8,y:16.8},{x:25,y:17.1},{x:25.2,y:17.3},{x:25.4,y:17.6},{x:25.6,y:17.9},{x:25.8,y:18.2},{x:26,y:18.4},{x:26.2,y:18.7},{x:26.4,y:19},{x:26.6,y:19.3},{x:26.8,y:19.5},{x:27,y:19.8},{x:27.2,y:20.1},{x:27.4,y:20.4},{x:27.6,y:20.7},{x:27.8,y:21},{x:28,y:21.3},{x:28.2,y:21.6},{x:28.4,y:21.9},{x:28.6,y:22.2},{x:28.8,y:22.5},{x:29,y:22.8},{x:29.2,y:23.1},{x:29.4,y:23.4},{x:29.6,y:23.7},{x:29.8,y:24},{x:30,y:24.3},{x:30.2,y:24.6},{x:30.4,y:25},{x:30.6,y:25.3},{x:30.8,y:25.6},{x:31,y:25.9},{x:31.2,y:26.2},{x:31.4,y:26.6},{x:31.6,y:26.9},{x:31.8,y:27.2},{x:32,y:27.6},{x:32.2,y:27.9},{x:32.4,y:28.2},{x:32.6,y:28.6},{x:32.8,y:28.9},{x:33,y:29.3},{x:33.2,y:29.6},{x:33.4,y:30},{x:33.6,y:30.3},{x:33.8,y:30.7},{x:34,y:31},{x:34.2,y:31.4},{x:34.4,y:31.7},{x:34.6,y:32.1},{x:34.8,y:32.4},{x:35,y:32.8},{x:35.2,y:33.2},{x:35.4,y:33.5},{x:35.6,y:33.9},{x:35.8,y:34.3},{x:36,y:34.6},{x:36.2,y:35},{x:36.4,y:35.4},{x:36.6,y:35.8},{x:36.8,y:36.2},{x:37,y:36.5},{x:37.2,y:36.9},{x:37.4,y:37.3},{x:37.6,y:37.7},{x:37.8,y:38.1},{x:38,y:38.5},{x:38.2,y:38.9},{x:38.4,y:39.3},{x:38.6,y:39.7},{x:38.8,y:40.1},{x:39,y:40.5},{x:39.2,y:40.9},{x:39.4,y:41.3},{x:39.6,y:41.7},{x:39.8,y:42.1},{x:40,y:42.5},{x:40.2,y:42.9},{x:40.4,y:43.3},{x:40.6,y:43.7},{x:40.8,y:44.2},{x:41,y:44.6},{x:41.2,y:45},{x:41.4,y:45.4},{x:41.6,y:45.9},{x:41.8,y:46.3},{x:42,y:46.7},{x:42.2,y:47.1},{x:42.4,y:47.6},{x:42.6,y:48},{x:42.8,y:48.5},{x:43,y:48.9},{x:43.2,y:49.3},{x:43.4,y:49.8},{x:43.6,y:50.2},{x:43.8,y:50.7},{x:44,y:51.1},{x:44.2,y:51.6},{x:44.4,y:52},{x:44.6,y:52.5},{x:44.8,y:52.9},{x:45,y:53.4},{x:45.2,y:53.9},{x:45.4,y:54.3},{x:45.6,y:54.8},{x:45.8,y:55.3},{x:46,y:55.7},{x:46.2,y:56.2},{x:46.4,y:56.7},{x:46.6,y:57.2},{x:46.8,y:57.6},{x:47,y:58.1},{x:47.2,y:58.6},{x:47.4,y:59.1},{x:47.6,y:59.6},{x:47.8,y:60}],c=[{x:19.2,y:10},{x:19.4,y:10.2},{x:19.6,y:10.4},{x:19.8,y:10.6},{x:20,y:10.9},{x:20.2,y:11.1},{x:20.4,y:11.3},{x:20.6,y:11.5},{x:20.8,y:11.7},{x:21,y:11.9},{x:21.2,y:12.2},{x:21.4,y:12.4},{x:21.6,y:12.6},{x:21.8,y:12.8},{x:22,y:13.1},{x:22.2,y:13.3},{x:22.4,y:13.5},{x:22.6,y:13.8},{x:22.8,y:14},{x:23,y:14.2},{x:23.2,y:14.5},{x:23.4,y:14.7},{x:23.6,y:15},{x:23.8,y:15.2},{x:24,y:15.5},{x:24.2,y:15.7},{x:24.4,y:16},{x:24.6,y:16.1},{x:24.8,y:16.5},{x:25,y:16.7},{x:25.2,y:17},{x:25.4,y:17.3},{x:25.6,y:17.5},{x:25.8,y:17.8},{x:26,y:18.1},{x:26.2,y:18.3},{x:26.4,y:18.6},{x:26.6,y:18.9},{x:26.8,y:19.2},{x:27,y:19.4},{x:27.2,y:19.7},{x:27.4,y:20},{x:27.6,y:20.3},{x:27.8,y:20.6},{x:28,y:20.9},{x:28.2,y:21.1},{x:28.4,y:21.4},{x:28.6,y:21.7},{x:28.8,y:22},{x:29,y:22.3},{x:29.2,y:22.6},{x:29.4,y:22.9},{x:29.6,y:23.1},{x:29.8,y:23.5},{x:30,y:23.8},{x:30.2,y:24.2},{x:30.4,y:24.5},{x:30.6,y:24.8},{x:30.8,y:25.1},{x:31,y:25.4},{x:31.2,y:25.7},{x:31.4,y:26},{x:31.6,y:26.4},{x:31.8,y:26.7},{x:32,y:27},{x:32.2,y:27.4},{x:32.4,y:27.7},{x:32.6,y:28},{x:32.8,y:28.3},{x:33,y:28.7},{x:33.2,y:29},{x:33.4,y:29.4},{x:33.6,y:29.7},{x:33.8,y:30},{x:34,y:30.4},{x:34.2,y:30.7},{x:34.4,y:31.1},{x:34.6,y:31.4},{x:34.8,y:31.8},{x:35,y:32.2},{x:35.2,y:32.5},{x:35.4,y:32.9},{x:35.6,y:33.2},{x:35.8,y:33.6},{x:36,y:34},{x:36.2,y:34.3},{x:36.4,y:34.7},{x:36.6,y:35.1},{x:36.8,y:35.4},{x:37,y:35.8},{x:37.2,y:36.2},{x:37.4,y:36.6},{x:37.6,y:36.9},{x:37.8,y:37.3},{x:38,y:37.7},{x:38.2,y:38.1},{x:38.4,y:38.5},{x:38.6,y:38.9},{x:38.8,y:39.3},{x:39,y:39.7},{x:39.2,y:40.1},{x:39.4,y:40.5},{x:39.6,y:40.9},{x:39.8,y:41.3},{x:40,y:41.7},{x:40.2,y:42.1},{x:40.4,y:42.5},{x:40.6,y:42.9},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.8},{x:42.2,y:46.2},{x:42.4,y:46.6},{x:42.6,y:47.1},{x:42.8,y:47.5},{x:43,y:47.9},{x:43.2,y:48.4},{x:43.4,y:48.8},{x:43.6,y:49.2},{x:43.8,y:49.7},{x:44,y:50.1},{x:44.2,y:50.6},{x:44.4,y:51},{x:44.6,y:51.5},{x:44.8,y:51.9},{x:45,y:52.4},{x:45.2,y:52.8},{x:45.4,y:53.3},{x:45.6,y:53.7},{x:45.8,y:54.2},{x:46,y:54.6},{x:46.2,y:55.1},{x:46.4,y:55.6},{x:46.6,y:56},{x:46.8,y:56.5},{x:47,y:57},{x:47.2,y:57.4},{x:47.4,y:57.9},{x:47.6,y:58.4},{x:47.8,y:58.9},{x:48,y:59.3},{x:48.2,y:59.8},{x:48.4,y:60}],h=[{x:19.4,y:10},{x:19.6,y:10.2},{x:19.8,y:10.4},{x:20,y:10.6},{x:20.2,y:10.9},{x:20.4,y:11.1},{x:20.6,y:11.3},{x:20.8,y:11.5},{x:21,y:11.7},{x:21.2,y:11.9},{x:21.4,y:12.2},{x:21.6,y:12.4},{x:21.8,y:12.6},{x:22,y:12.8},{x:22.2,y:13.1},{x:22.4,y:13.3},{x:22.6,y:13.5},{x:22.8,y:13.7},{x:23,y:14},{x:23.2,y:14.2},{x:23.4,y:14.4},{x:23.6,y:14.7},{x:23.8,y:14.9},{x:24,y:15.2},{x:24.2,y:15.4},{x:24.4,y:15.7},{x:24.6,y:15.9},{x:24.8,y:16.2},{x:25,y:16.4},{x:25.2,y:16.7},{x:25.4,y:16.9},{x:25.6,y:17.2},{x:25.8,y:17.4},{x:26,y:17.7},{x:26.2,y:18},{x:26.4,y:18.2},{x:26.6,y:18.5},{x:26.8,y:18.8},{x:27,y:19.1},{x:27.2,y:19.3},{x:27.4,y:19.6},{x:27.6,y:19.9},{x:27.8,y:20.2},{x:28,y:20.4},{x:28.2,y:20.7},{x:28.4,y:21},{x:28.6,y:21.3},{x:28.8,y:21.6},{x:29,y:21.9},{x:29.2,y:22},{x:29.4,y:22.5},{x:29.6,y:22.8},{x:29.8,y:23.1},{x:30,y:23.4},{x:30.2,y:23.7},{x:30.4,y:24},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.5},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.8},{x:32.4,y:27.1},{x:32.6,y:27.5},{x:32.8,y:27.8},{x:33,y:28.1},{x:33.2,y:28.4},{x:33.4,y:28.8},{x:33.6,y:29},{x:33.8,y:29.5},{x:34,y:29.8},{x:34.2,y:30.1},{x:34.4,y:30.5},{x:34.6,y:30.8},{x:34.8,y:31.2},{x:35,y:31.5},{x:35.2,y:31.9},{x:35.4,y:32.2},{x:35.6,y:32.5},{x:35.8,y:32.9},{x:36,y:33.2},{x:36.2,y:33.6},{x:36.4,y:34},{x:36.6,y:34.3},{x:36.8,y:34.7},{x:37,y:35.1},{x:37.2,y:35.5},{x:37.4,y:35.8},{x:37.6,y:36.2},{x:37.8,y:36.6},{x:38,y:37},{x:38.2,y:37.3},{x:38.4,y:37.7},{x:38.6,y:38.1},{x:38.8,y:38.5},{x:39,y:38.9},{x:39.2,y:39.3},{x:39.4,y:39.7},{x:39.6,y:40},{x:39.8,y:40.4},{x:40,y:40.8},{x:40.2,y:41.2},{x:40.4,y:41.6},{x:40.6,y:42},{x:40.8,y:42.4},{x:41,y:42.8},{x:41.2,y:43.2},{x:41.4,y:43.7},{x:41.6,y:44.1},{x:41.8,y:44.5},{x:42,y:44.9},{x:42.2,y:45.3},{x:42.4,y:45.7},{x:42.6,y:46.1},{x:42.8,y:46.6},{x:43,y:47},{x:43.2,y:47.4},{x:43.4,y:47.8},{x:43.6,y:48.3},{x:43.8,y:48.7},{x:44,y:49.1},{x:44.2,y:49.6},{x:44.4,y:50},{x:44.6,y:50.4},{x:44.8,y:50.9},{x:45,y:51.3},{x:45.2,y:51.8},{x:45.4,y:52.2},{x:45.6,y:52.7},{x:45.8,y:53.1},{x:46,y:53.6},{x:46.2,y:54},{x:46.4,y:54.5},{x:46.6,y:54.9},{x:46.8,y:55.4},{x:47,y:55.8},{x:47.2,y:56.3},{x:47.4,y:56.8},{x:47.6,y:57.2},{x:47.8,y:57.7},{x:48,y:58.2},{x:48.2,y:58.6},{x:48.4,y:59.1},{x:48.6,y:59.6},{x:48.8,y:60}],p=[{x:19.6,y:10},{x:19.8,y:10.2},{x:20,y:10.4},{x:20.2,y:10.6},{x:20.4,y:10.8},{x:20.6,y:11},{x:20.8,y:11.3},{x:21,y:11.5},{x:21.2,y:11.7},{x:21.4,y:11.9},{x:21.6,y:12.1},{x:21.8,y:12.3},{x:22,y:12.6},{x:22.2,y:12.8},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.5},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.3},{x:24.6,y:15.6},{x:24.8,y:15.8},{x:25,y:16.1},{x:25.2,y:16.3},{x:25.4,y:16.6},{x:25.6,y:16.8},{x:25.8,y:17.1},{x:26,y:17.4},{x:26.2,y:17.6},{x:26.4,y:17.9},{x:26.6,y:18.1},{x:26.8,y:18.4},{x:27,y:18.7},{x:27.2,y:18.9},{x:27.4,y:19.2},{x:27.6,y:19.5},{x:27.8,y:19.8},{x:28,y:20},{x:28.2,y:20.3},{x:28.4,y:20.6},{x:28.6,y:20.9},{x:28.8,y:21.2},{x:29,y:21.5},{x:29.2,y:21.7},{x:29.4,y:22},{x:29.6,y:22.3},{x:29.8,y:22.6},{x:30,y:22.9},{x:30.2,y:23.2},{x:30.4,y:23.5},{x:30.6,y:23.8},{x:30.8,y:24.1},{x:31,y:24.4},{x:31.2,y:24.7},{x:31.4,y:25},{x:31.6,y:25.3},{x:31.8,y:25.7},{x:32,y:26},{x:32.2,y:26.3},{x:32.4,y:26.6},{x:32.6,y:26.9},{x:32.8,y:27.2},{x:33,y:27.6},{x:33.2,y:27.9},{x:33.4,y:28.2},{x:33.6,y:28.5},{x:33.8,y:28.9},{x:34,y:29.2},{x:34.2,y:29.5},{x:34.4,y:29.9},{x:34.6,y:30.2},{x:34.8,y:30.6},{x:35,y:30.9},{x:35.2,y:31.2},{x:35.4,y:31.6},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.3},{x:36.6,y:33.7},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.1},{x:37.6,y:35.5},{x:37.8,y:35.9},{x:38,y:36.2},{x:38.2,y:36.6},{x:38.4,y:37},{x:38.6,y:37.3},{x:38.8,y:37.7},{x:39,y:38.1},{x:39.2,y:38.5},{x:39.4,y:38.9},{x:39.6,y:39.3},{x:39.8,y:39.7},{x:40,y:40},{x:40.2,y:40.4},{x:40.4,y:40.8},{x:40.6,y:41.2},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.4},{x:41.4,y:42.8},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.2},{x:42.8,y:45.6},{x:43,y:46.1},{x:43.2,y:46.5},{x:43.4,y:46.9},{x:43.6,y:47.3},{x:43.8,y:47.7},{x:44,y:48.2},{x:44.2,y:48.6},{x:44.4,y:49},{x:44.6,y:49.4},{x:44.8,y:49.9},{x:45,y:50.3},{x:45.2,y:50.7},{x:45.4,y:51.2},{x:45.6,y:51.6},{x:45.8,y:52.1},{x:46,y:52.5},{x:46.2,y:52.9},{x:46.4,y:53.4},{x:46.6,y:53.8},{x:46.8,y:54.3},{x:47,y:54.7},{x:47.2,y:55.2},{x:47.4,y:55.6},{x:47.6,y:56.1},{x:47.8,y:56.6},{x:48,y:57},{x:48.2,y:57.5},{x:48.4,y:57.9},{x:48.6,y:58.4},{x:48.8,y:58.9},{x:49,y:59.3},{x:49.2,y:59.8},{x:49.4,y:60}],f=[{x:19.8,y:10},{x:20,y:10.2},{x:20.2,y:10.4},{x:20.4,y:10.6},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.5},{x:21.4,y:11.7},{x:21.6,y:11.9},{x:21.8,y:12.1},{x:22,y:12.3},{x:22.2,y:12.5},{x:22.4,y:12.7},{x:22.6,y:13},{x:22.8,y:13.2},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.9},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15},{x:24.6,y:15.3},{x:24.8,y:15.5},{x:25,y:15.8},{x:25.2,y:16},{x:25.4,y:16.3},{x:25.6,y:16.5},{x:25.8,y:16.8},{x:26,y:17},{x:26.2,y:17.3},{x:26.4,y:17.5},{x:26.6,y:17.8},{x:26.8,y:18},{x:27,y:18.3},{x:27.2,y:18.6},{x:27.4,y:18.8},{x:27.6,y:19.1},{x:27.8,y:19.4},{x:28,y:19.6},{x:28.2,y:19.9},{x:28.4,y:20.2},{x:28.6,y:20.5},{x:28.8,y:20.7},{x:29,y:21},{x:29.2,y:21.3},{x:29.4,y:21.6},{x:29.6,y:21.9},{x:29.8,y:22.2},{x:30,y:22.5},{x:30.2,y:22.8},{x:30.4,y:23},{x:30.6,y:23.3},{x:30.8,y:23.6},{x:31,y:23.9},{x:31.2,y:24.2},{x:31.4,y:24.5},{x:31.6,y:24.8},{x:31.8,y:25.1},{x:32,y:25.5},{x:32.2,y:25.8},{x:32.4,y:26.1},{x:32.6,y:26.4},{x:32.8,y:26.7},{x:33,y:27},{x:33.2,y:27.3},{x:33.4,y:27.7},{x:33.6,y:28},{x:33.8,y:28.3},{x:34,y:28.6},{x:34.2,y:29},{x:34.4,y:29.3},{x:34.6,y:29.6},{x:34.8,y:30},{x:35,y:30.3},{x:35.2,y:30.6},{x:35.4,y:31},{x:35.6,y:31.3},{x:35.8,y:31.6},{x:36,y:32},{x:36.2,y:32.3},{x:36.4,y:32.7},{x:36.6,y:33},{x:36.8,y:33.4},{x:37,y:33.7},{x:37.2,y:34.1},{x:37.4,y:34.4},{x:37.6,y:38.4},{x:37.8,y:35.2},{x:38,y:35.5},{x:38.2,y:35.9},{x:38.4,y:36.3},{x:38.6,y:36.6},{x:38.8,y:37},{x:39,y:37.4},{x:39.2,y:37.7},{x:39.4,y:38.1},{x:39.6,y:38.5},{x:39.8,y:38.9},{x:40,y:39.2},{x:40.2,y:39.6},{x:40.4,y:40},{x:40.6,y:40.4},{x:40.8,y:40.8},{x:41,y:41.2},{x:41.2,y:41.6},{x:41.4,y:42},{x:41.6,y:42.3},{x:41.8,y:42.7},{x:42,y:43.1},{x:42.2,y:43.5},{x:42.4,y:43.9},{x:42.6,y:44.3},{x:42.8,y:44.7},{x:43,y:45.2},{x:43.2,y:45.6},{x:43.4,y:46},{x:43.6,y:46.4},{x:43.8,y:46.8},{x:44,y:47.2},{x:44.2,y:47.6},{x:44.4,y:48},{x:44.6,y:48.5},{x:44.8,y:48.9},{x:45,y:49.3},{x:45.2,y:49.7},{x:45.4,y:50.2},{x:45.6,y:50.6},{x:45.8,y:51},{x:46,y:51.5},{x:46.2,y:51.9},{x:46.4,y:52.3},{x:46.6,y:52.8},{x:46.8,y:53.2},{x:47,y:53.7},{x:47.2,y:54.1},{x:47.4,y:54.5},{x:47.6,y:55},{x:47.8,y:55.4},{x:48,y:55.9},{x:48.2,y:56.3},{x:48.4,y:56.8},{x:48.6,y:57.3},{x:48.8,y:57.7},{x:49,y:58.2},{x:49.2,y:58.6},{x:49.4,y:59.1},{x:49.6,y:59.6},{x:49.8,y:60}],d=[{x:20,y:10},{x:20.2,y:10.2},{x:20.4,y:10.4},{x:20.6,y:10.6},{x:20.8,y:10.8},{x:21,y:11},{x:21.2,y:11.2},{x:21.4,y:11.4},{x:21.6,y:11.6},{x:21.8,y:11.9},{x:22,y:12.1},{x:22.2,y:12.3},{x:22.4,y:12.5},{x:22.6,y:12.7},{x:22.8,y:12.9},{x:23,y:13.1},{x:23.2,y:13.4},{x:23.4,y:13.6},{x:23.6,y:13.8},{x:23.8,y:14.1},{x:24,y:14.3},{x:24.2,y:14.5},{x:24.4,y:14.7},{x:24.6,y:15},{x:24.8,y:15.2},{x:25,y:15.5},{x:25.2,y:15.7},{x:25.4,y:15.9},{x:25.6,y:16.2},{x:25.8,y:16.4},{x:26,y:16.7},{x:26.2,y:16.9},{x:26.4,y:17.2},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:17.9},{x:27.2,y:18.2},{x:27.4,y:18.5},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.3},{x:28.2,y:19.5},{x:28.4,y:19.8},{x:28.6,y:20.1},{x:28.8,y:20.3},{x:29,y:20.6},{x:29.2,y:20.9},{x:29.4,y:21.2},{x:29.6,y:21.4},{x:29.8,y:21.7},{x:30,y:22},{x:30.2,y:22.3},{x:30.4,y:22.6},{x:30.6,y:22.9},{x:30.8,y:23.2},{x:31,y:23.5},{x:31.2,y:23.8},{x:31.4,y:24.1},{x:31.6,y:24.4},{x:31.8,y:24.7},{x:32,y:25},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28.1},{x:34.2,y:28.4},{x:34.4,y:28.7},{x:34.6,y:29},{x:34.8,y:29.4},{x:35,y:29.7},{x:35.2,y:30},{x:35.4,y:30.4},{x:35.6,y:30.7},{x:35.8,y:31},{x:36,y:31.4},{x:36.2,y:31.7},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33.1},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.8},{x:38.2,y:35.2},{x:38.4,y:35.5},{x:38.6,y:35.9},{x:38.8,y:36.3},{x:39,y:36.6},{x:39.2,y:37},{x:39.4,y:37.4},{x:39.6,y:37.7},{x:39.8,y:38.1},{x:40,y:38.5},{x:40.2,y:38.8},{x:40.4,y:39.2},{x:40.6,y:39.6},{x:40.8,y:40},{x:41,y:40.4},{x:41.2,y:40.7},{x:41.4,y:41.1},{x:41.6,y:41.5},{x:41.8,y:41.9},{x:42,y:42.3},{x:42.2,y:42.7},{x:42.4,y:43.1},{x:42.6,y:43.5},{x:42.8,y:43.9},{x:43,y:44.3},{x:43.2,y:44.7},{x:43.4,y:45.1},{x:43.6,y:45.5},{x:43.8,y:45.9},{x:44,y:46.3},{x:44.2,y:46.7},{x:44.4,y:47.1},{x:44.6,y:47.5},{x:44.8,y:47.9},{x:45,y:48.3},{x:45.2,y:48.8},{x:45.4,y:49.2},{x:45.6,y:49.6},{x:45.8,y:50},{x:46,y:50.5},{x:46.2,y:50.9},{x:46.4,y:51.3},{x:46.6,y:51.7},{x:46.8,y:52.2},{x:47,y:52.6},{x:47.2,y:53},{x:47.4,y:53.5},{x:47.6,y:53.9},{x:47.8,y:54.4},{x:48,y:54.8},{x:48.2,y:55.2},{x:48.4,y:55.7},{x:48.6,y:56.1},{x:48.8,y:56.6},{x:49,y:57},{x:49.2,y:57.5},{x:49.4,y:57.9},{x:49.6,y:58.4},{x:49.8,y:58.8},{x:50,y:59.3},{x:50.2,y:59.8},{x:50.4,y:60}],g=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.6},{x:22,y:11.8},{x:22.2,y:12},{x:22.4,y:12.2},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:12.9},{x:23.2,y:13.1},{x:23.4,y:13.3},{x:23.6,y:13.5},{x:23.8,y:13.8},{x:24,y:14},{x:24.2,y:14.2},{x:24.4,y:14.5},{x:24.6,y:14.7},{x:24.8,y:14.9},{x:25,y:15.2},{x:25.2,y:15.4},{x:25.4,y:15.6},{x:25.6,y:15.9},{x:25.8,y:16.1},{x:26,y:16.3},{x:26.2,y:16.6},{x:26.4,y:16.8},{x:26.6,y:17.1},{x:26.8,y:17.3},{x:27,y:17.6},{x:27.2,y:17.8},{x:27.4,y:18.1},{x:27.6,y:18.4},{x:27.8,y:18.6},{x:28,y:18.9},{x:28.2,y:19.1},{x:28.4,y:19.4},{x:28.6,y:19.7},{x:28.8,y:19.9},{x:29,y:20.2},{x:29.2,y:20.5},{x:29.4,y:20.8},{x:29.6,y:21},{x:29.8,y:21.3},{x:30,y:21.6},{x:30.2,y:21.9},{x:30.4,y:22.1},{x:30.6,y:22.4},{x:30.8,y:22.7},{x:31,y:23},{x:31.2,y:23.6},{x:31.4,y:23.6},{x:31.6,y:23.9},{x:31.8,y:24.2},{x:32,y:24.5},{x:32.2,y:24.8},{x:32.4,y:25.1},{x:32.6,y:25.4},{x:32.8,y:25.7},{x:33,y:26},{x:33.2,y:26.3},{x:33.4,y:26.6},{x:33.6,y:26.9},{x:33.8,y:27.2},{x:34,y:27.5},{x:34.2,y:27.8},{x:34.4,y:28.1},{x:34.6,y:28.5},{x:34.8,y:28.8},{x:35,y:29.1},{x:35.2,y:29.4},{x:35.4,y:29.8},{x:35.6,y:30.1},{x:35.8,y:30.4},{x:36,y:30.7},{x:36.2,y:31.1},{x:36.4,y:31.4},{x:36.6,y:31.7},{x:36.8,y:32.1},{x:37,y:32.4},{x:37.2,y:32.8},{x:37.4,y:33.1},{x:37.6,y:33.4},{x:37.8,y:33.8},{x:38,y:34.1},{x:38.2,y:34.5},{x:38.4,y:34.8},{x:38.6,y:35.2},{x:38.8,y:35.5},{x:39,y:35.9},{x:39.2,y:36.3},{x:39.4,y:36.6},{x:39.6,y:37},{x:39.8,y:37.3},{x:40,y:37.7},{x:40.2,y:38.1},{x:40.4,y:38.4},{x:40.6,y:38.8},{x:40.8,y:39.2},{x:41,y:39.6},{x:41.2,y:39.9},{x:41.4,y:40.3},{x:41.6,y:40.7},{x:41.8,y:41.1},{x:42,y:41.5},{x:42.2,y:41.8},{x:42.4,y:42.2},{x:42.6,y:42.6},{x:42.8,y:43},{x:43,y:43.4},{x:43.2,y:43.8},{x:43.4,y:44.2},{x:43.6,y:44.6},{x:43.8,y:45},{x:44,y:45.4},{x:44.2,y:45.8},{x:44.4,y:46.2},{x:44.6,y:46.6},{x:44.8,y:47},{x:45,y:47.4},{x:45.2,y:47.8},{x:45.4,y:48.2},{x:45.6,y:48.6},{x:45.8,y:49},{x:46,y:49.5},{x:46.2,y:49.9},{x:46.4,y:50.3},{x:46.6,y:50.7},{x:46.8,y:51.1},{x:47,y:51.6},{x:47.2,y:52},{x:47.4,y:52.4},{x:47.6,y:52.8},{x:47.8,y:53.3},{x:48,y:53.7},{x:48.2,y:54.1},{x:48.4,y:54.6},{x:48.6,y:55},{x:48.8,y:55.5},{x:49,y:55.9},{x:49.2,y:56.3},{x:49.4,y:56.8},{x:49.6,y:57.2},{x:49.8,y:57.7},{x:50,y:58.1},{x:50.2,y:58.6},{x:50.4,y:59},{x:50.6,y:59.5},{x:50.8,y:60}],b=[{x:20.4,y:10},{x:20.6,y:10.2},{x:20.8,y:10.4},{x:21,y:10.6},{x:21.2,y:10.8},{x:21.4,y:11},{x:21.6,y:11.2},{x:21.8,y:11.4},{x:22,y:11.6},{x:22.2,y:11.8},{x:22.4,y:12},{x:22.6,y:12.2},{x:22.8,y:12.4},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13.1},{x:23.6,y:13.1},{x:23.8,y:13.5},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.3},{x:25.6,y:15.6},{x:25.8,y:15.8},{x:26,y:16},{x:26.2,y:16.3},{x:26.4,y:16.5},{x:26.6,y:16.8},{x:26.8,y:17},{x:27,y:17.2},{x:27.2,y:17.5},{x:27.4,y:17.7},{x:27.6,y:18},{x:27.8,y:18.3},{x:28,y:18.5},{x:28.2,y:18.8},{x:28.4,y:19},{x:28.6,y:19.3},{x:28.8,y:19.5},{x:29,y:19.8},{x:29.2,y:20.1},{x:29.4,y:20.3},{x:29.6,y:20.6},{x:29.8,y:20.9},{x:30,y:21.2},{x:30.2,y:21.4},{x:30.4,y:21.7},{x:30.6,y:22},{x:30.8,y:22.3},{x:31,y:22.5},{x:31.2,y:22.8},{x:31.4,y:23.1},{x:31.6,y:23.4},{x:31.8,y:23.7},{x:32,y:24},{x:32.2,y:24.3},{x:32.4,y:24.6},{x:32.6,y:24.9},{x:32.8,y:25.2},{x:33,y:25.5},{x:33.2,y:25.8},{x:33.4,y:26.1},{x:33.6,y:26.4},{x:33.8,y:26.7},{x:34,y:27},{x:34.2,y:27.3},{x:34.4,y:27.6},{x:34.6,y:27.9},{x:34.8,y:28.2},{x:35,y:28.5},{x:35.2,y:28.8},{x:35.4,y:29.2},{x:35.6,y:29.5},{x:35.8,y:29.8},{x:36,y:30.1},{x:36.2,y:30.5},{x:36.4,y:30.8},{x:36.6,y:31.1},{x:36.8,y:31.4},{x:37,y:31.8},{x:37.2,y:32.1},{x:37.4,y:32.4},{x:37.6,y:32.8},{x:37.8,y:33.1},{x:38,y:33.5},{x:38.2,y:33.8},{x:38.4,y:34.2},{x:38.6,y:34.5},{x:38.8,y:34.8},{x:39,y:35.2},{x:39.2,y:35.5},{x:39.4,y:35.9},{x:39.6,y:36.3},{x:39.8,y:36.6},{x:40,y:37},{x:40.2,y:37.3},{x:40.4,y:37.7},{x:40.6,y:38.1},{x:40.8,y:38.4},{x:41,y:38.8},{x:41.2,y:39.1},{x:41.4,y:39.5},{x:41.6,y:39.9},{x:41.8,y:40.3},{x:42,y:40.6},{x:42.2,y:41},{x:42.4,y:41.4},{x:42.6,y:41.8},{x:42.8,y:42.2},{x:43,y:42.5},{x:43.2,y:42.9},{x:43.4,y:43.3},{x:43.6,y:43.7},{x:43.8,y:44.1},{x:44,y:44.5},{x:44.2,y:44.9},{x:44.4,y:45.3},{x:44.6,y:45.7},{x:44.8,y:46.1},{x:45,y:46.5},{x:45.2,y:46.9},{x:45.4,y:47.3},{x:45.6,y:47.7},{x:45.8,y:48.1},{x:46,y:48.5},{x:46.2,y:48.9},{x:46.4,y:49.3},{x:46.6,y:49.7},{x:46.8,y:50.1},{x:47,y:50.5},{x:47.2,y:51},{x:47.4,y:51.4},{x:47.6,y:51.8},{x:47.8,y:52.2},{x:48,y:52.7},{x:48.2,y:53.1},{x:48.4,y:53.5},{x:48.6,y:53.9},{x:48.8,y:54.4},{x:49,y:54.8},{x:49.2,y:55.2},{x:49.4,y:55.7},{x:49.6,y:56.1},{x:49.8,y:56.6},{x:50,y:57},{x:50.2,y:57.4},{x:50.4,y:57.9},{x:50.6,y:58.3},{x:50.8,y:58.8},{x:51,y:59.2},{x:51.2,y:59.7},{x:51.4,y:60}],C=[{x:20.6,y:10},{x:20.8,y:10.2},{x:21,y:10.4},{x:21.2,y:10.6},{x:21.4,y:10.8},{x:21.6,y:11},{x:21.8,y:11.2},{x:22,y:11.4},{x:22.2,y:11.6},{x:22.4,y:11.8},{x:22.6,y:12},{x:22.8,y:12.2},{x:23,y:12.4},{x:23.2,y:12.6},{x:23.4,y:12.8},{x:23.6,y:13},{x:23.8,y:13.2},{x:24,y:13.5},{x:24.2,y:13.7},{x:24.4,y:13.9},{x:24.6,y:14.1},{x:24.8,y:14.3},{x:25,y:14.6},{x:25.2,y:14.8},{x:25.4,y:15},{x:25.6,y:15.2},{x:25.8,y:15.5},{x:26,y:15.7},{x:26.2,y:15.9},{x:26.4,y:16.2},{x:26.6,y:16.4},{x:26.8,y:16.7},{x:27,y:16.9},{x:27.2,y:17.1},{x:27.4,y:17.4},{x:27.6,y:17.6},{x:27.8,y:17.9},{x:28,y:18.1},{x:28.2,y:18.4},{x:28.4,y:18.6},{x:28.6,y:18.9},{x:28.8,y:19.2},{x:29,y:19.4},{x:29.2,y:19.7},{x:29.4,y:19.9},{x:29.6,y:20.2},{x:29.8,y:20.5},{x:30,y:20.7},{x:30.2,y:21},{x:30.4,y:21.3},{x:30.6,y:21.6},{x:30.8,y:21.8},{x:31,y:22.1},{x:31.2,y:22.4},{x:31.4,y:22.7},{x:31.6,y:22.9},{x:31.8,y:23.2},{x:32,y:23.5},{x:32.2,y:23.8},{x:32.4,y:24.1},{x:32.6,y:24.4},{x:32.8,y:24.7},{x:33,y:25},{x:33.2,y:25.2},{x:33.4,y:25.5},{x:33.6,y:25.8},{x:33.8,y:26.1},{x:34,y:26.4},{x:34.2,y:26.4},{x:34.4,y:27},{x:34.6,y:27.4},{x:34.8,y:27.7},{x:35,y:28},{x:35.2,y:28.3},{x:35.4,y:28.6},{x:35.6,y:28.9},{x:35.8,y:29.2},{x:36,y:29.5},{x:36.2,y:29.9},{x:36.4,y:30.2},{x:36.6,y:30.5},{x:36.8,y:30.8},{x:37,y:31.2},{x:37.2,y:31.5},{x:37.4,y:31.8},{x:37.6,y:32.1},{x:37.8,y:32.5},{x:38,y:32.8},{x:38.2,y:33.1},{x:38.4,y:33.5},{x:38.6,y:33.8},{x:38.8,y:34.2},{x:39,y:34.5},{x:39.2,y:34.8},{x:39.4,y:35.2},{x:39.6,y:35.5},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.6},{x:40.4,y:36.9},{x:40.6,y:37.3},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.1},{x:41.8,y:39.5},{x:42,y:39.8},{x:42.2,y:40.2},{x:42.4,y:40.6},{x:42.6,y:40.9},{x:42.8,y:41.3},{x:43,y:41.7},{x:43.2,y:42.1},{x:43.4,y:42.5},{x:43.6,y:42.8},{x:43.8,y:43.2},{x:44,y:43.6},{x:44.2,y:44},{x:44.4,y:44.4},{x:44.6,y:44.8},{x:44.8,y:45.1},{x:45,y:45.5},{x:45.2,y:45.9},{x:45.4,y:46.3},{x:45.6,y:46.7},{x:45.8,y:47.1},{x:46,y:47.5},{x:46.2,y:47.9},{x:46.4,y:48.3},{x:46.6,y:48.7},{x:46.8,y:49.1},{x:47,y:49.5},{x:47.2,y:50.5},{x:47.4,y:50.4},{x:47.6,y:50.8},{x:47.8,y:51.2},{x:48,y:51.6},{x:48.2,y:52},{x:48.4,y:52.5},{x:48.6,y:52.9},{x:48.8,y:53.3},{x:49,y:53.7},{x:49.2,y:54.1},{x:49.4,y:54.6},{x:49.6,y:55},{x:49.8,y:55.4},{x:50,y:55.9},{x:50.2,y:56.3},{x:50.4,y:56.7},{x:50.6,y:57.2},{x:50.8,y:57.6},{x:51,y:58.1},{x:51.2,y:58.5},{x:51.4,y:58.9},{x:51.6,y:59.4},{x:51.8,y:59.8},{x:52,y:60}],S=[{x:20.8,y:10},{x:21,y:10.2},{x:21.2,y:10.4},{x:21.4,y:10.6},{x:21.6,y:10.7},{x:21.8,y:10.9},{x:22,y:11.1},{x:22.2,y:11.3},{x:22.4,y:11.5},{x:22.6,y:11.7},{x:22.8,y:11.9},{x:23,y:12.1},{x:23.2,y:12.3},{x:23.4,y:12.6},{x:23.6,y:12.8},{x:23.8,y:13},{x:24,y:13.2},{x:24.2,y:13.4},{x:24.4,y:13.6},{x:24.6,y:13.8},{x:24.8,y:14.1},{x:25,y:14.3},{x:25.2,y:14.5},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.2},{x:26,y:15.4},{x:26.2,y:15.6},{x:26.4,y:15.9},{x:26.6,y:16.1},{x:26.8,y:16.3},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17.1},{x:27.6,y:17.3},{x:27.8,y:17.5},{x:28,y:17.8},{x:28.2,y:18},{x:28.4,y:18.3},{x:28.6,y:18.5},{x:28.8,y:18.8},{x:29,y:19},{x:29.2,y:19.3},{x:29.4,y:19.5},{x:29.6,y:19.8},{x:29.8,y:20.1},{x:30,y:20.3},{x:30.2,y:20.6},{x:30.4,y:20.9},{x:30.6,y:21.1},{x:30.8,y:21.4},{x:31,y:21.7},{x:31.2,y:21.9},{x:31.4,y:22.2},{x:31.6,y:22.5},{x:31.8,y:22.8},{x:32,y:23},{x:32.2,y:23.3},{x:32.4,y:23.6},{x:32.6,y:23.9},{x:32.8,y:24.2},{x:33,y:24.5},{x:33.2,y:24.7},{x:33.4,y:25},{x:33.6,y:25.3},{x:33.8,y:25.6},{x:34,y:25.9},{x:34.2,y:26.2},{x:34.4,y:26.5},{x:34.6,y:26.8},{x:34.8,y:27.1},{x:35,y:27.4},{x:35.2,y:27.7},{x:35.4,y:28},{x:35.6,y:28.3},{x:35.8,y:28.6},{x:36,y:29},{x:36.2,y:29.3},{x:36.4,y:29.6},{x:36.6,y:29.9},{x:36.8,y:30.2},{x:37,y:30.5},{x:37.2,y:30.9},{x:37.4,y:31.2},{x:37.6,y:31.5},{x:37.8,y:31.8},{x:38,y:32.2},{x:38.2,y:32.5},{x:38.4,y:32.8},{x:38.6,y:33.2},{x:38.8,y:33.5},{x:39,y:33.8},{x:39.2,y:34.2},{x:39.4,y:34.5},{x:39.6,y:34.8},{x:39.8,y:35.2},{x:40,y:35.5},{x:40.2,y:35.9},{x:40.4,y:36.2},{x:40.6,y:36.6},{x:40.8,y:36.9},{x:41,y:37.3},{x:41.2,y:37.6},{x:41.4,y:38},{x:41.6,y:38.3},{x:41.8,y:38.7},{x:42,y:39.1},{x:42.2,y:39.4},{x:42.4,y:39.8},{x:42.6,y:40.1},{x:42.8,y:40.5},{x:43,y:40.9},{x:43.2,y:41.2},{x:43.4,y:41.6},{x:43.6,y:42},{x:43.8,y:42.4},{x:44,y:42.7},{x:44.2,y:43.1},{x:44.4,y:43.5},{x:44.6,y:43.9},{x:44.8,y:44.3},{x:45,y:44.6},{x:45.2,y:45},{x:45.4,y:45.4},{x:45.6,y:45.8},{x:45.8,y:46.2},{x:46,y:46.6},{x:46.2,y:47},{x:46.4,y:47.4},{x:46.6,y:47.8},{x:46.8,y:48.2},{x:47,y:48.6},{x:47.2,y:49},{x:47.4,y:49.4},{x:47.6,y:49.8},{x:47.8,y:50.2},{x:48,y:50.6},{x:48.2,y:51},{x:48.4,y:51.4},{x:48.6,y:51.8},{x:48.8,y:52.2},{x:49,y:52.7},{x:49.2,y:53.1},{x:49.4,y:53.5},{x:49.6,y:53.9},{x:49.8,y:54.3},{x:50,y:54.8},{x:50.2,y:55.2},{x:50.4,y:55.6},{x:50.6,y:56},{x:50.8,y:56.5},{x:51,y:56.9},{x:51.2,y:57.3},{x:51.4,y:57.8},{x:51.6,y:58.2},{x:51.8,y:58.7},{x:52,y:59.1},{x:52.2,y:59.5},{x:52.4,y:60}],w=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.3},{x:21.6,y:10.5},{x:21.8,y:10.7},{x:22,y:10.9},{x:22.2,y:11.1},{x:22.4,y:11.3},{x:22.6,y:11.5},{x:22.8,y:11.7},{x:23,y:11.9},{x:23.2,y:12.1},{x:23.4,y:12.3},{x:23.6,y:12.5},{x:23.8,y:12.7},{x:24,y:12.9},{x:24.2,y:13.1},{x:24.4,y:13.3},{x:24.6,y:13.6},{x:24.8,y:13.8},{x:25,y:14},{x:25.2,y:14.2},{x:25.4,y:14.4},{x:25.6,y:14.7},{x:25.8,y:14.9},{x:26,y:15.1},{x:26.2,y:15.3},{x:26.4,y:15.6},{x:26.6,y:15.8},{x:26.8,y:16},{x:27,y:16.2},{x:27.2,y:16.5},{x:27.4,y:16.7},{x:27.6,y:17},{x:27.8,y:17.2},{x:28,y:17.4},{x:28.2,y:17.7},{x:28.4,y:17.9},{x:28.6,y:18.2},{x:28.8,y:18.4},{x:29,y:18.7},{x:29.2,y:18.9},{x:29.4,y:19.2},{x:29.6,y:19.4},{x:29.8,y:19.7},{x:30,y:19.9},{x:30.2,y:20.2},{x:30.4,y:20.4},{x:30.6,y:20.7},{x:30.8,y:21},{x:31,y:21.2},{x:31.2,y:21.5},{x:31.4,y:21.8},{x:31.6,y:22},{x:31.8,y:22.3},{x:32,y:22.6},{x:32.2,y:22.9},{x:32.4,y:23.1},{x:32.6,y:23.4},{x:32.8,y:23.7},{x:33,y:24},{x:33.2,y:24.3},{x:33.4,y:24.5},{x:33.6,y:24.8},{x:33.8,y:25.1},{x:34,y:25.4},{x:34.2,y:25.7},{x:34.4,y:26},{x:34.6,y:26.3},{x:34.8,y:26.6},{x:35,y:26.9},{x:35.2,y:27.2},{x:35.4,y:27.5},{x:35.6,y:27.8},{x:35.8,y:28.1},{x:36,y:28.4},{x:36.2,y:28.7},{x:36.4,y:29},{x:36.6,y:29.3},{x:36.8,y:29.6},{x:37,y:29.9},{x:37.2,y:30.2},{x:37.4,y:30.6},{x:37.6,y:30.9},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.2},{x:38.6,y:32.5},{x:38.8,y:32.8},{x:39,y:33.2},{x:39.2,y:33.5},{x:39.4,y:33.8},{x:39.6,y:34.2},{x:39.8,y:34.5},{x:40,y:34.8},{x:40.2,y:35.2},{x:40.4,y:35.5},{x:40.6,y:35.8},{x:40.8,y:36.2},{x:41,y:36.5},{x:41.2,y:36.9},{x:41.4,y:37.2},{x:41.6,y:37.6},{x:41.8,y:37.9},{x:42,y:38.3},{x:42.2,y:38.6},{x:42.4,y:39},{x:42.6,y:39.3},{x:42.8,y:39.7},{x:43,y:40.1},{x:43.2,y:40.4},{x:43.4,y:40.8},{x:43.6,y:41.2},{x:43.8,y:41.5},{x:44,y:41.9},{x:44.2,y:42.3},{x:44.4,y:42.6},{x:44.6,y:43},{x:44.8,y:43.4},{x:45,y:43.8},{x:45.2,y:44.1},{x:45.4,y:44.5},{x:45.6,y:44.9},{x:45.8,y:45.3},{x:46,y:45.7},{x:46.2,y:46.1},{x:46.4,y:46.4},{x:46.6,y:46.8},{x:46.8,y:47.2},{x:47,y:47.6},{x:47.2,y:48},{x:47.4,y:48.4},{x:47.6,y:48.8},{x:47.8,y:49.2},{x:48,y:49.6},{x:48.2,y:50},{x:48.4,y:50.4},{x:48.6,y:50.8},{x:48.8,y:51.2},{x:49,y:51.6},{x:49.2,y:52},{x:49.4,y:52.4},{x:49.6,y:52.9},{x:49.8,y:53.3},{x:50,y:53.7},{x:50.2,y:54.1},{x:50.4,y:54.5},{x:50.6,y:54.9},{x:50.8,y:55.4},{x:51,y:55.8},{x:51.2,y:56.2},{x:51.4,y:56.6},{x:51.6,y:57.1},{x:51.8,y:57.5},{x:52,y:57.9},{x:52.2,y:58.4},{x:52.4,y:58.8},{x:52.6,y:59.2},{x:52.8,y:59.7}];if(o>=0){var D;"0"==(D=1*y)?V=i:"0.5"==D?V=u:"1"==D?V=m:"1.5"==D?V=c:"2"==D?V=h:"2.5"==D?V=p:"3"==D?V=f:"3.5"==D?V=d:"4"==D?V=g:"4.5"==D?V=b:"5"==D?V=C:"5.5"==D?V=S:D>="6"&&(V=w);F=-1;for(s=0;s<V.length;s++){if(1*V[0].x>r){F=1;break}if(1*V[s].x>r){F=s;break}if(1*V[V.length-1].x<r){F=V.length-1;break}if(r==V[s].x){n=e.GetDataOddIncreaseEvenDecrease(V[s].y,-1);break}}if(-1!=F){E=V[F-1].x,N=V[F-1].y,A=V[F].x,v=V[F].y;r>=46.8&&0==D||r>=47.4&&.5==D||r>=47.8&&1==D||r>=48.4&&1.5==D||r>=48.8&&2==D||r>=49.4&&2.5==D||r>=49.8&&3==D||r>=50.4&&3.5==D||r>=50.8&&4==D||r>=51.4&&4.5==D||r>=52&&5==D||r>=52.4&&5.5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,A,N,v,r),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}return n}},FormulaUtils={initFormulas:(e,l)=>{FormulaUtils.allCusFormulas.forEach(t=>{const a=FormulaUtils.initForFun(e,l,t.funName,t.funDesc,t.funCallback,t.funDefaultVal,t.funMinArgs,t.funMaxArgs,t.funParams,t.isContext,t.isAcceptArea,t.isContainNullUndefinedVal);e.Spread.CalcEngine.Functions.defineGlobalCustomFunction(t.funName,new a)})},initForFun:(e,l,t,a,n,o=0,y=1,r=1e3,x=[],s=!0,i=!0,u=!1)=>{const m=function(){this.name=t,this.minArgs=y,this.maxArgs=r};return(m.prototype=new e.Spread.CalcEngine.Functions.Function(t,y,r)).description=function(){return{description:a,parameters:x}},m.prototype.isContextSensitive=function(){return s},m.prototype.acceptsReference=function(){return i},m.prototype.evaluate=function(){let e,t;s&&(e=arguments[0].source.getSheet(),t=e.getSpan(arguments[0].row,arguments[0].column),null!=t&&null!=t||(t={row:arguments[0].row,col:arguments[0].column,rowCount:1,colCount:1}));let a=[],y=[];if(i&&arguments.length>1){const e=arguments[0].source.getSheet();for(let l=1;l<arguments.length;l++){const t=arguments[l];if(null!=t.$gt&&null!=t.$gt&&t.$gt.length>0){let l=[],a=e.getSpans(t.$gt[0]);if(a=orderByJson(a,"row","asc"),a.length>0)a.forEach(t=>{l.push(e.getValue(t.row,t.col))});else{e.getArray(t.$gt[0].row,t.$gt[0].col,t.$gt[0].rowCount,t.$gt[0].colCount).forEach(e=>{e.forEach(e=>{l.push(e)})})}y.push(l)}else y.push(t)}}let r=arguments.length;for(let l=1;l<r;l++){const t=arguments[l];if("string"==typeof t||"number"==typeof t)a.push(t);else{e=t.getSource().getSheet();const l=t.getRow(),n=t.getColumn(),o=t.getRowCount(),y=t.getColumnCount();e.getArray(l,n,o,y).forEach(e=>{e.forEach(e=>{(u||null!=e&&null!=e)&&a.push(e)})})}}function x(e){if(null===e||"object"!=typeof e)return!1;const l=Object.getPrototypeOf(e);return(null===l||l===Object.prototype)&&e.constructor===Object}if(0==a.length&&null!=o&&null!=a&&(a=[o]),null!=a&&null!=a&&a.length>0)for(var m=0;m<a.length;m++){let e=a[m];null!=e&&null!=e&&x(e)&&e.hasOwnProperty("con")&&e.hasOwnProperty("val")&&(a[m]=e.val)}if(null!=y&&null!=y&&y.length>0)for(m=0;m<y.length;m++){let e=y[m];if(null!=e&&null!=e&&e.length>0)for(var c=0;c<e.length;c++){let l=e[c];null!=l&&null!=l&&x(l)&&l.hasOwnProperty("con")&&l.hasOwnProperty("val")&&(y[m][c]=l.val)}}return n(l,e,{arguments:arguments,cellObj:t,allCellVals:a,allCellValsEw:y})},m},commFun:{getForRangeCellsValArr:e=>{let l=[];if(e.length>1){const t=e[0].source.getSheet();for(let a=1;a<e.length;a++){const n=e[a];let o=t.getArray(n.$gt[0].row,n.$gt[0].col,n.$gt[0].rowCount,n.$gt[0].colCount);l.push(o)}}return l},isNumber:e=>"number"==typeof e||/^(-?\d+)(\.\d+)?$/.test(e),convertToInt:e=>{let l=[];return e.forEach((e,t)=>{l.push(Number(e))}),l},getMax:e=>0==e.length?"":Math.max(...e),getMin:e=>0==e.length?"":Math.min(...e),getAverage:e=>{if(0==e.length)return"";let l=[];e.forEach(e=>{l.push(math.bignumber(e))});return math.mean(l).toNumber()},getNum:e=>{let l,t;const a=/[×φ*]/g;try{let n;t=e.split(a),"φ"==e.substring(0,1)?(n=t[1]-0,l=Math.PI*n*n/4):(l=t[0]-0,n=t[1]-0,l*=n)}catch(e){return 0}return l},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=preciseCalc(1,l,"div"),n=preciseCalc(e,a,"mul");const o=preciseCalc((e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(n),a,"div");let y=l+"";if(-1==y.indexOf("."))return t?-o:o;{const e=o+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<y.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${o}.${e}`}{const a=e.split(".")[1];if(y.split(".")[1].length>a.length)for(let e=0;e<y.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${o}${l}`}}},InterpolationMethod_y:(e,l,t,a,n)=>{let o=(n-e)*(t-a)/(e-l)+1*t;return isNaN(o)?"/":o},GetDataOddIncreaseEvenDecrease:(e,l)=>{let t,a,n,o;if(-1!=e.toString().indexOf("00000000")&&(e=e.toString().substring(0,e.toString().indexOf("00000000")+2)),-1!=e.toString().indexOf("999999")){let t=l;t<0&&(t=Math.abs(t-1)),e=parseFloat(e).toFixed(t)}if(l*=1,t=1,n=e*=1,1*Math.floor(e)==1*e)switch(l){case-7:o=e+".000000000";break;case-6:o=e+".00000000";break;case-5:o=e+".0000000";break;case-4:o=e+".000000";break;case-3:o=e+".00000";break;case-2:o=e+".0000";break;case-1:o=e+".000";break;case 1:o=e+".00";break;case 2:o=e+".0";break;case 3:o=e}else switch(l){case-7:o=(1*e).toFixed(9);break;case-6:o=(1*e).toFixed(8);break;case-5:o=(1*e).toFixed(7);break;case-4:o=(1*e).toFixed(6);break;case-3:o=(1*e).toFixed(5);break;case-2:o=(1*e).toFixed(4);break;case-1:o=(1*e).toFixed(3);break;case 1:o=(1*e).toFixed(2);break;case 2:o=(1*e).toFixed(1);break;case 3:o=1*e}if(1*o>1*n)switch(l){case-7:o=(o-1e-8).toFixed(9);break;case-6:o=(o-1e-8).toFixed(8);break;case-5:o=(o-1e-7).toFixed(7);break;case-4:o=(o-1e-6).toFixed(6);break;case-3:o=(o-1e-5).toFixed(5);break;case-2:o=(o-1e-4).toFixed(4);break;case-1:o=(o-.001).toFixed(3);break;case 1:o=(o-.01).toFixed(2);break;case 2:o=(o-.1).toFixed(1);break;case 3:o=(o-1).toFixed(0)}if(n=o+"1",o=n.substr(0,n.length-1),3==l||-1==l||-2==l||-3==l||-4==l||-5==l||-6==l||-7==l)if(50==o.substr(o.length-2,2))if(o.substr(o.length-3,1)%2==0)a=o.substr(0,o.length-2),-1!=e.toString().indexOf(o)&&1*e-1*o>0&&(a=e);else switch(a=o.substr(0,o.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}else if(o.substr(o.length-2,2)<50){if(a=o.substr(0,o.length-2),3===l)a=1*a*100}else if(o.substr(o.length-2,2)>50||o<e)switch(a=o.substr(0,o.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}switch(1==l&&(50==o.substr(o.length-2,2)?o.substr(o.length-4,1)%2==0?a=o.substr(0,o.length-3):(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t):o.substr(o.length-2,2)<50?a=o.substr(0,o.length-3):(o.substr(o.length-2,2)>50||1*o<e)&&(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t)),2==l&&(5==o.substr(o.length-3,3)&&1*o==e?o.substr(o.length-4,1)%2==0?a=10*o.substr(0,o.length-3):(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t):o.substr(o.length-3,3)<5?a=10*o.substr(0,o.length-3):(o.substr(o.length-3,3)>5||1*o<e)&&(a=o.substr(0,o.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t)),l){case-7:n=(1*a).toFixed(7);break;case-6:n=(1*a).toFixed(6);break;case-5:n=(1*a).toFixed(5);break;case-4:n=(1*a).toFixed(4);break;case-3:n=(1*a).toFixed(3);break;case-2:n=(1*a).toFixed(2);break;case-1:n=(1*a).toFixed(1);break;default:n=(1*a).toFixed(0)}return isNaN(n)&&(n="/"),n},GetS:e=>{let l,t=0,a=e.length,n=0,o=0;for(let l=0;l<a;l++)t+=1*e[l];n=t/a;for(let l=0;l<a;l++)o+=(e[l]-n)*(e[l]-n);return l=Math.sqrt(o/(a-1)),isNaN(1*l)&&(l=""),l}},allCusFormulas:[{funName:"ZERO",funDesc:"将单元格值为空或/返回默认值0",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||null!=t.allCellValsEw[0][0]._error&&null!=t.allCellValsEw[0][0]._error||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?0:a}},{funName:"ONE",funDesc:"将单元格值为空或/返回默认值1",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?1:1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:a}},{funName:"SLASH",funDesc:"将单元格值为空或0(包括0.0、0.00等)返回默认值/",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),1==t.allCellVals.length&&0==t.allCellVals[0]&&1==t.allCellValsEw.length&&0==t.allCellValsEw[0]?"/":1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(0==t.allCellValsEw[0][0]||"0.0"==t.allCellValsEw[0][0]||"0.00"==t.allCellValsEw[0][0]||"0.000"==t.allCellValsEw[0][0]||"0.0000"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?"/":a}},{funName:"YJMAX",funDesc:"返回一组数值中的最大值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.max(...n)}},{funName:"YJMIN",funDesc:"返回一组数值中的最小值",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.min(...n)}},{funName:"YJSUM",funDesc:"计算单元格区域中所有数值的和",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":n.reduce((e,l)=>e+l,0)}},{funName:"YJCOUNT",funDesc:"计算区域中包含数字的单元格的个数",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;return t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),a?(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length):"/"}},{funName:"YJMID",funDesc:"获取所有选择的单元格中的中间值",funDefaultVal:null,funParams:[{name:"单元格范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{const a=t.allCellVals.filter(e=>{const l=Number(e);return!isNaN(l)&&0!==l&&isFinite(l)&&""!==e&&"/"!==e}).map(e=>Number(e));if(0===a.length)return"/";a.sort((e,l)=>e-l);const n=Math.floor(a.length/2);return a.length%2==1?a[n]:(a[n-1]+a[n])/2}},{funName:"YJAVERAGE",funDesc:"计算平均值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":FormulaUtils.commFun.getAverage(n)}},{funName:"YJRESULTPD",funDesc:"报告上根据技术要求判定",funDefaultVal:null,funParams:[{name:"技术要求",repeatable:!1,optional:!1},{name:"试验结果",repeatable:!1,optional:!1}],funCallback:(spread,sheet,retData)=>{let symbol="/";if(retData.allCellVals.length<2)return symbol;if(null!=retData.allCellVals[0]._error&&null!=retData.allCellVals[0]._error)return symbol;let jsyq=retData.allCellVals[0]+"",syjglist=[];retData.allCellVals.forEach((e,l)=>{l>0&&("/"==e||null==e||null!=e._error&&null!=e._error||syjglist.push(e))});let kk="合格";if(jsyq==symbol||"/"==jsyq||""==jsyq||syjglist.some(e=>"无效"==e)||0==syjglist.length)return symbol;for(let i=0;i<syjglist.length;i++){let k1=syjglist[i];if(-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">")||-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">"))if(jsyq=jsyq.replace("<","<"),jsyq=jsyq.replace(">",">"),-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf(">")&&-1==e.indexOf("<")||(e=jsyq.split(",")[0].replace(">",""),l=jsyq.split(",")[1].replace("<","")),kk=1*k1>1*e&&k1<1*l?"合格":"不合格")}else kk=eval(k1+jsyq)?"合格":"不合格";else if(-1!=jsyq.indexOf("≥")||-1!=jsyq.indexOf("不小于")||-1!=jsyq.indexOf("≮"))if(-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf("≥")&&-1==e.indexOf("≤")||(e=jsyq.split(",")[0].replace("≥",""),l=jsyq.split(",")[1].replace("≤","")),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格")}else{let e=1*jsyq.replace("≥","").replace("不小于","").replace("≮","");FormulaUtils.commFun.isNumber(k1)?kk=k1>e||k1==e?"合格":"不合格":-1!=k1.indexOf("大于")?kk=k1.replace("大于","")==jsyq.replace("≮","")?"合格":"不合格":-1!=k1.indexOf("不足")?kk="不合格":-1!=k1.indexOf("+")&&(kk=k1.replace("+","")>=e?"合格":"不合格")}else if(-1!=jsyq.indexOf("≤")||-1!=jsyq.indexOf("不大于")||-1!=jsyq.indexOf("≯")){let e=1*jsyq.replace("≤","").replace("不大于","").replace("≯","");kk=k1<e||k1==e?"合格":"不合格"}else if(-1!=jsyq.indexOf("≠")){let e=1*jsyq.replace("≠","");kk=k1!=e?"合格":"不合格"}else if(-1!=jsyq.indexOf("~")||-1!=jsyq.indexOf(",")||-1!=jsyq.indexOf("~")){let e,l;-1!=jsyq.indexOf("~")?(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf("~")?-1!=jsyq.split("~")[0].indexOf("+")?(e=jsyq.split("~")[1],l=jsyq.split("~")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf(",")&&(-1!=jsyq.split(",")[0].indexOf("+")?(e=jsyq.split(",")[1],l=jsyq.split(",")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.toString().indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split(",")[0],l=jsyq.split(",")[1])),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格"}else if(-1!=jsyq.indexOf("±")){let e=jsyq.split("±")[0],l=jsyq.split("±")[1],t=1*e-1*l,a=1*e+1*l;kk=k1>=t&&k1<=a?"合格":"不合格"}else FormulaUtils.commFun.isNumber(jsyq)&&(jsyq*=1),kk=k1>=jsyq?"合格":"不合格";if("不合格"==kk)return"不合格"}return kk}},{funName:"YJROUND",funDesc:"计算常规修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约精度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return t.allCellVals[0];let a=t.allCellVals[1],n=Number(t.allCellVals[0]);return n=Number(n.toFixed(8)),FormulaUtils.commFun.getRound(n,a)}},{funName:"YjGetNum",funDesc:"根据试件尺寸计算面积",funDefaultVal:null,funParams:[{name:"cellContent",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>t.allCellVals.length<1?"/":"string"!=typeof t.allCellVals[0]||0!=t.allCellVals[0].trim().length&&"/"!=t.allCellVals[0].trim()?FormulaUtils.commFun.getNum(t.allCellVals[0]):"/"},{funName:"YjGetS",funDesc:"计算标准差",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"/";let n=FormulaUtils.commFun.convertToInt(t.allCellVals),o=0,y=n.length,r=0,x=0;for(let e=0;e<y;e++)o+=1*n[e];r=o/y;for(let e=0;e<y;e++)x+=(n[e]-r)*(n[e]-r);const s=Math.sqrt(x/(y-1));return isNaN(1*s)?"":s}},{funName:"YjGetCv",funDesc:"计算变异系数Cv",funDefaultVal:null,funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=0,o=a.length,y=0,r=0;for(let e=0;e<o;e++)n+=1*a[e];y=n/o;for(let e=0;e<o;e++)r+=(a[e]-y)*(a[e]-y);const x=100*Math.sqrt(r/(o-1))/y;return x||""}},{funName:"YjInterpolationMethod",funDesc:"直线内插法(已知y求x)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentY",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=(t.allCellVals[4]-o)*(n-a)/(y-o)+1*a;return FormulaUtils.commFun.isNumber(r)?r:"/"}},{funName:"YjInterpolationMethod_Y",funDesc:"直线内插法(已知x求y)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentX",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=(t.allCellVals[4]-a)*(o-y)/(a-n)+1*o;return FormulaUtils.commFun.isNumber(r)?r:"/"}},{funName:"YJROUNDYX",funDesc:"计算有效数字修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约位数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"/";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=Math.floor(a[1]);if(n<=0||0==a[0])return a[0];const o=a[0].toPrecision(n);if(o.indexOf("e")>-1){const e=Number(o);return String(e).length>n?String(e).substring(0,n):e}return o}},{funName:"YJDZ",funDesc:"按照单元格点选顺序,优先提取最后一个有数据的单元格值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=[];return t.allCellVals.forEach(e=>{null!=e&&null!=e&&"/"!=e&&(null==e._error||null==e._error)&&(e+"").trim().length>0&&a.push(e)}),0==a.length?"/":a[a.length-1]}},{funName:"YJTKY",funDesc:"混凝土抗压强度",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.15",repeatable:!1,optional:!1},{name:"试验名称,如:混凝土抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(t.allCellVals[3]);t.allCellVals[4],r*=1;let x=FormulaUtils.commFun.getAverage(a),s=1*FormulaUtils.commFun.getMax(a),i=1*FormulaUtils.commFun.getMin(a),u=1*n+1*o+1*y-1*s-1*i;return Math.abs(s-u)>u*r&&Math.abs(i-u)>u*r?(x="无效",x):((Math.abs(s-u)>u*r||Math.abs(i-u)>u*r)&&(x=u),x)}},{funName:"YJJSKZ",funDesc:"水泥胶砂抗折",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗折",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(t.allCellVals[3]);t.allCellVals[4],r*=1;let x=[n,o,y],s=new Array;x.sort(function(e,l){return e-l});let i=FormulaUtils.commFun.getAverage(x);for(let e=0;e<x.length;e++)s[e]=Math.abs(x[e]-i),s.sort(function(e,l){return e-l});if(x.length>2){let e=FormulaUtils.commFun.getMax(s)/i,l=FormulaUtils.commFun.getMin(s)/i,t=s[1]/i;if(e<=r);else{if(Math.abs(e)>r&&Math.abs(l)>r&&Math.abs(t)>r)return i="作废",i;if(x[2]>i+r*i&&x[0]<i-r*i)i=x[1];else{let e=FormulaUtils.commFun.getMin(x),l=FormulaUtils.commFun.getAverage(x);i=e<l-.1*l?FormulaUtils.commFun.getAverage([x[1],x[2]]):FormulaUtils.commFun.getAverage([x[0],x[1]])}}}return i}},{funName:"YJJSKY",funDesc:"水泥胶砂抗压",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[0])&&FormulaUtils.commFun.isNumber(t.allCellVals[1])&&FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=Number(a[0]),o=Number(a[1]),y=Number(a[2]),r=Number(a[3]),x=Number(a[4]),s=Number(a[5]),i=Number(t.allCellVals[6]);t.allCellVals[7],i*=1;let u=[n,o,y,r,x,s],m=new Array,c=new Array,h=new Array,p=new Array,f=0;u.sort(function(e,l){return e-l});let d,g=FormulaUtils.commFun.getAverage(u),b=0;m[0]=Math.abs(u[0]-g),m[1]=Math.abs(u[1]-g),m[2]=Math.abs(u[2]-g),m[3]=Math.abs(u[3]-g),m[4]=Math.abs(u[4]-g),m[5]=Math.abs(u[5]-g),p[0]=Math.abs(u[0]-g)/g,p[1]=Math.abs(u[1]-g)/g,p[2]=Math.abs(u[2]-g)/g,p[3]=Math.abs(u[3]-g)/g,p[4]=Math.abs(u[4]-g)/g,p[5]=Math.abs(u[5]-g)/g;for(let e=0;e<6;e++)p[e]>i&&f++;if(u.length>5){let e=FormulaUtils.commFun.getMax(m),l=FormulaUtils.commFun.getMin(m);if(e/g<=i&&l/g<=i)d=g;else if(f>=2)d="作废";else{for(let l=0;l<6;l++)e!=m[l]&&(c[b]=u[l],b++);g=FormulaUtils.commFun.getAverage(c),h[0]=Math.abs(c[0]-g),h[1]=Math.abs(c[1]-g),h[2]=Math.abs(c[2]-g),h[3]=Math.abs(c[3]-g),h[4]=Math.abs(c[4]-g);let l=FormulaUtils.commFun.getMax(h)/g,t=FormulaUtils.commFun.getMin(c),a=FormulaUtils.commFun.getMax(c),n=FormulaUtils.commFun.getAverage(c);if(a>n+n*i||t<n-n*i)return d="作废",d;l<=i&&(d=g)}}return d}},{funName:"YJTN",funDesc:"ta/√n()查表",funDefaultVal:null,funParams:[{name:"保证率",repeatable:!1,optional:!1},{name:"检测点数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a=100*t.allCellVals[0]+"",n=Number(t.allCellVals[1]),o=new Array,y=0;if(n>100)"99"==a?y=2.3265/Math.sqrt(n):"95"==a?y=1.6449/Math.sqrt(n):"90"==a&&(y=1.2815/Math.sqrt(n));else{"99"==a?o=new Array("2-22.501","3-4.021","4-2.270","5-1.676","6-1.374","7-1.188","8-1.060","9-0.966","10-0.892","11-0.833","12-0.785","13-0.744","14-0.708","15-0.678","16-0.651","17-0.626","18-0.605","19-0.586","20-0.568","21-0.552","22-0.537","23-0.523","24-0.510","25-0.498","26-0.487","27-0.477","28-0.467","29-0.458","30-0.449","40-0.383","50-0.340","60-0.308","70-0.285","80-0.266","90-0.249","100-0.236"):"95"==a?o=new Array("2-4.465","3-1.686","4-1.177","5-0.953","6-0.823","7-0.734","8-0.670","9-0.620","10-0.580","11-0.546","12-0.518","13-0.494","14-0.473","15-0.455","16-0.438","17-0.423","18-0.410","19-0.398","20-0.387","21-0.376","22-0.367","23-0.358","24-0.350","25-0.342","26-0.335","27-0.328","28-0.322","29-0.316","30-0.310","40-0.266","50-0.237","60-0.216","70-0.199","80-0.186","90-0.175","100-0.166"):"90"==a&&(o=new Array("2-2.176","3-1.089","4-0.819","5-0.686","6-0.603","7-0.544","8-0.500","9-0.466","10-0.437","11-0.414","12-0.393","13-0.376","14-0.361","15-0.347","16-0.335","17-0.324","18-0.314","19-0.305","20-0.297","21-0.289","22-0.282","23-0.275","24-0.269","25-0.264","26-0.258","27-0.253","28-0.248","29-0.244","30-0.239","40-0.206","50-0.184","60-0.167","70-0.155","80-0.145","90-0.136","100-0.129"));for(let e=0;e<o.length;e++){let l=o[e].split("-");l[0]==n&&(y=l[1])}}return y}},{funName:"YJSMD",funDesc:"水密度查表",funDefaultVal:null,funParams:[{name:"水的温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";let a,n=t.allCellVals[0]+"",o=new Array("15-0.99913","16-0.99897","17-0.99880","18-0.99862","19-0.99843","20-0.99822","21-0.99802","22-0.99779","23-0.99756","24-0.99733","25-0.99702");for(let e=0;e<o.length;e++){let l=o[e].split("-");n==l[0]&&(a=l[1])}if(n.length>2){let e=n;e=e.substring(0,e.indexOf("."));let l=0;for(let t=0;t<o.length;t++){e==o[t].split("-")[0]&&(l=t)}if(l==o.length-1){let e=o[l].split("-"),t=o[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}else{let e=o[l].split("-"),t=o[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}}return a}},{funName:"YJSYMD",funDesc:"水银密度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0]+"";return a="8"==n||"8.0"==n?"13.58":"10"==n||"10.0"==n||"12"==n||"12.0"==n?"13.57":"14"==n||"14.0"==n||"16"==n||"16.0"==n?"13.56":"18"==n||"18.0"==n||"20"==n||"20.0"==n?"13.55":"22"==n||"22.0"==n||"24"==n||"24.0"==n?"13.54":"26"==n||"26.0"==n||"28"==n||"28.0"==n?"13.53":"30"==n||"30.0"==n||"32"==n||"32.0"==n?"13.52":"34"==n||"34.0"==n?"13.51":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y("8","30","13.58","13.52",n),-2),a}},{funName:"YJKQND",funDesc:"空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"/"==t.allCellVals[0])return"/";let a,n=new Array("8-17.49","9-17.54","10-17.59","11-17.64","12-17.68","13-17.73","14-17.78","15-17.83","16-17.88","17-17.93","18-17.98","19-18.03","20-18.08","21-18.13","22-18.18","23-18.23","24-18.28","25-18.32","26-18.37","27-18.42","28-18.47","29-18.52","30-18.57","31-18.62","32-18.67","33-18.72","34-18.76"),o=t.allCellVals[0]+"";for(let e=0;e<n.length;e++){let l=n[e].split("-");o==l[0]&&(a=l[1])}if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<n.length;t++){e==n[t].split("-")[0]&&(l=t)}if(l==n.length-1){let e=n[l].split("-"),t=n[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-2)}else{let e=n[l].split("-"),t=n[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-2)}}return a}},{funName:"YJSBBZCA",funDesc:"3倍标准差方法剔除特异值:平均值(YJSBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+3*y*1,l=1*o-3*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJSBBZCS",funDesc:"3倍标准差方法剔除特异值:标准差(YJSBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+3*y*1,l=1*o-3*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t),y=FormulaUtils.commFun.GetS(t)}return y}},{funName:"YJTWL",funDesc:"计算混凝土抗弯拉强度",funDefaultVal:null,funParams:[{name:"断裂面1",repeatable:!1,optional:!1},{name:"断裂面2",repeatable:!1,optional:!1},{name:"断裂面3",repeatable:!1,optional:!1},{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[3])||!FormulaUtils.commFun.isNumber(t.allCellVals[4])||!FormulaUtils.commFun.isNumber(t.allCellVals[5]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=t.allCellVals[0],o=t.allCellVals[1],y=t.allCellVals[2],r=a[0],x=a[1],s=a[2],i="/",u=a;if(u.sort(function(e,l){return e-l}),"加荷点外"==n||"加荷点外"==o||"加荷点外"==y){if("加荷点外"==n&&"加荷点内"==o&&"加荷点内"==y){let e=FormulaUtils.commFun.getMin([x,s]);i=Math.abs(x-s)<=.15*e?FormulaUtils.commFun.getAverage([x,s]):"无效"}if("加荷点内"==n&&"加荷点外"==o&&"加荷点内"==y){let e=FormulaUtils.commFun.getMin([r,s]);i=Math.abs(r-s)<=.15*e?FormulaUtils.commFun.getAverage([r,s]):"无效"}if("加荷点内"==n&&"加荷点内"==o&&"加荷点外"==y){let e=FormulaUtils.commFun.getMin([x,r]);i=Math.abs(x-r)<=.15*e?FormulaUtils.commFun.getAverage([x,r]):"无效"}("加荷点外"==n&&"加荷点外"==o&&"加荷点内"==y||"加荷点内"==n&&"加荷点外"==o&&"加荷点外"==y||"加荷点外"==n&&"加荷点内"==o&&"加荷点外"==y)&&(i="无效")}else if("加荷点内"==n||"加荷点内"==o||"加荷点内"==y){let e=FormulaUtils.commFun.getMax([r,x,s]),l=FormulaUtils.commFun.getMin([r,x,s]);i=Math.abs(e-u[1])>.15*u[1]&&Math.abs(l-u[1])>.15*u[1]?"无效":Math.abs(e-u[1])>.15*u[1]||Math.abs(l-u[1])>.15*u[1]?u[1]:FormulaUtils.commFun.getAverage([r,x,s])}return i}},{funName:"YJHJGJPD",funDesc:"焊接钢筋结构判定(YJHJGJPD)",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2])||!FormulaUtils.commFun.isNumber(t.allCellVals[3]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[1],t.allCellVals[2],t.allCellVals[3]]),n=t.allCellVals[0],o=a[0],y=a[1],r=a[2],x=t.allCellVals[4],s=t.allCellVals[5],i=t.allCellVals[6],u="",m="";m="HRB335"==n||"HRB335E"==n?"≥455":"R235"==n?"≥370":"Q235"==n?"≥410":"HRB400"==n||"HRB400E"==n?"≥540":"HPB300"==n?"≥420":"HRB500"==n||"HRBF500"==n||"HRB500E"==n||"HRBF500E"==n?"≥630":"HRB600"==n?"≥730":"/",m=1*m.replace("≥","");let c=1*o,h=1*y,p=1*r;return u="/"!=x&&"/"!=s&&"/"!=i?c>=m&&h>=m&&p>=m?"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈脆性断裂"!=i||"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=x?"合格":("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==i||"断于焊缝,呈延性断裂"==i||"断于热影响区,呈延性断裂"==i)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于钢筋母材,呈脆性断裂"==s||"断于焊缝,呈延性断裂"==s||"断于热影响区,呈延性断裂"==s)&&("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==x||"断于焊缝,呈延性断裂"==x||"断于热影响区,呈延性断裂"==x)?"无效":"合格":c>=m&&h>=m&&p<m?"断于热影响区,呈延性断裂"==i?"无效":"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"!=i?"复检":("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=i)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&p>=m&&h<m?"断于热影响区,呈延性断裂"==s?"无效":"断于钢筋母材,呈延性断裂"==x&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=s?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=s)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":h>=m&&p>=m&&c<m?"断于热影响区,呈延性断裂"==x?"无效":"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=x?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=x)&&("断于焊缝,呈脆性断裂"!=x&&"断于热影响区,呈脆性断裂"!=x||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&h<m&&p<m||h>=m&&c<m&&p<m||p>=m&&h<m&&c<m||c<m&&h<m&&p<m?"不合格":"无效":"/",u}},{funName:"YJYSXHP",funDesc:"液塑限:HP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a,n,o=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),y=t.allCellVals[0],r=t.allCellVals[1],x=o[0],s=o[1],i=o[2],u=o[3],m=o[4],c=o[5],h="/",p=20;"76"!=y&&76!=y||(p=17);let f,d,g=new Array,b=new Array,C=[x,s,i],S=[u,m,c];for(let e=0;e<C.length;e++)a=1*S[e],n=1*C[e],""!=a&&"/"!=a&&""!=n&&"/"!=n&&(g[e]=a,b[e]=n);function w(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function V(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(g.sort(function(e,l){return e-l}),b.sort(function(e,l){return e-l}),"细粒土"==r)if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,1),-1);else{a=g[2],n=V(a,1);let e=(1*w(g[2],b[2],g[0],b[0],n)+1*w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,1),-1)}else if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,0),-1);else{a=g[2],n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(a,0),-1);let e=(w(g[2],b[2],g[0],b[0],n)+w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(V(f,0),-1)}return h=d,isNaN(h)&&(h="/"),h}},{funName:"YJYSXWP",funDesc:"液塑限:WP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],o=t.allCellVals[1],y=a[0],r=a[1],x=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[y,r,x],V=[s,i,u];for(let e=0;e<w.length;e++)c=1*V[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function F(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==o)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*F(C[2],S[2],C[0],S[0],h)+1*F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(F(C[2],S[2],C[0],S[0],h)+F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}return f=p,isNaN(f)&&(f="/"),f}},{funName:"YSXWL",funDesc:"液塑限:WL值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],o=t.allCellVals[1],y=a[0],r=a[1],x=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[y,r,x],V=[s,i,u];for(let e=0;e<w.length;e++)c=1*V[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function F(e,l,t,a,n){let o;return o=e-(l-n)*(e-t)/(l-a),o}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==o)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*F(C[2],S[2],C[0],S[0],h)+1*F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=F(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(F(C[2],S[2],C[0],S[0],h)+F(C[2],S[2],C[1],S[1],h))/2;g=F(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}return f=g,isNaN(f)&&(f="/"),f}},{funName:"YJLBBZCA",funDesc:"2倍标准差方法剔除特异值:平均值(YJLBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+2*y*1,l=1*o-2*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJLBBZCS",funDesc:"2倍标准差方法剔除特异值:标准差(YJLBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let o=FormulaUtils.commFun.getAverage(n),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*o+2*y*1,l=1*o-2*y*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);o=FormulaUtils.commFun.getAverage(t),y=FormulaUtils.commFun.GetS(t)}return y}},{funName:"YJKBBZCA",funDesc:"k倍标准差方法剔除特异值:平均值(YJKBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let o=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||""==n[e]||(o[e]=n[e]);let y=FormulaUtils.commFun.getAverage(o);if(0===o.length||o.every(e=>e===o[0]))return y;let r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(o),-2);if(""==a||"/"==a)o.length,y*=1,r*=1;else{let e=1*y+1*a*r*1,l=1*y-1*a*r*1,t=new Array;for(let a=0;a<o.length;a++)o[a]>l&&o[a]<e&&t.push(o[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJKBBZCS",funDesc:"k倍标准差方法剔除特异值:标准差(YJKBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let o=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||(o[e]=n[e]);let y=FormulaUtils.commFun.getAverage(o),r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(o),-2);if(""==a||"/"==a)o.length,y*=1,r*=1;else{let e=1*y+1*a*r*1,l=1*y-1*a*r*1,t=new Array;for(let a=0;a<o.length;a++)o[a]>l&&o[a]<e&&t.push(o[a]);y=FormulaUtils.commFun.getAverage(t),r=FormulaUtils.commFun.GetS(t)}return r}},{funName:"YJKBBZCC",funDesc:"被剔除的特异值点数:YJKBBZCC",funDefaultVal:null,funParams:[{name:"弯沉左侧和右侧的数值范围",repeatable:!1,optional:!1},{name:"舍弃值的倍数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n,o=FormulaUtils.commFun.convertToInt(a),y=t.allCellVals[t.allCellVals.length-1],r=new Array;for(let e=0;e<o.length;e++)isNaN(o[e])||"/"==o[e]||(r[e]=o[e]);let x=FormulaUtils.commFun.getAverage(r),s=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(r),-2);if(""==y||"/"==y)n=r.length;else{let e=1*x+1*y*s*1,l=1*x-1*y*s*1,t=new Array;for(let a=0;a<r.length;a++)r[a]>l&&r[a]<e&&t.push(r[a]);n=t.length}return n}},{funName:"YJHTJD",funDesc:"回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试方向",repeatable:!1,optional:!1},{name:"角度",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a,n,o=t.allCellVals[0],y=t.allCellVals[1],r=t.allCellVals[2];function x(e,l){let t=0;return l>=50?90==e?t=-3.5:60==e?t=-3:45==e?t=-2.5:30==e?t=-1.5:-30==e?t=1:-45==e?t=1.5:-60==e?t=2:-90==e&&(t=2.5):l<=20&&(90==e?t=-6:60==e?t=-5:45==e?t=-4:30==e?t=-3:-30==e?t=2.5:-45==e?t=3:-60==e?t=3.5:-90==e&&(t=4)),t}if("非水平方向"==o){let e=new Array("90","60","45","30","-30","-45","-60","-90");for(let l=0;l<e.length;l++)if(y==e[l]){a=l;break}let l=[{x:20,y:-6},{x:21,y:-5.9},{x:22,y:-5.8},{x:23,y:-5.7},{x:24,y:-5.6},{x:25,y:-5.5},{x:26,y:-5.4},{x:27,y:-5.3},{x:28,y:-5.2},{x:29,y:-5.1},{x:30,y:-5},{x:31,y:-4.9},{x:32,y:-4.8},{x:33,y:-4.7},{x:34,y:-4.6},{x:35,y:-4.5},{x:36,y:-4.4},{x:37,y:-4.3},{x:38,y:-4.2},{x:39,y:-4.1},{x:40,y:-4},{x:41,y:-4},{x:42,y:-3.9},{x:43,y:-3.9},{x:44,y:-3.8},{x:45,y:-3.8},{x:46,y:-3.7},{x:47,y:-3.7},{x:48,y:-3.6},{x:49,y:-3.6},{x:50,y:-3.5}],t=[{x:20,y:-5},{x:21,y:-4.9},{x:22,y:-4.8},{x:23,y:-4.7},{x:24,y:-4.6},{x:25,y:-4.5},{x:26,y:-4.4},{x:27,y:-4.3},{x:28,y:-4.2},{x:29,y:-4.1},{x:30,y:-4},{x:31,y:-4},{x:32,y:-3.9},{x:33,y:-3.9},{x:34,y:-3.8},{x:35,y:-3.8},{x:36,y:-3.7},{x:37,y:-3.7},{x:38,y:-3.6},{x:39,y:-3.6},{x:40,y:-3.5},{x:41,y:-3.5},{x:42,y:-3.4},{x:43,y:-3.4},{x:44,y:-3.3},{x:45,y:-3.3},{x:46,y:-3.2},{x:47,y:-3.2},{x:48,y:-3.1},{x:49,y:-3.1},{x:50,y:-3}],o=[{x:20,y:-4},{x:21,y:-4},{x:22,y:-3.9},{x:23,y:-3.9},{x:24,y:-3.8},{x:25,y:-3.8},{x:26,y:-3.7},{x:27,y:-3.7},{x:28,y:-3.6},{x:29,y:-3.6},{x:30,y:-3.5},{x:31,y:-3.5},{x:32,y:-3.4},{x:33,y:-3.4},{x:34,y:-3.3},{x:35,y:-3.3},{x:36,y:-3.2},{x:37,y:-3.2},{x:38,y:-3.1},{x:39,y:-3.1},{x:40,y:-3},{x:41,y:-3},{x:42,y:-2.9},{x:43,y:-2.9},{x:44,y:-2.8},{x:45,y:-2.8},{x:46,y:-2.7},{x:47,y:-2.7},{x:48,y:-2.6},{x:49,y:-2.6},{x:50,y:-2.5}],s=[{x:20,y:-3},{x:21,y:-3},{x:22,y:-2.9},{x:23,y:-2.9},{x:24,y:-2.8},{x:25,y:-2.8},{x:26,y:-2.7},{x:27,y:-2.7},{x:28,y:-2.6},{x:29,y:-2.6},{x:30,y:-2.5},{x:31,y:-2.5},{x:32,y:-2.4},{x:33,y:-2.4},{x:34,y:-2.3},{x:35,y:-2.3},{x:36,y:-2.2},{x:37,y:-2.2},{x:38,y:-2.1},{x:39,y:-2.1},{x:40,y:-2},{x:41,y:-2},{x:42,y:-1.9},{x:43,y:-1.9},{x:44,y:-1.8},{x:45,y:-1.8},{x:46,y:-1.7},{x:47,y:-1.7},{x:48,y:-1.6},{x:49,y:-1.6},{x:50,y:-1.5}],i=[{x:20,y:2.5},{x:21,y:2.5},{x:22,y:2.4},{x:23,y:2.4},{x:24,y:2.3},{x:25,y:2.3},{x:26,y:2.2},{x:27,y:2.2},{x:28,y:2.1},{x:29,y:2.1},{x:30,y:2},{x:31,y:2},{x:32,y:1.9},{x:33,y:1.9},{x:34,y:1.8},{x:35,y:1.8},{x:36,y:1.7},{x:37,y:1.7},{x:38,y:1.6},{x:39,y:1.6},{x:40,y:1.5},{x:41,y:1.5},{x:42,y:1.4},{x:43,y:1.4},{x:44,y:1.3},{x:45,y:1.3},{x:46,y:1.2},{x:47,y:1.2},{x:48,y:1.1},{x:49,y:1.1},{x:50,y:1}],u=[{x:20,y:3},{x:21,y:3},{x:22,y:2.9},{x:23,y:2.9},{x:24,y:2.8},{x:25,y:2.8},{x:26,y:2.7},{x:27,y:2.7},{x:28,y:2.6},{x:29,y:2.6},{x:30,y:2.5},{x:31,y:2.5},{x:32,y:2.4},{x:33,y:2.4},{x:34,y:2.3},{x:35,y:2.3},{x:36,y:2.2},{x:37,y:2.2},{x:38,y:2.1},{x:39,y:2.1},{x:40,y:2},{x:41,y:2},{x:42,y:1.9},{x:43,y:1.9},{x:44,y:1.8},{x:45,y:1.8},{x:46,y:1.7},{x:47,y:1.7},{x:48,y:1.6},{x:49,y:1.6},{x:50,y:1.5}],m=[{x:20,y:3.5},{x:21,y:3.5},{x:22,y:3.4},{x:23,y:3.4},{x:24,y:3.3},{x:25,y:3.3},{x:26,y:3.2},{x:27,y:3.2},{x:28,y:3.1},{x:29,y:3.1},{x:30,y:3},{x:31,y:3},{x:32,y:2.9},{x:33,y:2.9},{x:34,y:2.8},{x:35,y:2.8},{x:36,y:2.7},{x:37,y:2.7},{x:38,y:2.6},{x:39,y:2.6},{x:40,y:2.5},{x:41,y:2.5},{x:42,y:2.4},{x:43,y:2.4},{x:44,y:2.3},{x:45,y:2.3},{x:46,y:2.2},{x:47,y:2.2},{x:48,y:2.1},{x:49,y:2.1},{x:50,y:2}],c=[{x:20,y:4},{x:21,y:4},{x:22,y:3.9},{x:23,y:3.9},{x:24,y:3.8},{x:25,y:3.8},{x:26,y:3.7},{x:27,y:3.7},{x:28,y:3.6},{x:29,y:3.6},{x:30,y:3.5},{x:31,y:3.5},{x:32,y:3.4},{x:33,y:3.4},{x:34,y:3.3},{x:35,y:3.3},{x:36,y:3.2},{x:37,y:3.2},{x:38,y:3.1},{x:39,y:3.1},{x:40,y:3},{x:41,y:3},{x:42,y:2.9},{x:43,y:2.9},{x:44,y:2.8},{x:45,y:2.8},{x:46,y:2.7},{x:47,y:2.7},{x:48,y:2.6},{x:49,y:2.6},{x:50,y:2.5}],h=new Array;if(""==a&&0!=a||"0"==y){let e,l,t=40,a=50;1*y>0?(e=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-2,y),l=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-1.5,y),n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t,a,e,l,r),-1)):n="0.0",(r>=50||r<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x(y,r),-1))}else{"90"==y?h=l:"60"==y?h=t:"45"==y?h=o:"30"==y?h=s:"-30"==y?h=i:"-45"==y?h=u:"-60"==y?h=m:"-90"==y&&(h=c);let e=-1;for(let l=0;l<h.length;l++){if(1*h[0].x>r){e=1;break}if(1*h[l].x>r){e=l;break}if(1*h[h.length-1].x<r){e=h.length-1;break}if(r==h[l].x){n=h[l].y;break}}if(-1!=e){let l=h[e-1].x,t=h[e-1].y,a=h[e].x,o=h[e].y;n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(l,a,t,o,r),-1)}(r>=50||r<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x(y,r),-1))}}else n="/";return n}},{funName:"YJHTJZM",funDesc:"回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a,n=t.allCellVals[0],o=Number(t.allCellVals[1]);if("表面"==n){let e=new Array;e=["20-2.5","21-2.4","22-2.3","23-2.2","24-2.1","25-2.0","26-1.9","27-1.8","28-1.7","29-1.6","30-1.5","31-1.4","32-1.3","33-1.2","34-1.1","35-1.0","36-0.9","37-0.8","38-0.7","39-0.6","40-0.5","41-0.4","42-0.3","43-0.2","44-0.1","45-0","46-0","47-0","48-0","49-0","50-0"];for(let l=1;l<11;l++)if(1*o>50)a="0";else if(1*o<20)a="2.5";else{o=Math.round(o);for(let l=0;l<e.length;l++){let t=e[l].split("-");o==t[0]&&(a=t[1])}}}else if("底面"==n){let e=new Array;e=["20-3.0","21-2.9","22-2.8","23-2.7","24-2.6","25-2.5","26-2.4","27-2.3","28-2.2","29-2.1","30-2.0","31-1.9","32-1.8","33-1.7","34-1.6","35-1.5","36-1.4","37-1.3","38-1.2","39-1.1","40-1.0","41-0.9","42-0.8","43-0.7","44-0.6","45-0.5","46-0.4","47-0.3","48-0.2","49-0.1","50-0"];for(let l=1;l<11;l++)if(1*o>50)a="0";else if(1*o<20)a="3.0";else{o=Math.round(o);for(let l=0;l<e.length;l++){let t=e[l].split("-");o==t[0]&&(a=-1*t[1])}}}return a}},{funName:"YJTKLZC",funDesc:"土的d60、d30、d10 计算)",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<25)return"";let a,n,o=t.allCellVals[0],y=t.allCellVals[1],r=t.allCellVals[2],x=t.allCellVals[3],s=t.allCellVals[4],u=t.allCellVals[5],m=t.allCellVals[6],c=t.allCellVals[7],h=t.allCellVals[8],p=t.allCellVals[9],f=t.allCellVals[10],d=t.allCellVals[11],g=t.allCellVals[12],b=t.allCellVals[13],C=t.allCellVals[14],S=t.allCellVals[15],w=t.allCellVals[16],V=t.allCellVals[17],F=t.allCellVals[18],E=t.allCellVals[19],N=t.allCellVals[20],A=t.allCellVals[21],v=t.allCellVals[22],D=t.allCellVals[23],U=t.allCellVals[24],J=[o,y,r,x,s,u,m,c,h,p,f,d],k=[g,b,C,S,w,V,F,E,N,A,v,D],O=new Array,M=new Array,L=0;for(let e=0;e<=11;e++)n=k[e],"/"==n||""==n||isNaN(n)||(0==n||1*n>0)&&(O[L]=n,-1!=J[e].indexOf("底")?M[L]="0.001":M[L]=J[e],L++);if(L<3)return;let j=0;for(i=0;i<O.length&&O[i]>=U;i++)j++;if(0==j)return;let z=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};var I;return z.x1=O[j-1],z.x2=O[j],z.y1=M[j-1],z.y2=M[j],z.x=U,a=1*(I=z).y1-(1*I.x1-1*I.x)*(1*I.y1-1*I.y2)/(1*I.x1-1*I.x2),a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(a,-1),a}},{funName:"YJJGX",funDesc:"集料坚固性公式",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"质量百分率数据区域",repeatable:!1,optional:!1},{name:"试验前烘干质量数据区域",repeatable:!1,optional:!1},{name:"试验后烘干质量数据区域",repeatable:!1,optional:!1},{name:"质量损失百分率数据区域",repeatable:!1,optional:!1},{name:"序号(从1开始)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],o=t.allCellValsEw[2],y=t.allCellValsEw[3],r=Number(t.allCellValsEw[4])-1,x="";for(let e=0;e<n.length;e++){if(!(parseFloat(a[r])<5)){x=isNaN(n[r])||isNaN(o[r])?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((parseFloat(n[r])-parseFloat(o[r]))/parseFloat(n[r])*100,-1);break}{let e=r-1,l=0,t=r+1,n=0;for(;e>=0&&parseFloat(a[e])<5;)e--;for(;t<=a.length&&parseFloat(a[t])<5;)t++;if(e>=0&&(l=parseFloat(y[e])),t<a.length&&(n=parseFloat(y[t])),l&&n){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((l+n)/2,-1);break}if(l){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(l,-1);break}if(n){x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n,-1);break}}}return x}},{funName:"YJNC",funDesc:"内插值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数据区域Xn",repeatable:!1,optional:!1},{name:"数据区域Yn",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)可以为固定值 也可以为填入值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<3)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellValsEw[0].filter(e=>FormulaUtils.commFun.isNumber(e))),n=FormulaUtils.commFun.convertToInt(t.allCellValsEw[1].filter(e=>FormulaUtils.commFun.isNumber(e))),o=t.allCellValsEw[2];o=Array.isArray(o)&&o.length>0?Number(o[0]):Number(o);let y=[],r=[];a.forEach((e,l)=>{e&&0!=e&&(y.push(e),r.push(n[l]))}),a=y,n=r;let x=a,s=n,i=o;var u,m,c=new Array,h=new Array,p=0;i*=1;for(var f=0;f<=s.length;f++)m=s[f],isNaN(m)||(0==m||1*m>0)&&(h[p]=m,c[p]=x[f],p++);if(p<3)return"/";var d=0;if(c[0]>i){for(f=0;f<c.length&&c[f]>=i;f++)d++;if(0==d)return"/"}else if(c[0]<i){for(f=0;f<c.length&&c[f]<=i;f++)d++;if(0==d)return"/"}var g,b=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};return b.x1=c[d-1],b.x2=c[d],b.y1=h[d-1],b.y2=h[d],b.x=i,d==c.length?(b.x1=c[d-2],b.x2=c[d-1],b.y1=h[d-2],b.y2=h[d-1],b.x=i):0==d&&(b.x1=c[d],b.x2=c[d+1],b.y1=h[d],b.y2=h[d+1],b.x=i),u=b.y1==i?b.x1:1*(g=b).y1-(1*g.x1-1*g.x)*(1*g.y1-1*g.y2)/(1*g.x1-1*g.x2),isNaN(u)?"/":u}},{funName:"YJMDJWDJZ",funDesc:"土密度计温度校正查表",funDefaultVal:null,funParams:[{name:"密度计种类",repeatable:!1,optional:!1},{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2||"string"==typeof t.allCellVals[1]&&(0==t.allCellVals[1].trim().length||"/"==t.allCellVals[1]))return"/";let a,n=t.allCellVals[0],o=t.allCellVals[1],y=new Array;if(y[0]=["10.0","-2.0","-0.0012"],y[1]=["10.5","-1.9","-0.0012"],y[2]=["11.0","-1.9","-0.0012"],y[3]=["11.5","-1.8","-0.0011"],y[4]=["12.0","-1.8","-0.0011"],y[5]=["12.5","-1.7","-0.0010"],y[6]=["13.0","-1.6","-0.0010"],y[7]=["13.5","-1.5","-0.0009"],y[8]=["14.0","-1.4","-0.0009"],y[9]=["14.5","-1.3","-0.0008"],y[10]=["15.0","-1.2","-0.0008"],y[11]=["15.5","-1.1","-0.0007"],y[12]=["16.0","-1.0","-0.0006"],y[13]=["16.5","-0.9","-0.0006"],y[14]=["17.0","-0.8","-0.0005"],y[15]=["17.5","-0.7","-0.0004"],y[16]=["18.0","-0.5","-0.0003"],y[17]=["18.5","-0.4","-0.0003"],y[18]=["19.0","-0.3","-0.0002"],y[19]=["19.5","-0.1","-0.0001"],y[20]=["20.0","-0.0","-0.0000"],y[21]=["20.2","0.0","+0.0000"],y[22]=["20.5","+0.1","+0.0001"],y[23]=["21.0","+0.3","+0.0002"],y[24]=["21.5","+0.5","+0.0003"],y[25]=["22.0","+0.6","+0.0004"],y[26]=["22.5","+0.8","+0.0005"],y[27]=["23.0","+0.9","+0.0006"],y[28]=["23.5","+1.1","+0.0007"],y[29]=["24.0","+1.3","+0.0008"],y[30]=["24.5","+1.5","+0.0009"],y[31]=["25.0","+1.7","+0.0010"],y[32]=["25.5","+1.7","+0.0011"],y[33]=["26.0","+2.1","+0.0013"],y[34]=["26.5","+2.2","+0.0014"],y[35]=["27.0","+2.5","+0.0015"],y[36]=["27.5","+2.6","+0.0016"],y[37]=["28.0","+2.9","+0.0018"],y[38]=["28.5","+3.1","+0.0019"],y[39]=["29.0","+3.3","+0.0021"],y[40]=["29.5","+3.5","+0.0022"],y[41]=["30.0","+3.7","+0.0023"],""!=o&&"/"!=o&&"甲种"==n){for(let e=0;e<y.length;e++)if(1*y[e][0]==o)return a=y[e][1],a;if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<y.length;t++)e==y[t][0].substring(0,o.indexOf("."))&&(l=t);if(l==y.length-1){let e=y[l],t=y[l-1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1)}else{let e=y[l],t=y[l+1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],o),-1)}}}if(""!=o&&"/"!=o&&"乙种"==n){for(let e=0;e<y.length;e++)if(1*y[e][0]==o)return a=y[e][2],a;if(o.length>2){let e=o.substring(0,o.indexOf(".")),l=0;for(let t=0;t<y.length;t++)e==y[t][0].substring(0,o.indexOf("."))&&(l=t);if(l==y.length-1){let e=y[l],t=y[l-1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4)}else{let e=y[l],t=y[l+1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=o<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],o),-4)}}}return a}},{funName:"YJSDLNZXS",funDesc:"水的动力粘滞系数查表",funDefaultVal:null,funParams:[{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0]))return"/";let a,n=t.allCellVals[0],o=new Array;o[0]=["10.0","1.310"],o[1]=["10.5","1.292"],o[2]=["11.0","1.274"],o[3]=["11.5","1.256"],o[4]=["12.0","1.239"],o[5]=["12.5","1.223"],o[6]=["13.0","1.206"],o[7]=["13.5","1.190"],o[8]=["14.0","1.175"],o[9]=["14.5","1.160"],o[10]=["15.0","1.144"],o[11]=["15.5","1.130"],o[12]=["16.0","1.115"],o[13]=["16.5","1.101"],o[14]=["17.0","1.088"],o[15]=["17.5","1.074"],o[16]=["18.0","1.061"],o[17]=["18.5","1.048"],o[18]=["19.0","1.035"],o[19]=["19.5","1.022"],o[20]=["20.0","1.010"],o[21]=["20.5","0.998"],o[22]=["21.0","0.986"],o[23]=["21.5","0.974"],o[24]=["22.0","0.963"],o[25]=["22.5","0.952"],o[26]=["23.0","0.941"],o[27]=["23.5","0.930"],o[28]=["24.0","0.920"],o[29]=["24.5","0.909"],o[30]=["25.0","0.899"],o[31]=["25.5","0.889"],o[32]=["26.0","0.879"],o[33]=["26.5","0.869"],o[34]=["27.0","0.860"],o[35]=["27.5","0.850"],o[36]=["28.0","0.841"],o[37]=["28.5","0.832"],o[38]=["29.0","0.823"],o[39]=["29.5","0.814"];for(let e=1;e<=11;e++)if(""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1]);return a}},{funName:"YJK1",funDesc:"混凝土芯样强度K1查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],o=new Array;if(o[0]=["10","1.01730"],o[1]=["11","1.04127"],o[2]=["12","1.06247"],o[3]=["13","1.08141"],o[4]=["14","1.09848"],o[5]=["15","1.11394"],o[6]=["16","1.12812"],o[7]=["17","1.14112"],o[8]=["18","1.15311"],o[9]=["19","1.16423"],o[10]=["20","1.17458"],o[11]=["21","1.18425"],o[12]=["22","1.9330"],o[13]=["23","1.20181"],o[14]=["24","1.20982"],o[15]=["25","1.21739"],o[16]=["26","1.22455"],o[17]=["27","1.23135"],o[18]=["28","1.23780"],o[19]=["29","1.24395"],o[20]=["30","1.24981"],o[21]=["31","1.25540"],o[22]=["32","1.26075"],o[23]=["33","1.26588"],o[24]=["34","1.27079"],o[25]=["35","1.27079"],o[26]=["36","1.28004"],o[27]=["37","1.28441"],o[28]=["38","1.28861"],o[29]=["39","1.29266"],o[30]=["40","1.29657"],o[31]=["41","1.30035"],o[32]=["42","1.30399"],o[33]=["43","1.30752"],o[34]=["44","1.31094"],o[35]=["45","1.31425"],o[36]=["46","1.31746"],o[37]=["47","1.32058"],o[38]=["48","1.32360"],o[39]=["49","1.32653"],o[40]=["50","1.32939"],o[41]=["60","1.35412"],o[42]=["70","1.37364"],o[43]=["80","1.38959"],o[44]=["90","1.40294"],o[45]=["100","1.41433"],o[46]=["110","1.42421"],o[47]=["120","1.43289"],o[48]=["130","1.44060"],o[49]=["140","1.44750"],o[50]=["150","1.45372"],o[51]=["160","1.45938"],o[52]=["170","1.46456"],o[53]=["180","1.46931"],o[54]=["190","1.47370"],o[55]=["200","1.47777"],o[56]=["250","1.49443"],o[57]=["300","1.50687"],o[58]=["400","1.52453"],o[59]=["500","1.53671"],""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1]);return a}},{funName:"YJK2",funDesc:"混凝土芯样强度K2查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1},{name:"直径",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],o=t.allCellVals[1],y=new Array;if(y[0]=["10","2.91096","2.56837"],y[1]=["11","2.81499","2.50262"],y[2]=["12","2.73634","2.44825"],y[3]=["13","2.67050","2.40240"],y[4]=["14","2.61443","2.36311"],y[5]=["15","2.56600","2.32898"],y[6]=["16","2.52366","2.29900"],y[7]=["17","2.48626","2.27240"],y[8]=["18","2.45295","2.24862"],y[9]=["19","2.42304","2.22720"],y[10]=["20","2.39600","2.20778"],y[11]=["21","2.37142","2.19007"],y[12]=["22","2.34896","2.17385"],y[13]=["23","2.32832","2.15891"],y[14]=["24","2.30929","2.14510"],y[15]=["25","2.29167","2.13229"],y[16]=["26","2.27530","2.12037"],y[17]=["27","2.26005","2.10924"],y[18]=["28","2.24578","2.09881"],y[19]=["29","2.23241","2.08903"],y[20]=["30","2.21984","2.07982"],y[21]=["31","2.20800","2.07113"],y[22]=["32","2.19682","2.06292"],y[23]=["33","2.18625","2.05514"],y[24]=["34","2.17623","2.04776"],y[25]=["35","2.16672","2.04075"],y[26]=["36","2.15768","2.03407"],y[27]=["37","2.14906","2.02771"],y[28]=["38","2.14085","2.02164"],y[29]=["39","2.13300","2.01583"],y[30]=["40","2.12549","2.01027"],y[31]=["41","2.11831","2.00494"],y[32]=["42","2.11142","1.99983"],y[33]=["43","2.10481","1.99493"],y[34]=["44","2.09846","1.99021"],y[35]=["45","2.09235","1.98567"],y[36]=["46","2.08648","1.98130"],y[37]=["47","2.08081","1.97708"],y[38]=["48","2.07535","1.97302"],y[39]=["49","2.07008","1.96909"],y[40]=["50","2.06499","1.96529"],y[41]=["60","2.02216","1.93327"],y[42]=["70","1.98987","1.90903"],y[43]=["80","1.96444","1.87428"],y[44]=["90","1.94376","1.87428"],y[45]=["100","1.92654","1.86125"],y[46]=["110","1.91191","1.85017"],y[47]=["120","1.89929","1.84059"],y[48]=["130","1.88827","1.83222"],y[49]=["140","1.87852","1.82481"],y[50]=["150","1.86984","1.81820"],y[51]=["160","1.86203","1.81225"],y[52]=["170","1.85497","1.80686"],y[53]=["180","1.84854","1.80196"],y[54]=["190","1.84265","1.79746"],y[55]=["200","1.83724","1.79332"],y[56]=["250","1.81547","1.77667"],y[57]=["300","1.79964","1.76454"],y[58]=["400","1.77776","1.74773"],y[59]=["500","1.76305","1.73641"],"70"==o){if(""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1])}else if("100"==o&&""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][2]);return a}},{funName:"YJCSHTJZM",funDesc:"超声回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=new Array("20.0","25.0","30.0","35.0","40.0","45.0","50.0"),y=new Array("2.5","2.0","1.5","1.0","0.5","0","0"),r=new Array("3.0","2.5","2.0","1.5","1.0","0.5","0");1*n>50?n="50.0":1*n<20&&(n="20.0");let x="";if("/"!=n){if("侧面"==a)x="0.0";else if("顶面"==a){let e,l;l=!1;for(let t=0;t<o.length;t++)n!=o[t]||(e=y[t],l=!0);if(0==l)for(let l=0;l<y.length;l++)n>o[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(o[l],o[l+1],y[l],y[l+1],n));x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}else if("底面"==a){let e,l;l=!1;for(let t=0;t<r.length;t++)n!=o[t]||(e=r[t],l=!0);if(0==l)for(let l=0;l<r.length;l++)n>o[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(o[l],o[l+1],-r[l],-r[l+1],n));x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}return x}}},{funName:"YJCSHTQD",funDesc:"超声回弹强度换算计算",funDefaultVal:null,funParams:[{name:"fccu,i",repeatable:!1,optional:!1},{name:"υai^",repeatable:!1,optional:!1},{name:"Rai^",repeatable:!1,optional:!1},{name:"声速值平均值(km/s)",repeatable:!1,optional:!1},{name:"超声测试面修正系数β",repeatable:!1,optional:!1},{name:"回弹平均值",repeatable:!1,optional:!1},{name:"浇筑面修正值",repeatable:!1,optional:!1},{name:"角度修正值",repeatable:!1,optional:!1},{name:"平测声速修正系数λ",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<9)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m="";if("/"!=x&&""!=x&&"/"!=y&&""!=y){let e=1*y*r*u;(""==u||"/"==u||isNaN(u))&&(e=1*y*r);let l=1*x+1*i+1*s,t=1*a*Math.pow(e,n)*Math.pow(l,o);m=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(t,-1)}return m}},{funName:"YJCSHTJD",funDesc:"超声回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试角度",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o="";n>50?n="50.0":n<20&&(n="20.0");let y=new Array,r=new Array;if(a>0&&n.length>=2){y=new Array("30","45","60","90");let e=0;r[0]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),r[1]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35-3.3","40.0-3.0","45.0-2.8","50.0-2.5"),r[2]=new Array("20.0-5.0","25.0-4.5","30.0-4.0","35-3.8","40.0-3.5","45.0-3.3","50.0-3.0"),r[3]=new Array("20.0-6.0","25.0-5.5","30.0-5.0","35-4.5","40.0-4.0","45.0-3.8","50.0-3.5");for(let l=0;l<y.length;l++)y[l]==a&&(e=l);for(let l=0;l<r[e].length;l++){let t=new String;if(t=r[e][l],t=t.split("-"),t[0]==n)o=-t[1];else{let a;if(n>t[0]){let t,y;a=l,t=r[e][a],y=r[e][a+1],t=t.split("-"),y=y.split("-"),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],y[0],-t[1],-y[1],n),-1)}}}}else if(a<0&&n.length>=2){y=new Array("-30","-45","-60","-90");let e=0;r[0]=new Array("20.0-2.5","25.0-2.3","30.0-2.0","35.0-1.8","40.0-1.5","45.0-1.3","50.0-1.0"),r[1]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35.0-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),r[2]=new Array("20.0-3.5","25.0-3.3","30.0-3.0","35.0-2.8","40.0-2.5","45.0-2.3","50.0-2.0"),r[3]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35.0-3.3","40.0-3.0","45.0-2.8","50.0-2.5");for(let l=0;l<y.length;l++)y[l]==a&&(e=l);for(let l=0;l<r[e].length;l++){let t=new String;if(t=r[e][l],t=t.split("-"),t[0]==n)o=t[1];else{let a;if(Math.abs(n)>Math.abs(t[0])){let t,y;a=l,t=r[e][a],y=r[e][a+1],t=t.split("-"),y=y.split("-"),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],y[0],t[1],y[1],n),-1)}}}}return"0"==a&&(o="0"),isNaN(o)||""==o?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(o,-1)}},{funName:"YJTDM",funDesc:"土样定名及代号",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"液限",repeatable:!1,optional:!1},{name:"塑限",repeatable:!1,optional:!1},{name:"不均匀系数",repeatable:!1,optional:!1},{name:"曲率系数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<28)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12],f=t.allCellVals[13],d=t.allCellVals[14],g=t.allCellVals[15],b=t.allCellVals[16],C=t.allCellVals[17],S=t.allCellVals[18],w=t.allCellVals[19],V=t.allCellVals[20],F=t.allCellVals[21],E=t.allCellVals[22],N=t.allCellVals[23],A=t.allCellVals[24],v=t.allCellVals[25],D=t.allCellVals[26],U=t.allCellVals[27],J=[a+"-"+n,o+"-"+y,r+"-"+x,s+"-"+i,u+"-"+m,c+"-"+h,p+"-"+f,d+"-"+g,b+"-"+C,S+"-"+w,V+"-"+F,E+"-"+N];function k(e,l){let t="0";for(let a=0;a<J.length;a++){let n=J[a].split("-");1*n[0]==1*e&&("Y"==l?t=100-n[1]:"Z"==l&&(t=n[1]))}return t}let O="/";return 1*k("60","Y")>15?1*k("60","Y")>75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石B":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石Cb"):1*k("60","Y")>50&&1*k("60","Y")<=75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石夹土BSl":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石夹土CbSl"):1*k("60","Y")>15&&1*k("60","Y")<=50&&(1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石质土SlB":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石质土SlCb")):1*k("60","Y")<=15&&(1*k("0.075","Y")>50?1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))>0?k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砾GW":"级配不良砾GP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砾GF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=v<.73*(1*A-20)?"粉土质砾GM":"黏土质砾GC"):1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))<=0&&(k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砂SW":"级配不良砂SP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砂SF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=v<.73*(1*A-20)?"粉土质砂SM":"黏土质砂SC")):1*k("0.075","Y")<=50&&(1*k("0.075","Y")-1*k("60","Y")<=25?v>=.73*(1*A-20)?1*A>=50?O="高液限黏土CH":1*A<50&&v>7&&(O="低液限黏土CL"):1*A>=50?O="高液限粉土MH":1*A<50&&v<4&&(O="低液限粉土ML"):1*(1*k("0.075","Y")-1*k("60","Y"))>25&&1*(1*k("0.075","Y")-1*k("60","Y"))<=50&&(1*k("2","Y")-1*k("60","Y")-(1*k("0.075","Y")-1*k("2","Y"))>=0?v>=.73*(1*A-20)?A>=50?O="含砾高液限黏土CHG":A<50&&v>7&&(O="含砾低液限黏土CLG"):A>=50?O="含砾高液限粉土MHG":A<50&&v<4&&(O="含砾低液限粉土MLG"):v>=.73*(1*A-20)?A>=50?O="含砂高液限黏土CHS":A<50&&v>7&&(O="含砂低液限黏土CLS"):A>=50?O="含砂高液限粉土MHS":A<50&&v<4&&(O="含砂低液限粉土MLS")))),O}},{funName:"YJHTQD",funDesc:"回弹强度换算查表",funDefaultVal:null,funParams:[{name:"浇筑方式",repeatable:!1,optional:!1},{name:"修正后回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];return FormulaUtilsOther.YJHTQD(FormulaUtils.commFun,a,n,o)}},{funName:"DJCZL",funDesc:"地基承载力计算",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"N63.5",repeatable:!1,optional:!1},{name:"修正系数",repeatable:!1,optional:!1},{name:"机械修正/水位修正",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<4)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3];var r,x=0;return"/"!=n&&""!=n||(n="1"),x="水位修正"==y?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*o*1.1+1,1):"机械修正"==y?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*o,1):n,"中砂-砂砾土"==a?x<3?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x,1):x>=3&&x<=5?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+30,1):x>5&&(r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x-20,1)):x<3?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(140/3*x,1):x>=3&&x<=5?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+50,1):x>5&&x<=12?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*x,1):x>12&&x<=22?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*x+120,1):x>22&&x<=24?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(25*x+230,1):x>24&&x<=26?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(20*x+350,1):x>26&&x<=30?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(15*x+480,1):x>30&&x<=35?r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(8*x+690,1):x>35&&(r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(6*x+760,1)),r}},{funName:"YJLJJSYQ",funDesc:"钢筋机械连接技术要求",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头等级",repeatable:!1,optional:!1},{name:"拉断性状",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];var y;if("I级"==n){"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥594":"≥540":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥693":"≥630":"HRB600"==a&&(y="断于套筒"==o||"套筒纵向开裂"==o||"钢筋从套筒中拔出"==o||"其它链接组件破坏"==o?"≥803":"≥730")}else"II级"==n?"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="≥540":"HRB335"==a||"HRBF335"==a?y="≥455":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="≥630":"HRB600"==a&&(y="≥730"):"III级"==n&&("HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?y="≥500":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?y="≥625":"HRB600"==a&&(y="≥750"));return y}},{funName:"YJLJGJPD",funDesc:"机械连接钢筋结构判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),o=1*o.replace("≥",""),"/"!=y&&"/"!=r&&"/"!=x?y>=a&&r>=n&&x>=o?"合格":y>=a&&r>=n&&x<o||y>=a&&r<n&&x>=o||y<a&&r>=n&&x>=o?"复检":"不合格":"/"}},{funName:"YJLJFJPD",funDesc:"机械连接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"技术要求4",repeatable:!1,optional:!1},{name:"技术要求5",repeatable:!1,optional:!1},{name:"技术要求6",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1},{name:"抗压强度4",repeatable:!1,optional:!1},{name:"抗压强度5",repeatable:!1,optional:!1},{name:"抗压强度6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<12)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),o=1*o.replace("≥",""),y=1*y.replace("≥",""),r=1*r.replace("≥",""),x=1*x.replace("≥",""),isNaN(s)||isNaN(i)||isNaN(u)||isNaN(m)||isNaN(c)||isNaN(h)?"/":s>=a&&i>=n&&u>=o&&m>=y&&c>=r&&h>=x?"合格":"不合格"}},{funName:"YJHJFJPD",funDesc:"焊接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"接头极限强度4",repeatable:!1,optional:!1},{name:"接头极限强度5",repeatable:!1,optional:!1},{name:"接头极限强度6",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1},{name:"断裂形状4",repeatable:!1,optional:!1},{name:"断裂形状5",repeatable:!1,optional:!1},{name:"断裂形状6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<13)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=t.allCellVals[3],r=t.allCellVals[4],x=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12];var f,d=new Array,g=new Array,b=0,C=0,S="/";if("/"!=(f=1*(f="HRB335"==a?"≥455":"R235"==a?"≥370":"Q235"==a?"≥410":"HRB400"==a||"HRB400E"==a?"≥540":"HPB300"==a?"≥420":"HRB500"==a||"HRBF500"==a||"HRB500E"==a||"HRBF500E"==a?"≥630":"/").replace("≥",""))&&"/"!=n&&"/"!=o&&"/"!=y&&"/"!=r&&"/"!=x&&"/"!=s&&"/"!=i&&"/"!=u&&"/"!=m&&"/"!=c&&"/"!=h&&"/"!=p){d.push(n,o,y,r,x,s),g.push(i,u,m,c,h,p);for(var w=0;w<d.length;w++)1*d[w]<f&&b++;for(var V=0;V<g.length;V++)"断于焊缝,呈脆性断裂"!=g[V]&&"断于热影响区,呈脆性断裂"!=g[V]||C++;S=b>0||C>=3?"不合格":"合格"}return S}},{funName:"YJWJLKQND",funDesc:"无机结合料空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,o=new Array("8-17.49","10-17.59","12-17.68","14-17.78","16-17.88","18-17.98","20-18.09","22-18.19","24-18.28","26-18.37","28-18.47","30-18.57","32-18.67","34-18.76"),y=0;y<o.length;y++){a==(s=o[y].split("-"))[0]&&(n=s[1])}if(a.length>0){var r=a.substring(0,a.indexOf(".")),x=0;for(y=0;y<o.length;y++){var s;r==(s=o[y].split("-"))[0]&&(x=y)}if(x==o.length-1){var i=o[x].split("-"),u=o[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}else{i=o[x].split("-"),u=o[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}}return n}},{funName:"YJYSSMD",funDesc:"岩石-水密度公式",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,o=new Array("5-0.9999919","6-0.9999681","7-0.9999295","8-0.9998762","9-0.9998088","10-0.9997277","11-0.9996328","12-0.9995247","13-0.9994040","14-0.9992712","15-0.9991265","16-0.9989701","17-0.9988022","18-0.9986232","19-0.9984331","20-0.9982323","21-0.9980210","22-0.9977993","23-0.9975674","24-0.9973256","25-0.9970739","26-0.9968128","27-0.9965241","28-0.9962623","29-0.9959735","30-0.9956756","31-0.9953692","32-0.9950542","33-0.9947308","34-0.9943991","35-0.9940594"),y=0;y<o.length;y++){if(a==(s=o[y].split("-"))[0]){n=s[1];break}}if(String(a).length>2){var r=parseInt(a),x=0;for(y=0;y<o.length;y++){var s=o[y].split("-");r==Number(s[0])&&(x=y)}if(x==o.length-1){var i=o[x].split("-"),u=o[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}else{i=o[x].split("-"),u=o[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}}return n}},{funName:"YJHTTDZ",funDesc:"混凝土强度推定値公式",funDefaultVal:null,funParams:[{name:"强度换算值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{let a=[];t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{a.push(e)}):a.push(e)});let n=a;var o,y=0,r=new Array,x=new Array,s=new Array;for(let e=0;e<10;e++)""!=n[e]&&"/"!=n[e]&&(r[y]=n[e],1*n[e],y++),(n[e].indexOf("<")>-1||n[e].indexOf(">")>-1)&&x.push(n[e]),-1==n[e].indexOf("<")&&-1==n[e].indexOf(">")&&-1==n[e].indexOf("/")&&s.push(n[e]);return o=1*(o=FormulaUtils.commFun.getAverage(a.filter(e=>FormulaUtils.commFun.isNumber(e))))-1.645*FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(s),-3),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(o,-1),10==r.length?10==x.length?">60.0":x.length>0?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1):o:s.length<1?">60.0":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1)}},{funName:"YJSXS",funDesc:"水温查表",funDefaultVal:null,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0]+"";for(var n=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008"),o=0;o<n.length;o++){a==(x=n[o].split("-"))[0]&&(y=x[1])}if(a.length>2){var y;y=(y=a).substring(0,y.indexOf("."));var r=0;for(o=0;o<n.length;o++){var x;y==(x=n[o].split("-"))[0]&&(r=o)}if(r==n.length-1){var s=n[r].split("-"),i=n[r-1].split("-");y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=n[r].split("-"),i=n[r+1].split("-");y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return y}},{funName:"YJFN635",funDesc:"重型动力触探承载力查表",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"修正后击数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var o;if("中砂、粗砂、砾砂"==a)var y=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008");else y=new Array("3-140","4-170","5-200","6-240","7-280","8-320","9-360","10-400","12-480","14-540","16-600","18-660","20-720","22-780","24-830","26-870","28-900","30-930","35-970","40-1000");for(var r=0;r<y.length;r++){var x=y[r].split("-");n==x[0]&&(o=x[1])}return o}},{funName:"YJLHL",funDesc:"沥青蜡含量",funDefaultVal:null,funParams:[{name:"析出蜡质量1",repeatable:!1,optional:!1},{name:"析出蜡质量2",repeatable:!1,optional:!1},{name:"析出蜡质量3",repeatable:!1,optional:!1},{name:"蜡含量1",repeatable:!1,optional:!1},{name:"蜡含量2",repeatable:!1,optional:!1},{name:"蜡含量3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";var a=[t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]],n=[t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]],o=a.map(e=>+e>=.065&&+e<=.085).map((e,l)=>e?l:-1).filter(e=>e>=0);if(0===o.length)return"重新试验";var y=o.map(e=>+n[e]),r=y.reduce((e,l)=>e+l)/y.length;return FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r,-1)}},{funName:"YJNFX",funDesc:"沥青黏附性",funDefaultVal:null,funParams:[{name:"沥青膜剥落情况",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];return"沥青膜裹覆率接近100%"==a?"5":"沥青膜少部剥落,厚度不均,沥青膜裹覆率不小于90%"==a?"4":"沥青膜局部明显剥落,沥青膜裹覆率为75%~90%"==a?"3":"沥青膜大部分剥落,沥青膜裹覆率为25%~75%"==a?"2":"沥青膜几乎完全剥落,沥青膜裹覆率小于25%"==a?"1":"/"}},{funName:"YJNDCS",funDesc:"沥青黏度常数",funDefaultVal:null,funParams:[{name:"毛细管型号",repeatable:!1,optional:!1},{name:"标管编号",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var o;if("管B"==n)var y=new Array("25-0.2","50-0.8","100-3.2","200-12.8","400-50.0");else if("管C"==n)y=new Array("25-0.1","50-0.4","100-1.6","200-6.4","400-25.0");else if("管D"==n)y=new Array("25-0.07","50-0.3","100-1.0","200-4.0","400-16.0");else if("球B"==n)y=new Array("4-0.0002","5-0.0006","6-0.002","7-0.006","8-0.02","9-0.06");else if("球C"==n)y=new Array("4-0.00006","5-0.0002","6-0.0006","7-0.002","8-0.006","9-0.02");for(var r=0;r<y.length;r++){var x=y[r].split("-");a==x[0]&&(o=x[1])}return o}},{funName:"YJTXHF",funDesc:"沥青弹性恢复率",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2];var y=[a,n,o],r=(1*a+1*n+1*o)/3;if(Math.max(...y)-Math.min(...y)<=.05*r)return r;var x=y.slice().sort((e,l)=>e-l);return 1*x[2]-1*x[1]<=.05*r?(1*x[1]+1*x[2])/2:"/"}},{funName:"YJSZF",funDesc:"沥青四组分FID法",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1},{name:"标准差",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n=t.allCellVals[t.allCellVals.length-1];var o;if(o=FormulaUtils.commFun.getAverage(a),n<=5)return o;a.sort((e,l)=>e-l),a.shift(),a.pop();var y=FormulaUtils.commFun.GetS(a),r=FormulaUtils.commFun.getAverage(a);return o=y<=5?r:"无效"}},{funName:"YJSZFBZC",funDesc:"四组分标准差",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals;var n;return(n=FormulaUtils.commFun.GetS(a))<=5?n:(a.sort((e,l)=>e-l),a.shift(),a.pop(),n=FormulaUtils.commFun.GetS(a))}},{funName:"YJFRAC",funDesc:"根据小数返回分数(1/x)形式的文本(如:1/300、1/478)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"被除数",repeatable:!1,optional:!1},{name:"除数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";const a=t.allCellVals[0],n=t.allCellVals[1],o=preciseCalc(a,n,"div"),y=Math.abs(preciseCalc(n,a,"div"));let r=Math.round(y);r<1&&(r=1);const x=o<0?"-":"";return l.getCell(t.cellObj.row,t.cellObj.col).formatter(`${x}1/${r}`),o}},{funName:"YJDXPD",funDesc:"单项判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"判定范围,格式如:-2,2、-2~2或±2",repeatable:!1,optional:!1},{name:"判定值,如:1",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";try{const e=t.allCellVals[0],l=t.allCellVals[1];if(null==e||null==e||"string"!=typeof e||"number"!=typeof l||isNaN(l))return"/";const a=e.replace(/\s/g,"");let n,o;if(a.includes(",")){const e=a.split(",");if(2!==e.length)return"/";n=parseFloat(e[0]),o=parseFloat(e[1])}else if(a.includes("~")){const e=a.split("~");if(2!==e.length)return"/";n=parseFloat(e[0]),o=parseFloat(e[1])}else{if(!a.includes("±"))return"/";{const e=a.replace("±",""),l=parseFloat(e);if(isNaN(l))return"/";n=-l,o=l}}return isNaN(n)||isNaN(o)?"/":l>=n&&l<=o?"合格":"不合格"}catch(e){return"/"}}},{funName:"YJTEXTJOIN",funDesc:"此函数将多个区域和/或字符串的文本组合起来,并包括你在要组合的各文本值之间指定的分隔符。",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"需要用作判断的数字数组、字符串数组或单值",repeatable:!1,optional:!1},{name:"返回值的数组",repeatable:!1,optional:!1},{name:"比较大小或比较相等的字符串,格式为:“>”、“<”、“>=”、“<=”、“=”、“±”",repeatable:!1,optional:!1},{name:"比较的值,类型为数字类型或字符串类型,如:3或“合格”",repeatable:!1,optional:!1},{name:"返回值的分隔符,默认为:,",repeatable:!1,optional:!1},{name:"是否返回相反的结果(传数字的1或0,0:满足条件的结果、1:相反的结果),默认为:0",repeatable:!1,optional:!1},{name:"是否返回符合或不符合结果的数量(传数字的1或0,0:不返回数量、1:返回数量),默认为:0",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"/";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],o=t.allCellValsEw[2],y=t.allCellValsEw[3],r=t.allCellValsEw[4],x=t.allCellValsEw.length<6?0:t.allCellValsEw[5],s=t.allCellValsEw.length<7?0:t.allCellValsEw[6];try{(null==a||null==a||"string"==typeof a&&0==a.trim().length)&&(a=[]),(null==n||null==n||"string"==typeof n&&0==n.trim().length)&&(n=[]),("number"==typeof a||"string"==typeof a&&a.trim().length>0)&&(a=[a]),"string"==typeof n&&n.trim().length>0&&(n=[n]),Array.isArray(o)&&o.length>0&&(o=o[0]),Array.isArray(y)&&y.length>0&&(y=y[0]),Array.isArray(r)&&r.length>0&&(r=r[0]),Array.isArray(x)&&x.length>0&&(x=x[0]),Array.isArray(s)&&s.length>0&&(s=s[0]),"1"!=x&&"0"!=x||(x=parseInt(x)),0!=x&&1!=x&&(x=0),"1"!=s&&"0"!=s||(s=parseInt(s)),0!=s&&1!=s&&(s=0);const e=n.length>a.length&&1==a.length;if(!Array.isArray(a)||!Array.isArray(n)||"string"!=typeof o||"string"!=typeof r)return"/";if(![">",">","<","<",">=","≥","≧","<=","≤","≦","=","=","±"].includes(o))return"/";const l=a.length>0&&("number"==typeof a[0]||!isNaN(parseFloat(a[0]))),t=[],i=[];for(let r=0;r<n.length;r++){let x=!1;if(l){const l=e?parseFloat(a[0]):parseFloat(a[r]),t=parseFloat(n[r]),s=parseFloat(y);if(isNaN(l)||isNaN(s)&&!e)continue;switch(o){case">":case">":x=e?t>l:l>s;break;case"<":case"<":x=e?t<l:l<s;break;case">=":case"≥":case"≧":x=e?t>=l:l>=s;break;case"<=":case"≤":case"≦":x=e?t<=l:l<=s;break;case"=":case"=":x=e?t===l:l===s;break;case"±":x=t>=l-s&&t<=l+s}}else x=String(a[r])===String(y);x?t.push(r):i.push(r)}const u=(0==x?t:i).map(e=>e>=0&&e<n.length?String(n[e]):"").filter(e=>""!==e&&"/"!=e&&"null"!=e&&null!=e&&null!=e);return 1==s?u.length:u.join(r)}catch(e){return"/"}}},{funName:"YJDLNZXSB",funDesc:"水温修正系数查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";const a=t.allCellVals[0];for(var n="/",o=new Array("18-1.050","18.5-1.038","19-1.025","19.5-1.012","20-1.000","20.5-0.988","21-0.976","21.5-0.965","22-0.953"),y=0;y<o.length;y++){a==(x=o[y].split("-"))[0]&&(n=x[1])}if(a.length>2){n=a;var r=0;for(y=0;y<o.length;y++){var x;n==(x=o[y].split("-"))[0]&&(r=y)}if(r==o.length-1){var s=o[r].split("-"),i=o[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=o[r].split("-"),i=o[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return n}},{funName:"YJWDDLZ",funDesc:"马歇尔稳定度/流值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超过比例,如:0.15、0.2",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<7)return"/";const a=t.allCellValsEw[0][0],n=t.allCellValsEw[1][0],o=t.allCellValsEw[2][0],y=t.allCellValsEw[3][0],r=t.allCellValsEw[4][0],x=t.allCellValsEw[5][0],s=t.allCellValsEw[6];if("number"!=typeof s||isNaN(s))return"/";const i=[parseFloat(a),parseFloat(n),parseFloat(o),parseFloat(y),parseFloat(r),parseFloat(x)];let u=0,m=[];for(let e=0;e<i.length;e++)"number"!=typeof i[e]||isNaN(i[e])?u++:m.push(i[e]);if(u==i.length)return"/";const c=m.reduce((e,l)=>preciseCalc(e,l,"add"),0),h=preciseCalc(c,m.length,"div");if(0===m.filter(e=>preciseCalc(e,h,"sub")>preciseCalc(s,e,"mul")).length)return h;const p=m.filter(e=>preciseCalc(e,h,"sub")<=preciseCalc(s,e,"mul"));if(0===p.length)return"/";const f=p.reduce((e,l)=>preciseCalc(e,l,"add"),0);return preciseCalc(f,p.length,"div")}},{funName:"YJSDXNPD",funDesc:"色度性能判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"技术要求,固定传入的值,格式如:0,0;0,10;10,10;10,0",repeatable:!1,optional:!1},{name:"x试验结果",repeatable:!1,optional:!1},{name:"y试验结果",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],o=t.allCellVals[2],y=a.split(";").map(e=>{const[l,t]=e.split(",").map(Number);return{x:l,y:t}});if(4!==y.length)return"/";const r={x:n,y:o};let x=!1;const s=y.length;function i(e,l,t){const a=(e.y-l.y)*(t.x-l.x)-(e.x-l.x)*(t.y-l.y);if(Math.abs(a)>1e-10)return!1;const n=(e.x-l.x)*(t.x-l.x)+(e.y-l.y)*(t.y-l.y);if(n<0)return!1;return!(n>(t.x-l.x)**2+(t.y-l.y)**2)}for(let e=0,l=s-1;e<s;l=e++){const t=y[e].x,a=y[e].y,s=y[l].x,u=y[l].y;if(i(r,y[e],y[l]))return"合格";a>o!=u>o&&n<(s-t)*(o-a)/(u-a)+t&&(x=!x)}return x?"合格":"不合格"}},{funName:"YJCQHTQD",funDesc:"高强度回弹抗压强度查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"实测回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";const a=t.allCellVals[0],n=t.allCellVals[1];var o,y=new Array,r=new Array,x=new Array,s=new Array,i=new Array;y=["30.0-50.1","30.1-50.3","30.2-50.6","30.3-50.8","30.4-51.1","30.5-51.4","30.6-51.6","30.7-51.9","30.8-52.2","30.9-52.4","31.0-52.7","31.1-53.0","31.2-53.2","31.3-53.5","31.4-53.8","31.5-54.0","31.6-54.3","31.7-54.6","31.8-54.8","31.9-55.1","32.0-55.4","32.1-55.6","32.2-55.9","32.3-56.2","32.4-56.5","32.5-56.7","32.6-57.0","32.7-57.3","32.8-57.6","32.9-57.8","33.0-58.1","33.1-58.4","33.2-58.7","33.3-58.9","33.4-59.2","33.5-59.5","33.6-59.8","33.7-60.0","33.8-60.3","33.9-60.6","34.0-60.9","34.1-61.2","34.2-61.4","34.3-61.7","34.4-62.0","34.5-62.3","34.6-62.6","34.7-62.9","34.8-63.1","34.9-63.4","35.0-63.7","35.1-64.0","35.2-64.3","35.3-64.6","35.4-64.9","35.5-65.1","35.6-65.4","35.7-65.7","35.8-66.0","35.9-66.3","36.0-66.6","36.1-66.9","36.2-67.2","36.3-67.5","36.4-67.7","36.5-68.0","36.6-68.3","36.7-68.6","36.8-68.9","36.9-69.2","37.0-69.5","37.1-69.8","37.2-70.1","37.3-70.4","37.4-70.7","37.5-71.0","37.6-71.3","37.7-71.6","37.8-71.9","37.9-72.2","38.0-72.5","38.1-72.8","38.2-73.1","38.3-73.4","38.4-73.7","38.5-74.0","38.6-74.3","38.7-74.6","38.8-74.9","38.9-75.2","39.0-75.5","39.1-75.8","39.2-76.1","39.3-76.4","39.4-76.7","39.5-77.0","39.6-77.3","39.7-77.6","39.8-77.9","39.9-78.2","40.0-78.5","40.1-78.8","40.2-79.1","40.3-79.4","40.4-79.8","40.5-80.1","40.6-80.4","40.7-80.7","40.8-81.0","40.9-81.3","41.0-81.6","41.1-81.9","41.2-82.2","41.3-82.6","41.4-82.9","41.5-83.2","41.6-83.5","41.7-83.8","41.8-84.1","41.9-84.4","42.0-84.8","42.1-85.1","42.2-85.4","42.3-85.7","42.4-86.0","42.5-86.3","42.6-86.7","42.7-87.0","42.8-87.3","42.9-87.6","43.0-87.9","43.1-88.3","43.2-88.6","43.3-88.9","43.4-89.2","43.5-89.5","43.6-89.9","43.7-90.2","43.8-90.5","43.9-90.8","44.0-91.2","44.1-91.5","44.2-91.8","44.3-92.1","44.4-92.5","44.5-92.8","44.6-93.1","44.7-93.4","44.8-93.8","44.9-94.1","45.0-94.4","45.1-94.8","45.2-95.1","45.3-95.4","45.4-95.7","45.5-96.1","45.6-96.4","45.7-96.7","45.8-97.1","45.9-97.4","46.0-97.7","46.1-98.1","46.2-98.4","46.3-98.7","46.4-99.1","46.5-99.4","46.6-99.7"],r=["30.5-50.0","30.6-50.3","30.7-50.5","30.8-50.8","30.9-51.0","31.0-51.3","31.1-51.5","31.2-51.8","31.3-52.1","31.4-52.3","31.5-52.6","31.6-52.8","31.7-53.1","31.8-53.4","31.9-53.6","32.0-53.9","32.1-54.2","32.2-54.4","32.3-54.7","32.4-55.0","32.5-55.2","32.6-55.5","32.7-55.8","32.8-56.0","32.9-56.3","33.0-56.6","33.1-56.8","33.2-57.1","33.4-57.6","33.5-57.9","33.6-58.2","33.7-58.4","33.8-60.3","33.9-60.6","34.0-59.3","34.1-59.5","34.2-59.8","34.3-60.1","34.4-60.4","34.5-60.6","34.6-60.9","34.7-61.2","34.8-61.5","34.9-61.7","35.0-62.0","35.1-62.3","35.2-62.6","35.3-62.8","35.4-63.1","35.5-63.4","35.6-63.7","35.7-64.0","35.8-64.2","35.9-64.5","36.0-64.8","36.1-65.1","36.2-65.4","36.3-65.7","36.4-65.9","36.5-66.2","36.6-66.5","36.7-66.8","36.8-67.1","36.9-67.4","37.0-67.6","37.1-67.9","37.2-68.2","37.3-68.5","37.4-68.8","37.5-69.1","37.6-69.4","37.7-69.7","37.8-69.9","37.9-70.2","38.0-70.5","38.1-70.8","38.2-71.1","38.3-71.4","38.4-71.7","38.5-72.0","38.6-72.3","38.7-72.6","38.8-72.9","38.9-73.2","39.0-73.5","39.1-73.8","39.2-74.0","39.3-74.3","39.4-74.6","39.5-74.9","39.6-75.2","39.7-75.5","39.8-75.8","39.9-76.1","40.0-76.4","40.1-76.7","40.2-77.0","40.3-77.3","40.4-77.6","40.5-77.9","40.6-78.2","40.7-78.5","40.8-78.8","40.9-79.1","41.0-79.4","41.1-79.7","41.2-80.0","41.3-80.3","41.4-80.7","41.5-81.0","41.6-81.3","41.7-81.6","41.8-81.9","41.9-82.2","42.0-82.5","42.1-82.8","42.2-83.1","42.3-83.4","42.4-83.7","42.5-84.0","42.6-84.3","42.7-84.7","42.8-85.0","42.9-85.3","43.0-85.6","43.1-85.9","43.2-86.2","43.3-86.5","43.4-86.8","43.5-87.1","43.6-87.5","43.7-87.8","43.8-88.1","43.9-88.4","44.0-88.7","44.1-89.0","44.2-89.4","44.3-89.7","44.4-90.0","44.5-90.3","44.6-90.6","44.7-90.9","44.8-91.3","44.9-91.6","45.0-91.9","45.1-92.2","45.2-92.5","45.3-92.9","45.4-93.2","45.5-93.5","45.6-93.8","45.7-94.1","45.8-94.5","45.9-94.8","46.0-95.1","46.1-95.4","46.2-95.8","46.3-96.1","46.4-96.4","46.5-96.7","46.6-97.1","46.7-97.4","46.8-97.7","46.9-98.0","47.0-98.4","47.1-98.7","47.2-99.0","47.3-99.4","47.4-99.7","47.5-100"],x=["31.1-50.2","31.2-50.4","31.3-50.7","31.4-50.9","31.5-51.2","31.6-51.4","31.7-51.7","31.8-51.9","31.9-52.2","32.0-52.5","32.1-52.7","32.2-53.0","32.3-53.2","32.4-53.5","32.5-53.7","32.6-54.0","32.7-54.3","32.8-54.5","32.9-54.8","33.0-55.0","33.1-55.3","33.2-55.6","33.3-55.8","33.4-56.1","33.5-56.4","33.6-56.6","33.7-56.9","33.8-57.1","33.9-57.4","34.0-57.7","34.1-57.9","34.2-58.2","34.3-58.5","34.4-58.7","34.5-59.0","34.6-59.3","34.7-59.5","34.8-59.8","34.9-60.1","35.0-60.4","35.1-60.6","35.2-60.9","35.3-61.2","35.4-61.4","35.5-61.7","35.6-62.0","35.7-62.3","35.8-62.5","35.9-62.8","36.0-63.1","36.1-63.3","36.2-63.6","36.3-63.9","36.4-64.2","36.5-64.4","36.6-64.7","36.7-65.0","36.8-65.3","36.9-65.6","37.0-65.8","37.1-66.1","37.2-66.4","37.3-66.7","37.4-67.0","37.5-67.2","37.6-67.5","37.7-67.8","37.8-68.1","37.9-68.4","38.0-68.6","38.1-68.9","38.2-69.2","38.3-69.5","38.4-69.8","38.5-70.1","38.6-70.3","38.7-70.6","38.8-70.9","38.9-71.2","39.0-71.5","39.1-71.8","39.2-72.1","39.3-72.4","39.4-72.6","39.5-72.9","39.6-73.2","39.7-73.5","39.8-73.8","39.9-74.1","40.0-74.4","40.1-74.7","40.2-75.0","40.3-75.3","40.4-75.5","40.5-75.8","40.6-76.1","40.7-76.4","40.8-76.7","40.9-77.0","41.0-77.3","41.1-77.6","41.2-77.9","41.3-78.2","41.4-78.5","41.5-78.8","41.6-79.1","41.7-79.4","41.8-79.7","41.9-80.0","42.0-80.3","42.1-80.6","42.2-80.9","42.3-81.2","42.4-81.5","42.5-81.8","42.6-82.1","42.7-82.4","42.8-82.7","42.9-83.0","43.0-83.3","43.1-83.6","43.2-83.9","43.3-84.2","43.4-84.5","43.5-84.8","43.6-85.1","43.7-85.4","43.8-85.7","43.9-86.0","44.0-86.3","44.1-86.7","44.2-87.0","44.3-87.3","44.4-87.6","44.5-87.9","44.6-88.2","44.7-88.5","44.8-88.8","44.9-89.1","45.0-89.4","45.1-89.8","45.2-90.1","45.3-90.4","45.4-90.7","45.5-91.0","45.6-91.3","45.7-91.6","45.8-91.9","45.9-92.3","46.0-92.6","46.1-92.9","46.2-93.2","46.3-93.5","46.4-93.8","46.5-94.1","46.6-94.5","46.7-94.8","46.8-95.1","46.9-95.4","47.0-95.7","47.1-96.1","47.2-96.4","47.3-96.7","47.4-97.0","47.5-97.3","47.6-97.7","47.7-98.0","47.8-98.3","47.9-98.6","48.0-98.9","48.1-99.3","48.2-99.6","48.3-99.9"],s=["31.6-50.1","31.7-50.3","31.8-50.6","31.9-50.8","32.0-51.1","32.1-51.3","32.2-51.6","32.3-51.8","32.4-52.1","32.5-52.3","32.6-52.6","32.7-52.8","32.8-53.1","32.9-53.3","33.0-53.6","33.1-53.8","33.2-54.1","33.3-54.3","33.4-54.6","33.5-54.8","33.6-55.1","33.7-55.4","33.8-55.6","33.9-55.9","34.0-56.1","34.1-56.4","34.2-56.7","34.3-56.9","34.4-57.2","34.5-57.4","34.6-57.7","34.7-58.0","34.8-58.2","34.9-58.5","35.0-58.7","35.1-59.0","35.2-59.3","35.3-59.5","35.4-59.8","35.5-60.1","35.6-60.3","35.7-60.6","35.8-60.9","35.9-61.1","36.0-61.4","36.1-61.7","36.2-61.9","36.3-62.2","36.4-62.5","36.5-62.7","36.6-63.0","36.7-63.3","36.8-63.5","36.9-63.8","37.0-64.1","37.1-64.3","37.2-64.6","37.3-64.9","37.4-65.2","37.5-65.4","37.6-65.7","37.7-66.0","37.8-66.3","37.9-66.5","38.0-66.8","38.1-67.1","38.2-67.4","38.3-67.6","38.4-67.9","38.5-68.2","38.6-68.5","38.7-68.7","38.8-69.0","38.9-69.3","39.0-69.6","39.1-69.9","39.2-70.1","39.3-70.4","39.4-70.7","39.5-71.0","39.6-71.3","39.7-71.5","39.8-71.8","39.9-72.1","40.0-72.4","40.1-72.7","40.2-73.0","40.3-73.2","40.4-73.5","40.5-73.8","40.6-74.1","40.7-74.4","40.8-74.7","40.9-75.0","41.0-75.2","41.1-75.5","41.2-75.8","41.3-76.1","41.4-76.4","41.5-76.7","41.6-77.0","41.7-77.3","41.8-77.6","41.9-77.8","42.0-78.1","42.1-78.4","42.2-78.7","42.3-79.0","42.4-79.3","42.5-79.6","42.6-79.9","42.7-80.2","42.8-80.5","42.9-80.8","43.0-81.1","43.1-81.4","43.2-81.7","43.3-82.0","43.4-82.3","43.5-82.5","43.6-82.8","43.7-83.1","43.8-83.4","43.9-83.7","44.0-84.0","44.1-84.3","44.2-84.6","44.3-84.9","44.4-85.2","44.5-85.5","44.6-85.8","44.7-86.1","44.8-86.4","44.9-86.7","45.0-87.0","45.1-87.4","45.2-87.7","45.3-88.0","45.4-88.3","45.5-88.6","45.6-88.9","45.7-89.2","45.8-89.5","45.9-89.8","46.0-90.1","46.1-90.4","46.2-90.7","46.3-91.0","46.4-91.3","46.5-91.6","46.6-91.9","46.7-92.2","46.8-92.6","46.9-92.9","47.0-93.2","47.1-93.5","47.2-93.8","47.3-94.1","47.4-94.4","47.5-94.7","47.6-95.0","47.7-95.4","47.8-95.7","47.9-96.0","48.0-96.3","48.1-96.6","48.2-96.9","48.3-97.2","48.4-97.6","48.5-97.9","48.6-98.2","48.7-98.5","48.8-98.8","48.9-99.1","49.0-99.5","49.1-99.8"],i=["32.2-50.2","32.3-50.4","32.4-50.7","32.5-50.9","32.6-51.2","32.7-51.4","32.8-51.6","32.9-51.9","33.0-52.1","33.1-52.4","33.2-52.6","33.3-52.9","33.4-53.1","33.5-53.4","33.6-53.6","33.7-53.9","33.8-54.1","33.9-54.4","34.0-54.6","34.1-54.9","34.2-55.1","34.3-55.4","34.4-55.6","34.5-55.9","34.6-56.1","34.7-56.4","34.8-56.7","34.9-56.9","35.0-57.2","35.1-57.4","35.2-57.7","35.3-57.9","35.4-58.2","35.5-58.5","35.6-58.7","35.7-59.0","35.8-59.2","35.9-59.5","36.0-59.7","36.1-60.0","36.2-60.3","36.3-60.5","36.4-60.8","36.5-61.0","36.6-61.3","36.7-61.6","36.8-61.8","36.9-62.1","37.0-62.4","37.1-62.6","37.2-62.9","37.3-63.2","37.4-63.4","37.5-63.7","37.6-64.0","37.7-64.2","37.8-64.5","37.9-64.8","38.0-65.0","38.1-65.3","38.2-65.6","38.3-65.8","38.4-66.1","38.5-66.4","38.6-66.6","38.7-66.9","38.8-67.2","38.9-67.4","39.0-67.7","39.1-68.0","39.2-68.3","39.3-68.5","39.4-68.8","39.5-69.1","39.6-69.4","39.7-69.6","39.8-69.9","39.9-70.2","40.0-70.5","40.1-70.7","40.2-71.0","40.3-71.3","40.4-71.6","40.5-71.8","40.6-72.1","40.7-72.4","40.8-72.7","40.9-73.0","41.0-73.2","41.1-73.5","41.2-73.8","41.3-74.1","41.4-74.4","41.5-74.6","41.6-74.9","41.7-75.2","41.8-75.5","41.9-75.8","42.0-76.0","42.1-76.3","42.2-76.6","42.3-76.9","42.4-77.2","42.5-77.5","42.6-77.8","42.7-78.0","42.8-78.3","42.9-78.6","43.0-78.9","43.1-79.2","43.2-79.5","43.3-79.8","43.4-80.1","43.5-80.3","43.6-80.6","43.7-80.9","43.8-81.2","43.9-81.5","44.0-81.8","44.1-82.1","44.2-82.4","44.3-82.7","44.4-83.0","44.5-83.3","44.6-83.5","44.7-83.8","44.8-84.1","44.9-84.4","45.0-84.7","45.1-85.0","45.2-85.3","45.3-85.6","45.4-85.9","45.5-86.2","45.6-86.5","45.7-86.8","45.8-87.1","45.9-87.4","46.0-87.7","46.1-88.0","46.2-88.3","46.3-88.6","46.4-88.9","46.5-89.2","46.6-89.5","46.7-89.8","46.8-90.1","46.9-90.4","47.0-90.7","47.1-91.0","47.2-91.3","47.3-91.6","47.4-91.9","47.5-92.2","47.6-92.5","47.7-92.8","47.8-93.1","47.9-93.4","48.0-93.7","48.1-94.0","48.2-94.3","48.3-94.6","48.4-95.0","48.5-95.3","48.6-95.6","48.7-95.9","48.8-96.2","48.9-96.5","49.0-96.8","49.1-97.1","49.2-97.4","49.3-97.7","49.4-98.0","49.5-98.4","49.6-98.7","49.7-99.0","49.8-99.3","49.9-99.6","50.0-99.9"];for(var u=1;u<11;u++)if("0.0"==n)for(var m=0;m<y.length;m++){a==(c=y[m].split("-"))[0]&&(o=c[1])}else if("0.5"==n)for(m=0;m<r.length;m++){a==(c=r[m].split("-"))[0]&&(o=c[1])}else if("1.0"==n)for(m=0;m<x.length;m++){a==(c=x[m].split("-"))[0]&&(o=c[1])}else if("1.5"==n)for(m=0;m<s.length;m++){a==(c=s[m].split("-"))[0]&&(o=c[1])}else if(n>="2.0")for(m=0;m<i.length;m++){var c;a==(c=i[m].split("-"))[0]&&(o=c[1])}return o}},{funName:"YJTEST",funDesc:"云检测试函数",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"测试参数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>"OK"}]},WorkbookUtils={loadSjsFile:(e,l,t,a)=>__awaiter(void 0,void 0,void 0,function*(){const n=yield fetch(l,{method:"GET"});if(n.ok){const l=yield n.blob(),o=new Blob([l],{type:"application/zip"});e.open(o,()=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof t&&(yield t(e))}),e=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof a&&(yield a(e))}))}}),getWookbookBlob:e=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((l,t)=>{e.save(e=>l(e),e=>t(e))})}),print:(e,l)=>{const t=l.getSheetCount();for(let a=0;a<t;a++){const t=l.getSheet(a);let n=t.printInfo();n.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.rowStart(0),n.rowEnd(t.getRowCount()),n.columnStart(1),n.columnEnd(77),n.margin({top:59.055119999999995,bottom:59.055119999999995,left:98.42520000000002,right:59.055119999999995,header:0,footer:0}),n.paperSize(new e.Spread.Sheets.Print.PaperSize(e.Spread.Sheets.Print.PaperKind.a4)),t.printInfo(n)}l.print()},exportToExcel:(e,l,t="")=>{const a=l.toJSON({includeBindingSource:!0}),n=["YJMAX","YJMIN","YJMID","YJGETNUM","YJGETS","YJGETCV","YJINTERPOLATIONMETHOD","YJINTERPOLATIONMETHOD_Y"],o=new e.Spread.Sheets.Workbook;o.fromJSON(a),o.suspendPaint();const y=o.getSheetCount();for(let e=0;e<y;e++){const l=o.getSheet(e);l.suspendCalcService();for(var r=0;r<l.getRowCount();r++)for(var x=0;x<l.getColumnCount();x++){const e=l.getFormula(r,x);if(null!=e&&null!=e&&n.some(l=>e.indexOf(l)>-1)){const e=l.getValue(r,x);l.getCell(r,x).formula(void 0),l.setValue(r,x,e)}}l.resumeCalcService(!1)}o.resumePaint(),""==t&&(t=o.getSheet(0).name());let s={fileType:e.Spread.Sheets.FileType.excel,includeBindingSource:!0,includeStyles:!0,includeFormulas:!0,saveAsView:!1,rowHeadersAsFrozenColumns:!1,columnHeadersAsFrozenRows:!1,includeAutoMergedCells:!1,includeCalcModelCache:!1,includeUnusedNames:!0,includeEmptyRegionCells:!0};o.export(e=>{saveAs(e,`${t}.xlsx`)},()=>{},s),o.destroy()},mergeWorkbooksToExcelOrPdf:(e,l,...t)=>__awaiter(void 0,[e,l,...t],void 0,function*(e,l,t=!0,a,n=[{name:"宋体",type:"normal",url:"/spreadJsFonts/simsun.ttf"},{name:"Arial",type:"normal",url:"/spreadJsFonts/arial.ttf"}],o=77,y=!1){if(!l||0==l.length)return;t||(yield WorkbookUtils.registerFont(e,n));const r=new e.Spread.Sheets.Workbook;r.suspendPaint(),r.fromJSON(l[0].toJSON());for(let t=1;t<l.length;t++){const a=new e.Spread.Sheets.Workbook;a.suspendPaint(),a.fromJSON(l[t].toJSON());const n=t+"";a.getNamedStyles().forEach(function(e){e.name=`new_${n}_${e.name}`,r.addNamedStyle(e)});let o=a.getSheet(0),y=JSON.stringify(o.toJSON());y=y.replace(/"style":"/g,'"style":"new_'+n+"_"),y=y.replace(/"parentName":"/g,'"parentName":"new_'+n+"_");let x=new e.Spread.Sheets.Worksheet(`newSheet${n}_`);r.addSheet(r.getSheetCount(),x),x.fromJSON(JSON.parse(y));const s=x.getRowCount(),i=r.getSheet(0);i.addRows(i.getRowCount(),s);let u=i.getRowCount()-s;const m=[new e.Spread.Sheets.Range(-1,-1,-1,-1)],c=[new e.Spread.Sheets.Range(u,0,s,x.getColumnCount())];r.commandManager().execute({cmd:"clipboardPaste",sheetName:i.name(),fromSheet:x,fromRanges:m,pastedRanges:c,isCutting:!1,clipboardText:"",pasteOption:e.Spread.Sheets.ClipboardPasteOptions.all}),r.removeSheet(r.getSheetCount()-1),i.clearSelection(),a.resumePaint(),a.destroy()}const x=r.getActiveSheet();if(x.zoom(1),x.options.rowHeaderVisible=!0,x.options.colHeaderVisible=!0,r.options.tabStripVisible=!0,r.options.showHorizontalScrollbar=!0,r.options.showVerticalScrollbar=!0,r.options.scrollbarMaxAlign=!1,!t){let l=r.getSheet(r.getSheetCount()-1).printInfo();l.margin({top:0,bottom:0,left:0,right:0,header:0,footer:0}),l.columnEnd(o),l.showBorder(!1),l.showGridLine(!1),l.blackAndWhite(!1),l.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.zoomFactor(y?1:1.06)}return r.resumePaint(),t?WorkbookUtils.exportToExcel(e,r,a):r.savePDF(function(e){saveAs(e,`${a&&a.length>0?a:"文件"}.pdf`)},console.log),r}),registerFont:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((t,a)=>__awaiter(void 0,void 0,void 0,function*(){try{l&&0!=l.length||t(null);for(let a=0;a<l.length;a++){const o=l[a],y=yield fetch(o.url,{method:"GET"});if(y.ok){const l=yield y.blob();var n=new FileReader;n.readAsArrayBuffer(l),n.onload=function(a){var y=n.result,r={};r[o.type]=y,e.Spread.Sheets.PDF.PDFFontsManager.registerFont(o.name,r),t(l)}}}}catch(e){a(e)}}))})};export{BusinessUtils,CommonUtils,EChartsUtils,FormulaUtils,SheetUtils,WorkbookUtils};
2
2
  //# sourceMappingURL=index.esm.min.js.map