pages-template-requisitionadd-requisitionadd.e406f9be.js 63 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-template-requisitionadd-requisitionadd","pages-template-GetSafeQualityCheckDTO-GetSafeQualityCheckDTO~pages-template-GetpmProgressReportDTO-G~69e99384"],{"0c47":function(n,t,e){var i=e("da84"),r=e("d44e");r(i.JSON,"JSON",!0)},"22a8":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"UniSection",props:{type:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},data:function(){return{}},watch:{title:function(n){uni.report&&""!==n&&uni.report("title",n)}},methods:{onClick:function(){this.$emit("click")}}};t.default=i},"23dc":function(n,t,e){var i=e("d44e");i(Math,"Math",!0)},2557:function(n,t,e){"use strict";(function(n){e("4160"),e("c975"),e("baa5"),e("fb6a"),e("a434"),e("a9e3"),e("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:{control:{type:Boolean,default:!0},deleteBtn:{type:Boolean,default:!0},columnNum:{type:[Number,String],default:4},maxCount:{type:Number,default:4},allowFileType:{type:[Array],default:function(){return[".jpg",".png",".gif",".zip",".rar",".docx",".doc"]}},maxFileSize:{type:Number,default:0},mode:{type:Array,default:function(){return[]}}},data:function(){return{imgList:[],showList:[],showControl:!0,files:[],extensionNames:[],invaliadFiles:[]}},watch:{mode:function(n){this.init(n)},showList:function(){this.showList.length>=this.maxCount?this.showControl=!1:this.showControl=!0}},created:function(){this.init(this.mode)},methods:{init:function(n){0==this.mode.length?this.showList=this.imgList:this.showList=n},uploadImg:function(){var t=this;uni.chooseFile({count:this.maxCount,extension:this.allowFileType,success:function(e){var i=t;n.info("chooseImageRes:",e);var r=e.tempFilePaths,o=e.tempFiles,s=[],a=[];o.forEach((function(n,t){if(0!=i.maxFileSize&&n.size/1024>i.maxFileSize&&s.push(n.name),i.allowFileType.length>0){var e=n.name.lastIndexOf("."),r=n.name.substr(e);-1==i.allowFileType.indexOf(r)&&a.push(n.name)}})),a.length>0?i.$emit("limitFileTypeList",a,i.allowFileType):(i.$emit("limitFileTypeList",a,i.allowFileType),s.length>0?i.$emit("limitFileSizeList",s):(i.$emit("limitFileSizeList",s),r=r.slice(0,t.maxCount-t.showList.length),o.forEach((function(n,e){i.files.push(n);var r=n.name.lastIndexOf("."),o=n.name.substr(r);t.extensionNames.push(o)})),r.forEach((function(n){t.imgList.push(n)})),t.$emit("chooseFile",t.imgList,r)))}})},deleteImg:function(n){var t=this.imgList;if(t.splice(n,1),this.mode.length>0){var e=this.showList;e.splice(n,1)}this.$emit("imgDelete",this.handleImg(),n)},previewImage:function(n){var t=this.handleImg();uni.previewImage({current:t[n],urls:t})},handleImg:function(){return this.mode.length>0?this.showList:this.imgList}}};t.default=i}).call(this,e("5a52")["default"])},"457d1":function(n,t,e){"use strict";e.r(t);var i=e("2557"),r=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=r.a},4903:function(n,t,e){"use strict";e.r(t);var i=e("a7ed"),r=e("7f05");for(var o in r)"default"!==o&&function(n){e.d(t,n,(function(){return r[n]}))}(o);e("b3dc");var s,a=e("f0c5"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"ecdff406",null,!1,i["a"],s);t["default"]=u.exports},"4f08":function(n,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getUnitUser=o,t.getUnit=s,t.GetUserDepartment=a,t.selectProject=u,t.showImage=c,t.getMaterialTree=l,t.GetContracts=f,t.getSupplierNameAndType=d,t.GetEngineeringContracts=h,t.GetContract=p,t.GetWorkFlowProcedureList=m,t.WorkFlowAudit=g,t.WorkFlowSave=v;var r=i(e("8cec"));function o(n){return(0,r.default)({url:"/common/GetUnitUser",method:"get",params:{projectid:n}})}function s(n){return(0,r.default)({url:"/common/getunit",method:"get",params:{projectid:n}})}function a(n){return(0,r.default)({url:"/common/GetUserDepartment",method:"get",params:{usercode:n}})}function u(){return(0,r.default)({url:"/common/GetProjectList",method:"get"})}function c(n){return(0,r.default)({url:"/common/ShowImg",method:"get",params:{code:n}})}function l(n){return(0,r.default)({url:"/common/GetMaterialTree",method:"get",params:{classCode:n}})}function f(n,t){return(0,r.default)({url:"/common/GetContracts",method:"get",params:{projectcode:n,searchValue:t}})}function d(n,t){return(0,r.default)({url:"/common/GetSupplierNameAndType",method:"get",params:{supplierCode:n,supplierTypeCode:t}})}function h(n,t){return(0,r.default)({url:"/common/GetEngineeringContracts",method:"get",params:{projectcode:n,searchValue:t}})}function p(n){return(0,r.default)({url:"/Common/GetContract",method:"get",params:{contractCode:n}})}function m(n,t,e){return(0,r.default)({url:"/Common/GetWorkFlowProcedureList",method:"get",params:{procedureName:n,projectCode:t,activity:e}})}function g(n,t){return(0,r.default)({url:"/Common/WorkFlowAudit",method:"get",params:{userCode:n,procedureCode:t}})}function v(n){return(0,r.default)({url:"/Common/WorkFlowSave",method:"POST",data:n})}},"54aa":function(n,t,e){"use strict";e.r(t);var i=e("22a8"),r=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=r.a},"721c":function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n /* �ϴ� str */.imglistbx[data-v-7c158fbc]{width:100%;height:100%}.imglistItem[data-v-7c158fbc]{position:relative;float:left;margin-bottom:%?20?%;-webkit-border-radius:%?10?%;border-radius:%?10?%}.column3[data-v-7c158fbc]{width:33.3333%;height:%?200?%}.column4[data-v-7c158fbc]{width:25%;height:%?220?%}.itemImg[data-v-7c158fbc]{width:70%;height:100%;margin:0 auto;display:block;-webkit-border-radius:%?10?%;border-radius:%?10?%}.cancelBtn[data-v-7c158fbc]{position:absolute;top:%?-10?%;right:%?10?%}\n /* �ϴ��ؼ� */.uploadControl[data-v-7c158fbc]{font-size:%?50?%;color:#888;background-color:#eee;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}\n /* �ϴ� str end*/.clear[data-v-7c158fbc]{clear:both}.font13[data-v-7c158fbc]{font-size:12px;overflow:hidden}.iconSize[data-v-7c158fbc]{font-size:90px}",""]),n.exports=t},7573:function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* 头条小程序组件内不能引入字体 */\nuni-page-body[data-v-ecdff406]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#efeff4;min-height:100%;height:auto}uni-view[data-v-ecdff406]{font-size:14px;line-height:inherit}.uni-form-item__title[data-v-ecdff406]{font-size:16px;line-height:24px}.uni-input-wrapper[data-v-ecdff406]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\npadding:8px 13px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#fff}.title[data-v-ecdff406]{background-color:#efefef}.uni-input[data-v-ecdff406]{height:28px;line-height:28px;font-size:15px;padding:0;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:#fff}.uni-icon[data-v-ecdff406]{font-family:uniicons;font-size:24px;font-weight:400;font-style:normal;width:24px;height:24px;line-height:24px;color:#999}.uni-eye-active[data-v-ecdff406]{color:#007aff}.uni-btn-v[data-v-ecdff406]{position:fixed;bottom:0;width:100%}.header-slot-box[data-v-ecdff406]{font-size:15px;margin:5px 5px;width:20%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.body-slot-box[data-v-ecdff406]{font-size:15px;margin:5px 5px;width:40%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.footer-slot-box[data-v-ecdff406]{font-size:15px;margin:5px 5px;width:40%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-textarea uni-textarea[data-v-ecdff406]{font-size:15px}.content[data-v-ecdff406]{padding:%?40?%;background-color:#fff}\n/* 上传控件 */.uploadControl[data-v-ecdff406]{border:%?1?% solid #eee;-webkit-border-radius:%?10?%;border-radius:%?10?%;width:%?130?%;display:block;height:%?130?%;text-align:center;line-height:%?130?%;font-size:%?30?%;color:#888;background-color:#eee}body.?%PAGE?%[data-v-ecdff406]{background-color:#efeff4}",""]),n.exports=t},7821:function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"uni-section",attrs:{nvue:!0}},[n.type?e("v-uni-view",{staticClass:"uni-section__head"},[e("v-uni-view",{staticClass:"uni-section__head-tag",class:n.type})],1):n._e(),e("v-uni-view",{staticClass:"uni-section__content"},[e("v-uni-text",{staticClass:"uni-section__content-title",class:{distraction:!n.subTitle}},[n._v(n._s(n.title))]),n.subTitle?e("v-uni-text",{staticClass:"uni-section__content-sub"},[n._v(n._s(n.subTitle))]):n._e()],1),n._t("default")],2)},o=[]},"7f05":function(n,t,e){"use strict";e.r(t);var i=e("8c00"),r=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=r.a},"87a3":function(n,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.GetQianzhengDropDown=o,t.InsertRequisition=s,t.UpdateRequisition=a,t.GetRelationContract=u,t.GetRequisitionList=c,t.GetRequistionDetail=l,t.GetMaterialIns=f,t.GetMaterialIn=d,t.SelectRequisitionList=h,t.GetRelationRequistionContract=p;var r=i(e("8cec"));function o(n){return(0,r.default)({url:"/Requisition/GetQianzhengDropDown",method:"GET",params:{type:n}})}function s(n){return(0,r.default)({url:"/Requisition/InsertRequisition",method:"POST",data:n})}function a(n){return(0,r.default)({url:"/Requisition/UpdateRequisition",method:"POST",data:n})}function u(n,t){return(0,r.default)({url:"/Requisition/GetRelationContract",method:"get",params:{projectCode:n,search:t}})}function c(n,t){return(0,r.default)({url:"/Requisition/GetRequisitionList",method:"get",params:{projectCode:n,type:t}})}function l(n){return(0,r.default)({url:"/Requisition/GetRequistionDetail",method:"get",params:{reqisitionCode:n}})}function f(n,t,e){return(0,r.default)({url:"/MaterialInOut/GetMaterialIns",method:"get",params:{ProjectCode:n,userCode:t,search:e}})}function d(n){return(0,r.default)({url:"/MaterialInOut/GetMaterialIn",method:"get",params:{materialInCode:n}})}function h(n,t,e){return(0,r.default)({url:"/Requisition/SelectRequisitionList",method:"get",params:{projectCode:n,userCode:t,searchValue:e}})}function p(n){return(0,r.default)({url:"/Requisition/GetRelationRequistionContract",method:"get",params:{projectCode:n}})}},"8c00":function(n,t,e){"use strict";(function(n){var i=e("4ea4");e("4160"),e("a15b"),e("a434"),e("b680"),e("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(e("de46"));var r=e("87a3"),o=e("4f08"),s=e("d90c"),a={data:function(){return{needFormCach:!1,requisitionName:"",requisitionDate:this.$util.getDate({format:!0}),requisitionType:0,qianzhengName:"签证类型",changeType:"",userCode:this.$store.state.user.userCode,personName:this.$store.state.user.userName,unitCode:this.$store.state.departmentCode,unitCodeName:this.$store.state.departmentName,requisitionReason:"",remark:"",contractList:[],imageList:[],countIndex:5,count:[1,2,3,4,5],array:[],index:0,date:this.$util.getDate({format:!0}),startDate:this.$util.getDate("start"),endDate:this.$util.getDate("end"),control:!0,columnNum:3,imgList:[],urlList:[],maxCount:5}},onLoad:function(){n.info("onLoad"),n.info(uni.getStorageSync("storage_state")),this.$util.persistLogin(this),"1"==this.$util.getQuery("type")?(uni.setNavigationBarTitle({title:"变更申请单添加"}),this.qianzhengName="设计变更类型"):(uni.setNavigationBarTitle({title:"签证申请单添加"}),this.qianzhengName="签证类型")},onUnload:function(){this.imageList=[],this.countIndex=5},created:function(){n.info("created"),this.GetDropDown(),this.needFormCach&&this.getTemp(this)},updated:function(){},methods:{input:function(n,t,e){this.$refs[n].setValue(t,e)},submitForm:function(t){n.info("submitForm");var e=this;if(""!==this.requisitionName)if(this.requisitionName.length>50)uni.showToast({icon:"none",title:"申请单名称不能多于50字",duration:3e3});else if(""!==this.requisitionDate)if(""!==this.changeType)if(""!==this.requisitionReason)if(this.requisitionReason.length>500)uni.showToast({icon:"none",title:"原因不能超过500字",duration:3e3});else if(""!==this.remark&&this.remark.length>500)uni.showToast({icon:"none",title:"签备注不能超过500字",duration:3e3});else if(this.$util.isEmpty(this.userCode)||this.$util.isEmpty(this.unitCode))uni.showToast({icon:"none",title:"登录人信息丢失,请重新登录再操作",duration:4e3});else{var i=this.$util.getQuery("type")-0,o={requisitionName:this.requisitionName,requisitionDate:this.requisitionDate,changeType:this.changeType,requisitionReason:this.requisitionReason,remark:this.remark,person:this.userCode,unitCode:this.unitCode,projectCode:this.$util.getState(this,"projectCode"),requisitionType:i},a=this.contractList,u=[];if(a.forEach((function(n,t,e){u.push({requisitionCode:"",contractCode:n.contractCode,estimateCash:new s.Decimal(n.estimateCash).toFixed(2)-0})})),n.info("【list】"),n.info(u),u.length<=0)uni.showToast({title:"请添加关联合同",icon:"none",duration:3e3});else{var c={Requisition:o,List:u};(0,r.InsertRequisition)(c).then((function(t){n.info("提交应答"),n.info(t),t?(e.uploadFileToServe(t),uni.navigateTo({url:"/pages/template/requisitionlist/requisitionlist?type="+i})):uni.showToast({title:"添加失败,重新操作",icon:"none",duration:3e3})}))}}else uni.showToast({icon:"none",title:"原因不能为空",duration:3e3});else uni.showToast({icon:"none",title:"签证类型不能为空",duration:3e3});else uni.showToast({icon:"none",title:"申请日期不能为空",duration:3e3});else uni.showToast({icon:"none",title:"请填写申请单名称",duration:3e3})},bindPickerChange:function(t){this.index=t.detail.value,this.changeType=this.array[this.index],n.info(this.changeType)},bindDateChange:function(t){this.date=t.detail.value,this.requisitionDate=this.date,n.info(this.date)},countChange:function(n){this.countIndex=n.detail.value},GetDropDown:function(){var t=this,e=this.$util.getQuery("type")-0;(0,r.GetQianzhengDropDown)(e).then((function(e){n.info(e),e.forEach((function(n,e,i){t.$set(t.array,e,n)})),t.changeType=t.array[0]}))},GetDepartment:function(){var t=this;(0,o.GetUserDepartment)("100340").then((function(e){n.info(e),t.unitCodeName=e}))},openWindow:function(){var t=this;n.info("监听事件外部this"),n.info(this),this.saveTemp(t),uni.$once("fire",(function(e){n.info("监听fire子页面的传值",e),t.contractList=[],e.forEach((function(n,e,i){t.$set(t.contractList,e,n)})),uni.setStorage({key:"contractList",data:t.contractList}),t.getTemp(t),t.needFormCach=!0,n.info("监听子页面的传值结束")})),uni.navigateTo({url:"/pages/template/GetRelationContract/GetRelationContract"})},getTemp:function(n){uni.getStorageSync("requisitionName")&&(n.requisitionName=uni.getStorageSync("requisitionName"),n.requisitionDate=uni.getStorageSync("requisitionDate"),n.requisitionReason=uni.getStorageSync("requisitionReason"),n.changeType=uni.getStorageSync("changeType"),n.remark=uni.getStorageSync("remark"),n.imageList=uni.getStorageSync("imageList"),n.contractList=uni.getStorageSync("contractList"))},saveTemp:function(n){uni.setStorage({key:"requisitionName",data:n.requisitionName}),uni.setStorage({key:"requisitionDate",data:n.requisitionDate}),uni.setStorage({key:"changeType",data:n.changeType}),uni.setStorage({key:"requisitionReason",data:n.requisitionReason}),uni.setStorage({key:"remark",data:n.remark}),uni.setStorage({key:"imageList",data:n.imageList})},delRow:function(t){n.info(t),n.info(this.contractList[t]),this.contractList.splice(t,1)},chooseFile:function(t,e){n.log("上传图片_list:",t),n.log("上传图片_v:",e),this.urlList=t,n.info("urlList",this.urlList)},imgDelete:function(t,e){n.log("删除图片_list:",t),n.log("删除图片_eq:",e),this.urlList=t,n.info("urlList",this.urlList)},limitFileSizeList:function(t){n.info("limitFileSizeList:",t),t&&t.length>0&&uni.showModal({title:"警告",content:t.join()+" 文件大小超过2000KB",showCancel:!1})},limitFileTypeList:function(t,e){n.info("limitFileTypeList:",t),n.info("limitFileTypeList:",e),t&&t.length>0&&uni.showModal({title:"警告",content:t.join()+" 文件类型必须是"+e.join(),showCancel:!1})},uploadFileToServe:function(t){var e=this,i=e.urlList;if(i&&!(i.length<=0))for(var r=0;r<i.length;r++)uni.uploadFile({url:"/api/Common/UploadImage",filePath:i[r],name:"file",formData:{createPerson:e.$store.state.user.userCode,masterCode:t,attachMentType:"RequisitionAttach"},headers:{"Content-Type":"multipart/form-data; boundary = "+(new Date).getTime()},success:function(t){n.log("图片上传:",t.data)}})}}};t.default=a}).call(this,e("5a52")["default"])},"944a":function(n,t,e){var i=e("746f");i("toStringTag")},"9a4a":function(n,t,e){var i=e("721c");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var r=e("4f06").default;r("cde128b6",i,!0,{sourceMap:!1,shadowMode:!1})},a7ed:function(n,t,e){"use strict";e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var i={uniForms:e("eade").default,gUpfile:e("fa00").default,uniSection:e("c650").default,uniList:e("2ce4").default,uniListItem:e("54f1").default},r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",[e("uni-forms",{ref:"form",attrs:{labelPosition:"left",labelAlign:"left"},on:{submit:function(t){arguments[0]=t=n.$handleEvent(t),n.submitForm.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v("申请单名称")])],1),e("v-uni-view",{staticClass:"uni-input-wrapper"},[e("v-uni-input",{staticClass:"uni-input",attrs:{focus:!0,placeholder:"请填写申请单名称",name:"requisitionName"},model:{value:n.requisitionName,callback:function(t){n.requisitionName=t},expression:"requisitionName"}})],1)],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v("申请日期")])],1),e("v-uni-view",{staticClass:"uni-input-wrapper",staticStyle:{"justify-content":"left"}},[e("v-uni-picker",{staticStyle:{width:"100%"},attrs:{mode:"date",value:n.date,start:n.startDate,end:n.endDate,name:"requisitionDate"},on:{change:function(t){arguments[0]=t=n.$handleEvent(t),n.bindDateChange.apply(void 0,arguments)}},model:{value:n.requisitionDate,callback:function(t){n.requisitionDate=t},expression:"requisitionDate"}},[e("v-uni-view",{staticClass:"uni-input"},[n._v(n._s(n.date))])],1)],1)],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v(n._s(n.qianzhengName))])],1),e("v-uni-view",{staticClass:"uni-input-wrapper",staticStyle:{"justify-content":"left"}},[e("v-uni-picker",{staticStyle:{width:"100%"},attrs:{mode:"selector",value:n.index,range:n.array,"range-key":"name",name:"changeType"},on:{change:function(t){arguments[0]=t=n.$handleEvent(t),n.bindPickerChange.apply(void 0,arguments)}},model:{value:n.changeType,callback:function(t){n.changeType=t},expression:"changeType"}},[e("v-uni-view",{staticClass:"uni-input"},[n._v(n._s(n.array.length>0?n.array[n.index]:""))])],1)],1)],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v("原因")])],1),e("v-uni-view",{staticClass:"uni-textarea"},[e("v-uni-textarea",{attrs:{focus:!0,placeholder:"请输入原因","auto-height":"true",name:"requisitionReason"},model:{value:n.requisitionReason,callback:function(t){n.requisitionReason=t},expression:"requisitionReason"}})],1)],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v("备注")])],1),e("v-uni-view",{staticClass:"uni-textarea"},[e("v-uni-textarea",{attrs:{focus:!0,placeholder:"请写备注","auto-height":"true",name:"remark"},model:{value:n.remark,callback:function(t){n.remark=t},expression:"remark"}})],1)],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("v-uni-view",{staticClass:"title",staticStyle:{"background-color":"#efefef"}},[e("v-uni-text",{staticClass:"uni-form-item__title"},[n._v("上传文件")])],1),e("v-uni-view",{staticClass:"content"},[e("g-upfile",{ref:"gUpfile",attrs:{mode:n.imgList,control:n.control,columnNum:n.columnNum,maxCount:n.maxCount,maxFileSize:2e4},on:{chooseFile:function(t){arguments[0]=t=n.$handleEvent(t),n.chooseFile.apply(void 0,arguments)},imgDelete:function(t){arguments[0]=t=n.$handleEvent(t),n.imgDelete.apply(void 0,arguments)},limitFileSizeList:function(t){arguments[0]=t=n.$handleEvent(t),n.limitFileSizeList.apply(void 0,arguments)},limitFileTypeList:function(t){arguments[0]=t=n.$handleEvent(t),n.limitFileTypeList.apply(void 0,arguments)}}})],1)],1),e("uni-section",{attrs:{title:"关联合同",type:"line"}},[e("v-uni-button",{attrs:{type:"default",size:"mini"},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.openWindow.apply(void 0,arguments)}}},[n._v("添加关联合同")])],1),e("v-uni-view",{staticClass:"uni-form-item uni-column"},[e("uni-list",{staticStyle:{"background-color":"#EFEFEF"}},[e("uni-list-item",[e("v-uni-view",{staticClass:"header-slot-box",attrs:{slot:"header"},slot:"header"},[n._v("合同编号")]),e("v-uni-view",{staticClass:"body-slot-box",attrs:{slot:"body"},slot:"body"},[n._v("合同名称")]),e("v-uni-view",{staticClass:"footer-slot-box",attrs:{slot:"footer"},slot:"footer"},[n._v("暂估金额")])],1)],1),e("uni-list",n._l(n.contractList,(function(t,i){return e("uni-list-item",{key:i},[e("v-uni-view",{staticClass:"header-slot-box",attrs:{slot:"header"},slot:"header"},[n._v(n._s(t.contractID))]),e("v-uni-view",{staticClass:"body-slot-box",attrs:{slot:"body"},slot:"body"},[n._v(n._s(t.contractName))]),e("v-uni-view",{staticClass:"footer-slot-box",staticStyle:{"flex-direction":"row","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[e("v-uni-input",{staticClass:"uni-input",staticStyle:{width:"50px"},attrs:{type:"digit",focus:!0},model:{value:t.estimateCash,callback:function(e){n.$set(t,"estimateCash",e)},expression:"item.estimateCash"}}),e("v-uni-button",{staticClass:"mini-btn",attrs:{type:"default",size:"mini"},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.delRow(i)}}},[n._v("删除")])],1)],1)})),1)],1),e("v-uni-view",{staticStyle:{"margin-bottom":"120px"}}),e("v-uni-view",{staticClass:"uni-btn-v uni-column"},[e("v-uni-button",{staticStyle:{"border-radius":"15px"},attrs:{type:"primary","form-type":"submit"}},[n._v("提交")])],1)],1)],1)},o=[]},afa6:function(n,t,e){"use strict";var i=e("9a4a"),r=e.n(i);r.a},b3dc:function(n,t,e){"use strict";var i=e("f121"),r=e.n(i);r.a},baa5:function(n,t,e){var i=e("23e7"),r=e("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},c473:function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.i,".uni-section[data-v-3f87abbd]{position:relative;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\nmargin-top:10px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 10px;height:50px;background-color:#f8f8f8;\n\nfont-weight:400}\n.uni-section__head[data-v-3f87abbd]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-right:10px}.line[data-v-3f87abbd]{height:15px;background-color:silver;-webkit-border-radius:5px;border-radius:5px;width:3px}.circle[data-v-3f87abbd]{width:8px;height:8px;-webkit-border-top-right-radius:50px;border-top-right-radius:50px;-webkit-border-top-left-radius:50px;border-top-left-radius:50px;-webkit-border-bottom-left-radius:50px;border-bottom-left-radius:50px;-webkit-border-bottom-right-radius:50px;border-bottom-right-radius:50px;background-color:silver}.uni-section__content[data-v-3f87abbd]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#333}.uni-section__content-title[data-v-3f87abbd]{font-size:14px;color:#333}.distraction[data-v-3f87abbd]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.uni-section__content-sub[data-v-3f87abbd]{font-size:12px;color:#999}",""]),n.exports=t},c650:function(n,t,e){"use strict";e.r(t);var i=e("7821"),r=e("54aa");for(var o in r)"default"!==o&&function(n){e.d(t,n,(function(){return r[n]}))}(o);e("d5b6");var s,a=e("f0c5"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"3f87abbd",null,!1,i["a"],s);t["default"]=u.exports},cf49:function(n,t,e){var i=e("c473");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var r=e("4f06").default;r("087aceea",i,!0,{sourceMap:!1,shadowMode:!1})},d5b6:function(n,t,e){"use strict";var i=e("cf49"),r=e.n(i);r.a},d733:function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"imglistbx"},[n._l(n.showList,(function(t,i){return e("v-uni-view",{key:i,class:["imglistItem",3==n.columnNum?"column3":"column4"],staticStyle:{"justify-content":"center","text-align":"center"}},[".jpg"==n.extensionNames[i]||".gif"==n.extensionNames[i]||".png"==n.extensionNames[i]?e("v-uni-image",{staticClass:"itemImg",attrs:{src:t,mode:"aspectFill"},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.previewImage(i)}}}):e("i",{staticClass:"fa fa-file-archive-o iconSize",attrs:{"aria-hidden":"true",mode:"aspectFill"}}),e("v-uni-view",{staticClass:"font13"},[n._v(n._s(n.files[i].name))]),n.deleteBtn?e("v-uni-icon",{staticClass:"cancelBtn",attrs:{size:"18",type:"cancel"},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.deleteImg(i)}}}):n._e()],1)})),n.control&&n.showControl?e("v-uni-view",{class:["imglistItem",3==n.columnNum?"column3":"column4"],on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.uploadImg.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"itemImg uploadControl"},[n._v("+")])],1):n._e(),e("v-uni-view",{staticClass:"clear"})],2)},o=[]},d90c:function(n,t,e){var i;e("a4d3"),e("e01a"),e("d28b"),e("944a"),e("c975"),e("26e9"),e("fb6a"),e("ace4"),e("0c47"),e("23dc"),e("d3b7"),e("ac1f"),e("25f0"),e("3ca3"),e("5319"),e("841c"),e("fb2c"),e("9a8c"),e("a975"),e("735e"),e("c1ac"),e("d139"),e("3a7b"),e("d5d6"),e("82f8"),e("e91f"),e("60bd"),e("5f96"),e("3280"),e("3fcc"),e("ca91"),e("25a1"),e("cd26"),e("3c5d"),e("2954"),e("649e"),e("219c"),e("170b"),e("b39a"),e("72f7"),e("ddb0"),function(r){"use strict";var o,s,a,u=9e15,c=1e9,l="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",d="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",h={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},p=!0,m="[DecimalError] ",g=m+"Invalid argument: ",v=m+"Precision limit exceeded",w=m+"crypto unavailable",b=Math.floor,x=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,N=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,q=7,_=9007199254740991,T=f.length-1,E=d.length-1,L={name:"[object Decimal]"};function F(n){var t,e,i,r=n.length-1,o="",s=n[0];if(r>0){for(o+=s,t=1;t<r;t++)i=n[t]+"",e=q-i.length,e&&(o+=U(e)),o+=i;s=n[t],i=s+"",e=q-i.length,e&&(o+=U(e))}else if(0===s)return"0";for(;s%10===0;)s/=10;return o+s}function D(n,t,e){if(n!==~~n||n<t||n>e)throw Error(g+n)}function O(n,t,e,i){var r,o,s,a;for(o=n[0];o>=10;o/=10)--t;return--t<0?(t+=q,r=0):(r=Math.ceil((t+1)/q),t%=q),o=x(10,q-t),a=n[r]%o|0,null==i?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),s=e<4&&99999==a||e>3&&49999==a||5e4==a||0==a):s=(e<4&&a+1==o||e>3&&a+1==o/2)&&(n[r+1]/o/100|0)==x(10,t-2)-1||(a==o/2||0==a)&&0==(n[r+1]/o/100|0):t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),s=(i||e<4)&&9999==a||!i&&e>3&&4999==a):s=((i||e<4)&&a+1==o||!i&&e>3&&a+1==o/2)&&(n[r+1]/o/1e3|0)==x(10,t-3)-1,s}function R(n,t,e){for(var i,r,o=[0],s=0,a=n.length;s<a;){for(r=o.length;r--;)o[r]*=t;for(o[0]+=l.indexOf(n.charAt(s++)),i=0;i<o.length;i++)o[i]>e-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/e|0,o[i]%=e)}return o.reverse()}function I(n,t){var e,i,r=t.d.length;r<32?(e=Math.ceil(r/3),i=(1/nn(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),n.precision+=e,t=Y(n,1,t.times(i),new n(1));for(var o=e;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return n.precision-=e,t}L.absoluteValue=L.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),j(n)},L.ceil=function(){return j(new this.constructor(this),this.e+1,2)},L.comparedTo=L.cmp=function(n){var t,e,i,r,o=this,s=o.d,a=(n=new o.constructor(n)).d,u=o.s,c=n.s;if(!s||!a)return u&&c?u!==c?u:s===a?0:!s^u<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?u:a[0]?-c:0;if(u!==c)return u;if(o.e!==n.e)return o.e>n.e^u<0?1:-1;for(i=s.length,r=a.length,t=0,e=i<r?i:r;t<e;++t)if(s[t]!==a[t])return s[t]>a[t]^u<0?1:-1;return i===r?0:i>r^u<0?1:-1},L.cosine=L.cos=function(){var n,t,e=this,i=e.constructor;return e.d?e.d[0]?(n=i.precision,t=i.rounding,i.precision=n+Math.max(e.e,e.sd())+q,i.rounding=1,e=I(i,tn(i,e)),i.precision=n,i.rounding=t,j(2==a||3==a?e.neg():e,n,t,!0)):new i(1):new i(NaN)},L.cubeRoot=L.cbrt=function(){var n,t,e,i,r,o,s,a,u,c,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(p=!1,o=l.s*x(l.s*l,1/3),o&&Math.abs(o)!=1/0?i=new f(o.toString()):(e=F(l.d),n=l.e,(o=(n-e.length+1)%3)&&(e+=1==o||-2==o?"0":"00"),o=x(e,1/3),n=b((n+1)/3)-(n%3==(n<0?-1:2)),o==1/0?e="5e"+n:(e=o.toExponential(),e=e.slice(0,e.indexOf("e")+1)+n),i=new f(e),i.s=l.s),s=(n=f.precision)+3;;)if(a=i,u=a.times(a).times(a),c=u.plus(l),i=M(c.plus(l).times(a),c.plus(u),s+2,1),F(a.d).slice(0,s)===(e=F(i.d)).slice(0,s)){if(e=e.slice(s-3,s+1),"9999"!=e&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(j(i,n+1,1),t=!i.times(i).times(i).eq(l));break}if(!r&&(j(a,n+1,0),a.times(a).times(a).eq(l))){i=a;break}s+=4,r=1}return p=!0,j(i,n,f.rounding,t)},L.decimalPlaces=L.dp=function(){var n,t=this.d,e=NaN;if(t){if(n=t.length-1,e=(n-b(this.e/q))*q,n=t[n],n)for(;n%10==0;n/=10)e--;e<0&&(e=0)}return e},L.dividedBy=L.div=function(n){return M(this,new this.constructor(n))},L.dividedToIntegerBy=L.divToInt=function(n){var t=this,e=t.constructor;return j(M(t,new e(n),0,1,1),e.precision,e.rounding)},L.equals=L.eq=function(n){return 0===this.cmp(n)},L.floor=function(){return j(new this.constructor(this),this.e+1,3)},L.greaterThan=L.gt=function(n){return this.cmp(n)>0},L.greaterThanOrEqualTo=L.gte=function(n){var t=this.cmp(n);return 1==t||0===t},L.hyperbolicCosine=L.cosh=function(){var n,t,e,i,r,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;e=s.precision,i=s.rounding,s.precision=e+Math.max(o.e,o.sd())+4,s.rounding=1,r=o.d.length,r<32?(n=Math.ceil(r/3),t=(1/nn(4,n)).toString()):(n=16,t="2.3283064365386962890625e-10"),o=Y(s,1,o.times(t),new s(1),!0);for(var u,c=n,l=new s(8);c--;)u=o.times(o),o=a.minus(u.times(l.minus(u.times(l))));return j(o,s.precision=e,s.rounding=i,!0)},L.hyperbolicSine=L.sinh=function(){var n,t,e,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(t=o.precision,e=o.rounding,o.precision=t+Math.max(r.e,r.sd())+4,o.rounding=1,i=r.d.length,i<3)r=Y(o,2,r,r,!0);else{n=1.4*Math.sqrt(i),n=n>16?16:0|n,r=r.times(1/nn(5,n)),r=Y(o,2,r,r,!0);for(var s,a=new o(5),u=new o(16),c=new o(20);n--;)s=r.times(r),r=r.times(a.plus(s.times(u.times(s).plus(c))))}return o.precision=t,o.rounding=e,j(r,t,e,!0)},L.hyperbolicTangent=L.tanh=function(){var n,t,e=this,i=e.constructor;return e.isFinite()?e.isZero()?new i(e):(n=i.precision,t=i.rounding,i.precision=n+7,i.rounding=1,M(e.sinh(),e.cosh(),i.precision=n,i.rounding=t)):new i(e.s)},L.inverseCosine=L.acos=function(){var n,t=this,e=t.constructor,i=t.abs().cmp(1),r=e.precision,o=e.rounding;return-1!==i?0===i?t.isNeg()?$(e,r,o):new e(0):new e(NaN):t.isZero()?$(e,r+4,o).times(.5):(e.precision=r+6,e.rounding=1,t=t.asin(),n=$(e,r+4,o).times(.5),e.precision=r,e.rounding=o,n.minus(t))},L.inverseHyperbolicCosine=L.acosh=function(){var n,t,e=this,i=e.constructor;return e.lte(1)?new i(e.eq(1)?0:NaN):e.isFinite()?(n=i.precision,t=i.rounding,i.precision=n+Math.max(Math.abs(e.e),e.sd())+4,i.rounding=1,p=!1,e=e.times(e).minus(1).sqrt().plus(e),p=!0,i.precision=n,i.rounding=t,e.ln()):new i(e)},L.inverseHyperbolicSine=L.asinh=function(){var n,t,e=this,i=e.constructor;return!e.isFinite()||e.isZero()?new i(e):(n=i.precision,t=i.rounding,i.precision=n+2*Math.max(Math.abs(e.e),e.sd())+6,i.rounding=1,p=!1,e=e.times(e).plus(1).sqrt().plus(e),p=!0,i.precision=n,i.rounding=t,e.ln())},L.inverseHyperbolicTangent=L.atanh=function(){var n,t,e,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(n=o.precision,t=o.rounding,i=r.sd(),Math.max(i,n)<2*-r.e-1?j(new o(r),n,t,!0):(o.precision=e=i-r.e,r=M(r.plus(1),new o(1).minus(r),e+n,1),o.precision=n+4,o.rounding=1,r=r.ln(),o.precision=n,o.rounding=t,r.times(.5))):new o(NaN)},L.inverseSine=L.asin=function(){var n,t,e,i,r=this,o=r.constructor;return r.isZero()?new o(r):(t=r.abs().cmp(1),e=o.precision,i=o.rounding,-1!==t?0===t?(n=$(o,e+4,i).times(.5),n.s=r.s,n):new o(NaN):(o.precision=e+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=i,r.times(2)))},L.inverseTangent=L.atan=function(){var n,t,e,i,r,o,s,a,u,c=this,l=c.constructor,f=l.precision,d=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&f+4<=E)return s=$(l,f+4,d).times(.25),s.s=c.s,s}else{if(!c.s)return new l(NaN);if(f+4<=E)return s=$(l,f+4,d).times(.5),s.s=c.s,s}for(l.precision=a=f+10,l.rounding=1,e=Math.min(28,a/q+2|0),n=e;n;--n)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(p=!1,t=Math.ceil(a/q),i=1,u=c.times(c),s=new l(c),r=c;-1!==n;)if(r=r.times(u),o=s.minus(r.div(i+=2)),r=r.times(u),s=o.plus(r.div(i+=2)),void 0!==s.d[t])for(n=t;s.d[n]===o.d[n]&&n--;);return e&&(s=s.times(2<<e-1)),p=!0,j(s,l.precision=f,l.rounding=d,!0)},L.isFinite=function(){return!!this.d},L.isInteger=L.isInt=function(){return!!this.d&&b(this.e/q)>this.d.length-2},L.isNaN=function(){return!this.s},L.isNegative=L.isNeg=function(){return this.s<0},L.isPositive=L.isPos=function(){return this.s>0},L.isZero=function(){return!!this.d&&0===this.d[0]},L.lessThan=L.lt=function(n){return this.cmp(n)<0},L.lessThanOrEqualTo=L.lte=function(n){return this.cmp(n)<1},L.logarithm=L.log=function(n){var t,e,i,r,o,s,a,u,c=this,l=c.constructor,f=l.precision,d=l.rounding,h=5;if(null==n)n=new l(10),t=!0;else{if(n=new l(n),e=n.d,n.s<0||!e||!e[0]||n.eq(1))return new l(NaN);t=n.eq(10)}if(e=c.d,c.s<0||!e||!e[0]||c.eq(1))return new l(e&&!e[0]?-1/0:1!=c.s?NaN:e?0:1/0);if(t)if(e.length>1)o=!0;else{for(r=e[0];r%10===0;)r/=10;o=1!==r}if(p=!1,a=f+h,s=W(c,a),i=t?P(l,a+10):W(n,a),u=M(s,i,a,1),O(u.d,r=f,d))do{if(a+=10,s=W(c,a),i=t?P(l,a+10):W(n,a),u=M(s,i,a,1),!o){+F(u.d).slice(r+1,r+15)+1==1e14&&(u=j(u,f+1,0));break}}while(O(u.d,r+=10,d));return p=!0,j(u,f,d)},L.minus=L.sub=function(n){var t,e,i,r,o,s,a,u,c,l,f,d,h=this,m=h.constructor;if(n=new m(n),!h.d||!n.d)return h.s&&n.s?h.d?n.s=-n.s:n=new m(n.d||h.s!==n.s?h:NaN):n=new m(NaN),n;if(h.s!=n.s)return n.s=-n.s,h.plus(n);if(c=h.d,d=n.d,a=m.precision,u=m.rounding,!c[0]||!d[0]){if(d[0])n.s=-n.s;else{if(!c[0])return new m(3===u?-0:0);n=new m(h)}return p?j(n,a,u):n}if(e=b(n.e/q),l=b(h.e/q),c=c.slice(),o=l-e,o){for(f=o<0,f?(t=c,o=-o,s=d.length):(t=d,e=l,s=c.length),i=Math.max(Math.ceil(a/q),s)+2,o>i&&(o=i,t.length=1),t.reverse(),i=o;i--;)t.push(0);t.reverse()}else{for(i=c.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}o=0}for(f&&(t=c,c=d,d=t,n.s=-n.s),s=c.length,i=d.length-s;i>0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]<d[i]){for(r=i;r&&0===c[--r];)c[r]=S-1;--c[r],c[i]+=S}c[i]-=d[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--e;return c[0]?(n.d=c,n.e=A(c,e),p?j(n,a,u):n):new m(3===u?-0:0)},L.modulo=L.mod=function(n){var t,e=this,i=e.constructor;return n=new i(n),!e.d||!n.s||n.d&&!n.d[0]?new i(NaN):!n.d||e.d&&!e.d[0]?j(new i(e),i.precision,i.rounding):(p=!1,9==i.modulo?(t=M(e,n.abs(),0,3,1),t.s*=n.s):t=M(e,n,0,i.modulo,1),t=t.times(n),p=!0,e.minus(t))},L.naturalExponential=L.exp=function(){return H(this)},L.naturalLogarithm=L.ln=function(){return W(this)},L.negated=L.neg=function(){var n=new this.constructor(this);return n.s=-n.s,j(n)},L.plus=L.add=function(n){var t,e,i,r,o,s,a,u,c,l,f=this,d=f.constructor;if(n=new d(n),!f.d||!n.d)return f.s&&n.s?f.d||(n=new d(n.d||f.s===n.s?f:NaN)):n=new d(NaN),n;if(f.s!=n.s)return n.s=-n.s,f.minus(n);if(c=f.d,l=n.d,a=d.precision,u=d.rounding,!c[0]||!l[0])return l[0]||(n=new d(f)),p?j(n,a,u):n;if(o=b(f.e/q),i=b(n.e/q),c=c.slice(),r=o-i,r){for(r<0?(e=c,r=-r,s=l.length):(e=l,i=o,s=c.length),o=Math.ceil(a/q),s=o>s?o+1:s+1,r>s&&(r=s,e.length=1),e.reverse();r--;)e.push(0);e.reverse()}for(s=c.length,r=l.length,s-r<0&&(r=s,e=l,l=c,c=e),t=0;r;)t=(c[--r]=c[r]+l[r]+t)/S|0,c[r]%=S;for(t&&(c.unshift(t),++i),s=c.length;0==c[--s];)c.pop();return n.d=c,n.e=A(c,i),p?j(n,a,u):n},L.precision=L.sd=function(n){var t,e=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(g+n);return e.d?(t=G(e.d),n&&e.e+1>t&&(t=e.e+1)):t=NaN,t},L.round=function(){var n=this,t=n.constructor;return j(new t(n),n.e+1,t.rounding)},L.sine=L.sin=function(){var n,t,e=this,i=e.constructor;return e.isFinite()?e.isZero()?new i(e):(n=i.precision,t=i.rounding,i.precision=n+Math.max(e.e,e.sd())+q,i.rounding=1,e=X(i,tn(i,e)),i.precision=n,i.rounding=t,j(a>2?e.neg():e,n,t,!0)):new i(NaN)},L.squareRoot=L.sqrt=function(){var n,t,e,i,r,o,s=this,a=s.d,u=s.e,c=s.s,l=s.constructor;if(1!==c||!a||!a[0])return new l(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);for(p=!1,c=Math.sqrt(+s),0==c||c==1/0?(t=F(a),(t.length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=b((u+1)/2)-(u<0||u%2),c==1/0?t="5e"+u:(t=c.toExponential(),t=t.slice(0,t.indexOf("e")+1)+u),i=new l(t)):i=new l(c.toString()),e=(u=l.precision)+3;;)if(o=i,i=o.plus(M(s,o,e+2,1)).times(.5),F(o.d).slice(0,e)===(t=F(i.d)).slice(0,e)){if(t=t.slice(e-3,e+1),"9999"!=t&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(j(i,u+1,1),n=!i.times(i).eq(s));break}if(!r&&(j(o,u+1,0),o.times(o).eq(s))){i=o;break}e+=4,r=1}return p=!0,j(i,u,l.rounding,n)},L.tangent=L.tan=function(){var n,t,e=this,i=e.constructor;return e.isFinite()?e.isZero()?new i(e):(n=i.precision,t=i.rounding,i.precision=n+10,i.rounding=1,e=e.sin(),e.s=1,e=M(e,new i(1).minus(e.times(e)).sqrt(),n+10,0),i.precision=n,i.rounding=t,j(2==a||4==a?e.neg():e,n,t,!0)):new i(NaN)},L.times=L.mul=function(n){var t,e,i,r,o,s,a,u,c,l=this,f=l.constructor,d=l.d,h=(n=new f(n)).d;if(n.s*=l.s,!d||!d[0]||!h||!h[0])return new f(!n.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:d&&h?0*n.s:n.s/0);for(e=b(l.e/q)+b(n.e/q),u=d.length,c=h.length,u<c&&(o=d,d=h,h=o,s=u,u=c,c=s),o=[],s=u+c,i=s;i--;)o.push(0);for(i=c;--i>=0;){for(t=0,r=u+i;r>i;)a=o[r]+h[i]*d[r-i-1]+t,o[r--]=a%S|0,t=a/S|0;o[r]=(o[r]+t)%S|0}for(;!o[--s];)o.pop();return t?++e:o.shift(),n.d=o,n.e=A(o,e),p?j(n,f.precision,f.rounding):n},L.toBinary=function(n,t){return en(this,2,n,t)},L.toDecimalPlaces=L.toDP=function(n,t){var e=this,i=e.constructor;return e=new i(e),void 0===n?e:(D(n,0,c),void 0===t?t=i.rounding:D(t,0,8),j(e,n+e.e+1,t))},L.toExponential=function(n,t){var e,i=this,r=i.constructor;return void 0===n?e=z(i,!0):(D(n,0,c),void 0===t?t=r.rounding:D(t,0,8),i=j(new r(i),n+1,t),e=z(i,!0,n+1)),i.isNeg()&&!i.isZero()?"-"+e:e},L.toFixed=function(n,t){var e,i,r=this,o=r.constructor;return void 0===n?e=z(r):(D(n,0,c),void 0===t?t=o.rounding:D(t,0,8),i=j(new o(r),n+r.e+1,t),e=z(i,!1,n+i.e+1)),r.isNeg()&&!r.isZero()?"-"+e:e},L.toFraction=function(n){var t,e,i,r,o,s,a,u,c,l,f,d,h=this,m=h.d,v=h.constructor;if(!m)return new v(h);if(c=e=new v(1),i=u=new v(0),t=new v(i),o=t.e=G(m)-h.e-1,s=o%q,t.d[0]=x(10,s<0?q+s:s),null==n)n=o>0?t:c;else{if(a=new v(n),!a.isInt()||a.lt(c))throw Error(g+a);n=a.gt(t)?o>0?t:c:a}for(p=!1,a=new v(F(m)),l=v.precision,v.precision=o=m.length*q*2;;){if(f=M(a,t,0,1,1),r=e.plus(f.times(i)),1==r.cmp(n))break;e=i,i=r,r=c,c=u.plus(f.times(r)),u=r,r=t,t=a.minus(f.times(r)),a=r}return r=M(n.minus(e),i,0,1,1),u=u.plus(r.times(c)),e=e.plus(r.times(i)),u.s=c.s=h.s,d=M(c,i,o,1).minus(h).abs().cmp(M(u,e,o,1).minus(h).abs())<1?[c,i]:[u,e],v.precision=l,p=!0,d},L.toHexadecimal=L.toHex=function(n,t){return en(this,16,n,t)},L.toNearest=function(n,t){var e=this,i=e.constructor;if(e=new i(e),null==n){if(!e.d)return e;n=new i(1),t=i.rounding}else{if(n=new i(n),void 0===t?t=i.rounding:D(t,0,8),!e.d)return n.s?e:n;if(!n.d)return n.s&&(n.s=e.s),n}return n.d[0]?(p=!1,e=M(e,n,0,t,1).times(n),p=!0,j(e)):(n.s=e.s,e=n),e},L.toNumber=function(){return+this},L.toOctal=function(n,t){return en(this,8,n,t)},L.toPower=L.pow=function(n){var t,e,i,r,o,s,a=this,u=a.constructor,c=+(n=new u(n));if(!a.d||!n.d||!a.d[0]||!n.d[0])return new u(x(+a,c));if(a=new u(a),a.eq(1))return a;if(i=u.precision,o=u.rounding,n.eq(1))return j(a,i,o);if(t=b(n.e/q),t>=n.d.length-1&&(e=c<0?-c:c)<=_)return r=Z(u,a,e,i),n.s<0?new u(1).div(r):j(r,i,o);if(s=a.s,s<0){if(t<n.d.length-1)return new u(NaN);if(0==(1&n.d[t])&&(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return e=x(+a,c),t=0!=e&&isFinite(e)?new u(e+"").e:b(c*(Math.log("0."+F(a.d))/Math.LN10+a.e+1)),t>u.maxE+1||t<u.minE-1?new u(t>0?s/0:0):(p=!1,u.rounding=a.s=1,e=Math.min(12,(t+"").length),r=H(n.times(W(a,i+e)),i),r.d&&(r=j(r,i+5,1),O(r.d,i,o)&&(t=i+10,r=j(H(n.times(W(a,t+e)),t),t+5,1),+F(r.d).slice(i+1,i+15)+1==1e14&&(r=j(r,i+1,0)))),r.s=s,p=!0,u.rounding=o,j(r,i,o))},L.toPrecision=function(n,t){var e,i=this,r=i.constructor;return void 0===n?e=z(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(D(n,1,c),void 0===t?t=r.rounding:D(t,0,8),i=j(new r(i),n,t),e=z(i,n<=i.e||i.e<=r.toExpNeg,n)),i.isNeg()&&!i.isZero()?"-"+e:e},L.toSignificantDigits=L.toSD=function(n,t){var e=this,i=e.constructor;return void 0===n?(n=i.precision,t=i.rounding):(D(n,1,c),void 0===t?t=i.rounding:D(t,0,8)),j(new i(e),n,t)},L.toString=function(){var n=this,t=n.constructor,e=z(n,n.e<=t.toExpNeg||n.e>=t.toExpPos);return n.isNeg()&&!n.isZero()?"-"+e:e},L.truncated=L.trunc=function(){return j(new this.constructor(this),this.e+1,1)},L.valueOf=L.toJSON=function(){var n=this,t=n.constructor,e=z(n,n.e<=t.toExpNeg||n.e>=t.toExpPos);return n.isNeg()?"-"+e:e};var M=function(){function n(n,t,e){var i,r=0,o=n.length;for(n=n.slice();o--;)i=n[o]*t+r,n[o]=i%e|0,r=i/e|0;return r&&n.unshift(r),n}function t(n,t,e,i){var r,o;if(e!=i)o=e>i?1:-1;else for(r=o=0;r<e;r++)if(n[r]!=t[r]){o=n[r]>t[r]?1:-1;break}return o}function e(n,t,e,i){for(var r=0;e--;)n[e]-=r,r=n[e]<t[e]?1:0,n[e]=r*i+n[e]-t[e];for(;!n[0]&&n.length>1;)n.shift()}return function(i,r,o,a,u,c){var l,f,d,h,p,m,g,v,w,x,y,N,k,C,_,T,E,L,F,D,O=i.constructor,R=i.s==r.s?1:-1,I=i.d,M=r.d;if(!I||!I[0]||!M||!M[0])return new O(i.s&&r.s&&(I?!M||I[0]!=M[0]:M)?I&&0==I[0]||!M?0*R:R/0:NaN);for(c?(p=1,f=i.e-r.e):(c=S,p=q,f=b(i.e/p)-b(r.e/p)),F=M.length,E=I.length,w=new O(R),x=w.d=[],d=0;M[d]==(I[d]||0);d++);if(M[d]>(I[d]||0)&&f--,null==o?(C=o=O.precision,a=O.rounding):C=u?o+(i.e-r.e)+1:o,C<0)x.push(1),m=!0;else{if(C=C/p+2|0,d=0,1==F){for(h=0,M=M[0],C++;(d<E||h)&&C--;d++)_=h*c+(I[d]||0),x[d]=_/M|0,h=_%M|0;m=h||d<E}else{for(h=c/(M[0]+1)|0,h>1&&(M=n(M,h,c),I=n(I,h,c),F=M.length,E=I.length),T=F,y=I.slice(0,F),N=y.length;N<F;)y[N++]=0;D=M.slice(),D.unshift(0),L=M[0],M[1]>=c/2&&++L;do{h=0,l=t(M,y,F,N),l<0?(k=y[0],F!=N&&(k=k*c+(y[1]||0)),h=k/L|0,h>1?(h>=c&&(h=c-1),g=n(M,h,c),v=g.length,N=y.length,l=t(g,y,v,N),1==l&&(h--,e(g,F<v?D:M,v,c))):(0==h&&(l=h=1),g=M.slice()),v=g.length,v<N&&g.unshift(0),e(y,g,N,c),-1==l&&(N=y.length,l=t(M,y,F,N),l<1&&(h++,e(y,F<N?D:M,N,c))),N=y.length):0===l&&(h++,y=[0]),x[d++]=h,l&&y[0]?y[N++]=I[T]||0:(y=[I[T]],N=1)}while((T++<E||void 0!==y[0])&&C--);m=void 0!==y[0]}x[0]||x.shift()}if(1==p)w.e=f,s=m;else{for(d=1,h=x[0];h>=10;h/=10)d++;w.e=d+f*p-1,j(w,u?o+w.e+1:o,a,m)}return w}}();function j(n,t,e,i){var r,o,s,a,u,c,l,f,d,h=n.constructor;n:if(null!=t){if(f=n.d,!f)return n;for(r=1,a=f[0];a>=10;a/=10)r++;if(o=t-r,o<0)o+=q,s=t,l=f[d=0],u=l/x(10,r-s-1)%10|0;else if(d=Math.ceil((o+1)/q),a=f.length,d>=a){if(!i)break n;for(;a++<=d;)f.push(0);l=u=0,r=1,o%=q,s=o-q+1}else{for(l=a=f[d],r=1;a>=10;a/=10)r++;o%=q,s=o-q+r,u=s<0?0:l/x(10,r-s-1)%10|0}if(i=i||t<0||void 0!==f[d+1]||(s<0?l:l%x(10,r-s-1)),c=e<4?(u||i)&&(0==e||e==(n.s<0?3:2)):u>5||5==u&&(4==e||i||6==e&&(o>0?s>0?l/x(10,r-s):0:f[d-1])%10&1||e==(n.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=n.e+1,f[0]=x(10,(q-t%q)%q),n.e=-t||0):f[0]=n.e=0,n;if(0==o?(f.length=d,a=1,d--):(f.length=d+1,a=x(10,q-o),f[d]=s>0?(l/x(10,r-s)%x(10,s)|0)*a:0),c)for(;;){if(0==d){for(o=1,s=f[0];s>=10;s/=10)o++;for(s=f[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(n.e++,f[0]==S&&(f[0]=1));break}if(f[d]+=a,f[d]!=S)break;f[d--]=0,a=1}for(o=f.length;0===f[--o];)f.pop()}return p&&(n.e>h.maxE?(n.d=null,n.e=NaN):n.e<h.minE&&(n.e=0,n.d=[0])),n}function z(n,t,e){if(!n.isFinite())return Q(n);var i,r=n.e,o=F(n.d),s=o.length;return t?(e&&(i=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+U(i):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(n.e<0?"e":"e+")+n.e):r<0?(o="0."+U(-r-1)+o,e&&(i=e-s)>0&&(o+=U(i))):r>=s?(o+=U(r+1-s),e&&(i=e-r-1)>0&&(o=o+"."+U(i))):((i=r+1)<s&&(o=o.slice(0,i)+"."+o.slice(i)),e&&(i=e-s)>0&&(r+1===s&&(o+="."),o+=U(i))),o}function A(n,t){var e=n[0];for(t*=q;e>=10;e/=10)t++;return t}function P(n,t,e){if(t>T)throw p=!0,e&&(n.precision=e),Error(v);return j(new n(f),t,1,!0)}function $(n,t,e){if(t>E)throw Error(v);return j(new n(d),t,e,!0)}function G(n){var t=n.length-1,e=t*q+1;if(t=n[t],t){for(;t%10==0;t/=10)e--;for(t=n[0];t>=10;t/=10)e++}return e}function U(n){for(var t="";n--;)t+="0";return t}function Z(n,t,e,i){var r,o=new n(1),s=Math.ceil(i/q+4);for(p=!1;;){if(e%2&&(o=o.times(t),rn(o.d,s)&&(r=!0)),e=b(e/2),0===e){e=o.d.length-1,r&&0===o.d[e]&&++o.d[e];break}t=t.times(t),rn(t.d,s)}return p=!0,o}function B(n){return 1&n.d[n.d.length-1]}function V(n,t,e){for(var i,r=new n(t[0]),o=0;++o<t.length;){if(i=new n(t[o]),!i.s){r=i;break}r[e](i)&&(r=i)}return r}function H(n,t){var e,i,r,o,s,a,u,c=0,l=0,f=0,d=n.constructor,h=d.rounding,m=d.precision;if(!n.d||!n.d[0]||n.e>17)return new d(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);null==t?(p=!1,u=m):u=t,a=new d(.03125);while(n.e>-2)n=n.times(a),f+=5;for(i=Math.log(x(2,f))/Math.LN10*2+5|0,u+=i,e=o=s=new d(1),d.precision=u;;){if(o=j(o.times(n),u,1),e=e.times(++l),a=s.plus(M(o,e,u,1)),F(a.d).slice(0,u)===F(s.d).slice(0,u)){r=f;while(r--)s=j(s.times(s),u,1);if(null!=t)return d.precision=m,s;if(!(c<3&&O(s.d,u-i,h,c)))return j(s,d.precision=m,h,p=!0);d.precision=u+=10,e=o=a=new d(1),l=0,c++}s=a}}function W(n,t){var e,i,r,o,s,a,u,c,l,f,d,h=1,m=10,g=n,v=g.d,w=g.constructor,b=w.rounding,x=w.precision;if(g.s<0||!v||!v[0]||!g.e&&1==v[0]&&1==v.length)return new w(v&&!v[0]?-1/0:1!=g.s?NaN:v?0:g);if(null==t?(p=!1,l=x):l=t,w.precision=l+=m,e=F(v),i=e.charAt(0),!(Math.abs(o=g.e)<15e14))return c=P(w,l+2,x).times(o+""),g=W(new w(i+"."+e.slice(1)),l-m).plus(c),w.precision=x,null==t?j(g,x,b,p=!0):g;while(i<7&&1!=i||1==i&&e.charAt(1)>3)g=g.times(n),e=F(g.d),i=e.charAt(0),h++;for(o=g.e,i>1?(g=new w("0."+e),o++):g=new w(i+"."+e.slice(1)),f=g,u=s=g=M(g.minus(1),g.plus(1),l,1),d=j(g.times(g),l,1),r=3;;){if(s=j(s.times(d),l,1),c=u.plus(M(s,new w(r),l,1)),F(c.d).slice(0,l)===F(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(P(w,l+2,x).times(o+""))),u=M(u,new w(h),l,1),null!=t)return w.precision=x,u;if(!O(u.d,l-m,b,a))return j(u,w.precision=x,b,p=!0);w.precision=l+=m,c=s=g=M(f.minus(1),f.plus(1),l,1),d=j(g.times(g),l,1),r=a=1}u=c,r+=2}}function Q(n){return String(n.s*n.s/0)}function J(n,t){var e,i,r;for((e=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(e<0&&(e=i),e+=+t.slice(i+1),t=t.substring(0,i)):e<0&&(e=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r),t){if(r-=i,n.e=e=e-i-1,n.d=[],i=(e+1)%q,e<0&&(i+=q),i<r){for(i&&n.d.push(+t.slice(0,i)),r-=q;i<r;)n.d.push(+t.slice(i,i+=q));t=t.slice(i),i=q-t.length}else i-=r;for(;i--;)t+="0";n.d.push(+t),p&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function K(n,t){var e,i,r,s,a,u,c,l,f;if("Infinity"===t||"NaN"===t)return+t||(n.s=NaN),n.e=NaN,n.d=null,n;if(N.test(t))e=16,t=t.toLowerCase();else if(y.test(t))e=2;else{if(!k.test(t))throw Error(g+t);e=8}for(s=t.search(/p/i),s>0?(c=+t.slice(s+1),t=t.substring(2,s)):t=t.slice(2),s=t.indexOf("."),a=s>=0,i=n.constructor,a&&(t=t.replace(".",""),u=t.length,s=u-s,r=Z(i,new i(e),s,2*s)),l=R(t,e,S),f=l.length-1,s=f;0===l[s];--s)l.pop();return s<0?new i(0*n.s):(n.e=A(l,f),n.d=l,p=!1,a&&(n=M(n,r,4*u)),c&&(n=n.times(Math.abs(c)<54?x(2,c):o.pow(2,c))),p=!0,n)}function X(n,t){var e,i=t.d.length;if(i<3)return Y(n,2,t,t);e=1.4*Math.sqrt(i),e=e>16?16:0|e,t=t.times(1/nn(5,e)),t=Y(n,2,t,t);for(var r,o=new n(5),s=new n(16),a=new n(20);e--;)r=t.times(t),t=t.times(o.plus(r.times(s.times(r).minus(a))));return t}function Y(n,t,e,i,r){var o,s,a,u,c=n.precision,l=Math.ceil(c/q);for(p=!1,u=e.times(e),a=new n(i);;){if(s=M(a.times(u),new n(t++*t++),c,1),a=r?i.plus(s):i.minus(s),i=M(s.times(u),new n(t++*t++),c,1),s=a.plus(i),void 0!==s.d[l]){for(o=l;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=i,i=s,s=o}return p=!0,s.d.length=l+1,s}function nn(n,t){var e=n;while(--t)e*=n;return e}function tn(n,t){var e,i=t.s<0,r=$(n,n.precision,1),o=r.times(.5);if(t=t.abs(),t.lte(o))return a=i?4:1,t;if(e=t.divToInt(r),e.isZero())a=i?3:2;else{if(t=t.minus(e.times(r)),t.lte(o))return a=B(e)?i?2:3:i?4:1,t;a=B(e)?i?1:4:i?3:2}return t.minus(r).abs()}function en(n,t,e,i){var r,o,a,u,f,d,h,p,m,g=n.constructor,v=void 0!==e;if(v?(D(e,1,c),void 0===i?i=g.rounding:D(i,0,8)):(e=g.precision,i=g.rounding),n.isFinite()){for(h=z(n),a=h.indexOf("."),v?(r=2,16==t?e=4*e-3:8==t&&(e=3*e-2)):r=t,a>=0&&(h=h.replace(".",""),m=new g(1),m.e=h.length-a,m.d=R(z(m),10,r),m.e=m.d.length),p=R(h,10,r),o=f=p.length;0==p[--f];)p.pop();if(p[0]){if(a<0?o--:(n=new g(n),n.d=p,n.e=o,n=M(n,m,e,i,0,r),p=n.d,o=n.e,d=s),a=p[e],u=r/2,d=d||void 0!==p[e+1],d=i<4?(void 0!==a||d)&&(0===i||i===(n.s<0?3:2)):a>u||a===u&&(4===i||d||6===i&&1&p[e-1]||i===(n.s<0?8:7)),p.length=e,d)for(;++p[--e]>r-1;)p[e]=0,e||(++o,p.unshift(1));for(f=p.length;!p[f-1];--f);for(a=0,h="";a<f;a++)h+=l.charAt(p[a]);if(v){if(f>1)if(16==t||8==t){for(a=16==t?4:3,--f;f%a;f++)h+="0";for(p=R(h,r,t),f=p.length;!p[f-1];--f);for(a=1,h="1.";a<f;a++)h+=l.charAt(p[a])}else h=h.charAt(0)+"."+h.slice(1);h=h+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)h="0"+h;h="0."+h}else if(++o>f)for(o-=f;o--;)h+="0";else o<f&&(h=h.slice(0,o)+"."+h.slice(o))}else h=v?"0p+0":"0";h=(16==t?"0x":2==t?"0b":8==t?"0o":"")+h}else h=Q(n);return n.s<0?"-"+h:h}function rn(n,t){if(n.length>t)return n.length=t,!0}function on(n){return new this(n).abs()}function sn(n){return new this(n).acos()}function an(n){return new this(n).acosh()}function un(n,t){return new this(n).plus(t)}function cn(n){return new this(n).asin()}function ln(n){return new this(n).asinh()}function fn(n){return new this(n).atan()}function dn(n){return new this(n).atanh()}function hn(n,t){n=new this(n),t=new this(t);var e,i=this.precision,r=this.rounding,o=i+4;return n.s&&t.s?n.d||t.d?!t.d||n.isZero()?(e=t.s<0?$(this,i,r):new this(0),e.s=n.s):!n.d||t.isZero()?(e=$(this,o,1).times(.5),e.s=n.s):t.s<0?(this.precision=o,this.rounding=1,e=this.atan(M(n,t,o,1)),t=$(this,o,1),this.precision=i,this.rounding=r,e=n.s<0?e.minus(t):e.plus(t)):e=this.atan(M(n,t,o,1)):(e=$(this,o,1).times(t.s>0?.25:.75),e.s=n.s):e=new this(NaN),e}function pn(n){return new this(n).cbrt()}function mn(n){return j(n=new this(n),n.e+1,2)}function gn(n){if(!n||"object"!==typeof n)throw Error(m+"Object expected");var t,e,i,r=!0===n.defaults,o=["precision",1,c,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(e=o[t],r&&(this[e]=h[e]),void 0!==(i=n[e])){if(!(b(i)===i&&i>=o[t+1]&&i<=o[t+2]))throw Error(g+e+": "+i);this[e]=i}if(e="crypto",r&&(this[e]=h[e]),void 0!==(i=n[e])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(g+e+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(w);this[e]=!0}else this[e]=!1}return this}function vn(n){return new this(n).cos()}function wn(n){return new this(n).cosh()}function bn(n){var t,e,i;function r(n){var t,e,i,o=this;if(!(o instanceof r))return new r(n);if(o.constructor=r,n instanceof r)return o.s=n.s,void(p?!n.d||n.e>r.maxE?(o.e=NaN,o.d=null):n.e<r.minE?(o.e=0,o.d=[0]):(o.e=n.e,o.d=n.d.slice()):(o.e=n.e,o.d=n.d?n.d.slice():n.d));if(i=typeof n,"number"===i){if(0===n)return o.s=1/n<0?-1:1,o.e=0,void(o.d=[0]);if(n<0?(n=-n,o.s=-1):o.s=1,n===~~n&&n<1e7){for(t=0,e=n;e>=10;e/=10)t++;return void(p?t>r.maxE?(o.e=NaN,o.d=null):t<r.minE?(o.e=0,o.d=[0]):(o.e=t,o.d=[n]):(o.e=t,o.d=[n]))}return 0*n!==0?(n||(o.s=NaN),o.e=NaN,void(o.d=null)):J(o,n.toString())}if("string"!==i)throw Error(g+n);return 45===(e=n.charCodeAt(0))?(n=n.slice(1),o.s=-1):(43===e&&(n=n.slice(1)),o.s=1),C.test(n)?J(o,n):K(o,n)}if(r.prototype=L,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=gn,r.clone=bn,r.isDecimal=Cn,r.abs=on,r.acos=sn,r.acosh=an,r.add=un,r.asin=cn,r.asinh=ln,r.atan=fn,r.atanh=dn,r.atan2=hn,r.cbrt=pn,r.ceil=mn,r.cos=vn,r.cosh=wn,r.div=xn,r.exp=yn,r.floor=Nn,r.hypot=kn,r.ln=Sn,r.log=qn,r.log10=Tn,r.log2=_n,r.max=En,r.min=Ln,r.mod=Fn,r.mul=Dn,r.pow=On,r.random=Rn,r.round=In,r.sign=Mn,r.sin=jn,r.sinh=zn,r.sqrt=An,r.sub=Pn,r.tan=$n,r.tanh=Gn,r.trunc=Un,void 0===n&&(n={}),n&&!0!==n.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<i.length;)n.hasOwnProperty(e=i[t++])||(n[e]=this[e]);return r.config(n),r}function xn(n,t){return new this(n).div(t)}function yn(n){return new this(n).exp()}function Nn(n){return j(n=new this(n),n.e+1,3)}function kn(){var n,t,e=new this(0);for(p=!1,n=0;n<arguments.length;)if(t=new this(arguments[n++]),t.d)e.d&&(e=e.plus(t.times(t)));else{if(t.s)return p=!0,new this(1/0);e=t}return p=!0,e.sqrt()}function Cn(n){return n instanceof o||n&&"[object Decimal]"===n.name||!1}function Sn(n){return new this(n).ln()}function qn(n,t){return new this(n).log(t)}function _n(n){return new this(n).log(2)}function Tn(n){return new this(n).log(10)}function En(){return V(this,arguments,"lt")}function Ln(){return V(this,arguments,"gt")}function Fn(n,t){return new this(n).mod(t)}function Dn(n,t){return new this(n).mul(t)}function On(n,t){return new this(n).pow(t)}function Rn(n){var t,e,i,r,o=0,s=new this(1),a=[];if(void 0===n?n=this.precision:D(n,1,c),i=Math.ceil(n/q),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));o<i;)r=t[o],r>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(w);for(t=crypto.randomBytes(i*=4);o<i;)r=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24),r>=214e7?crypto.randomBytes(4).copy(t,o):(a.push(r%1e7),o+=4);o=i/4}else for(;o<i;)a[o++]=1e7*Math.random()|0;for(i=a[--o],n%=q,i&&n&&(r=x(10,q-n),a[o]=(i/r|0)*r);0===a[o];o--)a.pop();if(o<0)e=0,a=[0];else{for(e=-1;0===a[0];e-=q)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<q&&(e-=q-i)}return s.e=e,s.d=a,s}function In(n){return j(n=new this(n),n.e+1,this.rounding)}function Mn(n){return n=new this(n),n.d?n.d[0]?n.s:0*n.s:n.s||NaN}function jn(n){return new this(n).sin()}function zn(n){return new this(n).sinh()}function An(n){return new this(n).sqrt()}function Pn(n,t){return new this(n).sub(t)}function $n(n){return new this(n).tan()}function Gn(n){return new this(n).tanh()}function Un(n){return j(n=new this(n),n.e+1,1)}o=bn(h),o["default"]=o.Decimal=o,f=new o(f),d=new o(d),i=function(){return o}.call(t,e,t,n),void 0===i||(n.exports=i)}()},de46:function(n,t,e){(function(t){var i;function r(){var n=0,t=plus.ios.import("PHPhotoLibrary"),e=t.authorizationStatus();return n=0===e?null:3==e?1:0,plus.ios.deleteObject(t),n}function o(){var n=0,t=plus.ios.import("AVCaptureDevice"),e=t.authorizationStatusForMediaType("vide");return n=0===e?null:3==e?1:0,plus.ios.deleteObject(t),n}function s(){var n=0,t=plus.ios.import("CLLocationManager"),e=t.locationServicesEnabled(),i=t.authorizationStatus();return n=e?0===i?null:3===i||4===i?1:0:2,plus.ios.deleteObject(t),n}function a(){var n=0,e=plus.ios.import("UIApplication"),i=e.sharedApplication(),r=0;if(i.currentUserNotificationSettings){var o=i.currentUserNotificationSettings();r=o.plusGetAttribute("types"),0==r?(n=0,t.log("推送权限没有开启")):(n=1,t.log("已经开启推送功能!")),plus.ios.deleteObject(o)}else r=i.enabledRemoteNotificationTypes(),0==r?(n=3,t.log("推送权限没有开启!")):(n=4,t.log("已经开启推送功能!"));return plus.ios.deleteObject(i),plus.ios.deleteObject(e),n}function u(){var n=0,t=plus.ios.import("CNContactStore"),e=t.authorizationStatusForEntityType(0);return n=0===e?null:3==e?1:0,plus.ios.deleteObject(t),n}function c(){var n=null,e=plus.ios.import("AVAudioSession"),i=e.sharedInstance(),r=i.recordPermission();return t.log("permissionStatus:"+r),n=1970168948===r?null:1735552628===r?1:0,plus.ios.deleteObject(e),n}function l(){var n=null,e=plus.ios.import("EKEventStore"),i=e.authorizationStatusForEntityType(0);return 3==i?(n=1,t.log("日历权限已经开启")):t.log("日历权限没有开启"),plus.ios.deleteObject(e),n}function f(){var n=null,e=plus.ios.import("EKEventStore"),i=e.authorizationStatusForEntityType(1);return 3==i?(n=1,t.log("备忘录权限已经开启")):t.log("备忘录权限没有开启"),plus.ios.deleteObject(e),n}function d(n){return new Promise((function(t,e){switch(n){case"push":t(a());break;case"location":t(s());break;case"record":t(c());break;case"camera":t(o());break;case"album":t(r());break;case"contact":t(u());break;case"calendar":t(l());break;case"memo":t(f());break;default:t(0);break}}))}function h(n){return new Promise((function(e,i){plus.android.requestPermissions([n],(function(n){for(var i=0,r=0;r<n.granted.length;r++){var o=n.granted[r];t.log("已获取的权限:"+o),i=1}for(r=0;r<n.deniedPresent.length;r++){var s=n.deniedPresent[r];t.log("拒绝本次申请的权限:"+s),i=0}for(r=0;r<n.deniedAlways.length;r++){var a=n.deniedAlways[r];t.log("永久拒绝申请的权限:"+a),i=-1}e(i)}),(function(n){t.log("result error: "+n.message),e({code:n.code,message:n.message})}))}))}function p(){if(m.isIOS){var n=plus.ios.import("UIApplication"),t=n.sharedApplication(),e=plus.ios.import("NSURL"),i=e.URLWithString("app-settings:");t.openURL(i),plus.ios.deleteObject(i),plus.ios.deleteObject(e),plus.ios.deleteObject(t)}else{var r=plus.android.importClass("android.content.Intent"),o=plus.android.importClass("android.provider.Settings"),s=plus.android.importClass("android.net.Uri"),a=plus.android.runtimeMainActivity(),u=new r;u.setAction(o.ACTION_APPLICATION_DETAILS_SETTINGS);var c=s.fromParts("package",a.getPackageName(),null);u.setData(c),a.startActivity(u)}}e("d3b7");var m={get isIOS(){return"boolean"===typeof i?i:i="ios"===uni.getSystemInfoSync().platform},requestIOS:d,requestAndroid:h,gotoAppSetting:p};n.exports=m}).call(this,e("5a52")["default"])},f121:function(n,t,e){var i=e("7573");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var r=e("4f06").default;r("c22a78f2",i,!0,{sourceMap:!1,shadowMode:!1})},fa00:function(n,t,e){"use strict";e.r(t);var i=e("d733"),r=e("457d1");for(var o in r)"default"!==o&&function(n){e.d(t,n,(function(){return r[n]}))}(o);e("afa6");var s,a=e("f0c5"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"7c158fbc",null,!1,i["a"],s);t["default"]=u.exports},fb2c:function(n,t,e){var i=e("74e8");i("Uint32",(function(n){return function(t,e,i){return n(this,t,e,i)}}))}}]);