filecat 7.10.2 → 7.12.1
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/build/dist/1075.68438aa42e20e5b2d39b.js +1 -0
- package/build/dist/1922.77cdb5e5f50b344fcf32.js +2 -0
- package/build/dist/1922.77cdb5e5f50b344fcf32.js.LICENSE.txt +23 -0
- package/build/dist/259.1c05c3135a8291823002.js +1 -0
- package/build/dist/2674.46c009a7ec426b7d8828.js +1 -0
- package/build/dist/{3299.de79d172b41af93a8716.js → 3299.5c01eebc0f62cdc7bb39.js} +1 -1
- package/build/dist/394.a8337677ef993b923783.js +1 -0
- package/build/dist/{4004.f4c06b50348214eb2962.js → 4004.916c0413a6db61a54e11.js} +1 -1
- package/build/dist/4903.cac82807407e7342b5ad.js +1 -0
- package/build/dist/4935.fe24d47c4075780c9c11.js +1 -0
- package/build/dist/5877.e2316c84a95490f77439.js +1 -0
- package/build/dist/621.28f07b5c059e80331746.js +1 -0
- package/build/dist/{6247.525b0b68872036ac2fa6.js → 6247.6ce123e9fc8b8be16c10.js} +1 -1
- package/build/dist/{8302.ce97557b7cf7c8387942.js → 8302.894efa465f6037f9f5a8.js} +1 -1
- package/build/dist/892.a62727e6df6e80655ca7.js +1 -0
- package/build/dist/9299.4c39ae6b03d41c516b1f.js +1 -0
- package/build/dist/9334.f04716a7e41f783abc47.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.65dcea654963fc771a86.js +2 -0
- package/build/main.js +1 -1
- package/package.json +23 -31
- package/build/dist/1075.05eed88707339ca32044.js +0 -1
- package/build/dist/259.3c0eb22e9b43ffb63c9c.js +0 -1
- package/build/dist/2674.d1bf937289c51ddeceac.js +0 -1
- package/build/dist/4903.070aaa53a243baf05133.js +0 -1
- package/build/dist/5877.98d0475aaf4058b9a715.js +0 -1
- package/build/dist/9299.76095cb6629c36ca3343.js +0 -1
- package/build/dist/9334.a25983aafdcbde63ae5e.js +0 -1
- package/build/dist/main.26c2c54f6ab534513ebd.js +0 -2
- /package/build/dist/{main.26c2c54f6ab534513ebd.js.LICENSE.txt → main.65dcea654963fc771a86.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1922.77cdb5e5f50b344fcf32.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[1922],{69861(t,e,o){o.d(e,{AO:()=>xt,D8:()=>vt,EL:()=>et,pd:()=>tt,qQ:()=>gt,uZ:()=>mt});var s=Uint8Array,n=Uint16Array,r=Int32Array,i=new s([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]),a=new s([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]),l=new s([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var o=new n(31),s=0;s<31;++s)o[s]=e+=1<<t[s-1];var i=new r(o[30]);for(s=1;s<30;++s)for(var a=o[s];a<o[s+1];++a)i[a]=a-o[s]<<5|s;return{b:o,r:i}},d=c(i,2),u=d.b,h=d.r;u[28]=258,h[258]=28;for(var f=c(a,0),p=f.b,m=f.r,v=new n(32768),g=0;g<32768;++g){var x=(43690&g)>>1|(21845&g)<<1;x=(61680&(x=(52428&x)>>2|(13107&x)<<2))>>4|(3855&x)<<4,v[g]=((65280&x)>>8|(255&x)<<8)>>1}var $=function(t,e,o){for(var s=t.length,r=0,i=new n(e);r<s;++r)t[r]&&++i[t[r]-1];var a,l=new n(e);for(r=1;r<e;++r)l[r]=l[r-1]+i[r-1]<<1;if(o){a=new n(1<<e);var c=15-e;for(r=0;r<s;++r)if(t[r])for(var d=r<<4|t[r],u=e-t[r],h=l[t[r]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)a[v[h]>>c]=d}else for(a=new n(s),r=0;r<s;++r)t[r]&&(a[r]=v[l[t[r]-1]++]>>15-t[r]);return a},w=new s(288);for(g=0;g<144;++g)w[g]=8;for(g=144;g<256;++g)w[g]=9;for(g=256;g<280;++g)w[g]=7;for(g=280;g<288;++g)w[g]=8;var b=new s(32);for(g=0;g<32;++g)b[g]=5;var y=$(w,9,0),k=$(w,9,1),C=$(b,5,0),S=$(b,5,1),I=function(t){for(var e=t[0],o=1;o<t.length;++o)t[o]>e&&(e=t[o]);return e},T=function(t,e,o){var s=e/8|0;return(t[s]|t[s+1]<<8)>>(7&e)&o},P=function(t,e){var o=e/8|0;return(t[o]|t[o+1]<<8|t[o+2]<<16)>>(7&e)},F=function(t){return(t+7)/8|0},R=function(t,e,o){return(null==e||e<0)&&(e=0),(null==o||o>t.length)&&(o=t.length),new s(t.subarray(e,o))},N=["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"],L=function(t,e,o){var s=new Error(e||N[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,L),!o)throw s;return s},D=function(t,e,o,n){var r=t.length,c=n?n.length:0;if(!r||e.f&&!e.l)return o||new s(0);var d=!o,h=d||2!=e.i,f=e.i;d&&(o=new s(3*r));var m=function(t){var e=o.length;if(t>e){var n=new s(Math.max(2*e,t));n.set(o),o=n}},v=e.f||0,g=e.p||0,x=e.b||0,w=e.l,b=e.d,y=e.m,C=e.n,N=8*r;do{if(!w){v=T(t,g,1);var D=T(t,g+1,3);if(g+=3,!D){var A=t[(X=F(g)+4)-4]|t[X-3]<<8,E=X+A;if(E>r){f&&L(0);break}h&&m(x+A),o.set(t.subarray(X,E),x),e.b=x+=A,e.p=g=8*E,e.f=v;continue}if(1==D)w=k,b=S,y=9,C=5;else if(2==D){var O=T(t,g,31)+257,j=T(t,g+10,15)+4,M=O+T(t,g+5,31)+1;g+=14;for(var z=new s(M),V=new s(19),B=0;B<j;++B)V[l[B]]=T(t,g+3*B,7);g+=3*j;var W=I(V),U=(1<<W)-1,H=$(V,W,1);for(B=0;B<M;){var X,q=H[T(t,g,U)];if(g+=15&q,(X=q>>4)<16)z[B++]=X;else{var _=0,G=0;for(16==X?(G=3+T(t,g,3),g+=2,_=z[B-1]):17==X?(G=3+T(t,g,7),g+=3):18==X&&(G=11+T(t,g,127),g+=7);G--;)z[B++]=_}}var Z=z.subarray(0,O),Y=z.subarray(O);y=I(Z),C=I(Y),w=$(Z,y,1),b=$(Y,C,1)}else L(1);if(g>N){f&&L(0);break}}h&&m(x+131072);for(var K=(1<<y)-1,Q=(1<<C)-1,J=g;;J=g){var tt=(_=w[P(t,g)&K])>>4;if((g+=15&_)>N){f&&L(0);break}if(_||L(2),tt<256)o[x++]=tt;else{if(256==tt){J=g,w=null;break}var et=tt-254;if(tt>264){var ot=i[B=tt-257];et=T(t,g,(1<<ot)-1)+u[B],g+=ot}var st=b[P(t,g)&Q],nt=st>>4;st||L(3),g+=15&st;Y=p[nt];if(nt>3){ot=a[nt];Y+=P(t,g)&(1<<ot)-1,g+=ot}if(g>N){f&&L(0);break}h&&m(x+131072);var rt=x+et;if(x<Y){var it=c-Y,at=Math.min(Y,rt);for(it+x<0&&L(3);x<at;++x)o[x]=n[it+x]}for(;x<rt;++x)o[x]=o[x-Y]}}e.l=w,e.p=J,e.b=x,e.f=v,w&&(v=1,e.m=y,e.d=b,e.n=C)}while(!v);return x!=o.length&&d?R(o,0,x):o.subarray(0,x)},A=function(t,e,o){o<<=7&e;var s=e/8|0;t[s]|=o,t[s+1]|=o>>8},E=function(t,e,o){o<<=7&e;var s=e/8|0;t[s]|=o,t[s+1]|=o>>8,t[s+2]|=o>>16},O=function(t,e){for(var o=[],r=0;r<t.length;++r)t[r]&&o.push({s:r,f:t[r]});var i=o.length,a=o.slice();if(!i)return{t:U,l:0};if(1==i){var l=new s(o[0].s+1);return l[o[0].s]=1,{t:l,l:1}}o.sort(function(t,e){return t.f-e.f}),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=0,h=1,f=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};h!=i-1;)c=o[o[u].f<o[f].f?u++:f++],d=o[u!=h&&o[u].f<o[f].f?u++:f++],o[h++]={s:-1,f:c.f+d.f,l:c,r:d};var p=a[0].s;for(r=1;r<i;++r)a[r].s>p&&(p=a[r].s);var m=new n(p+1),v=j(o[h-1],m,0);if(v>e){r=0;var g=0,x=v-e,$=1<<x;for(a.sort(function(t,e){return m[e.s]-m[t.s]||t.f-e.f});r<i;++r){var w=a[r].s;if(!(m[w]>e))break;g+=$-(1<<v-m[w]),m[w]=e}for(g>>=x;g>0;){var b=a[r].s;m[b]<e?g-=1<<e-m[b]++-1:++r}for(;r>=0&&g;--r){var y=a[r].s;m[y]==e&&(--m[y],++g)}v=e}return{t:new s(m),l:v}},j=function(t,e,o){return-1==t.s?Math.max(j(t.l,e,o+1),j(t.r,e,o+1)):e[t.s]=o},M=function(t){for(var e=t.length;e&&!t[--e];);for(var o=new n(++e),s=0,r=t[0],i=1,a=function(t){o[s++]=t},l=1;l<=e;++l)if(t[l]==r&&l!=e)++i;else{if(!r&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(r),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(r);i=1,r=t[l]}return{c:o.subarray(0,s),n:e}},z=function(t,e){for(var o=0,s=0;s<e.length;++s)o+=t[s]*e[s];return o},V=function(t,e,o){var s=o.length,n=F(e+2);t[n]=255&s,t[n+1]=s>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;r<s;++r)t[n+r+4]=o[r];return 8*(n+4+s)},B=function(t,e,o,s,r,c,d,u,h,f,p){A(e,p++,o),++r[256];for(var m=O(r,15),v=m.t,g=m.l,x=O(c,15),k=x.t,S=x.l,I=M(v),T=I.c,P=I.n,F=M(k),R=F.c,N=F.n,L=new n(19),D=0;D<T.length;++D)++L[31&T[D]];for(D=0;D<R.length;++D)++L[31&R[D]];for(var j=O(L,7),B=j.t,W=j.l,U=19;U>4&&!B[l[U-1]];--U);var H,X,q,_,G=f+5<<3,Z=z(r,w)+z(c,b)+d,Y=z(r,v)+z(c,k)+d+14+3*U+z(L,B)+2*L[16]+3*L[17]+7*L[18];if(h>=0&&G<=Z&&G<=Y)return V(e,p,t.subarray(h,h+f));if(A(e,p,1+(Y<Z)),p+=2,Y<Z){H=$(v,g,0),X=v,q=$(k,S,0),_=k;var K=$(B,W,0);A(e,p,P-257),A(e,p+5,N-1),A(e,p+10,U-4),p+=14;for(D=0;D<U;++D)A(e,p+3*D,B[l[D]]);p+=3*U;for(var Q=[T,R],J=0;J<2;++J){var tt=Q[J];for(D=0;D<tt.length;++D){var et=31&tt[D];A(e,p,K[et]),p+=B[et],et>15&&(A(e,p,tt[D]>>5&127),p+=tt[D]>>12)}}}else H=y,X=w,q=C,_=b;for(D=0;D<u;++D){var ot=s[D];if(ot>255){E(e,p,H[(et=ot>>18&31)+257]),p+=X[et+257],et>7&&(A(e,p,ot>>23&31),p+=i[et]);var st=31&ot;E(e,p,q[st]),p+=_[st],st>3&&(E(e,p,ot>>5&8191),p+=a[st])}else E(e,p,H[ot]),p+=X[ot]}return E(e,p,H[256]),p+X[256]},W=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new s(0),H=function(t,e,o,l,c,d){var u=d.z||t.length,f=new s(l+u+5*(1+Math.ceil(u/7e3))+c),p=f.subarray(l,f.length-c),v=d.l,g=7&(d.r||0);if(e){g&&(p[0]=d.r>>3);for(var x=W[e-1],$=x>>13,w=8191&x,b=(1<<o)-1,y=d.p||new n(32768),k=d.h||new n(b+1),C=Math.ceil(o/3),S=2*C,I=function(e){return(t[e]^t[e+1]<<C^t[e+2]<<S)&b},T=new r(25e3),P=new n(288),N=new n(32),L=0,D=0,A=d.i||0,E=0,O=d.w||0,j=0;A+2<u;++A){var M=I(A),z=32767&A,U=k[M];if(y[z]=U,k[M]=z,O<=A){var H=u-A;if((L>7e3||E>24576)&&(H>423||!v)){g=B(t,p,0,T,P,N,D,E,j,A-j,g),E=L=D=0,j=A;for(var X=0;X<286;++X)P[X]=0;for(X=0;X<30;++X)N[X]=0}var q=2,_=0,G=w,Z=z-U&32767;if(H>2&&M==I(A-Z))for(var Y=Math.min($,H)-1,K=Math.min(32767,A),Q=Math.min(258,H);Z<=K&&--G&&z!=U;){if(t[A+q]==t[A+q-Z]){for(var J=0;J<Q&&t[A+J]==t[A+J-Z];++J);if(J>q){if(q=J,_=Z,J>Y)break;var tt=Math.min(Z,J-2),et=0;for(X=0;X<tt;++X){var ot=A-Z+X&32767,st=ot-y[ot]&32767;st>et&&(et=st,U=ot)}}}Z+=(z=U)-(U=y[z])&32767}if(_){T[E++]=268435456|h[q]<<18|m[_];var nt=31&h[q],rt=31&m[_];D+=i[nt]+a[rt],++P[257+nt],++N[rt],O=A+q,++L}else T[E++]=t[A],++P[t[A]]}}for(A=Math.max(A,O);A<u;++A)T[E++]=t[A],++P[t[A]];g=B(t,p,v,T,P,N,D,E,j,A-j,g),v||(d.r=7&g|p[g/8|0]<<3,g-=7,d.h=k,d.p=y,d.i=A,d.w=O)}else{for(A=d.w||0;A<u+v;A+=65535){var it=A+65535;it>=u&&(p[g/8|0]=v,it=u),g=V(p,g+1,t.subarray(A,it))}d.i=u}return R(f,0,l+F(g)+c)},X=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var o=e,s=9;--s;)o=(1&o&&-306674912)^o>>>1;t[e]=o}return t}(),q=function(){var t=-1;return{p:function(e){for(var o=t,s=0;s<e.length;++s)o=X[255&o^e[s]]^o>>>8;t=o},d:function(){return~t}}},_=function(t,e,o,n,r){if(!r&&(r={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),a=new s(i.length+t.length);a.set(i),a.set(t,i.length),t=a,r.w=i.length}return H(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,o,n,r)},G=function(t,e){var o={};for(var s in t)o[s]=t[s];for(var s in e)o[s]=e[s];return o},Z=function(t,e){return t[e]|t[e+1]<<8},Y=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},K=function(t,e){return Y(t,e)+4294967296*Y(t,e+4)},Q=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};var J=function(){function t(t,e){if("function"==typeof t&&(e=t,t={}),this.ondata=e,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new s(98304),this.o.dictionary){var o=this.o.dictionary.subarray(-32768);this.b.set(o,32768-o.length),this.s.i=32768-o.length}}return t.prototype.p=function(t,e){this.ondata(_(t,this.o,0,0,this.s),e)},t.prototype.push=function(t,e){this.ondata||L(5),this.s.l&&L(4);var o=t.length+this.s.z;if(o>this.b.length){if(o>2*this.b.length-32768){var n=new s(-32768&o);n.set(this.b.subarray(0,this.s.z)),this.b=n}var r=this.b.length-this.s.z;this.b.set(t.subarray(0,r),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(r),32768),this.s.z=t.length-r+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&e,(this.s.z>this.s.w+8191||e)&&(this.p(this.b,e||!1),this.s.w=this.s.i,this.s.i-=2),e&&(this.s=this.o={},this.b=U)},t.prototype.flush=function(t){if(this.ondata||L(5),this.s.l&&L(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var e=new s(6);e[0]=this.s.r>>3;var o=V(e,this.s.r,U);this.s.r=0,this.ondata(e.subarray(0,o>>3),!1)}},t}();function tt(t,e){return _(t,e||{},0,0)}var et=function(){function t(t,e){"function"==typeof t&&(e=t,t={}),this.ondata=e;var o=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:o?o.length:0},this.o=new s(32768),this.p=new s(0),o&&this.o.set(o)}return t.prototype.e=function(t){if(this.ondata||L(5),this.d&&L(4),this.p.length){if(t.length){var e=new s(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length),this.p=e}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var e=this.s.b,o=D(this.p,this.s,this.o);this.ondata(R(o,e,this.s.b),this.d),this.o=R(o,this.s.b-32768),this.s.b=this.o.length,this.p=R(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}();function ot(t,e){return D(t,{i:2},e&&e.out,e&&e.dictionary)}var st="undefined"!=typeof TextEncoder&&new TextEncoder,nt="undefined"!=typeof TextDecoder&&new TextDecoder;try{nt.decode(U,{stream:!0})}catch(t){}var rt=function(t){for(var e="",o=0;;){var s=t[o++],n=(s>127)+(s>223)+(s>239);if(o+n>t.length)return{s:e,r:R(t,o-1)};n?3==n?(s=((15&s)<<18|(63&t[o++])<<12|(63&t[o++])<<6|63&t[o++])-65536,e+=String.fromCharCode(55296|s>>10,56320|1023&s)):e+=1&n?String.fromCharCode((31&s)<<6|63&t[o++]):String.fromCharCode((15&s)<<12|(63&t[o++])<<6|63&t[o++]):e+=String.fromCharCode(s)}};function it(t,e){if(e){for(var o=new s(t.length),n=0;n<t.length;++n)o[n]=t.charCodeAt(n);return o}if(st)return st.encode(t);var r=t.length,i=new s(t.length+(t.length>>1)),a=0,l=function(t){i[a++]=t};for(n=0;n<r;++n){if(a+5>i.length){var c=new s(a+8+(r-n<<1));c.set(i),i=c}var d=t.charCodeAt(n);d<128||e?l(d):d<2048?(l(192|d>>6),l(128|63&d)):d>55295&&d<57344?(l(240|(d=65536+(1047552&d)|1023&t.charCodeAt(++n))>>18),l(128|d>>12&63),l(128|d>>6&63),l(128|63&d)):(l(224|d>>12),l(128|d>>6&63),l(128|63&d))}return R(i,0,a)}function at(t,e){if(e){for(var o="",s=0;s<t.length;s+=16384)o+=String.fromCharCode.apply(null,t.subarray(s,s+16384));return o}if(nt)return nt.decode(t);var n=rt(t),r=n.s;return(o=n.r).length&&L(8),r}var lt=function(t){return 1==t?3:t<6?2:9==t?1:0},ct=function(t,e){return e+30+Z(t,e+26)+Z(t,e+28)},dt=function(t,e,o){var s=Z(t,e+28),n=Z(t,e+30),r=at(t.subarray(e+46,e+46+s),!(2048&Z(t,e+8))),i=e+46+s,a=ut(t,i,n,o,Y(t,e+20),Y(t,e+24),Y(t,e+42)),l=a[0],c=a[1],d=a[2];return[Z(t,e+10),l,c,r,i+n+Z(t,e+32),d]},ut=function(t,e,o,s,n,r,i){var a=4294967295==n,l=4294967295==r,c=4294967295==i,d=e+o;if(s&&a+l+c){for(;e+4<d;e+=4+Z(t,e+2))if(1==Z(t,e))return[a?K(t,e+4+8*l):n,l?K(t,e+4):r,c?K(t,e+4+8*(l+a)):i,1];s<2&&L(13)}return[n,r,i,0]},ht=function(t){var e=0;if(t)for(var o in t){var s=t[o].length;s>65535&&L(9),e+=s+4}return e},ft=function(t,e,o,s,n,r,i,a){var l=s.length,c=o.extra,d=a&&a.length,u=ht(c);Q(t,e,null!=i?33639248:67324752),e+=4,null!=i&&(t[e++]=20,t[e++]=o.os),t[e]=20,e+=2,t[e++]=o.flag<<1|(r<0&&8),t[e++]=n&&8,t[e++]=255&o.compression,t[e++]=o.compression>>8;var h=new Date(null==o.mtime?Date.now():o.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&L(10),Q(t,e,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),e+=4,-1!=r&&(Q(t,e,o.crc),Q(t,e+4,r<0?-r-2:r),Q(t,e+8,o.size)),Q(t,e+12,l),Q(t,e+14,u),e+=16,null!=i&&(Q(t,e,d),Q(t,e+6,o.attrs),Q(t,e+10,i),e+=14),t.set(s,e),e+=l,u)for(var p in c){var m=c[p],v=m.length;Q(t,e,+p),Q(t,e+2,v),t.set(m,e+4),e+=4+v}return d&&(t.set(a,e),e+=d),e},pt=function(t,e,o,s,n){Q(t,e,101010256),Q(t,e+8,o),Q(t,e+10,o),Q(t,e+12,s),Q(t,e+16,n)},mt=function(){function t(t){this.filename=t,this.c=q(),this.size=0,this.compression=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||L(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}(),vt=function(){function t(t,e){var o=this;e||(e={}),mt.call(this,t),this.d=new J(e,function(t,e){o.ondata(null,t,e)}),this.compression=8,this.flag=lt(e.level)}return t.prototype.process=function(t,e){try{this.d.push(t,e)}catch(t){this.ondata(t,null,e)}},t.prototype.push=function(t,e){mt.prototype.push.call(this,t,e)},t}(),gt=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||L(5),2&this.d)this.ondata(L(4+8*(1&this.d),0,1),null,!1);else{var o=it(t.filename),n=o.length,r=t.comment,i=r&&it(r),a=n!=t.filename.length||i&&r.length!=i.length,l=n+ht(t.extra)+30;n>65535&&this.ondata(L(11,0,1),null,!1);var c=new s(l);ft(c,0,t,o,a,-1);var d=[c],u=function(){for(var t=0,o=d;t<o.length;t++){var s=o[t];e.ondata(null,s,!1)}d=[]},h=this.d;this.d=0;var f=this.u.length,p=G(t,{f:o,u:a,o:i,t:function(){t.terminate&&t.terminate()},r:function(){if(u(),h){var t=e.u[f+1];t?t.r():e.d=1}h=1}}),m=0;t.ondata=function(o,n,r){if(o)e.ondata(o,n,r),e.terminate();else if(m+=n.length,d.push(n),r){var i=new s(16);Q(i,0,134695760),Q(i,4,t.crc),Q(i,8,m),Q(i,12,t.size),d.push(i),p.c=m,p.b=l+m+16,p.crc=t.crc,p.size=t.size,h&&p.r(),h=1}else h&&u()},this.u.push(p)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(L(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,e=0,o=0,n=0,r=this.u;n<r.length;n++){o+=46+(c=r[n]).f.length+ht(c.extra)+(c.o?c.o.length:0)}for(var i=new s(o+22),a=0,l=this.u;a<l.length;a++){var c=l[a];ft(i,t,c,c.f,c.u,-c.c-2,e,c.o),t+=46+c.f.length+ht(c.extra)+(c.o?c.o.length:0),e+=c.b}pt(i,t,this.u.length,o,e),this.ondata(null,i,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,e=this.u;t<e.length;t++){e[t].t()}this.d=2},t}();"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;function xt(t,e){for(var o={},n=t.length-22;101010256!=Y(t,n);--n)(!n||t.length-n>65558)&&L(13);var r=Z(t,n+8);if(!r)return{};var i=Y(t,n+16),a=117853008==Y(t,n-20);if(a){var l=Y(t,n-12);(a=101075792==Y(t,l))&&(r=Y(t,l+32),i=Y(t,l+48))}for(var c=e&&e.filter,d=0;d<r;++d){var u=dt(t,i,a),h=u[0],f=u[1],p=u[2],m=u[3],v=u[4],g=u[5],x=ct(t,g);i=v,c&&!c({name:m,size:f,originalSize:p,compression:h})||(h?8==h?o[m]=ot(t.subarray(x,x+f),{out:new s(p)}):L(14,"unknown compression type "+h):o[m]=R(t,x,x+f))}return o}},38223(t,e,o){e.wT=void 0;const s=o(31487),n=o(84797),r=o(60446);var i=s.isS,a=s.isChar,l=s.isNameStartChar,c=s.isNameChar,d=s.S_LIST,u=s.NAME_RE,h=n.isChar,f=r.isNCNameStartChar,p=r.isNCNameChar,m=r.NC_NAME_RE;const v="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",x={__proto__:null,xml:v,xmlns:g},$={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w=-1,b=-2,y=13,k=33,C=10,S=60,I=61,T=62,P=63,F=93,R=t=>34===t||39===t,N=[34,39],L=[...N,91,T],D=[...N,S,F],A=[I,P,...d],E=[...d,T,38,S];function O(t,e,o){switch(e){case"xml":o!==v&&t.fail(`xml prefix must be bound to ${v}.`);break;case"xmlns":o!==g&&t.fail(`xmlns prefix must be bound to ${g}.`)}switch(o){case g:t.fail(""===e?`the default namespace may not be set to ${o}.`:`may not assign a prefix (even "xmlns") to the URI ${g}.`);break;case v:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${o}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}}}const j=t=>m.test(t),M=t=>u.test(t);const z={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};e.wT=class{constructor(t){this.opt=null!=t?t:{},this.fragmentOpt=!!this.opt.fragment;const e=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,e){this.nameStartCheck=f,this.nameCheck=p,this.isName=j,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},x);const t=this.opt.additionalNamespaces;null!=t&&(!function(t,e){for(const o of Object.keys(e))O(t,o,e[o])}(this,t),Object.assign(this.ns,t))}else this.nameStartCheck=l,this.nameCheck=c,this.isName=M,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var t;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:e}=this;this.state=e?y:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:o}=this.opt;if(void 0===o){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");o="1.0"}this.setXMLVersion(o),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create($),null===(t=this.readyHandler)||void 0===t||t.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,e){this[z[t]]=e}off(t){this[z[t]]=void 0}makeError(t){var e;let o=null!==(e=this.fileName)&&void 0!==e?e:"";return this.trackPosition&&(o.length>0&&(o+=":"),o+=`${this.line}:${this.column}`),o.length>0&&(o+=": "),new Error(o+t)}fail(t){const e=this.makeError(t),o=this.errorHandler;if(void 0===o)throw e;return o(e),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let e=!1;null===t?(e=!0,t=""):"object"==typeof t&&(t=t.toString()),void 0!==this.carriedFromPrevious&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const s=t.charCodeAt(o-1);!e&&(13===s||s>=55296&&s<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:n}=this;for(this.chunk=t,this.i=0;this.i<o;)n[this.state].call(this);return this.chunkPosition+=o,e?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:t,i:e}=this;if(this.prevI=e,this.i=e+1,e>=t.length)return w;const o=t.charCodeAt(e);if(this.column++,o<55296){if(o>=32||9===o)return o;switch(o){case C:return this.line++,this.column=0,this.positionAtNewLine=this.position,C;case 13:return t.charCodeAt(e+1)===C&&(this.i=e+2),this.line++,this.column=0,this.positionAtNewLine=this.position,b;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const s=65536+1024*(o-55296)+(t.charCodeAt(e+1)-56320);return this.i=e+2,s>1114111&&this.fail("disallowed character."),s}getCode11(){const{chunk:t,i:e}=this;if(this.prevI=e,this.i=e+1,e>=t.length)return w;const o=t.charCodeAt(e);if(this.column++,o<55296){if(o>31&&o<127||o>159&&8232!==o||9===o)return o;switch(o){case C:return this.line++,this.column=0,this.positionAtNewLine=this.position,C;case 13:{const o=t.charCodeAt(e+1);o!==C&&133!==o||(this.i=e+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,b;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const s=65536+1024*(o-55296)+(t.charCodeAt(e+1)-56320);return this.i=e+2,s>1114111&&this.fail("disallowed character."),s}getCodeNorm(){const t=this.getCode();return t===b?C:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:e}=this;const{chunk:o}=this;for(;;){const s=this.getCode(),n=s===b,r=n?C:s;if(r===w||t.includes(r))return this.text+=o.slice(e,this.prevI),r;n&&(this.text+=`${o.slice(e,this.prevI)}\n`,e=this.i)}}captureToChar(t){let{i:e}=this;const{chunk:o}=this;for(;;){let s=this.getCode();switch(s){case b:this.text+=`${o.slice(e,this.prevI)}\n`,e=this.i,s=C;break;case w:return this.text+=o.slice(e),!1}if(s===t)return this.text+=o.slice(e,this.prevI),!0}}captureNameChars(){const{chunk:t,i:e}=this;for(;;){const o=this.getCode();if(o===w)return this.name+=t.slice(e),w;if(!c(o))return this.name+=t.slice(e,this.prevI),o===b?C:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===w||!i(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,"1.0"===t?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=h,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,e=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),e){case S:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case w:break;default:this.unget(),this.state=y,this.xmlDeclPossible=!1}}sDoctype(){var t;const e=this.captureTo(L);switch(e){case T:null===(t=this.doctypeHandler)||void 0===t||t.call(this,this.text),this.text="",this.state=y,this.doctype=!0;break;case w:break;default:this.text+=String.fromCodePoint(e),91===e?this.state=4:R(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(D);t!==w&&(this.text+=String.fromCodePoint(t),t===F?this.state=2:t===S?this.state=6:R(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case P:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),e=this.openWakaBang+=t;this.text+=t,"-"!==e&&(this.state="--"===e?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=45===t?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===T?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(P)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===T&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:e}=this;t:for(;;)switch(this.getCode()){case b:this.entity+=`${e.slice(t,this.prevI)}\n`,t=this.i;break;case 59:{const{entityReturnState:o}=this,s=this.entity+e.slice(t,this.prevI);let n;this.state=o,""===s?(this.fail("empty entity name."),n="&;"):(n=this.parseEntity(s),this.entity=""),o===y&&void 0===this.textHandler||(this.text+=n);break t}case w:this.entity+=e.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(l(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case P:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=y,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var t;const e=this.getCodeNorm();45===e?(this.state=19,null===(t=this.commentHandler)||void 0===t||t.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==T?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=y}sCData(){this.captureToChar(F)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===F?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){var t;const e=this.getCodeNorm();switch(e){case T:null===(t=this.cdataHandler)||void 0===t||t.call(this,this.text),this.text="",this.state=y;break;case F:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===P||i(t)?(this.fail("processing instruction without a target."),this.state=t===P?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:e}=this;for(;;){const o=this.getCodeNorm();if(o===w)return void(this.piTarget+=t.slice(e));if(!this.nameCheck(o)){this.piTarget+=t.slice(e,this.prevI);const s=o===P;s||i(o)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=s?k:27):this.state=s?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(0===this.text.length){const t=this.getCodeNorm();t===P?this.state=26:i(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(P)&&(this.state=26)}sPIEnding(){var t;const e=this.getCodeNorm();if(e===T){const{piTarget:e}=this;"xml"===e.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(t=this.piHandler)||void 0===t||t.call(this,{target:e,body:this.text}),this.piTarget=this.text="",this.state=y}else e===P?this.text+="?":(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==P?t!==w&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=k}sXMLDeclName(){const t=this.captureTo(A);if(t===P)return this.state=k,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(i(t)||t===I){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===I?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===P)return this.state=k,void this.fail("XML declaration is incomplete.");i(t)||(t!==I&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===P)return this.state=k,void this.fail("XML declaration is incomplete.");i(t)||(R(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,P]);if(t===P)return this.state=k,this.text="",void this.fail("XML declaration is incomplete.");if(t===w)return;const e=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const t=e;this.xmlDecl.version=t,/^1\.[0-9]+$/.test(t)?this.opt.forceXMLVersion||this.setXMLVersion(t):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(e)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=e;break;case"standalone":"yes"!==e&&"no"!==e&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=e}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==P?(i(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=k}sXMLDeclEnding(){var t;this.getCodeNorm()===T?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(t=this.xmldeclHandler)||void 0===t||t.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=y):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var t;const e=this.captureNameChars();if(e===w)return;const o=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=o.ns=Object.create(null)),null===(t=this.openTagStartHandler)||void 0===t||t.call(this,o),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),e){case T:this.openTag();break;case 47:this.state=35;break;default:i(e)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===T?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==w&&(l(t)?(this.unget(),this.state=37):t===T?this.openTag():47===t?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===I?this.state=39:i(t)?this.state=38:t===T?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==w&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case w:return;case I:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===T?this.openTag():l(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();R(t)?(this.q=t,this.state=40):i(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:e}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+e.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=e.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case C:case b:case 9:this.text+=`${e.slice(o,this.prevI)} `,o=this.i;break;case S:return this.text+=e.slice(o,this.prevI),void this.fail("disallowed character.");case w:return void(this.text+=e.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();i(t)?this.state=36:t===T?this.openTag():47===t?this.state=35:l(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(E);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case S:this.fail("disallowed character.");break;case w:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===T?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===T?this.closeTag():i(t)?this.state=44:t!==w&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case T:this.closeTag();break;case w:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:e}=this;const{chunk:o,textHandler:s}=this;t:for(;;)switch(this.getCode()){case S:if(this.state=15,void 0!==s){const{text:e}=this,n=o.slice(t,this.prevI);0!==e.length?(s(e+n),this.text=""):0!==n.length&&s(n)}e=0;break t;case 38:this.state=14,this.entityReturnState=y,void 0!==s&&(this.text+=o.slice(t,this.prevI)),e=0;break t;case F:switch(e){case 0:e=1;break;case 1:e=2;break;case 2:break;default:throw new Error("impossible state")}break;case T:2===e&&this.fail('the string "]]>" is disallowed in char data.'),e=0;break;case b:void 0!==s&&(this.text+=`${o.slice(t,this.prevI)}\n`),t=this.i,e=0;break;case w:void 0!==s&&(this.text+=o.slice(t));break t;default:e=0}this.forbiddenState=e}handleTextOutsideRoot(){let{i:t}=this;const{chunk:e,textHandler:o}=this;let s=!1;t:for(;;){const n=this.getCode();switch(n){case S:if(this.state=15,void 0!==o){const{text:s}=this,n=e.slice(t,this.prevI);0!==s.length?(o(s+n),this.text=""):0!==n.length&&o(n)}break t;case 38:this.state=14,this.entityReturnState=y,void 0!==o&&(this.text+=e.slice(t,this.prevI)),s=!0;break t;case b:void 0!==o&&(this.text+=`${e.slice(t,this.prevI)}\n`),t=this.i;break;case w:void 0!==o&&(this.text+=e.slice(t));break t;default:i(n)||(s=!0)}}s&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,e){var o;const{prefix:s,local:n}=this.qname(t),r={name:t,prefix:s,local:n,value:e};if(this.attribList.push(r),null===(o=this.attributeHandler)||void 0===o||o.call(this,r),"xmlns"===s){const t=e.trim();"1.0"===this.currentXMLVersion&&""===t&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=t,O(this,n,t)}else if("xmlns"===t){const t=e.trim();this.topNS[""]=t,O(this,"",t)}}pushAttribPlain(t,e){var o;const s={name:t,value:e};this.attribList.push(s),null===(o=this.attributeHandler)||void 0===o||o.call(this,s)}end(){var t,e;this.sawRoot||this.fail("document must contain a root element.");const{tags:o}=this;for(;o.length>0;){const t=o.pop();this.fail(`unclosed tag: ${t.name}`)}0!==this.state&&this.state!==y&&this.fail("unexpected end.");const{text:s}=this;return 0!==s.length&&(null===(t=this.textHandler)||void 0===t||t.call(this,s),this.text=""),this._closed=!0,null===(e=this.endHandler)||void 0===e||e.call(this),this._init(),this}resolve(t){var e,o;let s=this.topNS[t];if(void 0!==s)return s;const{tags:n}=this;for(let e=n.length-1;e>=0;e--)if(s=n[e].ns[t],void 0!==s)return s;return s=this.ns[t],void 0!==s?s:null===(o=(e=this.opt).resolvePrefix)||void 0===o?void 0:o.call(e,t)}qname(t){const e=t.indexOf(":");if(-1===e)return{prefix:"",local:t};const o=t.slice(e+1),s=t.slice(0,e);return(""===s||""===o||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:s,local:o}}processAttribsNS(){var t;const{attribList:e}=this,o=this.tag;{const{prefix:e,local:s}=this.qname(o.name);o.prefix=e,o.local=s;const n=o.uri=null!==(t=this.resolve(e))&&void 0!==t?t:"";""!==e&&("xmlns"===e&&this.fail('tags may not have "xmlns" as prefix.'),""===n&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),o.uri=e))}if(0===e.length)return;const{attributes:s}=o,n=new Set;for(const t of e){const{name:e,prefix:o,local:r}=t;let i,a;""===o?(i="xmlns"===e?g:"",a=e):(i=this.resolve(o),void 0===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),i=o),a=`{${i}}${r}`),n.has(a)&&this.fail(`duplicate attribute: ${a}.`),n.add(a),t.uri=i,s[e]=t}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,e=this.tag.attributes;for(const{name:o,value:s}of t)void 0!==e[o]&&this.fail(`duplicate attribute: ${o}.`),e[o]=s;this.attribList=[]}openTag(){var t;this.processAttribs();const{tags:e}=this,o=this.tag;o.isSelfClosing=!1,null===(t=this.openTagHandler)||void 0===t||t.call(this,o),e.push(o),this.state=y,this.name=""}openSelfClosingTag(){var t,e,o;this.processAttribs();const{tags:s}=this,n=this.tag;n.isSelfClosing=!0,null===(t=this.openTagHandler)||void 0===t||t.call(this,n),null===(e=this.closeTagHandler)||void 0===e||e.call(this,n);null===(this.tag=null!==(o=s[s.length-1])&&void 0!==o?o:null)&&(this.closedRoot=!0),this.state=y,this.name=""}closeTag(){const{tags:t,name:e}=this;if(this.state=y,this.name="",""===e)return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let s=t.length;for(;s-- >0;){const s=this.tag=t.pop();if(this.topNS=s.ns,null==o||o(s),s.name===e)break;this.fail("unexpected close tag.")}0===s?this.closedRoot=!0:s<0&&(this.fail(`unmatched closing tag: ${e}.`),this.text+=`</${e}>`)}parseEntity(t){if("#"!==t[0]){const e=this.ENTITIES[t];return void 0!==e?e:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let e=NaN;return"x"===t[1]&&/^#x[0-9a-f]+$/i.test(t)?e=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(e=parseInt(t.slice(1),10)),this.isChar(e)?String.fromCodePoint(e):(this.fail("malformed character entity."),`&${t};`)}}},31487(t,e){e.VC="\t\n\r --�𐀀-",e.S=" \t\r\n",e.Oh=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",e.vw="-"+e.Oh+".0-9·̀-ͯ‿-⁀",new RegExp("^["+e.VC+"]$","u"),new RegExp("^["+e.S+"]+$","u"),new RegExp("^["+e.Oh+"]$","u"),new RegExp("^["+e.vw+"]$","u"),e.NAME_RE=new RegExp("^["+e.Oh+"]["+e.vw+"]*$","u"),new RegExp("^["+e.vw+"]+$","u");function o(t){return t>=65&&t<=90||t>=97&&t<=122||58===t||95===t||8204===t||8205===t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}e.S_LIST=[32,10,13,9],e.isChar=function(t){return t>=32&&t<=55295||10===t||13===t||9===t||t>=57344&&t<=65533||t>=65536&&t<=1114111},e.isS=function(t){return 32===t||10===t||13===t||9===t},e.isNameStartChar=o,e.isNameChar=function(t){return o(t)||t>=48&&t<=57||45===t||46===t||183===t||t>=768&&t<=879||t>=8255&&t<=8256}},84797(t,e){e.VC="--�𐀀-",e.xA="-\b\v\f---",e.S=" \t\r\n",e.Oh=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",e.vw="-"+e.Oh+".0-9·̀-ͯ‿-⁀",new RegExp("^["+e.VC+"]$","u"),new RegExp("^["+e.xA+"]$","u"),new RegExp("^["+e.S+"]+$","u"),new RegExp("^["+e.Oh+"]$","u"),new RegExp("^["+e.vw+"]$","u"),new RegExp("^["+e.Oh+"]["+e.vw+"]*$","u"),new RegExp("^["+e.vw+"]+$","u");function o(t){return t>=65&&t<=90||t>=97&&t<=122||58===t||95===t||8204===t||8205===t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}e.isChar=function(t){return t>=1&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111}},60446(t,e){function o(t){return t>=65&&t<=90||95===t||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}e.gP="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",e.xK="-"+e.gP+".0-9·̀-ͯ‿-⁀",new RegExp("^["+e.gP+"]$","u"),new RegExp("^["+e.xK+"]$","u"),e.NC_NAME_RE=new RegExp("^["+e.gP+"]["+e.xK+"]*$","u"),e.isNCNameStartChar=o,e.isNCNameChar=function(t){return o(t)||45===t||46===t||t>=48&&t<=57||183===t||t>=768&&t<=879||t>=8255&&t<=8256}},67450(t,e,o){o.d(e,{A:()=>h,E:()=>u,N:()=>i,O:()=>f,b:()=>a,c:()=>l,k:()=>d});var s=o(36326),n=o(75719),r=o(57409);function i(t){let e="";for(const o of t)e+=o.text;return e}function a(t,e,o=null,r=0){return((t,e)=>{if(!Number.isInteger(t)||t<1||t>1048576)throw new s.s(`Cell row ${t} out of range [1, ${n.n}]`);if(!Number.isInteger(e)||e<1||e>16384)throw new s.s(`Cell col ${e} out of range [1, 16384]`)})(t,e),{row:t,col:e,value:o,styleId:r}}function l(t){return`${(0,n.a)(t.col)}${t.row}`}const c=(t,e)=>{const o=(0,r.r)(e,t);if(0===o.length)throw new s.s(`${t}: formula text must not be empty (got ${JSON.stringify(e)})`);return o};function d(t,e,o){t.value=function(t,e){return Object.freeze({kind:"formula",t:"normal",formula:c("makeFormula",t),...void 0!==e?.cachedValue?{cachedValue:e.cachedValue}:{},...void 0!==e?.cachedValueType?{cachedValueType:e.cachedValueType}:{}})}(e,o)}function u(t,e,o,s){t.value=function(t,e,o){return Object.freeze({kind:"formula",t:"array",formula:c("makeArrayFormula",e),ref:t,...void 0!==o?.cachedValue?{cachedValue:o.cachedValue}:{},...void 0!==o?.cachedValueType?{cachedValueType:o.cachedValueType}:{}})}(e,o,s)}function h(t,e,o,n,i){t.value=function(t,e,o,n){if(!Number.isInteger(t)||t<0)throw new s.s(`makeSharedFormula: si must be a non-negative integer; got ${t}`);return Object.freeze({kind:"formula",t:"shared",formula:void 0===e?"":(0,r.r)(e,"makeSharedFormula"),si:t,...void 0!==o?{ref:o}:{},...void 0!==n?.cachedValue?{cachedValue:n.cachedValue}:{},...void 0!==n?.cachedValueType?{cachedValueType:n.cachedValueType}:{}})}(e,o,n,i)}function f(t,e,o){t.value=function(t,e){return Object.freeze({kind:"formula",t:"dataTable",formula:(0,r.r)(t,"makeDataTableFormula"),ref:e.ref,...void 0!==e.r1?{r1:e.r1}:{},...void 0!==e.r2?{r2:e.r2}:{},...void 0!==e.dt2D?{dt2D:e.dt2D}:{},...void 0!==e.dtr?{dtr:e.dtr}:{},...void 0!==e.del1?{del1:e.del1}:{},...void 0!==e.del2?{del2:e.del2}:{},...void 0!==e.aca?{aca:e.aca}:{},...void 0!==e.ca?{ca:e.ca}:{},...void 0!==e.cachedValue?{cachedValue:e.cachedValue}:{},...void 0!==e.cachedValueType?{cachedValueType:e.cachedValueType}:{}})}(e,o)}},88539(t,e,o){o.d(e,{Ri:()=>d,Rr:()=>H,Tn:()=>et,_r:()=>q,cr:()=>K,gr:()=>G,hr:()=>Z,nr:()=>J,or:()=>Q,pr:()=>X,ri:()=>k,sr:()=>Y,ui:()=>y,un:()=>tt,xi:()=>f,xr:()=>_,zi:()=>u});var s=o(36326),n=o(75719),r=o(67450);const i=Object.freeze({0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",5:'"$"#,##0_);("$"#,##0)',6:'"$"#,##0_);[Red]("$"#,##0)',7:'"$"#,##0.00_);("$"#,##0.00)',8:'"$"#,##0.00_);[Red]("$"#,##0.00)',9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"mm-dd-yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0_);(#,##0)",38:"#,##0_);[Red](#,##0)",39:"#,##0.00_);(#,##0.00)",40:"#,##0.00_);[Red](#,##0.00)",41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',45:"mm:ss",46:"[h]:mm:ss",47:"mm:ss.0",48:"##0.0E+0",49:"@"});new Map(Object.entries(i).map(([t,e])=>[e,Number(t)]));const a=new RegExp('\\[(BLACK|BLUE|CYAN|GREEN|MAGENTA|RED|WHITE|YELLOW)\\]|"[^"]*"|\\[(?!hh?\\]|mm?\\]|ss?\\])[^\\]]*\\]',"g"),l=/(?<![_\\])(?:[dmhysDMHYS]|g(?!eneral)|[aA]{3})/,c=/\[hh?\](:mm(:ss(\.0*)?)?)?|\[mm?\](:ss(\.0*)?)?|\[ss?\](\.0*)?/i;function d(t){if(null==t)return!1;const e=(t.split(";")[0]??"").replace(a,"");return l.test(e)}function u(t){if(null==t)return!1;const e=t.split(";")[0]??"";return c.test(e)}const h=(t,e)=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const o=e,s=Object.keys(o).sort(),n={};for(const t of s)n[t]=o[t];return n};function f(t){return JSON.stringify(t,h)}const p=Object.freeze(["general","left","center","right","fill","justify","centerContinuous","distributed"]),m=Object.freeze(["top","center","bottom","justify","distributed"]),v=new Set(p),g=new Set(m);function x(t={}){const e={};if(void 0!==t.horizontal){if(!v.has(t.horizontal))throw new s.s(`Alignment horizontal must be one of [${p.join(", ")}]; got "${t.horizontal}"`);e.horizontal=t.horizontal}if(void 0!==t.vertical){if(!g.has(t.vertical))throw new s.s(`Alignment vertical must be one of [${m.join(", ")}]; got "${t.vertical}"`);e.vertical=t.vertical}if(void 0!==t.textRotation){const o=t.textRotation;if(!Number.isInteger(o)||o<0||o>180&&255!==o)throw new s.s(`Alignment textRotation must be 0..180 or 255; got ${o}`);e.textRotation=o}if(void 0!==t.wrapText&&(e.wrapText=t.wrapText),void 0!==t.shrinkToFit&&(e.shrinkToFit=t.shrinkToFit),void 0!==t.indent){if(!Number.isFinite(t.indent)||t.indent<0||t.indent>255)throw new s.s(`Alignment indent must be 0..255; got ${t.indent}`);e.indent=t.indent}if(void 0!==t.relativeIndent){const o=t.relativeIndent;if(!Number.isFinite(o)||o<-255||o>255)throw new s.s(`Alignment relativeIndent must be -255..255; got ${o}`);e.relativeIndent=o}if(void 0!==t.justifyLastLine&&(e.justifyLastLine=t.justifyLastLine),void 0!==t.readingOrder){if(!Number.isFinite(t.readingOrder)||t.readingOrder<0)throw new s.s(`Alignment readingOrder must be >= 0; got ${t.readingOrder}`);e.readingOrder=t.readingOrder}return Object.freeze(e)}x();const $=Object.freeze(["00000000","00FFFFFF","00FF0000","0000FF00","000000FF","00FFFF00","00FF00FF","0000FFFF","00000000","00FFFFFF","00FF0000","0000FF00","000000FF","00FFFF00","00FF00FF","0000FFFF","00800000","00008000","00000080","00808000","00800080","00008080","00C0C0C0","00808080","009999FF","00993366","00FFFFCC","00CCFFFF","00660066","00FF8080","000066CC","00CCCCFF","00000080","00FF00FF","00FFFF00","0000FFFF","00800080","00800000","00008080","000000FF","0000CCFF","00CCFFFF","00CCFFCC","00FFFF99","0099CCFF","00FF99CC","00CC99FF","00FFCC99","003366FF","0033CCCC","0099CC00","00FFCC00","00FF9900","00FF6600","00666699","00969696","00003366","00339966","00003300","00333300","00993300","00993366","00333399","00333333"]),w=/^([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6})$/;function b(t){if("string"!=typeof t||!w.test(t))throw new s.s(`Color rgb must be 6 or 8 hex digits; got "${t}"`);return(6===t.length?`00${t}`:t).toUpperCase()}function y(t={}){const e={};if(void 0!==t.rgb&&(e.rgb=b(t.rgb)),void 0!==t.indexed){if(!Number.isInteger(t.indexed)||t.indexed<0||t.indexed>65)throw new s.s(`Color indexed must be in [0, 65]; got ${t.indexed}`);e.indexed=t.indexed}if(void 0!==t.theme){if(!Number.isInteger(t.theme)||t.theme<0)throw new s.s(`Color theme must be a non-negative integer; got ${t.theme}`);e.theme=t.theme}if(void 0!==t.auto&&(e.auto=t.auto),void 0!==t.tint){if(!Number.isFinite(t.tint)||t.tint<-1||t.tint>1)throw new s.s(`Color tint must be in [-1, 1]; got ${t.tint}`);e.tint=t.tint}return Object.freeze(e)}function k(t){if(t){if(void 0!==t.rgb)return b(t.rgb);if(void 0!==t.indexed){const o=(e=t.indexed,$[e]);if(o)return o.toUpperCase()}var e}}const C=Object.freeze(["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"]),S=new Set(C);function I(t={}){const e={};if(void 0!==t.style){if(!S.has(t.style))throw new s.s(`Side style must be one of [${C.join(", ")}]; got "${t.style}"`);e.style=t.style}return void 0!==t.color&&(e.color=Object.isFrozen(t.color)?t.color:y(t.color)),Object.freeze(e)}function T(t={}){const e={};return void 0!==t.left&&(e.left=P(t.left)),void 0!==t.right&&(e.right=P(t.right)),void 0!==t.top&&(e.top=P(t.top)),void 0!==t.bottom&&(e.bottom=P(t.bottom)),void 0!==t.diagonal&&(e.diagonal=P(t.diagonal)),void 0!==t.vertical&&(e.vertical=P(t.vertical)),void 0!==t.horizontal&&(e.horizontal=P(t.horizontal)),void 0!==t.diagonalUp&&(e.diagonalUp=t.diagonalUp),void 0!==t.diagonalDown&&(e.diagonalDown=t.diagonalDown),void 0!==t.outline&&(e.outline=t.outline),Object.freeze(e)}const P=t=>Object.isFrozen(t)?t:I(t);I();const F=T();const R=Object.freeze(["none","solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"]),N=new Set(R);function L(t={}){const e={kind:"pattern"};if(void 0!==t.patternType){if(!N.has(t.patternType))throw new s.s(`PatternFill patternType must be one of [${R.join(", ")}]; got "${t.patternType}"`);e.patternType=t.patternType}return void 0!==t.fgColor&&(e.fgColor=E(t.fgColor)),void 0!==t.bgColor&&(e.bgColor=E(t.bgColor)),Object.freeze(e)}const D=L(),A=L({patternType:"gray125"}),E=t=>Object.isFrozen(t)?t:y(t);const O=Object.freeze(["single","double","singleAccounting","doubleAccounting","none"]),j=Object.freeze(["baseline","superscript","subscript"]),M=Object.freeze(["major","minor"]),z=new Set(O),V=new Set(j),B=new Set(M);function W(t={}){const e={};if(void 0!==t.name){if("string"!=typeof t.name)throw new s.s("Font name must be a string; got "+typeof t.name);e.name=t.name}if(void 0!==t.charset){if(!Number.isInteger(t.charset))throw new s.s(`Font charset must be an integer; got ${t.charset}`);e.charset=t.charset}if(void 0!==t.family){if(!Number.isInteger(t.family)||t.family<0||t.family>14)throw new s.s(`Font family must be 0..14; got ${t.family}`);e.family=t.family}if(void 0!==t.size){if(!Number.isFinite(t.size)||t.size<=0)throw new s.s(`Font size must be positive; got ${t.size}`);e.size=t.size}if(void 0!==t.color&&(e.color=Object.isFrozen(t.color)?t.color:y(t.color)),void 0!==t.bold&&(e.bold=t.bold),void 0!==t.italic&&(e.italic=t.italic),void 0!==t.strike&&(e.strike=t.strike),void 0!==t.outline&&(e.outline=t.outline),void 0!==t.shadow&&(e.shadow=t.shadow),void 0!==t.condense&&(e.condense=t.condense),void 0!==t.extend&&(e.extend=t.extend),void 0!==t.underline){if(!z.has(t.underline))throw new s.s(`Font underline must be one of [${O.join(", ")}]; got "${t.underline}"`);e.underline=t.underline}if(void 0!==t.vertAlign){if(!V.has(t.vertAlign))throw new s.s(`Font vertAlign must be one of [${j.join(", ")}]; got "${t.vertAlign}"`);e.vertAlign=t.vertAlign}if(void 0!==t.scheme){if(!B.has(t.scheme))throw new s.s(`Font scheme must be one of [${M.join(", ")}]; got "${t.scheme}"`);e.scheme=t.scheme}return Object.freeze(e)}const U=W({name:"Calibri",size:11,family:2,scheme:"minor",color:y({theme:1})});function H(){const t=f(U),e=f(D),o=f(A),s=f(F);return{fonts:[U],fills:[D,A],borders:[F],numFmts:new Map,cellXfs:[],cellStyleXfs:[],_fontIdByKey:new Map([[t,0]]),_fillIdByKey:new Map([[e,0],[o,1]]),_borderIdByKey:new Map([[s,0]]),_xfIdByKey:new Map,_styleXfIdByKey:new Map,_numFmtIdByCode:new Map}}function X(t,e,o,r){if(!(Number.isInteger(t)&&Number.isInteger(e)&&Number.isInteger(o)&&Number.isInteger(r)))throw new s.s("CellRange bounds must be integers");if(t<1||o<1||t>1048576||o>1048576)throw new s.s(`CellRange row bounds must be in [1, ${n.n}]`);if(e<1||r<1||e>16384||r>16384)throw new s.s("CellRange col bounds must be in [1, 16384]");return{minRow:Math.min(t,o),minCol:Math.min(e,r),maxRow:Math.max(t,o),maxCol:Math.max(e,r)}}function q(t){return"string"==typeof t?(0,n._)(t):X(t.minRow,t.minCol,t.maxRow,t.maxCol)}function _(t){return(0,n.r)(t)}function G(t){const e=[];for(const o of t.split(/\s+/))0!==o.length&&e.push(q(o));return{ranges:e}}function Z(t){return t.ranges.map(_).join(" ")}function Y(t,e={}){return{min:t,max:t,...void 0!==e.width?{width:e.width}:{},...void 0!==e.customWidth?{customWidth:e.customWidth}:{},...void 0!==e.hidden?{hidden:e.hidden}:{},...void 0!==e.bestFit?{bestFit:e.bestFit}:{},...void 0!==e.outlineLevel?{outlineLevel:e.outlineLevel}:{},...void 0!==e.style?{style:e.style}:{},...void 0!==e.collapsed?{collapsed:e.collapsed}:{}}}function K(t={}){return{...void 0!==t.height?{height:t.height}:{},...void 0!==t.customHeight?{customHeight:t.customHeight}:{},...void 0!==t.hidden?{hidden:t.hidden}:{},...void 0!==t.outlineLevel?{outlineLevel:t.outlineLevel}:{},...void 0!==t.collapsed?{collapsed:t.collapsed}:{},...void 0!==t.style?{style:t.style}:{}}}function Q(t={}){return{workbookViewId:t.workbookViewId??0,...void 0!==t.tabSelected?{tabSelected:t.tabSelected}:{},...void 0!==t.showGridLines?{showGridLines:t.showGridLines}:{},...void 0!==t.showRowColHeaders?{showRowColHeaders:t.showRowColHeaders}:{},...void 0!==t.showFormulas?{showFormulas:t.showFormulas}:{},...void 0!==t.showZeros?{showZeros:t.showZeros}:{},...void 0!==t.rightToLeft?{rightToLeft:t.rightToLeft}:{},...void 0!==t.showOutlineSymbols?{showOutlineSymbols:t.showOutlineSymbols}:{},...void 0!==t.view?{view:t.view}:{},...void 0!==t.topLeftCell?{topLeftCell:t.topLeftCell}:{},...void 0!==t.zoomScale?{zoomScale:t.zoomScale}:{},...void 0!==t.zoomScaleNormal?{zoomScaleNormal:t.zoomScaleNormal}:{},...t.pane?{pane:t.pane}:{},...t.selections?{selections:t.selections}:{}}}function J(t){return{ref:t.ref,author:t.author,text:t.text}}function tt(t){if("string"!=typeof t||0===t.length)throw new s.s("Worksheet title must be a non-empty string");return{title:t,rows:new Map,_appendRowCursor:0,mergedCells:[],views:[],columnDimensions:new Map,rowDimensions:new Map,hyperlinks:[],dataValidations:[],tables:[],legacyComments:[],threadedComments:[],conditionalFormatting:[],cellWatches:[],ignoredErrors:[],rowBreaks:[],colBreaks:[],customProperties:[],webPublishItems:[],protectedRanges:[],smartTags:[],customSheetViews:[],oleObjects:[],controls:[],sparklineGroups:[]}}function et(t,e,o,s,n){let i=t.rows.get(e),a=i?.get(o);return void 0===a?(a=(0,r.b)(e,o,s,n??0),void 0===i&&(i=new Map,t.rows.set(e,i)),i.set(o,a)):(a.value=s,void 0!==n&&(a.styleId=n)),e>t._appendRowCursor&&(t._appendRowCursor=e),a}const ot=W({name:"Calibri",family:2,size:12,color:y({theme:1}),scheme:"minor"}),st=(t,e=!0)=>L(e?{patternType:"solid",bgColor:y({rgb:t}),fgColor:y({rgb:t})}:{patternType:"solid"});Object.freeze({Normal:{name:"Normal",builtinId:0,font:ot},Good:{name:"Good",builtinId:26,font:W({...ot,color:y({rgb:"FF006100"})}),fill:st("FFC6EFCE")},Bad:{name:"Bad",builtinId:27,font:W({...ot,color:y({rgb:"FF9C0006"})}),fill:st("FFFFC7CE")},Neutral:{name:"Neutral",builtinId:28,font:W({...ot,color:y({rgb:"FF9C5700"})}),fill:st("FFFFEB9C")},Calculation:{name:"Calculation",builtinId:22,font:W({...ot,bold:!0,color:y({rgb:"FFFA7D00"})}),fill:st("FFF2F2F2")},"Check Cell":{name:"Check Cell",builtinId:23,font:W({...ot,bold:!0,color:y({rgb:"FFFFFFFF"})}),fill:st("FFA5A5A5")},"Linked Cell":{name:"Linked Cell",builtinId:24,font:W({...ot,color:y({rgb:"FFFA7D00"})})},Note:{name:"Note",builtinId:10,font:ot,fill:st("FFFFFFC0")},"Warning Text":{name:"Warning Text",builtinId:11,font:W({...ot,color:y({rgb:"FFFF0000"})})},Input:{name:"Input",builtinId:20,font:W({...ot,color:y({rgb:"FF3F3F76"})}),fill:st("FFFFCC99")},Output:{name:"Output",builtinId:21,font:W({...ot,bold:!0,color:y({rgb:"FF3F3F3F"})}),fill:st("FFF2F2F2")},"Explanatory Text":{name:"Explanatory Text",builtinId:53,font:W({...ot,italic:!0,color:y({rgb:"FF7F7F7F"})})},Title:{name:"Title",builtinId:15,font:W({name:"Cambria",family:2,size:18,scheme:"major",color:y({theme:3})})},"Headline 1":{name:"Headline 1",builtinId:16,font:W({...ot,bold:!0,size:15,color:y({theme:3})})},"Headline 2":{name:"Headline 2",builtinId:17,font:W({...ot,bold:!0,size:13,color:y({theme:3})})},"Headline 3":{name:"Headline 3",builtinId:18,font:W({...ot,bold:!0,color:y({theme:3})})},"Headline 4":{name:"Headline 4",builtinId:19,font:W({...ot,bold:!0,italic:!0,color:y({theme:3})})},Total:{name:"Total",builtinId:25,font:W({...ot,bold:!0})},Comma:{name:"Comma",builtinId:3,font:ot,numberFormat:"#,##0.00"},"Comma [0]":{name:"Comma [0]",builtinId:6,font:ot,numberFormat:"#,##0"},Currency:{name:"Currency",builtinId:4,font:ot,numberFormat:'"$"#,##0.00'},"Currency [0]":{name:"Currency [0]",builtinId:7,font:ot,numberFormat:'"$"#,##0'},Percent:{name:"Percent",builtinId:5,font:ot,numberFormat:"0%"},Hyperlink:{name:"Hyperlink",builtinId:8,font:W({...ot,underline:"single",color:y({theme:10})})},"Followed Hyperlink":{name:"Followed Hyperlink",builtinId:9,font:W({...ot,underline:"single",color:y({theme:11})})}});!function(t={}){const e={};void 0!==t.locked&&(e.locked=t.locked),void 0!==t.hidden&&(e.hidden=t.hidden),Object.freeze(e)}({locked:!0,hidden:!1});o.d(e,["Br",0,M,"Gr",0,R,"Hr",0,j,"Si",0,i,"Vr",0,O,"Zr",0,C,"_i",0,p,"vi",0,m])},75719(t,e,o){o.d(e,{_:()=>$,a:()=>a,c:()=>x,i:()=>l,l:()=>y,r:()=>w,s:()=>f,v:()=>g,y:()=>p});var s=o(36326);const n=1048576,r=new Map,i=new Map;function a(t){const e=i.get(t);if(void 0!==e)return e;if(!Number.isInteger(t)||t<1||t>16384)throw new s.s(`column index ${t} is out of range [1, 16384]`);let o=t,n="";for(;o>0;)o-=1,n=String.fromCharCode(65+o%26)+n,o=Math.floor(o/26);return i.set(t,n),n}function l(t){const e=r.get(t);if(void 0!==e)return e;if(0===t.length||t.length>3)throw new s.s(`column letter "${t}" is empty or too long`);let o=0;for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);let r;if(n>=65&&n<=90)r=n-64;else{if(!(n>=97&&n<=122))throw new s.s(`column letter "${t}" contains non-letter char`);r=n-96}o=26*o+r}if(o<1||o>16384)throw new s.s(`column letter "${t}" expands to out-of-range index ${o}`);const n=t.toUpperCase();return r.set(n,o),n!==t&&r.set(t,o),o}const c=/^[$]?([A-Za-z]{1,3})[$]?([1-9][0-9]*)$/,d=/^[$]?([A-Za-z]{1,3}):[$]?([A-Za-z]{1,3})$/,u=/^[$]?([1-9][0-9]*):[$]?([1-9][0-9]*)$/;function h(t){const e=c.exec(t);if(null===e||void 0===e[1]||void 0===e[2])throw new s.s(`coordinateFromString: invalid coordinate "${t}"`);const o=e[1].toUpperCase(),n=Number.parseInt(e[2],10);if(n<1||n>1048576)throw new s.s(`coordinateFromString: row ${n} out of range`);return l(o),{column:o,row:n}}function f(t){let e=0,o=0;for(let s=t.charCodeAt(0);s>=65&&s<=90&&e<3;s=t.charCodeAt(++e))o=26*o+(s-64);const s=t.charCodeAt(e);if(e>0&&o<=16384&&s>=49&&s<=57&&t.length-e<=7){let s=0;for(;e<t.length;e++){const o=t.charCodeAt(e);if(o<48||o>57)break;s=10*s+(o-48)}if(e===t.length&&s<=1048576)return{col:o,row:s}}const n=h(t);return{col:l(n.column),row:n.row}}function p(t,e,o={}){if(!Number.isInteger(e)||e<1||e>1048576)throw new s.s(`tupleToCoordinate: row ${e} out of range`);const n=!0===o.absoluteCol?"$":"",r=!0===o.absoluteRow?"$":"";return`${n}${a(t)}${r}${e}`}function m(t){return"number"==typeof t&&Number.isInteger(t)&&t>=1&&t<=1048576}const v=/^[ \t\r\n]*\+?([0-9]+)[ \t\r\n]*$/;function g(t,e){const o=function(t){const e=v.exec(t)?.[1];if(void 0===e)return;const o=Number(e);return m(o)?o:void 0}(t);if(void 0===o)throw new s.s(`${e}: <row r="${t}"> is not a row number in [1, 1048576]`);return o}function x(t,e){if(!m(t))throw new s.s(`${e}: <row> without @r falls past the last row (1048576)`);return t}function $(t){const e=t.trim();if(0===e.length)throw new s.s("rangeBoundaries: empty range");const o=e.indexOf(":");if(o<0){const t=h(e),o=l(t.column);return{minCol:o,minRow:t.row,maxCol:o,maxRow:t.row}}const r=e.slice(0,o),i=e.slice(o+1),a=d.exec(e);if(null!==a&&void 0!==a[1]&&void 0!==a[2]){const t=l(a[1]),e=l(a[2]);return{minCol:Math.min(t,e),minRow:1,maxCol:Math.max(t,e),maxRow:n}}const c=u.exec(e);if(null!==c&&void 0!==c[1]&&void 0!==c[2]){const t=Number.parseInt(c[1],10),o=Number.parseInt(c[2],10);if(t<1||o<1||t>1048576||o>1048576)throw new s.s(`rangeBoundaries: row out of range in "${e}"`);return{minCol:1,minRow:Math.min(t,o),maxCol:16384,maxRow:Math.max(t,o)}}const f=h(r),p=h(i),m=l(f.column),v=l(p.column);return{minCol:Math.min(m,v),minRow:Math.min(f.row,p.row),maxCol:Math.max(m,v),maxRow:Math.max(f.row,p.row)}}function w(t,e={}){const o=p(t.minCol,t.minRow,e);return t.minCol===t.maxCol&&t.minRow===t.maxRow?o:`${o}:${p(t.maxCol,t.maxRow,e)}`}const b=/^[A-Za-z_][A-Za-z0-9_]*$/;function y(t,e){return b.test(t)?`${t}!${e}`:`${function(t){return`'${t.replace(/'/g,"''")}'`}(t)}!${e}`}o.d(e,["n",0,n])},10061(t,e,o){o.d(e,{i:()=>c,r:()=>l});var s=o(36326);const n=Date.UTC(1899,11,30),r=Date.UTC(1904,0,1),i=864e5,a=t=>"mac"===t?r:n;function l(t,e){const o=t.getTime();if(!Number.isFinite(o))throw new s.s("dateToExcel: invalid Date");const r=a(e?.epoch),l=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),c=Math.round((l-r)/i);return(r===n&&c<=60?c-1:c)+(o-l)/i}function c(t){if(!Number.isFinite(t))throw new s.s(`durationToExcel: ms "${t}" is not finite`);return t/i}},18092(t,e,o){function s(t){return t.dxfs??[]}o.d(e,{n:()=>s})},83543(t,e,o){o.d(e,{g:()=>k,o:()=>C});var s=o(36326);const n=(t,e,o=0)=>{if(t.length<o+e.length)return!1;for(let s=0;s<e.length;s++)if(t[o+s]!==e[s])return!1;return!0},r=[137,80,78,71,13,10,26,10],i=[255,216,255],a=[71,73,70,56,55,97],l=[71,73,70,56,57,97],c=[66,77],d=[82,73,70,70],u=[87,69,66,80],h=[73,73,42,0],f=[77,77,0,42],p=[1,0,0,0],m=[32,69,77,70],v=[215,205,198,154],g=[1,0,9,0];function x(t){return n(t,r)?"png":n(t,i)?"jpeg":n(t,a)||n(t,l)?"gif":n(t,c)?"bmp":n(t,d)&&n(t,u,8)?"webp":n(t,h)||n(t,f)?"tiff":n(t,p)&&n(t,m,40)?"emf":n(t,v)||n(t,g)?"wmf":(t=>{const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.subarray(0,Math.min(t.length,512)));return/<svg\b/i.test(e)})(t)?"svg":void 0}const $=(t,e)=>(t[e]??0)<<24|(t[e+1]??0)<<16|(t[e+2]??0)<<8|(t[e+3]??0),w=(t,e)=>(t[e]??0)|(t[e+1]??0)<<8,b=(t,e)=>(t[e]??0)<<8|(t[e+1]??0);function y(t,e){let o;switch(e){case"png":o=(t=>{if(!(t.length<24)&&73===t[12]&&72===t[13]&&68===t[14]&&82===t[15])return{width:$(t,16),height:$(t,20)}})(t);break;case"jpeg":o=(t=>{let e=2;for(;e+9<t.length;){if(255!==t[e])return;let o=t[e+1]??0;for(;255===o;)e+=1,o=t[e+1]??0;e+=2;const s=o>=192&&o<=207&&196!==o&&200!==o&&204!==o,n=b(t,e);if(s){if(e+7>t.length)return;const o=b(t,e+3);return{width:b(t,e+5),height:o}}e+=n}})(t);break;case"gif":o=(t=>{if(!(t.length<10))return{width:w(t,6),height:w(t,8)}})(t);break;case"bmp":o=(t=>{if(t.length<26)return;const e=(t[18]??0)|(t[19]??0)<<8|(t[20]??0)<<16|(t[21]??0)<<24,o=(t[22]??0)|(t[23]??0)<<8|(t[24]??0)<<16|(t[25]??0)<<24,s=(0|o)>>>0>2147483647?(0|o)-4294967296:o;return{width:(0|e)>>>0>2147483647?(0|e)-4294967296:e,height:Math.abs(s)}})(t);break;case"webp":o=(t=>{if(!(t.length<30)){if(86===t[12]&&80===t[13]&&56===t[14]&&32===t[15])return{width:16383&w(t,26),height:16383&w(t,28)};if(86===t[12]&&80===t[13]&&56===t[14]&&76===t[15]){if(t.length<25)return;const e=t[21]??0,o=t[22]??0;return{width:1+(16383&(e|o<<8)),height:1+(16383&(o>>6|(t[23]??0)<<2|(15&(t[24]??0))<<10))}}if(86===t[12]&&80===t[13]&&56===t[14]&&88===t[15]){if(t.length<30)return;return{width:1+((t[24]??0)|(t[25]??0)<<8|(t[26]??0)<<16),height:1+((t[27]??0)|(t[28]??0)<<8|(t[29]??0)<<16)}}}})(t);break;default:o=void 0}return o??{width:0,height:0}}function k(t,e={}){const o=e.format??x(t);if(!o)throw new s.a("loadImage: could not determine image format from bytes");const n=void 0!==e.width&&void 0!==e.height?{width:e.width,height:e.height}:y(t,o);return{bytes:t,format:o,width:n.width,height:n.height}}function C(t=[]){return{items:t}}o.d(e,["h",0,{png:"image/png",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",tiff:"image/tiff",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"},"m",0,{png:"png",jpeg:"jpeg",gif:"gif",bmp:"bmp",webp:"webp",tiff:"tiff",svg:"svg",emf:"emf",wmf:"wmf"}])},47513(t,e,o){o.d(e,{a:()=>d,i:()=>p,n:()=>h,r:()=>u,t:()=>l});var s=o(36326);const n="[\\x00-\\x1F\\u{D800}-\\u{DFFF}\\u{FFFE}\\u{FFFF}]",r=new RegExp(n,"gu"),i=new RegExp(`_(?=x[0-9A-Fa-f]{4}(?:_|${n}))`,"gu"),a=t=>t.toString(16).toUpperCase().padStart(4,"0");function l(t){return t.replace(i,"_x005F_").replace(r,t=>`_x${a(t.charCodeAt(0))}_`)}const c=/_x([0-9A-Fa-f]{4})_/g;function d(t){return t.replace(c,(t,e)=>String.fromCharCode(Number.parseInt(e,16)))}function u(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function h(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const f=/[\0-\x08\x0B\x0C\x0E-\x1F\p{Cs}\uFFFE\uFFFF]/u;function p(t,e,o){const n=f.exec(t);if(n)throw new s.s(`${e} at ${o} contains U+${a(t.charCodeAt(n.index))}, which XML 1.0 cannot represent`);return u(t).replace(/\r/g," ")}},36326(t,e,o){o.d(e,{a:()=>n,c:()=>a,n:()=>l,o:()=>i,r:()=>s,s:()=>r,t:()=>c});var s=class extends Error{name="OpenXmlError";constructor(t,e){super(t,e)}},n=class extends s{name="OpenXmlIoError"},r=class extends s{name="OpenXmlSchemaError"},i=class extends s{name="OpenXmlNotImplementedError"},a=class extends i{name="OpenXmlUnsupportedFormatError";format;constructor(t,e,o){super(e,o),this.format=t}},l=class extends n{name="OpenXmlDecompressionBombError"},c=class extends s{name="OpenXmlContentLimitError"}},29809(t,e,o){o.d(e,{J:()=>m,N:()=>$,P:()=>x,U:()=>h,W:()=>f,Y:()=>p,d:()=>y,n:()=>S,q:()=>u,t:()=>I,u:()=>k});var s=o(36326),n=o(79687),r=o(61924),i=o(92906),a=o(52541);const l=(0,n.i)({tagname:"Default",xmlNs:r.k,attrs:{ext:{kind:"string",xmlName:"Extension"},contentType:{kind:"string",xmlName:"ContentType"}},elements:[]}),c=(0,n.i)({tagname:"Override",xmlNs:r.k,attrs:{partName:{kind:"string",xmlName:"PartName"},contentType:{kind:"string",xmlName:"ContentType"}},elements:[]}),d=(0,n.i)({tagname:"Types",xmlNs:r.k,attrs:{},elements:[{kind:"sequence",key:"defaults",itemName:"Default",itemNs:r.k,itemSchema:()=>l},{kind:"sequence",key:"overrides",itemName:"Override",itemNs:r.k,itemSchema:()=>c}]});function u(){return{defaults:[],overrides:[]}}function h(t,e,o){for(const s of t.defaults)if(s.ext===e)return void(s.contentType!==o&&(s.contentType=o));t.defaults.push({ext:e,contentType:o})}function f(t,e,o){for(const s of t.overrides)if(s.partName===e)return void(s.contentType!==o&&(s.contentType=o));t.overrides.push({partName:e,contentType:o})}function p(t){return(0,a.t)((0,n.n)(t,d))}function m(t){return(0,n.t)((0,i.n)(t),d)}const v={[`{${r.At}}type`]:"dcterms:W3CDTF"},g=(0,n.i)({tagname:"coreProperties",xmlNs:r.A,attrs:{},elements:[{kind:"text",key:"category",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"contentStatus",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"keywords",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"lastModifiedBy",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"lastPrinted",xmlNs:r.z,primitive:"string",optional:!0,attrs:v},{kind:"text",key:"revision",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"version",xmlNs:r.A,primitive:"string",optional:!0},{kind:"text",key:"description",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"identifier",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"language",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"subject",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"title",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"creator",xmlNs:r.R,primitive:"string",optional:!0},{kind:"text",key:"created",xmlNs:r.z,primitive:"string",optional:!0,attrs:v},{kind:"text",key:"modified",xmlNs:r.z,primitive:"string",optional:!0,attrs:v}]});function x(t){return(0,a.t)((0,n.n)(t,g))}function $(t){return(0,n.t)((0,i.n)(t),g)}const w=`{${r.F}}property`,b=`{${r.F}}Properties`;function y(t){const e=(0,r.n)(b);for(const o of t.properties){const t=(0,r.n)(w,{fmtid:o.fmtid??"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:String(o.pid),name:o.name});t.children.push(o.value),e.children.push(t)}return(0,a.t)(e)}function k(t){const e=(0,i.n)(t);if(e.name!==b)throw new s.s(`customPropsFromBytes: expected <Properties>, got "${e.name}"`);const o=[];for(const t of e.children){if(t.name!==w)continue;const e=t.attrs.fmtid,n=t.attrs.pid,r=t.attrs.name;if(void 0===r||void 0===n)throw new s.s("custom.xml: <property> requires name and pid attributes");const i=Number.parseInt(n,10);if(!Number.isFinite(i))throw new s.s(`custom.xml: <property> pid is not an integer (got "${n}")`);const a=t.children[0];if(void 0===a)throw new s.s(`custom.xml: <property name="${r}"> has no typed-value child`);const l={name:r,pid:i,value:a};void 0!==e&&(l.fmtid=e),o.push(l)}return{properties:o}}const C=(0,n.i)({tagname:"Properties",xmlNs:r.kt,attrs:{},elements:[{kind:"text",key:"template",xmlNs:r.kt,name:"Template",primitive:"string",optional:!0},{kind:"text",key:"manager",xmlNs:r.kt,name:"Manager",primitive:"string",optional:!0},{kind:"text",key:"company",xmlNs:r.kt,name:"Company",primitive:"string",optional:!0},{kind:"text",key:"pages",xmlNs:r.kt,name:"Pages",primitive:"int",optional:!0},{kind:"text",key:"words",xmlNs:r.kt,name:"Words",primitive:"int",optional:!0},{kind:"text",key:"characters",xmlNs:r.kt,name:"Characters",primitive:"int",optional:!0},{kind:"text",key:"presentationFormat",xmlNs:r.kt,name:"PresentationFormat",primitive:"string",optional:!0},{kind:"text",key:"lines",xmlNs:r.kt,name:"Lines",primitive:"int",optional:!0},{kind:"text",key:"paragraphs",xmlNs:r.kt,name:"Paragraphs",primitive:"int",optional:!0},{kind:"text",key:"slides",xmlNs:r.kt,name:"Slides",primitive:"int",optional:!0},{kind:"text",key:"notes",xmlNs:r.kt,name:"Notes",primitive:"int",optional:!0},{kind:"text",key:"totalTime",xmlNs:r.kt,name:"TotalTime",primitive:"int",optional:!0},{kind:"text",key:"hiddenSlides",xmlNs:r.kt,name:"HiddenSlides",primitive:"int",optional:!0},{kind:"text",key:"mmClips",xmlNs:r.kt,name:"MMClips",primitive:"int",optional:!0},{kind:"text",key:"scaleCrop",xmlNs:r.kt,name:"ScaleCrop",primitive:"bool",optional:!0},{kind:"raw",key:"headingPairs",xmlNs:r.kt,name:"HeadingPairs",optional:!0},{kind:"raw",key:"titlesOfParts",xmlNs:r.kt,name:"TitlesOfParts",optional:!0},{kind:"raw",key:"hLinks",xmlNs:r.kt,name:"HLinks",optional:!0},{kind:"raw",key:"hyperlinks",xmlNs:r.kt,name:"Hyperlinks",optional:!0},{kind:"text",key:"linksUpToDate",xmlNs:r.kt,name:"LinksUpToDate",primitive:"bool",optional:!0},{kind:"text",key:"sharedDoc",xmlNs:r.kt,name:"SharedDoc",primitive:"bool",optional:!0},{kind:"text",key:"hyperlinkBase",xmlNs:r.kt,name:"HyperlinkBase",primitive:"string",optional:!0},{kind:"text",key:"hyperlinksChanged",xmlNs:r.kt,name:"HyperlinksChanged",primitive:"bool",optional:!0},{kind:"raw",key:"digitalSignature",xmlNs:r.kt,name:"DigSig",optional:!0},{kind:"text",key:"application",xmlNs:r.kt,name:"Application",primitive:"string",optional:!0},{kind:"text",key:"appVersion",xmlNs:r.kt,name:"AppVersion",primitive:"string",optional:!0},{kind:"text",key:"docSecurity",xmlNs:r.kt,name:"DocSecurity",primitive:"int",optional:!0},{kind:"text",key:"charactersWithSpaces",xmlNs:r.kt,name:"CharactersWithSpaces",primitive:"int",optional:!0}]});function S(t){return(0,a.t)((0,n.n)(t,C))}function I(t){return(0,n.t)((0,i.n)(t),C)}},57409(t,e,o){o.d(e,{c:()=>i,i:()=>u,l:()=>r,r:()=>d,s:()=>a,u:()=>l});var s=o(36326),n=o(75719);function r(t,e,o){if(!(t<=32767))throw new s.s(`worksheet: ${e} at ${o} is ${t} UTF-16 code units, past the 32767 Excel accepts in one cell`)}function i(t){return t.length<=40?t:`${t.slice(0,40)}... (${t.length} chars)`}function a(t,e,o){return(0,n.l)(t,(0,n.y)(e,o))}function l(t,e,o,n){return new s.s(`worksheet: unknown cell type t="${i(t)}" at ${a(e,o,n)}`)}function c(t){return 61===t.charCodeAt(0)}function d(t,e,o){const n=(t=>{const e=t.trim();return c(e)?e.slice(1).trim():e})(t);if(c(n))throw new s.s(`${e}${void 0===o?"":` at ${o}`}: formula text still begins with "=" once the leading one is removed (got "${i(t)}"). OOXML stores formula text without it and Excel reports a file that carries one as damaged`);return n}function u(t){let e=t.trim();for(;c(e);)e=e.slice(1).trim();return e}const h=new Set(["#NULL!","#DIV/0!","#VALUE!","#REF!","#NAME?","#NUM!","#N/A","#GETTING_DATA","#SPILL!","#CALC!","#FIELD!","#BLOCKED!","#CONNECT!","#BUSY!","#UNKNOWN!","#PYTHON!","#EXTERNAL!"]);o.d(e,["t",0,h])},47049(t,e,o){o.d(e,{a:()=>_e});var s=o(36326),n=o(57409),r=o(83543),i=o(75719),a=o(61924),l=o(92906),c=o(88539),d=o(67079),u=o(31948),h=o(67722);function f(t,e){if(e.startsWith("/"))return e.slice(1);const o=t.lastIndexOf("/");return function(t){const e=t.split("/"),o=[];for(const t of e)""!==t&&"."!==t&&(".."!==t?o.push(t):o.pop());return o.join("/")}((o>=0?t.slice(0,o+1):"")+e)}const p=`${a.lt}/pivotTable`,m=`${a.lt}/pivotCacheDefinition`,v=`${a.lt}/pivotCacheRecords`,g=t=>`{${a.ft}}${t}`,x=new Set(["sum","count","average","max","min"]),$=new Set(["name","cacheId","applyNumberFormats","applyBorderFormats","applyFontFormats","applyPatternFormats","applyAlignmentFormats","applyWidthHeightFormats","dataCaption","updatedVersion","minRefreshableVersion","useAutoFormatting","itemPrintTitles","createdVersion","indent","outline","outlineData","compact","compactData","rowGrandTotals","colGrandTotals","multipleFieldFilters",`{${a.Ct}}uid`,`{${a.q}}Ignorable`]),w=new Set(["location","pivotFields","rowFields","rowItems","colFields","colItems","pageFields","dataFields","pivotTableStyleInfo","extLst"].map(g)),b=new Set(["axis","dataField","showAll","compact","outline","defaultSubtotal","subtotalTop"]),y=new Set(["name","fld","subtotal","baseField","baseItem"]);function k(t,e){const o=[],s=t.passthrough;if(void 0===s)return o;for(const t of e.relsExtras??[]){if(t.type!==p)continue;const n=f("xl/worksheets/sheet.xml",t.target),r=s.get(n);if(void 0===r)continue;const i=s.get(C(n)),a=i?(0,d.s)(i).rels.find(t=>t.type===m):void 0,c=a?f(n,a.target):void 0,u=void 0===c?void 0:s.get(c);o.push({ws:e,relId:t.id,tablePath:n,cachePath:c,table:(0,l.n)(r),cache:void 0===u?void 0:(0,l.n)(u)})}return o}function C(t){const e=t.lastIndexOf("/");return`${t.slice(0,e)}/_rels/${t.slice(e+1)}.rels`}const S=(t,e)=>{const o=(0,a.i)(t,g(e));return void 0===o?[]:(0,a.a)(o,g("field")).map(t=>Number(t.attrs.x??"0"))};const I=(t,e)=>Object.keys(t.attrs).every(t=>e.has(t)||t.startsWith("xmlns:")),T=(t,e)=>void 0===t?e:"1"===t||"true"===t,P=(t,e)=>{const o=(0,a.i)(t,g("extLst"));return void 0===o||o.children.every(t=>t.attrs.uri===e&&t.children.every(t=>0===t.children.length&&0===Object.keys(t.attrs).length))};function F(t){if(void 0===t)return;const e=t.attrs.v;switch(t.name){case g("s"):return e??"";case g("n"):return Number(e);case g("b"):return"1"===e||"true"===e;case g("m"):return null;default:return}}function R(t,e){const{table:o,cache:s}=e;if(void 0===s)return;if(!I(o,$)||!o.children.every(t=>w.has(t.name)))return;if("Values"!==(o.attrs.dataCaption??"Values"))return;if(!P(o,"{747A6164-185A-40DC-8AA5-F01512510D54}")||!P(s,"{725AE2AE-9491-48be-B2B4-4EB974FC3084}"))return;const n=(0,a.i)(o,g("pivotTableStyleInfo"));if(void 0!==n&&"PivotStyleLight16"!==n.attrs.name)return;const r=(0,a.i)((0,a.i)(s,g("cacheSource"))??s,g("worksheetSource")),l=r?.attrs.sheet,d=r?.attrs.ref;if(void 0===l||void 0===d||void 0===(0,h.l)(t,l))return;if("worksheet"!==(0,a.i)(s,g("cacheSource"))?.attrs.type)return;if(!s.children.every(t=>t.name===g("cacheSource")||t.name===g("cacheFields")||t.name===g("extLst")))return;const f=(0,a.a)((0,a.i)(s,g("cacheFields"))??s,g("cacheField"));if(f.some(t=>void 0!==t.attrs.formula||void 0!==(0,a.i)(t,g("fieldGroup"))))return;const p=(0,u.p)(t,{sheet:l,ref:d});if(void 0===p)return;const m=f.map(t=>(t.attrs.name??"").toLowerCase());if(p.length!==m.length||p.some((t,e)=>t.toLowerCase()!==m[e]))return;const v=(0,a.a)((0,a.i)(o,g("pivotFields"))??o,g("pivotField"));if(v.length!==p.length)return;for(const t of v){if(!I(t,b))return;if(!t.children.every(t=>t.name===g("items")))return;const e=(0,a.i)(t,g("items"));if(e&&!e.children.every(t=>Object.keys(t.attrs).every(e=>"x"===e||"t"===e&&"default"===t.attrs.t)))return}const x=S(o,"rowFields"),k=S(o,"colFields");if(x.includes(-2))return;const C=k.indexOf(-2);if(C>=0&&C!==k.length-1)return;const R=k.filter(t=>-2!==t),L=[];for(const t of(0,a.a)((0,a.i)(o,g("dataFields"))??o,g("dataField"))){if(!I(t,y)||t.children.length>0)return;const e=t.attrs.subtotal??"sum";if(!N(e))return;const o=Number(t.attrs.fld);L.push({field:o,aggregate:e,...void 0!==t.attrs.name?{name:t.attrs.name}:{}})}const D=[];for(const t of(0,a.a)((0,a.i)(o,g("pageFields"))??o,g("pageField"))){if(Object.keys(t.attrs).some(t=>"fld"!==t&&"item"!==t&&"hier"!==t))return;const e=Number(t.attrs.fld),n=t.attrs.item;if(void 0===n){D.push({field:e});continue}const r=(0,a.a)((0,a.i)(v[e]??o,g("items"))??o,g("item")),i=Number(r[Number(n)]?.attrs.x??"-1"),l=F((0,a.i)(f[e]??s,g("sharedItems"))?.children[i]);if(void 0===l)return;D.push({field:e,selected:l})}const A=(0,a.i)(o,g("location"));if(void 0===A)return;if("1"!==(A.attrs.colPageCount??"1")&&D.length>0)return;const E=(0,c._r)(A.attrs.ref??""),O=E.minRow-(D.length>0?D.length+1:0);if(O<1)return;const j=v[x[0]??R[0]??-1],M=T(j?.attrs.outline,!0)?T(j?.attrs.compact,!0)?"compact":"outline":"tabular",z=T(j?.attrs.defaultSubtotal,!0)?T(j?.attrs.subtotalTop,!0)?"top":"bottom":"off";return{name:o.attrs.name??"",source:{sheet:l,ref:d},anchor:(0,i.y)(E.minCol,O),rows:x,columns:R,filters:D,values:L,layout:M,subtotals:z,rowGrandTotals:T(o.attrs.rowGrandTotals,!0),columnGrandTotals:T(o.attrs.colGrandTotals,!0),renderedRef:`${(0,i.y)(E.minCol,O)}:${(0,i.y)(Math.max(E.maxCol,D.length>0?E.minCol+1:E.maxCol),E.maxRow)}`}}const N=t=>x.has(t);var L=o(79687),D=o(47513),A=o(29809),E=o(65418),O=o(65204),j=o(10061);function M(t){return{name:t.name,value:(0,n.r)(t.value,`makeDefinedName "${t.name}"`),...void 0!==t.scope?{scope:t.scope}:{},...void 0!==t.hidden?{hidden:t.hidden}:{},...void 0!==t.comment?{comment:t.comment}:{}}}var z=o(69861);const V=new Map([[0,new Set([4])],[2,new Set([6])],[4,new Set([6])],[8,new Set([8,16])]]),B=[208,207,17,224,161,177,26,225],W=new Set([9,12]),U=4294967290,H=new Set(["WORKBOOK","BOOK"]),X=(t,e)=>{if(2!==t.getUint8(e+66))return;const o=t.getUint16(e+64,!0);if(o<2||o>64)return;let s="";for(let n=0;n<o-2;n+=2)s+=String.fromCharCode(t.getUint16(e+n,!0));return s.toUpperCase()};const q={maxEntryUncompressedBytes:536870912,maxTotalUncompressedBytes:1073741824,maxCompressionRatio:1e3},_=(t,e)=>{if("number"!=typeof e||!Number.isFinite(e)||e<=0)throw new s.r(`resolveDecompressionLimits: ${t} must be a positive finite number; got ${String(e)}`)};function G(t){return{limits:t,totalInflated:0,chargedByPath:new Map}}function Z(t,e){let o=0;return n=>{o+=n;const r=t.chargedByPath.get(e)??0;if(o>r&&(t.totalInflated+=o-r,t.chargedByPath.set(e,o)),t.totalInflated>t.limits.maxTotalUncompressedBytes)throw new s.n(`openZip: archive-wide inflated size exceeded ${t.limits.maxTotalUncompressedBytes} bytes while reading "${e}" (decompression-bomb guard).`)}}function Y(t,e){const{maxEntryUncompressedBytes:o,maxCompressionRatio:s}=t.limits;if(e<64)return o;const n=e*s;return Math.min(o,n)}function K(t,e){return new s.n(`openZip: inflated size of "${t}" exceeded ${e} bytes (decompression-bomb guard).`)}const Q=65536,J=new TextDecoder("utf-8"),tt=t=>new ReadableStream({start(e){t.byteLength>0&&e.enqueue(t),e.close()}}),et=67324752,ot=4294967295,st=(t,e)=>(t[e]??0)|(t[e+1]??0)<<8,nt=(t,e)=>((t[e]??0)|(t[e+1]??0)<<8|(t[e+2]??0)<<16|(t[e+3]??0)<<24)>>>0,rt=(t,e)=>{const o=nt(t,e),n=nt(t,e+4);if(n>2097151)throw new s.a(`openZip: ZIP64 field at byte ${e} exceeds the safe-integer range (${n}*2^32 + ${o})`);return 4294967296*n+o};function it(t,e,o,n,r,i,a){let l=e;const c=e+o;for(;l+4<=c;){const e=st(t,l),o=st(t,l+2),d=l+4,u=d+o;if(u>c)break;if(1===e){const e=(n?8:0)+(r?8:0)+(i?8:0);if(o<e)throw new s.a(`openZip: ZIP64 extended-info field for "${a}" declares ${o} bytes but the central directory sentinels require ${e}`);let l=d;const c={};return n&&(c.uncompSize=rt(t,l),l+=8),r&&(c.compSize=rt(t,l),l+=8),i&&(c.lfhOffset=rt(t,l),l+=8),c}l=u}return{}}const at=(t,e)=>{if(0===e.byteLength)throw new s.a(`openZip: entry "${t}" is declared DEFLATE but carries no compressed bytes`)},lt=t=>new s.a(`openZip: deflate stream for "${t}" ended before its final block`);function ct(t,e){if(nt(t,e.lfhOffset)!==et)throw new s.a(`openZip: malformed local file header for "${e.path}"`);const o=st(t,e.lfhOffset+26),n=st(t,e.lfhOffset+28),r=e.lfhOffset+30+o+n;if(r+e.compSize>t.length)throw new s.a(`openZip: entry "${e.path}" declares ${e.compSize} compressed bytes at offset ${r}, past the end of the ${t.length}-byte archive`);return t.subarray(r,r+e.compSize)}const dt=[37,80,68,70],ut=[239,187,191],ht=[255,254],ft=[254,255],pt=(t,e)=>{if(t.length<e.length)return!1;for(let o=0;o<e.length;o++)if(t[o]!==e[o])return!1;return!0},mt=(t,e)=>t.length>=4&&nt(t,0)===et?"absent"===e?"a zip with no end-of-central-directory signature, possibly a truncated or partially uploaded file":"a zip that cannot be read even though an end-of-central-directory signature was found":pt(t,dt)?"a PDF":pt(t,ut)?"text with a UTF-8 byte-order mark, such as a CSV saved under an .xlsx name":pt(t,ht)||pt(t,ft)?"text with a UTF-16 byte-order mark":(t=>{const e=Math.min(t.length,64);if(0===e)return!1;for(let o=0;o<e;o++){const e=t[o]??0;if(!(e>=32&&e<127)&&9!==e&&10!==e&&13!==e)return!1}return!0})(t)?"plain text, such as a CSV saved under an .xlsx name":void 0,vt=(t,e)=>{const o=mt(t,e);return void 0===o?"":`; the leading bytes look like ${o}`},gt=(t,e,o)=>new s.a(`openZip: archive is not a valid zip${vt(t,e)}`,{cause:o});function xt(t,e){if(t.length<22)throw new s.a(`openZip: archive is ${t.length} bytes, shorter than the 22-byte minimum for a zip End-of-Central-Directory (EOCD) record${vt(t,"absent")}`);let o;try{o=function(t){const e=Math.max(0,t.length-22-65535);for(let o=t.length-22;o>=e;o--)if(101010256===nt(t,o))return o;throw new s.a("openZip: no End-of-Central-Directory signature found")}(t)}catch(e){throw gt(t,"absent",e)}const n=function(t){if(!1===t)return null;if(!t)return q;const e={maxEntryUncompressedBytes:t.maxEntryUncompressedBytes??q.maxEntryUncompressedBytes,maxTotalUncompressedBytes:t.maxTotalUncompressedBytes??q.maxTotalUncompressedBytes,maxCompressionRatio:t.maxCompressionRatio??q.maxCompressionRatio};return _("maxEntryUncompressedBytes",e.maxEntryUncompressedBytes),_("maxTotalUncompressedBytes",e.maxTotalUncompressedBytes),_("maxCompressionRatio",e.maxCompressionRatio),e}(e),r=st(t,o+10),i=nt(t,o+12),a=nt(t,o+16),l=65535===r||i===ot||a===ot;let c,d;try{c=function(t,e){let o=st(t,e+10),n=nt(t,e+12),r=nt(t,e+16);if(65535!==o&&n!==ot&&r!==ot)return{totalEntries:o,cdSize:n,cdOffset:r};const i=e-20;if(i<0||117853008!==nt(t,i))throw new s.a("openZip: ZIP64 EOCD locator missing despite EOCD sentinel values");const a=rt(t,i+8);if(a<0||a+56>t.length)throw new s.a(`openZip: ZIP64 EOCD offset ${a} out of bounds`);if(101075792!==nt(t,a))throw new s.a(`openZip: ZIP64 EOCD signature missing at byte ${a}`);return o=rt(t,a+32),n=rt(t,a+40),r=rt(t,a+48),{totalEntries:o,cdSize:n,cdOffset:r}}(t,o)}catch(e){if(l)throw e instanceof s.a?e:new s.a("openZip: ZIP64 central directory is malformed",{cause:e});return $t(t,n)}try{d=function(t,e,o){const n=[];let r=e;for(let e=0;e<o;e++){if(33639248!==nt(t,r))throw new s.a(`openZip: malformed central directory at byte ${r}`);const e=st(t,r+10);let o=nt(t,r+20),i=nt(t,r+24);const a=st(t,r+28),l=st(t,r+30),c=st(t,r+32);let d=nt(t,r+42);const u=t.subarray(r+46,r+46+a),h=J.decode(u),f=i===ot,p=o===ot,m=d===ot;if(f||p||m){const e=it(t,r+46+a,l,f,p,m,h);void 0!==e.uncompSize&&(i=e.uncompSize),void 0!==e.compSize&&(o=e.compSize),void 0!==e.lfhOffset&&(d=e.lfhOffset)}n.push({path:h,lfhOffset:d,compMethod:e,compSize:o,uncompSize:i}),r+=46+a+l+c}return n}(t,c.cdOffset,c.totalEntries)}catch(e){if(l)throw e instanceof s.a?e:new s.a("openZip: ZIP64 central directory is malformed",{cause:e});return $t(t,n)}const u=new Map;for(const t of d)u.set(t.path,t);const h=n?G(n):null;h&&function(t,e){let o=0;for(const n of e){if(o+=n.uncompSize,n.uncompSize>t.limits.maxEntryUncompressedBytes)throw new s.n(`openZip: entry "${n.path}" declares ${n.uncompSize} uncompressed bytes, exceeding the ${t.limits.maxEntryUncompressedBytes}-byte per-entry limit (decompression-bomb guard).`);if(n.compSize>=64&&n.uncompSize>n.compSize*t.limits.maxCompressionRatio)throw new s.n(`openZip: entry "${n.path}" declares ratio ${(n.uncompSize/n.compSize).toFixed(1)}x (${n.uncompSize}/${n.compSize}), exceeding the ${t.limits.maxCompressionRatio}x per-entry limit (decompression-bomb guard).`)}if(o>t.limits.maxTotalUncompressedBytes)throw new s.n(`openZip: declared total uncompressed size ${o} bytes exceeds the ${t.limits.maxTotalUncompressedBytes}-byte archive limit (decompression-bomb guard).`)}(h,d);const f=function(){const t=new Map;let e=0;return{get(e){const o=t.get(e);if(o)return t.delete(e),t.set(e,o),o.slice()},set(o,s){if(!(s.byteLength>65536)){e+=s.byteLength-(t.get(o)?.byteLength??0),t.set(o,s.slice());for(const[o,s]of t){if(e<=4194304)break;t.delete(o),e-=s.byteLength}}},clear(){t.clear(),e=0}}}();let p=!0,m=t;const v=()=>{if(!p||!m)throw new s.a("openZip: archive is closed");return m},g=t=>{const e=v(),o=f.get(t);if(o)return o;const n=u.get(t);if(!n)throw new s.a(`openZip: no entry at "${t}"`);const r=ct(e,n);let i;if(0===n.compMethod){if(h){if(r.byteLength>h.limits.maxEntryUncompressedBytes)throw K(t,h.limits.maxEntryUncompressedBytes);Z(h,t)(r.byteLength)}i=r.slice()}else{if(8!==n.compMethod)throw new s.a(`openZip: unsupported compression method ${n.compMethod} for "${t}"`);i=function(t,e,o){at(t,e);const n=o?Y(o,e.byteLength):Number.POSITIVE_INFINITY,r=o?Z(o,t):null,i=[];let a,l=0,c=!1;const d=new z.EL((e,o)=>{if(o&&(c=!0),!a&&0!==e.byteLength)if(l+=e.byteLength,l>n)a=K(t,n);else{if(r)try{r(e.byteLength)}catch(t){return void(a=t)}i.push(e)}});let u=0;for(;u<e.byteLength;){const o=Math.min(u+Q,e.byteLength),n=o>=e.byteLength;try{d.push(e.subarray(u,o),n)}catch(e){if(a)throw a;throw new s.a(`openZip: failed to inflate "${t}"`,{cause:e})}if(a)throw a;u=o}if(!c)throw lt(t);const h=new Uint8Array(l);let f=0;for(const t of i)h.set(t,f),f+=t.byteLength;return h}(t,r,h)}return f.set(t,i),i};return{list:()=>(v(),[...u.keys()].sort()),has:t=>!!p&&u.has(t),read:t=>g(t),readAsync:async t=>g(t),readStream:t=>(t=>{const e=v(),o=f.get(t);if(o)return tt(o);const n=u.get(t);if(!n)throw new s.a(`openZip: no entry at "${t}"`);const r=ct(e,n);if(0===n.compMethod){if(h){if(r.byteLength>h.limits.maxEntryUncompressedBytes)throw K(t,h.limits.maxEntryUncompressedBytes);Z(h,t)(r.byteLength)}return tt(r.slice())}if(8!==n.compMethod)throw new s.a(`openZip: unsupported compression method ${n.compMethod} for "${t}"`);at(t,r);const i=h?Y(h,r.byteLength):Number.POSITIVE_INFINITY,a=h?Z(h,t):null;let l=0;const c=[];let d,p=0,m=!1;const g=new z.EL((e,o)=>{if(!d){if(e.byteLength>0){if(l+=e.byteLength,l>i)return void(d=K(t,i));if(a)try{a(e.byteLength)}catch(t){return void(d=t)}c.push(e)}o&&(m=!0)}}),x=e=>{c.length>0||p<r.byteLength||(m?e.close():e.error(lt(t)))};return new ReadableStream({pull(e){if(d)return void e.error(d);const o=c.shift();if(o)return e.enqueue(o),void x(e);for(;0===c.length&&p<r.byteLength;){const o=Math.min(p+Q,r.byteLength),n=r.subarray(p,o),i=o>=r.byteLength;try{g.push(n,i)}catch(o){return d||(d=new s.a(`openZip: failed to inflate "${t}"`,{cause:o})),void e.error(d)}if(d)return void e.error(d);p=o}const n=c.shift();n&&e.enqueue(n),x(e)},cancel(){c.length=0,p=r.byteLength,m=!0}})})(t),close(){p=!1,m=void 0,f.clear(),h?.chargedByPath.clear(),u.clear()}}}function $t(t,e){let o;try{o=(0,z.AO)(t)}catch(e){throw gt(t,"present",e)}if(e){const t=G(e);for(const[n,r]of Object.entries(o)){if(r.byteLength>e.maxEntryUncompressedBytes)throw new s.n(`openZip: entry "${n}" inflated to ${r.byteLength} bytes, exceeding the ${e.maxEntryUncompressedBytes}-byte per-entry limit (decompression-bomb guard).`);Z(t,n)(r.byteLength)}}let n=!0;return{list(){if(!n||!o)throw new s.a("openZip: archive is closed");return Object.keys(o).sort()},has:t=>!(!n||!o)&&Object.hasOwn(o,t),read(t){if(!n||!o)throw new s.a("openZip: archive is closed");const e=o[t];if(!e)throw new s.a(`openZip: no entry at "${t}"`);return e.slice()},async readAsync(t){return this.read(t)},readStream(t){const e=this.read(t);return tt(e)},close(){n=!1,o=void 0}}}const wt={"encrypted-xlsx":"Encrypted xlsx is not supported. Decrypt with msoffcrypto-tool first.","legacy-xls":"This is a legacy .xls (BIFF) workbook, which @office-kit/xlsx does not read. Convert it to .xlsx first: open it in Excel or LibreOffice and save it as .xlsx, or run `soffice --headless --convert-to xlsx`. A password-protected .xls has to be opened with its password and re-saved, which the headless conversion cannot do.","compound-file":"The input is an OLE compound file rather than an xlsx package. It is either a password-protected xlsx (decrypt with msoffcrypto-tool first) or a legacy Office format such as .xls (convert it to .xlsx first)."},bt=t=>new s.c(t,wt[t]);async function yt(t,e={}){let o;try{o=await t.toBytes()}catch(t){throw new s.a("openZip: failed to read source bytes",{cause:t})}if((t=>{if(t.length<B.length)return!1;for(let e=0;e<B.length;e++)if(t[e]!==B[e])return!1;return!0})(o))throw bt(function(t){if(t.length<512)return"compound-file";const e=new DataView(t.buffer,t.byteOffset,t.byteLength),o=e.getUint16(30,!0);if(!W.has(o))return"compound-file";const s=2**o,n=s/4,r=Math.ceil(t.length/s),i=e=>{if(e>U)return;const o=(e+1)*s;return o+s<=t.length?o:void 0},a=[],l=Math.ceil(r/n),c=(t,o)=>{for(let s=0;s<o;s++){const o=e.getUint32(t+4*s,!0);if(o>U||a.length>=l)return!1;a.push(o)}return!0};if(c(76,109)){const t=4*(n-1);let o=i(e.getUint32(68,!0));for(;void 0!==o&&c(o,n-1);)o=i(e.getUint32(o+t,!0))}const d=t=>{const o=a[Math.floor(t/n)],s=void 0===o?void 0:i(o);if(void 0!==s)return e.getUint32(s+t%n*4,!0)},u=[];let h=e.getUint32(48,!0),f=r;for(;void 0!==h&&f-- >0;){const t=i(h);if(void 0===t)break;u.push(t),h=d(h)}const p=s/128,m=t=>{const e=u[Math.floor(t/p)];return void 0===e?void 0:e+t%p*128},v=m(0);if(void 0===v)return"compound-file";const g=[e.getUint32(v+76,!0)],x=new Set;let $="compound-file";for(let t=g.pop();void 0!==t;t=g.pop()){const o=m(t);if(void 0===o||x.has(t))continue;x.add(t);const s=X(e,o);if("ENCRYPTEDPACKAGE"===s)return"encrypted-xlsx";void 0!==s&&H.has(s)&&($="legacy-xls"),g.push(e.getUint32(o+68,!0),e.getUint32(o+72,!0))}return $}(o));if((t=>{if(t.length<4||9!==t[0])return!1;const e=new DataView(t.buffer,t.byteOffset,t.byteLength),o=e.getUint16(2,!0);return!0===V.get(e.getUint8(1))?.has(o)})(o))throw bt("legacy-xls");return xt(o,e.decompressionLimits)}var kt=o(38223);const Ct=(0,a.Nt)(a.ft,"styleSheet"),St=(0,a.Nt)(a.ft,"fonts"),It=(0,a.Nt)(a.ft,"fills"),Tt=(0,a.Nt)(a.ft,"borders"),Pt=(0,a.Nt)(a.ft,"numFmts"),Ft=(0,a.Nt)(a.ft,"numFmt"),Rt=(0,a.Nt)(a.ft,"cellXfs"),Nt=(0,a.Nt)(a.ft,"cellStyleXfs"),Lt=(0,a.Nt)(a.ft,"cellStyles"),Dt=(0,a.Nt)(a.ft,"cellStyle"),At=(0,a.Nt)(a.ft,"dxfs"),Et=(0,a.Nt)(a.ft,"dxf"),Ot=(0,a.Nt)(a.ft,"xf"),jt=new Set([Pt,St,It,Tt,Nt,Rt,Lt,At]),Mt=(0,a.Nt)(a.ft,"font"),zt=(0,a.Nt)(a.ft,"fill"),Vt=(0,a.Nt)(a.ft,"border"),Bt=(0,a.Nt)(a.ft,"numFmt"),Wt=(0,a.Nt)(a.ft,"alignment"),Ut=(0,a.Nt)(a.ft,"protection");function Ht(t){const e=(0,l.n)(t);if(e.name!==Ct)throw(0,E.f)(e.name),new s.s(`parseStylesheetXml: root is "${e.name}", expected styleSheet`);const o=(0,c.Rr)();o.fonts.length=0,o.fills.length=0,o.borders.length=0;for(const t of Xt(e,St,Mt))o.fonts.push((0,L.t)(t,O.V));for(const t of Xt(e,It,zt))o.fills.push((0,O.H)(t));for(const t of Xt(e,Tt,Vt))o.borders.push((0,L.t)(t,O.U));for(const t of Xt(e,Pt,Ft)){const e=qt(t);o.numFmts.set(e.numFmtId,e.formatCode)}for(const t of Xt(e,Nt,Ot))o.cellStyleXfs.push(Zt(t));for(const t of Xt(e,Rt,Ot))o.cellXfs.push(Zt(t));const n=(0,a.i)(e,Lt);if(n){const t=[];for(const e of(0,a.a)(n,Dt)){const o=e.attrs.name,s=_t(e.attrs.xfId,"xfId");if(void 0===o||void 0===s)continue;const n={name:o,xfId:s,...void 0!==e.attrs.builtinId?{builtinId:_t(e.attrs.builtinId,"builtinId")??0}:{},...void 0!==e.attrs.iLevel?{iLevel:_t(e.attrs.iLevel,"iLevel")??0}:{},...!0===Gt(e.attrs.hidden)?{hidden:!0}:{},...!0===Gt(e.attrs.customBuiltin)?{customBuiltin:!0}:{}};t.push(n)}t.length>0&&(o.namedStyles=t,o._namedStyleByName=new Map(t.map(t=>[t.name,t])))}const r=(0,a.i)(e,At);if(r){const t=[];for(const e of(0,a.a)(r,Et)){const o=(0,a.i)(e,Mt),s=(0,a.i)(e,Bt),n=(0,a.i)(e,zt),r=(0,a.i)(e,Wt),i=(0,a.i)(e,Vt),l=(0,a.i)(e,Ut),c={...o?{font:(0,L.t)(o,O.V)}:{},...s?{numFmt:(0,L.t)(s,O.B)}:{},...n?{fill:(0,O.H)(n)}:{},...r?{alignment:(0,L.t)(r,O.W)}:{},...i?{border:(0,L.t)(i,O.U)}:{},...l?{protection:(0,L.t)(l,O.z)}:{}};t.push(Object.freeze(c))}if(t.length>0){const e=o;e.dxfs=t,e._dxfIdByKey=new Map(t.map((t,e)=>[(0,c.xi)(t),e]))}}const i=e.children.filter(t=>!jt.has(t.name));return i.length>0&&(o.stylesXmlTail=i),function(t){t._fontIdByKey=Yt(t.fonts),t._fillIdByKey=Yt(t.fills),t._borderIdByKey=Yt(t.borders),t._xfIdByKey=Yt(t.cellXfs),t._styleXfIdByKey=Yt(t.cellStyleXfs),t._numFmtIdByCode=new Map;for(const[e,o]of t.numFmts)t._numFmtIdByCode.set(o,e)}(o),o}function Xt(t,e,o){const s=(0,a.i)(t,e);return s?(0,a.a)(s,o):[]}const qt=t=>{const e=t.attrs.numFmtId,o=t.attrs.formatCode;if(void 0===e)throw new s.s("styles: <numFmt> missing @numFmtId");if(void 0===o)throw new s.s(`styles: <numFmt numFmtId="${e}"> missing @formatCode`);const n=Number.parseInt(e,10);if(!Number.isInteger(n)||n<0)throw new s.s(`styles: <numFmt numFmtId="${e}"> is not a non-negative integer`);return{numFmtId:n,formatCode:o}},_t=(t,e)=>{if(void 0===t)return;const o=Number.parseInt(t,10);if(!Number.isInteger(o)||o<0)throw new s.s(`styles: <xf ${e}="${t}"> is not a non-negative integer`);return o},Gt=t=>{if(void 0!==t)return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0},Zt=t=>{const e=_t(t.attrs.fontId,"fontId")??0,o=_t(t.attrs.fillId,"fillId")??0,s=_t(t.attrs.borderId,"borderId")??0,n=_t(t.attrs.numFmtId,"numFmtId")??0,r=_t(t.attrs.xfId,"xfId"),i=Gt(t.attrs.applyFont),l=Gt(t.attrs.applyFill),c=Gt(t.attrs.applyBorder),d=Gt(t.attrs.applyNumberFormat),u=Gt(t.attrs.applyAlignment),h=Gt(t.attrs.applyProtection),f=Gt(t.attrs.pivotButton),p=Gt(t.attrs.quotePrefix),m=(0,a.i)(t,Wt),v=(0,a.i)(t,Ut);return{fontId:e,fillId:o,borderId:s,numFmtId:n,...void 0!==r?{xfId:r}:{},...m?{alignment:(0,L.t)(m,O.W)}:{},...v?{protection:(0,L.t)(v,O.z)}:{},...void 0!==i?{applyFont:i}:{},...void 0!==l?{applyFill:l}:{},...void 0!==c?{applyBorder:c}:{},...void 0!==d?{applyNumberFormat:d}:{},...void 0!==u?{applyAlignment:u}:{},...void 0!==h?{applyProtection:h}:{},...void 0!==f?{pivotButton:f}:{},...void 0!==p?{quotePrefix:p}:{}}};const Yt=t=>{const e=new Map;for(let o=0;o<t.length;o++){const s=(0,c.xi)(t[o]);e.has(s)||e.set(s,o)}return e},Kt=`${a.pt}spreadsheetml/main`,Qt=`${a.pt}officeDocument/relationships`,Jt=new Map([[Kt,a.ft],[Qt,a.lt],[`${a.pt}drawingml/main`,a.H],[`${a.pt}drawingml/chart`,a.T],[`${a.pt}drawingml/spreadsheetDrawing`,a.dt],[`${a.pt}drawingml/chartDrawing`,a.w],[`${a.pt}drawingml/picture`,a.st],[`${a.pt}officeDocument/extendedProperties`,a.kt],[`${a.pt}officeDocument/customProperties`,a.F],[`${a.pt}officeDocument/docPropsVTypes`,a.yt]]),te=new Map(["officeDocument","worksheet","chartsheet","sharedStrings","styles","theme","calcChain","table","comments","drawing","chart","chartUserShapes","image","hyperlink","extended-properties","custom-properties","printerSettings","pivotTable","pivotCacheDefinition","pivotCacheRecords","externalLink","externalLinkPath","connections","queryTable","customXml","customXmlProps"].map(t=>[`${Qt}/${t}`,`${a.lt}/${t}`]));te.set(`${Qt}/extendedProperties`,`${a.lt}/extended-properties`),te.set(`${Qt}/customProperties`,`${a.lt}/custom-properties`);const ee=new Map([[a.ft,new Set(["workbook","worksheet","styleSheet","sst","comments","table","chartsheet","calcChain"])],[a.H,new Set(["theme","themeOverride"])],[a.T,new Set(["chartSpace"])],[a.dt,new Set(["wsDr"])],[a.w,new Set(["userShapes"])],[a.kt,new Set(["Properties"])],[a.F,new Set(["Properties"])]]),oe=new TextEncoder,se=new TextDecoder,ne=new TextDecoder("latin1"),re=Symbol(),ie=(t,e)=>{throw new s.o(`ISO 29500 strict: ${t}: cannot convert ${e} to Transitional XLSX. Re-save as Excel Workbook (.xlsx).`)},ae=(t,e,o)=>{const s=t.get(e);return void 0!==s?s:(e.startsWith("http://purl.oclc.org/ooxml/")&&ie(o,e),e)},le=t=>(0,D.n)(t).replace(/\r/g," ").replace(/\n/g," ").replace(/\t/g,"	"),ce=t=>(0,D.r)(t).replace(/\r/g," ");function de(t,e,o){const n=new kt.wT({xmlns:!0}),r=[];let i,l="",c=0,d=!1;n.on("error",e=>{throw new s.s(`ISO 29500 strict: malformed XML in ${t}`,{cause:e})}),n.on("doctype",()=>{throw new s.s(`ISO 29500 strict: DOCTYPE is not allowed in ${t}`)}),n.on("opentag",n=>{const u=ae(Jt,n.uri,t);0===r.length&&n.uri.startsWith("http://purl.oclc.org/ooxml/")&&!ee.get(u)?.has(n.local)&&ie(t,`part root ${n.name}`),n.uri===Kt&&(e.strict=!0);let h=n.local;n.uri!==Kt||"border"!==r.at(-1)?.split(":").at(-1)||"start"!==h&&"end"!==h||(h="start"===h?"left":"right");const f=n.prefix?`${n.prefix}:${h}`:h;if(r.push(f),"http://schemas.openxmlformats.org/spreadsheetml/2006/main"===u&&"workbookPr"===h){const o=n.attributes.dateCompatibility?.value;if(void 0!==o&&!["0","1","true","false"].includes(o))throw new s.s(`ISO 29500 strict: invalid dateCompatibility in ${t}`);e.isoEpoch="0"===o||"false"===o,e.date1904=!e.isoEpoch&&["1","true"].includes(n.attributes.date1904?.value??"")}"http://schemas.openxmlformats.org/spreadsheetml/2006/main"===u&&"c"===h&&(d=!0,l=n.attributes.t?.value??"n","d"===l&&n.uri!==Kt&&(l=""),c=Number(n.attributes.s?.value??0)),d&&"http://schemas.openxmlformats.org/spreadsheetml/2006/main"===u&&"v"===h&&(i=""),o(`<${f}`);for(const s of Object.values(n.attributes)){let r=s.value;if("http://www.w3.org/2000/xmlns/"===s.uri)r=ae(Jt,r,t);else if(u===a.ct&&"Relationship"===h&&"Type"===s.name)r=ae(te,r,t);else if("http://schemas.openxmlformats.org/spreadsheetml/2006/main"===u){if(n.uri===Kt&&"workbook"===h&&"conformance"===s.name)continue;if("workbookPr"===h&&"dateCompatibility"===s.name)continue;"workbookPr"===h&&"date1904"===s.name&&e.isoEpoch&&(r="0"),"c"===h&&"t"===s.name&&"d"===l&&(r="n"),n.uri!==Kt||"alignment"!==h||"horizontal"!==s.name||"start"!==r&&"end"!==r||ie(t,"direction-relative cell alignment")}n.uri.startsWith("http://purl.oclc.org/ooxml/drawingml/")&&/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:mm|cm|in|pt|pc|pi)$/.test(r)&&ie(t,"DrawingML universal measures"),ae(Jt,s.uri,t),o(` ${s.name}="${le(r)}"`)}o(">")});const u=t=>{void 0!==i?i+=t:o(ce(t))};return n.on("text",u),n.on("cdata",u),n.on("comment",t=>o(`\x3c!--${t}--\x3e`)),n.on("processinginstruction",({target:t,body:e})=>o(`<?${t} ${e}?>`)),n.on("closetag",n=>{if((n.uri===Kt||"http://schemas.openxmlformats.org/spreadsheetml/2006/main"===n.uri)&&"v"===n.local&&void 0!==i){if("d"===l)o(""===i.trim()?"":function(t,e,o){const n=t.trim(),r=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(\.\d+)?(Z|[+-]\d{2}:\d{2})?)?$/.exec(n);if(!r&&/^(?:\d{2}:\d{2}:\d{2}|[+-]?P)/.test(n)&&ie(o,"ISO time-only or duration cells"),!r)throw new s.s(`ISO 29500 strict: ${o}: invalid ISO date cell`);const i=Number(r[1]),a=Number(r[2]),l=Number(r[3]),c=Number(r[4]??0),d=Number(r[5]??0),u=Number(r[6]??0),h=(r[7]??"").slice(1);/[1-9]/.test(h.slice(3))&&ie(o,"sub-millisecond ISO dates");const f=Number(h.slice(0,3).padEnd(3,"0")),p=new Date(0);if(p.setUTCFullYear(i,a-1,l),p.setUTCHours(c,d,u,f),a<1||a>12||l<1||c>23||d>59||u>59||p.getUTCFullYear()!==i||p.getUTCMonth()!==a-1||p.getUTCDate()!==l)throw new s.s(`ISO 29500 strict: ${o}: invalid ISO date cell`);const m=r[8];if(m&&"Z"!==m){const t=Number(m.slice(1,3)),e=Number(m.slice(4,6));if(t>14||e>59||14===t&&0!==e)throw new s.s(`ISO 29500 strict: ${o}: invalid ISO date timezone`);p.setTime(p.getTime()-("+"===m[0]?1:-1)*(60*t+e)*6e4)}return(p.getTime()<Date.UTC(e.date1904?1904:1900,e.date1904?0:2,1)||p.getUTCFullYear()>9999)&&ie(o,"date outside the supported millisecond-precision Excel date range"),String((0,j.r)(p,{epoch:e.date1904?"mac":"windows"}))}(i,e,t));else{const s=Number(i);e.isoEpoch&&"n"===l&&e.dateStyles.has(c)&&s<61&&ie(t,"numeric date before March 1900 with dateCompatibility=false"),o(ce(i))}i=void 0}o(`</${r.pop()}>`),n.uri!==Kt&&"http://schemas.openxmlformats.org/spreadsheetml/2006/main"!==n.uri||"c"!==n.local||(d=!1)}),n}function ue(t){const e={strict:!1,date1904:!1,isoEpoch:!1,dateStyles:new Set},o=new Set,n=new Set,r=new Set;if(t.has("[Content_Types].xml")){const e=(0,A.J)(t.read(a.c)),s=new Set(e.defaults.filter(t=>/(?:\+xml|\/xml)$/.test(t.contentType)).map(t=>t.ext));for(const e of t.list())s.has(e.slice(e.lastIndexOf(".")+1))&&o.add(e);for(const t of e.overrides){const e=t.partName.replace(/^\//,"");/(?:\+xml|\/xml)$/.test(t.contentType)&&o.add(e),/\.(?:sheet|template)(?:\.macroEnabled)?\.main\+xml$/.test(t.contentType)&&n.add(e),t.contentType.endsWith(".styles+xml")&&r.add(e)}}const i=t=>o.has(t)||t.endsWith(".xml")||t.endsWith(".rels"),l=o=>{const s=t.read(o);if(!i(o))return s;if(!n.has(o)&&!e.isoEpoch&&!(t=>{const e=ne.decode(t);return e.includes("http://purl.oclc.org/ooxml/")||e.includes("&#")})(s))return s;const a=[];de(o,e,t=>a.push(t)).write(se.decode(s)).close();const l=oe.encode(a.join(""));if(e.isoEpoch&&r.has(o)){const t=Ht(l);e.dateStyles=new Set(t.cellXfs.flatMap((e,o)=>function(t){if(!(0,c.Ri)(t)||(0,c.zi)(t))return!1;const e=(t??"").replace(/"[^"]*"|\[[^\]]*\]|\\.|_./g,"");return/[dy]/i.test(e)||!/[hs]/i.test(e)&&/m/i.test(e)}(t.numFmts.get(e.numFmtId)??c.Si[e.numFmtId])?[o]:[]))}return l};return{list:()=>t.list(),has:e=>t.has(e),close:()=>t.close(),read:l,readAsync:async t=>l(t),readStream(o){const n=t.readStream(o);if(!i(o))return n;const r=new TextDecoder;let a=!!e.strict||void 0,l=[];const c=new TextDecoder,d=new kt.wT({xmlns:!0});d.on("error",t=>{throw new s.s(`Malformed XML in ${o}`,{cause:t})}),d.on("doctype",()=>{throw new s.s(`DOCTYPE is not allowed in ${o}`)}),d.on("opentag",t=>{throw a=t.uri.startsWith("http://purl.oclc.org/ooxml/")||Object.values(t.ns).some(t=>t.startsWith("http://purl.oclc.org/ooxml/")),re});let u=[];const h=de(o,e,t=>u.push(t));return n.pipeThrough(new TransformStream({transform(t,e){if(void 0===a){l.push(t);try{d.write(c.decode(t,{stream:!0}))}catch(t){if(t!==re)throw t}if(void 0===a)return}else l.push(t);for(const t of l)if(a)for(let o=0;o<t.length;o+=8192)h.write(r.decode(t.subarray(o,o+8192),{stream:!0})),u.length&&e.enqueue(oe.encode(u.join(""))),u=[];else e.enqueue(t);l=[]},flush(t){void 0===a&&d.write(c.decode()).close(),a&&(h.write(r.decode()).close(),u.length&&t.enqueue(oe.encode(u.join(""))))}}))}}}const he=new Map([[a.Tt,"xlsx"],[a.wt,"xlsm"],[a.Dt,"xltx"],[a.Et,"xltm"]]),fe=`${a.lt}/officeDocument`,pe=`{${a.ft}}workbook`;const me={name:"sharedStrings",relType:`${a.lt}/sharedStrings`,conventionalPath:a.p},ve={name:"styles",relType:`${a.lt}/styles`,conventionalPath:a.m},ge={name:"theme",relType:`${a.lt}/theme`,conventionalPath:a.h},xe={name:"persons",relType:O.i,conventionalPath:"xl/persons/person.xml"};function $e(t,e,o,n){const r=(0,d.i)(o,n.relType);if(!r)return t.has(n.conventionalPath)?t.read(n.conventionalPath):void 0;if("External"===r.targetMode)throw new s.s(`workbook rels: the ${n.name} relationship is external ("${r.target}"), and has to name a part inside the package`);let i=f(e,r.target);if(t.has(i)||(i=f(e,function(t){if(!t.includes("%"))return t;try{return decodeURIComponent(t)}catch{return t}}(r.target))),!t.has(i))throw new s.s(`workbook rels: the ${n.name} relationship targets "${i}", which the package does not contain`);return t.read(i)}function we(t){const e=t.lastIndexOf("/");return e<0?`_rels/${t}.rels`:`${t.slice(0,e)}/_rels/${t.slice(e+1)}.rels`}const be=`{${a.ft}}sheet`,ye=`{${a.ft}}sheets`,ke=`{${a.ft}}definedNames`,Ce=`{${a.ft}}definedName`,Se=`{${a.lt}}id`;const Ie=`{${a.ft}}workbookPr`,Te=`{${a.ft}}workbookProtection`,Pe=`{${a.ft}}bookViews`,Fe=`{${a.ft}}workbookView`,Re=`{${a.ft}}customWorkbookViews`,Ne=`{${a.ft}}customWorkbookView`,Le=`{${a.ft}}calcPr`,De=`{${a.ft}}fileVersion`,Ae=`{${a.ft}}fileSharing`,Ee=`{${a.ft}}oleSize`,Oe=`{${a.ft}}fileRecoveryPr`,je=`{${a.ft}}pivotCaches`,Me=`{${a.ft}}pivotCache`,ze=`{${a.ft}}externalReferences`,Ve=`{${a.ft}}externalReference`,Be=`{${a.ft}}smartTagPr`,We=`{${a.ft}}smartTagTypes`,Ue=`{${a.ft}}smartTagType`,He=`{${a.ft}}functionGroups`,Xe=`{${a.ft}}functionGroup`;function qe(t){const e=(0,a.i)(t,Ie);if(!e)return!1;const o=e.attrs.date1904;return"1"===o||"true"===o}async function _e(t,e={}){const o=(0,O.O)(e.contentLimits),i=await yt(t,void 0===e.decompressionLimits?{}:{decompressionLimits:e.decompressionLimits});try{return function(t,e){const o=(0,O.D)(e);if(!t.has("[Content_Types].xml"))throw new s.s(`loadWorkbook: missing "${a.c}"`);const i=(0,A.J)(t.read(a.c));if(!t.has(a.f))throw new s.s(`loadWorkbook: missing "${a.f}"`);const c=(0,d.s)(t.read(a.f)),u=c.rels.find(t=>t.type===fe);if(!u)throw(0,E.d)(c.rels.map(t=>t.type)),new s.s("loadWorkbook: root rels missing officeDocument relationship");const p=f("",u.target);if(p!==a.g&&!t.has(p))throw new s.s(`loadWorkbook: workbook part "${p}" not found in archive`);const g=(0,l.r)(t.read(p)),x=g.root;if(x.name!==pe)throw(0,E.f)(x.name),new s.s(`loadWorkbook: ${p} root is "${x.name}", expected workbook`);const $=function(t){const e=(0,a.i)(t,ye);if(!e)return[];const o=[];for(const t of(0,a.a)(e,be)){const e=t.attrs.name,n=t.attrs.sheetId,r=t.attrs[Se];if(!e)throw new s.s("workbook.xml: <sheet> is missing 'name'");if(!n)throw new s.s(`workbook.xml: <sheet name="${e}"> is missing 'sheetId'`);if(!r)throw new s.s(`workbook.xml: <sheet name="${e}"> is missing 'r:id'`);const i=Number.parseInt(n,10);if(!Number.isInteger(i)||i<1)throw new s.s(`workbook.xml: <sheet name="${e}"> sheetId "${n}" is not a positive integer`);const a=t.attrs.state;let l="visible";"hidden"!==a&&"veryHidden"!==a||(l=a),o.push({name:e,sheetId:i,rId:r,state:l})}return o}(x),w=function(t){const e=(0,a.i)(t,ke);if(!e)return[];const o=[];for(const t of(0,a.a)(e,Ce)){const e=t.attrs.name;if(!e)throw new s.s("workbook.xml: <definedName> is missing 'name'");const r={name:e,value:(0,n.i)(t.text??"")},i=t.attrs.localSheetId;if(void 0!==i){const t=Number.parseInt(i,10);Number.isInteger(t)&&t>=0&&(r.scope=t)}"1"!==t.attrs.hidden&&"true"!==t.attrs.hidden||(r.hidden=!0),void 0!==t.attrs.comment&&(r.comment=t.attrs.comment),o.push(M(r))}return o}(x),b=we(p);if($.length>0&&!t.has(b))throw new s.s(`loadWorkbook: workbook has sheets but rels part "${b}" is missing`);const y=t.has(b)?(0,d.s)(t.read(b)):(0,d.o)(),S=$e(t,p,y,me),I=(void 0===S?void 0:(0,E.s)(S))?.entries??[],T=$e(t,p,y,ve),P=void 0===T?void 0:Ht(T),F=t.has(a.l)?(0,A.N)(t.read(a.l)):void 0,N=t.has(a.s)?(0,A.t)(t.read(a.s)):void 0,L=t.has(a.u)?(0,A.u)(t.read(a.u)):void 0,D=$e(t,p,y,ge),j=$e(t,p,y,xe),z=(0,h.r)({date1904:qe(x)}),V=he.get(i.overrides.find(t=>t.partName.replace(/^\//,"")===p)?.contentType??"");void 0!==V&&"xlsx"!==V&&(z.fileFormat=V);P&&(z.styles=P);F&&(z.properties=F);N&&(z.appProperties=N);L&&(z.customProperties=L);D&&(z.themeXml=D);j&&(z.persons=(0,O.c)(j));w.length>0&&(z.definedNames=w);const B=new Set,W=[],U=fo(t);for(const e of $){if(B.has(e.name))throw new s.s(`loadWorkbook: duplicate sheet name "${e.name}"`);B.add(e.name);const n=(0,d.r)(y,e.rId);if(!n)throw new s.s(`loadWorkbook: sheet "${e.name}" rId "${e.rId}" has no matching rels entry`);const i=f(p,n.target);if(!t.has(i))throw new s.s(`loadWorkbook: sheet part "${i}" not found in archive`);const l=we(i),c=t.has(l)?(0,d.s)(t.read(l)):void 0,u=c?(0,d.a)(c):void 0,h=u?e=>{const o=u.get(e);if(!o)return;const s=f(i,o.target);return t.has(s)?(0,O.n)(t.read(s)):void 0}:void 0,m=u?e=>{const o=u.get(e);if(!o)return;const s=f(i,o.target);return t.has(s)?(0,O.h)(t.read(s)):void 0}:void 0,v=u?e=>{const o=u.get(e);if(!o)return;const s=f(i,o.target);if(!t.has(s))return;const n=(0,O.y)(t.read(s)),a=we(s);if(t.has(a)){const e=(0,d.a)((0,d.s)(t.read(a)));for(const o of n.items)if("chart"===o.content.kind){const n=o.content.chart.rId;if(!n)continue;const r=e.get(n);if(!r)continue;const i=f(s,r.target);if(t.has(i)){const e=t.read(i);if((0,O.P)(e))o.content.chart.cxSpace=(0,O.F)(e);else{const s=(0,O.R)(e),n=(0,O.L)(e);if(n){const e=we(i);if(t.has(e)){const o=(0,d.a)((0,d.s)(t.read(e))).get(n);if(o){const e=f(i,o.target);if(t.has(e))try{s.userShapes=(0,O.j)(t.read(e))}catch{}}}}o.content.chart.space=s}}}else if("picture"===o.content.kind){const n=o.content.picture.rId;if(!n)continue;const i=e.get(n);if(!i)continue;const a=f(s,i.target);if(t.has(a))try{o.content.picture.image=(0,r.g)(t.read(a))}catch{}}const o=(0,O._)(n);if(o.size>0){const t=(0,d.o)();for(const n of o){const o=e.get(n);o&&(t.rels.push(o),"External"!==o.targetMode&&W.push(f(s,o.target)))}t.rels.length>0&&(n.rawRels=t)}}return n}:void 0;if(n.type===`${a.lt}/chartsheet`){const o=(0,O.x)(t.read(i),e.name);if(c){const t=c.rels.find(t=>t.type===`${a.lt}/drawing`);if(t&&v){const e=v(t.id);e&&(o.drawing=e)}}const s={kind:"chartsheet",sheet:o,sheetId:e.sheetId,state:e.state,rId:e.rId};z.sheets.push(s);continue}const g=(0,O.w)(t.read(i),e.name,{sharedStrings:I,date1904:z.date1904,contentBudget:o,...c?{rels:c}:{},...h?{loadTable:h}:{},...m?{loadComments:m}:{},...v?{loadDrawing:v}:{}});if(c)for(const e of c.rels){if("http://schemas.microsoft.com/office/2017/10/relationships/threadedComment"!==e.type)continue;const o=f(i,e.target);t.has(o)&&(g.threadedComments??=[]).push(...(0,O.l)(t.read(o)))}if(g.threadedComments&&g.threadedComments.length>0){const t=new Set(g.threadedComments.map(t=>(0,O.d)(t.id)));g.legacyComments=g.legacyComments.filter(e=>!t.has(e.author))}if(c){const t=Ye(c,i,U);if(t.length>0){g.relsExtras=t;for(const e of t)"External"!==e.targetMode&&W.push(f(i,e.target))}}void 0===g.legacyDrawingRId||g.relsExtras?.some(t=>t.id===g.legacyDrawingRId)||delete g.legacyDrawingRId;const x={kind:"worksheet",sheet:g,sheetId:e.sheetId,state:e.state,rId:e.rId};z.sheets.push(x)}return function(t,e){const o=[],s=[];let n=!1;for(const r of t.children)if(r.name!==ye){if(r.name!==ke)if(r.name!==Te){if(r.name===Ie){const t=Je(r);t&&(e.workbookProperties=t);continue}if(r.name===Ae){const t={},o=r.attrs,s=(t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0)(o.readOnlyRecommended);if(void 0!==s&&(t.readOnlyRecommended=s),void 0!==o.userName&&(t.userName=o.userName),void 0!==o.reservationPassword&&(t.reservationPassword=o.reservationPassword),void 0!==o.algorithmName&&(t.algorithmName=o.algorithmName),void 0!==o.hashValue&&(t.hashValue=o.hashValue),void 0!==o.saltValue&&(t.saltValue=o.saltValue),void 0!==o.spinCount){const e=Number.parseInt(o.spinCount,10);Number.isInteger(e)&&(t.spinCount=e)}Object.keys(t).length>0&&(e.fileSharing=t);continue}if(r.name===De){const t={};void 0!==r.attrs.appName&&(t.appName=r.attrs.appName),void 0!==r.attrs.lastEdited&&(t.lastEdited=r.attrs.lastEdited),void 0!==r.attrs.lowestEdited&&(t.lowestEdited=r.attrs.lowestEdited),void 0!==r.attrs.rupBuild&&(t.rupBuild=r.attrs.rupBuild),void 0!==r.attrs.codeName&&(t.codeName=r.attrs.codeName),Object.keys(t).length>0&&(e.fileVersion=t);continue}if(r.name===Pe){const t=[];for(const e of(0,a.a)(r,Fe))t.push(ao(e));t.length>0&&(e.bookViews=t);continue}if(r.name===Re){const t=[];for(const e of(0,a.a)(r,Ne)){const o=ro(e);o&&t.push(o)}t.length>0&&(e.customWorkbookViews=t);continue}if(r.name===Le){const t=oo(r);t&&(e.calcProperties=t);continue}if(r.name===Ee){const t=r.attrs.ref;t&&(e.oleSize=t);continue}if(r.name===Be){const t={},o=r.attrs;"1"===o.embed||"true"===o.embed?t.embed=!0:"0"!==o.embed&&"false"!==o.embed||(t.embed=!1),"all"!==o.show&&"noIndicator"!==o.show||(t.show=o.show),Object.keys(t).length>0&&(e.smartTagPr=t);continue}if(r.name===We){const t=[];for(const e of(0,a.a)(r,Ue)){const o={};void 0!==e.attrs.namespaceUri&&(o.namespaceUri=e.attrs.namespaceUri),void 0!==e.attrs.name&&(o.name=e.attrs.name),void 0!==e.attrs.url&&(o.url=e.attrs.url),Object.keys(o).length>0&&t.push(o)}t.length>0&&(e.smartTagTypes=t);continue}if(r.name===He){const t={groups:[]},o=r.attrs.builtInGroupCount;if(void 0!==o){const e=Number.parseInt(o,10);Number.isInteger(e)&&(t.builtInGroupCount=e)}for(const e of(0,a.a)(r,Xe)){const o=e.attrs.name;o&&t.groups.push({name:o})}(t.groups.length>0||void 0!==t.builtInGroupCount)&&(e.functionGroups=t);continue}if(r.name===ze){const t=[];for(const e of(0,a.a)(r,Ve)){const o=e.attrs[`{${a.lt}}id`];o&&t.push({rId:o})}t.length>0&&(e.externalReferences=t);continue}if(r.name===je){const t=[];for(const e of(0,a.a)(r,Me)){const o=e.attrs.cacheId,s=e.attrs[`{${a.lt}}id`];if(void 0===o||!s)continue;const n=Number.parseInt(o,10);Number.isInteger(n)&&t.push({cacheId:n,rId:s})}t.length>0&&(e.pivotCaches=t);continue}if(r.name===Oe){const t={},o=r.attrs,s=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0,n=s(o.autoRecover);void 0!==n&&(t.autoRecover=n);const i=s(o.crashSave);void 0!==i&&(t.crashSave=i);const a=s(o.dataExtractLoad);void 0!==a&&(t.dataExtractLoad=a);const l=s(o.repairLoad);void 0!==l&&(t.repairLoad=l),Object.keys(t).length>0&&(e.fileRecoveryPr=t);continue}n?s.push(r):o.push(r)}else e.workbookProtection=lo(r)}else n=!0;(o.length>0||s.length>0)&&(e.workbookXmlExtras={beforeSheets:o,afterSheets:s})}(x,z),function(t,e){const o=t.rootNamespaces.filter(t=>""!==t.prefix&&"r"!==t.prefix),s=t.root.attrs[`{${a.q}}Ignorable`];if(0===o.length&&void 0===s)return;e.workbookXmlRoot={namespaces:o,...void 0!==s?{ignorable:s}:{}}}(g,z),function(t,e){const o=new Set([`${a.lt}/worksheet`,`${a.lt}/chartsheet`]),s={},n=[];for(const e of t.rels)o.has(e.type)||(e.type!==`${a.lt}/sharedStrings`?e.type!==`${a.lt}/styles`?e.type!==`${a.lt}/theme`?"http://schemas.microsoft.com/office/2006/relationships/vbaProject"!==e.type?"http://schemas.microsoft.com/office/2017/10/relationships/person"!==e.type&&n.push({id:e.id,type:e.type,target:e.target}):s.vbaProject=e.id:s.theme=e.id:s.styles=e.id:s.sharedStrings=e.id);Object.keys(s).length>0&&(e.workbookRelOriginalIds=s);n.length>0&&(e.workbookRelsExtras=n)}(y,z),function(t,e,o,s,n){const r=new Map;for(const t of e.overrides)r.set(t.partName.replace(/^\//,""),t.contentType);const i=new Map;for(const t of e.defaults)i.set(t.ext.toLowerCase(),t.contentType);const a=(t,e)=>{o.passthrough||(o.passthrough=new Map),o.passthrough.set(t,e);const s=r.get(t);if(void 0!==s)return o.passthroughContentTypes||(o.passthroughContentTypes=new Map),void o.passthroughContentTypes.set(t,s);const n=t.slice(t.lastIndexOf(".")+1).toLowerCase(),a=i.get(n);void 0!==a&&(o.passthroughDefaults||(o.passthroughDefaults=new Map),o.passthroughDefaults.set(n,a))},l=[...s];for(const e of t.list())"xl/vbaProject.bin"!==e?"xl/vbaProjectSignature.bin"!==e?mo(e,n)&&(ho(e)?(a(e,n.read(e)),l.push(e)):a(e,t.read(e))):o.vbaSignature=t.read(e):o.vbaProject=t.read(e);const c=new Set;for(const e of l){if(c.has(e)||!t.has(e))continue;c.add(e),o.passthrough?.has(e)||a(e,t.read(e));const s=we(e);if(!t.has(s))continue;const n=t.read(s);a(s,n);for(const t of(0,d.s)(n).rels)"External"!==t.targetMode&&l.push(f(e,t.target))}}(t,i,z,W,U),function(t){const e=[];for(const o of t.sheets)if("worksheet"===o.kind)for(const s of k(t,o.sheet))e.push({p:s,def:R(t,s)});if(!e.some(t=>void 0!==t.def))return;const o=new Set;for(const{p:t,def:s}of e)void 0===s&&void 0!==t.cachePath&&o.add(t.cachePath);const s=e=>{t.passthrough?.delete(e),t.passthroughContentTypes?.delete(e)},n=new Set;for(const{p:r,def:i}of e){if(void 0===i)continue;if((r.ws.pivotTables??=[]).push(i),r.ws.relsExtras=(r.ws.relsExtras??[]).filter(t=>t.id!==r.relId),s(r.tablePath),s(C(r.tablePath)),void 0===r.cachePath||o.has(r.cachePath)||n.has(r.cachePath))continue;n.add(r.cachePath);const e=t.passthrough?.get(C(r.cachePath));for(const t of e?(0,d.s)(e).rels:[])t.type===v&&s(f(r.cachePath,t.target));s(C(r.cachePath)),s(r.cachePath)}const r=new Set((t.workbookRelsExtras??[]).filter(t=>t.type===m&&n.has(f("xl/workbook.xml",t.target))).map(t=>t.id)),i=(t.workbookRelsExtras??[]).filter(t=>!r.has(t.id));i.length>0?t.workbookRelsExtras=i:delete t.workbookRelsExtras;const a=(t.pivotCaches??[]).filter(t=>!r.has(t.rId));a.length>0?t.pivotCaches=a:delete t.pivotCaches;for(const e of t.sheets)"worksheet"===e.kind&&0===e.sheet.relsExtras?.length&&delete e.sheet.relsExtras}(z),z}(ue(i),o)}finally{i.close()}}const Ge=new Set([`${a.lt}/hyperlink`,`${a.lt}/table`,`${a.lt}/comments`,`${a.lt}/drawing`,O.s]),Ze=`${a.lt}/vmlDrawing`;function Ye(t,e,o){const s=[];for(const n of t.rels)Ge.has(n.type)||n.type===Ze&&o.isCommentVml(f(e,n.target))||s.push(n);return s}const Ke=["all","placeholders","none"],Qe=["userSet","never","always"],Je=t=>{const e={},o=t.attrs,s=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0;for(const t of["date1904","dateCompatibility","showBorderUnselectedTables","filterPrivacy","promptedSolutions","showInkAnnotation","backupFile","saveExternalLinkValues","hidePivotFieldList","showPivotChartFilter","allowRefreshQuery","publishItems","checkCompatibility","autoCompressPictures","refreshAllConnections"]){const n=s(o[t]);void 0!==n&&(e[t]=n)}const n=o.showObjects;n&&Ke.includes(n)&&(e.showObjects=n);const r=o.updateLinks;r&&Qe.includes(r)&&(e.updateLinks=r),void 0!==o.codeName&&(e.codeName=o.codeName);const i=(t=>{if(void 0===o[t])return;const e=Number.parseInt(o[t],10);return Number.isInteger(e)?e:void 0})("defaultThemeVersion");return void 0!==i&&(e.defaultThemeVersion=i),Object.keys(e).length>0?e:void 0},to=["manual","auto","autoNoTable"],eo=["A1","R1C1"],oo=t=>{const e={},o=t.attrs,s=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0,n=t=>{if(void 0===o[t])return;const e=Number.parseInt(o[t],10);return Number.isInteger(e)?e:void 0},r=n("calcId");void 0!==r&&(e.calcId=r);const i=o.calcMode;i&&to.includes(i)&&(e.calcMode=i);const a=s(o.fullCalcOnLoad);void 0!==a&&(e.fullCalcOnLoad=a);const l=o.refMode;l&&eo.includes(l)&&(e.refMode=l);const c=s(o.iterate);void 0!==c&&(e.iterate=c);const d=n("iterateCount");void 0!==d&&(e.iterateCount=d);const u=(t=>{if(void 0===o[t])return;const e=Number.parseFloat(o[t]);return Number.isFinite(e)?e:void 0})("iterateDelta");void 0!==u&&(e.iterateDelta=u);const h=s(o.fullPrecision);void 0!==h&&(e.fullPrecision=h);const f=s(o.calcCompleted);void 0!==f&&(e.calcCompleted=f);const p=s(o.calcOnSave);void 0!==p&&(e.calcOnSave=p);const m=s(o.concurrentCalc);void 0!==m&&(e.concurrentCalc=m);const v=n("concurrentManualCount");void 0!==v&&(e.concurrentManualCount=v);const g=s(o.forceFullCalc);return void 0!==g&&(e.forceFullCalc=g),Object.keys(e).length>0?e:void 0},so=["commNone","commIndicator","commIndAndComment"],no=["all","placeholders","none"],ro=t=>{const e=t.attrs,o=e.name,s=e.guid;if(!o||!s)return;const n=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0,r=t=>{if(void 0===e[t])return;const o=Number.parseInt(e[t],10);return Number.isInteger(o)?o:void 0},i={name:o,guid:s,windowWidth:r("windowWidth")??0,windowHeight:r("windowHeight")??0,activeSheetId:r("activeSheetId")??0};for(const t of["autoUpdate","changesSavedWin","onlySync","personalView","includePrintSettings","includeHiddenRowCol","maximized","minimized","showHorizontalScroll","showVerticalScroll","showSheetTabs","showFormulaBar","showStatusbar"]){const o=n(e[t]);void 0!==o&&(i[t]=o)}for(const t of["mergeInterval","xWindow","yWindow","tabRatio"]){const e=r(t);void 0!==e&&(i[t]=e)}const a=e.showComments;a&&so.includes(a)&&(i.showComments=a);const l=e.showObjects;return l&&no.includes(l)&&(i.showObjects=l),i},io=["visible","hidden","veryHidden"],ao=t=>{const e={},o=t.attrs,s=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0,n=t=>{if(void 0===o[t])return;const e=Number.parseInt(o[t],10);return Number.isInteger(e)?e:void 0},r=o.visibility;r&&io.includes(r)&&(e.visibility=r);const i=s(o.minimized);void 0!==i&&(e.minimized=i);const a=s(o.showHorizontalScroll);void 0!==a&&(e.showHorizontalScroll=a);const l=s(o.showVerticalScroll);void 0!==l&&(e.showVerticalScroll=l);const c=s(o.showSheetTabs);void 0!==c&&(e.showSheetTabs=c);const d=n("xWindow");void 0!==d&&(e.xWindow=d);const u=n("yWindow");void 0!==u&&(e.yWindow=u);const h=n("windowWidth");void 0!==h&&(e.windowWidth=h);const f=n("windowHeight");void 0!==f&&(e.windowHeight=f);const p=n("tabRatio");void 0!==p&&(e.tabRatio=p);const m=n("firstSheet");void 0!==m&&(e.firstSheet=m);const v=n("activeTab");void 0!==v&&(e.activeTab=v);const g={};for(const[t,e]of Object.entries(o))t.startsWith("{")&&(g[t]=e);Object.keys(g).length>0&&(e.extAttrs=g);const x=s(o.autoFilterDateGrouping);return void 0!==x&&(e.autoFilterDateGrouping=x),e},lo=t=>{const e={},o=t.attrs,s=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0;if(void 0!==o.workbookPassword&&(e.workbookPassword=o.workbookPassword),void 0!==o.workbookPasswordCharacterSet&&(e.workbookPasswordCharacterSet=o.workbookPasswordCharacterSet),void 0!==o.workbookAlgorithmName&&(e.workbookAlgorithmName=o.workbookAlgorithmName),void 0!==o.workbookHashValue&&(e.workbookHashValue=o.workbookHashValue),void 0!==o.workbookSaltValue&&(e.workbookSaltValue=o.workbookSaltValue),void 0!==o.workbookSpinCount){const t=Number.parseInt(o.workbookSpinCount,10);Number.isInteger(t)&&(e.workbookSpinCount=t)}if(void 0!==o.revisionsPassword&&(e.revisionsPassword=o.revisionsPassword),void 0!==o.revisionsPasswordCharacterSet&&(e.revisionsPasswordCharacterSet=o.revisionsPasswordCharacterSet),void 0!==o.revisionsAlgorithmName&&(e.revisionsAlgorithmName=o.revisionsAlgorithmName),void 0!==o.revisionsHashValue&&(e.revisionsHashValue=o.revisionsHashValue),void 0!==o.revisionsSaltValue&&(e.revisionsSaltValue=o.revisionsSaltValue),void 0!==o.revisionsSpinCount){const t=Number.parseInt(o.revisionsSpinCount,10);Number.isInteger(t)&&(e.revisionsSpinCount=t)}const n=s(o.lockStructure);void 0!==n&&(e.lockStructure=n);const r=s(o.lockWindows);void 0!==r&&(e.lockWindows=r);const i=s(o.lockRevision);return void 0!==i&&(e.lockRevision=i),e};const co=["xl/activeX/","xl/ctrlProps/","xl/embeddings/","xl/externalLinks/","xl/model/","xl/pivotCache/","xl/pivotTables/","xl/printerSettings/","xl/queryTables/","xl/richData/","xl/slicerCaches/","xl/slicers/","xl/timelineCaches/","xl/timelines/","xl/workbookCache/","customUI/","customXml/"],uo=new TextDecoder("latin1"),ho=t=>t.startsWith("xl/drawings/")&&t.endsWith(".vml"),fo=t=>{const e=new Map,o=o=>{let s=e.get(o);return void 0===s&&(s=t.read(o),e.set(o,s)),s};return{read:o,isCommentVml:e=>{return t.has(e)&&(s=o(e),uo.decode(s).includes('ObjectType="Note"'));var s}}},po=new Set(["xl/calcChain.xml","xl/connections.xml","xl/metadata.xml","xl/SheetMetadata.xml","docProps/thumbnail.jpeg","docProps/thumbnail.jpg","docProps/thumbnail.png","docProps/thumbnail.wmf","docProps/thumbnail.emf"]),mo=(t,e)=>!!po.has(t)||(!!co.some(e=>t.startsWith(e))||!!ho(t)&&!e.isCommentVml(t))},92906(t,e,o){o.d(e,{n:()=>C,r:()=>S});var s=o(36326),n=o(61924);const r="#text",i="#cdata",a=new Set(["__proto__","constructor","prototype"]),l=new Set(["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),c=new Set([r,i,":@"]),d=/([^\s=]+)\s*(=\s*(['"])([\s\S]*?)\3)?/g,u="!xml",h=t=>new s.s(`parseXml: ${t}`),f=t=>{if(a.has(t))throw h(`reserved name "${t}"`);return l.has(t)?`__${t}`:t},p=(t,e,o,s)=>{const n=t.indexOf(e,o);if(n<0)throw h(`${s} is not closed`);return n+e.length-1},m=(t,e,o)=>{let s=0,n="";for(let r=e;r<t.length;r++){const e=t.charCodeAt(r);if(0!==s)e===s&&(s=0),n+=t[r];else if(34===e||39===e)s=e,n+=t[r];else{if(t.startsWith(o,r))return{body:n,end:r};n+=9===e?" ":t[r]}}},v=t=>{const e=t.search(/\s/);return e<0?{name:t,rest:t}:{name:t.slice(0,e),rest:t.slice(e+1).trimStart()}},g=t=>{let e;for(const o of t.matchAll(d)){const[,t="",,,s]=o;if(0===t.length)continue;const n=f(t);void 0!==s&&((e??={})[n]=s)}return e},x=t=>{switch(t.kind){case"text":return{[r]:t.text};case"cdata":return{[i]:[{[r]:t.text}]};case"element":{const e={};return e[t.tag]=t.children.map(x),void 0!==t.attrs&&(e[":@"]=t.attrs),e}}};const $=new TextDecoder("utf-8",{fatal:!1}),w=t=>{const e=t.replace(/^/,"");if(/<!DOCTYPE\b/.test(e))throw new s.s("DTD declarations are not permitted in OOXML payloads");if(/<!ENTITY\b/.test(e))throw new s.s("Entity declarations are not permitted in OOXML payloads")},b=/&(amp|lt|gt|quot|apos|#(?:[0-9]+|x[0-9A-Fa-f]+));/g,y=t=>t.replace(b,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:{const o="x"===e[1]?16:10,n=16===o?e.slice(2):e.slice(1),r=Number.parseInt(n,o);if(!k(r))throw new s.s(`parseXml: invalid XML character reference "${t}"`);return String.fromCodePoint(r)}}}),k=t=>9===t||10===t||13===t||t>=32&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111;function C(t){return S(t).root}function S(t){const e=(t=>"string"==typeof t?t:$.decode(t))(t);let o;w(e);try{o=function(t){const e=t.replace(/\r\n?/g,"\n"),o={kind:"element",tag:u,attrs:void 0,children:[]};let s=o;const n=[];let r="";const i=t=>{""!==r&&t.children.push({kind:"text",text:r}),r=""},a=t=>{if(void 0===t)throw h("markup after the document was closed");return t};for(let t=0;t<e.length;t++){if(60!==e.charCodeAt(t)){const o=e.indexOf("<",t),s=o<0?e.length:o;r+=e.slice(t,s),t=s-1;continue}if("/"===e[t+1]){const o=p(e,">",t,"closing tag");f(e.slice(t+2,o).trim()),void 0!==s&&i(s),r="",s=n.pop(),t=o}else if("?"===e[t+1]){const o=m(e,t+1,"?>");if(void 0===o)throw h("processing instruction is not closed");const{name:n,rest:l}=v(o.body);""!==r&&i(a(s));const c=g(l);a(s).children.push({kind:"element",tag:n,attrs:n!==l?c:void 0,children:[{kind:"text",text:""}]}),t=o.end+1}else if(e.startsWith("!--",t+1))t=p(e,"--\x3e",t+4,"comment");else{if(e.startsWith("!D",t+1))throw h('unexpected "<!D"');if(e.startsWith("![",t+1)){const o=p(e,"]]>",t,"CDATA section")-2;""!==r&&i(a(s)),a(s).children.push({kind:"cdata",text:e.substring(t+9,o)}),t=o+2}else{const o=m(e,t+1,">");if(void 0===o)throw h("tag is not closed");let{name:l,rest:d}=v(o.body);if(l=f(l),c.has(l))throw h(`reserved tag name "${l}"`);void 0!==s&&""!==r&&s.tag!==u&&i(s);let p=!1;d.endsWith("/")&&(p=!0,l.endsWith("/")?(l=l.slice(0,-1),d=l):d=d.slice(0,-1));const x=l!==d?g(d):void 0;p&&(l=f(l));const $={kind:"element",tag:l,attrs:x,children:[]};if(!p&&n.length>100)throw h("elements nested deeper than 100");a(s).children.push($),p||(n.push(s),s=$),r="",t=o.end}}}return o.children.map(x)}(e)}catch(t){throw new s.s("parseXml: failed to parse XML payload",{cause:t})}const n=[];for(const t of o){const e=T(t);void 0!==e&&(P(e)||n.push(t))}if(0===n.length)throw new s.s("parseXml: document has no root element");if(n.length>1)throw new s.s(`parseXml: document has ${n.length} root elements; expected exactly one`);const[r]=n;if(void 0===r)throw new s.s("parseXml: no root element");if(Object.hasOwn(r,"#text"))throw new s.s("parseXml: failed to parse XML payload",{cause:new s.s("parseXml: the only top-level entry is text, not an element")});return{root:A(r,{default:"",byPrefix:{}}),rootNamespaces:I(r[":@"])}}const I=t=>{const e=[];for(const[o,s]of Object.entries(t??{}))"xmlns"===o?e.push({prefix:"",ns:y(s)}):o.startsWith("xmlns:")&&e.push({prefix:o.slice(6),ns:y(s)});return e},T=t=>{for(const e of Object.keys(t))if(":@"!==e)return e},P=t=>t.startsWith("?"),F=t=>{const e=t.indexOf(":");return e<0?{prefix:"",local:t}:{prefix:t.slice(0,e),local:t.slice(e+1)}},R=(t,e)=>{const{prefix:o,local:r}=F(t);if(""===o)return r;if("xml"===o)return(0,n.Nt)("http://www.w3.org/XML/1998/namespace",r);const i=e.byPrefix[o];if(void 0===i)throw new s.s(`parseXml: undeclared namespace prefix "${o}" on attribute "${t}"`);return(0,n.Nt)(i,r)},N=["Requires",`{${n.q}}Ignorable`,`{${n.q}}MustUnderstand`,`{${n.q}}ProcessContent`],L=(t,e)=>{for(const o of N){const s=t[o];if(void 0!==s)for(const o of s.split(/\s+/)){const s=o.split(":")[0];if(!s)continue;const n=e.byPrefix[s];void 0!==n&&(t[`xmlns:${s}`]=n)}}},D=t=>/^\s*$/.test(t),A=(t,e)=>{const o=T(t);if(void 0===o)throw new s.s("parseXml: encountered an entry with no element tag");if(P(o))throw new s.s(`parseXml: processing instructions are not supported (saw "<${o}>")`);const a=t[":@"],l=((t,e)=>{if(void 0===e)return t;let o,s=t.default;for(const[n,r]of Object.entries(e))if("xmlns"!==n){if(n.startsWith("xmlns:")){const e=n.slice(6);o??={...t.byPrefix},o[e]=y(r)}}else s=y(r);return s===t.default&&void 0===o?t:{default:s,byPrefix:o??t.byPrefix}})(e,a),{resolved:c}=((t,e)=>{const o={};if(void 0===t)return{resolved:o};for(const[s,n]of Object.entries(t))"xmlns"===s||s.startsWith("xmlns:")||(o[R(s,e)]=y(n));return L(o,e),{resolved:o}})(a,l),d=(0,n.n)(((t,e)=>{const{prefix:o,local:r}=F(t);if(""===o)return(0,n.Nt)(e.default,r);const i=e.byPrefix[o];if(void 0===i)throw new s.s(`parseXml: undeclared namespace prefix "${o}" on element <${t}>`);return(0,n.Nt)(i,r)})(o,l),c),u=t[o];if(void 0===u||0===u.length)return d;const h=[];for(const t of u){if(Object.hasOwn(t,"#text")){const e=t[r];"string"==typeof e&&h.push(y(e));continue}if(Object.hasOwn(t,"#cdata")){const e=t[i];for(const t of e){const e=t[r];"string"==typeof e&&h.push(e)}continue}if(h.length>0&&0===d.children.length);else if(h.length>0&&d.children.length>0){const t=h.join("");if(!D(t))throw new s.s(`parseXml: mixed content not supported (text between elements under <${o}>)`);h.length=0}d.children.push(A(t,l))}if(h.length>0){const t=h.join("");if(0===d.children.length)d.text=t;else if(!D(t))throw new s.s(`parseXml: mixed content not supported (trailing text under <${o}>)`)}return d};o.d(e,["i",0,w,"t",0,D])},67079(t,e,o){o.d(e,{a:()=>u,c:()=>f,i:()=>h,o:()=>c,r:()=>d,s:()=>p});var s=o(79687),n=o(61924),r=o(92906),i=o(52541);const a=(0,s.i)({tagname:"Relationship",xmlNs:n.ct,attrs:{id:{kind:"string",xmlName:"Id"},type:{kind:"string",xmlName:"Type"},target:{kind:"string",xmlName:"Target"},targetMode:{kind:"enum",values:["External","Internal"],xmlName:"TargetMode",optional:!0}},elements:[]}),l=(0,s.i)({tagname:"Relationships",xmlNs:n.ct,attrs:{},elements:[{kind:"sequence",key:"rels",itemName:"Relationship",itemNs:n.ct,itemSchema:()=>a}]});function c(){return{rels:[]}}function d(t,e){for(const o of t.rels)if(o.id===e)return o}function u(t){const e=new Map;for(const o of t.rels)e.set(o.id,o);return e}function h(t,e){for(const o of t.rels)if(o.type===e)return o}function f(t){return(0,i.t)((0,s.n)(t,l))}function p(t){return(0,s.t)((0,r.n)(t),l)}},8890(t,e,o){o.d(e,{n:()=>xt});var s=o(36326),n=o(57409),r=o(83543),i=o(61924),a=o(47513),l=o(52541),c=o(29809),d=o(88539),u=o(65418),h=o(65204),f=o(67079),p=o(31948),m=o(67722);var v=o(18092),g=o(69861);const x=65535,$=4294967295,w=(t,e)=>(t[e]??0)|(t[e+1]??0)<<8,b=(t,e)=>((t[e]??0)|(t[e+1]??0)<<8|(t[e+2]??0)<<16|(t[e+3]??0)<<24)>>>0,y=(t,e,o)=>{t[e]=255&o,t[e+1]=o>>>8&255},k=(t,e,o)=>{t[e]=255&o,t[e+1]=o>>>8&255,t[e+2]=o>>>16&255,t[e+3]=o>>>24&255},C=(t,e,o)=>{const s=o>>>0,n=Math.floor(o/4294967296)>>>0;k(t,e,s),k(t,e+4,n)};function S(t,e){if(e<=x)return t;const o=(t=>{const e=Math.max(0,t.length-65557);for(let o=t.length-22;o>=e;o--)if(101010256===b(t,o)&&o+22+w(t,o+20)===t.length)return o;throw new s.a("zip64-patch: no End-of-Central-Directory signature found")})(t),n=b(t,o+12),r=b(t,o+16),i=w(t,o+20);if(n===$||r===$)throw new s.o("zip64-patch: archive size or central-directory offset exceeds 4 GiB; full ZIP64 size support is not implemented (xlsx in practice stays well under 4 GiB).");const a=r+n,l=22+i,c=new Uint8Array(o+56+20+l);c.set(t.subarray(0,o),0);const d=c.subarray(o,o+56);k(d,0,101075792),C(d,4,44),y(d,12,45),y(d,14,45),k(d,16,0),k(d,20,0),C(d,24,e),C(d,32,e),C(d,40,n),C(d,48,r);const u=o+56,h=c.subarray(u,u+20);k(h,0,117853008),k(h,4,0),C(h,8,a),k(h,16,1);const f=u+20;return c.set(t.subarray(o,o+l),f),y(c,f+8,x),y(c,f+10,x),c}var I=class extends g.uZ{options;constructor(t,e){super(t),this.options=e,this.compression=8}process(t,e){this.ondata(null,(0,g.pd)(t,this.options),e)}};const T=1980;function P(t,e={}){void 0!==e.compressionLevel&&(t=>{if(!Number.isInteger(t)||t<0||t>9)throw new s.a(`createZipWriter: compressionLevel must be an integer in [0, 9]; got ${t}`)})(e.compressionLevel);const o=void 0===e.mtime?void 0:(t=>{const e=t.getTime();if(Number.isNaN(e))throw new s.a("createZipWriter: mtime is an invalid Date");const o=t.getUTCFullYear();if(o<T||o>2099)throw new s.a(`createZipWriter: mtime ${t.toISOString()} is outside the supported ZIP timestamp range (1980-2099)`);return o-T<<25|t.getUTCMonth()+1<<21|t.getUTCDate()<<16|t.getUTCHours()<<11|t.getUTCMinutes()<<5|t.getUTCSeconds()>>1})(e.mtime),n=t.toBytes(),r=void 0===e.compressionLevel?void 0:{level:e.compressionLevel};let i=!1;const a=(t,e,s=!1)=>{const n=e?s?new I(t,r):new g.D8(t,r):new g.uZ(t);return void 0!==o&&(n.mtime=new Date(2e3,0,1),i=!0),n};let l,c=!1;const d=new Set,u=[];let h,f;const p=new Promise(t=>{f=t}),m=new g.qQ((t,e,s)=>{if(t)u.push(t instanceof Error?t:new Error(String(t)));else{if(e&&e.byteLength>0){if(void 0!==o&&(s||i)){const t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(s){let e=0;for(let s=0;s<d.size;s++)t.setUint32(e+12,o,!0),e+=46+t.getUint16(e+28,!0)+t.getUint16(e+30,!0)+t.getUint16(e+32,!0)}else i&&(t.setUint32(10,o,!0),i=!1)}s?h=e:n.write(e)}s&&f&&(f(),f=void 0)}});let v=!1;const x=t=>{if(void 0!==l)throw new s.a("createZipWriter: addEntry after finalize");if(v)throw new s.a("createZipWriter: a streaming entry is still open — call end() first");if(d.has(t))throw new s.a(`createZipWriter: duplicate entry "${t}"`)};return{async addEntry(t,e,o){if(!(e instanceof Uint8Array))throw new s.a("createZipWriter: ReadableStream entries are not yet supported (deferred to streaming writer)");x(t),d.add(t);const n=a(t,o?.compress??!0,!0);try{m.add(n),n.push(e,!0)}catch(e){throw new s.a(`createZipWriter: failed to add entry "${t}"`,{cause:e})}if(u.length>0)throw new s.a("createZipWriter: stream error during addEntry",{cause:u[0]})},addStreamingEntry(t,e){x(t),d.add(t),v=!0;const o=a(t,e?.compress??!0);try{m.add(o)}catch(e){throw v=!1,new s.a(`createZipWriter: failed to open streaming entry "${t}"`,{cause:e})}let n=!1;return{write(e){if(n)throw new s.a(`createZipWriter: write after end on "${t}"`);if(!(e instanceof Uint8Array))throw new s.a(`createZipWriter: streaming entry "${t}" chunk is not a Uint8Array`);if(0!==e.byteLength){try{o.push(e,!1)}catch(e){throw new s.a(`createZipWriter: failed to push chunk on "${t}"`,{cause:e})}if(u.length>0)throw new s.a("createZipWriter: stream error during write",{cause:u[0]})}},async end(){if(!n){n=!0;try{o.push(new Uint8Array(0),!0)}catch(e){throw new s.a(`createZipWriter: failed to end streaming entry "${t}"`,{cause:e})}if(v=!1,u.length>0)throw new s.a("createZipWriter: stream error during end",{cause:u[0]})}}}},async finalize(){if(void 0!==l)return l;if(v)throw new s.a("createZipWriter: cannot finalize while a streaming entry is open");return l=(async()=>{try{c||(m.end(),c=!0)}catch(t){throw new s.a("createZipWriter: failed to finalize zip archive",{cause:t})}if(await p,u.length>0)throw new s.a("createZipWriter: stream error during finalize",{cause:u[0]});if(h){const t=d.size>65535?S(h,d.size):h;n.write(t)}return n.finish()})(),l},abort(t){if(void 0===l)return l=Promise.resolve(new Uint8Array(0)),f&&(f(),f=void 0),n.abort?.(t)}}}const F="http://schemas.microsoft.com/office/2011/relationships/chartStyle",R="http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",N="application/vnd.ms-office.chartstyle+xml",L="application/vnd.ms-office.chartcolorstyle+xml",D='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<cs:chartStyle xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" id="395">\n<cs:axisTitle>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="900"/></cs:axisTitle>\n<cs:categoryAxis>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr>\n<cs:defRPr sz="900"/></cs:categoryAxis>\n<cs:chartArea mods="allowNoFillOverride allowNoLineOverride">\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="bg1"/></a:solidFill><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr>\n<cs:defRPr sz="1000"/></cs:chartArea>\n<cs:dataLabel>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="900"/></cs:dataLabel>\n<cs:dataLabelCallout>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="dk1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="lt1"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val="dk1"><a:lumMod val="25000"/><a:lumOff val="75000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr>\n<cs:defRPr sz="900"/>\n<cs:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="clip" horzOverflow="clip" vert="horz" wrap="square" lIns="36576" tIns="18288" rIns="36576" bIns="18288" anchor="ctr" anchorCtr="1"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout>\n<cs:dataPoint>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0">\n<cs:styleClr val="auto"/></cs:fillRef>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></cs:spPr></cs:dataPoint>\n<cs:dataPoint3D>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0">\n<cs:styleClr val="auto"/></cs:fillRef>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></cs:spPr></cs:dataPoint3D>\n<cs:dataPointLine>\n<cs:lnRef idx="0">\n<cs:styleClr val="auto"/></cs:lnRef>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="28575" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine>\n<cs:dataPointMarker>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0">\n<cs:styleClr val="auto"/></cs:fillRef>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="lt1"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker>\n<cs:dataPointMarkerLayout symbol="circle" size="5"/>\n<cs:dataPointWireframe>\n<cs:lnRef idx="0">\n<cs:styleClr val="auto"/></cs:lnRef>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="28575" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe>\n<cs:dataTable>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:spPr><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr>\n<cs:defRPr sz="900"/></cs:dataTable>\n<cs:downBar>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="dk1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="dk1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar>\n<cs:dropLine>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="35000"/><a:lumOff val="65000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine>\n<cs:errorBar>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar>\n<cs:floor>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:floor>\n<cs:gridlineMajor>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor>\n<cs:gridlineMinor>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor>\n<cs:hiLoLine>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="75000"/><a:lumOff val="25000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine>\n<cs:leaderLine>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="35000"/><a:lumOff val="65000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine>\n<cs:legend>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="900"/></cs:legend>\n<cs:plotArea mods="allowNoFillOverride allowNoLineOverride">\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:plotArea>\n<cs:plotArea3D mods="allowNoFillOverride allowNoLineOverride">\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:plotArea3D>\n<cs:seriesAxis>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr>\n<cs:defRPr sz="900"/></cs:seriesAxis>\n<cs:seriesLine>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="D9D9D9"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine>\n<cs:title>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="1400"/></cs:title>\n<cs:trendline>\n<cs:lnRef idx="0">\n<cs:styleClr val="auto"/></cs:lnRef>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef>\n<cs:spPr><a:ln w="19050" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="sysDash"/></a:ln></cs:spPr></cs:trendline>\n<cs:trendlineLabel>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="900"/></cs:trendlineLabel>\n<cs:upBar>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="dk1"/></cs:fontRef>\n<cs:spPr><a:solidFill><a:schemeClr val="lt1"/></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar>\n<cs:valueAxis>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef>\n<cs:defRPr sz="900"/></cs:valueAxis>\n<cs:wall>\n<cs:lnRef idx="0"/>\n<cs:fillRef idx="0"/>\n<cs:effectRef idx="0"/>\n<cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:wall></cs:chartStyle>',A='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<cs:colorStyle xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" meth="cycle" id="10"><a:schemeClr val="accent1"/><a:schemeClr val="accent2"/><a:schemeClr val="accent3"/><a:schemeClr val="accent4"/><a:schemeClr val="accent5"/><a:schemeClr val="accent6"/><cs:variation/><cs:variation><a:lumMod val="60000"/></cs:variation><cs:variation><a:lumMod val="80000"/><a:lumOff val="20000"/></cs:variation><cs:variation><a:lumMod val="80000"/></cs:variation><cs:variation><a:lumMod val="60000"/><a:lumOff val="40000"/></cs:variation><cs:variation><a:lumMod val="50000"/></cs:variation><cs:variation><a:lumMod val="70000"/><a:lumOff val="30000"/></cs:variation><cs:variation><a:lumMod val="70000"/></cs:variation><cs:variation><a:lumMod val="50000"/><a:lumOff val="50000"/></cs:variation></cs:colorStyle>',E='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n',O=new TextEncoder;function j(t,e,o){const s=[E,`<pivotCacheDefinition xmlns="${i.ft}" xmlns:r="${i.lt}" r:id="${o}" refreshOnLoad="1"`,` createdVersion="6" refreshedVersion="6" minRefreshableVersion="3" recordCount="${e.recordCount}">`,`<cacheSource type="worksheet"><worksheetSource ref="${(0,a.n)(t.source.ref)}" sheet="${(0,a.n)(t.source.sheet)}"/></cacheSource>`,`<cacheFields count="${e.fields.length}">`];for(const t of e.fields)s.push(M(t));return s.push("</cacheFields></pivotCacheDefinition>"),O.encode(s.join(""))}function M(t){const e=t.stats;let o="";const s=e.hasNumber||e.hasBoolean||e.hasError;if(e.hasString||e.hasBlank||!s||(o+=' containsSemiMixedTypes="0"'),e.hasString||(o+=' containsString="0"'),e.hasBlank&&(o+=' containsBlank="1"'),Number(e.hasString)+Number(e.hasNumber)+Number(e.hasBoolean)+Number(e.hasError)>1&&(o+=' containsMixedTypes="1"'),e.hasNumber&&(o+=' containsNumber="1"',e.allIntegers&&(o+=' containsInteger="1"'),o+=` minValue="${e.min}" maxValue="${e.max}"`),void 0===t.items)return`<cacheField name="${(0,a.n)(t.name)}" numFmtId="0"><sharedItems${o}/></cacheField>`;const n=t.items.map(z).join("");return`<cacheField name="${(0,a.n)(t.name)}" numFmtId="0"><sharedItems${o} count="${t.items.length}">${n}</sharedItems></cacheField>`}function z(t){switch(t.t){case"s":return`<s v="${(0,a.n)(t.v)}"/>`;case"n":return`<n v="${t.v}"/>`;case"b":return`<b v="${t.v?1:0}"/>`;case"e":return`<e v="${(0,a.n)(t.v)}"/>`;case"m":return"<m/>"}}function V(t){const e=[E,`<pivotCacheRecords xmlns="${i.ft}" xmlns:r="${i.lt}" count="${t.recordCount}">`];for(let o=0;o<t.recordCount;o++){let s="<r>";for(const e of t.fields){const t=e.itemIndex?.[o];if(void 0!==t)s+=`<x v="${t}"/>`;else{const t=e.records[o];s+=void 0===t?"<m/>":z(t)}}e.push(`${s}</r>`)}return e.push("</pivotCacheRecords>"),O.encode(e.join(""))}function B(t,e,o){const s="compact"===t.layout;let n=` name="${(0,a.n)(t.name)}" cacheId="${o}" applyNumberFormats="0" applyBorderFormats="0"`;n+=' applyFontFormats="0" applyPatternFormats="0" applyAlignmentFormats="0" applyWidthHeightFormats="1"',n+=' dataCaption="Values" updatedVersion="6" minRefreshableVersion="3"',n+=' useAutoFormatting="1" itemPrintTitles="1"',n+=' createdVersion="6" indent="0"',s||(n+=' compact="0" compactData="0"'),"tabular"!==t.layout&&(n+=' outline="1" outlineData="1"'),t.rowGrandTotals||(n+=' rowGrandTotals="0"'),t.columnGrandTotals||(n+=' colGrandTotals="0"'),n+=' multipleFieldFilters="0"';const r=e.location;let l=` ref="${r.ref}" firstHeaderRow="${r.firstHeaderRow}" firstDataRow="${r.firstDataRow}" firstDataCol="${r.firstDataCol}"`;t.filters.length>0&&(l+=` rowPageCount="${t.filters.length}" colPageCount="1"`);const c=[E,`<pivotTableDefinition xmlns="${i.ft}"${n}>`,`<location${l}/>`,`<pivotFields count="${e.fields.length}">`],d=new Set(t.rows),u=new Set(t.columns),h=new Set(t.filters.map(t=>t.field)),f=new Set(t.values.map(t=>t.field));if(e.fields.forEach((e,o)=>{const n=d.has(o)?"axisRow":u.has(o)?"axisCol":h.has(o)?"axisPage":void 0;let r="";if(void 0!==n&&(r+=` axis="${n}"`),f.has(o)&&(r+=' dataField="1"'),s||(r+=' compact="0"'),"tabular"===t.layout&&(r+=' outline="0"'),r+=' showAll="0"',void 0===n||void 0===e.items)return void c.push(`<pivotField${r}/>`);const i="off"!==t.subtotals||"axisPage"===n;i||(r+=' defaultSubtotal="0"'),"bottom"===t.subtotals&&"axisRow"===n&&(r+=' subtotalTop="0"');const a=e.items.map((t,e)=>`<item x="${e}"/>`).join(""),l=e.items.length+(i?1:0);c.push(`<pivotField${r}><items count="${l}">${a}${i?'<item t="default"/>':""}</items></pivotField>`)}),c.push("</pivotFields>"),t.rows.length>0&&c.push(`<rowFields count="${t.rows.length}">${t.rows.map(t=>`<field x="${t}"/>`).join("")}</rowFields>`),W(t)&&c.push(U("rowItems",e.rowEntries)),e.colFields.length>0&&c.push(`<colFields count="${e.colFields.length}">${e.colFields.map(t=>`<field x="${t}"/>`).join("")}</colFields>`),W(t)&&c.push(U("colItems",e.colEntries)),t.filters.length>0){const o=t.filters.map(t=>{const o=e.fields[t.field],s=void 0===t.selected?-1:o?.items?.findIndex(e=>{return o=e,null===(s=t.selected??null)?"m"===o.t:"string"==typeof s?"s"===o.t&&o.v.toLowerCase()===s.toLowerCase():("n"===o.t||"b"===o.t)&&o.v===s;var o,s})??-1;return`<pageField fld="${t.field}"${s>=0?` item="${s}"`:""} hier="-1"/>`});c.push(`<pageFields count="${o.length}">${o.join("")}</pageFields>`)}if(t.values.length>0){const o=t.values.map((t,o)=>{const s="sum"===t.aggregate?"":` subtotal="${t.aggregate}"`;return`<dataField name="${(0,a.n)(e.valueNames[o]??"")}" fld="${t.field}"${s} baseField="0" baseItem="0"/>`});c.push(`<dataFields count="${o.length}">${o.join("")}</dataFields>`)}return c.push('<pivotTableStyleInfo name="PivotStyleLight16" showRowHeaders="1" showColHeaders="1" showRowStripes="0" showColStripes="0" showLastColumn="1"/>',"</pivotTableDefinition>"),O.encode(c.join(""))}const W=t=>t.rows.length+t.columns.length+t.values.length>0;function U(t,e){const o=[`<${t} count="${e.length}">`];for(const t of e){let e="";"data"!==t.type&&(e+=` t="${t.type}"`),t.r>0&&(e+=` r="${t.r}"`),t.i>0&&(e+=` i="${t.i}"`);const s=t.x.map(t=>0===t?"<x/>":`<x v="${t}"/>`).join("");o.push(0===s.length?`<i${e}/>`:`<i${e}>${s}</i>`)}return o.push(`</${t}>`),o.join("")}const H="application/vnd.openxmlformats-package.core-properties+xml",X="application/vnd.openxmlformats-officedocument.extended-properties+xml",q=`${i.ct}/metadata/core-properties`,_=`${i.lt}/extended-properties`,G=`${i.lt}/custom-properties`,Z=`${i.lt}/theme`,Y=`${i.lt}/table`,K="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",Q=`${i.lt}/comments`,J="xl/persons/person.xml",tt=`${i.lt}/vmlDrawing`,et="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",ot="application/vnd.openxmlformats-officedocument.vmlDrawing",st=`${i.lt}/drawing`,nt="application/vnd.openxmlformats-officedocument.drawing+xml",rt=`${i.lt}/chart`,it="http://schemas.microsoft.com/office/2014/relationships/chartEx",at="application/vnd.openxmlformats-officedocument.drawingml.chart+xml",lt=`${i.lt}/image`,ct=`${i.lt}/chartsheet`,dt="application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",ut=`${i.lt}/chartUserShapes`,ht=`${i.lt}/pivotTable`,ft=`${i.lt}/pivotCacheDefinition`,pt=`${i.lt}/pivotCacheRecords`,mt="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",vt="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",gt="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml";async function xt(t,e={}){const o=$t();return await async function(t,e,o={}){(t=>{const e=new Map;for(let o=0;o<t.sheets.length;o++){const n=t.sheets[o];if(!n)continue;const r=n.sheet.title,i=(0,m.C)(r);if(i)throw new s.s(`saveWorkbook: sheet[${o}] title "${r}": ${i}`);const a=r.toLowerCase(),l=e.get(a);if(void 0!==l)throw new s.s(`saveWorkbook: sheet[${o}] title "${r}" collides with sheet[${l}] (Excel treats sheet names case-insensitively for uniqueness).`);e.set(a,o)}})(t),(t=>{const e=(0,v.n)(t.styles).length;for(const o of t.sheets)if("worksheet"===o.kind)for(const t of o.sheet.conditionalFormatting)for(const n of t.rules){const r=n.dxfId;if(!(void 0===r||Number.isInteger(r)&&r>=0&&r<e))throw new s.s(`saveWorkbook: sheet "${o.sheet.title}" conditional formatting ${(0,d.hr)(t.sqref)} uses dxfId ${r}, but the stylesheet has ${e} differential format${1===e?"":"s"}; add it with addDxf(wb.styles, ...) first`)}})(t);const a=P(e,o);try{await async function(t,e){const o=(0,u.a)(),s=t.persons??[],a=[],d=[];let m=1;const v=[];let g=wt(t,/^xl\/drawings\/vmlDrawing(\d+)\.vml$/);const x=[];let $=wt(t,/^xl\/threadedComments\/threadedComment(\d+)\.xml$/);const w=[];let b=1;const y=[];let k=1;const C=[];let S=1;const I=[],T=new Set;let P=wt(t,/^xl\/media\/image(\d+)\./),E=1,O=1;const M=new Set;for(const e of t.sheets)void 0!==e.rId&&M.add(e.rId);if(t.workbookRelOriginalIds)for(const e of Object.values(t.workbookRelOriginalIds))"string"==typeof e&&M.add(e);if(t.workbookRelsExtras)for(const e of t.workbookRelsExtras)M.add(e.id);let z=1;const W=()=>{let t=`rId${z}`;for(;M.has(t);)z++,t=`rId${z}`;return M.add(t),z++,t};for(const e of t.sheets){const t="chartsheet"===e.kind,o=t?`chartsheets/sheet${O}.xml`:`worksheets/sheet${E}.xml`,s=t?`xl/chartsheets/sheet${O}.xml`:`xl/worksheets/sheet${E}.xml`;t?O++:E++,a.push({ref:e,id:e.rId??W(),target:o,relType:t?ct:`${i.lt}/worksheet`,archivePath:s,contentType:t?dt:i.bt})}const U=[],xt=new Map;let $t=Math.max(0,...(t.pivotCaches??[]).map(t=>t.cacheId))+1,kt=Math.max(wt(t,/^xl\/pivotCache\/pivotCacheDefinition(\d+)\.xml$/),wt(t,/^xl\/pivotCache\/pivotCacheRecords(\d+)\.xml$/)),Ct=wt(t,/^xl\/pivotTables\/pivotTable(\d+)\.xml$/);for(const e of t.sheets)if("worksheet"===e.kind)for(const o of e.sheet.pivotTables??[]){const s={pt:o,computed:(0,p.a)(t,o),cacheId:$t++,cacheIndex:kt++,tableIndex:Ct++,wbRId:W()};U.push(s);const n=xt.get(e.sheet);n?n.push(s):xt.set(e.sheet,[s])}const St=function(t,e,o){const s=t.workbookXmlRoot?.namespaces??[],r=s.map(t=>` xmlns:${t.prefix}="${yt(t.ns)}"`).join(""),a=t.workbookXmlRoot?.ignorable,c=void 0!==a?` mc:Ignorable="${yt(a)}"`:"",d={[i.ft]:"",[i.lt]:"r"};for(const t of s)d[t.ns]??=t.prefix;const u=t=>function(t,e){const o=(0,l.t)(t,{xmlDeclaration:!1,...e?{inScopePrefixes:e}:{}});return(new TextDecoder).decode(o)}(t,d),h=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',`<workbook xmlns="${i.ft}" xmlns:r="${i.lt}"${r}${c}>`];if(t.fileVersion){const e=function(t){let e="";void 0!==t.appName&&(e+=` appName="${yt(t.appName)}"`);void 0!==t.lastEdited&&(e+=` lastEdited="${yt(t.lastEdited)}"`);void 0!==t.lowestEdited&&(e+=` lowestEdited="${yt(t.lowestEdited)}"`);void 0!==t.rupBuild&&(e+=` rupBuild="${yt(t.rupBuild)}"`);void 0!==t.codeName&&(e+=` codeName="${yt(t.codeName)}"`);return 0===e.length?void 0:`<fileVersion${e}/>`}(t.fileVersion);e&&h.push(e)}if(t.fileSharing){const e=function(t){let e="";void 0!==t.readOnlyRecommended&&(e+=` readOnlyRecommended="${t.readOnlyRecommended?"1":"0"}"`);void 0!==t.userName&&(e+=` userName="${yt(t.userName)}"`);void 0!==t.reservationPassword&&(e+=` reservationPassword="${yt(t.reservationPassword)}"`);void 0!==t.algorithmName&&(e+=` algorithmName="${yt(t.algorithmName)}"`);void 0!==t.hashValue&&(e+=` hashValue="${yt(t.hashValue)}"`);void 0!==t.saltValue&&(e+=` saltValue="${yt(t.saltValue)}"`);void 0!==t.spinCount&&(e+=` spinCount="${t.spinCount}"`);return 0===e.length?void 0:`<fileSharing${e}/>`}(t.fileSharing);e&&h.push(e)}const f=function(t){const e=t.workbookProperties;if(e)return t.date1904&&void 0===e.date1904?{...e,date1904:!0}:e;if(t.date1904)return{date1904:!0}}(t);if(f){const t=function(t){let e="";for(const o of["date1904","dateCompatibility","showBorderUnselectedTables","filterPrivacy","promptedSolutions","showInkAnnotation","backupFile","saveExternalLinkValues","hidePivotFieldList","showPivotChartFilter","allowRefreshQuery","publishItems","checkCompatibility","autoCompressPictures","refreshAllConnections"]){const s=t[o];void 0!==s&&(e+=` ${o}="${s?"1":"0"}"`)}void 0!==t.showObjects&&(e+=` showObjects="${t.showObjects}"`);void 0!==t.updateLinks&&(e+=` updateLinks="${t.updateLinks}"`);void 0!==t.codeName&&(e+=` codeName="${yt(t.codeName)}"`);void 0!==t.defaultThemeVersion&&(e+=` defaultThemeVersion="${t.defaultThemeVersion}"`);return 0===e.length?void 0:`<workbookPr${e}/>`}(f);t&&h.push(t)}if(t.workbookProtection){const e=function(t){let e="";for(const o of["workbookPassword","workbookPasswordCharacterSet","workbookAlgorithmName","workbookHashValue","workbookSaltValue","revisionsPassword","revisionsPasswordCharacterSet","revisionsAlgorithmName","revisionsHashValue","revisionsSaltValue"]){const s=t[o];void 0!==s&&(e+=` ${o}="${yt(s)}"`)}void 0!==t.workbookSpinCount&&(e+=` workbookSpinCount="${t.workbookSpinCount}"`);void 0!==t.revisionsSpinCount&&(e+=` revisionsSpinCount="${t.revisionsSpinCount}"`);void 0!==t.lockStructure&&(e+=` lockStructure="${t.lockStructure?"1":"0"}"`);void 0!==t.lockWindows&&(e+=` lockWindows="${t.lockWindows?"1":"0"}"`);void 0!==t.lockRevision&&(e+=` lockRevision="${t.lockRevision?"1":"0"}"`);return 0===e.length?void 0:`<workbookProtection${e}/>`}(t.workbookProtection);e&&h.push(e)}if(t.workbookXmlExtras?.beforeSheets)for(const e of t.workbookXmlExtras.beforeSheets)h.push(u(e));t.bookViews&&t.bookViews.length>0&&h.push(function(t,e){const o=["<bookViews>"];for(const s of t){let t="";void 0!==s.visibility&&(t+=` visibility="${s.visibility}"`),void 0!==s.minimized&&(t+=` minimized="${s.minimized?"1":"0"}"`),void 0!==s.showHorizontalScroll&&(t+=` showHorizontalScroll="${s.showHorizontalScroll?"1":"0"}"`),void 0!==s.showVerticalScroll&&(t+=` showVerticalScroll="${s.showVerticalScroll?"1":"0"}"`),void 0!==s.showSheetTabs&&(t+=` showSheetTabs="${s.showSheetTabs?"1":"0"}"`),void 0!==s.xWindow&&(t+=` xWindow="${s.xWindow}"`),void 0!==s.yWindow&&(t+=` yWindow="${s.yWindow}"`),void 0!==s.windowWidth&&(t+=` windowWidth="${s.windowWidth}"`),void 0!==s.windowHeight&&(t+=` windowHeight="${s.windowHeight}"`),void 0!==s.tabRatio&&(t+=` tabRatio="${s.tabRatio}"`),void 0!==s.firstSheet&&(t+=` firstSheet="${s.firstSheet}"`),void 0!==s.activeTab&&(t+=` activeTab="${s.activeTab}"`),void 0!==s.autoFilterDateGrouping&&(t+=` autoFilterDateGrouping="${s.autoFilterDateGrouping?"1":"0"}"`);for(const[o,n]of Object.entries(s.extAttrs??{})){const{ns:s,local:r}=(0,i.Mt)(o),a=e[s];void 0!==a&&(t+=` ${a}:${r}="${yt(n)}"`)}o.push(`<workbookView${t}/>`)}return o.push("</bookViews>"),o.join("")}(t.bookViews,d));if(h.push("<sheets>"),t.sheets.forEach((t,o)=>{const s="visible"===t.state?"":` state="${t.state}"`,n=e[o]??`rId${o+1}`;h.push(`<sheet name="${yt(t.sheet.title)}" sheetId="${t.sheetId}"${s} r:id="${n}"/>`)}),h.push("</sheets>"),t.functionGroups){const e=function(t){let e="";void 0!==t.builtInGroupCount&&(e+=` builtInGroupCount="${t.builtInGroupCount}"`);if(0===t.groups.length&&0===e.length)return;if(0===t.groups.length)return`<functionGroups${e}/>`;const o=[`<functionGroups${e}>`];for(const e of t.groups)o.push(`<functionGroup name="${yt(e.name)}"/>`);return o.push("</functionGroups>"),o.join("")}(t.functionGroups);e&&h.push(e)}if(t.externalReferences&&t.externalReferences.length>0){const e=["<externalReferences>"];for(const o of t.externalReferences)e.push(`<externalReference r:id="${yt(o.rId)}"/>`);e.push("</externalReferences>"),h.push(e.join(""))}if(t.definedNames.length>0){h.push("<definedNames>");for(const e of t.definedNames){let t=` name="${yt(e.name)}"`;void 0!==e.scope&&(t+=` localSheetId="${e.scope}"`),e.hidden&&(t+=' hidden="1"'),void 0!==e.comment&&(t+=` comment="${yt(e.comment)}"`);const o=(0,n.r)(e.value,`workbook: <definedName> "${e.name}"`);h.push(`<definedName${t}>${bt(o)}</definedName>`)}h.push("</definedNames>")}if(t.calcProperties){const e=function(t){let e="";void 0!==t.calcId&&(e+=` calcId="${t.calcId}"`);void 0!==t.calcMode&&(e+=` calcMode="${t.calcMode}"`);void 0!==t.fullCalcOnLoad&&(e+=` fullCalcOnLoad="${t.fullCalcOnLoad?"1":"0"}"`);void 0!==t.refMode&&(e+=` refMode="${t.refMode}"`);void 0!==t.iterate&&(e+=` iterate="${t.iterate?"1":"0"}"`);void 0!==t.iterateCount&&(e+=` iterateCount="${t.iterateCount}"`);void 0!==t.iterateDelta&&(e+=` iterateDelta="${t.iterateDelta}"`);void 0!==t.fullPrecision&&(e+=` fullPrecision="${t.fullPrecision?"1":"0"}"`);void 0!==t.calcCompleted&&(e+=` calcCompleted="${t.calcCompleted?"1":"0"}"`);void 0!==t.calcOnSave&&(e+=` calcOnSave="${t.calcOnSave?"1":"0"}"`);void 0!==t.concurrentCalc&&(e+=` concurrentCalc="${t.concurrentCalc?"1":"0"}"`);void 0!==t.concurrentManualCount&&(e+=` concurrentManualCount="${t.concurrentManualCount}"`);void 0!==t.forceFullCalc&&(e+=` forceFullCalc="${t.forceFullCalc?"1":"0"}"`);return 0===e.length?void 0:`<calcPr${e}/>`}(t.calcProperties);e&&h.push(e)}void 0!==t.oleSize&&h.push(`<oleSize ref="${yt(t.oleSize)}"/>`);t.customWorkbookViews&&t.customWorkbookViews.length>0&&h.push(function(t){const e=["<customWorkbookViews>"];for(const o of t){let t=` name="${yt(o.name)}" guid="${yt(o.guid)}"`;void 0!==o.autoUpdate&&(t+=` autoUpdate="${o.autoUpdate?"1":"0"}"`),void 0!==o.mergeInterval&&(t+=` mergeInterval="${o.mergeInterval}"`),void 0!==o.changesSavedWin&&(t+=` changesSavedWin="${o.changesSavedWin?"1":"0"}"`),void 0!==o.onlySync&&(t+=` onlySync="${o.onlySync?"1":"0"}"`),void 0!==o.personalView&&(t+=` personalView="${o.personalView?"1":"0"}"`),void 0!==o.includePrintSettings&&(t+=` includePrintSettings="${o.includePrintSettings?"1":"0"}"`),void 0!==o.includeHiddenRowCol&&(t+=` includeHiddenRowCol="${o.includeHiddenRowCol?"1":"0"}"`),void 0!==o.maximized&&(t+=` maximized="${o.maximized?"1":"0"}"`),void 0!==o.minimized&&(t+=` minimized="${o.minimized?"1":"0"}"`),void 0!==o.showHorizontalScroll&&(t+=` showHorizontalScroll="${o.showHorizontalScroll?"1":"0"}"`),void 0!==o.showVerticalScroll&&(t+=` showVerticalScroll="${o.showVerticalScroll?"1":"0"}"`),void 0!==o.showSheetTabs&&(t+=` showSheetTabs="${o.showSheetTabs?"1":"0"}"`),void 0!==o.xWindow&&(t+=` xWindow="${o.xWindow}"`),void 0!==o.yWindow&&(t+=` yWindow="${o.yWindow}"`),t+=` windowWidth="${o.windowWidth}" windowHeight="${o.windowHeight}"`,void 0!==o.tabRatio&&(t+=` tabRatio="${o.tabRatio}"`),t+=` activeSheetId="${o.activeSheetId}"`,void 0!==o.showFormulaBar&&(t+=` showFormulaBar="${o.showFormulaBar?"1":"0"}"`),void 0!==o.showStatusbar&&(t+=` showStatusbar="${o.showStatusbar?"1":"0"}"`),void 0!==o.showComments&&(t+=` showComments="${o.showComments}"`),void 0!==o.showObjects&&(t+=` showObjects="${o.showObjects}"`),e.push(`<customWorkbookView${t}/>`)}return e.push("</customWorkbookViews>"),e.join("")}(t.customWorkbookViews));const p=[...t.pivotCaches??[],...o];if(p.length>0){const t=["<pivotCaches>"];for(const e of p)t.push(`<pivotCache cacheId="${e.cacheId}" r:id="${yt(e.rId)}"/>`);t.push("</pivotCaches>"),h.push(t.join(""))}if(t.smartTagPr){const e=function(t){let e="";void 0!==t.embed&&(e+=` embed="${t.embed?"1":"0"}"`);void 0!==t.show&&(e+=` show="${t.show}"`);return 0===e.length?void 0:`<smartTagPr${e}/>`}(t.smartTagPr);e&&h.push(e)}t.smartTagTypes&&t.smartTagTypes.length>0&&h.push(function(t){const e=["<smartTagTypes>"];for(const o of t){let t="";void 0!==o.namespaceUri&&(t+=` namespaceUri="${yt(o.namespaceUri)}"`),void 0!==o.name&&(t+=` name="${yt(o.name)}"`),void 0!==o.url&&(t+=` url="${yt(o.url)}"`),e.push(`<smartTagType${t}/>`)}return e.push("</smartTagTypes>"),e.join("")}(t.smartTagTypes));if(t.fileRecoveryPr){const e=function(t){let e="";void 0!==t.autoRecover&&(e+=` autoRecover="${t.autoRecover?"1":"0"}"`);void 0!==t.crashSave&&(e+=` crashSave="${t.crashSave?"1":"0"}"`);void 0!==t.dataExtractLoad&&(e+=` dataExtractLoad="${t.dataExtractLoad?"1":"0"}"`);void 0!==t.repairLoad&&(e+=` repairLoad="${t.repairLoad?"1":"0"}"`);return 0===e.length?void 0:`<fileRecoveryPr${e}/>`}(t.fileRecoveryPr);e&&h.push(e)}if(t.workbookXmlExtras?.afterSheets)for(const e of t.workbookXmlExtras.afterSheets)h.push(u(e));return h.push("</workbook>"),h.join("")}(t,a.map(t=>t.id),U.map(t=>({cacheId:t.cacheId,rId:t.wbRId})));await e.addEntry(i.g,(new TextEncoder).encode(St));const It=async s=>{const{ref:n,archivePath:i}=s,a=(0,f.o)(),l=new Set,c="worksheet"===n.kind?n.sheet.relsExtras??[]:[];for(const t of c)l.add(t.id);let u=1;const p=()=>{let t=`rId${u}`;for(;l.has(t)||a.rels.some(e=>e.id===t);)u++,t=`rId${u}`;return u++,t},N=t=>{const e=m++,o=p();a.rels.push({id:o,type:Y,target:`../tables/table${e}.xml`});const s={...t,id:e};return d.push({id:e,bytes:(0,h.r)(s)}),{rId:o}},L=(t,e)=>{if(e.length>0){const t=$++;a.rels.push({id:p(),type:h.s,target:`../threadedComments/threadedComment${t}.xml`}),x.push({id:t,bytes:(0,h.p)(e)})}const o=[...t,...(0,h.f)(e)],s=g++,n=p();a.rels.push({id:n,type:Q,target:`../comments${s}.xml`});const r=p();return a.rels.push({id:r,type:tt,target:`../drawings/vmlDrawing${s}.vml`}),v.push({id:s,commentsBytes:(0,h.m)(o),vmlBytes:(0,h.g)(o)}),{vmlRelId:r}},D=t=>{const e=b++,o=p();a.rels.push({id:o,type:st,target:`../drawings/drawing${e}.xml`});const s=(0,f.o)(),n=new Set;for(const e of t.rawRels?.rels??[])s.rels.push(e),n.add(e.id);let i=1;const l=()=>{let t="rId"+i++;for(;n.has(t);)t="rId"+i++;return n.add(t),t},c=[];for(const e of t.items)if("chart"===e.content.kind&&(e.content.chart.space||e.content.chart.cxSpace)){const t=k++,o=l(),n=void 0!==e.content.chart.cxSpace;if(s.rels.push({id:o,type:n?it:rt,target:`../charts/chart${t}.xml`}),e.content.chart.cxSpace){const o=(0,f.o)();o.rels.push({id:"rId1",type:F,target:`style${t}.xml`},{id:"rId2",type:R,target:`colors${t}.xml`}),y.push({id:t,bytes:(0,h.N)(e.content.chart.cxSpace),isCx:!0,rels:o})}else if(e.content.chart.space){const o=e.content.chart.space;let s,n;if(o.userShapes&&o.userShapes.shapes.length>0){const t=S++;s="rId1",n=(0,f.o)(),n.rels.push({id:s,type:ut,target:`../drawings/chartDrawing${t}.xml`}),C.push({id:t,bytes:(0,h.M)(o.userShapes)})}const r={id:t,bytes:(0,h.I)(o,void 0!==s?{userShapesRId:s}:{}),isCx:!1};n&&(r.rels=n),y.push(r)}c.push({anchor:e.anchor,content:{kind:"chart",chart:{rId:o,...e.content.chart.cxSpace?{isCx:!0}:{}}}})}else if("picture"===e.content.kind&&e.content.picture.image){const t=e.content.picture.image,o=r.m[t.format],n=P++,i=l();s.rels.push({id:i,type:lt,target:`../media/image${n}.${o}`}),I.push({id:n,ext:o,bytes:t.bytes}),T.add(o),c.push({anchor:e.anchor,content:{kind:"picture",picture:{rId:i,...void 0!==e.content.picture.name?{name:e.content.picture.name}:{},...void 0!==e.content.picture.descr?{descr:e.content.picture.descr}:{},...void 0!==e.content.picture.hidden?{hidden:e.content.picture.hidden}:{},...e.content.picture.spPr?{spPr:e.content.picture.spPr}:{}}}})}else c.push(e);const d={id:e,bytes:(0,h.v)({items:c,...t.rawChildren?{rawChildren:t.rawChildren}:{}})};return s.rels.length>0&&(d.rels=s),w.push(d),{rId:o}};if("worksheet"===n.kind)await(async(t,e,o)=>{const s=t.addStreamingEntry(e);try{const t=new TextEncoder;let e="",n=0;o(o=>{e+=o,n+=function(t){let e=0;for(let o=0;o<t.length;o++){const s=t.charCodeAt(o);if(s<128)e+=1;else if(s<2048)e+=2;else if(s>=55296&&s<=56319){const s=o+1<t.length?t.charCodeAt(o+1):0;s>=56320&&s<=57343?(e+=4,o++):e+=3}else e+=3}return e}(o),n>=65536&&(s.write(t.encode(e)),e="",n=0)}),e.length>0&&s.write(t.encode(e))}catch(t){try{await s.end()}catch{}throw t}await s.end()})(e,i,e=>{(0,h.C)(n.sheet,{sharedStrings:o,styles:t.styles,date1904:t.date1904,rels:a,registerTable:N,registerComments:L,registerDrawing:D},e)});else{let t;n.sheet.drawing&&(t=D(n.sheet.drawing).rId),await e.addEntry(i,(0,h.b)(n.sheet,void 0!==t?{drawingRId:t}:{}))}if("worksheet"===n.kind)for(const t of xt.get(n.sheet)??[])a.rels.push({id:p(),type:ht,target:`../pivotTables/pivotTable${t.tableIndex}.xml`});for(const t of c)a.rels.push({id:t.id,type:t.type,target:t.target});if(a.rels.length>0){const t=i.lastIndexOf("/"),o=i.slice(0,t),s=i.slice(t+1);await e.addEntry(`${o}/_rels/${s}.rels`,(0,f.c)(a))}};for(const t of a)await It(t);const Tt=(0,f.o)();Tt.rels=a.map(t=>({id:t.id,type:t.relType,target:t.target}));const Pt=t.workbookRelOriginalIds;o.entries.length>0&&Tt.rels.push({id:Pt?.sharedStrings??W(),type:`${i.lt}/sharedStrings`,target:"sharedStrings.xml"});Tt.rels.push({id:Pt?.styles??W(),type:`${i.lt}/styles`,target:"styles.xml"}),t.themeXml&&Tt.rels.push({id:Pt?.theme??W(),type:Z,target:"theme/theme1.xml"});t.vbaProject&&Tt.rels.push({id:Pt?.vbaProject??W(),type:"http://schemas.microsoft.com/office/2006/relationships/vbaProject",target:"vbaProject.bin"});if(t.workbookRelsExtras)for(const e of t.workbookRelsExtras)Tt.rels.push({id:e.id,type:e.type,target:e.target});s.length>0&&Tt.rels.push({id:W(),type:h.i,target:"persons/person.xml"});for(const t of U)Tt.rels.push({id:t.wbRId,type:ft,target:`pivotCache/pivotCacheDefinition${t.cacheIndex}.xml`});await e.addEntry(i._,(0,f.c)(Tt));for(const t of d)await e.addEntry(`xl/tables/table${t.id}.xml`,t.bytes);for(const t of v)await e.addEntry(`xl/comments${t.id}.xml`,t.commentsBytes),await e.addEntry(`xl/drawings/vmlDrawing${t.id}.vml`,t.vmlBytes);for(const t of x)await e.addEntry(`xl/threadedComments/threadedComment${t.id}.xml`,t.bytes);s.length>0&&await e.addEntry(J,(0,h.u)(s));for(const t of w)await e.addEntry(`xl/drawings/drawing${t.id}.xml`,t.bytes),t.rels&&await e.addEntry(`xl/drawings/_rels/drawing${t.id}.xml.rels`,(0,f.c)(t.rels));for(const t of y)await e.addEntry(`xl/charts/chart${t.id}.xml`,t.bytes),t.rels&&await e.addEntry(`xl/charts/_rels/chart${t.id}.xml.rels`,(0,f.c)(t.rels)),t.isCx&&(await e.addEntry(`xl/charts/style${t.id}.xml`,(new TextEncoder).encode(D)),await e.addEntry(`xl/charts/colors${t.id}.xml`,(new TextEncoder).encode(A)));for(const t of C)await e.addEntry(`xl/drawings/chartDrawing${t.id}.xml`,t.bytes);for(const t of I)await e.addEntry(`xl/media/image${t.id}.${t.ext}`,t.bytes);for(const t of U){const o=(0,f.o)();o.rels.push({id:"rId1",type:ft,target:`../pivotCache/pivotCacheDefinition${t.cacheIndex}.xml`}),await e.addEntry(`xl/pivotTables/pivotTable${t.tableIndex}.xml`,B(t.pt,t.computed,t.cacheId)),await e.addEntry(`xl/pivotTables/_rels/pivotTable${t.tableIndex}.xml.rels`,(0,f.c)(o));const s=(0,f.o)();s.rels.push({id:"rId1",type:pt,target:`pivotCacheRecords${t.cacheIndex}.xml`}),await e.addEntry(`xl/pivotCache/pivotCacheDefinition${t.cacheIndex}.xml`,j(t.pt,t.computed,"rId1")),await e.addEntry(`xl/pivotCache/_rels/pivotCacheDefinition${t.cacheIndex}.xml.rels`,(0,f.c)(s)),await e.addEntry(`xl/pivotCache/pivotCacheRecords${t.cacheIndex}.xml`,V(t.computed))}await e.addEntry(i.m,(0,h.t)(t.styles)),o.entries.length>0&&await e.addEntry(i.p,(0,u.u)(o));t.themeXml&&await e.addEntry(i.h,t.themeXml);t.properties&&await e.addEntry(i.l,(0,c.P)(t.properties));t.appProperties&&await e.addEntry(i.s,(0,c.n)(t.appProperties));t.customProperties&&await e.addEntry(i.u,(0,c.d)(t.customProperties));t.vbaProject&&await e.addEntry("xl/vbaProject.bin",t.vbaProject);t.vbaSignature&&await e.addEntry("xl/vbaProjectSignature.bin",t.vbaSignature);if(t.passthrough)for(const[o,s]of t.passthrough)await e.addEntry(o,s);const Ft={rels:[]};Ft.rels.push({id:"rId1",type:`${i.lt}/officeDocument`,target:"xl/workbook.xml"}),t.properties&&Ft.rels.push({id:`rId${Ft.rels.length+1}`,type:q,target:"docProps/core.xml"});t.appProperties&&Ft.rels.push({id:`rId${Ft.rels.length+1}`,type:_,target:"docProps/app.xml"});t.customProperties&&Ft.rels.push({id:`rId${Ft.rels.length+1}`,type:G,target:"docProps/custom.xml"});await e.addEntry(i.f,(0,f.c)(Ft));const Rt=(0,c.q)();if((0,c.U)(Rt,"rels","application/vnd.openxmlformats-package.relationships+xml"),(0,c.U)(Rt,"xml","application/xml"),t.passthroughDefaults)for(const[e,o]of t.passthroughDefaults)(0,c.U)(Rt,e,o);const Nt="xltx"===t.fileFormat||"xltm"===t.fileFormat,Lt=void 0!==t.vbaProject||"xlsm"===t.fileFormat||"xltm"===t.fileFormat,Dt=Nt?Lt?i.Et:i.Dt:Lt?i.wt:i.Tt;(0,c.W)(Rt,`/${i.g}`,Dt);for(const t of a)(0,c.W)(Rt,`/${t.archivePath}`,t.contentType);(0,c.W)(Rt,`/${i.m}`,i.mt),o.entries.length>0&&(0,c.W)(Rt,`/${i.p}`,i.ut);t.themeXml&&(0,c.W)(Rt,`/${i.h}`,i.ht);for(const t of d)(0,c.W)(Rt,`/xl/tables/table${t.id}.xml`,K);v.length>0&&(0,c.U)(Rt,"vml",ot);for(const t of v)(0,c.W)(Rt,`/xl/comments${t.id}.xml`,et);for(const t of x)(0,c.W)(Rt,`/xl/threadedComments/threadedComment${t.id}.xml`,h.o);s.length>0&&(0,c.W)(Rt,`/${J}`,h.a);for(const t of w)(0,c.W)(Rt,`/xl/drawings/drawing${t.id}.xml`,nt);for(const t of y)(0,c.W)(Rt,`/xl/charts/chart${t.id}.xml`,t.isCx?i.x:at),t.isCx&&((0,c.W)(Rt,`/xl/charts/style${t.id}.xml`,N),(0,c.W)(Rt,`/xl/charts/colors${t.id}.xml`,L));for(const t of C)(0,c.W)(Rt,`/xl/drawings/chartDrawing${t.id}.xml`,nt);for(const t of U)(0,c.W)(Rt,`/xl/pivotTables/pivotTable${t.tableIndex}.xml`,mt),(0,c.W)(Rt,`/xl/pivotCache/pivotCacheDefinition${t.cacheIndex}.xml`,vt),(0,c.W)(Rt,`/xl/pivotCache/pivotCacheRecords${t.cacheIndex}.xml`,gt);t.vbaProject&&(0,c.W)(Rt,"/xl/vbaProject.bin","application/vnd.ms-office.vbaProject");if(t.passthrough)for(const e of t.passthrough.keys()){const o=t.passthroughContentTypes?.get(e);void 0!==o&&(0,c.W)(Rt,`/${e}`,o)}for(const t of T){const e=(Object.entries(r.m).find(([,e])=>e===t)??[])[0];e&&(0,c.U)(Rt,t,r.h[e])}t.properties&&(0,c.W)(Rt,`/${i.l}`,H);t.appProperties&&(0,c.W)(Rt,`/${i.s}`,X);t.customProperties&&(0,c.W)(Rt,`/${i.u}`,i.M);await e.addEntry(i.c,(0,c.Y)(Rt)),await e.finalize()}(t,a)}catch(t){throw await a.abort(t),t}}(t,o,e),o.result()}const $t=()=>{const t=[];let e;const o=()=>{if(void 0!==e)return e;let o=0;for(const e of t)o+=e.byteLength;const s=new Uint8Array(o);let n=0;for(const e of t)s.set(e,n),n+=e.byteLength;return e=s,t.length=0,s};return{toBytes:()=>({write(o){if(void 0!==e)throw new s.a("workbookToBytes sink: write after finish");if(!(o instanceof Uint8Array))throw new s.a("workbookToBytes sink: chunk is not a Uint8Array");t.push(o)},finish:async()=>o(),abort(){void 0===e&&(e=new Uint8Array(0),t.length=0)}}),result:()=>o()}};function wt(t,e){let o=0;if(t.passthrough)for(const s of t.passthrough.keys()){const t=e.exec(s);void 0!==t?.[1]&&(o=Math.max(o,Number.parseInt(t[1],10)))}return o+1}const bt=a.r,yt=a.n},79687(t,e,o){o.d(e,{i:()=>r,n:()=>u,t:()=>p});var s=o(36326),n=o(61924);function r(t){return t}const i=t=>{if("1"===t||"true"===t)return!0;if("0"===t||"false"===t)return!1;if(void 0===t)return;const e=t.trim().toLowerCase();return"1"===e||"true"===e||"t"===e||"0"!==e&&"false"!==e&&"f"!==e&&void 0},a=(t,e,o)=>{switch(e){case"string":return t;case"int":{const e=Number.parseInt(t,10);if(!Number.isFinite(e))throw new s.s(`expected an integer, got "${t}"`);if(void 0!==o.min&&e<o.min)throw new s.s(`int "${e}" is below min ${o.min}`);if(void 0!==o.max&&e>o.max)throw new s.s(`int "${e}" is above max ${o.max}`);return e}case"float":{const e=Number.parseFloat(t);if(!Number.isFinite(e))throw new s.s(`expected a number, got "${t}"`);if(void 0!==o.min&&e<o.min)throw new s.s(`float "${e}" is below min ${o.min}`);if(void 0!==o.max&&e>o.max)throw new s.s(`float "${e}" is above max ${o.max}`);return e}case"bool":{const e=i(t);if(void 0===e)throw new s.s(`expected a boolean, got "${t}"`);return e}case"enum":if(!o.values?.includes(t))throw new s.s(`expected one of [${o.values?.join(", ")??""}], got "${t}"`);return t}},l=(t,e,o)=>{switch(e){case"string":if("string"!=typeof t)throw new s.s("expected a string, got "+typeof t);return t;case"int":if("number"!=typeof t||!Number.isFinite(t)||!Number.isInteger(t))throw new s.s(`expected an integer, got ${String(t)}`);return String(t);case"float":if("number"!=typeof t||!Number.isFinite(t))throw new s.s(`expected a number, got ${String(t)}`);return String(t);case"bool":if("boolean"!=typeof t)throw new s.s("expected a boolean, got "+typeof t);return t?"1":"0";case"enum":if("string"!=typeof t||!o.values||!o.values.includes(t))throw new s.s(`enum value out of range: ${String(t)}`);return t}},c=(t,e)=>(0,n.Nt)(e.xmlNs??"",e.xmlName??t),d=(t,e)=>{const o="sequence"===t.kind?t.container?.name??t.itemName:t.name??t.key;return(0,n.Nt)(("sequence"===t.kind?t.container?.xmlNs??t.itemNs??e:t.xmlNs??e)??"",o)};function u(t,e){const o=e.preSerialize?e.preSerialize(t):t,r=(0,n.n)((0,n.Nt)(e.xmlNs??"",e.tagname));for(const[t,n]of Object.entries(e.attrs)){if(void 0===n)continue;const i=o[t];if(void 0===i){if(n.optional)continue;throw new s.s(`<${e.tagname}>: required attribute "${t}" is missing`)}r.attrs[c(t,n)]=l(i,n.kind,n)}for(const t of e.elements){const i=o[t.key];if(void 0!==i)switch(t.kind){case"text":{const o=l(i,t.primitive,{kind:t.primitive});r.children.push((0,n.n)(d(t,e.xmlNs),t.attrs??{},[],o));break}case"empty":!0===i&&r.children.push((0,n.n)(d(t,e.xmlNs),{},[]));break;case"nested":{const o=t.valAttr??"val",s={kind:t.primitive,...void 0!==t.values?{values:t.values}:{},...void 0!==t.min?{min:t.min}:{},...void 0!==t.max?{max:t.max}:{}},a=l(i,t.primitive,s);r.children.push((0,n.n)(d(t,e.xmlNs),{[o]:a},[]));break}case"object":{const o=u(i,t.schema());void 0!==t.name&&o.name!==(0,n.Nt)(t.xmlNs??e.xmlNs??"",t.name)?o.name=(0,n.Nt)(t.xmlNs??e.xmlNs??"",t.name):void 0===t.name&&t.key!==o.name.replace(/^\{[^}]*\}/,"")&&(o.name=(0,n.Nt)(t.xmlNs??e.xmlNs??"",t.key)),r.children.push(o);break}case"raw":{const o=i,s=d(t,e.xmlNs);o.name!==s?r.children.push({...o,name:s}):r.children.push(o);break}case"sequence":{const o=i,s=t.itemSchema(),a=o.map(e=>{const o=u(e,s);return o.name=(0,n.Nt)(t.itemNs??s.xmlNs??"",t.itemName),o});if(void 0!==t.container){const s={};t.container.count&&(s.count=String(o.length)),r.children.push((0,n.n)(d(t,e.xmlNs),s,a))}else for(const t of a)r.children.push(t);break}}else if(("text"===t.kind||"object"===t.kind||"raw"===t.kind)&&!t.optional)throw new s.s(`<${e.tagname}>: required element "${t.key}" is missing`)}return r}const h=(t,e)=>{for(const o of t.children)if(o.name===e)return o},f=(t,e)=>{const o=[];for(const s of t.children)s.name===e&&o.push(s);return o};function p(t,e){const o={},r=(0,n.Nt)(e.xmlNs??"",e.tagname);if(t.name!==r)throw new s.s(`fromTree: expected <${e.tagname}> (Clark "${r}"), got "${t.name}"`);for(const[n,r]of Object.entries(e.attrs)){if(void 0===r)continue;const i=c(n,r),l=t.attrs[i];if(void 0!==l)o[n]=a(l,r.kind,r);else if(void 0!==r.default)o[n]=r.default;else if(!r.optional)throw new s.s(`<${e.tagname}>: required attribute "${n}" is missing`)}for(const r of e.elements){const i=d(r,e.xmlNs);switch(r.kind){case"text":{const n=h(t,i);if(void 0===n){if(void 0!==r.default)o[r.key]=r.default;else if(!r.optional)throw new s.s(`<${e.tagname}>: required text element "${r.key}" is missing`);break}o[r.key]=a(n.text??"",r.primitive,{kind:r.primitive});break}case"empty":void 0!==h(t,i)&&(o[r.key]=!0);break;case"nested":{const n=h(t,i);if(void 0===n){if(!r.optional)throw new s.s(`<${e.tagname}>: required nested element "${r.key}" is missing`);break}const l=r.valAttr??"val",c=n.attrs[l];if(void 0===c){if(void 0!==r.default){o[r.key]=r.default;break}throw new s.s(`<${e.tagname}>: nested element "${r.key}" missing attribute "${l}"`)}o[r.key]=a(c,r.primitive,{kind:r.primitive,...void 0!==r.values?{values:r.values}:{},...void 0!==r.min?{min:r.min}:{},...void 0!==r.max?{max:r.max}:{}});break}case"raw":{const n=h(t,i);if(void 0===n){if(!r.optional)throw new s.s(`<${e.tagname}>: required raw element "${r.key}" is missing`);break}o[r.key]=n;break}case"object":{const a=h(t,i);if(void 0===a){if(!r.optional)throw new s.s(`<${e.tagname}>: required element "${r.key}" is missing`);break}const l=r.schema(),c=a.name===(0,n.Nt)(l.xmlNs??"",l.tagname)?a:{...a,name:(0,n.Nt)(l.xmlNs??"",l.tagname)};o[r.key]=p(c,l);break}case"sequence":{const e=r.itemSchema(),s=(0,n.Nt)(r.itemNs??e.xmlNs??"",r.itemName),a=(0,n.Nt)(e.xmlNs??"",e.tagname),l=void 0!==r.container?h(t,i):t,c=[];if(void 0!==l){const t=f(l,s);for(const o of t){const t=o.name===a?o:{...o,name:a};c.push(p(t,e))}}o[r.key]=c;break}}}const i=o;return e.postParse?e.postParse(i,t):i}o.d(e,["r",0,i])},52541(t,e,o){o.d(e,{t:()=>r});var s=o(61924),n=o(47513);function r(t,e={}){const{xmlDeclaration:o=!0,standalone:s="yes",inScopePrefixes:n}=e,r=i(t,n),a=[];return o&&(a.push('<?xml version="1.0" encoding="UTF-8"'),"omit"!==s&&a.push(` standalone="${s}"`),a.push("?>\n")),c(a,t,r,!0),(new TextEncoder).encode(a.join(""))}const i=(t,e)=>{const o=new Set;a(t,o,!0),o.delete("");const n=new Map,r=new Set;for(const[t,o]of Object.entries(e??{}))""===t||n.has(t)||(n.set(t,o),r.add(t));const i=(0,s.Mt)(t.name).ns;let l="";i&&""===s.V[i]&&!n.has(i)&&(l=i,n.set(l,"")),n.set(s.Ot,"xml");let c=0;const d=new Set(["","xml","xmlns",...n.values()]),u=Array.from(o).sort();for(const t of u){if(n.has(t))continue;const e=s.V[t];void 0===e||""===e||d.has(e)||(n.set(t,e),d.add(e))}for(const t of u){if(n.has(t))continue;let e="ns"+c++;for(;d.has(e);)e="ns"+c++;n.set(t,e),d.add(e)}const h=[];""!==l&&h.push({prefix:"",ns:l});const f=[...r].find(t=>""===n.get(t));for(const t of u){if(t===l)continue;if(t===f)continue;if("http://www.w3.org/XML/1998/namespace"===t)continue;if(r.has(t))continue;const e=n.get(t);void 0!==e&&h.push({prefix:e,ns:t})}return{prefixOf:n,declarations:h}},a=(t,e,o)=>{if(e.add((0,s.Mt)(t.name).ns),o)for(const o of Object.keys(t.attrs))e.add((0,s.Mt)(o).ns);for(const s of t.children)a(s,e,o)},l=(t,e)=>{const{ns:o,local:n}=(0,s.Mt)(t);if(""===o)return n;const r=e.get(o);return void 0===r||""===r?n:`${r}:${n}`},c=(t,e,o,r)=>{const i=((t,e)=>{const{ns:o,local:n}=(0,s.Mt)(t);if(""===o)return n;const r=e.get(o);return void 0===r||""===r?n:`${r}:${n}`})(e.name,o.prefixOf);t.push("<",i);const a=new Set;if(r)for(const{prefix:e,ns:s}of o.declarations)t.push(""===e?` xmlns="${(0,n.n)(s)}"`:` xmlns:${e}="${(0,n.n)(s)}"`),a.add(`xmlns:${e}`);for(const[s,r]of Object.entries(e.attrs)){if(a.has(s))continue;const e=l(s,o.prefixOf);t.push(" ",e,'="',(0,n.n)(r),'"')}const d=e.text,u=void 0!==d&&""!==d,h=e.children.length>0;if(u||h){t.push(">"),u&&t.push((0,n.r)(d));for(const s of e.children)c(t,s,o,!1);t.push("</",i,">")}else t.push("/>")}},65418(t,e,o){o.d(e,{a:()=>m,d:()=>d,f:()=>c,n:()=>v,s:()=>x,t:()=>g,u:()=>y});var s=o(36326),n=o(61924),r=o(92906),i=o(47513),a=o(88539);const l=t=>new s.o(`ISO 29500 strict ("Strict Open XML Spreadsheet" in Excel's Save As dialog) requires workbook-level normalization: ${t}. Re-save the file from Excel as "Excel Workbook (.xlsx)" to get the transitional form.`);function c(t){if((0,n.Mt)(t).ns.startsWith("http://purl.oclc.org/ooxml/"))throw l(`part root element is "${t}"`)}function d(t){for(const e of t)if(e.startsWith("http://purl.oclc.org/ooxml/"))throw l(`package relationship type is "${e}"`)}const u=`{${n.ft}}sst`,h=`{${n.ft}}si`,f=`{${n.ft}}t`,p=`{${n.ft}}r`;function m(){return{entries:[],index:new Map,richIndex:new Map}}function v(t,e){const o=t.index.get(e);if(void 0!==o)return o;const s=t.entries.length;return t.entries.push(e),t.index.set(e,s),s}function g(t,e){const o=(0,a.xi)(e),s=t.richIndex.get(o);if(void 0!==s)return s;const n=t.entries.length;return t.entries.push({kind:"rich-text",runs:e}),t.richIndex.set(o,n),n}function x(t){const e=(0,r.n)(t);if(e.name!==u)throw c(e.name),new s.s(`parseSharedStringsXml: root is "${e.name}", expected sst`);const o=m();for(const t of(0,n.a)(e,h)){const e=$(t),s=o.entries.length;if(o.entries.push(e),"string"==typeof e)o.index.has(e)||o.index.set(e,s);else{const t=(0,a.xi)(e.runs);o.richIndex.has(t)||o.richIndex.set(t,s)}}return o}const $=t=>{const e=(0,n.a)(t,p);if(e.length>0){const t=[];for(const o of e){const e=(0,i.a)((0,n.i)(o,f)?.text??""),s=(0,n.i)(o,(0,n.Nt)(n.ft,"rPr")),r=s?w(s):void 0;t.push(void 0!==r?{text:e,font:r}:{text:e})}return{kind:"rich-text",runs:Object.freeze(t)}}return(t=>{let e="";for(const o of t.children)o.name===f&&(e+=(0,i.a)(o.text??""));return e})(t)},w=t=>{const e={};for(const o of t.children){const t=o.name.replace(/^\{[^}]+\}/,""),s=o.attrs.val;switch(t){case"rFont":case"name":void 0!==s&&(e.name=s);break;case"sz":void 0!==s&&(e.sz=Number.parseFloat(s));break;case"b":e.b=void 0===s||"0"!==s&&"false"!==s;break;case"i":e.i=void 0===s||"0"!==s&&"false"!==s;break;case"u":e.u=s??"single";break;case"strike":e.strike=void 0===s||"0"!==s&&"false"!==s;break;case"vertAlign":void 0!==s&&(e.vertAlign=s);break;case"family":void 0!==s&&(e.family=Number.parseInt(s,10));break;case"charset":void 0!==s&&(e.charset=Number.parseInt(s,10));break;case"scheme":void 0!==s&&(e.scheme=s);break;case"color":{const t={};void 0!==o.attrs.rgb&&(t.rgb=o.attrs.rgb),void 0!==o.attrs.theme&&(t.theme=Number.parseInt(o.attrs.theme,10)),void 0!==o.attrs.indexed&&(t.indexed=Number.parseInt(o.attrs.indexed,10)),void 0!==o.attrs.tint&&(t.tint=Number.parseFloat(o.attrs.tint)),void 0!==o.attrs.auto&&(t.auto="1"===o.attrs.auto||"true"===o.attrs.auto),e.color=t;break}}}return 0===Object.keys(e).length?void 0:Object.freeze(e)},b='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';function y(t){return(new TextEncoder).encode(function(t){const e=t.entries.length,o=[b,`<sst xmlns="${n.ft}" count="${e}" uniqueCount="${e}">`];for(const e of t.entries)o.push(`<si>${k(e)}</si>`);return o.push("</sst>"),o.join("")}(t))}const k=t=>"string"==typeof t?`<t${t.length>0&&(" "===t[0]||" "===t[t.length-1]||/[\t\n]/.test(t))?' xml:space="preserve"':""}>${(0,i.r)((0,i.t)(t))}</t>`:function(t){const e=[];for(const o of t){e.push("<r>"),o.font&&e.push(C(o.font));const t=o.text,s=t.length>0&&(" "===t[0]||" "===t[t.length-1]||/[\t\n]/.test(t))?' xml:space="preserve"':"";e.push(`<t${s}>${(0,i.r)((0,i.t)(t))}</t>`),e.push("</r>")}return e.join("")}(t.runs);const C=t=>{const e=["<rPr>"];return void 0!==t.name&&e.push(`<rFont val="${(0,i.n)(t.name)}"/>`),void 0!==t.charset&&e.push(`<charset val="${t.charset}"/>`),void 0!==t.family&&e.push(`<family val="${t.family}"/>`),t.b&&e.push("<b/>"),t.i&&e.push("<i/>"),t.strike&&e.push("<strike/>"),t.outline&&e.push("<outline/>"),t.shadow&&e.push("<shadow/>"),t.condense&&e.push("<condense/>"),t.extend&&e.push("<extend/>"),t.color&&e.push(S(t.color)),void 0!==t.sz&&e.push(`<sz val="${t.sz}"/>`),t.u&&e.push(`<u val="${t.u}"/>`),t.vertAlign&&e.push(`<vertAlign val="${t.vertAlign}"/>`),t.scheme&&e.push(`<scheme val="${t.scheme}"/>`),e.push("</rPr>"),e.join("")},S=t=>{const e=[];if(void 0!==t.rgb?e.push(`rgb="${(0,i.n)(t.rgb)}"`):void 0!==t.theme?e.push(`theme="${t.theme}"`):void 0!==t.indexed?e.push(`indexed="${t.indexed}"`):void 0!==t.auto&&e.push(`auto="${t.auto?"1":"0"}"`),void 0!==t.tint&&e.push(`tint="${t.tint}"`),0===e.length){const o=(0,a.ri)(t);void 0!==o&&e.push(`rgb="${o}"`)}return`<color${e.length>0?` ${e.join(" ")}`:""}/>`};o.d(e,["o",0,$])},65204(t,e,o){o.d(e,{B:()=>A,C:()=>ph,D:()=>nc,F:()=>Ki,H:()=>L,I:()=>Hr,L:()=>Ur,M:()=>za,N:()=>ia,O:()=>sc,P:()=>Ui,R:()=>Pr,U:()=>k,V:()=>D,W:()=>w,_:()=>jp,a:()=>pm,b:()=>Xf,c:()=>bm,d:()=>km,f:()=>Cm,g:()=>sm,h:()=>em,i:()=>fm,j:()=>Ea,l:()=>$m,m:()=>om,n:()=>jm,o:()=>hm,p:()=>wm,r:()=>Vm,s:()=>um,t:()=>ov,u:()=>ym,v:()=>Wp,w:()=>qd,x:()=>Of,y:()=>Ap,z:()=>E});var s=o(36326),n=o(75719),r=o(57409),i=o(67450);var a=o(83543);var l=o(79687),c=o(61924),d=o(92906),u=o(47513),h=o(52541),f=o(88539),p=o(65418),m=o(10061),v=o(67079),g=o(31948),x=o(18092),$=o(38223);const w=(0,l.i)({tagname:"alignment",xmlNs:c.ft,attrs:{horizontal:{kind:"enum",values:f._i,optional:!0},vertical:{kind:"enum",values:f.vi,optional:!0},textRotation:{kind:"int",optional:!0,min:0,max:255},wrapText:{kind:"bool",optional:!0},shrinkToFit:{kind:"bool",optional:!0},indent:{kind:"float",optional:!0,min:0,max:255},relativeIndent:{kind:"float",optional:!0,min:-255,max:255},justifyLastLine:{kind:"bool",optional:!0},readingOrder:{kind:"float",optional:!0,min:0}},elements:[]}),b=(0,l.i)({tagname:"color",xmlNs:c.ft,attrs:{rgb:{kind:"string",optional:!0},indexed:{kind:"int",optional:!0,min:0},theme:{kind:"int",optional:!0,min:0},auto:{kind:"bool",optional:!0},tint:{kind:"float",optional:!0,min:-1,max:1}},elements:[]}),y=(0,l.i)({tagname:"side",xmlNs:c.ft,attrs:{style:{kind:"enum",values:f.Zr,optional:!0}},elements:[{kind:"object",key:"color",schema:()=>b,optional:!0}]}),k=(0,l.i)({tagname:"border",xmlNs:c.ft,attrs:{diagonalUp:{kind:"bool",optional:!0},diagonalDown:{kind:"bool",optional:!0},outline:{kind:"bool",optional:!0}},elements:[{kind:"object",key:"left",schema:()=>y,optional:!0},{kind:"object",key:"right",schema:()=>y,optional:!0},{kind:"object",key:"top",schema:()=>y,optional:!0},{kind:"object",key:"bottom",schema:()=>y,optional:!0},{kind:"object",key:"diagonal",schema:()=>y,optional:!0},{kind:"object",key:"vertical",schema:()=>y,optional:!0},{kind:"object",key:"horizontal",schema:()=>y,optional:!0}]}),C=f.Gr,S=(0,l.i)({tagname:"stop",xmlNs:c.ft,attrs:{position:{kind:"float",min:0,max:1}},elements:[{kind:"object",key:"color",schema:()=>b}]}),I=(0,l.i)({tagname:"patternFill",xmlNs:c.ft,attrs:{patternType:{kind:"enum",values:C,optional:!0}},elements:[{kind:"object",key:"fgColor",schema:()=>b,optional:!0},{kind:"object",key:"bgColor",schema:()=>b,optional:!0}],postParse:t=>({...t,kind:"pattern"})}),T=(0,l.i)({tagname:"gradientFill",xmlNs:c.ft,attrs:{type:{kind:"enum",values:["linear","path"],optional:!0,default:"linear"},degree:{kind:"float",optional:!0},left:{kind:"float",optional:!0},right:{kind:"float",optional:!0},top:{kind:"float",optional:!0},bottom:{kind:"float",optional:!0}},elements:[{kind:"sequence",key:"stops",itemName:"stop",itemNs:c.ft,itemSchema:()=>S}],postParse:t=>({...t,kind:"gradient"})}),P=(0,c.Nt)(c.ft,"fill"),F=(0,c.Nt)(c.ft,"patternFill"),R=(0,c.Nt)(c.ft,"gradientFill");function N(t){const e="gradient"===t.kind?(0,l.n)(t,T):(0,l.n)(t,I);return(0,c.n)(P,{},[e])}function L(t){if(t.name!==P)throw new s.s(`fillFromTree: expected <fill>, got "${t.name}"`);const e=t.children[0];if(void 0===e)throw new s.s("fillFromTree: <fill> has no child element");if(e.name===F)return(0,l.t)(e,I);if(e.name===R)return(0,l.t)(e,T);throw new s.s(`fillFromTree: unknown Fill variant "${e.name}"`)}const D=(0,l.i)({tagname:"font",xmlNs:c.ft,attrs:{},elements:[{kind:"nested",key:"bold",name:"b",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"italic",name:"i",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"strike",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"condense",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"extend",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"outline",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"shadow",xmlNs:c.ft,primitive:"bool",optional:!0,default:!0},{kind:"nested",key:"underline",name:"u",xmlNs:c.ft,primitive:"enum",values:f.Vr,optional:!0,default:"single"},{kind:"nested",key:"vertAlign",xmlNs:c.ft,primitive:"enum",values:f.Hr,optional:!0},{kind:"nested",key:"size",name:"sz",xmlNs:c.ft,primitive:"float",optional:!0},{kind:"object",key:"color",schema:()=>b,optional:!0},{kind:"nested",key:"name",xmlNs:c.ft,primitive:"string",optional:!0},{kind:"nested",key:"family",xmlNs:c.ft,primitive:"int",min:0,max:14,optional:!0},{kind:"nested",key:"charset",xmlNs:c.ft,primitive:"int",optional:!0},{kind:"nested",key:"scheme",xmlNs:c.ft,primitive:"enum",values:f.Br,optional:!0}]}),A=(0,l.i)({tagname:"numFmt",xmlNs:c.ft,attrs:{numFmtId:{kind:"int",min:0},formatCode:{kind:"string"}},elements:[]}),E=(0,l.i)({tagname:"protection",xmlNs:c.ft,attrs:{locked:{kind:"bool",optional:!0},hidden:{kind:"bool",optional:!0}},elements:[]}),O=t=>`{${c.H}}${t}`,j=u.r,M=u.n,z=(t,e)=>{const o=t.attrs[e];if(void 0===o)return;const s=Number.parseInt(o,10);return Number.isInteger(s)?s:void 0},V=(t,e)=>{const o=t.attrs[e];if(void 0!==o)return"1"===o||"true"===o||"0"!==o&&"false"!==o&&void 0},B=new Set(["lumMod","lumOff","satMod","satOff","hueMod","hueOff","tint","shade","alpha","alphaMod","alphaOff","red","green","blue","redMod","greenMod","blueMod","redOff","greenOff","blueOff"]),W=new Set(["gray","comp","inv","invGamma","gamma"]),U=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),H=t=>{switch(t.name.split("}").pop()??t.name){case"srgbClr":{const e=t.attrs.val;if(!e)return;return{kind:"srgb",value:e.toUpperCase()}}case"sysClr":{const e=t.attrs.val;if(!e)return;const o=t.attrs.lastClr;return{kind:"sysClr",value:e,...o?{lastClr:o.toUpperCase()}:{}}}case"schemeClr":{const e=t.attrs.val;if(!e||!U.has(e))return;return{kind:"schemeClr",value:e}}case"prstClr":{const e=t.attrs.val;if(!e)return;return{kind:"prstClr",value:e}}case"hslClr":return{kind:"hslClr",hue:z(t,"hue")??0,sat:z(t,"sat")??0,lum:z(t,"lum")??0};case"scrgbClr":return{kind:"scrgbClr",r:z(t,"r")??0,g:z(t,"g")??0,b:z(t,"b")??0};default:return}},X=t=>{const e=[];for(const o of t.children){if("string"==typeof o)continue;const t=o.name.split("}").pop()??o.name;if(W.has(t))e.push({kind:t});else if(B.has(t)){const s=z(o,"val");void 0!==s&&e.push({kind:t,val:s})}}return e},q=t=>{for(const e of t.children){if("string"==typeof e)continue;const t=H(e);if(t)return{base:t,mods:X(e)}}},_=t=>W.has(t.kind)?`<a:${t.kind}/>`:`<a:${t.kind} val="${t.val}"/>`,G=t=>{const e=t.mods?.map(_).join("")??"";switch(t.base.kind){case"srgb":return`<a:srgbClr val="${t.base.value}">${e}</a:srgbClr>`;case"sysClr":{const o=t.base.lastClr?` lastClr="${t.base.lastClr}"`:"";return`<a:sysClr val="${t.base.value}"${o}>${e}</a:sysClr>`}case"schemeClr":return`<a:schemeClr val="${t.base.value}">${e}</a:schemeClr>`;case"prstClr":return`<a:prstClr val="${t.base.value}">${e}</a:prstClr>`;case"hslClr":return`<a:hslClr hue="${t.base.hue}" sat="${t.base.sat}" lum="${t.base.lum}">${e}</a:hslClr>`;case"scrgbClr":return`<a:scrgbClr r="${t.base.r}" g="${t.base.g}" b="${t.base.b}">${e}</a:scrgbClr>`}},Z=t=>G(t),Y=new Set(["noFill","solidFill","gradFill","blipFill","pattFill","grpFill"]),K=t=>{const e={},o=z(t,"l"),s=z(t,"t"),n=z(t,"r"),r=z(t,"b");return void 0!==o&&(e.l=o),void 0!==s&&(e.t=s),void 0!==n&&(e.r=n),void 0!==r&&(e.b=r),e},Q=(t,e)=>{const o=[];return void 0!==e.l&&o.push(`l="${e.l}"`),void 0!==e.t&&o.push(`t="${e.t}"`),void 0!==e.r&&o.push(`r="${e.r}"`),void 0!==e.b&&o.push(`b="${e.b}"`),`<${t}${o.length>0?` ${o.join(" ")}`:""}/>`},J=t=>{switch(t.name.split("}").pop()??t.name){case"biLevel":return{kind:"biLevel",thresh:z(t,"thresh")??0};case"blur":{const e=z(t,"rad")??0,o=V(t,"grow");return{kind:"blur",rad:e,...void 0!==o?{grow:o}:{}}}case"clrChange":{const e=V(t,"useA"),o=(0,c.i)(t,O("clrFrom")),s=(0,c.i)(t,O("clrTo"));if(!o||!s)return;const n=q(o)?.base,r=q(s)?.base;if(!n||!r)return;return{kind:"clrChange",clrFrom:n,clrTo:r,...void 0!==e?{useA:e}:{}}}case"clrRepl":{const e=q(t);if(!e)return;return{kind:"clrRepl",color:e.base}}case"duotone":{const e=[];for(const o of t.children){if("string"==typeof o)continue;const t=H(o);if(t&&e.push(t),2===e.length)break}if(2!==e.length)return;return{kind:"duotone",colors:[e[0],e[1]]}}case"grayscl":return{kind:"grayscl"};case"lum":{const e=z(t,"bright"),o=z(t,"contrast");return{kind:"lum",...void 0!==e?{bright:e}:{},...void 0!==o?{contrast:o}:{}}}case"tint":{const e=z(t,"hue"),o=z(t,"amt");return{kind:"tint",...void 0!==e?{hue:e}:{},...void 0!==o?{amt:o}:{}}}case"alphaModFix":return{kind:"alphaModFix",amt:z(t,"amt")??0};default:return}},tt=t=>{const e={},o=z(t,"tx"),s=z(t,"ty"),n=z(t,"sx"),r=z(t,"sy"),i=t.attrs.flip,a=t.attrs.algn;return void 0!==o&&(e.tx=o),void 0!==s&&(e.ty=s),void 0!==n&&(e.sx=n),void 0!==r&&(e.sy=r),"x"!==i&&"y"!==i&&"xy"!==i&&"none"!==i||(e.flip=i),a&&["tl","t","tr","l","ctr","r","bl","b","br"].includes(a)&&(e.algn=a),e},et=t=>{switch(t.name.split("}").pop()??t.name){case"noFill":return{kind:"noFill"};case"grpFill":return{kind:"grpFill"};case"solidFill":{const e=q(t);if(!e)return;return{kind:"solidFill",color:e}}case"gradFill":{const e=t.attrs.flip,o="x"===e||"y"===e||"xy"===e||"none"===e?e:void 0,s=V(t,"rotWithShape"),n=(0,c.i)(t,O("gsLst")),r=n?(t=>{const e=[];for(const o of(0,c.a)(t,O("gs"))){const t=z(o,"pos"),s=q(o);void 0!==t&&s&&e.push({pos:t,color:s})}return e})(n):[],i=(t=>{const e=(0,c.i)(t,O("lin"));if(e){const t=z(e,"ang")??0,o=V(e,"scaled");return{kind:"lin",ang:t,...void 0!==o?{scaled:o}:{}}}const o=(0,c.i)(t,O("path"));if(o){const t=o.attrs.path,e="shape"===t||"circle"===t||"rect"===t?t:"shape",s=(0,c.i)(o,O("fillToRect"));return{kind:"path",pathType:e,...s?{tileRect:K(s)}:{}}}})(t);return{kind:"gradFill",stops:r,...o?{flip:o}:{},...void 0!==s?{rotWithShape:s}:{},...i?{lineDir:i}:{}}}case"blipFill":{const e=z(t,"dpi"),o=V(t,"rotWithShape"),s=(0,c.i)(t,O("blip")),n=s?(t=>{const e={},o=t.attrs[`{${c.lt}}embed`],s=t.attrs[`{${c.lt}}link`],n=t.attrs.cstate;o&&(e.embedRId=o),s&&(e.linkRId=s),"email"!==n&&"screen"!==n&&"print"!==n&&"hqprint"!==n||(e.cstate=n);const r=[];for(const e of t.children){if("string"==typeof e)continue;const t=J(e);t&&r.push(t)}return r.length>0&&(e.effects=r),e})(s):{},r=(0,c.i)(t,O("tile")),i=(0,c.i)(t,O("stretch")),a=(0,c.i)(t,O("srcRect"));return{kind:"blipFill",blip:n,...void 0!==e?{dpi:e}:{},...void 0!==o?{rotWithShape:o}:{},...r?{tile:tt(r)}:{},...i?{stretch:(()=>{const t=(0,c.i)(i,O("fillRect"));return t?{fillRect:K(t)}:{}})()}:{},...a?{srcRect:K(a)}:{}}}case"pattFill":{const e=t.attrs.prst??"",o=(0,c.i)(t,O("fgClr")),s=(0,c.i)(t,O("bgClr"));return{kind:"pattFill",preset:e,...o?{fgClr:q(o)??{base:{kind:"srgb",value:"000000"},mods:[]}}:{},...s?{bgClr:q(s)??{base:{kind:"srgb",value:"FFFFFF"},mods:[]}}:{}}}default:return}},ot=t=>{for(const e of t.children){if("string"==typeof e)continue;const t=e.name.split("}").pop()??e.name;if(Y.has(t))return et(e)}},st=t=>{switch(t.kind){case"biLevel":return`<a:biLevel thresh="${t.thresh}"/>`;case"blur":return`<a:blur rad="${t.rad}"${void 0!==t.grow?` grow="${t.grow?"1":"0"}"`:""}/>`;case"clrChange":return`<a:clrChange${void 0!==t.useA?` useA="${t.useA?"1":"0"}"`:""}><a:clrFrom>${G({base:t.clrFrom,mods:[]})}</a:clrFrom><a:clrTo>${G({base:t.clrTo,mods:[]})}</a:clrTo></a:clrChange>`;case"clrRepl":return`<a:clrRepl>${G({base:t.color,mods:[]})}</a:clrRepl>`;case"duotone":return`<a:duotone>${G({base:t.colors[0],mods:[]})}${G({base:t.colors[1],mods:[]})}</a:duotone>`;case"grayscl":return"<a:grayscl/>";case"lum":{const e=[];return void 0!==t.bright&&e.push(`bright="${t.bright}"`),void 0!==t.contrast&&e.push(`contrast="${t.contrast}"`),`<a:lum${e.length>0?` ${e.join(" ")}`:""}/>`}case"tint":{const e=[];return void 0!==t.hue&&e.push(`hue="${t.hue}"`),void 0!==t.amt&&e.push(`amt="${t.amt}"`),`<a:tint${e.length>0?` ${e.join(" ")}`:""}/>`}case"alphaModFix":return`<a:alphaModFix amt="${t.amt}"/>`}},nt=t=>{switch(t.kind){case"noFill":return"<a:noFill/>";case"grpFill":return"<a:grpFill/>";case"solidFill":return`<a:solidFill>${G(t.color)}</a:solidFill>`;case"gradFill":{const e=[];t.flip&&e.push(`flip="${t.flip}"`),void 0!==t.rotWithShape&&e.push(`rotWithShape="${t.rotWithShape?"1":"0"}"`);const o=`<a:gsLst>${t.stops.map(t=>`<a:gs pos="${t.pos}">${G(t.color)}</a:gs>`).join("")}</a:gsLst>`,s=t.lineDir?(t=>{if("lin"===t.kind){const e=void 0!==t.scaled?` scaled="${t.scaled?"1":"0"}"`:"";return`<a:lin ang="${t.ang}"${e}/>`}const e=t.tileRect?Q("a:fillToRect",t.tileRect):"";return`<a:path path="${t.pathType}">${e}</a:path>`})(t.lineDir):"";return`<a:gradFill${e.length>0?` ${e.join(" ")}`:""}>${o}${s}</a:gradFill>`}case"blipFill":{const e=[];void 0!==t.dpi&&e.push(`dpi="${t.dpi}"`),void 0!==t.rotWithShape&&e.push(`rotWithShape="${t.rotWithShape?"1":"0"}"`);const o=(t=>{const e=[];t.embedRId&&e.push(`r:embed="${M(t.embedRId)}"`),t.linkRId&&e.push(`r:link="${M(t.linkRId)}"`),t.cstate&&e.push(`cstate="${t.cstate}"`);const o=(t.effects??[]).map(st).join("");return""===o?`<a:blip${e.length>0?` ${e.join(" ")}`:""}/>`:`<a:blip${e.length>0?` ${e.join(" ")}`:""}>${o}</a:blip>`})(t.blip),s=t.srcRect?Q("a:srcRect",t.srcRect):"",n=t.tile?(t=>{const e=[];return void 0!==t.tx&&e.push(`tx="${t.tx}"`),void 0!==t.ty&&e.push(`ty="${t.ty}"`),void 0!==t.sx&&e.push(`sx="${t.sx}"`),void 0!==t.sy&&e.push(`sy="${t.sy}"`),t.flip&&e.push(`flip="${t.flip}"`),t.algn&&e.push(`algn="${t.algn}"`),`<a:tile${e.length>0?` ${e.join(" ")}`:""}/>`})(t.tile):"";let r="";return t.stretch&&(r=`<a:stretch>${t.stretch.fillRect?Q("a:fillRect",t.stretch.fillRect):""}</a:stretch>`),`<a:blipFill${e.length>0?` ${e.join(" ")}`:""}>${o}${s}${n}${r}</a:blipFill>`}case"pattFill":{const e=t.fgClr?`<a:fgClr>${G(t.fgClr)}</a:fgClr>`:"",o=t.bgClr?`<a:bgClr>${G(t.bgClr)}</a:bgClr>`:"";return`<a:pattFill prst="${M(t.preset)}">${e}${o}</a:pattFill>`}default:{const e=t.kind;throw new s.s(`serializeFill: unknown Fill.kind ${JSON.stringify(e)}`)}}},rt=["none","triangle","stealth","diamond","oval","arrow"],it=["sm","med","lg"],at=t=>{const e={},o=t.attrs.type,s=t.attrs.w,n=t.attrs.len;return o&&rt.includes(o)&&(e.type=o),s&&it.includes(s)&&(e.w=s),n&&it.includes(n)&&(e.len=n),e},lt=["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"],ct=t=>{const e={},o=z(t,"w");void 0!==o&&(e.w=o);const s=t.attrs.cap;"rnd"!==s&&"sq"!==s&&"flat"!==s||(e.cap=s);const n=t.attrs.cmpd;"sng"!==n&&"dbl"!==n&&"thickThin"!==n&&"thinThick"!==n&&"tri"!==n||(e.cmpd=n);const r=t.attrs.algn;"ctr"!==r&&"in"!==r||(e.algn=r);const i=ot(t);i&&(e.fill=i);const a=(0,c.i)(t,O("prstDash")),l=(0,c.i)(t,O("custDash"));if(a){const t=(d=a,d?.attrs.val);t&<.includes(t)&&(e.dash={kind:"preset",val:t})}else if(l){const t=[];for(const e of(0,c.a)(l,O("ds"))){const o=z(e,"d"),s=z(e,"sp");void 0!==o&&t.push(o),void 0!==s&&t.push(s)}e.dash={kind:"custDash",pattern:t}}var d;const u=(0,c.i)(t,O("round")),h=(0,c.i)(t,O("bevel")),f=(0,c.i)(t,O("miter"));if(u)e.join={kind:"round"};else if(h)e.join={kind:"bevel"};else if(f){const t=z(f,"lim");e.join={kind:"miter",...void 0!==t?{lim:t}:{}}}const p=(0,c.i)(t,O("headEnd")),m=(0,c.i)(t,O("tailEnd"));return p&&(e.headEnd=at(p)),m&&(e.tailEnd=at(m)),e},dt=(t,e)=>{const o=[];return e.type&&o.push(`type="${e.type}"`),e.w&&o.push(`w="${e.w}"`),e.len&&o.push(`len="${e.len}"`),`<${t}${o.length>0?` ${o.join(" ")}`:""}/>`},ut=t=>{const e=[];void 0!==t.w&&e.push(`w="${t.w}"`),t.cap&&e.push(`cap="${t.cap}"`),t.cmpd&&e.push(`cmpd="${t.cmpd}"`),t.algn&&e.push(`algn="${t.algn}"`);const o=[`<a:ln${e.length>0?` ${e.join(" ")}`:""}>`];if(t.fill&&o.push(nt(t.fill)),t.dash)if("preset"===t.dash.kind)o.push(`<a:prstDash val="${t.dash.val}"/>`);else{const e=[];for(let o=0;o+1<t.dash.pattern.length;o+=2)e.push(`<a:ds d="${t.dash.pattern[o]}" sp="${t.dash.pattern[o+1]}"/>`);o.push(`<a:custDash>${e.join("")}</a:custDash>`)}return t.join&&("round"===t.join.kind?o.push("<a:round/>"):"bevel"===t.join.kind?o.push("<a:bevel/>"):o.push(`<a:miter${void 0!==t.join.lim?` lim="${t.join.lim}"`:""}/>`)),t.headEnd&&o.push(dt("a:headEnd",t.headEnd)),t.tailEnd&&o.push(dt("a:tailEnd",t.tailEnd)),o.push("</a:ln>"),o.join("")},ht=t=>{const e=[];for(const o of(0,c.a)(t,O("gd"))){const t=o.attrs.name,s=o.attrs.fmla;void 0!==t&&void 0!==s&&e.push({name:t,fmla:s})}return e},ft=(t,e)=>0===e.length?`<${t}/>`:`<${t}>${e.map(t=>`<a:gd name="${M(t.name)}" fmla="${M(t.fmla)}"/>`).join("")}</${t}>`,pt=t=>({x:t.attrs.x??"0",y:t.attrs.y??"0"}),mt=["none","norm","lighten","lightenLess","darken","darkenLess"],vt=t=>({x:z(t,"x")??0,y:z(t,"y")??0}),gt=t=>{const e=t.name.split("}").pop()??t.name;switch(e){case"moveTo":case"lnTo":{const o=(0,c.i)(t,O("pt"));if(!o)return;return{kind:e,pt:vt(o)}}case"arcTo":return{kind:"arcTo",wR:t.attrs.wR??"0",hR:t.attrs.hR??"0",stAng:t.attrs.stAng??"0",swAng:t.attrs.swAng??"0"};case"quadBezTo":{const e=[];for(const o of(0,c.a)(t,O("pt")))e.push(vt(o));if(e.length<2)return;return{kind:"quadBezTo",pts:[e[0],e[1]]}}case"cubicBezTo":{const e=[];for(const o of(0,c.a)(t,O("pt")))e.push(vt(o));if(e.length<3)return;return{kind:"cubicBezTo",pts:[e[0],e[1],e[2]]}}case"close":return{kind:"close"};default:return}},xt=t=>{const e={commands:[]},o=z(t,"w"),s=z(t,"h");void 0!==o&&(e.w=o),void 0!==s&&(e.h=s);const n=t.attrs.fill;n&&mt.includes(n)&&(e.fill=n);const r=V(t,"stroke");void 0!==r&&(e.stroke=r);const i=V(t,"extrusionOk");void 0!==i&&(e.extrusionOk=i);for(const o of t.children){if("string"==typeof o)continue;const t=gt(o);t&&e.commands.push(t)}return e},$t=t=>{switch(t.kind){case"moveTo":return`<a:moveTo><a:pt x="${t.pt.x}" y="${t.pt.y}"/></a:moveTo>`;case"lnTo":return`<a:lnTo><a:pt x="${t.pt.x}" y="${t.pt.y}"/></a:lnTo>`;case"arcTo":return`<a:arcTo wR="${M(t.wR)}" hR="${M(t.hR)}" stAng="${M(t.stAng)}" swAng="${M(t.swAng)}"/>`;case"quadBezTo":return`<a:quadBezTo><a:pt x="${t.pts[0].x}" y="${t.pts[0].y}"/><a:pt x="${t.pts[1].x}" y="${t.pts[1].y}"/></a:quadBezTo>`;case"cubicBezTo":return`<a:cubicBezTo><a:pt x="${t.pts[0].x}" y="${t.pts[0].y}"/><a:pt x="${t.pts[1].x}" y="${t.pts[1].y}"/><a:pt x="${t.pts[2].x}" y="${t.pts[2].y}"/></a:cubicBezTo>`;case"close":return"<a:close/>"}},wt=t=>{const e=[];void 0!==t.w&&e.push(`w="${t.w}"`),void 0!==t.h&&e.push(`h="${t.h}"`),t.fill&&e.push(`fill="${t.fill}"`),void 0!==t.stroke&&e.push(`stroke="${t.stroke?"1":"0"}"`),void 0!==t.extrusionOk&&e.push(`extrusionOk="${t.extrusionOk?"1":"0"}"`);const o=t.commands.map($t).join("");return`<a:path${e.length>0?` ${e.join(" ")}`:""}>${o}</a:path>`},bt=t=>{const e=(0,c.i)(t,O("prstGeom"));if(e){const t=e.attrs.prst??"",o=(0,c.i)(e,O("avLst")),s={kind:"preset",prst:t};if(o){const t=ht(o);t.length>0&&(s.avLst=t)}return s}const o=(0,c.i)(t,O("custGeom"));if(o){const t={kind:"custom",pathLst:[]},e=(0,c.i)(o,O("avLst"));if(e){const o=ht(e);o.length>0&&(t.avLst=o)}const n=(0,c.i)(o,O("gdLst"));if(n){const e=ht(n);e.length>0&&(t.gdLst=e)}const r=(0,c.i)(o,O("ahLst"));if(r){const e=(t=>{const e=[];for(const o of t.children){if("string"==typeof o)continue;const t=o.name.split("}").pop()??o.name;if("ahXY"!==t&&"ahPolar"!==t)continue;const s=(0,c.i)(o,O("pos"));if(!s)continue;const n={kind:"ahXY"===t?"xy":"polar",pos:pt(s)},r=o.attrs;void 0!==r.gdRefX&&(n.gdRefX=r.gdRefX),void 0!==r.minX&&(n.minX=r.minX),void 0!==r.maxX&&(n.maxX=r.maxX),void 0!==r.gdRefY&&(n.gdRefY=r.gdRefY),void 0!==r.minY&&(n.minY=r.minY),void 0!==r.maxY&&(n.maxY=r.maxY),void 0!==r.gdRefR&&(n.gdRefR=r.gdRefR),void 0!==r.minR&&(n.minR=r.minR),void 0!==r.maxR&&(n.maxR=r.maxR),void 0!==r.gdRefAng&&(n.gdRefAng=r.gdRefAng),void 0!==r.minAng&&(n.minAng=r.minAng),void 0!==r.maxAng&&(n.maxAng=r.maxAng),e.push(n)}return e})(r);e.length>0&&(t.ahLst=e)}const i=(0,c.i)(o,O("cxnLst"));if(i){const e=(t=>{const e=[];for(const o of(0,c.a)(t,O("cxn"))){const t=o.attrs.ang??"0",s=(0,c.i)(o,O("pos"));s&&e.push({ang:t,pos:pt(s)})}return e})(i);e.length>0&&(t.cxnLst=e)}const a=(0,c.i)(o,O("rect"));a&&(t.rect={l:(s=a).attrs.l??"0",t:s.attrs.t??"0",r:s.attrs.r??"0",b:s.attrs.b??"0"});const l=(0,c.i)(o,O("pathLst"));if(l)for(const e of(0,c.a)(l,O("path")))t.pathLst.push(xt(e));return t}var s},yt=t=>{if("preset"===t.kind){const e=t.avLst?ft("a:avLst",t.avLst):"";return""===e?`<a:prstGeom prst="${M(t.prst)}"/>`:`<a:prstGeom prst="${M(t.prst)}">${e}</a:prstGeom>`}const e=["<a:custGeom>"];var o,s;return e.push(t.avLst?ft("a:avLst",t.avLst):"<a:avLst/>"),e.push(t.gdLst?ft("a:gdLst",t.gdLst):"<a:gdLst/>"),e.push(t.ahLst?0===(o=t.ahLst).length?"<a:ahLst/>":`<a:ahLst>${o.map(t=>{const e="xy"===t.kind?"a:ahXY":"a:ahPolar",o=[],s=(t,e)=>{void 0!==e&&o.push(`${t}="${M(e)}"`)};return s("gdRefX",t.gdRefX),s("minX",t.minX),s("maxX",t.maxX),s("gdRefY",t.gdRefY),s("minY",t.minY),s("maxY",t.maxY),s("gdRefR",t.gdRefR),s("minR",t.minR),s("maxR",t.maxR),s("gdRefAng",t.gdRefAng),s("minAng",t.minAng),s("maxAng",t.maxAng),`<${e}${o.length>0?` ${o.join(" ")}`:""}><a:pos x="${M(t.pos.x)}" y="${M(t.pos.y)}"/></${e}>`}).join("")}</a:ahLst>`:"<a:ahLst/>"),e.push(t.cxnLst?0===(s=t.cxnLst).length?"<a:cxnLst/>":`<a:cxnLst>${s.map(t=>`<a:cxn ang="${M(t.ang)}"><a:pos x="${M(t.pos.x)}" y="${M(t.pos.y)}"/></a:cxn>`).join("")}</a:cxnLst>`:"<a:cxnLst/>"),t.rect&&e.push(`<a:rect l="${M(t.rect.l)}" t="${M(t.rect.t)}" r="${M(t.rect.r)}" b="${M(t.rect.b)}"/>`),e.push(`<a:pathLst>${t.pathLst.map(wt).join("")}</a:pathLst>`),e.push("</a:custGeom>"),e.join("")},kt=["over","mult","screen","darken","lighten"],Ct=["tl","t","tr","l","ctr","r","bl","b","br"],St=new Set(["shdw1","shdw2","shdw3","shdw4","shdw5","shdw6","shdw7","shdw8","shdw9","shdw10","shdw11","shdw12","shdw13","shdw14","shdw15","shdw16","shdw17","shdw18","shdw19","shdw20"]),It=new Set(["blur","fillOverlay","glow","innerShdw","outerShdw","prstShdw","reflection","softEdge"]),Tt=t=>{switch(t.name.split("}").pop()??t.name){case"blur":{const e=z(t,"rad")??0,o=V(t,"grow");return{kind:"blur",rad:e,...void 0!==o?{grow:o}:{}}}case"fillOverlay":{const e=t.attrs.blend,o=kt.includes(e??"")?e:"over",s=ot(t);if(!s)return;return{kind:"fillOverlay",blend:o,fill:s}}case"glow":{const e=z(t,"rad")??0,o=q(t);if(!o)return;return{kind:"glow",rad:e,color:o}}case"innerShdw":{const e=q(t);if(!e)return;const o=z(t,"blurRad"),s=z(t,"dist"),n=z(t,"dir");return{kind:"innerShdw",color:e,...void 0!==o?{blurRad:o}:{},...void 0!==s?{dist:s}:{},...void 0!==n?{dir:n}:{}}}case"outerShdw":{const e=q(t);if(!e)return;const o=z(t,"blurRad"),s=z(t,"dist"),n=z(t,"dir"),r=z(t,"sx"),i=z(t,"sy"),a=z(t,"kx"),l=z(t,"ky"),c=t.attrs.algn,d=c&&Ct.includes(c)?c:void 0,u=V(t,"rotWithShape");return{kind:"outerShdw",color:e,...void 0!==o?{blurRad:o}:{},...void 0!==s?{dist:s}:{},...void 0!==n?{dir:n}:{},...void 0!==r?{sx:r}:{},...void 0!==i?{sy:i}:{},...void 0!==a?{kx:a}:{},...void 0!==l?{ky:l}:{},...d?{algn:d}:{},...void 0!==u?{rotWithShape:u}:{}}}case"prstShdw":{const e=q(t);if(!e)return;const o=t.attrs.prst;if(!o||!St.has(o))return;const s=z(t,"dist"),n=z(t,"dir");return{kind:"prstShdw",prst:o,color:e,...void 0!==s?{dist:s}:{},...void 0!==n?{dir:n}:{}}}case"reflection":{const e=z(t,"blurRad"),o=z(t,"stA"),s=z(t,"stPos"),n=z(t,"endA"),r=z(t,"endPos"),i=z(t,"dist"),a=z(t,"dir"),l=z(t,"fadeDir"),c=z(t,"sx"),d=z(t,"sy"),u=z(t,"kx"),h=z(t,"ky"),f=t.attrs.algn,p=f&&Ct.includes(f)?f:void 0,m=V(t,"rotWithShape");return{kind:"reflection",...void 0!==e?{blurRad:e}:{},...void 0!==o?{stA:o}:{},...void 0!==s?{stPos:s}:{},...void 0!==n?{endA:n}:{},...void 0!==r?{endPos:r}:{},...void 0!==i?{dist:i}:{},...void 0!==a?{dir:a}:{},...void 0!==l?{fadeDir:l}:{},...void 0!==c?{sx:c}:{},...void 0!==d?{sy:d}:{},...void 0!==u?{kx:u}:{},...void 0!==h?{ky:h}:{},...p?{algn:p}:{},...void 0!==m?{rotWithShape:m}:{}}}case"softEdge":return{kind:"softEdge",rad:z(t,"rad")??0};default:return}},Pt=t=>{const e=[];for(const o of t.children){if("string"==typeof o)continue;const t=o.name.split("}").pop()??o.name;if("cont"===t)e.push(Ft(o));else if(It.has(t)){const t=Tt(o);t&&e.push(t)}}return e},Ft=t=>{const e="tree"===t.attrs.type?"tree":"sib",o=t.attrs.name;return{type:e,...void 0!==o?{name:o}:{},children:Pt(t)}},Rt=t=>{const e=[];for(const o of t.children){if("string"==typeof o)continue;const t=Tt(o);t&&e.push(t)}return{list:e}},Nt=t=>{const e=(0,c.i)(t,O("effectLst"));if(e)return{kind:"lst",list:Rt(e)};const o=(0,c.i)(t,O("effectDag"));return o?{kind:"dag",children:Pt(o)}:void 0},Lt=t=>{switch(t.kind){case"blur":{const e=void 0!==t.grow?` grow="${t.grow?"1":"0"}"`:"";return`<a:blur rad="${t.rad}"${e}/>`}case"fillOverlay":return`<a:fillOverlay blend="${t.blend}">${nt(t.fill)}</a:fillOverlay>`;case"glow":return`<a:glow rad="${t.rad}">${Z(t.color)}</a:glow>`;case"innerShdw":{const e=[];return void 0!==t.blurRad&&e.push(`blurRad="${t.blurRad}"`),void 0!==t.dist&&e.push(`dist="${t.dist}"`),void 0!==t.dir&&e.push(`dir="${t.dir}"`),`<a:innerShdw${e.length>0?` ${e.join(" ")}`:""}>${Z(t.color)}</a:innerShdw>`}case"outerShdw":{const e=[];return void 0!==t.blurRad&&e.push(`blurRad="${t.blurRad}"`),void 0!==t.dist&&e.push(`dist="${t.dist}"`),void 0!==t.dir&&e.push(`dir="${t.dir}"`),void 0!==t.sx&&e.push(`sx="${t.sx}"`),void 0!==t.sy&&e.push(`sy="${t.sy}"`),void 0!==t.kx&&e.push(`kx="${t.kx}"`),void 0!==t.ky&&e.push(`ky="${t.ky}"`),t.algn&&e.push(`algn="${t.algn}"`),void 0!==t.rotWithShape&&e.push(`rotWithShape="${t.rotWithShape?"1":"0"}"`),`<a:outerShdw${e.length>0?` ${e.join(" ")}`:""}>${Z(t.color)}</a:outerShdw>`}case"prstShdw":{const e=[`prst="${t.prst}"`];return void 0!==t.dist&&e.push(`dist="${t.dist}"`),void 0!==t.dir&&e.push(`dir="${t.dir}"`),`<a:prstShdw ${e.join(" ")}>${Z(t.color)}</a:prstShdw>`}case"reflection":{const e=[];return void 0!==t.blurRad&&e.push(`blurRad="${t.blurRad}"`),void 0!==t.stA&&e.push(`stA="${t.stA}"`),void 0!==t.stPos&&e.push(`stPos="${t.stPos}"`),void 0!==t.endA&&e.push(`endA="${t.endA}"`),void 0!==t.endPos&&e.push(`endPos="${t.endPos}"`),void 0!==t.dist&&e.push(`dist="${t.dist}"`),void 0!==t.dir&&e.push(`dir="${t.dir}"`),void 0!==t.fadeDir&&e.push(`fadeDir="${t.fadeDir}"`),void 0!==t.sx&&e.push(`sx="${t.sx}"`),void 0!==t.sy&&e.push(`sy="${t.sy}"`),void 0!==t.kx&&e.push(`kx="${t.kx}"`),void 0!==t.ky&&e.push(`ky="${t.ky}"`),t.algn&&e.push(`algn="${t.algn}"`),void 0!==t.rotWithShape&&e.push(`rotWithShape="${t.rotWithShape?"1":"0"}"`),`<a:reflection${e.length>0?` ${e.join(" ")}`:""}/>`}case"softEdge":return`<a:softEdge rad="${t.rad}"/>`}},Dt=t=>{const e=[`type="${t.type}"`];void 0!==t.name&&e.push(`name="${M(t.name)}"`);const o=t.children.map(t=>"kind"in t?Lt(t):Dt(t)).join("");return`<a:cont ${e.join(" ")}>${o}</a:cont>`},At=t=>"lst"===t.kind?0===t.list.list.length?"<a:effectLst/>":`<a:effectLst>${t.list.list.map(Lt).join("")}</a:effectLst>`:0===t.children.length?"<a:effectDag/>":`<a:effectDag>${t.children.map(t=>"kind"in t?Lt(t):Dt(t)).join("")}</a:effectDag>`,Et=["none","words","sng","dbl","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDbl"],Ot=["noStrike","sngStrike","dblStrike"],jt=["none","small","all"],Mt=["l","ctr","r","just","justLow","dist","thaiDist"],zt=["auto","t","ctr","base","b"],Vt=["overflow","ellipsis","clip"],Bt=["overflow","clip"],Wt=["horz","vert","vert270","wordArtVert","eaVert","mongolianVert","wordArtVertRtl"],Ut=["none","square"],Ht=["t","ctr","b","just","dist"],Xt=["l","ctr","r","dec"],qt=t=>{const e={typeface:t.attrs.typeface??""};void 0!==t.attrs.panose&&(e.panose=t.attrs.panose);const o=z(t,"pitchFamily");void 0!==o&&(e.pitchFamily=o);const s=z(t,"charset");return void 0!==s&&(e.charset=s),e},_t=(t,e)=>{const o=[`typeface="${M(e.typeface)}"`];return void 0!==e.panose&&o.push(`panose="${M(e.panose)}"`),void 0!==e.pitchFamily&&o.push(`pitchFamily="${e.pitchFamily}"`),void 0!==e.charset&&o.push(`charset="${e.charset}"`),`<${t} ${o.join(" ")}/>`},Gt=t=>{const e={},o=t.attrs[`{${c.lt}}id`];void 0!==o&&(e.rId=o),void 0!==t.attrs.invalidUrl&&(e.invalidUrl=t.attrs.invalidUrl),void 0!==t.attrs.action&&(e.action=t.attrs.action),void 0!==t.attrs.tgtFrame&&(e.tgtFrame=t.attrs.tgtFrame),void 0!==t.attrs.tooltip&&(e.tooltip=t.attrs.tooltip);const s=V(t,"history"),n=V(t,"highlightClick"),r=V(t,"endSnd");return void 0!==s&&(e.history=s),void 0!==n&&(e.highlightClick=n),void 0!==r&&(e.endSnd=r),e},Zt=(t,e)=>{const o=[];return void 0!==e.rId&&o.push(`r:id="${M(e.rId)}"`),void 0!==e.invalidUrl&&o.push(`invalidUrl="${M(e.invalidUrl)}"`),void 0!==e.action&&o.push(`action="${M(e.action)}"`),void 0!==e.tgtFrame&&o.push(`tgtFrame="${M(e.tgtFrame)}"`),void 0!==e.tooltip&&o.push(`tooltip="${M(e.tooltip)}"`),void 0!==e.history&&o.push(`history="${e.history?"1":"0"}"`),void 0!==e.highlightClick&&o.push(`highlightClick="${e.highlightClick?"1":"0"}"`),void 0!==e.endSnd&&o.push(`endSnd="${e.endSnd?"1":"0"}"`),`<${t}${o.length>0?` ${o.join(" ")}`:""}/>`},Yt=t=>{const e=(0,c.i)(t,O("spcPct"));if(e){const t=z(e,"val");if(void 0!==t)return{kind:"pct",val:t}}const o=(0,c.i)(t,O("spcPts"));if(o){const t=z(o,"val");if(void 0!==t)return{kind:"pts",val:t}}},Kt=(t,e)=>"pct"===e.kind?`<${t}><a:spcPct val="${e.val}"/></${t}>`:`<${t}><a:spcPts val="${e.val}"/></${t}>`,Qt=t=>{const e={},o=t.attrs,s=V(t,"kumimoji");void 0!==s&&(e.kumimoji=s),void 0!==o.lang&&(e.lang=o.lang),void 0!==o.altLang&&(e.altLang=o.altLang);const n=z(t,"sz");void 0!==n&&(e.sz=n);const r=V(t,"b");void 0!==r&&(e.b=r);const i=V(t,"i");void 0!==i&&(e.i=i);const a=o.u;a&&Et.includes(a)&&(e.u=a);const l=o.strike;l&&Ot.includes(l)&&(e.strike=l);const d=z(t,"kern");void 0!==d&&(e.kern=d);const u=o.cap;u&&jt.includes(u)&&(e.cap=u);const h=z(t,"spc");void 0!==h&&(e.spc=h);const f=V(t,"normalizeH");void 0!==f&&(e.normalizeH=f);const p=z(t,"baseline");void 0!==p&&(e.baseline=p);const m=V(t,"noProof");void 0!==m&&(e.noProof=m);const v=V(t,"dirty");void 0!==v&&(e.dirty=v);const g=V(t,"err");void 0!==g&&(e.err=g);const x=V(t,"smtClean");void 0!==x&&(e.smtClean=x);const $=z(t,"smtId");void 0!==$&&(e.smtId=$),void 0!==o.bmk&&(e.bmk=o.bmk);const w=V(t,"rtl");void 0!==w&&(e.rtl=w);const b=(0,c.i)(t,O("ln"));b&&(e.ln=ct(b));const y=ot(t);y&&(e.fill=y);const k=Nt(t);k&&(e.effects=k);const C=(0,c.i)(t,O("highlight"));if(C){const t=q(C);t&&(e.highlight=t)}if((0,c.i)(t,O("uLnTx")))e.uLn="follow";else{const o=(0,c.i)(t,O("uLn"));o&&(e.uLn=ct(o))}if((0,c.i)(t,O("uFillTx")))e.uFill="follow";else{const o=(0,c.i)(t,O("uFill"));if(o){const t=ot(o);t&&(e.uFill=t)}}const S=(0,c.i)(t,O("latin"));S&&(e.latin=qt(S));const I=(0,c.i)(t,O("ea"));I&&(e.ea=qt(I));const T=(0,c.i)(t,O("cs"));T&&(e.cs=qt(T));const P=(0,c.i)(t,O("sym"));P&&(e.sym=qt(P));const F=(0,c.i)(t,O("hlinkClick"));F&&(e.hlinkClick=Gt(F));const R=(0,c.i)(t,O("hlinkMouseOver"));return R&&(e.hlinkMouseOver=Gt(R)),e},Jt=(t,e)=>{const o=[];void 0!==e.kumimoji&&o.push(`kumimoji="${e.kumimoji?"1":"0"}"`),void 0!==e.lang&&o.push(`lang="${M(e.lang)}"`),void 0!==e.altLang&&o.push(`altLang="${M(e.altLang)}"`),void 0!==e.sz&&o.push(`sz="${e.sz}"`),void 0!==e.b&&o.push(`b="${e.b?"1":"0"}"`),void 0!==e.i&&o.push(`i="${e.i?"1":"0"}"`),e.u&&o.push(`u="${e.u}"`),e.strike&&o.push(`strike="${e.strike}"`),void 0!==e.kern&&o.push(`kern="${e.kern}"`),e.cap&&o.push(`cap="${e.cap}"`),void 0!==e.spc&&o.push(`spc="${e.spc}"`),void 0!==e.normalizeH&&o.push(`normalizeH="${e.normalizeH?"1":"0"}"`),void 0!==e.baseline&&o.push(`baseline="${e.baseline}"`),void 0!==e.noProof&&o.push(`noProof="${e.noProof?"1":"0"}"`),void 0!==e.dirty&&o.push(`dirty="${e.dirty?"1":"0"}"`),void 0!==e.err&&o.push(`err="${e.err?"1":"0"}"`),void 0!==e.smtClean&&o.push(`smtClean="${e.smtClean?"1":"0"}"`),void 0!==e.smtId&&o.push(`smtId="${e.smtId}"`),void 0!==e.bmk&&o.push(`bmk="${M(e.bmk)}"`),void 0!==e.rtl&&o.push(`rtl="${e.rtl?"1":"0"}"`);const s=[];e.ln&&s.push(ut(e.ln)),e.fill&&s.push(nt(e.fill)),e.effects&&s.push(At(e.effects)),e.highlight&&s.push(`<a:highlight>${Z(e.highlight)}</a:highlight>`),"follow"===e.uLn?s.push("<a:uLnTx/>"):e.uLn&&s.push(ut(e.uLn).replace(/^<a:ln/,"<a:uLn").replace(/<\/a:ln>$/,"</a:uLn>")),"follow"===e.uFill?s.push("<a:uFillTx/>"):e.uFill&&s.push(`<a:uFill>${nt(e.uFill)}</a:uFill>`),e.latin&&s.push(_t("a:latin",e.latin)),e.ea&&s.push(_t("a:ea",e.ea)),e.cs&&s.push(_t("a:cs",e.cs)),e.sym&&s.push(_t("a:sym",e.sym)),e.hlinkClick&&s.push(Zt("a:hlinkClick",e.hlinkClick)),e.hlinkMouseOver&&s.push(Zt("a:hlinkMouseOver",e.hlinkMouseOver));const n=`<${t}${o.length>0?` ${o.join(" ")}`:""}`;return 0===s.length?`${n}/>`:`${n}>${s.join("")}</${t}>`},te=t=>{const e={},o=z(t,"marL"),s=z(t,"marR"),n=z(t,"lvl"),r=z(t,"indent"),i=t.attrs.algn,a=z(t,"defTabSz"),l=V(t,"rtl"),d=V(t,"eaLnBrk"),u=t.attrs.fontAlgn,h=V(t,"latinLnBrk"),f=V(t,"hangingPunct");void 0!==o&&(e.marL=o),void 0!==s&&(e.marR=s),void 0!==n&&(e.lvl=n),void 0!==r&&(e.indent=r),i&&Mt.includes(i)&&(e.algn=i),void 0!==a&&(e.defTabSz=a),void 0!==l&&(e.rtl=l),void 0!==d&&(e.eaLnBrk=d),u&&zt.includes(u)&&(e.fontAlgn=u),void 0!==h&&(e.latinLnBrk=h),void 0!==f&&(e.hangingPunct=f);const p=(0,c.i)(t,O("lnSpc"));if(p){const t=Yt(p);t&&(e.lnSpc=t)}const m=(0,c.i)(t,O("spcBef"));if(m){const t=Yt(m);t&&(e.spcBef=t)}const v=(0,c.i)(t,O("spcAft"));if(v){const t=Yt(v);t&&(e.spcAft=t)}const g=(0,c.i)(t,O("tabLst"));if(g){const t=(t=>{const e=[];for(const o of(0,c.a)(t,O("tab"))){const t=z(o,"pos");if(void 0===t)continue;const s=o.attrs.algn,n=s&&Xt.includes(s)?s:void 0;e.push({pos:t,...n?{algn:n}:{}})}return e})(g);t.length>0&&(e.tabLst=t)}const x=(0,c.i)(t,O("defRPr"));x&&(e.defRPr=Qt(x));const $=(t=>{if((0,c.i)(t,O("buNone")))return{kind:"none"};const e=(0,c.i)(t,O("buChar"));if(e)return{kind:"char",char:e.attrs.char??""};const o=(0,c.i)(t,O("buAutoNum"));if(o){const t=o.attrs.type??"arabicPlain",e=z(o,"startAt");return{kind:"autoNum",type:t,...void 0!==e?{startAt:e}:{}}}const s=(0,c.i)(t,O("buBlip"));if(s){const t=(0,c.i)(s,O("blip")),e={kind:"blip"};if(t){const o=t.attrs[`{${c.lt}}embed`],s=t.attrs[`{${c.lt}}link`];o&&(e.embedRId=o),s&&(e.linkRId=s)}return e}})(t);if($&&(e.bullet=$),(0,c.i)(t,O("buFontTx")))e.buFont="follow";else{const o=(0,c.i)(t,O("buFont"));o&&(e.buFont=qt(o))}if((0,c.i)(t,O("buClrTx")))e.buClr="follow";else{const o=(0,c.i)(t,O("buClr"));if(o){const t=q(o);t&&(e.buClr=t)}}if((0,c.i)(t,O("buSzTx")))e.buSz="follow";else{const o=(0,c.i)(t,O("buSzPct")),s=(0,c.i)(t,O("buSzPts"));if(o){const t=z(o,"val");void 0!==t&&(e.buSz={kind:"pct",val:t})}else if(s){const t=z(s,"val");void 0!==t&&(e.buSz={kind:"pts",val:t})}}return e},ee=(t,e)=>{const o=[];void 0!==e.marL&&o.push(`marL="${e.marL}"`),void 0!==e.marR&&o.push(`marR="${e.marR}"`),void 0!==e.lvl&&o.push(`lvl="${e.lvl}"`),void 0!==e.indent&&o.push(`indent="${e.indent}"`),e.algn&&o.push(`algn="${e.algn}"`),void 0!==e.defTabSz&&o.push(`defTabSz="${e.defTabSz}"`),void 0!==e.rtl&&o.push(`rtl="${e.rtl?"1":"0"}"`),void 0!==e.eaLnBrk&&o.push(`eaLnBrk="${e.eaLnBrk?"1":"0"}"`),e.fontAlgn&&o.push(`fontAlgn="${e.fontAlgn}"`),void 0!==e.latinLnBrk&&o.push(`latinLnBrk="${e.latinLnBrk?"1":"0"}"`),void 0!==e.hangingPunct&&o.push(`hangingPunct="${e.hangingPunct?"1":"0"}"`);const s=[];e.lnSpc&&s.push(Kt("a:lnSpc",e.lnSpc)),e.spcBef&&s.push(Kt("a:spcBef",e.spcBef)),e.spcAft&&s.push(Kt("a:spcAft",e.spcAft)),"follow"===e.buClr?s.push("<a:buClrTx/>"):e.buClr&&s.push(`<a:buClr>${Z(e.buClr)}</a:buClr>`),"follow"===e.buSz?s.push("<a:buSzTx/>"):"pct"===e.buSz?.kind?s.push(`<a:buSzPct val="${e.buSz.val}"/>`):"pts"===e.buSz?.kind&&s.push(`<a:buSzPts val="${e.buSz.val}"/>`),"follow"===e.buFont?s.push("<a:buFontTx/>"):e.buFont&&s.push(_t("a:buFont",e.buFont)),e.bullet&&s.push((t=>{switch(t.kind){case"none":return"<a:buNone/>";case"char":return`<a:buChar char="${M(t.char)}"/>`;case"autoNum":{const e=void 0!==t.startAt?` startAt="${t.startAt}"`:"";return`<a:buAutoNum type="${t.type}"${e}/>`}case"blip":{const e=[];return t.embedRId&&e.push(`r:embed="${M(t.embedRId)}"`),t.linkRId&&e.push(`r:link="${M(t.linkRId)}"`),`<a:buBlip><a:blip${e.length>0?` ${e.join(" ")}`:""}/></a:buBlip>`}}})(e.bullet)),e.tabLst&&e.tabLst.length>0&&s.push(`<a:tabLst>${e.tabLst.map(t=>`<a:tab pos="${t.pos}"${t.algn?` algn="${t.algn}"`:""}/>`).join("")}</a:tabLst>`),e.defRPr&&s.push(Jt("a:defRPr",e.defRPr));const n=`<${t}${o.length>0?` ${o.join(" ")}`:""}`;return 0===s.length?`${n}/>`:`${n}>${s.join("")}</${t}>`},oe=t=>{const e=t.name.split("}").pop()??t.name;if("r"===e){const e=(0,c.i)(t,O("rPr")),o=(0,c.i)(t,O("t"));return{kind:"r",...e?{rPr:Qt(e)}:{},t:o?.text??""}}if("br"===e){const e=(0,c.i)(t,O("rPr"));return{kind:"br",...e?{rPr:Qt(e)}:{}}}if("fld"===e){const e=t.attrs.id??"",o=t.attrs.type,s=(0,c.i)(t,O("rPr")),n=(0,c.i)(t,O("pPr")),r=(0,c.i)(t,O("t"));return{kind:"fld",id:e,...void 0!==o?{type:o}:{},...s?{rPr:Qt(s)}:{},...n?{pPr:te(n)}:{},...void 0!==r?.text?{t:r.text}:{}}}},se=t=>{switch(t.kind){case"r":return`<a:r>${t.rPr?Jt("a:rPr",t.rPr):""}<a:t>${j(t.t)}</a:t></a:r>`;case"br":{const e=t.rPr?Jt("a:rPr",t.rPr):"";return""===e?"<a:br/>":`<a:br>${e}</a:br>`}case"fld":{const e=[`id="${M(t.id)}"`];void 0!==t.type&&e.push(`type="${M(t.type)}"`);const o=t.rPr?Jt("a:rPr",t.rPr):"",s=t.pPr?ee("a:pPr",t.pPr):"",n=void 0!==t.t?`<a:t>${j(t.t)}</a:t>`:"";return`<a:fld ${e.join(" ")}>${o}${s}${n}</a:fld>`}}},ne=t=>{const e={runs:[]},o=(0,c.i)(t,O("pPr"));o&&(e.pPr=te(o));for(const o of t.children){if("string"==typeof o)continue;const t=o.name.split("}").pop()??o.name;if("r"===t||"br"===t||"fld"===t){const t=oe(o);t&&e.runs.push(t)}}const s=(0,c.i)(t,O("endParaRPr"));return s&&(e.endParaRPr=Qt(s)),e},re=t=>{const e=["<a:p>"];t.pPr&&e.push(ee("a:pPr",t.pPr));for(const o of t.runs)e.push(se(o));return t.endParaRPr&&e.push(Jt("a:endParaRPr",t.endParaRPr)),e.push("</a:p>"),e.join("")},ie=t=>{const e={},o=z(t,"rot");void 0!==o&&(e.rot=o);const s=V(t,"spcFirstLastPara");void 0!==s&&(e.spcFirstLastPara=s);const n=t.attrs.vertOverflow;n&&Vt.includes(n)&&(e.vertOverflow=n);const r=t.attrs.horzOverflow;r&&Bt.includes(r)&&(e.horzOverflow=r);const i=t.attrs.vert;i&&Wt.includes(i)&&(e.vert=i);const a=t.attrs.wrap;a&&Ut.includes(a)&&(e.wrap=a);const l=z(t,"lIns"),d=z(t,"tIns"),u=z(t,"rIns"),h=z(t,"bIns"),f=z(t,"numCol"),p=z(t,"spcCol");void 0!==l&&(e.lIns=l),void 0!==d&&(e.tIns=d),void 0!==u&&(e.rIns=u),void 0!==h&&(e.bIns=h),void 0!==f&&(e.numCol=f),void 0!==p&&(e.spcCol=p);const m=V(t,"rtlCol"),v=V(t,"fromWordArt");void 0!==m&&(e.rtlCol=m),void 0!==v&&(e.fromWordArt=v);const g=t.attrs.anchor;g&&Ht.includes(g)&&(e.anchor=g);const x=V(t,"anchorCtr"),$=V(t,"forceAA"),w=V(t,"upright"),b=V(t,"compatLnSpc");void 0!==x&&(e.anchorCtr=x),void 0!==$&&(e.forceAA=$),void 0!==w&&(e.upright=w),void 0!==b&&(e.compatLnSpc=b);const y=(t=>{if((0,c.i)(t,O("noAutofit")))return{kind:"noAutofit"};const e=(0,c.i)(t,O("normAutofit"));if(e){const t=z(e,"fontScale"),o=z(e,"lnSpcReduction");return{kind:"normAutofit",...void 0!==t?{fontScale:t}:{},...void 0!==o?{lnSpcReduction:o}:{}}}return(0,c.i)(t,O("spAutoFit"))?{kind:"spAutoFit"}:void 0})(t);y&&(e.autoFit=y);const k=(0,c.i)(t,O("flatTx"));if(k){const t=z(k,"z");void 0!==t&&(e.flatTxZ=t)}return e},ae=["defPPr","lvl1pPr","lvl2pPr","lvl3pPr","lvl4pPr","lvl5pPr","lvl6pPr","lvl7pPr","lvl8pPr","lvl9pPr"],le=t=>{const e=(0,c.i)(t,O("bodyPr")),o=e?ie(e):{},s=(0,c.i)(t,O("lstStyle")),n=s?(t=>{const e={};for(const o of ae){const s=(0,c.i)(t,O(o));s&&(e[o]=te(s))}return e})(s):void 0,r=n&&Object.keys(n).length>0,i=[];for(const e of(0,c.a)(t,O("p")))i.push(ne(e));return{bodyPr:o,...r?{lstStyle:n}:{},paragraphs:i}},ce=(t,e="c:txPr")=>{const o=[`<${e}>`];o.push(((t,e)=>{const o=[];void 0!==e.rot&&o.push(`rot="${e.rot}"`),void 0!==e.spcFirstLastPara&&o.push(`spcFirstLastPara="${e.spcFirstLastPara?"1":"0"}"`),e.vertOverflow&&o.push(`vertOverflow="${e.vertOverflow}"`),e.horzOverflow&&o.push(`horzOverflow="${e.horzOverflow}"`),e.vert&&o.push(`vert="${e.vert}"`),e.wrap&&o.push(`wrap="${e.wrap}"`),void 0!==e.lIns&&o.push(`lIns="${e.lIns}"`),void 0!==e.tIns&&o.push(`tIns="${e.tIns}"`),void 0!==e.rIns&&o.push(`rIns="${e.rIns}"`),void 0!==e.bIns&&o.push(`bIns="${e.bIns}"`),void 0!==e.numCol&&o.push(`numCol="${e.numCol}"`),void 0!==e.spcCol&&o.push(`spcCol="${e.spcCol}"`),void 0!==e.rtlCol&&o.push(`rtlCol="${e.rtlCol?"1":"0"}"`),void 0!==e.fromWordArt&&o.push(`fromWordArt="${e.fromWordArt?"1":"0"}"`),e.anchor&&o.push(`anchor="${e.anchor}"`),void 0!==e.anchorCtr&&o.push(`anchorCtr="${e.anchorCtr?"1":"0"}"`),void 0!==e.forceAA&&o.push(`forceAA="${e.forceAA?"1":"0"}"`),void 0!==e.upright&&o.push(`upright="${e.upright?"1":"0"}"`),void 0!==e.compatLnSpc&&o.push(`compatLnSpc="${e.compatLnSpc?"1":"0"}"`);const s=[];e.autoFit&&s.push((t=>{switch(t.kind){case"noAutofit":return"<a:noAutofit/>";case"spAutoFit":return"<a:spAutoFit/>";case"normAutofit":{const e=[];return void 0!==t.fontScale&&e.push(`fontScale="${t.fontScale}"`),void 0!==t.lnSpcReduction&&e.push(`lnSpcReduction="${t.lnSpcReduction}"`),`<a:normAutofit${e.length>0?` ${e.join(" ")}`:""}/>`}}})(e.autoFit)),void 0!==e.flatTxZ&&s.push(`<a:flatTx z="${e.flatTxZ}"/>`);const n=`<${t}${o.length>0?` ${o.join(" ")}`:""}`;return 0===s.length?`${n}/>`:`${n}>${s.join("")}</${t}>`})("a:bodyPr",t.bodyPr)),t.lstStyle?o.push((t=>{const e=["<a:lstStyle>"];for(const o of ae){const s=t[o];s&&e.push(ee(`a:${o}`,s))}return e.push("</a:lstStyle>"),e.join("")})(t.lstStyle)):o.push("<a:lstStyle/>");for(const e of t.paragraphs)o.push(re(e));return o.push(`</${e}>`),o.join("")},de=["clr","auto","gray","ltGray","invGray","grayWhite","blackGray","blackWhite","black","white","hidden"],ue=t=>({x:z(t,"x")??0,y:z(t,"y")??0}),he=t=>({cx:z(t,"cx")??0,cy:z(t,"cy")??0}),fe=t=>{const e={},o=t.attrs.bwMode;o&&de.includes(o)&&(e.bwMode=o);const s=(0,c.i)(t,O("xfrm"));s&&(e.xfrm=(t=>{const e={},o=(0,c.i)(t,O("off")),s=(0,c.i)(t,O("ext")),n=(0,c.i)(t,O("chOff")),r=(0,c.i)(t,O("chExt"));o&&(e.off=ue(o)),s&&(e.ext=he(s)),n&&(e.chOff=ue(n)),r&&(e.chExt=he(r));const i=z(t,"rot"),a=V(t,"flipH"),l=V(t,"flipV");return void 0!==i&&(e.rot=i),void 0!==a&&(e.flipH=a),void 0!==l&&(e.flipV=l),e})(s));const n=bt(t);n&&(e.geometry=n);const r=ot(t);r&&(e.fill=r);const i=(0,c.i)(t,O("ln"));i&&(e.ln=ct(i));const a=Nt(t);return a&&(e.effects=a),e},pe=(t,e="c:spPr")=>{const o=[];t.bwMode&&o.push(`bwMode="${t.bwMode}"`);const s=[`<${e}${o.length>0?` ${o.join(" ")}`:""}>`];return t.xfrm&&s.push((t=>{const e=[];void 0!==t.rot&&e.push(`rot="${t.rot}"`),void 0!==t.flipH&&e.push(`flipH="${t.flipH?"1":"0"}"`),void 0!==t.flipV&&e.push(`flipV="${t.flipV?"1":"0"}"`);const o=[`<a:xfrm${e.length>0?` ${e.join(" ")}`:""}>`];return t.off&&o.push(`<a:off x="${t.off.x}" y="${t.off.y}"/>`),t.ext&&o.push(`<a:ext cx="${t.ext.cx}" cy="${t.ext.cy}"/>`),t.chOff&&o.push(`<a:chOff x="${t.chOff.x}" y="${t.chOff.y}"/>`),t.chExt&&o.push(`<a:chExt cx="${t.chExt.cx}" cy="${t.chExt.cy}"/>`),o.push("</a:xfrm>"),o.join("")})(t.xfrm)),t.geometry&&s.push(yt(t.geometry)),t.fill&&s.push(nt(t.fill)),t.ln&&s.push(ut(t.ln)),t.effects&&s.push(At(t.effects)),s.push(`</${e}>`),s.join("")},me=`{${c.T}}chartSpace`,ve=`{${c.T}}chart`,ge=`{${c.T}}title`,xe=`{${c.T}}tx`,$e=`{${c.T}}rich`,we=`{${c.T}}plotArea`,be=`{${c.T}}barChart`,ye=`{${c.T}}catAx`,ke=`{${c.T}}valAx`,Ce=`{${c.T}}dateAx`,Se=`{${c.T}}serAx`,Ie=`{${c.T}}ser`,Te=`{${c.T}}idx`,Pe=`{${c.T}}order`,Fe=`{${c.T}}cat`,Re=`{${c.T}}val`,Ne=`{${c.T}}numRef`,Le=`{${c.T}}strRef`,De=`{${c.T}}numCache`,Ae=`{${c.T}}strCache`,Ee=`{${c.T}}f`,Oe=`{${c.T}}pt`,je=`{${c.T}}v`,Me=`{${c.T}}formatCode`,ze=`{${c.T}}barDir`,Ve=`{${c.T}}grouping`,Be=`{${c.T}}varyColors`,We=`{${c.T}}gapWidth`,Ue=`{${c.T}}overlap`,He=`{${c.T}}style`,Xe=`{${c.T}}axId`,qe=`{${c.T}}delete`,_e=`{${c.T}}lineChart`,Ge=`{${c.T}}areaChart`,Ze=`{${c.T}}pieChart`,Ye=`{${c.T}}doughnutChart`,Ke=`{${c.T}}scatterChart`,Qe=`{${c.T}}radarChart`,Je=`{${c.T}}smooth`,to=`{${c.T}}marker`,eo=`{${c.T}}symbol`,oo=`{${c.T}}size`,so=`{${c.T}}dPt`,no=`{${c.T}}invertIfNegative`,ro=`{${c.T}}explosion`,io=`{${c.T}}holeSize`,ao=`{${c.T}}firstSliceAng`,lo=`{${c.T}}scatterStyle`,co=`{${c.T}}radarStyle`,uo=`{${c.T}}xVal`,ho=`{${c.T}}yVal`,fo=`{${c.T}}bubbleChart`,po=`{${c.T}}stockChart`,mo=`{${c.T}}surfaceChart`,vo=`{${c.T}}bubbleSize`,go=`{${c.T}}bubble3D`,xo=`{${c.T}}bubbleScale`,$o=`{${c.T}}showNegBubbles`,wo=`{${c.T}}sizeRepresents`,bo=`{${c.T}}hiLowLines`,yo=`{${c.T}}upDownBars`,ko=`{${c.T}}wireframe`,Co=`{${c.T}}ofPieChart`,So=`{${c.T}}ofPieType`,Io=`{${c.T}}splitType`,To=`{${c.T}}splitPos`,Po=`{${c.T}}custSplit`,Fo=`{${c.T}}secondPieSize`,Ro=`{${c.T}}secondaryPt`,No=`{${c.T}}bar3DChart`,Lo=`{${c.T}}line3DChart`,Do=`{${c.T}}pie3DChart`,Ao=`{${c.T}}area3DChart`,Eo=`{${c.T}}surface3DChart`,Oo=`{${c.T}}gapDepth`,jo=`{${c.T}}shape`,Mo=`{${c.T}}axPos`,zo=`{${c.T}}crossAx`,Vo=`{${c.T}}majorGridlines`,Bo=`{${c.T}}minorGridlines`,Wo=`{${c.T}}scaling`,Uo=`{${c.T}}orientation`,Ho=`{${c.T}}min`,Xo=`{${c.T}}max`,qo=`{${c.T}}logBase`,_o=`{${c.T}}crosses`,Go=`{${c.T}}crossesAt`,Zo=`{${c.T}}crossBetween`,Yo=`{${c.T}}majorUnit`,Ko=`{${c.T}}minorUnit`,Qo=`{${c.T}}majorTickMark`,Jo=`{${c.T}}minorTickMark`,ts=`{${c.T}}tickLblPos`,es=`{${c.T}}auto`,os=`{${c.T}}lblAlgn`,ss=`{${c.T}}lblOffset`,ns=`{${c.T}}noMultiLvlLbl`,rs=`{${c.T}}view3D`,is=`{${c.T}}rotX`,as=`{${c.T}}rotY`,ls=`{${c.T}}hPercent`,cs=`{${c.T}}depthPercent`,ds=`{${c.T}}rAngAx`,us=`{${c.T}}perspective`,hs=`{${c.T}}floor`,fs=`{${c.T}}sideWall`,ps=`{${c.T}}backWall`,ms=`{${c.T}}thickness`,vs=`{${c.T}}layout`,gs=`{${c.T}}manualLayout`,xs=`{${c.T}}layoutTarget`,$s=`{${c.T}}xMode`,ws=`{${c.T}}yMode`,bs=`{${c.T}}wMode`,ys=`{${c.T}}hMode`,ks=`{${c.T}}x`,Cs=`{${c.T}}y`,Ss=`{${c.T}}w`,Is=`{${c.T}}h`,Ts=`{${c.T}}legend`,Ps=`{${c.T}}legendPos`,Fs=`{${c.T}}plotVisOnly`,Rs=`{${c.T}}dispBlanksAs`,Ns=`{${c.T}}spPr`,Ls=`{${c.T}}txPr`,Ds=`{${c.T}}overlay`,As=`{${c.T}}userShapes`,Es=`{${c.T}}dLbls`,Os=`{${c.T}}dLbl`,js=`{${c.T}}numFmt`,Ms=`{${c.T}}dLblPos`,zs=`{${c.T}}showLegendKey`,Vs=`{${c.T}}showVal`,Bs=`{${c.T}}showCatName`,Ws=`{${c.T}}showSerName`,Us=`{${c.T}}showPercent`,Hs=`{${c.T}}showBubbleSize`,Xs=`{${c.T}}showLeaderLines`,qs=`{${c.T}}separator`,_s=`{${c.T}}delete`,Gs=`{${c.T}}trendline`,Zs=`{${c.T}}trendlineType`,Ys=`{${c.T}}name`,Ks=`{${c.T}}order`,Qs=`{${c.T}}period`,Js=`{${c.T}}forward`,tn=`{${c.T}}backward`,en=`{${c.T}}intercept`,on=`{${c.T}}dispRSqr`,sn=`{${c.T}}dispEq`,nn=`{${c.T}}errBars`,rn=`{${c.T}}errDir`,an=`{${c.T}}errBarType`,ln=`{${c.T}}errValType`,cn=`{${c.T}}noEndCap`,dn=`{${c.T}}plus`,un=`{${c.T}}minus`,hn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',fn=u.r,pn=t=>t?.attrs.val,mn=t=>{const e=pn(t);if(void 0===e)return;const o=Number.parseInt(e,10);return Number.isInteger(o)?o:void 0},vn=t=>{const e=pn(t);if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0},gn=t=>{const e={},o=(0,c.i)(t,xe);if(o){const t=(0,c.i)(o,$e);if(t){e.tx=le(t);const o=(t=>{let e="";for(const o of t.children)if("string"!=typeof o)for(const t of(0,c.a)(o,"{http://schemas.openxmlformats.org/drawingml/2006/main}r")){const o=(0,c.i)(t,"{http://schemas.openxmlformats.org/drawingml/2006/main}t");o?.text&&(e+=o.text)}return e.length>0?e:void 0})(t);void 0!==o&&(e.text=o)}}const s=vn((0,c.i)(t,Ds));void 0!==s&&(e.overlay=s);const n=(0,c.i)(t,vs);if(n){const t=ar(n);t&&(e.layout=t)}const r=(0,c.i)(t,Ns);r&&(e.spPr=fe(r));const i=(0,c.i)(t,Ls);return i&&(e.txPr=le(i)),e},xn=t=>{const e=(0,c.i)(t,Ns);return e?fe(e):void 0},$n=t=>{const e=(0,c.i)(t,Ls);return e?le(e):void 0},wn=["bestFit","b","ctr","inBase","inEnd","l","outEnd","r","t"],bn=t=>{if(!t)return;const e=t.attrs.formatCode;if(void 0===e)return;const o=t.attrs.sourceLinked,s="1"===o||"true"===o||"0"!==o&&"false"!==o&&void 0;return{formatCode:e,...void 0!==s?{sourceLinked:s}:{}}},yn=t=>{const e=void 0!==t.sourceLinked?` sourceLinked="${t.sourceLinked?"1":"0"}"`:"";return`<c:numFmt formatCode="${fn(t.formatCode)}"${e}/>`},kn=t=>{const e={},o=vn((0,c.i)(t,_s));void 0!==o&&(e.delete=o);const s=bn((0,c.i)(t,js));s&&(e.numFmt=s);const n=xn(t);n&&(e.spPr=n);const r=$n(t);r&&(e.txPr=r);const i=pn((0,c.i)(t,Ms));i&&wn.includes(i)&&(e.dLblPos=i);const a=vn((0,c.i)(t,zs));void 0!==a&&(e.showLegendKey=a);const l=vn((0,c.i)(t,Vs));void 0!==l&&(e.showVal=l);const d=vn((0,c.i)(t,Bs));void 0!==d&&(e.showCatName=d);const u=vn((0,c.i)(t,Ws));void 0!==u&&(e.showSerName=u);const h=vn((0,c.i)(t,Us));void 0!==h&&(e.showPercent=h);const f=vn((0,c.i)(t,Hs));void 0!==f&&(e.showBubbleSize=f);const p=(0,c.i)(t,qs);return void 0!==p?.text&&(e.separator=p.text),e},Cn=t=>{if(t.delete)return'<c:delete val="1"/>';const e=[];return t.numFmt&&e.push(yn(t.numFmt)),t.spPr&&e.push(pe(t.spPr)),t.txPr&&e.push(ce(t.txPr,"c:txPr")),t.dLblPos&&e.push(`<c:dLblPos val="${t.dLblPos}"/>`),void 0!==t.showLegendKey&&e.push(`<c:showLegendKey val="${t.showLegendKey?"1":"0"}"/>`),void 0!==t.showVal&&e.push(`<c:showVal val="${t.showVal?"1":"0"}"/>`),void 0!==t.showCatName&&e.push(`<c:showCatName val="${t.showCatName?"1":"0"}"/>`),void 0!==t.showSerName&&e.push(`<c:showSerName val="${t.showSerName?"1":"0"}"/>`),void 0!==t.showPercent&&e.push(`<c:showPercent val="${t.showPercent?"1":"0"}"/>`),void 0!==t.showBubbleSize&&e.push(`<c:showBubbleSize val="${t.showBubbleSize?"1":"0"}"/>`),void 0!==t.separator&&e.push(`<c:separator>${fn(t.separator)}</c:separator>`),e.join("")},Sn=t=>{const e=mn((0,c.i)(t,Te));if(void 0===e)return;const o={idx:e,...kn(t)},s=(0,c.i)(t,xe);if(s){const t=(0,c.i)(s,$e);if(t)o.tx={kind:"rich",body:le(t)};else{const t=(0,c.i)(s,Le);t&&(o.tx={kind:"strRef",ref:(0,c.i)(t,Ee)?.text??""})}}return o},In=t=>{if(t.delete)return`<c:dLbl><c:idx val="${t.idx}"/><c:delete val="1"/></c:dLbl>`;const e=[`<c:dLbl><c:idx val="${t.idx}"/>`];return t.tx&&("rich"===t.tx.kind?e.push(`<c:tx>${ce(t.tx.body,"c:rich")}</c:tx>`):e.push(`<c:tx><c:strRef><c:f>${fn(t.tx.ref)}</c:f></c:strRef></c:tx>`)),e.push(Cn(t)),e.push("</c:dLbl>"),e.join("")},Tn=t=>{if(t.delete)return'<c:dLbls><c:delete val="1"/></c:dLbls>';const e=["<c:dLbls>"];if(t.dLbl)for(const o of t.dLbl)e.push(In(o));return e.push(Cn(t)),void 0!==t.showLeaderLines&&e.push(`<c:showLeaderLines val="${t.showLeaderLines?"1":"0"}"/>`),e.push("</c:dLbls>"),e.join("")},Pn=["auto","circle","dash","diamond","dot","none","picture","plus","square","star","triangle","x"],Fn=t=>{const e=pn((0,c.i)(t,eo)),o=mn((0,c.i)(t,oo)),s=xn(t),n={};return e&&Pn.includes(e)&&(n.symbol=e),void 0!==o&&(n.size=o),s&&(n.spPr=s),Object.keys(n).length>0?n:void 0},Rn=t=>{const e=["<c:marker>"];return void 0!==t.symbol&&e.push(`<c:symbol val="${t.symbol}"/>`),void 0!==t.size&&e.push(`<c:size val="${t.size}"/>`),t.spPr&&e.push(pe(t.spPr)),e.push("</c:marker>"),e.join("")},Nn=t=>{const e=mn((0,c.i)(t,Te));if(void 0===e)return;const o=vn((0,c.i)(t,no)),s=vn((0,c.i)(t,go)),n=mn((0,c.i)(t,ro)),r=(0,c.i)(t,to),i=r?Fn(r):void 0,a=xn(t),l={idx:e};return void 0!==o&&(l.invertIfNegative=o),i&&(l.marker=i),void 0!==s&&(l.bubble3D=s),void 0!==n&&(l.explosion=n),a&&(l.spPr=a),l},Ln=t=>{const e=["<c:dPt>",`<c:idx val="${t.idx}"/>`];return void 0!==t.invertIfNegative&&e.push(`<c:invertIfNegative val="${t.invertIfNegative?"1":"0"}"/>`),t.marker&&e.push(Rn(t.marker)),void 0!==t.bubble3D&&e.push(`<c:bubble3D val="${t.bubble3D?"1":"0"}"/>`),void 0!==t.explosion&&e.push(`<c:explosion val="${t.explosion}"/>`),t.spPr&&e.push(pe(t.spPr)),e.push("</c:dPt>"),e.join("")},Dn=t=>{const e=[];for(const o of(0,c.a)(t,so)){const t=Nn(o);t&&e.push(t)}return e.length>0?e:void 0},An=["exp","linear","log","movingAvg","poly","power"],En=t=>{const e=pn((0,c.i)(t,Zs));if(!e||!An.includes(e))return;const o={trendlineType:e},s=(0,c.i)(t,Ys);void 0!==s?.text&&(o.name=s.text);const n=xn(t);n&&(o.spPr=n);const r=mn((0,c.i)(t,Ks));void 0!==r&&(o.order=r);const i=mn((0,c.i)(t,Qs));void 0!==i&&(o.period=i);const a=(0,c.i)(t,Js);if(a){const t=pn(a);if(void 0!==t){const e=Number.parseFloat(t);Number.isFinite(e)&&(o.forward=e)}}const l=(0,c.i)(t,tn);if(l){const t=pn(l);if(void 0!==t){const e=Number.parseFloat(t);Number.isFinite(e)&&(o.backward=e)}}const d=(0,c.i)(t,en);if(d){const t=pn(d);if(void 0!==t){const e=Number.parseFloat(t);Number.isFinite(e)&&(o.intercept=e)}}const u=vn((0,c.i)(t,on));void 0!==u&&(o.dispRSqr=u);const h=vn((0,c.i)(t,sn));return void 0!==h&&(o.dispEq=h),o},On=t=>{const e=["<c:trendline>"];return void 0!==t.name&&e.push(`<c:name>${fn(t.name)}</c:name>`),t.spPr&&e.push(pe(t.spPr)),e.push(`<c:trendlineType val="${t.trendlineType}"/>`),void 0!==t.order&&e.push(`<c:order val="${t.order}"/>`),void 0!==t.period&&e.push(`<c:period val="${t.period}"/>`),void 0!==t.forward&&e.push(`<c:forward val="${t.forward}"/>`),void 0!==t.backward&&e.push(`<c:backward val="${t.backward}"/>`),void 0!==t.intercept&&e.push(`<c:intercept val="${t.intercept}"/>`),void 0!==t.dispRSqr&&e.push(`<c:dispRSqr val="${t.dispRSqr?"1":"0"}"/>`),void 0!==t.dispEq&&e.push(`<c:dispEq val="${t.dispEq?"1":"0"}"/>`),e.push("</c:trendline>"),e.join("")},jn=["x","y"],Mn=["both","minus","plus"],zn=["cust","fixedVal","percentage","stdDev","stdErr"],Vn=t=>{const e=pn((0,c.i)(t,an)),o=pn((0,c.i)(t,ln));if(!(e&&o&&Mn.includes(e)&&zn.includes(o)))return;const s={errBarType:e,errValType:o},n=pn((0,c.i)(t,rn));n&&jn.includes(n)&&(s.errDir=n);const r=vn((0,c.i)(t,cn));void 0!==r&&(s.noEndCap=r);const i=(0,c.i)(t,Re);if(i){const t=pn(i);if(void 0!==t){const e=Number.parseFloat(t);Number.isFinite(e)&&(s.val=e)}}const a=Xn(t,dn);a&&(s.plus=a);const l=Xn(t,un);l&&(s.minus=l);const d=xn(t);return d&&(s.spPr=d),s},Bn=t=>{const e=["<c:errBars>"];return t.errDir&&e.push(`<c:errDir val="${t.errDir}"/>`),e.push(`<c:errBarType val="${t.errBarType}"/>`),e.push(`<c:errValType val="${t.errValType}"/>`),void 0!==t.noEndCap&&e.push(`<c:noEndCap val="${t.noEndCap?"1":"0"}"/>`),t.plus&&e.push(Rr("plus",t.plus)),t.minus&&e.push(Rr("minus",t.minus)),void 0!==t.val&&e.push(`<c:val val="${t.val}"/>`),t.spPr&&e.push(pe(t.spPr)),e.push("</c:errBars>"),e.join("")},Wn=t=>{const e={},o=(0,c.i)(t,Es);o&&(e.dLbls=(t=>{const e={...kn(t)},o=vn((0,c.i)(t,Xs));void 0!==o&&(e.showLeaderLines=o);const s=[];for(const e of(0,c.a)(t,Os)){const t=Sn(e);t&&s.push(t)}return s.length>0&&(e.dLbl=s),e})(o));const s=[];for(const e of(0,c.a)(t,Gs)){const t=En(e);t&&s.push(t)}s.length>0&&(e.trendline=s);const n=[];for(const e of(0,c.a)(t,nn)){const t=Vn(e);t&&n.push(t)}return n.length>0&&(e.errBars=n),e},Un=t=>{const e=[],o=(0,c.i)(t,Me)?.text;for(const o of(0,c.a)(t,Oe)){const t=(0,c.i)(o,je)?.text;void 0!==t&&e.push(Number.parseFloat(t))}return void 0!==o?{values:e,formatCode:o}:{values:e}},Hn=t=>{const e=[];for(const o of(0,c.a)(t,Oe)){const t=(0,c.i)(o,je)?.text;void 0!==t&&e.push(t)}return e},Xn=(t,e)=>{const o=(0,c.i)(t,e);if(!o)return;const s=(0,c.i)(o,Ne);if(!s)return;const n=(0,c.i)(s,Ee)?.text??"",r=(0,c.i)(s,De);if(!r)return{ref:n};const{values:i,formatCode:a}=Un(r);return{ref:n,cache:i,...void 0!==a?{formatCode:a}:{}}},qn=t=>{const e=(0,c.i)(t,xe);if(!e)return;const o=(0,c.i)(e,je)?.text;if(void 0!==o)return{kind:"literal",value:o};const s=(0,c.i)(e,Le);if(!s)return;const n=(0,c.i)(s,Ee)?.text??"";if(""!==n)return{kind:"ref",ref:n};const r=(0,c.i)(s,Ae),i=r?Hn(r)[0]:void 0;return void 0===i?void 0:{kind:"literal",value:i}},_n=t=>{const e=mn((0,c.i)(t,Te)),o=mn((0,c.i)(t,Pe));if(void 0===e)return;const s=Xn(t,Re);if(!s)return;const n={idx:e,val:s};void 0!==o&&(n.order=o);const r=(t=>{const e=(0,c.i)(t,Fe);if(!e)return;const o=(0,c.i)(e,Ne);if(o){const t=(0,c.i)(o,Ee)?.text??"",e=(0,c.i)(o,De);if(!e)return{ref:t,cacheKind:"num"};const{values:s,formatCode:n}=Un(e);return{ref:t,cacheKind:"num",cache:s,...void 0!==n?{formatCode:n}:{}}}const s=(0,c.i)(e,Le);if(s){const t=(0,c.i)(s,Ee)?.text??"",e=(0,c.i)(s,Ae);return e?{ref:t,cacheKind:"str",cache:Hn(e)}:{ref:t,cacheKind:"str"}}})(t);r&&(n.cat=r);const i=qn(t);i&&(n.tx=i);const a=function(t){return{idx:t.idx,order:t.order??t.idx,val:t.val,...t.cat?{cat:t.cat}:{},...t.tx?{tx:t.tx}:{}}}(n),l=xn(t),d=vn((0,c.i)(t,no)),u=mn((0,c.i)(t,ro)),h=Dn(t);return{...a,...l?{spPr:l}:{},...void 0!==d?{invertIfNegative:d}:{},...void 0!==u?{explosion:u}:{},...h?{dPt:h}:{},...Wn(t)}},Gn=t=>{const e=(0,c.a)(t,Xe);return[mn(e[0])??1,mn(e[1])??2]},Zn=t=>{const e=[];for(const o of(0,c.a)(t,Ie)){const t=_n(o);t&&e.push(t)}return e},Yn=t=>{const e=_n(t);if(!e)return;const o=vn((0,c.i)(t,Je)),s=(0,c.i)(t,to),n=s?Fn(s):void 0;return{...e,...void 0!==o?{smooth:o}:{},...n?{marker:n}:{}}},Kn=t=>{const e=mn((0,c.i)(t,Te)),o=mn((0,c.i)(t,Pe));if(void 0===e)return;const s=Xn(t,ho);if(!s)return;const n=Xn(t,uo),r=vn((0,c.i)(t,Je)),i={idx:e,yVal:s};void 0!==o&&(i.order=o),n&&(i.xVal=n),void 0!==r&&(i.smooth=r);const a=(0,c.i)(t,to),l=a?Fn(a):void 0;l&&(i.marker=l);const d=qn(t);d&&(i.tx=d);const u=function(t){return{idx:t.idx,order:t.order??t.idx,yVal:t.yVal,...t.tx?{tx:t.tx}:{},...t.xVal?{xVal:t.xVal}:{},...void 0!==t.smooth?{smooth:t.smooth}:{},...t.marker?{marker:t.marker}:{}}}(i),h=xn(t),f=Dn(t);return{...u,...h?{spPr:h}:{},...f?{dPt:f}:{},...Wn(t)}},Qn=t=>{const e=mn((0,c.i)(t,Te)),o=mn((0,c.i)(t,Pe));if(void 0===e)return;const s=Xn(t,ho),n=Xn(t,vo);if(!s||!n)return;const r=Xn(t,uo),i=vn((0,c.i)(t,go)),a={idx:e,yVal:s,bubbleSize:n};void 0!==o&&(a.order=o),r&&(a.xVal=r),void 0!==i&&(a.bubble3D=i);const l=qn(t);l&&(a.tx=l);const d=function(t){return{idx:t.idx,order:t.order??t.idx,yVal:t.yVal,bubbleSize:t.bubbleSize,...t.tx?{tx:t.tx}:{},...t.xVal?{xVal:t.xVal}:{},...void 0!==t.bubble3D?{bubble3D:t.bubble3D}:{}}}(a),u=xn(t),h=vn((0,c.i)(t,no)),f=Dn(t);return{...d,...u?{spPr:u}:{},...void 0!==h?{invertIfNegative:h}:{},...f?{dPt:f}:{},...Wn(t)}},Jn=`{${c.T}}upBars`,tr=`{${c.T}}downBars`,er=t=>{const e=(0,c.i)(t,bo),o=e?(t=>{const e=xn(t);return!e||{spPr:e}})(e):void 0,s=(0,c.i)(t,yo),n=s?(t=>{const e=mn((0,c.i)(t,We)),o=(0,c.i)(t,Jn),s=(0,c.i)(t,tr),n=o?xn(o):void 0,r=s?xn(s):void 0,i={};return void 0!==e&&150!==e&&(i.gapWidth=e),o&&(i.upBars=n?{spPr:n}:{}),s&&(i.downBars=r?{spPr:r}:{}),!(Object.keys(i).length>0)||i})(s):void 0;return{kind:"stock",series:(r={series:Zn(t),axIds:Gn(t),...void 0!==o?{hiLowLines:o}:{},...void 0!==n?{upDownBars:n}:{}}).series??[],axIds:r.axIds??[1,2],...void 0!==r.hiLowLines?{hiLowLines:r.hiLowLines}:{},...void 0!==r.upDownBars?{upDownBars:r.upDownBars}:{}};var r},or=t=>{const e=(0,c.a)(t,Xe);return[mn(e[0])??1,mn(e[1])??2,mn(e[2])??3]},sr=["auto","cust","percent","pos","val"],nr=t=>{const e=(0,c.i)(t,be);if(e)return(t=>{const e=pn((0,c.i)(t,ze))??"col",o=pn((0,c.i)(t,Ve))??"clustered",s=vn((0,c.i)(t,Be)),n=mn((0,c.i)(t,We)),r=mn((0,c.i)(t,Ue));return{kind:"bar",barDir:(i={barDir:e,grouping:o,series:Zn(t),axIds:Gn(t),...void 0!==s?{varyColors:s}:{},...void 0!==n?{gapWidth:n}:{},...void 0!==r?{overlap:r}:{}}).barDir??"col",grouping:i.grouping??"clustered",series:i.series??[],axIds:i.axIds??[1,2],...void 0!==i.varyColors?{varyColors:i.varyColors}:{},...void 0!==i.gapWidth?{gapWidth:i.gapWidth}:{},...void 0!==i.overlap?{overlap:i.overlap}:{}};var i})(e);const o=(0,c.i)(t,_e);if(o)return(t=>{const e=pn((0,c.i)(t,Ve))??"standard",o=vn((0,c.i)(t,Be)),s=vn((0,c.i)(t,Je)),n=[];for(const e of(0,c.a)(t,Ie)){const t=Yn(e);t&&n.push(t)}return{kind:"line",grouping:(r={grouping:e,series:n,axIds:Gn(t),...void 0!==o?{varyColors:o}:{},...void 0!==s?{smooth:s}:{}}).grouping??"standard",series:r.series??[],axIds:r.axIds??[1,2],...void 0!==r.varyColors?{varyColors:r.varyColors}:{},...void 0!==r.smooth?{smooth:r.smooth}:{}};var r})(o);const n=(0,c.i)(t,Ge);if(n)return(t=>{const e=pn((0,c.i)(t,Ve))??"standard",o=vn((0,c.i)(t,Be));return{kind:"area",grouping:(s={grouping:e,series:Zn(t),axIds:Gn(t),...void 0!==o?{varyColors:o}:{}}).grouping??"standard",series:s.series??[],axIds:s.axIds??[1,2],...void 0!==s.varyColors?{varyColors:s.varyColors}:{}};var s})(n);const r=(0,c.i)(t,Ze);if(r)return(t=>{const e=vn((0,c.i)(t,Be)),o=mn((0,c.i)(t,ao));return{kind:"pie",series:(s={series:Zn(t),...void 0!==e?{varyColors:e}:{},...void 0!==o?{firstSliceAng:o}:{}}).series??[],...void 0!==s.varyColors?{varyColors:s.varyColors}:{},...void 0!==s.firstSliceAng?{firstSliceAng:s.firstSliceAng}:{}};var s})(r);const i=(0,c.i)(t,Ye);if(i)return(t=>{const e=vn((0,c.i)(t,Be)),o=mn((0,c.i)(t,io)),s=mn((0,c.i)(t,ao));return{kind:"doughnut",series:(n={series:Zn(t),...void 0!==e?{varyColors:e}:{},...void 0!==o?{holeSize:o}:{},...void 0!==s?{firstSliceAng:s}:{}}).series??[],...void 0!==n.varyColors?{varyColors:n.varyColors}:{},...void 0!==n.holeSize?{holeSize:n.holeSize}:{},...void 0!==n.firstSliceAng?{firstSliceAng:n.firstSliceAng}:{}};var n})(i);const a=(0,c.i)(t,Ke);if(a)return(t=>{const e=pn((0,c.i)(t,lo))??"lineMarker",o=vn((0,c.i)(t,Be)),s=[];for(const e of(0,c.a)(t,Ie)){const t=Kn(e);t&&s.push(t)}return{kind:"scatter",scatterStyle:(n={scatterStyle:e,series:s,axIds:Gn(t),...void 0!==o?{varyColors:o}:{}}).scatterStyle??"lineMarker",series:n.series??[],axIds:n.axIds??[1,2],...void 0!==n.varyColors?{varyColors:n.varyColors}:{}};var n})(a);const l=(0,c.i)(t,Qe);if(l)return(t=>{const e=pn((0,c.i)(t,co))??"standard",o=vn((0,c.i)(t,Be));return{kind:"radar",radarStyle:(s={radarStyle:e,series:Zn(t),axIds:Gn(t),...void 0!==o?{varyColors:o}:{}}).radarStyle??"standard",series:s.series??[],axIds:s.axIds??[1,2],...void 0!==s.varyColors?{varyColors:s.varyColors}:{}};var s})(l);const d=(0,c.i)(t,fo);if(d)return(t=>{const e=vn((0,c.i)(t,Be)),o=vn((0,c.i)(t,go)),s=mn((0,c.i)(t,xo)),n=vn((0,c.i)(t,$o)),r=pn((0,c.i)(t,wo)),i="area"===r||"w"===r?r:void 0,a=[];for(const e of(0,c.a)(t,Ie)){const t=Qn(e);t&&a.push(t)}return{kind:"bubble",series:(l={series:a,axIds:Gn(t),...void 0!==e?{varyColors:e}:{},...void 0!==o?{bubble3D:o}:{},...void 0!==s?{bubbleScale:s}:{},...void 0!==n?{showNegBubbles:n}:{},...void 0!==i?{sizeRepresents:i}:{}}).series??[],axIds:l.axIds??[1,2],...void 0!==l.varyColors?{varyColors:l.varyColors}:{},...void 0!==l.bubble3D?{bubble3D:l.bubble3D}:{},...void 0!==l.bubbleScale?{bubbleScale:l.bubbleScale}:{},...void 0!==l.showNegBubbles?{showNegBubbles:l.showNegBubbles}:{},...void 0!==l.sizeRepresents?{sizeRepresents:l.sizeRepresents}:{}};var l})(d);const u=(0,c.i)(t,po);if(u)return er(u);const h=(0,c.i)(t,mo);if(h)return(t=>{const e=vn((0,c.i)(t,ko)),o=or(t);return{kind:"surface",series:(s={series:Zn(t),axIds:o,...void 0!==e?{wireframe:e}:{}}).series??[],axIds:s.axIds??[1,2,3],...void 0!==s.wireframe?{wireframe:s.wireframe}:{}};var s})(h);const f=(0,c.i)(t,Co);if(f)return(t=>{const e=pn((0,c.i)(t,So))??"pie",o=vn((0,c.i)(t,Be)),s=mn((0,c.i)(t,We)),n=pn((0,c.i)(t,Io)),r=n&&sr.includes(n)?n:void 0,i=mn((0,c.i)(t,To)),a=mn((0,c.i)(t,Fo));let l;const d=(0,c.i)(t,Po);if(d){const t=[];for(const e of(0,c.a)(d,Ro)){const o=Number.parseInt(e.attrs.idx??"",10);Number.isInteger(o)&&t.push(o)}l=t}return{kind:"ofPie",ofPieType:(u={ofPieType:e,series:Zn(t),...void 0!==o?{varyColors:o}:{},...void 0!==s?{gapWidth:s}:{},...void 0!==r?{splitType:r}:{},...void 0!==i?{splitPos:i}:{},...void 0!==l?{custSplit:l}:{},...void 0!==a?{secondPieSize:a}:{}}).ofPieType??"pie",series:u.series??[],...void 0!==u.varyColors?{varyColors:u.varyColors}:{},...void 0!==u.gapWidth?{gapWidth:u.gapWidth}:{},...void 0!==u.splitType?{splitType:u.splitType}:{},...void 0!==u.splitPos?{splitPos:u.splitPos}:{},...u.custSplit?{custSplit:u.custSplit}:{},...void 0!==u.secondPieSize?{secondPieSize:u.secondPieSize}:{}};var u})(f);const p=(0,c.i)(t,No);if(p)return(t=>{const e=pn((0,c.i)(t,ze))??"col",o=pn((0,c.i)(t,Ve))??"clustered",s=vn((0,c.i)(t,Be)),n=mn((0,c.i)(t,We)),r=mn((0,c.i)(t,Oo)),i=pn((0,c.i)(t,jo));return{kind:"bar3D",barDir:(a={barDir:e,grouping:o,series:Zn(t),axIds:or(t),...void 0!==s?{varyColors:s}:{},...void 0!==n?{gapWidth:n}:{},...void 0!==r?{gapDepth:r}:{},...void 0!==i?{shape:i}:{}}).barDir??"col",grouping:a.grouping??"clustered",series:a.series??[],axIds:a.axIds??[1,2,3],...void 0!==a.varyColors?{varyColors:a.varyColors}:{},...void 0!==a.gapWidth?{gapWidth:a.gapWidth}:{},...void 0!==a.gapDepth?{gapDepth:a.gapDepth}:{},...void 0!==a.shape?{shape:a.shape}:{}};var a})(p);const m=(0,c.i)(t,Lo);if(m)return(t=>{const e=pn((0,c.i)(t,Ve))??"standard",o=vn((0,c.i)(t,Be)),s=mn((0,c.i)(t,Oo)),n=[];for(const e of(0,c.a)(t,Ie)){const t=Yn(e);t&&n.push(t)}return{kind:"line3D",grouping:(r={grouping:e,series:n,axIds:or(t),...void 0!==o?{varyColors:o}:{},...void 0!==s?{gapDepth:s}:{}}).grouping??"standard",series:r.series??[],axIds:r.axIds??[1,2,3],...void 0!==r.varyColors?{varyColors:r.varyColors}:{},...void 0!==r.gapDepth?{gapDepth:r.gapDepth}:{}};var r})(m);const v=(0,c.i)(t,Do);if(v)return(t=>{const e=vn((0,c.i)(t,Be));return{kind:"pie3D",series:(o={series:Zn(t),...void 0!==e?{varyColors:e}:{}}).series??[],...void 0!==o.varyColors?{varyColors:o.varyColors}:{}};var o})(v);const g=(0,c.i)(t,Ao);if(g)return(t=>{const e=pn((0,c.i)(t,Ve))??"standard",o=vn((0,c.i)(t,Be)),s=mn((0,c.i)(t,Oo));return{kind:"area3D",grouping:(n={grouping:e,series:Zn(t),axIds:or(t),...void 0!==o?{varyColors:o}:{},...void 0!==s?{gapDepth:s}:{}}).grouping??"standard",series:n.series??[],axIds:n.axIds??[1,2,3],...void 0!==n.varyColors?{varyColors:n.varyColors}:{},...void 0!==n.gapDepth?{gapDepth:n.gapDepth}:{}};var n})(g);const x=(0,c.i)(t,Eo);if(x)return(t=>{const e=vn((0,c.i)(t,ko));return{kind:"surface3D",series:(o={series:Zn(t),axIds:or(t),...void 0!==e?{wireframe:e}:{}}).series??[],axIds:o.axIds??[1,2,3],...void 0!==o.wireframe?{wireframe:o.wireframe}:{}};var o})(x);throw new s.s("parseChartXml: no supported chart kind found inside <plotArea>")},rr=["edge","factor"],ir=["inner","outer"],ar=t=>{const e=(0,c.i)(t,gs);if(!e)return;const o=pn((0,c.i)(e,xs)),s=o&&ir.includes(o)?o:void 0,n=pn((0,c.i)(e,$s)),r=pn((0,c.i)(e,ws)),i=pn((0,c.i)(e,bs)),a=pn((0,c.i)(e,ys)),l=gr((0,c.i)(e,ks)),d=gr((0,c.i)(e,Cs)),u=gr((0,c.i)(e,Ss)),h=gr((0,c.i)(e,Is)),f={};return s&&(f.layoutTarget=s),n&&rr.includes(n)&&(f.xMode=n),r&&rr.includes(r)&&(f.yMode=r),i&&rr.includes(i)&&(f.wMode=i),a&&rr.includes(a)&&(f.hMode=a),void 0!==l&&(f.x=l),void 0!==d&&(f.y=d),void 0!==u&&(f.w=u),void 0!==h&&(f.h=h),Object.keys(f).length>0?{manualLayout:f}:void 0},lr=t=>{const e=t?.manualLayout;if(!e||0===Object.keys(e).length)return"<c:layout/>";const o=["<c:layout><c:manualLayout>"];return e.layoutTarget&&o.push(`<c:layoutTarget val="${e.layoutTarget}"/>`),e.xMode&&o.push(`<c:xMode val="${e.xMode}"/>`),e.yMode&&o.push(`<c:yMode val="${e.yMode}"/>`),e.wMode&&o.push(`<c:wMode val="${e.wMode}"/>`),e.hMode&&o.push(`<c:hMode val="${e.hMode}"/>`),void 0!==e.x&&o.push(`<c:x val="${e.x}"/>`),void 0!==e.y&&o.push(`<c:y val="${e.y}"/>`),void 0!==e.w&&o.push(`<c:w val="${e.w}"/>`),void 0!==e.h&&o.push(`<c:h val="${e.h}"/>`),o.push("</c:manualLayout></c:layout>"),o.join("")},cr=t=>{const e=mn((0,c.i)(t,ms)),o=xn(t),s={};return void 0!==e&&(s.thickness=e),o&&(s.spPr=o),Object.keys(s).length>0?s:void 0},dr=(t,e)=>{const o=[`<c:${t}>`];return void 0!==e.thickness&&o.push(`<c:thickness val="${e.thickness}"/>`),e.spPr&&o.push(pe(e.spPr)),o.push(`</c:${t}>`),o.join("")},ur=["cross","in","none","out"],hr=["high","low","nextTo","none"],fr=["autoZero","max","min"],pr=["maxMin","minMax"],mr=["between","midCat"],vr=["ctr","l","r"],gr=t=>{if(!t)return;const e=pn(t);if(void 0===e)return;const o=Number(e);return Number.isFinite(o)?o:void 0},xr=t=>{const e=["<c:scaling>"];return e.push(`<c:orientation val="${t?.orientation??"minMax"}"/>`),void 0!==t?.logBase&&e.push(`<c:logBase val="${t.logBase}"/>`),void 0!==t?.max&&e.push(`<c:max val="${t.max}"/>`),void 0!==t?.min&&e.push(`<c:min val="${t.min}"/>`),e.push("</c:scaling>"),e.join("")},$r=t=>{const e=mn((0,c.i)(t,Xe))??0,o=mn((0,c.i)(t,zo))??0,s=pn((0,c.i)(t,Mo)),n="b"===s||"t"===s||"l"===s||"r"===s,r=vn((0,c.i)(t,qe)),i=Mr(t,Vo),a=Mr(t,Bo),l=xn(t),d=$n(t),u=(0,c.i)(t,ge),h=u?gn(u):void 0,f=bn((0,c.i)(t,js)),p=!f||"General"===f.formatCode&&!0===f.sourceLinked?void 0:f,m=pn((0,c.i)(t,Qo)),v=m&&ur.includes(m)&&"out"!==m?m:void 0,g=pn((0,c.i)(t,Jo)),x=g&&ur.includes(g)&&"none"!==g?g:void 0,$=pn((0,c.i)(t,ts)),w=$&&hr.includes($)&&"nextTo"!==$?$:void 0,b=pn((0,c.i)(t,_o)),y=b&&fr.includes(b)&&"autoZero"!==b?b:void 0,k=gr((0,c.i)(t,Go)),C=(t=>{const e=(0,c.i)(t,Wo);if(!e)return;const o=pn((0,c.i)(e,Uo)),s=o&&pr.includes(o)&&"minMax"!==o?o:void 0,n=gr((0,c.i)(e,Ho)),r=gr((0,c.i)(e,Xo)),i=gr((0,c.i)(e,qo)),a={};return void 0!==s&&(a.orientation=s),void 0!==n&&(a.min=n),void 0!==r&&(a.max=r),void 0!==i&&(a.logBase=i),Object.keys(a).length>0?a:void 0})(t);return{axId:e,crossAx:o,...n?{position:s}:{},...void 0!==r?{delete:r}:{},...void 0!==i?{majorGridlines:i}:{},...void 0!==a?{minorGridlines:a}:{},...l?{spPr:l}:{},...d?{txPr:d}:{},...h?{title:h}:{},...p?{numFmt:p}:{},...v?{majorTickMark:v}:{},...x?{minorTickMark:x}:{},...w?{tickLblPos:w}:{},...C?{scaling:C}:{},...y?{crosses:y}:{},...void 0!==k?{crossesAt:k}:{}}},wr=t=>{const e=$r(t),o=!1!==vn((0,c.i)(t,es))&&void 0,s=pn((0,c.i)(t,os)),n=s&&vr.includes(s)&&"ctr"!==s?s:void 0,r=mn((0,c.i)(t,ss)),i=void 0!==r&&100!==r?r:void 0,a=!0===vn((0,c.i)(t,ns))||void 0;return{...e,...void 0!==o?{auto:o}:{},...n?{lblAlgn:n}:{},...void 0!==i?{lblOffset:i}:{},...void 0!==a?{noMultiLvlLbl:a}:{}}},br=["days","months","years"],yr=`{${c.T}}baseTimeUnit`,kr=`{${c.T}}majorTimeUnit`,Cr=`{${c.T}}minorTimeUnit`,Sr=`{${c.T}}tickLblSkip`,Ir=`{${c.T}}tickMarkSkip`,Tr=t=>{const e=$r(t),o=pn((0,c.i)(t,Zo)),s=o&&mr.includes(o)&&"between"!==o?o:void 0,n=gr((0,c.i)(t,Yo)),r=gr((0,c.i)(t,Ko));return{...e,...s?{crossBetween:s}:{},...void 0!==n?{majorUnit:n}:{},...void 0!==r?{minorUnit:r}:{}}};function Pr(t){const e=(0,d.n)(t);if(e.name!==me)throw new s.s(`parseChartXml: root is "${e.name}", expected chartSpace`);const o=(0,c.i)(e,ve);if(!o)throw new s.s("parseChartXml: <chartSpace> missing <chart>");const n=(0,c.i)(o,we);if(!n)throw new s.s("parseChartXml: <chart> missing <plotArea>");const r=nr(n),i=(0,c.i)(n,ye),a=(0,c.a)(n,ke),l=!("axIds"in r)||"scatter"!==r.kind&&"bubble"!==r.kind?void 0:r.axIds?.[0],u=void 0===l||a.length<2?void 0:a.find(t=>mn((0,c.i)(t,Xe))===l),h=a.find(t=>t!==u),f=xn(n),p={chart:r,...i?{catAx:wr(i)}:{},...h?{valAx:Tr(h)}:{},...u?{xValAx:Tr(u)}:{},...(()=>{const t={},e=(0,c.i)(n,Ce);e&&(t.dateAx=(t=>{const e=$r(t),o=!1!==vn((0,c.i)(t,es))&&void 0,s=mn((0,c.i)(t,ss)),n=void 0!==s&&100!==s?s:void 0,r=pn((0,c.i)(t,yr)),i=r&&br.includes(r)?r:void 0,a=gr((0,c.i)(t,Yo)),l=pn((0,c.i)(t,kr)),d=l&&br.includes(l)?l:void 0,u=gr((0,c.i)(t,Ko)),h=pn((0,c.i)(t,Cr)),f=h&&br.includes(h)?h:void 0;return{...e,...void 0!==o?{auto:o}:{},...void 0!==n?{lblOffset:n}:{},...i?{baseTimeUnit:i}:{},...void 0!==a?{majorUnit:a}:{},...d?{majorTimeUnit:d}:{},...void 0!==u?{minorUnit:u}:{},...f?{minorTimeUnit:f}:{}}})(e));const o=(0,c.i)(n,Se);o&&(t.serAx=(t=>{const e=$r(t),o=mn((0,c.i)(t,Sr)),s=mn((0,c.i)(t,Ir));return{...e,...void 0!==o?{tickLblSkip:o}:{},...void 0!==s?{tickMarkSkip:s}:{}}})(o));const s=(0,c.i)(n,vs);if(s){const e=ar(s);e&&(t.layout=e)}return t})(),...f?{spPr:f}:{}},m=(0,c.i)(o,ge),v=m?gn(m):void 0,g=(0,c.i)(o,Ts);let x;if(g){const t=pn((0,c.i)(g,Ps)),e=vn((0,c.i)(g,Ds)),o=xn(g),s=$n(g),n=(0,c.i)(g,vs),r=n?ar(n):void 0;x={position:t??"r",...void 0!==e?{overlay:e}:{},...r?{layout:r}:{},...o?{spPr:o}:{},...s?{txPr:s}:{}}}const $=vn((0,c.i)(o,Fs)),w=pn((0,c.i)(o,Rs)),b=mn((0,c.i)(e,He)),y=(0,c.i)(o,rs),k=y?(t=>{const e=mn((0,c.i)(t,is)),o=mn((0,c.i)(t,as)),s=mn((0,c.i)(t,ls)),n=mn((0,c.i)(t,cs)),r=vn((0,c.i)(t,ds)),i=mn((0,c.i)(t,us)),a={};return void 0!==e&&(a.rotX=e),void 0!==o&&(a.rotY=o),void 0!==n&&(a.depthPercent=n),void 0!==s&&(a.hPercent=s),void 0!==r&&(a.rAngAx=r),void 0!==i&&(a.perspective=i),Object.keys(a).length>0?a:void 0})(y):void 0,C=(0,c.i)(o,hs),S=C?cr(C):void 0,I=(0,c.i)(o,fs),T=I?cr(I):void 0,P=(0,c.i)(o,ps),F=P?cr(P):void 0,R=xn(e),N=$n(e);return function(t){const e="string"==typeof t.title?{text:t.title}:t.title;return{plotArea:t.plotArea,...void 0!==e?{title:e}:{},...t.legend?{legend:t.legend}:{},...void 0!==t.style?{style:t.style}:{},...t.view3D?{view3D:t.view3D}:{},...t.floor?{floor:t.floor}:{},...t.sideWall?{sideWall:t.sideWall}:{},...t.backWall?{backWall:t.backWall}:{},...void 0!==t.plotVisOnly?{plotVisOnly:t.plotVisOnly}:{},...void 0!==t.dispBlanksAs?{dispBlanksAs:t.dispBlanksAs}:{},...t.spPr?{spPr:t.spPr}:{},...t.txPr?{txPr:t.txPr}:{}}}({plotArea:p,...void 0!==v?{title:v}:{},...x?{legend:x}:{},...void 0!==b?{style:b}:{},...k?{view3D:k}:{},...S?{floor:S}:{},...T?{sideWall:T}:{},...F?{backWall:F}:{},...void 0!==$?{plotVisOnly:$}:{},...w?{dispBlanksAs:w}:{},...R?{spPr:R}:{},...N?{txPr:N}:{}})}const Fr=(t,e)=>{const o=["<c:numCache>"];e&&o.push(`<c:formatCode>${fn(e)}</c:formatCode>`),o.push(`<c:ptCount val="${t.length}"/>`);for(let e=0;e<t.length;e++){const s=t[e];o.push(`<c:pt idx="${e}"><c:v>${fn(String(s))}</c:v></c:pt>`)}return o.push("</c:numCache>"),o.join("")},Rr=(t,e)=>{const o=void 0!==e.cache?Fr(e.cache,e.formatCode):"";return`<c:${t}><c:numRef><c:f>${fn(e.ref)}</c:f>${o}</c:numRef></c:${t}>`},Nr=t=>{if("str"===t.cacheKind||"num"!==t.cacheKind&&t.cache&&t.cache.some(t=>"string"==typeof t)){const e=void 0!==t.cache?(t=>{const e=["<c:strCache>",`<c:ptCount val="${t.length}"/>`];for(let o=0;o<t.length;o++){const s=t[o];e.push(`<c:pt idx="${o}"><c:v>${fn(String(s))}</c:v></c:pt>`)}return e.push("</c:strCache>"),e.join("")})(t.cache):"";return`<c:cat><c:strRef><c:f>${fn(t.ref)}</c:f>${e}</c:strRef></c:cat>`}const e=t.cache,o=void 0!==e?Fr(e,t.formatCode):"";return`<c:cat><c:numRef><c:f>${fn(t.ref)}</c:f>${o}</c:numRef></c:cat>`},Lr=(t,e)=>{const o=["<c:ser>",`<c:idx val="${t.idx}"/>`,`<c:order val="${t.order}"/>`];if(t.tx&&("literal"===t.tx.kind?o.push(`<c:tx><c:v>${fn(t.tx.value)}</c:v></c:tx>`):o.push(`<c:tx><c:strRef><c:f>${fn(t.tx.ref)}</c:f></c:strRef></c:tx>`)),t.spPr&&o.push(pe(t.spPr)),e&&o.push(Rn(e)),void 0!==t.invertIfNegative&&o.push(`<c:invertIfNegative val="${t.invertIfNegative?"1":"0"}"/>`),void 0!==t.explosion&&o.push(`<c:explosion val="${t.explosion}"/>`),t.dPt)for(const e of t.dPt)o.push(Ln(e));if(t.dLbls&&o.push(Tn(t.dLbls)),t.trendline)for(const e of t.trendline)o.push(On(e));if(t.errBars)for(const e of t.errBars)o.push(Bn(e));return t.cat&&o.push(Nr(t.cat)),o.push(Rr("val",t.val)),o.push("</c:ser>"),o.join("")},Dr=t=>{const e=Lr(t,t.marker);return void 0===t.smooth?e:e.replace("</c:ser>",`<c:smooth val="${t.smooth?"1":"0"}"/></c:ser>`)},Ar=t=>{const e=["<c:ser>",`<c:idx val="${t.idx}"/>`,`<c:order val="${t.order}"/>`];if(t.tx&&("literal"===t.tx.kind?e.push(`<c:tx><c:v>${fn(t.tx.value)}</c:v></c:tx>`):e.push(`<c:tx><c:strRef><c:f>${fn(t.tx.ref)}</c:f></c:strRef></c:tx>`)),t.spPr&&e.push(pe(t.spPr)),t.marker&&e.push(Rn(t.marker)),t.dPt)for(const o of t.dPt)e.push(Ln(o));if(t.dLbls&&e.push(Tn(t.dLbls)),t.trendline)for(const o of t.trendline)e.push(On(o));if(t.errBars)for(const o of t.errBars)e.push(Bn(o));return t.xVal&&e.push(Rr("xVal",t.xVal)),e.push(Rr("yVal",t.yVal)),void 0!==t.smooth&&e.push(`<c:smooth val="${t.smooth?"1":"0"}"/>`),e.push("</c:ser>"),e.join("")},Er=t=>{const e=["<c:ser>",`<c:idx val="${t.idx}"/>`,`<c:order val="${t.order}"/>`];if(t.tx&&("literal"===t.tx.kind?e.push(`<c:tx><c:v>${fn(t.tx.value)}</c:v></c:tx>`):e.push(`<c:tx><c:strRef><c:f>${fn(t.tx.ref)}</c:f></c:strRef></c:tx>`)),t.spPr&&e.push(pe(t.spPr)),void 0!==t.invertIfNegative&&e.push(`<c:invertIfNegative val="${t.invertIfNegative?"1":"0"}"/>`),t.dPt)for(const o of t.dPt)e.push(Ln(o));if(t.dLbls&&e.push(Tn(t.dLbls)),t.trendline)for(const o of t.trendline)e.push(On(o));if(t.errBars)for(const o of t.errBars)e.push(Bn(o));return t.xVal&&e.push(Rr("xVal",t.xVal)),e.push(Rr("yVal",t.yVal)),e.push(Rr("bubbleSize",t.bubbleSize)),void 0!==t.bubble3D&&e.push(`<c:bubble3D val="${t.bubble3D?"1":"0"}"/>`),e.push("</c:ser>"),e.join("")},Or=t=>{const e=["<c:stockChart>"];for(const o of t.series)e.push(Lr(o));var o;return void 0!==t.hiLowLines&&e.push(!0===(o=t.hiLowLines)?"<c:hiLowLines/>":!1===o?"":o.spPr?`<c:hiLowLines>${pe(o.spPr)}</c:hiLowLines>`:"<c:hiLowLines/>"),void 0!==t.upDownBars&&e.push((t=>{if(!0===t)return'<c:upDownBars><c:gapWidth val="150"/></c:upDownBars>';if(!1===t)return"";const e=["<c:upDownBars>"];return e.push(`<c:gapWidth val="${t.gapWidth??150}"/>`),t.upBars&&e.push(t.upBars.spPr?`<c:upBars>${pe(t.upBars.spPr)}</c:upBars>`:"<c:upBars/>"),t.downBars&&e.push(t.downBars.spPr?`<c:downBars>${pe(t.downBars.spPr)}</c:downBars>`:"<c:downBars/>"),e.push("</c:upDownBars>"),e.join("")})(t.upDownBars)),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:stockChart>"),e.join("")},jr=(t,e)=>!0!==e&&!1!==e&&e.spPr?`<${t}>${pe(e.spPr)}</${t}>`:`<${t}/>`,Mr=(t,e)=>{const o=(0,c.i)(t,e);if(!o)return;const s=xn(o);return!s||{spPr:s}},zr=(t,e)=>{const o=[`<c:${t}>`,`<c:axId val="${e.axId}"/>`,xr(e.scaling),`<c:delete val="${e.delete?"1":"0"}"/>`,`<c:axPos val="${e.position??("catAx"===t?"b":"l")}"/>`];if(e.majorGridlines&&o.push(jr("c:majorGridlines",e.majorGridlines)),e.minorGridlines&&o.push(jr("c:minorGridlines",e.minorGridlines)),e.title&&o.push(Vr(e.title)),o.push(e.numFmt?yn(e.numFmt):'<c:numFmt formatCode="General" sourceLinked="1"/>'),o.push(`<c:majorTickMark val="${e.majorTickMark??"out"}"/>`),o.push(`<c:minorTickMark val="${e.minorTickMark??"none"}"/>`),o.push(`<c:tickLblPos val="${e.tickLblPos??"nextTo"}"/>`),e.spPr&&o.push(pe(e.spPr)),e.txPr&&o.push(ce(e.txPr,"c:txPr")),o.push(`<c:crossAx val="${e.crossAx}"/>`),void 0!==e.crossesAt?o.push(`<c:crossesAt val="${e.crossesAt}"/>`):o.push(`<c:crosses val="${e.crosses??"autoZero"}"/>`),"catAx"===t){const t=e;o.push(`<c:auto val="${!1===t.auto?"0":"1"}"/>`),o.push(`<c:lblAlgn val="${t.lblAlgn??"ctr"}"/>`),o.push(`<c:lblOffset val="${t.lblOffset??100}"/>`),o.push(`<c:noMultiLvlLbl val="${t.noMultiLvlLbl?"1":"0"}"/>`)}else if("valAx"===t){const t=e;o.push(`<c:crossBetween val="${t.crossBetween??"between"}"/>`),void 0!==t.majorUnit&&o.push(`<c:majorUnit val="${t.majorUnit}"/>`),void 0!==t.minorUnit&&o.push(`<c:minorUnit val="${t.minorUnit}"/>`)}else if("dateAx"===t){const t=e;o.push(`<c:auto val="${!1===t.auto?"0":"1"}"/>`),void 0!==t.lblOffset&&o.push(`<c:lblOffset val="${t.lblOffset}"/>`),void 0!==t.baseTimeUnit&&o.push(`<c:baseTimeUnit val="${t.baseTimeUnit}"/>`),void 0!==t.majorUnit&&o.push(`<c:majorUnit val="${t.majorUnit}"/>`),void 0!==t.majorTimeUnit&&o.push(`<c:majorTimeUnit val="${t.majorTimeUnit}"/>`),void 0!==t.minorUnit&&o.push(`<c:minorUnit val="${t.minorUnit}"/>`),void 0!==t.minorTimeUnit&&o.push(`<c:minorTimeUnit val="${t.minorTimeUnit}"/>`)}else{const t=e;void 0!==t.tickLblSkip&&o.push(`<c:tickLblSkip val="${t.tickLblSkip}"/>`),void 0!==t.tickMarkSkip&&o.push(`<c:tickMarkSkip val="${t.tickMarkSkip}"/>`)}return o.push(`</c:${t}>`),o.join("")},Vr=t=>{const e=["<c:title>"];return t.tx?(e.push("<c:tx>"),e.push(ce(t.tx,"c:rich")),e.push("</c:tx>")):void 0!==t.text&&e.push("<c:tx>","<c:rich>",'<a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',"<a:lstStyle/>",'<a:p><a:pPr><a:defRPr sz="1400" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">','<a:solidFill><a:schemeClr val="tx1"/></a:solidFill>','<a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/>',"</a:defRPr></a:pPr>",`<a:r><a:rPr lang="en-US"/><a:t>${fn(t.text)}</a:t></a:r>`,"</a:p>","</c:rich>","</c:tx>"),e.push(lr(t.layout)),void 0!==t.overlay?e.push(`<c:overlay val="${t.overlay?"1":"0"}"/>`):e.push('<c:overlay val="0"/>'),t.spPr&&e.push(pe(t.spPr)),t.txPr&&e.push(ce(t.txPr,"c:txPr")),e.push("</c:title>"),e.join("")},Br=t=>{switch(t.kind){case"bar":return(t=>{const e=["<c:barChart>",`<c:barDir val="${t.barDir}"/>`,`<c:grouping val="${t.grouping}"/>`,`<c:varyColors val="${t.varyColors?"1":"0"}"/>`];for(const o of t.series)e.push(Lr(o));return e.push(`<c:gapWidth val="${t.gapWidth??150}"/>`),void 0!==t.overlap?e.push(`<c:overlap val="${t.overlap}"/>`):"stacked"!==t.grouping&&"percentStacked"!==t.grouping||e.push('<c:overlap val="100"/>'),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:barChart>"),e.join("")})(t);case"line":return(t=>{const e=["<c:lineChart>",`<c:grouping val="${t.grouping}"/>`,`<c:varyColors val="${t.varyColors?"1":"0"}"/>`];for(const o of t.series)e.push(Dr(o));return void 0!==t.smooth&&e.push(`<c:smooth val="${t.smooth?"1":"0"}"/>`),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:lineChart>"),e.join("")})(t);case"area":return(t=>{const e=["<c:areaChart>",`<c:grouping val="${t.grouping}"/>`,`<c:varyColors val="${t.varyColors?"1":"0"}"/>`];for(const o of t.series)e.push(Lr(o));return e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:areaChart>"),e.join("")})(t);case"pie":return(t=>{const e=["<c:pieChart>",`<c:varyColors val="${t.varyColors??1?"1":"0"}"/>`];for(const o of t.series)e.push(Lr(o));return e.push(`<c:firstSliceAng val="${t.firstSliceAng??0}"/>`),e.push("</c:pieChart>"),e.join("")})(t);case"doughnut":return(t=>{const e=["<c:doughnutChart>",`<c:varyColors val="${t.varyColors??1?"1":"0"}"/>`];for(const o of t.series)e.push(Lr(o));return e.push(`<c:firstSliceAng val="${t.firstSliceAng??0}"/>`),e.push(`<c:holeSize val="${t.holeSize??50}"/>`),e.push("</c:doughnutChart>"),e.join("")})(t);case"scatter":return(t=>{const e=["<c:scatterChart>",`<c:scatterStyle val="${t.scatterStyle}"/>`,`<c:varyColors val="${t.varyColors?"1":"0"}"/>`];for(const o of t.series)e.push(Ar(o));return e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:scatterChart>"),e.join("")})(t);case"radar":return(t=>{const e=["<c:radarChart>",`<c:radarStyle val="${t.radarStyle}"/>`,`<c:varyColors val="${t.varyColors?"1":"0"}"/>`];for(const o of t.series)e.push(Lr(o));return e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:radarChart>"),e.join("")})(t);case"bubble":return(t=>{const e=["<c:bubbleChart>"];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Er(o));return void 0!==t.bubble3D&&e.push(`<c:bubble3D val="${t.bubble3D?"1":"0"}"/>`),void 0!==t.bubbleScale&&e.push(`<c:bubbleScale val="${t.bubbleScale}"/>`),void 0!==t.showNegBubbles&&e.push(`<c:showNegBubbles val="${t.showNegBubbles?"1":"0"}"/>`),void 0!==t.sizeRepresents&&e.push(`<c:sizeRepresents val="${t.sizeRepresents}"/>`),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push("</c:bubbleChart>"),e.join("")})(t);case"stock":return Or(t);case"surface":return(t=>{const e=["<c:surfaceChart>"];void 0!==t.wireframe&&e.push(`<c:wireframe val="${t.wireframe?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));return e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push(`<c:axId val="${t.axIds[2]}"/>`),e.push("</c:surfaceChart>"),e.join("")})(t);case"ofPie":return(t=>{const e=["<c:ofPieChart>",`<c:ofPieType val="${t.ofPieType}"/>`];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));if(void 0!==t.gapWidth&&e.push(`<c:gapWidth val="${t.gapWidth}"/>`),void 0!==t.splitType&&e.push(`<c:splitType val="${t.splitType}"/>`),void 0!==t.splitPos&&e.push(`<c:splitPos val="${t.splitPos}"/>`),void 0!==t.custSplit){e.push("<c:custSplit>");for(const o of t.custSplit)e.push(`<c:secondaryPt idx="${o}"/>`);e.push("</c:custSplit>")}return void 0!==t.secondPieSize&&e.push(`<c:secondPieSize val="${t.secondPieSize}"/>`),e.push("</c:ofPieChart>"),e.join("")})(t);case"bar3D":return(t=>{const e=["<c:bar3DChart>",`<c:barDir val="${t.barDir}"/>`,`<c:grouping val="${t.grouping}"/>`];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));return void 0!==t.gapWidth&&e.push(`<c:gapWidth val="${t.gapWidth}"/>`),void 0!==t.gapDepth&&e.push(`<c:gapDepth val="${t.gapDepth}"/>`),void 0!==t.shape&&e.push(`<c:shape val="${t.shape}"/>`),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push(`<c:axId val="${t.axIds[2]}"/>`),e.push("</c:bar3DChart>"),e.join("")})(t);case"line3D":return(t=>{const e=["<c:line3DChart>",`<c:grouping val="${t.grouping}"/>`];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Dr(o));return void 0!==t.gapDepth&&e.push(`<c:gapDepth val="${t.gapDepth}"/>`),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push(`<c:axId val="${t.axIds[2]}"/>`),e.push("</c:line3DChart>"),e.join("")})(t);case"pie3D":return(t=>{const e=["<c:pie3DChart>"];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));return e.push("</c:pie3DChart>"),e.join("")})(t);case"area3D":return(t=>{const e=["<c:area3DChart>",`<c:grouping val="${t.grouping}"/>`];void 0!==t.varyColors&&e.push(`<c:varyColors val="${t.varyColors?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));return void 0!==t.gapDepth&&e.push(`<c:gapDepth val="${t.gapDepth}"/>`),e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push(`<c:axId val="${t.axIds[2]}"/>`),e.push("</c:area3DChart>"),e.join("")})(t);case"surface3D":return(t=>{const e=["<c:surface3DChart>"];void 0!==t.wireframe&&e.push(`<c:wireframe val="${t.wireframe?"1":"0"}"/>`);for(const o of t.series)e.push(Lr(o));return e.push(`<c:axId val="${t.axIds[0]}"/>`),e.push(`<c:axId val="${t.axIds[1]}"/>`),e.push(`<c:axId val="${t.axIds[2]}"/>`),e.push("</c:surface3DChart>"),e.join("")})(t)}},Wr=t=>{const e=t.chart;if(!("axIds"in e))return[];const o=e.axIds;if(!o||o.length<2)return[];const s="scatter"===e.kind||"bubble"===e.kind,n=(s?t.xValAx:void 0)??t.catAx??{axId:o[0],crossAx:o[1],position:"b"},r=t.valAx??{axId:o[1],crossAx:o[0],position:"l"},i=[];return i.push(zr(s?"valAx":"catAx",n)),i.push(zr("valAx",r)),i};function Ur(t){const e=(0,d.n)(t);if(e.name===me)return(0,c.i)(e,As)?.attrs[`{${c.lt}}id`]}function Hr(t,e={}){return(new TextEncoder).encode(function(t,e={}){const o=[hn,`<c:chartSpace xmlns:c="${c.T}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="${c.lt}">`,'<c:date1904 val="0"/>','<c:lang val="en-US"/>','<c:roundedCorners val="0"/>'];void 0!==t.style&&o.push(`<c:style val="${t.style}"/>`);o.push("<c:chart>"),void 0!==t.title&&o.push(Vr(t.title));o.push(`<c:autoTitleDeleted val="${void 0===t.title?"1":"0"}"/>`),t.view3D&&o.push((t=>{const e=["<c:view3D>"];return void 0!==t.rotX&&e.push(`<c:rotX val="${t.rotX}"/>`),void 0!==t.hPercent&&e.push(`<c:hPercent val="${t.hPercent}"/>`),void 0!==t.rotY&&e.push(`<c:rotY val="${t.rotY}"/>`),void 0!==t.depthPercent&&e.push(`<c:depthPercent val="${t.depthPercent}"/>`),void 0!==t.rAngAx&&e.push(`<c:rAngAx val="${t.rAngAx?"1":"0"}"/>`),void 0!==t.perspective&&e.push(`<c:perspective val="${t.perspective}"/>`),e.push("</c:view3D>"),e.join("")})(t.view3D));t.floor&&o.push(dr("floor",t.floor));t.sideWall&&o.push(dr("sideWall",t.sideWall));t.backWall&&o.push(dr("backWall",t.backWall));o.push((t=>{const e=["<c:plotArea>",lr(t.layout)];e.push(Br(t.chart));const o=Wr(t);for(const t of o)e.push(t);return t.dateAx&&e.push(zr("dateAx",t.dateAx)),t.serAx&&e.push(zr("serAx",t.serAx)),t.spPr&&e.push(pe(t.spPr)),e.push("</c:plotArea>"),e.join("")})(t.plotArea)),t.legend&&o.push((t=>{const e=["<c:legend>",`<c:legendPos val="${t.position}"/>`];return t.layout&&e.push(lr(t.layout)),void 0!==t.overlay&&e.push(`<c:overlay val="${t.overlay?"1":"0"}"/>`),t.spPr&&e.push(pe(t.spPr)),t.txPr&&e.push(ce(t.txPr,"c:txPr")),e.push("</c:legend>"),e.join("")})(t.legend));o.push(`<c:plotVisOnly val="${!1===t.plotVisOnly?"0":"1"}"/>`),o.push(`<c:dispBlanksAs val="${t.dispBlanksAs??"gap"}"/>`),o.push("</c:chart>"),t.spPr&&o.push(pe(t.spPr));t.txPr&&o.push(ce(t.txPr,"c:txPr"));void 0!==e.userShapesRId&&o.push(`<c:userShapes r:id="${e.userShapesRId}"/>`);return o.push("</c:chartSpace>"),o.join("")}(t,e))}const Xr=t=>`{${c.I}}${t}`,qr=Xr("chartSpace"),_r=Xr("chartData"),Gr=Xr("externalData"),Zr=Xr("data"),Yr=Xr("numDim"),Kr=Xr("strDim"),Qr=Xr("f"),Jr=Xr("formatCode"),ti=Xr("lvl"),ei=Xr("pt"),oi=Xr("chart"),si=Xr("title"),ni=Xr("tx"),ri=Xr("txData"),ii=Xr("v"),ai=Xr("plotArea"),li=Xr("plotAreaRegion"),ci=Xr("series"),di=Xr("dataId"),ui=Xr("layoutPr"),hi=Xr("subtotals"),fi=Xr("subtotal"),pi=Xr("binning"),mi=Xr("parentLabelLayout"),vi=Xr("visibility"),gi=Xr("statistics"),xi=Xr("binCount"),$i=Xr("binSize"),wi=Xr("geography"),bi=Xr("regionLabelLayout"),yi=Xr("axis"),ki=Xr("axisId"),Ci=Xr("valScaling"),Si=Xr("catScaling"),Ii=Xr("majorGridlines"),Ti=Xr("dataLabels"),Pi=Xr("visibility"),Fi=Xr("legend"),Ri=Xr("plotVisOnly"),Ni=Xr("dispBlanksAs"),Li=Xr("spPr"),Di=Xr("txPr"),Ai=Xr("plotSurface"),Ei=t=>{const e=(0,c.i)(t,Li);return e?fe(e):void 0},Oi=t=>{const e=(0,c.i)(t,Di);return e?le(e):void 0},ji=u.r,Mi=u.n,zi=t=>t?.attrs.val,Vi=(t,e)=>{const o=t.attrs[e];if(void 0===o)return;const s=Number.parseInt(o,10);return Number.isInteger(s)?s:void 0},Bi=(t,e)=>{const o=t.attrs[e];if(void 0===o)return;const s=Number.parseFloat(o);return Number.isFinite(s)?s:void 0},Wi=(t,e)=>{const o=t.attrs[e];if(void 0!==o)return"1"===o||"true"===o||"0"!==o&&"false"!==o&&void 0};function Ui(t){const e="string"==typeof t?t.slice(0,4096):(new TextDecoder).decode(t.subarray(0,4096));return/<\s*[A-Za-z][\w-]*:?chartSpace\b[^>]*chartex/.test(e)}const Hi=t=>{const e=t.name===Yr,o=t.attrs.type??(e?"val":"cat"),s=(0,c.i)(t,Qr),n=(0,c.i)(t,Jr),r=s?.attrs.dir,i="col"===r||"row"===r?r:void 0,a=(0,c.i)(t,ti),{ptCount:l,pts:d}=(t=>{if(!t)return{pts:[]};const e=Vi(t,"ptCount"),o=[];for(const e of(0,c.a)(t,ei)){const t=Vi(e,"idx");void 0!==t&&o.push({idx:t,v:e.text??""})}return{...void 0!==e?{ptCount:e}:{},pts:o}})(a),u={type:o,...s?{f:s.text??""}:{},...i?{dir:i}:{},...void 0!==l?{ptCount:l}:{},pts:d,...n?.text?{formatCode:n.text}:{}};return e?{kind:"num",...u}:{kind:"str",...u}},Xi=t=>{const e=Vi(t,"id")??0,o=[];for(const e of t.children)"string"!=typeof e&&(e.name!==Yr&&e.name!==Kr||o.push(Hi(e)));return{id:e,dims:o}},qi=t=>{const e=[];for(const o of(0,c.a)(t,Zr))e.push(Xi(o));const o=(0,c.i)(t,Gr);let s;if(o){const t=o.attrs[`{${c.lt}}id`];if(void 0!==t){const e=o.attrs.autoUpdate,n="1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0;s={rId:t,...void 0!==n?{autoUpdate:n}:{}}}}return{...s?{externalData:s}:{},data:e}},_i=t=>{const e=t.attrs.pos,o="t"===e||"b"===e||"l"===e||"r"===e?e:void 0,s=t.attrs.align,n="ctr"===s||"l"===s||"r"===s?s:void 0,r=Wi(t,"overlay");let i,a;const l=(0,c.i)(t,ni);if(l){const t=(0,c.i)(l,ri);if(t){const e=(0,c.i)(t,Qr),o=(0,c.i)(t,ii);e?.text&&(a=e.text),void 0!==o?.text&&(i=o.text)}else{const t=l.children.find(t=>"string"!=typeof t&&t.name===Xr("rich"));if(t){const e=[],o=t=>{"{http://schemas.openxmlformats.org/drawingml/2006/main}t"===t.name&&t.text&&e.push(t.text);for(const e of t.children)"string"!=typeof e&&o(e)};o(t),e.length>0&&(i=e.join(""))}}}const d=Ei(t),u=Oi(t);return{...o?{pos:o}:{},...n?{align:n}:{},...void 0!==r?{overlay:r}:{},...void 0!==i?{text:i}:{},...void 0!==a?{txDataRef:a}:{},...d?{spPr:d}:{},...u?{txPr:u}:{}}},Gi=t=>{const e=t.attrs.layoutId;if(!e)throw new s.s("parseChartExXml: <cx:series> missing layoutId");const o=e,n=Wi(t,"hidden"),r=Vi(t,"ownerIdx"),i=Vi(t,"formatIdx"),a=[];for(const e of(0,c.a)(t,ki)){const t=Vi(e,"val");void 0!==t&&a.push(t)}const l=(0,c.i)(t,di),d=l?Vi(l,"val"):void 0,u=(0,c.i)(t,ui),h=u?(t=>{const e=(0,c.i)(t,hi);if(e){const t=[];for(const o of(0,c.a)(e,fi)){const e=Vi(o,"idx");void 0!==e&&t.push(e)}return{kind:"waterfall",subtotalIdx:t}}const o=(0,c.i)(t,pi);if(o){const t=o.attrs.intervalClosed,e="r"===t||"l"===t?t:void 0,s=(0,c.i)(o,xi),n=(0,c.i)(o,$i),r=s?Vi(s,"val"):void 0,i=n?Bi(n,"val"):void 0;return{kind:"binning",...void 0!==r?{binCount:r}:{},...void 0!==i?{binSize:i}:{},...e?{intervalClosed:e}:{},...void 0!==Bi(o,"underflow")?{underflow:Bi(o,"underflow")}:{},...void 0!==Bi(o,"overflow")?{overflow:Bi(o,"overflow")}:{}}}const s=(0,c.i)(t,mi);if(s){const t=zi(s);return{kind:"parentLabel",layout:"banner"===t||"none"===t?t:"overlapping"}}const n=(0,c.i)(t,vi),r=(0,c.i)(t,gi);if(n||r){const t=n?Wi(n,"meanLine"):void 0,e=n?Wi(n,"meanMarker"):void 0,o=n?Wi(n,"nonoutliers"):void 0,s=n?Wi(n,"outliers"):void 0,i=r?.attrs.quartileMethod,a="exclusive"===i||"inclusive"===i?i:void 0;return{kind:"visibility",...void 0!==t?{meanLine:t}:{},...void 0!==e?{meanMarker:e}:{},...void 0!==o?{nonoutliers:o}:{},...void 0!==s?{outliers:s}:{},...a?{quartileMethod:a}:{}}}const i=(0,c.i)(t,wi);if(i){const t=i.attrs.projectionType,e="automatic"===t||"mercator"===t||"miller"===t||"albers"===t?t:void 0,o=(0,c.i)(i,bi),s=o?zi(o):void 0,n="none"===s||"bestFit"===s||"showAll"===s?s:void 0;return{kind:"region",...void 0!==i.attrs.cultureLanguage?{cultureLanguage:i.attrs.cultureLanguage}:{},...void 0!==i.attrs.cultureRegion?{cultureRegion:i.attrs.cultureRegion}:{},...e?{projectionType:e}:{},...n?{regionLabelLayout:n}:{}}}})(u):void 0;let f;const p=(0,c.i)(t,ni);if(p){const t=(0,c.i)(p,ri);if(t){const e=(0,c.i)(t,Qr),o=(0,c.i)(t,ii),s=e?.text,n=o?.text;void 0===s&&void 0===n||(f={...void 0!==s?{f:s}:{},...void 0!==n?{v:n}:{}})}}const m=(0,c.i)(t,Ti),v=m?(t=>{const e=t.attrs.pos,o=e&&["ctr","b","l","r","t","inEnd","outEnd","inBase"].includes(e)?e:void 0,s=(0,c.i)(t,Pi),n={...o?{pos:o}:{}};if(s){const t=Wi(s,"seriesName"),e=Wi(s,"categoryName"),o=Wi(s,"value");void 0===t&&void 0===e&&void 0===o||(n.visibility={...void 0!==t?{seriesName:t}:{},...void 0!==e?{categoryName:e}:{},...void 0!==o?{value:o}:{}})}return n})(m):void 0,g=Ei(t),x=Oi(t);return{layoutId:o,...void 0!==n?{hidden:n}:{},...void 0!==r?{ownerIdx:r}:{},...void 0!==i?{formatIdx:i}:{},...a.length>0?{axisIds:a}:{},...f?{tx:f}:{},...v?{dataLabels:v}:{},...void 0!==d?{dataId:d}:{},...h?{layoutPr:h}:{},...g?{spPr:g}:{},...x?{txPr:x}:{}}},Zi=t=>{const e=Vi(t,"id")??0,o=Wi(t,"hidden"),s=(0,c.i)(t,Ci);let n;if(s){const t=Bi(s,"min"),e=Bi(s,"max");void 0===t&&void 0===e||(n={...void 0!==t?{min:t}:{},...void 0!==e?{max:e}:{}})}const r=(0,c.i)(t,Si),i=r?Bi(r,"gapWidth"):void 0,a=void 0!==(0,c.i)(t,Ii)||void 0,l=(0,c.i)(t,si),d=l?_i(l):void 0,u=Ei(t),h=Oi(t);return{id:e,...void 0!==o?{hidden:o}:{},...n?{valScaling:n}:{},...void 0!==i?{catScalingGapWidth:i}:{},...void 0!==a?{majorGridlines:a}:{},...d?{title:d}:{},...u?{spPr:u}:{},...h?{txPr:h}:{}}},Yi=t=>{const e=(0,c.i)(t,si),o=e?_i(e):void 0,n=(0,c.i)(t,ai);if(!n)throw new s.s("parseChartExXml: <cx:chart> missing <cx:plotArea>");const r=(0,c.i)(n,li);if(!r)throw new s.s("parseChartExXml: <cx:plotArea> missing <cx:plotAreaRegion>");const i=[];for(const t of(0,c.a)(r,ci))i.push(Gi(t));const a=[];for(const t of(0,c.a)(n,yi))a.push(Zi(t));for(const t of(0,c.a)(r,yi))a.push(Zi(t));const l=(0,c.i)(r,Ai),d=l?fe(l):void 0,u=(0,c.i)(t,Fi),h=u?(t=>{const e=t.attrs.pos,o="t"===e||"b"===e||"l"===e||"r"===e||"tr"===e?e:void 0,s=t.attrs.align,n="ctr"===s||"l"===s||"r"===s?s:void 0,r=Wi(t,"overlay"),i=Ei(t),a=Oi(t);return{...o?{pos:o}:{},...n?{align:n}:{},...void 0!==r?{overlay:r}:{},...i?{spPr:i}:{},...a?{txPr:a}:{}}})(u):void 0,f=(0,c.i)(t,Ri),p=f?Wi(f,"val"):void 0,m=zi((0,c.i)(t,Ni)),v="gap"===m||"zero"===m||"span"===m?m:void 0;return{plotArea:{series:i,axes:a,...d?{spPr:d}:{}},...o?{title:o}:{},...h?{legend:h}:{},...void 0!==p?{plotVisOnly:p}:{},...v?{dispBlanksAs:v}:{}}};function Ki(t){const e=(0,d.n)(t);if(e.name!==qr)throw new s.s(`parseChartExXml: root is "${e.name}", expected cx:chartSpace`);const o=(0,c.i)(e,_r);if(!o)throw new s.s("parseChartExXml: <cx:chartSpace> missing <cx:chartData>");const n=(0,c.i)(e,oi);if(!n)throw new s.s("parseChartExXml: <cx:chartSpace> missing <cx:chart>");const r=Ei(e),i=Oi(e);return{kind:"cxChartSpace",chartData:qi(o),chart:Yi(n),...r?{spPr:r}:{},...i?{txPr:i}:{}}}const Qi=t=>`<cx:pt idx="${t.idx}">${ji(t.v)}</cx:pt>`,Ji=t=>{const e="num"===t.kind?"cx:numDim":"cx:strDim",o=[`<${e} type="${Mi(t.type)}">`];if(void 0!==t.f){const e=t.dir?` dir="${t.dir}"`:"";o.push(`<cx:f${e}>${ji(t.f)}</cx:f>`)}void 0!==t.formatCode&&o.push(`<cx:formatCode>${ji(t.formatCode)}</cx:formatCode>`);const s=t.ptCount??t.pts.length;if(t.pts.length>0||void 0!==t.ptCount){o.push(`<cx:lvl ptCount="${s}">`);for(const e of t.pts)o.push(Qi(e));o.push("</cx:lvl>")}return o.push(`</${e}>`),o.join("")},ta=t=>{const e=[`<cx:data id="${t.id}">`];for(const o of t.dims)e.push(Ji(o));return e.push("</cx:data>"),e.join("")},ea=t=>{const e=["<cx:chartData>"];if(t.externalData){const o=void 0!==t.externalData.autoUpdate?` cx:autoUpdate="${t.externalData.autoUpdate?"1":"0"}"`:"";e.push(`<cx:externalData r:id="${Mi(t.externalData.rId)}"${o}/>`)}for(const o of t.data)e.push(ta(o));return e.push("</cx:chartData>"),e.join("")},oa=(t,e="cx:title")=>{const o=[];t.pos&&o.push(`pos="${t.pos}"`),t.align&&o.push(`align="${t.align}"`),void 0!==t.overlay&&o.push(`overlay="${t.overlay?"1":"0"}"`);const s=`<${e}${o.length>0?` ${o.join(" ")}`:""}`,n=[];if(void 0!==t.text||void 0!==t.txDataRef){const e=void 0!==t.txDataRef?`<cx:f>${ji(t.txDataRef)}</cx:f>`:"",o=void 0!==t.text?`<cx:v>${ji(t.text)}</cx:v>`:"";n.push(`<cx:tx><cx:txData>${e}${o}</cx:txData></cx:tx>`)}return t.spPr&&n.push(pe(t.spPr,"cx:spPr")),t.txPr&&n.push(ce(t.txPr,"cx:txPr")),0===n.length?`${s}/>`:`${s}>${n.join("")}</${e}>`},sa=t=>{const e=[`layoutId="${t.layoutId}"`];void 0!==t.hidden&&e.push(`hidden="${t.hidden?"1":"0"}"`),void 0!==t.ownerIdx&&e.push(`ownerIdx="${t.ownerIdx}"`),void 0!==t.formatIdx&&e.push(`formatIdx="${t.formatIdx}"`);const o=[`<cx:series ${e.join(" ")}>`];if(t.tx){const e=void 0!==t.tx.f?`<cx:f>${ji(t.tx.f)}</cx:f>`:"",s=void 0!==t.tx.v?`<cx:v>${ji(t.tx.v)}</cx:v>`:"";o.push(`<cx:tx><cx:txData>${e}${s}</cx:txData></cx:tx>`)}if(t.spPr&&o.push(pe(t.spPr,"cx:spPr")),t.txPr&&o.push(ce(t.txPr,"cx:txPr")),t.dataLabels&&o.push((t=>{const e=[];t.pos&&e.push(`pos="${t.pos}"`);let o="";if(t.visibility){const e=[];void 0!==t.visibility.seriesName&&e.push(`seriesName="${t.visibility.seriesName?"1":"0"}"`),void 0!==t.visibility.categoryName&&e.push(`categoryName="${t.visibility.categoryName?"1":"0"}"`),void 0!==t.visibility.value&&e.push(`value="${t.visibility.value?"1":"0"}"`),o=`<cx:visibility${e.length>0?` ${e.join(" ")}`:""}/>`}const s="<cx:dataLabels"+(e.length>0?` ${e.join(" ")}`:"");return""===o?`${s}/>`:`${s}>${o}</cx:dataLabels>`})(t.dataLabels)),void 0!==t.dataId&&o.push(`<cx:dataId val="${t.dataId}"/>`),t.layoutPr&&o.push((t=>{switch(t.kind){case"waterfall":{if(0===t.subtotalIdx.length)return"<cx:layoutPr><cx:subtotals/></cx:layoutPr>";const e=["<cx:layoutPr><cx:subtotals>"];for(const o of t.subtotalIdx)e.push(`<cx:subtotal idx="${o}"/>`);return e.push("</cx:subtotals></cx:layoutPr>"),e.join("")}case"binning":{const e=[];void 0!==t.intervalClosed&&e.push(`intervalClosed="${t.intervalClosed}"`),void 0!==t.underflow&&e.push(`underflow="${t.underflow}"`),void 0!==t.overflow&&e.push(`overflow="${t.overflow}"`);const o=void 0!==t.binSize?`<cx:binSize val="${t.binSize}"/>`:void 0!==t.binCount?`<cx:binCount val="${t.binCount}"/>`:"",s="<cx:binning"+(e.length>0?` ${e.join(" ")}`:"");return`<cx:layoutPr>${o?`${s}>${o}</cx:binning>`:`${s}/>`}</cx:layoutPr>`}case"parentLabel":return`<cx:layoutPr><cx:parentLabelLayout val="${t.layout}"/></cx:layoutPr>`;case"visibility":{const e=[];return void 0!==t.meanLine&&e.push(`meanLine="${t.meanLine?"1":"0"}"`),void 0!==t.meanMarker&&e.push(`meanMarker="${t.meanMarker?"1":"0"}"`),void 0!==t.nonoutliers&&e.push(`nonoutliers="${t.nonoutliers?"1":"0"}"`),void 0!==t.outliers&&e.push(`outliers="${t.outliers?"1":"0"}"`),`<cx:layoutPr><cx:visibility${e.length>0?` ${e.join(" ")}`:""}/>${void 0!==t.quartileMethod?`<cx:statistics quartileMethod="${t.quartileMethod}"/>`:""}</cx:layoutPr>`}case"region":{const e=[];void 0!==t.cultureLanguage&&e.push(`cultureLanguage="${Mi(t.cultureLanguage)}"`),void 0!==t.cultureRegion&&e.push(`cultureRegion="${Mi(t.cultureRegion)}"`),void 0!==t.projectionType&&e.push(`projectionType="${t.projectionType}"`);const o=void 0!==t.regionLabelLayout?`<cx:regionLabelLayout val="${t.regionLabelLayout}"/>`:"";return`<cx:layoutPr><cx:geography${e.length>0?` ${e.join(" ")}`:""}>${o}</cx:geography></cx:layoutPr>`}}})(t.layoutPr)),t.axisIds)for(const e of t.axisIds)o.push(`<cx:axisId val="${e}"/>`);return o.push("</cx:series>"),o.join("")},na=t=>{const e=[`id="${t.id}"`];void 0!==t.hidden&&e.push(`hidden="${t.hidden?"1":"0"}"`);const o=[`<cx:axis ${e.join(" ")}>`];let s=!1;if(t.valScaling){const e=[];void 0!==t.valScaling.min&&e.push(`min="${t.valScaling.min}"`),void 0!==t.valScaling.max&&e.push(`max="${t.valScaling.max}"`),o.push(`<cx:valScaling${e.length>0?` ${e.join(" ")}`:""}/>`),s=!0}return void 0!==t.catScalingGapWidth&&(o.push(`<cx:catScaling gapWidth="${t.catScalingGapWidth}"/>`),s=!0),s||o.push("<cx:valScaling/>"),t.majorGridlines&&o.push("<cx:majorGridlines/>"),t.title&&o.push(oa(t.title)),t.spPr&&o.push(pe(t.spPr,"cx:spPr")),t.txPr&&o.push(ce(t.txPr,"cx:txPr")),o.push("</cx:axis>"),o.join("")},ra=t=>{const e=["<cx:chart>"];t.title&&e.push(oa(t.title)),e.push("<cx:plotArea><cx:plotAreaRegion>"),t.plotArea.spPr&&e.push(pe(t.plotArea.spPr,"cx:plotSurface"));for(const o of t.plotArea.series)e.push(sa(o));e.push("</cx:plotAreaRegion>");for(const o of t.plotArea.axes)e.push(na(o));return e.push("</cx:plotArea>"),t.legend&&e.push((t=>{const e=[];t.pos&&e.push(`pos="${t.pos}"`),t.align&&e.push(`align="${t.align}"`),void 0!==t.overlay&&e.push(`overlay="${t.overlay?"1":"0"}"`);const o="<cx:legend"+(e.length>0?` ${e.join(" ")}`:""),s=[];return t.spPr&&s.push(pe(t.spPr,"cx:spPr")),t.txPr&&s.push(ce(t.txPr,"cx:txPr")),0===s.length?`${o}/>`:`${o}>${s.join("")}</cx:legend>`})(t.legend)),void 0!==t.plotVisOnly&&e.push(`<cx:plotVisOnly val="${t.plotVisOnly?"1":"0"}"/>`),void 0!==t.dispBlanksAs&&e.push(`<cx:dispBlanksAs val="${t.dispBlanksAs}"/>`),e.push("</cx:chart>"),e.join("")};function ia(t){return(new TextEncoder).encode(function(t){const e=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',`<cx:chartSpace xmlns:cx="${c.I}" xmlns:r="${c.lt}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">`,ea(t.chartData),ra(t.chart)];return t.spPr&&e.push(pe(t.spPr,"cx:spPr")),t.txPr&&e.push(ce(t.txPr,"cx:txPr")),e.push("</cx:chartSpace>"),e.join("")}(t))}const aa=t=>`{${c.w}}${t}`,la=aa("userShapes"),ca=aa("relSizeAnchor"),da=aa("absSizeAnchor"),ua=aa("from"),ha=aa("to"),fa=aa("ext"),pa=aa("x"),ma=aa("y"),va=aa("sp"),ga=aa("nvSpPr"),xa=aa("cNvPr"),$a=aa("cNvSpPr"),wa=aa("spPr"),ba=aa("txBody"),ya=aa("pic"),ka=aa("nvPicPr"),Ca=aa("blipFill"),Sa=(Ia="blip",`{${c.H}}${Ia}`);var Ia;const Ta=u.n,Pa=t=>{if(void 0===t)return;const e=Number.parseFloat(t);return Number.isFinite(e)?e:void 0},Fa=t=>({x:Pa((0,c.i)(t,pa)?.text)??0,y:Pa((0,c.i)(t,ma)?.text)??0}),Ra=t=>{const e=Number.parseInt(t.attrs.cx??"0",10),o=Number.parseInt(t.attrs.cy??"0",10);return{cx:Number.isFinite(e)?e:0,cy:Number.isFinite(o)?o:0}},Na=t=>{if(!t)return{id:0};const e=Number.parseInt(t.attrs.id??"0",10),o={id:Number.isFinite(e)?e:0};void 0!==t.attrs.name&&(o.name=t.attrs.name),void 0!==t.attrs.descr&&(o.descr=t.attrs.descr);const s=t.attrs.hidden;return"1"!==s&&"true"!==s||(o.hidden=!0),o},La=t=>{const e=(0,c.i)(t,ga),o=e?(0,c.i)(e,xa):void 0,s=(e?(0,c.i)(e,$a):void 0)?.attrs.txBox,n=Na(o);"1"!==s&&"true"!==s||(n.txBox=!0);const r=(0,c.i)(t,wa);r&&(n.spPr=fe(r));const i=(0,c.i)(t,ba);return i&&(n.txBody=le(i)),n},Da=t=>{const e=(0,c.i)(t,ka),o=e?(0,c.i)(e,xa):void 0,s=Na(o),n=(0,c.i)(t,Ca);if(n){const t=(0,c.i)(n,Sa)?.attrs[`{${c.lt}}embed`];t&&(s.embedRId=t)}const r=(0,c.i)(t,wa);return r&&(s.spPr=fe(r)),s},Aa=t=>{const e=(0,c.i)(t,ua);if(!e)return;const o=Fa(e),s=(t=>{const e=(0,c.i)(t,va);if(e)return{kind:"shape",shape:La(e)};const o=(0,c.i)(t,ya);return o?{kind:"picture",picture:Da(o)}:void 0})(t);if(s){if(t.name===ca){const e=(0,c.i)(t,ha);if(!e)return;return{kind:"relSize",from:o,to:Fa(e),content:s}}if(t.name===da){const e=(0,c.i)(t,fa);if(!e)return;return{kind:"absSize",from:o,ext:Ra(e),content:s}}}};function Ea(t){const e=(0,d.n)(t);if(e.name!==la)throw new s.s(`parseUserShapesXml: root is "${e.name}", expected ${la}`);const o=[];for(const t of e.children){if("string"==typeof t)continue;if(t.name!==ca&&t.name!==da)continue;const e=Aa(t);e&&o.push(e)}return((t=[])=>({shapes:t}))(o)}const Oa=(t,e)=>`<cdr:${t}><cdr:x>${e.x}</cdr:x><cdr:y>${e.y}</cdr:y></cdr:${t}>`,ja=t=>"shape"===t.kind?(t=>{const e=[`id="${t.id}"`,`name="${Ta(t.name??`Shape ${t.id}`)}"`];void 0!==t.descr&&e.push(`descr="${Ta(t.descr)}"`),t.hidden&&e.push('hidden="1"');const o=t.txBox?'<cdr:cNvSpPr txBox="1"/>':"<cdr:cNvSpPr/>",s=t.spPr?pe(t.spPr,"cdr:spPr"):'<cdr:spPr><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></cdr:spPr>',n=t.txBody?ce(t.txBody,"cdr:txBody"):"";return['<cdr:sp macro="" textlink="">',`<cdr:nvSpPr><cdr:cNvPr ${e.join(" ")}/>${o}</cdr:nvSpPr>`,s,n,"</cdr:sp>"].join("")})(t.shape):(t=>{const e=[`id="${t.id}"`,`name="${Ta(t.name??`Picture ${t.id}`)}"`];void 0!==t.descr&&e.push(`descr="${Ta(t.descr)}"`);const o=t.embedRId?`<a:blip xmlns:r="${c.lt}" r:embed="${Ta(t.embedRId)}"/>`:"<a:blip/>",s=t.spPr?pe(t.spPr,"cdr:spPr"):'<cdr:spPr><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></cdr:spPr>';return["<cdr:pic>",`<cdr:nvPicPr><cdr:cNvPr ${e.join(" ")}/><cdr:cNvPicPr/></cdr:nvPicPr>`,`<cdr:blipFill>${o}<a:stretch><a:fillRect/></a:stretch></cdr:blipFill>`,s,"</cdr:pic>"].join("")})(t.picture),Ma=t=>"relSize"===t.kind?["<cdr:relSizeAnchor>",Oa("from",t.from),Oa("to",t.to),ja(t.content),"</cdr:relSizeAnchor>"].join(""):["<cdr:absSizeAnchor>",Oa("from",t.from),`<cdr:ext cx="${t.ext.cx}" cy="${t.ext.cy}"/>`,ja(t.content),"</cdr:absSizeAnchor>"].join("");function za(t){return(new TextEncoder).encode(function(t){const e=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',`<cdr:userShapes xmlns:cdr="${c.w}" xmlns:a="${c.H}" xmlns:r="${c.lt}">`];for(const o of t.shapes)e.push(Ma(o));return e.push("</cdr:userShapes>"),e.join("")}(t))}var Va=class extends s.r{name="TokenizerError"};const Ba="FUNC",Wa="OPERATOR-PREFIX",Ua="OPERATOR-INFIX",Ha=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[Ee][+-]?\d+)?$/;function Xa(t){let e;return e=t.startsWith('"')?"TEXT":t.startsWith("#")?"ERROR":"TRUE"===t||"FALSE"===t?"LOGICAL":Ha.test(t)?"NUMBER":"RANGE",{value:t,type:"OPERAND",subtype:e}}function qa(t,e=!1){const o=t[t.length-1];if("{"!==o&&"}"!==o&&"("!==o&&")"!==o)throw new Va(`makeSubexp: value must end with { } ( ); got "${t}"`);let s;return s=e?Ba:"{"===t||"}"===t?"ARRAY":"("===t||")"===t?"PAREN":Ba,{value:t,type:s,subtype:")"===t||"}"===t?"CLOSE":"OPEN"}}function _a(t){return{value:t,type:"SEP",subtype:","===t?"ARG":"ROW"}}const Ga=/^[1-9](?:\.[0-9]+)?[Ee]$/,Za=/^[ \n]+/,Ya=/^"(?:[^"]*"")*[^"]*"(?!")/,Ka=/^'(?:[^']*'')*[^']*'(?!')/,Qa=new Set(",;}) +-*/^&=><%".split(""));function Ja(t){t.token.length>0&&(t.items.push(Xa(t.token.join(""))),t.token.length=0)}function tl(t,e=""){if(0===t.token.length)return;const o=t.token[t.token.length-1];if(-1===e.indexOf(o))throw new Va(`Unexpected character at position ${t.offset} in '${t.formula}'`)}function el(t){tl(t,":");const e=t.formula[t.offset],o='"'===e?Ya:Ka,s=t.formula.slice(t.offset),n=o.exec(s);if(null===n)throw new Va(`Reached end of formula while parsing ${'"'===e?"string":"link"} in ${t.formula}`);const r=n[0];return'"'===e?t.items.push(Xa(r)):t.token.push(r),r.length}function ol(t){const e=t.formula.slice(t.offset);let o=0;for(let s=0;s<e.length;s++){const n=e[s];if("["===n)o+=1;else if("]"===n&&(o-=1,0===o)){const o=s+1;return t.token.push(e.slice(0,o)),o}}throw new Va(`Encountered unmatched '[' in ${t.formula}`)}function sl(t){tl(t,"!");const e=t.formula.slice(t.offset);for(const o of r.t)if(e.startsWith(o))return t.items.push(Xa(t.token.join("")+o)),t.token.length=0,o.length;throw new Va(`Invalid error code at position ${t.offset} in '${t.formula}'`)}function nl(t){const e=t.formula[t.offset];t.items.push({value:e,type:"WHITE-SPACE",subtype:""});const o=t.formula.slice(t.offset),s=Za.exec(o);return s?s[0].length:1}function rl(t){const e=t.formula.slice(t.offset,t.offset+2);if(">="===e||"<="===e||"<>"===e)return t.items.push({value:e,type:Ua,subtype:""}),2;const o=t.formula[t.offset];let s;if("%"===o)s={value:"%",type:"OPERATOR-POSTFIX",subtype:""};else if(-1!=="*/^&=><".indexOf(o))s={value:o,type:Ua,subtype:""};else if(0===t.items.length)s={value:o,type:Wa,subtype:""};else{let e=null;for(let o=t.items.length-1;o>=0;o--){const s=t.items[o];if("WHITE-SPACE"!==s.type){e=s;break}}s={value:o,type:null===e||"CLOSE"!==e.subtype&&"OPERATOR-POSTFIX"!==e.type&&"OPERAND"!==e.type?Wa:Ua,subtype:""}}return t.items.push(s),1}function il(t){let e;if("{"===t.formula[t.offset])tl(t),e=qa("{");else if(t.token.length>0){const o=`${t.token.join("")}(`;t.token.length=0,e=qa(o)}else e=qa("(");return t.items.push(e),t.tokenStack.push(e),1}function al(t){const e=t.tokenStack.pop();if(!e)throw new Va(`Unmatched closer in '${t.formula}'`);const o=function(t){if("FUNC"!==t.type&&"ARRAY"!==t.type&&"PAREN"!==t.type)throw new Va(`getCloser: expected FUNC/ARRAY/PAREN OPEN; got ${t.type}`);if("OPEN"!==t.subtype)throw new Va(`getCloser: expected OPEN subtype; got ${t.subtype}`);return qa("ARRAY"===t.type?"}":")",t.type===Ba)}(e);if(o.value!==t.formula[t.offset])throw new Va(`Mismatched ( and { pair in '${t.formula}'`);return t.items.push(o),1}function ll(t){let e;if(";"===t.formula[t.offset])e=_a(";");else{const o=t.tokenStack[t.tokenStack.length-1];e=o&&"PAREN"!==o.type?_a(","):{value:",",type:Ua,subtype:""}}return t.items.push(e),1}function cl(t){const e=t.formula[t.offset];return!("+"!==e&&"-"!==e||!(t.token.length>=1)||!Ga.test(t.token.join("")))&&(t.token.push(e),t.offset+=1,!0)}var dl=class extends s.r{name="TranslatorError"};const ul=/^(\$?[1-9][0-9]{0,6}):(\$?[1-9][0-9]{0,6})$/,hl=/^(\$?[A-Za-z]{1,3}):(\$?[A-Za-z]{1,3})$/,fl=/^(\$?[A-Za-z]{1,3})(\$?[1-9][0-9]{0,6})$/;function pl(t,e){return((t-1)%e+e)%e+1}function ml(t,e){if(!Number.isInteger(t))throw new dl(`Cannot translate formula: ${e} delta ${t} is not a whole number`)}function vl(t,e){return t.startsWith("$")?t:(ml(e,"row"),String(pl(Number.parseInt(t,10)+e,n.n)))}function gl(t,e){return t.startsWith("$")?t:(ml(e,"column"),(0,n.a)(pl((0,n.i)(t)+e,16384)))}const xl=(0,n.a)(16384);function $l(t){return Number.parseInt(t.replace("$",""),10)<=n.n}function wl(t){const e=t.replace("$","").toUpperCase();return e.length<xl.length||e<=xl}function bl(t,e,o){const[s,n]=function(t){const e=t.lastIndexOf("!");return-1===e?["",t]:[`${t.slice(0,e+1)}`,t.slice(e+1)]}(t),r=ul.exec(n);if(null!==r)return $l(r[1])&&$l(r[2])?`${s}${vl(r[1],e)}:${vl(r[2],e)}`:t;const i=hl.exec(n);if(null!==i)return wl(i[1])&&wl(i[2])?`${s}${gl(i[1],o)}:${gl(i[2],o)}`:t;if(-1!==n.indexOf(":"))return s+n.split(":").map(t=>bl(t,e,o)).join(":");const a=fl.exec(n);return null===a?t:wl(a[1])&&$l(a[2])?`${s}${gl(a[1],o)}${vl(a[2],e)}`:t}function yl(t,e,o={}){const{col:s,row:r}=(0,n.s)(e);let i=o.rowDelta??0,a=o.colDelta??0;if(void 0!==o.dest){const{col:t,row:e}=(0,n.s)(o.dest);i=e-r,a=t-s}const l=function(t){const e=function(t){return{formula:t,items:[],tokenStack:[],offset:0,token:[]}}(t);if(0===t.length)return e.items;if("="!==t[0])return e.items.push({value:t,type:"LITERAL",subtype:""}),e.items;e.offset=1;const o=t.length;for(;e.offset<o;){if(cl(e))continue;const o=t[e.offset];Qa.has(o)&&Ja(e);let s=null;switch(o){case'"':case"'":s=el(e);break;case"[":s=ol(e);break;case"#":s=sl(e);break;case" ":case"\n":s=nl(e);break;case"+":case"-":case"*":case"/":case"^":case"&":case"=":case">":case"<":case"%":s=rl(e);break;case"{":case"(":s=il(e);break;case")":case"}":s=al(e);break;case";":case",":s=ll(e);break;default:e.token.push(o),s=1}e.offset+=s}return Ja(e),e.items}(t);if(0===l.length)return"";const c=l[0];if("LITERAL"===c.type)return c.value;let d="=";for(const t of l)"OPERAND"===t.type&&"RANGE"===t.subtype?d+=bl(t.value,i,a):d+=t.value;return d}const kl=6e4,Cl=36e5,Sl=864e5,Il=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?)?(Z|[+-]\d{2}:\d{2})?$/,Tl=/^(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})?$/,Pl=/^P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/,Fl=(t,e)=>void 0===t?e:Number.parseInt(t,10),Rl=t=>void 0===t?0:Number.parseInt(t.slice(0,3).padEnd(3,"0"),10),Nl=t=>{if(void 0===t||"Z"===t)return 0;const e=Number(t.slice(1,3)),o=Number(t.slice(4,6));return e>14||o>59||14===e&&0!==o?NaN:(t.startsWith("-")?-1:1)*(60*e+o)};function Ll(t,e,o,n){if(void 0===t||""===t.trim())return null;const i=t.trim(),a=Il.exec(i);if(a){const t=Fl(a[1],NaN),e=Fl(a[2],NaN),o=Fl(a[3],NaN),s=Fl(a[4],0),n=Fl(a[5],0),r=Fl(a[6],0),i=new Date(0);i.setUTCFullYear(t,e-1,o),i.setUTCHours(s,n,r,Rl(a[7]));const l=i.getUTCFullYear()!==t||i.getUTCMonth()!==e-1||i.getUTCDate()!==o||i.getUTCHours()!==s||i.getUTCMinutes()!==n||i.getUTCSeconds()!==r,c=Nl(a[8]);if(!l&&Number.isFinite(c))return new Date(i.getTime()-c*kl)}const l=Tl.exec(i);if(l&&Number.isFinite(Nl(l[5]))){const t=Fl(l[1],0),e=Fl(l[2],0),o=Fl(l[3],0),s=t*Cl+e*kl+1e3*o+Rl(l[4]);if(t<24&&e<=59&&o<=59)return{kind:"duration",ms:s};if(24===t&&s===Sl&&!/[1-9]/.test(l[4]??""))return{kind:"duration",ms:s}}const c=Pl.exec(i);if(c&&!i.endsWith("T")&&void 0!==(c[1]??c[2]??c[3]??c[4])){const t=void 0===c[4]?0:Number.parseFloat(c[4]),e=Fl(c[1],0)*Sl+Fl(c[2],0)*Cl+Fl(c[3],0)*kl+1e3*t;if(Number.isSafeInteger(Math.round(e)))return{kind:"duration",ms:Math.round(e)}}const d=(0,r.s)(e,o,n);throw new s.s(`worksheet: <v>${(0,r.c)(i)}</v> at ${d} is not an ISO 8601 date, time or duration`)}function Dl(t,e,o,n){if(void 0===t)return null;const i=Number.parseFloat(t);if(Number.isFinite(i))return i;if(""===t.trim())return null;throw new s.s(`worksheet: <v>${(0,r.c)(t)}</v> at ${(0,r.s)(e,o,n)} is not a finite number`)}const Al=`{${c.ft}}sortCondition`,El=["value","cellColor","fontColor","icon"],Ol=["stroke","pinYin"],jl=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"],Ml=t=>{const e=t.attrs.ref;if(!e)return;const o={ref:e,conditions:[]},s=(0,l.r)(t.attrs.columnSort);void 0!==s&&(o.columnSort=s);const n=(0,l.r)(t.attrs.caseSensitive);void 0!==n&&(o.caseSensitive=n);const r=t.attrs.sortMethod;r&&Ol.includes(r)&&(o.sortMethod=r);for(const e of(0,c.a)(t,Al)){const t=e.attrs.ref;if(!t)continue;const s={ref:t},n=(0,l.r)(e.attrs.descending);void 0!==n&&(s.descending=n);const r=e.attrs.sortBy;if(r&&El.includes(r)&&(s.sortBy=r),void 0!==e.attrs.customList&&(s.customList=e.attrs.customList),void 0!==e.attrs.dxfId){const t=Number.parseInt(e.attrs.dxfId,10);Number.isInteger(t)&&(s.dxfId=t)}const i=e.attrs.iconSet;if(i&&jl.includes(i)&&(s.iconSet=i),void 0!==e.attrs.iconId){const t=Number.parseInt(e.attrs.iconId,10);Number.isInteger(t)&&(s.iconId=t)}o.conditions.push(s)}return o},zl=t=>{let e=` ref="${(0,u.n)(t.ref)}"`;if(void 0!==t.columnSort&&(e+=` columnSort="${t.columnSort?"1":"0"}"`),void 0!==t.caseSensitive&&(e+=` caseSensitive="${t.caseSensitive?"1":"0"}"`),void 0!==t.sortMethod&&(e+=` sortMethod="${t.sortMethod}"`),0===t.conditions.length)return`<sortState${e}/>`;const o=[`<sortState${e}>`];for(const e of t.conditions)o.push(Vl(e));return o.push("</sortState>"),o.join("")},Vl=t=>{let e="";return void 0!==t.descending&&(e+=` descending="${t.descending?"1":"0"}"`),void 0!==t.sortBy&&(e+=` sortBy="${t.sortBy}"`),e+=` ref="${(0,u.n)(t.ref)}"`,void 0!==t.customList&&(e+=` customList="${(0,u.n)(t.customList)}"`),void 0!==t.dxfId&&(e+=` dxfId="${t.dxfId}"`),void 0!==t.iconSet&&(e+=` iconSet="${t.iconSet}"`),void 0!==t.iconId&&(e+=` iconId="${t.iconId}"`),`<sortCondition${e}/>`},Bl=`{${c.ft}}filterColumn`,Wl=`{${c.ft}}filters`,Ul=`{${c.ft}}filter`,Hl=`{${c.ft}}customFilters`,Xl=`{${c.ft}}customFilter`,ql=`{${c.ft}}top10`,_l=`{${c.ft}}dynamicFilter`,Gl=`{${c.ft}}sortState`,Zl=new Set(["equal","lessThan","lessThanOrEqual","notEqual","greaterThanOrEqual","greaterThan"]),Yl=t=>void 0===t?void 0:"1"===t||"true"===t,Kl=t=>{if(void 0===t||""===t.trim())return;const e=Number(t);return Number.isFinite(e)?e:void 0},Ql=(t,e)=>{const o=(0,c.i)(t,Wl);if(o){const t=(0,c.a)(o,Ul).flatMap(t=>void 0===t.attrs.val?[]:[t.attrs.val]),s=Yl(o.attrs.blank);if(o.children.every(t=>t.name===Ul))return{kind:"filters",colId:e,values:t,...void 0!==s?{blank:s}:{}}}const s=(0,c.i)(t,Hl);if(s){const t=(0,c.a)(s,Xl).map(t=>{const e=t.attrs.operator,o={val:t.attrs.val??""};return void 0!==e&&"equal"!==e&&(t=>Zl.has(t))(e)&&(o.operator=e),o}),o=Yl(s.attrs.and);return{kind:"custom",colId:e,conditions:t,...o?{and:o}:{}}}const n=(0,c.i)(t,ql),r=Kl(n?.attrs.val);if(n&&void 0!==r){const t=Yl(n.attrs.top),o=Yl(n.attrs.percent),s=Kl(n.attrs.filterVal);return{kind:"top10",colId:e,val:r,...!1===t?{top:t}:{},...o?{percent:o}:{},...void 0!==s?{filterVal:s}:{}}}const i=(0,c.i)(t,_l),a=i?.attrs.type;if(i&&a){const t=Kl(i.attrs.val),o=Kl(i.attrs.maxVal);return{kind:"dynamic",colId:e,type:a,...void 0!==t?{val:t}:{},...void 0!==o?{maxVal:o}:{}}}if(0!==t.children.length)return{kind:"raw",colId:e,xml:t.children.map(t=>(new TextDecoder).decode((0,h.t)(t,{xmlDeclaration:!1}))).join("")}};function Jl(t){const e=t.attrs.ref;if(!e)return;const o=[];for(const e of(0,c.a)(t,Bl)){const t=Number.parseInt(e.attrs.colId??"",10);if(!Number.isInteger(t)||t<0)continue;const s=Ql(e,t);s&&o.push(s)}const s=(0,c.i)(t,Gl),n=s?Ml(s):void 0;return{ref:e,filterColumns:o,...n?{sortState:n}:{}}}function tc(t){const e=` ref="${(0,u.n)(t.ref)}"`,o=t.filterColumns.map(t=>`<filterColumn colId="${t.colId}">${(t=>{switch(t.kind){case"filters":{const e=void 0!==t.blank?` blank="${t.blank?"1":"0"}"`:"";return 0===t.values.length?`<filters${e}/>`:`<filters${e}>${t.values.map(t=>`<filter val="${(0,u.n)(t)}"/>`).join("")}</filters>`}case"custom":{const e=t.conditions.map(t=>`<customFilter${t.operator&&"equal"!==t.operator?` operator="${t.operator}"`:""} val="${(0,u.n)(t.val)}"/>`);return`<customFilters${t.and?' and="1"':""}>${e.join("")}</customFilters>`}case"top10":{let e="";return!1===t.top&&(e+=' top="0"'),t.percent&&(e+=' percent="1"'),e+=` val="${t.val}"`,void 0!==t.filterVal&&(e+=` filterVal="${t.filterVal}"`),`<top10${e}/>`}case"dynamic":{let e=` type="${(0,u.n)(t.type)}"`;return void 0!==t.val&&(e+=` val="${t.val}"`),void 0!==t.maxVal&&(e+=` maxVal="${t.maxVal}"`),`<dynamicFilter${e}/>`}case"raw":return t.xml}})(t)}</filterColumn>`);return t.sortState&&o.push(zl(t.sortState)),0===o.length?`<autoFilter${e}/>`:`<autoFilter${e}>${o.join("")}</autoFilter>`}const ec={maxCells:Number.POSITIVE_INFINITY,maxRows:Number.POSITIVE_INFINITY},oc=(t,e)=>{if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new s.r(`contentLimits.${t} must be a positive integer; got ${String(e)}`)};function sc(t){return void 0===t?ec:(void 0!==t.maxCells&&oc("maxCells",t.maxCells),void 0!==t.maxRows&&oc("maxRows",t.maxRows),{maxCells:t.maxCells??Number.POSITIVE_INFINITY,maxRows:t.maxRows??Number.POSITIVE_INFINITY})}function nc(t){return{limits:t,cells:0,rows:0}}function rc(t,e,o){if(t.rows++,t.rows>t.limits.maxRows)throw new s.t(`worksheet: reading ${void 0===o?"an unnumbered row":`row ${o}`} of ${e} passes contentLimits.maxRows of ${t.limits.maxRows}`)}const ic="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}",ac="http://schemas.microsoft.com/office/excel/2006/main",lc=t=>`{${c.xt}}${t}`,cc=t=>`{${ac}}${t}`,dc=["colorSeries","colorNegative","colorAxis","colorMarkers","colorFirst","colorLast","colorHigh","colorLow"],uc=["dateAxis","markers","high","low","first","last","negative","displayXAxis","displayHidden","rightToLeft"],hc=["line","column","stacked"],fc=["gap","zero","span"],pc=["individual","group","custom"],mc=(t,e)=>t.find(t=>t===e),vc=t=>{if(void 0===t)return;const e=Number.parseFloat(t);return Number.isFinite(e)?e:void 0},gc=t=>{const e={},o=t.attrs.rgb;void 0!==o&&(e.rgb=o);const s=vc(t.attrs.theme);void 0!==s&&Number.isInteger(s)&&(e.theme=s);const n=vc(t.attrs.indexed);void 0!==n&&Number.isInteger(n)&&(e.indexed=n);const r=t.attrs.auto;"1"!==r&&"true"!==r||(e.auto=!0);const i=vc(t.attrs.tint);return void 0!==i&&(e.tint=i),e},xc=t=>{const e={sparklines:[]},o=mc(hc,t.attrs.type);o&&(e.type=o);for(const o of uc){const s=t.attrs[o];void 0!==s&&(e[o]="1"===s||"true"===s)}const s=mc(fc,t.attrs.displayEmptyCellsAs);s&&(e.displayEmptyCellsAs=s);const n=mc(pc,t.attrs.minAxisType);n&&(e.minAxisType=n);const r=mc(pc,t.attrs.maxAxisType);r&&(e.maxAxisType=r);const i=vc(t.attrs.lineWeight);void 0!==i&&(e.lineWeight=i);const a=vc(t.attrs.manualMin);void 0!==a&&(e.manualMin=a);const l=vc(t.attrs.manualMax);void 0!==l&&(e.manualMax=l);for(const o of dc){const s=(0,c.i)(t,lc(o));s&&(e[o]=gc(s))}const d=(0,c.i)(t,cc("f"))?.text;d&&(e.dateFormula=d);const u=(0,c.i)(t,lc("sparklines"));for(const t of u?(0,c.a)(u,lc("sparkline")):[]){const o=(0,c.i)(t,cc("f"))?.text??"",s=(0,c.i)(t,cc("sqref"))?.text;s&&e.sparklines.push({formula:o,location:s})}return e};const $c=(t,e)=>{let o="";return e.auto&&(o+=' auto="1"'),void 0!==e.rgb&&(o+=` rgb="${(0,u.n)(e.rgb)}"`),void 0!==e.theme&&(o+=` theme="${e.theme}"`),void 0!==e.indexed&&(o+=` indexed="${e.indexed}"`),void 0!==e.tint&&(o+=` tint="${e.tint}"`),`<x14:${t}${o}/>`},wc=t=>`<x14:sparkline><xm:f>${(0,u.r)(t.formula)}</xm:f><xm:sqref>${(0,u.r)(t.location)}</xm:sqref></x14:sparkline>`,bc=t=>{let e="";void 0!==t.manualMax&&(e+=` manualMax="${t.manualMax}"`),void 0!==t.manualMin&&(e+=` manualMin="${t.manualMin}"`),void 0!==t.lineWeight&&(e+=` lineWeight="${t.lineWeight}"`),void 0!==t.type&&"line"!==t.type&&(e+=` type="${t.type}"`);for(const o of uc){const s=t[o];void 0!==s&&(e+=` ${o}="${s?"1":"0"}"`)}void 0!==t.displayEmptyCellsAs&&(e+=` displayEmptyCellsAs="${t.displayEmptyCellsAs}"`),void 0!==t.minAxisType&&(e+=` minAxisType="${t.minAxisType}"`),void 0!==t.maxAxisType&&(e+=` maxAxisType="${t.maxAxisType}"`);const o=[`<x14:sparklineGroup${e}>`];for(const e of dc){const s=t[e];s&&o.push($c(e,s))}return void 0!==t.dateFormula&&o.push(`<xm:f>${(0,u.r)(t.dateFormula)}</xm:f>`),o.push("<x14:sparklines>",...t.sparklines.map(wc),"</x14:sparklines>"),o.push("</x14:sparklineGroup>"),o.join("")};const yc=`{${c.ft}}worksheet`,kc=`{${c.ft}}sheetData`,Cc=`{${c.ft}}extLst`,Sc=`{${c.ft}}mergeCells`,Ic=`{${c.ft}}mergeCell`,Tc=`{${c.ft}}sheetViews`,Pc=`{${c.ft}}sheetView`,Fc=`{${c.ft}}pane`,Rc=`{${c.ft}}selection`,Nc=`{${c.ft}}cols`,Lc=`{${c.ft}}col`,Dc=`{${c.ft}}sheetFormatPr`,Ac=`{${c.ft}}hyperlinks`,Ec=`{${c.ft}}hyperlink`,Oc=`{${c.ft}}dataValidations`,jc=`{${c.ft}}dataValidation`,Mc=`{${c.ft}}formula1`,zc=`{${c.ft}}formula2`,Vc=`{${c.ft}}autoFilter`,Bc=`{${c.ft}}tableParts`,Wc=`{${c.ft}}tablePart`,Uc=`{${c.ft}}conditionalFormatting`,Hc=`{${c.ft}}cfRule`,Xc=`{${c.ft}}formula`,qc=`{${c.ft}}drawing`,_c=`{${c.ft}}cellWatches`,Gc=`{${c.ft}}cellWatch`,Zc=`{${c.ft}}ignoredErrors`,Yc=`{${c.ft}}ignoredError`,Kc=`{${c.ft}}sheetPr`,Qc=`{${c.ft}}tabColor`,Jc=`{${c.ft}}outlinePr`,td=`{${c.ft}}pageSetUpPr`,ed=`{${c.ft}}sheetProtection`,od=`{${c.ft}}protectedRanges`,sd=`{${c.ft}}protectedRange`,nd=`{${c.ft}}sortState`,rd=`{${c.ft}}picture`,id=`{${c.ft}}legacyDrawing`,ad=`{${c.ft}}legacyDrawingHF`,ld=`{${c.q}}AlternateContent`,cd=`{${c.q}}Choice`,dd=`{${c.ft}}customSheetViews`,ud=`{${c.ft}}customSheetView`,hd=`{${c.ft}}oleObjects`,fd=`{${c.ft}}oleObject`,pd=`{${c.ft}}objectPr`,md=`{${c.ft}}controls`,vd=`{${c.ft}}control`,gd=`{${c.ft}}controlPr`,xd=`{${c.ft}}smartTags`,$d=`{${c.ft}}cellSmartTags`,wd=`{${c.ft}}cellSmartTag`,bd=`{${c.ft}}cellSmartTagPr`,yd=`{${c.ft}}printOptions`,kd=`{${c.ft}}pageMargins`,Cd=`{${c.ft}}pageSetup`,Sd=`{${c.ft}}headerFooter`,Id=`{${c.ft}}rowBreaks`,Td=`{${c.ft}}colBreaks`,Pd=`{${c.ft}}brk`,Fd=`{${c.ft}}customProperties`,Rd=`{${c.ft}}customProperty`,Nd=`{${c.ft}}webPublishItems`,Ld=`{${c.ft}}webPublishItem`,Dd=`{${c.ft}}phoneticPr`,Ad=`{${c.ft}}dataConsolidate`,Ed=`{${c.ft}}dataRefs`,Od=`{${c.ft}}dataRef`,jd=`{${c.ft}}scenarios`,Md=`{${c.ft}}scenario`,zd=`{${c.ft}}inputCells`,Vd=`{${c.ft}}oddHeader`,Bd=`{${c.ft}}oddFooter`,Wd=`{${c.ft}}evenHeader`,Ud=`{${c.ft}}evenFooter`,Hd=`{${c.ft}}firstHeader`,Xd=`{${c.ft}}firstFooter`;function qd(t,e,o){const n="string"==typeof t?t:Eu.decode(t);(0,d.i)(n);const r=Bu(n),i=(0,d.n)(void 0===r?n:n.slice(0,r.bodyStart)+n.slice(r.bodyEnd));if(i.name!==yc)throw(0,p.f)(i.name),new s.s(`parseWorksheetXml: root is "${i.name}", expected worksheet`);const a=(0,f.un)(e),u=(0,c.i)(i,Kc);if(u){const t=wu(u);t&&(a.sheetProperties=t)}const h=(0,c.i)(i,Dc);if(h){const t=Fu(h.attrs.defaultColWidth);void 0!==t&&(a.defaultColumnWidth=t);const e=Fu(h.attrs.defaultRowHeight);void 0!==e&&(a.defaultRowHeight=e);const o=Ru(h.attrs.outlineLevelRow);void 0!==o&&(a.outlineLevelRow=o);const s=Ru(h.attrs.outlineLevelCol);void 0!==s&&(a.outlineLevelCol=s);const n=(0,l.r)(h.attrs.customHeight);void 0!==n&&(a.customHeight=n);const r=(0,l.r)(h.attrs.zeroHeight);void 0!==r&&(a.zeroHeight=r);const i=(0,l.r)(h.attrs.thickTop);void 0!==i&&(a.thickTop=i);const c=(0,l.r)(h.attrs.thickBottom);void 0!==c&&(a.thickBottom=c);const d=Ru(h.attrs.baseColWidth);void 0!==d&&(a.baseColWidth=d)}const m=(0,c.i)(i,Nc);if(m)for(const t of(0,c.a)(m,Lc)){const e=sh(t);a.columnDimensions.set(e.min,e)}void 0!==r&&qu(a,n,r,o);const v=(0,c.i)(i,ed);v&&(a.sheetProtection=$u(v));const g=(0,c.i)(i,nd);if(g){const t=Ml(g);t&&(a.sortState=t)}const x=(0,c.i)(i,od);if(x)for(const t of(0,c.a)(x,sd)){const e=t.attrs.sqref,o=t.attrs.name;if(!e||!o)continue;const s={sqref:(0,f.gr)(e),name:o};if(void 0!==t.attrs.password&&(s.password=t.attrs.password),void 0!==t.attrs.securityDescriptor&&(s.securityDescriptor=t.attrs.securityDescriptor),void 0!==t.attrs.algorithmName&&(s.algorithmName=t.attrs.algorithmName),void 0!==t.attrs.hashValue&&(s.hashValue=t.attrs.hashValue),void 0!==t.attrs.saltValue&&(s.saltValue=t.attrs.saltValue),void 0!==t.attrs.spinCount){const e=Number.parseInt(t.attrs.spinCount,10);Number.isInteger(e)&&(s.spinCount=e)}a.protectedRanges.push(s)}const $=(0,c.i)(i,Sc);if($)for(const t of(0,c.a)($,Ic)){const e=t.attrs.ref;if(!e)throw new s.s("worksheet: <mergeCell> missing @ref");a.mergedCells.push((0,f._r)(e))}const w=(0,c.i)(i,Tc);if(w)for(const t of(0,c.a)(w,Pc))a.views.push(Nu(t));const b=(0,c.i)(i,Ac);if(b)for(const t of(0,c.a)(b,Ec))a.hyperlinks.push(hh(t,o.rels));const y=(0,c.i)(i,Oc);if(y)for(const t of(0,c.a)(y,jc))a.dataValidations.push(ah(t));const k=(0,c.i)(i,Vc);if(k){const t=Jl(k);t&&(a.autoFilter=t)}for(const t of(0,c.a)(i,Uc)){const e=dh(t);e&&a.conditionalFormatting.push(e)}const C=(0,c.i)(i,Bc);if(C&&o.loadTable)for(const t of(0,c.a)(C,Wc)){const e=t.attrs[`{${c.lt}}id`];if(!e)continue;const s=o.loadTable(e);s&&(s.rId=e,a.tables.push(s))}if(o.rels&&o.loadComments)for(const t of o.rels.rels)if(t.type===`${c.lt}/comments`){const e=o.loadComments(t.id);e&&a.legacyComments.push(...e)}const S=(0,c.i)(i,rd);if(S){const t=S.attrs[`{${c.lt}}id`];t&&(a.backgroundPictureRId=t)}const I=(0,c.i)(i,id);if(I){const t=I.attrs[`{${c.lt}}id`];t&&(a.legacyDrawingRId=t)}const T=(0,c.i)(i,ad);if(T){const t=T.attrs[`{${c.lt}}id`];t&&(a.legacyDrawingHFRId=t)}const P=(0,c.i)(i,dd);if(P)for(const t of(0,c.a)(P,ud)){const e=nu(t);e&&a.customSheetViews.push(e)}for(const t of yu(i,hd))for(const e of yu(t,fd)){const t=au(e);t&&a.oleObjects.push(t)}for(const t of yu(i,md))for(const e of yu(t,vd)){const t=lu(e);t&&a.controls.push(t)}const F=(0,c.i)(i,xd);if(F)for(const t of(0,c.a)(F,$d)){const e=t.attrs.r;if(!e)continue;const o=[];for(const e of(0,c.a)(t,wd)){const t=e.attrs.type;if(void 0===t)continue;const s=Number.parseInt(t,10);if(!Number.isInteger(s))continue;const n={type:s,properties:[]},r=(0,l.r)(e.attrs.deleted);void 0!==r&&(n.deleted=r);const i=(0,l.r)(e.attrs.xmlBased);void 0!==i&&(n.xmlBased=i);for(const t of(0,c.a)(e,bd)){const e=t.attrs.key,o=t.attrs.val;void 0!==e&&void 0!==o&&n.properties.push({key:e,val:o})}o.push(n)}a.smartTags.push({ref:e,tags:o})}const R=(0,c.i)(i,qc);if(R&&o.loadDrawing){const t=R.attrs[`{${c.lt}}id`];if(t){const e=o.loadDrawing(t);e&&(a.drawing=e)}}const N=(0,c.i)(i,yd);if(N){const t=uu(N);t&&(a.printOptions=t)}const L=(0,c.i)(i,kd);if(L){const t=hu(L);t&&(a.pageMargins=t)}const D=(0,c.i)(i,Cd);if(D){const t=gu(D);t&&(a.pageSetup=t)}const A=(0,c.i)(i,Sd);if(A){const t=xu(A);t&&(a.headerFooter=t)}const E=(0,c.i)(i,Id);if(E)for(const t of(0,c.a)(E,Pd))a.rowBreaks.push(cu(t));const O=(0,c.i)(i,Td);if(O)for(const t of(0,c.a)(O,Pd))a.colBreaks.push(cu(t));const j=(0,c.i)(i,Fd);if(j)for(const t of(0,c.a)(j,Rd)){const e=t.attrs.name;if(!e)continue;const o={name:e},s=t.attrs[`{${c.lt}}id`];s&&(o.rId=s),a.customProperties.push(o)}const M=(0,c.i)(i,Nd);if(M)for(const t of(0,c.a)(M,Ld)){const e=ou(t);e&&a.webPublishItems.push(e)}const z=(0,c.i)(i,Dd);if(z){const t=tu(z);t&&(a.phoneticPr=t)}const V=(0,c.i)(i,Ad);if(V){const t=Kd(V);t&&(a.dataConsolidate=t)}const B=(0,c.i)(i,jd);if(B){const t=_d(B);t&&(a.scenarios=t)}const W=(0,c.i)(i,_c);if(W)for(const t of(0,c.a)(W,Gc)){const e=t.attrs.r;e&&a.cellWatches.push({ref:e})}const U=(0,c.i)(i,Zc);if(U)for(const t of(0,c.a)(U,Yc))a.ignoredErrors.push(bu(t));return function(t,e){const o=[],s=[];let n=!1;for(const e of t.children)Su.has(e.name)||Cu(e)?e.name===kc&&(n=!0):n?s.push(e):o.push(e);(o.length>0||s.length>0)&&(e.bodyExtras={beforeSheetData:o,afterSheetData:s})}(i,a),function(t){const e=t.bodyExtras?.afterSheetData;if(!e)return;const o=e.findIndex(t=>t.name===Cc),s=e[o];if(!s)return;const n=s.children.filter(e=>{const o=function(t){if(t.attrs.uri===ic)return(0,c.i)(t,lc("sparklineGroups"))}(e);return!o||((t.sparklineGroups??=[]).push(...(s=o,(0,c.a)(s,lc("sparklineGroup")).map(xc))),!1);var s});if(n.length===s.children.length)return;n.length>0?e[o]={...s,children:n}:e.splice(o,1)}(a),a}const _d=t=>{const e={scenarios:[]},o=Ru(t.attrs.current);void 0!==o&&(e.current=o);const s=Ru(t.attrs.show);void 0!==s&&(e.show=s);const n=t.attrs.sqref;n&&(e.sqref=(0,f.gr)(n));for(const o of(0,c.a)(t,Md)){const t=Gd(o);t&&e.scenarios.push(t)}return e.scenarios.length>0||void 0!==e.current||void 0!==e.show||void 0!==e.sqref?e:void 0},Gd=t=>{const e=t.attrs.name;if(!e)return;const o={name:e,inputCells:[]},s=(0,l.r)(t.attrs.locked);void 0!==s&&(o.locked=s);const n=(0,l.r)(t.attrs.hidden);void 0!==n&&(o.hidden=n),void 0!==t.attrs.user&&(o.user=t.attrs.user),void 0!==t.attrs.comment&&(o.comment=t.attrs.comment);for(const e of(0,c.a)(t,zd)){const t=Zd(e);t&&o.inputCells.push(t)}return o},Zd=t=>{const e=t.attrs.r,o=t.attrs.val;if(!e||void 0===o)return;const s={ref:e,val:o},n=(0,l.r)(t.attrs.deleted);void 0!==n&&(s.deleted=n);const r=(0,l.r)(t.attrs.undone);void 0!==r&&(s.undone=r);const i=Ru(t.attrs.numFmtId);return void 0!==i&&(s.numFmtId=i),s},Yd=["average","count","countNums","max","min","product","stdDev","stdDevp","sum","var","varp"],Kd=t=>{const e={},o=t.attrs.function;o&&Yd.includes(o)&&(e.function=o);const s=(0,l.r)(t.attrs.topLabels);void 0!==s&&(e.topLabels=s);const n=(0,l.r)(t.attrs.leftLabels);void 0!==n&&(e.leftLabels=n);const r=(0,l.r)(t.attrs.link);void 0!==r&&(e.link=r),void 0!==t.attrs.startLabels&&(e.startLabels=t.attrs.startLabels);const i=(0,c.i)(t,Ed);if(i){const t=[];for(const e of(0,c.a)(i,Od)){const o={};void 0!==e.attrs.name&&(o.name=e.attrs.name),void 0!==e.attrs.ref&&(o.ref=e.attrs.ref),void 0!==e.attrs.sheet&&(o.sheet=e.attrs.sheet);const s=e.attrs[`{${c.lt}}id`];s&&(o.rId=s),t.push(o)}t.length>0&&(e.dataRefs=t)}return Object.keys(e).length>0?e:void 0},Qd=["halfwidthKatakana","fullwidthKatakana","Hiragana","noConversion"],Jd=["noControl","left","center","distributed"],tu=t=>{const e={},o=Ru(t.attrs.fontId);void 0!==o&&(e.fontId=o);const s=t.attrs.type;s&&Qd.includes(s)&&(e.type=s);const n=t.attrs.alignment;return n&&Jd.includes(n)&&(e.alignment=n),Object.keys(e).length>0?e:void 0},eu=new Set(["sheet","printArea","autoFilter","range","chart","pivotTable","query","label"]),ou=t=>{const e=t.attrs.id;if(!e)return;const o=Number.parseInt(e,10);if(!Number.isInteger(o))return;const s=t.attrs.divId,n=t.attrs.sourceType,r=t.attrs.destinationFile;if(!(s&&n&&eu.has(n)&&r))return;const i={id:o,divId:s,sourceType:n,destinationFile:r};void 0!==t.attrs.sourceRef&&(i.sourceRef=t.attrs.sourceRef),void 0!==t.attrs.sourceObject&&(i.sourceObject=t.attrs.sourceObject),void 0!==t.attrs.title&&(i.title=t.attrs.title);const a=(0,l.r)(t.attrs.autoRepublish);return void 0!==a&&(i.autoRepublish=a),i},su=["visible","hidden","veryHidden"],nu=t=>{const e=t.attrs.guid;if(!e)return;const o={guid:e},s=e=>{const o=t.attrs[e];if(void 0===o)return;const s=Number.parseInt(o,10);return Number.isInteger(s)?s:void 0},n=s("scale");void 0!==n&&(o.scale=n);const r=s("colorId");void 0!==r&&(o.colorId=r);for(const e of["showPageBreaks","showFormulas","showGridLines","showRowCol","outlineSymbols","zeroValues","fitToPage","printArea","filter","showAutoFilter","hiddenRows","hiddenColumns","filterUnique","showRuler"]){const s=(0,l.r)(t.attrs[e]);void 0!==s&&(o[e]=s)}const i=t.attrs.state;i&&su.includes(i)&&(o.state=i);const a=t.attrs.view;a&&Pu.includes(a)&&(o.view=a),void 0!==t.attrs.topLeftCell&&(o.topLeftCell=t.attrs.topLeftCell);const d=(0,c.i)(t,Fc);d&&(o.pane=Lu(d));const u=[];for(const e of(0,c.a)(t,Rc))u.push(Du(e));u.length>0&&(o.selections=u);const h=(0,c.i)(t,Id);if(h){const t=[];for(const e of(0,c.a)(h,Pd))t.push(cu(e));t.length>0&&(o.rowBreaks=t)}const f=(0,c.i)(t,Td);if(f){const t=[];for(const e of(0,c.a)(f,Pd))t.push(cu(e));t.length>0&&(o.colBreaks=t)}const p=(0,c.i)(t,kd);if(p){const t=hu(p);t&&(o.pageMargins=t)}const m=(0,c.i)(t,yd);if(m){const t=uu(m);t&&(o.printOptions=t)}const v=(0,c.i)(t,Cd);if(v){const t=gu(v);t&&(o.pageSetup=t)}const g=(0,c.i)(t,Sd);if(g){const t=xu(g);t&&(o.headerFooter=t)}return o},ru=["DVASPECT_CONTENT","DVASPECT_ICON"],iu=["OLEUPDATE_ALWAYS","OLEUPDATE_ONCALL"],au=t=>{const e=t.attrs.shapeId;if(void 0===e)return;const o=Number.parseInt(e,10);if(!Number.isInteger(o))return;const s={shapeId:o},n=t.attrs[`{${c.lt}}id`];n&&(s.rId=n),void 0!==t.attrs.progId&&(s.progId=t.attrs.progId);const r=t.attrs.dvAspect;r&&ru.includes(r)&&(s.dvAspect=r),void 0!==t.attrs.link&&(s.link=t.attrs.link);const i=t.attrs.oleUpdate;i&&iu.includes(i)&&(s.oleUpdate=i);const a=(0,l.r)(t.attrs.autoLoad);void 0!==a&&(s.autoLoad=a);const d=(0,c.i)(t,pd);return d&&(s.objectPr=d),s},lu=t=>{const e=t.attrs.shapeId;if(void 0===e)return;const o=Number.parseInt(e,10);if(!Number.isInteger(o))return;const s={shapeId:o},n=t.attrs[`{${c.lt}}id`];n&&(s.rId=n),void 0!==t.attrs.name&&(s.name=t.attrs.name);const r=(0,c.i)(t,gd);return r&&(s.controlPr=r),s},cu=t=>{const e={},o=Ru(t.attrs.id);void 0!==o&&(e.id=o);const s=Ru(t.attrs.min);void 0!==s&&(e.min=s);const n=Ru(t.attrs.max);void 0!==n&&(e.max=n);const r=(0,l.r)(t.attrs.man);void 0!==r&&(e.man=r);const i=(0,l.r)(t.attrs.pt);return void 0!==i&&(e.pt=i),e},du=t=>"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0,uu=t=>{const e={},o=du(t.attrs.horizontalCentered);void 0!==o&&(e.horizontalCentered=o);const s=du(t.attrs.verticalCentered);void 0!==s&&(e.verticalCentered=s);const n=du(t.attrs.headings);void 0!==n&&(e.headings=n);const r=du(t.attrs.gridLines);void 0!==r&&(e.gridLines=r);const i=du(t.attrs.gridLinesSet);return void 0!==i&&(e.gridLinesSet=i),Object.keys(e).length>0?e:void 0},hu=t=>{const e=Fu(t.attrs.left),o=Fu(t.attrs.right),s=Fu(t.attrs.top),n=Fu(t.attrs.bottom),r=Fu(t.attrs.header),i=Fu(t.attrs.footer);if(void 0!==e&&void 0!==o&&void 0!==s&&void 0!==n&&void 0!==r&&void 0!==i)return{left:e,right:o,top:s,bottom:n,header:r,footer:i}},fu=["default","portrait","landscape"],pu=["downThenOver","overThenDown"],mu=["none","asDisplayed","atEnd"],vu=["displayed","blank","dash","NA"],gu=t=>{const e={},o=o=>{const s=Ru(t.attrs[o]);void 0!==s&&(e[o]=s)};o("paperSize"),o("scale"),o("firstPageNumber"),o("fitToWidth"),o("fitToHeight"),o("horizontalDpi"),o("verticalDpi"),o("copies");const s=t.attrs.pageOrder;s&&pu.includes(s)&&(e.pageOrder=s);const n=t.attrs.orientation;n&&fu.includes(n)&&(e.orientation=n);const r=t.attrs.cellComments;r&&mu.includes(r)&&(e.cellComments=r);const i=t.attrs.errors;i&&vu.includes(i)&&(e.errors=i);const a=du(t.attrs.usePrinterDefaults);void 0!==a&&(e.usePrinterDefaults=a);const l=du(t.attrs.blackAndWhite);void 0!==l&&(e.blackAndWhite=l);const d=du(t.attrs.draft);void 0!==d&&(e.draft=d);const u=du(t.attrs.useFirstPageNumber);void 0!==u&&(e.useFirstPageNumber=u),t.attrs.paperWidth&&(e.paperWidth=t.attrs.paperWidth),t.attrs.paperHeight&&(e.paperHeight=t.attrs.paperHeight);const h=t.attrs[`{${c.lt}}id`];return h&&(e.rId=h),Object.keys(e).length>0?e:void 0},xu=t=>{const e={},o=du(t.attrs.differentFirst);void 0!==o&&(e.differentFirst=o);const s=du(t.attrs.differentOddEven);void 0!==s&&(e.differentOddEven=s);const n=du(t.attrs.scaleWithDoc);void 0!==n&&(e.scaleWithDoc=n);const r=du(t.attrs.alignWithMargins);void 0!==r&&(e.alignWithMargins=r);const i=e=>{const o=(0,c.i)(t,e);if(o)return o.text},a=i(Vd);void 0!==a&&(e.oddHeader=a);const l=i(Bd);void 0!==l&&(e.oddFooter=l);const d=i(Wd);void 0!==d&&(e.evenHeader=d);const u=i(Ud);void 0!==u&&(e.evenFooter=u);const h=i(Hd);void 0!==h&&(e.firstHeader=h);const f=i(Xd);return void 0!==f&&(e.firstFooter=f),Object.keys(e).length>0?e:void 0},$u=t=>{const e={},o=o=>{const s=t.attrs[o];"1"===s||"true"===s?e[o]=!0:"0"!==s&&"false"!==s||(e[o]=!1)};for(const t of["sheet","objects","scenarios","formatCells","formatColumns","formatRows","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","selectLockedCells","selectUnlockedCells","sort","autoFilter","pivotTables"])o(t);if(void 0!==t.attrs.saltValue&&(e.saltValue=t.attrs.saltValue),void 0!==t.attrs.spinCount){const o=Number.parseInt(t.attrs.spinCount,10);Number.isInteger(o)&&(e.spinCount=o)}return void 0!==t.attrs.algorithmName&&(e.algorithmName=t.attrs.algorithmName),void 0!==t.attrs.hashValue&&(e.hashValue=t.attrs.hashValue),e},wu=t=>{const e={},o=t=>{if(void 0!==t)return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0};void 0!==t.attrs.codeName&&(e.codeName=t.attrs.codeName);const s=o(t.attrs.enableFormatConditionsCalculation);void 0!==s&&(e.enableFormatConditionsCalculation=s);const n=o(t.attrs.filterMode);void 0!==n&&(e.filterMode=n);const r=o(t.attrs.published);void 0!==r&&(e.published=r);const i=o(t.attrs.syncHorizontal);void 0!==i&&(e.syncHorizontal=i),void 0!==t.attrs.syncRef&&(e.syncRef=t.attrs.syncRef);const a=o(t.attrs.syncVertical);void 0!==a&&(e.syncVertical=a);const l=o(t.attrs.transitionEvaluation);void 0!==l&&(e.transitionEvaluation=l);const d=o(t.attrs.transitionEntry);void 0!==d&&(e.transitionEntry=d);const u=(0,c.i)(t,Qc);if(u){const t={};if(void 0!==u.attrs.rgb&&(t.rgb=u.attrs.rgb),void 0!==u.attrs.indexed){const e=Number.parseInt(u.attrs.indexed,10);Number.isInteger(e)&&(t.indexed=e)}if(void 0!==u.attrs.theme){const e=Number.parseInt(u.attrs.theme,10);Number.isInteger(e)&&(t.theme=e)}const s=o(u.attrs.auto);if(void 0!==s&&(t.auto=s),void 0!==u.attrs.tint){const e=Number.parseFloat(u.attrs.tint);Number.isFinite(e)&&(t.tint=e)}e.tabColor=(0,f.ui)(t)}const h=(0,c.i)(t,Jc);if(h){const t={},s=o(h.attrs.applyStyles);void 0!==s&&(t.applyStyles=s);const n=o(h.attrs.summaryBelow);void 0!==n&&(t.summaryBelow=n);const r=o(h.attrs.summaryRight);void 0!==r&&(t.summaryRight=r);const i=o(h.attrs.showOutlineSymbols);void 0!==i&&(t.showOutlineSymbols=i),e.outlinePr=t}const p=(0,c.i)(t,td);if(p){const t={},s=o(p.attrs.autoPageBreaks);void 0!==s&&(t.autoPageBreaks=s);const n=o(p.attrs.fitToPage);void 0!==n&&(t.fitToPage=n),e.pageSetUpPr=t}return Object.keys(e).length>0?e:void 0},bu=t=>{const e=t.attrs.sqref;if(!e)throw new s.s("worksheet: <ignoredError> missing @sqref");const o={sqref:(0,f.gr)(e)},n=t=>{if(void 0!==t)return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0},r=n(t.attrs.evalError);void 0!==r&&(o.evalError=r);const i=n(t.attrs.twoDigitTextYear);void 0!==i&&(o.twoDigitTextYear=i);const a=n(t.attrs.numberStoredAsText);void 0!==a&&(o.numberStoredAsText=a);const l=n(t.attrs.formula);void 0!==l&&(o.formula=l);const c=n(t.attrs.formulaRange);void 0!==c&&(o.formulaRange=c);const d=n(t.attrs.unlockedFormula);void 0!==d&&(o.unlockedFormula=d);const u=n(t.attrs.emptyCellReference);void 0!==u&&(o.emptyCellReference=u);const h=n(t.attrs.listDataValidation);void 0!==h&&(o.listDataValidation=h);const p=n(t.attrs.calculatedColumn);return void 0!==p&&(o.calculatedColumn=p),o};const yu=(t,e)=>{const o=[];for(const s of t.children)if(s.name===e)o.push(s);else if(s.name===ld)for(const t of(0,c.a)(s,cd))o.push(...(0,c.a)(t,e));return o},ku=new Set([hd,md]),Cu=t=>t.name===ld&&(0,c.a)(t,cd).some(t=>t.children.some(t=>ku.has(t.name))),Su=new Set([`{${c.ft}}dimension`,kc,Sc,Tc,Dc,Nc,Ac,Oc,Vc,Bc,Uc,qc,_c,Zc,Kc,ed,od,nd,rd,ad,hd,md,xd,dd,yd,kd,Cd,Sd,Id,Td,Fd,Nd,Dd,Ad,jd,id]),Iu=["bottomRight","topRight","bottomLeft","topLeft"],Tu=["split","frozen","frozenSplit"],Pu=["normal","pageBreakPreview","pageLayout"],Fu=t=>{if(void 0===t)return;const e=Number.parseFloat(t);return Number.isFinite(e)?e:void 0},Ru=t=>{if(void 0===t)return;const e=Number.parseInt(t,10);return Number.isInteger(e)?e:void 0},Nu=t=>{const e={workbookViewId:Ru(t.attrs.workbookViewId)??0},o=(0,l.r)(t.attrs.tabSelected);void 0!==o&&(e.tabSelected=o);const s=(0,l.r)(t.attrs.showGridLines);void 0!==s&&(e.showGridLines=s);const n=(0,l.r)(t.attrs.showRowColHeaders);void 0!==n&&(e.showRowColHeaders=n);const r=(0,l.r)(t.attrs.showFormulas);void 0!==r&&(e.showFormulas=r);const i=(0,l.r)(t.attrs.showZeros);void 0!==i&&(e.showZeros=i);const a=(0,l.r)(t.attrs.rightToLeft);void 0!==a&&(e.rightToLeft=a);const d=(0,l.r)(t.attrs.showOutlineSymbols);void 0!==d&&(e.showOutlineSymbols=d);const u=t.attrs.view;void 0!==u&&Pu.includes(u)&&(e.view=u),t.attrs.topLeftCell&&(e.topLeftCell=t.attrs.topLeftCell);const h=Ru(t.attrs.zoomScale);void 0!==h&&(e.zoomScale=h);const p=Ru(t.attrs.zoomScaleNormal);void 0!==p&&(e.zoomScaleNormal=p);const m=(0,c.i)(t,Fc);m&&(e.pane=Lu(m));const v=(0,c.a)(t,Rc).map(Du);return v.length>0&&(e.selections=v),(0,f.or)(e)},Lu=t=>{const e=t.attrs.state,o={state:e&&Tu.includes(e)?e:"split"},s=Fu(t.attrs.xSplit);void 0!==s&&(o.xSplit=s);const n=Fu(t.attrs.ySplit);void 0!==n&&(o.ySplit=n),t.attrs.topLeftCell&&(o.topLeftCell=t.attrs.topLeftCell);const r=t.attrs.activePane;return r&&Iu.includes(r)&&(o.activePane=r),o},Du=t=>{const e={},o=t.attrs.pane;return o&&Iu.includes(o)&&(e.pane=o),t.attrs.activeCell&&(e.activeCell=t.attrs.activeCell),t.attrs.sqref&&(e.sqref=t.attrs.sqref),e},Au=t=>{const e={};for(const o of Object.values(t))e[(0,c.Nt)(o.uri,o.local)]=o.value;return e},Eu=new TextDecoder("utf-8",{fatal:!1}),Ou=String.raw`<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<\?[\s\S]*?\?>`,ju=String.raw`(?<unterminated><!--|<!\[CDATA\[|<\?)`,Mu=new RegExp(String.raw`${Ou}|${ju}`,"g"),zu=new RegExp(String.raw`${Ou}|<(?:(?:"[^"]*"|'[^']*'|[^'">])*)>`,"g"),Vu=/^[\s>]$/,Bu=t=>{const e=new $.wT({xmlns:!0}),o=[];let n;e.on("error",t=>{throw new s.s(`worksheet: malformed header: ${t.message}`,{cause:t})}),e.on("opentag",t=>{const e={...o[o.length-1],...t.ns};o.push(e),2===o.length&&"http://schemas.openxmlformats.org/spreadsheetml/2006/main"===t.uri&&"sheetData"===t.local&&(n={tag:t.name,namespaces:e,empty:t.isSelfClosing})}),e.on("closetag",()=>{o.pop()}),zu.lastIndex=0;let r=0;for(let o=zu.exec(t);null!==o;o=zu.exec(t)){const s=o.index+o[0].length;if(e.write(t.slice(r,s)),r=s,void 0!==n){if(n.empty)return;return{bodyStart:s,bodyEnd:Wu(t,n.tag,s),namespaces:n.namespaces}}}},Wu=(t,e,o)=>{const n=`</${e}`;let r=o,i=Uu(t,o);for(;;){const o=Hu(t,n,r);if(o<0)throw new s.s(`worksheet: <${e}> is never closed`);for(;void 0!==i&&i.end<=o;)i=Uu(t,i.end);if(void 0===i||i.start>o)return o;r=i.end}},Uu=(t,e)=>{Mu.lastIndex=e;const o=Mu.exec(t);if(null!==o)return(t=>{const e=t.groups?.unterminated;if(void 0!==e)throw new s.s(`worksheet: "${e}" is never closed`)})(o),{start:o.index,end:o.index+o[0].length}},Hu=(t,e,o)=>{for(let s=t.indexOf(e,o);s>=0;s=t.indexOf(e,s+e.length))if(Vu.test(t.charAt(s+e.length)))return s;return-1},Xu=t=>t>=55296&&t<=56319,qu=(t,e,o,r)=>{const i=r.contentBudget??nc(ec),a=new Map;let l=1,u=-1,h={},f=1;const p=[];let m,v,g,x=0,w={row:0,col:0};const b=[],y=e=>{u=e,l=Math.max(l,e+1),fh(t,h,e);for(const o of p){const s=Zu(o.ref,e,f);Yu(t,o,s,r,a),f=s.col+1}p.length=0},k=new $.wT({fragment:!0,xmlns:!0,additionalNamespaces:o.namespaces});k.on("error",t=>{throw new s.s(`worksheet: malformed <sheetData>: ${t.message}`,{cause:t})}),k.on("processinginstruction",t=>{throw new s.s(`worksheet: processing instructions are not supported (saw "<?${t.target}")`)}),k.on("opentag",e=>{if(x++,b.length>0){const t=(0,c.n)((0,c.Nt)(e.uri,e.local),Au(e.attributes));return b[b.length-1]?.children.push(t),void b.push(t)}const o=e.local;if(void 0!==v)throw new s.s(`worksheet: mixed content not supported (<${o}> inside <${v}>${_u(m)})`);if("http://schemas.openxmlformats.org/spreadsheetml/2006/main"===e.uri){if(1===x){if("row"!==o)return;h=Au(e.attributes),f=1,p.length=0;const s=h.r;if(void 0===s)rc(i,t.title,void 0),u=0;else{const e=(0,n.v)(s,"worksheet");rc(i,t.title,e),y(e)}return}if(!(u<0)){if(2===x){if("c"!==o)return;const r=Au(e.attributes),a=r.r;return 0===u&&void 0!==a&&y((0,n.s)(a).row),w=Zu(a,u,f+p.length),function(t,e,o,r){if(t.cells++,t.cells>t.limits.maxCells)throw new s.t(`worksheet: reading ${void 0===r?`a cell in an unnumbered row of ${e}`:(0,n.l)(e,(0,n.y)(o,r))} passes contentLimits.maxCells of ${t.limits.maxCells}`)}(i,t.title,w.col,0===u?void 0:w.row),void(m={ref:r.r,style:r.s,t:r.t??"n",value:void 0,formulaAttrs:void 0,formula:void 0,inline:void 0})}if(3===x&&void 0!==m)if("v"===o||"f"===o)"f"===o&&(m.formulaAttrs=Au(e.attributes)),v=o,g="";else if("is"===o){const t=(0,c.n)((0,c.Nt)(c.ft,"is"));m.inline=t,b.push(t)}}}});const C=t=>{if(b.length>0){const e=b[b.length-1];return void(void 0!==e&&(e.text=(e.text??"")+t))}if(void 0!==g)g+=t;else if((0===x||1===x&&u>=0||2===x&&void 0!==m)&&!(0,d.t)(t))throw new s.s("worksheet: mixed content not supported (text between cell elements)")};k.on("text",C),k.on("cdata",C),k.on("closetag",e=>{if(x--,b.length>0){const t=b.pop();return void(void 0!==t&&Gu(t))}if("http://schemas.openxmlformats.org/spreadsheetml/2006/main"!==e.uri)return;const o=e.local;return 2===x&&void 0!==m?("v"===o?m.value=g??"":"f"===o&&(m.formula=g??""),v=void 0,void(g=void 0)):1===x&&void 0!==m&&"c"===o?(0===u&&(void 0!==m.ref?y((0,n.s)(m.ref).row):p.push(m)),u>0&&(Yu(t,m,w,r,a),f=w.col+1),void(m=void 0)):void(0===x&&"row"===o&&(0===u&&y((0,n.c)(l,"worksheet")),u=-1))});for(let t=o.bodyStart;t<o.bodyEnd;){let s=Math.min(t+262144,o.bodyEnd);s<o.bodyEnd&&Xu(e.charCodeAt(s-1))&&s++,k.write(e.slice(t,s)),t=s}k.close()},_u=t=>void 0===t?.ref?"":` of <c r="${t.ref}">`,Gu=t=>{if(0!==t.children.length&&void 0!==t.text){if(!(0,d.t)(t.text))throw new s.s(`worksheet: mixed content not supported (text between elements under <${(0,c.jt)(t.name)}>)`);delete t.text}},Zu=(t,e,o)=>{if(void 0===t)return{row:e,col:o};const r=(0,n.s)(t);if(r.row!==e)throw new s.s(`worksheet: <c r="${t}"> row ${r.row} disagrees with row ${e}`);return{row:r.row,col:r.col}},Yu=(t,e,o,i,a)=>{const c=e.t,d=void 0===e.style?0:Qu(e.style);if(void 0!==e.formulaAttrs){const s=(0,f.Tn)(t,o.row,o.col,null,d),n=eh(e.value,c,i,t.title,o);return void oh(s,e.formulaAttrs,e.formula,o,n,a,c)}let u=null;switch(c){case"n":u=Dl(e.value,t.title,o.col,o.row);break;case"s":{if(void 0===e.value||""===e.value)throw new s.s('worksheet: <c t="s"> missing <v>');const t=th(e.value,i);u="string"==typeof t?t:{kind:"rich-text",runs:t.runs};break}case"b":{const t=e.value?.trim();if(void 0===t||""===t){u=null;break}const r=(0,l.r)(t);if(void 0===r)throw new s.s(`worksheet: <c r="${(0,n.y)(o.col,o.row)}" t="b"><v>${Ku(t)}</v></c> is not a boolean`);u=r;break}case"e":{const s=(0,g.v)(e.value,t.title,o.col,o.row);u=null===s?null:{kind:"error",code:s};break}case"d":u=Ll(e.value,t.title,o.col,o.row);break;case"str":u=e.value??"";break;case"inlineStr":u=Ju(e.inline);break;default:throw(0,r.u)(c,t.title,o.col,o.row)}(0,f.Tn)(t,o.row,o.col,u,d)},Ku=t=>{const e=t.replace(/\s+/g," ");return e.length>40?`${e.slice(0,40)}…`:e},Qu=t=>{const e=Number.parseInt(t,10);if(!Number.isInteger(e)||e<0)throw new s.s(`worksheet: <c s="${t}"> is not a non-negative integer`);return e},Ju=t=>{if(!t)return"";const e=(0,p.o)(t);return"string"==typeof e?e:{kind:"rich-text",runs:e.runs}},th=(t,e)=>{const o=Number.parseInt(t,10);if(!Number.isInteger(o)||o<0)throw new s.s(`worksheet: <c t="s"><v>${t}</v> is not a valid index`);const n=e.sharedStrings[o];if(void 0===n)throw new s.s(`worksheet: shared-string index ${o} out of range [0, ${e.sharedStrings.length})`);return n},eh=(t,e,o,a,c)=>{switch(e){case"n":return Dl(t,a,c.col,c.row)??void 0;case"b":{const e=t?.trim();if(void 0===e||""===e)return;const o=(0,l.r)(e);if(void 0===o)throw new s.s(`worksheet: <c r="${(0,n.y)(c.col,c.row)}" t="b"><v>${Ku(e)}</v></c> cached result is not a boolean`);return o}case"d":{const e=Ll(t,a,c.col,c.row);if(null===e)return;return e instanceof Date?(0,m.r)(e,{epoch:o.date1904?"mac":"windows"}):(0,m.i)(e.ms)}case"e":return(0,g.v)(t,a,c.col,c.row)??void 0;case"s":{if(void 0===t||""===t)return;const e=th(t,o);return"string"==typeof e?e:(0,i.N)(e.runs)}case"str":case"inlineStr":return t;default:throw(0,r.u)(e,a,c.col,c.row)}},oh=(t,e,o,a,c,d,u)=>{const h=e.t??"normal",f=(0,r.i)(o??""),p=void 0!==c?{cachedValue:c,..."e"===u?{cachedValueType:"error"}:{}}:void 0;switch(h){case"normal":if(0===f.length)throw new s.s(`worksheet: <f> at ${(0,n.y)(a.col,a.row)} has no formula text`);return void(0,i.k)(t,f,p);case"array":{const o=e.ref;if(!o)throw new s.s('worksheet: <f t="array"> missing @ref');return void(0,i.E)(t,o,f,p)}case"shared":{const o=e.si;if(void 0===o)throw new s.s('worksheet: <f t="shared"> missing @si');const r=Number.parseInt(o,10);if(!Number.isInteger(r)||r<0)throw new s.s(`worksheet: <f t="shared" si="${o}"> is not a valid index`);const l=e.ref;if(f.length>0)return d.set(r,{origin:(0,n.y)(a.col,a.row),formula:f}),void(0,i.A)(t,r,f,l,p);const c=d.get(r);if(!c)throw new s.s(`worksheet: <f t="shared" si="${r}"/> with no preceding origin formula`);const u=(0,n.y)(a.col,a.row);return void(0,i.A)(t,r,yl(`=${c.formula}`,c.origin,{dest:u}),void 0,p)}case"dataTable":{const o=e.ref;if(!o)throw new s.s('worksheet: <f t="dataTable"> missing @ref');return void(0,i.O)(t,f,{ref:o,...p,...void 0!==e.r1?{r1:e.r1}:{},...void 0!==e.r2?{r2:e.r2}:{},...(0,l.r)(e.dt2D)?{dt2D:!0}:{},...(0,l.r)(e.dtr)?{dtr:!0}:{},...(0,l.r)(e.del1)?{del1:!0}:{},...(0,l.r)(e.del2)?{del2:!0}:{},...(0,l.r)(e.aca)?{aca:!0}:{},...(0,l.r)(e.ca)?{ca:!0}:{}})}default:throw new s.s(`worksheet: <f t="${h}"> unknown formula kind`)}},sh=t=>{const e=t.attrs.min,o=t.attrs.max;if(void 0===e||void 0===o)throw new s.s("worksheet: <col> missing required @min/@max");const n=Number.parseInt(e,10),r=Number.parseInt(o,10);if(!Number.isInteger(n)||!Number.isInteger(r)||n<1||r<n)throw new s.s(`worksheet: <col min="${e}" max="${o}"> not a valid column run`);const i={},a=Fu(t.attrs.width);void 0!==a&&(i.width=a);const c=(0,l.r)(t.attrs.customWidth);void 0!==c&&(i.customWidth=c);const d=(0,l.r)(t.attrs.hidden);void 0!==d&&(i.hidden=d);const u=(0,l.r)(t.attrs.bestFit);void 0!==u&&(i.bestFit=u);const h=Ru(t.attrs.outlineLevel);void 0!==h&&(i.outlineLevel=h);const p=Ru(t.attrs.style);void 0!==p&&(i.style=p);const m=(0,l.r)(t.attrs.collapsed);return void 0!==m&&(i.collapsed=m),{...(0,f.sr)(n,i),max:r}},nh=["whole","decimal","list","date","time","textLength","custom"],rh=["between","notBetween","equal","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual"],ih=["stop","warning","information"],ah=t=>{const e=t.attrs.type,o=e&&nh.includes(e)?e:"custom",n=t.attrs.sqref;if(!n)throw new s.s("worksheet: <dataValidation> missing @sqref");const i={type:o,sqref:(0,f.gr)(n)},a=t.attrs.operator;a&&rh.includes(a)&&(i.operator=a);const d=(0,l.r)(t.attrs.allowBlank);void 0!==d&&(i.allowBlank=d);const u=(0,l.r)(t.attrs.showInputMessage);void 0!==u&&(i.showInputMessage=u);const h=(0,l.r)(t.attrs.showErrorMessage);void 0!==h&&(i.showErrorMessage=h);const p=(0,l.r)(t.attrs.showDropDown);void 0!==p&&(i.showDropDown=p);const m=t.attrs.errorTitle;void 0!==m&&(i.errorTitle=m);const v=t.attrs.error;void 0!==v&&(i.error=v);const x=t.attrs.errorStyle;x&&ih.includes(x)&&(i.errorStyle=x);const $=t.attrs.promptTitle;void 0!==$&&(i.promptTitle=$);const w=t.attrs.prompt;void 0!==w&&(i.prompt=w);const b=(0,c.i)(t,Mc);void 0!==b?.text&&(i.formula1=(0,r.i)(b.text));const y=(0,c.i)(t,zc);return void 0!==y?.text&&(i.formula2=(0,r.i)(y.text)),(0,g.m)(i)},lh=["expression","cellIs","colorScale","dataBar","iconSet","top10","aboveAverage","uniqueValues","duplicateValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks","containsErrors","notContainsErrors","timePeriod"],ch=new Set(["colorScale","dataBar","iconSet"]),dh=t=>{const e=t.attrs.sqref;if(!e)return;const o=[];for(const e of(0,c.a)(t,Hc)){const t=uh(e);t&&o.push(t)}const s={sqref:(0,f.gr)(e),rules:o},n=(0,l.r)(t.attrs.pivot);return void 0!==n&&(s.pivot=n),(0,g.g)(s)},uh=t=>{const e=t.attrs.type,o=t.attrs.priority;if(!e||void 0===o)return;if(!lh.includes(e))return;const s=Number.parseInt(o,10);if(!Number.isInteger(s))return;const n=e,i={type:n,priority:s},a=Ru(t.attrs.dxfId);void 0!==a&&(i.dxfId=a);const d=(0,l.r)(t.attrs.stopIfTrue);void 0!==d&&(i.stopIfTrue=d),t.attrs.operator&&(i.operator=t.attrs.operator),void 0!==t.attrs.text&&(i.text=t.attrs.text);const u=(0,l.r)(t.attrs.percent);void 0!==u&&(i.percent=u);const f=(0,l.r)(t.attrs.bottom);void 0!==f&&(i.bottom=f);const p=Ru(t.attrs.rank);void 0!==p&&(i.rank=p);const m=(0,l.r)(t.attrs.aboveAverage);void 0!==m&&(i.aboveAverage=m);const v=(0,l.r)(t.attrs.equalAverage);void 0!==v&&(i.equalAverage=v);const x=Ru(t.attrs.stdDev);void 0!==x&&(i.stdDev=x),t.attrs.timePeriod&&(i.timePeriod=t.attrs.timePeriod);const $=[];for(const e of(0,c.a)(t,Xc))$.push((0,r.i)(e.text??""));if($.length>0&&(i.formulas=$),ch.has(n)){const e=[];for(const o of t.children)o.name!==Xc&&e.push((new TextDecoder).decode((0,h.t)(o,{xmlDeclaration:!1})));e.length>0&&(i.innerXml=e.join(""))}return(0,g.h)(i)},hh=(t,e)=>{const o=t.attrs.ref;if(!o)throw new s.s("worksheet: <hyperlink> missing @ref");const n=t.attrs[`{${c.lt}}id`],r={ref:o};if(n){r.rId=n;const t=e?(0,v.r)(e,n):void 0;t&&(r.target=t.target)}return t.attrs.location&&(r.location=t.attrs.location),t.attrs.tooltip&&(r.tooltip=t.attrs.tooltip),t.attrs.display&&(r.display=t.attrs.display),r},fh=(t,e,o)=>{const s={},n=Fu(e.ht);void 0!==n&&(s.height=n);const r=(0,l.r)(e.customHeight);void 0!==r&&(s.customHeight=r);const i=(0,l.r)(e.hidden);void 0!==i&&(s.hidden=i);const a=Ru(e.outlineLevel);void 0!==a&&(s.outlineLevel=a);const c=(0,l.r)(e.collapsed);void 0!==c&&(s.collapsed=c);const d=Ru(e.s);void 0!==d&&(s.style=d),0!==Object.keys(s).length&&t.rowDimensions.set(o,(0,f.cr)(s))};function ph(t,e,o){const s=t.oleObjects.length>0||t.controls.length>0?` xmlns:mc="${c.q}" xmlns:x14="${c.xt}"`:"";if(o('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'),o(`<worksheet xmlns="${c.ft}" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"${s}>`),t.sheetProperties){const e=ef(t.sheetProperties);e&&o(e)}if(t.bodyExtras?.beforeSheetData)for(const e of t.bodyExtras.beforeSheetData)o(af(e));o(gh(t)),t.views.length>0&&o(Sh(t.views));const n=Fh(t);n&&o(n),t.columnDimensions.size>0&&o(Nh(t.columnDimensions)),o("<sheetData>");const r=[...t.rows.keys()].sort((t,e)=>t-e),i=new Set(r);for(const e of t.rowDimensions.keys())i.add(e);const a=[...i].sort((t,e)=>t-e);for(const s of a){const n=t.rows.get(s),r=t.rowDimensions.get(s);if(!(n&&0!==n.size||r))continue;const i=r?rf(r,s):"";if(!n||0===n.size){o(`<row r="${s}"${i}/>`);continue}const a=[...n.keys()].sort((t,e)=>t-e);o(`<row r="${s}"${i}>`);for(const s of a){const r=n.get(s);if(r){if(0!==r.styleId&&(!Number.isInteger(r.styleId)||r.styleId<0||r.styleId>=e.styles.cellXfs.length))throw xh(r,t.title,e.styles.cellXfs.length);o(wh(r,e))}}o("</row>")}if(o("</sheetData>"),t.sheetProtection){const e=tf(t.sheetProtection);e&&o(e)}if(t.protectedRanges.length>0&&o(Uh(t.protectedRanges)),t.scenarios){const e=Hh(t.scenarios);e&&o(e)}if(t.autoFilter&&o(tc(t.autoFilter)),t.sortState&&o(zl(t.sortState)),t.dataConsolidate){const e=_h(t.dataConsolidate);e&&o(e)}if(t.mergedCells.length>0){o(`<mergeCells count="${t.mergedCells.length}">`);for(const e of t.mergedCells)o(`<mergeCell ref="${(0,f.xr)(e)}"/>`);o("</mergeCells>")}if(t.customSheetViews.length>0&&o(lf(t.customSheetViews)),t.phoneticPr){const e=Zh(t.phoneticPr);e&&o(e)}for(const e of t.conditionalFormatting)o(Ah(e));if(t.dataValidations.length>0&&o(Oh(t.dataValidations)),t.hyperlinks.length>0&&o(nf(t.hyperlinks,e.rels)),t.printOptions){const e=zh(t.printOptions);e&&o(e)}if(t.pageMargins&&o(Vh(t.pageMargins)),t.pageSetup){const e=Bh(t.pageSetup);e&&o(e)}if(t.headerFooter){const e=Jh(t.headerFooter);e&&o(e)}if(t.rowBreaks.length>0&&o(Qh(t.rowBreaks,"rowBreaks")),t.colBreaks.length>0&&o(Qh(t.colBreaks,"colBreaks")),t.customProperties.length>0&&o(Yh(t.customProperties)),t.bodyExtras?.afterSheetData)for(const e of t.bodyExtras.afterSheetData)e.name!==df&&o(af(e));if(t.cellWatches.length>0&&o(of(t.cellWatches)),t.ignoredErrors.length>0&&o(sf(t.ignoredErrors)),t.smartTags.length>0&&o(Wh(t.smartTags)),t.drawing&&e.registerDrawing){const{rId:s}=e.registerDrawing(t.drawing);o(`<drawing r:id="${vh(s)}"/>`)}const l=t.threadedComments??[];if((t.legacyComments.length>0||l.length>0)&&e.registerComments){const{vmlRelId:s}=e.registerComments(t.legacyComments,l);o(`<legacyDrawing r:id="${vh(s)}"/>`)}else void 0!==t.legacyDrawingRId&&o(`<legacyDrawing r:id="${vh(t.legacyDrawingRId)}"/>`);if(void 0!==t.legacyDrawingHFRId&&o(`<legacyDrawingHF r:id="${vh(t.legacyDrawingHFRId)}"/>`),t.oleObjects.length>0&&o(ff(cf(t.oleObjects))),t.controls.length>0&&o(ff(pf(t.controls))),void 0!==t.backgroundPictureRId&&o(`<picture r:id="${vh(t.backgroundPictureRId)}"/>`),t.webPublishItems.length>0&&o(Kh(t.webPublishItems)),t.tables.length>0&&e.registerTable){o(`<tableParts count="${t.tables.length}">`);for(const s of t.tables){const{rId:t}=e.registerTable(s);o(`<tablePart r:id="${vh(t)}"/>`)}o("</tableParts>")}const d=hf(t);d&&o(d),o("</worksheet>")}const mh=u.r,vh=u.n,gh=t=>{let e=1/0,o=-1/0,s=1/0,n=-1/0;for(const[r,i]of t.rows)if(0!==i.size)for(const t of i.keys())r<e&&(e=r),r>o&&(o=r),t<s&&(s=t),t>n&&(n=t);if(!Number.isFinite(e))return'<dimension ref="A1"/>';const r=$h(s),i=$h(n);return`<dimension ref="${e===o&&s===n?`${r}${e}`:`${r}${e}:${i}${o}`}"/>`},xh=(t,e,o)=>new s.s(`Cell ${(0,i.c)(t)} on sheet "${e}" has styleId ${t.styleId}, outside this workbook's cellXfs pool [0, ${o}). A styleId is an index into one workbook's stylesheet; ids from registerCellStyle are valid only for the workbook that produced them.`),$h=t=>{let e=t,o="";for(;e>0;)e-=1,o=String.fromCharCode(65+e%26)+o,e=Math.floor(e/26);return o},wh=(t,e,o)=>{const n=(0,i.c)(t),a=0===t.styleId?"":` s="${t.styleId}"`,l=t.value;if(null===l)return`<c r="${n}"${a}/>`;if("object"==typeof l&&null!==l&&"formula"===l.kind)return yh(n,a,l);if("object"==typeof l&&null!==l&&"error"===l.kind){const t=l.code;if(!(0,g._)(t))throw new s.s(`worksheet: invalid error token at ${n}`);return`<c r="${n}"${a} t="e"><v>${t}</v></c>`}if("object"==typeof l&&null!==l&&"rich-text"===l.kind){const t=l.runs;let s=0;for(const e of t)s+=e.text.length;if((0,r.l)(s,"rich text",n),o){const e=o({kind:"rich-text",runs:t});return`<c r="${n}"${a} t="${e.type}">${e.xml}</c>`}return`<c r="${n}"${a} t="s"><v>${(0,p.t)(e.sharedStrings,t)}</v></c>`}if("number"==typeof l)return`<c r="${n}"${a}><v>${bh(l,n)}</v></c>`;if("boolean"==typeof l)return`<c r="${n}"${a} t="b"><v>${l?"1":"0"}</v></c>`;if("string"==typeof l){if((0,r.l)(l.length,"string",n),o){const t=o(l);return`<c r="${n}"${a} t="${t.type}">${t.xml}</c>`}return`<c r="${n}"${a} t="s"><v>${(0,p.n)(e.sharedStrings,l)}</v></c>`}if(l instanceof Date){const t=(0,m.r)(l,{epoch:e.date1904?"mac":"windows"});return`<c r="${n}"${a}><v>${bh(t,n)}</v></c>`}if("object"==typeof l&&null!==l&&"duration"===l.kind){const t=l.ms,e=(0,m.i)(t);return`<c r="${n}"${a}><v>${bh(e,n)}</v></c>`}throw new s.s(`worksheet: unsupported cell value kind at ${n}: ${kh(l)}`)},bh=(t,e)=>{if(!Number.isFinite(t))throw new s.s(`worksheet: cannot serialise non-finite number at ${e}`);return Number.isInteger(t)?t.toFixed(0):String(t)},yh=(t,e,o)=>{const n=[];"normal"!==o.t&&n.push(`t="${o.t}"`),void 0!==o.ref&&n.push(`ref="${vh(o.ref)}"`),void 0!==o.si&&n.push(`si="${o.si}"`),void 0!==o.r1&&n.push(`r1="${vh(o.r1)}"`),void 0!==o.r2&&n.push(`r2="${vh(o.r2)}"`),o.dt2D&&n.push('dt2D="1"'),o.dtr&&n.push('dtr="1"'),o.del1&&n.push('del1="1"'),o.del2&&n.push('del2="1"'),o.aca&&n.push('aca="1"'),o.ca&&n.push('ca="1"');const i=n.length>0?` ${n.join(" ")}`:"",a=(0,r.r)(o.formula,"worksheet: <f>",t);if(("normal"===o.t||"array"===o.t)&&0===a.length)throw new s.s(`worksheet: ${o.t} formula must not be empty at ${t}`);const l=(0,u.i)(a,"worksheet: formula",t),c=l.length>0?`<f${i}>${l}</f>`:`<f${i}/>`;let d="",h="";const f=o.cachedValue;if("error"===o.cachedValueType){if("string"!=typeof f||!(0,g._)(f))throw new s.s(`worksheet: invalid cached formula error at ${t}`);d=' t="e"',h=`<v>${f}</v>`}else if(void 0!==f)if("number"==typeof f)h=`<v>${bh(f,t)}</v>`;else if("boolean"==typeof f)d=' t="b"',h=`<v>${f?"1":"0"}</v>`;else{d=' t="str"',(0,r.l)(f.length,"cached formula result",t);const e=(0,u.i)(f,"worksheet: cached formula result",t);h=e.length>0?`<v>${e}</v>`:"<v/>"}return`<c r="${t}"${e}${d}>${c}${h}</c>`},kh=t=>{if(null===t)return"null";if("object"==typeof t&&null!==t){const e=t.kind;return e?`{ kind: "${e}" }`:"object"}return typeof t},Ch=(t,e)=>void 0===e?"":` ${t}="${e?"1":"0"}"`,Sh=t=>{const e=["<sheetViews>"];for(const o of t)e.push(Ih(o));return e.push("</sheetViews>"),e.join("")},Ih=t=>{let e="";e+=Ch("tabSelected",t.tabSelected),e+=Ch("showGridLines",t.showGridLines),e+=Ch("showRowColHeaders",t.showRowColHeaders),e+=Ch("showFormulas",t.showFormulas),e+=Ch("showZeros",t.showZeros),e+=Ch("rightToLeft",t.rightToLeft),e+=Ch("showOutlineSymbols",t.showOutlineSymbols),t.view&&(e+=` view="${t.view}"`),t.topLeftCell&&(e+=` topLeftCell="${vh(t.topLeftCell)}"`),void 0!==t.zoomScale&&(e+=` zoomScale="${t.zoomScale}"`),void 0!==t.zoomScaleNormal&&(e+=` zoomScaleNormal="${t.zoomScaleNormal}"`),e+=` workbookViewId="${t.workbookViewId}"`;const o=[];if(t.pane&&o.push(Th(t.pane)),t.selections)for(const e of t.selections)o.push(Ph(e));return 0===o.length?`<sheetView${e}/>`:`<sheetView${e}>${o.join("")}</sheetView>`},Th=t=>{let e="";return void 0!==t.xSplit&&(e+=` xSplit="${t.xSplit}"`),void 0!==t.ySplit&&(e+=` ySplit="${t.ySplit}"`),t.topLeftCell&&(e+=` topLeftCell="${vh(t.topLeftCell)}"`),t.activePane&&(e+=` activePane="${t.activePane}"`),e+=` state="${t.state}"`,`<pane${e}/>`},Ph=t=>{let e="";return t.pane&&(e+=` pane="${t.pane}"`),t.activeCell&&(e+=` activeCell="${vh(t.activeCell)}"`),t.sqref&&(e+=` sqref="${vh(t.sqref)}"`),`<selection${e}/>`},Fh=t=>{let e="";void 0!==t.baseColWidth&&(e+=` baseColWidth="${t.baseColWidth}"`),void 0!==t.defaultColumnWidth&&(e+=` defaultColWidth="${t.defaultColumnWidth}"`),e+=` defaultRowHeight="${t.defaultRowHeight??15}"`,void 0!==t.customHeight&&(e+=` customHeight="${t.customHeight?"1":"0"}"`),void 0!==t.zeroHeight&&(e+=` zeroHeight="${t.zeroHeight?"1":"0"}"`),void 0!==t.thickTop&&(e+=` thickTop="${t.thickTop?"1":"0"}"`),void 0!==t.thickBottom&&(e+=` thickBottom="${t.thickBottom?"1":"0"}"`);const o=t.outlineLevelRow??Rh(t.rowDimensions);o>0&&(e+=` outlineLevelRow="${o}"`);const s=t.outlineLevelCol??Rh(t.columnDimensions);return s>0&&(e+=` outlineLevelCol="${s}"`),`<sheetFormatPr${e}/>`},Rh=t=>{let e=0;for(const o of t.values())void 0!==o.outlineLevel&&o.outlineLevel>e&&(e=o.outlineLevel);return e},Nh=t=>{const e=[...t.values()].sort((t,e)=>t.min-e.min),o=["<cols>"];for(const t of e)o.push(Dh(t));return o.push("</cols>"),o.join("")},Lh=(t,e,o)=>{if(!Number.isFinite(o))throw new s.s(`worksheet: ${t} ${e} must be a finite number; got ${String(o)}`)},Dh=t=>{let e=` min="${t.min}" max="${t.max}"`;const o=t.width??9.140625;return Lh(`<col min="${t.min}" max="${t.max}">`,"width",o),e+=` width="${o}"`,void 0!==t.style&&(e+=` style="${t.style}"`),t.hidden&&(e+=' hidden="1"'),t.bestFit&&(e+=' bestFit="1"'),(t.customWidth||void 0!==t.width)&&(e+=' customWidth="1"'),void 0!==t.outlineLevel&&(e+=` outlineLevel="${t.outlineLevel}"`),t.collapsed&&(e+=' collapsed="1"'),`<col${e}/>`},Ah=t=>{let e=` sqref="${vh((0,f.hr)(t.sqref))}"`;if(void 0!==t.pivot&&(e+=` pivot="${t.pivot?"1":"0"}"`),0===t.rules.length)return`<conditionalFormatting${e}/>`;const o=[`<conditionalFormatting${e}>`];for(const e of t.rules)o.push(Eh(e));return o.push("</conditionalFormatting>"),o.join("")},Eh=t=>{let e=` type="${t.type}" priority="${t.priority}"`;void 0!==t.dxfId&&(e+=` dxfId="${t.dxfId}"`),t.stopIfTrue&&(e+=' stopIfTrue="1"'),t.operator&&(e+=` operator="${vh(t.operator)}"`),void 0!==t.text&&(e+=` text="${vh(t.text)}"`),void 0!==t.percent&&(e+=` percent="${t.percent?"1":"0"}"`),void 0!==t.bottom&&(e+=` bottom="${t.bottom?"1":"0"}"`),void 0!==t.rank&&(e+=` rank="${t.rank}"`),void 0!==t.aboveAverage&&(e+=` aboveAverage="${t.aboveAverage?"1":"0"}"`),void 0!==t.equalAverage&&(e+=` equalAverage="${t.equalAverage?"1":"0"}"`),void 0!==t.stdDev&&(e+=` stdDev="${t.stdDev}"`),void 0!==t.timePeriod&&(e+=` timePeriod="${t.timePeriod}"`);const o=[];for(const e of t.formulas){const s=`priority ${t.priority}`,n=(0,u.i)((0,r.r)(e,"worksheet: <formula>",s),"worksheet: conditional-formatting formula",s);o.push(`<formula>${n}</formula>`)}return t.innerXml&&o.push(t.innerXml),0===o.length?`<cfRule${e}/>`:`<cfRule${e}>${o.join("")}</cfRule>`},Oh=t=>{const e=[`<dataValidations count="${t.length}">`];for(const o of t)e.push(jh(o));return e.push("</dataValidations>"),e.join("")},jh=t=>{let e=` type="${t.type}"`;t.errorStyle&&(e+=` errorStyle="${t.errorStyle}"`),t.operator&&(e+=` operator="${t.operator}"`),t.allowBlank&&(e+=' allowBlank="1"'),t.showDropDown&&(e+=' showDropDown="1"'),t.showInputMessage&&(e+=' showInputMessage="1"'),t.showErrorMessage&&(e+=' showErrorMessage="1"'),void 0!==t.errorTitle&&(e+=` errorTitle="${vh(t.errorTitle)}"`),void 0!==t.error&&(e+=` error="${vh(t.error)}"`),void 0!==t.promptTitle&&(e+=` promptTitle="${vh(t.promptTitle)}"`),void 0!==t.prompt&&(e+=` prompt="${vh(t.prompt)}"`);const o=(0,f.hr)(t.sqref);e+=` sqref="${vh(o)}"`;const s=[];if(void 0!==t.formula1){const e=(0,u.i)((0,r.r)(t.formula1,"worksheet: <formula1>",o),"worksheet: data-validation formula1",o);s.push(`<formula1>${e}</formula1>`)}if(void 0!==t.formula2){const e=(0,u.i)((0,r.r)(t.formula2,"worksheet: <formula2>",o),"worksheet: data-validation formula2",o);s.push(`<formula2>${e}</formula2>`)}return 0===s.length?`<dataValidation${e}/>`:`<dataValidation${e}>${s.join("")}</dataValidation>`},Mh=(t,e)=>void 0===t?"":` ${e}="${t?"1":"0"}"`,zh=t=>{let e="";if(e+=Mh(t.horizontalCentered,"horizontalCentered"),e+=Mh(t.verticalCentered,"verticalCentered"),e+=Mh(t.headings,"headings"),e+=Mh(t.gridLines,"gridLines"),e+=Mh(t.gridLinesSet,"gridLinesSet"),0!==e.length)return`<printOptions${e}/>`},Vh=t=>`<pageMargins left="${t.left}" right="${t.right}" top="${t.top}" bottom="${t.bottom}" header="${t.header}" footer="${t.footer}"/>`,Bh=t=>{let e="";if(void 0!==t.paperSize&&(e+=` paperSize="${t.paperSize}"`),void 0!==t.scale&&(e+=` scale="${t.scale}"`),void 0!==t.firstPageNumber&&(e+=` firstPageNumber="${t.firstPageNumber}"`),void 0!==t.fitToWidth&&(e+=` fitToWidth="${t.fitToWidth}"`),void 0!==t.fitToHeight&&(e+=` fitToHeight="${t.fitToHeight}"`),void 0!==t.pageOrder&&(e+=` pageOrder="${t.pageOrder}"`),void 0!==t.orientation&&(e+=` orientation="${t.orientation}"`),e+=Mh(t.usePrinterDefaults,"usePrinterDefaults"),e+=Mh(t.blackAndWhite,"blackAndWhite"),e+=Mh(t.draft,"draft"),void 0!==t.cellComments&&(e+=` cellComments="${t.cellComments}"`),e+=Mh(t.useFirstPageNumber,"useFirstPageNumber"),void 0!==t.errors&&(e+=` errors="${t.errors}"`),void 0!==t.horizontalDpi&&(e+=` horizontalDpi="${t.horizontalDpi}"`),void 0!==t.verticalDpi&&(e+=` verticalDpi="${t.verticalDpi}"`),void 0!==t.copies&&(e+=` copies="${t.copies}"`),void 0!==t.paperHeight&&(e+=` paperHeight="${vh(t.paperHeight)}"`),void 0!==t.paperWidth&&(e+=` paperWidth="${vh(t.paperWidth)}"`),void 0!==t.rId&&(e+=` r:id="${vh(t.rId)}"`),0!==e.length)return`<pageSetup${e}/>`},Wh=t=>{const e=["<smartTags>"];for(const o of t){e.push(`<cellSmartTags r="${vh(o.ref)}">`);for(const t of o.tags){let o=` type="${t.type}"`;if(void 0!==t.deleted&&(o+=` deleted="${t.deleted?"1":"0"}"`),void 0!==t.xmlBased&&(o+=` xmlBased="${t.xmlBased?"1":"0"}"`),0!==t.properties.length){e.push(`<cellSmartTag${o}>`);for(const o of t.properties)e.push(`<cellSmartTagPr key="${vh(o.key)}" val="${vh(o.val)}"/>`);e.push("</cellSmartTag>")}else e.push(`<cellSmartTag${o}/>`)}e.push("</cellSmartTags>")}return e.push("</smartTags>"),e.join("")},Uh=t=>{const e=["<protectedRanges>"];for(const o of t){let t="";void 0!==o.password&&(t+=` password="${vh(o.password)}"`),t+=` sqref="${vh((0,f.hr)(o.sqref))}"`,t+=` name="${vh(o.name)}"`,void 0!==o.securityDescriptor&&(t+=` securityDescriptor="${vh(o.securityDescriptor)}"`),void 0!==o.algorithmName&&(t+=` algorithmName="${vh(o.algorithmName)}"`),void 0!==o.hashValue&&(t+=` hashValue="${vh(o.hashValue)}"`),void 0!==o.saltValue&&(t+=` saltValue="${vh(o.saltValue)}"`),void 0!==o.spinCount&&(t+=` spinCount="${o.spinCount}"`),e.push(`<protectedRange${t}/>`)}return e.push("</protectedRanges>"),e.join("")},Hh=t=>{if(0===t.scenarios.length&&void 0===t.current&&void 0===t.show&&void 0===t.sqref)return;let e="";if(void 0!==t.current&&(e+=` current="${t.current}"`),void 0!==t.show&&(e+=` show="${t.show}"`),void 0!==t.sqref&&(e+=` sqref="${vh((0,f.hr)(t.sqref))}"`),0===t.scenarios.length)return`<scenarios${e}/>`;const o=[];for(const e of t.scenarios)o.push(Xh(e));return`<scenarios${e}>${o.join("")}</scenarios>`},Xh=t=>{let e=` name="${vh(t.name)}"`;if(void 0!==t.locked&&(e+=` locked="${t.locked?"1":"0"}"`),void 0!==t.hidden&&(e+=` hidden="${t.hidden?"1":"0"}"`),e+=` count="${t.inputCells.length}"`,void 0!==t.user&&(e+=` user="${vh(t.user)}"`),void 0!==t.comment&&(e+=` comment="${vh(t.comment)}"`),0===t.inputCells.length)return`<scenario${e}/>`;const o=[];for(const e of t.inputCells)o.push(qh(e));return`<scenario${e}>${o.join("")}</scenario>`},qh=t=>{let e=` r="${vh(t.ref)}"`;return void 0!==t.deleted&&(e+=` deleted="${t.deleted?"1":"0"}"`),void 0!==t.undone&&(e+=` undone="${t.undone?"1":"0"}"`),e+=` val="${vh(t.val)}"`,void 0!==t.numFmtId&&(e+=` numFmtId="${t.numFmtId}"`),`<inputCells${e}/>`},_h=t=>{let e="";void 0!==t.function&&(e+=` function="${t.function}"`),void 0!==t.topLabels&&(e+=` topLabels="${t.topLabels?"1":"0"}"`),void 0!==t.leftLabels&&(e+=` leftLabels="${t.leftLabels?"1":"0"}"`),void 0!==t.link&&(e+=` link="${t.link?"1":"0"}"`),void 0!==t.startLabels&&(e+=` startLabels="${vh(t.startLabels)}"`);const o=t.dataRefs??[];if(0===e.length&&0===o.length)return;if(0===o.length)return`<dataConsolidate${e}/>`;const s=[`<dataRefs count="${o.length}">`];for(const t of o)s.push(Gh(t));return s.push("</dataRefs>"),`<dataConsolidate${e}>${s.join("")}</dataConsolidate>`},Gh=t=>{let e="";return void 0!==t.name&&(e+=` name="${vh(t.name)}"`),void 0!==t.ref&&(e+=` ref="${vh(t.ref)}"`),void 0!==t.sheet&&(e+=` sheet="${vh(t.sheet)}"`),void 0!==t.rId&&(e+=` r:id="${vh(t.rId)}"`),`<dataRef${e}/>`},Zh=t=>{let e="";if(void 0!==t.fontId&&(e+=` fontId="${t.fontId}"`),void 0!==t.type&&(e+=` type="${t.type}"`),void 0!==t.alignment&&(e+=` alignment="${t.alignment}"`),0!==e.length)return`<phoneticPr${e}/>`},Yh=t=>{const e=["<customProperties>"];for(const o of t){let t=` name="${vh(o.name)}"`;void 0!==o.rId&&(t+=` r:id="${vh(o.rId)}"`),e.push(`<customProperty${t}/>`)}return e.push("</customProperties>"),e.join("")},Kh=t=>{const e=[`<webPublishItems count="${t.length}">`];for(const o of t){let t=` id="${o.id}" divId="${vh(o.divId)}" sourceType="${o.sourceType}" destinationFile="${vh(o.destinationFile)}"`;void 0!==o.sourceRef&&(t+=` sourceRef="${vh(o.sourceRef)}"`),void 0!==o.sourceObject&&(t+=` sourceObject="${vh(o.sourceObject)}"`),void 0!==o.title&&(t+=` title="${vh(o.title)}"`),void 0!==o.autoRepublish&&(t+=` autoRepublish="${o.autoRepublish?"1":"0"}"`),e.push(`<webPublishItem${t}/>`)}return e.push("</webPublishItems>"),e.join("")},Qh=(t,e)=>{const o=t.reduce((t,e)=>t+(!1===e.man?0:1),0),s=[`<${e} count="${t.length}" manualBreakCount="${o}">`];for(const e of t){let t="";void 0!==e.id&&(t+=` id="${e.id}"`),void 0!==e.min&&(t+=` min="${e.min}"`),void 0!==e.max&&(t+=` max="${e.max}"`),void 0!==e.man&&(t+=` man="${e.man?"1":"0"}"`),void 0!==e.pt&&(t+=` pt="${e.pt?"1":"0"}"`),s.push(`<brk${t}/>`)}return s.push(`</${e}>`),s.join("")},Jh=t=>{let e="";e+=Mh(t.differentFirst,"differentFirst"),e+=Mh(t.differentOddEven,"differentOddEven"),e+=Mh(t.scaleWithDoc,"scaleWithDoc"),e+=Mh(t.alignWithMargins,"alignWithMargins");const o=[],s=(t,e)=>{void 0!==e&&o.push(`<${t}>${mh(e)}</${t}>`)};if(s("oddHeader",t.oddHeader),s("oddFooter",t.oddFooter),s("evenHeader",t.evenHeader),s("evenFooter",t.evenFooter),s("firstHeader",t.firstHeader),s("firstFooter",t.firstFooter),0!==e.length||0!==o.length)return 0===o.length?`<headerFooter${e}/>`:`<headerFooter${e}>${o.join("")}</headerFooter>`},tf=t=>{const e=["sheet","objects","scenarios","formatCells","formatColumns","formatRows","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","selectLockedCells","selectUnlockedCells","sort","autoFilter","pivotTables"];let o="";for(const s of e){const e=t[s];void 0!==e&&(o+=` ${s}="${e?"1":"0"}"`)}if(void 0!==t.algorithmName&&(o+=` algorithmName="${vh(t.algorithmName)}"`),void 0!==t.hashValue&&(o+=` hashValue="${vh(t.hashValue)}"`),void 0!==t.saltValue&&(o+=` saltValue="${vh(t.saltValue)}"`),void 0!==t.spinCount&&(o+=` spinCount="${t.spinCount}"`),0!==o.length)return`<sheetProtection${o}/>`},ef=t=>{let e="";void 0!==t.codeName&&(e+=` codeName="${vh(t.codeName)}"`),!1===t.enableFormatConditionsCalculation&&(e+=' enableFormatConditionsCalculation="0"'),!0===t.enableFormatConditionsCalculation&&(e+=' enableFormatConditionsCalculation="1"'),void 0!==t.filterMode&&(e+=` filterMode="${t.filterMode?"1":"0"}"`),void 0!==t.published&&(e+=` published="${t.published?"1":"0"}"`),void 0!==t.syncHorizontal&&(e+=` syncHorizontal="${t.syncHorizontal?"1":"0"}"`),void 0!==t.syncRef&&(e+=` syncRef="${vh(t.syncRef)}"`),void 0!==t.syncVertical&&(e+=` syncVertical="${t.syncVertical?"1":"0"}"`),void 0!==t.transitionEvaluation&&(e+=` transitionEvaluation="${t.transitionEvaluation?"1":"0"}"`),void 0!==t.transitionEntry&&(e+=` transitionEntry="${t.transitionEntry?"1":"0"}"`);const o=[];if(t.tabColor){let e="";void 0!==t.tabColor.rgb&&(e+=` rgb="${vh(t.tabColor.rgb)}"`),void 0!==t.tabColor.indexed&&(e+=` indexed="${t.tabColor.indexed}"`),void 0!==t.tabColor.theme&&(e+=` theme="${t.tabColor.theme}"`),void 0!==t.tabColor.auto&&(e+=` auto="${t.tabColor.auto?"1":"0"}"`),void 0!==t.tabColor.tint&&(e+=` tint="${t.tabColor.tint}"`),o.push(`<tabColor${e}/>`)}if(t.outlinePr){let e="";void 0!==t.outlinePr.applyStyles&&(e+=` applyStyles="${t.outlinePr.applyStyles?"1":"0"}"`),void 0!==t.outlinePr.summaryBelow&&(e+=` summaryBelow="${t.outlinePr.summaryBelow?"1":"0"}"`),void 0!==t.outlinePr.summaryRight&&(e+=` summaryRight="${t.outlinePr.summaryRight?"1":"0"}"`),void 0!==t.outlinePr.showOutlineSymbols&&(e+=` showOutlineSymbols="${t.outlinePr.showOutlineSymbols?"1":"0"}"`),o.push(`<outlinePr${e}/>`)}if(t.pageSetUpPr){let e="";void 0!==t.pageSetUpPr.autoPageBreaks&&(e+=` autoPageBreaks="${t.pageSetUpPr.autoPageBreaks?"1":"0"}"`),void 0!==t.pageSetUpPr.fitToPage&&(e+=` fitToPage="${t.pageSetUpPr.fitToPage?"1":"0"}"`),o.push(`<pageSetUpPr${e}/>`)}if(0!==e.length||0!==o.length)return 0===o.length?`<sheetPr${e}/>`:`<sheetPr${e}>${o.join("")}</sheetPr>`},of=t=>{const e=["<cellWatches>"];for(const o of t)e.push(`<cellWatch r="${vh(o.ref)}"/>`);return e.push("</cellWatches>"),e.join("")},sf=t=>{const e=["<ignoredErrors>"];for(const o of t){let t=` sqref="${vh((0,f.hr)(o.sqref))}"`;o.evalError&&(t+=' evalError="1"'),o.twoDigitTextYear&&(t+=' twoDigitTextYear="1"'),o.numberStoredAsText&&(t+=' numberStoredAsText="1"'),o.formula&&(t+=' formula="1"'),o.formulaRange&&(t+=' formulaRange="1"'),o.unlockedFormula&&(t+=' unlockedFormula="1"'),o.emptyCellReference&&(t+=' emptyCellReference="1"'),o.listDataValidation&&(t+=' listDataValidation="1"'),o.calculatedColumn&&(t+=' calculatedColumn="1"'),e.push(`<ignoredError${t}/>`)}return e.push("</ignoredErrors>"),e.join("")},nf=(t,e)=>{const o=["<hyperlinks>"],s=e?new Set(e.rels.map(t=>t.id)):void 0;let n=e?e.rels.length+1:1;for(const r of t){let t=` ref="${vh(r.ref)}"`;if(void 0!==r.target&&e&&s){let o=r.rId;if(!o){for(o=`rId${n}`;s.has(o);)n++,o=`rId${n}`;n++}s.has(o)||(e.rels.push({id:o,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",target:r.target,targetMode:"External"}),s.add(o)),t+=` r:id="${vh(o)}"`}void 0!==r.location&&(t+=` location="${vh(r.location)}"`),void 0!==r.tooltip&&(t+=` tooltip="${vh(r.tooltip)}"`),void 0!==r.display&&(t+=` display="${vh(r.display)}"`),o.push(`<hyperlink${t}/>`)}return o.push("</hyperlinks>"),o.join("")},rf=(t,e)=>{let o="";return void 0!==t.height&&(Lh(`<row r="${e}">`,"ht",t.height),o+=` ht="${t.height}"`),t.customHeight&&(o+=' customHeight="1"'),t.hidden&&(o+=' hidden="1"'),void 0!==t.outlineLevel&&(o+=` outlineLevel="${t.outlineLevel}"`),t.collapsed&&(o+=' collapsed="1"'),void 0!==t.style&&(o+=` s="${t.style}" customFormat="1"`),o},af=t=>(new TextDecoder).decode((0,h.t)(t,{xmlDeclaration:!1})),lf=t=>{const e=["<customSheetViews>"];for(const o of t){let t=` guid="${vh(o.guid)}"`;void 0!==o.scale&&(t+=` scale="${o.scale}"`),void 0!==o.colorId&&(t+=` colorId="${o.colorId}"`);const s=(e,o)=>{void 0!==e&&(t+=` ${o}="${e?"1":"0"}"`)};s(o.showPageBreaks,"showPageBreaks"),s(o.showFormulas,"showFormulas"),s(o.showGridLines,"showGridLines"),s(o.showRowCol,"showRowCol"),s(o.outlineSymbols,"outlineSymbols"),s(o.zeroValues,"zeroValues"),s(o.fitToPage,"fitToPage"),s(o.printArea,"printArea"),s(o.filter,"filter"),s(o.showAutoFilter,"showAutoFilter"),s(o.hiddenRows,"hiddenRows"),s(o.hiddenColumns,"hiddenColumns"),void 0!==o.state&&(t+=` state="${o.state}"`),s(o.filterUnique,"filterUnique"),void 0!==o.view&&(t+=` view="${o.view}"`),s(o.showRuler,"showRuler"),void 0!==o.topLeftCell&&(t+=` topLeftCell="${vh(o.topLeftCell)}"`);const n=[];if(o.pane&&n.push(Th(o.pane)),o.selections)for(const t of o.selections)n.push(Ph(t));if(o.rowBreaks&&o.rowBreaks.length>0&&n.push(Qh(o.rowBreaks,"rowBreaks")),o.colBreaks&&o.colBreaks.length>0&&n.push(Qh(o.colBreaks,"colBreaks")),o.pageMargins&&n.push(Vh(o.pageMargins)),o.printOptions){const t=zh(o.printOptions);t&&n.push(t)}if(o.pageSetup){const t=Bh(o.pageSetup);t&&n.push(t)}if(o.headerFooter){const t=Jh(o.headerFooter);t&&n.push(t)}0===n.length?e.push(`<customSheetView${t}/>`):e.push(`<customSheetView${t}>${n.join("")}</customSheetView>`)}return e.push("</customSheetViews>"),e.join("")},cf=t=>{const e=["<oleObjects>"];for(const o of t){let t="";void 0!==o.progId&&(t+=` progId="${vh(o.progId)}"`),void 0!==o.dvAspect&&(t+=` dvAspect="${o.dvAspect}"`),void 0!==o.link&&(t+=` link="${vh(o.link)}"`),void 0!==o.oleUpdate&&(t+=` oleUpdate="${o.oleUpdate}"`),void 0!==o.autoLoad&&(t+=` autoLoad="${o.autoLoad?"1":"0"}"`),t+=` shapeId="${o.shapeId}"`,void 0!==o.rId&&(t+=` r:id="${vh(o.rId)}"`),o.objectPr?e.push(`<oleObject${t}>${af(o.objectPr)}</oleObject>`):e.push(`<oleObject${t}/>`)}return e.push("</oleObjects>"),e.join("")},df=`{${c.ft}}extLst`,uf=new Set(["{78C0D931-6437-407d-A8EE-F0AAD7539E65}","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}"]),hf=t=>{const e=t.bodyExtras?.afterSheetData.find(t=>t.name===df)?.children??[],o=e.map(af),s=t.sparklineGroups??[];if(s.length>0){let t=0;e.forEach((e,o)=>{uf.has(e.attrs.uri??"")&&(t=o+1)}),o.splice(t,0,function(t){return[`<ext uri="${ic}" xmlns:x14="${c.xt}">`,`<x14:sparklineGroups xmlns:xm="${ac}">`,...t.map(bc),"</x14:sparklineGroups>","</ext>"].join("")}(s))}return o.length>0?`<extLst>${o.join("")}</extLst>`:void 0},ff=t=>`<mc:AlternateContent><mc:Choice Requires="x14">${t}</mc:Choice></mc:AlternateContent>`,pf=t=>{const e=["<controls>"];for(const o of t){let t=` shapeId="${o.shapeId}"`;void 0!==o.rId&&(t+=` r:id="${vh(o.rId)}"`),void 0!==o.name&&(t+=` name="${vh(o.name)}"`),o.controlPr?e.push(`<control${t}>${af(o.controlPr)}</control>`):e.push(`<control${t}/>`)}return e.push("</controls>"),e.join("")},mf=`{${c.ft}}chartsheet`,vf=`{${c.ft}}sheetPr`,gf=`{${c.ft}}sheetViews`,xf=`{${c.ft}}sheetView`,$f=`{${c.ft}}sheetProtection`,wf=`{${c.ft}}tabColor`;c.ft;const bf=`{${c.ft}}pageMargins`,yf=`{${c.ft}}pageSetup`,kf=`{${c.ft}}headerFooter`,Cf=`{${c.ft}}legacyDrawing`,Sf=`{${c.ft}}legacyDrawingHF`,If=`{${c.ft}}drawingHF`,Tf=`{${c.ft}}picture`,Pf=`{${c.ft}}webPublishItems`,Ff=`{${c.ft}}webPublishItem`,Rf=`{${c.ft}}customSheetViews`,Nf=`{${c.ft}}customSheetView`,Lf=u.n,Df=t=>{if(void 0!==t)return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0},Af=t=>{if(void 0===t)return;const e=Number.parseInt(t,10);return Number.isInteger(e)?e:void 0},Ef=t=>{const e={workbookViewId:Af(t.attrs.workbookViewId)??0},o=Df(t.attrs.tabSelected);void 0!==o&&(e.tabSelected=o);const s=Af(t.attrs.zoomScale);void 0!==s&&(e.zoomScale=s);const n=Df(t.attrs.zoomToFit);return void 0!==n&&(e.zoomToFit=n),e};function Of(t,e){const o=(0,d.n)(t);if(o.name!==mf)throw new s.s(`parseChartsheetXml: root is "${o.name}", expected ${mf}`);const n=(t=>({title:t,views:[{workbookViewId:0,zoomToFit:!0}],webPublishItems:[],customSheetViews:[]}))(e),r=(0,c.i)(o,vf);if(r){const t=(t=>{const e={},o=Df(t.attrs.published);void 0!==o&&(e.published=o),void 0!==t.attrs.codeName&&(e.codeName=t.attrs.codeName);const s=(0,c.i)(t,wf);if(s){const t=s.attrs.rgb,o=Af(s.attrs.indexed),n=Af(s.attrs.theme),r=Df(s.attrs.auto),i=s.attrs.tint,a=void 0!==i?Number.parseFloat(i):void 0,l=void 0!==a&&Number.isFinite(a)?a:void 0,c={...void 0!==t?{rgb:t.toUpperCase()}:{},...void 0!==o?{indexed:o}:{},...void 0!==n?{theme:n}:{},...void 0!==r?{auto:r}:{},...void 0!==l?{tint:l}:{}};Object.keys(c).length>0&&(e.tabColor=c)}return Object.keys(e).length>0?e:void 0})(r);t&&(n.properties=t)}const i=(0,c.i)(o,gf);if(i){const t=[];for(const e of(0,c.a)(i,xf))t.push(Ef(e));t.length>0&&(n.views=t)}const a=(0,c.i)(o,$f);a&&(n.protection=(t=>{const e={},o=Df(t.attrs.content);void 0!==o&&(e.content=o);const s=Df(t.attrs.objects);void 0!==s&&(e.objects=s),void 0!==t.attrs.algorithmName&&(e.algorithmName=t.attrs.algorithmName),void 0!==t.attrs.hashValue&&(e.hashValue=t.attrs.hashValue),void 0!==t.attrs.saltValue&&(e.saltValue=t.attrs.saltValue);const n=Af(t.attrs.spinCount);return void 0!==n&&(e.spinCount=n),e})(a));const l=(0,c.i)(o,Rf);if(l)for(const t of(0,c.a)(l,Nf)){const e=Mf(t);e&&n.customSheetViews.push(e)}const u=(0,c.i)(o,bf);if(u){const t=hu(u);t&&(n.pageMargins=t)}const h=(0,c.i)(o,yf);if(h){const t=gu(h);t&&(n.pageSetup=t)}const f=(0,c.i)(o,kf);if(f){const t=xu(f);t&&(n.headerFooter=t)}const p=(0,c.i)(o,Cf);if(p){const t=p.attrs[`{${c.lt}}id`];t&&(n.legacyDrawingRId=t)}const m=(0,c.i)(o,Sf);if(m){const t=m.attrs[`{${c.lt}}id`];t&&(n.legacyDrawingHFRId=t)}const v=(0,c.i)(o,If);if(v){const t=Vf(v);t&&(n.drawingHF=t)}const g=(0,c.i)(o,Tf);if(g){const t=g.attrs[`{${c.lt}}id`];t&&(n.backgroundPictureRId=t)}const x=(0,c.i)(o,Pf);if(x)for(const t of(0,c.a)(x,Ff)){const e=ou(t);e&&n.webPublishItems.push(e)}return n}const jf=["visible","hidden","veryHidden"],Mf=t=>{const e=t.attrs.guid;if(!e)return;const o={guid:e},s=Af(t.attrs.scale);void 0!==s&&(o.scale=s);const n=t.attrs.state;n&&jf.includes(n)&&(o.state=n);const r=Df(t.attrs.zoomToFit);void 0!==r&&(o.zoomToFit=r);const i=(0,c.i)(t,bf);if(i){const t=hu(i);t&&(o.pageMargins=t)}const a=(0,c.i)(t,yf);if(a){const t=gu(a);t&&(o.pageSetup=t)}const l=(0,c.i)(t,kf);if(l){const t=xu(l);t&&(o.headerFooter=t)}return o},zf=["lho","cho","rho","lhe","che","rhe","lhf","chf","rhf","lfo","cfo","rfo","lfe","cfe","rfe","lff","cff","rff"],Vf=t=>{const e=t.attrs[`{${c.lt}}id`];if(!e)return;const o={rId:e};for(const e of zf){const s=t.attrs[e];if(void 0===s)continue;const n=Number.parseInt(s,10);Number.isInteger(n)&&(o[e]=n)}return o},Bf=t=>{const e=[`workbookViewId="${t.workbookViewId}"`];return void 0!==t.tabSelected&&e.push(`tabSelected="${t.tabSelected?"1":"0"}"`),void 0!==t.zoomScale&&e.push(`zoomScale="${t.zoomScale}"`),void 0!==t.zoomToFit&&e.push(`zoomToFit="${t.zoomToFit?"1":"0"}"`),`<sheetView ${e.join(" ")}/>`};function Wf(t,e={}){const o=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',`<chartsheet xmlns="${c.ft}" xmlns:r="${c.lt}">`];t.properties&&o.push((t=>{const e=[];void 0!==t.published&&e.push(`published="${t.published?"1":"0"}"`),void 0!==t.codeName&&e.push(`codeName="${Lf(t.codeName)}"`);let o="";if(t.tabColor){const e=t.tabColor;let s="";void 0!==e.rgb&&(s+=` rgb="${Lf(e.rgb)}"`),void 0!==e.indexed&&(s+=` indexed="${e.indexed}"`),void 0!==e.theme&&(s+=` theme="${e.theme}"`),void 0!==e.auto&&(s+=` auto="${e.auto?"1":"0"}"`),void 0!==e.tint&&(s+=` tint="${e.tint}"`),o=`<tabColor${s}/>`}return""===o?`<sheetPr${e.length>0?` ${e.join(" ")}`:""}/>`:`<sheetPr${e.length>0?` ${e.join(" ")}`:""}>${o}</sheetPr>`})(t.properties)),o.push("<sheetViews>");for(const e of t.views)o.push(Bf(e));if(o.push("</sheetViews>"),t.protection&&o.push((t=>{const e=[];return void 0!==t.content&&e.push(`content="${t.content?"1":"0"}"`),void 0!==t.objects&&e.push(`objects="${t.objects?"1":"0"}"`),void 0!==t.algorithmName&&e.push(`algorithmName="${Lf(t.algorithmName)}"`),void 0!==t.hashValue&&e.push(`hashValue="${Lf(t.hashValue)}"`),void 0!==t.saltValue&&e.push(`saltValue="${Lf(t.saltValue)}"`),void 0!==t.spinCount&&e.push(`spinCount="${t.spinCount}"`),`<sheetProtection${e.length>0?` ${e.join(" ")}`:""}/>`})(t.protection)),t.customSheetViews.length>0&&o.push(Uf(t.customSheetViews)),t.pageMargins&&o.push(Vh(t.pageMargins)),t.pageSetup){const e=Bh(t.pageSetup);e&&o.push(e)}if(t.headerFooter){const e=Jh(t.headerFooter);e&&o.push(e)}return void 0!==e.drawingRId&&o.push(`<drawing r:id="${Lf(e.drawingRId)}"/>`),void 0!==t.legacyDrawingRId&&o.push(`<legacyDrawing r:id="${Lf(t.legacyDrawingRId)}"/>`),void 0!==t.legacyDrawingHFRId&&o.push(`<legacyDrawingHF r:id="${Lf(t.legacyDrawingHFRId)}"/>`),t.drawingHF&&o.push(Hf(t.drawingHF)),void 0!==t.backgroundPictureRId&&o.push(`<picture r:id="${Lf(t.backgroundPictureRId)}"/>`),t.webPublishItems.length>0&&o.push(Kh(t.webPublishItems)),o.push("</chartsheet>"),o.join("")}const Uf=t=>{const e=["<customSheetViews>"];for(const o of t){let t=` guid="${Lf(o.guid)}"`;void 0!==o.scale&&(t+=` scale="${o.scale}"`),void 0!==o.state&&(t+=` state="${o.state}"`),void 0!==o.zoomToFit&&(t+=` zoomToFit="${o.zoomToFit?"1":"0"}"`);const s=[];if(o.pageMargins&&s.push(Vh(o.pageMargins)),o.pageSetup){const t=Bh(o.pageSetup);t&&s.push(t)}if(o.headerFooter){const t=Jh(o.headerFooter);t&&s.push(t)}0===s.length?e.push(`<customSheetView${t}/>`):e.push(`<customSheetView${t}>${s.join("")}</customSheetView>`)}return e.push("</customSheetViews>"),e.join("")},Hf=t=>{let e=` r:id="${Lf(t.rId)}"`;for(const o of zf){const s=t[o];void 0!==s&&(e+=` ${o}="${s}"`)}return`<drawingHF${e}/>`};function Xf(t,e={}){return(new TextEncoder).encode(Wf(t,e))}const qf=`{${c.dt}}wsDr`,_f=`{${c.dt}}absoluteAnchor`,Gf=`{${c.dt}}oneCellAnchor`,Zf=`{${c.dt}}twoCellAnchor`,Yf=`{${c.dt}}from`,Kf=`{${c.dt}}to`,Qf=`{${c.dt}}pos`,Jf=`{${c.dt}}ext`,tp=`{${c.dt}}col`,ep=`{${c.dt}}colOff`,op=`{${c.dt}}row`,sp=`{${c.dt}}rowOff`,np=`{${c.dt}}graphicFrame`,rp=`{${c.dt}}clientData`,ip=`{${c.dt}}pic`,ap=`{${c.dt}}nvPicPr`,lp=`{${c.dt}}cNvPr`,cp=`{${c.dt}}blipFill`,dp=`{${c.dt}}spPr`,up=`{${c.H}}blip`,hp=`{${c.dt}}sp`,fp=`{${c.dt}}cxnSp`,pp=`{${c.dt}}nvSpPr`,mp=`{${c.dt}}nvCxnSpPr`,vp=`{${c.dt}}cNvSpPr`,gp=`{${c.dt}}cNvCxnSpPr`,xp=`{${c.dt}}spPr`,$p=`{${c.dt}}style`,wp=`{${c.dt}}txBody`,bp=`{${c.H}}lnRef`,yp=`{${c.H}}fillRef`,kp=`{${c.H}}effectRef`,Cp=`{${c.H}}fontRef`,Sp='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',Ip=u.n,Tp=(t,e)=>{const o=(0,c.i)(t,e);if(!o)return;const s=Number.parseInt(o.text??"",10);return Number.isInteger(s)?s:void 0},Pp=t=>{const e=Tp(t,tp),o=Tp(t,ep),s=Tp(t,op),n=Tp(t,sp);if(void 0!==e&&void 0!==s)return{col:e,colOff:o??0,row:s,rowOff:n??0}},Fp=t=>{const e=t.attrs.cx,o=t.attrs.cy;if(!e||!o)return;const s=Number.parseInt(e,10),n=Number.parseInt(o,10);return Number.isFinite(s)&&Number.isFinite(n)?{cx:s,cy:n}:void 0},Rp=t=>Object.keys(t.attrs).some(t=>t.startsWith(`{${c.lt}}`))||t.children.some(Rp),Np=t=>{if(!t)return;const e=Number.parseInt(t.attrs.idx??"",10);if(!Number.isInteger(e))return;const o=q(t);return o?{idx:e,color:o}:{idx:e}},Lp=t=>{const e=(0,c.i)(t,rp);if(e&&Object.keys(e.attrs).length>0)return;const o=(0,c.i)(t,hp),s=o?void 0:(0,c.i)(t,fp),n=o??s;if(!n)return;if(""!==(n.attrs.macro??"")||void 0!==n.attrs.fLocksText||void 0!==n.attrs.fPublished)return;if(Rp(n))return;const r=(0,c.i)(n,o?pp:mp),i=(0,c.i)(n,xp);if(!r||!i)return;const a={spPr:fe(i)};s&&(a.connector=!0);const l=(0,c.i)(r,lp);if(l){void 0!==l.attrs.name&&(a.name=l.attrs.name),void 0!==l.attrs.descr&&(a.descr=l.attrs.descr);const t=l.attrs.hidden;"1"!==t&&"true"!==t||(a.hidden=!0)}const d=(0,c.i)(r,o?vp:gp);if(d&&d.children.length>0)return;const u=o?d?.attrs.txBox:void 0;"1"!==u&&"true"!==u||(a.textBox=!0);const h=o?n.attrs.textlink:void 0;void 0!==h&&""!==h&&(a.textLink=h);const f=(0,c.i)(n,$p);if(f){const t=(t=>{const e=Np((0,c.i)(t,bp)),o=Np((0,c.i)(t,yp)),s=Np((0,c.i)(t,kp)),n=(0,c.i)(t,Cp),r=n?.attrs.idx;if(!(e&&o&&s&&n))return;if("major"!==r&&"minor"!==r&&"none"!==r)return;const i=q(n);return{lnRef:e,fillRef:o,effectRef:s,fontRef:i?{idx:r,color:i}:{idx:r}}})(f);if(!t)return;a.style=t}const p=o?(0,c.i)(n,wp):void 0;return p&&(a.txBody=le(p)),a},Dp=t=>{let e;if(t.name===_f){const o=(0,c.i)(t,Qf),s=(0,c.i)(t,Jf);if(!o||!s)return;const n=(t=>{const e=t.attrs.x,o=t.attrs.y;if(!e||!o)return;const s=Number.parseInt(e,10),n=Number.parseInt(o,10);return Number.isFinite(s)&&Number.isFinite(n)?{x:s,y:n}:void 0})(o),r=Fp(s);if(!n||!r)return;e={kind:"absolute",pos:n,ext:r}}else if(t.name===Gf){const o=(0,c.i)(t,Yf),s=(0,c.i)(t,Jf),n=o?Pp(o):void 0,r=s?Fp(s):void 0;if(!n||!r)return;e={kind:"oneCell",from:n,ext:r}}else{if(t.name!==Zf)return;{const o=(0,c.i)(t,Yf),s=(0,c.i)(t,Kf),n=o?Pp(o):void 0,r=s?Pp(s):void 0;if(!n||!r)return;const i=t.attrs.editAs;e={kind:"twoCell",from:n,to:r,..."twoCell"===i||"oneCell"===i||"absolute"===i?{editAs:i}:{}}}}const o=(t=>{const e=(0,c.i)(t,np);if(!e)return;const o=(0,c.i)(e,"{http://schemas.openxmlformats.org/drawingml/2006/main}graphic"),s=o?(0,c.i)(o,"{http://schemas.openxmlformats.org/drawingml/2006/main}graphicData"):void 0;if(!s)return;const n=(0,c.i)(s,"{http://schemas.openxmlformats.org/drawingml/2006/chart}chart");if(n){const t=n.attrs[`{${c.lt}}id`];return void 0!==t?{rId:t}:{}}const r=(0,c.i)(s,"{http://schemas.microsoft.com/office/drawing/2014/chartex}chart");if(r){const t=r.attrs[`{${c.lt}}id`];return void 0!==t?{rId:t,isCx:!0}:{isCx:!0}}})(t);if(o)return{anchor:e,content:{kind:"chart",chart:o}};const s=(t=>{const e=(0,c.i)(t,ip);if(!e)return;const o={},s=(0,c.i)(e,ap);if(s){const t=(0,c.i)(s,lp);if(t){void 0!==t.attrs.name&&(o.name=t.attrs.name),void 0!==t.attrs.descr&&(o.descr=t.attrs.descr);const e=t.attrs.hidden;"1"!==e&&"true"!==e||(o.hidden=!0)}}const n=(0,c.i)(e,cp);if(n){const t=(0,c.i)(n,up)?.attrs[`{${c.lt}}embed`];t&&(o.rId=t)}const r=(0,c.i)(e,dp);return r&&(o.spPr=fe(r)),o})(t);if(s)return{anchor:e,content:{kind:"picture",picture:s}};const n=Lp(t);if(n)return{anchor:e,content:{kind:"shape",shape:n}};const r=new Set([Yf,Kf,Qf,Jf,rp]);for(const o of t.children)if(!r.has(o.name))return{anchor:e,content:{kind:"unsupported",rawTag:o.name},raw:t};return{anchor:e,content:{kind:"unsupported",rawTag:""},raw:t}};function Ap(t){const e=(0,d.n)(t);if(e.name!==qf)throw new s.s(`parseDrawingXml: root is "${e.name}", expected wsDr`);const o=[],n=[];for(const t of e.children){if(t.name===_f||t.name===Gf||t.name===Zf){const e=Dp(t);e&&o.push(e);continue}n.push({beforeItem:o.length,node:t})}const r=(0,a.o)(o);return n.length>0&&(r.rawChildren=n),r}const Ep={[c.dt]:"xdr",[c.H]:"a"},Op=t=>(new TextDecoder).decode((0,h.t)(t,{xmlDeclaration:!1,inScopePrefixes:Ep}));function jp(t){const e=new Set,o=t=>{for(const[o,s]of Object.entries(t.attrs))o.startsWith(`{${c.lt}}`)&&s.length>0&&e.add(s);for(const e of t.children)o(e)};for(const e of t.items)e.raw&&o(e.raw);for(const e of t.rawChildren??[])o(e.node);return e}const Mp=(t,e)=>`<xdr:${t}><xdr:col>${e.col}</xdr:col><xdr:colOff>${e.colOff}</xdr:colOff><xdr:row>${e.row}</xdr:row><xdr:rowOff>${e.rowOff}</xdr:rowOff></xdr:${t}>`,zp=(t,e)=>e.color?`<a:${t} idx="${e.idx}">${Z(e.color)}</a:${t}>`:`<a:${t} idx="${e.idx}"/>`,Vp=(t,e,o)=>{const s=t.rId??"",n=!0===t.isCx,r=n?"http://schemas.microsoft.com/office/drawing/2014/chartex":"http://schemas.openxmlformats.org/drawingml/2006/chart",i=n?`<cx:chart xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:r="${c.lt}" r:id="${Ip(s)}"/>`:`<c:chart xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:r="${c.lt}" r:id="${Ip(s)}"/>`;return["<xdr:graphicFrame>",`<xdr:nvGraphicFramePr><xdr:cNvPr id="${e+2}" name="Chart ${e+1}"/><xdr:cNvGraphicFramePr/></xdr:nvGraphicFramePr>`,`<xdr:xfrm><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></xdr:xfrm>`,`<a:graphic><a:graphicData uri="${r}">`,i,"</a:graphicData></a:graphic>","</xdr:graphicFrame>"].join("")},Bp=(t,e)=>{if(t.raw)return Op(t.raw);const o=t.anchor;let s="",n={cx:5486400,cy:3200400};"absolute"===o.kind?(s=`<xdr:pos x="${o.pos.x}" y="${o.pos.y}"/><xdr:ext cx="${o.ext.cx}" cy="${o.ext.cy}"/>`,n=o.ext):"oneCell"===o.kind?(s=`${Mp("from",o.from)}<xdr:ext cx="${o.ext.cx}" cy="${o.ext.cy}"/>`,n=o.ext):s=`${Mp("from",o.from)}${Mp("to",o.to)}`;let r="";r="chart"===t.content.kind?Vp(t.content.chart,e,n):"picture"===t.content.kind?((t,e)=>{const o=t.rId??"",s=`id="${e+2}"`,n=`name="${Ip(t.name??`Picture ${e+1}`)}"`,r=void 0!==t.descr?` descr="${Ip(t.descr)}"`:"",i=t.hidden?' hidden="1"':"",a=t.spPr?pe(t.spPr,"xdr:spPr"):'<xdr:spPr><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></xdr:spPr>';return["<xdr:pic>","<xdr:nvPicPr>",`<xdr:cNvPr ${s} ${n}${r}${i}/>`,"<xdr:cNvPicPr/>","</xdr:nvPicPr>","<xdr:blipFill>",`<a:blip xmlns:r="${c.lt}" r:embed="${Ip(o)}"/>`,"<a:stretch><a:fillRect/></a:stretch>","</xdr:blipFill>",a,"</xdr:pic>"].join("")})(t.content.picture,e):"shape"===t.content.kind?((t,e)=>{const o=t.connector?"cxnSp":"sp",s=t.connector?"Straight Connector":t.textBox?"TextBox":"Shape",n=`<xdr:cNvPr id="${e+2}" name="${Ip(t.name??`${s} ${e+1}`)}"${void 0!==t.descr?` descr="${Ip(t.descr)}"`:""}${t.hidden?' hidden="1"':""}/>`,r=t.connector?`<xdr:nvCxnSpPr>${n}<xdr:cNvCxnSpPr/></xdr:nvCxnSpPr>`:`<xdr:nvSpPr>${n}<xdr:cNvSpPr${t.textBox?' txBox="1"':""}/></xdr:nvSpPr>`;return[`<xdr:${o} macro=""${t.connector||void 0===t.textLink?"":` textlink="${Ip(t.textLink)}"`}>`,r,pe(t.spPr,"xdr:spPr"),t.style?(i=t.style,["<xdr:style>",zp("lnRef",i.lnRef),zp("fillRef",i.fillRef),zp("effectRef",i.effectRef),i.fontRef.color?`<a:fontRef idx="${i.fontRef.idx}">${Z(i.fontRef.color)}</a:fontRef>`:`<a:fontRef idx="${i.fontRef.idx}"/>`,"</xdr:style>"].join("")):"",!t.connector&&t.txBody?ce(t.txBody,"xdr:txBody"):"",`</xdr:${o}>`].join("");var i})(t.content.shape,e):Vp({},e,n);const i="twoCell"===o.kind&&o.editAs?` editAs="${o.editAs}"`:"",a="absolute"===o.kind?"absoluteAnchor":"oneCell"===o.kind?"oneCellAnchor":"twoCellAnchor";return`<xdr:${a}${i}>${s}${r}<xdr:clientData/></xdr:${a}>`};function Wp(t){return(new TextEncoder).encode(function(t){const e=[Sp,`<xdr:wsDr xmlns:xdr="${c.dt}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">`],o=t.rawChildren??[],s=t=>{for(const s of o)s.beforeItem===t&&e.push(Op(s.node))};for(let o=0;o<t.items.length;o++){s(o);const n=t.items[o];n&&e.push(Bp(n,o))}return s(t.items.length),e.push("</xdr:wsDr>"),e.join("")}(t))}const Up=`{${c.ft}}comments`,Hp=`{${c.ft}}authors`,Xp=`{${c.ft}}author`,qp=`{${c.ft}}commentList`,_p=`{${c.ft}}comment`,Gp=`{${c.ft}}text`,Zp=`{${c.ft}}t`,Yp=`{${c.ft}}r`,Kp='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',Qp=u.r,Jp=u.n,tm=t=>{const e=(0,c.i)(t,Zp);if(e)return e.text??"";let o="";for(const e of t.children)if(e.name===Yp){const t=(0,c.i)(e,Zp);t?.text&&(o+=t.text)}else e.name===Zp&&e.text&&(o+=e.text);return o};function em(t){const e=(0,d.n)(t);if(e.name!==Up)throw new s.s(`parseCommentsXml: root is "${e.name}", expected comments`);const o=[],n=(0,c.i)(e,Hp);if(n)for(const t of(0,c.a)(n,Xp))o.push(t.text??"");const r=[],i=(0,c.i)(e,qp);if(!i)return r;for(const t of(0,c.a)(i,_p)){const e=t.attrs.ref,n=t.attrs.authorId;if(!e)throw new s.s("parseCommentsXml: <comment> missing @ref");const i=o[void 0!==n?Number.parseInt(n,10):0]??"",a=(0,c.i)(t,Gp),l=a?tm(a):"";r.push((0,f.nr)({ref:e,author:i,text:l}))}return r}function om(t){return(new TextEncoder).encode(function(t){const e=new Map,o=[];for(const s of t)e.has(s.author)||(e.set(s.author,o.length),o.push(s.author));const s=t.some(t=>void 0!==t.uid)?` xmlns:mc="${c.q}" mc:Ignorable="xr" xmlns:xr="${c.Ct}"`:"",n=[Kp,`<comments xmlns="${c.ft}"${s}><authors>`];for(const t of o)n.push(`<author>${Qp(t)}</author>`);n.push("</authors><commentList>");for(const o of t){const t=e.get(o.author)??0,s=void 0!==o.uid?` shapeId="0" xr:uid="${Jp(o.uid)}"`:"";n.push(`<comment ref="${Jp(o.ref)}" authorId="${t}"${s}><text><t>${Qp(o.text)}</t></text></comment>`)}return n.push("</commentList></comments>"),n.join("")}(t))}function sm(t=[]){const e=['<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel">','<o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout>','<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">','<v:stroke joinstyle="miter"/>','<v:path gradientshapeok="t" o:connecttype="rect"/>',"</v:shapetype>"];let o=1026;if(0===t.length)e.push('<v:shape type="#_x0000_t202" style="visibility:hidden"><x:ClientData ObjectType="Note"/></v:shape>');else for(const s of t){const t=s.ref.split(":")[0]??s.ref;let r=0,i=0;try{const e=(0,n.s)(t);r=e.row-1,i=e.col-1}catch{}const a=`_x0000_s${String(o).padStart(4,"0")}`;o++,e.push(`<v:shape id="${a}" type="#_x0000_t202" style="position:absolute;margin-left:59.25pt;margin-top:1.5pt;width:108pt;height:59.25pt;z-index:1;visibility:hidden" fillcolor="#ffffe1" o:insetmode="auto">`,'<v:fill color2="#ffffe1"/>','<v:shadow color="black" obscured="t"/>','<v:path o:connecttype="none"/>','<v:textbox style="mso-direction-alt:auto"><div style="text-align:left"/></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>","<x:AutoFill>False</x:AutoFill>",`<x:Row>${r}</x:Row>`,`<x:Column>${i}</x:Column>`,"</x:ClientData>","</v:shape>")}return e.push("</xml>"),(new TextEncoder).encode(e.join(""))}const nm=`{${c.gt}}ThreadedComments`,rm=`{${c.gt}}threadedComment`,im=`{${c.gt}}text`,am=`{${c.gt}}mentions`,lm=`{${c.gt}}mention`,cm=`{${c.gt}}personList`,dm=`{${c.gt}}person`,um="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",hm="application/vnd.ms-excel.threadedcomments+xml",fm="http://schemas.microsoft.com/office/2017/10/relationships/person",pm="application/vnd.ms-excel.person+xml",mm='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',vm=`xmlns="${c.gt}" xmlns:x="${c.ft}"`,gm=(t,e,o)=>{const n=t[e];if(void 0===n)throw new s.s(`${o}: missing @${e}`);return n},xm=(t,e)=>{const o=Number.parseInt(t,10);if(!Number.isInteger(o)||o<0)throw new s.s(`${e}: "${t}" is not a non-negative integer`);return o};function $m(t){const e=(0,d.n)(t);if(e.name!==nm)throw new s.s(`parseThreadedCommentsXml: root is "${e.name}", expected ThreadedComments`);const o=[];for(const t of(0,c.a)(e,rm)){const e="parseThreadedCommentsXml: <threadedComment>",s={id:gm(t.attrs,"id",e),ref:gm(t.attrs,"ref",e),personId:gm(t.attrs,"personId",e),text:(0,c.i)(t,im)?.text??""},n=t.attrs.dT;void 0!==n&&(s.created=n);const r=t.attrs.parentId;void 0!==r&&(s.parentId=r);const i=t.attrs.done;"1"!==i&&"true"!==i||(s.done=!0);const a=(0,c.i)(t,am);if(a){const t=[];for(const e of(0,c.a)(a,lm)){const o="parseThreadedCommentsXml: <mention>";t.push({personId:gm(e.attrs,"mentionpersonId",o),mentionId:gm(e.attrs,"mentionId",o),startIndex:xm(gm(e.attrs,"startIndex",o),o),length:xm(gm(e.attrs,"length",o),o)})}t.length>0&&(s.mentions=t)}o.push(s)}return o}function wm(t){const e=[mm,`<ThreadedComments ${vm}>`];for(const o of t){let t=` ref="${(0,u.n)(o.ref)}"`;if(void 0!==o.created&&(t+=` dT="${(0,u.n)(o.created)}"`),t+=` personId="${(0,u.n)(o.personId)}" id="${(0,u.n)(o.id)}"`,void 0!==o.parentId&&(t+=` parentId="${(0,u.n)(o.parentId)}"`),o.done&&(t+=' done="1"'),e.push(`<threadedComment${t}><text>${(0,u.r)(o.text)}</text>`),o.mentions&&o.mentions.length>0){e.push("<mentions>");for(const t of o.mentions)e.push(`<mention mentionpersonId="${(0,u.n)(t.personId)}" mentionId="${(0,u.n)(t.mentionId)}" startIndex="${t.startIndex}" length="${t.length}"/>`);e.push("</mentions>")}e.push("</threadedComment>")}return e.push("</ThreadedComments>"),(new TextEncoder).encode(e.join(""))}function bm(t){const e=(0,d.n)(t);if(e.name!==cm)throw new s.s(`parsePersonsXml: root is "${e.name}", expected personList`);const o=[];for(const t of(0,c.a)(e,dm)){const e="parsePersonsXml: <person>",s={displayName:gm(t.attrs,"displayName",e),id:gm(t.attrs,"id",e)},n=t.attrs.userId;void 0!==n&&(s.userId=n);const r=t.attrs.providerId;void 0!==r&&(s.providerId=r),o.push(s)}return o}function ym(t){const e=[mm,`<personList ${vm}>`];for(const o of t){let t=` displayName="${(0,u.n)(o.displayName)}" id="${(0,u.n)(o.id)}"`;void 0!==o.userId&&(t+=` userId="${(0,u.n)(o.userId)}"`),void 0!==o.providerId&&(t+=` providerId="${(0,u.n)(o.providerId)}"`),e.push(`<person${t}/>`)}return e.push("</personList>"),(new TextEncoder).encode(e.join(""))}const km=t=>`tc=${t}`;function Cm(t){const e=new Map;for(const o of t){if(void 0===o.parentId)continue;const t=e.get(o.parentId);t?t.push(o):e.set(o.parentId,[o])}const o=[];for(const s of t){if(void 0!==s.parentId)continue;let t="[Threaded comment]\n\nYour version of Excel allows you to read this threaded comment; however, any edits to it will get removed if the file is opened in a newer version of Excel. Learn more: https://go.microsoft.com/fwlink/?linkid=870924\n\nComment:\n "+s.text;for(const o of e.get(s.id)??[])t+=`\nReply:\n ${o.text}`;o.push({ref:s.ref,author:km(s.id),text:t,uid:s.id})}return o}const Sm=`{${c.ft}}table`,Im=`{${c.ft}}tableColumns`,Tm=`{${c.ft}}tableColumn`,Pm=`{${c.ft}}tableStyleInfo`,Fm=`{${c.ft}}calculatedColumnFormula`,Rm=`{${c.ft}}totalsRowFormula`,Nm=`{${c.ft}}autoFilter`,Lm=`{${c.ft}}sortState`,Dm='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',Am=u.n,Em=t=>{if(void 0!==t)return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0},Om=t=>{if(void 0===t)return;const e=Number.parseInt(t,10);return Number.isInteger(e)?e:void 0};function jm(t){const e=(0,d.n)(t);if(e.name!==Sm)throw new s.s(`parseTableXml: root is "${e.name}", expected table`);const o=e.attrs.id,n=e.attrs.displayName,r=e.attrs.ref;if(!o||!n||!r)throw new s.s("parseTableXml: <table> missing required @id / @displayName / @ref");const i=Number.parseInt(o,10);if(!Number.isInteger(i)||i<1)throw new s.s(`parseTableXml: <table id="${o}"> is not a positive integer`);const a=[],l=(0,c.i)(e,Im);if(l)for(const t of(0,c.a)(l,Tm))a.push(Mm(t));const u=(0,c.i)(e,Pm),h=(0,c.i)(e,Nm),f=Om(e.attrs.totalsRowCount),p=Om(e.attrs.headerRowCount),m=Em(e.attrs.totalsRowShown),v={id:i,displayName:n,ref:r,columns:a};if(e.attrs.name&&(v.name=e.attrs.name),void 0!==p&&(v.headerRowCount=p),void 0!==f&&(v.totalsRowCount=f),void 0!==m&&(v.totalsRowShown=m),u){const t=zm(u);t&&(v.styleInfo=t)}if(h){const t=Jl(h);t&&(v.autoFilter=t)}const x=(0,g.r)(v),$=(0,c.i)(e,Lm),w=$?Ml($):void 0;return w&&(x.sortState=w),x}const Mm=t=>{const e=Om(t.attrs.id),o=t.attrs.name;if(void 0===e||!o)throw new s.s("parseTableXml: <tableColumn> missing @id / @name");const n=(0,g.n)({id:e,name:(0,u.a)(o)}),r=t.attrs.totalsRowFunction;r&&(n.totalsRowFunction=r),t.attrs.totalsRowLabel&&(n.totalsRowLabel=(0,u.a)(t.attrs.totalsRowLabel));const i=(0,c.i)(t,Fm)?.text;i&&(n.calculatedColumnFormula=i);const a=(0,c.i)(t,Rm)?.text;return a&&(n.totalsRowFormula=a),n},zm=t=>{const e={};t.attrs.name&&(e.name=t.attrs.name);const o=Em(t.attrs.showFirstColumn);void 0!==o&&(e.showFirstColumn=o);const s=Em(t.attrs.showLastColumn);void 0!==s&&(e.showLastColumn=s);const n=Em(t.attrs.showRowStripes);void 0!==n&&(e.showRowStripes=n);const r=Em(t.attrs.showColumnStripes);return void 0!==r&&(e.showColumnStripes=r),Object.keys(e).length>0?e:void 0};function Vm(t){return(new TextEncoder).encode(function(t){let e=` id="${t.id}"`;void 0!==t.name&&(e+=` name="${Am(t.name)}"`);e+=` displayName="${Am(t.displayName)}"`,e+=` ref="${Am(t.ref)}"`,void 0!==t.headerRowCount&&(e+=` headerRowCount="${t.headerRowCount}"`);void 0!==t.totalsRowCount&&(e+=` totalsRowCount="${t.totalsRowCount}"`);void 0!==t.totalsRowShown&&(e+=` totalsRowShown="${t.totalsRowShown?"1":"0"}"`);const o=[Dm,`<table xmlns="${c.ft}"${e}>`];t.autoFilter&&o.push(tc(t.autoFilter));t.sortState&&o.push(zl(t.sortState));o.push(`<tableColumns count="${t.columns.length}">`);for(const e of t.columns)o.push(Bm(e));o.push("</tableColumns>"),t.styleInfo&&o.push(Wm(t.styleInfo));return o.push("</table>"),o.join("")}(t))}const Bm=t=>{let e=` id="${t.id}" name="${Am((0,u.t)(t.name))}"`;t.totalsRowFunction&&(e+=` totalsRowFunction="${t.totalsRowFunction}"`),void 0!==t.totalsRowLabel&&(e+=` totalsRowLabel="${Am((0,u.t)(t.totalsRowLabel))}"`);let o="";return void 0!==t.calculatedColumnFormula&&(o+=`<calculatedColumnFormula>${(0,u.r)(t.calculatedColumnFormula)}</calculatedColumnFormula>`),void 0!==t.totalsRowFormula&&(o+=`<totalsRowFormula>${(0,u.r)(t.totalsRowFormula)}</totalsRowFormula>`),""===o?`<tableColumn${e}/>`:`<tableColumn${e}>${o}</tableColumn>`},Wm=t=>{let e="";return void 0!==t.name&&(e+=` name="${Am(t.name)}"`),void 0!==t.showFirstColumn&&(e+=` showFirstColumn="${t.showFirstColumn?"1":"0"}"`),void 0!==t.showLastColumn&&(e+=` showLastColumn="${t.showLastColumn?"1":"0"}"`),void 0!==t.showRowStripes&&(e+=` showRowStripes="${t.showRowStripes?"1":"0"}"`),void 0!==t.showColumnStripes&&(e+=` showColumnStripes="${t.showColumnStripes?"1":"0"}"`),`<tableStyleInfo${e}/>`},Um=(0,c.Nt)(c.ft,"styleSheet"),Hm=(0,c.Nt)(c.ft,"fonts"),Xm=(0,c.Nt)(c.ft,"fills"),qm=(0,c.Nt)(c.ft,"borders"),_m=(0,c.Nt)(c.ft,"numFmts"),Gm=(0,c.Nt)(c.ft,"numFmt"),Zm=(0,c.Nt)(c.ft,"cellStyleXfs"),Ym=(0,c.Nt)(c.ft,"cellXfs"),Km=(0,c.Nt)(c.ft,"cellStyles"),Qm=(0,c.Nt)(c.ft,"cellStyle"),Jm=(0,c.Nt)(c.ft,"dxfs"),tv=(0,c.Nt)(c.ft,"dxf"),ev=(0,c.Nt)(c.ft,"xf");function ov(t){return(0,h.t)(function(t){const e=(0,c.n)(Um);if(t.numFmts.size>0){const o=(0,c.n)(_m,{count:String(t.numFmts.size)}),s=[...t.numFmts.keys()].sort((t,e)=>t-e);for(const e of s){const s=t.numFmts.get(e);void 0!==s&&o.children.push((0,c.n)(Gm,{numFmtId:String(e),formatCode:s}))}e.children.push(o)}const o=(0,c.n)(Hm,{count:String(t.fonts.length)});for(const e of t.fonts)o.children.push((0,l.n)(e,D));e.children.push(o);const s=(0,c.n)(Xm,{count:String(t.fills.length)});for(const e of t.fills)s.children.push(N(e));e.children.push(s);const n=(0,c.n)(qm,{count:String(t.borders.length)});for(const e of t.borders)n.children.push((0,l.n)(e,k));e.children.push(n);const r=(0,c.n)(Zm,{count:String(Math.max(t.cellStyleXfs.length,1))});if(0===t.cellStyleXfs.length)r.children.push((0,c.n)(ev,{numFmtId:"0",fontId:"0",fillId:"0",borderId:"0"}));else for(const e of t.cellStyleXfs)r.children.push(sv(e));e.children.push(r);const i=(0,c.n)(Ym,{count:String(Math.max(t.cellXfs.length,1))});if(0===t.cellXfs.length)i.children.push((0,c.n)(ev,{numFmtId:"0",fontId:"0",fillId:"0",borderId:"0",xfId:"0"}));else for(const e of t.cellXfs)i.children.push(sv(e));if(e.children.push(i),t.namedStyles&&t.namedStyles.length>0){const o=(0,c.n)(Km,{count:String(t.namedStyles.length)});for(const e of t.namedStyles){const t={name:e.name,xfId:String(e.xfId)};void 0!==e.builtinId&&(t.builtinId=String(e.builtinId)),void 0!==e.iLevel&&(t.iLevel=String(e.iLevel)),e.hidden&&(t.hidden="1"),e.customBuiltin&&(t.customBuiltin="1"),o.children.push((0,c.n)(Qm,t))}e.children.push(o)}const a=(0,x.n)(t);{const t=(0,c.n)(Jm,{count:String(a.length)});for(const e of a){const o=(0,c.n)(tv);e.font&&o.children.push((0,l.n)(e.font,D)),e.numFmt&&o.children.push((0,l.n)(e.numFmt,A)),e.fill&&o.children.push(N(e.fill)),e.alignment&&o.children.push((0,l.n)(e.alignment,w)),e.border&&o.children.push((0,l.n)(e.border,k)),e.protection&&o.children.push((0,l.n)(e.protection,E)),t.children.push(o)}e.children.push(t)}if(t.stylesXmlTail)for(const o of t.stylesXmlTail)e.children.push(o);return e}(t))}const sv=t=>{const e={numFmtId:String(t.numFmtId),fontId:String(t.fontId),fillId:String(t.fillId),borderId:String(t.borderId)};void 0!==t.xfId&&(e.xfId=String(t.xfId)),void 0!==t.applyFont&&(e.applyFont=t.applyFont?"1":"0"),void 0!==t.applyFill&&(e.applyFill=t.applyFill?"1":"0"),void 0!==t.applyBorder&&(e.applyBorder=t.applyBorder?"1":"0"),void 0!==t.applyNumberFormat&&(e.applyNumberFormat=t.applyNumberFormat?"1":"0"),void 0!==t.applyAlignment&&(e.applyAlignment=t.applyAlignment?"1":"0"),void 0!==t.applyProtection&&(e.applyProtection=t.applyProtection?"1":"0"),void 0!==t.pivotButton&&(e.pivotButton=t.pivotButton?"1":"0"),void 0!==t.quotePrefix&&(e.quotePrefix=t.quotePrefix?"1":"0");const o=(0,c.n)(ev,e);return t.alignment&&o.children.push((0,l.n)(t.alignment,w)),t.protection&&o.children.push((0,l.n)(t.protection,E)),o}},31948(t,e,o){o.d(e,{a:()=>v,g:()=>u,h:()=>h,m:()=>f,n:()=>R,p:()=>m,r:()=>N,v:()=>d});var s=o(36326),n=o(75719),r=o(57409),i=o(88539),a=o(67722);const l=/^#[A-Z][A-Z0-9_/]{0,29}[!?]?$/,c=t=>l.test(t);function d(t,e,o,n){const i=t?.trim();if(void 0===i||""===i)return null;if(c(i))return i;throw new s.s(`worksheet: <v>${(0,r.c)(i)}</v> at ${(0,r.s)(e,o,n)} is not an Excel error token`)}function u(t){return{sqref:"string"==typeof t.sqref?(0,i.gr)(t.sqref):t.sqref,rules:t.rules??[],...void 0!==t.pivot?{pivot:t.pivot}:{}}}function h(t){return{type:t.type,priority:t.priority,formulas:(t.formulas??[]).map(e=>(0,r.r)(e,`makeCfRule at priority ${t.priority}`)),...void 0!==t.dxfId?{dxfId:t.dxfId}:{},...void 0!==t.stopIfTrue?{stopIfTrue:t.stopIfTrue}:{},...void 0!==t.operator?{operator:t.operator}:{},...void 0!==t.text?{text:t.text}:{},...void 0!==t.percent?{percent:t.percent}:{},...void 0!==t.bottom?{bottom:t.bottom}:{},...void 0!==t.rank?{rank:t.rank}:{},...void 0!==t.aboveAverage?{aboveAverage:t.aboveAverage}:{},...void 0!==t.equalAverage?{equalAverage:t.equalAverage}:{},...void 0!==t.stdDev?{stdDev:t.stdDev}:{},...void 0!==t.timePeriod?{timePeriod:t.timePeriod}:{},...void 0!==t.innerXml?{innerXml:t.innerXml}:{}}}function f(t){return{type:t.type,sqref:"string"==typeof t.sqref?(0,i.gr)(t.sqref):t.sqref,...void 0!==t.operator?{operator:t.operator}:{},...void 0!==t.formula1?{formula1:(0,r.r)(t.formula1,"makeDataValidation formula1")}:{},...void 0!==t.formula2?{formula2:(0,r.r)(t.formula2,"makeDataValidation formula2")}:{},...void 0!==t.allowBlank?{allowBlank:t.allowBlank}:{},...void 0!==t.showInputMessage?{showInputMessage:t.showInputMessage}:{},...void 0!==t.showErrorMessage?{showErrorMessage:t.showErrorMessage}:{},...void 0!==t.errorTitle?{errorTitle:t.errorTitle}:{},...void 0!==t.error?{error:t.error}:{},...void 0!==t.errorStyle?{errorStyle:t.errorStyle}:{},...void 0!==t.promptTitle?{promptTitle:t.promptTitle}:{},...void 0!==t.prompt?{prompt:t.prompt}:{},...void 0!==t.showDropDown?{showDropDown:t.showDropDown}:{}}}const p={sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min"};function m(t,e){const o=(0,a.l)(t,e.sheet);if(void 0===o)return;const s=(0,i._r)(e.ref),n=[],r=new Set;for(let t=s.minCol;t<=s.maxCol;t++){const e=T(o.rows.get(s.minRow)?.get(t)?.value??null).trim();if(0===e.length)return;let i=e;for(let t=2;r.has(i.toLowerCase());t++)i=`${e}${t}`;r.add(i.toLowerCase()),n.push(i)}return n}function v(t,e){const{names:o,rowTree:s,colTree:n,geometry:r,...i}=g(t,e);return i}function g(t,e,o){const r=(0,a.l)(t,e.source.sheet);if(void 0===r)throw new s.s(`PivotTable "${e.name}": source sheet "${e.source.sheet}" does not exist`);const l=(0,i._r)(e.source.ref);if(l.maxRow<=l.minRow)throw new s.s(`PivotTable "${e.name}": source ${e.source.ref} needs a header row and at least one data row`);const c=function(t,e){const o=m(t,e);if(void 0===o)throw new s.s(`PivotTable source ${e.sheet}!${e.ref}: the sheet is missing or a header cell is empty; every field needs a name`);return o}(t,e.source);!function(t,e){const o=(o,n)=>{if(!Number.isInteger(o)||o<0||o>=e)throw new s.s(`PivotTable "${t.name}": ${n} field ${o} is outside the ${e} source fields`)},r=new Set,i=(e,n)=>{if(o(e,n),r.has(e))throw new s.s(`PivotTable "${t.name}": field ${e} is placed on more than one of rows / columns / filters`);r.add(e)};for(const e of t.rows)i(e,"row");for(const e of t.columns)i(e,"column");for(const e of t.filters)i(e.field,"filter");for(const e of t.values)o(e.field,"value");(0,n.s)(t.anchor)}(e,c.length);const d=new Set([...e.rows,...e.columns,...e.filters.map(t=>t.field)]),u=l.maxRow-l.minRow,h=c.map((e,o)=>{const s=[],n={hasString:!1,hasNumber:!1,allIntegers:!0,hasBoolean:!1,hasError:!1,hasBlank:!1,min:1/0,max:-1/0},i=l.minCol+o;for(let e=0;e<u;e++){const o=$(r.rows.get(l.minRow+1+e)?.get(i)?.value??null,t);s.push(o),w(n,o)}return d.has(o)?{name:e,stats:n,records:s,...k(s)}:{name:e,stats:n,records:s}}),f=o?.(h),v=function(t,e){const o=new Set(e.map(t=>t.toLowerCase()));return t.values.map(t=>{const s=t.name??`${p[t.aggregate]} of ${e[t.field]??""}`;let n=s;for(let t=2;o.has(n.toLowerCase());t++)n=`${s}${t}`;return o.add(n.toLowerCase()),n})}(e,c),g=e.values.length,y=g>1?[...e.columns,-2]:[...e.columns],S=e.filters.filter(t=>void 0!==t.selected).map(t=>{const e=h[t.field],o=b(null===(s=t.selected??null)?{t:"m"}:"number"==typeof s?{t:"n",v:s}:"boolean"==typeof s?{t:"b",v:s}:0===s.length?{t:"m"}:{t:"s",v:s});var s;const n=e?.items?.findIndex(t=>b(t)===o)??-1;return{itemIndex:e?.itemIndex??[],idx:n}}),T={id:0,children:new Map},R={id:0,children:new Map},N={next:1},L={next:1},D=e.rows.map(()=>0).concat(0),A=e.columns.map(()=>0).concat(0),E=e.rows.map(t=>h[t]?.itemIndex??[]),O=e.columns.map(t=>h[t]?.itemIndex??[]),j=t=>S.every(e=>e.itemIndex[t]===e.idx);for(let t=0;t<u;t++){if(!j(t))continue;let e=T;for(let o=0;o<E.length;o++)e=x(e,E[o]?.[t]??0,N),D[o+1]=e.id;e=R;for(let o=0;o<O.length;o++)e=x(e,O[o]?.[t]??0,L),A[o+1]=e.id;f?.(t,D,A)}const M=C(T,e.rows.length,0,e.layout,e.subtotals,!0),z=C(R,e.columns.length,g>1?g:0,"tabular","off"===e.subtotals?"off":"bottom",!1);if(e.rows.length>0&&e.rowGrandTotals&&M.push({type:"grand",path:[],dataIndex:0,depth:0,node:0}),e.columns.length>0&&e.columnGrandTotals)for(let t=0;t<Math.max(g,1);t++)z.push({type:"grand",path:[],dataIndex:t,depth:0,node:0});0===M.length&&M.push({type:"data",path:[],dataIndex:0,depth:0,node:0}),0===z.length&&z.push({type:"data",path:[],dataIndex:0,depth:0,node:0});const V=function(t,e,o,s){const{col:r,row:a}=(0,n.s)(t.anchor),l=a+(t.filters.length>0?t.filters.length+1:0),c=r,d=t.rows.length,u=t.values.length,h=e;if(0===d&&0===h&&0===u){const t=(0,i.pr)(l,c,P(l+18-1),F(c+3-1));return{location:{ref:(0,i.xr)(t),firstHeaderRow:1,firstDataRow:1,firstDataCol:0},outputRef:(0,i.xr)((0,i.pr)(a,r,t.maxRow,t.maxCol)),anchorRow:a,top:l,left:c,valueCols:0,dataTop:l,dataLeft:c,empty:!0}}const f=0===d?h>0?1:0:"compact"===t.layout?1:d,p=0===h?1:h+1,m=0===u&&0===h?0:s,v=l+p,g=c+f,x=v+o-1,$=Math.max(c,g+m-1),w=(0,i.pr)(l,c,P(x),F($));return{location:{ref:(0,i.xr)(w),firstHeaderRow:1,firstDataRow:p,firstDataCol:f},outputRef:(0,i.xr)((0,i.pr)(a,r,w.maxRow,Math.max(w.maxCol,t.filters.length>0?F(r+1):w.maxCol))),anchorRow:a,top:l,left:c,valueCols:m,dataTop:v,dataLeft:g,empty:!1}}(e,y.length,M.length,z.length);return{fields:h,recordCount:u,valueNames:v,colFields:y,rowEntries:I(M),colEntries:I(z),location:V.location,outputRef:V.outputRef,names:c,rowTree:M,colTree:z,geometry:V}}function x(t,e,o){let s=t.children.get(e);return void 0===s&&(s={id:o.next++,children:new Map},t.children.set(e,s)),s}function $(t,e){if(null===t)return{t:"m"};if("number"==typeof t)return{t:"n",v:t};if("boolean"==typeof t)return{t:"b",v:t};if("string"==typeof t)return 0===t.length?{t:"m"}:{t:"s",v:t};if(t instanceof Date){const o=e.date1904?Date.UTC(1904,0,1):Date.UTC(1899,11,30);return{t:"n",v:(t.getTime()-o)/864e5}}switch(t.kind){case"duration":return{t:"n",v:t.ms/864e5};case"error":return{t:"e",v:t.code};case"rich-text":return{t:"s",v:t.runs.map(t=>t.text).join("")};case"formula":{const o=t.cachedValue;return void 0===o?{t:"m"}:"error"===t.cachedValueType&&"string"==typeof o&&c(o)?{t:"e",v:o}:$(o,e)}}}function w(t,e){switch(e.t){case"s":return void(t.hasString=!0);case"n":return t.hasNumber=!0,Number.isInteger(e.v)||(t.allIntegers=!1),e.v<t.min&&(t.min=e.v),void(e.v>t.max&&(t.max=e.v));case"b":return void(t.hasBoolean=!0);case"e":return void(t.hasError=!0);case"m":t.hasBlank=!0}}function b(t){switch(t.t){case"s":return`s${t.v.toLowerCase()}`;case"n":return`n${t.v}`;case"b":return t.v?"b1":"b0";case"e":return`e${t.v}`;case"m":return"m"}}const y={n:0,s:1,b:2,e:3,m:4};function k(t){const e=new Map,o=[],s=t.map(t=>{const s=b(t);let n=e.get(s);return void 0===n&&(n=o.length,e.set(s,n),o.push({value:t,rank:0})),n}),n=[...o].sort((t,e)=>function(t,e){if(t.t!==e.t)return y[t.t]-y[e.t];if("n"===t.t&&"n"===e.t)return t.v-e.v;if("s"===t.t&&"s"===e.t){const o=t.v.toLowerCase(),s=e.v.toLowerCase();return o<s?-1:o>s?1:0}return"b"===t.t&&"b"===e.t?Number(t.v)-Number(e.v):"e"===t.t&&"e"===e.t?t.v<e.v?-1:t.v>e.v?1:0:0}(t.value,e.value));return n.forEach((t,e)=>{t.rank=e}),{items:n.map(t=>t.value),itemIndex:s.map(t=>o[t]?.rank??0)}}function C(t,e,o,s,n,r){const i=[];if(0===e){for(let t=0;t<o;t++)i.push({type:"data",path:[],dataIndex:t,depth:0,node:0,sigma:!0});return i}const a=r&&"tabular"!==s,l="bottom"===n||"top"===n&&!a,c=(t,s)=>{const r=s.length,d=[...t.children].sort((t,e)=>t[0]-e[0]);for(const[t,u]of d){const d=[...s,t],h=u.id;if(r!==e-1){if(a&&i.push({type:"data",path:d,dataIndex:0,depth:r,node:h,head:!0}),c(u,d),"off"!==n&&l)for(let t=0;t<Math.max(o,1);t++)i.push({type:"default",path:d,dataIndex:t,depth:r,node:h})}else if(o>0)for(let t=0;t<o;t++)i.push({type:"data",path:d,dataIndex:t,depth:r,node:h,sigma:!0});else i.push({type:"data",path:d,dataIndex:0,depth:r,node:h})}};return c(t,[]),i}function S(t){return t.sigma?[...t.path,t.dataIndex]:t.path}function I(t){let e=[];return t.map(t=>{if("grand"===t.type)return e=[],{type:"grand",r:0,x:[0],i:t.dataIndex};const o=S(t);let s=0;for(;s<o.length-1&&s<e.length&&o[s]===e[s];)s++;return e=o,{type:t.type,r:s,x:o.slice(s),i:t.dataIndex}})}function T(t){if(null===t)return"";if("string"==typeof t)return t;if("number"==typeof t)return String(t);if("boolean"==typeof t)return t?"TRUE":"FALSE";if(t instanceof Date)return t.toISOString();switch(t.kind){case"rich-text":return t.runs.map(t=>t.text).join("");case"formula":return void 0===t.cachedValue?"":String(t.cachedValue);case"error":return t.code;case"duration":return String(t.ms)}}const P=t=>Math.min(t,n.n),F=t=>Math.min(t,16384);function R(t){return{id:t.id,name:t.name}}function N(t){return{id:t.id,displayName:t.displayName,ref:t.ref,columns:t.columns??[],...void 0!==t.name?{name:t.name}:{},...void 0!==t.headerRowCount?{headerRowCount:t.headerRowCount}:{},...void 0!==t.totalsRowCount?{totalsRowCount:t.totalsRowCount}:{},...void 0!==t.totalsRowShown?{totalsRowShown:t.totalsRowShown}:{},...t.styleInfo?{styleInfo:t.styleInfo}:{},...t.autoFilter?{autoFilter:t.autoFilter}:{}}}o.d(e,["_",0,c])},61924(t,e,o){o.d(e,{Mt:()=>tt,Nt:()=>Q,a:()=>rt,i:()=>nt,jt:()=>et,n:()=>ot});const s="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2001/XMLSchema-instance",r="http://purl.org/dc/elements/1.1/",i="http://purl.org/dc/terms/",a="http://purl.org/dc/dcmitype/",l="http://schemas.openxmlformats.org/officeDocument/2006/",c=`${l}relationships`,d=`${l}docPropsVTypes`,u=`${l}extended-properties`,h=`${l}custom-properties`,f="http://schemas.openxmlformats.org/package/2006/",p=`${f}relationships`,m=`${f}metadata/core-properties`,v=`${f}content-types`,g="http://schemas.openxmlformats.org/spreadsheetml/2006/main",x="http://schemas.openxmlformats.org/drawingml/2006/chart",$="http://schemas.openxmlformats.org/drawingml/2006/main",w="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",b="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing",y="http://schemas.openxmlformats.org/drawingml/2006/picture",k="http://schemas.openxmlformats.org/markup-compatibility/2006",C="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",S="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",I="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac",T="http://schemas.microsoft.com/office/spreadsheetml/2014/revision",P="http://schemas.microsoft.com/office/drawing/2010/chart",F="http://schemas.microsoft.com/office/drawing/2012/chart",R="http://schemas.microsoft.com/office/drawing/2017/03/chart",N="http://schemas.microsoft.com/office/drawing/2014/chartex",L="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",D=Object.freeze({[s]:"xml",[n]:"xsi",[r]:"dc",[i]:"dcterms",[a]:"dcmitype",[c]:"r",[d]:"vt",[u]:"",[h]:"",[p]:"",[m]:"cp",[v]:"",[g]:"",[x]:"c",[$]:"a",[w]:"xdr",[b]:"cdr",[y]:"pic",[k]:"mc",[C]:"x14",[S]:"x15",[I]:"x15ac",[T]:"xr",[P]:"c14",[F]:"c15",[R]:"c16r3","http://schemas.microsoft.com/office/drawing/2010/main":"a14","http://schemas.microsoft.com/office/drawing/2014/main":"a16","http://schemas.microsoft.com/office/drawing/2014/chart":"c16","http://schemas.microsoft.com/office/drawing/2015/06/chart":"c16r2","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac":"x14ac","http://schemas.microsoft.com/office/spreadsheetml/2011/1/ac":"x12ac","http://schemas.microsoft.com/office/spreadsheetml/2014/11/main":"x16","http://schemas.microsoft.com/office/spreadsheetml/2015/02/main":"x16r2","http://schemas.microsoft.com/office/spreadsheetml/2015/revision2":"xr2","http://schemas.microsoft.com/office/spreadsheetml/2016/revision3":"xr3","http://schemas.microsoft.com/office/spreadsheetml/2016/revision6":"xr6","http://schemas.microsoft.com/office/spreadsheetml/2016/revision10":"xr10","http://schemas.microsoft.com/office/spreadsheetml/2017/richdata":"xlrd","http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2":"xlrd2","http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray":"xda","http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures":"xcalcf","http://schemas.microsoft.com/office/spreadsheetml/2020/richdatawebimage":"xlrdwi","http://schemas.microsoft.com/office/excel/2006/main":"xne","urn:schemas-microsoft-com:office:office":"o","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:excel":"x",[N]:"cx",[L]:"tc"}),A="docProps",E="_rels",O=`${E}/.rels`,j=`xl/${E}/workbook.xml.rels`,M=`${A}/core.xml`,z=`${A}/app.xml`,V=`${A}/custom.xml`,B="application/vnd.openxmlformats-officedocument.spreadsheetml.%s.main+xml",W="application/vnd.openxmlformats-officedocument.spreadsheetml.%s+xml",U="application/vnd.ms-excel.%s.macroEnabled.main+xml",H=(t,e)=>t.replace("%s",e),X=H(B,"sheet"),q=H(B,"template"),_=H(U,"sheet"),G=H(U,"template"),Z=H(W,"sharedStrings"),Y=(H(W,"externalLink"),H(W,"worksheet")),K=(H(W,"comments"),H(W,"styles"));H(W,"chartsheet");function Q(t,e){return t?`{${t}}${e}`:e}const J=/^\{([^}]*)\}(.+)$/;function tt(t){const e=J.exec(t);return null===e?{ns:"",local:t}:{ns:e[1]??"",local:e[2]??""}}function et(t){const e=t.lastIndexOf("}");return e<0?t:t.slice(e+1)}function ot(t,e={},o=[],s){const n={name:t,attrs:st(e),children:o.slice()};return void 0!==s&&(n.text=s),n}const st=t=>{const e={};for(const[o,s]of Object.entries(t))null!=s&&(e[o]="string"==typeof s?s:String(s));return e};function nt(t,e){for(const o of t.children)if(o.name===e)return o}function rt(t,e){const o=[];for(const s of t.children)s.name===e&&o.push(s);return o}o.d(e,["A",0,m,"At",0,n,"Ct",0,T,"Dt",0,q,"Et",0,G,"F",0,h,"H",0,$,"I",0,N,"M",0,"application/vnd.openxmlformats-officedocument.custom-properties+xml","Ot",0,s,"R",0,r,"T",0,x,"Tt",0,X,"V",0,D,"_",0,j,"bt",0,Y,"c",0,"[Content_Types].xml","ct",0,p,"dt",0,w,"f",0,O,"ft",0,g,"g",0,"xl/workbook.xml","gt",0,L,"h",0,"xl/theme/theme1.xml","ht",0,"application/vnd.openxmlformats-officedocument.theme+xml","k",0,v,"kt",0,u,"l",0,M,"lt",0,c,"m",0,"xl/styles.xml","mt",0,K,"p",0,"xl/sharedStrings.xml","pt",0,"http://purl.oclc.org/ooxml/","q",0,k,"s",0,z,"st",0,y,"u",0,V,"ut",0,Z,"w",0,b,"wt",0,_,"x",0,"application/vnd.ms-office.chartex+xml","xt",0,C,"yt",0,d,"z",0,i])},67722(t,e,o){o.d(e,{C:()=>r,l:()=>i,r:()=>n});var s=o(88539);function n(t){return{sheets:[],activeSheetIndex:0,styles:(0,s.Rr)(),date1904:t?.date1904??!1,authors:[],persons:[],definedNames:[]}}function r(t){return"string"!=typeof t?"must be a string":0===t.length||t.length>31?"must be 1..31 chars":/[:\\/?*[\]]/.test(t)?"must not contain : \\ / ? * [ ]":t.startsWith("'")||t.endsWith("'")?"must not start or end with an apostrophe":"history"===t.toLowerCase()?'"History" is reserved by Excel':void 0}function i(t,e){for(const o of t.sheets)if("worksheet"===o.kind&&o.sheet.title===e)return o.sheet}}}]);
|