UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

1 lines 618 kB
"use strict";const p=require("vue"),Zr=require("./index-D8siRAAk.cjs"),$s="local",jk={setItem(e,t,r=24){const n=new Date;n.setTime(n.getTime()+r*3600*1e3),document.cookie=`${e}=${t};expires=${n.toUTCString()}`},getItem(e){const t=document.cookie.split(";");let r=null;for(let n=0;n<t.length;n++){const a=t[n].split("=");if(e==a[0]){r=a[1];break}}return r},removeItem(e){const t=new Date;t.setTime(t.getTime()-1e3),document.cookie=`${e}=0;expires=${t.toUTCString()}`},clear(){const e=document.cookie.match(/[^ =;]+(?=\=)/g);if(e)for(let t=e.length;t--;)document.cookie=`${e[t]}=0;expires=${new Date(0).toUTCString()}`}},Vs={cookieStorage:jk,localStorage,sessionStorage};function qk(e){if(e===null)return null;if(e!=="undefined")return e==="false"?!1:e==="true"?!0:e!=null&&e.startsWith("{")||e!=null&&e.startsWith("[")?JSON.parse(e):e}const Fx={setItem(e,t,r=$s,n){var a,s;return typeof t=="object"&&(t=JSON.stringify(t)),(s=(a=Vs[r+"Storage"])==null?void 0:a.setItem)==null?void 0:s.call(a,e,t,n)},getItem(e,t=$s,r=qk){var n,a;return r((a=(n=Vs[t+"Storage"])==null?void 0:n.getItem)==null?void 0:a.call(n,e))},removeItem(e,t=$s){var r,n;(n=(r=Vs[t+"Storage"])==null?void 0:r.removeItem)==null||n.call(r,e)},clear(e=$s){var t,r;(r=(t=Vs[e+"Storage"])==null?void 0:t.clear)==null||r.call(t)},getKeys(e=$s){const t=Vs[e+"Storage"];return t?Object.keys(t):[]}},Jk=process.env.NODE_ENV==="production",Zk=process.env.NODE_ENV==="development",Xo=",",s0=["",null,void 0];var si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qk(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var bx={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(si,function(){var r=1e3,n=6e4,a=36e5,s="millisecond",o="second",c="minute",l="hour",h="day",d="week",x="month",_="quarter",w="year",m="date",g="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(he){var ie=["th","st","nd","rd"],Q=he%100;return"["+he+(ie[(Q-20)%10]||ie[Q]||ie[0])+"]"}},k=function(he,ie,Q){var ne=String(he);return!ne||ne.length>=ie?he:""+Array(ie+1-ne.length).join(Q)+he},W={s:k,z:function(he){var ie=-he.utcOffset(),Q=Math.abs(ie),ne=Math.floor(Q/60),de=Q%60;return(ie<=0?"+":"-")+k(ne,2,"0")+":"+k(de,2,"0")},m:function he(ie,Q){if(ie.date()<Q.date())return-he(Q,ie);var ne=12*(Q.year()-ie.year())+(Q.month()-ie.month()),de=ie.clone().add(ne,x),Y=Q-de<0,we=ie.clone().add(ne+(Y?-1:1),x);return+(-(ne+(Q-de)/(Y?de-we:we-de))||0)},a:function(he){return he<0?Math.ceil(he)||0:Math.floor(he)},p:function(he){return{M:x,y:w,w:d,d:h,D:m,h:l,m:c,s:o,ms:s,Q:_}[he]||String(he||"").toLowerCase().replace(/s$/,"")},u:function(he){return he===void 0}},z="en",M={};M[z]=O;var F="$isDayjsObject",j=function(he){return he instanceof K||!(!he||!he[F])},V=function he(ie,Q,ne){var de;if(!ie)return z;if(typeof ie=="string"){var Y=ie.toLowerCase();M[Y]&&(de=Y),Q&&(M[Y]=Q,de=Y);var we=ie.split("-");if(!de&&we.length>1)return he(we[0])}else{var Ae=ie.name;M[Ae]=ie,de=Ae}return!ne&&de&&(z=de),de||!ne&&z},ee=function(he,ie){if(j(he))return he.clone();var Q=typeof ie=="object"?ie:{};return Q.date=he,Q.args=arguments,new K(Q)},q=W;q.l=V,q.i=j,q.w=function(he,ie){return ee(he,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var K=function(){function he(Q){this.$L=V(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[F]=!0}var ie=he.prototype;return ie.parse=function(Q){this.$d=function(ne){var de=ne.date,Y=ne.utc;if(de===null)return new Date(NaN);if(q.u(de))return new Date;if(de instanceof Date)return new Date(de);if(typeof de=="string"&&!/Z$/i.test(de)){var we=de.match(E);if(we){var Ae=we[2]-1||0,N=(we[7]||"0").substring(0,3);return Y?new Date(Date.UTC(we[1],Ae,we[3]||1,we[4]||0,we[5]||0,we[6]||0,N)):new Date(we[1],Ae,we[3]||1,we[4]||0,we[5]||0,we[6]||0,N)}}return new Date(de)}(Q),this.init()},ie.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},ie.$utils=function(){return q},ie.isValid=function(){return this.$d.toString()!==g},ie.isSame=function(Q,ne){var de=ee(Q);return this.startOf(ne)<=de&&de<=this.endOf(ne)},ie.isAfter=function(Q,ne){return ee(Q)<this.startOf(ne)},ie.isBefore=function(Q,ne){return this.endOf(ne)<ee(Q)},ie.$g=function(Q,ne,de){return q.u(Q)?this[ne]:this.set(de,Q)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(Q,ne){var de=this,Y=!!q.u(ne)||ne,we=q.p(Q),Ae=function(me,pe){var Le=q.w(de.$u?Date.UTC(de.$y,pe,me):new Date(de.$y,pe,me),de);return Y?Le:Le.endOf(h)},N=function(me,pe){return q.w(de.toDate()[me].apply(de.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(pe)),de)},X=this.$W,U=this.$M,H=this.$D,fe="set"+(this.$u?"UTC":"");switch(we){case w:return Y?Ae(1,0):Ae(31,11);case x:return Y?Ae(1,U):Ae(0,U+1);case d:var Te=this.$locale().weekStart||0,ye=(X<Te?X+7:X)-Te;return Ae(Y?H-ye:H+(6-ye),U);case h:case m:return N(fe+"Hours",0);case l:return N(fe+"Minutes",1);case c:return N(fe+"Seconds",2);case o:return N(fe+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(Q){return this.startOf(Q,!1)},ie.$set=function(Q,ne){var de,Y=q.p(Q),we="set"+(this.$u?"UTC":""),Ae=(de={},de[h]=we+"Date",de[m]=we+"Date",de[x]=we+"Month",de[w]=we+"FullYear",de[l]=we+"Hours",de[c]=we+"Minutes",de[o]=we+"Seconds",de[s]=we+"Milliseconds",de)[Y],N=Y===h?this.$D+(ne-this.$W):ne;if(Y===x||Y===w){var X=this.clone().set(m,1);X.$d[Ae](N),X.init(),this.$d=X.set(m,Math.min(this.$D,X.daysInMonth())).$d}else Ae&&this.$d[Ae](N);return this.init(),this},ie.set=function(Q,ne){return this.clone().$set(Q,ne)},ie.get=function(Q){return this[q.p(Q)]()},ie.add=function(Q,ne){var de,Y=this;Q=Number(Q);var we=q.p(ne),Ae=function(U){var H=ee(Y);return q.w(H.date(H.date()+Math.round(U*Q)),Y)};if(we===x)return this.set(x,this.$M+Q);if(we===w)return this.set(w,this.$y+Q);if(we===h)return Ae(1);if(we===d)return Ae(7);var N=(de={},de[c]=n,de[l]=a,de[o]=r,de)[we]||1,X=this.$d.getTime()+Q*N;return q.w(X,this)},ie.subtract=function(Q,ne){return this.add(-1*Q,ne)},ie.format=function(Q){var ne=this,de=this.$locale();if(!this.isValid())return de.invalidDate||g;var Y=Q||"YYYY-MM-DDTHH:mm:ssZ",we=q.z(this),Ae=this.$H,N=this.$m,X=this.$M,U=de.weekdays,H=de.months,fe=de.meridiem,Te=function(pe,Le,B,sr){return pe&&(pe[Le]||pe(ne,Y))||B[Le].slice(0,sr)},ye=function(pe){return q.s(Ae%12||12,pe,"0")},me=fe||function(pe,Le,B){var sr=pe<12?"AM":"PM";return B?sr.toLowerCase():sr};return Y.replace(A,function(pe,Le){return Le||function(B){switch(B){case"YY":return String(ne.$y).slice(-2);case"YYYY":return q.s(ne.$y,4,"0");case"M":return X+1;case"MM":return q.s(X+1,2,"0");case"MMM":return Te(de.monthsShort,X,H,3);case"MMMM":return Te(H,X);case"D":return ne.$D;case"DD":return q.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return Te(de.weekdaysMin,ne.$W,U,2);case"ddd":return Te(de.weekdaysShort,ne.$W,U,3);case"dddd":return U[ne.$W];case"H":return String(Ae);case"HH":return q.s(Ae,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return me(Ae,N,!0);case"A":return me(Ae,N,!1);case"m":return String(N);case"mm":return q.s(N,2,"0");case"s":return String(ne.$s);case"ss":return q.s(ne.$s,2,"0");case"SSS":return q.s(ne.$ms,3,"0");case"Z":return we}return null}(pe)||we.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(Q,ne,de){var Y,we=this,Ae=q.p(ne),N=ee(Q),X=(N.utcOffset()-this.utcOffset())*n,U=this-N,H=function(){return q.m(we,N)};switch(Ae){case w:Y=H()/12;break;case x:Y=H();break;case _:Y=H()/3;break;case d:Y=(U-X)/6048e5;break;case h:Y=(U-X)/864e5;break;case l:Y=U/a;break;case c:Y=U/n;break;case o:Y=U/r;break;default:Y=U}return de?Y:q.a(Y)},ie.daysInMonth=function(){return this.endOf(x).$D},ie.$locale=function(){return M[this.$L]},ie.locale=function(Q,ne){if(!Q)return this.$L;var de=this.clone(),Y=V(Q,ne,!0);return Y&&(de.$L=Y),de},ie.clone=function(){return q.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},he}(),ge=K.prototype;return ee.prototype=ge,[["$ms",s],["$s",o],["$m",c],["$H",l],["$W",h],["$M",x],["$y",w],["$D",m]].forEach(function(he){ge[he[1]]=function(ie){return this.$g(ie,he[0],he[1])}}),ee.extend=function(he,ie){return he.$i||(he(ie,K,ee),he.$i=!0),ee},ee.locale=V,ee.isDayjs=j,ee.unix=function(he){return ee(1e3*he)},ee.en=M[z],ee.Ls=M,ee.p={},ee})})(bx);var eS=bx.exports;const Ix=$l(eS),rS="var(--dialog-top)",tS="var(--nav-bg-dark)",nS="var(--nav-bg-light)",aS="var(--nav-text-color-light)",iS="var(--nav-text-color-dark)",sS="var(--color-primary)",oS="var(--color-danger)",fS="var(--color-info)",cS="var(--color-success)",lS="var(--color-warning)",uS="color-mix(in srgb, var(--color-primary) 10%, #ffffff 90%)",hS="var(--color-bg-white)",dS="var(--radius-main)",pS={dialogTop:rS,navBgDark:tS,"navBgDark-heavy":"var(--nav-bg-dark-heavy)",navBgLight:nS,navTextColorLight:aS,navTextColorDark:iS,colorPrimary:sS,colorDanger:oS,colorInfo:fS,colorSuccess:cS,colorWarning:lS,colorBgLight:uS,colorBgWhite:hS,radiusMain:dS},oi=pS;function g1(e){var a;const t=(a=Ym())==null?void 0:a.role;let r;return e.some(s=>{if(typeof s=="number")return s===t;const o=s.code===t;return o&&(r=s.type),o})!==void 0?r||!0:!1}const ma={system:{size:"small"},tpls:{tableCol:{T_UserInfo:{prop:"user_data",label:"用户信息",type:"UserInfo",fixed:"left",getInferredAttrs(e){var n;const t=(n=e==null?void 0:e.attrs)==null?void 0:n.simple;return{width:{large:t?280:520,default:t?230:450,small:t?170:410}[Ox]}}}},baseBtns:{add:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},edit:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},delete:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},pass:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},reject:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},repeal:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},import:{auth:[0,1,2,{code:4,type:"disabled"},{code:5,type:"disabled"}]},upload:{auth:[0,1,2,{code:4,type:"disabled"},5]},download:{auth:[]},enable:{auth:[0,1,2,{code:4,type:"disabled"},5]},forbid:{auth:[0,1,2,{code:4,type:"disabled"},5]},audit:{auth:[0,1,2,{code:4,type:"disabled"},5]},view:{auth:void 0},submit:{auth:[0,1,2,3,4,5,6]},reset:{auth:[]},log:{auth:null}}},BaseCrud:{Index:{handleAuth:g1}},BaseBtn:{handleAuth:g1}},{regexp:xS,popup:Qc,date:ha,element:En,paths:ns,system:Rt,performance:as}=ma,vS=(as==null?void 0:as.enableTpl)??!0,gS=(as==null?void 0:as.enableOptimize)??!1,mS=(ns==null?void 0:ns.noAuth)??["/login"],_S=(ns==null?void 0:ns.home)??"/",Ox=Rt==null?void 0:Rt.size,gi=(Rt==null?void 0:Rt.emptyStr)??"-";var dx;(dx=Rt==null?void 0:Rt.theme)==null||dx.name;var px;(px=Rt==null?void 0:Rt.layout)==null||px.type;const wl=(Rt==null?void 0:Rt.rangeJoinChar)??"~";var xx;const wS=((xx=ha==null?void 0:ha.valid)==null?void 0:xx.login)??24*60*60*1e3;var vx;((vx=ha==null?void 0:ha.valid)==null?void 0:vx.dict)??24*60*60*1e3;var gx;const ES=((gx=ha==null?void 0:ha.format)==null?void 0:gx.tableCol)??"YYYY-MM-DD HH:mm:ss";Qc==null||Qc.defaultType;var mx;const yS=((mx=ma.OperateBtns)==null?void 0:mx.max)??3,TS="input";var _x;const kS=((_x=ma.BaseIcon)==null?void 0:_x.name)??"ElemeFilled";var wx,Ex;const SS=Object.assign({curr_page:"curr_page",page_size:"page_size",total_num:"total_num",has_more:"has_more",records:"records"},(Ex=(wx=ma.BaseCrud)==null?void 0:wx.Index)==null?void 0:Ex.reqResMap),AS=Object.assign({showAfter:500},En==null?void 0:En.tooltip),Fo=Object.assign({width:"fit-content",showAfter:500},En==null?void 0:En.popover);Object.assign({width:"fit-content",style:"max-width: 94vw;min-width:200px;overflow:hidden;",closeOnClickModal:!1,appendToBody:!0,destroyOnClose:!0,draggable:!0},En==null?void 0:En.dialog);Object.assign({size:"none",style:"max-width: 94vw;min-width:200px;",closeOnClickModal:!1,appendToBody:!0,destroyOnClose:!0},En==null?void 0:En.drawer);const rs=Object.assign({onlyNum:/^[0-9.]+$/,lowerChar:/[a-z]+/,phone:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,identity:/^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,identity_1:/^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/,identity_2:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/,email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,password:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/,creditCard:/^[1-9]\d{9,29}$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/},xS);var yx,Tx,kx;const m1=((kx=(Tx=(yx=ma.element)==null?void 0:yx.datePicker)==null?void 0:Tx.shortcuts)==null?void 0:kx.dateRange)??[{text:"近一周",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-3600*1e3*24*7),[t,e]}},{text:"近一个月",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-3600*1e3*24*30),[t,e]}},{text:"近三个月",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-3600*1e3*24*90),[t,e]}}];var Sx,Ax;const _1=((Ax=(Sx=ma.element)==null?void 0:Sx.datePicker)==null?void 0:Ax.defaultTime)??[new Date(2e3,1,1,0,0,0),new Date(2e3,2,1,23,59,59)],CS={daterange:{text:"日期",attrs:{shortcuts:m1,defaultTime:_1}},datetimerange:{text:"时间",attrs:{shortcuts:m1,defaultTime:_1}},monthrange:{text:"月份",attrs:{}}};var Cx;const FS=Object.assign({input:{attrs:{placeholder:"请输入${label}",clearable:!0,showWordLimit:!0}},select:{attrs:{clearable:!0,tagType:"primary",loadingText:"玩命加载中……",getInferredAttrs(e){var t;return{placeholder:(t=e.attrs)!=null&&t.remote?"请输入关键字搜索${label}":"请选择${label}"}}}},"tree-select":{attrs:{placeholder:"请选择${label}",clearable:!0}},cascader:{attrs:{placeholder:"请选择${label}",clearable:!0}},"date-picker":{attrs:{type:"daterange",rangeSeparator:wl,format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",placeholder:"请选择${label}",clearable:!0,getInferredAttrs(e){const{attrs:t={}}=e,{type:r,format:n}=t,a={};n!=null&&n.includes(" ")&&(a.type="datetimerange");const s=a.type??r;if(!s.endsWith("range"))return a;const{text:o,attrs:c}=CS[s];return a.startPlaceholder=`开始${o}`,a.endPlaceholder=`结束${o}`,Object.assign(a,c),a}}},"time-picker":{attrs:{format:"HH:mm:ss",valueFormat:"HH:mm:ss",placeholder:"请选择${label}",rangeSeparator:wl,clearable:!0}},"time-select":{attrs:{placeholder:"请选择${label}",clearable:!0}},switch:{attrs:{activeValue:1,inactiveValue:0,activeText:"启用",inactiveText:"禁用",inlinePrompt:!0},quickAttrs:{middleFlexGrow:0}},checkbox:{quickAttrs:{middleFlexGrow:0}},"checkbox-group":{attrs:{options:[]},quickAttrs:{middleFlexGrow:0}},"radio-group":{attrs:{options:[],type:"button"},quickAttrs:{middleFlexGrow:0}},"input-number":{attrs:{placeholder:"${label}"},quickAttrs:{middleFlexGrow:0}},autocomplete:{attrs:{placeholder:"请输入${label}",clearable:!0,showWordLimit:!0,fetchSuggestions(e,t){t([{label:e,value:e}])}}},BaseNumberRange:{attrs:{}},BaseUpload:{quickAttrs:{middleFlexGrow:0}}},(Cx=ma.tpls)==null?void 0:Cx.formItem);function w1(e="common"){var r,n;const t=e==="query";return{T_Id:{prop:"id",label:"ID",attrs:{maxlength:10}},T_UserName:{label:"姓名",attrs:{}},T_Remark:{label:"备注",type:"input",attrs:{type:t?void 0:"textarea",maxlength:50}},T_CreateTime:{prop:"create_time",label:"创建时间",type:"date-picker",attrs:{type:t?"datetimerange":"datetime"}},T_Phone:{label:"电话",rules:t?void 0:[{pattern:rs.phone,message:"请输入11位合法的电话号码"}],attrs:{maxlength:11}},T_Password:{label:"密码",...t?{attrs:{maxlength:16}}:{rules:[{min:6,message:"密码长度不能小于6位"},{pattern:rs.password,message:"请输入正确的6~16位字母 + 数字组合密码"}],attrs:{type:"password",maxlength:16,showPassword:!0}}},T_Identity:{label:"身份证号",rules:t?void 0:[{min:15,message:"身份证号长度不能小于15位"},{pattern:rs.identity,message:"请输入正确的15~18位身份证号"}],attrs:{maxlength:18}},T_Email:{label:"邮箱",rules:t?void 0:[{pattern:rs.email,message:"请输入正确的邮箱地址"}]},T_Number:{label:"数值",type:"input",rules:[{type:"number",message:"必须为数字"}],attrs:{type:"number"}},T_Age:{label:"年龄",...t?{type:"BaseNumberRange",attrs:{min:0,max:150}}:{type:"input-number",attrs:{min:0,max:150,slots:{suffix:"岁"}}}},T_Amount:{label:"数量",...t?{type:"BaseNumberRange",attrs:{min:0,max:100}}:{type:"input-number",attrs:{min:0,max:100,slots:{suffix:"个"}}}},T_Price:{prop:"price",label:"价格",...t?{type:"BaseNumberRange",attrs:{min:0,max:99999,precision:2}}:{type:"input-number",attrs:{min:0,max:99999,precision:2,step:.1,controlsPosition:"right",slots:{suffix:"¥"}}}},T_YesNoStatus:{prop:"is",label:"是否",...t?{type:"select",attrs:{options:"D_YesNoStatus"}}:{type:"switch",attrs:{activeText:"是",inactiveText:"否"}}},T_EnableStatus:{prop:"status",label:"启用状态",...t?{type:"select",attrs:{options:"D_EnableStatus"}}:{type:"switch",attrs:{activeText:"启用",inactiveText:"禁用"}}},T_Gender:{label:"性别",type:t?"select":"radio-group",attrs:{options:"D_Gender"}},T_Region:{label:"地址",type:"cascader",attrs:{options:"C_Region"}},...(n=(r=ma.tpls)==null?void 0:r.formItem)==null?void 0:n.call(r,e)}}const Dx={common:w1("common"),query:w1("query")};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var qo={};qo.version="0.18.5";var Nx=1252,bS=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Vl={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},zl=function(e){bS.indexOf(e)!=-1&&(Nx=Vl[0]=e)};function IS(){zl(1252)}var Bn=function(e){zl(e)};function Gl(){Bn(1200),IS()}function E1(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function OS(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function Rx(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Ks=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?OS(e.slice(2)):t==254&&r==255?Rx(e.slice(2)):t==65279?e.slice(1):e},bo=function(t){return String.fromCharCode(t)},y1=function(t){return String.fromCharCode(t)},El,Ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o0(e){for(var t="",r=0,n=0,a=0,s=0,o=0,c=0,l=0,h=0;h<e.length;)r=e.charCodeAt(h++),s=r>>2,n=e.charCodeAt(h++),o=(r&3)<<4|n>>4,a=e.charCodeAt(h++),c=(n&15)<<2|a>>6,l=a&63,isNaN(n)?c=l=64:isNaN(a)&&(l=64),t+=Ma.charAt(s)+Ma.charAt(o)+Ma.charAt(c)+Ma.charAt(l);return t}function sn(e){var t="",r=0,n=0,a=0,s=0,o=0,c=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var h=0;h<e.length;)s=Ma.indexOf(e.charAt(h++)),o=Ma.indexOf(e.charAt(h++)),r=s<<2|o>>4,t+=String.fromCharCode(r),c=Ma.indexOf(e.charAt(h++)),n=(o&15)<<4|c>>2,c!==64&&(t+=String.fromCharCode(n)),l=Ma.indexOf(e.charAt(h++)),a=(c&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var nr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),_a=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Ha(e){return nr?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function T1(e){return nr?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var tn=function(t){return nr?_a(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function xf(e){if(typeof ArrayBuffer>"u")return tn(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ga(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function DS(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function Xl(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return Xl(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var at=nr?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:_a(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function NS(e){for(var t=[],r=0,n=e.length+250,a=Ha(e.length+255),s=0;s<e.length;++s){var o=e.charCodeAt(s);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var c=e.charCodeAt(++s)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|c>>6&15|(o&3)<<4,a[r++]=128|c&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Ha(65535),n=65530)}return t.push(a.slice(0,r)),at(t)}var Pt=/\u0000/g,Ys=/[\u0001-\u0006]/g;function is(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Ln(e,t){var r=""+e;return r.length>=t?r:Mr("0",t-r.length)+r}function Kl(e,t){var r=""+e;return r.length>=t?r:Mr(" ",t-r.length)+r}function Jo(e,t){var r=""+e;return r.length>=t?r:r+Mr(" ",t-r.length)}function RS(e,t){var r=""+Math.round(e);return r.length>=t?r:Mr("0",t-r.length)+r}function PS(e,t){var r=""+e;return r.length>=t?r:Mr("0",t-r.length)+r}var k1=Math.pow(2,32);function qi(e,t){if(e>k1||e<-k1)return RS(e,t);var r=Math.round(e);return PS(r,t)}function Zo(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var S1=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],el=[["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 BS(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 $e={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"秒 "'},A1={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},LS={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 Qo(e,t,r){for(var n=e<0?-1:1,a=e*n,s=0,o=1,c=0,l=1,h=0,d=0,x=Math.floor(a);h<t&&(x=Math.floor(a),c=x*o+s,d=x*h+l,!(a-x<5e-8));)a=1/(a-x),s=o,o=c,l=h,h=d;if(d>t&&(h>t?(d=l,c=s):(d=h,c=o)),!r)return[0,n*c,d];var _=Math.floor(n*c/d);return[_,n*c-_*d,d]}function li(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),s=0,o=[],c={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),t&&t.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++a==86400&&(c.T=a=0,++n,++c.D)),n===60)o=r?[1317,10,29]:[1900,2,29],s=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],s=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],s=l.getDay(),n<60&&(s=(s+6)%7),r&&(s=VS(l,o))}return c.y=o[0],c.m=o[1],c.d=o[2],c.S=a%60,a=Math.floor(a/60),c.M=a%60,a=Math.floor(a/60),c.H=a,c.q=s,c}var Px=new Date(1899,11,31,0,0,0),MS=Px.getTime(),US=new Date(1900,2,1,0,0,0);function Bx(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=US&&(r+=24*60*60*1e3),(r-(MS+(e.getTimezoneOffset()-Px.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Yl(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function WS(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function HS(e){var t=e<0?12:11,r=Yl(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function $S(e){var t=Yl(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function f0(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=HS(e):t===10?r=e.toFixed(10).substr(0,12):r=$S(e),Yl(WS(r.toUpperCase()))}function mi(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):f0(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kn(14,Bx(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function VS(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function zS(e,t,r,n){var a="",s=0,o=0,c=r.y,l,h=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:l=c%100,h=2;break;default:l=c%1e4,h=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,h=t.length;break;case 3:return el[r.m-1][1];case 5:return el[r.m-1][0];default:return el[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,h=t.length;break;case 3:return S1[r.q][0];default:return S1[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,h=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,h=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,h=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Ln(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,s=Math.round(o*(r.S+r.u)),s>=60*o&&(s=0),t==="s"?s===0?"0":""+s/o:(a=Ln(s,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}h=t.length===3?1:2;break;case 101:l=c,h=1;break}var d=h>0?Ln(l,h):"";return d}function Ua(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Lx=/%/g;function GS(e,t,r){var n=t.replace(Lx,""),a=t.length-n.length;return da(e,n,r*Math.pow(10,2*a))+Mr("%",a)}function XS(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return da(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Mx(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Mx(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%a;if(s<0&&(s+=a),r=(t/Math.pow(10,s)).toPrecision(n+1+(a+s)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+s):r+="E+"+(o-s);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,l,h,d){return l+h+d.substr(0,(a+s)%a)+"."+d.substr(s)+"E"})}else r=t.toExponential(n);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 Ux=/# (\?+)( ?)\/( ?)(\d+)/;function KS(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),s=Math.floor(a/n),o=a-s*n,c=n;return r+(s===0?"":""+s)+" "+(o===0?Mr(" ",e[1].length+1+e[4].length):Kl(o,e[1].length)+e[2]+"/"+e[3]+Ln(c,e[4].length))}function YS(e,t,r){return r+(t===0?"":""+t)+Mr(" ",e[1].length+2+e[4].length)}var Wx=/^#*0*\.([0#]+)/,Hx=/\).*[0#]/,$x=/\(###\) ###\\?-####/;function Dt(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function C1(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function F1(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function jS(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function qS(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function vn(e,t,r){if(e.charCodeAt(0)===40&&!t.match(Hx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?vn("n",n,r):"("+vn("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return XS(e,t,r);if(t.indexOf("%")!==-1)return GS(e,t,r);if(t.indexOf("E")!==-1)return Mx(t,r);if(t.charCodeAt(0)===36)return"$"+vn(e,t.substr(t.charAt(1)==" "?2:1),r);var a,s,o,c,l=Math.abs(r),h=r<0?"-":"";if(t.match(/^00+$/))return h+qi(l,t.length);if(t.match(/^[#?]+$/))return a=qi(r,0),a==="0"&&(a=""),a.length>t.length?a:Dt(t.substr(0,t.length-a.length))+a;if(s=t.match(Ux))return KS(s,l,h);if(t.match(/^#+0+$/))return h+qi(l,t.length-t.indexOf("0"));if(s=t.match(Wx))return a=C1(r,s[1].length).replace(/^([^\.]+)$/,"$1."+Dt(s[1])).replace(/\.$/,"."+Dt(s[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+Mr("0",Dt(s[1]).length-g.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return h+C1(l,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 h+Ua(qi(l,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+vn(e,t,-r):Ua(""+(Math.floor(r)+jS(r,s[1].length)))+"."+Ln(F1(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return vn(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=is(vn(e,t.replace(/[\\-]/g,""),r)),o=0,is(is(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<a.length?a.charAt(o++):m==="0"?"0":""}));if(t.match($x))return a=vn(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var d="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=Qo(l,Math.pow(10,o)-1,!1),a=""+h,d=da("n",s[1],c[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),a+=d+s[2]+"/"+s[3],d=Jo(c[2],o),d.length<s[4].length&&(d=Dt(s[4].substr(s[4].length-d.length))+d),a+=d,a;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=Qo(l,Math.pow(10,o)-1,!0),h+(c[0]||(c[1]?"":"0"))+" "+(c[1]?Kl(c[1],o)+s[2]+"/"+s[3]+Jo(c[2],o):Mr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return a=qi(r,0),t.length<=a.length?a:Dt(t.substr(0,t.length-a.length))+a;if(s=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var x=t.indexOf(".")-o,_=t.length-a.length-x;return Dt(t.substr(0,x)+a+t.substr(t.length-_))}if(s=t.match(/^00,000\.([#0]*0)$/))return o=F1(r,s[1].length),r<0?"-"+vn(e,t,-r):Ua(qS(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Ln(0,3-m.length):"")+m})+"."+Ln(o,s[1].length);switch(t){case"###,##0.00":return vn(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var w=Ua(qi(l,0));return w!=="0"?h+w:"";case"###,###.00":return vn(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return vn(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function JS(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return da(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function ZS(e,t,r){var n=t.replace(Lx,""),a=t.length-n.length;return da(e,n,r*Math.pow(10,2*a))+Mr("%",a)}function Vx(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Vx(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%a;if(s<0&&(s+=a),r=(t/Math.pow(10,s)).toPrecision(n+1+(a+s)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+s):r+="E+"+(o-s),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,l,h,d){return l+h+d.substr(0,(a+s)%a)+"."+d.substr(s)+"E"})}else r=t.toExponential(n);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")}function Xn(e,t,r){if(e.charCodeAt(0)===40&&!t.match(Hx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Xn("n",n,r):"("+Xn("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return JS(e,t,r);if(t.indexOf("%")!==-1)return ZS(e,t,r);if(t.indexOf("E")!==-1)return Vx(t,r);if(t.charCodeAt(0)===36)return"$"+Xn(e,t.substr(t.charAt(1)==" "?2:1),r);var a,s,o,c,l=Math.abs(r),h=r<0?"-":"";if(t.match(/^00+$/))return h+Ln(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:Dt(t.substr(0,t.length-a.length))+a;if(s=t.match(Ux))return YS(s,l,h);if(t.match(/^#+0+$/))return h+Ln(l,t.length-t.indexOf("0"));if(s=t.match(Wx))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Dt(s[1])).replace(/\.$/,"."+Dt(s[1])),a=a.replace(/\.(\d*)$/,function(m,g){return"."+g+Mr("0",Dt(s[1]).length-g.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return h+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return h+Ua(""+l);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Xn(e,t,-r):Ua(""+r)+"."+Mr("0",s[1].length);if(s=t.match(/^#,#*,#0/))return Xn(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=is(Xn(e,t.replace(/[\\-]/g,""),r)),o=0,is(is(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<a.length?a.charAt(o++):m==="0"?"0":""}));if(t.match($x))return a=Xn(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var d="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=Qo(l,Math.pow(10,o)-1,!1),a=""+h,d=da("n",s[1],c[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),a+=d+s[2]+"/"+s[3],d=Jo(c[2],o),d.length<s[4].length&&(d=Dt(s[4].substr(s[4].length-d.length))+d),a+=d,a;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=Qo(l,Math.pow(10,o)-1,!0),h+(c[0]||(c[1]?"":"0"))+" "+(c[1]?Kl(c[1],o)+s[2]+"/"+s[3]+Jo(c[2],o):Mr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:Dt(t.substr(0,t.length-a.length))+a;if(s=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var x=t.indexOf(".")-o,_=t.length-a.length-x;return Dt(t.substr(0,x)+a+t.substr(t.length-_))}if(s=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Xn(e,t,-r):Ua(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Ln(0,3-m.length):"")+m})+"."+Ln(0,s[1].length);switch(t){case"###,###":case"##,###":case"#,###":var w=Ua(""+l);return w!=="0"?h+w:"";default:if(t.match(/\.[0#?]*$/))return Xn(e,t.slice(0,t.lastIndexOf(".")),r)+Dt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function da(e,t,r){return(r|0)===r?Xn(e,t,r):vn(e,t,r)}function QS(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var zx=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ps(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Zo(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(zx))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;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":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function e4(e,t,r,n){for(var a=[],s="",o=0,c="",l="t",h,d,x,_="H";o<e.length;)switch(c=e.charAt(o)){case"G":if(!Zo(e,o))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(x=e.charCodeAt(++o))!==34&&o<e.length;)s+=String.fromCharCode(x);a[a.length]={t:"t",v:s},++o;break;case"\\":var w=e.charAt(++o),m=w==="("||w===")"?w:"t";a[a.length]={t:m,v:w},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(h==null&&(h=li(t,r,e.charAt(o+1)==="2"),h==null))return"";a[a.length]={t:"X",v:e.substr(o,2)},l=c,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||h==null&&(h=li(t,r),h==null))return"";for(s=c;++o<e.length&&e.charAt(o).toLowerCase()===c;)s+=c;c==="m"&&l.toLowerCase()==="h"&&(c="M"),c==="h"&&(c=_),a[a.length]={t:c,v:s},l=c;break;case"A":case"a":case"上":var g={t:c,v:c};if(h==null&&(h=li(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(h!=null&&(g.v=h.H>=12?"P":"A"),g.t="T",_="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(h!=null&&(g.v=h.H>=12?"PM":"AM"),g.t="T",o+=5,_="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(h!=null&&(g.v=h.H>=12?"下午":"上午"),g.t="T",o+=5,_="h"):(g.t="t",++o),h==null&&g.t==="T")return"";a[a.length]=g,l=c;break;case"[":for(s=c;e.charAt(o++)!=="]"&&o<e.length;)s+=e.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(zx)){if(h==null&&(h=li(t,r),h==null))return"";a[a.length]={t:"Z",v:s.toLowerCase()},l=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",ps(e)||(a[a.length]={t:"t",v:s}));break;case".":if(h!=null){for(s=c;++o<e.length&&(c=e.charAt(o))==="0";)s+=c;a[a.length]={t:"s",v:s};break}case"0":case"#":for(s=c;++o<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(o))>-1;)s+=c;a[a.length]={t:"n",v:s};break;case"?":for(s=c;e.charAt(++o)===c;)s+=c;a[a.length]={t:c,v:s},l=c;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":c,v:c},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=c;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)s+=e.charAt(o);a[a.length]={t:"D",v:s};break;case" ":a[a.length]={t:c,v:c},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++o;break}var E=0,A=0,O;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=_,l="h",E<1&&(E=1);break;case"s":(O=a[o].v.match(/\.0+$/))&&(A=Math.max(A,O[0].length-1)),E<3&&(E=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",E<2&&(E=2));break;case"X":break;case"Z":E<1&&a[o].v.match(/[Hh]/)&&(E=1),E<2&&a[o].v.match(/[Mm]/)&&(E=2),E<3&&a[o].v.match(/[Ss]/)&&(E=3)}switch(E){case 0:break;case 1:h.u>=.5&&(h.u=0,++h.S),h.S>=60&&(h.S=0,++h.M),h.M>=60&&(h.M=0,++h.H);break;case 2:h.u>=.5&&(h.u=0,++h.S),h.S>=60&&(h.S=0,++h.M);break}var k="",W;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=zS(a[o].t.charCodeAt(0),a[o].v,h,A),a[o].t="t";break;case"n":case"?":for(W=o+1;a[W]!=null&&((c=a[W].t)==="?"||c==="D"||(c===" "||c==="t")&&a[W+1]!=null&&(a[W+1].t==="?"||a[W+1].t==="t"&&a[W+1].v==="/")||a[o].t==="("&&(c===" "||c==="n"||c===")")||c==="t"&&(a[W].v==="/"||a[W].v===" "&&a[W+1]!=null&&a[W+1].t=="?"));)a[o].v+=a[W].v,a[W]={v:"",t:";"},++W;k+=a[o].v,o=W-1;break;case"G":a[o].t="t",a[o].v=mi(t,r);break}var z="",M,F;if(k.length>0){k.charCodeAt(0)==40?(M=t<0&&k.charCodeAt(0)===45?-t:t,F=da("n",k,M)):(M=t<0&&n>1?-t:t,F=da("n",k,M),M<0&&a[0]&&a[0].t=="t"&&(F=F.substr(1),a[0].v="-"+a[0].v)),W=F.length-1;var j=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){j=o;break}var V=a.length;if(j===a.length&&F.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(W>=a[o].v.length-1?(W-=a[o].v.length,a[o].v=F.substr(W+1,a[o].v.length)):W<0?a[o].v="":(a[o].v=F.substr(0,W+1),W=-1),a[o].t="t",V=o);W>=0&&V<a.length&&(a[V].v=F.substr(0,W+1)+a[V].v)}else if(j!==a.length&&F.indexOf("E")===-1){for(W=F.indexOf(".")-1,o=j;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(d=a[o].v.indexOf(".")>-1&&o===j?a[o].v.indexOf(".")-1:a[o].v.length-1,z=a[o].v.substr(d+1);d>=0;--d)W>=0&&(a[o].v.charAt(d)==="0"||a[o].v.charAt(d)==="#")&&(z=F.charAt(W--)+z);a[o].v=z,a[o].t="t",V=o}for(W>=0&&V<a.length&&(a[V].v=F.substr(0,W+1)+a[V].v),W=F.indexOf(".")+1,o=j;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==j)){for(d=a[o].v.indexOf(".")>-1&&o===j?a[o].v.indexOf(".")+1:0,z=a[o].v.substr(0,d);d<a[o].v.length;++d)W<F.length&&(z+=F.charAt(W++));a[o].v=z,a[o].t="t",V=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(M=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=da(a[o].t,a[o].v,M),a[o].t="t");var ee="";for(o=0;o!==a.length;++o)a[o]!=null&&(ee+=a[o].v);return ee}var b1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function I1(e,t){if(t==null)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<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function r4(e,t){var r=QS(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var s=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,s];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(b1),c=r[1].match(b1);return I1(t,o)?[n,r[0]]:I1(t,c)?[n,r[1]]:[n,r[o!=null&&c!=null?2:1]]}return[n,s]}function kn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:$e)[e],n==null&&(n=r.table&&r.table[A1[e]]||$e[A1[e]]),n==null&&(n=LS[e]||"General");break}if(Zo(n,0))return mi(t,r);t instanceof Date&&(t=Bx(t,r.date1904));var a=r4(n,t);if(Zo(a[1]))return mi(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return e4(a[1],t,r,a[0])}function pa(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if($e[r]==null){t<0&&(t=r);continue}if($e[r]==e){t=r;break}}t<0&&(t=391)}return $e[t]=e,t}function vf(e){for(var t=0;t!=392;++t)e[t]!==void 0&&pa(e[t],t)}function xs(){$e=BS()}var t4={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"},Gx=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function n4(e){var t=typeof e=="number"?$e[e]:e;return t=t.replace(Gx,"(\\d+)"),new RegExp("^"+t+"$")}function a4(e,t,r){var n=-1,a=-1,s=-1,o=-1,c=-1,l=-1;(t.match(Gx)||[]).forEach(function(x,_){var w=parseInt(r[_+1],10);switch(x.toLowerCase().charAt(0)){case"y":n=w;break;case"d":s=w;break;case"h":o=w;break;case"s":l=w;break;case"m":o>=0?c=w:a=w;break}}),l>=0&&c==-1&&a>=0&&(c=a,a=-1);var h=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);h.length==7&&(h="0"+h),h.length==8&&(h="20"+h);var d=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&c==-1&&l==-1?h:n==-1&&a==-1&&s==-1?d:h+"T"+d}var i4=function(){var e={};e.version="1.2.0";function t(){for(var F=0,j=new Array(256),V=0;V!=256;++V)F=V,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,j[V]=F;return typeof Int32Array<"u"?new Int32Array(j):j}var r=t();function n(F){var j=0,V=0,ee=0,q=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(ee=0;ee!=256;++ee)q[ee]=F[ee];for(ee=0;ee!=256;++ee)for(V=F[ee],j=256+ee;j<4096;j+=256)V=q[j]=V>>>8^F[V&255];var K=[];for(ee=1;ee!=16;++ee)K[ee-1]=typeof Int32Array<"u"?q.subarray(ee*256,ee*256+256):q.slice(ee*256,ee*256+256);return K}var a=n(r),s=a[0],o=a[1],c=a[2],l=a[3],h=a[4],d=a[5],x=a[6],_=a[7],w=a[8],m=a[9],g=a[10],E=a[11],A=a[12],O=a[13],k=a[14];function W(F,j){for(var V=j^-1,ee=0,q=F.length;ee<q;)V=V>>>8^r[(V^F.charCodeAt(ee++))&255];return~V}function z(F,j){for(var V=j^-1,ee=F.length-15,q=0;q<ee;)V=k[F[q++]^V&255]^O[F[q++]^V>>8&255]^A[F[q++]^V>>16&255]^E[F[q++]^V>>>24]^g[F[q++]]^m[F[q++]]^w[F[q++]]^_[F[q++]]^x[F[q++]]^d[F[q++]]^h[F[q++]]^l[F[q++]]^c[F[q++]]^o[F[q++]]^s[F[q++]]^r[F[q++]];for(ee+=15;q<ee;)V=V>>>8^r[(V^F[q++])&255];return~V}function M(F,j){for(var V=j^-1,ee=0,q=F.length,K=0,ge=0;ee<q;)K=F.charCodeAt(ee++),K<128?V=V>>>8^r[(V^K)&255]:K<2048?(V=V>>>8^r[(V^(192|K>>6&31))&255],V=V>>>8^r[(V^(128|K&63))&255]):K>=55296&&K<57344?(K=(K&1023)+64,ge=F.charCodeAt(ee++)&1023,V=V>>>8^r[(V^(240|K>>8&7))&255],V=V>>>8^r[(V^(128|K>>2&63))&255],V=V>>>8^r[(V^(128|ge>>6&15|(K&3)<<4))&255],V=V>>>8^r[(V^(128|ge&63))&255]):(V=V>>>8^r[(V^(224|K>>12&15))&255],V=V>>>8^r[(V^(128|K>>6&63))&255],V=V>>>8^r[(V^(128|K&63))&255]);return~V}return e.table=r,e.bstr=W,e.buf=z,e.str=M,e}(),Me=function(){var t={};t.v