(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[2016],{72016:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var a=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"projectApplication"},[e._m(0),t("hr"),t("div",{staticClass:"selectInp"},[t("div",{staticClass:"manageSelects"},[t("div",{staticClass:"selectsBlock"},[t("div",{staticClass:"selectLabel"},[e._v("项目筛选")]),t("el-select",{attrs:{placeholder:"我的项目"},on:{change:e.getData},model:{value:e.selectInp.filter,callback:function(t){e.$set(e.selectInp,"filter",t)},expression:"selectInp.filter"}},[t("el-option",{attrs:{label:"所有项目",value:""}}),e._l(e.options.projectFilter,(function(e){return t("el-option",{key:e.courseId,attrs:{label:e.title,value:e.courseId}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("div",{staticClass:"selectLabel"},[e._v("部门")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.department,callback:function(t){e.$set(e.selectInp,"department",t)},expression:"selectInp.department"}},[t("el-option",{attrs:{label:"所有部门",value:""}}),e._l(e.options.department,(function(e){return t("el-option",{key:e.classid,attrs:{label:e.name,value:e.classid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("div",{staticClass:"selectLabel"},[e._v("分类")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.sort,callback:function(t){e.$set(e.selectInp,"sort",t)},expression:"selectInp.sort"}},[t("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.options.sort,(function(e){return t("el-option",{key:e.typeid,attrs:{label:e.name,value:e.typeid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("div",{staticClass:"selectLabel"},[e._v("负责人")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.person,callback:function(t){e.$set(e.selectInp,"person",t)},expression:"selectInp.person"}},[t("el-option",{attrs:{label:"所有负责人",value:""}}),e._l(e.options.person,(function(e,r){return t("el-option",{key:r,attrs:{label:e.pro_leader,value:e.pro_leader}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("div",{staticClass:"selectLabel"},[e._v("状态")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.state,callback:function(t){e.$set(e.selectInp,"state",t)},expression:"selectInp.state"}},[t("el-option",{attrs:{label:"所有状态",value:""}}),e._l(e.classType,(function(e,r){return t("el-option",{key:e.index,attrs:{label:e.title,value:e.value}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("年份")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.year,callback:function(t){e.$set(e.selectInp,"year",t)},expression:"selectInp.year"}},[t("el-option",{attrs:{label:"所有年份",value:""}}),e._l(e.options.year,(function(e){return t("el-option",{key:e.time,attrs:{label:e.time+"年",value:e.time}})}))],2)],1)]),t("div",{staticClass:"ProjectManagementQuery"},[t("el-input",{attrs:{placeholder:"输入项目名称/负责人/老师",clearable:""},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),t("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:e.getData}},[e._v("查询")])],1),0==e.$store.state.userInfo.type?t("div",{staticClass:"ProjectManagementQuery",staticStyle:{"margin-top":"60px"}},[t("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.exportExcel.apply(null,arguments)}}},[e._v("导出EXCEL")])],1):e._e()]),t("div",[t("div",[0==e.$store.state.userInfo.type||3==e.$store.state.userInfo.type?t("el-button",{staticStyle:{"font-size":"16px"},attrs:{size:"mini",type:e.isPromotion?"":"primary"},on:{click:e.selectAll}},[e._v("全部")]):e._e(),0==e.$store.state.userInfo.type||3==e.$store.state.userInfo.type?t("el-button",{staticStyle:{"font-size":"16px"},attrs:{size:"mini",type:e.isPromotion?"primary":""},on:{click:e.selectPromotion}},[e._v("2024年立项项目")]):e._e(),t("span",{staticStyle:{"font-size":"12px","margin-left":"10px"}},[e._v("共 "+e._s(e.table.total)+" 条")])],1),t("el-table",{ref:"multipleTable",staticClass:"fontSize",attrs:{data:e.tableData,"tooltip-effect":"dark",stripe:"","header-cell-style":{background:"#f2f2f2",color:"#000"}},on:{"selection-change":e.handleSelectionChange,"cell-click":e.cellProjectClick}},[t("el-table-column",{attrs:{prop:"ProjectNo",label:"项目编号",align:"center","min-width":"20%"}}),t("el-table-column",{attrs:{prop:"title",label:"项目名称",align:"center","min-width":"35%"}}),t("el-table-column",{attrs:{prop:"pro_leader",align:"center",label:"项目负责人","min-width":"15%"}}),t("el-table-column",{attrs:{prop:"name",align:"center",label:"所在部门","min-width":"20%"}}),t("el-table-column",{attrs:{prop:"sort",align:"center",label:"分类","min-width":"20%"}}),t("el-table-column",{attrs:{prop:"fund",label:"预算(万)",align:"center","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(" "+e._s(r.row.fund/1e4)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"createTime",align:"center",label:"创建时间","min-width":"25%"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(" "+e._s(r.row.createTime.split(" ")[0])),t("br"),e._v(e._s(r.row.createTime.split(" ")[1])+" ")])]}}])}),t("el-table-column",{attrs:{prop:"phone",align:"center",label:"联系电话","min-width":"20%"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(" "+e._s(null!=r.row.phone||""==r.row.phone?r.row.phone:"-")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"state",label:"状态",align:"center","min-width":"20%"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[0!=r.row.isReturn?t("span",[e._v(e._s(e.isReturnType[r.row.isReturn]))]):t("span",[e._v(e._s(e.classType.find((e=>e.value==r.row.isupload))["title"]))])])]}}])}),t("el-table-column",{attrs:{prop:"operation",width:"370",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"operations"},[t("el-button",{staticClass:"btnClass",attrs:{type:"primary",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.lookDetail(r.row.courseId,r.row.typeid)}}},[e._v("查看详情")]),0==r.row.isupload?t("el-button",{staticClass:"btnClass",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.audit(r.row,0)}}},[e._v("提交")]):e._e(),1==r.row.isupload?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary"}},[e._v("已提交")]):e._e(),[5,6,7].includes(r.row.isupload)&&![0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("审核中")]):e._e(),2!=r.row.isupload||[0,3].includes(e.$store.state.userInfo.type)?e._e():t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("待结项")]),3!=r.row.isupload||[0,3].includes(e.$store.state.userInfo.type)?e._e():t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("结项中")]),4!=r.row.isupload||[0,3].includes(e.$store.state.userInfo.type)?e._e():t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("已结项")]),r.row.isupload>1&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary"}},[e._v("已提交")]):e._e(),0==r.row.isupload&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("审核")]):e._e(),1==r.row.isupload&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"btnClass",attrs:{type:"primary",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.audit(r.row,1)}}},[e._v("审核")]):e._e(),[3,5,6,7].includes(r.row.isupload)&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("审核中")]):e._e(),2==r.row.isupload&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("待结项")]):e._e(),[4].includes(r.row.isupload)&&[0,3].includes(e.$store.state.userInfo.type)?t("el-button",{staticClass:"disa btnClass",attrs:{type:"primary",size:"mini"}},[e._v("已结项")]):e._e(),t("el-button",{staticClass:"btnClass",attrs:{type:"primary",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.del(r.row)}}},[e._v("删除")])],1)]}}])})],1)],1),t("el-pagination",{staticClass:"paginations",attrs:{"current-page":e.table.currentPage,"page-size":e.table.packageSize,layout:" prev, pager, next",background:"",total:e.table.total},on:{"current-change":e.handleCurrentChange}}),t("el-dialog",{staticClass:"pageSubmitData",attrs:{title:"立项审核",visible:e.dialogVisible,width:"700px","before-close":e.init},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"diaTit"},[t("div",{staticClass:"spans"},[e._v("项目名称:")]),t("div",{staticClass:"spanCon"},[e._v(e._s(e.auditDialog.projectName))]),t("div",{staticClass:"spans"},[e._v("项目负责人:")]),t("div",{staticClass:"spanCon"},[e._v(e._s(e.auditDialog.person))])]),t("div",{staticClass:"diaTit1"},[t("div",{staticClass:"spans1"},[e._v("所在部门")]),t("div",{staticClass:"inp"},[t("el-input",{attrs:{disabled:"",placeholder:"所在部门"},model:{value:e.auditDialog.department,callback:function(t){e.$set(e.auditDialog,"department",t)},expression:"auditDialog.department"}})],1)]),t("div",{staticClass:"diaTit1"},[t("div",{staticClass:"spans1"},[e._v("预算总经费")]),t("div",{staticClass:"inp"},[t("el-input",{attrs:{disabled:"",placeholder:"预算总经费"},model:{value:e.auditDialog.fund,callback:function(t){e.$set(e.auditDialog,"fund",t)},expression:"auditDialog.fund"}})],1)]),t("div",{staticClass:"diaTit1"},[t("div",{staticClass:"spans1"},[e._v("联系电话")]),t("div",{staticClass:"inp"},[t("el-input",{attrs:{disabled:"",placeholder:"联系电话"},model:{value:e.auditDialog.tel,callback:function(t){e.$set(e.auditDialog,"tel",t)},expression:"auditDialog.tel"}})],1)]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[0==e.isManager?t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.ApplyPersonCommit}},[e._v("确定")]):e._e(),1==e.isManager?t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.ManagerCommit}},[e._v("立项通过")]):e._e(),1==e.isManager?t("el-tooltip",{attrs:{effect:"light",content:"(直接进入学校终审状态)",placement:"top"}},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.ManagerCommit2}},[e._v(" 二次审核通过 ")])],1):e._e(),1==e.isManager?t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.rejectApply}},[e._v("撤回")]):e._e(),t("el-button",{staticClass:"AllDialogBtn",on:{click:e.init}},[e._v("取消")])],1)]),t("el-dialog",{staticClass:"pageSubmitData",attrs:{title:"删除项目",visible:e.dialogVisible2,width:"600px"},on:{"update:visible":function(t){e.dialogVisible2=t}}},[t("div",{staticClass:"deleteContent"},[e._v("确定删除项目?")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.dialogDel}},[e._v("确认")]),t("el-button",{staticClass:"AllDialogBtn",on:{click:e.init}},[e._v("取消")])],1)])],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pAHeader"},[t("div",{staticClass:"pAHeader1"},[e._v("项目立项管理")])])}],s=(r(57658),{data(){return{isPromotion:"",iid:"",loading:!1,textarea:"",input:"",dialogVisible:!1,dialogVisible1:!1,dialogVisible2:!1,WordPreview:!1,downloadWord:!1,PreviewTid:"",PreviewData:"",rejectApplyText:"",isManager:0,table:{total:0,packageSize:7,currentPage:1},tableData:[],classType:[{index:0,value:"0",title:"未提交"},{index:1,value:"1",title:"已提交"},{index:2,value:"5",title:"所在学院/部门审核中"},{index:3,value:"6",title:"双创学院审核中"},{index:4,value:"7",title:"学校终审中"},{index:5,value:"2",title:"待结项"},{index:6,value:"3",title:"提交结项中"},{index:7,value:"4",title:"已结项"}],isReturnType:{5:"所在学院/部门审核驳回",6:"双创学院审核驳回",7:"学校终审驳回"},selectInp:{filter:"",department:"",sort:"",person:"",state:"",year:""},options:{projectFilter:[],department:[],sort:[],person:[],state:[],year:[]},auditDialog:{projectName:"",person:"",department:"",fund:"",tel:""}}},methods:{selectAll(){console.log("所有"),this.isPromotion="",this.getData()},selectPromotion(){console.log("晋级"),this.isPromotion=1,this.getData()},init(){this.dialogVisible=!1,this.dialogVisible1=!1,this.dialogVisible2=!1},audit(e,t){this.isManager=t,this.iid=e,this.dialogVisible=!0,this.auditDialog.projectName=e.title,this.auditDialog.person=e.pro_leader,this.auditDialog.department=e.name,this.auditDialog.fund=e.fund,this.auditDialog.tel=e.phone||"-"},appTable(e,t){"5e21b204-c206-11ed-a4cd-509a4c5b67cf"==e?this.ajax.get(this.$store.state.api+"/SelectProjectWordMakerStudent",{uid:this.$store.state.userInfo.userid,pid:t}).then((e=>{e["data"];this.downloadWord=!0})).catch((e=>{console.log(e)})):"5f7a66d5-c206-11ed-a4cd-509a4c5b67cf"==e?this.ajax.get(this.$store.state.api+"/SelectProjectWordMakerSpace",{uid:this.$store.state.userInfo.userid,pid:t}).then((t=>{this.PreviewData=[t["data"][0][0],t["data"][1]],this.WordPreview=!0,this.PreviewTid=e})).catch((e=>{console.log(e)})):this.$message.error("错误")},downWord(e){"5f7a66d5-c206-11ed-a4cd-509a4c5b67cf"==this.PreviewTid?MakerSpaceWord(this.PreviewData[0],this.PreviewData[1]):getWord(e[0][0])},ManagerCommit(){let e={pid:this.iid.courseId};this.ajax.get(this.$store.state.api+"/selectSign",e).then((e=>{let t=e.data[0].length>0?Math.max(...e.data[0].map((e=>e.isAgree))):1;if(2!=t){let e={uid:this.$store.state.userInfo.userid,pid:this.iid.courseId,num:5};this.ajax.post(this.$store.state.api+"/updateIsupload",e).then((e=>{this.dialogVisible=!1,this.$message.success("已通过"),this.getData()}),(e=>{console.log(e)}))}else{let t="项目已被驳回,原因为:";for(var r=0;r{console.log(e)}))},ManagerCommit2(){let e={uid:this.$store.state.userInfo.userid,pid:this.iid.courseId,num:7};this.ajax.post(this.$store.state.api+"/updateIsupload",e).then((e=>{this.dialogVisible=!1,this.$message.success("已通过"),this.getData()}),(e=>{console.log(e)}))},ApplyPersonCommit(){let e={pid:this.iid.courseId};this.ajax.get(this.$store.state.api+"/selectSign",e).then((e=>{let t=e.data[0].length>0?Math.max(...e.data[0].map((e=>e.isAgree))):1;if(2!=t){let e={uid:this.$store.state.userInfo.userid,pid:this.iid.courseId,num:1};this.ajax.post(this.$store.state.api+"/updateIsupload",e).then((e=>{this.dialogVisible=!1,this.$message.success("已提交"),this.getData()}))}else{let t="项目已被驳回,原因为:";for(var r=0;r{console.log(e)}))},rejectApply(){let e={uid:this.$store.state.userInfo.userid,pid:this.iid.courseId,num:0};this.ajax.post(this.$store.state.api+"/updateIsupload",e).then((e=>{this.dialogVisible=!1,this.$message.success("已撤回项目申请"),this.getData()}))},commit2(e){this.dialogVisible1=!1,this.status--},handleSelectionChange(e){this.multipleSelection=e},cellProjectClick(e,t,r,a){"operation"!=t.property&&this.lookDetail(e.courseId,e.typeid)},lookDetail(e,t){this.$router.push(`/projectApplicationDetailMain?tid=${t}&pid=${e}`)},getData(){if(this.loading)return;this.loading=!0;let e={uid:this.$store.state.userInfo.userid,pid:this.selectInp.filter,did:this.selectInp.department,tid:this.selectInp.sort,leader:this.selectInp.person,st:this.selectInp.state,year:this.selectInp.year,textInp:encodeURIComponent(this.input),promotion:this.isPromotion,page:this.table.currentPage,lim:this.table.packageSize};this.tableData=[],this.ajax.get(this.$store.state.api+"/SelectAllProject",e).then((e=>{let t=e.data;if(console.log(t),0==t[0].length&&0!=t[5][0]["total"])return this.table.currentPage=1,this.loading=!1,this.getData();let r=this.options;this.tableData=t[0],r.projectFilter=t[1],r.department=t[2],r.sort=t[3],r.person=t[4],r.year=t[6],0==r.year.filter((e=>e["time"]==(new Date).getFullYear().toString())).length&&r.year.push({time:(new Date).getFullYear().toString()}),this.table.total=t[5][0].total,this.loading=!1}),(e=>{console.log(e)}))},del(e){this.dialogVisible2=!0,this.iid=e},dialogDel(){let e={uid:this.$store.state.userInfo.userid,pid:this.iid.courseId};this.ajax.post(this.$store.state.api+"/DeleteProject",e).then((e=>{if(console.log(e),e.data)return this.$message.success("删除成功"),this.getData(),void(this.dialogVisible2=!1);this.$message.error("删除失败")}),(e=>{console.log(e)}))},handleCurrentChange(e){this.table.currentPage=e,this.getData()},exportExcel(){this.$confirm("是否导出Excel?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((()=>{this.loading=!0;let e={uid:this.$store.state.userInfo.userid,pid:this.selectInp.filter,did:this.selectInp.department,tid:this.selectInp.sort,leader:this.selectInp.person,st:this.selectInp.state,year:this.selectInp.year,textInp:encodeURIComponent(this.input),promotion:this.isPromotion,page:1,lim:99999999};this.ajax.get(this.$store.state.api+"/SelectAllProject",e).then((e=>{let t=e.data[0],a=[];t.forEach(((e,t)=>{let r={},n=(e.course_teacher&&JSON.parse(e.course_teacher),e.course_student&&JSON.parse(e.course_student),e.money?JSON.parse(e.money):{});r["项目名称"]=e.title,r["项目负责人"]=e.pro_leader,r["小型仪器设备费"]=n["device"]?n["device"]:"0",r["材料费"]=n["Material"]?n["Material"]:"0",r["测试化验加工费"]=n["processing"]?n["processing"]:"0",r["项目协作费"]=n["Collaboration"]?n["Collaboration"]:"0",r["项目成果鉴定费"]=n["APPRAISAL"]?n["APPRAISAL"]:"0",r["参展参赛费"]=n["entery"]?n["entery"]:"0",r["创客交流活动费"]=n["activities"]?n["activities"]:"0",r["知识产权事务费"]=n["Transaction"]?n["Transaction"]:"0",a.push(r)}));let n=r(87092);const s=n.utils.book_new();let i=n.utils.json_to_sheet(a);i["!cols"]=[{wch:50},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10}],n.utils.book_append_sheet(s,i,"sheet1"),n.writeFile(s,"项目列表.xlsx"),this.loading=!1,console.log(t)}))})).catch((()=>{}))}},watch:{},mounted(){this.selectInp.year=(new Date).getFullYear().toString()},activated(){this.getData()}}),i=s,o=r(43736),c=(0,o.Z)(i,a,n,!1,null,"8ddf32de",null),l=c.exports},67066:function(e,t,r){"use strict";var a=r(19670);e.exports=function(){var e=a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},92087:function(e,t,r){var a=r(17854),n=r(19781),s=r(47045),i=r(67066),o=r(47293),c=a.RegExp,l=c.prototype,f=n&&o((function(){var e=!0;try{c(".","d")}catch(f){e=!1}var t={},r="",a=e?"dgimsy":"gimsy",n=function(e,a){Object.defineProperty(t,e,{get:function(){return r+=a,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(s.hasIndices="d"),s)n(i,s[i]);var o=Object.getOwnPropertyDescriptor(l,"flags").get.call(t);return o!==a||r!==a}));f&&s(l,"flags",{configurable:!0,get:i})},87092:function(e,t,r){"use strict";r.r(t),r.d(t,{CFB:function(){return Qe},SSF:function(){return Xe},parse_xlscfb:function(){return dv},parse_zip:function(){return jg},read:function(){return aw},readFile:function(){return nw},readFileSync:function(){return nw},set_cptable:function(){return w},set_fs:function(){return tt},stream:function(){return jw},utils:function(){return Bw},version:function(){return Gw},write:function(){return pw},writeFile:function(){return bw},writeFileAsync:function(){return gw},writeFileSync:function(){return bw},writeFileXLSX:function(){return vw},writeXLSX:function(){return dw}});r(23767),r(8585),r(68696),r(57658),r(30541),r(92087);var a={version:"0.18.5"},n=1200,s=1252,i=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],o={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},c=function(e){-1!=i.indexOf(e)&&(s=o[0]=e)};function l(){c(1252)}var f=function(e){n=e,c(e)};function h(){f(1200),l()}function u(e){for(var t=[],r=0,a=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function p(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var m,b=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?d(e.slice(2)):254==t&&255==r?p(e.slice(2)):65279==t?e.slice(1):e},v=function(e){return String.fromCharCode(e)},g=function(e){return String.fromCharCode(e)};function w(e){m=e,f=function(e){n=e,c(e)},b=function(e){return 255===e.charCodeAt(0)&&254===e.charCodeAt(1)?m.utils.decode(1200,u(e.slice(2))):e},v=function(e){return 1200===n?String.fromCharCode(e):m.utils.decode(n,[255&e,e>>8])[0]},g=function(e){return m.utils.decode(s,[e])[0]},ta()}var k=null,T=!0,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function y(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0,c=0,l=0;l>2,a=e.charCodeAt(l++),i=(3&r)<<4|a>>4,n=e.charCodeAt(l++),o=(15&a)<<2|n>>6,c=63&n,isNaN(a)?o=c=64:isNaN(n)&&(c=64),t+=E.charAt(s)+E.charAt(i)+E.charAt(o)+E.charAt(c);return t}function S(e){var t="",r=0,a=0,n=0,s=0,i=0,o=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4,t+=String.fromCharCode(r),o=E.indexOf(e.charAt(l++)),a=(15&i)<<4|o>>2,64!==o&&(t+=String.fromCharCode(a)),c=E.indexOf(e.charAt(l++)),n=(3&o)<<6|c,64!==c&&(t+=String.fromCharCode(n));return t}var _=function(){return"undefined"!==typeof Buffer&&"undefined"!==typeof process&&"undefined"!==typeof process.versions&&!!process.versions.node}(),x=function(){if("undefined"!==typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function A(e){return _?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function C(e){return _?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var R=function(e){return _?x(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function I(e){if("undefined"===typeof ArrayBuffer)return R(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a!=e.length;++a)r[a]=255&e.charCodeAt(a);return t}function O(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r>6&31,n[r++]=128|63&i;else if(i>=55296&&i<57344){i=64+(1023&i);var o=1023&e.charCodeAt(++s);n[r++]=240|i>>8&7,n[r++]=128|i>>2&63,n[r++]=128|o>>6&15|(3&i)<<4,n[r++]=128|63&o}else n[r++]=224|i>>12&15,n[r++]=128|i>>6&63,n[r++]=128|63&i;r>a&&(t.push(n.slice(0,r)),r=0,n=A(65535),a=65530)}return t.push(n.slice(0,r)),F(t)}var M=/\u0000/g,L=/[\u0001-\u0006]/g;function U(e){var t="",r=e.length-1;while(r>=0)t+=e.charAt(r--);return t}function B(e,t){var r=""+e;return r.length>=t?r:yt("0",t-r.length)+r}function W(e,t){var r=""+e;return r.length>=t?r:yt(" ",t-r.length)+r}function H(e,t){var r=""+e;return r.length>=t?r:r+yt(" ",t-r.length)}function z(e,t){var r=""+Math.round(e);return r.length>=t?r:yt("0",t-r.length)+r}function V(e,t){var r=""+e;return r.length>=t?r:yt("0",t-r.length)+r}var j=Math.pow(2,32);function G(e,t){if(e>j||e<-j)return z(e,t);var r=Math.round(e);return V(r,t)}function X(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var Y=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],K=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function J(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Z={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},q={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Q={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function ee(e,t,r){var a=e<0?-1:1,n=e*a,s=0,i=1,o=0,c=1,l=0,f=0,h=Math.floor(n);while(lt&&(l>t?(f=c,o=s):(f=l,o=i)),!r)return[0,a*o,f];var u=Math.floor(a*o/f);return[u,a*o-u*f,f]}function te(e,t,r){if(e>2958465||e<0)return null;var a=0|e,n=Math.floor(86400*(e-a)),s=0,i=[],o={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(a+=1462),o.u>.9999&&(o.u=0,86400==++n&&(o.T=n=0,++a,++o.D)),60===a)i=r?[1317,10,29]:[1900,2,29],s=3;else if(0===a)i=r?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var c=new Date(1900,0,1);c.setDate(c.getDate()+a-1),i=[c.getFullYear(),c.getMonth()+1,c.getDate()],s=c.getDay(),a<60&&(s=(s+6)%7),r&&(s=ue(c,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=s,o}var re=new Date(1899,11,31,0,0,0),ae=re.getTime(),ne=new Date(1900,2,1,0,0,0);function se(e,t){var r=e.getTime();return t?r-=1262304e5:e>=ne&&(r+=864e5),(r-(ae+6e4*(e.getTimezoneOffset()-re.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ce(e){var t=e<0?12:11,r=ie(e.toFixed(12));return r.length<=t?r:(r=e.toPrecision(10),r.length<=t?r:e.toExponential(5))}function le(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function fe(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?ce(e):10===r?e.toFixed(10).substr(0,12):le(e),ie(oe(t.toUpperCase()))}function he(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):fe(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Ve(14,se(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ue(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function de(e,t,r,a){var n,s="",i=0,o=0,c=r.y,l=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:n=c%100,l=2;break;default:n=c%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:n=r.m,l=t.length;break;case 3:return K[r.m-1][1];case 5:return K[r.m-1][0];default:return K[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:n=r.d,l=t.length;break;case 3:return Y[r.q][0];default:return Y[r.q][1]}break;case 104:switch(t.length){case 1:case 2:n=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:n=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:n=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(o=a>=2?3===a?1e3:100:1===a?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),"s"===t?0===i?"0":""+i/o:(s=B(i,2+a),"ss"===t?s.substr(0,2):"."+s.substr(2,t.length-1))):B(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":n=24*r.D+r.H;break;case"[m]":case"[mm]":n=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":n=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:n=c,l=1;break}var f=l>0?B(n,l):"";return f}function pe(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,a=e.substr(0,r);r!=e.length;r+=t)a+=(a.length>0?",":"")+e.substr(r,t);return a}var me=/%/g;function be(e,t,r){var a=t.replace(me,""),n=t.length-a.length;return Pe(e,a,r*Math.pow(10,2*n))+yt("%",n)}function ve(e,t,r){var a=t.length-1;while(44===t.charCodeAt(a-1))--a;return Pe(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}function ge(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ge(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n),-1===r.indexOf("e")){var i=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s);while("0."===r.substr(0,2))r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var we=/# (\?+)( ?)\/( ?)(\d+)/;function ke(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),s=Math.floor(n/a),i=n-s*a,o=a;return r+(0===s?"":""+s)+" "+(0===i?yt(" ",e[1].length+1+e[4].length):W(i,e[1].length)+e[2]+"/"+e[3]+B(o,e[4].length))}function Te(e,t,r){return r+(0===t?"":""+t)+yt(" ",e[1].length+2+e[4].length)}var Ee=/^#*0*\.([0#]+)/,ye=/\).*[0#]/,Se=/\(###\) ###\\?-####/;function _e(e){for(var t,r="",a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function xe(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Ae(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function Ce(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Re(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Ie(e,t,r){if(40===e.charCodeAt(0)&&!t.match(ye)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ie("n",a,r):"("+Ie("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return ve(e,t,r);if(-1!==t.indexOf("%"))return be(e,t,r);if(-1!==t.indexOf("E"))return ge(t,r);if(36===t.charCodeAt(0))return"$"+Ie(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+G(c,t.length);if(t.match(/^[#?]+$/))return n=G(r,0),"0"===n&&(n=""),n.length>t.length?n:_e(t.substr(0,t.length-n.length))+n;if(s=t.match(we))return ke(s,c,l);if(t.match(/^#+0+$/))return l+G(c,t.length-t.indexOf("0"));if(s=t.match(Ee))return n=xe(r,s[1].length).replace(/^([^\.]+)$/,"$1."+_e(s[1])).replace(/\.$/,"."+_e(s[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+yt("0",_e(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+xe(c,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+pe(G(c,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ie(e,t,-r):pe(""+(Math.floor(r)+Ce(r,s[1].length)))+"."+B(Ae(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return Ie(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=U(Ie(e,t.replace(/[\\-]/g,""),r)),i=0,U(U(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i=0?Fe("n",a,r):"("+Fe("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return Oe(e,t,r);if(-1!==t.indexOf("%"))return Ne(e,t,r);if(-1!==t.indexOf("E"))return De(t,r);if(36===t.charCodeAt(0))return"$"+Fe(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+B(c,t.length);if(t.match(/^[#?]+$/))return n=""+r,0===r&&(n=""),n.length>t.length?n:_e(t.substr(0,t.length-n.length))+n;if(s=t.match(we))return Te(s,c,l);if(t.match(/^#+0+$/))return l+B(c,t.length-t.indexOf("0"));if(s=t.match(Ee))return n=(""+r).replace(/^([^\.]+)$/,"$1."+_e(s[1])).replace(/\.$/,"."+_e(s[1])),n=n.replace(/\.(\d*)$/,(function(e,t){return"."+t+yt("0",_e(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+pe(""+c);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Fe(e,t,-r):pe(""+r)+"."+yt("0",s[1].length);if(s=t.match(/^#,#*,#0/))return Fe(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=U(Fe(e,t.replace(/[\\-]/g,""),r)),i=0,U(U(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===r);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function Be(e,t,r,a){var n,s,i,o=[],c="",l=0,f="",h="t",u="H";while(l=12?"P":"A"),m.t="T",u="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"PM":"AM"),m.t="T",l+=5,u="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"下午":"上午"),m.t="T",l+=5,u="h"):(m.t="t",++l),null==n&&"T"===m.t)return"";o[o.length]=m,h=f;break;case"[":c=f;while("]"!==e.charAt(l++)&&l-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ue(e)||(o[o.length]={t:"t",v:c}));break;case".":if(null!=n){c=f;while(++l-1)c+=f;o[o.length]={t:"n",v:c};break;case"?":c=f;while(e.charAt(++l)===f)c+=f;o[o.length]={t:f,v:c},h=f;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":o[o.length]={t:1===a?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c=f;while(l-1)c+=e.charAt(l);o[o.length]={t:"D",v:c};break;case" ":o[o.length]={t:f,v:f},++l;break;case"$":o[o.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"t",v:f},++l;break}var b,v=0,g=0;for(l=o.length-1,h="t";l>=0;--l)switch(o[l].t){case"h":case"H":o[l].t=u,h="h",v<1&&(v=1);break;case"s":(b=o[l].v.match(/\.0+$/))&&(g=Math.max(g,b[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=o[l].t;break;case"m":"s"===h&&(o[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&o[l].v.match(/[Hh]/)&&(v=1),v<2&&o[l].v.match(/[Mm]/)&&(v=2),v<3&&o[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H);break;case 2:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M);break}var w,k="";for(l=0;l0){40==k.charCodeAt(0)?(T=t<0&&45===k.charCodeAt(0)?-t:t,E=Pe("n",k,T)):(T=t<0&&a>1?-t:t,E=Pe("n",k,T),T<0&&o[0]&&"t"==o[0].t&&(E=E.substr(1),o[0].v="-"+o[0].v)),w=E.length-1;var S=o.length;for(l=0;l-1){S=l;break}var _=o.length;if(S===o.length&&-1===E.indexOf("E")){for(l=o.length-1;l>=0;--l)null!=o[l]&&-1!=="n?".indexOf(o[l].t)&&(w>=o[l].v.length-1?(w-=o[l].v.length,o[l].v=E.substr(w+1,o[l].v.length)):w<0?o[l].v="":(o[l].v=E.substr(0,w+1),w=-1),o[l].t="t",_=l);w>=0&&_=0;--l)if(null!=o[l]&&-1!=="n?".indexOf(o[l].t)){for(s=o[l].v.indexOf(".")>-1&&l===S?o[l].v.indexOf(".")-1:o[l].v.length-1,y=o[l].v.substr(s+1);s>=0;--s)w>=0&&("0"===o[l].v.charAt(s)||"#"===o[l].v.charAt(s))&&(y=E.charAt(w--)+y);o[l].v=y,o[l].t="t",_=l}for(w>=0&&_-1&&l===S?o[l].v.indexOf(".")+1:0,y=o[l].v.substr(0,s);s-1&&(T=a>1&&t<0&&l>0&&"-"===o[l-1].v?-t:t,o[l].v=Pe(o[l].t,o[l].v,T),o[l].t="t");var x="";for(l=0;l!==o.length;++l)null!=o[l]&&(x+=o[l].v);return x}var We=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function He(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function ze(e,t){var r=Me(e),a=r.length,n=r[a-1].indexOf("@");if(a<4&&n>-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!==typeof t)return[4,4===r.length||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break;case 4:break}var s=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[a,s];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var i=r[0].match(We),o=r[1].match(We);return He(t,i)?[a,r[0]]:He(t,o)?[a,r[1]]:[a,r[null!=i&&null!=o?2:1]]}return[a,s]}function Ve(e,t,r){null==r&&(r={});var a="";switch(typeof e){case"string":a="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":a=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:Z)[e],null==a&&(a=r.table&&r.table[q[e]]||Z[q[e]]),null==a&&(a=Q[e]||"General");break}if(X(a,0))return he(t,r);t instanceof Date&&(t=se(t,r.date1904));var n=ze(a,t);if(X(n[1]))return he(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return Be(n[1],t,r,n[0])}function je(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(void 0!=Z[r]){if(Z[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return Z[t]=e,t}function Ge(e){for(var t=0;392!=t;++t)void 0!==e[t]&&je(e[t],t)}function $e(){Z=J()}var Xe={format:Ve,load:je,_table:Z,load_table:Ge,parse_date_code:te,is_date:Ue,get_table:function(){return Xe._table=Z}},Ye={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ke=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Je(e){var t="number"==typeof e?Z[e]:e;return t=t.replace(Ke,"(\\d+)"),new RegExp("^"+t+"$")}function Ze(e,t,r){var a=-1,n=-1,s=-1,i=-1,o=-1,c=-1;(t.match(Ke)||[]).forEach((function(e,t){var l=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=l;break;case"d":s=l;break;case"h":i=l;break;case"s":c=l;break;case"m":i>=0?o=l:n=l;break}})),c>=0&&-1==o&&n>=0&&(o=n,n=-1);var l=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var f=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==i&&-1==o&&-1==c?l:-1==a&&-1==n&&-1==s?f:l+"T"+f}var qe=function(){var e={};function t(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=r,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var r=t();function a(e){var t=0,r=0,a=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)n[a]=e[a];for(a=0;256!=a;++a)for(r=e[a],t=256+a;t<4096;t+=256)r=n[t]=r>>>8^e[255&r];var s=[];for(a=1;16!=a;++a)s[a-1]="undefined"!==typeof Int32Array?n.subarray(256*a,256*a+256):n.slice(256*a,256*a+256);return s}var n=a(r),s=n[0],i=n[1],o=n[2],c=n[3],l=n[4],f=n[5],h=n[6],u=n[7],d=n[8],p=n[9],m=n[10],b=n[11],v=n[12],g=n[13],w=n[14];function k(e,t){for(var a=-1^t,n=0,s=e.length;n>>8^r[255&(a^e.charCodeAt(n++))];return~a}function T(e,t){for(var a=-1^t,n=e.length-15,k=0;k>8&255]^v[e[k++]^a>>16&255]^b[e[k++]^a>>>24]^m[e[k++]]^p[e[k++]]^d[e[k++]]^u[e[k++]]^h[e[k++]]^f[e[k++]]^l[e[k++]]^c[e[k++]]^o[e[k++]]^i[e[k++]]^s[e[k++]]^r[e[k++]];n+=15;while(k>>8^r[255&(a^e[k++])];return~a}function E(e,t){for(var a=-1^t,n=0,s=e.length,i=0,o=0;n>>8^r[255&(a^i)]:i<2048?(a=a>>>8^r[255&(a^(192|i>>6&31))],a=a>>>8^r[255&(a^(128|63&i))]):i>=55296&&i<57344?(i=64+(1023&i),o=1023&e.charCodeAt(n++),a=a>>>8^r[255&(a^(240|i>>8&7))],a=a>>>8^r[255&(a^(128|i>>2&63))],a=a>>>8^r[255&(a^(128|o>>6&15|(3&i)<<4))],a=a>>>8^r[255&(a^(128|63&o))]):(a=a>>>8^r[255&(a^(224|i>>12&15))],a=a>>>8^r[255&(a^(128|i>>6&63))],a=a>>>8^r[255&(a^(128|63&i))]);return~a}return e.table=r,e.bstr=k,e.buf=T,e.str=E,e}(),Qe=function(){var e,t={};function r(e,t){for(var r=e.split("/"),a=t.split("/"),n=0,s=0,i=Math.min(r.length,a.length);n>>1,e.write_shift(2,r);var a=t.getFullYear()-1980;a=a<<4|t.getMonth()+1,a=a<<5|t.getDate(),e.write_shift(2,a)}function i(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),a=new Date,n=31&r;r>>>=5;var s=15&r;r>>>=4,a.setMilliseconds(0),a.setFullYear(r+1980),a.setMonth(s-1),a.setDate(n);var i=31&t;t>>>=5;var o=63&t;return t>>>=6,a.setHours(t),a.setMinutes(o),a.setSeconds(i<<1),a}function o(e){pa(e,0);var t={},r=0;while(e.l<=e.length-4){var a=e.read_shift(2),n=e.read_shift(2),s=e.l+n,i={};switch(a){case 21589:r=e.read_shift(1),1&r&&(i.mtime=e.read_shift(4)),n>5&&(2&r&&(i.atime=e.read_shift(4)),4&r&&(i.ctime=e.read_shift(4))),i.mtime&&(i.mt=new Date(1e3*i.mtime));break}e.l=s,t[a]=i}return t}function c(){return e||(e={})}function l(e,t){if(80==e[0]&&75==e[1])return Oe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return We(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r=3,a=512,n=0,s=0,i=0,o=0,c=0,l=[],p=e.slice(0,512);pa(p,0);var b=f(p);switch(r=b[0],r){case 3:a=512;break;case 4:a=4096;break;case 0:if(0==b[1])return Oe(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==a&&(p=e.slice(0,a),pa(p,28));var w=e.slice(0,a);h(p,r);var k=p.read_shift(4,"i");if(3===r&&0!==k)throw new Error("# Directory Sectors: Expected 0 saw "+k);p.l+=4,i=p.read_shift(4,"i"),p.l+=4,p.chk("00100000","Mini Stream Cutoff Size: "),o=p.read_shift(4,"i"),n=p.read_shift(4,"i"),c=p.read_shift(4,"i"),s=p.read_shift(4,"i");for(var T=-1,E=0;E<109;++E){if(T=p.read_shift(4,"i"),T<0)break;l[E]=T}var y=u(e,a);m(c,s,y,a,l);var S=v(y,i,l,a);S[i].name="!Directory",n>0&&o!==B&&(S[o].name="!MiniFAT"),S[l[0]].name="!FAT",S.fat_addrs=l,S.ssz=a;var _={},x=[],A=[],C=[];g(i,S,y,x,n,_,A,o),d(A,C,x),x.shift();var R={FileIndex:A,FullPaths:C};return t&&t.raw&&(R.raw={header:w,sectors:y}),R}function f(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(W,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function h(e,t){var r=9;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function u(e,t){for(var r=Math.ceil(e.length/t)-1,a=[],n=1;n0&&i>=0)s.push(t.slice(i*U,i*U+U)),n-=U,i=ia(r,4*i);return 0===s.length?ba(0):F(s).slice(0,e.size)}function m(e,t,r,a,n){var s=B;if(e===B){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var i=r[e],o=(a>>>2)-1;if(!i)return;for(var c=0;c=0;){n[c]=!0,s[s.length]=c,i.push(e[c]);var f=r[Math.floor(4*c/a)];if(l=4*c&o,a<4+l)throw new Error("FAT boundary crossed: "+c+" 4 "+a);if(!e[f])break;c=ia(e[f],l)}return{nodes:s,data:Pr([i])}}function v(e,t,r,a){var n=e.length,s=[],i=[],o=[],c=[],l=a-1,f=0,h=0,u=0,d=0;for(f=0;f=n&&(u-=n),!i[u]){c=[];var p=[];for(h=u;h>=0;){p[h]=!0,i[h]=!0,o[o.length]=h,c.push(e[h]);var m=r[Math.floor(4*h/a)];if(d=4*h&l,a<4+d)throw new Error("FAT boundary crossed: "+h+" 4 "+a);if(!e[m])break;if(h=ia(e[m],d),p[h])break}s[u]={nodes:o,data:Pr([c])}}return s}function g(e,t,r,a,n,s,i,o){for(var c,l=0,f=a.length?2:0,h=t[e].data,u=0,d=0;u0&&l!==B&&(t[l].name="!StreamData")):v.size>=4096?(v.storage="fat",void 0===t[v.start]&&(t[v.start]=b(r,v.start,t.fat_addrs,t.ssz)),t[v.start].name=v.name,v.content=t[v.start].data.slice(0,v.size)):(v.storage="minifat",v.size<0?v.size=0:l!==B&&v.start!==B&&t[l]&&(v.content=p(v,t[l].data,(t[o]||{}).data))),v.content&&pa(v.content,0),s[c]=v,i.push(v)}}function w(e,t){return new Date(1e3*(sa(e,t+4)/1e7*Math.pow(2,32)+sa(e,t)/1e7-11644473600))}function k(t,r){return c(),l(e.readFileSync(t),r)}function T(e,t){var r=t&&t.type;switch(r||_&&Buffer.isBuffer(e)&&(r="buffer"),r||"base64"){case"file":return k(e,t);case"base64":return l(R(S(e)),t);case"binary":return l(R(e),t)}return l(e,t)}function E(e,t){var r=t||{},a=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=a+"/",e.FileIndex[0]={name:a,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),I(e)}function I(e){var t="Sh33tJ5";if(!Qe.find(e,"/"+t)){var r=ba(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),O(e)}}function O(e,t){E(e);for(var s=!1,i=!1,o=e.FullPaths.length-1;o>=0;--o){var c=e.FileIndex[o];switch(c.type){case 0:i?s=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(c.R*c.L*c.C)&&(s=!0),c.R>-1&&c.L>-1&&c.R==c.L&&(s=!0);break;default:s=!0;break}}if(s||t){var l=new Date(1987,1,19),f=0,h=Object.create?Object.create(null):{},u=[];for(o=0;o1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(f=o+1;f=u.length?-1:f,f=o+1;f=u.length?-1:f,p.type=1}else a(e.FullPaths[o+1]||"")==a(m)&&(p.R=o+1),p.type=2}}}function N(e,t){var r=t||{};if("mad"==r.fileType)return He(e,r);switch(O(e),r.fileType){case"zip":return De(e,r)}var a=function(e){for(var t=0,r=0,a=0;a0&&(s<4096?t+=s+63>>6:r+=s+511>>9)}}var i=e.FullPaths.length+3>>2,o=t+7>>3,c=t+127>>7,l=o+r+i+c,f=l+127>>7,h=f<=109?0:Math.ceil((f-109)/127);while(l+f+h+127>>7>f)h=++f<=109?0:Math.ceil((f-109)/127);var u=[1,h,f,c,i,r,t,0];return e.FileIndex[0].size=t<<6,u[7]=(e.FileIndex[0].start=u[0]+u[1]+u[2]+u[3]+u[4]+u[5])+(u[6]+7>>3),u}(e),n=ba(a[7]<<9),s=0,i=0;for(s=0;s<8;++s)n.write_shift(1,H[s]);for(s=0;s<8;++s)n.write_shift(2,0);for(n.write_shift(2,62),n.write_shift(2,3),n.write_shift(2,65534),n.write_shift(2,9),n.write_shift(2,6),s=0;s<3;++s)n.write_shift(2,0);for(n.write_shift(4,0),n.write_shift(4,a[2]),n.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),n.write_shift(4,0),n.write_shift(4,4096),n.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:B),n.write_shift(4,a[3]),n.write_shift(-4,a[1]?a[0]-1:B),n.write_shift(4,a[1]),s=0;s<109;++s)n.write_shift(-4,s>9)));o(a[6]+7>>3);while(511&n.l)n.write_shift(-4,V.ENDOFCHAIN);for(i=s=0,c=0;c=4096||(f.start=i,o(l+63>>6)));while(511&n.l)n.write_shift(-4,V.ENDOFCHAIN);for(s=0;s=4096)if(n.l=f.start+1<<9,_&&Buffer.isBuffer(f.content))f.content.copy(n,n.l,0,f.size),n.l+=f.size+511&-512;else{for(c=0;c0&&f.size<4096)if(_&&Buffer.isBuffer(f.content))f.content.copy(n,n.l,0,f.size),n.l+=f.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var ee="undefined"!==typeof Uint8Array,te=ee?new Uint8Array(256):[],re=0;re<256;++re)te[re]=Q(re);function ae(e,t){var r=te[255&e];return t<=8?r>>>8-t:(r=r<<8|te[e>>8&255],t<=16?r>>>16-t:(r=r<<8|te[e>>16&255],r>>>24-t))}function ne(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=6?0:e[a+1]<<8))>>>r&3}function se(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=5?0:e[a+1]<<8))>>>r&7}function ie(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=4?0:e[a+1]<<8))>>>r&15}function oe(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=3?0:e[a+1]<<8))>>>r&31}function ce(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=1?0:e[a+1]<<8))>>>r&127}function le(e,t,r){var a=7&t,n=t>>>3,s=(1<>>a;return r<8-a?i&s:(i|=e[n+1]<<8-a,r<16-a?i&s:(i|=e[n+2]<<16-a,r<24-a||(i|=e[n+3]<<24-a),i&s))}function fe(e,t,r){var a=7&t,n=t>>>3;return a<=5?e[n]|=(7&r)<>8-a),t+3}function he(e,t,r){var a=7&t,n=t>>>3;return r=(1&r)<>>3;return r<<=a,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function de(e,t,r){var a=7&t,n=t>>>3;return r<<=a,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function pe(e,t){var r=e.length,a=2*r>t?2*r:t+5,n=0;if(r>=t)return e;if(_){var s=C(a);if(e.copy)e.copy(s);else for(;n>a-h,i=(1<=0;--i)t[o|i<0)t[t.l++]=e[r++]}return t.l}function s(t,r){var n=0,s=0,i=ee?new Uint16Array(32768):[];while(s0)r[r.l++]=t[s++];n=8*r.l}else{n=fe(r,n,+!(s+o!=t.length)+2);var c=0;while(o-- >0){var l=t[s];c=32767&(c<<5^l);var f=-1,h=0;if((f=i[c])&&(f|=-32768&s,f>s&&(f-=32768),f2){l=a[h],l<=22?n=ue(r,n,te[l+1]>>1)-1:(ue(r,n,3),n+=5,ue(r,n,te[l-23]>>5),n+=3);var u=l<8?0:l-4>>2;u>0&&(de(r,n,h-Z[l]),n+=u),l=e[s-f],n=ue(r,n,te[l]>>3),n-=3;var d=l<4?0:l-2>>1;d>0&&(de(r,n,s-f-q[l]),n+=d);for(var p=0;p>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Se[d|m<>>=3){case 16:s=3+ne(e,t),t+=2,d=b[b.length-1];while(s-- >0)b.push(d);break;case 17:s=3+se(e,t),t+=3;while(s-- >0)b.push(0);break;case 18:s=11+ce(e,t),t+=7;while(s-- >0)b.push(0);break;default:b.push(d),c>>0,o=0,c=0;while(0==(1&a))if(a=se(e,r),r+=3,a>>>1!=0)for(a>>1==1?(o=9,c=5):(r=Ae(e,r),o=_e,c=xe);;){!t&&i>>1==1?ve[l]:Ee[l];if(r+=15&f,f>>>=4,0===(f>>>8&255))n[s++]=f;else{if(256==f)break;f-=257;var h=f<8?0:f-4>>2;h>5&&(h=0);var u=s+Z[f];h>0&&(u+=le(e,r,h),r+=h),l=le(e,r,c),f=a>>>1==1?ge[l]:ye[l],r+=15&f,f>>>=4;var d=f<4?0:f-2>>1,p=q[f];d>0&&(p+=le(e,r,d),r+=d),!t&&i>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0){!t&&i0)n[s++]=e[r>>>3],r+=8}}return t?[n,r+7>>>3]:[n.slice(0,s),r+7>>>3]}function Re(e,t){var r=e.slice(e.l||0),a=Ce(r,t);return e.l+=a[1],a[0]}function Ie(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Oe(e,t){var r=e;pa(r,0);var a=[],n=[],s={FileIndex:a,FullPaths:n};E(s,{root:t.root});var i=r.length-4;while((80!=r[i]||75!=r[i+1]||5!=r[i+2]||6!=r[i+3])&&i>=0)--i;r.l=i+4,r.l+=4;var c=r.read_shift(2);r.l+=6;var l=r.read_shift(4);for(r.l=l,i=0;i0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),s.slice(0,r.length)==r)break;var i=(a[1]||"").match(/boundary="(.*?)"/);if(!i)throw new Error("MAD cannot find boundary");var o="--"+(i[1]||""),c=[],l=[],f={FileIndex:c,FullPaths:l};E(f);var h,u=0;for(n=0;n=32&&d<128&&++h;var m=h>=4*u/5;n.push(a),n.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+i),n.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),n.push("Content-Type: "+Pe(o,i)),n.push(""),n.push(m?Le(f):Me(f))}return n.push(a+"--\r\n"),n.join("\r\n")}function ze(e){var t={};return E(t,e),t}function Ve(e,t,r,a){var s=a&&a.unsafe;s||E(e);var i=!s&&Qe.find(e,t);if(!i){var o=e.FullPaths[0];t.slice(0,o.length)==o?o=t:("/"!=o.slice(-1)&&(o+="/"),o=(o+t).replace("//","/")),i={name:n(t),type:2},e.FileIndex.push(i),e.FullPaths.push(o),s||Qe.utils.cfb_gc(e)}return i.content=r,i.size=r?r.length:0,a&&(a.CLSID&&(i.clsid=a.CLSID),a.mt&&(i.mt=a.mt),a.ct&&(i.ct=a.ct)),i}function je(e,t){E(e);var r=Qe.find(e,t);if(r)for(var a=0;a3&&(a=!0),n[s].slice(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].slice(n[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");r*=60;case"S":break}t+=r*parseInt(n[s],10)}return t}var vt=new Date("2017-02-19T19:06:09.000Z"),gt=isNaN(vt.getFullYear())?new Date("2/19/17"):vt,wt=2017==gt.getFullYear();function kt(e,t){var r=new Date(e);if(wt)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==gt.getFullYear()&&!isNaN(r.getFullYear())){var a=r.getFullYear();return e.indexOf(""+a)>-1||r.setFullYear(r.getFullYear()+100),r}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function Tt(e,t){if(_&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return pr(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return pr(p(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return pr(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return pr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(s){}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function Et(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Et(e[r]));return t}function yt(e,t){var r="";while(r.length3&&-1==_t.indexOf(i))return r}else if(i.match(/[a-z]/))return r;return a<0||a>8099?r:(n>0||s>1)&&101!=a?t:e.match(/[^-0-9:,\/\\]/)?r:t}var At=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,a){if(e||"string"==typeof r)return t.split(r);for(var n=t.split(r),s=[n[0]],i=1;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Vt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,jt=/<[^>]*>/g,Gt=Ht.match(Vt)?Vt:jt,$t=/<\w*:/,Xt=/<(\/?)\w+:/;function Yt(e,t,r){for(var a={},n=0,s=0;n!==e.length;++n)if(32===(s=e.charCodeAt(n))||10===s||13===s)break;if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var i=e.match(zt),o=0,c="",l=0,f="",h="",u=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length;++s)if(61===h.charCodeAt(s))break;f=h.slice(0,s).trim();while(32==h.charCodeAt(s+1))++s;for(u=34==(n=h.charCodeAt(s+1))||39==n?1:0,c=h.slice(s+1+u,h.length-u),o=0;o!=f.length;++o)if(58===f.charCodeAt(o))break;if(o===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=c,r||(a[f.toLowerCase()]=c);else{var d=(5===o&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(o+1);if(a[d]&&"ext"==f.slice(o-3,o))continue;a[d]=c,r||(a[d.toLowerCase()]=c)}}return a}function Kt(e){return e.replace(Xt,"<$1")}var Jt={""":'"',"'":"'",">":">","<":"<","&":"&"},Zt=ot(Jt),qt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(a){var n=a+"",s=n.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var i=n.indexOf("]]>");return r(n.slice(0,s))+n.slice(s+9,i)+r(n.slice(i+3))}}(),Qt=/[&<>'"]/g,er=/[\u0000-\u0008\u000b-\u001f]/g;function tr(e){var t=e+"";return t.replace(Qt,(function(e){return Zt[e]})).replace(er,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function rr(e){return tr(e).replace(/ /g,"_x0020_")}var ar=/[\u0000-\u001f]/g;function nr(e){var t=e+"";return t.replace(Qt,(function(e){return Zt[e]})).replace(/\n/g,"
").replace(ar,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function sr(e){var t=e+"";return t.replace(Qt,(function(e){return Zt[e]})).replace(ar,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var ir=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function or(e){return e.replace(/(\r\n|[\r\n])/g," ")}function cr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function lr(e){var t="",r=0,a=0,n=0,s=0,i=0,o=0;while(r191&&a<224?(i=(31&a)<<6,i|=63&n,t+=String.fromCharCode(i)):(s=e.charCodeAt(r++),a<240?t+=String.fromCharCode((15&a)<<12|(63&n)<<6|63&s):(i=e.charCodeAt(r++),o=((7&a)<<18|(63&n)<<12|(63&s)<<6|63&i)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function fr(e){var t,r,a,n=A(2*e.length),s=1,i=0,o=0;for(r=0;r>>10&1023),t=56320+(1023&t)),0!==o&&(n[i++]=255&o,n[i++]=o>>>8,o=0),n[i++]=t%256,n[i++]=t>>>8;return n.slice(0,i).toString("ucs2")}function hr(e){return x(e,"binary").toString("utf8")}var ur="foo bar baz☃🍣",dr=_&&(hr(ur)==lr(ur)&&hr||fr(ur)==lr(ur)&&fr)||lr,pr=_?function(e){return x(e,"utf8").toString("binary")}:function(e){var t=[],r=0,a=0,n=0;while(r>6))),t.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(63&a)))}return t.join("")},mr=function(){var e={};return function(t,r){var a=t+"|"+(r||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",r||"")}}(),br=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),gr=/<\/?(?:vt:)?variant>/g,wr=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function yr(e){return st(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Sr(e,t,r){return"<"+e+(null!=r?yr(r):"")+(null!=t?(t.match(Tr)?' xml:space="preserve"':"")+">"+t+""}function _r(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function xr(e,t){switch(typeof e){case"string":var r=Sr("vt:lpwstr",tr(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return Sr((0|e)==e?"vt:i4":"vt:r8",tr(String(e)));case"boolean":return Sr("vt:bool",e?"true":"false")}if(e instanceof Date)return Sr("vt:filetime",_r(e));throw new Error("Unable to serialize "+e)}function Ar(e){if(_&&Buffer.isBuffer(e))return e.toString("utf8");if("string"===typeof e)return e;if("undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return dr(O(D(e)));throw new Error("Bad input format: expected Buffer or string")}var Cr=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Rr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ir=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Or={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Nr(e,t){for(var r=1-2*(e[t+7]>>>7),a=((127&e[t+7])<<4)+(e[t+6]>>>4&15),n=15&e[t+6],s=5;s>=0;--s)n=256*n+e[t+s];return 2047==a?0==n?r*(1/0):NaN:(0==a?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}function Dr(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,s=0,i=a?-t:t;isFinite(i)?0==i?n=s=0:(n=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-n),n<=-1023&&(!isFinite(s)||s>4|a}var Fr=function(e){for(var t=[],r=10240,a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:x(e)}))):Fr(e)}:Fr,Mr=function(e,t,r){for(var a=[],n=t;n0?Hr(e,t+4,t+4+r-1):""},Vr=zr,jr=function(e,t){var r=sa(e,t);return r>0?Hr(e,t+4,t+4+r-1):""},Gr=jr,$r=function(e,t){var r=2*sa(e,t);return r>0?Hr(e,t+4,t+4+r-1):""},Xr=$r,Yr=function(e,t){var r=sa(e,t);return r>0?Lr(e,t+4,t+4+r):""},Kr=Yr,Jr=function(e,t){var r=sa(e,t);return r>0?Hr(e,t+4,t+4+r):""},Zr=Jr,qr=function(e,t){return Nr(e,t)},Qr=qr,ea=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function ta(){Lr=function(e,t,r){return m.utils.decode(1200,e.slice(t,r)).replace(M,"")},Hr=function(e,t,r){return m.utils.decode(65001,e.slice(t,r))},Vr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(s,e.slice(t+4,t+4+r-1)):""},Gr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(n,e.slice(t+4,t+4+r-1)):""},Xr=function(e,t){var r=2*sa(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},Kr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r)):""},Zr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(65001,e.slice(t+4,t+4+r)):""}}_&&(Vr=function(e,t){if(!Buffer.isBuffer(e))return zr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Gr=function(e,t){if(!Buffer.isBuffer(e))return jr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Xr=function(e,t){if(!Buffer.isBuffer(e))return $r(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},Kr=function(e,t){if(!Buffer.isBuffer(e))return Yr(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},Zr=function(e,t){if(!Buffer.isBuffer(e))return Jr(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Qr=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):qr(e,t)},ea=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof m&&ta();var ra=function(e,t){return e[t]},aa=function(e,t){return 256*e[t+1]+e[t]},na=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},sa=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ia=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},oa=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function ca(e,t){var r,a,s,i,o,c,l="",f=[];switch(t){case"dbcs":if(c=this.l,_&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?ia:oa)(this,this.l),this.l+=4,r):(a=sa(this,this.l),this.l+=4,a);case 8:case-8:if("f"===t)return a=8==e?Qr(this,this.l):Qr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:l=Br(this,this.l,e);break}}return this.l+=e,l}var la=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},fa=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},ha=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function ua(e,t,r){var a=0,n=0;if("dbcs"===r){for(n=0;n!=t.length;++n)ha(this,t.charCodeAt(n),this.l+2*n);a=2*t.length}else if("sbcs"===r){if("undefined"!==typeof m&&874==s)for(n=0;n!=t.length;++n){var i=m.utils.encode(s,t.charAt(n));this[this.l+n]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=t.length;++n)this[this.l+n]=255&t.charCodeAt(n);a=t.length}else{if("hex"===r){for(;n>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:a=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:a=4,la(this,t,this.l);break;case 8:if(a=8,"f"===r){Dr(this,t,this.l);break}case 16:break;case-4:a=4,fa(this,t,this.l);break}}return this.l+=a,this}function da(e,t){var r=Br(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function pa(e,t){e.l=t,e.read_shift=ca,e.chk=da,e.write_shift=ua}function ma(e,t){e.l+=t}function ba(e){var t=A(e);return pa(t,0),t}function va(e,t,r){if(e){var a,n,s;pa(e,e.l||0);var i=e.length,o=0,c=0;while(e.la.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},s=function(e){return a&&e=128?1:0)+1,a>=128&&++n,a>=16384&&++n,a>=2097152&&++n;var i=e.next(n);s<=127?i.write_shift(1,s):(i.write_shift(1,128+(127&s)),i.write_shift(1,s>>7));for(var o=0;4!=o;++o){if(!(a>=128)){i.write_shift(1,a);break}i.write_shift(1,128+(127&a)),a>>=7}a>0&&ea(r)&&e.push(r)}}function ka(e,t,r){var a=Et(e);if(t.s?(a.cRel&&(a.c+=t.s.c),a.rRel&&(a.r+=t.s.r)):(a.cRel&&(a.c+=t.c),a.rRel&&(a.r+=t.r)),!r||r.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function Ta(e,t,r){var a=Et(e);return a.s=ka(a.s,t.s,r),a.e=ka(a.e,t.s,r),a}function Ea(e,t){if(e.cRel&&e.c<0){e=Et(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=Et(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var r=Fa(e);return e.cRel||null==e.cRel||(r=Ia(r)),e.rRel||null==e.rRel||(r=xa(r)),r}function ya(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Ea(e.s,t.biff)+":"+Ea(e.e,t.biff):(e.s.rRel?"":"$")+_a(e.s.r)+":"+(e.e.rRel?"":"$")+_a(e.e.r):(e.s.cRel?"":"$")+Ra(e.s.c)+":"+(e.e.cRel?"":"$")+Ra(e.e.c)}function Sa(e){return parseInt(Aa(e),10)-1}function _a(e){return""+(e+1)}function xa(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Aa(e){return e.replace(/\$(\d+)$/,"$1")}function Ca(e){for(var t=Oa(e),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function Ra(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Ia(e){return e.replace(/^([A-Z])/,"$$$1")}function Oa(e){return e.replace(/^\$([A-Z])/,"$1")}function Na(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Da(e){for(var t=0,r=0,a=0;a=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function Fa(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Pa(e){var t=e.indexOf(":");return-1==t?{s:Da(e),e:Da(e)}:{s:Da(e.slice(0,t)),e:Da(e.slice(t+1))}}function Ma(e,t){return"undefined"===typeof t||"number"===typeof t?Ma(e.s,e.e):("string"!==typeof e&&(e=Fa(e)),"string"!==typeof t&&(t=Fa(t)),e==t?e:e+":"+t)}function La(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,s=e.length;for(r=0;a26)break;r=26*r+n}for(t.s.c=--r,r=0;a9)break;r=10*r+n}if(t.s.r=--r,a===s||10!=n)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=s;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;r=26*r+n}for(t.e.c=--r,r=0;a!=s;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;r=10*r+n}return t.e.r=--r,t}function Ua(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Ve(e.z,r?ht(t):t)}catch(a){}try{return e.w=Ve((e.XF||{}).numFmtId||(r?14:0),r?ht(t):t)}catch(a){return""+t}}function Ba(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?$n[e.v]||e.v:Ua(e,void 0==t?e.v:t))}function Wa(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function Ha(e,t,r){var a=r||{},n=e?Array.isArray(e):a.dense;null!=k&&null==n&&(n=k);var s=e||(n?[]:{}),i=0,o=0;if(s&&null!=a.origin){if("number"==typeof a.origin)i=a.origin;else{var c="string"==typeof a.origin?Da(a.origin):a.origin;i=c.r,o=c.c}s["!ref"]||(s["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=La(s["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),-1==i&&(l.e.r=i=f.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=t[h].length;++u)if("undefined"!==typeof t[h][u]){var d={v:t[h][u]},p=i+h,m=o+u;if(l.s.r>p&&(l.s.r=p),l.s.c>m&&(l.s.c=m),l.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Xa(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ya(e,t){return t||(t=ba(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Ka(e,t){var r=e.l,a=e.read_shift(1),n=Ga(e),s=[],i={t:n,h:n};if(0!==(1&a)){for(var o=e.read_shift(4),c=0;c!=o;++c)s.push(Xa(e));i.r=s}else i.r=[{ich:0,ifnt:0}];return e.l=r+t,i}function Ja(e,t){var r=!1;return null==t&&(r=!0,t=ba(15+4*e.t.length)),t.write_shift(1,0),$a(e.t,t),r?t.slice(0,t.l):t}var Za=Ka;function qa(e,t){var r=!1;return null==t&&(r=!0,t=ba(23+4*e.t.length)),t.write_shift(1,1),$a(e.t,t),t.write_shift(4,1),Ya({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Qa(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function en(e,t){return null==t&&(t=ba(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function tn(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rn(e,t){return null==t&&(t=ba(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var an=Ga,nn=$a;function sn(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function on(e,t){var r=!1;return null==t&&(r=!0,t=ba(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var cn=Ga,ln=sn,fn=on;function hn(e){var t=e.slice(e.l,e.l+4),r=1&t[0],a=2&t[0];e.l+=4;var n=0===a?Qr([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):ia(t,0)>>2;return r?n/100:n}function un(e,t){null==t&&(t=ba(4));var r=0,a=0,n=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?a=1:n==(0|n)&&n>=-(1<<29)&&n<1<<29&&(a=1,r=1),!a)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((r?n:e)<<2)+(r+2))}function dn(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function pn(e,t){return t||(t=ba(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var mn=dn,bn=pn;function vn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function gn(e,t){return(t||ba(8)).write_shift(8,e,"f")}function wn(e){var t={},r=e.read_shift(1),a=r>>>1,n=e.read_shift(1),s=e.read_shift(2,"i"),i=e.read_shift(1),o=e.read_shift(1),c=e.read_shift(1);switch(e.l++,a){case 0:t.auto=1;break;case 1:t.index=n;var l=Gn[n];l&&(t.rgb=wl(l));break;case 2:t.rgb=wl([i,o,c]);break;case 3:t.theme=n;break}return 0!=s&&(t.tint=s>0?s/32767:s/32768),t}function kn(e,t){if(t||(t=ba(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var a=e.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),t.write_shift(1,parseInt(a.slice(0,2),16)),t.write_shift(1,parseInt(a.slice(2,4),16)),t.write_shift(1,parseInt(a.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Tn(e){var t=e.read_shift(1);e.l++;var r={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return r}function En(e,t){t||(t=ba(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function yn(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Sn(e){return yn(e,1)}function _n(e){return yn(e,2)}var xn=2,An=3,Cn=11,Rn=12,In=19,On=64,Nn=65,Dn=71,Fn=4108,Pn=4126,Mn=80,Ln=81,Un=[Mn,Ln],Bn={1:{n:"CodePage",t:xn},2:{n:"Category",t:Mn},3:{n:"PresentationFormat",t:Mn},4:{n:"ByteCount",t:An},5:{n:"LineCount",t:An},6:{n:"ParagraphCount",t:An},7:{n:"SlideCount",t:An},8:{n:"NoteCount",t:An},9:{n:"HiddenCount",t:An},10:{n:"MultimediaClipCount",t:An},11:{n:"ScaleCrop",t:Cn},12:{n:"HeadingPairs",t:Fn},13:{n:"TitlesOfParts",t:Pn},14:{n:"Manager",t:Mn},15:{n:"Company",t:Mn},16:{n:"LinksUpToDate",t:Cn},17:{n:"CharacterCount",t:An},19:{n:"SharedDoc",t:Cn},22:{n:"HyperlinksChanged",t:Cn},23:{n:"AppVersion",t:An,p:"version"},24:{n:"DigSig",t:Nn},26:{n:"ContentType",t:Mn},27:{n:"ContentStatus",t:Mn},28:{n:"Language",t:Mn},29:{n:"Version",t:Mn},255:{},2147483648:{n:"Locale",t:In},2147483651:{n:"Behavior",t:In},1919054434:{}},Wn={1:{n:"CodePage",t:xn},2:{n:"Title",t:Mn},3:{n:"Subject",t:Mn},4:{n:"Author",t:Mn},5:{n:"Keywords",t:Mn},6:{n:"Comments",t:Mn},7:{n:"Template",t:Mn},8:{n:"LastAuthor",t:Mn},9:{n:"RevNumber",t:Mn},10:{n:"EditTime",t:On},11:{n:"LastPrinted",t:On},12:{n:"CreatedDate",t:On},13:{n:"ModifiedDate",t:On},14:{n:"PageCount",t:An},15:{n:"WordCount",t:An},16:{n:"CharCount",t:An},17:{n:"Thumbnail",t:Dn},18:{n:"Application",t:Mn},19:{n:"DocSecurity",t:An},255:{},2147483648:{n:"Locale",t:In},2147483651:{n:"Behavior",t:In},1919054434:{}},Hn={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},zn=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Vn(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var jn=Vn([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Gn=Et(jn),$n={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Xn={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Yn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Kn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Jn(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Zn(e){var t=Jn();if(!e||!e.match)return t;var r={};if((e.match(Gt)||[]).forEach((function(e){var a=Yt(e);switch(a[0].replace($t,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function qn(e,t){var r,a=lt(Yn),n=[];n[n.length]=Ht,n[n.length]=Sr("Types",null,{xmlns:Rr.CT,"xmlns:xsd":Rr.xsd,"xmlns:xsi":Rr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Sr("Default",null,{Extension:e[0],ContentType:e[1]})})));var s=function(a){e[a]&&e[a].length>0&&(r=e[a][0],n[n.length]=Sr("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:Kn[a][t.bookType]||Kn[a]["xlsx"]}))},i=function(r){(e[r]||[]).forEach((function(e){n[n.length]=Sr("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Kn[r][t.bookType]||Kn[r]["xlsx"]})}))},o=function(t){(e[t]||[]).forEach((function(e){n[n.length]=Sr("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:a[t][0]})}))};return s("workbooks"),i("sheets"),i("charts"),o("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),i("metadata"),o("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Qn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function es(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ts(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var a={};return(e.match(Gt)||[]).forEach((function(e){var n=Yt(e);if("2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function as(e,t,r,a,n,s){if(n||(n={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,n.Id="rId"+t,n.Type=a,n.Target=r,s?n.TargetMode=s:[Qn.HLINK,Qn.XPATH,Qn.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),e["!id"][n.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][n.Id]=n,e[("/"+n.Target).replace("//","/")]=n,t}var ns="application/vnd.oasis.opendocument.spreadsheet";function ss(e,t){var r,a,n=Ar(e);while(r=Cr.exec(n))switch(r[3]){case"manifest":break;case"file-entry":if(a=Yt(r[0],!1),"/"==a.path&&a.type!==ns)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}function is(e){var t=[Ht];t.push('\n'),t.push(' \n');for(var r=0;r\n');return t.push(""),t.join("")}function os(e,t,r){return[' \n',' \n'," \n"].join("")}function cs(e,t){return[' \n',' \n'," \n"].join("")}function ls(e){var t=[Ht];t.push('\n');for(var r=0;r!=e.length;++r)t.push(os(e[r][0],e[r][1])),t.push(cs("",e[r][0]));return t.push(os("","Document","pkg")),t.push(""),t.join("")}function fs(){return'SheetJS '+a.version+""}var hs=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],us=function(){for(var e=new Array(hs.length),t=0;t]*>([\\s\\S]*?)")}return e}();function ds(e){var t={};e=dr(e);for(var r=0;r0&&(t[a[1]]=qt(n[1])),"date"===a[2]&&t[a[1]]&&(t[a[1]]=kt(t[a[1]]))}return t}function ps(e,t,r,a,n){null==n[e]&&null!=t&&""!==t&&(n[e]=t,t=tr(t),a[a.length]=r?Sr(e,t,r):Er(e,t))}function ms(e,t){var r=t||{},a=[Ht,Sr("cp:coreProperties",null,{"xmlns:cp":Rr.CORE_PROPS,"xmlns:dc":Rr.dc,"xmlns:dcterms":Rr.dcterms,"xmlns:dcmitype":Rr.dcmitype,"xmlns:xsi":Rr.xsi})],n={};if(!e&&!r.Props)return a.join("");e&&(null!=e.CreatedDate&&ps("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:_r(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),null!=e.ModifiedDate&&ps("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:_r(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var s=0;s!=hs.length;++s){var i=hs[s],o=r.Props&&null!=r.Props[i[1]]?r.Props[i[1]]:e?e[i[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&ps(i[0],o,null,a,n)}return a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var bs=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],vs=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function gs(e,t,r,a){var n=[];if("string"==typeof e)n=kr(e,a);else for(var s=0;s0)for(var l=0;l!==n.length;l+=2){switch(c=+n[l+1].v,n[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=i.slice(o,o+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=i.slice(o,o+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=i.slice(o,o+c);break}o+=c}}function ws(e,t,r){var a={};return t||(t={}),e=dr(e),bs.forEach((function(r){var n=(e.match(mr(r[0]))||[])[1];switch(r[2]){case"string":n&&(t[r[1]]=qt(n));break;case"bool":t[r[1]]="true"===n;break;case"raw":var s=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[r[1]]=s[1]);break}})),a.HeadingPairs&&a.TitlesOfParts&&gs(a.HeadingPairs,a.TitlesOfParts,t,r),t}function ks(e){var t=[],r=Sr;return e||(e={}),e.Application="SheetJS",t[t.length]=Ht,t[t.length]=Sr("Properties",null,{xmlns:Rr.EXT_PROPS,"xmlns:vt":Rr.vt}),bs.forEach((function(a){if(void 0!==e[a[1]]){var n;switch(a[2]){case"string":n=tr(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break}void 0!==n&&(t[t.length]=r(a[0],n))}})),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map((function(e){return""+tr(e)+""})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Ts=/<[^>]+>[^<]*/g;function Es(e,t){var r={},a="",n=e.match(Ts);if(n)for(var s=0;s!=n.length;++s){var i=n[s],o=Yt(i);switch(o[0]){case"":a=null;break;default:if(0===i.indexOf(""),l=c[0].slice(4),f=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[a]=qt(f);break;case"bool":r[a]=cr(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(f);break;case"filetime":case"date":r[a]=kt(f);break;case"cy":case"error":r[a]=qt(f);break;default:if("/"==l.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",i,l,c)}}else if("2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Ss,_s={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function xs(e,t,r){Ss||(Ss=ot(_s)),t=Ss[t]||t,e[t]=r}function As(e,t){var r=[];return st(_s).map((function(e){for(var t=0;t'+n.join("")+""}function Rs(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Is(e){var t="string"==typeof e?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,a=r%Math.pow(2,32),n=(r-a)/Math.pow(2,32);a*=1e7,n*=1e7;var s=a/Math.pow(2,32)|0;s>0&&(a%=Math.pow(2,32),n+=s);var i=ba(8);return i.write_shift(4,a),i.write_shift(4,n),i}function Os(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)while(e.l-a&3)++e.l;return n}function Ns(e,t,r){var a=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(a.length+1&3)&3),a}function Ds(e,t,r){return 31===t?Ns(e):Os(e,t,r)}function Fs(e,t,r){return Ds(e,t,!1===r?0:4)}function Ps(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Ds(e,t,0)}function Ms(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a){var n=e.l;r[a]=e.read_shift(0,"lpwstr").replace(M,""),e.l-n&2&&(e.l+=2)}return r}function Ls(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a)r[a]=e.read_shift(0,"lpstr-cp").replace(M,"");return r}function Us(e){var t=e.l,r=Vs(e,Ln);0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2);var a=Vs(e,An);return[r,a]}function Bs(e){for(var t=e.read_shift(4),r=[],a=0;a>3<<2),a}function Hs(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function zs(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Vs(e,t,r){var a,n=e.read_shift(2),s=r||{};if(e.l+=2,t!==Rn&&n!==t&&-1===Un.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&n)))throw new Error("Expected type "+t+" saw "+n);switch(t===Rn?n:t){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return 0!==e.read_shift(4);case 19:return a=e.read_shift(4),a;case 30:return Os(e,n,4).replace(M,"");case 31:return Ns(e);case 64:return Rs(e);case 65:return Hs(e);case 71:return zs(e);case 80:return Fs(e,n,!s.raw).replace(M,"");case 81:return Ps(e,n).replace(M,"");case 4108:return Bs(e);case 4126:case 4127:return 4127==n?Ms(e):Ls(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function js(e,t){var r=ba(4),a=ba(4);switch(r.write_shift(4,80==e?31:e),e){case 3:a.write_shift(-4,t);break;case 5:a=ba(8),a.write_shift(8,t,"f");break;case 11:a.write_shift(4,t?1:0);break;case 64:a=Is(t);break;case 31:case 80:a=ba(4+2*(t.length+1)+(t.length%2?0:2)),a.write_shift(4,t.length+1),a.write_shift(0,t,"dbcs");while(a.l!=a.length)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return F([r,a])}function Gs(e,t){var r=e.l,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0,o=0,c=-1,l={};for(i=0;i!=n;++i){var h=e.read_shift(4),u=e.read_shift(4);s[i]=[h,u+r]}s.sort((function(e,t){return e[1]-t[1]}));var d={};for(i=0;i!=n;++i){if(e.l!==s[i][1]){var p=!0;if(i>0&&t)switch(t[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,p=!1);break;case 80:e.l<=s[i][1]&&(e.l=s[i][1],p=!1);break;case 4108:e.l<=s[i][1]&&(e.l=s[i][1],p=!1);break}if((!t||0==i)&&e.l<=s[i][1]&&(p=!1,e.l=s[i][1]),p)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(t){var m=t[s[i][0]];if(d[m.n]=Vs(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:f(o=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===s[i][0]){if(o=d.CodePage=Vs(e,xn),f(o),-1!==c){var b=e.l;e.l=s[c][1],l=Ws(e,o),e.l=b}}else if(0===s[i][0]){if(0===o){c=i,e.l=s[i+1][1];continue}l=Ws(e,o)}else{var v,g=l[s[i][0]];switch(e[e.l]){case 65:e.l+=4,v=Hs(e);break;case 30:e.l+=4,v=Fs(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Fs(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=ei(e,4);break;case 64:e.l+=4,v=kt(Rs(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[g]=v}}return e.l=r+a,d}var $s=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Xs(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Ys(e,t,r){var a=ba(8),n=[],s=[],i=8,o=0,c=ba(8),l=ba(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),s.push(c),n.push(l),i+=8+c.length,!t){l=ba(8),l.write_shift(4,0),n.unshift(l);var f=[ba(4)];for(f[0].write_shift(4,e.length),o=0;o-1||vs.indexOf(e[o][0])>-1)&&null!=e[o][1]){var u=e[o][1],d=0;if(t){d=+t[e[o][0]];var p=r[d];if("version"==p.p&&"string"==typeof u){var m=u.split(".");u=(+m[0]<<16)+(+m[1]||0)}c=js(p.t,u)}else{var b=Xs(u);-1==b&&(b=31,u=String(u)),c=js(b,u)}s.push(c),l=ba(8),l.write_shift(4,t?d:2+o),n.push(l),i+=8+c.length}var v=8*(s.length+1);for(o=0;o=12?2:1),s="sbcs-cont",i=n;if(r&&r.biff>=8&&(n=1200),r&&8!=r.biff)12==r.biff&&(s="wstr");else{var o=e.read_shift(1);o&&(s="dbcs-cont")}r.biff>=2&&r.biff<=5&&(s="cpstr");var c=a?e.read_shift(a,s):"";return n=i,c}function ci(e){var t=n;n=1200;var r,a=e.read_shift(2),s=e.read_shift(1),i=4&s,o=8&s,c=1+(1&s),l=0,f={};o&&(l=e.read_shift(2)),i&&(r=e.read_shift(4));var h=2==c?"dbcs-cont":"sbcs-cont",u=0===a?"":e.read_shift(a,h);return o&&(e.l+=4*l),i&&(e.l+=r),f.t=u,o||(f.raw=""+f.t+"",f.r=f.t),n=t,f}function li(e){var t=e.t||"",r=1,a=ba(3+(r>1?2:0));a.write_shift(2,t.length),a.write_shift(1,1|(r>1?8:0)),r>1&&a.write_shift(2,r);var n=ba(2*t.length);n.write_shift(2*t.length,t,"utf16le");var s=[a,n];return F(s)}function fi(e,t,r){var a;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var n=e.read_shift(1);return a=0===n?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),a}function hi(e,t,r){var a=e.read_shift(r&&2==r.biff?1:2);return 0===a?(e.l++,""):fi(e,a,r)}function ui(e,t,r){if(r.biff>5)return hi(e,t,r);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function di(e,t,r){return r||(r=ba(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function pi(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function mi(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(M,"");return a&&(e.l+=24),n}function bi(e){var t=e.read_shift(2),r="";while(t-- >0)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(0===n)return r+a.replace(/\\/g,"/");var s=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(s>>1,"utf16le").replace(M,"");return r+i}function vi(e,t){var r=e.read_shift(16);switch(t-=16,r){case"e0c9ea79f9bace118c8200aa004ba90b":return mi(e,t);case"0303000000000000c000000000000046":return bi(e,t);default:throw new Error("Unsupported Moniker "+r)}}function gi(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(M,""):"";return r}function wi(e,t){t||(t=ba(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(a.charAt(0)){case"#":s=28;break;case".":s&=-3;break}t.write_shift(4,2),t.write_shift(4,s);var i=[8,6815827,6619237,4849780,83];for(r=0;r-1?a.slice(0,n):a;for(t.write_shift(4,2*(o.length+1)),r=0;r-1?a.slice(n+1):"",t)}else{for(i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,n=e.read_shift(a),s=e.read_shift(a,"i"),i=e.read_shift(a,"i");return[n,s,i]}function Ri(e){var t=e.read_shift(2),r=hn(e);return[t,r]}function Ii(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=oi(e,t,r),s=e.read_shift(2);if(a-=e.l,s!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,n}function Oi(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2);return{s:{c:a,r:t},e:{c:n,r:r}}}function Ni(e,t){return t||(t=ba(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Di(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(1),n=e.read_shift(1);return{s:{c:a,r:t},e:{c:n,r:r}}}var Fi=Di;function Pi(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function Mi(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Li(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Ui(e){e.l+=2,e.l+=e.read_shift(2)}var Bi={0:Ui,4:Ui,5:Ui,6:Ui,7:Li,8:Ui,9:Ui,10:Ui,11:Ui,12:Ui,13:Mi,14:Ui,15:Ui,16:Ui,17:Ui,18:Ui,19:Ui,20:Ui,21:Pi};function Wi(e,t){var r=e.l+t,a=[];while(e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function zi(e,t,r){var a=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":a=1280,n=8;break;case"biff4":a=4,n=6;break;case"biff3":a=3,n=6;break;case"biff2":a=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=ba(n);return s.write_shift(2,a),s.write_shift(2,t),n>4&&s.write_shift(2,29282),n>6&&s.write_shift(2,1997),n>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function Vi(e,t){return 0===t||e.read_shift(2),1200}function ji(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=ui(e,0,r);return e.read_shift(t+a-e.l),n}function Gi(e,t){var r=!t||8==t.biff,a=ba(r?112:54);a.write_shift(8==t.biff?2:1,7),r&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(r?0:536870912));while(a.l=8?2:1,a=ba(8+r*e.name.length);a.write_shift(4,e.pos),a.write_shift(1,e.hs||0),a.write_shift(1,e.dt),a.write_shift(1,e.name.length),t.biff>=8&&a.write_shift(1,1),a.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);return n.l=a.l,n}function Ki(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0;i!=n&&e.l>15),n&=32767);var s={Unsynced:1&a,DyZero:(2&a)>>1,ExAsc:(4&a)>>2,ExDsc:(8&a)>>3};return[s,n]}function ro(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),c=e.read_shift(2),l=e.read_shift(2);return{Pos:[t,r],Dim:[a,n],Flags:s,CurTab:i,FirstTab:o,Selected:c,TabRatio:l}}function ao(){var e=ba(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function no(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var a=e.read_shift(2);return{RTL:64&a}}function so(e){var t=ba(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function io(){}function oo(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=oi(e,0,r),a}function co(e,t){var r=e.name||"Arial",a=t&&5==t.biff,n=a?15+r.length:16+2*r.length,s=ba(n);return s.write_shift(2,20*(e.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,r.length),a||s.write_shift(1,1),s.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le"),s}function lo(e){var t=Si(e);return t.isst=e.read_shift(4),t}function fo(e,t,r,a){var n=ba(10);return _i(e,t,a,n),n.write_shift(4,r),n}function ho(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=e.l+t,n=Si(e,6);2==r.biff&&e.l++;var s=hi(e,a-e.l,r);return n.val=s,n}function uo(e,t,r,a,n){var s=!n||8==n.biff,i=ba(+s+8+(1+s)*r.length);return _i(e,t,a,i),i.write_shift(2,r.length),s&&i.write_shift(1,1),i.write_shift((1+s)*r.length,r,s?"utf16le":"sbcs"),i}function po(e,t,r){var a=e.read_shift(2),n=ui(e,0,r);return[a,n]}function mo(e,t,r,a){var n=r&&5==r.biff;a||(a=ba(n?3+t.length:5+2*t.length)),a.write_shift(2,e),a.write_shift(n?1:2,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le");var s=a.length>a.l?a.slice(0,a.l):a;return null==s.l&&(s.l=s.length),s}var bo=ui;function vo(e,t,r){var a=e.l+t,n=8!=r.biff&&r.biff?2:4,s=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(2),c=e.read_shift(2);return e.l=a,{s:{r:s,c:o},e:{r:i,c:c}}}function go(e,t){var r=8!=t.biff&&t.biff?2:4,a=ba(2*r+6);return a.write_shift(r,e.s.r),a.write_shift(r,e.e.r+1),a.write_shift(2,e.s.c),a.write_shift(2,e.e.c+1),a.write_shift(2,0),a}function wo(e){var t=e.read_shift(2),r=e.read_shift(2),a=Ri(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}function ko(e,t){var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),s=[];while(e.l>26],a.cellStyles?(n.alc=7&s,n.fWrap=s>>3&1,n.alcV=s>>4&7,n.fJustLast=s>>7&1,n.trot=s>>8&255,n.cIndent=s>>16&15,n.fShrinkToFit=s>>20&1,n.iReadOrder=s>>22&2,n.fAtrNum=s>>26&1,n.fAtrFnt=s>>27&1,n.fAtrAlc=s>>28&1,n.fAtrBdr=s>>29&1,n.fAtrPat=s>>30&1,n.fAtrProt=s>>31&1,n.dgLeft=15&i,n.dgRight=i>>4&15,n.dgTop=i>>8&15,n.dgBottom=i>>12&15,n.icvLeft=i>>16&127,n.icvRight=i>>23&127,n.grbitDiag=i>>30&3,n.icvTop=127&o,n.icvBottom=o>>7&127,n.icvDiag=o>>14&127,n.dgDiag=o>>21&15,n.icvFore=127&c,n.icvBack=c>>7&127,n.fsxButton=c>>14&1,n):n}function yo(e,t,r){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,t-=6,a.data=Eo(e,t,a.fStyle,r),a}function So(e,t,r,a){var n=r&&5==r.biff;a||(a=ba(n?16:20)),a.write_shift(2,0),e.style?(a.write_shift(2,e.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,e.numFmtId||0),a.write_shift(2,t<<4));var s=0;return e.numFmtId>0&&n&&(s|=1024),a.write_shift(4,s),a.write_shift(4,0),n||a.write_shift(4,0),a.write_shift(2,0),a}function _o(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function xo(e){var t=ba(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function Ao(e,t,r){var a=Si(e,6);2!=r.biff&&9!=t||++e.l;var n=si(e,2);return a.val=n,a.t=!0===n||!1===n?"b":"e",a}function Co(e,t,r,a,n,s){var i=ba(8);return _i(e,t,a,i),ii(r,s,i),i}function Ro(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=Si(e,6),n=vn(e,8);return a.val=n,a}function Io(e,t,r,a){var n=ba(14);return _i(e,t,a,n),gn(r,n),n}var Oo=Ai;function No(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(2);if(r.sbcch=s,1025==s||14849==s)return[s,n];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);var i=fi(e,s),o=[];while(a>e.l)o.push(hi(e));return[s,n,i,o]}function Do(e,t,r){var a,n=e.read_shift(2),s={fBuiltIn:1&n,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return 14849===r.sbcch&&(a=Ii(e,t-2,r)),s.body=a||e.read_shift(t-2),"string"===typeof a&&(s.Name=a),s}var Fo=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Po(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),o=e.read_shift(r&&2==r.biff?1:2),c=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),c=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var l=fi(e,i,r);32&n&&(l=Fo[l.charCodeAt(0)]);var f=a-e.l;r&&2==r.biff&&--f;var h=a!=e.l&&0!==o&&f>0?ud(e,f,r,o):[];return{chKey:s,Name:l,itab:c,rgce:h}}function Mo(e,t,r){if(r.biff<8)return Lo(e,t,r);var a=[],n=e.l+t,s=e.read_shift(r.biff>8?4:2);while(0!==s--)a.push(Ci(e,r.biff>8?12:6,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function Lo(e,t,r){3==e[e.l+1]&&e[e.l]++;var a=oi(e,t,r);return 3==a.charCodeAt(0)?a.slice(1):a}function Uo(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=fi(e,a,r),i=fi(e,n,r);return[s,i]}e.l+=t}function Bo(e,t,r){var a=Di(e,6);e.l++;var n=e.read_shift(1);return t-=8,[dd(e,t,r),n,a]}function Wo(e,t,r){var a=Fi(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,fd(e,t,r,a)]}function Ho(e){var t=0!==e.read_shift(4),r=0!==e.read_shift(4),a=e.read_shift(4);return[t,r,a]}function zo(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),o=ui(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},o,i,s]}}function Vo(e,t,r){return zo(e,t,r)}function jo(e,t){var r=[],a=e.read_shift(2);while(a--)r.push(Oi(e,t));return r}function Go(e){var t=ba(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r=(l?i:2*i))break}if(n.length!==i&&n.length!==2*i)throw new Error("cchText: "+i+" != "+n.length);return e.l=a+t,{t:n}}catch(h){return e.l=a+t,{t:n}}}function Jo(e,t){var r=Oi(e,8);e.l+=16;var a=ki(e,t-24);return[r,a]}function Zo(e){var t=ba(24),r=Da(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)t.write_shift(1,parseInt(a[n],16));return F([t,Ti(e[1])])}function qo(e,t){e.read_shift(2);var r=Oi(e,8),a=e.read_shift((t-10)/2,"dbcs-cont");return a=a.replace(M,""),[r,a]}function Qo(e){var t=e[1].Tooltip,r=ba(10+2*(t.length+1));r.write_shift(2,2048);var a=Da(e[0]);r.write_shift(2,a.r),r.write_shift(2,a.r),r.write_shift(2,a.c),r.write_shift(2,a.c);for(var n=0;n0)r.push(yi(e,8));return r}function ac(e){var t=e.read_shift(2),r=[];while(t-- >0)r.push(yi(e,8));return r}function nc(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function sc(e,t,r){if(!r.cellStyles)return ma(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),s=e.read_shift(a),i=e.read_shift(a),o=e.read_shift(a),c=e.read_shift(2);2==a&&(e.l+=2);var l={s:n,e:s,w:i,ixfe:o,flags:c};return(r.biff>=5||!r.biff)&&(l.level=c>>8&7),l}function ic(e,t){var r=ba(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var a=0;return e.hidden&&(a|=1),r.write_shift(1,a),a=e.level||0,r.write_shift(1,a),r.write_shift(2,0),r}function oc(e,t){var r={};return t<32||(e.l+=16,r.header=vn(e,8),r.footer=vn(e,8),e.l+=2),r}function cc(e,t,r){var a={area:!1};if(5!=r.biff)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,16&n&&(a.area=!0),a}function lc(e){for(var t=ba(2*e),r=0;r1048576&&(l=1e6),2!=s&&(f=n.read_shift(2));var h=n.read_shift(2),u=r.codepage||1252;2!=s&&(n.l+=16,n.read_shift(1),0!==n[n.l]&&(u=e[n[n.l]]),n.l+=1,n.l+=2),c&&(n.l+=36);var d=[],p={},b=Math.min(n.length,2==s?521:f-10-(o?264:0)),v=c?32:11;while(n.l0)if(42!==n[n.l])for(++n.l,a[++g]=[],w=0,w=0;w!=d.length;++w){var k=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len,pa(k,0);var T=m.utils.decode(u,k);switch(d[w].type){case"C":T.trim().length&&(a[g][w]=T.replace(/\s+$/,""));break;case"D":8===T.length?a[g][w]=new Date(+T.slice(0,4),+T.slice(4,6)-1,+T.slice(6,8)):a[g][w]=T;break;case"F":a[g][w]=parseFloat(T.trim());break;case"+":case"I":a[g][w]=c?2147483648^k.read_shift(-4,"i"):k.read_shift(4,"i");break;case"L":switch(T.trim().toUpperCase()){case"Y":case"T":a[g][w]=!0;break;case"N":case"F":a[g][w]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+T+"|")}break;case"M":if(!i)throw new Error("DBF Unexpected MEMO for type "+s.toString(16));a[g][w]="##MEMO##"+(c?parseInt(T.trim(),10):k.read_shift(4));break;case"N":T=T.replace(/\u0000/g,"").trim(),T&&"."!=T&&(a[g][w]=+T||0);break;case"@":a[g][w]=new Date(k.read_shift(-8,"f")-621356832e5);break;case"T":a[g][w]=new Date(864e5*(k.read_shift(4)-2440588)+k.read_shift(4));break;case"Y":a[g][w]=k.read_shift(4,"i")/1e4+k.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[g][w]=-k.read_shift(-8,"f");break;case"B":if(o&&8==d[w].len){a[g][w]=k.read_shift(8,"f");break}case"G":case"P":k.l+=d[w].len;break;case"0":if("_NullFlags"===d[w].name)break;default:throw new Error("DBF Unsupported data type "+d[w].type)}}else n.l+=h;if(2!=s&&n.l=0&&f(+a.codepage),"string"==a.type)throw new Error("Cannot write DBF to JS string");var n=ga(),o=kw(e,{header:1,raw:!0,cellDates:!0}),c=o[0],l=o.slice(1),h=e["!cols"]||[],u=0,d=0,p=0,m=1;for(u=0;u250&&(E=250),T=((h[u]||{}).DBF||{}).type,"C"==T&&h[u].DBF.len>E&&(E=h[u].DBF.len),"B"==k&&"N"==T&&(k="N",w[u]=h[u].DBF.dec,E=h[u].DBF.len),g[u]="C"==k||"N"==T?E:i[k]||0,m+=g[u],v[u]=k}else v[u]="?"}var S=n.next(32);for(S.write_shift(4,318902576),S.write_shift(4,l.length),S.write_shift(2,296+32*p),S.write_shift(2,m),u=0;u<4;++u)S.write_shift(4,0);for(S.write_shift(4,0|(+t[s]||3)<<8),u=0,d=0;u":190,"?":191,"{":223},t=new RegExp("N("+st(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var a=e[r];return"number"==typeof a?g(a):a},a=function(e,t,r){var a=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==a?e:g(a)};function n(e,t){switch(t.type){case"base64":return s(S(e),t);case"binary":return s(e,t);case"buffer":return s(_&&Buffer.isBuffer(e)?e.toString("binary"):O(e),t);case"array":return s(Tt(e),t)}throw new Error("Unrecognized type "+t.type)}function s(e,n){var s,i=e.split(/[\n\r]+/),o=-1,c=-1,l=0,h=0,u=[],d=[],p=null,b={},v=[],g=[],w=[],k=0;for(+n.codepage>=0&&f(+n.codepage);l!==i.length;++l){k=0;var T,E=i[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,r),y=E.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),S=y[0];if(E.length>0)switch(S){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==y[1].charAt(0)&&d.push(E.slice(3).replace(/;;/g,";"));break;case"C":var _=!1,x=!1,A=!1,C=!1,R=-1,I=-1;for(h=1;h-1&&u[R][I];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");u[o][c][1]=Oh(N[1],{r:o-R,c:c-I})}break;case"F":var D=0;for(h=1;h0?(v[o].hpt=k,v[o].hpx=Ml(k)):0===k&&(v[o].hidden=!0);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+E)}D<1&&(p=null);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+E)}}return v.length>0&&(b["!rows"]=v),g.length>0&&(b["!cols"]=g),n&&n.sheetRows&&(u=u.slice(0,n.sheetRows)),[u,b]}function i(e,t){var r=n(e,t),a=r[0],s=r[1],i=za(a,t);return st(s).forEach((function(e){i[e]=s[e]})),i}function o(e,t){return Wa(i(e,t),t)}function c(e,t,r,a){var n="C;Y"+(r+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0,e.f&&!e.F&&(n+=";E"+Ih(e.f,{r:r,c:a}));break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return n}function l(e,t){t.forEach((function(t,r){var a="F;W"+(r+1)+" "+(r+1)+" ";t.hidden?a+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Al(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Cl(t.wpx)),"number"==typeof t.wch&&(a+=Math.round(t.wch)))," "!=a.charAt(a.length-1)&&e.push(a)}))}function h(e,t){t.forEach((function(t,r){var a="F;";t.hidden?a+="M0;":t.hpt?a+="M"+20*t.hpt+";":t.hpx&&(a+="M"+20*Pl(t.hpx)+";"),a.length>2&&e.push(a+"R"+(r+1))}))}function u(e,t){var r,a=["ID;PWXL;N;E"],n=[],s=La(e["!ref"]),i=Array.isArray(e),o="\r\n";a.push("P;PGeneral"),a.push("F;P0;DG0G8;M255"),e["!cols"]&&l(a,e["!cols"]),e["!rows"]&&h(a,e["!rows"]),a.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var f=s.s.r;f<=s.e.r;++f)for(var u=s.s.c;u<=s.e.c;++u){var d=Fa({r:f,c:u});r=i?(e[f]||[])[u]:e[d],r&&(null!=r.v||r.f&&!r.F)&&n.push(c(r,e,f,u,t))}return a.join(o)+o+n.join(o)+o+"E"+o}return e["|"]=254,{to_workbook:o,to_sheet:i,from_sheet:u}}(),_c=function(){function e(e,r){switch(r.type){case"base64":return t(S(e),r);case"binary":return t(e,r);case"buffer":return t(_&&Buffer.isBuffer(e)?e.toString("binary"):O(e),r);case"array":return t(Tt(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){for(var r=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==r.length;++s)if("BOT"!==r[s].trim()){if(!(a<0)){var o=r[s].trim().split(","),c=o[0],l=o[1];++s;var f=r[s]||"";while(1&(f.match(/["]/g)||[]).length&&s=0&&0===s[i].length)--i;for(var o=10,c=0,l=0;l<=i;++l)c=s[l].indexOf(" "),-1==c?c=s[l].length:c++,o=Math.max(o,c);for(l=0;l<=i;++l){n[l]=[];var f=0;for(e(s[l].slice(0,o).trim(),n,l,f,a),f=1;f<=(s[l].length-o)/10+1;++f)e(s[l].slice(o+10*(f-1),o+10*f).trim(),n,l,f,a)}return a.sheetRows&&(n=n.slice(0,a.sheetRows)),n}var r={44:",",9:"\t",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(e){for(var t={},n=!1,s=0,i=0;s0&&v(),s["!ref"]=Ma(i),s}function i(e,r){return r&&r.PRN?r.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?s(e,r):za(t(e,r),r):s(e,r)}function o(e,t){var r="",a="string"==t.type?[0,0,0,0]:Kg(e,t);switch(t.type){case"base64":r=S(e);break;case"binary":r=e;break;case"buffer":r=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof m?m.utils.decode(t.codepage,e):_&&Buffer.isBuffer(e)?e.toString("binary"):O(e);break;case"array":r=Tt(e);break;case"string":r=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]?r=dr(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=dr(r):"binary"==t.type&&"undefined"!==typeof m&&t.codepage&&(r=m.utils.decode(t.codepage,m.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?xc.to_sheet("string"==t.type?r:dr(r),t):i(r,t)}function c(e,t){return Wa(o(e,t),t)}function l(e){for(var t,r=[],a=La(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){for(var i=[],o=a.s.c;o<=a.e.c;++o){var c=Fa({r:s,c:o});if(t=n?(e[s]||[])[o]:e[c],t&&null!=t.v){var l=(t.w||(Ba(t),t.w)||"").slice(0,10);while(l.length<10)l+=" ";i.push(l+(0===o?" ":""))}else i.push(" ")}r.push(i.join(""))}return r.join("\n")}return{to_workbook:c,to_sheet:o,from_sheet:l}}();function Cc(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=Sc.to_workbook(e,r);return r.WTF=a,n}catch(s){if(r.WTF=a,!s.message.match(/SYLK bad record ID/)&&a)throw s;return Ac.to_workbook(e,t)}}var Rc=function(){function e(e,t,r){if(e){pa(e,e.l||0);var a=r.Enum||W;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])a.Enum=W,e(t,(function(e,t,r){switch(r){case 0:a.vers=e,e>=4096&&(a.qpro=!0);break;case 6:h=e;break;case 204:e&&(i=e);break;case 222:i=e;break;case 15:case 51:a.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=a.dateNF||Z[14],a.cellDates&&(e[1].t="d",e[1].v=mt(e[1].v))),a.qpro&&e[3]>o&&(n["!ref"]=Ma(h),c[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],s=i||"Sheet"+(o+1),i="");var f=a.dense?(n[e[0].r]||[])[e[0].c]:n[Fa(e[0])];if(f){f.t=e[1].t,f.v=e[1].v,null!=e[1].z&&(f.z=e[1].z),null!=e[1].f&&(f.f=e[1].f);break}a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Fa(e[0])]=e[1];break;default:}}),a);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);a.Enum=H,14==t[2]&&(a.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:s=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(n["!ref"]=Ma(h),c[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],s="Sheet"+(o+1)),u>0&&e[0].r>=u)break;a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Fa(e[0])]=e[1],h.e.c=0&&f(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var a=ga(),n=La(e["!ref"]),i=Array.isArray(e),o=[];vv(a,0,s(1030)),vv(a,6,c(n));for(var l=Math.min(n.e.r,8191),h=n.s.r;h<=l;++h)for(var d=_a(h),m=n.s.c;m<=n.e.c;++m){h===n.s.r&&(o[m]=Ra(m));var v=o[m]+d,g=i?(e[h]||[])[m]:e[v];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?vv(a,13,p(h,m,g.v)):vv(a,14,b(h,m,g.v));else{var w=Ba(g);vv(a,15,u(h,m,w.slice(0,239)))}}return vv(a,1),a.end()}function n(e,t){var r=t||{};if(+r.codepage>=0&&f(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var a=ga();vv(a,0,i(e));for(var n=0,s=0;n8191&&(r=8191),t.write_shift(2,r),t.write_shift(1,n),t.write_shift(1,a),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function o(e,t,r){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(a.s.c=e.read_shift(1),e.l++,a.s.r=e.read_shift(2),a.e.c=e.read_shift(1),e.l++,a.e.r=e.read_shift(2),a):(a.s.c=e.read_shift(2),a.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}function c(e){var t=ba(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function l(e,t,r){var a=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(a[0].c=e.read_shift(1),a[3]=e.read_shift(1),a[0].r=e.read_shift(2),e.l+=2):(a[2]=e.read_shift(1),a[0].c=e.read_shift(2),a[0].r=e.read_shift(2)),a}function h(e,t,r){var a=e.l+t,n=l(e,t,r);if(n[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return n[1].v=e.read_shift(s,"utf8"),n}return r.qpro&&e.l++,n[1].v=e.read_shift(a-e.l,"cstr"),n}function u(e,t,r){var a=ba(7+r.length);a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(1,39);for(var n=0;n=128?95:s)}return a.write_shift(1,0),a}function d(e,t,r){var a=l(e,t,r);return a[1].v=e.read_shift(2,"i"),a}function p(e,t,r){var a=ba(7);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,r,"i"),a}function m(e,t,r){var a=l(e,t,r);return a[1].v=e.read_shift(8,"f"),a}function b(e,t,r){var a=ba(13);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(8,r,"f"),a}function v(e,t,r){var a=e.l+t,n=l(e,t,r);if(n[1].v=e.read_shift(8,"f"),r.qpro)e.l=a;else{var s=e.read_shift(2);E(e.slice(e.l,e.l+s),n),e.l+=s}return n}function g(e,t,r){var a=32768&t;return t&=-32769,t=(a?e:0)+(t>=8192?t-16384:t),(a?"":"$")+(r?Ra(t):_a(t))}var w={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},T=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function E(e,t){pa(e,0);var r=[],a=0,n="",s="",i="",o="";while(e.lr.length)return void console.error("WK1 bad formula parse 0x"+c.toString(16)+":|"+r.join("|")+"|");var u=r.slice(-a);r.length-=a,r.push(w[c][0]+"("+u.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}function y(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function _(e,t){var r=y(e,t);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}function x(e,t,r,a){var n=ba(6+a.length);n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),n.write_shift(1,39);for(var s=0;s=128?95:i)}return n.write_shift(1,0),n}function A(e,t){var r=y(e,t);r[1].v=e.read_shift(2);var a=r[1].v>>1;if(1&r[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break}return r[1].v=a,r}function C(e,t){var r=y(e,t),a=e.read_shift(4),n=e.read_shift(4),s=e.read_shift(2);if(65535==s)return 0===a&&3221225472===n?(r[1].t="e",r[1].v=15):0===a&&3489660928===n?(r[1].t="e",r[1].v=42):r[1].v=0,r;var i=32768&s;return s=(32767&s)-16446,r[1].v=(1-2*i)*(n*Math.pow(2,s+32)+a*Math.pow(2,s)),r}function I(e,t,r,a){var n=ba(14);if(n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),0==a)return n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,65535),n;var s=0,i=0,o=0,c=0;return a<0&&(s=1,a=-a),i=0|Math.log2(a),a/=Math.pow(2,i-31),c=a>>>0,0==(2147483648&c)&&(a/=2,++i,c=a>>>0),a-=c,c|=2147483648,c>>>=0,a*=Math.pow(2,32),o=a>>>0,n.write_shift(4,o),n.write_shift(4,c),i+=16383+(s?32768:0),n.write_shift(2,i),n}function O(e,t){var r=C(e,14);return e.l+=t-14,r}function N(e,t){var r=y(e,t),a=e.read_shift(4);return r[1].v=a>>6,r}function D(e,t){var r=y(e,t),a=e.read_shift(8,"f");return r[1].v=a,r}function F(e,t){var r=D(e,14);return e.l+=t-10,r}function P(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function M(e,t){var r=e[e.l++];r>t-1&&(r=t-1);var a="";while(a.length127?95:n}return r[r.l++]=0,r}var W={0:{n:"BOF",f:ri},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:h},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:P},222:{n:"SHEETNAMELP",f:M},65535:{n:""}},H={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:_},23:{n:"NUMBER17",f:C},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:O},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:U},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:D},40:{n:"FORMULA28",f:F},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:P},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:L},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:n,to_workbook:t}}();function Ic(e){var t={},r=e.match(Gt),a=0,n=!1;if(r)for(;a!=r.length;++a){var s=Yt(r[a]);switch(s[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":n=!1;break;default:if(47!==s[0].charCodeAt(1)&&!n)throw new Error("Unrecognized rich format "+s[0])}}return t}var Oc=function(){var e=mr("t"),t=mr("rPr");function r(r){var a=r.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:qt(a[1])},s=r.match(t);return s&&(n.s=Ic(s[1])),n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(e){return e.replace(a,"").split(n).map(r).filter((function(e){return e.v}))}}(),Nc=function(){var e=/(\r\n|\n)/g;function t(e,t,r){var a=[];e.u&&a.push("text-decoration: underline;"),e.uval&&a.push("text-underline-style:"+e.uval+";"),e.sz&&a.push("font-size:"+e.sz+"pt;"),e.outline&&a.push("text-effect: outline;"),e.shadow&&a.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),r.push("")),e.i&&(t.push(""),r.push("")),e.strike&&(t.push(""),r.push(""));var n=e.valign||"";return"superscript"==n||"super"==n?n="sup":"subscript"==n&&(n="sub"),""!=n&&(t.push("<"+n+">"),r.push("")),r.push(""),e}function r(r){var a=[[],r.v,[]];return r.v?(r.s&&t(r.s,a[0],a[2]),a[0].join("")+a[1].replace(e,"
")+a[2].join("")):""}return function(e){return e.map(r).join("")}}(),Dc=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Fc=/<(?:\w+:)?r>/,Pc=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Mc(e,t){var r=!t||t.cellHTML,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=qt(dr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=dr(e),r&&(a.h=nr(a.t))):e.match(Fc)&&(a.r=dr(e),a.t=qt(dr((e.replace(Pc,"").match(Dc)||[]).join("").replace(Gt,""))),r&&(a.h=Nc(Oc(a.r)))),a):{t:""}}var Lc=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Uc=/<(?:\w+:)?(?:si|sstItem)>/g,Bc=/<\/(?:\w+:)?(?:si|sstItem)>/;function Wc(e,t){var r=[],a="";if(!e)return r;var n=e.match(Lc);if(n){a=n[2].replace(Uc,"").split(Bc);for(var s=0;s!=a.length;++s){var i=Mc(a[s].trim(),t);null!=i&&(r[r.length]=i)}n=Yt(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}var Hc=/^\s|\s$|[\t\n\r]/;function zc(e,t){if(!t.bookSST)return"";var r=[Ht];r[r.length]=Sr("sst",null,{xmlns:Ir[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a)if(null!=e[a]){var n=e[a],s="";n.r?s+=n.r:(s+=""),s+="",r[r.length]=s}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Vc(e){return[e.read_shift(4),e.read_shift(4)]}function jc(e,t){var r=[],a=!1;return va(e,(function(e,n,s){switch(s){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(n.T,!a||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}function Gc(e,t){return t||(t=ba(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var $c=Ja;function Xc(e){var t=ga();wa(t,159,Gc(e));for(var r=0;r=4&&(e.l+=t-4),r}function Jc(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Kc(e,4),t.U=Kc(e,4),t.W=Kc(e,4),t}function Zc(e){var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),s=[];while(n-- >0)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function qc(e){var t=[];e.l+=4;var r=e.read_shift(4);while(r-- >0)t.push(Zc(e));return t}function Qc(e){var t=[];e.l+=4;var r=e.read_shift(4);while(r-- >0)t.push(e.read_shift(0,"lpp4"));return t}function el(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Kc(e,4),t.U=Kc(e,4),t.W=Kc(e,4),t}function tl(e){var t=el(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function rl(e,t){var r=e.l+t,a={};a.Flags=63&e.read_shift(4),e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=36==a.Flags;break;case 26625:n=4==a.Flags;break;case 0:n=16==a.Flags||4==a.Flags||36==a.Flags;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function al(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function nl(e){var t=Kc(e);switch(t.Minor){case 2:return[t.Minor,sl(e,t)];case 3:return[t.Minor,il(e,t)];case 4:return[t.Minor,ol(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function sl(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),a=rl(e,r),n=al(e,e.length-e.l);return{t:"Std",h:a,v:n}}function il(){throw new Error("File is password-protected: ECMA-376 Extensible")}function ol(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(Gt,(function(e){var r=Yt(e);switch(Kt(r[0])){case"":break;case"":case"":break;case"":break;case"4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=rl(e,n),t-=n,r.EncryptionVerifier=al(e,t),r}function ll(e){var t={},r=t.EncryptionVersionInfo=Kc(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function fl(e){var t,r,a,n,s,i,o=0,c=Yc(e),l=c.length+1;for(t=A(l),t[0]=c.length,r=1;r!=l;++r)t[r]=c[r-1];for(r=l-1;r>=0;--r)a=t[r],n=0===(16384&o)?0:1,s=o<<1&32767,i=n|s,o=i^a;return 52811^o}var hl=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(e){return 255&(e/2|128*e)},n=function(e,t){return a(e^t)},s=function(e){for(var a=t[e.length-1],n=104,s=e.length-1;s>=0;--s)for(var i=e[s],o=0;7!=o;++o)64&i&&(a^=r[n]),i*=2,--n;return a};return function(t){for(var r,a,i,o=Yc(t),c=s(o),l=o.length,f=A(16),h=0;16!=h;++h)f[h]=0;1===(1&l)&&(r=c>>8,f[l]=n(e[0],r),--l,r=255&c,a=o[o.length-1],f[l]=n(a,r));while(l>0)--l,r=c>>8,f[l]=n(o[l],r),--l,r=255&c,f[l]=n(o[l],r);l=15,i=15-o.length;while(i>0)r=c>>8,f[l]=n(e[i],r),--l,--i,r=255&c,f[l]=n(o[l],r),--l,--i;return f}}(),ul=function(e,t,r,a,n){var s,i;for(n||(n=t),a||(a=hl(e)),s=0;s!=t.length;++s)i=t[s],i^=a[r],i=255&(i>>5|i<<3),n[s]=i,++r;return[n,r,a]},dl=function(e){var t=0,r=hl(e);return function(e){var a=ul("",e,t,r);return t=a[1],a[0]}};function pl(e,t,r,a){var n={key:ri(e),verificationBytes:ri(e)};return r.password&&(n.verifier=fl(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=dl(r.password)),n}function ml(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,1===a.Info?a.Data=ll(e,t):a.Data=cl(e,t),a}function bl(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?ml(e,t-2,a):pl(e,r.biff>=8?t:t-2,r,a),a}var vl=function(){function e(e,r){switch(r.type){case"base64":return t(S(e),r);case"binary":return t(e,r);case"buffer":return t(_&&Buffer.isBuffer(e)?e.toString("binary"):O(e),r);case"array":return t(Tt(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=t||{},a=r.dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.forEach((function(e,t){Array.isArray(a)&&(a[t]=[]);var r,n=/\\\w+\b/g,i=0,o=-1;while(r=n.exec(e)){switch(r[0]){case"\\cell":var c=e.slice(i,n.lastIndex-r[0].length);if(" "==c[0]&&(c=c.slice(1)),++o,c.length){var l={v:c,t:"s"};Array.isArray(a)?a[t][o]=l:a[Fa({r:t,c:o})]=l}break}i=n.lastIndex}o>s.e.c&&(s.e.c=o)})),a["!ref"]=Ma(s),a}function r(t,r){return Wa(e(t,r),r)}function a(e){for(var t,r=["{\\rtf1\\ansi"],a=La(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){r.push("\\trowd\\trautofit1");for(var i=a.s.c;i<=a.e.c;++i)r.push("\\cellx"+(i+1));for(r.push("\\pard\\intbl"),i=a.s.c;i<=a.e.c;++i){var o=Fa({r:s,c:i});t=n?(e[s]||[])[i]:e[o],t&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Ba(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:a}}();function gl(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function wl(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function kl(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),s=Math.min(t,r,a),i=n-s;if(0===i)return[0,0,t];var o=0,c=0,l=n+s;switch(c=i/(l>1?2-l:l),n){case t:o=((r-a)/i+6)%6;break;case r:o=(a-t)/i+2;break;case a:o=(t-r)/i+4;break}return[o/6,c,l/2]}function Tl(e){var t,r=e[0],a=e[1],n=e[2],s=2*a*(n<.5?n:1-n),i=n-s/2,o=[i,i,i],c=6*r;if(0!==a)switch(0|c){case 0:case 6:t=s*c,o[0]+=s,o[1]+=t;break;case 1:t=s*(2-c),o[0]+=t,o[1]+=s;break;case 2:t=s*(c-2),o[1]+=s,o[2]+=t;break;case 3:t=s*(4-c),o[1]+=t,o[2]+=s;break;case 4:t=s*(c-4),o[2]+=s,o[0]+=t;break;case 5:t=s*(6-c),o[2]+=t,o[0]+=s;break}for(var l=0;3!=l;++l)o[l]=Math.round(255*o[l]);return o}function El(e,t){if(0===t)return e;var r=kl(gl(e));return r[2]=t<0?r[2]*(1+t):1-(1-r[2])*(1-t),wl(Tl(r))}var yl=6,Sl=15,_l=1,xl=yl;function Al(e){return Math.floor((e+Math.round(128/xl)/256)*xl)}function Cl(e){return Math.floor((e-5)/xl*100+.5)/100}function Rl(e){return Math.round((e*xl+5)/xl*256)/256}function Il(e){return Rl(Cl(Al(e)))}function Ol(e){var t=Math.abs(e-Il(e)),r=xl;if(t>.005)for(xl=_l;xl":case"":break;case"":case"":n={},r.diagonalUp&&(n.diagonalUp=cr(r.diagonalUp)),r.diagonalDown&&(n.diagonalDown=cr(r.diagonalDown)),t.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in borders")}}))}function Bl(e,t,r,a){t.Fills=[];var n={},s=!1;(e[0].match(Gt)||[]).forEach((function(e){var r=Yt(e);switch(Kt(r[0])){case"":case"":break;case"":case"":n={},t.Fills.push(n);break;case"":break;case"":break;case"":t.Fills.push(n),n={};break;case"":r.patternType&&(n.patternType=r.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in fills")}}))}function Wl(e,t,r,a){t.Fonts=[];var n={},s=!1;(e[0].match(Gt)||[]).forEach((function(e){var i=Yt(e);switch(Kt(i[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(n),n={};break;case"":case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+i[0]+" in fonts")}}))}function Hl(e,t,r){t.NumberFmt=[];for(var a=st(Z),n=0;n":case"":case"":break;case"0){if(c>392){for(c=392;c>60;--c)if(null==t.NumberFmt[c])break;t.NumberFmt[c]=o}je(o,c)}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}function zl(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=e[a]&&(t[t.length]=Sr("numFmt",null,{numFmtId:a,formatCode:tr(e[a])}))})),1===t.length?"":(t[t.length]="",t[0]=Sr("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Vl=["numFmtId","fillId","fontId","borderId","xfId"],jl=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Gl(e,t,r){var a;t.CellXf=[];var n=!1;(e[0].match(Gt)||[]).forEach((function(e){var s=Yt(e),i=0;switch(Kt(s[0])){case"":case"":case"":break;case"":for(a=s,delete a[0],i=0;i392)for(i=392;i>60;--i)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[i]){a.numFmtId=i;break}t.CellXf.push(a);break;case"":break;case"":var o={};s.vertical&&(o.vertical=s.vertical),s.horizontal&&(o.horizontal=s.horizontal),null!=s.textRotation&&(o.textRotation=s.textRotation),s.indent&&(o.indent=s.indent),s.wrapText&&(o.wrapText=cr(s.wrapText)),a.alignment=o;break;case"":break;case"":case"":break;case"":n=!1;break;case"":case"":break;case"":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}}))}function $l(e){var t=[];return t[t.length]=Sr("cellXfs",null),e.forEach((function(e){t[t.length]=Sr("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=Sr("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Xl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,i,o){var c,l={};return s?(s=s.replace(//gm,"").replace(//gm,""),(c=s.match(e))&&Hl(c,l,o),(c=s.match(a))&&Wl(c,l,i,o),(c=s.match(r))&&Bl(c,l,i,o),(c=s.match(n))&&Ul(c,l,i,o),(c=s.match(t))&&Gl(c,l,o),l):l}}();function Yl(e,t){var r,a=[Ht,Sr("styleSheet",null,{xmlns:Ir[0],"xmlns:vt":Rr.vt})];return e.SSF&&null!=(r=zl(e.SSF))&&(a[a.length]=r),a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',(r=$l(t.cellXfs))&&(a[a.length]=r),a[a.length]='',a[a.length]='',a[a.length]='',a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function Kl(e,t){var r=e.read_shift(2),a=Ga(e,t-2);return[r,a]}function Jl(e,t,r){r||(r=ba(6+4*t.length)),r.write_shift(2,e),$a(t,r);var a=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),a}function Zl(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=Tn(e,2,r);n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1);var s=e.read_shift(2);switch(700===s&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var i=e.read_shift(1);0!=i&&(a.underline=i);var o=e.read_shift(1);o>0&&(a.family=o);var c=e.read_shift(1);switch(c>0&&(a.charset=c),e.l++,a.color=wn(e,8),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=Ga(e,t-21),a}function ql(e,t){t||(t=ba(153)),t.write_shift(2,20*e.sz),En(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),kn(e.color,t);var a=0;return"major"==e.scheme&&(a=1),"minor"==e.scheme&&(a=2),t.write_shift(1,a),$a(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Ql,ef=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],tf=ma;function rf(e,t){t||(t=ba(84)),Ql||(Ql=ot(ef));var r=Ql[e.patternType];null==r&&(r=40),t.write_shift(4,r);var a=0;if(40!=r)for(kn({auto:1},t),kn({auto:1},t);a<12;++a)t.write_shift(4,0);else{for(;a<4;++a)t.write_shift(4,0);for(;a<12;++a)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function af(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}function nf(e,t,r){r||(r=ba(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var a=0;return r.write_shift(1,a),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function sf(e,t){return t||(t=ba(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var of=ma;function cf(e,t){return t||(t=ba(51)),t.write_shift(1,0),sf(null,t),sf(null,t),sf(null,t),sf(null,t),sf(null,t),t.length>t.l?t.slice(0,t.l):t}function lf(e,t){return t||(t=ba(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),on(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function ff(e,t,r){var a=ba(2052);return a.write_shift(4,e),on(t,a),on(r,a),a.length>a.l?a.slice(0,a.l):a}function hf(e,t,r){var a={NumberFmt:[]};for(var n in Z)a.NumberFmt[n]=Z[n];a.CellXf=[],a.Fonts=[];var s=[],i=!1;return va(e,(function(e,n,o){switch(o){case 44:a.NumberFmt[e[0]]=e[1],je(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=El(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==s[s.length-1]&&a.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(o),i=!0;break;case 38:s.pop(),i=!1;break;default:if(n.T>0)s.push(o);else if(n.T<0)s.pop();else if(!i||r.WTF&&37!=s[s.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}})),a}function uf(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var a=e[0];a<=e[1];++a)null!=t[a]&&++r})),0!=r&&(wa(e,615,ja(r)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=t[a]&&wa(e,44,Jl(a,t[a]))})),wa(e,616))}}function df(e){var t=1;0!=t&&(wa(e,611,ja(t)),wa(e,43,ql({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),wa(e,612))}function pf(e){var t=2;0!=t&&(wa(e,603,ja(t)),wa(e,45,rf({patternType:"none"})),wa(e,45,rf({patternType:"gray125"})),wa(e,604))}function mf(e){var t=1;0!=t&&(wa(e,613,ja(t)),wa(e,46,cf({})),wa(e,614))}function bf(e){var t=1;wa(e,626,ja(t)),wa(e,47,nf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),wa(e,627)}function vf(e,t){wa(e,617,ja(t.length)),t.forEach((function(t){wa(e,47,nf(t,0))})),wa(e,618)}function gf(e){var t=1;wa(e,619,ja(t)),wa(e,48,lf({xfId:0,builtinId:0,name:"Normal"})),wa(e,620)}function wf(e){var t=0;wa(e,505,ja(t)),wa(e,506)}function kf(e){var t=0;wa(e,508,ff(t,"TableStyleMedium9","PivotStyleMedium4")),wa(e,509)}function Tf(){}function Ef(e,t){var r=ga();return wa(r,278),uf(r,e.SSF),df(r,e),pf(r,e),mf(r,e),bf(r,e),vf(r,t.cellXfs),gf(r,e),wf(r,e),kf(r,e),Tf(r,e),wa(r,279),r.end()}var yf=["","","","","","","","","","","",""];function Sf(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(Gt)||[]).forEach((function(e){var n=Yt(e);switch(n[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===n[0].charAt(1)?(t.themeElements.clrScheme[yf.indexOf(n[0])]=a,a={}):a.name=n[0].slice(3,n[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme")}}))}function _f(){}function xf(){}var Af=/]*)>[\s\S]*<\/a:clrScheme>/,Cf=/]*)>[\s\S]*<\/a:fontScheme>/,Rf=/]*)>[\s\S]*<\/a:fmtScheme>/;function If(e,t,r){var a;t.themeElements={},[["clrScheme",Af,Sf],["fontScheme",Cf,_f],["fmtScheme",Rf,xf]].forEach((function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)}))}var Of=/]*)>[\s\S]*<\/a:themeElements>/;function Nf(e,t){var r;e&&0!==e.length||(e=Df());var a={};if(!(r=e.match(Of)))throw new Error("themeElements not found in theme");return If(r[0],a,t),a.raw=e,a}function Df(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[Ht];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Ff(e,t,r){var a=e.l+t,n=e.read_shift(4);if(124226!==n)if(r.cellStyles){var s,i=e.slice(e.l);e.l=a;try{s=Bt(i,{type:"array"})}catch(c){return}var o=Ft(s,"theme/theme/theme1.xml",!0);if(o)return Nf(o,r)}else e.l=a}function Pf(e){return e.read_shift(4)}function Mf(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Lf(e,4);break;case 2:t.xclrValue=Ei(e,4);break;case 3:t.xclrValue=Pf(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Lf(e,t){return ma(e,t)}function Uf(e,t){return ma(e,t)}function Bf(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=Mf(e,r);break;case 6:a[1]=Uf(e,r);break;case 14:case 15:a[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}function Wf(e,t){var r=e.l+t;e.l+=2;var a=e.read_shift(2);e.l+=2;var n=e.read_shift(2),s=[];while(n-- >0)s.push(Bf(e,r-e.l));return{ixfe:a,ext:s}}function Hf(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function zf(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ga(e,t-8)}}function Vf(e){var t=ba(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),$a(e.name,t),t.slice(0,t.l)}function jf(e){var t=[],r=e.read_shift(4);while(r-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Gf(e){var t=ba(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":s=!1;break;case"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),e.join("")}function Qf(e){var t=[];if(!e)return t;var r=1;return(e.match(Gt)||[]).forEach((function(e){var a=Yt(e);switch(a[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var sh=1024;function ih(e,t){var r=[21600,21600],a=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[Sr("xml",null,{"xmlns:v":Or.v,"xmlns:o":Or.o,"xmlns:x":Or.x,"xmlns:mv":Or.mv}).replace(/\/>/,">"),Sr("o:shapelayout",Sr("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Sr("v:shapetype",[Sr("v:stroke",null,{joinstyle:"miter"}),Sr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:a})];while(sh<1e3*e)sh+=1e3;return t.forEach((function(e){var t=Da(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var a="gradient"==r.type?Sr("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,s=Sr("v:fill",a,r),i={on:"t",obscured:"t"};++sh,n=n.concat(["",s,Sr("v:shadow",null,i),Sr("v:path",null,{"o:connecttype":"none"}),'
','',"","",Er("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Er("x:AutoFill","False"),Er("x:Row",String(t.r)),Er("x:Column",String(t.c)),e[1].hidden?"":"","",""])})),n.push(""),n.join("")}function oh(e,t,r,a){var n,s=Array.isArray(e);t.forEach((function(t){var i=Da(t.ref);if(s?(e[i.r]||(e[i.r]=[]),n=e[i.r][i.c]):n=e[t.ref],!n){n={t:"z"},s?e[i.r][i.c]=n:e[t.ref]=n;var o=La(e["!ref"]||"BDWGO1000001:A1");o.s.r>i.r&&(o.s.r=i.r),o.e.ri.c&&(o.s.c=i.c),o.e.c=0;--f){if(!r&&n.c[f].T)return;r&&!n.c[f].T&&n.c.splice(f,1)}if(r&&a)for(f=0;f/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(n){var s=Yt(n[0]),i={author:s.authorId&&r[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid},o=Da(s.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&Mc(c[1])||{r:"",t:"",h:""};i.r=l.r,""==l.r&&(l.t=l.h=""),i.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(i.h=l.h),a.push(i)}}}})),a}function lh(e){var t=[Ht,Sr("comments",null,{xmlns:Ir[0]})],r=[];return t.push(""),e.forEach((function(e){e[1].forEach((function(e){var a=tr(e.a);-1==r.indexOf(a)&&(r.push(a),t.push(""+a+"")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("tc="+e.ID+""))}))})),0==r.length&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach((function(e){var a=0,n=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?a=r.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(a=r.indexOf(tr(e.a))),n.push(e.t||"")})),t.push(''),n.length<=1)t.push(Er("t",tr(n[0]||"")));else{for(var s="Comment:\n "+n[0]+"\n",i=1;i")})),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function fh(e,t){var r=[],a=!1,n={},s=0;return e.replace(Gt,(function(i,o){var c=Yt(i);switch(Kt(c[0])){case"":break;case"":null!=n.t&&r.push(n);break;case"":case"":n.t=e.slice(s,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":a=!0;break;case"":a=!1;break;case"":case"
":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return i})),r}function hh(e,t,r){var a=[Ht,Sr("ThreadedComments",null,{xmlns:Rr.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var n="";(e[1]||[]).forEach((function(s,i){if(s.T){s.a&&-1==t.indexOf(s.a)&&t.push(s.a);var o={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==i?n=o.id:o.parentId=n,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),a.push(Sr("threadedComment",Er("text",s.t||""),o))}else delete s.ID}))})),a.push(""),a.join("")}function uh(e,t){var r=[],a=!1;return e.replace(Gt,(function(e){var n=Yt(e);switch(Kt(n[0])){case"":break;case"":break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),r}function dh(e){var t=[Ht,Sr("personList",null,{xmlns:Rr.TCMNT,"xmlns:x":Ir[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,r){t.push(Sr("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push(""),t.join("")}function ph(e){var t={};t.iauthor=e.read_shift(4);var r=mn(e,16);return t.rfx=r.s,t.ref=Fa(r.s),e.l+=16,t}function mh(e,t){return null==t&&(t=ba(36)),t.write_shift(4,e[1].iauthor),bn(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var bh=Ga;function vh(e){return $a(e.slice(0,54))}function gh(e,t){var r=[],a=[],n={},s=!1;return va(e,(function(e,i,o){switch(o){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t,n.h=e.h,n.r=e.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(i.T);else if(!s||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),r}function wh(e){var t=ga(),r=[];return wa(t,628),wa(t,630),e.forEach((function(e){e[1].forEach((function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),wa(t,632,vh(e.a)))}))})),wa(t,631),wa(t,633),e.forEach((function(e){e[1].forEach((function(a){a.iauthor=r.indexOf(a.a);var n={s:Da(e[0]),e:Da(e[0])};wa(t,635,mh([n,a])),a.t&&a.t.length>0&&wa(t,637,qa(a)),wa(t,636),delete a.iauthor}))})),wa(t,634),wa(t,629),t.end()}var kh="application/vnd.ms-office.vbaProject";function Th(e){var t=Qe.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,a){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Qe.utils.cfb_add(t,n,e.FileIndex[a].content)}})),Qe.write(t)}function Eh(e,t){t.FullPaths.forEach((function(r,a){if(0!=a){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==n.slice(-1)&&Qe.utils.cfb_add(e,n,t.FileIndex[a].content)}}))}var yh=["xlsb","xlsm","xlam","biff8","xla"];function Sh(){return{"!type":"dialog"}}function _h(){return{"!type":"dialog"}}function xh(){return{"!type":"macro"}}function Ah(){return{"!type":"macro"}}var Ch=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,a,n){var s=!1,i=!1;0==a.length?i=!0:"["==a.charAt(0)&&(i=!0,a=a.slice(1,-1)),0==n.length?s=!0:"["==n.charAt(0)&&(s=!0,n=n.slice(1,-1));var o=a.length>0?0|parseInt(a,10):0,c=n.length>0?0|parseInt(n,10):0;return s?c+=t.c:--c,i?o+=t.r:--o,r+(s?"":"$")+Ra(c)+(i?"":"$")+_a(o)}return function(a,n){return t=n,a.replace(e,r)}}(),Rh=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Ih=function(){return function(e,t){return e.replace(Rh,(function(e,r,a,n,s,i){var o=Ca(n)-(a?0:t.c),c=Sa(i)-(s?0:t.r),l=0==c?"":s?c+1:"["+c+"]",f=0==o?"":a?o+1:"["+o+"]";return r+"R"+l+"C"+f}))}}();function Oh(e,t){return e.replace(Rh,(function(e,r,a,n,s,i){return r+("$"==a?a+n:Ra(Ca(n)+t.c))+("$"==s?s+i:_a(Sa(i)+t.r))}))}function Nh(e,t,r){var a=Pa(t),n=a.s,s=Da(r),i={r:s.r-n.r,c:s.c-n.c};return Oh(e,i)}function Dh(e){return 1!=e.length}function Fh(e){return e.replace(/_xlfn\./g,"")}function Ph(e){e.l+=1}function Mh(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function Lh(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return Uh(e,t,r);12==r.biff&&(a=4)}var n=e.read_shift(a),s=e.read_shift(a),i=Mh(e,2),o=Mh(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:o[0],cRel:o[1],rRel:o[2]}}}function Uh(e){var t=Mh(e,2),r=Mh(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function Bh(e,t,r){if(r.biff<8)return Uh(e,t,r);var a=e.read_shift(12==r.biff?4:2),n=e.read_shift(12==r.biff?4:2),s=Mh(e,2),i=Mh(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:n,c:i[0],cRel:i[1],rRel:i[2]}}}function Wh(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Hh(e,t,r);var a=e.read_shift(r&&12==r.biff?4:2),n=Mh(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Hh(e){var t=Mh(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function zh(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function Vh(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return jh(e,t,r);var n=e.read_shift(a>=12?4:2),s=e.read_shift(2),i=(16384&s)>>14,o=(32768&s)>>15;if(s&=16383,1==o)while(n>524287)n-=1048576;if(1==i)while(s>8191)s-=16384;return{r:n,c:s,cRel:i,rRel:o}}function jh(e){var t=e.read_shift(2),r=e.read_shift(1),a=(32768&t)>>15,n=(16384&t)>>14;return t&=16383,1==a&&t>=8192&&(t-=16384),1==n&&r>=128&&(r-=256),{r:t,c:r,cRel:n,rRel:a}}function Gh(e,t,r){var a=(96&e[e.l++])>>5,n=Lh(e,r.biff>=2&&r.biff<=5?6:8,r);return[a,n]}function $h(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2,"i"),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var i=Lh(e,s,r);return[a,n,i]}function Xh(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}function Yh(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[a,n]}function Kh(e,t,r){var a=(96&e[e.l++])>>5,n=Bh(e,t-1,r);return[a,n]}function Jh(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[a]}function Zh(e){var t=1&e[e.l+1],r=1;return e.l+=4,[t,r]}function qh(e,t,r){e.l+=2;for(var a=e.read_shift(r&&2==r.biff?1:2),n=[],s=0;s<=a;++s)n.push(e.read_shift(r&&2==r.biff?1:2));return n}function Qh(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}function eu(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}function tu(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function ru(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[a]}function au(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function nu(e){return e.read_shift(2),au(e,2)}function su(e){return e.read_shift(2),au(e,2)}function iu(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=Wh(e,0,r);return[a,n]}function ou(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=Vh(e,0,r);return[a,n]}function cu(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(2);r&&5==r.biff&&(e.l+=12);var s=Wh(e,0,r);return[a,n,s]}function lu(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[_d[n],Sd[n],a]}function fu(e,t,r){var a=e[e.l++],n=e.read_shift(1),s=r&&r.biff<=3?[88==a?-1:0,e.read_shift(1)]:hu(e);return[n,(0===s[0]?Sd:yd)[s[1]]]}function hu(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function uu(e,t,r){e.l+=r&&2==r.biff?3:4}function du(e,t,r){if(e.l++,r&&12==r.biff)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function pu(e){return e.l++,$n[e.read_shift(1)]}function mu(e){return e.l++,e.read_shift(2)}function bu(e){return e.l++,0!==e.read_shift(1)}function vu(e){return e.l++,vn(e,8)}function gu(e,t,r){return e.l++,oi(e,t-1,r)}function wu(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=ei(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=$n[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=vn(e,8);break;case 2:r[1]=ui(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function ku(e,t,r){for(var a=e.read_shift(12==r.biff?4:2),n=[],s=0;s!=a;++s)n.push((12==r.biff?mn:Oi)(e,8));return n}function Tu(e,t,r){var a=0,n=0;12==r.biff?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,0==--n&&(n=256));for(var s=0,i=[];s!=a&&(i[s]=[]);++s)for(var o=0;o!=n;++o)i[s][o]=wu(e,r.biff);return i}function Eu(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,s=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,s]}function yu(e,t,r){if(5==r.biff)return Su(e,t,r);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),s=e.read_shift(4);return[a,n,s]}function Su(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}function _u(e,t,r){var a=e.read_shift(1)>>>5&3;e.l+=r&&2==r.biff?3:4;var n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function xu(e,t,r){var a=e.read_shift(1)>>>5&3,n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function Au(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[a]}function Cu(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[a,n]}var Ru=ma,Iu=ma,Ou=ma;function Nu(e,t,r){return e.l+=2,[zh(e,4,r)]}function Du(e){return e.l+=6,[]}var Fu=Nu,Pu=Du,Mu=Du,Lu=Nu;function Uu(e){return e.l+=2,[ri(e),1&e.read_shift(2)]}var Bu=Nu,Wu=Uu,Hu=Du,zu=Nu,Vu=Nu,ju=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Gu(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),s=e.read_shift(2),i=ju[r>>2&31];return{ixti:t,coltype:3&r,rt:i,idx:a,c:n,C:s}}function $u(e){return e.l+=2,[e.read_shift(4)]}function Xu(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}function Yu(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}function Ku(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Ju(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Zu(e){return e.l+=4,[0,0]}var qu={1:{n:"PtgExp",f:du},2:{n:"PtgTbl",f:Ou},3:{n:"PtgAdd",f:Ph},4:{n:"PtgSub",f:Ph},5:{n:"PtgMul",f:Ph},6:{n:"PtgDiv",f:Ph},7:{n:"PtgPower",f:Ph},8:{n:"PtgConcat",f:Ph},9:{n:"PtgLt",f:Ph},10:{n:"PtgLe",f:Ph},11:{n:"PtgEq",f:Ph},12:{n:"PtgGe",f:Ph},13:{n:"PtgGt",f:Ph},14:{n:"PtgNe",f:Ph},15:{n:"PtgIsect",f:Ph},16:{n:"PtgUnion",f:Ph},17:{n:"PtgRange",f:Ph},18:{n:"PtgUplus",f:Ph},19:{n:"PtgUminus",f:Ph},20:{n:"PtgPercent",f:Ph},21:{n:"PtgParen",f:Ph},22:{n:"PtgMissArg",f:Ph},23:{n:"PtgStr",f:gu},26:{n:"PtgSheet",f:Xu},27:{n:"PtgEndSheet",f:Yu},28:{n:"PtgErr",f:pu},29:{n:"PtgBool",f:bu},30:{n:"PtgInt",f:mu},31:{n:"PtgNum",f:vu},32:{n:"PtgArray",f:Jh},33:{n:"PtgFunc",f:lu},34:{n:"PtgFuncVar",f:fu},35:{n:"PtgName",f:Eu},36:{n:"PtgRef",f:iu},37:{n:"PtgArea",f:Gh},38:{n:"PtgMemArea",f:_u},39:{n:"PtgMemErr",f:Ru},40:{n:"PtgMemNoMem",f:Iu},41:{n:"PtgMemFunc",f:xu},42:{n:"PtgRefErr",f:Au},43:{n:"PtgAreaErr",f:Xh},44:{n:"PtgRefN",f:ou},45:{n:"PtgAreaN",f:Kh},46:{n:"PtgMemAreaN",f:Ku},47:{n:"PtgMemNoMemN",f:Ju},57:{n:"PtgNameX",f:yu},58:{n:"PtgRef3d",f:cu},59:{n:"PtgArea3d",f:$h},60:{n:"PtgRefErr3d",f:Cu},61:{n:"PtgAreaErr3d",f:Yh},255:{}},Qu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},ed={1:{n:"PtgElfLel",f:Uu},2:{n:"PtgElfRw",f:zu},3:{n:"PtgElfCol",f:Fu},6:{n:"PtgElfRwV",f:Vu},7:{n:"PtgElfColV",f:Lu},10:{n:"PtgElfRadical",f:Bu},11:{n:"PtgElfRadicalS",f:Hu},13:{n:"PtgElfColS",f:Pu},15:{n:"PtgElfColSV",f:Mu},16:{n:"PtgElfRadicalLel",f:Wu},25:{n:"PtgList",f:Gu},29:{n:"PtgSxName",f:$u},255:{}},td={0:{n:"PtgAttrNoop",f:Zu},1:{n:"PtgAttrSemi",f:ru},2:{n:"PtgAttrIf",f:eu},4:{n:"PtgAttrChoose",f:qh},8:{n:"PtgAttrGoto",f:Qh},16:{n:"PtgAttrSum",f:uu},32:{n:"PtgAttrBaxcel",f:Zh},33:{n:"PtgAttrBaxcel",f:Zh},64:{n:"PtgAttrSpace",f:nu},65:{n:"PtgAttrSpaceSemi",f:su},128:{n:"PtgAttrIfError",f:tu},255:{}};function rd(e,t,r,a){if(a.biff<8)return ma(e,t);for(var n=e.l+t,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=Tu(e,0,a),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=ku(e,r[i][1],a),s.push(r[i][2]);break;case"PtgExp":a&&12==a.biff&&(r[i][1][1]=e.read_shift(4),s.push(r[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[i][0];default:break}return t=n-e.l,0!==t&&s.push(ma(e,t)),s}function ad(e,t,r){var a,n,s=e.l+t,i=[];while(s!=e.l)t=s-e.l,n=e[e.l],a=qu[n]||qu[Qu[n]],24!==n&&25!==n||(a=(24===n?ed:td)[e[e.l+1]]),a&&a.f?i.push([a.n,a.f(e,t,r)]):ma(e,t);return i}function nd(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function id(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function od(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];case 355:default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[a[0]][0][3]?(n=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function cd(e,t,r){var a=od(e,t,r);return"#REF"==a?a:id(a,r)}function ld(e,t,r,a,n){var s,i,o,c,l=n&&n.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},h=[],u=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,b="",v=0,g=e[0].length;v=0){switch(e[0][m][1][0]){case 0:b=yt(" ",e[0][m][1][1]);break;case 1:b=yt("\r",e[0][m][1][1]);break;default:if(b="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}i+=b,m=-1}h.push(i+sd[w[0]]+s);break;case"PtgIsect":s=h.pop(),i=h.pop(),h.push(i+" "+s);break;case"PtgUnion":s=h.pop(),i=h.pop(),h.push(i+","+s);break;case"PtgRange":s=h.pop(),i=h.pop(),h.push(i+":"+s);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":o=ka(w[1][1],f,n),h.push(Ea(o,l));break;case"PtgRefN":o=r?ka(w[1][1],r,n):w[1][1],h.push(Ea(o,l));break;case"PtgRef3d":u=w[1][1],o=ka(w[1][2],f,n),p=cd(a,u,n);h.push(p+"!"+Ea(o,l));break;case"PtgFunc":case"PtgFuncVar":var k=w[1][0],T=w[1][1];k||(k=0),k&=127;var E=0==k?[]:h.slice(-k);h.length-=k,"User"===T&&(T=E.shift()),h.push(T+"("+E.join(",")+")");break;case"PtgBool":h.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(w[1]);break;case"PtgNum":h.push(String(w[1]));break;case"PtgStr":h.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(w[1]);break;case"PtgAreaN":c=Ta(w[1][1],r?{s:r}:f,n),h.push(ya(c,n));break;case"PtgArea":c=Ta(w[1][1],f,n),h.push(ya(c,n));break;case"PtgArea3d":u=w[1][1],c=w[1][2],p=cd(a,u,n),h.push(p+"!"+ya(c,n));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var y=(a.names||[])[d-1]||(a[0]||[])[d],S=y?y.Name:"SH33TJSNAME"+String(d);S&&"_xlfn."==S.slice(0,6)&&!n.xlfn&&(S=S.slice(6)),h.push(S);break;case"PtgNameX":var _,x=w[1][1];if(d=w[1][2],!(n.biff<=5)){var A="";if(14849==((a[x]||[])[0]||[])[0]||(1025==((a[x]||[])[0]||[])[0]?a[x][d]&&a[x][d].itab>0&&(A=a.SheetNames[a[x][d].itab-1]+"!"):A=a.SheetNames[d-1]+"!"),a[x]&&a[x][d])A+=a[x][d].Name;else if(a[0]&&a[0][d])A+=a[0][d].Name;else{var C=(od(a,x,n)||"").split(";;");C[d-1]?A=C[d-1]:A+="SH33TJSERRX"}h.push(A);break}x<0&&(x=-x),a[x]&&(_=a[x][d]),_||(_={Name:"SH33TJSERRY"}),h.push(_.Name);break;case"PtgParen":var R="(",I=")";if(m>=0){switch(b="",e[0][m][1][0]){case 2:R=yt(" ",e[0][m][1][1])+R;break;case 3:R=yt("\r",e[0][m][1][1])+R;break;case 4:I=yt(" ",e[0][m][1][1])+I;break;case 5:I=yt("\r",e[0][m][1][1])+I;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(R+h.pop()+I);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":o={c:w[1][1],r:w[1][0]};var O={c:r.c,r:r.r};if(a.sharedf[Fa(o)]){var N=a.sharedf[Fa(o)];h.push(ld(N,f,O,a,n))}else{var D=!1;for(s=0;s!=a.arrayf.length;++s)if(i=a.arrayf[s],!(o.ci[0].e.c)&&!(o.ri[0].e.r)){h.push(ld(i[1],f,O,a,n)),D=!0;break}D||h.push(w[1])}break;case"PtgArray":h.push("{"+nd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var F=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=n.biff&&m>=0&&-1==F.indexOf(e[0][v][0])){w=e[0][m];var P=!0;switch(w[1][0]){case 4:P=!1;case 0:b=yt(" ",w[1][1]);break;case 5:P=!1;case 1:b=yt("\r",w[1][1]);break;default:if(b="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}h.push((P?b:"")+h.pop()+(P?"":b)),m=-1}}if(h.length>1&&n.WTF)throw new Error("bad formula stack");return h[0]}function fd(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],ma(e,t-2)];var o=ad(e,i,r);return t!==i+s&&(a=rd(e,t-i-s,o,r)),e.l=n,[o,a]}function hd(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],ma(e,t-2)];var o=ad(e,i,r);return t!==i+s&&(a=rd(e,t-i-s,o,r)),e.l=n,[o,a]}function ud(e,t,r,a){var n,s=e.l+t,i=ad(e,a,r);return s!==e.l&&(n=rd(e,s-e.l,i,r)),[i,n]}function dd(e,t,r){var a,n=e.l+t,s=e.read_shift(2),i=ad(e,s,r);return 65535==s?[[],ma(e,t-2)]:(t!==s+2&&(a=rd(e,n-s-2,i,r)),[i,a])}function pd(e){var t;if(65535!==aa(e,e.l+6))return[vn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function md(e){if(null==e){var t=ba(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return gn("number"==typeof e?e:0)}function bd(e,t,r){var a=e.l+t,n=Si(e,6);2==r.biff&&++e.l;var s=pd(e,8),i=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=hd(e,a-e.l,r);return{cell:n,val:s[0],formula:o,shared:i>>3&1,tt:s[1]}}function vd(e,t,r,a,n){var s=_i(t,r,n),i=md(e.v),o=ba(6),c=33;o.write_shift(2,c),o.write_shift(4,0);for(var l=ba(e.bf.length),f=0;f0?rd(e,s,n,r):null;return[n,i]}var wd=gd,kd=gd,Td=gd,Ed=gd,yd={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Sd={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},_d={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function xd(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Ad(e){var t="of:="+e.replace(Rh,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Cd(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function Rd(e){return e.replace(/\./,"!")}var Id={},Od={},Nd="undefined"!==typeof Map;function Dd(e,t,r){var a=0,n=e.length;if(r){if(Nd?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var s=Nd?r.get(t):r[t];a-1?(r.width=Rl(a),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function Pd(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function Md(e,t,r){var a=r.revssf[null!=t.z?t.z:"General"],n=60,s=e.length;if(null==a&&r.ssf)for(;n<392;++n)if(null==r.ssf[n]){je(t.z,n),r.ssf[n]=t.z,r.revssf[t.z]=a=n;break}for(n=0;n!=s;++n)if(e[n].numFmtId===a)return n;return e[s]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function Ld(e,t,r,a,n,s){try{a.cellNF&&(e.z=Z[t])}catch(o){if(a.WTF)throw o}if("z"!==e.t||a.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=kt(e.v)),(!a||!1!==a.cellText)&&"z"!==e.t)try{if(null==Z[t]&&je(Ye[t]||"General",t),"e"===e.t)e.w=e.w||$n[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=fe(e.v);else if("d"===e.t){var i=ht(e.v);e.w=(0|i)===i?i.toString(10):fe(i)}else{if(void 0===e.v)return"";e.w=he(e.v,Od)}else"d"===e.t?e.w=Ve(t,ht(e.v),Od):e.w=Ve(t,e.v,Od)}catch(o){if(a.WTF)throw o}if(a.cellStyles&&null!=r)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=El(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=El(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(a.WTF&&s.Fills)throw o}}}function Ud(e,t,r){if(e&&e["!ref"]){var a=La(e["!ref"]);if(a.e.c=0&&r.s.c>=0&&(e["!ref"]=Ma(r))}var Wd=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Hd=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,zd=/<(?:\w:)?hyperlink [^>]*>/gm,Vd=/"(\w*:\w*)"/,jd=/<(?:\w:)?col\b[^>]*[\/]?>/g,Gd=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,$d=/<(?:\w:)?pageMargins[^>]*\/>/g,Xd=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Yd=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Kd=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Jd(e,t,r,a,n,s,i){if(!e)return e;a||(a={"!id":{}}),null!=k&&null==t.dense&&(t.dense=k);var o=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",h=e.match(Hd);h?(l=e.slice(0,h.index),f=e.slice(h.index+h[0].length)):l=f=e;var u=l.match(Xd);u?qd(u[0],o,n,r):(u=l.match(Yd))&&Qd(u[0],u[1]||"",o,n,r,i,s);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(Vd);p&&Bd(o,p[1])}var m=l.match(Kd);m&&m[1]&&up(m[1],n);var b=[];if(t.cellStyles){var v=l.match(jd);v&&op(b,v)}h&&mp(h[1],o,t,c,s,i);var g=f.match(Gd);g&&(o["!autofilter"]=lp(g[0]));var w=[],T=f.match(Wd);if(T)for(d=0;d!=T.length;++d)w[d]=La(T[d].slice(T[d].indexOf('"')+1));var E=f.match(zd);E&&np(o,E,a);var y=f.match($d);if(y&&(o["!margins"]=sp(Yt(y[0]))),!o["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(o["!ref"]=Ma(c)),t.sheetRows>0&&o["!ref"]){var S=La(o["!ref"]);t.sheetRows<=+S.e.r&&(S.e.r=t.sheetRows-1,S.e.r>c.e.r&&(S.e.r=c.e.r),S.e.rc.e.c&&(S.e.c=c.e.c),S.e.c0&&(o["!cols"]=b),w.length>0&&(o["!merges"]=w),o}function Zd(e){if(0===e.length)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function qd(e,t,r,a){var n=Yt(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=qt(dr(n.codeName)))}function Qd(e,t,r,a,n){qd(e.slice(0,e.indexOf(">")),r,a,n)}function ep(e,t,r,a,n){var s=!1,i={},o=null;if("xlsx"!==a.bookType&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch(f){}s=!0,i.codeName=pr(tr(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),o=(o||"")+Sr("outlinePr",null,l)}(s||o)&&(n[n.length]=Sr("sheetPr",o,i))}var tp=["objects","scenarios","selectLockedCells","selectUnlockedCells"],rp=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function ap(e){var t={sheet:1};return tp.forEach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),rp.forEach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=fl(e.password).toString(16).toUpperCase()),Sr("sheetProtection",null,t)}function np(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var s=Yt(dr(t[n]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+qt(s.location))):(s.Target="#"+qt(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var o=La(s.ref),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l){var f=Fa({c:l,r:c});a?(e[c]||(e[c]=[]),e[c][l]||(e[c][l]={t:"z",v:void 0}),e[c][l].l=s):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=s)}}}function sp(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(r){e[r]&&(t[r]=parseFloat(e[r]))})),t}function ip(e){return Pd(e),Sr("pageMargins",null,e)}function op(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=Yt(t[a],!0);n.hidden&&(n.hidden=cr(n.hidden));var s=parseInt(n.min,10)-1,i=parseInt(n.max,10)-1;n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,Ol(n.width)),Nl(n);while(s<=i)e[s++]=Et(n)}}function cp(e,t){for(var r,a=[""],n=0;n!=t.length;++n)(r=t[n])&&(a[a.length]=Sr("col",null,Fd(n,r)));return a[a.length]="",a.join("")}function lp(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function fp(e,t,r,a){var n="string"==typeof e.ref?e.ref:Ma(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,i=Pa(n);i.s.r==i.e.r&&(i.e.r=Pa(t["!ref"]).e.r,n=Ma(i));for(var o=0;oa-z][^>]*)?\/?>/;function up(e,t){t.Views||(t.Views=[{}]),(e.match(hp)||[]).forEach((function(e,r){var a=Yt(e);t.Views[r]||(t.Views[r]={}),+a.zoomScale&&(t.Views[r].zoom=+a.zoomScale),cr(a.rightToLeft)&&(t.Views[r].RTL=!0)}))}function dp(e,t,r,a){var n={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Sr("sheetViews",Sr("sheetView",null,n),{})}function pp(e,t,r,a){if(e.c&&r["!comments"].push([t,e.c]),void 0===e.v&&"string"!==typeof e.f||"z"===e.t&&!e.f)return"";var n="",s=e.t,i=e.v;if("z"!==e.t)switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=$n[e.v];break;case"d":a&&a.cellDates?n=kt(e.v,-1).toISOString():(e=Et(e),e.t="n",n=""+(e.v=ht(kt(e.v)))),"undefined"===typeof e.z&&(e.z=Z[14]);break;default:n=e.v;break}var o=Er("v",tr(n)),c={r:t},l=Md(a.cellXfs,e,a);switch(0!==l&&(c.s=l),e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){o=Er("v",""+Dd(a.Strings,e.v,a.revStrings)),c.t="s";break}c.t="str";break}if(e.t!=s&&(e.t=s,e.v=i),"string"==typeof e.f&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=Sr("f",tr(e.f),f)+(null!=e.v?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(c.cm=1),Sr("c",o,c)}var mp=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,s=mr("v"),i=mr("f");return function(o,c,l,f,h,u){for(var d,p,m,b,v,g=0,w="",k=[],T=[],E=0,y=0,S=0,_="",x=0,A=0,C=0,R=0,I=Array.isArray(u.CellXf),O=[],N=[],D=Array.isArray(c),F=[],P={},M=!1,L=!!l.sheetStubs,U=o.split(t),B=0,W=U.length;B!=W;++B){w=U[B].trim();var H=w.length;if(0!==H){var z=0;e:for(g=0;g":if("/"!=w[g-1]){++g;break e}if(l&&l.cellStyles){if(p=Yt(w.slice(z,g),!0),x=null!=p.r?parseInt(p.r,10):x+1,A=-1,l.sheetRows&&l.sheetRows=g)break;if(p=Yt(w.slice(z,g),!0),x=null!=p.r?parseInt(p.r,10):x+1,A=-1,!(l.sheetRows&&l.sheetRowsx-1&&(f.s.r=x-1),f.e.r":"")+w,null!=T&&2===T.length){for(E=0,_=T[1],y=0;y!=_.length;++y){if((S=_.charCodeAt(y)-64)<1||S>26)break;E=26*E+S}--E,A=E}else++A;for(y=0;y!=w.length;++y)if(62===w.charCodeAt(y))break;if(++y,p=Yt(w.slice(0,y),!0),p.r||(p.r=Fa({r:x-1,c:A})),_=w.slice(y),d={t:""},null!=(T=_.match(s))&&""!==T[1]&&(d.v=qt(T[1])),l.cellFormula){if(null!=(T=_.match(i))&&""!==T[1]){if(d.f=qt(dr(T[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=Fh(d.f)),T[0].indexOf('t="array"')>-1)d.F=(_.match(n)||[])[1],d.F.indexOf(":")>-1&&O.push([La(d.F),d.F]);else if(T[0].indexOf('t="shared"')>-1){b=Yt(T[0]);var j=qt(dr(T[1]));l.xlfn||(j=Fh(j)),N[parseInt(b.si,10)]=[b,j,p.r]}}else(T=_.match(/]*\/>/))&&(b=Yt(T[0]),N[b.si]&&(d.f=Nh(N[b.si][1],N[b.si][2],p.r)));var G=Da(p.r);for(y=0;y=O[y][0].s.r&&G.r<=O[y][0].e.r&&G.c>=O[y][0].s.c&&G.c<=O[y][0].e.c&&(d.F=O[y][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!L)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>A&&(f.s.c=A),f.e.c0&&(c["!rows"]=F)}}();function bp(e,t,r,a){var n,s,i=[],o=[],c=La(e["!ref"]),l="",f="",h=[],u=0,d=0,p=e["!rows"],m=Array.isArray(e),b={r:f},v=-1;for(d=c.s.c;d<=c.e.c;++d)h[d]=Ra(d);for(u=c.s.r;u<=c.e.r;++u){for(o=[],f=_a(u),d=c.s.c;d<=c.e.c;++d){n=h[d]+f;var g=m?(e[u]||[])[d]:e[n];void 0!==g&&(null!=(l=pp(g,n,e,t,r,a))&&o.push(l))}(o.length>0||p&&p[u])&&(b={r:f},p&&p[u]&&(s=p[u],s.hidden&&(b.hidden=1),v=-1,s.hpx?v=Pl(s.hpx):s.hpt&&(v=s.hpt),v>-1&&(b.ht=v,b.customHeight=1),s.level&&(b.outlineLevel=s.level)),i[i.length]=Sr("row",o.join(""),b))}if(p)for(;u-1&&(b.ht=v,b.customHeight=1),s.level&&(b.outlineLevel=s.level),i[i.length]=Sr("row","",b));return i.join("")}function vp(e,t,r,a){var n=[Ht,Sr("worksheet",null,{xmlns:Ir[0],"xmlns:r":Rr.r})],s=r.SheetNames[e],i=0,o="",c=r.Sheets[s];null==c&&(c={});var l=c["!ref"]||"A1",f=La(l);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),l=Ma(f)}a||(a={}),c["!comments"]=[];var h=[];ep(c,r,e,t,n),n[n.length]=Sr("dimension",null,{ref:l}),n[n.length]=dp(c,t,e,r),t.sheetFormat&&(n[n.length]=Sr("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(n[n.length]=cp(c,c["!cols"])),n[i=n.length]="",c["!links"]=[],null!=c["!ref"]&&(o=bp(c,t,e,r,a),o.length>0&&(n[n.length]=o)),n.length>i+1&&(n[n.length]="",n[i]=n[i].replace("/>",">")),c["!protect"]&&(n[n.length]=ap(c["!protect"])),null!=c["!autofilter"]&&(n[n.length]=fp(c["!autofilter"],c,r,e)),null!=c["!merges"]&&c["!merges"].length>0&&(n[n.length]=Zd(c["!merges"]));var u,d=-1,p=-1;return c["!links"].length>0&&(n[n.length]="",c["!links"].forEach((function(e){e[1].Target&&(u={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(p=as(a,-1,tr(e[1].Target).replace(/#.*$/,""),Qn.HLINK),u["r:id"]="rId"+p),(d=e[1].Target.indexOf("#"))>-1&&(u.location=tr(e[1].Target.slice(d+1))),e[1].Tooltip&&(u.tooltip=tr(e[1].Tooltip)),n[n.length]=Sr("hyperlink",null,u))})),n[n.length]=""),delete c["!links"],null!=c["!margins"]&&(n[n.length]=ip(c["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(n[n.length]=Er("ignoredErrors",Sr("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(p=as(a,-1,"../drawings/drawing"+(e+1)+".xml",Qn.DRAW),n[n.length]=Sr("drawing",null,{"r:id":"rId"+p}),c["!drawing"]=h),c["!comments"].length>0&&(p=as(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Qn.VML),n[n.length]=Sr("legacyDrawing",null,{"r:id":"rId"+p}),c["!legacy"]=p),n.length>1&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function gp(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,7&s&&(r.level=7&s),16&s&&(r.hidden=!0),32&s&&(r.hpt=n/20),r}function wp(e,t,r){var a=ba(145),n=(r["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var s=320;n.hpx?s=20*Pl(n.hpx):n.hpt&&(s=20*n.hpt),a.write_shift(2,s),a.write_shift(1,0);var i=0;n.level&&(i|=n.level),n.hidden&&(i|=16),(n.hpx||n.hpt)&&(i|=32),a.write_shift(1,i),a.write_shift(1,0);var o=0,c=a.l;a.l+=4;for(var l={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.ca.l?a.slice(0,a.l):a}function kp(e,t,r,a){var n=wp(a,r,t);(n.length>17||(t["!rows"]||[])[a])&&wa(e,0,n)}var Tp=mn,Ep=bn;function yp(){}function Sp(e,t){var r={},a=e[e.l];return++e.l,r.above=!(64&a),r.left=!(128&a),e.l+=18,r.name=an(e,t-19),r}function _p(e,t,r){null==r&&(r=ba(84+4*e.length));var a=192;t&&(t.above&&(a&=-65),t.left&&(a&=-129)),r.write_shift(1,a);for(var n=1;n<3;++n)r.write_shift(1,0);return kn({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),nn(e,r),r.slice(0,r.l)}function xp(e){var t=Qa(e);return[t]}function Ap(e,t,r){return null==r&&(r=ba(8)),en(t,r)}function Cp(e){var t=tn(e);return[t]}function Rp(e,t,r){return null==r&&(r=ba(4)),rn(t,r)}function Ip(e){var t=Qa(e),r=e.read_shift(1);return[t,r,"b"]}function Op(e,t,r){return null==r&&(r=ba(9)),en(t,r),r.write_shift(1,e.v?1:0),r}function Np(e){var t=tn(e),r=e.read_shift(1);return[t,r,"b"]}function Dp(e,t,r){return null==r&&(r=ba(5)),rn(t,r),r.write_shift(1,e.v?1:0),r}function Fp(e){var t=Qa(e),r=e.read_shift(1);return[t,r,"e"]}function Pp(e,t,r){return null==r&&(r=ba(9)),en(t,r),r.write_shift(1,e.v),r}function Mp(e){var t=tn(e),r=e.read_shift(1);return[t,r,"e"]}function Lp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function Up(e){var t=Qa(e),r=e.read_shift(4);return[t,r,"s"]}function Bp(e,t,r){return null==r&&(r=ba(12)),en(t,r),r.write_shift(4,t.v),r}function Wp(e){var t=tn(e),r=e.read_shift(4);return[t,r,"s"]}function Hp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),r.write_shift(4,t.v),r}function zp(e){var t=Qa(e),r=vn(e);return[t,r,"n"]}function Vp(e,t,r){return null==r&&(r=ba(16)),en(t,r),gn(e.v,r),r}function jp(e){var t=tn(e),r=vn(e);return[t,r,"n"]}function Gp(e,t,r){return null==r&&(r=ba(12)),rn(t,r),gn(e.v,r),r}function $p(e){var t=Qa(e),r=hn(e);return[t,r,"n"]}function Xp(e,t,r){return null==r&&(r=ba(12)),en(t,r),un(e.v,r),r}function Yp(e){var t=tn(e),r=hn(e);return[t,r,"n"]}function Kp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),un(e.v,r),r}function Jp(e){var t=Qa(e),r=Ka(e);return[t,r,"is"]}function Zp(e){var t=Qa(e),r=Ga(e);return[t,r,"str"]}function qp(e,t,r){return null==r&&(r=ba(12+4*e.v.length)),en(t,r),$a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function Qp(e){var t=tn(e),r=Ga(e);return[t,r,"str"]}function em(e,t,r){return null==r&&(r=ba(8+4*e.v.length)),rn(t,r),$a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function tm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=e.read_shift(1),i=[n,s,"b"];if(r.cellFormula){e.l+=2;var o=kd(e,a-e.l,r);i[3]=ld(o,null,n,r.supbooks,r)}else e.l=a;return i}function rm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=e.read_shift(1),i=[n,s,"e"];if(r.cellFormula){e.l+=2;var o=kd(e,a-e.l,r);i[3]=ld(o,null,n,r.supbooks,r)}else e.l=a;return i}function am(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=vn(e),i=[n,s,"n"];if(r.cellFormula){e.l+=2;var o=kd(e,a-e.l,r);i[3]=ld(o,null,n,r.supbooks,r)}else e.l=a;return i}function nm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=Ga(e),i=[n,s,"str"];if(r.cellFormula){e.l+=2;var o=kd(e,a-e.l,r);i[3]=ld(o,null,n,r.supbooks,r)}else e.l=a;return i}var sm=mn,im=bn;function om(e,t){return null==t&&(t=ba(4)),t.write_shift(4,e),t}function cm(e,t){var r=e.l+t,a=mn(e,16),n=sn(e),s=Ga(e),i=Ga(e),o=Ga(e);e.l=r;var c={rfx:a,relId:n,loc:s,display:o};return i&&(c.Tooltip=i),c}function lm(e,t){var r=ba(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));bn({s:Da(e[0]),e:Da(e[0])},r),fn("rId"+t,r);var a=e[1].Target.indexOf("#"),n=-1==a?"":e[1].Target.slice(a+1);return $a(n||"",r),$a(e[1].Tooltip||"",r),$a("",r),r.slice(0,r.l)}function fm(){}function hm(e,t,r){var a=e.l+t,n=dn(e,16),s=e.read_shift(1),i=[n];if(i[2]=s,r.cellFormula){var o=wd(e,a-e.l,r);i[1]=o}else e.l=a;return i}function um(e,t,r){var a=e.l+t,n=mn(e,16),s=[n];if(r.cellFormula){var i=Ed(e,a-e.l,r);s[1]=i,e.l=a}else e.l=a;return s}function dm(e,t,r){null==r&&(r=ba(18));var a=Fd(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(a.width||10)),r.write_shift(4,0);var n=0;return t.hidden&&(n|=1),"number"==typeof a.width&&(n|=2),t.level&&(n|=t.level<<8),r.write_shift(2,n),r}var pm=["left","right","top","bottom","header","footer"];function mm(e){var t={};return pm.forEach((function(r){t[r]=vn(e,8)})),t}function bm(e,t){return null==t&&(t=ba(48)),Pd(e),pm.forEach((function(r){gn(e[r],t)})),t}function vm(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function gm(e,t,r){null==r&&(r=ba(30));var a=924;return(((t||{}).Views||[])[0]||{}).RTL&&(a|=32),r.write_shift(2,a),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function wm(e){var t=ba(24);return t.write_shift(4,4),t.write_shift(4,1),bn(e,t),t}function km(e,t){return null==t&&(t=ba(66)),t.write_shift(2,e.password?fl(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(r){r[1]?t.write_shift(4,null==e[r[0]]||e[r[0]]?0:1):t.write_shift(4,null!=e[r[0]]&&e[r[0]]?0:1)})),t}function Tm(){}function Em(){}function ym(e,t,r,a,n,s,i){if(!e)return e;var o=t||{};a||(a={"!id":{}}),null!=k&&null==o.dense&&(o.dense=k);var c,l,f,h,u,d,p,m,b,v,g=o.dense?[]:{},w={s:{r:2e6,c:2e6},e:{r:0,c:0}},T=[],E=!1,y=!1,S=[];o.biff=12,o["!row"]=0;var _=0,x=!1,A=[],C={},R=o.supbooks||n.supbooks||[[]];if(R.sharedf=C,R.arrayf=A,R.SheetNames=n.SheetNames||n.Sheets.map((function(e){return e.name})),!o.supbooks&&(o.supbooks=R,n.Names))for(var I=0;I=I[0].s.r&&l.r<=I[0].e.r&&d>=I[0].s.c&&d<=I[0].e.c&&(f.F=Ma(I[0]),x=!0)}!x&&e.length>3&&(f.f=e[3])}if(w.s.r>l.r&&(w.s.r=l.r),w.s.c>d&&(w.s.c=d),w.e.rl.r&&(w.s.r=l.r),w.s.c>d&&(w.s.c=d),w.e.r=e.s)D[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},P||(P=!0,Ol(e.w/256)),Nl(D[e.e+1]);break;case 161:g["!autofilter"]={ref:Ma(e)};break;case 476:g["!margins"]=e;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name),(e.above||e.left)&&(g["!outline"]={above:e.above,left:e.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),e.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:E=!0;break;case 36:E=!1;break;case 37:T.push(k),E=!0;break;case 38:T.pop(),E=!1;break;default:if(t.T);else if(!E||o.WTF)throw new Error("Unexpected record 0x"+k.toString(16))}}),o),delete o.supbooks,delete o["!row"],!g["!ref"]&&(w.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(g["!ref"]=Ma(c||w)),o.sheetRows&&g["!ref"]){var M=La(g["!ref"]);o.sheetRows<=+M.e.r&&(M.e.r=o.sheetRows-1,M.e.r>w.e.r&&(M.e.r=w.e.r),M.e.rw.e.c&&(M.e.c=w.e.c),M.e.c0&&(g["!merges"]=S),D.length>0&&(g["!cols"]=D),F.length>0&&(g["!rows"]=F),g}function Sm(e,t,r,a,n,s,i){if(void 0===t.v)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=Et(t),t.z=t.z||Z[14],t.v=ht(kt(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var c={r:r,c:a};switch(c.s=Md(n.cellXfs,t,n),t.l&&s["!links"].push([Fa(c),t.l]),t.c&&s["!comments"].push([Fa(c),t.c]),t.t){case"s":case"str":return n.bookSST?(o=Dd(n.Strings,t.v,n.revStrings),c.t="s",c.v=o,i?wa(e,18,Hp(t,c)):wa(e,7,Bp(t,c))):(c.t="str",i?wa(e,17,em(t,c)):wa(e,6,qp(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?i?wa(e,13,Kp(t,c)):wa(e,2,Xp(t,c)):i?wa(e,16,Gp(t,c)):wa(e,5,Vp(t,c)),!0;case"b":return c.t="b",i?wa(e,15,Dp(t,c)):wa(e,4,Op(t,c)),!0;case"e":return c.t="e",i?wa(e,14,Lp(t,c)):wa(e,3,Pp(t,c)),!0}return i?wa(e,12,Rp(t,c)):wa(e,1,Ap(t,c)),!0}function _m(e,t,r,a){var n,s=La(t["!ref"]||"A1"),i="",o=[];wa(e,145);var c=Array.isArray(t),l=s.e.r;t["!rows"]&&(l=Math.max(s.e.r,t["!rows"].length-1));for(var f=s.s.r;f<=l;++f){i=_a(f),kp(e,t,s,f);var h=!1;if(f<=s.e.r)for(var u=s.s.c;u<=s.e.c;++u){f===s.s.r&&(o[u]=Ra(u)),n=o[u]+i;var d=c?(t[f]||[])[u]:t[n];d?h=Sm(e,d,f,u,a,t,h):h=!1}}wa(e,146)}function xm(e,t){t&&t["!merges"]&&(wa(e,177,om(t["!merges"].length)),t["!merges"].forEach((function(t){wa(e,176,im(t))})),wa(e,178))}function Am(e,t){t&&t["!cols"]&&(wa(e,390),t["!cols"].forEach((function(t,r){t&&wa(e,60,dm(r,t))})),wa(e,391))}function Cm(e,t){t&&t["!ref"]&&(wa(e,648),wa(e,649,wm(La(t["!ref"]))),wa(e,650))}function Rm(e,t,r){t["!links"].forEach((function(t){if(t[1].Target){var a=as(r,-1,t[1].Target.replace(/#.*$/,""),Qn.HLINK);wa(e,494,lm(t,a))}})),delete t["!links"]}function Im(e,t,r,a){if(t["!comments"].length>0){var n=as(a,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Qn.VML);wa(e,551,fn("rId"+n)),t["!legacy"]=n}}function Om(e,t,r,a){if(t["!autofilter"]){var n=t["!autofilter"],s="string"===typeof n.ref?n.ref:Ma(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=Pa(s);o.s.r==o.e.r&&(o.e.r=Pa(t["!ref"]).e.r,s=Ma(o));for(var c=0;c16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return i["!links"]=[],i["!comments"]=[],wa(n,129),(r.vbaraw||i["!outline"])&&wa(n,147,_p(o,i["!outline"])),wa(n,148,Ep(c)),Nm(n,i,r.Workbook),Dm(n,i),Am(n,i,e,t,r),_m(n,i,e,t,r),Fm(n,i),Om(n,i,r,e),xm(n,i),Rm(n,i,a),i["!margins"]&&wa(n,476,bm(i["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||Cm(n,i),Im(n,i,e,a),wa(n,130),n.end()}function Mm(e){var t,r=[],a=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=a?+t[2]:t[2])}));var n=qt((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,n,t]}function Lm(e,t,r,a,n,s){var i=s||{"!type":"chart"};if(!e)return s;var o=0,c=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=Mm(e);f.s.r=f.s.c=0,f.e.c=o,l=Ra(o),t[0].forEach((function(e,r){i[l+_a(r)]={t:"n",v:e,z:t[1]},c=r})),f.e.r0&&(i["!ref"]=Ma(f)),i}function Um(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s,i={"!type":"chart","!drawel":null,"!rel":""},o=e.match(Xd);return o&&qd(o[0],i,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}function Bm(e,t){e.l+=10;var r=Ga(e,t-10);return{name:r}}function Wm(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=[],o=!1;return va(e,(function(e,a,c){switch(c){case 550:s["!rel"]=e;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(c);break;case 38:i.pop();break;default:if(a.T>0)i.push(c);else if(a.T<0)i.pop();else if(!o||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),t),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}var Hm=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],zm=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Vm=[],jm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Gm(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var s=t[n];if(null==a[s[0]])a[s[0]]=s[1];else switch(s[2]){case"bool":"string"==typeof a[s[0]]&&(a[s[0]]=cr(a[s[0]]));break;case"int":"string"==typeof a[s[0]]&&(a[s[0]]=parseInt(a[s[0]],10));break}}}function $m(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(null==e[a[0]])e[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof e[a[0]]&&(e[a[0]]=cr(e[a[0]]));break;case"int":"string"==typeof e[a[0]]&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function Xm(e){$m(e.WBProps,Hm),$m(e.CalcPr,jm),Gm(e.WBView,zm),Gm(e.Sheets,Vm),Od.date1904=cr(e.WBProps.date1904)}function Ym(e){return e.Workbook&&e.Workbook.WBProps&&cr(e.Workbook.WBProps.date1904)?"true":"false"}var Km="][*?/\\".split("");function Jm(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Km.forEach((function(a){if(-1!=e.indexOf(a)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}function Zm(e,t,r){e.forEach((function(a,n){Jm(a);for(var s=0;s22)throw new Error("Bad Code Name: Worksheet"+i)}}))}function qm(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];Zm(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":Hm.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=cr(l[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:r.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(r.WBProps.CodeName=dr(l.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete l[0],r.WBView.push(l);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":a=!1;break;case"":s.Ref=qt(dr(e.slice(i,c))),r.Names.push(s);break;case"":break;case"":delete l[0],r.CalcPr=l;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":a=!1;break;case"":a=!0;break;case"":a=!1;break;case"0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Hm.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(a[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(a.codeName=e.Workbook.WBProps.CodeName,delete a.CodeName)),t[t.length]=Sr("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[],s=0;if(n&&n[0]&&n[0].Hidden){for(t[t.length]="",s=0;s!=e.SheetNames.length;++s){if(!n[s])break;if(!n[s].Hidden)break}s==e.SheetNames.length&&(s=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",s=0;s!=e.SheetNames.length;++s){var i={name:tr(e.SheetNames[s].slice(0,31))};if(i.sheetId=""+(s+1),i["r:id"]="rId"+(s+1),n[s])switch(n[s].Hidden){case 1:i.state="hidden";break;case 2:i.state="veryHidden";break}t[t.length]=Sr("sheet",null,i)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=Sr("definedName",tr(e.Ref),r))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function rb(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=ln(e,t-8),r.name=Ga(e),r}function ab(e,t){return t||(t=ba(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),fn(e.strRelID,t),$a(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function nb(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?Ga(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(65536&a),r.backupFile=!!(64&a),r.checkCompatibility=!!(4096&a),r.date1904=!!(1&a),r.filterPrivacy=!!(8&a),r.hidePivotFieldList=!!(1024&a),r.promptedSolutions=!!(16&a),r.publishItems=!!(2048&a),r.refreshAllConnections=!!(262144&a),r.saveExternalLinkValues=!!(128&a),r.showBorderUnselectedTables=!!(4&a),r.showInkAnnotation=!!(32&a),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(32768&a),r.updateLinks=["userSet","never","always"][a>>8&3],r}function sb(e,t){t||(t=ba(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),nn(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function ib(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function ob(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),s=cn(e),i=Td(e,0,r),o=sn(e);e.l=a;var c={Name:s,Ptg:i};return n<268435455&&(c.Sheet=n),o&&(c.Comment=o),c}function cb(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],mv[16]={n:"BrtFRTArchID$",f:ib},va(e,(function(e,o,c){switch(c){case 156:i.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=ld(e.Ptg,null,null,i,t),delete t.SID,delete e.Ptg,s.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:i[0].length?i.push([c,e]):i[0]=[c,e],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(e),i.XTI=i.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(c),n=!0;break;case 36:a.pop(),n=!1;break;case 37:a.push(c),n=!0;break;case 38:a.pop(),n=!1;break;case 16:break;default:if(o.T);else if(!n||t.WTF&&37!=a[a.length-1]&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),Xm(r),r.Names=s,r.supbooks=i,r}function lb(e,t){wa(e,143);for(var r=0;r!=t.SheetNames.length;++r){var a=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,n={Hidden:a,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};wa(e,156,ab(n))}wa(e,144)}function fb(e,t){t||(t=ba(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return $a("SheetJS",t),$a(a.version,t),$a(a.version,t),$a("7262",t),t.length>t.l?t.slice(0,t.l):t}function hb(e,t){t||(t=ba(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function ub(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r=t.Workbook.Sheets,a=0,n=-1,s=-1;an||(wa(e,135),wa(e,158,hb(n)),wa(e,136))}}function db(e,t){var r=ga();return wa(r,131),wa(r,128,fb()),wa(r,153,sb(e.Workbook&&e.Workbook.WBProps||null)),ub(r,e,t),lb(r,e,t),wa(r,132),r.end()}function pb(e,t,r){return".bin"===t.slice(-4)?cb(e,r):eb(e,r)}function mb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?ym(e,a,r,n,s,i,o):Jd(e,a,r,n,s,i,o)}function bb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?Wm(e,a,r,n,s,i,o):Um(e,a,r,n,s,i,o)}function vb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?xh(e,a,r,n,s,i,o):Ah(e,a,r,n,s,i,o)}function gb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?Sh(e,a,r,n,s,i,o):_h(e,a,r,n,s,i,o)}function wb(e,t,r,a){return".bin"===t.slice(-4)?hf(e,r,a):Xl(e,r,a)}function kb(e,t,r){return Nf(e,r)}function Tb(e,t,r){return".bin"===t.slice(-4)?jc(e,r):Wc(e,r)}function Eb(e,t,r){return".bin"===t.slice(-4)?gh(e,r):ch(e,r)}function yb(e,t,r){return".bin"===t.slice(-4)?th(e,t,r):Qf(e,t,r)}function Sb(e,t,r,a){return".bin"===r.slice(-4)?ah(e,t,r,a):rh(e,t,r,a)}function _b(e,t,r){return".bin"===t.slice(-4)?Kf(e,t,r):Zf(e,t,r)}function xb(e,t,r){return(".bin"===t.slice(-4)?db:tb)(e,r)}function Ab(e,t,r,a,n){return(".bin"===t.slice(-4)?Pm:vp)(e,r,a,n)}function Cb(e,t,r){return(".bin"===t.slice(-4)?Ef:Yl)(e,r)}function Rb(e,t,r){return(".bin"===t.slice(-4)?Xc:zc)(e,r)}function Ib(e,t,r){return(".bin"===t.slice(-4)?wh:lh)(e,r)}function Ob(e){return(".bin"===e.slice(-4)?Jf:qf)()}var Nb,Db=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Fb=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Pb(e,t){var r=e.split(/\s+/),a=[];if(t||(a[0]=r[0]),1===r.length)return a;var n,s,i,o,c=e.match(Db);if(c)for(o=0;o!=c.length;++o)n=c[o].match(Fb),-1===(s=n[1].indexOf(":"))?a[n[1]]=n[2].slice(1,n[2].length-1):(i="xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(s+1),a[i]=n[2].slice(1,n[2].length-1));return a}function Mb(e){var t=e.split(/\s+/),r={};if(1===t.length)return r;var a,n,s,i,o=e.match(Db);if(o)for(i=0;i!=o.length;++i)a=o[i].match(Fb),-1===(n=a[1].indexOf(":"))?r[a[1]]=a[2].slice(1,a[2].length-1):(s="xmlns:"===a[1].slice(0,6)?"xmlns"+a[1].slice(6):a[1].slice(n+1),r[s]=a[2].slice(1,a[2].length-1));return r}function Lb(e,t){var r=Nb[e]||qt(e);return"General"===r?he(t):Ve(r,t)}function Ub(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=cr(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=kt(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[qt(t)]=n}function Bb(e,t,r){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||$n[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=fe(e.v):e.w=he(e.v):e.w=Lb(t||"General",e.v)}catch(s){if(r.WTF)throw s}try{var a=Nb[t]||t||"General";if(r.cellNF&&(e.z=a),r.cellDates&&"n"==e.t&&Ue(a)){var n=te(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(s){if(r.WTF)throw s}}}function Wb(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=Ll[a.Pattern]||a.Pattern)}e[t.ID]=t}function Hb(e,t,r,a,n,s,i,o,c,l){var f="General",h=a.StyleID,u={};l=l||{};var d=[],p=0;void 0===h&&o&&(h=o.StyleID),void 0===h&&i&&(h=i.StyleID);while(void 0!==s[h]){if(s[h].nf&&(f=s[h].nf),s[h].Interior&&d.push(s[h].Interior),!s[h].Parent)break;h=s[h].Parent}switch(r.Type){case"Boolean":a.t="b",a.v=cr(e);break;case"String":a.t="s",a.r=ir(qt(e)),a.v=e.indexOf("<")>-1?qt(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),a.v=(kt(e)-new Date(Date.UTC(1899,11,30)))/864e5,a.v!==a.v?a.v=qt(e):a.v<60&&(a.v=a.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===a.v&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=Xn[e],!1!==l.cellText&&(a.w=e);break;default:""==e&&""==t?a.t="z":(a.t="s",a.v=ir(t||e));break}if(Bb(a,f,l),!1!==l.cellFormula)if(a.Formula){var m=qt(a.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),a.f=Ch(m,n),delete a.Formula,"RC"==a.ArrayRange?a.F=Ch("RC:RC",n):a.ArrayRange&&(a.F=Ch(a.ArrayRange,n),c.push([La(a.F),a.F]))}else for(p=0;p=c[p][0].s.r&&n.r<=c[p][0].e.r&&n.c>=c[p][0].s.c&&n.c<=c[p][0].e.c&&(a.F=c[p][1]);l.cellStyles&&(d.forEach((function(e){!u.patternType&&e.patternType&&(u.patternType=e.patternType)})),a.s=u),void 0!==a.StyleID&&(a.ixfe=a.StyleID)}function zb(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Vb(e,t){var r=t||{};$e();var a=b(Ar(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(a="undefined"!==typeof m?m.utils.decode(65001,u(a)):dr(a));var n,s=a.slice(0,1024).toLowerCase(),i=!1;if(s=s.replace(/".*?"/g,""),(1023&s.indexOf(">"))>Math.min(1023&s.indexOf(","),1023&s.indexOf(";"))){var o=Et(r);return o.type="string",Ac.to_workbook(a,o)}if(-1==s.indexOf("=0&&(i=!0)})),i)return Wv(a,r);Nb={"General Number":"General","General Date":Z[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Z[15],"Short Date":Z[14],"Long Time":Z[19],"Medium Time":Z[18],"Short Time":Z[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Z[2],Standard:Z[4],Percent:Z[10],Scientific:Z[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,l=[];null!=k&&null==r.dense&&(r.dense=k);var f,h={},d=[],p=r.dense?[]:{},v="",g={},w={},T=Pb(''),E=0,y=0,S=0,_={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},A={},C="",R=0,I=[],O={},N={},D=0,F=[],P=[],M={},L=[],U=!1,B=[],W=[],H={},z=0,V=0,j={Sheets:[],WBProps:{date1904:!1}},G={};Cr.lastIndex=0,a=a.replace(//gm,"");var $="";while(n=Cr.exec(a))switch(n[3]=($=n[3]).toLowerCase()){case"data":if("data"==$){if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break}if(l[l.length-1][1])break;"/"===n[1]?Hb(a.slice(E,n.index),C,T,"comment"==l[l.length-1][0]?M:g,{c:y,r:S},x,L[y],w,B,r):(C="",T=Pb(n[0]),E=n.index+n[0].length);break;case"cell":if("/"===n[1])if(P.length>0&&(g.c=P),(!r.sheetRows||r.sheetRows>S)&&void 0!==g.v&&(r.dense?(p[S]||(p[S]=[]),p[S][y]=g):p[Ra(y)+_a(S)]=g),g.HRef&&(g.l={Target:qt(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(z=y+(0|parseInt(g.MergeAcross,10)),V=S+(0|parseInt(g.MergeDown,10)),I.push({s:{c:y,r:S},e:{c:z,r:V}})),r.sheetStubs)if(g.MergeAcross||g.MergeDown){for(var X=y;X<=z;++X)for(var Y=S;Y<=V;++Y)(X>y||Y>S)&&(r.dense?(p[Y]||(p[Y]=[]),p[Y][X]={t:"z"}):p[Ra(X)+_a(Y)]={t:"z"});y=z+1}else++y;else g.MergeAcross?y=z+1:++y;else g=Mb(n[0]),g.Index&&(y=+g.Index-1),y<_.s.c&&(_.s.c=y),y>_.e.c&&(_.e.c=y),"/>"===n[0].slice(-2)&&++y,P=[];break;case"row":"/"===n[1]||"/>"===n[0].slice(-2)?(S<_.s.r&&(_.s.r=S),S>_.e.r&&(_.e.r=S),"/>"===n[0].slice(-2)&&(w=Pb(n[0]),w.Index&&(S=+w.Index-1)),y=0,++S):(w=Pb(n[0]),w.Index&&(S=+w.Index-1),H={},("0"==w.AutoFitHeight||w.Height)&&(H.hpx=parseInt(w.Height,10),H.hpt=Pl(H.hpx),W[S]=H),"1"==w.Hidden&&(H.hidden=!0,W[S]=H));break;case"worksheet":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"));d.push(v),_.s.r<=_.e.r&&_.s.c<=_.e.c&&(p["!ref"]=Ma(_),r.sheetRows&&r.sheetRows<=_.e.r&&(p["!fullref"]=p["!ref"],_.e.r=r.sheetRows-1,p["!ref"]=Ma(_))),I.length&&(p["!merges"]=I),L.length>0&&(p["!cols"]=L),W.length>0&&(p["!rows"]=W),h[v]=p}else _={s:{r:2e6,c:2e6},e:{r:0,c:0}},S=y=0,l.push([n[3],!1]),c=Pb(n[0]),v=qt(c.Name),p=r.dense?[]:{},I=[],B=[],W=[],G={name:v,Hidden:0},j.Sheets.push(G);break;case"table":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else{if("/>"==n[0].slice(-2))break;l.push([n[3],!1]),L=[],U=!1}break;case"style":"/"===n[1]?Wb(x,A,r):A=Pb(n[0]);break;case"numberformat":A.nf=qt(Pb(n[0]).Format||"General"),Nb[A.nf]&&(A.nf=Nb[A.nf]);for(var K=0;392!=K;++K)if(Z[K]==A.nf)break;if(392==K)for(K=57;392!=K;++K)if(null==Z[K]){je(A.nf,K);break}break;case"column":if("table"!==l[l.length-1][0])break;if(f=Pb(n[0]),f.Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!U&&f.wpx>10){U=!0,xl=yl;for(var J=0;J0&&(ee.Sheet=j.Sheets.length-1),j.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===n[0].slice(-2))break;"/"===n[1]?C+=a.slice(R,n.index):R=n.index+n[0].length;break;case"interior":if(!r.cellStyles)break;A.Interior=Pb(n[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===n[0].slice(-2))break;"/"===n[1]?xs(O,$,a.slice(D,n.index)):D=n.index+n[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else l.push([n[3],!1]);break;case"comment":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"));zb(M),P.push(M)}else l.push([n[3],!1]),c=Pb(n[0]),M={a:c.Author};break;case"autofilter":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else if("/"!==n[0].charAt(n[0].length-2)){var te=Pb(n[0]);p["!autofilter"]={ref:Ch(te.Range).replace(/\$/g,"")},l.push([n[3],!0])}break;case"name":break;case"datavalidation":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===n[1]){if((c=l.pop())[0]!==n[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;case"null":break;default:if(0==l.length&&"document"==n[3])return qv(a,r);if(0==l.length&&"uof"==n[3])return qv(a,r);var re=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(n[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:re=!1}break;case"componentoptions":switch(n[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:re=!1}break;case"excelworkbook":switch(n[3]){case"date1904":j.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:re=!1}break;case"workbookoptions":switch(n[3]){case"owcversion":break;case"height":break;case"width":break;default:re=!1}break;case"worksheetoptions":switch(n[3]){case"visible":if("/>"===n[0].slice(-2));else if("/"===n[1])switch(a.slice(D,n.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2;break}else D=n.index+n[0].length;break;case"header":p["!margins"]||Pd(p["!margins"]={},"xlml"),isNaN(+Yt(n[0]).Margin)||(p["!margins"].header=+Yt(n[0]).Margin);break;case"footer":p["!margins"]||Pd(p["!margins"]={},"xlml"),isNaN(+Yt(n[0]).Margin)||(p["!margins"].footer=+Yt(n[0]).Margin);break;case"pagemargins":var ae=Yt(n[0]);p["!margins"]||Pd(p["!margins"]={},"xlml"),isNaN(+ae.Top)||(p["!margins"].top=+ae.Top),isNaN(+ae.Left)||(p["!margins"].left=+ae.Left),isNaN(+ae.Right)||(p["!margins"].right=+ae.Right),isNaN(+ae.Bottom)||(p["!margins"].bottom=+ae.Bottom);break;case"displayrighttoleft":j.Views||(j.Views=[]),j.Views[0]||(j.Views[0]={}),j.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:re=!1}break;case"pivottable":case"pivotcache":switch(n[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:re=!1}break;case"pagebreaks":switch(n[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:re=!1}break;case"autofilter":switch(n[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:re=!1}break;case"querytable":switch(n[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:re=!1}break;case"datavalidation":switch(n[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:re=!1}break;case"sorting":case"conditionalformatting":switch(n[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:re=!1}break;case"mapinfo":case"schema":case"data":switch(n[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:re=!1}break;case"smarttags":break;default:re=!1;break}if(re)break;if(n[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+l.join("|");if("customdocumentproperties"===l[l.length-1][0]){if("/>"===n[0].slice(-2))break;"/"===n[1]?Ub(N,$,F,a.slice(D,n.index)):(F=n,D=n.index+n[0].length);break}if(r.WTF)throw"Unrecognized tag: "+n[3]+"|"+l.join("|")}var ne={};return r.bookSheets||r.bookProps||(ne.Sheets=h),ne.SheetNames=d,ne.Workbook=j,ne.SSF=Et(Z),ne.Props=O,ne.Custprops=N,ne}function jb(e,t){switch(Ug(t=t||{}),t.type||"base64"){case"base64":return Vb(S(e),t);case"binary":case"buffer":case"file":return Vb(e,t);case"array":return Vb(O(e),t)}}function Gb(e,t){var r=[];return e.Props&&r.push(As(e.Props,t)),e.Custprops&&r.push(Cs(e.Props,e.Custprops,t)),r.join("")}function $b(){return""}function Xb(e,t){var r=[''];return t.cellXfs.forEach((function(e,t){var a=[];a.push(Sr("NumberFormat",null,{"ss:Format":tr(Z[e.numFmtId])}));var n={"ss:ID":"s"+(21+t)};r.push(Sr("Style",a.join(""),n))})),Sr("Styles",r.join(""))}function Yb(e){return Sr("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Ih(e.Ref,{r:0,c:0})})}function Kb(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],a=0;a"),e["!margins"].header&&n.push(Sr("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&n.push(Sr("Footer",null,{"x:Margin":e["!margins"].footer})),n.push(Sr("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),n.push("")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[r])if(a.Workbook.Sheets[r].Hidden)n.push(Sr("Visible",1==a.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push(""),e["!protect"]&&(n.push(Er("ProtectContents","True")),e["!protect"].objects&&n.push(Er("ProtectObjects","True")),e["!protect"].scenarios&&n.push(Er("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||n.push(Er("EnableSelection","UnlockedCells")):n.push(Er("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&n.push("<"+t[1]+"/>")}))),0==n.length?"":Sr("WorksheetOptions",n.join(""),{xmlns:Or.x})}function qb(e){return e.map((function(e){var t=or(e.t||""),r=Sr("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Sr("Comment",r,{"ss:Author":e.a})})).join("")}function Qb(e,t,r,a,n,s,i){if(!e||void 0==e.v&&void 0==e.f)return"";var o={};if(e.f&&(o["ss:Formula"]="="+tr(Ih(e.f,i))),e.F&&e.F.slice(0,t.length)==t){var c=Da(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(c.r==i.r?"":"["+(c.r-i.r)+"]")+"C"+(c.c==i.c?"":"["+(c.c-i.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=tr(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=tr(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],f=0;f!=l.length;++f)l[f].s.c==i.c&&l[f].s.r==i.r&&(l[f].e.c>l[f].s.c&&(o["ss:MergeAcross"]=l[f].e.c-l[f].s.c),l[f].e.r>l[f].s.r&&(o["ss:MergeDown"]=l[f].e.r-l[f].s.r));var h="",u="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":h="Number",u=String(e.v);break;case"b":h="Boolean",u=e.v?"1":"0";break;case"e":h="Error",u=$n[e.v];break;case"d":h="DateTime",u=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||Z[14]);break;case"s":h="String",u=sr(e.v||"");break}var d=Md(a.cellXfs,e,a);o["ss:StyleID"]="s"+(21+d),o["ss:Index"]=i.c+1;var p=null!=e.v?u:"",m="z"==e.t?"":''+p+"";return(e.c||[]).length>0&&(m+=qb(e.c)),Sr("Cell",m,o)}function ev(e,t){var r='"}function tv(e,t,r,a){if(!e["!ref"])return"";var n=La(e["!ref"]),s=e["!merges"]||[],i=0,o=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Nl(e);var r=!!e.width,a=Fd(t,e),n={"ss:Index":t+1};r&&(n["ss:Width"]=Al(a.width)),e.hidden&&(n["ss:Hidden"]="1"),o.push(Sr("Column",null,n))}));for(var c=Array.isArray(e),l=n.s.r;l<=n.e.r;++l){for(var f=[ev(l,(e["!rows"]||[])[l])],h=n.s.c;h<=n.e.c;++h){var u=!1;for(i=0;i!=s.length;++i)if(!(s[i].s.c>h)&&!(s[i].s.r>l)&&!(s[i].e.c"),f.length>2&&o.push(f.join(""))}return o.join("")}function rv(e,t,r){var a=[],n=r.SheetNames[e],s=r.Sheets[n],i=s?Jb(s,t,e,r):"";return i.length>0&&a.push(""+i+""),i=s?tv(s,t,e,r):"",i.length>0&&a.push(""+i+"
"),a.push(Zb(s,t,e,r)),a.join("")}function av(e,t){t||(t={}),e.SSF||(e.SSF=Et(Z)),e.SSF&&($e(),Ge(e.SSF),t.revssf=ct(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Gb(e,t)),r.push($b(e,t)),r.push(""),r.push("");for(var a=0;a40?t:(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4?t:(a=r.read_shift(4),1907505652!==a?t:(t.UnicodeClipboardFormat=_n(r),a=r.read_shift(4),0==a||a>40?t:(r.l-=4,void(t.Reserved2=r.read_shift(0,"lpwstr"))))))}var sv=[60,1084,2066,2165,2175];function iv(e,t,r,a,n){var s=a,i=[],o=r.slice(r.l,r.l+s);if(n&&n.enc&&n.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(o)}i.push(o),r.l+=s;var c=aa(r,r.l),l=bv[c],f=0;while(null!=l&&sv.indexOf(c)>-1)s=aa(r,r.l+2),f=r.l+4,2066==c?f+=4:2165!=c&&2175!=c||(f+=12),o=r.slice(f,r.l+4+s),i.push(o),r.l+=4+s,l=bv[c=aa(r,r.l)];var h=F(i);pa(h,0);var u=0;h.lens=[];for(var d=0;d1)&&!(r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&R(e,t,r),delete t.ixfe,delete t.XF,n=e,T=Fa(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var a=0;ae.c||y[a][0].s.r>e.r)&&!(y[a][0].e.c>8)!==$)throw new Error("rt mismatch: "+K+"!="+$);12==Y.r&&(e.l+=10,X-=10)}var J={};if(J=10===$?Y.f(e,X,O):iv($,Y,e,X,O),0==W&&-1===[9,521,1033,2057].indexOf(B))continue;switch($){case 34:r.opts.Date1904=x.WBProps.date1904=J;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(O.enc||(e.l=0),O.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:O.lastuser=J;break;case 66:var q=Number(J);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252;break}f(O.codepage=q),j=!0;break;case 317:O.rrtabid=J;break;case 25:O.winlocked=J;break;case 439:r.opts["RefreshAll"]=J;break;case 12:r.opts["CalcCount"]=J;break;case 16:r.opts["CalcDelta"]=J;break;case 17:r.opts["CalcIter"]=J;break;case 13:r.opts["CalcMode"]=J;break;case 14:r.opts["CalcPrecision"]=J;break;case 95:r.opts["CalcSaveRecalc"]=J;break;case 15:O.CalcRefMode=J;break;case 2211:r.opts.FullCalc=J;break;case 129:J.fDialog&&(d["!type"]="dialog"),J.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),J.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:S.push(J);break;case 430:L.push([J]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(J);break;case 24:case 536:U={Name:J.Name,Ref:ld(J.rgce,m,null,L,O)},J.itab>0&&(U.Sheet=J.itab-1),L.names.push(U),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(V[J.itab-1]={ref:Ma(J.rgce[0][0][1][2])});break;case 22:O.ExternCount=J;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(J),L.XTI=L.XTI.concat(J);break;case 2196:if(O.biff<8)break;null!=U&&(U.Comment=J[1]);break;case 18:d["!protect"]=J;break;case 19:0!==J&&O.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,O.snames.push(J.name);break;case 10:if(--W)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,d["!ref"]=Ma(m),t.sheetRows&&t.sheetRows<=m.e.r){var Q=m.e.r;m.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Ma(m),m.e.r=Q}m.e.r++,m.e.c++}N.length>0&&(d["!merges"]=N),D.length>0&&(d["!objects"]=D),F.length>0&&(d["!cols"]=F),P.length>0&&(d["!rows"]=P),x.Sheets.push(A)}""===g?w=d:a[g]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===O.biff&&(O.biff={9:2,521:3,1033:4}[$]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),O.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(O.biff=5,j=!0,f(O.codepage=28591)),8==O.biff&&0==J.BIFFVer&&16==J.dt&&(O.biff=2),W++)break;if(d=t.dense?[]:{},O.biff<8&&!j&&(j=!0,f(O.codepage=t.codepage||1252)),O.biff<5||0==J.BIFFVer&&4096==J.dt){""===g&&(g="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-X,name:g};p[ee.pos]=ee,O.snames.push(g)}else g=(p[G]||{name:""}).name;32==J.dt&&(d["!type"]="chart"),64==J.dt&&(d["!type"]="macro"),N=[],D=[],O.arrayf=y=[],F=[],P=[],M=!1,A={Hidden:(p[G]||{hs:0}).hs,name:g};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[J.r]||[])[J.c]:d[Fa({c:J.c,r:J.r})])&&++J.c,l={ixfe:J.ixfe,XF:S[J.ixfe]||{},v:J.val,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t);break;case 5:case 517:l={ixfe:J.ixfe,XF:S[J.ixfe],v:J.val,t:J.t},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t);break;case 638:l={ixfe:J.ixfe,XF:S[J.ixfe],v:J.rknum,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t);break;case 189:for(var te=J.c;te<=J.C;++te){var re=J.rkrec[te-J.c][0];l={ixfe:re,XF:S[re],v:J.rkrec[te-J.c][1],t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:te,r:J.r},l,t)}break;case 6:case 518:case 1030:if("String"==J.val){b=J;break}if(l=cv(J.val,J.cell.ixfe,J.tt),l.XF=S[l.ixfe],t.cellFormula){var ae=J.formula;if(ae&&ae[0]&&ae[0][0]&&"PtgExp"==ae[0][0][0]){var ne=ae[0][0][1][0],se=ae[0][0][1][1],ie=Fa({r:ne,c:se});E[ie]?l.f=""+ld(J.formula,m,J.cell,L,O):l.F=((t.dense?(d[ne]||[])[se]:d[ie])||{}).F}else l.f=""+ld(J.formula,m,J.cell,L,O)}H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I(J.cell,l,t),b=J;break;case 7:case 519:if(!b)throw new Error("String record expects Formula");b.val=J,l=cv(J,b.cell.ixfe,"s"),l.XF=S[l.ixfe],t.cellFormula&&(l.f=""+ld(b.formula,m,b.cell,L,O)),H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I(b.cell,l,t),b=null;break;case 33:case 545:y.push(J);var oe=Fa(J[0].s);if(s=t.dense?(d[J[0].s.r]||[])[J[0].s.c]:d[oe],t.cellFormula&&s){if(!b)break;if(!oe||!s)break;s.f=""+ld(J[1],m,J[0],L,O),s.F=Ma(J[0])}break;case 1212:if(!t.cellFormula)break;if(T){if(!b)break;E[Fa(b.cell)]=J[0],s=t.dense?(d[b.cell.r]||[])[b.cell.c]:d[Fa(b.cell)],(s||{}).f=""+ld(J[0],m,n,L,O)}break;case 253:l=cv(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(l.h=v[J.isst].h),l.XF=S[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t);break;case 513:t.sheetStubs&&(l={ixfe:J.ixfe,XF:S[J.ixfe],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t));break;case 190:if(t.sheetStubs)for(var ce=J.c;ce<=J.C;++ce){var le=J.ixfe[ce-J.c];l={ixfe:le,XF:S[le],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:ce,r:J.r},l,t)}break;case 214:case 516:case 4:l=cv(J.val,J.ixfe,"s"),l.XF=S[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),ov(l,t,r.opts.Date1904),I({c:J.c,r:J.r},l,t);break;case 0:case 512:1===W&&(m=J);break;case 252:v=J;break;case 1054:if(4==O.biff){z[H++]=J[1];for(var fe=0;fe=163&&je(J[1],H+163)}else je(J[1],J[0]);break;case 30:z[H++]=J;for(var he=0;he=163&&je(J,H+163);break;case 229:N=N.concat(J);break;case 93:D[J.cmo[0]]=O.lastobj=J;break;case 438:O.lastobj.TxO=J;break;case 127:O.lastobj.ImData=J;break;case 440:for(c=J[0].s.r;c<=J[0].e.r;++c)for(o=J[0].s.c;o<=J[0].e.c;++o)s=t.dense?(d[c]||[])[o]:d[Fa({c:o,r:c})],s&&(s.l=J[1]);break;case 2048:for(c=J[0].s.r;c<=J[0].e.r;++c)for(o=J[0].s.c;o<=J[0].e.c;++o)s=t.dense?(d[c]||[])[o]:d[Fa({c:o,r:c})],s&&s.l&&(s.l.Tooltip=J[1]);break;case 28:if(O.biff<=5&&O.biff>=2)break;s=t.dense?(d[J[0].r]||[])[J[0].c]:d[Fa(J[0])];var ue=D[J[2]];s||(t.dense?(d[J[0].r]||(d[J[0].r]=[]),s=d[J[0].r][J[0].c]={t:"z"}):s=d[Fa(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),s.c||(s.c=[]),i={a:J[1],t:ue.TxO.t},s.c.push(i);break;case 2173:Hf(S[J.ixfe],J.ext);break;case 125:if(!O.cellStyles)break;while(J.e>=J.s)F[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},M||(M=!0,Ol(J.w/256)),Nl(F[J.e+1]);break;case 520:var de={};null!=J.level&&(P[J.r]=de,de.level=J.level),J.hidden&&(P[J.r]=de,de.hidden=!0),J.hpt&&(P[J.r]=de,de.hpt=J.hpt,de.hpx=Ml(J.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||Pd(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[$]]=J;break;case 161:d["!margins"]||Pd(d["!margins"]={}),d["!margins"].header=J.header,d["!margins"].footer=J.footer;break;case 574:J.RTL&&(x.Views[0].RTL=!0);break;case 146:_=J;break;case 2198:u=J;break;case 140:h=J;break;case 442:g?A.CodeName=J||A.name:x.WBProps.CodeName=J||"ThisWorkbook";break}}else Y||console.error("Missing Info for XLS Record 0x"+$.toString(16)),e.l+=X}return r.SheetNames=st(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&w["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets["Sheet1"]=w)):r.Preamble=w,r.Sheets&&V.forEach((function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e})),r.Strings=v,r.SSF=Et(Z),O.enc&&(r.Encryption=O.enc),u&&(r.Themes=u),r.Metadata={},void 0!==h&&(r.Metadata.Country=h),L.names.length>0&&(x.Names=L.names),r.Workbook=x,r}var fv={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function hv(e,t,r){var a=Qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Ks(a,Bn,fv.DSI);for(var s in n)t[s]=n[s]}catch(l){if(r.WTF)throw l}var i=Qe.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var o=Ks(i,Wn,fv.SI);for(var c in o)null==t[c]&&(t[c]=o[c])}catch(l){if(r.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(gs(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function uv(e,t){var r,a=[],n=[],s=[],i=0,o=it(Bn,"n"),c=it(Wn,"n");if(e.Props)for(r=st(e.Props),i=0;i-1||vs.indexOf(s[i][0])>-1||null!=s[i][1]&&l.push(s[i]);n.length&&Qe.utils.cfb_add(t,"/SummaryInformation",Js(n,fv.SI,c,Wn)),(a.length||l.length)&&Qe.utils.cfb_add(t,"/DocumentSummaryInformation",Js(a,fv.DSI,o,Bn,l.length?l:null,fv.UDI))}function dv(e,t){var r,a,n,s;if(t||(t={}),Ug(t),h(),t.codepage&&c(t.codepage),e.FullPaths){if(Qe.find(e,"/encryption"))throw new Error("File is password-protected");r=Qe.find(e,"!CompObj"),a=Qe.find(e,"/Workbook")||Qe.find(e,"/Book")}else{switch(t.type){case"base64":e=R(S(e));break;case"binary":e=R(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}pa(e,0),a={content:e}}if(r&&nv(r),t.bookProps&&!t.bookSheets)n={};else{var i=_?"buffer":"array";if(a&&a.content)n=lv(a.content,t);else if((s=Qe.find(e,"PerfectOffice_MAIN"))&&s.content)n=Rc.to_workbook(s.content,(t.type=i,t));else{if(!(s=Qe.find(e,"NativeContent_MAIN"))||!s.content)throw(s=Qe.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=Rc.to_workbook(s.content,(t.type=i,t))}t.bookVBA&&e.FullPaths&&Qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=Th(e))}var o={};return e.FullPaths&&hv(e,o,t),n.Props=n.Custprops=o,t.bookFiles&&(n.cfb=e),n}function pv(e,t){var r=t||{},a=Qe.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Qe.utils.cfb_add(a,n,Pv(e,r)),8==r.biff&&(e.Props||e.Custprops)&&uv(e,a),8==r.biff&&e.vbaraw&&Eh(a,Qe.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),a}var mv={0:{f:gp},1:{f:xp},2:{f:$p},3:{f:Fp},4:{f:Ip},5:{f:zp},6:{f:Zp},7:{f:Up},8:{f:nm},9:{f:am},10:{f:tm},11:{f:rm},12:{f:Cp},13:{f:Yp},14:{f:Mp},15:{f:Np},16:{f:jp},17:{f:Qp},18:{f:Wp},19:{f:Ka},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:ob},40:{},42:{},43:{f:Zl},44:{f:Kl},45:{f:tf},46:{f:of},47:{f:af},48:{},49:{f:Va},50:{},51:{f:jf},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:sc},62:{f:Jp},63:{f:eh},64:{f:Tm},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ma,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:vm},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Sp},148:{f:Tp,p:16},151:{f:fm},152:{},153:{f:nb},154:{},155:{},156:{f:rb},157:{},158:{},159:{T:1,f:Vc},160:{T:-1},161:{T:1,f:mn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:sm},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:zf},336:{T:-1},337:{f:Xf,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ln},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Mo},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:hm},427:{f:um},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:mm},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:yp},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:cm},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ln},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bh},633:{T:1},634:{T:-1},635:{T:1,f:ph},636:{T:-1},637:{f:Za},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Bm},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Em},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},bv={6:{f:bd},10:{f:Zs},12:{f:ri},13:{f:ri},14:{f:ei},15:{f:ei},16:{f:vn},17:{f:ei},18:{f:ei},19:{f:ri},20:{f:Oo},21:{f:Oo},23:{f:Mo},24:{f:Po},25:{f:ei},26:{},27:{},28:{f:Vo},29:{},34:{f:ei},35:{f:Do},38:{f:vn},39:{f:vn},40:{f:vn},41:{f:vn},42:{f:ei},43:{f:ei},47:{f:bl},49:{f:oo},51:{f:ri},60:{},61:{f:ro},64:{f:ei},65:{f:io},66:{f:ri},77:{},80:{},81:{},82:{},85:{f:ri},89:{},90:{},91:{},92:{f:ji},93:{f:$o},94:{},95:{f:ei},96:{},97:{},99:{f:ei},125:{f:sc},128:{f:_o},129:{f:$i},130:{f:ri},131:{f:ei},132:{f:ei},133:{f:Xi},134:{},140:{f:ec},141:{f:ri},144:{},146:{f:ac},151:{},152:{},153:{},154:{},155:{},156:{f:ri},157:{},158:{},160:{f:hc},161:{f:oc},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:ko},190:{f:To},193:{f:Zs},197:{},198:{},199:{},200:{},201:{},202:{f:ei},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ri},220:{},221:{f:ei},222:{},224:{f:yo},225:{f:Vi},226:{f:Zs},227:{},229:{f:jo},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Ki},253:{f:lo},255:{f:Zi},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:ni},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:ei},353:{f:Zs},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:No},431:{f:ei},432:{},433:{},434:{},437:{},438:{f:Ko},439:{f:ei},440:{f:Jo},441:{},442:{f:hi},443:{},444:{f:ri},445:{},446:{},448:{f:Zs},449:{f:eo,r:2},450:{f:Zs},512:{f:vo},513:{f:fc},515:{f:Ro},516:{f:ho},517:{f:Ao},519:{f:uc},520:{f:qi},523:{},545:{f:Wo},549:{f:to},566:{},574:{f:no},638:{f:wo},659:{},1048:{},1054:{f:po},1084:{},1212:{f:Bo},2048:{f:qo},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Hi},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Zs},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:nc,r:12},2173:{f:Wf,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ei,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Uo,r:12},2197:{},2198:{f:Ff,r:12},2199:{},2200:{},2201:{},2202:{f:Ho,r:12},2203:{f:Zs},2204:{},2205:{},2206:{},2207:{},2211:{f:Qi},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ri},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:cc},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:rc},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:vo},1:{},2:{f:vc},3:{f:mc},4:{f:pc},5:{f:Ao},7:{f:wc},8:{},9:{f:Hi},11:{},22:{f:ri},30:{f:bo},31:{},32:{},33:{f:Wo},36:{},37:{f:to},50:{f:kc},62:{},52:{},67:{},68:{f:ri},69:{},86:{},126:{},127:{f:dc},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Tc},223:{},234:{},354:{},421:{},518:{f:bd},521:{f:Hi},536:{f:Po},547:{f:Do},561:{},579:{},1030:{f:bd},1033:{f:Hi},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function vv(e,t,r,a){var n=t;if(!isNaN(n)){var s=a||(r||[]).length||0,i=e.next(4);i.write_shift(2,n),i.write_shift(2,s),s>0&&ea(r)&&e.push(r)}}function gv(e,t,r,a){var n=a||(r||[]).length||0;if(n<=8224)return vv(e,t,r,n);var s=t;if(!isNaN(s)){var i=r.parts||[],o=0,c=0,l=0;while(l+(i[o]||8224)<=8224)l+=i[o]||8224,o++;var f=e.next(4);f.write_shift(2,s),f.write_shift(2,l),e.push(r.slice(c,c+l)),c+=l;while(c=0&&n<65536?vv(e,2,gc(r,a,n)):vv(e,3,bc(r,a,n)));case"b":case"e":return void vv(e,5,kv(r,a,t.v,t.t));case"s":case"str":return void vv(e,4,Tv(r,a,(t.v||"").slice(0,255)))}vv(e,1,wv(null,r,a))}function yv(e,t,r,a){var n,s=Array.isArray(t),i=La(t["!ref"]||"A1"),o="",c=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),n=Ma(i)}for(var l=i.s.r;l<=i.e.r;++l){o=_a(l);for(var f=i.s.c;f<=i.e.c;++f){l===i.s.r&&(c[f]=Ra(f)),n=c[f]+o;var h=s?(t[l]||[])[f]:t[n];h&&Ev(e,h,l,f,a)}}}function Sv(e,t){var r=t||{};null!=k&&null==r.dense&&(r.dense=k);for(var a=ga(),n=0,s=0;s255||d.e.r>=p){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,p-1)}vv(n,2057,zi(r,16,t)),vv(n,13,ai(1)),vv(n,12,ai(100)),vv(n,15,ti(!0)),vv(n,17,ti(!1)),vv(n,16,gn(.001)),vv(n,95,ti(!0)),vv(n,42,ti(!1)),vv(n,43,ti(!1)),vv(n,130,ai(1)),vv(n,128,xo([0,0])),vv(n,131,ti(!1)),vv(n,132,ti(!1)),f&&Iv(n,i["!cols"]),vv(n,512,go(d,t)),f&&(i["!links"]=[]);for(var m=d.s.r;m<=d.e.r;++m){h=_a(m);for(var b=d.s.c;b<=d.e.c;++b){m===d.s.r&&(u[b]=Ra(b)),a=u[b]+h;var v=l?(i[m]||[])[b]:i[a];v&&(Ov(n,v,m,b,t),f&&v.l&&i["!links"].push([a,v.l]))}}var g=c.CodeName||c.name||s;return f&&vv(n,574,so((o.Views||[])[0])),f&&(i["!merges"]||[]).length&&vv(n,229,Go(i["!merges"])),f&&Rv(n,i),vv(n,442,di(g,t)),f&&Av(n,i),vv(n,10),n.end()}function Dv(e,t,r){var a=ga(),n=(e||{}).Workbook||{},s=n.Sheets||[],i=n.WBProps||{},o=8==r.biff,c=5==r.biff;if(vv(a,2057,zi(e,5,r)),"xla"==r.bookType&&vv(a,135),vv(a,225,o?ai(1200):null),vv(a,193,qs(2)),c&&vv(a,191),c&&vv(a,192),vv(a,226),vv(a,92,Gi("SheetJS",r)),vv(a,66,ai(o?1200:1252)),o&&vv(a,353,ai(0)),o&&vv(a,448),vv(a,317,lc(e.SheetNames.length)),o&&e.vbaraw&&vv(a,211),o&&e.vbaraw){var l=i.CodeName||"ThisWorkbook";vv(a,442,di(l,r))}vv(a,156,ai(17)),vv(a,25,ti(!1)),vv(a,18,ti(!1)),vv(a,19,ai(0)),o&&vv(a,431,ti(!1)),o&&vv(a,444,ai(0)),vv(a,61,ao(r)),vv(a,64,ti(!1)),vv(a,141,ai(0)),vv(a,34,ti("true"==Ym(e))),vv(a,14,ti(!0)),o&&vv(a,439,ti(!1)),vv(a,218,ai(0)),_v(a,e,r),xv(a,e.SSF,r),Cv(a,r),o&&vv(a,352,ti(!1));var f=a.end(),h=ga();o&&vv(h,140,tc()),o&&r.Strings&&gv(h,252,Ji(r.Strings,r)),vv(h,10);var u=h.end(),d=ga(),p=0,m=0;for(m=0;m255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var s=t||{};switch(s.biff||2){case 8:case 5:return Fv(e,t);case 4:case 3:case 2:return Sv(e,t)}throw new Error("invalid type "+s.bookType+" for BIFF")}function Mv(e,t){var r=t||{};null!=k&&null==r.dense&&(r.dense=k);var a=r.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var s=e.match(/<\/table/i),i=n.index,o=s&&s.index||e.length,c=At(e.slice(i,o),/(:?]*>)/i,""),l=-1,f=0,h=0,u=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(i=0;i/i);for(o=0;o"))>-1)w=w.slice(T+1);for(var E=0;E")));u=S.colspan?+S.colspan:1,((h=+S.rowspan)>1||u>1)&&p.push({s:{r:l,c:f},e:{r:l+(h||1)-1,c:f+u-1}});var _=S.t||S["data-t"]||"";if(w.length)if(w=br(w),d.s.r>l&&(d.s.r=l),d.e.rf&&(d.s.c=f),d.e.cr||n[l].s.c>i)&&!(n[l].e.r1&&(d.rowspan=o),c>1&&(d.colspan=c),a.editable?u=''+u+"":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(u=''+u+"")),d.id=(a.id||"sjs")+"-"+f,s.push(Sr("td",u,d))}}var p="";return p+s.join("")+""}var Uv='SheetJS Table Export',Bv="";function Wv(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find
");if(1==r.length)return Wa(Mv(r[0],t),t);var a=Iw();return r.forEach((function(e,r){Ow(a,Mv(e,t),"Sheet"+(r+1))})),a}function Hv(e,t,r){var a=[];return a.join("")+""}function zv(e,t){var r=t||{},a=null!=r.header?r.header:Uv,n=null!=r.footer?r.footer:Bv,s=[a],i=Pa(e["!ref"]);r.dense=Array.isArray(e),s.push(Hv(e,i,r));for(var o=i.s.r;o<=i.e.r;++o)s.push(Lv(e,i,o,r));return s.push("
"+n),s.join("")}function Vv(e,t,r){var a=r||{};null!=k&&(a.dense=k);var n=0,s=0;if(null!=a.origin)if("number"==typeof a.origin)n=a.origin;else{var i="string"==typeof a.origin?Da(a.origin):a.origin;n=i.r,s=i.c}var o=t.getElementsByTagName("tr"),c=Math.min(a.sheetRows||1e7,o.length),l={s:{r:0,c:0},e:{r:n,c:s}};if(e["!ref"]){var f=Pa(e["!ref"]);l.s.r=Math.min(l.s.r,f.s.r),l.s.c=Math.min(l.s.c,f.s.c),l.e.r=Math.max(l.e.r,f.e.r),l.e.c=Math.max(l.e.c,f.e.c),-1==n&&(l.e.r=n=f.e.r+1)}var h=[],u=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,b=0,v=0,g=0,w=0;for(e["!cols"]||(e["!cols"]=[]);p1||w>1)&&h.push({s:{r:m+n,c:v+s},e:{r:m+n+(g||1)-1,c:v+s+(w||1)-1}});var A={t:"s",v:S},C=y.getAttribute("data-t")||y.getAttribute("t")||"";null!=S&&(0==S.length?A.t=C||"z":a.raw||0==S.trim().length||"s"==C||("TRUE"===S?A={t:"b",v:!0}:"FALSE"===S?A={t:"b",v:!1}:isNaN(St(S))?isNaN(xt(S).getDate())||(A={t:"d",v:kt(S)},a.cellDates||(A={t:"n",v:ht(A.v)}),A.z=a.dateNF||Z[14]):A={t:"n",v:St(S)})),void 0===A.z&&null!=_&&(A.z=_);var R="",I=y.getElementsByTagName("A");if(I&&I.length)for(var O=0;O=c&&(e["!fullref"]=Ma((l.e.r=o.length-p+m-1+n,l))),e}function jv(e,t){var r=t||{},a=r.dense?[]:{};return Vv(a,e,t)}function Gv(e,t){return Wa(jv(e,t),t)}function $v(e){var t="",r=Xv(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Xv(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function Yv(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),r=qt(t.replace(/<[^>]*>/g,""));return[r]}var Kv={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Jv(e,t){var r=t||{};null!=k&&null==r.dense&&(r.dense=k);var a,n,s,i,o,c,l,f=Ar(e),h=[],u={name:""},d="",p=0,m={},b=[],v=r.dense?[]:{},g={value:""},w="",T=0,E=[],y=-1,S=-1,_={s:{r:1e6,c:1e7},e:{r:0,c:0}},x=0,A={},C=[],R={},I=0,O=0,N=[],D=1,F=1,P=[],M={Names:[]},L={},U=["",""],B=[],W={},H="",z=0,V=!1,j=!1,G=0;Cr.lastIndex=0,f=f.replace(//gm,"").replace(//gm,"");while(o=Cr.exec(f))switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(_.e.c>=_.s.c&&_.e.r>=_.s.r?v["!ref"]=Ma(_):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=_.e.r&&(v["!fullref"]=v["!ref"],_.e.r=r.sheetRows-1,v["!ref"]=Ma(_)),C.length&&(v["!merges"]=C),N.length&&(v["!rows"]=N),s.name=s["名称"]||s.name,"undefined"!==typeof JSON&&JSON.stringify(s),b.push(s.name),m[s.name]=v,j=!1):"/"!==o[0].charAt(o[0].length-2)&&(s=Yt(o[0],!1),y=S=-1,_.s.r=_.s.c=1e7,_.e.r=_.e.c=0,v=r.dense?[]:{},C=[],N=[],j=!0);break;case"table-row-group":"/"===o[1]?--x:++x;break;case"table-row":case"行":if("/"===o[1]){y+=D,D=1;break}if(i=Yt(o[0],!1),i["行号"]?y=i["行号"]-1:-1==y&&(y=0),D=+i["number-rows-repeated"]||1,D<10)for(G=0;G0&&(N[y+G]={level:x});S=-1;break;case"covered-table-cell":"/"!==o[1]&&++S,r.sheetStubs&&(r.dense?(v[y]||(v[y]=[]),v[y][S]={t:"z"}):v[Fa({r:y,c:S})]={t:"z"}),w="",E=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++S,g=Yt(o[0],!1),F=parseInt(g["number-columns-repeated"]||"1",10),c={t:"z",v:null},g.formula&&0!=r.cellFormula&&(c.f=xd(qt(g.formula))),"string"==(g["数据类型"]||g["value-type"])&&(c.t="s",c.v=qt(g["string-value"]||""),r.dense?(v[y]||(v[y]=[]),v[y][S]=c):v[Fa({r:y,c:S})]=c),S+=F-1;else if("/"!==o[1]){++S,w="",T=0,E=[],F=1;var $=D?y+D-1:y;if(S>_.e.c&&(_.e.c=S),S<_.s.c&&(_.s.c=S),y<_.s.r&&(_.s.r=y),$>_.e.r&&(_.e.r=$),g=Yt(o[0],!1),B=[],W={},c={t:g["数据类型"]||g["value-type"],v:null},r.cellFormula)if(g.formula&&(g.formula=qt(g.formula)),g["number-matrix-columns-spanned"]&&g["number-matrix-rows-spanned"]&&(I=parseInt(g["number-matrix-rows-spanned"],10)||0,O=parseInt(g["number-matrix-columns-spanned"],10)||0,R={s:{r:y,c:S},e:{r:y+I-1,c:S+O-1}},c.F=Ma(R),P.push([R,c.F])),g.formula)c.f=xd(g.formula);else for(G=0;G=P[G][0].s.r&&y<=P[G][0].e.r&&S>=P[G][0].s.c&&S<=P[G][0].e.c&&(c.F=P[G][1]);switch((g["number-columns-spanned"]||g["number-rows-spanned"])&&(I=parseInt(g["number-rows-spanned"],10)||0,O=parseInt(g["number-columns-spanned"],10)||0,R={s:{r:y,c:S},e:{r:y+I-1,c:S+O-1}},C.push(R)),g["number-columns-repeated"]&&(F=parseInt(g["number-columns-repeated"],10)),c.t){case"boolean":c.t="b",c.v=cr(g["boolean-value"]);break;case"float":c.t="n",c.v=parseFloat(g.value);break;case"percentage":c.t="n",c.v=parseFloat(g.value);break;case"currency":c.t="n",c.v=parseFloat(g.value);break;case"date":c.t="d",c.v=kt(g["date-value"]),r.cellDates||(c.t="n",c.v=ht(c.v)),c.z="m/d/yy";break;case"time":c.t="n",c.v=bt(g["time-value"])/86400,r.cellDates&&(c.t="d",c.v=mt(c.v)),c.z="HH:MM:SS";break;case"number":c.t="n",c.v=parseFloat(g["数据数值"]);break;default:if("string"!==c.t&&"text"!==c.t&&c.t)throw new Error("Unsupported value type "+c.t);c.t="s",null!=g["string-value"]&&(w=qt(g["string-value"]),E=[])}}else{if(V=!1,"s"===c.t&&(c.v=w||"",E.length&&(c.R=E),V=0==T),L.Target&&(c.l=L),B.length>0&&(c.c=B,B=[]),w&&!1!==r.cellText&&(c.w=w),V&&(c.t="z",delete c.v),(!V||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=y))for(var X=0;X0)v[y+X][S+F]=Et(c)}else{v[Fa({r:y+X,c:S})]=c;while(--F>0)v[Fa({r:y+X,c:S+F})]=Et(c)}_.e.c<=S&&(_.e.c=S)}F=parseInt(g["number-columns-repeated"]||"1",10),S+=F-1,F=0,c={},w="",E=[]}L={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((a=h.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((a=h.pop())[0]!==o[3])throw"Bad state: "+a;W.t=w,E.length&&(W.R=E),W.a=H,B.push(W)}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!1]);H="",z=0,w="",T=0,E=[];break;case"creator":"/"===o[1]?H=f.slice(z,o.index):z=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((a=h.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!1]);w="",T=0,E=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(A[u.name]=d,(a=h.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&(d="",u=Yt(o[0],!1),h.push([o[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":n=Yt(o[0],!1),d+=Kv[o[3]]["long"===n.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":n=Yt(o[0],!1),d+=Kv[o[3]]["long"===n.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===o[0].slice(-2))break;if("/"===o[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":d+=f.slice(p,o.index);break}else p=o.index+o[0].length;break;case"named-range":n=Yt(o[0],!1),U=Cd(n["cell-range-address"]);var Y={Name:n.name,Ref:U[0]+"!"+U[1]};j&&(Y.Sheet=b.length),M.Names.push(Y);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==o[1]||g&&g["string-value"])l=Yt(o[0],!1),T=o.index+o[0].length;else{var K=Yv(f.slice(T,o.index),l);w=(w.length>0?w+"\n":"")+K[0]}break;case"s":break;case"database-range":if("/"===o[1])break;try{U=Cd(Yt(o[0])["target-range-address"]),m[U[0]]["!autofilter"]={ref:U[1]}}catch(Z){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==o[1]){if(L=Yt(o[0],!1),!L.href)break;L.Target=qt(L.href),delete L.href,"#"==L.Target.charAt(0)&&L.Target.indexOf(".")>-1?(U=Cd(L.Target.slice(1)),L.Target="#"+U[0]+"!"+U[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(o)}}var J={Sheets:m,SheetNames:b,Workbook:M};return r.bookSheets&&delete J.Sheets,J}function Zv(e,t){t=t||{},Ot(e,"META-INF/manifest.xml")&&ss(Dt(e,"META-INF/manifest.xml"),t);var r=Ft(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=Jv(dr(r),t);return Ot(e,"meta.xml")&&(a.Props=ds(Dt(e,"meta.xml"))),a}function qv(e,t){return Jv(e,t)}var Qv=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Ht+t}}(),eg=function(){var e=function(e){return tr(e).replace(/ +/g,(function(e){return''})).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=" \n",r=" \n",a=function(a,n,s){var i=[];i.push(' \n');var o=0,c=0,l=Pa(a["!ref"]||"A1"),f=a["!merges"]||[],h=0,u=Array.isArray(a);if(a["!cols"])for(c=0;c<=l.e.c;++c)i.push(" \n");var d="",p=a["!rows"]||[];for(o=0;o\n");for(;o<=l.e.r;++o){for(d=p[o]?' table:style-name="ro'+p[o].ods+'"':"",i.push(" \n"),c=0;cc)&&!(f[h].s.r>o)&&!(f[h].e.c\n")}return i.push(" \n"),i.join("")},n=function(e,t){e.push(" \n"),e.push(' \n'),e.push(' \n'),e.push(" /\n"),e.push(' \n'),e.push(" /\n"),e.push(" \n"),e.push(" \n");var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var a=0;a\n'),e.push(' \n'),e.push(" \n"),++r}}));var a=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var r=0;r\n'),e.push(' \n'),e.push(" \n"),++a}})),e.push(' \n'),e.push(' \n'),e.push(" \n"),e.push(' \n'),e.push(" \n")};return function(e,t){var r=[Ht],s=yr({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=yr({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(r.push("\n"),r.push(fs().replace(/office:document-meta/g,"office:meta"))):r.push("\n"),n(r,e),r.push(" \n"),r.push(" \n");for(var o=0;o!=e.SheetNames.length;++o)r.push(a(e.Sheets[e.SheetNames[o]],e,o,t));return r.push(" \n"),r.push(" \n"),"fods"==t.bookType?r.push(""):r.push(""),r.join("")}}();function tg(e,t){if("fods"==t.bookType)return eg(e,t);var r=Ut(),a="",n=[],s=[];return a="mimetype",Lt(r,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",Lt(r,a,eg(e,t)),n.push([a,"text/xml"]),s.push([a,"ContentFile"]),a="styles.xml",Lt(r,a,Qv(e,t)),n.push([a,"text/xml"]),s.push([a,"StylesFile"]),a="meta.xml",Lt(r,a,Ht+fs()),n.push([a,"text/xml"]),s.push([a,"MetadataFile"]),a="manifest.rdf",Lt(r,a,ls(s)),n.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",Lt(r,a,is(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rg(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ag(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):dr(O(e))}function ng(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):R(pr(e))}function sg(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function cg(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,a=1&e[t+14],n=t+13;n>=t;--n)a=256*a+e[n];return(128&e[t+15]?-a:a)*Math.pow(10,r-6176)}function lg(e,t,r){var a=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(127&a)<<1;for(var s=0;n>=1;++s,n/=256)e[t+s]=255&n;e[t+15]|=r>=0?0:128}function fg(e,t){var r=t?t[0]:0,a=127&e[r];e:if(e[r++]>=128){if(a|=(127&e[r])<<7,e[r++]<128)break e;if(a|=(127&e[r])<<14,e[r++]<128)break e;if(a|=(127&e[r])<<21,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),a}function hg(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function ug(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function dg(e){var t=[],r=[0];while(r[0]=128);i=e.slice(c,r[0]);break;case 5:o=4,i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=fg(e,r),i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(n," at offset ").concat(a))}var l={data:i,type:s};null==t[n]?t[n]=[l]:t[n].push(l)}return t}function pg(e){var t=[];return e.forEach((function(e,r){e.forEach((function(e){e.data&&(t.push(hg(8*r+e.type)),2==e.type&&t.push(hg(e.data.length)),t.push(e.data))}))})),ig(t)}function mg(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function bg(e){var t,r=[],a=[0];while(a[0]>>0>0),r.push(i)}return r}function vg(e){var t=[];return e.forEach((function(e){var r=[];r[1]=[{data:hg(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:hg(+!!e.merge),type:0}]);var a=[];e.messages.forEach((function(e){a.push(e.data),e.meta[3]=[{type:0,data:hg(e.data.length)}],r[2].push({data:pg(e.meta),type:2})}));var n=pg(r);t.push(hg(n.length)),t.push(n),a.forEach((function(e){return t.push(e)}))})),ig(t)}function gg(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var r=[0],a=fg(t,r),n=[];while(r[0]>2&7),i=(224&t[r[0]++])<<3,i|=t[r[0]++]):(o=1+(t[r[0]++]>>2),2==s?(i=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(i=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),n=[ig(n)],0==i)throw new Error("Invalid offset 0");if(i>n[0].length)throw new Error("Invalid offset beyond length");if(o>=i){n.push(n[0].slice(-i)),o-=i;while(o>=n[n.length-1].length)n.push(n[n.length-1]),o-=n[n.length-1].length}n.push(n[0].slice(-i,-i+o))}else{var c=t[r[0]++]>>2;if(c<60)++c;else{var l=c-59;c=t[r[0]],l>1&&(c|=t[r[0]+1]<<8),l>2&&(c|=t[r[0]+2]<<16),l>3&&(c|=t[r[0]+3]<<24),c>>>=0,c++,r[0]+=l}n.push(t.slice(r[0],r[0]+c)),r[0]+=c}}var f=ig(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function wg(e){var t=[],r=0;while(r>8&255]))):a<=16777216?(i+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(i+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(e.slice(r,r+a)),i+=a,n[0]=0,n[1]=255&i,n[2]=i>>8&255,n[3]=i>>16&255,r+=a}return ig(t)}function Tg(e,t,r,a){var n,s=rg(e),i=s.getUint32(4,!0),o=(a>1?12:8)+4*og(i&(a>1?3470:398)),c=-1,l=-1,f=NaN,h=new Date(2001,0,1);switch(512&i&&(c=s.getUint32(o,!0),o+=4),o+=4*og(i&(a>1?12288:4096)),16&i&&(l=s.getUint32(o,!0),o+=4),32&i&&(f=s.getFloat64(o,!0),o+=8),64&i&&(h.setTime(h.getTime()+1e3*s.getFloat64(o,!0)),o+=8),e[2]){case 0:break;case 2:n={t:"n",v:f};break;case 3:n={t:"s",v:t[l]};break;case 5:n={t:"d",v:h};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(c>-1)n={t:"s",v:r[c]};else if(l>-1)n={t:"s",v:t[l]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));n={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return n}function Eg(e,t,r){var a,n=rg(e),s=n.getUint32(8,!0),i=12,o=-1,c=-1,l=NaN,f=NaN,h=new Date(2001,0,1);switch(1&s&&(l=cg(e,i),i+=16),2&s&&(f=n.getFloat64(i,!0),i+=8),4&s&&(h.setTime(h.getTime()+1e3*n.getFloat64(i,!0)),i+=8),8&s&&(c=n.getUint32(i,!0),i+=4),16&s&&(o=n.getUint32(i,!0),i+=4),e[1]){case 0:break;case 2:a={t:"n",v:l};break;case 3:a={t:"s",v:t[c]};break;case 5:a={t:"d",v:h};break;case 6:a={t:"b",v:f>0};break;case 7:a={t:"n",v:f/86400};break;case 8:a={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)));a={t:"s",v:r[o]};break;case 10:a={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)))}return a}function yg(e,t){var r=new Uint8Array(32),a=rg(r),n=12,s=0;switch(r[0]=5,e.t){case"n":r[1]=2,lg(r,n,e.v),s|=1,n+=16;break;case"b":r[1]=6,a.setFloat64(n,e.v?1:0,!0),s|=2,n+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,a.setUint32(n,t.indexOf(e.v),!0),s|=8,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,s,!0),r.slice(0,n)}function Sg(e,t){var r=new Uint8Array(32),a=rg(r),n=12,s=0;switch(r[0]=3,e.t){case"n":r[2]=2,a.setFloat64(n,e.v,!0),s|=32,n+=8;break;case"b":r[2]=6,a.setFloat64(n,e.v?1:0,!0),s|=32,n+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,a.setUint32(n,t.indexOf(e.v),!0),s|=16,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(4,s,!0),r.slice(0,n)}function _g(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return Tg(e,t,r,e[0]);case 5:return Eg(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function xg(e){var t=dg(e);return fg(t[1][0].data)}function Ag(e,t){var r=dg(t.data),a=ug(r[1][0].data),n=r[3],s=[];return(n||[]).forEach((function(t){var r=dg(t.data),n=ug(r[1][0].data)>>>0;switch(a){case 1:s[n]=ag(r[3][0].data);break;case 8:var i=e[xg(r[9][0].data)][0],o=dg(i.data),c=e[xg(o[1][0].data)][0],l=ug(c.meta[1][0].data);if(2001!=l)throw new Error("2000 unexpected reference to ".concat(l));var f=dg(c.data);s[n]=f[3].map((function(e){return ag(e.data)})).join("");break}})),s}function Cg(e,t){var r,a,n,s,i,o,c,l,f,h,u,d,p,m,b,v,g=dg(e),w=ug(g[1][0].data)>>>0,k=ug(g[2][0].data)>>>0,T=(null==(a=null==(r=g[8])?void 0:r[0])?void 0:a.data)&&ug(g[8][0].data)>0||!1;if((null==(s=null==(n=g[7])?void 0:n[0])?void 0:s.data)&&0!=t)b=null==(o=null==(i=g[7])?void 0:i[0])?void 0:o.data,v=null==(l=null==(c=g[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(h=null==(f=g[4])?void 0:f[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");b=null==(d=null==(u=g[4])?void 0:u[0])?void 0:d.data,v=null==(m=null==(p=g[3])?void 0:p[0])?void 0:m.data}for(var E=T?4:1,y=rg(b),S=[],_=0;_=1&&(A[S[S.length-1][0]]=v.subarray(S[S.length-1][1]*E)),{R:w,cells:A}}function Rg(e,t){var r,a=dg(t.data),n=(null==(r=null==a?void 0:a[7])?void 0:r[0])?ug(a[7][0].data)>>>0>0?1:0:-1,s=mg(a[5],(function(e){return Cg(e,n)}));return{nrows:ug(a[4][0].data)>>>0,data:s.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,a){if(e[t.R][a])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(a));e[t.R][a]=r})),e}),[])}}function Ig(e,t,r){var a,n=dg(t.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(ug(n[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(s.e.c=(ug(n[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Ma(s);var i=dg(n[4][0].data),o=Ag(e,e[xg(i[4][0].data)][0]),c=(null==(a=i[17])?void 0:a[0])?Ag(e,e[xg(i[17][0].data)][0]):[],l=dg(i[3][0].data),f=0;l[1].forEach((function(t){var a=dg(t.data),n=e[xg(a[2][0].data)][0],s=ug(n.meta[1][0].data);if(6002!=s)throw new Error("6001 unexpected reference to ".concat(s));var i=Rg(e,n);i.data.forEach((function(e,t){e.forEach((function(e,a){var n=Fa({r:f+t,c:a}),s=_g(e,o,c);s&&(r[n]=s)}))})),f+=i.nrows}))}function Og(e,t){var r=dg(t.data),a={"!ref":"A1"},n=e[xg(r[2][0].data)],s=ug(n[0].meta[1][0].data);if(6001!=s)throw new Error("6000 unexpected reference to ".concat(s));return Ig(e,n[0],a),a}function Ng(e,t){var r,a=dg(t.data),n={name:(null==(r=a[1])?void 0:r[0])?ag(a[1][0].data):"",sheets:[]},s=mg(a[2],xg);return s.forEach((function(t){e[t].forEach((function(t){var r=ug(t.meta[1][0].data);6e3==r&&n.sheets.push(Og(e,t))}))})),n}function Dg(e,t){var r=Iw(),a=dg(t.data),n=mg(a[1],xg);if(n.forEach((function(t){e[t].forEach((function(t){var a=ug(t.meta[1][0].data);if(2==a){var n=Ng(e,t);n.sheets.forEach((function(e,t){Ow(r,e,0==t?n.name:n.name+"_"+t,!0)}))}}))})),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}function Fg(e){var t,r,a,n,s={},i=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=wg(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}try{r=bg(t)}catch(a){return console.log("## "+(a.message||a))}r.forEach((function(e){s[e.id]=e.messages,i.push(e.id)}))}})),!i.length)throw new Error("File has no messages");var o=(null==(n=null==(a=null==(r=null==(t=null==s?void 0:s[1])?void 0:t[0])?void 0:r.meta)?void 0:a[1])?void 0:n[0].data)&&1==ug(s[1][0].meta[1][0].data)&&s[1][0];if(o||i.forEach((function(e){s[e].forEach((function(e){var t=ug(e.meta[1][0].data)>>>0;if(1==t){if(o)throw new Error("Document has multiple roots");o=e}}))})),!o)throw new Error("Cannot find Document root");return Dg(s,o)}function Pg(e,t,r){var a,n,s,i;if(!(null==(a=e[6])?void 0:a[0])||!(null==(n=e[7])?void 0:n[0]))throw"Mutation only works on post-BNC storages!";var o=(null==(i=null==(s=e[8])?void 0:s[0])?void 0:i.data)&&ug(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var c=0,l=rg(e[7][0].data),f=0,h=[],u=rg(e[4][0].data),d=0,p=[],m=0;m1&&console.error("The Numbers writer currently writes only the first table");var a=Pa(r["!ref"]);a.s.r=a.s.c=0;var n=!1;a.e.c>9&&(n=!0,a.e.c=9),a.e.r>49&&(n=!0,a.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(Ma(a)));var s=kw(r,{range:a,header:1}),i=["~Sh33tJ5~"];s.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&i.push(e)}))}));var o={},c=[],l=Qe.read(t.numbers,{type:"base64"});l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0],r=e[1];if(2==t.type&&t.name.match(/\.iwa/)){var a=t.content,n=wg(a),s=bg(n);s.forEach((function(e){c.push(e.id),o[e.id]={deps:[],location:r,type:ug(e.messages[0].meta[1][0].data)}}))}})),c.sort((function(e,t){return e-t}));var f=c.filter((function(e){return e>1})).map((function(e){return[e,hg(e)]}));l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1];if(t.name.match(/\.iwa/)){var r=bg(wg(t.content));r.forEach((function(e){e.messages.forEach((function(t){f.forEach((function(t){e.messages.some((function(e){return 11006!=ug(e.meta[1][0].data)&&sg(e.data,t[1])}))&&o[t[0]].deps.push(e.id)}))}))}))}}));for(var h,u=Qe.find(l,o[1].location),d=bg(wg(u.content)),p=0;p-1?"sheet":Qn.CS&&e==Qn.CS?"chart":Qn.DS&&e==Qn.DS?"dialog":Qn.MS&&e==Qn.MS?"macro":e&&e.length?e:"sheet"}function Hg(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Wg(e["!id"][t.id].Type)]}))}catch(r){return null}return e&&0!==e.length?e:null}function zg(e,t,r,a,n,s,i,o,c,l,f,h){try{s[a]=ts(Ft(e,r,!0),t);var u,d=Dt(e,t);switch(o){case"sheet":u=mb(d,t,n,c,s[a],l,f,h);break;case"chart":if(u=bb(d,t,n,c,s[a],l,f,h),!u||!u["!drawel"])break;var p=Wt(u["!drawel"].Target,t),m=es(p),b=nh(Ft(e,p,!0),ts(Ft(e,m,!0),p)),v=Wt(b,p),g=es(v);u=Lm(Ft(e,v,!0),v,c,ts(Ft(e,g,!0),v),l,u);break;case"macro":u=vb(d,t,n,c,s[a],l,f,h);break;case"dialog":u=gb(d,t,n,c,s[a],l,f,h);break;default:throw new Error("Unrecognized sheet type "+o)}i[a]=u;var w=[];s&&s[a]&&st(s[a]).forEach((function(r){var n="";if(s[a][r].Type==Qn.CMNT){n=Wt(s[a][r].Target,t);var i=Eb(Dt(e,n,!0),n,c);if(!i||!i.length)return;oh(u,i,!1)}s[a][r].Type==Qn.TCMNT&&(n=Wt(s[a][r].Target,t),w=w.concat(fh(Dt(e,n,!0),c)))})),w&&w.length&&oh(u,w,!0,c.people||[])}catch(k){if(c.WTF)throw k}}function Vg(e){return"/"==e.charAt(0)?e.slice(1):e}function jg(e,t){if($e(),t=t||{},Ug(t),Ot(e,"META-INF/manifest.xml"))return Zv(e,t);if(Ot(e,"objectdata.xml"))return Zv(e,t);if(Ot(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Fg){if(e.FileIndex)return Fg(e);var r=Qe.utils.cfb_new();return Mt(e).forEach((function(t){Lt(r,t,Pt(e,t))})),Fg(r)}throw new Error("Unsupported NUMBERS file")}if(!Ot(e,"[Content_Types].xml")){if(Ot(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Ot(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a,n,s=Mt(e),i=Zn(Ft(e,"[Content_Types].xml")),o=!1;if(0===i.workbooks.length&&(n="xl/workbook.xml",Dt(e,n,!0)&&i.workbooks.push(n)),0===i.workbooks.length){if(n="xl/workbook.bin",!Dt(e,n,!0))throw new Error("Could not find workbook");i.workbooks.push(n),o=!0}"bin"==i.workbooks[0].slice(-3)&&(o=!0);var c={},l={};if(!t.bookSheets&&!t.bookProps){if(Id=[],i.sst)try{Id=Tb(Dt(e,Vg(i.sst)),i.sst,t)}catch(I){if(t.WTF)throw I}t.cellStyles&&i.themes.length&&(c=kb(Ft(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],t)),i.style&&(l=wb(Dt(e,Vg(i.style)),i.style,c,t))}i.links.map((function(r){try{var a=ts(Ft(e,es(Vg(r))),r);return Sb(Dt(e,Vg(r)),a,r,t)}catch(I){}}));var f=pb(Dt(e,Vg(i.workbooks[0])),i.workbooks[0],t),h={},u="";i.coreprops.length&&(u=Dt(e,Vg(i.coreprops[0]),!0),u&&(h=ds(u)),0!==i.extprops.length&&(u=Dt(e,Vg(i.extprops[0]),!0),u&&ws(u,h,t)));var d={};t.bookSheets&&!t.bookProps||0!==i.custprops.length&&(u=Ft(e,Vg(i.custprops[0]),!0),u&&(d=Es(u,t)));var p={};if((t.bookSheets||t.bookProps)&&(f.Sheets?a=f.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(a=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=d),t.bookSheets&&"undefined"!==typeof a&&(p.SheetNames=a),t.bookSheets?p.SheetNames:t.bookProps))return p;a={};var m={};t.bookDeps&&i.calcchain&&(m=yb(Dt(e,Vg(i.calcchain)),i.calcchain,t));var b,v,g=0,w={},k=f.Sheets;h.Worksheets=k.length,h.SheetNames=[];for(var T=0;T!=k.length;++T)h.SheetNames[T]=k[T].name;var E=o?"bin":"xml",y=i.workbooks[0].lastIndexOf("/"),S=(i.workbooks[0].slice(0,y+1)+"_rels/"+i.workbooks[0].slice(y+1)+".rels").replace(/^\//,"");Ot(e,S)||(S="xl/_rels/workbook."+E+".rels");var _=ts(Ft(e,S,!0),S.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(t.xlmeta=_b(Dt(e,Vg(i.metadata[0])),i.metadata[0],t)),(i.people||[]).length>=1&&(t.people=uh(Dt(e,Vg(i.people[0])),t)),_&&(_=Hg(_,f.Sheets));var x=Dt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=h.Worksheets;++g){var A="sheet";if(_&&_[g]?(b="xl/"+_[g][1].replace(/[\/]?xl\//,""),Ot(e,b)||(b=_[g][1]),Ot(e,b)||(b=S.replace(/_rels\/.*$/,"")+_[g][1]),A=_[g][2]):(b="xl/worksheets/sheet"+(g+1-x)+"."+E,b=b.replace(/sheet0\./,"sheet.")),v=b.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(g!=t.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var C=!1,R=0;R!=t.sheets.length;++R)"number"==typeof t.sheets[R]&&t.sheets[R]==g&&(C=1),"string"==typeof t.sheets[R]&&t.sheets[R].toLowerCase()==h.SheetNames[g].toLowerCase()&&(C=1);if(!C)continue e}}zg(e,b,v,h.SheetNames[g],g,w,a,A,t,f,c,l)}return p={Directory:i,Workbook:f,Props:h,Custprops:d,Deps:m,Sheets:a,SheetNames:h.SheetNames,Strings:Id,Styles:l,Themes:c,SSF:Et(Z)},t&&t.bookFiles&&(e.files?(p.keys=s,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(i.vba.length>0?p.vbaraw=Dt(e,Vg(i.vba[0]),!0):i.defaults&&i.defaults.bin===kh&&(p.vbaraw=Dt(e,"xl/vbaProject.bin",!0))),p}function Gg(e,t){var r=t||{},a="Workbook",n=Qe.find(e,a);try{if(a="/!DataSpaces/Version",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(Jc(n.content),a="/!DataSpaces/DataSpaceMap",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=qc(n.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=Qc(n.content);if(1!=i.length||"StrongEncryptionTransform"!=i[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);tl(n.content)}catch(c){}if(a="/EncryptionInfo",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=nl(n.content);if(a="/EncryptedPackage",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==o[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(o[1],n.content,r.password||"",r);if(2==o[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(o[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function $g(e,t){return"ods"==t.bookType?tg(e,t):"numbers"==t.bookType?Mg(e,t):"xlsb"==t.bookType?Xg(e,t):Yg(e,t)}function Xg(e,t){sh=1024,e&&!e.SSF&&(e.SSF=Et(Z)),e&&e.SSF&&($e(),Ge(e.SSF),t.revssf=ct(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Nd?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xlsb"==t.bookType?"bin":"xml",a=yh.indexOf(t.bookType)>-1,n=Jn();Bg(t=t||{});var s=Ut(),i="",o=0;if(t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Lt(s,i,ms(e.Props,t)),n.coreprops.push(i),as(t.rels,2,i,Qn.CORE_PROPS),i="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l0&&(i="docProps/custom.xml",Lt(s,i,ys(e.Custprops,t)),n.custprops.push(i),as(t.rels,4,i,Qn.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var f={"!id":{}},h=e.Sheets[e.SheetNames[o-1]],u=(h||{})["!type"]||"sheet";switch(u){case"chart":default:i="xl/worksheets/sheet"+o+"."+r,Lt(s,i,Ab(o-1,i,t,e,f)),n.sheets.push(i),as(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Qn.WS[0])}if(h){var d=h["!comments"],p=!1,m="";d&&d.length>0&&(m="xl/comments"+o+"."+r,Lt(s,m,Ib(d,m,t)),n.comments.push(m),as(f,-1,"../comments"+o+"."+r,Qn.CMNT),p=!0),h["!legacy"]&&p&&Lt(s,"xl/drawings/vmlDrawing"+o+".vml",ih(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&Lt(s,es(i),rs(f))}return null!=t.Strings&&t.Strings.length>0&&(i="xl/sharedStrings."+r,Lt(s,i,Rb(t.Strings,i,t)),n.strs.push(i),as(t.wbrels,-1,"sharedStrings."+r,Qn.SST)),i="xl/workbook."+r,Lt(s,i,xb(e,i,t)),n.workbooks.push(i),as(t.rels,1,i,Qn.WB),i="xl/theme/theme1.xml",Lt(s,i,Df(e.Themes,t)),n.themes.push(i),as(t.wbrels,-1,"theme/theme1.xml",Qn.THEME),i="xl/styles."+r,Lt(s,i,Cb(e,i,t)),n.styles.push(i),as(t.wbrels,-1,"styles."+r,Qn.STY),e.vbaraw&&a&&(i="xl/vbaProject.bin",Lt(s,i,e.vbaraw),n.vba.push(i),as(t.wbrels,-1,"vbaProject.bin",Qn.VBA)),i="xl/metadata."+r,Lt(s,i,Ob(i)),n.metadata.push(i),as(t.wbrels,-1,"metadata."+r,Qn.XLMETA),Lt(s,"[Content_Types].xml",qn(n,t)),Lt(s,"_rels/.rels",rs(t.rels)),Lt(s,"xl/_rels/workbook."+r+".rels",rs(t.wbrels)),delete t.revssf,delete t.ssf,s}function Yg(e,t){sh=1024,e&&!e.SSF&&(e.SSF=Et(Z)),e&&e.SSF&&($e(),Ge(e.SSF),t.revssf=ct(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Nd?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",a=yh.indexOf(t.bookType)>-1,n=Jn();Bg(t=t||{});var s=Ut(),i="",o=0;if(t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Lt(s,i,ms(e.Props,t)),n.coreprops.push(i),as(t.rels,2,i,Qn.CORE_PROPS),i="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l0&&(i="docProps/custom.xml",Lt(s,i,ys(e.Custprops,t)),n.custprops.push(i),as(t.rels,4,i,Qn.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var h={"!id":{}},u=e.Sheets[e.SheetNames[o-1]],d=(u||{})["!type"]||"sheet";switch(d){case"chart":default:i="xl/worksheets/sheet"+o+"."+r,Lt(s,i,vp(o-1,t,e,h)),n.sheets.push(i),as(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Qn.WS[0])}if(u){var p=u["!comments"],m=!1,b="";if(p&&p.length>0){var v=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(v=!0)}))})),v&&(b="xl/threadedComments/threadedComment"+o+"."+r,Lt(s,b,hh(p,f,t)),n.threadedcomments.push(b),as(h,-1,"../threadedComments/threadedComment"+o+"."+r,Qn.TCMNT)),b="xl/comments"+o+"."+r,Lt(s,b,lh(p,t)),n.comments.push(b),as(h,-1,"../comments"+o+"."+r,Qn.CMNT),m=!0}u["!legacy"]&&m&&Lt(s,"xl/drawings/vmlDrawing"+o+".vml",ih(o,u["!comments"])),delete u["!comments"],delete u["!legacy"]}h["!id"].rId1&&Lt(s,es(i),rs(h))}return null!=t.Strings&&t.Strings.length>0&&(i="xl/sharedStrings."+r,Lt(s,i,zc(t.Strings,t)),n.strs.push(i),as(t.wbrels,-1,"sharedStrings."+r,Qn.SST)),i="xl/workbook."+r,Lt(s,i,tb(e,t)),n.workbooks.push(i),as(t.rels,1,i,Qn.WB),i="xl/theme/theme1.xml",Lt(s,i,Df(e.Themes,t)),n.themes.push(i),as(t.wbrels,-1,"theme/theme1.xml",Qn.THEME),i="xl/styles."+r,Lt(s,i,Yl(e,t)),n.styles.push(i),as(t.wbrels,-1,"styles."+r,Qn.STY),e.vbaraw&&a&&(i="xl/vbaProject.bin",Lt(s,i,e.vbaraw),n.vba.push(i),as(t.wbrels,-1,"vbaProject.bin",Qn.VBA)),i="xl/metadata."+r,Lt(s,i,qf()),n.metadata.push(i),as(t.wbrels,-1,"metadata."+r,Qn.XLMETA),f.length>1&&(i="xl/persons/person.xml",Lt(s,i,dh(f,t)),n.people.push(i),as(t.wbrels,-1,"persons/person.xml",Qn.PEOPLE)),Lt(s,"[Content_Types].xml",qn(n,t)),Lt(s,"_rels/.rels",rs(t.rels)),Lt(s,"xl/_rels/workbook."+r+".rels",rs(t.wbrels)),delete t.revssf,delete t.ssf,s}function Kg(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=S(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Jg(e,t){return Qe.find(e,"EncryptedPackage")?Gg(e,t):dv(e,t)}function Zg(e,t){var r,a=e,n=t||{};return n.type||(n.type=_&&Buffer.isBuffer(e)?"buffer":"base64"),r=Bt(a,n),jg(r,n)}function qg(e,t){var r=0;e:while(r=2&&0===n[3])return Rc.to_workbook(a,r);if(0===n[2]&&(8===n[3]||9===n[3]))return Rc.to_workbook(a,r)}break;case 3:case 131:case 139:case 140:return yc.to_workbook(a,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return vl.to_workbook(a,r);break;case 10:case 13:case 32:return Qg(a,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet");break}return Ec.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?yc.to_workbook(a,r):rw(e,a,r,s)}function nw(e,t){var r=t||{};return r.type="file",aw(e,r)}function sw(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return at(t.file,Qe.write(e,{type:_?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Qe.write(e,t)}function iw(e,t){var r=Et(t||{}),a=$g(e,r);return cw(a,r)}function ow(e,t){var r=Et(t||{}),a=Yg(e,r);return cw(a,r)}function cw(e,t){var r={},a=_?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=a;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var n=e.FullPaths?Qe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!==typeof Deno&&"string"==typeof n){if("binary"==t.type||"base64"==t.type)return n;n=new Uint8Array(I(n))}return t.password&&"undefined"!==typeof encrypt_agile?sw(encrypt_agile(n,t.password),t):"file"===t.type?at(t.file,n):"string"==t.type?dr(n):n}function lw(e,t){var r=t||{},a=pv(e,r);return sw(a,r)}function fw(e,t,r){r||(r="");var a=r+e;switch(t.type){case"base64":return y(pr(a));case"binary":return pr(a);case"string":return e;case"file":return at(t.file,a,"utf8");case"buffer":return _?x(a,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(a):fw(a,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function hw(e,t){switch(t.type){case"base64":return y(e);case"binary":return e;case"string":return e;case"file":return at(t.file,e,"binary");case"buffer":return _?x(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function uw(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",a=0;a0&&(n=0);var h=_a(c.s.r),u=[],d=[],p=0,m=0,b=Array.isArray(e),v=c.s.r,g=0,w={};b&&!e[v]&&(e[v]=[]);var k=l.skipHidden&&e["!cols"]||[],T=l.skipHidden&&e["!rows"]||[];for(g=c.s.c;g<=c.e.c;++g)if(!(k[g]||{}).hidden)switch(u[g]=Ra(g),r=b?e[v][g]:e[u[g]+h],a){case 1:s[g]=g-c.s.c;break;case 2:s[g]=u[g];break;case 3:s[g]=l.header[g-c.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),o=i=Ba(r,null,l),m=w[i]||0,m){do{o=i+"_"+m++}while(w[o]);w[i]=m,w[o]=1}else w[i]=1;s[g]=o}for(v=c.s.r+n;v<=c.e.r;++v)if(!(T[v]||{}).hidden){var E=ww(e,c,v,u,a,s,b,l);(!1===E.isempty||(1===a?!1!==l.blankrows:l.blankrows))&&(d[p++]=E.row)}return d.length=p,d}var Tw=/"/g;function Ew(e,t,r,a,n,s,i,o){for(var c=!0,l=[],f="",h=_a(r),u=t.s.c;u<=t.e.c;++u)if(a[u]){var d=o.dense?(e[r]||[])[u]:e[a[u]+h];if(null==d)f="";else if(null!=d.v){c=!1,f=""+(o.rawNumbers&&"n"==d.t?d.v:Ba(d,null,o));for(var p=0,m=0;p!==f.length;++p)if((m=f.charCodeAt(p))===n||m===s||34===m||o.forceQuotes){f='"'+f.replace(Tw,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==d.f||d.F?f="":(c=!1,f="="+d.f,f.indexOf(",")>=0&&(f='"'+f.replace(Tw,'""')+'"'));l.push(f)}return!1===o.blankrows&&c?null:l.join(i)}function yw(e,t){var r=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";var n=La(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",c=o.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[];a.dense=Array.isArray(e);for(var u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Ra(p));for(var m=0,b=n.s.r;b<=n.e.r;++b)(d[b]||{}).hidden||(f=Ew(e,n,b,h,i,c,s,a),null!=f&&(a.strip&&(f=f.replace(l,"")),(f||!1!==a.blankrows)&&r.push((m++?o:"")+f)));return delete a.dense,r.join("")}function Sw(e,t){t||(t={}),t.FS="\t",t.RS="\n";var r=yw(e,t);if("undefined"==typeof m||"string"==t.type)return r;var a=m.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function _w(e){var t,r="",a="";if(null==e||null==e["!ref"])return[];var n,s=La(e["!ref"]),i="",o=[],c=[],l=Array.isArray(e);for(n=s.s.c;n<=s.e.c;++n)o[n]=Ra(n);for(var f=s.s.r;f<=s.e.r;++f)for(i=_a(f),n=s.s.c;n<=s.e.c;++n)if(r=o[n]+i,t=l?(e[f]||[])[n]:e[r],a="",void 0!==t){if(null!=t.F){if(r=t.F,!t.f)continue;a=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)a=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)a=""+t.v;else if("b"==t.t)a=t.v?"TRUE":"FALSE";else if(void 0!==t.w)a="'"+t.w;else{if(void 0===t.v)continue;a="s"==t.t?"'"+t.v:""+t.v}}c[c.length]=r+"="+a}return c}function xw(e,t,r){var a,n=r||{},s=+!n.skipHeader,i=e||{},o=0,c=0;if(i&&null!=n.origin)if("number"==typeof n.origin)o=n.origin;else{var l="string"==typeof n.origin?Da(n.origin):n.origin;o=l.r,c=l.c}var f={s:{c:0,r:0},e:{c:c,r:o+t.length-1+s}};if(i["!ref"]){var h=La(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),-1==o&&(o=h.e.r+1,f.e.r=o+t.length-1+s)}else-1==o&&(o=0,f.e.r=t.length-1+s);var u=n.header||[],d=0;t.forEach((function(e,t){st(e).forEach((function(r){-1==(d=u.indexOf(r))&&(u[d=u.length]=r);var l=e[r],f="z",h="",p=Fa({c:c+d,r:o+t+s});a=Cw(i,p),!l||"object"!==typeof l||l instanceof Date?("number"==typeof l?f="n":"boolean"==typeof l?f="b":"string"==typeof l?f="s":l instanceof Date?(f="d",n.cellDates||(f="n",l=ht(l)),h=n.dateNF||Z[14]):null===l&&n.nullError&&(f="e",l=0),a?(a.t=f,a.v=l,delete a.w,delete a.R,h&&(a.z=h)):i[p]=a={t:f,v:l},h&&(a.z=h)):i[p]=l}))})),f.e.c=Math.max(f.e.c,c+u.length-1);var p=_a(o);if(s)for(d=0;d=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function Iw(){return{SheetNames:[],Sheets:{}}}function Ow(e,t,r,a){var n=1;if(!r)for(;n<=65535;++n,r=void 0)if(-1==e.SheetNames.indexOf(r="Sheet"+n))break;if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);n=s&&+s[2]||0;var i=s&&s[1]||r;for(++n;n<=65535;++n)if(-1==e.SheetNames.indexOf(r=i+n))break}if(Jm(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Nw(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=Rw(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r}function Dw(e,t){return e.z=t,e}function Fw(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Pw(e,t,r){return Fw(e,"#"+t,r)}function Mw(e,t,r){e.c||(e.c=[]),e.c.push({t:t,a:r||"SheetJS"})}function Lw(e,t,r,a){for(var n="string"!=typeof t?t:La(t),s="string"==typeof t?t:Ma(t),i=n.s.r;i<=n.e.r;++i)for(var o=n.s.c;o<=n.e.c;++o){var c=Cw(e,i,o);c.t="n",c.F=s,delete c.v,i==n.s.r&&o==n.s.c&&(c.f=r,a&&(c.D=!0))}return e}var Uw,Bw={encode_col:Ra,encode_row:_a,encode_cell:Fa,encode_range:Ma,decode_col:Ca,decode_row:Sa,split_cell:Na,decode_cell:Da,decode_range:Pa,format_cell:Ba,sheet_add_aoa:Ha,sheet_add_json:xw,sheet_add_dom:Vv,aoa_to_sheet:za,json_to_sheet:Aw,table_to_sheet:jv,table_to_book:Gv,sheet_to_csv:yw,sheet_to_txt:Sw,sheet_to_json:kw,sheet_to_html:zv,sheet_to_formulae:_w,sheet_to_row_object_array:kw,sheet_get_cell:Cw,book_new:Iw,book_append_sheet:Ow,book_set_sheet_visibility:Nw,cell_set_number_format:Dw,cell_set_hyperlink:Fw,cell_set_internal_link:Pw,cell_add_comment:Mw,sheet_set_array_formula:Lw,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Ww(e){Uw=e}function Hw(e,t){var r=Uw(),a=null==t?{}:t;if(null==e||null==e["!ref"])return r.push(null),r;var n=La(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",c=o.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[];a.dense=Array.isArray(e);for(var u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Ra(p));var m=n.s.r,b=!1,v=0;return r._read=function(){if(!b)return b=!0,r.push("\ufeff");while(m<=n.e.r)if(++m,!(d[m-1]||{}).hidden&&(f=Ew(e,n,m-1,h,i,c,s,a),null!=f&&(a.strip&&(f=f.replace(l,"")),f||!1!==a.blankrows)))return r.push((v++?o:"")+f);return r.push(null)},r}function zw(e,t){var r=Uw(),a=t||{},n=null!=a.header?a.header:Uv,s=null!=a.footer?a.footer:Bv;r.push(n);var i=Pa(e["!ref"]);a.dense=Array.isArray(e),r.push(Hv(e,i,a));var o=i.s.r,c=!1;return r._read=function(){if(o>i.e.r)return c||(c=!0,r.push(""+s)),r.push(null);while(o<=i.e.r){r.push(Lv(e,i,o,a)),++o;break}},r}function Vw(e,t){var r=Uw({objectMode:!0});if(null==e||null==e["!ref"])return r.push(null),r;var a={t:"n",v:0},n=0,s=1,i=[],o=0,c="",l={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},h=null!=f.range?f.range:e["!ref"];switch(1===f.header?n=1:"A"===f.header?n=2:Array.isArray(f.header)&&(n=3),typeof h){case"string":l=La(h);break;case"number":l=La(e["!ref"]),l.s.r=h;break;default:l=h}n>0&&(s=0);var u=_a(l.s.r),d=[],p=0,m=Array.isArray(e),b=l.s.r,v=0,g={};m&&!e[b]&&(e[b]=[]);var w=f.skipHidden&&e["!cols"]||[],k=f.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(w[v]||{}).hidden)switch(d[v]=Ra(v),a=m?e[b][v]:e[d[v]+u],n){case 1:i[v]=v-l.s.c;break;case 2:i[v]=d[v];break;case 3:i[v]=f.header[v-l.s.c];break;default:if(null==a&&(a={w:"__EMPTY",t:"s"}),c=o=Ba(a,null,f),p=g[o]||0,p){do{c=o+"_"+p++}while(g[c]);g[o]=p,g[c]=1}else g[o]=1;i[v]=c}return b=l.s.r+s,r._read=function(){while(b<=l.e.r)if(!(k[b-1]||{}).hidden){var t=ww(e,l,b,d,n,i,m,f);if(++b,!1===t.isempty||(1===n?!1!==f.blankrows:f.blankrows))return void r.push(t.row)}return r.push(null)},r}var jw={to_json:Vw,to_html:zw,to_csv:Hw,set_readable:Ww};const Gw=a.version}}]); //# sourceMappingURL=2016.c8bf4147.js.map