@gramlot/gramlot 0.3.30 → 0.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/charts/__init__.py +1 -1
- package/dist/components/charts/assets/collection.js +1 -1
- package/dist/components/charts/assets/index.js +1 -1
- package/dist/components/grid/__init__.py +2 -2
- package/dist/components/grid/assets/collection.js +36 -20
- package/dist/components/grid/assets/files/0a1df3a083d0c010560aa342e87959c8c1070e6fd54545741f083f22d0c8b551-fflate.txt +21 -0
- package/dist/components/grid/assets/files/8cf9b31947daf7adb4a7a00a037459e58241af050cd0a603bfcf1756e533f75e-write-excel-file.txt +21 -0
- package/dist/components/grid/assets/index.js +1 -1
- package/dist/components/grid/assets/modules/browser-LVJHKBBV.js +19 -0
- package/dist/components/grid/assets/modules/chunk-RMRBEYTI.js +1 -0
- package/dist/components/grid/commands.json +42 -1
- package/dist/components/grid/grammar.json +384 -2
- package/dist/components/vizabi/__init__.py +1 -1
- package/dist/components/vizabi/assets/collection.js +1 -1
- package/dist/components/vizabi/assets/index.js +1 -1
- package/dist/gramlot.js +376 -21
- package/dist/gramlot.min.js +46 -46
- package/dist/standard-collections.js +1 -1
- package/package.json +3 -2
- package/src/binding/grid-struct.js +4 -1
- package/src/binding/runtime.js +2 -1
- package/src/builder/gramlot-builder.js +96 -7
- package/src/builder/source.js +18 -0
- package/src/components/grid-footer.js +120 -0
- package/src/components/grid-formulas.js +403 -0
- package/src/components/grid-grammar.json +87 -2
- package/src/components/grid-selection.js +118 -0
- package/src/components/grid-structure.js +27 -4
- package/src/components/grid-styles.js +14 -1
- package/src/components/grid-tools.js +229 -0
- package/src/components/grid.js +174 -8
- package/src/components/licenses/fflate.txt +21 -0
- package/src/components/licenses/write-excel-file.txt +21 -0
- package/src/editing-session.d.ts +2 -0
- package/src/editing-session.js +35 -3
- package/src/stores/bag-collection-store.js +14 -5
- package/src/stores/bag-collection-view.js +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arjun Barrett
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 gitlab.com/catamphetamine
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {default} from "./collection.js";
|
|
2
2
|
export * from "./collection.js";
|
|
3
|
-
export const buildId = "sha256:
|
|
3
|
+
export const buildId = "sha256:84518a8f1b1bc21e61557ee3e4885e90c9d7783a23867feebe8e08a51839ead0";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import"./chunk-RMRBEYTI.js";var wt={},En=(function(e,r,t,n,o){var i=new Worker(wt[r]||(wt[r]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return i.onmessage=function(l){var a=l.data,s=a.$e$;if(s){var f=new Error(s[0]);f.code=s[1],f.stack=s[2],o(f,null)}else o(null,a)},i.postMessage(t,n),i}),L=Uint8Array,V=Uint16Array,nr=Int32Array,or=new L([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ir=new L([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),vr=new L([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),It=function(e,r){for(var t=new V(31),n=0;n<31;++n)t[n]=r+=1<<e[n-1];for(var o=new nr(t[30]),n=1;n<30;++n)for(var i=t[n];i<t[n+1];++i)o[i]=i-t[n]<<5|n;return{b:t,r:o}},Tt=It(or,2),On=Tt.b,_e=Tt.r;On[28]=258,_e[258]=28;var Et=It(ir,0),ki=Et.b,gr=Et.r,er=new V(32768);for(I=0;I<32768;++I)Y=(I&43690)>>1|(I&21845)<<1,Y=(Y&52428)>>2|(Y&13107)<<2,Y=(Y&61680)>>4|(Y&3855)<<4,er[I]=((Y&65280)>>8|(Y&255)<<8)>>1;var Y,I,ge=(function(e,r,t){for(var n=e.length,o=0,i=new V(r);o<n;++o)e[o]&&++i[e[o]-1];var l=new V(r);for(o=1;o<r;++o)l[o]=l[o-1]+i[o-1]<<1;var a;if(t){a=new V(1<<r);var s=15-r;for(o=0;o<n;++o)if(e[o])for(var f=o<<4|e[o],u=r-e[o],m=l[e[o]-1]++<<u,c=m|(1<<u)-1;m<=c;++m)a[er[m]>>s]=f}else for(a=new V(n),o=0;o<n;++o)e[o]&&(a[o]=er[l[e[o]-1]++]>>15-e[o]);return a}),ee=new L(288);for(I=0;I<144;++I)ee[I]=8;var I;for(I=144;I<256;++I)ee[I]=9;var I;for(I=256;I<280;++I)ee[I]=7;var I;for(I=280;I<288;++I)ee[I]=8;var I,Be=new L(32);for(I=0;I<32;++I)Be[I]=5;var I,Ot=ge(ee,9,0);var Dt=ge(Be,5,0);var wr=function(e){return(e+7)/8|0},Sr=function(e,r,t){return(r==null||r<0)&&(r=0),(t==null||t>e.length)&&(t=e.length),new L(e.subarray(r,t))};var Dn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ye=function(e,r,t){var n=new Error(r||Dn[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ye),!t)throw n;return n};var $=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8},de=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8,e[n+2]|=t>>16},Qe=function(e,r){for(var t=[],n=0;n<e.length;++n)e[n]&&t.push({s:n,f:e[n]});var o=t.length,i=t.slice();if(!o)return{t:Ar,l:0};if(o==1){var l=new L(t[0].s+1);return l[t[0].s]=1,{t:l,l:1}}t.sort(function(b,A){return b.f-A.f}),t.push({s:-1,f:25001});var a=t[0],s=t[1],f=0,u=1,m=2;for(t[0]={s:-1,f:a.f+s.f,l:a,r:s};u!=o-1;)a=t[t[f].f<t[m].f?f++:m++],s=t[f!=u&&t[f].f<t[m].f?f++:m++],t[u++]={s:-1,f:a.f+s.f,l:a,r:s};for(var c=i[0].s,n=1;n<o;++n)i[n].s>c&&(c=i[n].s);var p=new V(c+1),x=rr(t[u-1],p,0);if(x>r){var n=0,d=0,h=x-r,C=1<<h;for(i.sort(function(A,w){return p[w.s]-p[A.s]||A.f-w.f});n<o;++n){var F=i[n].s;if(p[F]>r)d+=C-(1<<x-p[F]),p[F]=r;else break}for(d>>=h;d>0;){var S=i[n].s;p[S]<r?d-=1<<r-p[S]++-1:++n}for(;n>=0&&d;--n){var v=i[n].s;p[v]==r&&(--p[v],++d)}x=r}return{t:new L(p),l:x}},rr=function(e,r,t){return e.s==-1?Math.max(rr(e.l,r,t+1),rr(e.r,r,t+1)):r[e.s]=t},yr=function(e){for(var r=e.length;r&&!e[--r];);for(var t=new V(++r),n=0,o=e[0],i=1,l=function(s){t[n++]=s},a=1;a<=r;++a)if(e[a]==o&&a!=r)++i;else{if(!o&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(o),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(o);i=1,o=e[a]}return{c:t.subarray(0,n),n:r}},ve=function(e,r){for(var t=0,n=0;n<r.length;++n)t+=e[n]*r[n];return t},Cr=function(e,r,t){var n=t.length,o=wr(r+2);e[o]=n&255,e[o+1]=n>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var i=0;i<n;++i)e[o+i+4]=t[i];return(o+4+n)*8},xr=function(e,r,t,n,o,i,l,a,s,f,u){$(r,u++,t),++o[256];for(var m=Qe(o,15),c=m.t,p=m.l,x=Qe(i,15),d=x.t,h=x.l,C=yr(c),F=C.c,S=C.n,v=yr(d),b=v.c,A=v.n,w=new V(19),y=0;y<F.length;++y)++w[F[y]&31];for(var y=0;y<b.length;++y)++w[b[y]&31];for(var g=Qe(w,7),T=g.t,B=g.l,P=19;P>4&&!T[vr[P-1]];--P);var N=f+5<<3,D=ve(o,ee)+ve(i,Be)+l,k=ve(o,c)+ve(i,d)+l+14+3*P+ve(w,T)+2*w[16]+3*w[17]+7*w[18];if(s>=0&&N<=D&&N<=k)return Cr(r,u,e.subarray(s,s+f));var R,E,X,Z;if($(r,u,1+(k<D)),u+=2,k<D){R=ge(c,p,0),E=c,X=ge(d,h,0),Z=d;var Ce=ge(T,B,0);$(r,u,S-257),$(r,u+5,A-1),$(r,u+10,P-4),u+=14;for(var y=0;y<P;++y)$(r,u+3*y,T[vr[y]]);u+=3*P;for(var G=[F,b],ie=0;ie<2;++ie)for(var _=G[ie],y=0;y<_.length;++y){var W=_[y]&31;$(r,u,Ce[W]),u+=T[W],W>15&&($(r,u,_[y]>>5&127),u+=_[y]>>12)}}else R=Ot,E=ee,X=Dt,Z=Be;for(var y=0;y<a;++y){var M=n[y];if(M>255){var W=M>>18&31;de(r,u,R[W+257]),u+=E[W+257],W>7&&($(r,u,M>>23&31),u+=or[W]);var H=M&31;de(r,u,X[H]),u+=Z[H],H>3&&(de(r,u,M>>5&8191),u+=ir[H])}else de(r,u,R[M]),u+=E[M]}return de(r,u,R[256]),u+E[256]},Bt=new nr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ar=new L(0),kt=function(e,r,t,n,o,i){var l=i.z||e.length,a=new L(n+l+5*(1+Math.ceil(l/7e3))+o),s=a.subarray(n,a.length-o),f=i.l,u=(i.r||0)&7;if(r){u&&(s[0]=i.r>>3);for(var m=Bt[r-1],c=m>>13,p=m&8191,x=(1<<t)-1,d=i.p||new V(32768),h=i.h||new V(x+1),C=Math.ceil(t/3),F=2*C,S=function(le){return(e[le]^e[le+1]<<C^e[le+2]<<F)&x},v=new nr(25e3),b=new V(288),A=new V(32),w=0,y=0,g=i.i||0,T=0,B=i.w||0,P=0;g+2<l;++g){var N=S(g),D=g&32767,k=h[N];if(d[D]=k,h[N]=D,B<=g){var R=l-g;if((w>7e3||T>24576)&&(R>423||!f)){u=xr(e,s,0,v,b,A,y,T,P,g-P,u),T=w=y=0,P=g;for(var E=0;E<286;++E)b[E]=0;for(var E=0;E<30;++E)A[E]=0}var X=2,Z=0,Ce=p,G=D-k&32767;if(R>2&&N==S(g-G))for(var ie=Math.min(c,R)-1,_=Math.min(32767,g),W=Math.min(258,R);G<=_&&--Ce&&D!=k;){if(e[g+X]==e[g+X-G]){for(var M=0;M<W&&e[g+M]==e[g+M-G];++M);if(M>X){if(X=M,Z=G,M>ie)break;for(var H=Math.min(G,M-2),Ae=0,E=0;E<H;++E){var ae=g-G+E&32767,dr=d[ae],Fe=ae-dr&32767;Fe>Ae&&(Ae=Fe,k=ae)}}}D=k,k=d[D],G+=D-k&32767}if(Z){v[T++]=268435456|_e[X]<<18|gr[Z];var Ie=_e[X]&31,Te=gr[Z]&31;y+=or[Ie]+ir[Te],++b[257+Ie],++A[Te],B=g+X,++w}else v[T++]=e[g],++b[e[g]]}}for(g=Math.max(g,B);g<l;++g)v[T++]=e[g],++b[e[g]];u=xr(e,s,f,v,b,A,y,T,P,g-P,u),f||(i.r=u&7|s[u/8|0]<<3,u-=7,i.h=h,i.p=d,i.i=g,i.w=B)}else{for(var g=i.w||0;g<l+f;g+=65535){var me=g+65535;me>=l&&(s[u/8|0]=f,me=l),u=Cr(s,u+1,e.subarray(g,me))}i.i=l}return Sr(a,0,n+wr(u)+o)},Bn=(function(){for(var e=new Int32Array(256),r=0;r<256;++r){for(var t=r,n=9;--n;)t=(t&1&&-306674912)^t>>>1;e[r]=t}return e})(),kn=function(){var e=-1;return{p:function(r){for(var t=e,n=0;n<r.length;++n)t=Bn[t&255^r[n]]^t>>>8;e=t},d:function(){return~e}}};var Pt=function(e,r,t,n,o){if(!o&&(o={l:1},r.dictionary)){var i=r.dictionary.subarray(-32768),l=new L(i.length+e.length);l.set(i),l.set(e,i.length),e=l,o.w=i.length}return kt(e,r.level==null?6:r.level,r.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+r.mem,t,n,o)},Fr=function(e,r){var t={};for(var n in e)t[n]=e[n];for(var n in r)t[n]=r[n];return t},St=function(e,r,t){for(var n=e(),o=e.toString(),i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),l=0;l<n.length;++l){var a=n[l],s=i[l];if(typeof a=="function"){r+=";"+s+"=";var f=a.toString();if(a.prototype)if(f.indexOf("[native code]")!=-1){var u=f.indexOf(" ",8)+1;r+=f.slice(u,f.indexOf("(",u))}else{r+=f;for(var m in a.prototype)r+=";"+s+".prototype."+m+"="+a.prototype[m].toString()}else r+=f}else t[s]=a}return r},Je=[],Pn=function(e){var r=[];for(var t in e)e[t].buffer&&r.push((e[t]=new e[t].constructor(e[t])).buffer);return r},zn=function(e,r,t,n){if(!Je[t]){for(var o="",i={},l=e.length-1,a=0;a<l;++a)o=St(e[a],o,i);Je[t]={c:St(e[l],o,i),e:i}}var s=Fr({},Je[t].e);return En(Je[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,s,Pn(s),n)};var jn=function(){return[L,V,nr,or,ir,vr,_e,gr,Ot,ee,Dt,Be,er,Bt,Ar,ge,$,de,Qe,rr,yr,ve,Cr,xr,wr,Sr,kt,Pt,Ir,zt]};var zt=function(e){return postMessage(e,[e.buffer])};var Rn=function(e,r,t,n,o,i){var l=zn(t,n,o,function(a,s){l.terminate(),i(a,s)});return l.postMessage([e,r],r.consume?[e.buffer]:[]),function(){l.terminate()}};var U=function(e,r,t){for(;t;++r)e[r]=t,t>>>=8};function Mn(e,r,t){return t||(t=r,r={}),typeof t!="function"&&ye(7),Rn(e,r,[jn],function(n){return zt(Ir(n.data[0],n.data[1]))},0,t)}function Ir(e,r){return Pt(e,r||{},0,0)}var jt=function(e,r,t,n){for(var o in e){var i=e[o],l=r+o,a=n;Array.isArray(i)&&(a=Fr(n,i[1]),i=i[0]),ArrayBuffer.isView(i)?t[l]=[i,a]:(t[l+="/"]=[new L(0),a],jt(i,l,t,n))}},Ct=typeof TextEncoder<"u"&&new TextEncoder,Un=typeof TextDecoder<"u"&&new TextDecoder,Ln=0;try{Un.decode(Ar,{stream:!0}),Ln=1}catch{}function tr(e,r){if(r){for(var t=new L(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}if(Ct)return Ct.encode(e);for(var o=e.length,i=new L(e.length+(e.length>>1)),l=0,a=function(u){i[l++]=u},n=0;n<o;++n){if(l+5>i.length){var s=new L(l+8+(o-n<<1));s.set(i),i=s}var f=e.charCodeAt(n);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|f&63)):f>55295&&f<57344?(f=65536+(f&1047552)|e.charCodeAt(++n)&1023,a(240|f>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|f&63)):(a(224|f>>12),a(128|f>>6&63),a(128|f&63))}return Sr(i,0,l)}var br=function(e){var r=0;if(e)for(var t in e){var n=e[t].length;n>65535&&ye(9),r+=n+4}return r},At=function(e,r,t,n,o,i,l,a){var s=n.length,f=t.extra,u=a&&a.length,m=br(f);U(e,r,l!=null?33639248:67324752),r+=4,l!=null&&(e[r++]=20,e[r++]=t.os),e[r]=20,r+=2,e[r++]=t.flag<<1|(i<0&&8),e[r++]=o&&8,e[r++]=t.compression&255,e[r++]=t.compression>>8;var c=new Date(t.mtime==null?Date.now():t.mtime),p=c.getFullYear()-1980;if((p<0||p>119)&&ye(10),U(e,r,p<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),r+=4,i!=-1&&(U(e,r,t.crc),U(e,r+4,i<0?-i-2:i),U(e,r+8,t.size)),U(e,r+12,s),U(e,r+14,m),r+=16,l!=null&&(U(e,r,u),U(e,r+6,t.attrs),U(e,r+10,l),r+=14),e.set(n,r),r+=s,m)for(var x in f){var d=f[x],h=d.length;U(e,r,+x),U(e,r+2,h),e.set(d,r+4),r+=4+h}return u&&(e.set(a,r),r+=u),r},Xn=function(e,r,t,n,o){U(e,r,101010256),U(e,r+8,t),U(e,r+10,t),U(e,r+12,n),U(e,r+16,o)};function Rt(e,r,t){t||(t=r,r={}),typeof t!="function"&&ye(7);var n={};jt(e,"",n,r);var o=Object.keys(n),i=o.length,l=0,a=0,s=i,f=new Array(i),u=[],m=function(){for(var h=0;h<u.length;++h)u[h]()},c=function(h,C){Ft(function(){t(h,C)})};Ft(function(){c=t});var p=function(){var h=new L(a+22),C=l,F=a-l;a=0;for(var S=0;S<s;++S){var v=f[S];try{var b=v.c.length;At(h,a,v,v.f,v.u,b);var A=30+v.f.length+br(v.extra),w=a+A;h.set(v.c,w),At(h,l,v,v.f,v.u,b,a,v.m),l+=16+A+(v.m?v.m.length:0),a=w+b}catch(y){return c(y,null)}}Xn(h,l,f.length,F,C),c(null,h)};i||p();for(var x=function(h){var C=o[h],F=n[C],S=F[0],v=F[1],b=kn(),A=S.length;b.p(S);var w=tr(C),y=w.length,g=v.comment,T=g&&tr(g),B=T&&T.length,P=br(v.extra),N=v.level==0?0:8,D=function(k,R){if(k)m(),c(k,null);else{var E=R.length;f[h]=Fr(v,{size:A,crc:b.d(),c:R,f:w,m:T,u:y!=C.length||T&&g.length!=B,compression:N}),l+=30+y+P+E,a+=76+2*(y+P)+(B||0)+E,--i||p()}};if(y>65535&&D(ye(11,0,1),null),!N)D(null,S);else if(A<16e4)try{D(null,Ir(S,v))}catch(k){D(k,null)}else u.push(Mn(S,v,D))},d=0;d<s;++d)x(d);return m}var Ft=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function Tr(e){return Nn(e).then(function(r){return r.buffer})}function Nn(e){return new Promise(function(r,t){Rt(e,function(n,o){n?t(n):r(o)})})}function Er(e,r){var t={};return Promise.all(Object.keys(e).map(function(n){if(e[n]instanceof Uint8Array)t[n]=e[n];else if(typeof e[n]=="string")t[n]=Vn(e[n]);else return r(e[n]).then(function(o){t[n]=o})})).then(function(){return t})}function Vn(e){return tr(e)}function Gn(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Wn(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wn(e,r){if(e){if(typeof e=="string")return Mt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Mt(e,r):void 0}}function Mt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function z(e,r,t,n){for(var o="",i=Gn(r),l;!(l=i()).done;){var a=l.value,s=a.files&&a.files.transform&&a.files.transform[e];if(s&&s.insert){var f=s.insert(t,n);f&&(o+=f)}}return o}function Hn(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Kn(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(e,r){if(e){if(typeof e=="string")return Ut(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ut(e,r):void 0}}function Ut(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function j(e,r,t,n,o){for(var i=Hn(t),l;!(l=i()).done;){var a=l.value,s=a.files&&a.files.transform&&a.files.transform[r];s&&s.transform&&(e=s.transform(e,n,o))}return e}function Pe(e,r){var t=r.isAttributeValue;return e=ke(e,"&","&"),e=ke(e,">",">"),e=ke(e,"<","<"),t&&(e=ke(e,"'","'"),e=ke(e,'"',""")),e}function ke(e,r,t){return e.replaceAll?e.replaceAll(r,t):e.replace(new RegExp(r,"g"),t)}var qn=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,Zn=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function se(e){return e=e.replace(qn,""),e=e.replace(Zn,""),e}function O(e){if(typeof e!="string")throw new TypeError("Argument must be a string");return e=se(e),Pe(e,{isAttributeValue:!0})}function Or(e){if(typeof e!="string")throw new TypeError("Argument must be a string");return e=se(e),e.replace(/[^a-zA-Z_0-9-.:]/g,"").replace(/^[^a-zA-Z_]+/,"")}function Dr(e){return Object.keys(e).map(function(r){return"".concat(Or(r),'="').concat(O(String(e[r])),'"')}).reduce(function(r,t){return r+" "+t},"")}function re(e,r){return"<"+e+(r?Dr(r):"")+">"}function xe(e){return"</"+e+">"}function te(e,r){return re(e,r).slice(0,-1)+"/>"}function $n(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Yn(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(e,r){if(e){if(typeof e=="string")return Lt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Lt(e,r):void 0}}function Lt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function ze(e,r,t,n,o,i,l,a){for(var s=$n(a),f;!(f=s()).done;){var u=f.value,m=u.files&&u.files.transform&&u.files.transform[e];m&&m.transformElementAttributes&&(t=m.transformElementAttributes(r,t||Jn,o,l,i))}return n?re(r,t)+n+xe(r):te(r,t)}var Jn={};function Br(e){var r=e.sheetIdsAndNames,t=e.features,n=e.sheetsOptions,o=function(a,s,f,u){return ze("xl/workbook.xml",a,s,f,u,Qn,n,t)},i='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">'+o("workbookPr")+o("bookViews",null,o("workbookView",null,null,0))+o("sheets",null,r.map(function(l,a){var s=l.sheetId,f=l.sheetName;return o("sheet",{"r:id":"rId".concat(s),sheetId:s,name:f},null,a)}).join(""))+o("definedNames")+o("calcPr")+z("xl/workbook.xml",t,n)+"</workbook>";return i=j(i,"xl/workbook.xml",t,n),i}var Qn={};function kr(e){var r=e.sheetIds,t=e.features,n=e.sheetsOptions,o='<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+r.map(function(i){return'<Relationship Id="rId'.concat(i,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(i,'.xml"/>')}).join("")+'<Relationship Id="rId'.concat(r.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(r.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+z("xl/_rels/workbook.xml.rels",t,n)+"</Relationships>";return o=j(o,"xl/_rels/workbook.xml.rels",t,n),o}function Pr(e){var r=e.features,t=e.sheetsOptions,n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId-workbook-1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>'+z("_rels/.rels",r,t)+"</Relationships>";return n=j(n,"_rels/.rels",r,t),n}function zr(e){var r=e.sheetIds,t=e.features,n=e.sheetsOptions,o='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/>'+r.map(function(i){return'<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet'.concat(i,'.xml"/>')}).join("")+r.map(function(i){return jr(i)}).join("")+z("[Content_Types].xml",t,n)+"</Types>";return o=j(o,"[Content_Types].xml",t,n),o}function jr(e){return'<Override ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" PartName="/xl/drawings/drawing'.concat(e,'.xml"/>')}function Rr(e){var r=e.sheetIndex,t=e.sheetId,n=e.sheetOptions,o=e.features,i=Mr+z("xl/drawings/drawing{id}.xml",o,n,{sheetIndex:r,sheetId:t})+Ur;return i=j(i,"xl/drawings/drawing{id}.xml",o,n,{sheetIndex:r,sheetId:t}),i}var Mr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',Ur="</xdr:wsDr>";function Lr(e){var r=e.sheetIndex,t=e.sheetId,n=e.sheetOptions,o=e.features,i='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+z("xl/drawings/_rels/drawing{id}.xml.rels",o,n,{sheetIndex:r,sheetId:t})+"</Relationships>";return i=j(i,"xl/drawings/_rels/drawing{id}.xml.rels",o,n,{sheetIndex:r,sheetId:t}),i}function Xr(e,r,t){if(!_n(r))return"";var n=r.showGridLines,o=r.rightToLeft,i=r.zoomScale,l={tabSelected:t===0?1:0,workbookViewId:0};n===!1&&(l.showGridLines=!1),o&&(l.rightToLeft=1),typeof i=="number"&&(l.zoomScale=Math.round(i*100));var a=e("sheetView",l,null,0);return e("sheetViews",null,a)}function _n(e){var r=e.showGridLines,t=e.rightToLeft,n=e.zoomScale;return r===!1||t||typeof n=="number"}function Nr(e,r,t){if(!r)return"";var n=r.width;if(!n)return"";var o=t+1,i={min:o,max:o,width:n,customWidth:1};return e("col",i,null,t)}function Vr(e,r){if(r){var t=r.map(function(n,o){return Nr(e,n,o)}).join("");if(t)return e("cols",null,t)}return""}function J(e){if(typeof e!="string")throw new TypeError("Argument must be a string");return e=se(e),Pe(e,{isAttributeValue:!1})}function K(e,r){return"".concat(Nt(r)).concat(e+1)}var Xt=26;function Nt(e){if(typeof e!="number")return"";var r=Math.floor(e/Xt),t=String.fromCharCode(97+e%Xt).toUpperCase();return r===0?t:Nt(r-1)+t}var eo=25569,ro=3600*1e3,to=24*ro;function Gr(e){return e.getTime()/to+eo}function no(e,r){return lo(e)||ao(e,r)||io(e,r)||oo()}function oo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function io(e,r){if(e){if(typeof e=="string")return Vt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vt(e,r):void 0}}function Vt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function ao(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,o,i,l,a=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(a.push(n.value),a.length!==r);s=!0);}catch(u){f=!0,o=u}finally{try{if(!s&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(f)throw o}}return a}}function lo(e){if(Array.isArray(e))return e}function Wr(e,r,t,n){var o=r.value,i=r.type,l=r.cellStyleId,a=r.findOrCreateSharedString;if(o===null&&l===void 0)return"";var s={r:K(n,t)};if(l!==void 0&&(s.s=String(l)),o===null)return e("c",s,null,t);if(i===Date&&l===void 0)throw new Error("No `format` was specified for a `Date` value in a cell in row ".concat(n+1," column ").concat(t+1,". Either specify a `format` for this cell or specify a default global one by passing `dateFormat` option to `writeXlsxFile()` function"));var f=fo(i,o,a),u=so(i);u&&(s.t=u);var m=co(i),c=no(m,2),p=c[0],x=c[1],d=p+f+x;return e("c",s,d,t)}function so(e){switch(e){case String:return"s";case Number:return;case Date:return;case Boolean:return"b";case"Formula":return;default:throw new Error("Unknown type: ".concat(e&&e.name||e))}}function fo(e,r,t){switch(e){case String:if(typeof r!="string")throw new Error("Invalid cell value: ".concat(r,". Expected a string"));return t(r);case Number:if(typeof r!="number")throw new Error("Invalid cell value: ".concat(r,". Expected a number"));return String(r);case Date:if(!(r instanceof Date))throw new Error("Invalid cell value: ".concat(r,". Expected a Date"));return String(Gr(r));case Boolean:if(typeof r!="boolean")throw new Error("Invalid cell value: ".concat(r,". Expected a boolean"));return r?"1":"0";case"Formula":if(typeof r!="string")throw new Error("Invalid cell value: ".concat(r,". Expected a string"));return J(r);default:throw new Error("Unknown type: ".concat(e&&e.name||e))}}var uo=/</g;function co(e){var r=ho(e),t=r.replace(uo,"</");return[r,t]}function ho(e){return e==="Formula"?"<f>":"<v>"}function be(e){var r=e.align,t=e.alignVertical,n=e.textRotation,o=e.indent,i=e.wrap;return!!(r||t||typeof n=="number"||o||i)}function fe(e){var r=e.borderColor,t=e.borderStyle,n=e.leftBorderColor,o=e.leftBorderStyle,i=e.rightBorderColor,l=e.rightBorderStyle,a=e.topBorderColor,s=e.topBorderStyle,f=e.bottomBorderColor,u=e.bottomBorderStyle;return!!(r||t||n||o||i||l||a||s||f||u)}function Q(e){var r=e.backgroundColor,t=e.fillPatternStyle,n=e.fillPatternColor;return!!(r||t&&n)}function ue(e){var r=e.fontFamily,t=e.fontSize,n=e.fontWeight,o=e.fontStyle,i=e.textDecoration,l=e.textColor;return!!(r||typeof t=="number"||n||o||i&&Object.keys(i).length>0||l)}function je(e,r){var t=e.align,n=e.alignVertical,o=e.textRotation,i=e.indent,l=e.wrap,a=e.fontFamily,s=e.fontSize,f=e.fontWeight,u=e.fontStyle,m=e.textDecoration,c=e.textColor,p=e.backgroundColor,x=e.fillPatternStyle,d=e.fillPatternColor,h=e.borderColor,C=e.borderStyle,F=e.leftBorderColor,S=e.leftBorderStyle,v=e.rightBorderColor,b=e.rightBorderStyle,A=e.topBorderColor,w=e.topBorderStyle,y=e.bottomBorderColor,g=e.bottomBorderStyle;if(be({align:t,alignVertical:n,textRotation:o,indent:i,wrap:l})||ue({fontFamily:a,fontSize:s,fontWeight:f,fontStyle:u,textDecoration:m,textColor:c})||Q({backgroundColor:p,fillPatternStyle:x,fillPatternColor:d})||fe({borderColor:h,borderStyle:C,leftBorderColor:F,leftBorderStyle:S,rightBorderColor:v,rightBorderStyle:b,topBorderColor:A,topBorderStyle:w,bottomBorderColor:y,bottomBorderStyle:g}))return mo({align:t,alignVertical:n,textRotation:o,indent:i,wrap:l,fontFamily:a,fontSize:s,fontWeight:f,fontStyle:u,textDecoration:m,textColor:c,backgroundColor:p,fillPatternStyle:x,fillPatternColor:d,borderColor:h,borderStyle:C,leftBorderColor:F,leftBorderStyle:S,rightBorderColor:v,rightBorderStyle:b,topBorderColor:A,topBorderStyle:w,bottomBorderColor:y,bottomBorderStyle:g})}function mo(e){var r={};for(var t in e)e[t]!==void 0&&(r[t]=e[t]);return r}var po={}.constructor;function ce(e){return e!=null&&e.constructor===po}function ar(e){return ce(e)}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},we(e)}function Gt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function vo(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Gt(Object(t),!0).forEach(function(n){go(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gt(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function go(e,r,t){return(r=yo(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function yo(e){var r=xo(e,"string");return we(r)=="symbol"?r:r+""}function xo(e,r){if(we(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bo(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=wo(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wo(e,r){if(e){if(typeof e=="string")return Wt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Wt(e,r):void 0}}function Wt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function Hr(e,r,t,n){for(var o,i=bo(r),l;!(l=i()).done;){var a=l.value;ar(a)&&a.height&&(o===void 0||o<a.height)&&(o=a.height)}var s=t,f=r.map(function(m,c){return So(e,m,c,s,n)}).join(""),u={r:t+1};return o&&(u.ht=o,u.customHeight=1),e("row",u,f,t)}function So(e,r,t,n,o){var i=o.findOrCreateCellStyle,l=o.findOrCreateSharedString,a=o.hasDefaultFont,s=o.dateFormat,f=o.features;if(r==null)return"";var u=ar(r)?r:{value:r},m=je(u,f),c=u.type,p=u.value,x=u.format;if(Co(p)?p=null:c===void 0&&(c=Ao(p),c===void 0&&(c=String,p=String(p))),x){if(c!==Date&&c!==Number&&c!==String&&c!=="Formula")throw new Error('`format` "'.concat(x,'" was specified on a cell of type `').concat(c,'`. `format` could only be specified on a cell of type `Date`, `Number`, `String` or `"Formula"`.'));if(c===String&&x!=="@")throw new Error('`format` "'.concat(x,'" was specified on a cell of type `String`. The only supported `format` for a cell of type `String` is "@".'))}else c===Date&&(x=s);var d=!!x,h=!!m,C;return(a||d||h)&&(C=i(vo({format:x},m))),Wr(e,{value:p,type:c,cellStyleId:C,findOrCreateSharedString:l},t,n)}function Co(e){return e==null||e===""}function Ao(e){switch(we(e)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(e instanceof Date)return Date}}function Kr(e,r,t){var n=r.map(function(o,i){return Hr(e,o,i,t)}).join("");return e("sheetData",null,n)}function qr(e,r){for(var t=[],n=function(){e=e.slice();for(var c=0;c<e.length;)e[c]=e[c].slice(),c++;return n=function(){return e},e},o=0;o<e.length;){for(var i=e[o],l=0;l<i.length;){var a=i[l];if(a){var s=a.rowSpan,f=s===void 0?1:s,u=typeof a.span=="number"?a.span:a.columnSpan;typeof u!="number"&&(u=1),(u>1||f>1)&&(Fo(e,o,l,u,f,n,r),t.push([[o,l],[o+(f?f-1:0),l+(u?u-1:0)]]))}l++}o++}return{sheetData:e,mergedCells:t}}function Fo(e,r,t,n,o,i,l){var a=je(e[r][t],l);a&&(e=i());for(var s=r;s<=r+(o-1);){for(var f=t;f<=t+(n-1);){var u=e[s][f];if(s>r||f>t){if(u!=null)throw new Error("[write-excel-file] When using `columnSpan` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(r+1," and column ").concat(t+1," is configured with `columnSpan` ").concat(n," and `rowSpan` ").concat(o,". Cell at row ").concat(s+1," and column ").concat(f+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[s][f]=a)}f++}s++}}function Io(e,r){return Do(e)||Oo(e,r)||Eo(e,r)||To()}function To(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(e,r){if(e){if(typeof e=="string")return Ht(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ht(e,r):void 0}}function Ht(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function Oo(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,o,i,l,a=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(a.push(n.value),a.length!==r);s=!0);}catch(u){f=!0,o=u}finally{try{if(!s&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(f)throw o}}return a}}function Do(e){if(Array.isArray(e))return e}function Zr(e,r){if(r.length===0)return"";var t=r.map(function(n,o){var i=Io(n,2),l=i[0],a=i[1],s=K(l[0],l[1])+":"+K(a[0],a[1]);return e("mergeCell",{ref:s},null,o)}).join("");return e("mergeCells",{count:r.length},t)}function $r(e,r){var t=r.orientation;if(t){var n=.7,o=.7,i=.75,l=.75,a=.3,s=.3;return e("pageMargins",{left:n,right:o,top:i,bottom:l,header:a,footer:s})}return""}function Yr(e,r){var t=r.orientation;if(t){var n=9;return e("pageSetup",{paperSize:n,orientation:O(t)})}return""}function Re(e){return e("drawing",{"r:id":"rId-drawing-1"})}function Jr(e,r){var t=e.sheetData,n=e.sheetOptions,o=e.sheetIndex,i=e.sheetId,l=e.hasDefaultFont,a=e.findOrCreateCellStyle,s=e.findOrCreateSharedString,f=n.columns,u=n.dateFormat,m=n.orientation,c=n.showGridLines,p=n.rightToLeft,x=n.zoomScale,d=qr(t,{features:r}),h=d.sheetData,C=d.mergedCells,F={sheetIndex:o,sheetId:i},S=function(A,w,y,g){return ze("xl/worksheets/sheet{id}.xml",A,w,y,g,F,n,r)},v='<?xml version="1.0" ?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">'+Xr(S,{showGridLines:c,rightToLeft:p,zoomScale:x},o)+Vr(S,f)+Kr(S,h,{findOrCreateCellStyle:a,findOrCreateSharedString:s,hasDefaultFont:l,dateFormat:u,features:r})+Zr(S,C)+$r(S,{orientation:m})+Yr(S,{orientation:m})+Re(S)+z("xl/worksheets/sheet{id}.xml",r,n,{sheetIndex:o,sheetId:i})+"</worksheet>";return v=j(v,"xl/worksheets/sheet{id}.xml",r,n,{sheetIndex:o,sheetId:i}),v}function Qr(e){var r=e.sheetIndex,t=e.sheetId,n=e.sheetOptions,o=e.features,i='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+_r(t)+z("xl/worksheets/_rels/sheet{id}.xml.rels",o,n,{sheetIndex:r,sheetId:t})+"</Relationships>";return i=j(i,"xl/worksheets/_rels/sheet{id}.xml.rels",o,n,{sheetIndex:r,sheetId:t}),i}function _r(e){return'<Relationship Id="rId-drawing-1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'.concat(e,'.xml"/>')}function Bo(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=ko(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ko(e,r){if(e){if(typeof e=="string")return Kt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Kt(e,r):void 0}}function Kt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function et(e){var r='<?xml version="1.0"?>';r+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var t=Bo(e),n;!(n=t()).done;){var o=n.value,i=o.trim().length===o.length?"":' xml:space="preserve"';r+="<si><t".concat(i,">"),r+=J(o),r+="</t></si>"}return r+="</sst>",r}function ne(e){if(e[0]!=="#")throw new Error('Color "'.concat(e,'" must start with a "#"'));return"FF".concat(e.slice(1).toUpperCase())}function Me(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.conditionalFormatting,n=e.backgroundColor,o=e.fillPatternStyle,i=e.fillPatternColor,l=!o||o==="solid";if(!Q(e))return'<fill><patternFill patternType="none"/></fill>';var a="<fill>";return a+='<patternFill patternType="'.concat(l?"solid":o,'">'),a+='<fgColor rgb="'.concat(O(ne(l?n:i)),'"/>'),a+="<bgColor ".concat(l&&!t?'indexed="64"':'rgb="'+O(ne(n))+'"',"/>"),a+="</patternFill>",a+="</fill>",a}function Ue(e){var r=e.borderColor,t=e.borderStyle,n=e.leftBorderColor,o=e.leftBorderStyle,i=e.rightBorderColor,l=e.rightBorderStyle,a=e.topBorderColor,s=e.topBorderStyle,f=e.bottomBorderColor,u=e.bottomBorderStyle,m={style:o||t,color:n||r},c={style:l||t,color:i||r},p={style:s||t,color:a||r},x={style:u||t,color:f||r},d="<border>";return d+=lr("left",m),d+=lr("right",c),d+=lr("top",p),d+=lr("bottom",x),d+="<diagonal/>",d+="</border>",d}function lr(e,r){var t=r.style,n=r.color;n&&!t&&(t="thin");var o=!!n;return"<".concat(e)+(t?' style="'.concat(O(t),'"'):"")+(o?">":"/>")+(n?'<color rgb="'.concat(O(ne(n)),'"/>'):"")+(o?"</".concat(e,">"):"")}function Le(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.isDefaultGenericFont,n=e.fontFamily,o=e.fontSize,i=e.fontWeight,l=e.fontStyle,a=e.textDecoration,s=e.textColor,f="<font>";return n&&(f+='<name val="'.concat(O(n),'"/>')),typeof o=="number"&&(f+='<sz val="'.concat(o,'"/>')),f+='<family val="2"/>',n||typeof o=="number"||(f+='<scheme val="minor"/>'),i==="bold"&&(f+="<b/>"),l==="italic"&&(f+="<i/>"),a&&(a.strikethrough&&(f+="<strike/>"),a.underline?f+="<u/>":a.doubleUnderline&&(f+='<u val="double"/>')),s?f+='<color rgb="'.concat(O(ne(s)),'"/>'):f+='<color theme="1"/>',f+="</font>",f}function rt(e){var r=e.align,t=e.alignVertical,n=e.textRotation,o=e.indent,i=e.wrap;return"<alignment"+(r?' horizontal="'.concat(O(r),'"'):"")+(t?' vertical="'.concat(O(t),'"'):"")+(n?' textRotation="'.concat(zo(Po(n)),'"'):"")+(o?' indent="'.concat(O(String(o)),'"'):"")+(i?' wrapText="1"':"")+"/>"}function Po(e){if(!(e>=-90&&e<=90))throw new Error("Unsupported text rotation angle: ".concat(e,". Values from -90 to 90 are supported."));return e}function zo(e){return e<0?90-e:e}function Xe(e){"@babel/helpers - typeof";return Xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xe(e)}function qt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Zt(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?qt(Object(t),!0).forEach(function(n){jo(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qt(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function jo(e,r,t){return(r=Ro(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ro(e){var r=Mo(e,"string");return Xe(r)=="symbol"?r:r+""}function Mo(e,r){if(Xe(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Xe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var tt=100;function nt(e){var r=[],t={},n=[],o={},i=[],l={},a=[],s={},f=[],u={},m=i.length;l[oe(e)]=m,i.push(e||{});var c={};s[oe(c)]=a.length,a.push(c);var p={};u[oe(p)]=f.length,f.push(p);var x={gray125:!0};a.push(x);function d(h){var C=h.format,F=h.align,S=h.alignVertical,v=h.textRotation,b=h.indent,A=h.wrap,w=h.fontFamily,y=h.fontSize,g=h.fontWeight,T=h.fontStyle,B=h.textDecoration,P=h.textColor,N=h.backgroundColor,D=h.fillPatternStyle,k=h.fillPatternColor,R=h.borderColor,E=h.borderStyle,X=h.leftBorderColor,Z=h.leftBorderStyle,Ce=h.rightBorderColor,G=h.rightBorderStyle,ie=h.topBorderColor,_=h.topBorderStyle,W=h.bottomBorderColor,M=h.bottomBorderStyle,H={fontFamily:w,fontSize:y,fontWeight:g,fontStyle:T,textDecoration:B,textColor:P},Ae={backgroundColor:N,fillPatternStyle:D,fillPatternColor:k},ae={borderColor:R,borderStyle:E,leftBorderColor:X,leftBorderStyle:Z,rightBorderColor:Ce,rightBorderStyle:G,topBorderColor:ie,topBorderStyle:_,bottomBorderColor:W,bottomBorderStyle:M},dr={align:F,alignVertical:S,textRotation:v,indent:b,wrap:A},Fe=oe(C),Ie=oe(H),Te=oe(Ae),me=oe(ae),le=oe(h),Tn=function(){var Ee;C&&(Ee=t[Fe],Ee===void 0&&(Ee=tt+r.length,t[Fe]=Ee,r.push(C)));var pe;ue(H)?(pe=l[Ie],pe===void 0&&(pe=i.length,l[Ie]=pe,i.push(Zt(Zt({},H),{},{fontSize:H.fontSize||e&&e.fontSize,fontFamily:H.fontFamily||e&&e.fontFamily})))):e&&(pe=m);var Oe;Q(Ae)&&(Oe=s[Te],Oe===void 0&&(Oe=a.length,s[Te]=Oe,a.push({backgroundColor:N,fillPatternStyle:D,fillPatternColor:k})));var De;fe(ae)&&(De=u[me],De===void 0&&(De=f.length,u[me]=De,f.push(ae)));var bt=n.length;return o[le]=bt,n.push({formatId:Ee,fontId:pe,fillId:Oe,borderId:De,alignment:dr}),bt};return o[le]!==void 0?o[le]:Tn()}return d({}),{getCellStyles:function(){return{formats:r,styles:n,fonts:i,fills:a,borders:f}},findOrCreateCellStyle:d}}function oe(e){return JSON.stringify(e)}function sr(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Uo(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uo(e,r){if(e){if(typeof e=="string")return $t(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$t(e,r):void 0}}function $t(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function ot(e,r,t){var n=e.formats,o=e.styles,i=e.fonts,l=e.fills,a=e.borders,s='<?xml version="1.0" ?>';if(s+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',n.length>0){s+='<numFmts count="'.concat(n.length,'">');for(var f=0;f<n.length;f++)s+='<numFmt numFmtId="'.concat(tt+f,'" formatCode="').concat(O(n[f]),'"/>');s+="</numFmts>"}s+='<fonts count="'.concat(i.length,'">');for(var u=sr(i),m;!(m=u()).done;){var c=m.value;s+=Le(c)}s+="</fonts>",s+='<fills count="'.concat(l.length,'">');for(var p=sr(l),x;!(x=p()).done;){var d=x.value;d.gray125?(s+="<fill>",s+='<patternFill patternType="gray125"/>',s+="</fill>"):s+=Me(d)}s+="</fills>",s+='<borders count="'.concat(a.length,'">');for(var h=sr(a),C;!(C=h()).done;){var F=C.value;s+=Ue(F)}s+="</borders>",s+='<cellXfs count="'.concat(o.length,'">');for(var S=sr(o),v;!(v=S()).done;){var b=v.value,A=b.fontId,w=b.fillId,y=b.borderId,g=b.alignment,T=b.formatId;s+="<xf "+[T===void 0?void 0:'numFmtId="'.concat(T,'" applyNumberFormat="1"'),A===void 0?void 0:'fontId="'.concat(A,'" applyFont="1"'),w===void 0?void 0:'fillId="'.concat(w,'" applyFill="1"'),y===void 0?void 0:'borderId="'.concat(y,'" applyBorder="1"'),be(g)?'applyAlignment="1"':void 0].filter(function(B){return B}).join(" ")+">"+(be(g)?rt(g):"")+"</xf>"}return s+="</cellXfs>",s+=z("xl/styles.xml",t,r),s+="</styleSheet>",s=j(s,"xl/styles.xml",t,r),s}function Ne(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.tagName,n=r.stopAfterFirstMatch,o=new RegExp(it(t),n?void 0:"g"),i=[],l;(l=o.exec(e))!==null;){for(var a=l[0],s=t||l[1],f={},u=new RegExp('\\s+([^\\s=>]+)(?:="([^\\s=>]+)")',"g"),m=void 0;(m=u.exec(a))!==null;)f[m[1]]=m[2];var c={tagName:s,openingTagStartIndex:l.index,openingTagEndIndex:l.index+a.length-1,openingTagAttributes:f,selfClosingTag:!1,closingTagStartIndex:void 0,closingTagEndIndex:void 0};if(a[a.length-2]==="/")c.selfClosingTag=!0;else{var p=Lo(e,c.openingTagEndIndex+1,s);if(!p)throw new Error("Invalid XML: opening tag was found but closing tag was not: </".concat(s,">"));c.closingTagStartIndex=p[0],c.closingTagEndIndex=p[1]}if(i.push(c),n)break;c.selfClosingTag?o.lastIndex=c.openingTagEndIndex+1:o.lastIndex=c.closingTagEndIndex+1}return i}function Lo(e,r,t){var n=new RegExp("<(/)?"+t+"(?:\\s+[^>]+|/)?>","g");n.lastIndex=r;for(var o=0,i;(i=n.exec(e))!==null;){var l=i[0],a=i[1];if(a)if(o>0)o--;else return[i.index,i.index+l.length-1];else o++}}function it(e){return"<"+(e||"([^\\s/>]+)")+"(?:\\s+[^>]+|/)?>"}function q(e,r){var t=Ne(e,{tagName:r,stopAfterFirstMatch:!0});return t[0]}function Ve(e,r,t){return t?r.selfClosingTag?e.slice(0,r.openingTagEndIndex-1)+">"+t+"</"+r.tagName+">"+e.slice(r.openingTagEndIndex+1):e.slice(0,r.openingTagEndIndex+1)+t+e.slice(r.closingTagStartIndex):r.selfClosingTag?e:e.slice(0,r.openingTagEndIndex)+"/>"+e.slice(r.closingTagEndIndex+1)}function he(e,r,t){return r.selfClosingTag?Ve(e,r,t):e.slice(0,r.closingTagStartIndex)+t+e.slice(r.closingTagStartIndex)}function Ge(e,r){return r.selfClosingTag?"":e.substring(r.openingTagEndIndex+1,r.closingTagStartIndex)}function We(e,r){var t=r.openingTagEndIndex+1;e.openingTagStartIndex+=t,e.openingTagEndIndex+=t,e.selfClosingTag||(e.closingTagStartIndex+=t,e.closingTagEndIndex+=t)}function Xo(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=No(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function No(e,r){if(e){if(typeof e=="string")return Yt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Yt(e,r):void 0}}function Yt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function fr(e,r){for(var t=Ne(Ge(e,r)),n=Xo(t),o;!(o=n()).done;){var i=o.value;We(i,r)}return t}function He(e,r,t){return r.selfClosingTag?Ve(e,r,t):e.slice(0,r.openingTagEndIndex+1)+t+e.slice(r.openingTagEndIndex+1)}function Jt(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Vo(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vo(e,r){if(e){if(typeof e=="string")return Qt(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Qt(e,r):void 0}}function Qt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function Ke(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];if(o.length===0)throw new Error("At least one parent element tag name is required");o=o.slice().reverse();for(var l,a=function(){var v=f.value;if(l?l=fr(e,l).find(function(b){return b.tagName===v}):l=q(e,v),!l)throw new Error("Element not found: <".concat(v,">"))},s=Jt(o),f;!(f=s()).done;)a();var u=r.match(Go);if(!u)throw new Error("Couldn't extract tag name from markup: ".concat(r));var m=u[1];if(!t||t.length<2)return he(e,l,r);var c=fr(e,l);if(c.length===0)return he(e,l,r);var p=t.indexOf(m);if(p<0)return he(e,l,r);for(var x=t.slice(0,p).reverse(),d=function(){var v=F.value,b=c.find(function(A){return A.tagName===v});if(b)return{v:e.slice(0,b.selfClosingTag?b.openingTagEndIndex+1:b.closingTagEndIndex+1)+r+e.slice(b.selfClosingTag?b.openingTagEndIndex+1:b.closingTagEndIndex+1)}},h,C=Jt(x),F;!(F=C()).done;)if(h=d(),h)return h.v;return He(e,l,r)}var Go=new RegExp(it());var _t={"xl/workbook.xml":[["workbook",["workbookPr","bookViews","sheets","pivotCaches","definedNames","calcPr"]]],"xl/styles.xml":[["styleSheet",["numFmts","fonts","fills","borders","cellStyleXfs","cellXfs","cellStyles","dxfs","tableStyles"]]],"xl/worksheets/sheet{id}.xml":[["worksheet",["sheetPr","dimension","sheetViews","sheetFormatPr","cols","sheetData","sheetCalcPr","sheetProtection","protectedRanges","scenarios","autoFilter","sortState","dataConsolidate","customSheetViews","mergeCells","phoneticPr","conditionalFormatting","dataValidations","hyperlinks","printOptions","pageMargins","pageSetup","headerFooter","rowBreaks","colBreaks","drawing","legacyDrawing","picture","oleObjects","controls","tableParts","extLst"]]]};function qe(e){var r=_t[e];if(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(n.length===0)throw new Error("At least one parent element tag name is required");for(var i=function(){var u=s[a],m=r.find(function(c){return Array.isArray(c)?c[0]===u:c===u});if(!m)return{v:void 0};if(Array.isArray(m))r=m[1];else return{v:void 0}},l,a=0,s=n;a<s.length;a++)if(l=i(),l)return l.v;if(r)return r.map(function(f){return Array.isArray(f)?f[0]:f})}}function ur(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Wo(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wo(e,r){if(e){if(typeof e=="string")return en(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?en(e,r):void 0}}function en(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var nn={files:{transform:{"xl/worksheets/sheet{id}.xml":{transform:function(r,t,n){var o=n.sheetIndex,i=n.sheetId,l=t.conditionalFormatting;if(l){var a=Ho(l);return Ke(r,a,qe("xl/worksheets/sheet{id}.xml","worksheet"),"worksheet")}return r}},"xl/styles.xml":{insert:function(r){var t=r.map(function(n){return n.conditionalFormatting});if(t.some(Boolean))return Ko(t)}}}}};function Ho(e){for(var r="",t=0,n=ur(e),o;!(o=n()).done;){var i=o.value,l=i.cellRange,a=l.from,s=l.to,f=i.condition,u=f.formula,m=f.operator,c=f.value,p=f.value2,x=K(a.row-1,a.column-1)+":"+K(s.row-1,s.column-1);r+='<conditionalFormatting sqref="'.concat(x,'">');var d=t+1,h=i._globalIndex;if(u)r+='<cfRule type="expression" dxfId="'.concat(h,'" priority="').concat(d,'">'),r+="<formula>".concat(J(u),"</formula>"),r+="</cfRule>";else if(m)r+='<cfRule type="cellIs" operator="'.concat(tn(m),'" dxfId="').concat(h,'" priority="').concat(d,'">'),r+="<formula>".concat(J(rn(c)),"</formula>"),tn(m)==="between"&&(r+="<formula>".concat(J(rn(p)),"</formula>")),r+="</cfRule>";else throw new Error(`Invalid conditional formatting rule:
|
|
13
|
+
`.concat(JSON.stringify(i,null,2)));r+="</conditionalFormatting>",t++}return r}function rn(e){return typeof e=="string"?'"'+e+'"':String(e)}function tn(e){switch(e){case"<":return"lessThan";case">":return"greaterThan";case"<=":return"lessThanOrEqual";case">=":return"greaterThanOrEqual";case"=":return"equal";case"!=":return"notEqual";case"...":return"between";default:throw new Error("Unknown conditional formatting operator: ".concat(e))}}function Ko(e){for(var r=0,t=ur(e),n;!(n=t()).done;){var o=n.value;o&&(r+=o.length)}var i="";i+='<dxfs count="'.concat(r,'">');for(var l=ur(e),a;!(a=l()).done;){var s=a.value;if(s)for(var f=ur(s),u;!(u=f()).done;){var m=u.value,c=m.style,p=c.fontFamily,x=c.fontSize,d=c.fontWeight,h=c.fontStyle,C=c.textDecoration,F=c.textColor,S=c.backgroundColor,v=c.fillPatternStyle,b=c.fillPatternColor,A=c.borderColor,w=c.borderStyle,y=c.leftBorderColor,g=c.leftBorderStyle,T=c.rightBorderColor,B=c.rightBorderStyle,P=c.topBorderColor,N=c.topBorderStyle,D=c.bottomBorderColor,k=c.bottomBorderStyle;i+="<dxf>";var R={fontFamily:p,fontSize:x,fontWeight:d,fontStyle:h,textDecoration:C,textColor:F};if(ue(R)){if(p)throw new Error("Conditional formatting can't be used to override font family");if(typeof x=="number")throw new Error("Conditional formatting can't be used to override font size");i+=Le(R)}var E={backgroundColor:S,fillPatternStyle:v,fillPatternColor:b};Q(E)&&(i+=Me(E,{conditionalFormatting:!0}));var X={borderColor:A,borderStyle:w,leftBorderColor:y,leftBorderStyle:g,rightBorderColor:T,rightBorderStyle:B,topBorderColor:P,topBorderStyle:N,bottomBorderColor:D,bottomBorderStyle:k};fe(X)&&(i+=Ue(X)),i+="</dxf>"}}return i+="</dxfs>",i}function cr(e){if(!e)throw new Error("`contentType` is required");var r=e.toLowerCase().replace(/.*\//,"");if(!r)throw new Error("Unsupported `contentType`: "+e);return r}function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ze(e)}function lt(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=sn(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function on(e){return $o(e)||Zo(e)||sn(e)||qo()}function qo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(e,r){if(e){if(typeof e=="string")return at(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?at(e,r):void 0}}function Zo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $o(e){if(Array.isArray(e))return at(e)}function at(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function an(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function hr(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?an(Object(t),!0).forEach(function(n){fn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function fn(e,r,t){return(r=Yo(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Yo(e){var r=Jo(e,"string");return Ze(r)=="symbol"?r:r+""}function Jo(e,r){if(Ze(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var un={files:{transform:{"[Content_Types].xml":{insert:function(r){var t=r.map(function(n){return n.images});if(t.some(Boolean))return Qo(t)}},"xl/drawings/drawing{id}.xml":{insert:function(r,t){var n=t.sheetIndex,o=t.sheetId,i=r.images;if(i)return ei({images:i})}},"xl/drawings/_rels/drawing{id}.xml.rels":{insert:function(r,t){var n=t.sheetIndex,o=t.sheetId,i=r.images;if(i)return ri({images:i,sheetIndex:n})}}},write:{files:function(r,t){var n=t.read,o=r.map(function(i){return i.images});if(o.some(Boolean))return o.map(function(i,l){return i?i.reduce(function(a,s,f){return hr(hr({},a),{},fn({},"xl/media/".concat(cn(s,{sheetIndex:l,imageIndex:f})),s.content))},{}):{}}).reduce(function(i,l){return hr(hr({},i),l)},{})}}}};function Qo(e){for(var r=e.reduce(function(s,f){return[].concat(on(s),on(f||[]))},[]),t="",n=lt(_o(r)),o;!(o=n()).done;){var i=o.value,l=i.fileExtension,a=i.contentType;t+='<Default Extension="'.concat(l,'" ContentType="').concat(a,'"/>')}return t}function _o(e){for(var r=[],t=function(a){var s=cr(a.contentType),f=r.find(function(u){return u.fileExtension===s});f||r.push({fileExtension:s,contentType:a.contentType})},n=lt(e),o;!(o=n()).done;){var i=o.value;t(i)}return r}function cn(e,r){var t=r.sheetIndex,n=r.imageIndex,o=t+1,i=n+1;return"sheet".concat(o,"-image").concat(i,".").concat(cr(e.contentType))}function ei(e){for(var r=e.images,t="",n=0,o=function(){var s=l.value,f=n+1,u=function(c){return ni(c,s.dpi)};t+="<xdr:oneCellAnchor>",t+="<xdr:from>",t+="<xdr:col>".concat(s.anchor.column-1,"</xdr:col>"),t+="<xdr:colOff>".concat(typeof s.offsetX=="number"?u(s.offsetX):0,"</xdr:colOff>"),t+="<xdr:row>".concat(s.anchor.row-1,"</xdr:row>"),t+="<xdr:rowOff>".concat(typeof s.offsetY=="number"?u(s.offsetY):0,"</xdr:rowOff>"),t+="</xdr:from>",t+='<xdr:ext cx="'.concat(u(s.width),'" cy="').concat(u(s.height),'"/>'),t+="<xdr:pic>",t+="<xdr:nvPicPr>",t+='<xdr:cNvPr id="'.concat(f,'" name="').concat(s.title?O(s.title):"Picture "+f,'" descr="').concat(s.description?O(s.description):"",'"/>'),t+="<xdr:cNvPicPr>",t+='<a:picLocks noChangeAspect="1"/>',t+="</xdr:cNvPicPr>",t+="</xdr:nvPicPr>",t+="<xdr:blipFill>",t+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId-image-'.concat(f,'" cstate="print"/>'),t+="<a:stretch>",t+="<a:fillRect/>",t+="</a:stretch>",t+="</xdr:blipFill>",t+="<xdr:spPr>",t+='<a:prstGeom prst="rect">',t+="<a:avLst/>",t+="</a:prstGeom>",t+="</xdr:spPr>",t+="</xdr:pic>",t+="<xdr:clientData/>",t+="</xdr:oneCellAnchor>",n++},i=lt(r),l;!(l=i()).done;)o();return t}function ri(e){var r=e.images,t=e.sheetIndex;return r.map(function(n,o){var i=o+1;return'<Relationship Id="rId-image-'.concat(i,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/').concat(cn(n,{sheetIndex:t,imageIndex:o}),'"/>')}).join("")}var ln=96,ti=96;function ni(e,r){var t=ln;return Math.round(e*9525*(ln/t)*(ti/r))}function st(e,r,t){return r.selfClosingTag?e.slice(0,r.openingTagStartIndex)+t+e.slice(r.openingTagEndIndex+1):e.slice(0,r.openingTagStartIndex)+t+e.slice(r.closingTagEndIndex+1)}function ft(e,r,t){var n=q(Ge(e,t),r);if(n)return We(n,t),n}var mn={files:{transform:{"xl/worksheets/sheet{id}.xml":{transform:function(r,t,n){var o=n.sheetIndex,i=n.sheetId;if(hn(t)){var l=t.stickyRowsCount,a=t.stickyColumnsCount,s={ySplit:l||0,xSplit:a||0,topLeftCell:K(l||0,a||0),activePane:"bottomRight",state:"frozen"},f=q(r,"sheetView");if(f){var u=ft(r,"pane",f),m=te("pane",s);u?r=st(r,u,m):r=he(r,f,m)}else{var c=q(r,"sheetViews");if(c)throw new Error("xl/worksheets/sheet".concat(i,".xml: <sheetViews/> element exists but it doesn't contain any <sheetView/> elements"));var p={tabSelected:o===0?1:0,workbookViewId:0},x=re("sheetViews")+re("sheetView",p)+te("pane",s)+xe("sheetView",p)+xe("sheetViews"),d=q(r,"worksheet");r=He(r,d,x)}}return r}},"xl/workbook.xml":{transform:function(r,t){if(t.some(hn)){var n=q(r,"workbookView");if(!n){var o=q(r,"bookViews");if(o)throw new Error("xl/workbook.xml: <bookViews/> element exists but it doesn't contain any <workbookView/> elements");return Ke(r,"<bookViews><workbookView/></bookViews>",qe("xl/workbook.xml","workbook"),"workbook")}}return r}}}}};function hn(e){return!!e.stickyRowsCount||!!e.stickyColumnsCount}function ut(e){var r=[];return r.push(nn),r.push(un),r.push(mn),e&&(e.forEach(ii),r=r.concat(e)),r}var oi=["[Content_Types].xml","_rels/.rels","xl/styles.xml","xl/workbook.xml","xl/_rels/workbook.xml.rels","xl/worksheets/sheet{id}.xml","xl/worksheets/_rels/sheet{id}.xml.rels","xl/drawings/drawing{id}.xml","xl/drawings/_rels/drawing{id}.xml.rels"];function ii(e){if(e.files&&e.files.transform)for(var r=0,t=Object.keys(e.files.transform);r<t.length;r++){var n=t[r];if(oi.indexOf(n)<0)throw new Error("Unknown file to transform: ".concat(n))}}function ai(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=li(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function li(e,r){if(e){if(typeof e=="string")return pn(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pn(e,r):void 0}}function pn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function mr(e){if(!Array.isArray(e))throw new TypeError("Expected sheet data to be an array of rows");for(var r=ai(e),t;!(t=r()).done;){var n=t.value;if(Array.isArray(n))return;throw new Error("Expected each sheet data row to be an array")}}function ct(){var e=[],r={};return{getSharedStrings:function(){return e},findOrCreateSharedString:function(n){var o=r[n];return o===void 0&&(o=e.length,r[n]=o,e.push(n)),o}}}var si=/[\[\]\/\\:*?]+/;function ht(e){if(!e)throw new Error("Sheet name can't be empty");if(e.length>31)throw new Error('Sheet name "'.concat(e,`" can't be longer than 31 characters`));if(si.test(e))throw new Error('Sheet name "'.concat(e,'" contains illegal characters: []/\\:*?'))}function fi(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=ui(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ui(e,r){if(e){if(typeof e=="string")return dn(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?dn(e,r):void 0}}function dn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function mt(e,r,t){for(var n=ct(),o=n.getSharedStrings,i=n.findOrCreateSharedString,l=ci(t),a=nt(l),s=a.getCellStyles,f=a.findOrCreateCellStyle,u=r.map(function(h){return h.sheet}),m=fi(u),c;!(c=m()).done;){var p=c.value;ht(p)}for(var x=[],d=0;d<u.length;)x.push({sheetData:e[d],sheetOptions:r[d],sheetIndex:d,sheetId:vn(d),hasDefaultFont:!!l,findOrCreateCellStyle:f,findOrCreateSharedString:i}),d++;return{sheets:u.map(function(h,C){var F=C;return{sheetId:vn(F),sheetName:h,sheetXmlParameters:x[F]}}),getSharedStrings:o,getCellStyles:s}}function vn(e){return String(e+1)}function ci(e){var r=e.fontFamily,t=e.fontSize;if(r||typeof t=="number")return{fontFamily:r,fontSize:t}}function pr(e,r){var t;return r.some(function(n){return n.header})&&(t=r.map(function(n){var o=n.header;return o||null})),(t?[t]:[]).concat(e.map(function(n,o){return r.map(function(i){var l=i.cell;return l(n,o)})}))}function $e(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$e(e)}function gn(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function yn(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gn(Object(t),!0).forEach(function(n){hi(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function hi(e,r,t){return(r=mi(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function mi(e){var r=pi(e,"string");return $e(r)=="symbol"?r:r+""}function pi(e,r){if($e(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if($e(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function di(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=vi(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vi(e,r){if(e){if(typeof e=="string")return xn(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xn(e,r):void 0}}function xn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function pt(e,r,t){for(var n=t.read,o={},i=di(e),l;!(l=i()).done;){var a=l.value;if(a.files&&a.files.write&&a.files.write.files){var s=a.files.write.files(r,{read:n});s&&(o=yn(yn({},o),s))}}return o}function Ye(e){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ye(e)}var gi=["data"];function bn(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Se(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?bn(Object(t),!0).forEach(function(n){yi(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function yi(e,r,t){return(r=xi(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xi(e){var r=bi(e,"string");return Ye(r)=="symbol"?r:r+""}function bi(e,r){if(Ye(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ye(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function wi(e,r){if(e==null)return{};var t,n,o=Si(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Si(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Sn(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Ci(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci(e,r){if(e){if(typeof e=="string")return wn(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wn(e,r):void 0}}function wn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function vt(e,r,t){var n=Cn(e,r,t),o=n.sheets,i=n.options,l=o.map(function(w){return w.data}),a=o.map(function(w){return w.options});a=Ei(a),a=Oi(a);var s=ut(i.features),f={},u=function(y){return f[y]},m=function(y){for(var g=0,T=Object.keys(y);g<T.length;g++){var B=T[g];Ii(B),Ti(B,y[B]),f[B]=y[B]}},c=mt(l,a,i),p=c.sheets,x=c.getSharedStrings,d=c.getCellStyles;f["[Content_Types].xml"]=zr({sheetIds:p.map(function(w){return w.sheetId}),features:s,sheetsOptions:a}),f["_rels/.rels"]=Pr({features:s,sheetsOptions:a}),f["xl/_rels/workbook.xml.rels"]=kr({sheetIds:p.map(function(w){return w.sheetId}),features:s,sheetsOptions:a}),f["xl/workbook.xml"]=Br({sheetIdsAndNames:p.map(function(w){var y=w.sheetId,g=w.sheetName;return{sheetId:y,sheetName:g}}),features:s,sheetsOptions:a});for(var h=0,C=Sn(p),F;!(F=C()).done;){var S=F.value,v=S.sheetId,b=S.sheetXmlParameters,A=a[h];f["xl/worksheets/sheet".concat(v,".xml")]=Jr(b,s),f["xl/worksheets/_rels/sheet".concat(v,".xml.rels")]=Qr({sheetIndex:h,sheetId:v,sheetOptions:A,features:s}),f["xl/drawings/drawing".concat(v,".xml")]=Rr({sheetIndex:h,sheetId:v,sheetOptions:A,features:s}),f["xl/drawings/_rels/drawing".concat(v,".xml.rels")]=Lr({sheetIndex:h,sheetId:v,sheetOptions:A,features:s}),h++}return m(pt(s,a,{read:u})),f["xl/styles.xml"]=ot(d(),a,s),f["xl/sharedStrings.xml"]=et(x()),Ai(f,p),f}function Ai(e,r){for(var t=Sn(r),n;!(n=t()).done;){var o=n.value.sheetId;if(e["xl/drawings/drawing".concat(o,".xml")]===Mr+Ur){if(delete e["xl/drawings/drawing".concat(o,".xml")],delete e["xl/drawings/_rels/drawing".concat(o,".xml.rels")],!dt(e,"xl/worksheets/sheet".concat(o,".xml"),Re(te)))throw new Error(Fi);dt(e,"xl/worksheets/_rels/sheet".concat(o,".xml.rels"),_r(o)),dt(e,"[Content_Types].xml",jr(o))}}}var Fi="Couldn't remove unused drawings";function dt(e,r,t){if(!e[r])throw new Error("File not found: ".concat(r));if(e[r].indexOf(t)<0)throw new Error('Substring "'.concat(t,'" not found in "').concat(r,'"'));var n=e[r],o=n.replace(t,"");return e[r]=o,n!==o}function Ii(e){if(e[0]==="/")throw new Error("File path must not start with a slash (/)")}function Ti(e,r){if(!r)throw new Error("File `content` not specified: ".concat(e))}function Cn(e,r,t){if(Array.isArray(e))if(e.length===0||Array.isArray(e[0])){if(mr(e),Array.isArray(e[0])&&e.length>0&&Array.isArray(e[0][0]))throw new Error("In order to write multiple sheets, pass an array of sheet objects");return{sheets:[{data:e,options:r||{}}],options:t||{}}}else if(ce(e[0])){if(ce(r)&&Array.isArray(r.schema))throw new Error("`schema` parameter was removed, use `columns` parameter instead");return ce(r)&&Array.isArray(r.columns)?Cn(pr(e,r.columns),r,t):{sheets:e.map(function(n){var o=n.data,i=wi(n,gi);if(!o)throw new Error("`data` property is required for each sheet");return mr(o),{data:o,options:i||{}}}),options:r||{}}}else throw new Error("Invalid first argument: must be either sheet data \u2014 an array of arrays \u2014 or an array of sheet objects");else throw new Error("Invalid first argument: must be an array")}function Ei(e){return e.map(function(r,t){return Se(Se({},r),{},{sheet:r.sheet||"Sheet".concat(t+1)})})}function Oi(e){var r=0;return e.map(function(t){return Se(Se({},t),{},{conditionalFormatting:t.conditionalFormatting&&t.conditionalFormatting.map(function(n){return Se(Se({},n),{},{_globalIndex:r++})})})})}function Di(e,r,t,n,o,i){var l=vt(e,r,t);return Er(l,n).then(function(a){var s=o(a);return i?s.then(function(f){return An(f)}):An(s)})}function An(e){return new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}function Fn(e,r,t,n){return Di(e,r,t,n,Tr,!0)}function yt(e){if(e instanceof File||e instanceof Blob)return e.arrayBuffer().then(gt);if(e instanceof ArrayBuffer)return Promise.resolve(gt(e));throw new Error("Unsupported file content type. Expected a `File`, a `Blob` or an `ArrayBuffer`")}function gt(e){return new Uint8Array(e)}function xt(e,r){var t=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=t,n.download=r,document.body.appendChild(n),n.click(),setTimeout(function(){URL.revokeObjectURL(t),document.body.removeChild(n)},100)}function In(e,r,t){var n=function(){return Fn(e,r,t,yt)};return{toBlob:function(){return n()},toFile:function(i){return n().then(function(l){xt(l,i)})}}}export{In as default,pr as getSheetData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.create;var f=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}},n=(b,a)=>{for(var c in a)f(b,c,{get:a[c],enumerable:!0})},e=(b,a,c,g)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of j(a))!l.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(g=i(a,d))||g.enumerable});return b},o=(b,a,c)=>(e(b,a,"default"),c&&e(c,a,"default")),p=(b,a,c)=>(c=b!=null?h(k(b)):{},e(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c,p as d};
|
|
@@ -3,5 +3,46 @@
|
|
|
3
3
|
"name": "gramlot_commands",
|
|
4
4
|
"version": "1.0"
|
|
5
5
|
},
|
|
6
|
-
"groups": {
|
|
6
|
+
"groups": {
|
|
7
|
+
"grid": {
|
|
8
|
+
"commands": {
|
|
9
|
+
"addrow": {
|
|
10
|
+
"icon": "+",
|
|
11
|
+
"label": "Add row",
|
|
12
|
+
"publish": "addrow",
|
|
13
|
+
"tooltip": "Add a row"
|
|
14
|
+
},
|
|
15
|
+
"delrow": {
|
|
16
|
+
"icon": "−",
|
|
17
|
+
"label": "Delete",
|
|
18
|
+
"publish": "delrow",
|
|
19
|
+
"tooltip": "Delete the selected rows"
|
|
20
|
+
},
|
|
21
|
+
"duprow": {
|
|
22
|
+
"icon": "⧉",
|
|
23
|
+
"label": "Duplicate",
|
|
24
|
+
"publish": "duprow",
|
|
25
|
+
"tooltip": "Duplicate the selected rows"
|
|
26
|
+
},
|
|
27
|
+
"export": {
|
|
28
|
+
"icon": "⇩",
|
|
29
|
+
"label": "Export",
|
|
30
|
+
"publish": "export",
|
|
31
|
+
"tooltip": "Export the visible rows"
|
|
32
|
+
},
|
|
33
|
+
"lineNumbers": {
|
|
34
|
+
"label": "Line numbers",
|
|
35
|
+
"publish": "lineNumbers",
|
|
36
|
+
"tooltip": "Show or hide the row numbers"
|
|
37
|
+
},
|
|
38
|
+
"printRows": {
|
|
39
|
+
"icon": "⎙",
|
|
40
|
+
"label": "Print",
|
|
41
|
+
"publish": "printRows",
|
|
42
|
+
"tooltip": "Print the visible rows"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"description": "Grid toolbar tools"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
7
48
|
}
|