function te(a){return Array.isArray(a)}function oe(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function Oe(a){return(a??"")===""}function Ee(a){return Oe(a)?!0:oe(a)?Object.keys(a).length===0:te(a)?a.length===0:!1}function Ne(a){return!oe(a)||Object.keys(a).length===0}async function Me(a){if(!a||typeof a.validate!="function")throw new Error("无效的表单校验");return new Promise(w=>{a.validate(d=>{w(!!d)})})}function Te(a,w,d=-1){if(!te(a))return!1;const E=a.indexOf(w);return typeof d=="object"&&(d.value=E),E!==-1}function ve(a,w,d){return te(a)?a.findIndex(E=>E[w]==d):-1}function De(a){return Ae(a,"id")}function Ae(a,w="id",d=","){return te(a)?a.map(E=>E[w]).join(d):""}function ke(a){return te(a)?a:[]}function Se(a,w=new WeakMap){if(!oe(a))return a;if(w.has(a))return w.get(a);const d=Array.isArray(a)?[]:{};return w.set(a,d),Object.keys(a).forEach(E=>{d[E]=Se(a[E],w)}),d}function Pe(a,w=!1){return oe(a)?w&&Ne(a)?!1:a:w?!1:{}}function Ce(a,w=""){return new Promise(d=>{try{const{data:E,headers:g}=a,N=ye(g);let S=new Blob([E],{type:w});const R=window.URL.createObjectURL(S),L=document.createElement("a");L.style.display="none",L.href=R;const v=N.split(";")[1].split("=")[1];L.setAttribute("download",decodeURI(v)),typeof L.download>"u"&&L.setAttribute("target","_blank"),document.body.appendChild(L),L.click(),document.body.removeChild(L),window.URL.revokeObjectURL(R),d({status:!0,msg:"下载成功"})}catch(E){d({status:!1,msg:E.message})}})}const ye=a=>{try{return a["content-disposition"]}catch{return""}};function Ge(a,w="",d="application/vnd.ms-excel"){let E=new Blob([a],{type:d});const g=window.URL.createObjectURL(E),N=document.createElement("a");N.style.display="none",N.href=g;const S=w.split(";")[1].split("=")[1];N.setAttribute("download",decodeURI(S)),typeof N.download>"u"&&N.setAttribute("target","_blank"),document.body.appendChild(N),N.click(),document.body.removeChild(N),window.URL.revokeObjectURL(g)}const xe="0123456789",Re="abcdefghijklmnopqrstuvwxyz",_e="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fe(a=8,w=xe+Re+_e){return a<=0?"":Array.from({length:a},()=>w[Math.floor(Math.random()*w.length)]).join("")}async function Le(a,w,d={},E=[],g="children"){if(a&&a.length>0)for(const N of a){d[N[w]]={},E.push(N[w]);for(const S of Object.keys(N))S!==g&&(d[N[w]][S]=N[S]),S===g&&N[g]&&N[g].length>0&&await Le(N[g],w,d,E,g)}}function qe(a,w){let d=w-a,E=Math.floor(d/(24*3600*1e3)),g=d%(24*3600*1e3),N=Math.floor(g/(3600*1e3)),S=g%(3600*1e3),R=Math.floor(S/(60*1e3)),L=S%(60*1e3),v=Math.round(d/1e3);return{leave1:g,leave2:S,leave3:L,days:E,hours:N,minutes:R,seconds:v}}function $e(a,w,d=!1){Be({name:a,content:w,session:d})}function Ve(a,w=!1,d=!1){return Ue({name:a,debug:w,session:d})}function Ue({name:a,debug:w=!1,session:d=!1}){let g=(d?window.sessionStorage:window.localStorage).getItem(a);if(Ee(g))return;try{g=JSON.parse(g)}catch(R){return console.error(`解析缓存数据失败: ${a}`,R),g}if(w)return g;const{dataType:N,content:S}=g;switch(N){case"number":return Number(S);case"boolean":return!!S;case"object":return S;default:return S??""}}function Be({name:a,content:w,session:d=!1}){const E={dataType:typeof w,content:w??"",session:d,datetime:new Date().getTime()},g=d?window.sessionStorage:window.localStorage;try{g.setItem(a,JSON.stringify(E))}catch(N){console.error(`存储数据失败: ${a}`,N)}}function Xe(){window.sessionStorage.clear(),window.localStorage.clear()}var Ie=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,he=Math.ceil,q=Math.floor,P="[BigNumber Error] ",de=P+"Number primitive has more than 15 significant digits: ",X=1e14,A=14,ge=9007199254740991,pe=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],J=1e7,T=1e9;function me(a){var w,d,E,g=p.prototype={constructor:p,toString:null,valueOf:null},N=new p(1),S=20,R=4,L=-7,v=21,Y=-1e7,V=1e7,K=!1,b=1,W=0,fe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Q="0123456789abcdefghijklmnopqrstuvwxyz",se=!0;function p(e,t){var r,l,i,f,u,n,o,c,s=this;if(!(s instanceof p))return new p(e,t);if(t==null){if(e&&e._isBigNumber===!0){s.s=e.s,!e.c||e.e>V?s.c=s.e=null:e.e=10;u/=10,f++);f>V?s.c=s.e=null:(s.e=f,s.c=[e]);return}c=String(e)}else{if(!Ie.test(c=String(e)))return E(s,c,n);s.s=c.charCodeAt(0)==45?(c=c.slice(1),-1):1}(f=c.indexOf("."))>-1&&(c=c.replace(".","")),(u=c.search(/e/i))>0?(f<0&&(f=u),f+=+c.slice(u+1),c=c.substring(0,u)):f<0&&(f=c.length)}else{if(U(t,2,Q.length,"Base"),t==10&&se)return s=new p(e),C(s,S+s.e+1,R);if(c=String(e),n=typeof e=="number"){if(e*0!=0)return E(s,c,n,t);if(s.s=1/e<0?(c=c.slice(1),-1):1,p.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(de+e)}else s.s=c.charCodeAt(0)===45?(c=c.slice(1),-1):1;for(r=Q.slice(0,t),f=u=0,o=c.length;uf){f=o;continue}}else if(!i&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){i=!0,u=-1,f=0;continue}return E(s,String(e),n,t)}n=!1,c=d(c,t,10,s.s),(f=c.indexOf("."))>-1?c=c.replace(".",""):f=c.length}for(u=0;c.charCodeAt(u)===48;u++);for(o=c.length;c.charCodeAt(--o)===48;);if(c=c.slice(u,++o)){if(o-=u,n&&p.DEBUG&&o>15&&(e>ge||e!==q(e)))throw Error(de+s.s*e);if((f=f-u-1)>V)s.c=s.e=null;else if(f=-T&&i<=T&&i===q(i)){if(l[0]===0){if(i===0&&l.length===1)return!0;break e}if(t=(i+1)%A,t<1&&(t+=A),String(l[0]).length==t){for(t=0;t=X||r!==q(r))break e;if(r!==0)return!0}}}else if(l===null&&i===null&&(f===null||f===1||f===-1))return!0;throw Error(P+"Invalid BigNumber: "+e)},p.maximum=p.max=function(){return we(arguments,-1)},p.minimum=p.min=function(){return we(arguments,1)},p.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return q(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(r){var l,i,f,u,n,o=0,c=[],s=new p(N);if(r==null?r=S:U(r,0,T),u=he(r/A),K)if(crypto.getRandomValues){for(l=crypto.getRandomValues(new Uint32Array(u*=2));o>>11),n>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),l[o]=i[0],l[o+1]=i[1]):(c.push(n%1e14),o+=2);o=u/2}else if(crypto.randomBytes){for(l=crypto.randomBytes(u*=7);o=9e15?crypto.randomBytes(7).copy(l,o):(c.push(n%1e14),o+=7);o=u/7}else throw K=!1,Error(P+"crypto unavailable");if(!K)for(;o=10;n/=10,o++);oi-1&&(n[u+1]==null&&(n[u+1]=0),n[u+1]+=n[u]/i|0,n[u]%=i)}return n.reverse()}return function(r,l,i,f,u){var n,o,c,s,h,m,O,x,B=r.indexOf("."),M=S,y=R;for(B>=0&&(s=W,W=0,r=r.replace(".",""),x=new p(l),m=x.pow(r.length-B),W=s,x.c=t(j(F(m.c),m.e,"0"),10,i,e),x.e=x.c.length),O=t(r,l,i,u?(n=Q,e):(n=e,Q)),c=s=O.length;O[--s]==0;O.pop());if(!O[0])return n.charAt(0);if(B<0?--c:(m.c=O,m.e=c,m.s=f,m=w(m,x,M,y,i),O=m.c,h=m.r,c=m.e),o=c+M+1,B=O[o],s=i/2,h=h||o<0||O[o+1]!=null,h=y<4?(B!=null||h)&&(y==0||y==(m.s<0?3:2)):B>s||B==s&&(y==4||h||y==6&&O[o-1]&1||y==(m.s<0?8:7)),o<1||!O[0])r=h?j(n.charAt(1),-M,n.charAt(0)):n.charAt(0);else{if(O.length=o,h)for(--i;++O[--o]>i;)O[o]=0,o||(++c,O=[1].concat(O));for(s=O.length;!O[--s];);for(B=0,r="";B<=s;r+=n.charAt(O[B++]));r=j(r,c,n.charAt(0))}return r}}(),w=function(){function e(l,i,f){var u,n,o,c,s=0,h=l.length,m=i%J,O=i/J|0;for(l=l.slice();h--;)o=l[h]%J,c=l[h]/J|0,u=O*o+c*m,n=m*o+u%J*J+s,s=(n/f|0)+(u/J|0)+O*c,l[h]=n%f;return s&&(l=[s].concat(l)),l}function t(l,i,f,u){var n,o;if(f!=u)o=f>u?1:-1;else for(n=o=0;ni[n]?1:-1;break}return o}function r(l,i,f,u){for(var n=0;f--;)l[f]-=n,n=l[f]1;l.splice(0,1));}return function(l,i,f,u,n){var o,c,s,h,m,O,x,B,M,y,_,D,re,ue,ae,z,ee,G=l.s==i.s?1:-1,k=l.c,I=i.c;if(!k||!k[0]||!I||!I[0])return new p(!l.s||!i.s||(k?I&&k[0]==I[0]:!I)?NaN:k&&k[0]==0||!I?G*0:G/0);for(B=new p(G),M=B.c=[],c=l.e-i.e,G=f+c+1,n||(n=X,c=$(l.e/A)-$(i.e/A),G=G/A|0),s=0;I[s]==(k[s]||0);s++);if(I[s]>(k[s]||0)&&c--,G<0)M.push(1),h=!0;else{for(ue=k.length,z=I.length,s=0,G+=2,m=q(n/(I[0]+1)),m>1&&(I=e(I,m,n),k=e(k,m,n),z=I.length,ue=k.length),re=z,y=k.slice(0,z),_=y.length;_=n/2&&ae++;do{if(m=0,o=t(I,y,z,_),o<0){if(D=y[0],z!=_&&(D=D*n+(y[1]||0)),m=q(D/ae),m>1)for(m>=n&&(m=n-1),O=e(I,m,n),x=O.length,_=y.length;t(O,y,x,_)==1;)m--,r(O,z=10;G/=10,s++);C(B,f+(B.e=s+c*A-1)+1,u,h)}else B.e=c,B.r=+h;return B}}();function le(e,t,r,l){var i,f,u,n,o;if(r==null?r=R:U(r,0,8),!e.c)return e.toString();if(i=e.c[0],u=e.e,t==null)o=F(e.c),o=l==1||l==2&&(u<=L||u>=v)?ie(o,u):j(o,u,"0");else if(e=C(new p(e),t,r),f=e.e,o=F(e.c),n=o.length,l==1||l==2&&(t<=f||f<=L)){for(;nn){if(--t>0)for(o+=".";t--;o+="0");}else if(t+=f-n,t>0)for(f+1==n&&(o+=".");t--;o+="0");return e.s<0&&i?"-"+o:o}function we(e,t){for(var r,l,i=1,f=new p(e[0]);i=10;i/=10,l++);return(r=l+r*A-1)>V?e.c=e.e=null:r=10;n/=10,i++);if(f=t-i,f<0)f+=A,u=t,o=h[c=0],s=q(o/m[i-u-1]%10);else if(c=he((f+1)/A),c>=h.length)if(l){for(;h.length<=c;h.push(0));o=s=0,i=1,f%=A,u=f-A+1}else break e;else{for(o=n=h[c],i=1;n>=10;n/=10,i++);f%=A,u=f-A+i,s=u<0?0:q(o/m[i-u-1]%10)}if(l=l||t<0||h[c+1]!=null||(u<0?o:o%m[i-u-1]),l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(f>0?u>0?o/m[i-u]:0:h[c-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,l?(t-=e.e+1,h[0]=m[(A-t%A)%A],e.e=-t||0):h[0]=e.e=0,e;if(f==0?(h.length=c,n=1,c--):(h.length=c+1,n=m[A-f],h[c]=u>0?q(o/m[i-u]%m[u])*n:0),l)for(;;)if(c==0){for(f=1,u=h[0];u>=10;u/=10,f++);for(u=h[0]+=n,n=1;u>=10;u/=10,n++);f!=n&&(e.e++,h[0]==X&&(h[0]=1));break}else{if(h[c]+=n,h[c]!=X)break;h[c--]=0,n=1}for(f=h.length;h[--f]===0;h.pop());}e.e>V?e.c=e.e=null:e.e=v?ie(t,r):j(t,r,"0"),e.s<0?"-"+t:t)}return g.absoluteValue=g.abs=function(){var e=new p(this);return e.s<0&&(e.s=1),e},g.comparedTo=function(e,t){return Z(this,new p(e,t))},g.decimalPlaces=g.dp=function(e,t){var r,l,i,f=this;if(e!=null)return U(e,0,T),t==null?t=R:U(t,0,8),C(new p(f),e+f.e+1,t);if(!(r=f.c))return null;if(l=((i=r.length-1)-$(this.e/A))*A,i=r[i])for(;i%10==0;i/=10,l--);return l<0&&(l=0),l},g.dividedBy=g.div=function(e,t){return w(this,new p(e,t),S,R)},g.dividedToIntegerBy=g.idiv=function(e,t){return w(this,new p(e,t),0,1)},g.exponentiatedBy=g.pow=function(e,t){var r,l,i,f,u,n,o,c,s,h=this;if(e=new p(e),e.c&&!e.isInteger())throw Error(P+"Exponent not an integer: "+H(e));if(t!=null&&(t=new p(t)),n=e.e>14,!h.c||!h.c[0]||h.c[0]==1&&!h.e&&h.c.length==1||!e.c||!e.c[0])return s=new p(Math.pow(+H(h),n?e.s*(2-ne(e)):+H(e))),t?s.mod(t):s;if(o=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new p(NaN);l=!o&&h.isInteger()&&t.isInteger(),l&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(h.e==0?h.c[0]>1||n&&h.c[1]>=24e7:h.c[0]<8e13||n&&h.c[0]<=9999975e7)))return f=h.s<0&&ne(e)?-0:0,h.e>-1&&(f=1/f),new p(o?1/f:f);W&&(f=he(W/A+2))}for(n?(r=new p(.5),o&&(e.s=1),c=ne(e)):(i=Math.abs(+H(e)),c=i%2),s=new p(N);;){if(c){if(s=s.times(h),!s.c)break;f?s.c.length>f&&(s.c.length=f):l&&(s=s.mod(t))}if(i){if(i=q(i/2),i===0)break;c=i%2}else if(e=e.times(r),C(e,e.e+1,1),e.e>14)c=ne(e);else{if(i=+H(e),i===0)break;c=i%2}h=h.times(h),f?h.c&&h.c.length>f&&(h.c.length=f):l&&(h=h.mod(t))}return l?s:(o&&(s=N.div(s)),t?s.mod(t):f?C(s,W,R,u):s)},g.integerValue=function(e){var t=new p(this);return e==null?e=R:U(e,0,8),C(t,t.e+1,e)},g.isEqualTo=g.eq=function(e,t){return Z(this,new p(e,t))===0},g.isFinite=function(){return!!this.c},g.isGreaterThan=g.gt=function(e,t){return Z(this,new p(e,t))>0},g.isGreaterThanOrEqualTo=g.gte=function(e,t){return(t=Z(this,new p(e,t)))===1||t===0},g.isInteger=function(){return!!this.c&&$(this.e/A)>this.c.length-2},g.isLessThan=g.lt=function(e,t){return Z(this,new p(e,t))<0},g.isLessThanOrEqualTo=g.lte=function(e,t){return(t=Z(this,new p(e,t)))===-1||t===0},g.isNaN=function(){return!this.s},g.isNegative=function(){return this.s<0},g.isPositive=function(){return this.s>0},g.isZero=function(){return!!this.c&&this.c[0]==0},g.minus=function(e,t){var r,l,i,f,u=this,n=u.s;if(e=new p(e,t),t=e.s,!n||!t)return new p(NaN);if(n!=t)return e.s=-t,u.plus(e);var o=u.e/A,c=e.e/A,s=u.c,h=e.c;if(!o||!c){if(!s||!h)return s?(e.s=-t,e):new p(h?u:NaN);if(!s[0]||!h[0])return h[0]?(e.s=-t,e):new p(s[0]?u:R==3?-0:0)}if(o=$(o),c=$(c),s=s.slice(),n=o-c){for((f=n<0)?(n=-n,i=s):(c=o,i=h),i.reverse(),t=n;t--;i.push(0));i.reverse()}else for(l=(f=(n=s.length)<(t=h.length))?n:t,n=t=0;t0)for(;t--;s[r++]=0);for(t=X-1;l>n;){if(s[--l]=0;){for(r=0,m=D[i]%M,O=D[i]/M|0,u=o,f=i+u;f>i;)c=_[--u]%M,s=_[u]/M|0,n=O*c+s*m,c=m*c+n%M*M+x[f]+r,r=(c/B|0)+(n/M|0)+O*s,x[f--]=c%B;x[f]=r}return r?++l:x.splice(0,1),ce(e,x,l)},g.negated=function(){var e=new p(this);return e.s=-e.s||null,e},g.plus=function(e,t){var r,l=this,i=l.s;if(e=new p(e,t),t=e.s,!i||!t)return new p(NaN);if(i!=t)return e.s=-t,l.minus(e);var f=l.e/A,u=e.e/A,n=l.c,o=e.c;if(!f||!u){if(!n||!o)return new p(i/0);if(!n[0]||!o[0])return o[0]?e:new p(n[0]?l:i*0)}if(f=$(f),u=$(u),n=n.slice(),i=f-u){for(i>0?(u=f,r=o):(i=-i,r=n),r.reverse();i--;r.push(0));r.reverse()}for(i=n.length,t=o.length,i-t<0&&(r=o,o=n,n=r,t=i),i=0;t;)i=(n[--t]=n[t]+o[t]+i)/X|0,n[t]=X===n[t]?0:n[t]%X;return i&&(n=[i].concat(n),++u),ce(e,n,u)},g.precision=g.sd=function(e,t){var r,l,i,f=this;if(e!=null&&e!==!!e)return U(e,1,T),t==null?t=R:U(t,0,8),C(new p(f),e,t);if(!(r=f.c))return null;if(i=r.length-1,l=i*A+1,i=r[i]){for(;i%10==0;i/=10,l--);for(i=r[0];i>=10;i/=10,l++);}return e&&f.e+1>l&&(l=f.e+1),l},g.shiftedBy=function(e){return U(e,-ge,ge),this.times("1e"+e)},g.squareRoot=g.sqrt=function(){var e,t,r,l,i,f=this,u=f.c,n=f.s,o=f.e,c=S+4,s=new p("0.5");if(n!==1||!u||!u[0])return new p(!n||n<0&&(!u||u[0])?NaN:u?f:1/0);if(n=Math.sqrt(+H(f)),n==0||n==1/0?(t=F(u),(t.length+o)%2==0&&(t+="0"),n=Math.sqrt(+t),o=$((o+1)/2)-(o<0||o%2),n==1/0?t="5e"+o:(t=n.toExponential(),t=t.slice(0,t.indexOf("e")+1)+o),r=new p(t)):r=new p(n+""),r.c[0]){for(o=r.e,n=o+c,n<3&&(n=0);;)if(i=r,r=s.times(i.plus(w(f,i,c,1))),F(i.c).slice(0,n)===(t=F(r.c)).slice(0,n))if(r.e0&&x>0){for(f=x%n||n,s=O.substr(0,f);f0&&(s+=c+O.slice(f)),m&&(s="-"+s)}l=h?s+(r.decimalSeparator||"")+((o=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):s}return(r.prefix||"")+l+(r.suffix||"")},g.toFraction=function(e){var t,r,l,i,f,u,n,o,c,s,h,m,O=this,x=O.c;if(e!=null&&(n=new p(e),!n.isInteger()&&(n.c||n.s!==1)||n.lt(N)))throw Error(P+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+H(n));if(!x)return new p(O);for(t=new p(N),c=r=new p(N),l=o=new p(N),m=F(x),f=t.e=m.length-O.e-1,t.c[0]=pe[(u=f%A)<0?A+u:u],e=!e||n.comparedTo(t)>0?f>0?t:c:n,u=V,V=1/0,n=new p(m),o.c[0]=0;s=w(n,t,0,1),i=r.plus(s.times(l)),i.comparedTo(e)!=1;)r=l,l=i,c=o.plus(s.times(i=c)),o=i,t=n.minus(s.times(i=t)),n=i;return i=w(e.minus(r),l,0,1),o=o.plus(i.times(c)),r=r.plus(i.times(l)),o.s=c.s=O.s,f=f*2,h=w(c,l,f,R).minus(O).abs().comparedTo(w(o,r,f,R).minus(O).abs())<1?[c,l]:[o,r],V=u,h},g.toNumber=function(){return+H(this)},g.toPrecision=function(e,t){return e!=null&&U(e,1,T),le(this,e,t,2)},g.toString=function(e){var t,r=this,l=r.s,i=r.e;return i===null?l?(t="Infinity",l<0&&(t="-"+t)):t="NaN":(e==null?t=i<=L||i>=v?ie(F(r.c),i):j(F(r.c),i,"0"):e===10&&se?(r=C(new p(r),S+i+1,R),t=j(F(r.c),r.e,"0")):(U(e,2,Q.length,"Base"),t=d(j(F(r.c),i,"0"),10,e,l,!0)),l<0&&r.c[0]&&(t="-"+t)),t},g.valueOf=g.toJSON=function(){return H(this)},g._isBigNumber=!0,g[Symbol.toStringTag]="BigNumber",g[Symbol.for("nodejs.util.inspect.custom")]=g.valueOf,a!=null&&p.set(a),p}function $(a){var w=a|0;return a>0||a===w?w:w-1}function F(a){for(var w,d,E=1,g=a.length,N=a[0]+"";Ev^d?1:-1;for(R=(L=g.length)<(v=N.length)?L:v,S=0;SN[S]^d?1:-1;return L==v?0:L>v^d?1:-1}function U(a,w,d,E){if(ad||a!==q(a))throw Error(P+(E||"Argument")+(typeof a=="number"?ad?" out of range: ":" not an integer: ":" not a primitive number: ")+String(a))}function ne(a){var w=a.c.length-1;return $(a.e/A)==w&&a.c[w]%2!=0}function ie(a,w){return(a.length>1?a.charAt(0)+"."+a.slice(1):a)+(w<0?"e":"e+")+w}function j(a,w,d){var E,g;if(w<0){for(g=d+".";++w;g+=d);a=g+a}else if(E=a.length,++w>E){for(g=d,w-=E;--w;g+=d);a+=g}else w