w-web-perm 1.0.83 → 1.0.84

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.
@@ -1,4 +1,4 @@
1
- (self["webpackChunkw_web_perm"]=self["webpackChunkw_web_perm"]||[]).push([[504],{9165:function(e,t,n){"use strict";n.d(t,{$BT:function(){return C},BCx:function(){return m},BGS:function(){return b},Ec0:function(){return _},ExW:function(){return T},FhF:function(){return F},H9P:function(){return M},KsW:function(){return D},NG3:function(){return c},Ohs:function(){return S},SBy:function(){return p},Tfj:function(){return u},UOc:function(){return A},UkR:function(){return h},WyW:function(){return O},X2n:function(){return L},XHW:function(){return v},Za0:function(){return y},Znq:function(){return r},_Jj:function(){return f},aN1:function(){return R},biz:function(){return I},bmu:function(){return s},dgQ:function(){return i},e6K:function(){return l},hyP:function(){return g},jq2:function(){return w},sQ3:function(){return E},sX4:function(){return N},sw5:function(){return P},tGM:function(){return x},uHb:function(){return d},y6z:function(){return o},zoO:function(){return a}});var i="M12,5A3.5,3.5 0 0,0 8.5,8.5A3.5,3.5 0 0,0 12,12A3.5,3.5 0 0,0 15.5,8.5A3.5,3.5 0 0,0 12,5M12,7A1.5,1.5 0 0,1 13.5,8.5A1.5,1.5 0 0,1 12,10A1.5,1.5 0 0,1 10.5,8.5A1.5,1.5 0 0,1 12,7M5.5,8A2.5,2.5 0 0,0 3,10.5C3,11.44 3.53,12.25 4.29,12.68C4.65,12.88 5.06,13 5.5,13C5.94,13 6.35,12.88 6.71,12.68C7.08,12.47 7.39,12.17 7.62,11.81C6.89,10.86 6.5,9.7 6.5,8.5C6.5,8.41 6.5,8.31 6.5,8.22C6.2,8.08 5.86,8 5.5,8M18.5,8C18.14,8 17.8,8.08 17.5,8.22C17.5,8.31 17.5,8.41 17.5,8.5C17.5,9.7 17.11,10.86 16.38,11.81C16.5,12 16.63,12.15 16.78,12.3C16.94,12.45 17.1,12.58 17.29,12.68C17.65,12.88 18.06,13 18.5,13C18.94,13 19.35,12.88 19.71,12.68C20.47,12.25 21,11.44 21,10.5A2.5,2.5 0 0,0 18.5,8M12,14C9.66,14 5,15.17 5,17.5V19H19V17.5C19,15.17 14.34,14 12,14M4.71,14.55C2.78,14.78 0,15.76 0,17.5V19H3V17.07C3,16.06 3.69,15.22 4.71,14.55M19.29,14.55C20.31,15.22 21,16.06 21,17.07V19H24V17.5C24,15.76 21.22,14.78 19.29,14.55M12,16C13.53,16 15.24,16.5 16.23,17H7.77C8.76,16.5 10.47,16 12,16Z",r="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",o="M7,12L12,7V10H16V14H12V17L7,12M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L5,8.09V15.91L12,19.85L19,15.91V8.09L12,4.15Z",s="M17,12L12,17V14H8V10H12V7L17,12M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L5,8.09V15.91L12,19.85L19,15.91V8.09L12,4.15Z",a="M6,18V13H11V18H6M7,14V17H10V14H7M13,7.5H18V9.5H13V7.5M5,21A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V11.17C20.5,11.06 20,11 19.5,11H19V5H5V19H13.17C13.34,19.72 13.63,20.39 14,21H5M11,6V11H6V6H11M10,10V7H7V10H10M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23Z",l="M9 17H7V10H9V17M13 17H11V7H13V17M17 17H15V13H17V17M19 19H5V5H19V19.1M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z",u="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",c="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",d="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",h="M20,16V4H8V16H20M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16Z",p="M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16M13,14L20,7L18.59,5.59L13,11.17L9.91,8.09L8.5,9.5L13,14Z",f="M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z",g="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",m="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",v="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13Q12.18 20 11.59 19.41 11 18.83 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5Q19.55 18 20.27 17.27 21 16.55 21 15.5 21 14.45 20.27 13.73 19.55 13 18.5 13H17V11Q17 8.93 15.54 7.46 14.08 6 12 6 9.93 6 8.46 7.46 7 8.93 7 11H6.5Q5.05 11 4.03 12.03 3 13.05 3 14.5 3 15.95 4.03 17 5.05 18 6.5 18H9V20M12 13Z",y="M6.59,3.41L2,8L6.59,12.6L8,11.18L4.82,8L8,4.82L6.59,3.41M12.41,3.41L11,4.82L14.18,8L11,11.18L12.41,12.6L17,8L12.41,3.41M21.59,11.59L13.5,19.68L9.83,16L8.42,17.41L13.5,22.5L23,13L21.59,11.59Z",C="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",w="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",x="M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z",b="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",_="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",S="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",A="M5,8A4,4 0 0,1 9,12A4,4 0 0,1 5,16A4,4 0 0,1 1,12A4,4 0 0,1 5,8M12,1A4,4 0 0,1 16,5A4,4 0 0,1 12,9A4,4 0 0,1 8,5A4,4 0 0,1 12,1M12,15A4,4 0 0,1 16,19A4,4 0 0,1 12,23A4,4 0 0,1 8,19A4,4 0 0,1 12,15M19,8A4,4 0 0,1 23,12A4,4 0 0,1 19,16A4,4 0 0,1 15,12A4,4 0 0,1 19,8Z",T="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",E="M19 8L15 12H18C18 15.31 15.31 18 12 18C11 18 10.03 17.75 9.2 17.3L7.74 18.76C8.97 19.54 10.43 20 12 20C16.42 20 20 16.42 20 12H23M6 12C6 8.69 8.69 6 12 6C13 6 13.97 6.25 14.8 6.7L16.26 5.24C15.03 4.46 13.57 4 12 4C7.58 4 4 7.58 4 12H1L5 16L9 12M14 12C14 13.11 13.11 14 12 14S10 13.11 10 12 10.9 10 12 10 14 10.9 14 12Z",D="M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z",M="M8,5.14V19.14L19,12.14L8,5.14Z",I="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",R="M5 3A2 2 0 0 0 3 5H5M7 3V5H9V3M11 3V5H13V3M15 3V5H17V3M19 3V5H21A2 2 0 0 0 19 3M3 7V9H5V7M7 7V11H11V7M13 7V11H17V7M19 7V9H21V7M3 11V13H5V11M19 11V13H21V11M7 13V17H11V13M13 13V17H17V13M3 15V17H5V15M19 15V17H21V15M3 19A2 2 0 0 0 5 21V19M7 19V21H9V19M11 19V21H13V19M15 19V21H17V19M19 19V21A2 2 0 0 0 21 19Z",L="M17.36,20.2V14.82H19.15V22H3V14.82H4.8V20.2H17.36M6.77,14.32L7.14,12.56L15.93,14.41L15.56,16.17L6.77,14.32M7.93,10.11L8.69,8.5L16.83,12.28L16.07,13.9L7.93,10.11M10.19,6.12L11.34,4.74L18.24,10.5L17.09,11.87L10.19,6.12M14.64,1.87L20,9.08L18.56,10.15L13.2,2.94L14.64,1.87M6.59,18.41V16.61H15.57V18.41H6.59Z",P="M1 6V19A2 2 0 0 0 3 21H9V11H21V6A2 2 0 0 0 19 4H3A2 2 0 0 0 1 6M3 6H7V9H3M7 19H3V16H7M7 14H3V11H7M9 9V6H13V9M19 9H15V6H19M17 16A1 1 0 1 1 16 17A1 1 0 0 1 17 16M17 13A6.45 6.45 0 0 1 23 17A6.5 6.5 0 0 1 11 17A6.45 6.45 0 0 1 17 13M17 14.5A2.5 2.5 0 1 0 19.5 17A2.5 2.5 0 0 0 17 14.5",N="M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z",F="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",O="M2 3V9H4.95L6.95 15H6V21H12V16.41L17.41 11H22V5H16V9.57L10.59 15H9.06L7.06 9H8V3H2M4 5H6V7H4V5M18 7H20V9H18V7M18 15V18H15V20H18V23H20V20H23V18H20V15H18M8 17H10V19H8V17Z"},455:function(e,t,n){"use strict";n.d(t,{U:function(){return T}});var i=n(6354),r=n(222),o=n(8979),s=n(5581);function a(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function l(e){return e!==(0,o.A)(e)&&(0,s.sb)(e)?a(e):(0,r.A)(e)}var u=n(7604),c=n(793),d=n(9760),h=n(134),p=n(6906);function f(e){var t=e.getBoundingClientRect(),n=(0,p.LI)(t.width)/e.offsetWidth||1,i=(0,p.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function g(e,t,n){void 0===n&&(n=!1);var r=(0,s.sb)(t),o=(0,s.sb)(t)&&f(t),a=(0,d.A)(t),p=(0,i.A)(e,o,n),g={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(r||!r&&!n)&&(("body"!==(0,u.A)(t)||(0,h.A)(a))&&(g=l(t)),(0,s.sb)(t)?(m=(0,i.A)(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):a&&(m.x=(0,c.A)(a))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}}var m=n(6979),v=n(7579),y=n(7275),C=n(4278);function w(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}function x(e){var t=w(e);return C.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function b(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var S={placement:"bottom",modifiers:[],strategy:"absolute"};function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function T(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?S:r;return function(e,t,n){void 0===n&&(n=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},S,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:r,setOptions:function(n){var a="function"===typeof n?n(r.options):n;d(),r.options=Object.assign({},o,r.options,a),r.scrollParents={reference:(0,s.vq)(e)?(0,v.A)(e):e.contextElement?(0,v.A)(e.contextElement):[],popper:(0,v.A)(t)};var l=x(_([].concat(i,r.options.modifiers)));return r.orderedModifiers=l.filter(function(e){return e.enabled}),c(),u.update()},forceUpdate:function(){if(!l){var e=r.elements,t=e.reference,n=e.popper;if(A(t,n)){r.rects={reference:g(t,(0,y.A)(n),"fixed"===r.options.strategy),popper:(0,m.A)(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var o=r.orderedModifiers[i],s=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"===typeof s&&(r=s({state:r,options:c,name:d,instance:u})||r)}else r.reset=!1,i=-1}}},update:b(function(){return new Promise(function(e){u.forceUpdate(),e(r)})}),destroy:function(){d(),l=!0}};if(!A(e,t))return u;function c(){r.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:r,name:t,instance:u,options:i}),l=function(){};a.push(s||l)}})}function d(){a.forEach(function(e){return e()}),a=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}},5446:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(5581);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},6354:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(5581),r=n(6906),o=n(8979),s=n(2283);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,i.sb)(e)&&(l=e.offsetWidth>0&&(0,r.LI)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,r.LI)(a.height)/e.offsetHeight||1);var c=(0,i.vq)(e)?(0,o.A)(e):window,d=c.visualViewport,h=!(0,s.A)()&&n,p=(a.left+(h&&d?d.offsetLeft:0))/l,f=(a.top+(h&&d?d.offsetTop:0))/u,g=a.width/l,m=a.height/u;return{width:g,height:m,top:f,right:p+g,bottom:f+m,left:p,x:p,y:f}}},271:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(8979);function r(e){return(0,i.A)(e).getComputedStyle(e)}},9760:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(5581);function r(e){return(((0,i.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6979:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(6354);function r(e){var t=(0,i.A)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},7604:function(e,t,n){"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:function(){return i}})},7275:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(8979),r=n(7604),o=n(271),s=n(5581);function a(e){return["table","td","th"].indexOf((0,r.A)(e))>=0}var l=n(2083),u=n(2398);function c(e){return(0,s.sb)(e)&&"fixed"!==(0,o.A)(e).position?e.offsetParent:null}function d(e){var t=/firefox/i.test((0,u.A)()),n=/Trident/i.test((0,u.A)());if(n&&(0,s.sb)(e)){var i=(0,o.A)(e);if("fixed"===i.position)return null}var a=(0,l.A)(e);(0,s.Ng)(a)&&(a=a.host);while((0,s.sb)(a)&&["html","body"].indexOf((0,r.A)(a))<0){var c=(0,o.A)(a);if("none"!==c.transform||"none"!==c.perspective||"paint"===c.contain||-1!==["transform","perspective"].indexOf(c.willChange)||t&&"filter"===c.willChange||t&&c.filter&&"none"!==c.filter)return a;a=a.parentNode}return null}function h(e){var t=(0,i.A)(e),n=c(e);while(n&&a(n)&&"static"===(0,o.A)(n).position)n=c(n);return n&&("html"===(0,r.A)(n)||"body"===(0,r.A)(n)&&"static"===(0,o.A)(n).position)?t:n||d(e)||t}},2083:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(7604),r=n(9760),o=n(5581);function s(e){return"html"===(0,i.A)(e)?e:e.assignedSlot||e.parentNode||((0,o.Ng)(e)?e.host:null)||(0,r.A)(e)}},8979:function(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:function(){return i}})},222:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(8979);function r(e){var t=(0,i.A)(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}},793:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(6354),r=n(9760),o=n(222);function s(e){return(0,i.A)((0,r.A)(e)).left+(0,o.A)(e).scrollLeft}},5581:function(e,t,n){"use strict";n.d(t,{Ng:function(){return s},sb:function(){return o},vq:function(){return r}});var i=n(8979);function r(e){var t=(0,i.A)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,i.A)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function s(e){if("undefined"===typeof ShadowRoot)return!1;var t=(0,i.A)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},2283:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(2398);function r(){return!/^((?!chrome|android).)*safari/i.test((0,i.A)())}},134:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(271);function r(e){var t=(0,i.A)(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}},7579:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(2083),r=n(134),o=n(7604),s=n(5581);function a(e){return["html","body","#document"].indexOf((0,o.A)(e))>=0?e.ownerDocument.body:(0,s.sb)(e)&&(0,r.A)(e)?e:a((0,i.A)(e))}var l=n(8979);function u(e,t){var n;void 0===t&&(t=[]);var o=a(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),c=(0,l.A)(o),d=s?[c].concat(c.visualViewport||[],(0,r.A)(o)?o:[]):o,h=t.concat(d);return s?h:h.concat(u((0,i.A)(d)))}},4278:function(e,t,n){"use strict";n.d(t,{DD:function(){return m},GM:function(){return T},Mn:function(){return i},OM:function(){return l},Ol:function(){return g},R9:function(){return h},WY:function(){return d},_N:function(){return c},ir:function(){return f},kb:function(){return s},ni:function(){return u},pG:function(){return o},qZ:function(){return a},sQ:function(){return r},xf:function(){return p}});var i="top",r="bottom",o="right",s="left",a="auto",l=[i,r,o,s],u="start",c="end",d="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+c])},[]),m=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])},[]),v="beforeRead",y="read",C="afterRead",w="beforeMain",x="main",b="afterMain",_="beforeWrite",S="write",A="afterWrite",T=[v,y,C,w,x,b,_,S,A]},6607:function(e,t,n){"use strict";var i=n(7604),r=n(5581);function o(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},s=t.elements[e];(0,r.sb)(s)&&(0,i.A)(s)&&(Object.assign(s.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})}function s(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),l=a.reduce(function(e,t){return e[t]="",e},{});(0,r.sb)(o)&&(0,i.A)(o)&&(Object.assign(o.style,l),Object.keys(s).forEach(function(e){o.removeAttribute(e)}))})}}t.A={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:s,requires:["computeStyles"]}},1262:function(e,t,n){"use strict";var i=n(4278),r=n(7275),o=n(8979),s=n(9760),a=n(271),l=n(2632),u=n(8101),c=n(6906),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:(0,c.LI)(n*r)/r||0,y:(0,c.LI)(i*r)/r||0}}function p(e){var t,n=e.popper,l=e.popperRect,u=e.placement,c=e.variation,p=e.offsets,f=e.position,g=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,C=p.x,w=void 0===C?0:C,x=p.y,b=void 0===x?0:x,_="function"===typeof v?v({x:w,y:b}):{x:w,y:b};w=_.x,b=_.y;var S=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),T=i.kb,E=i.Mn,D=window;if(m){var M=(0,r.A)(n),I="clientHeight",R="clientWidth";if(M===(0,o.A)(n)&&(M=(0,s.A)(n),"static"!==(0,a.A)(M).position&&"absolute"===f&&(I="scrollHeight",R="scrollWidth")),u===i.Mn||(u===i.kb||u===i.pG)&&c===i._N){E=i.sQ;var L=y&&M===D&&D.visualViewport?D.visualViewport.height:M[I];b-=L-l.height,b*=g?1:-1}if(u===i.kb||(u===i.Mn||u===i.sQ)&&c===i._N){T=i.pG;var P=y&&M===D&&D.visualViewport?D.visualViewport.width:M[R];w-=P-l.width,w*=g?1:-1}}var N,F=Object.assign({position:f},m&&d),O=!0===v?h({x:w,y:b},(0,o.A)(n)):{x:w,y:b};return w=O.x,b=O.y,g?Object.assign({},F,(N={},N[E]=A?"0":"",N[T]=S?"0":"",N.transform=(D.devicePixelRatio||1)<=1?"translate("+w+"px, "+b+"px)":"translate3d("+w+"px, "+b+"px, 0)",N)):Object.assign({},F,(t={},t[E]=A?b+"px":"",t[T]=S?w+"px":"",t.transform="",t))}function f(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,d={placement:(0,l.A)(t.placement),variation:(0,u.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}t.A={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},9068:function(e,t,n){"use strict";var i=n(8979),r={passive:!0};function o(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,a=void 0===s||s,l=o.resize,u=void 0===l||l,c=(0,i.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(e){e.addEventListener("scroll",n.update,r)}),u&&c.addEventListener("resize",n.update,r),function(){a&&d.forEach(function(e){e.removeEventListener("scroll",n.update,r)}),u&&c.removeEventListener("resize",n.update,r)}}t.A={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o,data:{}}},6489:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,function(e){return i[e]})}var o=n(2632),s={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,function(e){return s[e]})}var l=n(6249),u=n(8101),c=n(4278);function d(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,p=void 0===h?c.DD:h,f=(0,u.A)(i),g=f?d?c.Ol:c.Ol.filter(function(e){return(0,u.A)(e)===f}):c.OM,m=g.filter(function(e){return p.indexOf(e)>=0});0===m.length&&(m=g);var v=m.reduce(function(t,n){return t[n]=(0,l.A)(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[(0,o.A)(n)],t},{});return Object.keys(v).sort(function(e,t){return v[e]-v[t]})}function h(e){if((0,o.A)(e)===c.qZ)return[];var t=r(e);return[a(e),t,a(t)]}function p(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,a=void 0===s||s,p=n.altAxis,f=void 0===p||p,g=n.fallbackPlacements,m=n.padding,v=n.boundary,y=n.rootBoundary,C=n.altBoundary,w=n.flipVariations,x=void 0===w||w,b=n.allowedAutoPlacements,_=t.options.placement,S=(0,o.A)(_),A=S===_,T=g||(A||!x?[r(_)]:h(_)),E=[_].concat(T).reduce(function(e,n){return e.concat((0,o.A)(n)===c.qZ?d(t,{placement:n,boundary:v,rootBoundary:y,padding:m,flipVariations:x,allowedAutoPlacements:b}):n)},[]),D=t.rects.reference,M=t.rects.popper,I=new Map,R=!0,L=E[0],P=0;P<E.length;P++){var N=E[P],F=(0,o.A)(N),O=(0,u.A)(N)===c.ni,k=[c.Mn,c.sQ].indexOf(F)>=0,B=k?"width":"height",G=(0,l.A)(t,{placement:N,boundary:v,rootBoundary:y,altBoundary:C,padding:m}),V=k?O?c.pG:c.kb:O?c.sQ:c.Mn;D[B]>M[B]&&(V=r(V));var H=r(V),z=[];if(a&&z.push(G[F]<=0),f&&z.push(G[V]<=0,G[H]<=0),z.every(function(e){return e})){L=N,R=!1;break}I.set(N,z)}if(R)for(var U=x?3:1,W=function(e){var t=E.find(function(t){var n=I.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},$=U;$>0;$--){var j=W($);if("break"===j)break}t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}}var f={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},9081:function(e,t,n){"use strict";var i=n(4278),r=n(6249);function o(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[i.Mn,i.pG,i.sQ,i.kb].some(function(t){return e[t]>=0})}function a(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=(0,r.A)(t,{elementContext:"reference"}),c=(0,r.A)(t,{altBoundary:!0}),d=o(u,i),h=o(c,a,l),p=s(d),f=s(h);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}t.A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:a}},8490:function(e,t,n){"use strict";var i=n(2632),r=n(4278);function o(e,t,n){var o=(0,i.A)(e),s=[r.kb,r.Mn].indexOf(o)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*s,[r.kb,r.pG].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function s(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,l=r.DD.reduce(function(e,n){return e[n]=o(n,t.rects,a),e},{}),u=l[t.placement],c=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=l}t.A={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s}},5059:function(e,t,n){"use strict";var i=n(1815);function r(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,i.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}t.A={name:"popperOffsets",enabled:!0,phase:"read",fn:r,data:{}}},4575:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var i=n(4278),r=n(2632),o=n(9703);function s(e){return"x"===e?"y":"x"}var a=n(6523),l=n(6979),u=n(7275),c=n(6249),d=n(8101),h=n(7364),p=n(6906);function f(e){var t=e.state,n=e.options,f=e.name,g=n.mainAxis,m=void 0===g||g,v=n.altAxis,y=void 0!==v&&v,C=n.boundary,w=n.rootBoundary,x=n.altBoundary,b=n.padding,_=n.tether,S=void 0===_||_,A=n.tetherOffset,T=void 0===A?0:A,E=(0,c.A)(t,{boundary:C,rootBoundary:w,padding:b,altBoundary:x}),D=(0,r.A)(t.placement),M=(0,d.A)(t.placement),I=!M,R=(0,o.A)(D),L=s(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,F=t.rects.popper,O="function"===typeof T?T(Object.assign({},t.rects,{placement:t.placement})):T,k="number"===typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(m){var V,H="y"===R?i.Mn:i.kb,z="y"===R?i.sQ:i.pG,U="y"===R?"height":"width",W=P[R],$=W+E[H],j=W-E[z],X=S?-F[U]/2:0,Y=M===i.ni?N[U]:F[U],K=M===i.ni?-F[U]:-N[U],q=t.elements.arrow,Z=S&&q?(0,l.A)(q):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.A)(),J=Q[H],ee=Q[z],te=(0,a.u)(0,N[U],Z[U]),ne=I?N[U]/2-X-te-J-k.mainAxis:Y-te-J-k.mainAxis,ie=I?-N[U]/2+X+te+ee+k.mainAxis:K+te+ee+k.mainAxis,re=t.elements.arrow&&(0,u.A)(t.elements.arrow),oe=re?"y"===R?re.clientTop||0:re.clientLeft||0:0,se=null!=(V=null==B?void 0:B[R])?V:0,ae=W+ne-se-oe,le=W+ie-se,ue=(0,a.u)(S?(0,p.jk)($,ae):$,W,S?(0,p.T9)(j,le):j);P[R]=ue,G[R]=ue-W}if(y){var ce,de="x"===R?i.Mn:i.kb,he="x"===R?i.sQ:i.pG,pe=P[L],fe="y"===L?"height":"width",ge=pe+E[de],me=pe-E[he],ve=-1!==[i.Mn,i.kb].indexOf(D),ye=null!=(ce=null==B?void 0:B[L])?ce:0,Ce=ve?ge:pe-N[fe]-F[fe]-ye+k.altAxis,we=ve?pe+N[fe]+F[fe]-ye-k.altAxis:me,xe=S&&ve?(0,a.P)(Ce,pe,we):(0,a.u)(S?Ce:ge,pe,S?we:me);P[L]=xe,G[L]=xe-pe}t.modifiersData[f]=G}}var g={name:"preventOverflow",enabled:!0,phase:"main",fn:f,requiresIfExists:["offset"]}},1815:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(2632),r=n(8101),o=n(9703),s=n(4278);function a(e){var t,n=e.reference,a=e.element,l=e.placement,u=l?(0,i.A)(l):null,c=l?(0,r.A)(l):null,d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2;switch(u){case s.Mn:t={x:d,y:n.y-a.height};break;case s.sQ:t={x:d,y:n.y+n.height};break;case s.pG:t={x:n.x+n.width,y:h};break;case s.kb:t={x:n.x-a.width,y:h};break;default:t={x:n.x,y:n.y}}var p=u?(0,o.A)(u):null;if(null!=p){var f="y"===p?"height":"width";switch(c){case s.ni:t[p]=t[p]-(n[f]/2-a[f]/2);break;case s._N:t[p]=t[p]+(n[f]/2-a[f]/2);break;default:}}return t}},6249:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var i=n(4278),r=n(8979),o=n(9760),s=n(793),a=n(2283);function l(e,t){var n=(0,r.A)(e),i=(0,o.A)(e),l=n.visualViewport,u=i.clientWidth,c=i.clientHeight,d=0,h=0;if(l){u=l.width,c=l.height;var p=(0,a.A)();(p||!p&&"fixed"===t)&&(d=l.offsetLeft,h=l.offsetTop)}return{width:u,height:c,x:d+(0,s.A)(e),y:h}}var u=n(271),c=n(222),d=n(6906);function h(e){var t,n=(0,o.A)(e),i=(0,c.A)(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=(0,d.T9)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=(0,d.T9)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),h=-i.scrollLeft+(0,s.A)(e),p=-i.scrollTop;return"rtl"===(0,u.A)(r||n).direction&&(h+=(0,d.T9)(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:l,x:h,y:p}}var p=n(7579),f=n(7275),g=n(5581),m=n(6354),v=n(2083),y=n(5446),C=n(7604);function w(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function x(e,t){var n=(0,m.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function b(e,t,n){return t===i.R9?w(l(e,n)):(0,g.vq)(t)?x(t,n):w(h((0,o.A)(e)))}function _(e){var t=(0,p.A)((0,v.A)(e)),n=["absolute","fixed"].indexOf((0,u.A)(e).position)>=0,i=n&&(0,g.sb)(e)?(0,f.A)(e):e;return(0,g.vq)(i)?t.filter(function(e){return(0,g.vq)(e)&&(0,y.A)(e,i)&&"body"!==(0,C.A)(e)}):[]}function S(e,t,n,i){var r="clippingParents"===t?_(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(t,n){var r=b(e,n,i);return t.top=(0,d.T9)(r.top,t.top),t.right=(0,d.jk)(r.right,t.right),t.bottom=(0,d.jk)(r.bottom,t.bottom),t.left=(0,d.T9)(r.left,t.left),t},b(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var A=n(1815),T=n(4318),E=n(1007);function D(e,t){void 0===t&&(t={});var n=t,r=n.placement,s=void 0===r?e.placement:r,a=n.strategy,l=void 0===a?e.strategy:a,u=n.boundary,c=void 0===u?i.WY:u,d=n.rootBoundary,h=void 0===d?i.R9:d,p=n.elementContext,f=void 0===p?i.xf:p,v=n.altBoundary,y=void 0!==v&&v,C=n.padding,x=void 0===C?0:C,b=(0,T.A)("number"!==typeof x?x:(0,E.A)(x,i.OM)),_=f===i.xf?i.ir:i.xf,D=e.rects.popper,M=e.elements[y?_:f],I=S((0,g.vq)(M)?M:M.contextElement||(0,o.A)(e.elements.popper),c,h,l),R=(0,m.A)(e.elements.reference),L=(0,A.A)({reference:R,element:D,strategy:"absolute",placement:s}),P=w(Object.assign({},D,L)),N=f===i.xf?P:R,F={top:I.top-N.top+b.top,bottom:N.bottom-I.bottom+b.bottom,left:I.left-N.left+b.left,right:N.right-I.right+b.right},O=e.modifiersData.offset;if(f===i.xf&&O){var k=O[s];Object.keys(F).forEach(function(e){var t=[i.pG,i.sQ].indexOf(e)>=0?1:-1,n=[i.Mn,i.sQ].indexOf(e)>=0?"y":"x";F[e]+=k[n]*t})}return F}},1007:function(e,t,n){"use strict";function i(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:function(){return i}})},2632:function(e,t,n){"use strict";function i(e){return e.split("-")[0]}n.d(t,{A:function(){return i}})},7364:function(e,t,n){"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:function(){return i}})},9703:function(e,t,n){"use strict";function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:function(){return i}})},8101:function(e,t,n){"use strict";function i(e){return e.split("-")[1]}n.d(t,{A:function(){return i}})},6906:function(e,t,n){"use strict";n.d(t,{LI:function(){return o},T9:function(){return i},jk:function(){return r}});var i=Math.max,r=Math.min,o=Math.round},4318:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(7364);function r(e){return Object.assign({},(0,i.A)(),e)}},2398:function(e,t,n){"use strict";function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.d(t,{A:function(){return i}})},6523:function(e,t,n){"use strict";n.d(t,{P:function(){return o},u:function(){return r}});var i=n(6906);function r(e,t,n){return(0,i.T9)(e,(0,i.jk)(t,n))}function o(e,t,n){var i=r(e,t,n);return i>n?n:i}},2751:function(e,t,n){"use strict";n.d(t,{A:function(){return BF}});var i={};n.r(i),n.d(i,{AgGridVue:function(){return wF}});var r=function(){var e=this,t=e._self._c;return t("div",{ref:"shell",staticClass:"CompCssWAggridVue",attrs:{changeParam:e.changeParam,changeFilterall:e.changeFilterall}},[t("div",{style:`width:${e.width}%; height:${e.height}px; transition:all 0.5s; opacity:${e.opacity};`,on:{mouseleave:e.leaveTable}},[t("ag-grid-vue",{ref:"agv",staticClass:"ag-theme-balham",staticStyle:{width:"100%",height:"100%"},attrs:{columnDefs:e.columns,rowData:e.filterRows,rowStyle:e.getRowsStyle,rowSelection:"multiple",gridOptions:e.gridOptions,_enableRangeSelection:"true",_copyHeadersToClipboard:"true",_modules:"AllModules"},on:{selectionChanged:e.agRowSelect,cellClicked:e.agCellClick,cellDoubleClicked:e.agCellDbClick,cellValueChanged:e.agCellChange,cellMouseOver:e.agCellMouseEnter,cellMouseOut:e.agCellMouseLeave,cellKeyDown:e.agCellKeyDown,rowDragEnter:e.agRowDragEnter,rowDragEnd:e.agRowDragEnd,rowDragMove:e.agRowDragMove,rowDragLeave:e.agRowDragLeave,rowDataUpdated:e.agRowDataUpdated,filterChanged:e.agFilterChanged,gridReady:e.agReady}})],1)])},o=[],s=n(4722),a=n(6036),l=n(6902),u=n(1662),c=n(6996),d=n(6145),h=n(1754),p=n(2528),f=n(6984);function g(e,t,n){(void 0!==n&&!(0,f.A)(e[t],n)||void 0===n&&!(t in e))&&(0,p.A)(e,t,n)}var m=g,v=n(4574),y=n(154),C=n(1801),w=n(9759),x=n(8598),b=n(2274),_=n(2049),S=n(3533),A=n(9912),T=n(9610),E=n(3149),D=n(4963),M=n(3858);function I(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var R=I,L=n(2031),P=n(5615);function N(e){return(0,L.A)(e,(0,P.A)(e))}var F=N;function O(e,t,n,i,r,o,s){var a=R(e,n),l=R(t,n),u=s.get(l);if(u)m(e,n,u);else{var c=o?o(a,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var h=(0,_.A)(l),p=!h&&(0,A.A)(l),f=!h&&!p&&(0,M.A)(l);c=l,h||p||f?(0,_.A)(a)?c=a:(0,S.A)(a)?c=(0,w.A)(a):p?(d=!1,c=(0,y.A)(l,!0)):f?(d=!1,c=(0,C.A)(l,!0)):c=[]:(0,D.A)(l)||(0,b.A)(l)?(c=a,(0,b.A)(a)?c=F(a):(0,E.A)(a)&&!(0,T.A)(a)||(c=(0,x.A)(l))):d=!1}d&&(s.set(l,c),r(c,l,i,o,s),s["delete"](l)),m(e,n,c)}}var k=O;function B(e,t,n,i,r){e!==t&&(0,v.A)(t,function(o,s){if(r||(r=new h.A),(0,E.A)(o))k(e,t,s,n,B,i,r);else{var a=i?i(R(e,s),o,s+"",e,t,r):void 0;void 0===a&&(a=o),m(e,s,a)}},P.A)}var G=B,V=n(4326),H=n(6832);function z(e){return(0,V.A)(function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&(0,H.A)(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);while(++i<r){var a=n[i];a&&e(t,a,i,o)}return t})}var U=z,W=U(function(e,t,n){G(e,t,n)}),$=W,j=n(7500),X=n(8395),Y=n(4554),K=n(8351),q=n(8207),Z=n(903),Q=n(6912),J=n(3588);function ee(){var e=arguments.length;if(!e)return[];var t=Array(e-1),n=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return(0,Q.A)((0,_.A)(n)?(0,w.A)(n):[n],(0,J.A)(t,1))}var te=ee,ne=n(2062),ie=n(5530),re=n(7809),oe=n(5572),se=n(2789),ae=n(4099),le=200;function ue(e,t,n,i){var r=-1,o=ie.A,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=(0,oe.A)(t,(0,se.A)(n))),i?(o=re.A,s=!1):t.length>=le&&(o=ae.A,s=!1,t=new ne.A(t));e:while(++r<a){var c=e[r],d=null==n?c:n(c);if(c=i||0!==c?c:0,s&&d===d){var h=u;while(h--)if(t[h]===d)continue e;l.push(c)}else o(t,d,i)||l.push(c)}return l}var ce=ue,de=(0,V.A)(function(e,t){return(0,S.A)(e)?ce(e,(0,J.A)(t,1,S.A,!0)):[]}),he=de,pe=n(8621),fe=n(6702),ge=n(5040),me=n(545),ve=n(7688),ye=n(8593);function Ce(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:(0,ye.A)(t),(0,ve.A)(e,t<0?0:t,i)):[]}var we=Ce,xe=n(2942),be=n(6956),_e=n(1714),Se=n(106);function Ae(e,t){let n=(0,xe.A)();if(!(0,be.A)(e)&&!(0,_e.A)(e))return n.reject("rs is not an array or object"),n;let i=!1;if((0,_e.A)(e)){i=!0;let t=[];(0,a.A)(e,(e,n)=>{t.push({k:n,v:e})}),e=t}(0,Se.A)(t)||(t=function(e){return e});let r=-1,o=[];return e.reduce(function(e,n){return e.then(function(e){o.push(e),r+=1;let s=r,a=n;return i&&(s=n.k,a=n.v),(0,Se.A)(t)?t(a,s):a})},Promise.resolve()).then(function(e){o.push(e),o=we(o),n.resolve(o)}).catch(function(e){n.reject(e)}),n}var Te=Ae,Ee=n(3173),De=n(8135),Me=n(1969),Ie=n(9860),Re=n(5021),Le=n(4958),Pe=n(662),Ne=n(8842),Fe=n(6670),Oe=n(920),ke=n(3633),Be=n(6224),Ge=n(7517),Ve=n(1669),He=n(2363),ze=n(9651);function Ue(e,t,n=""){if(!(0,Me.A)(e))return[];if(!(0,Me.A)(t))return[];let i=(0,s.A)(e,e=>(0,ze.A)(e,t,n));return i}var We=Ue,$e=n(1510),je=n(7422),Xe=n(1285);function Ye(e){return e&&e.length?(0,Xe.A)(e):[]}var Ke=Ye;function qe(e){if(!(0,Me.A)(e))return[];let t=[];return(0,a.A)(e,function(e){let n=(0,je.A)(e);t=[...t,...n],t=Ke(t)}),t}var Ze=qe;function Qe(e,t=null,n={}){let i=(0,j.A)(n,"returnWithStateAndMsg",null);(0,Ne.A)(i)||(i=!1);let r=e=>i?{state:"error",msg:e}:[];if(!(0,Me.A)(e))return r("invalid ltdt");if((0,Me.A)(t)||(t=Ze(e)),0===(0,l.A)(t))return r("invalid keys, can not extract any key from ltdt");let o=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(o=!0)}),o)return r("invalid ltdt, every element must be an effective object");let u=(0,j.A)(n,"empty",""),c=[];return(0,a.A)(e,function(e){let n=(0,s.A)(t,function(t){return(0,fe.A)(e,t)?(0,Ne.A)(e[t])?e[t]?"true":"false":(0,Ie.A)(e[t])||(0,Le.A)(e[t])?e[t]:(0,$e.A)(e[t]):u});c.push(n)}),i?{state:"success",msg:c}:c}var Je=Qe,et=n(6515),tt=n(8409);function nt(e,t){window.navigator.msSaveOrOpenBlob(t,e)}function it(e,t){let n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}function rt(e,t){(0,et.A)()?(0,Re.A)(e)?(0,tt.A)()?nt(e,t):it(e,t):console.log("no filename"):console.log("no window")}var ot=rt,st=n(8817);function at(e,t=[],n={},i={}){let r=(0,j.A)(i,"returnWithStateAndMsg",null);(0,Ne.A)(r)||(r=!1);let o=e=>r?{state:"error",msg:e}:[];if(!(0,Me.A)(e))return o("invalid ltdt");(0,Me.A)(t)||(t=Ze(e)),(0,De.A)(n)||(n={},(0,a.A)(t,e=>{n[e]=e}));let l=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(l=!0)}),l)return o("invalid ltdt, every element must be an effective object");let u=(0,s.A)(t,function(e){return(0,j.A)(n,e)}),c=Je(e,t,{returnWithStateAndMsg:!0});if("error"===c.state)return o(`ltdtkeys2mat: ${c.msg}`);let d=c.msg,h=te([u],d);return r?{state:"success",msg:h}:h}var lt=at;function ut(e){if(!(0,be.A)(e))return{error:"data is not an array"};let t=null;try{let n=(0,st.A)(e,De.A);n&&(e=lt(e)),t={rows:e}}catch(n){return{error:n}}return t}var ct=ut;function dt(){let e={sheets:[]};return e}var ht=dt;function pt(e,t="data"){if(!(0,_e.A)(e))return{error:"sheet is not an object"};if(!(0,be.A)((0,j.A)(e,"rows")))return{error:"sheet.rows is not an array"};(0,Re.A)(t)||(t="data");let n=ht();return n.sheets.push({...e,name:t}),n}var ft=pt;function gt(e,t="data"){if(!(0,be.A)(e))return{error:"data is not an array"};(0,Re.A)(t)||(t="data");let n=null,i=ct(e);return(0,fe.A)(i,"error")?i:(n=ft(i,t),(0,fe.A)(n,"error"),n)}var mt=gt;class vt extends Error{name="HucreError";constructor(e,t){super(e,t)}}class yt extends vt{details;name="ParseError";constructor(e,t,n){super(e,n),this.details=t}}class Ct extends vt{name="ZipError"}class wt extends vt{name="XmlError"}class xt extends vt{name="InvalidArgumentError"}class bt extends vt{name="EncryptedFileError";format;constructor(e,t){super(t??(e?`File is password-protected (${e.toUpperCase()} encrypted with the OLE2/CFB container). Provide a password in options to decrypt it.`:"File is password-protected. Provide a password in options.")),this.format=e}}class _t extends vt{name="DecryptionError";constructor(e="Failed to decrypt: incorrect password or corrupt encryption data.",t){super(e,t)}}const St=2147483648,At=1073741824,Tt=1048575,Et=2e7,Dt=16777216,Mt=1e7,It=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})(),Rt=4294967295;function Lt(e,t){let n=e;for(let i=0;i<t.length;i++)n=It[255&(n^t[i])]^n>>>8;return n>>>0}function Pt(e){return(4294967295^e)>>>0}function Nt(e){return Pt(Lt(Rt,e))}class Ft{data;pos=0;bitBuf=0;bitCount=0;constructor(e){this.data=e}readBits(e){while(this.bitCount<e){if(this.pos>=this.data.length)throw new Ct("Unexpected end of DEFLATE data");this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}const t=this.bitBuf&(1<<e)-1;return this.bitBuf>>>=e,this.bitCount-=e,t}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new Ct("Unexpected end of DEFLATE data");return this.data[this.pos++]}readUint16LE(){const e=this.readByte(),t=this.readByte();return e|t<<8}get offset(){return this.pos}get available(){return this.pos<this.data.length||this.bitCount>0}}function Ot(e,t){const n=15,i=new Uint16Array(n+1);for(let a=0;a<t;a++)e[a]&&i[e[a]]++;const r=new Uint16Array(n+1);for(let a=1;a<n;a++)r[a+1]=r[a]+i[a];const o=r[n]+i[n],s=new Uint16Array(o);for(let a=0;a<t;a++)e[a]&&(s[r[e[a]]++]=a);return{counts:i,symbols:s}}function kt(e,t){let n=0,i=0,r=0;for(let o=1;o<=15;o++){n|=e.readBits(1);const s=t.counts[o];if(n<i+s)return t.symbols[r+(n-i)];r+=s,i=i+s<<1,n<<=1}throw new Ct("Invalid Huffman code")}const Bt=(()=>{const e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return Ot(e,288)})(),Gt=(()=>{const e=new Uint8Array(32);for(let t=0;t<32;t++)e[t]=5;return Ot(e,32)})(),Vt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Ht=[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],zt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Ut=[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],Wt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function $t(e,t=St){const n=new Ft(e);let i=new Uint8Array(3*e.length||1024),r=0;function o(e){if(r+e>t)throw new Ct(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`);if(r+e>i.length){let n=2*i.length;while(r+e>n)n*=2;n>t&&(n=t);const o=new Uint8Array(n);o.set(i),i=o}}function s(e){o(1),i[r++]=e}function a(e,t){o(t);let n=r-e;for(let o=0;o<t;o++)i[r++]=i[n++]}function l(e,t){for(;;){const i=kt(n,e);if(i<256)s(i);else{if(256===i)return;{const e=i-257,r=Vt[e]+n.readBits(Ht[e]),o=kt(n,t),s=zt[o]+n.readBits(Ut[o]);a(s,r)}}}}let u=0;do{u=n.readBits(1);const e=n.readBits(2);if(0===e){n.alignToByte();const e=n.readUint16LE();n.readUint16LE();o(e);for(let t=0;t<e;t++)i[r++]=n.readByte()}else if(1===e)l(Bt,Gt);else{if(2!==e)throw new Ct(`Invalid DEFLATE block type: ${e}`);{const e=n.readBits(5)+257,t=n.readBits(5)+1,i=n.readBits(4)+4,r=new Uint8Array(19);for(let l=0;l<i;l++)r[Wt[l]]=n.readBits(3);const o=Ot(r,19),s=e+t,a=new Uint8Array(s);let u=0;while(u<s){const e=kt(n,o);if(e<16)a[u++]=e;else if(16===e){const e=n.readBits(2)+3,t=u>0?a[u-1]:0;for(let n=0;n<e;n++)a[u++]=t}else if(17===e){const e=n.readBits(3)+3;for(let t=0;t<e;t++)a[u++]=0}else if(18===e){const e=n.readBits(7)+11;for(let t=0;t<e;t++)a[u++]=0}}const c=a.subarray(0,e),d=a.subarray(e,e+t),h=Ot(c,e),p=Ot(d,t);l(h,p)}}}while(0===u);return i.subarray(0,r)}function jt(e){return 0===e.length?new Uint8Array([3,0]):e.length<=64?Xt(e):Yt(e)}function Xt(e){const t=[];let n=0;while(n<e.length){const i=e.length-n,r=Math.min(i,65535),o=n+r>=e.length,s=new Uint8Array(5+r);s[0]=o?1:0,s[1]=255&r,s[2]=r>>8&255,s[3]=255&~r,s[4]=~r>>8&255,s.set(e.subarray(n,n+r),5),t.push(s),n+=r}const i=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}function Yt(e){let t=new Uint8Array(e.length+512),n=0,i=0,r=0;function o(e){if(n+e>t.length){let i=2*t.length;while(n+e>i)i*=2;const r=new Uint8Array(i);r.set(t),t=r}}function s(e,s){i|=e<<r,r+=s;while(r>=8)o(1),t[n++]=255&i,i>>>=8,r-=8}function a(){r>0&&(o(1),t[n++]=255&i,i=0,r=0)}function l(e){e<=143?s(Kt(48+e,8),8):e<=255?s(Kt(e-144+400,9),9):e<=279?s(Kt(e-256,7),7):s(Kt(e-280+192,8),8)}function u(e){s(Kt(e,5),5)}s(1,1),s(1,2);const c=32768,d=258,h=3,p=32768,f=p-1,g=new Int32Array(p).fill(-1),m=new Int32Array(c);function v(t){return t+2>=e.length?0:(e[t]<<10^e[t+1]<<5^e[t+2])&f}let y=0;while(y<e.length){if(y+h>e.length){l(e[y]),y++;continue}const t=v(y);let n=h-1,i=0,r=g[t],o=0;const a=128,p=Math.max(0,y-c);while(r>=p&&o<a){const t=y-r;if(t>0&&t<=c){let o=0;const s=Math.min(d,e.length-y);while(o<s&&e[r+o]===e[y+o])o++;if(o>n&&(n=o,i=t,o===d))break}r=m[r&c-1],o++}if(m[y&c-1]=g[t],g[t]=y,n>=h){const t=qt(n);l(t+257),s(n-Vt[t],Ht[t]);const r=Zt(i);u(r),s(i-zt[r],Ut[r]);for(let i=1;i<n;i++){const t=y+i;if(t+h<=e.length){const e=v(t);m[t&c-1]=g[e],g[e]=t}}y+=n}else l(e[y]),y++}return l(256),a(),t.subarray(0,n)}function Kt(e,t){let n=0;for(let i=0;i<t;i++)n=n<<1|1&e,e>>=1;return n}function qt(e){for(let t=Vt.length-1;t>=0;t--)if(e>=Vt[t])return t;return 0}function Zt(e){for(let t=zt.length-1;t>=0;t--)if(e>=zt[t])return t;return 0}let Qt,Jt;function en(){if(void 0===Qt)try{new CompressionStream("deflate-raw"),Qt="undefined"!==typeof ReadableStream}catch{Qt=!1}return Qt}function tn(){if(void 0===Jt)try{new DecompressionStream("deflate-raw"),Jt="undefined"!==typeof ReadableStream}catch{Jt=!1}return Jt}const nn=67324752,rn=33639248,on=101010256;async function sn(e){if(en())try{const t=new CompressionStream("deflate-raw"),n=t.writable.getWriter(),i=t.readable.getReader();n.write(e),n.close();const r=[];let o=0;for(;;){const{done:e,value:t}=await i.read();if(e)break;r.push(t),o+=t.length}const s=new Uint8Array(o);let a=0;for(const e of r)s.set(e,a),a+=e.length;return s}catch{}return jt(e)}class an{entries=[];paths=new Set;add(e,t,n){if(this.paths.has(e))throw new Ct(`Duplicate ZIP entry: "${e}"`);this.paths.add(e);const i=n?.compress??!0;this.entries.push({path:e,data:t,compress:i})}async build(){const e=[];for(const p of this.entries){const t=p.data.length>0?Nt(p.data):0;let n,i;p.compress&&p.data.length>0?(n=await sn(p.data),i=8,n.length>=p.data.length&&(n=p.data,i=0)):(n=p.data,i=0),e.push({path:p.path,data:p.data,compressedData:n,method:i,entryCrc32:t})}const t=new TextEncoder,n=e.map(e=>t.encode(e.path));let i=0;for(let p=0;p<e.length;p++)i+=30+n[p].length+e[p].compressedData.length;let r=0;for(let p=0;p<e.length;p++)r+=46+n[p].length;const o=22,s=i+r+o,a=new Uint8Array(s),l=new DataView(a.buffer);let u=0;const c=[];for(let p=0;p<e.length;p++){const t=e[p],i=n[p];c.push(u),l.setUint32(u,nn,!0),l.setUint16(u+4,20,!0),l.setUint16(u+6,0,!0),l.setUint16(u+8,t.method,!0),l.setUint16(u+10,0,!0),l.setUint16(u+12,33,!0),l.setUint32(u+14,t.entryCrc32,!0),l.setUint32(u+18,t.compressedData.length,!0),l.setUint32(u+22,t.data.length,!0),l.setUint16(u+26,i.length,!0),l.setUint16(u+28,0,!0),a.set(i,u+30),u+=30+i.length,a.set(t.compressedData,u),u+=t.compressedData.length}const d=u;for(let p=0;p<e.length;p++){const t=e[p],i=n[p];l.setUint32(u,rn,!0),l.setUint16(u+4,20,!0),l.setUint16(u+6,20,!0),l.setUint16(u+8,0,!0),l.setUint16(u+10,t.method,!0),l.setUint16(u+12,0,!0),l.setUint16(u+14,33,!0),l.setUint32(u+16,t.entryCrc32,!0),l.setUint32(u+20,t.compressedData.length,!0),l.setUint32(u+24,t.data.length,!0),l.setUint16(u+28,i.length,!0),l.setUint16(u+30,0,!0),l.setUint16(u+32,0,!0),l.setUint16(u+34,0,!0),l.setUint16(u+36,0,!0),l.setUint32(u+38,0,!0),l.setUint32(u+42,c[p],!0),a.set(i,u+46),u+=46+i.length}const h=u-d;return l.setUint32(u,on,!0),l.setUint16(u+4,0,!0),l.setUint16(u+6,0,!0),l.setUint16(u+8,e.length,!0),l.setUint16(u+10,e.length,!0),l.setUint32(u+12,h,!0),l.setUint32(u+16,d,!0),l.setUint16(u+20,0,!0),a}}function ln(e){return"object"===typeof e&&null!==e&&"string"===typeof e.hyperlink&&"string"===typeof e.text}function un(e){return ln(e)?e.text:e}function cn(e){return"object"===typeof e&&null!==e&&!(e instanceof Date)&&!Array.isArray(e)&&!ln(e)}function dn(e){return cn(e)?e.value??null:e}function hn(e){const t=e.rows;if(!t)return e;let n=!1;for(const o of t){for(const e of o)if(cn(e)){n=!0;break}if(n)break}if(!n)return e;const i=[],r=new Map;for(let o=0;o<t.length;o++){const e=t[o],n=[];for(let t=0;t<e.length;t++){const i=e[t];cn(i)?(r.set(`${o},${t}`,i),n.push(i.value??null)):n.push(i)}i[o]=n}if(e.cells)for(const[o,s]of e.cells)r.set(o,s);return{...e,rows:i,cells:r}}function pn(e){let t=!1;const n=e.map(e=>{const n=hn(e);return n!==e&&(t=!0),n});return t?n:e}function fn(e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}function gn(e){return e>=0&&e<=8||11===e||12===e||e>=14&&e<=31}function mn(e,t="ooxml"){let n="",i=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);let s;switch(o){case 38:s="&amp;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;case 13:s="charRef"===t?"&#13;":fn(13);break;default:gn(o)&&(s=fn(o))}s&&(n+=e.slice(i,r)+s,i=r+1)}return 0===i?e:n+e.slice(i)}function vn(e){let t="",n=0;for(let i=0;i<e.length;i++){let r;switch(e.charCodeAt(i)){case 38:r="&amp;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 34:r="&quot;";break;case 39:r="&apos;";break;case 9:r="&#9;";break;case 10:r="&#10;";break;case 13:r="&#13;";break;default:gn(e.charCodeAt(i))&&(r=fn(e.charCodeAt(i)))}r&&(t+=e.slice(n,i)+r,n=i+1)}return 0===n?e:t+e.slice(n)}function yn(e){if(!e)return"";let t="";const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i],o=e[r];void 0!==o&&null!==o&&(t+="boolean"===typeof o?` ${r}="${o?"true":"false"}"`:` ${r}="${vn(String(o))}"`)}return t}function Cn(e,t){return`<${e}${yn(t)}/>`}function wn(e){const t=mn(e),n=e.length>0&&(" "===e[0]||" "===e[e.length-1]||e.includes("\n")||e.includes("\t"));return n?`<t xml:space="preserve">${t}</t>`:xn("t",void 0,t)}function xn(e,t,n){const i=yn(t);if(void 0===n||null===n)return`<${e}${i}/>`;const r=Array.isArray(n)?n.join(""):n;return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}/>`}function bn(e){const t=e?.standalone??"yes";return`<?xml version="1.0" encoding="UTF-8" standalone="${t}"?>`}function _n(e,t,n,i){const r=[],o=!1!==i?.declaration;return o&&r.push(bn(i)),void 0===n||null===n?r.push(Cn(e,t)):r.push(xn(e,t,n)),r.join("")}const Sn={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};function An(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}function Tn(e){return-1===e.indexOf("&")?e:e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>{if(35===t.charCodeAt(0)){const n=120===t.charCodeAt(1)||88===t.charCodeAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isNaN(n)||(n<0||n>1114111)?e:String.fromCodePoint(n)}return Sn[t]??e})}function En(e){return-1===e.indexOf("_x")?e:e.replace(/_x([0-9A-Fa-f]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function Dn(e){const t={};let n=0;const i=e.length;while(n<i){while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i)break;const r=n;while(n<i&&61!==e.charCodeAt(n)&&!In(e.charCodeAt(n)))n++;const o=e.slice(r,n);if(!o)break;while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i||61!==e.charCodeAt(n)){t[o]="";continue}n++;while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i)break;const s=e.charCodeAt(n);if(34===s||39===s){n++;const r=n;while(n<i&&e.charCodeAt(n)!==s)n++;t[o]=Tn(An(e.slice(r,n))),n++}else{const r=n;while(n<i&&!In(e.charCodeAt(n)))n++;t[o]=Tn(An(e.slice(r,n)))}}return t}function Mn(e){const t=e.indexOf(":");return-1===t?{local:e,prefix:""}:{prefix:e.slice(0,t),local:e.slice(t+1)}}function In(e){return 32===e||9===e||10===e||13===e}function Rn(e,t){const n=65279===e.charCodeAt(0)?e.slice(1):e,i=n.length;let r=0;function o(e){let t=1,o=1;for(let s=0;s<r&&s<i;s++)10===n.charCodeAt(s)?(t++,o=1):o++;throw new wt(`${e} at line ${t}, column ${o}`)}while(r<i){if(60===n.charCodeAt(r)){const e=r+1<i?n.charCodeAt(r+1):0;if(33===e){if("\x3c!--"===n.slice(r,r+4)){const e=n.indexOf("--\x3e",r+4);-1===e&&o("Unterminated comment"),r=e+3;continue}if("<![CDATA["===n.slice(r,r+9)){const e=n.indexOf("]]>",r+9);-1===e&&o("Unterminated CDATA section");const i=n.slice(r+9,e);t.onCData?.(i),t.onText?.(i),r=e+3;continue}const e=n.indexOf(">",r+2);-1===e&&o("Unterminated declaration"),r=e+1;continue}if(63===e){const e=n.indexOf("?>",r+2);-1===e&&o("Unterminated processing instruction"),r=e+2;continue}if(47===e){const e=n.indexOf(">",r+2);-1===e&&o("Unterminated closing tag");const i=n.slice(r+2,e).trim();t.onCloseTag?.(i),r=e+1;continue}let s=r+1,a=0;while(s<i){const e=n.charCodeAt(s);if(a)e===a&&(a=0);else if(34===e||39===e)a=e;else if(62===e)break;s++}s>=i&&o("Unterminated opening tag");const l=47===n.charCodeAt(s-1),u=n.slice(r+1,l?s-1:s);let c=0;const d=u.length;while(c<d&&!In(u.charCodeAt(c)))c++;const h=u.slice(0,c),p=c<d?u.slice(c+1):"",f=p?Dn(p):{};t.onOpenTag?.(h,f),l&&t.onCloseTag?.(h),r=s+1;continue}const e=r;while(r<i&&60!==n.charCodeAt(r))r++;const s=n.slice(e,r);if(s){const e=Tn(An(s));t.onText?.(e)}}}async function Ln(e,t,n){const i=n?.strict??!1,r=e.getReader(),o=new TextDecoder("utf-8");let s="",a=!1;try{for(;;){const{done:e,value:n}=await r.read();if(e)break;s+=o.decode(n,{stream:!0}),a||(65279===s.charCodeAt(0)&&(s=s.slice(1)),a=!0),s=kn(s,t,!1,i)}s+=o.decode(),s.length>0&&kn(s,t,!0,i)}finally{try{await r.cancel()}catch{}try{r.releaseLock()}catch{}}}const Pn=262144,Nn=64;function Fn(e,t,n){let i=n;const r=e.lastIndexOf("&",i-1);r>=t&&n-r<=Nn&&-1===e.indexOf(";",r)&&(i=r);const o=i>t?e.charCodeAt(i-1):0;return(o>=55296&&o<=56319||13===o)&&i--,i>t?i:t}function On(e,t,n,i){if(e)throw new wt(i);return t.slice(n)}function kn(e,t,n,i){let r=0;const o=e.length;while(r<o){if(60===e.charCodeAt(r)){const s=r+1<o?e.charCodeAt(r+1):-1;if(-1===s&&!n)return e.slice(r);if(33===s){if("\x3c!--"===e.slice(r,r+4)){const t=e.indexOf("--\x3e",r+4);if(-1===t)return On(n&&i,e,r,"Unterminated comment");r=t+3;continue}if("<![CDATA["===e.slice(r,r+9)){const o=e.indexOf("]]>",r+9);if(-1===o)return On(n&&i,e,r,"Unterminated CDATA section");const s=e.slice(r+9,o);t.onCData?.(s),t.onText?.(s),r=o+3;continue}if(!n&&o-r<9)return e.slice(r);const s=e.indexOf(">",r+2);if(-1===s)return On(n&&i,e,r,"Unterminated declaration");r=s+1;continue}if(63===s){const t=e.indexOf("?>",r+2);if(-1===t)return On(n&&i,e,r,"Unterminated processing instruction");r=t+2;continue}if(47===s){const o=e.indexOf(">",r+2);if(-1===o)return On(n&&i,e,r,"Unterminated closing tag");const s=e.slice(r+2,o).trim();t.onCloseTag?.(s),r=o+1;continue}let a=r+1,l=0;while(a<o){const t=e.charCodeAt(a);if(l)t===l&&(l=0);else if(34===t||39===t)l=t;else if(62===t)break;a++}if(a>=o)return On(n&&i,e,r,"Unterminated opening tag");const u=47===e.charCodeAt(a-1),c=e.slice(r+1,u?a-1:a);let d=0;const h=c.length;while(d<h&&!In(c.charCodeAt(d)))d++;const p=c.slice(0,d),f=d<h?c.slice(d+1):"",g=f?Dn(f):{};t.onOpenTag?.(p,g),u&&t.onCloseTag?.(p),r=a+1;continue}const s=r;while(r<o&&60!==e.charCodeAt(r))r++;if(r>=o&&!n){if(o-s>Pn){const n=Fn(e,s,o);if(n>s)return t.onText?.(Tn(An(e.slice(s,n)))),e.slice(n)}return e.slice(s)}const a=e.slice(s,r);if(a){const e=Tn(An(a));t.onText?.(e)}}return""}function Bn(e){const t={tag:"",local:"",prefix:"",attrs:{},children:[]},n=[t];if(Rn(e,{onOpenTag(e,t){const{local:i,prefix:r}=Mn(e),o={tag:e,local:i,prefix:r,attrs:t,children:[]};n[n.length-1].children.push(o),n.push(o)},onCloseTag(e){if(n.length<=1)throw new wt("Unexpected closing tag: no matching open tag");const t=n[n.length-1];if(t.tag!==e)throw new wt(`Mismatched closing tag: expected </${t.tag}> but found </${e}>`);if(n.pop(),t.children.length>0){const e=[];for(const n of t.children)"string"===typeof n&&e.push(n);e.length>0&&(t.text=e.join(""))}},onText(e){n[n.length-1].children.push(e)}}),n.length>1){const e=n[n.length-1].tag;throw new wt(`Unexpected end of document: unclosed element <${e}>`)}if(0===t.children.length)throw new wt("Empty document: no root element found");for(const i of t.children)if("string"!==typeof i)return i;throw new wt("No root element found in document")}function Gn(e,t){for(const n of e.children)if("string"!==typeof n&&n.local===t)return n}function Vn(e){const t=[];for(const n of e.children)"string"!==typeof n&&t.push(n);return t}function Hn(e,t){if(e.local===t)return e;for(const n of e.children){if("string"===typeof n)continue;const e=Hn(n,t);if(e)return e}}function zn(e,t){const n=Gn(e,t);if(!n)return"";let i="";for(const r of n.children)"string"===typeof r&&(i+=r);return i}function Un(e,t){if(void 0===e)return t;const n=parseInt(e,10);return Number.isNaN(n)?t:n}const Wn="http://schemas.openxmlformats.org/spreadsheetml/2006/main",$n="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",jn="XLDAPR",Xn="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}",Yn="xl/metadata.xml",Kn="application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",qn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";function Zn(){const e=Cn("metadataType",{name:jn,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1}),t=xn("bk",void 0,[xn("extLst",void 0,[xn("ext",{uri:Xn},[Cn("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0})])])]),n=xn("bk",void 0,[Cn("rc",{t:1,v:0})]);return _n("metadata",{xmlns:Wn,"xmlns:xda":$n},[xn("metadataTypes",{count:1},[e]),xn("futureMetadata",{name:jn,count:1},[t]),xn("cellMetadata",{count:1},[n])])}function Qn(e){const t=new Set,n=Bn(e),i="metadata"===n.local?n:Gn(n,"metadata");if(!i)return t;const r=[],o=Gn(i,"metadataTypes");if(o)for(const u of Vn(o))"metadataType"===u.local&&r.push(u.attrs["name"]??"");const s=new Map;for(const u of Vn(i)){if("futureMetadata"!==u.local)continue;const e=u.attrs["name"]??"",t=s.get(e)??[];for(const n of Vn(u))"bk"===n.local&&t.push(Jn(n));s.set(e,t)}const a=Gn(i,"cellMetadata");if(!a)return t;let l=0;for(const u of Vn(a))if("bk"===u.local){l++;for(const e of Vn(u)){if("rc"!==e.local)continue;if(r[Un(e.attrs["t"],0)-1]!==jn)continue;const n=s.get(jn),i=Un(e.attrs["v"],-1);(!n||i<0||i>=n.length||n[i])&&t.add(l)}}return t}function Jn(e){for(const t of Vn(e))if("extLst"===t.local)for(const e of Vn(t))if("ext"===e.local&&(e.attrs["uri"]??"").toLowerCase()===Xn)for(const t of Vn(e)){if("dynamicArrayProperties"!==t.local)continue;const e=t.attrs["fDynamic"];return"0"!==e&&"false"!==e}return!0}const ei="http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag",ti="{C7286773-470A-42A8-94C5-96B5CB345126}",ni="http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",ii="application/vnd.ms-excel.featurepropertybag+xml",ri="xl/featurePropertyBag/featurePropertyBag.xml";ri.toLowerCase();function oi(){const e=[Cn("bag",{type:"Checkbox"}),xn("bag",{type:"XFControls"},[xn("bagId",{k:"CellControl"},"0")]),xn("bag",{type:"XFComplement"},[xn("bagId",{k:"XFControls"},"1")]),xn("bag",{type:"XFComplements",extRef:"XFComplementsMapperExtRef"},[xn("a",{k:"MappedFeaturePropertyBags"},[xn("bagId",void 0,"2")])])];return _n("FeaturePropertyBags",{xmlns:ei},e)}const si="http://schemas.openxmlformats.org/package/2006/content-types",ai="application/vnd.openxmlformats-package.relationships+xml",li="application/xml",ui="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",ci="application/vnd.ms-excel.sheet.macroEnabled.main+xml",di="application/vnd.ms-office.vbaProject",hi="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",pi="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",fi="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",gi="application/vnd.openxmlformats-officedocument.drawing+xml",mi="application/vnd.openxmlformats-officedocument.drawingml.chart+xml",vi="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",yi="application/vnd.openxmlformats-officedocument.vmlDrawing",Ci="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",wi="application/vnd.openxmlformats-officedocument.theme+xml",xi="application/vnd.ms-excel.threadedcomments+xml",bi="application/vnd.ms-excel.person+xml",_i="application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Si="application/vnd.openxmlformats-officedocument.drawing+xml",Ai="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",Ti="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",Ei="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",Di="application/vnd.ms-excel.slicer+xml",Mi="application/vnd.ms-excel.slicerCache+xml",Ii="application/vnd.ms-excel.timeline+xml",Ri="application/vnd.ms-excel.timelineCache+xml",Li="application/vnd.ms-office.chartstyle+xml",Pi="application/vnd.ms-office.chartcolorstyle+xml",Ni={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};function Fi(e,t){let n;n="number"===typeof e?{sheetCount:e,hasSharedStrings:t??!1}:e;const i=[];if(i.push(Cn("Default",{Extension:"rels",ContentType:ai})),i.push(Cn("Default",{Extension:"xml",ContentType:li})),n.hasMacros&&i.push(Cn("Default",{Extension:"bin",ContentType:di})),n.imageExtensions)for(const r of n.imageExtensions){const e=Ni[r];e&&i.push(Cn("Default",{Extension:r,ContentType:e}))}i.push(Cn("Override",{PartName:"/xl/workbook.xml",ContentType:n.hasMacros?ci:ui}));for(let r=1;r<=n.sheetCount;r++)i.push(Cn("Override",{PartName:`/xl/worksheets/sheet${r}.xml`,ContentType:hi}));if(i.push(Cn("Override",{PartName:"/xl/styles.xml",ContentType:pi})),i.push(Cn("Override",{PartName:"/xl/theme/theme1.xml",ContentType:wi})),n.hasSharedStrings&&i.push(Cn("Override",{PartName:"/xl/sharedStrings.xml",ContentType:fi})),n.drawingIndices)for(const r of n.drawingIndices)i.push(Cn("Override",{PartName:`/xl/drawings/drawing${r}.xml`,ContentType:gi}));if(n.chartIndices)for(const r of n.chartIndices)i.push(Cn("Override",{PartName:`/xl/charts/chart${r}.xml`,ContentType:mi}));if(n.commentIndices&&n.commentIndices.length>0&&i.push(Cn("Default",{Extension:"vml",ContentType:yi})),n.commentIndices)for(const r of n.commentIndices)i.push(Cn("Override",{PartName:`/xl/comments${r}.xml`,ContentType:vi}));if(n.tableIndices)for(const r of n.tableIndices)i.push(Cn("Override",{PartName:`/xl/tables/table${r}.xml`,ContentType:Ci}));if(n.threadedCommentSheetIndices)for(const r of n.threadedCommentSheetIndices)i.push(Cn("Override",{PartName:`/xl/threadedComments/threadedComment${r}.xml`,ContentType:xi}));if(n.hasPersons&&i.push(Cn("Override",{PartName:"/xl/persons/person.xml",ContentType:bi})),n.externalLinkIndices)for(const r of n.externalLinkIndices)i.push(Cn("Override",{PartName:`/xl/externalLinks/externalLink${r}.xml`,ContentType:_i}));if(n.hasCellImages&&i.push(Cn("Override",{PartName:"/xl/cellimages.xml",ContentType:Si})),n.pivotTableIndices)for(const r of n.pivotTableIndices)i.push(Cn("Override",{PartName:`/xl/pivotTables/pivotTable${r}.xml`,ContentType:Ai}));if(n.pivotCacheDefinitionIndices)for(const r of n.pivotCacheDefinitionIndices)i.push(Cn("Override",{PartName:`/xl/pivotCache/pivotCacheDefinition${r}.xml`,ContentType:Ti}));if(n.pivotCacheRecordIndices)for(const r of n.pivotCacheRecordIndices)i.push(Cn("Override",{PartName:`/xl/pivotCache/pivotCacheRecords${r}.xml`,ContentType:Ei}));if(n.slicerIndices)for(const r of n.slicerIndices)i.push(Cn("Override",{PartName:`/xl/slicers/slicer${r}.xml`,ContentType:Di}));if(n.slicerCacheIndices)for(const r of n.slicerCacheIndices)i.push(Cn("Override",{PartName:`/xl/slicerCaches/slicerCache${r}.xml`,ContentType:Mi}));if(n.timelineIndices)for(const r of n.timelineIndices)i.push(Cn("Override",{PartName:`/xl/timelines/timeline${r}.xml`,ContentType:Ii}));if(n.timelineCacheIndices)for(const r of n.timelineCacheIndices)i.push(Cn("Override",{PartName:`/xl/timelineCaches/timelineCache${r}.xml`,ContentType:Ri}));if(n.chartStyleIndices)for(const r of n.chartStyleIndices)i.push(Cn("Override",{PartName:`/xl/charts/style${r}.xml`,ContentType:Li}));if(n.chartColorsIndices)for(const r of n.chartColorsIndices)i.push(Cn("Override",{PartName:`/xl/charts/colors${r}.xml`,ContentType:Pi}));return n.hasMetadata&&i.push(Cn("Override",{PartName:`/${Yn}`,ContentType:Kn})),n.hasFeaturePropertyBag&&i.push(Cn("Override",{PartName:`/${ri}`,ContentType:ii})),n.hasCoreProps&&i.push(Cn("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"})),n.hasAppProps&&i.push(Cn("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"})),n.hasCustomProps&&i.push(Cn("Override",{PartName:"/docProps/custom.xml",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml"})),_n("Types",{xmlns:si},i)}function Oi(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e.charCodeAt(n);t=t>>14&1|t<<1&32767,t^=i}return t=t>>14&1|t<<1&32767,t^=e.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}const ki="http://schemas.openxmlformats.org/spreadsheetml/2006/main",Bi="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Gi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Vi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Hi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",zi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Ui="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Wi="http://schemas.openxmlformats.org/package/2006/relationships";function $i(e,t,n,i,r,o,s,a,l){const u=[];for(let p=0;p<e.length;p++){const t=e[p],n={name:t.name,sheetId:p+1,"r:id":`rId${p+1}`};t.hidden?n["state"]="hidden":t.veryHidden&&(n["state"]="veryHidden"),u.push(Cn("sheet",n))}const c=[];if("1904"===n&&c.push(Cn("workbookPr",{date1904:1})),r){const e={};r.lockStructure&&(e["lockStructure"]=1),r.lockWindows&&(e["lockWindows"]=1),r.password&&(e["workbookPassword"]=Oi(r.password)),c.push(Cn("workbookProtection",e))}const d=i??0;if(c.push(xn("bookViews",void 0,[Cn("workbookView",{xWindow:0,yWindow:0,windowWidth:16384,windowHeight:8192,activeTab:d})])),c.push(xn("sheets",void 0,u)),o&&o.length>0){const e=o.map(e=>Cn("externalReference",{"r:id":e.rId}));c.push(xn("externalReferences",void 0,e))}if(t&&t.length>0){const n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,t);const i=[];for(const e of t){const t={name:e.name};if(void 0!==e.scope){const i=n.get(e.scope);void 0!==i&&(t["localSheetId"]=i)}e.comment&&(t["comment"]=e.comment),i.push(xn("definedName",t,mn(e.range)))}c.push(xn("definedNames",void 0,i))}if(c.push(Cn("calcPr",{calcId:0,fullCalcOnLoad:1})),s&&s.length>0){const e=s.map(e=>Cn("pivotCache",{cacheId:e.cacheId,"r:id":e.rId}));c.push(xn("pivotCaches",void 0,e))}const h=[];if(a&&a.length>0){const e=a.map(e=>Cn("x14:slicerCache",{"r:id":e.rId})),t=xn("x14:slicerCaches",void 0,e);h.push(xn("ext",{uri:"{BBE1A952-AA13-448E-AADC-164F8A28A991}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},[t]))}if(l&&l.length>0){const e=l.map(e=>Cn("x15:timelineCachePivotCache",{"r:id":e.rId})),t=xn("x15:timelineCachePivotCaches",void 0,e);h.push(xn("ext",{uri:"{7E03D99C-DC04-49D9-9315-930204A7B6E9}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},[t]))}return h.length>0&&c.push(xn("extLst",void 0,h)),_n("workbook",{xmlns:ki,"xmlns:r":Bi},c)}const ji="http://schemas.microsoft.com/office/2006/relationships/vbaProject",Xi="http://schemas.microsoft.com/office/2017/10/relationships/person",Yi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",Ki="http://www.wps.cn/officeDocument/2017/relationships/cellimage",qi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",Zi="http://schemas.microsoft.com/office/2007/relationships/slicerCache",Qi="http://schemas.microsoft.com/office/2011/relationships/timelineCache";function Ji(e,t,n,i,r,o,s,a,l,u,c){const d=[];for(let p=1;p<=e;p++)d.push(Cn("Relationship",{Id:`rId${p}`,Type:Gi,Target:`worksheets/sheet${p}.xml`}));let h=e+1;if(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Vi,Target:"styles.xml"})),h++,t&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Hi,Target:"sharedStrings.xml"})),h++),d.push(Cn("Relationship",{Id:`rId${h}`,Type:zi,Target:"theme/theme1.xml"})),h++,c&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:qn,Target:"metadata.xml"})),h++),n&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:ji,Target:"vbaProject.bin"})),h++),i&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:ni,Target:"featurePropertyBag/featurePropertyBag.xml"})),h++),r&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Xi,Target:"persons/person.xml"})),h++),o){for(const e of o)d.push(Cn("Relationship",{Id:e.rId,Type:Yi,Target:e.target}));h+=o.length}if(u&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Ki,Target:"cellimages.xml"})),h++),s)for(const p of s)d.push(Cn("Relationship",{Id:p.rId,Type:qi,Target:p.target}));if(a)for(const p of a)d.push(Cn("Relationship",{Id:p.rId,Type:Zi,Target:p.target}));if(l)for(const p of l)d.push(Cn("Relationship",{Id:p.rId,Type:Qi,Target:p.target}));return _n("Relationships",{xmlns:Wi},d)}function er(e){const t=[];t.push(Cn("Relationship",{Id:"rId1",Type:Ui,Target:"xl/workbook.xml"}));let n=2;return e?.hasCoreProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"})),e?.hasAppProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Target:"docProps/app.xml"})),e?.hasCustomProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Target:"docProps/custom.xml"})),_n("Relationships",{xmlns:Wi},t)}function tr(e){return void 0===e?void 0:{...e}}function nr(e){const t={...e};return e.color&&(t.color=tr(e.color)),t}function ir(e){if("gradient"===e.type)return{...e,stops:e.stops.map(e=>({...e,color:{...e.color}}))};const t={...e};return e.fgColor&&(t.fgColor=tr(e.fgColor)),e.bgColor&&(t.bgColor=tr(e.bgColor)),t}function rr(e){if(void 0===e)return;const t={...e};return e.color&&(t.color=tr(e.color)),t}function or(e){const t={...e};for(const n of["top","right","bottom","left","diagonal"])e[n]&&(t[n]=rr(e[n]));return t}function sr(e){const t={...e};return e.font&&(t.font=nr(e.font)),e.fill&&(t.fill=ir(e.fill)),e.border&&(t.border=or(e.border)),e.alignment&&(t.alignment={...e.alignment}),e.protection&&(t.protection={...e.protection}),t}const ar="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function lr(e,t){const n={};return void 0!==t.rgb&&(n["rgb"]=6===t.rgb.length?`FF${t.rgb}`:t.rgb),void 0!==t.theme&&(n["theme"]=t.theme),void 0!==t.tint&&(n["tint"]=t.tint),void 0!==t.indexed&&(n["indexed"]=t.indexed),Cn(e,n)}function ur(e){const t=[];return e.bold&&t.push(Cn("b")),e.italic&&t.push(Cn("i")),void 0!==e.underline&&!1!==e.underline&&(!0===e.underline||"single"===e.underline?t.push(Cn("u")):t.push(Cn("u",{val:e.underline}))),e.strikethrough&&t.push(Cn("strike")),void 0!==e.charset&&t.push(Cn("charset",{val:e.charset})),void 0!==e.family&&t.push(Cn("family",{val:e.family})),e.scheme&&t.push(Cn("scheme",{val:e.scheme})),e.color&&t.push(lr("color",e.color)),void 0!==e.size&&t.push(Cn("sz",{val:e.size})),e.name&&t.push(Cn("name",{val:e.name})),e.vertAlign&&t.push(Cn("vertAlign",{val:e.vertAlign})),xn("font",void 0,t)}function cr(e){if("pattern"===e.type){const t=[];e.fgColor&&t.push(lr("fgColor",e.fgColor)),e.bgColor&&t.push(lr("bgColor",e.bgColor));const n=xn("patternFill",{patternType:e.pattern},t.length>0?t:void 0);return xn("fill",void 0,[n])}const t=[];for(const r of e.stops)t.push(xn("stop",{position:r.position},[lr("color",r.color)]));const n={};void 0!==e.degree&&(n["degree"]=e.degree);const i=xn("gradientFill",n,t);return xn("fill",void 0,[i])}function dr(e,t){return t?t.color?xn(""+e,{style:t.style},[lr("color",t.color)]):Cn(e,{style:t.style}):Cn(e)}function hr(e){const t={};e.diagonalUp&&(t["diagonalUp"]=!0),e.diagonalDown&&(t["diagonalDown"]=!0);const n=[dr("left",e.left),dr("right",e.right),dr("top",e.top),dr("bottom",e.bottom),dr("diagonal",e.diagonal)];return xn("border",Object.keys(t).length>0?t:void 0,n)}function pr(e){if(!e)return"";const t=[];return void 0!==e.rgb&&t.push(`rgb:${e.rgb}`),void 0!==e.theme&&t.push(`th:${e.theme}`),void 0!==e.tint&&t.push(`tint:${e.tint}`),void 0!==e.indexed&&t.push(`idx:${e.indexed}`),t.join("|")}function fr(e){const t=[];return e.name&&t.push(`n:${e.name}`),void 0!==e.size&&t.push(`s:${e.size}`),e.bold&&t.push("b"),e.italic&&t.push("i"),void 0!==e.underline&&!1!==e.underline&&t.push(`u:${e.underline}`),e.strikethrough&&t.push("st"),e.color&&t.push(`c:${pr(e.color)}`),e.vertAlign&&t.push(`va:${e.vertAlign}`),void 0!==e.family&&t.push(`fam:${e.family}`),void 0!==e.charset&&t.push(`cs:${e.charset}`),e.scheme&&t.push(`sch:${e.scheme}`),t.join(",")}function gr(e){return"pattern"===e.type?`p:${e.pattern}|fg:${pr(e.fgColor)}|bg:${pr(e.bgColor)}`:`g:${e.degree??""}|${e.stops.map(e=>`${e.position}:${pr(e.color)}`).join(";")}`}function mr(e){return e?`${e.style}:${pr(e.color)}`:""}function vr(e){return[`l:${mr(e.left)}`,`r:${mr(e.right)}`,`t:${mr(e.top)}`,`b:${mr(e.bottom)}`,`d:${mr(e.diagonal)}`,e.diagonalUp?"du":"",e.diagonalDown?"dd":""].join("|")}function yr(e,t){const n=t?.reuseStyleIdentity??!1,i={name:e?.name??"Calibri",size:e?.size??11,...e},r=[{key:fr(i),font:i}],o=new Map([[r[0].key,0]]),s=[{key:"p:none|fg:|bg:",fill:{type:"pattern",pattern:"none"}},{key:"p:gray125|fg:|bg:",fill:{type:"pattern",pattern:"gray125"}}],a=new Map([[s[0].key,0],[s[1].key,1]]),l={},u=[{key:vr(l),border:l}],c=new Map([[u[0].key,0]]),d=[],h=new Map;let p=164;const f="nf:0|f:0|fl:0|b:0|a:|p:",g=[{key:f,numFmtId:0,fontId:0,fillId:0,borderId:0}],m=new Map([[f,0]]);function v(e){const t=fr(e),n=o.get(t);if(void 0!==n)return n;const i=r.length;return r.push({key:t,font:nr(e)}),o.set(t,i),i}function y(e){const t=gr(e),n=a.get(t);if(void 0!==n)return n;const i=s.length;return s.push({key:t,fill:ir(e)}),a.set(t,i),i}function C(e){const t=vr(e),n=c.get(t);if(void 0!==n)return n;const i=u.length;return u.push({key:t,border:or(e)}),c.set(t,i),i}function w(e){const t=h.get(e);if(void 0!==t)return t;const n=p++;return d.push({id:n,formatCode:e}),h.set(e,n),n}function x(e){if(!e)return"";const t=[];return e.horizontal&&t.push(`h:${e.horizontal}`),e.vertical&&t.push(`v:${e.vertical}`),e.wrapText&&t.push("w"),e.shrinkToFit&&t.push("sf"),void 0!==e.textRotation&&t.push(`r:${e.textRotation}`),void 0!==e.indent&&t.push(`i:${e.indent}`),e.readingOrder&&t.push(`ro:${e.readingOrder}`),t.join(",")}function b(e){if(!e)return"";const t=[];return void 0!==e.locked&&t.push(`l:${e.locked}`),void 0!==e.hidden&&t.push(`h:${e.hidden}`),t.join(",")}const _=[],S=new Map;function A(e){const t=[];return e.font&&t.push(`f:${fr(e.font)}`),e.fill&&t.push(`fl:${gr(e.fill)}`),e.border&&t.push(`b:${vr(e.border)}`),e.numFmt&&t.push(`nf:${e.numFmt}`),e.alignment&&t.push(`a:${x(e.alignment)}`),t.join("|")}function T(e){const t=A(e),n=S.get(t);if(void 0!==n)return n;const i=_.length;return _.push(e),S.set(t,i),i}function E(e){return I(e,!1)}function D(e){return I(e??{},!0)}const M=n?new WeakMap:void 0;function I(e,t){if(M&&!t){const t=M.get(e);if(void 0!==t)return t}const n=e.font?v(e.font):0,i=e.fill?y(e.fill):0,r=e.border?C(e.border):0,o=e.numFmt?w(e.numFmt):0,s=[`nf:${o}`,`f:${n}`,`fl:${i}`,`b:${r}`,`a:${x(e.alignment)}`,`p:${b(e.protection)}`,t?"cb:1":"cb:0"].join("|"),a=m.get(s);if(void 0!==a)return M&&!t&&M.set(e,a),a;const l=g.length;return g.push({key:s,numFmtId:o,fontId:n,fillId:i,borderId:r,alignment:e.alignment?{...e.alignment}:void 0,protection:e.protection?{...e.protection}:void 0,hasCheckboxFeature:t||void 0}),m.set(s,l),M&&!t&&M.set(e,l),l}function R(){for(const e of g)if(e.hasCheckboxFeature)return!0;return!1}function L(e){const t={};if(e.horizontal&&(t["horizontal"]=e.horizontal),e.vertical&&(t["vertical"]=e.vertical),e.wrapText&&(t["wrapText"]=!0),e.shrinkToFit&&(t["shrinkToFit"]=!0),void 0!==e.textRotation&&(t["textRotation"]=e.textRotation),void 0!==e.indent&&(t["indent"]=e.indent),e.readingOrder){const n={ltr:1,rtl:2,context:0};t["readingOrder"]=n[e.readingOrder]}return Cn("alignment",t)}function P(e){const t={};return void 0!==e.locked&&(t["locked"]=e.locked?1:0),void 0!==e.hidden&&(t["hidden"]=e.hidden?1:0),Cn("protection",t)}function N(){const e=[];if(d.length>0){const t=d.map(e=>Cn("numFmt",{numFmtId:e.id,formatCode:e.formatCode}));e.push(xn("numFmts",{count:d.length},t))}const t=r.map(e=>ur(e.font));e.push(xn("fonts",{count:r.length},t));const n=s.map(e=>cr(e.fill));e.push(xn("fills",{count:s.length},n));const i=u.map(e=>hr(e.border));e.push(xn("borders",{count:u.length},i)),e.push(xn("cellStyleXfs",{count:1},[Cn("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]));const o=g.map(e=>{const t={numFmtId:e.numFmtId,fontId:e.fontId,fillId:e.fillId,borderId:e.borderId,xfId:0};0!==e.numFmtId&&(t["applyNumberFormat"]=!0),0!==e.fontId&&(t["applyFont"]=!0),0!==e.fillId&&(t["applyFill"]=!0),0!==e.borderId&&(t["applyBorder"]=!0);const n=void 0!==e.alignment,i=void 0!==e.protection,r=!0===e.hasCheckboxFeature;if(n&&(t["applyAlignment"]=!0),i&&(t["applyProtection"]=!0),n||i||r){const o=[];return n&&o.push(L(e.alignment)),i&&o.push(P(e.protection)),r&&o.push(xn("extLst",void 0,xn("ext",{uri:ti,"xmlns:xfpb":ei},Cn("xfpb:xfComplement",{i:"0"})))),xn("xf",t,o)}return Cn("xf",t)});if(e.push(xn("cellXfs",{count:g.length},o)),e.push(xn("cellStyles",{count:1},[Cn("cellStyle",{name:"Normal",xfId:0,builtinId:0})])),_.length>0){const t=_.map(e=>{const t=[];if(e.font&&t.push(ur(e.font)),e.numFmt){const n=w(e.numFmt);t.push(Cn("numFmt",{numFmtId:n,formatCode:e.numFmt}))}return e.fill&&t.push(cr(e.fill)),e.border&&t.push(hr(e.border)),e.alignment&&t.push(L(e.alignment)),xn("dxf",void 0,t)});e.push(xn("dxfs",{count:_.length},t))}else e.push(Cn("dxfs",{count:0}));return e.push(Cn("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"})),_n("styleSheet",{xmlns:ar},e)}return{addStyle:E,addCheckboxStyle:D,addNumFmt:w,addDxf:T,hasCheckboxFeature:R,toXml:N}}const Cr=Date.UTC(1899,11,31),wr=Date.UTC(1904,0,1),xr=864e5,br=60;function _r(e,t){if(t){const t=wr+Math.round(e*xr);return new Date(t)}if(e===br)return new Date(Date.UTC(1900,1,28));let n=e;e>br&&(n=e-1);const i=Cr+Math.round(n*xr);return new Date(i)}function Sr(e,t){const n=e.getTime();if(t)return(n-wr)/xr;let i=(n-Cr)/xr;return i>=br&&(i+=1),Math.round(1e10*i)/1e10}const Ar=new Set([14,15,16,17,18,19,20,21,22,27,28,29,30,31,32,33,34,35,36,45,46,47,50,51,52,53,54,55,56,57,58]);function Tr(e){return Ar.has(e)}function Er(e){if(!e)return!1;const t=Number(e);if(!Number.isNaN(t)&&Number.isInteger(t)&&Ar.has(t))return!0;let n=e.replace(/\[[$\-\w]*\]/g,"");if(n=n.replace(/\\./g,""),n=n.replace(/"[^"]*"/g,""),n=n.replace(/[*_]./g,""),/^(General|@)$/i.test(n.trim()))return!1;const i=n.toLowerCase();if(/[hs]/.test(i)){if(/\bh{1,2}\b|(?:^|[^a-z])h{1,2}(?:[^a-z]|$)/i.test(i))return!0;if(/\bs{1,2}\b|(?:^|[^a-z])s{1,2}(?:[^a-z]|$)/i.test(i))return!0}return!!/am\/pm|a\/p/i.test(i)||(!!/\[h+\]|\[m+\]|\[s+\]/i.test(e)||(!!/y{1,4}/.test(i)||(!!/d{1,4}/.test(i)||!!/m{3,}/.test(i))))}const Dr=["January","February","March","April","May","June","July","August","September","October","November","December"],Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ir=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Rr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Lr(e,t,n){const i=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),s=e.getUTCDay();let a=e.getUTCHours();const l=e.getUTCMinutes(),u=e.getUTCSeconds(),c=e.getUTCMilliseconds(),d=/am\/pm|a\/p/i.test(t);let h="",p=a;d&&(h=a>=12?"PM":"AM",p=a%12,0===p&&(p=12));const f=Pr(t),g=void 0!==n&&n>0?n:0,m=Math.floor(24*g),v=Math.floor(24*g*60),y=Math.floor(24*g*60*60),C=Array.from({length:f.length},()=>!1);for(let x=0;x<f.length;x++){const e=f[x].toLowerCase();if("m"!==e&&"mm"!==e)continue;let t=!1;for(let i=x-1;i>=0;i--){const e=f[i].toLowerCase();if("h"===e||"hh"===e||/^\[h+\]$/.test(e)){t=!0;break}if(/^[ymdhs]+$/.test(e)||/^\[[ms]+\]$/.test(e)||"am/pm"===e||"a/p"===e)break}let n=!1;for(let i=x+1;i<f.length;i++){const e=f[i].toLowerCase();if("s"===e||"ss"===e){n=!0;break}if(/^[ymdh]+$/.test(e)||"am/pm"===e||"a/p"===e)break}C[x]=t||n}let w="";for(let x=0;x<f.length;x++){const e=f[x],t=e.toLowerCase();if(e.startsWith("[")&&e.endsWith("]")){const e=t.slice(1,-1);/^h+$/.test(e)?w+=String(m).padStart(e.length,"0"):/^m+$/.test(e)?w+=String(v).padStart(e.length,"0"):/^s+$/.test(e)&&(w+=String(y).padStart(e.length,"0"));continue}switch(t){case"yyyy":w+=String(i);break;case"yy":w+=String(i%100).padStart(2,"0");break;case"mmmm":w+=Dr[r];break;case"mmm":w+=Mr[r];break;case"mm":C[x]?w+=String(l).padStart(2,"0"):w+=String(r+1).padStart(2,"0");break;case"m":C[x]?w+=String(l):w+=String(r+1);break;case"dddd":w+=Ir[s];break;case"ddd":w+=Rr[s];break;case"dd":w+=String(o).padStart(2,"0");break;case"d":w+=String(o);break;case"hh":w+=String(p).padStart(2,"0");break;case"h":w+=String(p);break;case"ss":w+=String(u).padStart(2,"0");break;case"s":w+=String(u);break;case".0":case".00":case".000":{const e=t.length-1,n=String(c).padStart(3,"0").slice(0,e);w+="."+n}break;case"am/pm":w+=h;break;case"a/p":w+=h.charAt(0);break;default:w+=e;break}}return w}function Pr(e){const t=[];let n=0;while(n<e.length){if("["===e[n]&&"$"===e[n+1]){const t=e.indexOf("]",n);if(-1!==t){n=t+1;continue}}if("["===e[n]){const i=e.indexOf("]",n);if(-1!==i){const r=e.slice(n+1,i);if(/^h+$/i.test(r)||/^m+$/i.test(r)||/^s+$/i.test(r)){t.push(e.slice(n,i+1)),n=i+1;continue}n=i+1;continue}}if('"'===e[n]){let i="";n++;while(n<e.length&&'"'!==e[n])i+=e[n],n++;n++,t.push(i);continue}if("\\"===e[n]){n++,n<e.length&&(t.push(e[n]),n++);continue}if(/^am\/pm/i.test(e.slice(n))){t.push(e.slice(n,n+5)),n+=5;continue}if(/^a\/p/i.test(e.slice(n))){t.push(e.slice(n,n+3)),n+=3;continue}if("."===e[n]&&n+1<e.length&&"0"===e[n+1]){let i=".",r=n+1;while(r<e.length&&"0"===e[r])i+="0",r++;t.push(i),n=r;continue}const i=e[n].toLowerCase();if("ymdhsn".includes(i)){let r="";const o=i;while(n<e.length&&e[n].toLowerCase()===o)r+=e[n],n++;t.push(r);continue}t.push(e[n]),n++}return t}function Nr(e){const t=e.trim(),n=t.indexOf("T"),i=n>=0&&/(?:Z|[+-]\d{2}:?\d{2})$/.test(t.slice(n+1)),r=new Date(n>=0&&!i?`${t}Z`:t);return Number.isNaN(r.getTime())?void 0:r}const Fr=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"],Or={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:"m/d/yyyy",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/yyyy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};function kr(e){const t=Bn(e),n=new Map,i=[],r=[],o=[],s=[],a=[];for(const u of t.children){if("string"===typeof u)continue;const e=u.local||u.tag;switch(e){case"numFmts":Vr(u,n);break;case"fonts":Hr(u,i);break;case"fills":Wr(u,r);break;case"borders":Yr(u,o);break;case"cellXfs":Zr(u,s);break;case"dxfs":Jr(u,a);break}}const l=Br(t);for(const u of[i,r,o,a])Gr(u,l);return{numFmts:n,fonts:i,fills:r,borders:o,cellXfs:s,dxfs:a}}function Br(e){for(const t of e.children)if("string"!==typeof t&&"colors"===(t.local||t.tag))for(const e of t.children){if("string"===typeof e)continue;if("indexedColors"!==(e.local||e.tag))continue;const t=[];for(const n of e.children){if("string"===typeof n)continue;if("rgbColor"!==(n.local||n.tag))continue;const e=n.attrs["rgb"];e&&t.push(8===e.length?e.slice(2):e)}if(t.length>0)return t}return Fr}function Gr(e,t){if(null===e||"object"!==typeof e)return;if(Array.isArray(e)){for(const n of e)Gr(n,t);return}const n=e;if("number"===typeof n["indexed"]&&"string"!==typeof n["rgb"]){const e=t[n["indexed"]];e&&(n["rgb"]=e)}for(const i of Object.values(n))Gr(i,t)}function Vr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;if("numFmt"===e){const e=Number(n.attrs["numFmtId"]),i=n.attrs["formatCode"]??"";Number.isNaN(e)||t.set(e,i)}}}function Hr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"font"===e&&t.push(zr(n))}}function zr(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"b":t.bold="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"i":t.italic="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"u":{const e=n.attrs["val"];t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"sz":n.attrs["val"]&&(t.size=Number(n.attrs["val"]));break;case"name":n.attrs["val"]&&(t.name=n.attrs["val"]);break;case"color":t.color=Ur(n);break;case"vertAlign":"superscript"!==n.attrs["val"]&&"subscript"!==n.attrs["val"]||(t.vertAlign=n.attrs["val"]);break;case"family":n.attrs["val"]&&(t.family=Number(n.attrs["val"]));break;case"charset":n.attrs["val"]&&(t.charset=Number(n.attrs["val"]));break;case"scheme":"major"!==n.attrs["val"]&&"minor"!==n.attrs["val"]&&"none"!==n.attrs["val"]||(t.scheme=n.attrs["val"]);break}}return t}function Ur(e){const t={};if(e.attrs["rgb"]){const n=e.attrs["rgb"];t.rgb=8===n.length?n.slice(2):n}return e.attrs["theme"]&&(t.theme=Number(e.attrs["theme"])),e.attrs["tint"]&&(t.tint=Number(e.attrs["tint"])),e.attrs["indexed"]&&(t.indexed=Number(e.attrs["indexed"])),t}function Wr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"fill"===e&&t.push($r(n))}}function $r(e){for(const t of e.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("patternFill"===e)return jr(t);if("gradientFill"===e)return Xr(t)}return{type:"pattern",pattern:"none"}}function jr(e){const t=e.attrs["patternType"]??"none",n={type:"pattern",pattern:t};for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;"fgColor"===e?n.fgColor=Ur(i):"bgColor"===e&&(n.bgColor=Ur(i))}return n}function Xr(e){const t=e.attrs["degree"]?Number(e.attrs["degree"]):void 0,n=[];for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("stop"===e){const e=Number(i.attrs["position"]??"0");for(const t of i.children){if("string"===typeof t)continue;const i=t.local||t.tag;"color"===i&&n.push({position:e,color:Ur(t)})}}}return{type:"gradient",degree:t,stops:n}}function Yr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"border"===e&&t.push(Kr(n))}}function Kr(e){const t={},n=e.attrs["diagonalUp"],i=e.attrs["diagonalDown"];"1"!==n&&"true"!==n||(t.diagonalUp=!0),"1"!==i&&"true"!==i||(t.diagonalDown=!0);for(const r of e.children){if("string"===typeof r)continue;const e=r.local||r.tag,n=qr(r);if(n)switch(e){case"left":t.left=n;break;case"right":t.right=n;break;case"top":t.top=n;break;case"bottom":t.bottom=n;break;case"diagonal":t.diagonal=n;break}}return t}function qr(e){const t=e.attrs["style"];if(!t)return;const n={style:t};for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;"color"===e&&(n.color=Ur(i))}return n}function Zr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"xf"===e&&t.push(Qr(n))}}function Qr(e){const t={numFmtId:Number(e.attrs["numFmtId"]??"0"),fontId:Number(e.attrs["fontId"]??"0"),fillId:Number(e.attrs["fillId"]??"0"),borderId:Number(e.attrs["borderId"]??"0")};"1"!==e.attrs["applyNumberFormat"]&&"true"!==e.attrs["applyNumberFormat"]||(t.applyNumberFormat=!0),"1"!==e.attrs["applyFont"]&&"true"!==e.attrs["applyFont"]||(t.applyFont=!0),"1"!==e.attrs["applyFill"]&&"true"!==e.attrs["applyFill"]||(t.applyFill=!0),"1"!==e.attrs["applyBorder"]&&"true"!==e.attrs["applyBorder"]||(t.applyBorder=!0),"1"!==e.attrs["applyAlignment"]&&"true"!==e.attrs["applyAlignment"]||(t.applyAlignment=!0),"1"!==e.attrs["applyProtection"]&&"true"!==e.attrs["applyProtection"]||(t.applyProtection=!0);for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"alignment"===e?t.alignment=io(n):"protection"===e?t.protection=no(n):"extLst"===e&&to(n)&&(t.hasCheckboxFeature=!0)}return t}function Jr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"dxf"===e&&t.push(eo(n))}}function eo(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"font":t.font=zr(n);break;case"numFmt":{const e=n.attrs["formatCode"];if(e)t.numFmt=e;else{const e=Number(n.attrs["numFmtId"]),i=Number.isNaN(e)?void 0:Or[e];i&&(t.numFmt=i)}break}case"fill":t.fill=$r(n);break;case"border":t.border=Kr(n);break;case"alignment":t.alignment=io(n);break}}return t}function to(e){for(const t of e.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("ext"===e&&t.attrs["uri"]===ti)return!0}return!1}function no(e){const t={},n=e.attrs["locked"];void 0!==n&&(t.locked="1"===n||"true"===n);const i=e.attrs["hidden"];return void 0!==i&&(t.hidden="1"===i||"true"===i),t}function io(e){const t={};if(e.attrs["horizontal"]&&(t.horizontal=e.attrs["horizontal"]),e.attrs["vertical"]&&(t.vertical=e.attrs["vertical"]),"1"!==e.attrs["wrapText"]&&"true"!==e.attrs["wrapText"]||(t.wrapText=!0),"1"!==e.attrs["shrinkToFit"]&&"true"!==e.attrs["shrinkToFit"]||(t.shrinkToFit=!0),e.attrs["textRotation"]&&(t.textRotation=Number(e.attrs["textRotation"])),e.attrs["indent"]&&(t.indent=Number(e.attrs["indent"])),e.attrs["readingOrder"]){const n=Number(e.attrs["readingOrder"]);t.readingOrder=1===n?"ltr":2===n?"rtl":"context"}return t}function ro(e,t){const n=e.cellXfs[t];if(!n)return{};const i={};if(0!==n.numFmtId){const t=e.numFmts.get(n.numFmtId)??Or[n.numFmtId];t&&(i.numFmt=t)}return n.fontId<e.fonts.length&&0!==n.fontId&&(i.font=e.fonts[n.fontId]),n.fillId<e.fills.length&&n.fillId>1&&(i.fill=e.fills[n.fillId]),n.borderId<e.borders.length&&0!==n.borderId&&(i.border=e.borders[n.borderId]),n.alignment&&(i.alignment=n.alignment),n.protection&&(i.protection=n.protection),i}function oo(e,t){const n=e.cellXfs[t];if(!n)return!1;const i=n.numFmtId,r=e.numFmts.get(i);if(r)return Er(r);if(Tr(i))return!0;const o=Or[i];return!!o&&Er(o)}function so(e,t,n,i,r,o){const s=i>0?100*r/i:100,a=r<=Dt;return`Sheet "${e}" spans ${t} rows x ${n} columns (${i} cells, ${s.toFixed(2)}% of them filled), over the ${o} limit.\n - streamXlsxRows(input) reads it a row at a time, whatever the box.\n`+(a?" - readXlsx(input, { sparse: true }) returns the cells and no grid.\n":` - \`sparse: true\` cannot help here: ${r} filled cells is past the ${Dt} a Map can hold.\n`)+" - `range` or `maxRows` bound the area, if you know where the data is.\n - `maxTotalCells` raises the bound, if the sheet really is this large."}function ao(e,t,n){if(!(e.size<Dt||e.has(t)))throw new yt(`Sheet "${n??"?"}" has more than ${Dt} filled cells, which is the most \`Sheet.cells\` can hold — a Map caps at 2^24 entries.\n - streamXlsxRows(input) reads it a row at a time and has no such bound.\nThe file is not damaged; it is larger than this model.`)}function lo(e,t){if(void 0===e)return!1;const n=Number(e);return!(!Number.isFinite(n)||n<=0)&&(!t.dynamicArrayCm||t.dynamicArrayCm.has(n))}function uo(e){let t=0,n=0;while(t<e.length){const i=e.charCodeAt(t);if(i>=65&&i<=90)n=26*n+(i-64),t++;else{if(!(i>=97&&i<=122))break;n=26*n+(i-96),t++}}n--;const i=Number(e.slice(t))-1;return{row:i,col:n}}function co(e,t){const n=Number(e??"");if(Number.isNaN(n))return t;const i=Math.trunc(n);return i<1?t:Math.min(i,16384)}function ho(e){const t=e.split(":"),n=uo(t[0]),i=t.length>1?uo(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:i.row,endCol:i.col}}function po(e,t){const n=[],i=new Map,r=[];let o,s=-1,a=-1,l=0,u=!1;t.range&&(o=ho(t.range));const c=[],d=[],h=[];let p,f,g,m,v,y,C,w,x,b=!1,_=-1,S=[],A=!1,T=!1;const E=[],D=[];let M=!1,I=!1;const R=[];let L=!1,P=!1,N=!1,F=!1,O=!1,k="",B="",G=!1,V="",H="",z=!1,U=!1,W=!1,$=!1,j=!1,X=!1,Y=!1,K="";const q=t.maxRows??0;let Z=0;const Q=new Map,J=[];let ee,te,ne,ie=!1,re=!1,oe=!1,se=!1,ae=!1,le=!1,ue=!1,ce=!1,de=!1,he=!1,pe=!1,fe=!1,ge=!1,me=!1,ve="",ye="",Ce={},we=!1,xe="",be=!1,_e={},Se=!1,Ae="",Te=[],Ee=!1,De=[],Me=[],Ie=!1,Re=[],Le="",Pe=!1,Ne={},Fe=[],Oe=!1,ke=!1,Be=!1,Ge="",Ve=0,He=0,ze="",Ue=-1,We="",$e="",je="",Xe=-1,Ye="",Ke=!1,qe="",Ze=[],Qe="",Je="";const et={onOpenTag(e,n){const i=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(i){case"cols":ie=!0;break;case"col":if(ie){const e=co(n["min"],1),i=co(n["max"],0),r=n["width"]?Number(n["width"]):void 0,o="1"===n["hidden"]||"true"===n["hidden"],s=n["outlineLevel"]?Number(n["outlineLevel"]):void 0,a="1"===n["collapsed"]||"true"===n["collapsed"],l="1"===n["bestFit"]||"true"===n["bestFit"],u=void 0!==n["style"]?Number(n["style"]):void 0,c=t.readStyles&&t.styles&&void 0!==u&&u>=0?ro(t.styles,u):void 0;for(let t=e;t<=i;t++){const e=t-1;while(J.length<=e)J.push({});const n={};void 0===r||Number.isNaN(r)||(n.width=r),o&&(n.hidden=!0),void 0!==s&&!Number.isNaN(s)&&s>0&&(n.outlineLevel=s),a&&(n.collapsed=!0),l&&(n.autoWidth=!0),c&&Object.keys(c).length>0&&(n.style=sr(c)),Object.keys(n).length>0&&(J[e]=n)}}break;case"sheetFormatPr":{const e=n["defaultRowHeight"],t=n["defaultColWidth"];if(void 0!==e){const t=Number(e);Number.isFinite(t)&&t>0&&15!==t&&(ee=t)}if(void 0!==t){const e=Number(t);Number.isFinite(e)&&e>0&&(te=e)}break}case"sheetData":re=!0;break;case"row":if(re){if(q>0&&Z>=q)break;if(oe=!0,Ve=Number(n["r"])||Ve+1,He=0,n["ht"]&&("1"===n["customHeight"]||"true"===n["customHeight"])){const e=Number(n["r"])-1,t=Number(n["ht"]);if(!Number.isNaN(e)&&!Number.isNaN(t)){const n=Q.get(e)??{};n.height=t,Q.set(e,n)}}if("1"===n["hidden"]||"true"===n["hidden"]){const e=Number(n["r"])-1;if(!Number.isNaN(e)){const t=Q.get(e)??{};t.hidden=!0,Q.set(e,t)}}if(n["outlineLevel"]){const e=Number(n["r"])-1,t=Number(n["outlineLevel"]);if(!Number.isNaN(e)&&!Number.isNaN(t)&&t>0){const n=Q.get(e)??{};n.outlineLevel=t,Q.set(e,n)}}if("1"===n["collapsed"]||"true"===n["collapsed"]){const e=Number(n["r"])-1;if(!Number.isNaN(e)){const t=Q.get(e)??{};t.collapsed=!0,Q.set(e,t)}}}break;case"c":oe&&(se=!0,Ge=n["r"]??"",ze=n["t"]??"",Ue=n["s"]?Number(n["s"]):-1,We="",$e="",je="",Xe=-1,Ye="",Ke=lo(n["cm"],t),qe="",Ze=[]);break;case"v":se&&(ae=!0);break;case"f":N?(F=!0,V=""):se&&(le=!0,je=n["t"]??"",void 0!==n["si"]&&(Xe=Number(n["si"])),n["ref"]&&(Ye=n["ref"]),void 0!==n["cm"]&&lo(n["cm"],t)&&(Ke=!0));break;case"is":se&&(ue=!0);break;case"t":ue&&!Oe?ce=!0:Oe&&(Be=!0);break;case"r":ue&&(Oe=!0,Qe="",ne=void 0);break;case"rPr":Oe&&(ke=!0,ne={});break;case"sheetPr":A=!0;break;case"outlinePr":if(A){const e={};void 0!==n["summaryBelow"]&&(e.summaryBelow="1"===n["summaryBelow"]||"true"===n["summaryBelow"]),void 0!==n["summaryRight"]&&(e.summaryRight="1"===n["summaryRight"]||"true"===n["summaryRight"]),Object.keys(e).length>0&&(m=e)}break;case"pageSetUpPr":A&&(T="1"===n["fitToPage"]||"true"===n["fitToPage"]);break;case"tabColor":A&&(g||(g={}),g.tabColor=Mo(n));break;case"sheetView":if(!re){if(g||(g={}),"0"!==n["showGridLines"]&&"false"!==n["showGridLines"]||(g.showGridLines=!1),"0"!==n["showRowColHeaders"]&&"false"!==n["showRowColHeaders"]||(g.showRowColHeaders=!1),n["zoomScale"]){const e=Number(n["zoomScale"]);Number.isNaN(e)||(g.zoomScale=e)}"1"!==n["rightToLeft"]&&"true"!==n["rightToLeft"]||(g.rightToLeft=!0)}break;case"pane":if(!re){const e=n["state"];if("frozen"===e||"frozenSplit"===e){const e=Number(n["xSplit"]||"0"),t=Number(n["ySplit"]||"0");(e>0||t>0)&&(v={},e>0&&(v.columns=e),t>0&&(v.rows=t))}else if("split"===e){const e=Number(n["xSplit"]||"0"),t=Number(n["ySplit"]||"0");(e>0||t>0)&&(y={},e>0&&(y.xSplit=e),t>0&&(y.ySplit=t))}}break;case"sheetProtection":f=mo(n);break;case"autoFilter":n["ref"]&&(p={range:n["ref"]},b=!0);break;case"filterColumn":b&&void 0!==n["colId"]&&(_=Number(n["colId"]),S=[]);break;case"filter":b&&_>=0&&void 0!==n["val"]&&S.push(n["val"]);break;case"mergeCells":de=!0;break;case"mergeCell":de&&n["ref"]&&r.push(ho(n["ref"]));break;case"hyperlinks":he=!0;break;case"hyperlink":if(he&&n["ref"]){const e={ref:n["ref"]},t=n["r:id"]??n["R:id"];t&&(e.rId=t),n["location"]&&(e.location=n["location"]),n["tooltip"]&&(e.tooltip=n["tooltip"]),n["display"]&&(e.display=n["display"]),c.push(e)}break;case"conditionalFormatting":we=!0,xe=n["sqref"]??"";break;case"cfRule":we&&(be=!0,_e={...n},Te=[],De=[],Me=[],Re=[],Le="",Fe=[],Ne={});break;case"colorScale":be&&(Ee=!0,De=[],Me=[]);break;case"cfvo":Ee?De.push({type:n["type"]??"min",value:n["val"]}):Ie?Re.push({type:n["type"]??"min",value:n["val"]}):Pe&&Fe.push({type:n["type"]??"min",value:n["val"]});break;case"dataBar":be&&(Ie=!0,Re=[],Le="");break;case"iconSet":be&&(Pe=!0,Ne={...n},Fe=[]);break;case"dataValidations":pe=!0;break;case"dataValidation":pe&&(fe=!0,Ce={...n},ve="",ye="");break;case"formula1":fe&&(ge=!0);break;case"formula2":fe&&(me=!0);break;case"pageMargins":w=So(n);break;case"pageSetup":C={...C,...To(n,t)};break;case"printOptions":C=Ao(C,n);break;case"headerFooter":z=!0,x={},"1"!==n["differentOddEven"]&&"true"!==n["differentOddEven"]||(x.differentOddEven=!0),"1"!==n["differentFirst"]&&"true"!==n["differentFirst"]||(x.differentFirst=!0);break;case"oddHeader":z&&(U=!0,K="");break;case"oddFooter":z&&(W=!0,K="");break;case"evenHeader":z&&($=!0,K="");break;case"evenFooter":z&&(j=!0,K="");break;case"firstHeader":z&&(X=!0,K="");break;case"firstFooter":z&&(Y=!0,K="");break;case"rowBreaks":M=!0;break;case"colBreaks":I=!0;break;case"brk":if(M||I){const e=n["id"];if(e){const t=Number(e)-1;M?E.push(t):D.push(t)}}break;case"color":Ee?Me.push(n["rgb"]??""):Ie?Le=n["rgb"]??"":ke&&ne&&_o(ne,i,n);break;case"formula":be&&!fe&&(Se=!0,Ae="");break;case"sparklineGroups":L=!0;break;case"sparklineGroup":L&&(P=!0,k=n["type"]??"line",B="",G="1"===n["markers"]||"true"===n["markers"]);break;case"colorSeries":if(P){const e=n["rgb"]??"";B=8===e.length?e.slice(2):e}break;case"sparkline":P&&(N=!0,V="",H="");break;default:if(N&&"sqref"===i){O=!0,H="";break}ke&&ne&&(Je=i,_o(ne,i,n));break}},onText(e){ae?We+=e:le?$e+=e:Se?Ae+=e:ce?qe+=e:Be?Qe+=e:ge?ve+=e:me?ye+=e:U||W||$||j||X||Y?K+=e:F?V+=e:O&&(H+=e)},onCloseTag(e){const r=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(r){case"cols":ie=!1;break;case"sheetData":re=!1;break;case"row":oe&&Z++,oe=!1;break;case"c":if(se){const e=Ge?uo(Ge).row:Ve-1,r=Ge?uo(Ge).col:He;He=r+1;let c=!1;o&&(e<o.startRow||e>o.endRow||r<o.startCol||r>o.endCol)&&(c=!0);const d=""!==We||""!==qe||Ze.length>0||""!==$e||"e"===ze||"inlineStr"===ze||t.readStyles&&Ue>=0||!!(t.styles&&Ue>=0)&&(t.styles.cellXfs[Ue]?.hasCheckboxFeature??!1);!c&&d&&(bo(Ge,ze,Ue,We,$e,qe,Ze.length>0?Ze:void 0,t,n,i,je,Xe,Ye,Ke,e,r),e>=0&&r>=0&&(r>s&&(s=r),e>a&&(a=e),u=!0,l++)),se=!1}break;case"v":ae=!1;break;case"f":F?F=!1:le=!1;break;case"is":ue=!1;break;case"t":Be?Be=!1:ce&&(ce=!1);break;case"r":if(Oe){const e=En(Qe);Ze.push(ne?{text:e,font:ne}:{text:e}),Oe=!1}break;case"rPr":ke=!1;break;case"sheetPr":A=!1;break;case"mergeCells":de=!1;break;case"autoFilter":b=!1;break;case"filterColumn":b&&p&&_>=0&&S.length>0&&(p.columns||(p.columns=[]),p.columns.push({colIndex:_,filters:S})),_=-1,S=[];break;case"hyperlinks":he=!1;break;case"conditionalFormatting":we=!1;break;case"cfRule":if(be){const e=xo(_e,xe,Te,De,Me,Re,Le,Fe,Ne,t.styles?.dxfs,t);e&&h.push(e),be=!1}break;case"colorScale":Ee=!1;break;case"dataBar":be&&(Ie=!1);break;case"iconSet":Pe=!1;break;case"formula":Se&&(Te.push(Ae),Se=!1);break;case"dataValidations":pe=!1;break;case"dataValidation":if(fe){const e=Co(Ce,ve,ye);e&&d.push(e),fe=!1}break;case"formula1":ge=!1;break;case"formula2":me=!1;break;case"headerFooter":z=!1;break;case"oddHeader":U&&x&&(x.oddHeader=K,U=!1);break;case"oddFooter":W&&x&&(x.oddFooter=K,W=!1);break;case"evenHeader":$&&x&&(x.evenHeader=K,$=!1);break;case"evenFooter":j&&x&&(x.evenFooter=K,j=!1);break;case"firstHeader":X&&x&&(x.firstHeader=K,X=!1);break;case"firstFooter":Y&&x&&(x.firstFooter=K,Y=!1);break;case"rowBreaks":M=!1;break;case"colBreaks":I=!1;break;case"sparklineGroups":L=!1;break;case"sparklineGroup":P=!1;break;case"sparkline":if(N&&H){const e={location:H,dataRange:V};k&&"line"!==k&&(e.type=k),B&&(e.color=B),G&&(e.markers=!0),R.push(e)}N=!1;break;default:if(N&&"sqref"===r){O=!1;break}ke&&(Je="");break}}};function tt(){if(u&&!t.sparse){const i=s+1,r=(a+1)*i,o=t.maxTotalCells??Et;if(r>o)throw new yt(so(e,a+1,i,r,l,o));for(let e=0;e<=a;e++)if(n[e])while(n[e].length<i)n[e].push(null);else n[e]=Array.from({length:i},()=>null)}const o=new Map;if(t.worksheetRels)for(const e of t.worksheetRels)o.set(e.id,e.target);for(const r of c){const s=uo(r.ref),a=`${s.row},${s.col}`;let l=i.get(a);l||(l={value:(n[s.row]&&n[s.row][s.col])??null,type:"string"},ao(i,a,e),i.set(a,l));const u={target:""};if(r.location)u.location=r.location,u.target=r.location;else if(r.rId){const e=o.get(r.rId);e?u.target=e:t.onWarning?.({code:"unresolved-hyperlink",message:`Cell ${r.ref} links through ${r.rId}, which the sheet's relationships do not define. Read with an empty target.`,sheet:t.sheetName,row:s.row,col:s.col})}r.tooltip&&(u.tooltip=r.tooltip),r.display&&(u.display=r.display),l.hyperlink=u}const b={name:e,rows:n};if(i.size>0&&(b.cells=i),void 0!==ee&&(b.defaultRowHeight=ee),void 0!==te&&(b.defaultColWidth=te),J.some(e=>Object.keys(e).length>0)&&(b.columns=J),r.length>0&&(b.merges=r),d.length>0&&(b.dataValidations=d),h.length>0&&(b.conditionalRules=h),p&&(b.autoFilter=p),v&&(b.freezePane=v),y&&(b.splitPane=y),f&&(b.protection=f),g&&Object.keys(g).length>0&&(b.view=g),C||w||T){const e=C??{};w&&(e.margins=w),T&&(e.fitToPage=!0),b.pageSetup=e}return x&&Object.keys(x).length>0&&(b.headerFooter=x),E.length>0&&(b.rowBreaks=E.sort((e,t)=>e-t)),D.length>0&&(b.colBreaks=D.sort((e,t)=>e-t)),Q.size>0&&(b.rowDefs=Q),R.length>0&&(b.sparklines=R),m&&(b.outlineProperties=m),b}return{handlers:et,finish:tt}}function fo(e,t,n){const{handlers:i,finish:r}=po(t,n);return Rn(e,i),r()}async function go(e,t,n){const{handlers:i,finish:r}=po(t,n);return await Ln(e,i,{strict:!0}),r()}function mo(e){const t={};"1"!==e["sheet"]&&"true"!==e["sheet"]||(t.sheet=!0),"1"!==e["objects"]&&"true"!==e["objects"]||(t.objects=!0),"1"!==e["scenarios"]&&"true"!==e["scenarios"]||(t.scenarios=!0);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[i,r]of n){const n=e[i];void 0!==n&&(t[r]=!("1"===n||"true"===n))}return t}const vo=new Set(["list","whole","decimal","date","time","textLength","custom"]),yo=new Set(["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]);function Co(e,t,n){const i=e["type"];if(!i||!vo.has(i))return null;const r=e["sqref"];if(!r)return null;const o={type:i,range:r},s=e["operator"];s&&yo.has(s)&&(o.operator=s),"1"!==e["allowBlank"]&&"true"!==e["allowBlank"]||(o.allowBlank=!0),"1"!==e["showInputMessage"]&&"true"!==e["showInputMessage"]||(o.showInputMessage=!0),"1"!==e["showErrorMessage"]&&"true"!==e["showErrorMessage"]||(o.showErrorMessage=!0);const a=e["errorStyle"];if("stop"!==a&&"warning"!==a&&"information"!==a||(o.errorStyle=a),e["promptTitle"]&&(o.inputTitle=e["promptTitle"]),e["prompt"]&&(o.inputMessage=e["prompt"]),e["errorTitle"]&&(o.errorTitle=e["errorTitle"]),e["error"]&&(o.errorMessage=e["error"]),t)if("list"===i){const e=t.trim();if(e.startsWith('"')&&e.endsWith('"')){const t=e.slice(1,-1);o.values=t.split(",")}else o.formula1=t}else o.formula1=t;return n&&(o.formula2=n),o}const wo=new Set(["cellIs","expression","colorScale","dataBar","iconSet","top10","aboveAverage","duplicateValues","uniqueValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks"]);function xo(e,t,n,i,r,o,s,a,l,u,c){const d=e["type"];if(!d||!wo.has(d))return null;if(!t)return null;const h={type:d,priority:Number(e["priority"]??"1"),range:t},p=e["operator"];p&&yo.has(p)&&(h.operator=p);const f=Number(e["dxfId"]);if(u&&!Number.isNaN(f)){const e=u[f];e&&Object.keys(e).length>0?h.style=e:e||c?.onWarning?.({code:"unresolved-dxf",message:`Conditional rule on ${t} asks for differential format ${f}, which the file does not have (${u.length} present). The rule keeps its condition and loses its formatting.`,sheet:c.sheetName})}return"1"!==e["stopIfTrue"]&&"true"!==e["stopIfTrue"]||(h.stopIfTrue=!0),void 0!==e["text"]&&(h.text=e["text"]),1===n.length?h.formula=n[0]:n.length>1&&(h.formula=n),"colorScale"===d&&i.length>0&&(h.colorScale={cfvo:i.map(e=>({type:e.type,value:e.value})),colors:r}),"dataBar"===d&&o.length>0&&(h.dataBar={cfvo:o.map(e=>({type:e.type,value:e.value})),color:s}),"iconSet"===d&&a.length>0&&(h.iconSet={iconSet:l["iconSet"]??"3TrafficLights1",cfvo:a.map(e=>({type:e.type,value:e.value}))},"1"!==l["reverse"]&&"true"!==l["reverse"]||(h.iconSet.reverse=!0),"0"!==l["showValue"]&&"false"!==l["showValue"]||(h.iconSet.showValue=!1)),h}function bo(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g){const m=""!==e?uo(e):void 0!==f&&void 0!==g?{row:f,col:g}:null;if(!m)return;const{row:v,col:y}=m;if(v>Tt||y>16383)throw new yt(`Cell reference "${e}" is outside the supported sheet bounds (max row ${Tt+1}, max col 16384)`);if(!Number.isInteger(v)||!Number.isInteger(y)||v<0||y<0)return void a.onWarning?.({code:"malformed-cell-ref",message:`Cell reference "${e}" is not a cell reference — a column needs a row number and rows are 1-based. The cell is dropped; the rest of the sheet is read.`,sheet:a.sheetName});if(!a.sparse){while(l.length<=v)l.push([]);while(l[v].length<=y)l[v].push(null)}let C,w,x,b=null,_="empty";switch(r?C=r:"shared"===c&&void 0!==d&&d>=0&&(C=""),t){case"s":{const t=Number(i);if(!Number.isNaN(t)&&t>=0&&t<a.sharedStrings.length){const e=a.sharedStrings[t];b=e.text,e.richText&&e.richText.length>0?(x=e.richText,_="richText"):_="string"}else a.onWarning?.({code:"unresolved-shared-string",message:`Cell ${e||`${v},${y}`} points at shared string ${i}, which the file does not have (${a.sharedStrings.length} present). Read as empty.`,sheet:a.sheetName,row:v,col:y}),b=null,_="empty";break}case"str":b=En(i),_=C?"formula":"string",C&&(w=b);break;case"inlineStr":s&&s.length>0?(b=s.map(e=>e.text).join(""),x=s,_="richText"):(b=En(o),_="string");break;case"b":b="1"===i||"true"===i.toLowerCase(),_=C?"formula":"boolean",C&&(w=b);break;case"e":b=i,_=C?"formula":"error",C&&(w=b);break;case"d":{const e=Io(i);e?(b=e,_="date"):""!==i?(b=i,_="string"):(b=null,_="empty"),C&&(w=b,_="formula");break}case"n":default:{if(""===i&&!C){b=null,_="empty";break}const e=Number(i);Number.isNaN(e)||""===i?""!==i&&(b=i,_="string"):a.styles&&n>=0&&oo(a.styles,n)?(b=_r(e,"1904"===a.dateSystem),_="date"):(b=e,_="number"),C&&(w=b,_="formula");break}}a.sparse||(l[v][y]=b);const S=!!(a.styles&&n>=0)&&(a.styles.cellXfs[n]?.hasCheckboxFeature??!1),A=a.sparse||void 0!==C||void 0!==x||a.readStyles&&a.styles&&n>=0||S||"error"===_||"formula"===_||"richText"===_;if(A){const t={value:b,type:_};if(S&&(t.checkbox=!0),void 0!==C&&(t.formula=C,void 0!==w&&(t.formulaResult=w),"shared"===c?(t.formulaType="shared",void 0!==d&&d>=0&&(t.formulaSharedIndex=d),h&&(t.formulaRef=h)):"array"===c&&(t.formulaType="array",h&&(t.formulaRef=h)),p&&(t.formulaDynamic=!0)),x&&(t.richText=x),a.readStyles&&a.styles&&n>=0){const i=ro(a.styles,n);Object.keys(i).length>0?t.style=i:n>=a.styles.cellXfs.length&&a.onWarning?.({code:"unresolved-style",message:`Cell ${e||`${v},${y}`} points at cell format ${n}, which the file does not have (${a.styles.cellXfs.length} present). Read unstyled.`,sheet:a.sheetName,row:v,col:y})}const i=`${v},${y}`;ao(u,i,a.sheetName),u.set(i,t)}}function _o(e,t,n){switch(t){case"b":e.bold="0"!==n["val"]&&"false"!==n["val"];break;case"i":e.italic="0"!==n["val"]&&"false"!==n["val"];break;case"u":{const t=n["val"];e.underline="double"!==t||"double";break}case"strike":e.strikethrough="0"!==n["val"]&&"false"!==n["val"];break;case"sz":n["val"]&&(e.size=Number(n["val"]));break;case"rFont":n["val"]&&(e.name=n["val"]);break;case"color":if(e.color={},n["rgb"]){const t=n["rgb"];e.color.rgb=8===t.length?t.slice(2):t}n["theme"]&&(e.color.theme=Number(n["theme"])),n["tint"]&&(e.color.tint=Number(n["tint"])),n["indexed"]&&(e.color.indexed=Number(n["indexed"]));break;case"vertAlign":"superscript"!==n["val"]&&"subscript"!==n["val"]||(e.vertAlign=n["val"]);break;case"family":n["val"]&&(e.family=Number(n["val"]));break;case"charset":n["val"]&&(e.charset=Number(n["val"]));break;case"scheme":"major"!==n["val"]&&"minor"!==n["val"]&&"none"!==n["val"]||(e.scheme=n["val"]);break}}function So(e){const t={};return e["left"]&&(t.left=Number(e["left"])),e["right"]&&(t.right=Number(e["right"])),e["top"]&&(t.top=Number(e["top"])),e["bottom"]&&(t.bottom=Number(e["bottom"])),e["header"]&&(t.header=Number(e["header"])),e["footer"]&&(t.footer=Number(e["footer"])),t}function Ao(e,t){const n=e??{},i=e=>"1"===e||"true"===e;return i(t["gridLines"])&&(n.showGridLines=!0),i(t["headings"])&&(n.showRowColHeaders=!0),i(t["horizontalCentered"])&&(n.horizontalCentered=!0),i(t["verticalCentered"])&&(n.verticalCentered=!0),n}function To(e,t){const n={};if(e["paperSize"]){const i=Number(e["paperSize"]);Number.isInteger(i)&&i>0?n.paperSize=_s[i]??i:t?.onWarning?.({code:"unusable-paper-size",message:`Page setup names paper size "${e["paperSize"]}", which is not a positive integer code. Dropped; the sheet reads with no paper size set.`,sheet:t.sheetName})}"landscape"!==e["orientation"]&&"portrait"!==e["orientation"]||(n.orientation=e["orientation"]),e["scale"]&&(n.scale=Number(e["scale"])),void 0===e["fitToWidth"]&&void 0===e["fitToHeight"]||(n.fitToPage=!0,e["fitToWidth"]&&(n.fitToWidth=Number(e["fitToWidth"])),e["fitToHeight"]&&(n.fitToHeight=Number(e["fitToHeight"]))),"1"!==e["horizontalCentered"]&&"true"!==e["horizontalCentered"]||(n.horizontalCentered=!0),"1"!==e["verticalCentered"]&&"true"!==e["verticalCentered"]||(n.verticalCentered=!0),e["paperWidth"]&&(n.paperWidth=e["paperWidth"]),e["paperHeight"]&&(n.paperHeight=e["paperHeight"]);const i=Do(e["firstPageNumber"]);void 0!==i&&(n.firstPageNumber=i),void 0!==e["useFirstPageNumber"]&&(n.useFirstPageNumber=Eo(e["useFirstPageNumber"])),"overThenDown"!==e["pageOrder"]&&"downThenOver"!==e["pageOrder"]||(n.pageOrder=e["pageOrder"]),Eo(e["blackAndWhite"])&&(n.blackAndWhite=!0),Eo(e["draft"])&&(n.draft=!0);const r=e["cellComments"];"none"!==r&&"asDisplayed"!==r&&"atEnd"!==r||(n.cellComments=r);const o=e["errors"];"displayed"!==o&&"blank"!==o&&"dash"!==o&&"NA"!==o||(n.errors=o);const s=Do(e["copies"]);void 0!==s&&(n.copies=s);const a=Do(e["horizontalDpi"]);void 0!==a&&(n.horizontalDpi=a);const l=Do(e["verticalDpi"]);return void 0!==l&&(n.verticalDpi=l),void 0!==e["usePrinterDefaults"]&&(n.usePrinterDefaults=Eo(e["usePrinterDefaults"])),n}function Eo(e){return"1"===e||"true"===e}function Do(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)&&t>=0?t:void 0}function Mo(e){const t={};if(e["rgb"]){const n=e["rgb"];t.rgb=8===n.length?n.slice(2):n}return e["theme"]&&(t.theme=Number(e["theme"])),e["tint"]&&(t.tint=Number(e["tint"])),e["indexed"]&&(t.indexed=Number(e["indexed"])),t}function Io(e){const t=e.trim();if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return;const n=/(?:Z|[+-]\d{2}:?\d{2})$/.test(t),i=/[T ]\d{2}:/.test(t),r=t.replace(" ","T"),o=new Date(i&&!n?`${r}Z`:r);return Number.isNaN(o.getTime())?void 0:o}const Ro="(?:\\$?(?:'(?:[^']|'')*'|[A-Za-z_][A-Za-z0-9_]*)[.!])?",Lo="\\$?[A-Z]{1,3}\\$?\\d+";new RegExp(`(?<![A-Za-z0-9_$.!])(${Ro})(${Lo})(?::(${Ro})(${Lo}))?(?![A-Za-z0-9_(])`,"g");function Po(e){const t=e.split(":"),n=uo(t[0]),i=t.length>1?uo(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:i.row,endCol:i.col}}function No(e){return"string"===typeof e?Po(e):e}function Fo(e){if(e)return e.some(e=>"string"===typeof e)?e.map(No):e}const Oo=8,ko=255,Bo=2,Go=1.1,Vo=1.05;function Ho(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=63744&&e<=64255||e>=44032&&e<=55215||e>=12448&&e<=12543||e>=12352&&e<=12447||e>=12288&&e<=12351||e>=65280&&e<=65376||e>=65504&&e<=65510}function zo(e,t){const n=t.trim(),i=n.split(";");let r;if(e>0?r=i[0]:e<0&&i.length>1?(r=i[1],e=Math.abs(e)):r=0===e&&i.length>2?i[2]:i[0],r=r.replace(/\[[^\]]*\]/g,""),r=r.replace(/\\./g,e=>e[1]),r=r.replace(/"([^"]*)"/g,"$1"),r.includes("%")){const t=r.replace(/%/g,""),n=Uo(t),i=(100*e).toFixed(n);return Wo(i,r)+"%"}const o=Uo(r),s=e.toFixed(o);return Wo(s,r)}function Uo(e){const t=e.indexOf(".");if(-1===t)return 0;let n=0;for(let i=t+1;i<e.length;i++){if("0"!==e[i]&&"#"!==e[i])break;n++}return n}function Wo(e,t){if(!t.includes(","))return e;const n=e.split(".");let i=n[0];const r=i.startsWith("-");r&&(i=i.slice(1));let o="";for(let s=0;s<i.length;s++)s>0&&(i.length-s)%3===0&&(o+=","),o+=i[s];return r&&(o="-"+o),void 0!==n[1]&&(o+="."+n[1]),o}function $o(e){let t=0;const n=e.split(";")[0],i=n.replace(/\[[^\]]*\]/g,"");for(let r=0;r<i.length;r++){const e=i[r];if('"'===e){r++;while(r<i.length&&'"'!==i[r])t++,r++}else"\\"===e?(t++,r++):"$"!==e&&"€"!==e&&"£"!==e&&"¥"!==e||t++}return t}function jo(e){let t=0;for(const n of e){const e=n.codePointAt(0);void 0!==e&&Ho(e)?t+=2:t+=1}return t}function Xo(e,t){if(null===e||void 0===e)return 0;if("boolean"===typeof e)return e?5:6;if("string"===typeof e){if(0===e.length)return 0;if(e.includes("\n")){const t=e.split("\n");let n=0;for(const e of t){const t=jo(e);t>n&&(n=t)}return n}return jo(e)}if("number"===typeof e){if(t){const n=zo(e,t),i=$o(t);return jo(n)+i}const n=String(e);return jo(n)}if(e instanceof Date){if(t){const n=Lr(e,t);return jo(n)}const n=e.getUTCFullYear(),i=String(e.getUTCMonth()+1).padStart(2,"0"),r=String(e.getUTCDate()).padStart(2,"0");return jo(`${n}-${i}-${r}`)}return 0}function Yo(e,t){const n=t?.minWidth??Oo,i=t?.maxWidth??ko,r=t?.padding??Bo,o=!0===t?.font?.bold;let s=0;for(const l of e){const e=Xo(l,t?.numFmt);e>s&&(s=e)}let a=s*Go;return o&&(a*=Vo),a+=r,a=Math.ceil(2*a)/2,a<n&&(a=n),a>i&&(a=i),a}const Ko=31,qo=/[[\]:*?/\\]/,Zo="history";function Qo(e,t){const n=`sheet ${t+1}`;if("string"!==typeof e||0===e.length)throw new xt(`Sheet name is empty (${n}); Excel requires a name`);if(e.length>Ko)throw new xt(`Sheet name "${e}" is ${e.length} characters (${n}); Excel allows at most ${Ko}`);const i=e.match(qo);if(i)throw new xt(`Sheet name "${e}" contains ${JSON.stringify(i[0])} (${n}); Excel forbids [ ] : * ? / \\ in sheet names`);if(e.startsWith("'")||e.endsWith("'"))throw new xt(`Sheet name "${e}" starts or ends with an apostrophe (${n}); Excel forbids it because it breaks quoted range references`);if(e.toLowerCase()===Zo)throw new xt(`Sheet name "${e}" is reserved by Excel for change tracking (${n})`)}function Jo(e){const t=new Map;for(let n=0;n<e.length;n++){const i=e[n].name;Qo(i,n);const r=i.toLowerCase(),o=t.get(r);if(void 0!==o)throw new xt(`Duplicate sheet name "${i}" (sheets ${o+1} and ${n+1}); Excel compares sheet names case-insensitively`);t.set(r,n)}}function es(e){if(!Number.isInteger(e)||e<0||e>16383)throw new xt(`Column index ${e} is not a valid 0-based column (Excel allows 0..16383)`)}const ts="http://schemas.openxmlformats.org/spreadsheetml/2006/main",ns="http://schemas.openxmlformats.org/officeDocument/2006/relationships";function is(e){es(e);let t="",n=e;do{t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26)-1}while(n>=0);return t}function rs(e,t){const n={r:e+1};return void 0!==t?.height&&(n["ht"]=t.height,n["customHeight"]=1),t?.hidden&&(n["hidden"]=1),t?.outlineLevel&&(n["outlineLevel"]=t.outlineLevel),t?.collapsed&&(n["collapsed"]=1),n}function os(e,t){return is(t)+(e+1)}function ss(e,t,n,i){return`${os(e,t)}:${os(n,i)}`}function as(){const e=[],t=new Map;function n(n){const i=t.get(n);if(void 0!==i)return i;const r=e.length;return e.push(n),t.set(n,r),r}function i(){return e}function r(){return e.length}return{add:n,getAll:i,count:r}}function ls(e){const t=e.getAll(),n=t.length;if(0===n)return _n("sst",{xmlns:ts,count:0,uniqueCount:0},"");const i=[];for(const r of t)i.push(xn("si",void 0,[wn(r)]));return _n("sst",{xmlns:ts,count:n,uniqueCount:n},i)}function us(e){const t=e.hyperlink.startsWith("#"),n=t?{target:"",location:e.hyperlink.slice(1),display:e.text}:{target:e.hyperlink,display:e.text};return void 0!==e.tooltip&&(n.tooltip=e.tooltip),n}const cs="yyyy-mm-dd",ds=Object.freeze({numFmt:cs}),hs=new WeakMap,ps=new Set(["#VALUE!","#REF!","#N/A","#NAME?","#NULL!","#DIV/0!","#NUM!","#GETTING_DATA","#SPILL!","#CALC!"]);function fs(e,t,n,i,r,o,s){const a="1904"===i,l=ms(e),u=l.length;let c=0;for(const N of l)N.length>c&&(c=N.length);e.columns&&e.columns.length>c&&(c=e.columns.length);const d=[];{const t=[];if(e.view?.tabColor&&t.push(Cn("tabColor",Is(e.view.tabColor))),e.outlineProperties){const n={};void 0!==e.outlineProperties.summaryBelow&&(n["summaryBelow"]=e.outlineProperties.summaryBelow?1:0),void 0!==e.outlineProperties.summaryRight&&(n["summaryRight"]=e.outlineProperties.summaryRight?1:0),t.push(Cn("outlinePr",n))}e.pageSetup?.fitToPage&&t.push(Cn("pageSetUpPr",{fitToPage:1})),t.length>0&&d.push(xn("sheetPr",void 0,t))}if(u>0||c>0){const e=u>0?u-1:0,t=c>0?c-1:0;d.push(Cn("dimension",{ref:ss(0,0,e,t)}))}const h=[];if(e.freezePane){const t=e.freezePane,n=os(t.rows??0,t.columns??0),i={};t.columns&&t.columns>0&&(i["xSplit"]=t.columns),t.rows&&t.rows>0&&(i["ySplit"]=t.rows),i["topLeftCell"]=n,i["state"]="frozen";const r=t.columns&&t.columns>0,o=t.rows&&t.rows>0;i["activePane"]=r&&o?"bottomRight":r?"topRight":"bottomLeft",h.push(Cn("pane",i))}else if(e.splitPane){const t=e.splitPane,n={},i=void 0!==t.xSplit&&t.xSplit>0,r=void 0!==t.ySplit&&t.ySplit>0;i&&(n["xSplit"]=t.xSplit),r&&(n["ySplit"]=t.ySplit),n["topLeftCell"]="A1",n["state"]="split",n["activePane"]=i&&r?"bottomRight":i?"topRight":"bottomLeft",h.push(Cn("pane",n))}const p={workbookViewId:0};e.view&&(!1===e.view.showGridLines&&(p["showGridLines"]=0),!1===e.view.showRowColHeaders&&(p["showRowColHeaders"]=0),void 0!==e.view.zoomScale&&(p["zoomScale"]=e.view.zoomScale),e.view.rightToLeft&&(p["rightToLeft"]=1)),d.push(xn("sheetViews",void 0,[h.length>0?xn("sheetView",p,h):Cn("sheetView",p)]));const f={defaultRowHeight:e.defaultRowHeight??15};if(void 0!==e.defaultRowHeight&&(f["customHeight"]=1),void 0!==e.defaultColWidth&&(f["defaultColWidth"]=e.defaultColWidth),d.push(Cn("sheetFormatPr",f)),e.columns&&e.columns.length>0){const n=[];for(let i=0;i<e.columns.length;i++){const r=e.columns[i];let o=r.width;if(r.autoWidth&&void 0===o){const e=[];for(const t of l)t&&i<t.length&&t[i]&&e.push(t[i].value);o=Yo(e,{font:r.style?.font,numFmt:r.numFmt??r.style?.numFmt})}const s=r.numFmt&&!r.style?.numFmt?{...r.style,numFmt:r.numFmt}:r.style??void 0,a=s?t.addStyle(s):0;if(void 0!==o||r.hidden||r.outlineLevel||r.collapsed||0!==a){const e={min:i+1,max:i+1};void 0!==o&&(e["width"]=o,e["customWidth"]=!0),0!==a&&(e["style"]=a),r.hidden&&(e["hidden"]=!0),r.outlineLevel&&(e["outlineLevel"]=r.outlineLevel),r.collapsed&&(e["collapsed"]=!0),n.push(Cn("col",e))}}n.length>0&&d.push(xn("cols",void 0,n))}const g=[];let m=!1;for(let N=0;N<u;N++){const i=l[N],r=e.rowDefs?.get(N),s=r&&(void 0!==r.height||r.hidden||r.outlineLevel||r.collapsed);if((!i||0===i.length)&&!s)continue;const u=[];let c=!1;if(i)for(let e=0;e<i.length;e++){const r=i[e];if(!r)continue;r.formulaDynamic&&void 0!==r.formula&&null!==r.formula&&(m=!0);const s=ys(N,e,r,t,n,a,o);s&&(u.push(s),c=!0)}if(c||s){const e=rs(N,r);c?g.push(xn("row",e,u)):g.push(Cn("row",e))}}if(d.push(xn("sheetData",void 0,g.length>0?g:"")),e.protection&&d.push(Cs(e.protection)),e.autoFilter)if(e.autoFilter.columns&&e.autoFilter.columns.length>0){const t=[];for(const n of e.autoFilter.columns)if(n.filters&&n.filters.length>0){const e=n.filters.map(e=>Cn("filter",{val:e}));t.push(xn("filterColumn",{colId:n.colIndex},[xn("filters",void 0,e)]))}d.push(xn("autoFilter",{ref:e.autoFilter.range},t))}else d.push(Cn("autoFilter",{ref:e.autoFilter.range}));const v=Fo(e.merges);if(v&&v.length>0){const e=v.map(e=>Cn("mergeCell",{ref:ss(e.startRow,e.startCol,e.endRow,e.endCol)}));d.push(xn("mergeCells",{count:v.length},e))}e.conditionalRules&&e.conditionalRules.length>0&&d.push(...Ps(e.conditionalRules,t)),e.dataValidations&&e.dataValidations.length>0&&d.push(ws(e.dataValidations));const{xml:y,relationships:C}=xs(e,l);y&&d.push(y);const w=Es(e.pageSetup);if(w&&d.push(w),d.push(Ts(e.pageSetup?.margins)),e.pageSetup&&d.push(Ds(e.pageSetup)),e.headerFooter&&d.push(Ms(e.headerFooter)),e.rowBreaks&&e.rowBreaks.length>0){const t=[...e.rowBreaks].sort((e,t)=>e-t),n=t.map(e=>Cn("brk",{id:e+1,max:16383,man:1}));d.push(xn("rowBreaks",{count:t.length,manualBreakCount:t.length},n))}if(e.colBreaks&&e.colBreaks.length>0){const t=[...e.colBreaks].sort((e,t)=>e-t),n=t.map(e=>Cn("brk",{id:e+1,max:1048575,man:1}));d.push(xn("colBreaks",{count:t.length,manualBreakCount:t.length},n))}let x=null,b=C.length+1;const _=e.images&&e.images.length>0,S=e.textBoxes&&e.textBoxes.length>0,A=e.charts&&e.charts.length>0,T=d.length;(_||S||A)&&(x=`rId${b}`,b++,d.push(Cn("drawing",{"r:id":x})));let E=null,D=null,M=!1;if(e.cells)for(const[,N]of e.cells)if(N.comment){M=!0;break}M&&(E=`rId${b}`,b++,D=`rId${b}`,b++,d.push(Cn("legacyDrawing",{"r:id":E})));let I=null;e.backgroundImage&&(I=`rId${b}`,b++,d.push(Cn("picture",{"r:id":I})));const R=[];if(e.tables&&e.tables.length>0&&void 0!==r){const t=[];for(let n=0;n<e.tables.length;n++){const e=`rId${b}`;b++;const i=r+n;R.push({rId:e,globalTableIndex:i}),t.push(Cn("tablePart",{"r:id":e}))}d.push(xn("tableParts",{count:e.tables.length},t))}e.sparklines&&e.sparklines.length>0&&d.push(Gs(e.sparklines));const L=[];if(e.pivotTables&&e.pivotTables.length>0&&void 0!==s)for(let N=0;N<e.pivotTables.length;N++){const e=`rId${b}`;b++,L.push({rId:e,globalPivotIndex:s+N})}const P=_n("worksheet",{xmlns:ts,"xmlns:r":ns},d);return{xml:P,drawingInsertOffset:Vs(P,d,T),hyperlinkRelationships:C,drawingRId:x,legacyDrawingRId:E,commentsRId:D,hasComments:M,tables:R,pictureRId:I,pivotTables:L,hasDynamicArray:m}}function gs(e){if(e)return e.numFmt&&!e.style?.numFmt?{...e.style,numFmt:e.numFmt}:e.style}function ms(e){const t=[];if(e.data&&e.columns){const n=e.columns.map(e=>e.key),i=e.columns.some(e=>e.header);if(i){const n=[];for(let t=0;t<e.columns.length;t++){const i=e.columns[t];n.push({value:i.header??i.key??null,style:i.style})}t.push(n)}for(const r of e.data){const i=[];for(let t=0;t<n.length;t++){const o=n[t],s=void 0!==o?r[o]??null:null,a={value:ln(s)?s.text:s,style:gs(e.columns[t])};ln(s)&&(a.hyperlink=us(s)),i.push(a)}t.push(i)}}else if(e.rows)for(const n of e.rows){const i=[];for(let t=0;t<n.length;t++){const r=dn(n[t]),o=e.columns?gs(e.columns[t]):void 0;i.push(o?{value:r,style:o}:{value:r})}t.push(i)}if(e.cells)for(const[n,i]of e.cells){const[e,r]=n.split(","),o=parseInt(e,10),s=parseInt(r,10);while(t.length<=o)t.push([]);const a=t[o];while(a.length<=s)a.push(null);const l=a[s];a[s]={value:i.value??l?.value??null,style:i.style??l?.style,checkbox:i.checkbox??l?.checkbox,formula:i.formula??l?.formula,formulaResult:i.formulaResult??l?.formulaResult,formulaType:i.formulaType??l?.formulaType,formulaSharedIndex:i.formulaSharedIndex??l?.formulaSharedIndex,formulaRef:i.formulaRef??l?.formulaRef,formulaDynamic:i.formulaDynamic??l?.formulaDynamic,richText:i.richText??l?.richText,hyperlink:i.hyperlink??l?.hyperlink}}return t}function vs(e,t,n,i){return 0===t?""===n?`<c r="${e}"><v>${i}</v></c>`:`<c r="${e}" t="${n}"><v>${i}</v></c>`:""===n?`<c r="${e}" s="${t}"><v>${i}</v></c>`:`<c r="${e}" t="${n}" s="${t}"><v>${i}</v></c>`}function ys(e,t,n,i,r,o,s){const{value:a,style:l,formula:u,formulaResult:c,formulaType:d,formulaSharedIndex:h,formulaRef:p,formulaDynamic:f,richText:g}=n;let m=0,v=l;if(a instanceof Date&&(!v||!v.numFmt))if(v){const e=hs.get(v);if(e)v=e;else{const e={...v,numFmt:cs};hs.set(v,e),v=e}}else v=ds;n.checkbox?m=i.addCheckboxStyle(v):v&&(m=i.addStyle(v));const y=os(e,t);if(g&&g.length>0){const e={r:y,t:"inlineStr"};0!==m&&(e["s"]=m);const t=Rs(g);return xn("c",e,[xn("is",void 0,t)])}if(void 0!==u&&null!==u){const e={r:y};let t;if(0!==m&&(e["s"]=m),f&&(e["cm"]=1),"shared"===d){const e={t:"shared"};void 0!==h&&(e["si"]=h),p&&(e["ref"]=p),t=""===u?Cn("f",e):xn("f",e,mn(u))}else if("array"===d){const e={t:"array"};p&&(e["ref"]=p),t=xn("f",e,mn(u))}else t=xn("f",void 0,mn(u));const n=[t];return void 0!==c&&null!==c&&("string"===typeof c?(e["t"]="str",n.push(xn("v",void 0,mn(c)))):"boolean"===typeof c?(e["t"]="b",n.push(xn("v",void 0,c?"1":"0"))):"number"===typeof c?Number.isFinite(c)&&n.push(xn("v",void 0,String(c))):c instanceof Date&&n.push(xn("v",void 0,String(Sr(c,o))))),xn("c",e,n)}if(null===a||void 0===a)return 0!==m?Cn("c",{r:y,s:m}):null;if("string"===typeof a&&ps.has(a))return vs(y,m,"e",a);if("string"===typeof a){if(s){const e=`<is>${wn(a)}</is>`;return 0===m?`<c r="${y}" t="inlineStr">${e}</c>`:`<c r="${y}" t="inlineStr" s="${m}">${e}</c>`}return vs(y,m,"s",String(r.add(a)))}return"number"===typeof a?Number.isFinite(a)?vs(y,m,"",String(a)):0!==m?Cn("c",{r:y,s:m}):null:"boolean"===typeof a?vs(y,m,"b",a?"1":"0"):a instanceof Date?vs(y,m,"",String(Sr(a,o))):null}function Cs(e){const t={};e.password&&(t["password"]=Oi(e.password)),!1!==e.sheet&&(t["sheet"]=1),e.objects&&(t["objects"]=1),e.scenarios&&(t["scenarios"]=1);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[i,r]of n){const n=e[i];void 0!==n&&"boolean"===typeof n&&(t[r]=n?0:1)}return Cn("sheetProtection",t)}function ws(e){const t=[];for(const n of e){const e={type:n.type,sqref:n.range};n.operator&&(e["operator"]=n.operator),n.allowBlank&&(e["allowBlank"]=1),n.showInputMessage&&(e["showInputMessage"]=1),n.showErrorMessage&&(e["showErrorMessage"]=1),n.errorStyle&&(e["errorStyle"]=n.errorStyle),n.inputTitle&&(e["promptTitle"]=n.inputTitle),n.inputMessage&&(e["prompt"]=n.inputMessage),n.errorTitle&&(e["errorTitle"]=n.errorTitle),n.errorMessage&&(e["error"]=n.errorMessage);const i=[];if("list"===n.type&&n.values&&n.values.length>0){const e=`"${n.values.join(",")}"`;i.push(xn("formula1",void 0,mn(e)))}else void 0!==n.formula1&&i.push(xn("formula1",void 0,mn(n.formula1)));void 0!==n.formula2&&i.push(xn("formula2",void 0,mn(n.formula2))),i.length>0?t.push(xn("dataValidation",e,i)):t.push(Cn("dataValidation",e))}return xn("dataValidations",{count:e.length},t)}function xs(e,t){const n=t??ms(e),i=[],r=[];let o=1;for(let s=0;s<n.length;s++){const e=n[s];for(let t=0;t<e.length;t++){const n=e[t]?.hyperlink;if(!n)continue;const a=os(s,t),l={ref:a};if(n.location)l["location"]=n.location;else if(n.target){const e="rId"+o++;l["r:id"]=e,r.push({id:e,target:n.target})}n.tooltip&&(l["tooltip"]=n.tooltip),n.display&&(l["display"]=n.display),i.push(Cn("hyperlink",l))}}return 0===i.length?{xml:"",relationships:[]}:{xml:xn("hyperlinks",void 0,i),relationships:r}}const bs={letter:1,letterSmall:2,tabloid:3,ledger:4,legal:5,statement:6,executive:7,a3:8,a4:9,a4Small:10,a5:11,b4:12,b5:13,folio:14,quarto:15,note:18,envelope9:19,envelope10:20,envelope11:21,envelope12:22,envelope14:23,cSheet:24,dSheet:25,eSheet:26,envelopeDL:27,envelopeC5:28,envelopeC3:29,envelopeC4:30,envelopeC6:31,envelopeC65:32,envelopeB4:33,envelopeB5:34,envelopeB6:35,envelopeItaly:36,envelopeMonarch:37,envelopePersonal:38,fanfoldUS:39,fanfoldGermanStd:40,fanfoldGermanLegal:41,a6:70,japanesePostcard:43,japaneseDoublePostcard:69},_s={};for(const[GF,VF]of Object.entries(bs))_s[VF]=GF;function Ss(e){return"number"===typeof e?Number.isInteger(e)&&e>0?e:void 0:bs[e]}const As={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3};function Ts(e){const t=e??{};return Cn("pageMargins",{left:t.left??As.left,right:t.right??As.right,top:t.top??As.top,bottom:t.bottom??As.bottom,header:t.header??As.header,footer:t.footer??As.footer})}function Es(e){if(!e)return"";const t={};return e.showGridLines&&(t["gridLines"]=1),e.showRowColHeaders&&(t["headings"]=1),e.horizontalCentered&&(t["horizontalCentered"]=1),e.verticalCentered&&(t["verticalCentered"]=1),0===Object.keys(t).length?"":Cn("printOptions",t)}function Ds(e){const t={};if(void 0!==e.paperSize){const n=Ss(e.paperSize);void 0!==n&&(t["paperSize"]=n)}e.orientation&&(t["orientation"]=e.orientation),void 0!==e.scale&&(t["scale"]=e.scale),e.fitToPage&&(void 0!==e.fitToWidth&&(t["fitToWidth"]=e.fitToWidth),void 0!==e.fitToHeight&&(t["fitToHeight"]=e.fitToHeight)),void 0!==e.paperWidth&&(t["paperWidth"]=e.paperWidth),void 0!==e.paperHeight&&(t["paperHeight"]=e.paperHeight),void 0!==e.firstPageNumber&&(t["firstPageNumber"]=e.firstPageNumber);const n=e.useFirstPageNumber??(void 0!==e.firstPageNumber||void 0);return void 0!==n&&(t["useFirstPageNumber"]=n?1:0),void 0!==e.pageOrder&&"downThenOver"!==e.pageOrder&&(t["pageOrder"]=e.pageOrder),e.blackAndWhite&&(t["blackAndWhite"]=1),e.draft&&(t["draft"]=1),void 0!==e.cellComments&&"none"!==e.cellComments&&(t["cellComments"]=e.cellComments),void 0!==e.errors&&"displayed"!==e.errors&&(t["errors"]=e.errors),void 0!==e.copies&&(t["copies"]=e.copies),void 0!==e.horizontalDpi&&(t["horizontalDpi"]=e.horizontalDpi),void 0!==e.verticalDpi&&(t["verticalDpi"]=e.verticalDpi),!1===e.usePrinterDefaults&&(t["usePrinterDefaults"]=0),0===Object.keys(t).length?"":Cn("pageSetup",t)}function Ms(e){const t={};e.differentOddEven&&(t["differentOddEven"]=1),e.differentFirst&&(t["differentFirst"]=1);const n=[];return e.oddHeader&&n.push(xn("oddHeader",void 0,mn(e.oddHeader))),e.oddFooter&&n.push(xn("oddFooter",void 0,mn(e.oddFooter))),e.evenHeader&&n.push(xn("evenHeader",void 0,mn(e.evenHeader))),e.evenFooter&&n.push(xn("evenFooter",void 0,mn(e.evenFooter))),e.firstHeader&&n.push(xn("firstHeader",void 0,mn(e.firstHeader))),e.firstFooter&&n.push(xn("firstFooter",void 0,mn(e.firstFooter))),0===n.length?"":xn("headerFooter",Object.keys(t).length>0?t:void 0,n)}function Is(e){const t={};if(void 0!==e.rgb){const n=e.rgb;t["rgb"]=6===n.length?`FF${n}`:n}return void 0!==e.theme&&(t["theme"]=e.theme),void 0!==e.tint&&(t["tint"]=e.tint),void 0!==e.indexed&&(t["indexed"]=e.indexed),t}function Rs(e){const t=[];for(const n of e){const e=[];if(n.font){const t=Ls(n.font);t.length>0&&e.push(xn("rPr",void 0,t))}e.push(wn(n.text)),t.push(xn("r",void 0,e))}return t}function Ls(e){const t=[];return e.bold&&t.push(Cn("b")),e.italic&&t.push(Cn("i")),e.underline&&(!0===e.underline||"single"===e.underline?t.push(Cn("u")):t.push(Cn("u",{val:e.underline}))),e.strikethrough&&t.push(Cn("strike")),e.vertAlign&&t.push(Cn("vertAlign",{val:e.vertAlign})),void 0!==e.size&&t.push(Cn("sz",{val:e.size})),e.color&&t.push(Cn("color",Is(e.color))),e.name&&t.push(Cn("rFont",{val:e.name})),void 0!==e.family&&t.push(Cn("family",{val:e.family})),void 0!==e.charset&&t.push(Cn("charset",{val:e.charset})),e.scheme&&t.push(Cn("scheme",{val:e.scheme})),t}function Ps(e,t){const n=new Map;for(const r of e){const e=n.get(r.range);e?e.push(r):n.set(r.range,[r])}const i=[];for(const[r,o]of n){const e=[];for(const n of o)e.push(Ns(n,t));i.push(xn("conditionalFormatting",{sqref:r},e))}return i}function Ns(e,t){const n={type:e.type,priority:e.priority};e.style&&(n["dxfId"]=t.addDxf(e.style)),e.operator&&(n["operator"]=e.operator),e.stopIfTrue&&(n["stopIfTrue"]=!0),void 0!==e.text&&(n["text"]=e.text);const i=[];if(void 0!==e.formula){const t=Array.isArray(e.formula)?e.formula:[e.formula];for(const e of t)i.push(xn("formula",void 0,mn(e)))}if("colorScale"===e.type&&e.colorScale){const t=[];for(const n of e.colorScale.cfvo){const e={type:n.type};void 0!==n.value&&(e["val"]=n.value),t.push(Cn("cfvo",e))}for(const n of e.colorScale.colors)t.push(Cn("color",{rgb:n}));i.push(xn("colorScale",void 0,t))}if("dataBar"===e.type&&e.dataBar){const t=[];for(const n of e.dataBar.cfvo){const e={type:n.type};void 0!==n.value&&(e["val"]=n.value),t.push(Cn("cfvo",e))}t.push(Cn("color",{rgb:e.dataBar.color})),i.push(xn("dataBar",void 0,t))}if("iconSet"===e.type&&e.iconSet){const t={iconSet:e.iconSet.iconSet};e.iconSet.reverse&&(t["reverse"]=!0),!1===e.iconSet.showValue&&(t["showValue"]=!1);const n=[];for(const i of e.iconSet.cfvo){const e={type:i.type};void 0!==i.value&&(e["val"]=i.value),n.push(Cn("cfvo",e))}i.push(xn("iconSet",t,n))}return i.length>0?xn("cfRule",n,i):Cn("cfRule",n)}const Fs="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",Os="http://schemas.microsoft.com/office/excel/2006/main",ks="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",Bs="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";function Gs(e){const t=[];let n=1;for(const o of e){const e={},i=o.type??"line";"line"!==i&&(e["type"]=i),e["displayEmptyCellsAs"]="gap";const r=`{00000000-0000-0000-0000-${String(n++).padStart(12,"0")}}`;e["xr2:uid"]=r,o.markers&&(e["markers"]="1");const s=[],a=o.color??"376092",l=6===a.length?`FF${a}`:a;s.push(Cn("x14:colorSeries",{rgb:l}));const u=xn("x14:sparkline",void 0,[xn("xm:f",void 0,o.dataRange),xn("xm:sqref",void 0,o.location)]);s.push(xn("x14:sparklines",void 0,[u])),t.push(xn("x14:sparklineGroup",e,s))}const i=xn("x14:sparklineGroups",{"xmlns:xm":Os},t),r=xn("ext",{uri:Bs,"xmlns:x14":Fs,"xmlns:xr2":ks},[i]);return xn("extLst",void 0,[r])}function Vs(e,t,n){const i=t.join(""),r=0===i.length?e.lastIndexOf("</worksheet>"):e.indexOf(i);if(r<0)return e.lastIndexOf("</worksheet>");let o=r;for(let s=0;s<n;s++)o+=t[s].length;return o}function Hs(e){const t=e;return t.length>=8&&137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?"png":t.length>=3&&255===t[0]&&216===t[1]&&255===t[2]?"jpeg":t.length>=6&&71===t[0]&&73===t[1]&&70===t[2]?"gif":t.length>=12&&82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?"webp":Us(t)?"svg":"png"}const zs=1024;function Us(e){const t=e.subarray(0,zs);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);const i=n.trimStart().replace(/^/,"");return!!i.startsWith("<")&&/<svg[\s>]/i.test(i)}function Ws(e,t,n){const i=[];let r=t;for(const o of e){if(!o.backgroundImage){i.push(null);continue}const e=Hs(o.backgroundImage);i.push(`xl/media/image${r}.${e}`),n.add(e),r++}return{paths:i,nextIndex:r}}const $s="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",js="http://schemas.openxmlformats.org/drawingml/2006/main",Xs="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Ys="http://schemas.openxmlformats.org/drawingml/2006/chart",Ks="http://schemas.openxmlformats.org/package/2006/relationships",qs="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Zs="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Qs=3e6,Js=2e6,ea=9525,ta={png:"png",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"},na={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"},ia=2e6,ra=5e5;function oa(e,t,n,i,r=1){const o=[],s=[],a=[];for(let d=0;d<e.length;d++){const n=e[d],i=t+d,r=`rId${d+1}`,l=ta[n.type]??"png",u=na[n.type]??"image/png",c=`xl/media/image${i}.${l}`,h=`../media/image${i}.${l}`;o.push({path:c,data:n.data,contentType:u}),s.push(Cn("Relationship",{Id:r,Type:qs,Target:h}));const p=n.width?n.width*ea:Qs,f=n.height?n.height*ea:Js,g=n.anchor.from.col,m=n.anchor.from.row,v=n.anchor.to?.col??g+3,y=n.anchor.to?.row??m+5,C=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(g)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(m)),xn("xdr:rowOff",void 0,"0")]),w=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(v)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(y)),xn("xdr:rowOff",void 0,"0")]),x={id:d+2,name:`Picture ${d+1}`};n.title&&(x.title=n.title),n.altText&&(x.descr=n.altText);const b=xn("xdr:nvPicPr",void 0,[Cn("xdr:cNvPr",x),xn("xdr:cNvPicPr",void 0,[Cn("a:picLocks",{noChangeAspect:1})])]),_=xn("xdr:blipFill",void 0,[Cn("a:blip",{"r:embed":r}),xn("a:stretch",void 0,[Cn("a:fillRect")])]),S=xn("xdr:spPr",void 0,[xn("a:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:p,cy:f})]),xn("a:prstGeom",{prst:"rect"},[Cn("a:avLst")])]),A=xn("xdr:pic",void 0,[b,_,S]),T=xn("xdr:twoCellAnchor",void 0,[C,w,A,Cn("xdr:clientData")]);a.push(T)}if(n&&n.length>0){let t=e.length+2;for(let e=0;e<n.length;e++){const i=n[e],r=i.anchor.from.col,o=i.anchor.from.row,s=i.anchor.to?.col??r+3,l=i.anchor.to?.row??o+3,u=i.width?i.width*ea:ia,c=i.height?i.height*ea:ra,d=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(r)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(o)),xn("xdr:rowOff",void 0,"0")]),h=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(s)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(l)),xn("xdr:rowOff",void 0,"0")]),p={id:t++,name:`TextBox ${e+1}`};i.title&&(p.title=i.title),i.altText&&(p.descr=i.altText);const f=xn("xdr:nvSpPr",void 0,[Cn("xdr:cNvPr",p),xn("xdr:cNvSpPr",{txBox:1},[])]),g=[xn("a:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:u,cy:c})]),xn("a:prstGeom",{prst:"rect"},[Cn("a:avLst")])],m=i.style?.fillColor??"FFFFFF";g.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:m})]));const v=i.style?.borderColor??"000000";g.push(xn("a:ln",void 0,[xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:v})])]));const y=xn("xdr:spPr",void 0,g),C=i.style?.fontSize??11,w=100*C,x={lang:"en-US",sz:w};i.style?.bold&&(x["b"]=1);const b=[];i.style?.color&&b.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:i.style.color})]));const _=b.length>0?xn("a:rPr",x,b):Cn("a:rPr",x),S=xn("xdr:txBody",void 0,[Cn("a:bodyPr",{wrap:"square"}),xn("a:p",void 0,[xn("a:r",void 0,[_,xn("a:t",void 0,mn(i.text))])])]),A=xn("xdr:sp",void 0,[f,y,S]),T=xn("xdr:twoCellAnchor",void 0,[d,h,A,Cn("xdr:clientData")]);a.push(T)}}const l=[];if(i&&i.length>0){let t=e.length+(n?.length??0)+2;for(let n=0;n<i.length;n++){const o=i[n],u=r+n,c=`rId${e.length+n+1}`;s.push(Cn("Relationship",{Id:c,Type:Zs,Target:`../charts/chart${u}.xml`}));const d=o.anchor.from.col,h=o.anchor.from.row,p=o.anchor.to?.col??d+8,f=o.anchor.to?.row??h+15,g=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(d)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(h)),xn("xdr:rowOff",void 0,"0")]),m=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(p)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(f)),xn("xdr:rowOff",void 0,"0")]),v={id:t++,name:`Chart ${n+1}`};o.frameTitle&&(v.title=o.frameTitle),o.altText&&(v.descr=o.altText);const y=xn("xdr:nvGraphicFramePr",void 0,[Cn("xdr:cNvPr",v),xn("xdr:cNvGraphicFramePr",void 0,[])]),C=xn("xdr:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:0,cy:0})]),w=xn("a:graphic",void 0,xn("a:graphicData",{uri:Ys},[Cn("c:chart",{"xmlns:c":Ys,"xmlns:r":Xs,"r:id":c})])),x=xn("xdr:graphicFrame",{macro:""},[y,C,w]),b=xn("xdr:twoCellAnchor",{editAs:"oneCell"},[g,m,x,Cn("xdr:clientData")]);a.push(b),l.push({globalChartIndex:u})}}const u=_n("xdr:wsDr",{"xmlns:xdr":$s,"xmlns:a":js,"xmlns:r":Xs},a),c=_n("Relationships",{xmlns:Ks},s);return{drawingXml:u,drawingRels:c,images:o,charts:l}}const sa=.25,aa=13.5,la=12700,ua=new Set(["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"]),ca=new Set(["solid","dash","dashDot","dot","lgDash","lgDashDot","lgDashDotDot","sysDash","sysDashDot","sysDashDotDot","sysDot"]),da=new Set(["rnd","sq","flat"]),ha=new Set(["sng","dbl","thickThin","thinThick","tri"]);function pa(e){if("string"===typeof e&&da.has(e)&&"flat"!==e)return e}function fa(e){if("string"===typeof e&&ha.has(e)&&"sng"!==e)return e}function ga(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.cap;if("string"!==typeof i)return;const r=i.trim();return da.has(r)&&"flat"!==r?r:void 0}function ma(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.cmpd;if("string"!==typeof i)return;const r=i.trim();return ha.has(r)&&"sng"!==r?r:void 0}const va=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),ya=0,Ca=1e5,wa=-1e5,xa=1e5;function ba(e,t,n,i){const r=Gn(e,t);if(!r)return;const o=r.attrs.val;if("string"!==typeof o)return;const s=Number.parseInt(o.trim(),10);return Number.isFinite(s)&&!(s<n||s>i)?s:void 0}function _a(e){const t=e.attrs.val;if("string"!==typeof t)return;const n=t.trim();if(!va.has(n))return;const i={theme:n},r=ba(e,"lumMod",ya,Ca);void 0!==r&&(i.lumMod=r);const o=ba(e,"lumOff",ya,Ca);void 0!==o&&(i.lumOff=o);const s=ba(e,"tint",wa,xa);void 0!==s&&(i.tint=s);const a=ba(e,"shade",wa,xa);void 0!==a&&(i.shade=a);const l=ba(e,"alpha",ya,Ca);return void 0!==l&&(i.alpha=l),i}function Sa(e){if(void 0===e||null===e)return;if("string"===typeof e){const t=Ta(e);return t}if("object"!==typeof e)return;const t=e.theme;if("string"!==typeof t||!va.has(t))return;const n={theme:t},i=(e,t,n)=>{if("number"!==typeof e||!Number.isFinite(e))return;const i=Math.round(e);return i<t||i>n?void 0:i},r=i(e.lumMod,ya,Ca);void 0!==r&&(n.lumMod=r);const o=i(e.lumOff,ya,Ca);void 0!==o&&(n.lumOff=o);const s=i(e.tint,wa,xa);void 0!==s&&(n.tint=s);const a=i(e.shade,wa,xa);void 0!==a&&(n.shade=a);const l=i(e.alpha,ya,Ca);return void 0!==l&&(n.alpha=l),n}function Aa(e){if("string"===typeof e)return Cn("a:srgbClr",{val:e});const t=[];return void 0!==e.tint&&t.push(Cn("a:tint",{val:e.tint})),void 0!==e.shade&&t.push(Cn("a:shade",{val:e.shade})),void 0!==e.alpha&&t.push(Cn("a:alpha",{val:e.alpha})),void 0!==e.lumMod&&t.push(Cn("a:lumMod",{val:e.lumMod})),void 0!==e.lumOff&&t.push(Cn("a:lumOff",{val:e.lumOff})),0===t.length?Cn("a:schemeClr",{val:e.theme}):xn("a:schemeClr",{val:e.theme},t)}function Ta(e){if("string"!==typeof e)return;const t=e.trim();if(0===t.length)return;const n=t.startsWith("#")?t.slice(1):t;return 6===n.length&&/^[0-9a-fA-F]{6}$/.test(n)?n.toUpperCase():void 0}function Ea(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Da(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");if(r)return Ta(r.attrs.val);const o=Gn(i,"schemeClr");return o?_a(o):void 0}function Ma(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.w;if("string"!==typeof i)return;const r=Number.parseFloat(i);if(!Number.isFinite(r)||r<=0)return;const o=Math.round(r/la*4)/4;return o<sa?sa:o>aa?aa:o}function Ia(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"prstDash");if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ca.has(o)&&"solid"!==o?o:void 0}function Ra(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(4*e)/4;return t<sa?sa:t>aa?aa:t}function La(e){if("string"===typeof e&&ca.has(e)&&"solid"!==e)return e}function Pa(e){const t=Gn(e,"view3D");if(!t)return;const n={},i=Na(t,"rotX",-90,90);void 0!==i&&(n.rotX=i);const r=Na(t,"hPercent",5,500);void 0!==r&&(n.hPercent=r);const o=Na(t,"rotY",0,360);void 0!==o&&(n.rotY=o);const s=Na(t,"depthPercent",20,2e3);void 0!==s&&(n.depthPercent=s);const a=Fa(t,"rAngAx");void 0!==a&&(n.rAngAx=a);const l=Na(t,"perspective",0,240);return void 0!==l&&(n.perspective=l),n}function Na(e,t,n,i){const r=Gn(e,t);if(!r)return;const o=r.attrs.val;if("string"!==typeof o)return;if(!/^-?\d+$/.test(o))return;const s=Number(o);return Number.isInteger(s)&&!(s<n||s>i)?s:void 0}function Fa(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function Oa(e){const t=Gn(e,"floor");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function ka(e){const t=Gn(e,"sideWall");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function Ba(e){const t=Gn(e,"backWall");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function Ga(e){if(void 0===e)return;const t=[],n=Va(e.rotX,-90,90);void 0!==n&&t.push(Cn("c:rotX",{val:n}));const i=Va(e.hPercent,5,500);void 0!==i&&t.push(Cn("c:hPercent",{val:i}));const r=Va(e.rotY,0,360);void 0!==r&&t.push(Cn("c:rotY",{val:r}));const o=Va(e.depthPercent,20,2e3);void 0!==o&&t.push(Cn("c:depthPercent",{val:o})),!0===e.rAngAx?t.push(Cn("c:rAngAx",{val:1})):!1===e.rAngAx&&t.push(Cn("c:rAngAx",{val:0}));const s=Va(e.perspective,0,240);return void 0!==s&&t.push(Cn("c:perspective",{val:s})),xn("c:view3D",void 0,t)}function Va(e,t,n){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<t||e>n))return e}function Ha(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:floor",void 0,[Cn("c:thickness",{val:e})])}function za(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:sideWall",void 0,[Cn("c:thickness",{val:e})])}function Ua(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:backWall",void 0,[Cn("c:thickness",{val:e})])}function Wa(e){if(!e)return;const t=e.attrs.val;if("string"!==typeof t)return;const n=t.trim();if(0===n.length)return;const i=Number(n);return Number.isFinite(i)&&!(i<0||i>1)?i:void 0}function $a(e){const t=Gn(e,"layout");if(!t)return;const n=Gn(t,"manualLayout");if(!n)return;const i=Wa(Gn(n,"x")),r=Wa(Gn(n,"y")),o=Wa(Gn(n,"w")),s=Wa(Gn(n,"h"));if(void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};return void 0!==i&&(a.x=i),void 0!==r&&(a.y=r),void 0!==o&&(a.w=o),void 0!==s&&(a.h=s),a}function ja(e){if(!e||"object"!==typeof e)return;const t={},n=Xa(e.x);void 0!==n&&(t.x=n);const i=Xa(e.y);void 0!==i&&(t.y=i);const r=Xa(e.w);void 0!==r&&(t.w=r);const o=Xa(e.h);return void 0!==o&&(t.h=o),void 0!==t.x||void 0!==t.y||void 0!==t.w||void 0!==t.h?t:void 0}function Xa(e){if("number"===typeof e&&Number.isFinite(e)&&!(e<0||e>1))return e}function Ya(e){if(!e)return;const t=[];return void 0!==e.x&&t.push(Cn("c:xMode",{val:"edge"})),void 0!==e.y&&t.push(Cn("c:yMode",{val:"edge"})),void 0!==e.w&&t.push(Cn("c:wMode",{val:"edge"})),void 0!==e.h&&t.push(Cn("c:hMode",{val:"edge"})),void 0!==e.x&&t.push(Cn("c:x",{val:e.x})),void 0!==e.y&&t.push(Cn("c:y",{val:e.y})),void 0!==e.w&&t.push(Cn("c:w",{val:e.w})),void 0!==e.h&&t.push(Cn("c:h",{val:e.h})),0!==t.length?xn("c:layout",void 0,[xn("c:manualLayout",void 0,t)]):void 0}function Ka(e,t){for(const n of e.children)"string"!==typeof n&&("t"===n.local?t.push(qa(n)):Ka(n,t))}function qa(e){let t="";for(const n of e.children)t+="string"===typeof n?n:qa(n);return t}function Za(e){if("string"!==typeof e)return;const t=e.trim().toLowerCase();return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0}function Qa(e){const t=e.attrs.val;if("string"===typeof t)return"1"===t||"true"===t.toLowerCase()}function Ja(e){if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function el(e){if(!e)return;const t=Gn(e,"numRef")??Gn(e,"strRef");if(t){const e=Gn(t,"f");if(e){const t=qa(e).trim();if(t.length>0)return t}}const n=Gn(e,"f");if(n){const e=qa(n).trim();if(e.length>0)return e}}function tl(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number(r);return Number.isFinite(o)?o:void 0}function nl(e){const t=Gn(e,"txPr");if(t)return rl(t)}function il(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");return i?rl(i):void 0}function rl(e){const t=Gn(e,"p");if(!t)return;const n=Gn(t,"pPr");return n?Gn(n,"defRPr"):void 0}const ol=1,sl=400;function al(e,t){return n=>{if("number"!==typeof n||!Number.isFinite(n))return;const i=Math.round(2*n),r=i/2;return r<e?e:r>t?t:r}}al(ol,sl);const ll=6e4,ul=-90,cl=90,dl=100,hl=1,pl=400,fl=1400;function gl(e){const t=Gn(e,"title");if(t)return $a(t)}function ml(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function vl(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(!i)return;const r=Gn(i,"bodyPr");if(!r)return;const o=r.attrs.rot;if("string"!==typeof o)return;const s=o.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const l=Math.round(a/ll);return 0!==l?l<ul?ul:l>cl?cl:l:void 0}function yl(e){const t=il(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/dl*2),s=o/2;return s<hl||s>pl?void 0:s}function Cl(e){const t=il(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function wl(e){const t=il(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function xl(e){const t=il(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function bl(e){const t=Gn(e,"title");if(t)return Ea(t)}function _l(e){const t=Gn(e,"title");if(t)return Da(t)}function Sl(e){const t=Gn(e,"title");if(t)return Ma(t)}function Al(e){const t=Gn(e,"title");if(t)return Ia(t)}function Tl(e){const t=Gn(e,"title");if(t)return ga(t)}function El(e){const t=Gn(e,"title");if(t)return ma(t)}function Dl(e){const t=il(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Ml(e){const t=il(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function Il(e){const t=il(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Rl(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(i){const e=[];Ka(i,e);const t=e.join("").trim();return t.length>0?t:void 0}const r=Gn(n,"strRef");if(r){const e=Gn(r,"strCache");if(e)for(const t of Vn(e)){if("pt"!==t.local)continue;const e=Gn(t,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}}}function Ll(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=void 0===n?0:n*ll,y=void 0===i?fl:i*dl,C=r?1:0,w=!0===o?1:void 0,x=!0===a?"sngStrike":void 0,b=!0===l?"sng":void 0,_=void 0!==s?xn("a:solidFill",void 0,[Aa(s)]):void 0,S=u?Cn("a:latin",{typeface:u}):void 0,A=[];_&&A.push(_),S&&A.push(S);const T=A.length>0?xn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x}),E=A.length>0?xn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x}),D=Ya(c),M=[xn("c:tx",void 0,[xn("c:rich",void 0,[xn("a:bodyPr",{rot:v,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[T]),xn("a:r",void 0,[E,xn("a:t",void 0,mn(e))])])])])];void 0!==D&&M.push(D),M.push(Cn("c:overlay",{val:t?1:0}));const I=Pl(d,h,p,f,g,m);return void 0!==I&&M.push(I),xn("c:title",void 0,M)}function Pl(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function Nl(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<ul?t=ul:t>cl&&(t=cl),0!==t?t:void 0}function Fl(e){return Nl(e.titleRotation)}function Ol(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;const t=Math.round(2*e),n=t/2;return n<hl||n>pl?void 0:n}function kl(e){return Ol(e.titleFontSize)}function Bl(e){return!0===e||!1!==e&&void 0}function Gl(e){return Bl(e.titleBold)}function Vl(e){return!0===e||!1!==e&&void 0}function Hl(e){return Vl(e.titleItalic)}function zl(e){return"string"===typeof e?Ta(e):Sa(e)}function Ul(e){return zl(e.titleColor)}function Wl(e){return zl(e.titleFillColor)}function $l(e){return zl(e.titleBorderColor)}function jl(e){return Ra(e.titleBorderWidth)}function Xl(e){return La(e.titleBorderDash)}function Yl(e){return pa(e.titleBorderCap)}function Kl(e){return fa(e.titleBorderCompound)}function ql(e){return!0===e||!1!==e&&void 0}function Zl(e){return ql(e.titleStrike)}function Ql(e){return!0===e||!1!==e&&void 0}function Jl(e){return Ql(e.titleUnderline)}function eu(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function tu(e){return eu(e.titleFontFamily)}function nu(e){return!0===e.titleOverlay}function iu(e){return ja(e.titleLayout)}const ru=100,ou=1,su=400;function au(e){const t=Gn(e,"legend");if(!t)return;const n=Gn(t,"delete");if(n&&!0===Ja(n.attrs.val))return!1;const i=Gn(t,"legendPos");if(!i)return"right";const r=i.attrs.val;if("string"!==typeof r)return"right";switch(r){case"t":return"top";case"b":return"bottom";case"l":return"left";case"r":return"right";case"tr":return"topRight";default:return}}function lu(e){const t=Gn(e,"legend");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function uu(e){const t=Gn(e,"legend");if(!t)return;const n=new Set,i=[];for(const r of Vn(t)){if("legendEntry"!==r.local)continue;const e=Gn(r,"idx");if(!e)continue;const t=e.attrs.val;if("string"!==typeof t)continue;const o=Number.parseInt(t,10);if(!Number.isFinite(o)||o<0)continue;if(n.has(o))continue;n.add(o);const s=Gn(r,"delete"),a=void 0!==s&&!0===Ja(s.attrs.val),l={idx:o,delete:a},u=nl(r);if(u){const e=u.attrs.sz;if("string"===typeof e){const t=e.trim();if(t.length>0){const e=Number.parseInt(t,10);if(Number.isFinite(e)){const t=Math.round(e/ru*2),n=t/2;n>=ou&&n<=su&&(l.fontSize=n)}}}const t=u.attrs.b;if("string"===typeof t){const e=Ja(t);!0===e&&(l.bold=!0)}const n=u.attrs.i;if("string"===typeof n){const e=Ja(n);!0===e&&(l.italic=!0)}const i=u.attrs.u;"string"===typeof i&&"sng"===i&&(l.underline=!0);const r=u.attrs.strike;"string"===typeof r&&"sngStrike"===r&&(l.strikethrough=!0);const o=Gn(u,"solidFill");if(o){const e=Gn(o,"srgbClr");if(e){const t=e.attrs.val;if("string"===typeof t){const e=t.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(l.color=e)}}}const s=Gn(u,"latin");if(s){const e=s.attrs.typeface;if("string"===typeof e){const t=e.trim();t.length>0&&(l.fontFamily=t)}}}i.push(l)}return i.length>0?i:void 0}function cu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.sz;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const s=Math.round(o/ru*2),a=s/2;return a<ou||a>su?void 0:a}function du(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.b;return"1"===i||"true"===i||void 0}function hu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.i;return"1"===i||"true"===i||void 0}function pu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.u;return"sng"===i||void 0}function fu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.strike;return"sngStrike"===i||void 0}function gu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");if(r)return Ta(r.attrs.val);const o=Gn(i,"schemeClr");return o?_a(o):void 0}function mu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=Gn(n,"latin");if(!i)return;const r=i.attrs.typeface;if("string"!==typeof r)return;const o=r.trim();return 0!==o.length?o:void 0}function vu(e){const t=Gn(e,"legend");if(t)return $a(t)}function yu(e){const t=Gn(e,"legend");if(t)return Ea(t)}function Cu(e){const t=Gn(e,"legend");if(t)return Da(t)}function wu(e){const t=Gn(e,"legend");if(t)return Ma(t)}function xu(e){const t=Gn(e,"legend");if(t)return Ia(t)}function bu(e){const t=Gn(e,"legend");if(t)return ga(t)}function _u(e){const t=Gn(e,"legend");if(t)return ma(t)}function Su(e){if(!1===e.legend)return null;if(void 0===e.legend)return"scatter"===e.type?"b":"r";switch(e.legend){case"top":return"t";case"bottom":return"b";case"left":return"l";case"right":return"r";case"topRight":return"tr"}}function Au(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=[Cn("c:legendPos",{val:e})];for(const x of n){const e=[Cn("c:idx",{val:x.idx}),Cn("c:delete",{val:x.delete?1:0})],t=Eu(x.fontSize,x.bold,x.italic,x.underline,x.strikethrough,x.color,x.fontFamily);void 0!==t&&e.push(t),v.push(xn("c:legendEntry",void 0,e))}const y=Ya(c);void 0!==y&&v.push(y),v.push(Cn("c:overlay",{val:t?1:0}));const C=Tu(d,h,p,f,g,m);void 0!==C&&v.push(C);const w=Eu(i,r,o,s,a,l,u);return void 0!==w&&v.push(w),xn("c:legend",void 0,v)}function Tu(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function Eu(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*ru),void 0!==t&&(a.b=t?1:0),void 0!==n&&(a.i=n?1:0),void 0!==i&&(a.u=i?"sng":"none"),!0===r&&(a.strike="sngStrike");const l=void 0!==o?xn("a:solidFill",void 0,[Aa(o)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}function Du(e){return Ol(e.legendFontSize)}function Mu(e){const t=e.legendBold;return!0===t||!1!==t&&void 0}function Iu(e){const t=e.legendItalic;return!0===t||!1!==t&&void 0}function Ru(e){const t=e.legendUnderline;return!0===t||!1!==t&&void 0}function Lu(e){if(!0===e.legendStrikethrough)return!0}function Pu(e){return zl(e.legendFontColor)}function Nu(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function Fu(e){return Nu(e.legendFontFamily)}function Ou(e){const t=e.legendEntries;if(!Array.isArray(t)||0===t.length)return[];const n=new Map;for(const i of t){if(!i||"object"!==typeof i)continue;const e=i.idx;if("number"!==typeof e||!Number.isFinite(e))continue;if(!Number.isInteger(e)||e<0)continue;const t={idx:e,delete:!0===i.delete};if("number"===typeof i.fontSize&&Number.isFinite(i.fontSize)){const e=Math.round(2*i.fontSize),n=e/2;n>=ou&&n<=su&&(t.fontSize=n)}if(!0===i.bold?t.bold=!0:!1===i.bold&&(t.bold=!1),!0===i.italic?t.italic=!0:!1===i.italic&&(t.italic=!1),!0===i.underline?t.underline=!0:!1===i.underline&&(t.underline=!1),!0===i.strikethrough?t.strikethrough=!0:!1===i.strikethrough&&(t.strikethrough=!1),void 0!==i.color){const e=Sa(i.color);void 0!==e&&(t.color=e)}if("string"===typeof i.fontFamily){const e=i.fontFamily.trim();e.length>0&&(t.fontFamily=e)}n.set(e,t)}return Array.from(n.values()).sort((e,t)=>e.idx-t.idx)}function ku(e){return!0===e.legendOverlay}function Bu(e){return ja(e.legendLayout)}function Gu(e){return zl(e.legendFillColor)}function Vu(e){return zl(e.legendBorderColor)}function Hu(e){return Ra(e.legendBorderWidth)}function zu(e){return La(e.legendBorderDash)}const Uu=100,Wu=1,$u=400,ju=new Set(["none","in","out","cross"]),Xu=new Set(["nextTo","low","high","none"]),Yu=new Set(["ctr","l","r"]),Ku=-90,qu=90,Zu=new Set(["autoZero","min","max"]),Qu=new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),Ju=new Set(["between","midCat"]);function ec(e,t){const n=Sc(e),i=Ac(e),r=Tc(e),o=Ec(e),s=Dc(e),a=Mc(e),l=Ic(e),u=Rc(e),c=Lc(e),d=Pc(e),h=Nc(e),p=Fc(e),f=Oc(e),g=kc(e),m=Bc(e),v=Gc(e),y=Vc(e),C=_c(e),w=xc(e),x=bc(e),b=tc(e,"majorTickMark","out"),_=tc(e,"minorTickMark","none"),S=nc(e),A=cc(e),T=dc(e),E=hc(e),D=pc(e),M=fc(e),I=gc(e),R=mc(e),L=vc(e),P=ic(e),N="catAx"===e.local||"dateAx"===e.local,F=N?rc(e,"tickLblSkip"):void 0,O=N?rc(e,"tickMarkSkip"):void 0,k=N?oc(e):void 0,B=N?sc(e):void 0,G="catAx"===e.local?ac(e):void 0,V="catAx"===e.local?lc(e):void 0,H=uc(e),z=yc(e),U=z.crosses,W=z.crossesAt,$="valAx"===e.local?Cc(e):void 0,j="valAx"===e.local?wc(e):void 0,X=j===t?void 0:j;if(void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s&&void 0===a&&void 0===l&&void 0===u&&void 0===c&&void 0===d&&void 0===h&&void 0===p&&void 0===f&&void 0===g&&void 0===m&&void 0===v&&void 0===y&&void 0===C&&void 0===w&&void 0===x&&void 0===b&&void 0===_&&void 0===S&&void 0===A&&void 0===T&&void 0===E&&void 0===D&&void 0===M&&void 0===L&&void 0===I&&void 0===R&&void 0===P&&void 0===F&&void 0===O&&void 0===k&&void 0===B&&void 0===G&&void 0===V&&void 0===H&&void 0===U&&void 0===W&&void 0===$&&void 0===X)return;const Y={};return void 0!==n&&(Y.title=n),void 0!==i&&(Y.axisTitleRotation=i),void 0!==r&&(Y.axisTitleFontSize=r),void 0!==o&&(Y.axisTitleBold=o),void 0!==s&&(Y.axisTitleItalic=s),void 0!==a&&(Y.axisTitleColor=a),void 0!==l&&(Y.axisTitleStrike=l),void 0!==u&&(Y.axisTitleUnderline=u),void 0!==c&&(Y.axisTitleFontFamily=c),void 0!==d&&(Y.axisTitleOverlay=d),void 0!==h&&(Y.axisTitleLayout=h),void 0!==p&&(Y.axisTitleFillColor=p),void 0!==f&&(Y.axisTitleBorderColor=f),void 0!==g&&(Y.axisTitleBorderWidth=g),void 0!==m&&(Y.axisTitleBorderDash=m),void 0!==v&&(Y.axisTitleBorderCap=v),void 0!==y&&(Y.axisTitleBorderCompound=y),void 0!==C&&(Y.gridlines=C),void 0!==w&&(Y.scale=w),void 0!==x&&(Y.numberFormat=x),void 0!==b&&(Y.majorTickMark=b),void 0!==_&&(Y.minorTickMark=_),void 0!==S&&(Y.tickLblPos=S),void 0!==A&&(Y.labelRotation=A),void 0!==T&&(Y.labelFontSize=T),void 0!==E&&(Y.labelBold=E),void 0!==D&&(Y.labelItalic=D),void 0!==M&&(Y.labelColor=M),void 0!==L&&(Y.labelFontFamily=L),void 0!==I&&(Y.labelUnderline=I),void 0!==R&&(Y.labelStrike=R),void 0!==P&&(Y.reverse=P),void 0!==F&&(Y.tickLblSkip=F),void 0!==O&&(Y.tickMarkSkip=O),void 0!==k&&(Y.lblOffset=k),void 0!==B&&(Y.lblAlgn=B),void 0!==G&&(Y.noMultiLvlLbl=G),void 0!==V&&(Y.auto=V),void 0!==H&&(Y.hidden=H),void 0!==U&&(Y.crosses=U),void 0!==W&&(Y.crossesAt=W),void 0!==$&&(Y.dispUnits=$),void 0!==X&&(Y.crossBetween=X),Y}function tc(e,t,n){const i=Gn(e,t);if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ju.has(o)?o===n?void 0:o:void 0}function nc(e){const t=Gn(e,"tickLblPos");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Xu.has(i)?"nextTo"===i?void 0:i:void 0}function ic(e){const t=Gn(e,"scaling");if(!t)return;const n=Gn(t,"orientation");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();return"maxMin"===r||void 0}function rc(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);return Number.isFinite(o)&&!(o<1||o>32767)&&1!==o?o:void 0}function oc(e){const t=Gn(e,"lblOffset");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);return Number.isFinite(r)&&!(r<0||r>1e3)&&100!==r?r:void 0}function sc(e){const t=Gn(e,"lblAlgn");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Yu.has(i)?"ctr"===i?void 0:i:void 0}function ac(e){const t=Gn(e,"noMultiLvlLbl");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"1":case"true":return!0;case"0":case"false":return;default:return}}function lc(e){const t=Gn(e,"auto");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"0":case"false":return!1;case"1":case"true":return;default:return}}function uc(e){const t=Gn(e,"delete");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"1":case"true":return!0;case"0":case"false":return;default:return}}function cc(e){const t=Gn(e,"txPr");if(!t)return;const n=Gn(t,"bodyPr");if(!n)return;const i=n.attrs.rot;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const s=Math.round(o/6e4);return 0!==s?s<Ku?Ku:s>qu?qu:s:void 0}function dc(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Uu*2),s=o/2;return s<Wu||s>$u?void 0:s}function hc(e){const t=nl(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function pc(e){const t=nl(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function fc(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function gc(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function mc(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function vc(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function yc(e){const t=Gn(e,"crossesAt");if(t){const e=t.attrs.val;if("string"===typeof e){const t=e.trim();if(t.length>0){const e=Number.parseFloat(t);if(Number.isFinite(e))return{crossesAt:e}}}}const n=Gn(e,"crosses");if(!n)return{};const i=n.attrs.val;if("string"!==typeof i)return{};const r=i.trim();return Zu.has(r)?"autoZero"===r?{}:{crosses:r}:{}}function Cc(e){const t=Gn(e,"dispUnits");if(!t)return;const n={},i=Gn(t,"custUnit");if(i){const e=i.attrs.val;if("string"===typeof e){const t=Number.parseFloat(e.trim());Number.isFinite(t)&&t>0&&(n.custUnit=t)}}if(void 0===n.custUnit){const e=Gn(t,"builtInUnit");if(e){const t=e.attrs.val;if("string"===typeof t){const e=t.trim();Qu.has(e)&&(n.unit=e)}}}if(void 0===n.unit&&void 0===n.custUnit)return;const r=Gn(t,"dispUnitsLbl");if(r){n.showLabel=!0;const e=Gn(r,"tx");if(e){const t=Gn(e,"rich");if(t){const e=[];for(const n of t.children){if("string"===typeof n)continue;if("p"!==n.local)continue;const t=[];for(const e of n.children)if("string"!==typeof e&&"r"===e.local)for(const n of e.children){if("string"===typeof n)continue;if("t"!==n.local)continue;let e="";for(const t of n.children)"string"===typeof t&&(e+=t);t.push(e)}t.length>0&&e.push(t.join(""))}const i=e.join("\n").trim();i.length>0&&(n.customLabel=i)}}}return n}function wc(e){const t=Gn(e,"crossBetween");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Ju.has(i)?i:void 0}function xc(e){const t={},n=Gn(e,"scaling");if(n){const e=tl(n,"min");void 0!==e&&(t.min=e);const i=tl(n,"max");void 0!==i&&(t.max=i);const r=tl(n,"logBase");void 0!==r&&(t.logBase=r)}const i=tl(e,"majorUnit");void 0!==i&&i>0&&(t.majorUnit=i);const r=tl(e,"minorUnit");return void 0!==r&&r>0&&(t.minorUnit=r),Object.keys(t).length>0?t:void 0}function bc(e){const t=Gn(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!==typeof n||0===n.length)return;const i={formatCode:n},r=t.attrs.sourceLinked;return void 0!==r&&!0===Za(r)&&(i.sourceLinked=!0),i}function _c(e){const t=void 0!==Gn(e,"majorGridlines"),n=void 0!==Gn(e,"minorGridlines");if(!t&&!n)return;const i={};return t&&(i.major=!0),n&&(i.minor=!0),i}function Sc(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(i){const e=[];Ka(i,e);const t=e.join("").trim();return t.length>0?t:void 0}const r=Gn(n,"strRef");if(r){const e=Gn(r,"strCache");if(e)for(const t of Vn(e)){if("pt"!==t.local)continue;const e=Gn(t,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}}}function Ac(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(!i)return;const r=Gn(i,"bodyPr");if(!r)return;const o=r.attrs.rot;if("string"!==typeof o)return;const s=o.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const l=Math.round(a/6e4);return 0!==l?l<Ku?Ku:l>qu?qu:l:void 0}function Tc(e){const t=il(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Uu*2),s=o/2;return s<Wu||s>$u?void 0:s}function Ec(e){const t=il(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function Dc(e){const t=il(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function Mc(e){const t=il(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Ic(e){const t=il(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Rc(e){const t=il(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function Lc(e){const t=il(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Pc(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function Nc(e){const t=Gn(e,"title");if(t)return $a(t)}function Fc(e){const t=Gn(e,"title");if(t)return Ea(t)}function Oc(e){const t=Gn(e,"title");if(t)return Da(t)}function kc(e){const t=Gn(e,"title");if(t)return Ma(t)}function Bc(e){const t=Gn(e,"title");if(t)return Ia(t)}function Gc(e){const t=Gn(e,"title");if(t)return ga(t)}function Vc(e){const t=Gn(e,"title");if(t)return ma(t)}function Hc(e){const t=Gn(e,"autoTitleDeleted");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}const zc=new Set(["autoZero","min","max"]),Uc=111111111,Wc=222222222,$c=333333333,jc=444444444,Xc=1e3,Yc=6e4,Kc=new Set(["none","in","out","cross"]),qc=new Set(["nextTo","low","high","none"]);function Zc(e){if(!0===e.autoTitleDeleted)return!0;if(!1===e.autoTitleDeleted)return!1;const t=e.showTitle??Boolean(e.title);return!(t&&e.title)}function Qc(e){if("string"!==typeof e)return;const t=e.trim();return t.length>0?t:void 0}function Jc(e){if(!e)return;const t=!0===e.major,n=!0===e.minor;return t||n?{major:t,minor:n}:void 0}function ed(e){if(!e)return[];const t=[];return e.major&&t.push(xn("c:majorGridlines",void 0,[])),e.minor&&t.push(xn("c:minorGridlines",void 0,[])),t}function td(e){if(!e)return;const t={};return"number"===typeof e.min&&Number.isFinite(e.min)&&(t.min=e.min),"number"===typeof e.max&&Number.isFinite(e.max)&&(t.max=e.max),void 0!==t.min&&void 0!==t.max&&t.min>=t.max&&delete t.max,"number"===typeof e.majorUnit&&Number.isFinite(e.majorUnit)&&e.majorUnit>0&&(t.majorUnit=e.majorUnit),"number"===typeof e.minorUnit&&Number.isFinite(e.minorUnit)&&e.minorUnit>0&&(t.minorUnit=e.minorUnit),"number"===typeof e.logBase&&Number.isFinite(e.logBase)&&e.logBase>=2&&e.logBase<=1e3&&(t.logBase=e.logBase),Object.keys(t).length>0?t:void 0}function nd(e){if(!e)return;const t="string"===typeof e.formatCode?e.formatCode:"";if(0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function id(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<1||t>32767||1===t?void 0:t}function rd(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>1e3||100===t?void 0:t}function od(e){if(void 0!==e&&("ctr"===e||"l"===e||"r"===e)&&"ctr"!==e)return e}function sd(e){return!0===e}function ad(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<Ku?t=Ku:t>qu&&(t=qu),0!==t?t:void 0}function ld(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;const t=Math.round(2*e),n=t/2;return n<Wu||n>$u?void 0:n}function ud(e){return Bl(e)}function cd(e){return Vl(e)}function dd(e){return zl(e)}function hd(e){return Ql(e)}function pd(e){return ql(e)}function fd(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function gd(e,t,n,i,r,o,s,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s&&void 0===a)return;const l=void 0===e?void 0:6e4*e,u=void 0===t?void 0:t*Uu,c=void 0===n?void 0:n?1:0,d=void 0===i?void 0:i?1:0,h=!0===o?"sng":void 0,p=!0===s?"sngStrike":void 0,f=void 0!==r?xn("a:solidFill",void 0,[Aa(r)]):void 0,g=a?Cn("a:latin",{typeface:a}):void 0,m=[];f&&m.push(f),g&&m.push(g);const v=m.length>0?xn("a:defRPr",{sz:u,b:c,i:d,u:h,strike:p},m):Cn("a:defRPr",{sz:u,b:c,i:d,u:h,strike:p});return xn("c:txPr",void 0,[Cn("a:bodyPr",{rot:l}),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[v]),Cn("a:endParaRPr",{lang:"en-US"})])])}function md(e,t){return"number"===typeof t&&Number.isFinite(t)?{kind:"numeric",value:t}:void 0!==e&&zc.has(e)&&"autoZero"!==e?{kind:"semantic",value:e}:{kind:"default"}}function vd(e){switch(e.kind){case"numeric":return Cn("c:crossesAt",{val:e.value});case"semantic":return Cn("c:crosses",{val:e.value});case"default":return Cn("c:crosses",{val:"autoZero"})}}function yd(e){if(!e)return{before:[],after:[]};const t=[],n=[];return void 0!==e.logBase&&t.push(Cn("c:logBase",{val:e.logBase})),void 0!==e.max&&n.push(Cn("c:max",{val:e.max})),void 0!==e.min&&n.push(Cn("c:min",{val:e.min})),{before:t,after:n}}function Cd(e,t=!1){const{before:n,after:i}=yd(e),r=[...n,Cn("c:orientation",{val:t?"maxMin":"minMax"}),...i];return xn("c:scaling",void 0,r)}function wd(e){if(!e)return[];const t=[];return void 0!==e.majorUnit&&t.push(Cn("c:majorUnit",{val:e.majorUnit})),void 0!==e.minorUnit&&t.push(Cn("c:minorUnit",{val:e.minorUnit})),t}function xd(e){if(void 0===e)return;if("string"===typeof e)return Qu.has(e)?{unit:e}:void 0;if("object"!==typeof e||null===e)return;const t={},n=e.unit;"string"===typeof n&&Qu.has(n)&&(t.unit=n);const i=e.custUnit;if("number"===typeof i&&Number.isFinite(i)&&i>0&&(t.custUnit=i),void 0!==t.unit||void 0!==t.custUnit){if(!0===e.showLabel&&(t.showLabel=!0),"string"===typeof e.customLabel){const n=e.customLabel.trim();n.length>0&&(t.customLabel=n)}return t}}function bd(e){if(!e)return[];const t=[];if(void 0!==e.custUnit)t.push(Cn("c:custUnit",{val:e.custUnit}));else{if(void 0===e.unit)return[];t.push(Cn("c:builtInUnit",{val:e.unit}))}if(!0===e.showLabel||"string"===typeof e.customLabel&&e.customLabel.trim().length>0){const n="string"===typeof e.customLabel?e.customLabel.trim():"";if(n.length>0){const e=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=xn("c:rich",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:r",void 0,[xn("a:t",void 0,e)])])]),r=xn("c:tx",void 0,[i]);t.push(xn("c:dispUnitsLbl",void 0,[r]))}else t.push(Cn("c:dispUnitsLbl"))}return[xn("c:dispUnits",void 0,t)]}function _d(e){if("string"===typeof e)return Ju.has(e)?e:void 0}function Sd(e){if(!e)return[];const t=!0===e.sourceLinked?1:0;return[Cn("c:numFmt",{formatCode:e.formatCode,sourceLinked:t})]}function Ad(e){if(void 0!==e)return Kc.has(e)?e:void 0}function Td(e){if(void 0!==e)return qc.has(e)?e:void 0}function Ed(e,t,n){const i=[];return void 0!==e&&i.push(Cn("c:majorTickMark",{val:e})),void 0!==t&&i.push(Cn("c:minorTickMark",{val:t})),void 0!==n&&i.push(Cn("c:tickLblPos",{val:n})),i}function Dd(e,t){const n=[];return void 0!==e&&n.push(Cn("c:tickLblSkip",{val:e})),void 0!==t&&n.push(Cn("c:tickMarkSkip",{val:t})),n}function Md(e,t){const n="column"===e?"b":"l",i="column"===e?"l":"b",r=[Cn("c:axId",{val:Uc}),Cd(t.xScale,t.xReverse),Cn("c:delete",{val:t.xHidden?1:0}),Cn("c:axPos",{val:n}),...ed(t.xGridlines)];t.xAxisTitle&&r.push(Rd(t.xAxisTitle,t.xAxisTitleRotation,t.xAxisTitleFontSize,t.xAxisTitleBold,t.xAxisTitleItalic,t.xAxisTitleColor,t.xAxisTitleStrike,t.xAxisTitleUnderline,t.xAxisTitleFontFamily,t.xAxisTitleOverlay,t.xAxisTitleLayout,t.xAxisTitleFillColor,t.xAxisTitleBorderColor,t.xAxisTitleBorderWidth,t.xAxisTitleBorderDash,t.xAxisTitleBorderCap,t.xAxisTitleBorderCompound)),r.push(...Sd(t.xNumFmt),...Ed(t.xMajorTickMark,t.xMinorTickMark,t.xTickLblPos));const o=gd(t.xLabelRotation,t.xLabelFontSize,t.xLabelBold,t.xLabelItalic,t.xLabelColor,t.xLabelUnderline,t.xLabelStrike,t.xLabelFontFamily);o&&r.push(o),r.push(Cn("c:crossAx",{val:Wc}),vd(t.xCrosses),Cn("c:auto",{val:t.xAuto?1:0}),Cn("c:lblAlgn",{val:t.xLblAlgn??"ctr"}),Cn("c:lblOffset",{val:t.xLblOffset??100}),...Dd(t.xTickLblSkip,t.xTickMarkSkip),Cn("c:noMultiLvlLbl",{val:t.xNoMultiLvlLbl?1:0}));const s=[Cn("c:axId",{val:Wc}),Cd(t.yScale,t.yReverse),Cn("c:delete",{val:t.yHidden?1:0}),Cn("c:axPos",{val:i}),...ed(t.yGridlines)];t.yAxisTitle&&s.push(Rd(t.yAxisTitle,t.yAxisTitleRotation,t.yAxisTitleFontSize,t.yAxisTitleBold,t.yAxisTitleItalic,t.yAxisTitleColor,t.yAxisTitleStrike,t.yAxisTitleUnderline,t.yAxisTitleFontFamily,t.yAxisTitleOverlay,t.yAxisTitleLayout,t.yAxisTitleFillColor,t.yAxisTitleBorderColor,t.yAxisTitleBorderWidth,t.yAxisTitleBorderDash,t.yAxisTitleBorderCap,t.yAxisTitleBorderCompound)),s.push(...Sd(t.yNumFmt),...Ed(t.yMajorTickMark,t.yMinorTickMark,t.yTickLblPos));const a=gd(t.yLabelRotation,t.yLabelFontSize,t.yLabelBold,t.yLabelItalic,t.yLabelColor,t.yLabelUnderline,t.yLabelStrike,t.yLabelFontFamily);return a&&s.push(a),s.push(Cn("c:crossAx",{val:Uc}),vd(t.yCrosses),Cn("c:crossBetween",{val:t.yCrossBetween??"between"}),...wd(t.yScale),...bd(t.yDispUnits)),[xn("c:catAx",void 0,r),xn("c:valAx",void 0,s)]}function Id(e){const t=[Cn("c:axId",{val:$c}),Cd(e.xScale,e.xReverse),Cn("c:delete",{val:e.xHidden?1:0}),Cn("c:axPos",{val:"b"}),...ed(e.xGridlines)];e.xAxisTitle&&t.push(Rd(e.xAxisTitle,e.xAxisTitleRotation,e.xAxisTitleFontSize,e.xAxisTitleBold,e.xAxisTitleItalic,e.xAxisTitleColor,e.xAxisTitleStrike,e.xAxisTitleUnderline,e.xAxisTitleFontFamily,e.xAxisTitleOverlay,e.xAxisTitleLayout,e.xAxisTitleFillColor,e.xAxisTitleBorderColor,e.xAxisTitleBorderWidth,e.xAxisTitleBorderDash,e.xAxisTitleBorderCap,e.xAxisTitleBorderCompound)),t.push(...Sd(e.xNumFmt),...Ed(e.xMajorTickMark,e.xMinorTickMark,e.xTickLblPos));const n=gd(e.xLabelRotation,e.xLabelFontSize,e.xLabelBold,e.xLabelItalic,e.xLabelColor,e.xLabelUnderline,e.xLabelStrike,e.xLabelFontFamily);n&&t.push(n),t.push(Cn("c:crossAx",{val:jc}),vd(e.xCrosses),Cn("c:crossBetween",{val:e.xCrossBetween??"midCat"}),...wd(e.xScale),...bd(e.xDispUnits));const i=[Cn("c:axId",{val:jc}),Cd(e.yScale,e.yReverse),Cn("c:delete",{val:e.yHidden?1:0}),Cn("c:axPos",{val:"l"}),...ed(e.yGridlines)];e.yAxisTitle&&i.push(Rd(e.yAxisTitle,e.yAxisTitleRotation,e.yAxisTitleFontSize,e.yAxisTitleBold,e.yAxisTitleItalic,e.yAxisTitleColor,e.yAxisTitleStrike,e.yAxisTitleUnderline,e.yAxisTitleFontFamily,e.yAxisTitleOverlay,e.yAxisTitleLayout,e.yAxisTitleFillColor,e.yAxisTitleBorderColor,e.yAxisTitleBorderWidth,e.yAxisTitleBorderDash,e.yAxisTitleBorderCap,e.yAxisTitleBorderCompound)),i.push(...Sd(e.yNumFmt),...Ed(e.yMajorTickMark,e.yMinorTickMark,e.yTickLblPos));const r=gd(e.yLabelRotation,e.yLabelFontSize,e.yLabelBold,e.yLabelItalic,e.yLabelColor,e.yLabelUnderline,e.yLabelStrike,e.yLabelFontFamily);return r&&i.push(r),i.push(Cn("c:crossAx",{val:$c}),vd(e.yCrosses),Cn("c:crossBetween",{val:e.yCrossBetween??"midCat"}),...wd(e.yScale),...bd(e.yDispUnits)),[xn("c:valAx",void 0,t),xn("c:valAx",void 0,i)]}function Rd(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=void 0===t?0:t*Yc,y=void 0===n?Xc:n*Uu,C=i?1:0,w=!0===r?1:void 0,x=!0===s?"sngStrike":void 0,b=!0===a?"sng":void 0,_=void 0!==o?xn("a:solidFill",void 0,[Aa(o)]):void 0,S=l?Cn("a:latin",{typeface:l}):void 0,A=[];_&&A.push(_),S&&A.push(S);const T=A.length>0?xn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x}),E=A.length>0?xn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x}),D=Ya(c),M=[xn("c:tx",void 0,[xn("c:rich",void 0,[xn("a:bodyPr",{rot:v,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[T]),xn("a:r",void 0,[E,xn("a:t",void 0,mn(e))])])])])];D&&M.push(D),M.push(Cn("c:overlay",{val:u?1:0}));const I=Pl(d,h,p,f,g,m);return void 0!==I&&M.push(I),xn("c:title",void 0,M)}function Ld(e){return Nl(e)}function Pd(e){return Ol(e)}function Nd(e){return Bl(e)}function Fd(e){return Vl(e)}function Od(e){return zl(e)}function kd(e){return ql(e)}function Bd(e){return Ql(e)}function Gd(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}new Set(["none","in","out","cross"]),new Set(["nextTo","low","high","none"]),new Set(["autoZero","min","max"]),new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),new Set(["between","midCat"]);const Vd=100,Hd=1,zd=400;function Ud(e){const t=Gn(e,"dTable");if(!t)return;const n={},i=Jd(t,"showHorzBorder");void 0!==i&&(n.showHorzBorder=i);const r=Jd(t,"showVertBorder");void 0!==r&&(n.showVertBorder=r);const o=Jd(t,"showOutline");void 0!==o&&(n.showOutline=o);const s=Jd(t,"showKeys");void 0!==s&&(n.showKeys=s);const a=Qd(t);void 0!==a&&(n.fontSize=a);const l=Zd(t);void 0!==l&&(n.fontColor=l);const u=Wd(t);void 0!==u&&(n.bold=u);const c=$d(t);void 0!==c&&(n.italic=c);const d=jd(t);void 0!==d&&(n.underline=d);const h=Xd(t);void 0!==h&&(n.strikethrough=h);const p=Yd(t);void 0!==p&&(n.fontFamily=p);const f=Kd(t);void 0!==f&&(n.fillColor=f);const g=qd(t);void 0!==g&&(n.borderColor=g);const m=Ma(t);void 0!==m&&(n.borderWidth=m);const v=Ia(t);void 0!==v&&(n.borderDash=v);const y=ga(t);void 0!==y&&(n.borderCap=y);const C=ma(t);return void 0!==C&&(n.borderCompound=C),n}function Wd(e){const t=nl(e);if(!t)return;const n=t.attrs.b;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function $d(e){const t=nl(e);if(!t)return;const n=t.attrs.i;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function jd(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||"none"!==n&&void 0}function Xd(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Yd(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Kd(e){return Ea(e)}function qd(e){return Da(e)}function Zd(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Qd(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Vd*2),s=o/2;return s<Hd||s>zd?void 0:s}function Jd(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function eh(e){if("pie"===e.type||"doughnut"===e.type)return;const t=e.dataTable;return void 0!==t&&!1!==t?!0===t?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0,fontSize:void 0,fontColor:void 0,bold:void 0,italic:void 0,underline:void 0,strikethrough:void 0,fontFamily:void 0,fillColor:void 0,borderColor:void 0,borderWidth:void 0,borderDash:void 0,borderCap:void 0,borderCompound:void 0}:{showHorzBorder:!1!==t.showHorzBorder,showVertBorder:!1!==t.showVertBorder,showOutline:!1!==t.showOutline,showKeys:!1!==t.showKeys,fontSize:th(t.fontSize),fontColor:nh(t.fontColor),bold:ih(t.bold),italic:rh(t.italic),underline:oh(t.underline),strikethrough:sh(t.strikethrough),fontFamily:ah(t.fontFamily),fillColor:lh(t.fillColor),borderColor:uh(t.borderColor),borderWidth:Ra(t.borderWidth),borderDash:La(t.borderDash),borderCap:pa(t.borderCap),borderCompound:fa(t.borderCompound)}:void 0}function th(e){return Ol(e)}function nh(e){return zl(e)}function ih(e){return!0===e||!1!==e&&void 0}function rh(e){return!0===e||!1!==e&&void 0}function oh(e){return!0===e||!1!==e&&void 0}function sh(e){if(!0===e)return!0}function ah(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function lh(e){return zl(e)}function uh(e){return zl(e)}function ch(e){const t=[Cn("c:showHorzBorder",{val:e.showHorzBorder?1:0}),Cn("c:showVertBorder",{val:e.showVertBorder?1:0}),Cn("c:showOutline",{val:e.showOutline?1:0}),Cn("c:showKeys",{val:e.showKeys?1:0})],n=dh(e.fillColor,e.borderColor,e.borderWidth,e.borderDash,e.borderCap,e.borderCompound);void 0!==n&&t.push(n);const i=hh(e.fontSize,e.fontColor,e.bold,e.italic,e.underline,e.strikethrough,e.fontFamily);return void 0!==i&&t.push(i),xn("c:dTable",void 0,t)}function dh(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function hh(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*Vd),void 0!==n&&(a.b=n?1:0),void 0!==i&&(a.i=i?1:0),void 0!==r&&(a.u=r?"sng":"none"),!0===o&&(a.strike="sngStrike");const l=void 0!==t?xn("a:solidFill",void 0,[Aa(t)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}const ph=100,fh=1,gh=400,mh=new Set(["t","b","l","r","ctr","inEnd","inBase","outEnd","bestFit"]);function vh(e){const t=Gn(e,"delete");if(t&&!0===Qa(t))return;const n={},i=Gn(e,"dLblPos");if(i){const e=i.attrs.val;"string"===typeof e&&mh.has(e)&&(n.position=e)}const r=Gn(e,"showLegendKey");r&&!0===Qa(r)&&(n.showLegendKey=!0);const o=Gn(e,"showVal");o&&!0===Qa(o)&&(n.showValue=!0);const s=Gn(e,"showCatName");s&&!0===Qa(s)&&(n.showCategoryName=!0);const a=Gn(e,"showSerName");a&&!0===Qa(a)&&(n.showSeriesName=!0);const l=Gn(e,"showPercent");l&&!0===Qa(l)&&(n.showPercent=!0);const u=Gn(e,"separator");if(u){const e=qa(u);e.length>0&&(n.separator=e)}const c=Eh(e);c&&(n.numberFormat=c);const d=Gn(e,"showLeaderLines");if(d){const e=d.attrs.val;"string"!==typeof e||"0"!==e&&"false"!==e.toLowerCase()||(n.showLeaderLines=!1)}const h=yh(e);void 0!==h&&(n.fontSize=h);const p=Ch(e);void 0!==p&&(n.fontColor=p);const f=wh(e);void 0!==f&&(n.bold=f);const g=xh(e);void 0!==g&&(n.italic=g);const m=bh(e);void 0!==m&&(n.underline=m);const v=_h(e);void 0!==v&&(n.strikethrough=v);const y=Sh(e);void 0!==y&&(n.fontFamily=y);const C=Ah(e);void 0!==C&&(n.fillColor=C);const w=Th(e);void 0!==w&&(n.borderColor=w);const x=Ma(e);void 0!==x&&(n.borderWidth=x);const b=Ia(e);void 0!==b&&(n.borderDash=b);const _=ga(e);void 0!==_&&(n.borderCap=_);const S=ma(e);return void 0!==S&&(n.borderCompound=S),void 0!==n.position||n.showValue||n.showCategoryName||n.showSeriesName||n.showPercent||n.showLegendKey||void 0!==n.separator||void 0!==n.numberFormat||void 0!==n.showLeaderLines||void 0!==n.fontSize||void 0!==n.fontColor||void 0!==n.bold||void 0!==n.italic||void 0!==n.underline||void 0!==n.strikethrough||void 0!==n.fontFamily||void 0!==n.fillColor||void 0!==n.borderColor||void 0!==n.borderWidth||void 0!==n.borderDash||void 0!==n.borderCap||void 0!==n.borderCompound?n:void 0}function yh(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/ph*2),s=o/2;return s<fh||s>gh?void 0:s}function Ch(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function wh(e){const t=nl(e);if(!t)return;const n=t.attrs.b;return"1"===n||"true"===n||void 0}function xh(e){const t=nl(e);if(!t)return;const n=t.attrs.i;return"1"===n||"true"===n||void 0}function bh(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function _h(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Sh(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Ah(e){return Ea(e)}function Th(e){return Da(e)}function Eh(e){const t=Gn(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!==typeof n||0===n.length)return;const i={formatCode:n},r=t.attrs.sourceLinked;return"string"===typeof r&&("1"!==r&&"true"!==r.toLowerCase()||(i.sourceLinked=!0)),i}function Dh(e,t,n){return!1===e?xn("c:dLbls",void 0,[xn("c:dLbl",void 0,[Cn("c:idx",{val:0}),Cn("c:delete",{val:1})]),Cn("c:delete",{val:1})]):e?Ih(e,n):void 0}function Mh(e){if(e.dataLabels)return Ih(e.dataLabels,e.type)}function Ih(e,t){const n=[],i=Rh(e.numberFormat);i&&n.push(Cn("c:numFmt",{formatCode:i.formatCode,sourceLinked:!0===i.sourceLinked?1:0}));const r=Hh(Gh(e.fillColor),Vh(e.borderColor),Ra(e.borderWidth),La(e.borderDash),pa(e.borderCap),fa(e.borderCompound));void 0!==r&&n.push(r);const o=zh(Lh(e.fontSize),Ph(e.fontColor),Nh(e.bold),Fh(e.italic),Oh(e.underline),kh(e.strikethrough),Bh(e.fontFamily));return void 0!==o&&n.push(o),e.position&&n.push(Cn("c:dLblPos",{val:e.position})),n.push(Cn("c:showLegendKey",{val:!0===e.showLegendKey?1:0})),n.push(Cn("c:showVal",{val:e.showValue?1:0})),n.push(Cn("c:showCatName",{val:e.showCategoryName?1:0})),n.push(Cn("c:showSerName",{val:e.showSeriesName?1:0})),n.push(Cn("c:showPercent",{val:e.showPercent?1:0})),n.push(Cn("c:showBubbleSize",{val:0})),void 0!==e.separator&&n.push(xn("c:separator",void 0,mn(e.separator))),"pie"!==t&&"doughnut"!==t||!1!==e.showLeaderLines||n.push(Cn("c:showLeaderLines",{val:0})),xn("c:dLbls",void 0,n)}function Rh(e){if(!e)return;const t=e.formatCode;if("string"!==typeof t||0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function Lh(e){return Ol(e)}function Ph(e){return zl(e)}function Nh(e){return!0===e||!1!==e&&void 0}function Fh(e){return!0===e||!1!==e&&void 0}function Oh(e){return!0===e||!1!==e&&void 0}function kh(e){if(!0===e)return!0}function Bh(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function Gh(e){return zl(e)}function Vh(e){return zl(e)}function Hh(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function zh(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*ph),void 0!==n&&(a.b=n?1:0),void 0!==i&&(a.i=i?1:0),void 0!==r&&(a.u=r?"sng":"none"),!0===o&&(a.strike="sngStrike");const l=void 0!==t?xn("a:solidFill",void 0,[Aa(t)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}const Uh=new Set(["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"]),Wh=new Set(["linear","log","exp","power","poly","movingAvg"]),$h=new Set(["x","y"]),jh=new Set(["both","minus","plus"]),Xh=new Set(["cust","fixedVal","percentage","stdDev","stdErr"]),Yh=2,Kh=6,qh=2,Zh=100,Qh=400;function Jh(e){const t=Gn(e,"shape");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Uh.has(i)?i:void 0}function ep(e){if("string"===typeof e)return Uh.has(e)?e:void 0}function tp(e){const t=ep(e);if(void 0!==t)return Cn("c:shape",{val:t})}function np(e){return el(Gn(e,"bubbleSize"))}function ip(e){const t=[];for(const n of Vn(e)){if("dPt"!==n.local)continue;const e=Gn(n,"idx");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=Number.parseInt(i,10);if(!Number.isFinite(r)||r<0)continue;const o={idx:r},s=Gn(n,"explosion");if(s){const e=s.attrs.val;if("string"===typeof e){const t=Number.parseFloat(e);if(Number.isFinite(t)&&t>0){const e=Math.round(t);e>0&&(o.explosion=e)}}}const a=Gn(n,"bubble3D");if(a){const e=Qa(a);!0===e&&(o.bubble3D=!0)}const l=rp(n);void 0!==l&&(o.fillColor=l);const u=op(n);void 0!==u&&(o.borderColor=u);const c=sp(n);void 0!==c&&(o.borderWidth=c);const d=ap(n);void 0!==d&&(o.borderDash=d);const h=Ep(n);void 0!==h&&(o.marker=h),t.push(o)}return t.length>0?t:void 0}function rp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");return i?Ta(i.attrs.val):void 0}function op(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");return r?Ta(r.attrs.val):void 0}function sp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.w;if("string"!==typeof i)return;const r=Number.parseFloat(i);if(!Number.isFinite(r)||r<=0)return;const o=Math.round(r/12700*4)/4;return o<.25?.25:o>13.5?13.5:o}function ap(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"prstDash");if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ca.has(o)&&"solid"!==o?o:void 0}function lp(e,t){if(!e||0===e.length)return[];const n="pie"===t||"doughnut"===t||"pie3D"===t,i=[];for(const r of e){if(!Number.isFinite(r.idx)||r.idx<0)continue;const e=Math.floor(r.idx),t=[];t.push(Cn("c:idx",{val:e}));const o=kp(r.marker);if(o&&t.push(o),t.push(Cn("c:bubble3D",{val:!0===r.bubble3D?1:0})),n&&void 0!==r.explosion&&Number.isFinite(r.explosion)){const e=Math.max(0,Math.min(Qh,Math.round(r.explosion)));e>0&&t.push(Cn("c:explosion",{val:e}))}const s=Ta(r.fillColor),a=Ta(r.borderColor),l=Ra(r.borderWidth),u=La(r.borderDash);if(s||a||void 0!==l||void 0!==u){const e=[];if(s&&e.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:s})])),a||void 0!==l||void 0!==u){const t={};void 0!==l&&(t.w=Math.round(12700*l));const n=[];a&&n.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:a})])),void 0!==u&&n.push(Cn("a:prstDash",{val:u})),e.push(0===n.length?Cn("a:ln",t):xn("a:ln",Object.keys(t).length>0?t:void 0,n))}t.push(xn("c:spPr",void 0,e))}i.push(xn("c:dPt",void 0,t))}return i}function up(e){const t=[];for(const n of Vn(e)){if("trendline"!==n.local)continue;const e=Gn(n,"trendlineType");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=i.trim();if(!Wh.has(r))continue;const o={type:r},s=Gn(n,"name");if(s){let e="";for(const n of s.children)"string"===typeof n&&(e+=n);const t=e.trim();t.length>0&&(o.name=t)}const a=Gn(n,"order");if(a){const e=parseFloat(String(a.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=Yh&&t<=Kh&&(o.order=t)}}const l=Gn(n,"period");if(l){const e=parseFloat(String(l.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=qh&&t<=Zh&&(o.period=t)}}const u=Gn(n,"forward");if(u){const e=parseFloat(String(u.attrs.val??""));Number.isFinite(e)&&(o.forward=e)}const c=Gn(n,"backward");if(c){const e=parseFloat(String(c.attrs.val??""));Number.isFinite(e)&&(o.backward=e)}const d=Gn(n,"intercept");if(d){const e=parseFloat(String(d.attrs.val??""));Number.isFinite(e)&&(o.intercept=e)}const h=Gn(n,"dispEq");if(h){const e=Qa(h);!0===e&&(o.dispEquation=!0)}const p=Gn(n,"dispRSqr");if(p){const e=Qa(p);!0===e&&(o.dispRSquared=!0)}const f=Gn(n,"spPr");if(f){const e=Gn(f,"ln");if(e){const t=Gn(e,"solidFill");if(t){const e=Gn(t,"srgbClr");if(e){const t=Ta(e.attrs.val);t&&(o.lineColor=t)}}const n=e.attrs.w;if("string"===typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;o.lineWidth=t>=.25&&t<=13.5?t:t<.25?.25:13.5}}const i=Gn(e,"prstDash");if(i){const e=i.attrs.val;if("string"===typeof e){const t=e.trim();ca.has(t)&&"solid"!==t&&(o.lineDash=t)}}}}t.push(o)}return t.length>0?t:void 0}function cp(e){const t="string"===typeof e.type&&Wh.has(e.type)?e.type:void 0;if(void 0===t)return;const n=[];"string"===typeof e.name&&e.name.trim().length>0&&n.push(xn("c:name",void 0,mp(e.name)));const i=dp(e);if(i&&n.push(i),n.push(Cn("c:trendlineType",{val:t})),"poly"===t&&"number"===typeof e.order&&Number.isFinite(e.order)){const t=Math.max(Yh,Math.min(Kh,Math.round(e.order)));n.push(Cn("c:order",{val:t}))}if("movingAvg"===t&&"number"===typeof e.period&&Number.isFinite(e.period)){const t=Math.max(qh,Math.min(Zh,Math.round(e.period)));n.push(Cn("c:period",{val:t}))}return"number"===typeof e.forward&&Number.isFinite(e.forward)&&n.push(Cn("c:forward",{val:e.forward})),"number"===typeof e.backward&&Number.isFinite(e.backward)&&n.push(Cn("c:backward",{val:e.backward})),"number"===typeof e.intercept&&Number.isFinite(e.intercept)&&n.push(Cn("c:intercept",{val:e.intercept})),!0===e.dispRSquared&&n.push(Cn("c:dispRSqr",{val:1})),!0===e.dispEquation&&n.push(Cn("c:dispEq",{val:1})),xn("c:trendline",void 0,n)}function dp(e){const t=Ta(e.lineColor),n=Ra(e.lineWidth),i=La(e.lineDash);if(!t&&void 0===n&&void 0===i)return;const r={};void 0!==n&&(r.w=Math.round(12700*n));const o=[];t&&o.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:t})])),void 0!==i&&o.push(Cn("a:prstDash",{val:i}));const s=0===o.length?Cn("a:ln",r):xn("a:ln",Object.keys(r).length>0?r:void 0,o);return xn("c:spPr",void 0,[s])}function hp(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=cp(n);e&&t.push(e)}return t}function pp(e){const t=[];for(const n of Vn(e)){if("errBars"!==n.local)continue;const e=Gn(n,"errDir");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=i.trim();if(!$h.has(r))continue;const o=Gn(n,"errBarType");if(!o)continue;const s=o.attrs.val;if("string"!==typeof s)continue;const a=s.trim();if(!jh.has(a))continue;const l=Gn(n,"errValType");if(!l)continue;const u=l.attrs.val;if("string"!==typeof u)continue;const c=u.trim();if(!Xh.has(c))continue;const d={direction:r,type:a,valType:c},h=Gn(n,"val");if(h){const e=parseFloat(String(h.attrs.val??""));Number.isFinite(e)&&(d.value=e)}const p=Gn(n,"noEndCap");if(p){const e=Qa(p);!0===e&&(d.noEndCap=!0)}const f=Gn(n,"spPr");if(f){const e=Gn(f,"ln");if(e){const t=Gn(e,"solidFill");if(t){const e=Gn(t,"srgbClr");if(e){const t=Ta(e.attrs.val);t&&(d.lineColor=t)}}const n=e.attrs.w;if("string"===typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;d.lineWidth=t<.25?.25:t>13.5?13.5:t}}const i=Gn(e,"prstDash");if(i){const e=i.attrs.val;if("string"===typeof e){const t=e.trim();ca.has(t)&&"solid"!==t&&(d.lineDash=t)}}}}t.push(d)}return t.length>0?t:void 0}function fp(e){if(!$h.has(e.direction))return;if(!jh.has(e.type))return;if(!Xh.has(e.valType))return;const t=[Cn("c:errDir",{val:e.direction}),Cn("c:errBarType",{val:e.type}),Cn("c:errValType",{val:e.valType})];!0===e.noEndCap&&t.push(Cn("c:noEndCap",{val:1})),"stdErr"!==e.valType&&"cust"!==e.valType&&"number"===typeof e.value&&Number.isFinite(e.value)&&t.push(Cn("c:val",{val:e.value}));const n=Ta(e.lineColor),i=Ra(e.lineWidth),r=La(e.lineDash);if(n||void 0!==i||void 0!==r){const e={};void 0!==i&&(e.w=Math.round(12700*i));const o=[];n&&o.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:n})])),void 0!==r&&o.push(Cn("a:prstDash",{val:r}));const s=0===o.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,o);t.push(xn("c:spPr",void 0,[s]))}return xn("c:errBars",void 0,t)}function gp(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=fp(n);e&&t.push(e)}return t}function mp(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const vp=400,yp=new Set(["none","auto","circle","square","diamond","triangle","x","star","dot","dash","plus"]),Cp=2,wp=72;function xp(e,t){return e.includes("!")?e:`${bp(t)}!${e}`}function bp(e){return/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)?e:`'${e.replace(/'/g,"''")}'`}function _p(e,t,n){const i={kind:t,index:n},r=Dp(e);void 0!==r&&(i.name=r);const o=el(Gn(e,"val"))??el(Gn(e,"yVal"));void 0!==o&&(i.valuesRef=o);const s=el(Gn(e,"cat"))??el(Gn(e,"xVal"));void 0!==s&&(i.categoriesRef=s);const a=Mp(e);void 0!==a&&(i.color=a);const l=Gn(e,"dLbls");if(l){const e=vh(l);e&&(i.dataLabels=e)}if("line"===t||"line3D"===t||"scatter"===t){const t=Sp(e);void 0!==t&&(i.smooth=t);const n=Ip(e);void 0!==n&&(i.stroke=n);const r=Ep(e);void 0!==r&&(i.marker=r)}if("bar"===t||"bar3D"===t){const t=Ap(e);void 0!==t&&(i.invertIfNegative=t)}if("pie"===t||"pie3D"===t||"doughnut"===t||"ofPie"===t){const t=Tp(e);void 0!==t&&(i.explosion=t)}const u=ip(e);if(void 0!==u&&(i.dataPoints=u),"bar"===t||"bar3D"===t||"line"===t||"line3D"===t||"area"===t||"area3D"===t||"scatter"===t||"bubble"===t){const t=up(e);void 0!==t&&(i.trendlines=t);const n=pp(e);void 0!==n&&(i.errorBars=n)}if("bubble"===t){const t=np(e);void 0!==t&&(i.bubbleSizeRef=t)}if("bar3D"===t){const t=Jh(e);void 0!==t&&(i.shape3D=t)}return i}function Sp(e){const t=Gn(e,"smooth");if(!t)return;const n=Qa(t);return!0===n||void 0}function Ap(e){const t=Gn(e,"invertIfNegative");if(!t)return;const n=Qa(t);return!0===n||void 0}function Tp(e){const t=Gn(e,"explosion");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseFloat(n);if(!Number.isFinite(i)||i<0)return;const r=Math.round(i);return 0!==r?r:void 0}function Ep(e){const t=Gn(e,"marker");if(!t)return;const n={},i=Gn(t,"symbol");if(i){const e=i.attrs.val;"string"===typeof e&&yp.has(e)&&(n.symbol=e)}const r=Gn(t,"size");if(r){const e=r.attrs.val;if("string"===typeof e){const t=Number.parseInt(e,10);Number.isFinite(t)&&(n.size=t<2?2:t>72?72:t)}}const o=Gn(t,"spPr");if(o){const e=Gn(o,"solidFill");if(e){const t=Gn(e,"srgbClr"),i=t?.attrs.val;if("string"===typeof i){const e=i.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.fill=e)}}const t=Gn(o,"ln");if(t){const e=Gn(t,"solidFill");if(e){const t=Gn(e,"srgbClr"),i=t?.attrs.val;if("string"===typeof i){const e=i.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.line=e)}}}}return void 0!==n.symbol||void 0!==n.size||void 0!==n.fill||void 0!==n.line?n:void 0}function Dp(e){const t=Gn(e,"tx");if(!t)return;const n=Gn(t,"v");if(n){const e=qa(n).trim();if(e.length>0)return e}const i=Gn(t,"strRef");if(i){const e=Gn(i,"strCache");if(e)for(const n of Vn(e)){if("pt"!==n.local)continue;const e=Gn(n,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}const t=el(i);if(t)return t}}function Mp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i){const e=i.attrs.val;if("string"!==typeof e)return;const t=e.replace(/^#/,"").toUpperCase();return/^[0-9A-F]{6}$/.test(t)?t:void 0}const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Ip(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i={},r=n.attrs.w;if("string"===typeof r){const e=Number.parseFloat(r);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;i.width=t<.25?.25:t>13.5?13.5:t}}const o=Gn(n,"prstDash");if(o){const e=o.attrs.val;"string"===typeof e&&ua.has(e)&&(i.dash=e)}const s=n.attrs.cap;if("string"===typeof s){const e=s.trim();da.has(e)&&"flat"!==e&&(i.cap=e)}const a=n.attrs.cmpd;if("string"===typeof a){const e=a.trim();ha.has(e)&&"sng"!==e&&(i.compound=e)}return void 0!==i.dash||void 0!==i.width||void 0!==i.cap||void 0!==i.compound?i:void 0}function Rp(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<=0?void 0:t>vp?vp:t}function Lp(e,t,n,i,r){const o=[Cn("c:idx",{val:t}),Cn("c:order",{val:t})];e.name&&o.push(xn("c:tx",void 0,[xn("c:v",void 0,mn(e.name))]));const s=Np(e.color,r?.stroke);s&&o.push(s);const a=kp(r?.marker);a&&o.push(a),!0===r?.invertIfNegative&&o.push(Cn("c:invertIfNegative",{val:1}));const l=Rp(r?.explosion);void 0!==l&&o.push(Cn("c:explosion",{val:l}));const u=lp(r.dataPoints,r.chartType);for(const h of u)o.push(h);const c=Dh(e.dataLabels,r.dataLabels,r.chartType);if(c&&o.push(c),r.trendlines&&r.trendlines.length>0){const e="pie"===r.chartType||"doughnut"===r.chartType;if(!e){const e=hp(r.trendlines);for(const t of e)o.push(t)}}if(r.errorBars&&r.errorBars.length>0){const e="pie"===r.chartType||"doughnut"===r.chartType;if(!e){const e=gp(r.errorBars);for(const t of e)o.push(t)}}if(e.categories){const t=xp(e.categories,n);i?o.push(xn("c:xVal",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(t))])])):o.push(xn("c:cat",void 0,[xn("c:strRef",void 0,[xn("c:f",void 0,mn(t))])]))}const d=xp(e.values,n);if(i?o.push(xn("c:yVal",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(d))])])):o.push(xn("c:val",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(d))])])),void 0!==r?.smooth&&o.push(Cn("c:smooth",{val:r.smooth?1:0})),void 0!==r.shape3D){const e=tp(r.shape3D);e&&o.push(e)}if("string"===typeof r.bubbleSize&&r.bubbleSize.length>0){const e=xp(r.bubbleSize,n);o.push(xn("c:bubbleSize",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(e))])]))}return xn("c:ser",void 0,o)}function Pp(e){if(void 0!==e)return ua.has(e)?e:void 0}function Np(e,t){let n;if("string"===typeof e){const t=e.replace(/^#/,"").toUpperCase();n=/^[0-9A-F]{6}$/.test(t)?t:void 0}else void 0!==e&&(n=Sa(e));const i=Pp(t?.dash),r=Ra(t?.width),o=pa(t?.cap),s="flat"===o?void 0:o,a=fa(t?.compound),l="sng"===a?void 0:a;if(!n&&void 0===i&&void 0===r&&void 0===s&&void 0===l)return;const u=[];if(void 0!==n&&u.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==n||void 0!==i||void 0!==r||void 0!==s||void 0!==l){const e={};void 0!==r&&(e.w=Math.round(12700*r)),void 0!==s&&(e.cap=s),void 0!==l&&(e.cmpd=l);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==i&&t.push(Cn("a:prstDash",{val:i})),u.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,u)}function Fp(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<Cp?Cp:t>wp?wp:t}function Op(e){if(void 0!==e)return yp.has(e)?e:void 0}function kp(e){if(!e)return;const t=Op(e.symbol),n=Fp(e.size),i=Ta(e.fill),r=Ta(e.line);if(void 0===t&&void 0===n&&!i&&!r)return;const o=[];if(void 0!==t&&o.push(Cn("c:symbol",{val:t})),void 0!==n&&o.push(Cn("c:size",{val:n})),i||r){const e=[];i&&e.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:i})])),r&&e.push(xn("a:ln",void 0,[xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:r})])])),o.push(xn("c:spPr",void 0,e))}return xn("c:marker",void 0,o)}const Bp=new Set(["pie","pie3D","doughnut","ofPie"]),Gp=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]),Vp=50,Hp=10,zp=90,Up=new Set(["pie","doughnut"]),Wp=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]);function $p(e){return ja(e.plotAreaLayout)}function jp(e){let t;const n=[];for(const u of Vn(e))"catAx"===u.local?t??=u:"valAx"===u.local&&n.push(u);let i,r;t?(i=t,r=n[0]):(i=n[0],r=n[1]);const o=t?"between":"midCat",s=i?ec(i,o):void 0,a=r?ec(r,o):void 0;if(!s&&!a)return;const l={};return s&&(l.x=s),a&&(l.y=a),l}function Xp(e){return $a(e)}function Yp(e){return Ea(e)}function Kp(e){return Da(e)}function qp(e){return Ma(e)}function Zp(e,t){const n=Gn(e,"varyColors");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=Bp.has(t);let o;switch(i){case"1":case"true":o=!0;break;case"0":case"false":o=!1;break;default:return}return o!==r?o:void 0}function Qp(e){const t=Gn(e,"scatterStyle");if(!t)return;const n=t.attrs.val;return"string"===typeof n&&Gp.has(n)?n:void 0}function Jp(e){return!!Gn(e,"dropLines")||void 0}function ef(e){return!!Gn(e,"hiLowLines")||void 0}function tf(e){return!!Gn(e,"serLines")||void 0}function nf(e){const t=Gn(e,"marker");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function rf(e){const t=Gn(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"clustered":return"clustered";case"standard":return;default:return}}function of(e){const t=Gn(e,"holeSize");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<1||i>99)?i:void 0}function sf(e){const t=Gn(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>500)&&150!==i?i:void 0}function af(e){const t=Gn(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>500)&&150!==i?i:void 0}function lf(e){const t=Gn(e,"overlap");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<-100||i>100)&&0!==i?i:void 0}function uf(e){const t=Gn(e,"firstSliceAng");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>360)&&0!==i&&360!==i?i:void 0}function cf(e){const t=Gn(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"standard":return;default:return}}function df(e,t){const n=Ya($p(e)),i=[n??Cn("c:layout")],r={xAxisTitle:Qc(e.axes?.x?.title),yAxisTitle:Qc(e.axes?.y?.title),xAxisTitleRotation:Ld(e.axes?.x?.axisTitleRotation),yAxisTitleRotation:Ld(e.axes?.y?.axisTitleRotation),xAxisTitleFontSize:Pd(e.axes?.x?.axisTitleFontSize),yAxisTitleFontSize:Pd(e.axes?.y?.axisTitleFontSize),xAxisTitleBold:Nd(e.axes?.x?.axisTitleBold),yAxisTitleBold:Nd(e.axes?.y?.axisTitleBold),xAxisTitleItalic:Fd(e.axes?.x?.axisTitleItalic),yAxisTitleItalic:Fd(e.axes?.y?.axisTitleItalic),xAxisTitleColor:Od(e.axes?.x?.axisTitleColor),yAxisTitleColor:Od(e.axes?.y?.axisTitleColor),xAxisTitleStrike:kd(e.axes?.x?.axisTitleStrike),yAxisTitleStrike:kd(e.axes?.y?.axisTitleStrike),xAxisTitleUnderline:Bd(e.axes?.x?.axisTitleUnderline),yAxisTitleUnderline:Bd(e.axes?.y?.axisTitleUnderline),xAxisTitleFontFamily:Gd(e.axes?.x?.axisTitleFontFamily),yAxisTitleFontFamily:Gd(e.axes?.y?.axisTitleFontFamily),xAxisTitleOverlay:!0===e.axes?.x?.axisTitleOverlay,yAxisTitleOverlay:!0===e.axes?.y?.axisTitleOverlay,xAxisTitleLayout:ja(e.axes?.x?.axisTitleLayout),yAxisTitleLayout:ja(e.axes?.y?.axisTitleLayout),xAxisTitleFillColor:zl(e.axes?.x?.axisTitleFillColor),yAxisTitleFillColor:zl(e.axes?.y?.axisTitleFillColor),xAxisTitleBorderColor:zl(e.axes?.x?.axisTitleBorderColor),yAxisTitleBorderColor:zl(e.axes?.y?.axisTitleBorderColor),xAxisTitleBorderWidth:Ra(e.axes?.x?.axisTitleBorderWidth),yAxisTitleBorderWidth:Ra(e.axes?.y?.axisTitleBorderWidth),xAxisTitleBorderDash:La(e.axes?.x?.axisTitleBorderDash),yAxisTitleBorderDash:La(e.axes?.y?.axisTitleBorderDash),xAxisTitleBorderCap:pa(e.axes?.x?.axisTitleBorderCap),yAxisTitleBorderCap:pa(e.axes?.y?.axisTitleBorderCap),xAxisTitleBorderCompound:fa(e.axes?.x?.axisTitleBorderCompound),yAxisTitleBorderCompound:fa(e.axes?.y?.axisTitleBorderCompound),xGridlines:Jc(e.axes?.x?.gridlines),yGridlines:Jc(e.axes?.y?.gridlines),xScale:td(e.axes?.x?.scale),yScale:td(e.axes?.y?.scale),xNumFmt:nd(e.axes?.x?.numberFormat),yNumFmt:nd(e.axes?.y?.numberFormat),xMajorTickMark:Ad(e.axes?.x?.majorTickMark),yMajorTickMark:Ad(e.axes?.y?.majorTickMark),xMinorTickMark:Ad(e.axes?.x?.minorTickMark),yMinorTickMark:Ad(e.axes?.y?.minorTickMark),xTickLblPos:Td(e.axes?.x?.tickLblPos),yTickLblPos:Td(e.axes?.y?.tickLblPos),xLabelRotation:ad(e.axes?.x?.labelRotation),yLabelRotation:ad(e.axes?.y?.labelRotation),xLabelFontSize:ld(e.axes?.x?.labelFontSize),yLabelFontSize:ld(e.axes?.y?.labelFontSize),xLabelBold:ud(e.axes?.x?.labelBold),yLabelBold:ud(e.axes?.y?.labelBold),xLabelItalic:cd(e.axes?.x?.labelItalic),yLabelItalic:cd(e.axes?.y?.labelItalic),xLabelColor:dd(e.axes?.x?.labelColor),yLabelColor:dd(e.axes?.y?.labelColor),xLabelUnderline:hd(e.axes?.x?.labelUnderline),yLabelUnderline:hd(e.axes?.y?.labelUnderline),xLabelStrike:pd(e.axes?.x?.labelStrike),yLabelStrike:pd(e.axes?.y?.labelStrike),xLabelFontFamily:fd(e.axes?.x?.labelFontFamily),yLabelFontFamily:fd(e.axes?.y?.labelFontFamily),xReverse:!0===e.axes?.x?.reverse,yReverse:!0===e.axes?.y?.reverse,xTickLblSkip:id(e.axes?.x?.tickLblSkip),xTickMarkSkip:id(e.axes?.x?.tickMarkSkip),xLblOffset:rd(e.axes?.x?.lblOffset),xLblAlgn:od(e.axes?.x?.lblAlgn),xNoMultiLvlLbl:!0===e.axes?.x?.noMultiLvlLbl,xAuto:!1!==e.axes?.x?.auto,xHidden:sd(e.axes?.x?.hidden),yHidden:sd(e.axes?.y?.hidden),xCrosses:md(e.axes?.x?.crosses,e.axes?.x?.crossesAt),yCrosses:md(e.axes?.y?.crosses,e.axes?.y?.crossesAt),xDispUnits:xd(e.axes?.x?.dispUnits),yDispUnits:xd(e.axes?.y?.dispUnits),xCrossBetween:_d(e.axes?.x?.crossBetween),yCrossBetween:_d(e.axes?.y?.crossBetween)};switch(e.type){case"bar":case"column":i.push(gf(e,t)),i.push(...Md(e.type,r));break;case"line":i.push(yf(e,t)),i.push(...Md("column",r));break;case"area":i.push(xf(e,t)),i.push(...Md("column",r));break;case"pie":i.push(bf(e,t));break;case"doughnut":i.push(_f(e,t));break;case"scatter":i.push(Tf(e,t)),i.push(...Id(r));break;default:{const t=e.type;throw new Error(`Unsupported chart type: ${String(t)}`)}}const o=eh(e);void 0!==o&&i.push(ch(o));const s=hf(e);return void 0!==s&&i.push(s),xn("c:plotArea",void 0,i)}function hf(e){const t=pf(e.plotAreaFillColor),n=ff(e.plotAreaBorderColor),i=Ra(e.plotAreaBorderWidth),r=La(e.plotAreaBorderDash),o=pa(e.plotAreaBorderCap),s=fa(e.plotAreaBorderCompound);if(void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a=[];if(void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==n||void 0!==i||void 0!==r||void 0!==o||void 0!==s){const e={};void 0!==i&&(e.w=Math.round(12700*i)),void 0!==o&&(e.cap=o),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==r&&t.push(Cn("a:prstDash",{val:r})),a.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,a)}function pf(e){return zl(e)}function ff(e){return zl(e)}function gf(e,t){const n=e.barGrouping??"clustered",i="bar"===e.type?"bar":"col",r="percentStacked"===n||"stacked"===n,o=[Cn("c:barDir",{val:i}),Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let d=0;d<e.series.length;d++)o.push(Lp(e.series[d],d,t,!1,{chartType:e.type,dataLabels:e.dataLabels,invertIfNegative:!0===e.series[d].invertIfNegative,dataPoints:e.series[d].dataPoints,trendlines:e.series[d].trendlines,errorBars:e.series[d].errorBars}));const s=Mh(e);s&&o.push(s);const a=mf(e.gapWidth),l=vf(e.overlap),u=a??(r?void 0:150);void 0!==u&&o.push(Cn("c:gapWidth",{val:u}));const c=l??(r?100:void 0);return void 0!==c&&o.push(Cn("c:overlap",{val:c})),!0===e.serLines&&o.push(xn("c:serLines",void 0,[])),o.push(Cn("c:axId",{val:Uc})),o.push(Cn("c:axId",{val:Wc})),xn("c:barChart",void 0,o)}function mf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0?0:t>500?500:t}function vf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<-100?-100:t>100?100:t}function yf(e,t){const n=e.lineGrouping??"standard",i=[Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let o=0;o<e.series.length;o++){const n=Lp(e.series[o],o,t,!1,{chartType:e.type,smooth:!0===e.series[o].smooth,dataLabels:e.dataLabels,stroke:e.series[o].stroke,marker:e.series[o].marker,dataPoints:e.series[o].dataPoints,trendlines:e.series[o].trendlines,errorBars:e.series[o].errorBars});i.push(n)}const r=Mh(e);return r&&i.push(r),!0===e.dropLines&&i.push(xn("c:dropLines",void 0,[])),!0===e.hiLowLines&&i.push(xn("c:hiLowLines",void 0,[])),!0===e.upDownBars&&i.push(Cf(e.upDownBarsGapWidth)),i.push(Cn("c:marker",{val:!1===e.showLineMarkers?0:1})),i.push(Cn("c:axId",{val:Uc})),i.push(Cn("c:axId",{val:Wc})),xn("c:lineChart",void 0,i)}function Cf(e){const t=wf(e)??150;return xn("c:upDownBars",void 0,[Cn("c:gapWidth",{val:t})])}function wf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>500?void 0:t}function xf(e,t){const n=e.areaGrouping??"standard",i=[Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let o=0;o<e.series.length;o++)i.push(Lp(e.series[o],o,t,!1,{chartType:e.type,dataLabels:e.dataLabels,dataPoints:e.series[o].dataPoints,trendlines:e.series[o].trendlines,errorBars:e.series[o].errorBars}));const r=Mh(e);return r&&i.push(r),!0===e.dropLines&&i.push(xn("c:dropLines",void 0,[])),i.push(Cn("c:axId",{val:Uc})),i.push(Cn("c:axId",{val:Wc})),xn("c:areaChart",void 0,i)}function bf(e,t){const n=[Cn("c:varyColors",{val:Ef(e)?1:0})];e.series.length>0&&n.push(Lp(e.series[0],0,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[0].explosion,dataPoints:e.series[0].dataPoints}));const i=Mh(e);i&&n.push(i);const r=Sf(e.firstSliceAng);return void 0!==r&&n.push(Cn("c:firstSliceAng",{val:r})),xn("c:pieChart",void 0,n)}function _f(e,t){const n=[Cn("c:varyColors",{val:Ef(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Lp(e.series[r],r,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[r].explosion,dataPoints:e.series[r].dataPoints}));const i=Mh(e);return i&&n.push(i),n.push(Cn("c:firstSliceAng",{val:Sf(e.firstSliceAng)??0})),n.push(Cn("c:holeSize",{val:Af(e.holeSize)})),xn("c:doughnutChart",void 0,n)}function Sf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);let n=t%360;return n<0&&(n+=360),0!==n?n:void 0}function Af(e){if(void 0===e||!Number.isFinite(e))return Vp;const t=Math.round(e);return t<Hp?Hp:t>zp?zp:t}function Tf(e,t){const n=[Cn("c:scatterStyle",{val:Df(e)}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Lp(e.series[r],r,t,!0,{chartType:e.type,smooth:!0===e.series[r].smooth||void 0,dataLabels:e.dataLabels,stroke:e.series[r].stroke,marker:e.series[r].marker,dataPoints:e.series[r].dataPoints,trendlines:e.series[r].trendlines,errorBars:e.series[r].errorBars}));const i=Mh(e);return i&&n.push(i),n.push(Cn("c:axId",{val:$c})),n.push(Cn("c:axId",{val:jc})),xn("c:scatterChart",void 0,n)}function Ef(e){return"boolean"===typeof e.varyColors?e.varyColors:Up.has(e.type)}function Df(e){const t=e.scatterStyle;return t&&Wp.has(t)?t:"lineMarker"}const Mf="http://schemas.openxmlformats.org/drawingml/2006/chart",If="http://schemas.openxmlformats.org/drawingml/2006/main",Rf="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Lf="http://schemas.openxmlformats.org/package/2006/relationships";function Pf(e,t){const n=e.showTitle??Boolean(e.title),i=Su(e),r=[];n&&e.title&&r.push(Ll(e.title,nu(e),Fl(e),kl(e),Gl(e),Hl(e),Ul(e),Zl(e),Jl(e),tu(e),iu(e),Wl(e),$l(e),jl(e),Xl(e),Yl(e),Kl(e))),r.push(Cn("c:autoTitleDeleted",{val:Zc(e)?1:0}));const o=Ga(e.view3D);void 0!==o&&r.push(o);const s=Ha(e.floorThickness);void 0!==s&&r.push(s);const a=za(e.sideWallThickness);void 0!==a&&r.push(a);const l=Ua(e.backWallThickness);void 0!==l&&r.push(l),r.push(df(e,t)),i&&r.push(Au(i,ku(e),Ou(e),Du(e),Mu(e),Iu(e),Ru(e),Lu(e),Pu(e),Fu(e),Bu(e),Gu(e),Vu(e),Hu(e),zu(e),pa(e.legendBorderCap),fa(e.legendBorderCompound))),r.push(Cn("c:plotVisOnly",{val:Hf(e)?1:0})),r.push(Cn("c:dispBlanksAs",{val:Vf(e)})),r.push(Cn("c:showDLblsOverMax",{val:zf(e)?1:0}));const u=xn("c:chart",void 0,r),c=[];$f(e)&&c.push(Cn("c:date1904",{val:1}));const d=jf(e);void 0!==d&&c.push(Cn("c:lang",{val:d})),c.push(Cn("c:roundedCorners",{val:Uf(e)?1:0}));const h=Wf(e);void 0!==h&&c.push(Cn("c:style",{val:h}));const p=kf(e);void 0!==p&&c.push(Bf(p)),c.push(u);const f=Nf(e);void 0!==f&&c.push(f);const g=_n("c:chartSpace",{"xmlns:c":Mf,"xmlns:a":If,"xmlns:r":Rf},c),m=_n("Relationships",{xmlns:Lf},[]);return{chartXml:g,chartRels:m}}function Nf(e){const t=Ff(e.chartSpaceFillColor),n=Of(e.chartSpaceBorderColor),i=Ra(e.chartSpaceBorderWidth),r=La(e.chartSpaceBorderDash),o=pa(e.chartSpaceBorderCap),s=fa(e.chartSpaceBorderCompound);if(void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a=[];if(void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==n||void 0!==i||void 0!==r||void 0!==o||void 0!==s){const e={};void 0!==i&&(e.w=Math.round(12700*i)),void 0!==o&&(e.cap=o),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==r&&t.push(Cn("a:prstDash",{val:r})),a.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,a)}function Ff(e){return zl(e)}function Of(e){return zl(e)}function kf(e){const t=e.protection;if(void 0!==t&&!1!==t)return!0===t?{chartObject:!1,data:!1,formatting:!1,selection:!1,userInterface:!1}:{chartObject:!0===t.chartObject,data:!0===t.data,formatting:!0===t.formatting,selection:!0===t.selection,userInterface:!0===t.userInterface}}function Bf(e){return xn("c:protection",void 0,[Cn("c:chartObject",{val:e.chartObject?1:0}),Cn("c:data",{val:e.data?1:0}),Cn("c:formatting",{val:e.formatting?1:0}),Cn("c:selection",{val:e.selection?1:0}),Cn("c:userInterface",{val:e.userInterface?1:0})])}const Gf=new Set(["gap","zero","span"]);function Vf(e){const t=e.dispBlanksAs;return t&&Gf.has(t)?t:"gap"}function Hf(e){return"boolean"!==typeof e.plotVisOnly||e.plotVisOnly}function zf(e){return"boolean"!==typeof e.showDLblsOverMax||e.showDLblsOverMax}function Uf(e){return"boolean"===typeof e.roundedCorners&&e.roundedCorners}function Wf(e){const t=e.style;if("number"===typeof t&&Number.isInteger(t)&&!(t<1||t>48))return t}function $f(e){return!0===e.date1904}function jf(e){const t=e.lang;if("string"===typeof t&&/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(t))return t}const Xf=[208,207,17,224,161,177,26,225],Yf=4294967294,Kf=4294967295,qf=4294967293,Zf=4096,Qf=64;function Jf(e){if(e.length<512)throw new yt("CFB: file too small");for(let R=0;R<Xf.length;R++)if(e[R]!==Xf[R])throw new yt("CFB: bad signature");const t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(30,!0),i=1<<n,r=t.getUint16(32,!0),o=1<<r,s=t.getUint32(44,!0),a=t.getUint32(48,!0),l=t.getUint32(56,!0),u=t.getUint32(60,!0),c=t.getUint32(64,!0),d=t.getUint32(68,!0),h=t.getUint32(72,!0),p=e=>(e+1)*i,f=t=>{const n=p(t);if(n+i>e.length)throw new yt("CFB: sector out of range");return e.subarray(n,n+i)},g=[];for(let R=0;R<109&&g.length<s;R++){const e=t.getUint32(76+4*R,!0);if(e===Kf||e===Yf)break;g.push(e)}const m=Math.floor(e.length/i)+1,v=Math.min(h,m);let y=d,C=0;while(y!==Yf&&y!==Kf&&v>0&&C++<v+1){const e=f(y),t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=i/4-1;for(let i=0;i<n&&g.length<s;i++){const e=t.getUint32(4*i,!0);e!==Kf&&e!==Yf&&g.push(e)}y=t.getUint32(i-4,!0)}const w=[];for(const R of g){const e=f(R),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<i/4;n++)w.push(t.getUint32(4*n,!0))}const x=e=>{const t=[];let n=e,i=0;while(n!==Yf&&n!==Kf&&i++<w.length+1)t.push(n),n=w[n]??Yf;return t},b=(e,t)=>{const n=x(e),r=new Uint8Array(n.length*i);let o=0;for(const s of n)r.set(f(s),o),o+=i;return t>=0?r.subarray(0,t):r},_=b(a,-1),S=new DataView(_.buffer,_.byteOffset,_.byteLength),A=[];for(let R=0;R+128<=_.length;R+=128){const e=_[R+66];if(0===e)continue;const t=S.getUint16(R+64,!0);let n="";for(let o=0;o+1<t;o+=2){const e=S.getUint16(R+o,!0);if(0===e)break;n+=String.fromCharCode(e)}const i=S.getUint32(R+116,!0),r=S.getUint32(R+120,!0);A.push({name:n,type:e,startSector:i,size:r})}const T=A.find(e=>5===e.type);if(!T)throw new yt("CFB: missing root entry");const E=b(T.startSector,T.size),D=[];if(c>0&&u!==Yf){const e=b(u,c*i),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<e.length/4;n++)D.push(t.getUint32(4*n,!0))}const M=(e,t)=>{if(t<0||t>E.length)throw new yt("CFB: mini stream size out of range");const n=new Uint8Array(t);let i=e,r=0,s=0;while(i!==Yf&&i!==Kf&&r<t&&s++<D.length+1){const e=i*o,s=Math.min(o,t-r);n.set(E.subarray(e,e+s),r),r+=s,i=D[i]??Yf}return n},I=new Map;for(const R of A){if(2!==R.type)continue;const e=l||Zf;I.set(R.name,R.size<e?M(R.startSector,R.size):b(R.startSector,R.size))}return I}function eg(e){const t=512,n=t/4,i=[],r=[],o=[],s=new Map;let a=0;for(const R of e)if(R.data.length<Zf){s.set(R.name,{mini:!0}),r.push(a);const e=tg(R.data,Qf);i.push(e),a+=e.length/Qf}else s.set(R.name,{mini:!1}),o.push({name:R.name,data:R.data});const l=ng(i);let u=0;const c=e=>{const n=Math.max(1,Math.ceil(e/t)),i=u;return u+=n,{startSector:i,sectorCount:n}},d=o.map(e=>({name:e.name,data:e.data,region:c(e.data.length)})),h=l.length>0?c(l.length):null,p=new Uint8Array(Math.ceil(Math.max(a,0)/n)*t);{const t=new DataView(p.buffer);for(let e=0;e<p.length/4;e++)t.setUint32(4*e,Kf,!0);let n=0,i=0;for(const o of e){if(o.data.length>=Zf)continue;const e=tg(o.data,Qf).length/Qf;for(let n=0;n<e;n++){const o=r[i]+n;t.setUint32(4*o,n===e-1?Yf:o+1,!0)}i++,n+=e}}const f=a>0?c(p.length):null,g=1+e.length,m=Math.ceil(g/(t/128))*t,v=c(m),y=u;let C=1;for(;;){const e=y+C,t=Math.ceil(e/n);if(t<=C)break;C=t}const w={startSector:u,sectorCount:C};u+=C;const x=u,b=new Uint32Array(C*n);b.fill(Kf);const _=e=>{for(let t=0;t<e.sectorCount;t++)b[e.startSector+t]=t===e.sectorCount-1?Yf:e.startSector+t+1};for(const R of d)_(R.region);h&&_(h),f&&_(f),_(v);for(let R=0;R<C;R++)b[w.startSector+R]=qf;const S=new Uint8Array(m),A=new DataView(S.buffer),T=(e,t,n,i,r,o,s,a,l)=>{const u=128*e;for(let c=0;c<t.length;c++)A.setUint16(u+2*c,t.charCodeAt(c),!0);A.setUint16(u+64,2*(t.length+1),!0),S[u+66]=n,S[u+67]=i,A.setUint32(u+68,r,!0),A.setUint32(u+72,o,!0),A.setUint32(u+76,s,!0),A.setUint32(u+116,a,!0),A.setUint32(u+120,l,!0)};for(let R=0;R<m/128;R++)A.setUint32(128*R+68,Kf,!0),A.setUint32(128*R+72,Kf,!0),A.setUint32(128*R+76,Kf,!0);T(0,"Root Entry",5,1,Kf,Kf,e.length>0?1:Kf,h?h.startSector:Yf,l.length);for(let R=0;R<e.length;R++){const t=e[R],n=s.get(t.name),i=R+1,r=R+1<e.length?i+1:Kf;let o;if(n.mini){let t=0;for(let n=0;n<R;n++){const i=e[n];i.data.length<Zf&&(t+=tg(i.data,Qf).length/Qf)}o=t}else{const e=d.find(e=>e.name===t.name);o=e.region.startSector}T(i,t.name,2,1,Kf,r,Kf,o,t.data.length)}const E=new Uint8Array((x+1)*t),D=new DataView(E.buffer);for(let R=0;R<Xf.length;R++)E[R]=Xf[R];D.setUint16(24,62,!0),D.setUint16(26,3,!0),D.setUint16(28,65534,!0),D.setUint16(30,9,!0),D.setUint16(32,6,!0),D.setUint32(44,C,!0),D.setUint32(48,v.startSector,!0),D.setUint32(56,Zf,!0),D.setUint32(60,f?f.startSector:Yf,!0),D.setUint32(64,f?f.sectorCount:0,!0),D.setUint32(68,Yf,!0),D.setUint32(72,0,!0);for(let R=0;R<109;R++)D.setUint32(76+4*R,R<C?w.startSector+R:Kf,!0);const M=e=>(e+1)*t,I=(e,t)=>{E.set(t,M(e.startSector))};for(const R of d)I(R.region,R.data);h&&I(h,l),f&&I(f,p),I(v,S);{const e=M(w.startSector),n=new DataView(E.buffer,e,C*t);for(let t=0;t<b.length;t++)n.setUint32(4*t,b[t],!0)}return E}function tg(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function ng(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}const ig=new Uint8Array([254,167,210,118,59,75,158,121]),rg=new Uint8Array([215,170,15,109,48,97,52,78]),og=new Uint8Array([20,110,11,231,171,172,208,214]),sg=new Uint8Array([95,178,173,1,12,185,225,246]),ag=new Uint8Array([160,103,127,2,178,44,132,51]),lg=4096,ug=new Uint8Array(16);async function cg(e,t,n=Mt){let i;try{i=Jf(e)}catch(h){throw new _t("Not a valid encrypted workbook container.",{cause:h})}const r=i.get("EncryptionInfo"),o=i.get("EncryptedPackage");if(!r||!o)throw new _t("Encrypted workbook missing EncryptionInfo/EncryptedPackage.");const s=r[0]|r[1]<<8,a=r[2]|r[3]<<8;if(4!==s||4!==a)throw new _t(`Unsupported encryption (version ${s}.${a}); only ECMA-376 Agile is supported.`);const l=new TextDecoder("utf-8").decode(r.subarray(8)),u=Og(l,n),c=Fg(l),d=await vg(t,u);if(!d)throw new _t("Incorrect password.");return await dg(l,o,d,c),wg(o,d,c)}async function dg(e,t,n,i){const r=Rg(e,"dataIntegrity");if(!r)return;if("SHA-512"!==i.hashAlgorithm)return;const o=Wg(Lg(r,"encryptedHmacKey")),s=Wg(Lg(r,"encryptedHmacValue"));if(0===o.length||0===s.length)return;const a=await yg(i.saltValue,sg,i.hashAlgorithm,i.blockSize),l=await yg(i.saltValue,ag,i.hashAlgorithm,i.blockSize),u=await Dg(n,a,o),c=await Dg(n,l,s),d=await Ig(u,t),h=Math.min(d.length,c.length);let p=0===d.length?1:0;for(let f=0;f<h;f++)p|=d[f]^c[f];if(0!==p)throw new _t("Encrypted package failed integrity check (HMAC mismatch).")}async function hg(e,t,n){const i=n?.spinCount??1e5,r="SHA-512",o=32,s=16,a=64,l=Bg(16),u=Bg(16),c=Bg(o),d=await fg(t,u,i,r),h=Bg(s),p=await _g(r,h),f=await gg(d,ig,o,r),g=await gg(d,rg,o,r),m=await gg(d,og,o,r),v=await Mg(f,u,h),y=await Mg(g,u,Gg(p,s)),C=await Mg(m,u,c),w=await xg(e,c,{saltValue:l,hashAlgorithm:r,keyBytes:o,blockSize:s}),x=Bg(a),b=await yg(l,sg,r,s),_=await Mg(c,b,Gg(x,s)),S=await Ig(x,w),A=await yg(l,ag,r,s),T=await Mg(c,A,Gg(S,s)),E=kg({keyDataSalt:l,pwSalt:u,spinCount:i,keyBits:8*o,hashSize:a,blockSize:s,encryptedVerifierHashInput:v,encryptedVerifierHashValue:y,encryptedKeyValue:C,encryptedHmacKey:_,encryptedHmacValue:T}),D=new Uint8Array(8),M=new DataView(D.buffer);M.setUint16(0,4,!0),M.setUint16(2,4,!0),M.setUint32(4,64,!0);const I=Hg([D,(new TextEncoder).encode(E)]);return eg([{name:"EncryptionInfo",data:I},{name:"EncryptedPackage",data:w}])}function pg(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer);for(let i=0;i<e.length;i++)n.setUint16(2*i,e.charCodeAt(i),!0);return t}async function fg(e,t,n,i){let r=await _g(i,Hg([t,pg(e)]));const o=new Uint8Array(4),s=new DataView(o.buffer);for(let a=0;a<n;a++)s.setUint32(0,a,!0),r=await _g(i,Hg([o,r]));return r}async function gg(e,t,n,i){const r=await _g(i,Hg([e,t]));return mg(r,n)}function mg(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}async function vg(e,t){const n=await fg(e,t.saltValue,t.spinCount,t.hashAlgorithm),i=await gg(n,ig,t.keyBytes,t.hashAlgorithm),r=await gg(n,rg,t.keyBytes,t.hashAlgorithm),o=await gg(n,og,t.keyBytes,t.hashAlgorithm),s=await Dg(i,t.saltValue,t.encryptedVerifierHashInput),a=await Dg(r,t.saltValue,t.encryptedVerifierHashValue),l=await _g(t.hashAlgorithm,s),u=Math.min(l.length,a.length);if(!Vg(l.subarray(0,u),a.subarray(0,u)))return null;const c=await Dg(o,t.saltValue,t.encryptedKeyValue);return c.subarray(0,t.keyBytes)}async function yg(e,t,n,i){const r=await _g(n,Hg([e,t]));return Cg(r,i)}function Cg(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}async function wg(e,t,n){const i=Number(new DataView(e.buffer,e.byteOffset,8).getBigUint64(0,!0)),r=e.subarray(8),o=new Uint8Array(Math.ceil(r.length/lg)*lg),s=new Uint8Array(4),a=new DataView(s.buffer);let l=0,u=0;while(l<r.length){const e=r.subarray(l,Math.min(l+lg,r.length));a.setUint32(0,u,!0);const i=Cg(await _g(n.hashAlgorithm,Hg([n.saltValue,s])),n.blockSize),c=await Dg(t,i,e);o.set(c,l),l+=lg,u++}return o.subarray(0,i)}async function xg(e,t,n){const i=new Uint8Array(8);new DataView(i.buffer).setBigUint64(0,BigInt(e.length),!0);const r=Gg(e,lg),o=new Uint8Array(r.length),s=new Uint8Array(4),a=new DataView(s.buffer);let l=0,u=0;while(l<r.length){const e=r.subarray(l,l+lg);a.setUint32(0,u,!0);const i=Cg(await _g(n.hashAlgorithm,Hg([n.saltValue,s])),n.blockSize),c=await Mg(t,i,e);o.set(c,l),l+=lg,u++}return Hg([i,o])}const bg=e=>e;async function _g(e,t){return new Uint8Array(await crypto.subtle.digest(e,bg(t)))}async function Sg(e){return crypto.subtle.importKey("raw",bg(e),{name:"AES-CBC"},!1,["encrypt","decrypt"])}async function Ag(e,t){const n=new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:bg(ug)},e,bg(t)));return n.subarray(0,16)}async function Tg(e,t,n){if(0===n.length)return new Uint8Array(0);const i=n.subarray(n.length-16),r=new Uint8Array(16);for(let l=0;l<16;l++)r[l]=16^i[l];const o=await Ag(e,r),s=Hg([n,o]),a=new Uint8Array(await crypto.subtle.decrypt({name:"AES-CBC",iv:bg(t)},e,bg(s)));return a.subarray(0,n.length)}async function Eg(e,t,n){if(0===n.length)return new Uint8Array(0);const i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:bg(t)},e,bg(n)));return i.subarray(0,n.length)}async function Dg(e,t,n){return Tg(await Sg(e),t,n)}async function Mg(e,t,n){return Eg(await Sg(e),t,n)}async function Ig(e,t){const n=await crypto.subtle.importKey("raw",bg(e),{name:"HMAC",hash:"SHA-512"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",n,bg(t)))}function Rg(e,t){const n=new RegExp(`<(?:\\w+:)?${t}\\b[^>]*?/?>`),i=n.exec(e);return i?i[0]:null}function Lg(e,t){const n=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return n?n[1]:""}const Pg={SHA512:"SHA-512",SHA384:"SHA-384",SHA256:"SHA-256",SHA1:"SHA-1"};function Ng(e){return Pg[e]??"SHA-512"}function Fg(e){const t=Rg(e,"keyData");if(!t)throw new _t("EncryptionInfo missing keyData.");return{saltValue:Wg(Lg(t,"saltValue")),hashAlgorithm:Ng(Lg(t,"hashAlgorithm")),keyBytes:parseInt(Lg(t,"keyBits"),10)/8,blockSize:parseInt(Lg(t,"blockSize"),10)}}function Og(e,t){const n=Rg(e,"encryptedKey");if(!n)throw new _t("EncryptionInfo missing encryptedKey.");const i=parseInt(Lg(n,"spinCount"),10);if(!Number.isFinite(i)||i<0)throw new _t("EncryptionInfo has an invalid spinCount.");if(i>t)throw new _t(`EncryptionInfo spinCount ${i} exceeds the maximum of ${t}. Raise \`maxSpinCount\` to agree to spend that time.`);return{saltValue:Wg(Lg(n,"saltValue")),hashAlgorithm:Ng(Lg(n,"hashAlgorithm")),keyBytes:parseInt(Lg(n,"keyBits"),10)/8,blockSize:parseInt(Lg(n,"blockSize"),10),spinCount:i,encryptedVerifierHashInput:Wg(Lg(n,"encryptedVerifierHashInput")),encryptedVerifierHashValue:Wg(Lg(n,"encryptedVerifierHashValue")),encryptedKeyValue:Wg(Lg(n,"encryptedKeyValue"))}}function kg(e){const t=Ug;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><keyData saltSize="${e.keyDataSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${t(e.encryptedHmacKey)}" encryptedHmacValue="${t(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" saltSize="${e.pwSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.pwSalt)}" encryptedVerifierHashInput="${t(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${t(e.encryptedVerifierHashValue)}" encryptedKeyValue="${t(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`}function Bg(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function Gg(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function Vg(e,t){if(e.length!==t.length)return!1;let n=0;for(let i=0;i<e.length;i++)n|=e[i]^t[i];return 0===n}function Hg(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}const zg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ug(e){let t="",n=0;for(;n+2<e.length;n+=3){const i=e[n]<<16|e[n+1]<<8|e[n+2];t+=zg[i>>18&63]+zg[i>>12&63]+zg[i>>6&63]+zg[63&i]}if(n<e.length){const i=e.length-n;if(1===i){const i=e[n]<<16;t+=zg[i>>18&63]+zg[i>>12&63]+"=="}else{const i=e[n]<<16|e[n+1]<<8;t+=zg[i>>18&63]+zg[i>>12&63]+zg[i>>6&63]+"="}}return t}function Wg(e){const t=e.replace(/[^A-Za-z0-9+/]/g,""),n=Math.floor(3*t.length/4),i=new Uint8Array(n);let r=0,o=0,s=0;for(let a=0;a<t.length;a++)o=o<<6|zg.indexOf(t[a]),r+=6,r>=8&&(r-=8,i[s++]=o>>r&255);return i.subarray(0,s)}const $g="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function jg(e,t){const n=[];for(const[s,a]of e){if(!a.comment)continue;const[e,t]=s.split(","),i=parseInt(e,10),r=parseInt(t,10),o=os(i,r),l=a.comment.author??"",u=a.comment.text;n.push({ref:o,row:i,col:r,author:l,text:u})}if(0===n.length)return null;n.sort((e,t)=>e.row-t.row||e.col-t.col);const i=new Map;for(const s of n)i.has(s.author)||i.set(s.author,i.size);const r=Xg(n,i),o=Yg(n,t);return{commentsXml:r,vmlXml:o,comments:n}}function Xg(e,t){const n=[];for(const[s]of t)n.push(xn("author",void 0,mn(s)));const i=xn("authors",void 0,n),r=[];for(const s of e){const e=t.get(s.author)??0,n=xn("text",void 0,[xn("r",void 0,[xn("t",void 0,mn(s.text))])]);r.push(xn("comment",{ref:s.ref,authorId:e},[n]))}const o=xn("commentList",void 0,r);return _n("comments",{xmlns:$g},[i,o])}function Yg(e,t){const n=[];n.push('<xml xmlns:v="urn:schemas-microsoft-com:vml"',' xmlns:o="urn:schemas-microsoft-com:office:office"',' xmlns:x="urn:schemas-microsoft-com:office:excel">'),n.push('<o:shapelayout v:ext="edit">',`<o:idmap v:ext="edit" data="${t+1}"/>`,"</o:shapelayout>"),n.push('<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>");const i=1024*(t+1)+1;for(let r=0;r<e.length;r++){const t=e[r],o=i+r,s=t.col+1,a=t.row,l=s+2,u=a+4,c=48*(t.col+1),d=15*t.row;n.push(`<v:shape id="_x0000_s${o}" type="#_x0000_t202"`,` style="position:absolute;margin-left:${c}pt;margin-top:${d}pt;`,`width:108pt;height:59.25pt;z-index:${r+1};visibility:hidden"`,' fillcolor="#ffffe1" o:insetmode="auto">','<v:fill color2="#ffffe1"/>','<v:shadow on="t" 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:Anchor>${s},15,${a},2,${l},31,${u},4</x:Anchor>`,"<x:AutoFill>False</x:AutoFill>",`<x:Row>${t.row}</x:Row>`,`<x:Column>${t.col}</x:Column>`,"</x:ClientData>","</v:shape>")}return n.push("</xml>"),n.join("")}const Kg="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function qg(e,t,n){const i=e.displayName??e.name,r=e.range??"",o=!1!==e.showAutoFilter,s=!0===e.showTotalRow,a={xmlns:Kg,id:t,name:e.name,displayName:i,ref:r};s?a["totalsRowCount"]=1:a["totalsRowShown"]=0;const l=[];if(o){const e=s?Zg(r):r;l.push(Cn("autoFilter",{ref:e}))}const u=[];for(let f=0;f<e.columns.length;f++){const t=e.columns[f],n={id:f+1,name:t.name};if(s&&t.totalFunction&&(n["totalsRowFunction"]=t.totalFunction),s&&t.totalLabel&&(n["totalsRowLabel"]=t.totalLabel),s&&"custom"===t.totalFunction&&t.totalFormula){const e=xn("totalsRowFormula",void 0,mn(t.totalFormula));u.push(xn("tableColumn",n,[e]))}else u.push(Cn("tableColumn",n))}l.push(xn("tableColumns",{count:e.columns.length},u));const c=e.style??"TableStyleMedium2",d=!1!==e.showRowStripes,h=!0===e.showColumnStripes;l.push(Cn("tableStyleInfo",{name:c,showFirstColumn:0,showLastColumn:0,showRowStripes:d?1:0,showColumnStripes:h?1:0}));const p=_n("table",a,l);return{tableXml:p,tableId:t}}function Zg(e){const t=e.indexOf(":");if(-1===t)return e;const n=e.slice(t+1);let i=n.length;while(i>0&&n.charCodeAt(i-1)>=48&&n.charCodeAt(i-1)<=57)i--;const r=n.slice(0,i),o=parseInt(n.slice(i),10);return isNaN(o)||o<=1?e:`${e.slice(0,t+1)}${r}${o-1}`}function Qg(e,t){const n=t?[...t]:[];for(const i of e){const e=i.pageSetup;if(!e)continue;e.printArea&&n.push({name:"_xlnm.Print_Area",range:`${i.name}!${e.printArea}`,scope:i.name});const t=[];e.printTitlesRow&&t.push(`${i.name}!${e.printTitlesRow}`),e.printTitlesColumn&&t.push(`${i.name}!${e.printTitlesColumn}`),t.length>0&&n.push({name:"_xlnm.Print_Titles",range:t.join(","),scope:i.name})}return n}function Jg(e,t){const n=e.columns.length;let i=0;if(t.rows)i=t.rows.length;else if(t.data){const e=t.columns?.some(e=>e.header);i=t.data.length+(e?1:0)}e.showTotalRow&&(i+=1),i<1&&(i=1);const r=is(0),o=is(n-1);return`${r}1:${o}${i}`}const em="http://schemas.openxmlformats.org/spreadsheetml/2006/main",tm="http://schemas.openxmlformats.org/officeDocument/2006/relationships",nm="http://schemas.openxmlformats.org/package/2006/relationships",im="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",rm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";function om(e,t,n,i=1){const r=am(e,t),o=um(t,r),s=dm(i),a=hm(t,r),l=fm(e,r,n),u=mm(i);return{cacheDefinitionXml:o,cacheDefinitionRels:s,cacheRecordsXml:a,pivotTableXml:l,pivotTableRels:u}}function sm(e,t,n){if(n.length<2)throw new Error(`Pivot "${e.name}" source sheet "${t}" needs at least a header row plus one data row (got ${n.length}).`);const i=n[0],r=[];for(let u=0;u<i.length;u++){const e=i[u];r.push(null===e||void 0===e?`Column${u+1}`:String(e))}const o=[];for(let u=1;u<n.length;u++){const e=n[u],t=[];for(let n=0;n<r.length;n++)t.push(n<e.length?e[n]:null);o.push(t)}const s=new Set(r),a=[...e.rows??[],...e.columns??[],...e.pages??[]];for(const u of e.values)a.push(u.field);for(const u of a)if(!s.has(u))throw new Error(`Pivot "${e.name}" references field "${u}" which is not in the source header (have: ${r.join(", ")}).`);const l=e.sourceRange??wm(r.length,n.length);return{sheetName:t,fieldNames:r,dataRows:o,ref:l}}function am(e,t){const n=t.fieldNames.map((e,n)=>({index:n,name:e,axis:"hidden",axisOrder:0,kind:lm(t.dataRows,n)})),i=(e,t)=>{if(e)for(let i=0;i<e.length;i++){const r=n.find(t=>t.name===e[i]);r&&(r.axis=t,r.axisOrder=i)}};i(e.rows,"row"),i(e.columns,"col"),i(e.pages,"page");const r=[];for(let o=0;o<e.values.length;o++){const i=e.values[o],s=t.fieldNames.indexOf(i.field);if(-1===s)continue;n[s].axis="data",n[s].axisOrder=o;const a=i.function??"sum",l=i.displayName??xm(a,i.field),u={fieldIndex:s,function:a,displayName:l};void 0!==i.numberFormat&&(u.numberFormat=i.numberFormat),r.push(u)}for(const o of n){if("data"===o.axis||"hidden"===o.axis)continue;if("string"!==o.kind)continue;const e=new Set,n=[];for(const i of t.dataRows){const t=i[o.index],r=null===t||void 0===t?"":String(t);e.has(r)||(e.add(r),n.push(r))}o.sharedStrings=n,o.sharedIndex=new Map(n.map((e,t)=>[e,t]))}return{fields:n,dataFieldDefs:r}}function lm(e,t){for(const n of e){const e=n[t];if(null!==e&&void 0!==e&&""!==e&&("number"!==typeof e||!Number.isFinite(e)))return"string"}return"number"}function um(e,t){const n=xn("cacheSource",{type:"worksheet"},[Cn("worksheetSource",{ref:e.ref,sheet:e.sheetName})]),i=[];for(const r of t.fields)i.push(cm(r,e.dataRows));return _n("pivotCacheDefinition",{xmlns:em,"xmlns:r":tm,"r:id":"rId1",refreshOnLoad:1,refreshedBy:"hucre",refreshedDate:0,createdVersion:6,refreshedVersion:6,minRefreshableVersion:3,recordCount:e.dataRows.length},[n,xn("cacheFields",{count:t.fields.length},i)])}function cm(e,t){if("string"===e.kind){const t=[];if(e.sharedStrings)for(const n of e.sharedStrings)t.push(Cn("s",{v:n}));return xn("cacheField",{name:e.name,numFmtId:0},[xn("sharedItems",{count:t.length},t)])}let n=1/0,i=-1/0,r=!1;for(const s of t){const t=s[e.index];null!==t&&void 0!==t&&""!==t?"number"===typeof t&&(t<n&&(n=t),t>i&&(i=t)):r=!0}const o={containsSemiMixedTypes:0,containsString:0,containsNumber:1,containsInteger:Number.isInteger(n)&&Number.isInteger(i)?1:0};return r&&(o.containsBlank=1),Number.isFinite(n)&&(o.minValue=n),Number.isFinite(i)&&(o.maxValue=i),xn("cacheField",{name:e.name,numFmtId:0},[Cn("sharedItems",o)])}function dm(e){return _n("Relationships",{xmlns:nm},[Cn("Relationship",{Id:"rId1",Type:im,Target:`pivotCacheRecords${e}.xml`})])}function hm(e,t){const n=[];for(const i of e.dataRows){const e=[];for(const n of t.fields)e.push(pm(i[n.index],n));n.push(xn("r",void 0,e))}return _n("pivotCacheRecords",{xmlns:em,"xmlns:r":tm,count:e.dataRows.length},n)}function pm(e,t){if(null===e||void 0===e||""===e)return Cn("m");if("string"===t.kind){const n=t.sharedIndex?.get(String(e));return void 0!==n?Cn("x",{v:n}):Cn("s",{v:String(e)})}return"number"===typeof e&&Number.isFinite(e)?Cn("n",{v:e}):"boolean"===typeof e?Cn("b",{v:e?1:0}):Cn("s",{v:String(e)})}function fm(e,t,n){const i=t.fields.filter(e=>"row"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),r=t.fields.filter(e=>"col"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),o=t.fields.filter(e=>"page"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),s=e.targetCell??"A1",a=e.styleName??"PivotStyleLight16",l=e.dataCaption??"Values",u=vm(s,i.length,r.length,t),c=[];c.push(Cn("location",u));const d=[];for(const h of t.fields)d.push(gm(h));if(c.push(xn("pivotFields",{count:t.fields.length},d)),i.length>0&&(c.push(xn("rowFields",{count:i.length},i.map(e=>Cn("field",{x:e.index})))),c.push(xn("rowItems",{count:1},[xn("i",void 0,[Cn("x")])]))),r.length>0)c.push(xn("colFields",{count:r.length},r.map(e=>Cn("field",{x:e.index})))),c.push(xn("colItems",{count:1},[xn("i",void 0,[Cn("x")])]));else if(t.dataFieldDefs.length>1){c.push(xn("colFields",{count:1},[Cn("field",{x:-2})]));const e=[];for(let n=0;n<t.dataFieldDefs.length;n++)e.push(xn("i",0===n?void 0:{i:n},[Cn("x",{v:n})]));c.push(xn("colItems",{count:t.dataFieldDefs.length},e))}if(o.length>0&&c.push(xn("pageFields",{count:o.length},o.map(e=>Cn("pageField",{fld:e.index,hier:-1})))),t.dataFieldDefs.length>0){const e=[];for(const n of t.dataFieldDefs){const t={name:n.displayName,fld:n.fieldIndex,baseField:0,baseItem:0};"sum"!==n.function&&(t.subtotal=n.function),void 0!==n.numberFormat&&(t.numFmtId=0),e.push(Cn("dataField",t))}c.push(xn("dataFields",{count:t.dataFieldDefs.length},e))}return c.push(Cn("pivotTableStyleInfo",{name:a,showRowHeaders:1,showColHeaders:1,showRowStripes:0,showColStripes:0,showLastColumn:1})),_n("pivotTableDefinition",{xmlns:em,"xmlns:r":tm,name:e.name,cacheId:n,applyNumberFormats:0,applyBorderFormats:0,applyFontFormats:0,applyPatternFormats:0,applyAlignmentFormats:0,applyWidthHeightFormats:1,dataCaption:l,updatedVersion:6,minRefreshableVersion:3,useAutoFormatting:1,itemPrintTitles:1,createdVersion:6,indent:0,outline:1,outlineData:1,multipleFieldFilters:0},c)}function gm(e){if("data"===e.axis)return Cn("pivotField",{dataField:1,showAll:0});if("hidden"===e.axis)return Cn("pivotField",{showAll:0});const t="row"===e.axis?"axisRow":"col"===e.axis?"axisCol":"axisPage",n=[];if(e.sharedStrings)for(let i=0;i<e.sharedStrings.length;i++)n.push(Cn("item",{x:i}));return n.push(Cn("item",{t:"default"})),xn("pivotField",{axis:t,showAll:0},[xn("items",{count:n.length},n)])}function mm(e){return _n("Relationships",{xmlns:nm},[Cn("Relationship",{Id:"rId1",Type:rm,Target:`../pivotCache/pivotCacheDefinition${e}.xml`})])}function vm(e,t,n,i){const{col:r,row:o}=ym(e),s=0,a=Math.max(1,n)+(i.dataFieldDefs.length>1?1:0),l=Math.max(1,t),u=Math.max(2,t+Math.max(1,i.dataFieldDefs.length)),c=a+2,d=Cm(o,r),h=Cm(o+c-1,r+u-1);return{ref:`${d}:${h}`,firstHeaderRow:s,firstDataRow:a,firstDataCol:l}}function ym(e){const t=/^([A-Z]+)(\d+)$/i.exec(e.trim());if(!t)throw new Error(`Invalid pivot targetCell "${e}" — expected an A1-style reference`);const n=t[1].toUpperCase();let i=0;for(let r=0;r<n.length;r++)i=26*i+(n.charCodeAt(r)-64);return{col:i-1,row:parseInt(t[2],10)-1}}function Cm(e,t){let n=t,i="";while(n>=0)i=String.fromCharCode(65+n%26)+i,n=Math.floor(n/26)-1;return`${i}${e+1}`}function wm(e,t){if(e<=0||t<=0)throw new Error("Pivot source range must contain at least one column and row");const n=Cm(0,0),i=Cm(t-1,e-1);return`${n}:${i}`}function xm(e,t){const n="sum"===e?"Sum":"count"===e?"Count":"average"===e?"Average":"max"===e?"Max":"min"===e?"Min":"product"===e?"Product":"countNums"===e?"Count Nums":"stdDev"===e?"StdDev":"stdDevp"===e?"StdDevp":"var"===e?"Var":"Varp";return`${n} of ${t}`}const bm="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",_m="http://purl.org/dc/elements/1.1/",Sm="http://purl.org/dc/terms/",Am="http://www.w3.org/2001/XMLSchema-instance",Tm="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";function Em(e){return e.toISOString().replace(/\.\d{3}Z$/,"Z")}function Dm(e){const t=[];e?.title&&t.push(xn("dc:title",void 0,mn(e.title))),e?.subject&&t.push(xn("dc:subject",void 0,mn(e.subject))),e?.creator&&t.push(xn("dc:creator",void 0,mn(e.creator))),e?.keywords&&t.push(xn("cp:keywords",void 0,mn(e.keywords))),e?.description&&t.push(xn("dc:description",void 0,mn(e.description))),e?.lastModifiedBy&&t.push(xn("cp:lastModifiedBy",void 0,mn(e.lastModifiedBy))),e?.category&&t.push(xn("cp:category",void 0,mn(e.category))),e?.created&&t.push(xn("dcterms:created",{"xsi:type":"dcterms:W3CDTF"},Em(e.created)));const n=e?.modified??new Date;return t.push(xn("dcterms:modified",{"xsi:type":"dcterms:W3CDTF"},Em(n))),_n("cp:coreProperties",{"xmlns:cp":bm,"xmlns:dc":_m,"xmlns:dcterms":Sm,"xmlns:xsi":Am},t)}const Mm="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Im="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Rm="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}";function Lm(e){if(!e?.custom)return null;const t=Object.entries(e.custom);if(0===t.length)return null;const n=[];let i=2;for(const[r,o]of t){let e;if("string"===typeof o)e=xn("vt:lpwstr",void 0,mn(o));else if("number"===typeof o)e=Number.isInteger(o)?xn("vt:i4",void 0,String(o)):xn("vt:r8",void 0,String(o));else if("boolean"===typeof o)e=xn("vt:bool",void 0,o?"true":"false");else{if(!(o instanceof Date))continue;e=xn("vt:filetime",void 0,Em(o))}n.push(xn("property",{fmtid:Rm,pid:i++,name:r},e))}return 0===n.length?null:_n("Properties",{xmlns:Mm,"xmlns:vt":Im},n)}function Pm(e){const t=[];return t.push(xn("Application",void 0,"hucre")),t.push(xn("DocSecurity",void 0,"0")),e?.company&&t.push(xn("Company",void 0,mn(e.company))),e?.manager&&t.push(xn("Manager",void 0,mn(e.manager))),_n("Properties",{xmlns:Tm},t)}function Nm(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="12700"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="19050"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>'}const Fm=new TextEncoder,Om="http://schemas.openxmlformats.org/package/2006/relationships",km="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Bm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Gm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Vm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Hm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",zm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Um="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";function Wm(e){const t=e.properties;if(t?.description)return t;for(const n of e.sheets){const e=n.a11y?.summary;if(e&&e.trim().length>0)return{...t,description:e}}return t}async function $m(e){const t=pn(e.sheets),{defaultFont:n,dateSystem:i,namedRanges:r,activeSheet:o,workbookProtection:s}=e;Jo(t);const a=Wm(e),l=yr(n,{reuseStyleIdentity:!0}),u=as();let c=1;const d=[];for(const z of t)z.tables&&z.tables.length>0?(d.push(c),c+=z.tables.length):d.push(void 0);let h=1;const p=[];for(const z of t)z.pivotTables&&z.pivotTables.length>0?(p.push(h),h+=z.pivotTables.length):p.push(void 0);const f=[];for(let z=0;z<t.length;z++){const n=t[z],r=fs(n,l,u,i,d[z],"inline"===e.stringMode,p[z]);f.push(r)}const g=u.count()>0,m=[],v=[],y=new Set;let C=1,w=1;const x=[],b=[];for(let z=0;z<t.length;z++){const e=t[z],n=e.images&&e.images.length>0,i=e.textBoxes&&e.textBoxes.length>0,r=e.charts&&e.charts.length>0;if(n||i||r){const t=oa(e.images??[],C,e.textBoxes,e.charts,w);m.push(t),v.push(z+1);for(const e of t.images){const t=e.path.split(".").pop();t&&y.add(t)}e.images&&(C+=e.images.length);const n=[];if(e.charts){for(let t=0;t<e.charts.length;t++){const i=Pf(e.charts[t],e.name),r=w+t;n.push({globalIndex:r,xml:i.chartXml,rels:i.chartRels}),b.push(r)}w+=e.charts.length}x.push(n)}else m.push(null),x.push([])}const{paths:_,nextIndex:S}=Ws(t,C,y);C=S;const A=[],T=[];for(let z=0;z<t.length;z++){const e=t[z];if(e.cells){const t=jg(e.cells,z);t?(A.push(t),T.push(z+1)):A.push(null)}else A.push(null)}const E=[];for(const z of f)for(const e of z.tables)E.push(e.globalTableIndex);const D=[];for(let z=0;z<t.length;z++){const e=t[z];if(!e.pivotTables||0===e.pivotTables.length)continue;const n=p[z];if(void 0!==n)for(let i=0;i<e.pivotTables.length;i++){const r=e.pivotTables[i],o=r.sourceSheet??e.name,s=t.find(e=>e.name===o);if(!s)throw new Error(`Pivot "${r.name}" sourceSheet "${o}" not found in workbook`);const a=jm(s),l=sm(r,o,a),u=n+i,c=u-1,d=om(r,l,c,u);D.push({parts:d,globalIndex:u})}}const M=D.map(e=>e.globalIndex),I=D.map(e=>({rId:`rIdPivot${e.globalIndex}`,target:`pivotCache/pivotCacheDefinition${e.globalIndex}.xml`})),R=D.map((e,t)=>({cacheId:e.globalIndex-1,rId:I[t].rId})),L=new an,P=Lm(a),N=null!==P,F=void 0!==e.vbaProject&&e.vbaProject.length>0,O=l.hasCheckboxFeature(),k=f.some(e=>e.hasDynamicArray),B={sheetCount:t.length,hasSharedStrings:g,drawingIndices:v.length>0?v:void 0,chartIndices:b.length>0?b:void 0,imageExtensions:y.size>0?y:void 0,commentIndices:T.length>0?T:void 0,tableIndices:E.length>0?E:void 0,pivotTableIndices:M.length>0?M:void 0,pivotCacheDefinitionIndices:M.length>0?M:void 0,pivotCacheRecordIndices:M.length>0?M:void 0,hasCoreProps:!0,hasAppProps:!0,hasCustomProps:N,hasMacros:F,hasFeaturePropertyBag:O,hasMetadata:k};L.add("[Content_Types].xml",Fm.encode(Fi(B))),L.add("_rels/.rels",Fm.encode(er({hasCoreProps:!0,hasAppProps:!0,hasCustomProps:N}))),L.add("docProps/core.xml",Fm.encode(Dm(a))),L.add("docProps/app.xml",Fm.encode(Pm(a))),P&&L.add("docProps/custom.xml",Fm.encode(P));const G=Qg(t,r);L.add("xl/workbook.xml",Fm.encode($i(t,G.length>0?G:void 0,i,o,s,void 0,R.length>0?R:void 0))),L.add("xl/_rels/workbook.xml.rels",Fm.encode(Ji(t.length,g,F,O,void 0,void 0,I.length>0?I:void 0,void 0,void 0,void 0,k))),L.add("xl/styles.xml",Fm.encode(l.toXml())),L.add("xl/theme/theme1.xml",Fm.encode(Nm())),g&&L.add("xl/sharedStrings.xml",Fm.encode(ls(u))),k&&L.add(Yn,Fm.encode(Zn())),O&&L.add(ri,Fm.encode(oi())),F&&L.add("xl/vbaProject.bin",e.vbaProject);for(let z=0;z<f.length;z++){const e=f[z],n=m[z],i=A[z];L.add(`xl/worksheets/sheet${z+1}.xml`,Fm.encode(e.xml));const r=e.hyperlinkRelationships.length>0,o=null!==n&&null!==e.drawingRId,s=null!==i&&null!==e.legacyDrawingRId,a=e.tables.length>0,l=null!==e.pictureRId&&null!==_[z],u=e.pivotTables.length>0;if(r||o||s||a||l||u){const t=[];for(const i of e.hyperlinkRelationships)t.push(Cn("Relationship",{Id:i.id,Type:km,Target:i.target,TargetMode:"External"}));o&&e.drawingRId&&t.push(Cn("Relationship",{Id:e.drawingRId,Type:Bm,Target:`../drawings/drawing${z+1}.xml`})),s&&e.legacyDrawingRId&&e.commentsRId&&(t.push(Cn("Relationship",{Id:e.legacyDrawingRId,Type:Vm,Target:`../drawings/vmlDrawing${z+1}.vml`})),t.push(Cn("Relationship",{Id:e.commentsRId,Type:Gm,Target:`../comments${z+1}.xml`})));for(const i of e.tables)t.push(Cn("Relationship",{Id:i.rId,Type:Hm,Target:`../tables/table${i.globalTableIndex}.xml`}));if(l&&e.pictureRId&&_[z]){const n=_[z],i=`../${n.slice(3)}`;t.push(Cn("Relationship",{Id:e.pictureRId,Type:zm,Target:i}))}for(const i of e.pivotTables)t.push(Cn("Relationship",{Id:i.rId,Type:Um,Target:`../pivotTables/pivotTable${i.globalPivotIndex}.xml`}));const n=_n("Relationships",{xmlns:Om},t);L.add(`xl/worksheets/_rels/sheet${z+1}.xml.rels`,Fm.encode(n))}if(n){L.add(`xl/drawings/drawing${z+1}.xml`,Fm.encode(n.drawingXml)),L.add(`xl/drawings/_rels/drawing${z+1}.xml.rels`,Fm.encode(n.drawingRels));for(const e of n.images)L.add(e.path,e.data,{compress:!1})}const c=x[z];if(c&&c.length>0)for(const t of c)L.add(`xl/charts/chart${t.globalIndex}.xml`,Fm.encode(t.xml)),L.add(`xl/charts/_rels/chart${t.globalIndex}.xml.rels`,Fm.encode(t.rels));l&&_[z]&&t[z].backgroundImage&&L.add(_[z],t[z].backgroundImage,{compress:!1}),i&&(L.add(`xl/comments${z+1}.xml`,Fm.encode(i.commentsXml)),L.add(`xl/drawings/vmlDrawing${z+1}.vml`,Fm.encode(i.vmlXml)));const d=t[z];if(d.tables&&d.tables.length>0)for(let t=0;t<d.tables.length;t++){const n=d.tables[t],i=e.tables[t],r=i.globalTableIndex;let o=n.range;o||(o=Jg(n,d));const s={...n,range:o},a=qg(s,r,r);L.add(`xl/tables/table${r}.xml`,Fm.encode(a.tableXml))}}for(const z of D){const e=z.globalIndex;L.add(`xl/pivotCache/pivotCacheDefinition${e}.xml`,Fm.encode(z.parts.cacheDefinitionXml)),L.add(`xl/pivotCache/_rels/pivotCacheDefinition${e}.xml.rels`,Fm.encode(z.parts.cacheDefinitionRels)),L.add(`xl/pivotCache/pivotCacheRecords${e}.xml`,Fm.encode(z.parts.cacheRecordsXml)),L.add(`xl/pivotTables/pivotTable${e}.xml`,Fm.encode(z.parts.pivotTableXml)),L.add(`xl/pivotTables/_rels/pivotTable${e}.xml.rels`,Fm.encode(z.parts.pivotTableRels))}const V=await L.build(),H=e.encryption;return H?.password?hg(V,H.password,{spinCount:H.spinCount}):V}function jm(e){if(e.rows&&e.rows.length>0)return e.rows.map(e=>e.map(dn));if(e.data&&e.data.length>0&&e.columns&&e.columns.length>0){const t=[],n=e.columns.map(e=>e.header??e.key??"");t.push(n);for(const i of e.data){const n=e.columns.map(e=>{if(!e.key)return null;const t=i[e.key];return void 0===t?null:un(t)});t.push(n)}return t}return[]}async function Xm(e){if(!(0,De.A)(e))return{error:"wb is not an effective object"};if(!(0,be.A)((0,j.A)(e,"sheets")))return{error:"wb.sheets is not an array"};let t=null;try{t=await $m(e)}catch(n){return{error:n}}return t}var Ym=Xm;async function Km(e,t="data",n){if(!(0,Re.A)(e)){let t="no filename";return console.log(t,e),{error:t}}if((0,Re.A)(t)||(t="data"),!(0,be.A)(n)){let e="data is not an array";return console.log(e,n),{error:e}}(0,be.A)(n)&&(0,De.A)((0,j.A)(n,0,null))&&(n=lt(n));let i=mt(n,t);if((0,fe.A)(i,"error"))return console.log(i.error),i;let r=await Ym(i);if((0,fe.A)(r,"error"))return console.log(r.error),r;if((0,et.A)())ot(e,new Blob([r]));else{let t="fs",n=await import(t);n.default.writeFileSync(e,r)}}var qm=Km,Zm=n(7120),Qm=n(7587);function Jm(e){return!(0,Ee.A)(e)}var ev=Jm;let tv=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function nv(e=""){let t=null;return(0,Re.A)(e)?(t=(0,d.A)(tv,{name:e}),(0,De.A)(t)||(t=null)):t=tv,t}var iv=nv;function rv(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=iv();if(""===e)return t;let n={};return(0,a.A)(t,function(t){let i=t[e];(0,fe.A)(n,i)||(n[i]=[]),n[i].push(t)}),n}var ov=rv;function sv(e="*"){if("*"===e)return e;if(!(0,Ie.A)(e)&&!(0,Me.A)(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=ov();function n(e){let n=(0,u.A)(t,{name:e});return r(n)}function i(e){let n=(0,u.A)(t,{group:e});return r(n)}function r(e){return Ke((0,s.A)(e,"acp"))}(0,Ie.A)(e)&&(e=[e]);let o="";if((0,Me.A)(e)){let t=(0,s.A)(e,function(e){return i(e)}),r=(0,s.A)(e,function(e){return n(e)}),a=te(t,r);a=(0,u.A)(a,ev),o=(0,Y.A)(a,",")}return o}var av=sv,lv=n(8332);function uv(e,t){if(!(0,lv.A)(e))return"invalid eleParent";if((0,Ie.A)(t))e.insertAdjacentHTML("beforeend",t);else{if(!(0,lv.A)(t))return"invalid itemChild";e.appendChild(t)}}var cv=uv;function dv(e){let t=document.querySelector(e);return t}var hv=dv;function pv(e,t=1e3){t=(0,Be.A)(t),t<=0&&(t=1e3);let n={},i=[];return(0,a.A)((0,j.A)(e,"files",[]),function(e,r){let o=e.size,s=o/1024/1024;s>t&&(n[r]=`file size[${s}]mb > ${t}mb`),i.push(e)}),{files:i,errs:n}}var fv=pv;function gv(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(t){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}function mv(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(0,et.A)()&&gv();var vv=mv;function yv(e={}){let t=(0,j.A)(e,"kind","*"),n=(0,j.A)(e,"multiple");(0,Ne.A)(n)||(n=!1);let i=(0,j.A)(e,"entireHierarchy");(0,Ne.A)(i)||(i=!1),i&&!n&&(n=!0);let r=(0,j.A)(e,"sizeMbLimit");(0,Le.A)(r)||(r=1e3),r=(0,Be.A)(r);let o=(0,xe.A)(),s="drf"+(0,Zm.A)(),a="GrpDomReadFile";(0,Qm.A)(`[name=${a}]`);let l=av(t),u=n?"multiple":"",c=i?"webkitdirectory":"",d=`<div name="${a}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${s}" type="file" accept="${l}" ${u} ${c} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;cv(document.querySelector("body"),d);let h=hv("#"+s),p=!1;function f(e){p=!0;let t=this,n=fv(t,r);o.resolve(n),h.removeEventListener("change",f,!0),h.removeEventListener("cancel",g,!0),i||window.removeEventListener("focus",m),(0,Qm.A)(`[name=${a}]`)}function g(e){p||f.call(h,e)}function m(e){setTimeout(()=>{p||f.call(h,e)},1500)}return h.addEventListener("change",f,!0),h.addEventListener("cancel",g,!0),i||window.addEventListener("focus",m),vv(h,"click"),o}var Cv=yv,wv=n(8441);function xv(e){if(!(0,be.A)(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=(0,s.A)(e,function(e){return(0,wv.A)(e)});return Promise.all(t)}var bv=xv;function _v(e={}){let t=(0,j.A)(e,"kind","*"),n=(0,j.A)(e,"multiple");(0,Ne.A)(n)||(n=!1);let i=(0,j.A)(e,"entireHierarchy");(0,Ne.A)(i)||(i=!1);let r=(0,j.A)(e,"sizeMbLimit");(0,Le.A)(r)||(r=1e3),r=(0,Be.A)(r);let o=(0,xe.A)(),s=[];return Cv({kind:t,multiple:n,entireHierarchy:i,sizeMbLimit:r}).then(function(e){let t=(0,xe.A)(),n=(0,j.A)(e,"errs",{}),i=(0,j.A)(e,"files",[]);return(0,De.A)(n)?t.reject(n):t.resolve(i),t}).then(function(e){return(0,a.A)(e,function(e){s.push({name:e.name,size:e.size,type:e.type})}),bv(e)}).then(function(e){(0,a.A)(e,function(e,t){s[t]["u8a"]=e}),o.resolve(s)}).catch(function(e){o.reject(e)}),o}var Sv=_v;const Av=536870888;class Tv extends yt{}function Ev(e){return e instanceof Tv}function Dv(e,t){return new Tv(`Part "${e}" is ${t.toLocaleString("en-US")} bytes, over the ${Av.toLocaleString("en-US")}-character maximum string length this runtime supports, so it cannot be read into memory whole.\n - streamXlsxRows(input) reads a worksheet of any size, a row at a time.\n - The workbook is not damaged; this is a limit of the buffered reader.`)}function Mv(e,t){try{return new TextDecoder("utf-8").decode(e)}catch(n){const i=n instanceof RangeError||"ERR_STRING_TOO_LONG"===n?.code||e.length>Av;if(i)throw Dv(t,e.length);throw n}}function Iv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("person"!==i.local)continue;const e=i.attrs.id,t=i.attrs.displayName;if(!e||void 0===t)continue;const r={id:e,displayName:t};i.attrs.userId&&(r.userId=i.attrs.userId),i.attrs.providerId&&(r.providerId=i.attrs.providerId),n.push(r)}return n}function Rv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("threadedComment"!==i.local)continue;const e=i.attrs.id,t=i.attrs.personId;if(!e||!t)continue;const r={id:e,personId:t,text:zn(i,"text")};i.attrs.ref&&(r.ref=i.attrs.ref),i.attrs.parentId&&(r.parentId=i.attrs.parentId),i.attrs.dT&&(r.date=i.attrs.dT),"1"!==i.attrs.done&&"true"!==i.attrs.done||(r.done=!0);const o=Gn(i,"mentions");if(o){const e=[];for(const t of Vn(o)){if("mention"!==t.local)continue;const n=t.attrs.mentionpersonId,i=t.attrs.mentionId;n&&i&&e.push({mentionPersonId:n,mentionId:i,startIndex:Un(t.attrs.startIndex,0),length:Un(t.attrs.length,0)})}e.length>0&&(r.mentions=e)}n.push(r)}return n}function Lv(e){const t=Bn(e),n=[];for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("Relationship"===e){const e=i.attrs["Id"]??"",t=i.attrs["Type"]??"",r=i.attrs["Target"]??"",o=i.attrs["TargetMode"];if(e&&t&&r){const i={id:e,type:t,target:r};o&&(i.targetMode=o),n.push(i)}}}return n}function Pv(e,t){if(t.startsWith("/"))return t.slice(1);const n=e.split("/").filter(Boolean),i=t.split("/").filter(Boolean);for(const r of i)".."===r?n.pop():"."!==r&&n.push(r);return n.join("/")}function Nv(e){const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function Fv(e){for(const t of Object.keys(e))if(t.endsWith(":id")&&e[t].startsWith("rId"))return e[t]}const Ov=new Set(["n","s","b","e","str"]);function kv(e,t){const n=Bn(e),i=Gn(n,"externalBook");let r,o="";if(i&&t){const e=Lv(t),n=i.attrs["r:id"]??i.attrs.id,s=n?e.find(e=>e.id===n):void 0;s&&(o=s.target,"External"!==s.targetMode&&"Internal"!==s.targetMode||(r=s.targetMode))}const s=Bv(i),a=Gv(i),l=Vv(i),u={target:o,sheetNames:s,sheetData:a};return r&&(u.targetMode=r),l&&l.length>0&&(u.definedNames=l),u}function Bv(e){const t=e?Gn(e,"sheetNames"):void 0;if(!t)return[];const n=[];for(const i of Vn(t))"sheetName"===i.local&&n.push(i.attrs.val??"");return n}function Gv(e){const t=e?Gn(e,"sheetDataSet"):void 0;if(!t)return[];const n=[];for(const i of Vn(t)){if("sheetData"!==i.local)continue;const e=Un(i.attrs.sheetId,0),t=[];for(const n of Vn(i))if("row"===n.local)for(const e of Vn(n)){if("cell"!==e.local)continue;const n=e.attrs.r??"";if(!n)continue;const i=e.attrs.t??"n",r=Ov.has(i)?i:"n",o=zn(e,"v");t.push({ref:n,type:r,value:Hv(r,o)})}n.push({sheetId:e,cells:t})}return n}function Vv(e){const t=e?Gn(e,"definedNames"):void 0;if(!t)return[];const n=[];for(const i of Vn(t)){if("definedName"!==i.local)continue;const e={name:i.attrs.name??""};if(i.attrs.refersTo&&(e.refersTo=i.attrs.refersTo),void 0!==i.attrs.sheetId){const t=Un(i.attrs.sheetId,NaN);Number.isNaN(t)||(e.sheetId=t)}e.name&&n.push(e)}return n}function Hv(e,t){switch(e){case"n":case"s":{const e=Number(t);return Number.isFinite(e)?e:0}case"b":return"1"===t||"true"===t;case"e":case"str":return t}}const zv="http://www.wps.cn/officeDocument/2017/relationships/cellimage";function Uv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("cellImage"!==i.local)continue;const e=$v(i);e&&n.push(e)}return n}function Wv(e,t){const n=[],i=new Set;for(const r of e){if(i.has(r.id))continue;const e=t.get(r.embedRId);if(!e)continue;const o={id:r.id,data:e.data,type:e.type};r.description&&(o.description=r.description),n.push(o),i.add(r.id)}return n}function $v(e){const t=Gn(e,"pic");if(!t)return;const n=Gn(t,"nvPicPr"),i=n?Gn(n,"cNvPr"):void 0,r=i?.attrs.name;if(!r)return;const o=Gn(t,"blipFill"),s=o?Gn(o,"blip"):void 0,a=s?.attrs["r:embed"]??s?.attrs.embed;if(!a)return;const l={id:r,embedRId:a},u=i?.attrs.descr;return u&&(l.description=u),l}function jv(e){const t=Bn(e),n="pivotCacheDefinition"===t.local?t:Gn(t,"pivotCacheDefinition");if(!n)return;const i={cacheId:0,fieldNames:[]},r=Gn(n,"cacheSource");if(r){const e=r.attrs.type;"worksheet"!==e&&"external"!==e&&"consolidation"!==e&&"scenario"!==e||(i.sourceType=e);const t=Gn(r,"worksheetSource");t&&(t.attrs.ref?i.sourceRef=t.attrs.ref:t.attrs.name&&(i.sourceRef=t.attrs.name),t.attrs.sheet&&(i.sourceSheet=t.attrs.sheet))}const o=Gn(n,"cacheFields");if(o)for(const s of Vn(o)){if("cacheField"!==s.local)continue;const e=s.attrs.name??"";i.fieldNames.push(e)}return i}function Xv(e){const t=Bn(e),n="pivotTableDefinition"===t.local?t:Gn(t,"pivotTableDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r=Un(n.attrs.cacheId,NaN),o={name:i,cacheId:Number.isNaN(r)?0:r,location:"",fields:[]},s=Gn(n,"location");if(s){s.attrs.ref&&(o.location=s.attrs.ref);const e=Un(s.attrs.firstHeaderRow,NaN);Number.isNaN(e)||(o.firstHeaderRow=e);const t=Un(s.attrs.firstDataRow,NaN);Number.isNaN(t)||(o.firstDataRow=t);const n=Un(s.attrs.firstDataCol,NaN);Number.isNaN(n)||(o.firstDataCol=n);const i=Un(s.attrs.rowPageCount,NaN);Number.isNaN(i)||(o.rowPageCount=i);const r=Un(s.attrs.colPageCount,NaN);Number.isNaN(r)||(o.colPageCount=r)}const a=Gn(n,"pivotFields"),l=[];if(a)for(const h of Vn(a)){if("pivotField"!==h.local)continue;const e=h.attrs.axis,t="1"===h.attrs.dataField||"true"===h.attrs.dataField;let n="hidden";"axisRow"===e?n="row":"axisCol"===e?n="col":"axisPage"===e?n="page":("axisValues"===e||t)&&(n="data"),l.push({axis:n,raw:h})}const u=Gn(n,"dataFields"),c=new Map;if(u)for(const h of Vn(u)){if("dataField"!==h.local)continue;const e=Un(h.attrs.fld,NaN);if(Number.isNaN(e))continue;const t={};h.attrs.name&&(t.name=h.attrs.name);const n=Kv(h.attrs.subtotal);n&&(t.subtotal=n),c.set(e,t)}for(let h=0;h<l.length;h++){const{axis:e}=l[h],t={name:`field${h+1}`,axis:e};if("data"===e){const e=c.get(h);t.function=e?.subtotal?e.subtotal:"sum",e?.name&&(t.displayName=e.name)}o.fields.push(t)}const d=Gn(n,"pivotTableStyleInfo");return d?.attrs.name&&(o.styleName=d.attrs.name),n.attrs.dataCaption&&(o.dataCaption=n.attrs.dataCaption),o}function Yv(e,t){for(let n=0;n<e.fields.length;n++){const i=t.fieldNames[n];i&&(e.fields[n].name=i)}}function Kv(e){if(e)switch(e){case"sum":case"count":case"average":case"max":case"min":case"product":case"countNums":case"stdDev":case"stdDevp":case"var":case"varp":return e;case"countA":return"count";default:return}}function qv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("slicer"!==i.local)continue;const e=i.attrs.name,t=i.attrs.cache;if(!e||!t)continue;const r={name:e,cache:t};if(i.attrs.caption&&(r.caption=i.attrs.caption),void 0!==i.attrs.columnCount){const e=Un(i.attrs.columnCount,NaN);Number.isNaN(e)||(r.columnCount=e)}if(i.attrs.style&&(r.style=i.attrs.style),i.attrs.sortOrder&&(r.sortOrder=i.attrs.sortOrder),void 0!==i.attrs.rowHeight){const e=Un(i.attrs.rowHeight,NaN);Number.isNaN(e)||(r.rowHeight=e)}n.push(r)}return n}function Zv(e){const t=Bn(e),n="slicerCacheDefinition"===t.local?t:Gn(t,"slicerCacheDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r={name:i};n.attrs.sourceName&&(r.sourceName=n.attrs.sourceName);const o=ey(n);o.length>0&&(r.pivotTables=o);const s=ty(n);return s&&(r.tableSource=s),r}function Qv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("timeline"!==i.local)continue;const e=i.attrs.name,t=i.attrs.cache;if(!e||!t)continue;const r={name:e,cache:t};i.attrs.caption&&(r.caption=i.attrs.caption),i.attrs.style&&(r.style=i.attrs.style),i.attrs.level&&(r.level=i.attrs.level),void 0!==i.attrs.showHeader&&(r.showHeader=ny(i.attrs.showHeader)),void 0!==i.attrs.showSelectionLabel&&(r.showSelectionLabel=ny(i.attrs.showSelectionLabel)),void 0!==i.attrs.showTimeLevel&&(r.showTimeLevel=ny(i.attrs.showTimeLevel)),void 0!==i.attrs.showHorizontalScrollbar&&(r.showHorizontalScrollbar=ny(i.attrs.showHorizontalScrollbar)),n.push(r)}return n}function Jv(e){const t=Bn(e),n="timelineCacheDefinition"===t.local?t:Gn(t,"timelineCacheDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r={name:i};n.attrs.sourceName&&(r.sourceName=n.attrs.sourceName);const o=ey(n);return o.length>0&&(r.pivotTables=o),r}function ey(e){const t=Gn(e,"pivotTables");if(!t)return[];const n=[];for(const i of Vn(t)){if("pivotTable"!==i.local)continue;const e=i.attrs.name;if(!e)continue;const t=Un(i.attrs.tabId,NaN);Number.isNaN(t)||n.push({tabId:t,name:e})}return n}function ty(e){const t=Gn(e,"extLst");if(t)for(const n of Vn(t)){if("ext"!==n.local)continue;const e=Gn(n,"tableSlicerCache");if(!e)continue;const t=e.attrs.name??e.attrs.tableId;if(!t)continue;const i={name:t};return e.attrs.column&&(i.column=e.attrs.column),i}}function ny(e){return"1"===e||"true"===e}const iy=new Map([["barChart","bar"],["bar3DChart","bar3D"],["lineChart","line"],["line3DChart","line3D"],["pieChart","pie"],["pie3DChart","pie3D"],["doughnutChart","doughnut"],["areaChart","area"],["area3DChart","area3D"],["scatterChart","scatter"],["bubbleChart","bubble"],["radarChart","radar"],["surfaceChart","surface"],["surface3DChart","surface3D"],["stockChart","stock"],["ofPieChart","ofPie"]]);function ry(e){const t=Bn(e),n="chartSpace"===t.local?t:Hn(t,"chartSpace");if(!n)return;const i=Gn(n,"chart");if(!i)return{kinds:[],seriesCount:0};const r={kinds:[],seriesCount:0},o=Rl(i);void 0!==o&&(r.title=o);const s=ml(i);void 0!==s&&(r.titleOverlay=s);const a=vl(i);void 0!==a&&(r.titleRotation=a);const l=yl(i);void 0!==l&&(r.titleFontSize=l);const u=Cl(i);void 0!==u&&(r.titleBold=u);const c=wl(i);void 0!==c&&(r.titleItalic=c);const d=xl(i);void 0!==d&&(r.titleColor=d);const h=Dl(i);void 0!==h&&(r.titleStrike=h);const p=Ml(i);void 0!==p&&(r.titleUnderline=p);const f=Il(i);void 0!==f&&(r.titleFontFamily=f);const g=gl(i);void 0!==g&&(r.titleLayout=g);const m=bl(i);void 0!==m&&(r.titleFillColor=m);const v=_l(i);void 0!==v&&(r.titleBorderColor=v);const y=Sl(i);void 0!==y&&(r.titleBorderWidth=y);const C=Al(i);void 0!==C&&(r.titleBorderDash=C);const w=Tl(i);void 0!==w&&(r.titleBorderCap=w);const x=El(i);void 0!==x&&(r.titleBorderCompound=x);const b=Hc(i);void 0!==b&&(r.autoTitleDeleted=b);const _=Gn(i,"plotArea");if(_){let e=0;const t=[];let n,i,o,s,a,l,u,c,d,h,p,f,g,m,v,y;for(const M of Vn(_)){const C=iy.get(M.local);if(!C)continue;if(r.kinds.includes(C)||r.kinds.push(C),void 0===d&&(d=Zp(M,C)),void 0!==n||"bar"!==C&&"bar3D"!==C||(n=rf(M)),void 0!==l||"bar"!==C&&"bar3D"!==C||(l=sf(M)),void 0!==u||"bar"!==C&&"bar3D"!==C||(u=lf(M)),void 0!==i||"line"!==C&&"line3D"!==C||(i=cf(M)),void 0!==o||"area"!==C&&"area3D"!==C||(o=cf(M)),void 0===a&&"doughnut"===C&&(a=of(M)),void 0!==c||"pie"!==C&&"pie3D"!==C&&"doughnut"!==C&&"ofPie"!==C||(c=uf(M)),void 0===h&&"scatter"===C&&(h=Qp(M)),void 0!==p||"line"!==C&&"line3D"!==C&&"area"!==C&&"area3D"!==C||(p=Jp(M)),void 0!==f||"line"!==C&&"line3D"!==C&&"stock"!==C||(f=ef(M)),void 0!==g||"bar"!==C&&"ofPie"!==C||(g=tf(M)),void 0===m&&("line"===C||"line3D"===C||"stock"===C)){const e=Gn(M,"upDownBars");void 0!==e&&(m=!0,v=af(e))}void 0===y&&"line"===C&&(y=nf(M));let w=0;for(const n of Vn(M))"ser"===n.local&&(e++,t.push(_p(n,C,w)),w++);if(void 0===s){const e=Gn(M,"dLbls");if(e){const t=vh(e);t&&(s=t)}}}r.seriesCount=e,t.length>0&&(r.series=t),void 0!==n&&(r.barGrouping=n),void 0!==i&&(r.lineGrouping=i),void 0!==o&&(r.areaGrouping=o),s&&(r.dataLabels=s),void 0!==a&&(r.holeSize=a),void 0!==l&&(r.gapWidth=l),void 0!==u&&(r.overlap=u),void 0!==c&&(r.firstSliceAng=c),void 0!==d&&(r.varyColors=d),void 0!==h&&(r.scatterStyle=h),void 0!==p&&(r.dropLines=p),void 0!==f&&(r.hiLowLines=f),void 0!==g&&(r.serLines=g),void 0!==m&&(r.upDownBars=m),void 0!==v&&(r.upDownBarsGapWidth=v),void 0!==y&&(r.showLineMarkers=y);const C=jp(_);void 0!==C&&(r.axes=C);const w=Ud(_);void 0!==w&&(r.dataTable=w);const x=Xp(_);void 0!==x&&(r.plotAreaLayout=x);const b=Yp(_);void 0!==b&&(r.plotAreaFillColor=b);const S=Kp(_);void 0!==S&&(r.plotAreaBorderColor=S);const A=qp(_);void 0!==A&&(r.plotAreaBorderWidth=A);const T=Ia(_);void 0!==T&&(r.plotAreaBorderDash=T);const E=ga(_);void 0!==E&&(r.plotAreaBorderCap=E);const D=ma(_);void 0!==D&&(r.plotAreaBorderCompound=D)}const S=au(i);if(void 0!==S&&(r.legend=S),void 0!==S&&!1!==S){const e=lu(i);void 0!==e&&(r.legendOverlay=e);const t=uu(i);void 0!==t&&(r.legendEntries=t);const n=cu(i);void 0!==n&&(r.legendFontSize=n);const o=du(i);void 0!==o&&(r.legendBold=o);const s=hu(i);void 0!==s&&(r.legendItalic=s);const a=pu(i);void 0!==a&&(r.legendUnderline=a);const l=fu(i);void 0!==l&&(r.legendStrikethrough=l);const u=gu(i);void 0!==u&&(r.legendFontColor=u);const c=mu(i);void 0!==c&&(r.legendFontFamily=c);const d=vu(i);void 0!==d&&(r.legendLayout=d);const h=yu(i);void 0!==h&&(r.legendFillColor=h);const p=Cu(i);void 0!==p&&(r.legendBorderColor=p);const f=wu(i);void 0!==f&&(r.legendBorderWidth=f);const g=xu(i);void 0!==g&&(r.legendBorderDash=g);const m=bu(i);void 0!==m&&(r.legendBorderCap=m);const v=_u(i);void 0!==v&&(r.legendBorderCompound=v)}const A=ay(i);void 0!==A&&(r.dispBlanksAs=A);const T=ly(i);void 0!==T&&(r.plotVisOnly=T);const E=uy(i);void 0!==E&&(r.showDLblsOverMax=E);const D=cy(n);void 0!==D&&(r.roundedCorners=D);const M=dy(n);void 0!==M&&(r.style=M);const I=hy(n);void 0!==I&&(r.lang=I);const R=py(n);void 0!==R&&(r.date1904=R);const L=fy(n);void 0!==L&&(r.protection=L);const P=Pa(i);void 0!==P&&(r.view3D=P);const N=Oa(i);void 0!==N&&(r.floorThickness=N);const F=ka(i);void 0!==F&&(r.sideWallThickness=F);const O=Ba(i);void 0!==O&&(r.backWallThickness=O);const k=oy(n);void 0!==k&&(r.chartSpaceFillColor=k);const B=sy(n);void 0!==B&&(r.chartSpaceBorderColor=B);const G=Ma(n);void 0!==G&&(r.chartSpaceBorderWidth=G);const V=Ia(n);void 0!==V&&(r.chartSpaceBorderDash=V);const H=ga(n);void 0!==H&&(r.chartSpaceBorderCap=H);const z=ma(n);return void 0!==z&&(r.chartSpaceBorderCompound=z),r}function oy(e){return Ea(e)}function sy(e){return Da(e)}function ay(e){const t=Gn(e,"dispBlanksAs");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"zero":return"zero";case"span":return"span";case"gap":return;default:return}}function ly(e){const t=Gn(e,"plotVisOnly");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function uy(e){const t=Gn(e,"showDLblsOverMax");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function cy(e){const t=Gn(e,"roundedCorners");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}function dy(e){const t=Gn(e,"style");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;if(!/^\d+$/.test(n))return;const i=Number(n);return Number.isInteger(i)&&!(i<1||i>48)?i:void 0}function hy(e){const t=Gn(e,"lang");if(!t)return;const n=t.attrs.val;return"string"===typeof n&&/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(n)?n:void 0}function py(e){const t=Gn(e,"date1904");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}function fy(e){const t=Gn(e,"protection");if(!t)return;const n={},i=gy(t,"chartObject");void 0!==i&&(n.chartObject=i);const r=gy(t,"data");void 0!==r&&(n.data=r);const o=gy(t,"formatting");void 0!==o&&(n.formatting=o);const s=gy(t,"selection");void 0!==s&&(n.selection=s);const a=gy(t,"userInterface");return void 0!==a&&(n.userInterface=a),n}function gy(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}const my=Object.freeze([208,207,17,224,161,177,26,225]);function vy(e){if(e.length<my.length)return!1;for(let t=0;t<my.length;t++)if(e[t]!==my[t])return!1;return!0}async function yy(e,t=At){const n=Number.isFinite(t)&&t>0?t:At,i=e.getReader(),r=[];let o=0;try{for(;;){const{done:e,value:t}=await i.read();if(e)break;if(t){if(o+=t.length,o>n)throw new yt(`Input stream exceeds the maximum of ${n} bytes. Raise \`maxInputBytes\` if the file really is this large.`);r.push(t)}}if(0===r.length)return new Uint8Array(0);if(1===r.length)return r[0];const e=new Uint8Array(o);let t=0;for(const n of r)e.set(n,t),t+=n.length;return e}finally{try{await i.cancel()}catch{}try{i.releaseLock()}catch{}}}function Cy(e){return"object"===typeof e&&null!==e&&"function"===typeof e.getReader}async function wy(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(Cy(e))return yy(e,t);throw new yt("Unsupported input type. Expected Uint8Array, ArrayBuffer, or ReadableStream<Uint8Array>.")}function xy(e){let t=0;return new TransformStream({transform(n,i){if(t+=n.length,t>e)throw new Ct(`Decompressed size exceeds limit of ${e} bytes (possible zip bomb)`);i.enqueue(n)}})}const by=1048576;function _y(e){let t=0;return new ReadableStream({pull(n){if(t>=e.length)return void n.close();const i=Math.min(t+by,e.length);n.enqueue(e.subarray(t,i)),t=i}})}const Sy=67324752,Ay=33639248,Ty=101010256,Ey=134695760,Dy=101075792,My=117853008,Iy=4294967295,Ry=65535,Ly=1032,Py=1;async function Ny(e,t=St){if(tn())try{const n=new DecompressionStream("deflate-raw"),i=n.writable.getWriter(),r=n.readable.getReader();i.write(e).catch(()=>{}),i.close().catch(()=>{});const o=[];let s=0;for(;;){const{done:e,value:n}=await r.read();if(e)break;if(s+=n.length,s>t){try{await r.cancel()}catch{}throw new Ct(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`)}o.push(n)}const a=new Uint8Array(s);let l=0;for(const e of o)a.set(e,l),l+=e.length;return a}catch(n){if(n instanceof Ct)throw n}return $t(e,t)}class Fy{data;view;centralDir=[];entryMap=new Map;maxDecompressedBytes;constructor(e,t=St){if(this.data=e,this.maxDecompressedBytes=t,e.length<22)throw new Ct("Data too small to be a valid ZIP archive");this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.readEndOfCentralDir()}entries(){return this.centralDir.map(e=>e.fileName)}has(e){return this.entryMap.has(e)}declaredSize(e){const t=this.entryMap.get(e);if(!t?.uncompressedSize)return;const n=0===t.compressionMethod?t.compressedSize:t.compressedSize*Ly;return t.compressedSize>0&&t.uncompressedSize>n?void 0:t.uncompressedSize}async extract(e){const t=this.entryMap.get(e);if(!t)throw new Ct(`Entry not found: ${e}`);return this.extractEntry(t)}extractStream(e){const t=this.entryMap.get(e);if(!t)throw new Ct(`Entry not found: ${e}`);return this.extractEntryStream(t)}async extractAll(){const e=new Map;for(const t of this.centralDir){if(t.fileName.endsWith("/"))continue;const n=await this.extractEntry(t);e.set(t.fileName,n)}return e}readEndOfCentralDir(){const e=Math.max(0,this.data.length-65557);let t=-1;for(let o=this.data.length-22;o>=e;o--)if(this.view.getUint32(o,!0)===Ty){t=o;break}if(-1===t)throw new Ct("End of Central Directory not found — not a valid ZIP file");let n=this.view.getUint32(t+12,!0),i=this.view.getUint32(t+16,!0),r=this.view.getUint16(t+10,!0);if(r===Ry||n===Iy||i===Iy){const e=this.readZip64EndOfCentralDir(t);r=e.entryCount,n=e.centralDirSize,i=e.centralDirOffset}this.readCentralDirectory(i,n,r)}readZip64EndOfCentralDir(e){const t=e-20;if(t<0||this.view.getUint32(t,!0)!==My)throw new Ct("ZIP64 End of Central Directory locator not found");const n=this.readUint64(t+8,"ZIP64 EOCD offset");if(n+56>this.data.length)throw new Ct("ZIP64 End of Central Directory record extends beyond file");if(this.view.getUint32(n,!0)!==Dy)throw new Ct("Invalid ZIP64 End of Central Directory signature");return{entryCount:this.readUint64(n+32,"ZIP64 entry count"),centralDirSize:this.readUint64(n+40,"ZIP64 central directory size"),centralDirOffset:this.readUint64(n+48,"ZIP64 central directory offset")}}readUint64(e,t){if(e+8>this.data.length)throw new Ct(`${t} extends beyond file`);const n=this.view.getBigUint64(e,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Ct(`${t} (${n}) exceeds the addressable range`);return Number(n)}readCentralDirectory(e,t,n){let i=e;for(let r=0;r<n;r++){if(i+46>this.data.length)throw new Ct("Central Directory entry extends beyond file");const e=this.view.getUint32(i,!0);if(e!==Ay)throw new Ct(`Invalid Central Directory signature at offset ${i}: 0x${e.toString(16)}`);const t=this.view.getUint16(i+8,!0),n=this.view.getUint16(i+10,!0),r=this.view.getUint32(i+16,!0);let o=this.view.getUint32(i+20,!0),s=this.view.getUint32(i+24,!0);const a=this.view.getUint16(i+28,!0),l=this.view.getUint16(i+30,!0),u=this.view.getUint16(i+32,!0);let c=this.view.getUint32(i+42,!0);const d=this.data.subarray(i+46,i+46+a),h=(new TextDecoder).decode(d);if(o===Iy||s===Iy||c===Iy){const e=this.readZip64Extra(i+46+a,l,s===Iy,o===Iy,c===Iy,h);void 0!==e.uncompressedSize&&(s=e.uncompressedSize),void 0!==e.compressedSize&&(o=e.compressedSize),void 0!==e.localHeaderOffset&&(c=e.localHeaderOffset)}const p=0!==(8&t),f={fileName:h,compressionMethod:n,compressedSize:o,uncompressedSize:s,crc32:r,localHeaderOffset:c,hasDataDescriptor:p};this.centralDir.push(f),this.entryMap.set(h,f),i+=46+a+l+u}}readZip64Extra(e,t,n,i,r,o){const s=Math.min(e+t,this.data.length);let a=e;while(a+4<=s){const e=this.view.getUint16(a,!0),t=this.view.getUint16(a+2,!0),s=a+4;if(e!==Py){a=s+t;continue}const l=s+t;let u=s;const c={},d=e=>{if(u+8>l)throw new Ct(`Truncated ZIP64 extra field for entry: ${o}`);const t=this.readUint64(u,e);return u+=8,t};return n&&(c.uncompressedSize=d("ZIP64 uncompressed size")),i&&(c.compressedSize=d("ZIP64 compressed size")),r&&(c.localHeaderOffset=d("ZIP64 local header offset")),c}throw new Ct(`Missing ZIP64 extra field for entry: ${o}`)}async extractEntry(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new Ct("Local file header extends beyond file");const n=this.view.getUint32(t,!0);if(n!==Sy)throw new Ct(`Invalid local file header signature at offset ${t}`);const i=this.view.getUint16(t+26,!0),r=this.view.getUint16(t+28,!0),o=t+30+i+r;let{compressedSize:s,uncompressedSize:a,crc32:l}=e;if(e.hasDataDescriptor&&0===s){const e=this.view.getUint32(t+18,!0);e>0&&e!==Iy&&(s=e);const n=this.view.getUint32(t+22,!0);if(n>0&&n!==Iy&&(a=n),0===s){const e=this.findDataDescriptor(o);e&&(l=e.crc,s=e.compressedSize,a=e.uncompressedSize)}}if(o+s>this.data.length)throw new Ct(`Compressed data extends beyond file for entry: ${e.fileName}`);const u=this.data.subarray(o,o+s);let c;if(0===e.compressionMethod)c=u;else{if(8!==e.compressionMethod)throw new Ct(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`);if(0===s&&0===a)c=new Uint8Array(0);else{const e=a>0?Math.min(a,this.maxDecompressedBytes):this.maxDecompressedBytes;c=await Ny(u,e)}}if(0!==l&&c.length>0){const t=Nt(c);if(t!==l)throw new Ct(`CRC-32 mismatch for ${e.fileName}: expected 0x${l.toString(16)}, got 0x${t.toString(16)}`)}return c}extractEntryStream(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new Ct("Local file header extends beyond file");const n=this.view.getUint32(t,!0);if(n!==Sy)throw new Ct(`Invalid local file header signature at offset ${t}`);const i=this.view.getUint16(t+26,!0),r=this.view.getUint16(t+28,!0),o=t+30+i+r;let{compressedSize:s}=e;if(e.hasDataDescriptor&&0===s){const e=this.view.getUint32(t+18,!0);if(e>0&&e!==Iy&&(s=e),0===s){const e=this.findDataDescriptor(o);e&&(s=e.compressedSize)}}if(o+s>this.data.length)throw new Ct(`Compressed data extends beyond file for entry: ${e.fileName}`);const a=this.data.subarray(o,o+s);if(0===e.compressionMethod)return _y(a);if(8===e.compressionMethod){if(0===s&&0===e.uncompressedSize)return new ReadableStream({start(e){e.close()}});const t=e.uncompressedSize>0?Math.min(e.uncompressedSize,this.maxDecompressedBytes):this.maxDecompressedBytes;if(tn()){const e=new ReadableStream({start(e){e.enqueue(a),e.close()}});return e.pipeThrough(new DecompressionStream("deflate-raw")).pipeThrough(xy(t))}return _y($t(a,t))}throw new Ct(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`)}findDataDescriptor(e){for(let t=e;t<this.data.length-16;t++)if(this.view.getUint32(t,!0)===Ey)return{crc:this.view.getUint32(t+4,!0),compressedSize:this.view.getUint32(t+8,!0),uncompressedSize:this.view.getUint32(t+12,!0)};return null}}function Oy(e){const t=Bn(e),n=new Map,i=new Map;for(const r of t.children){if("string"===typeof r)continue;const e=r.local||r.tag;if("Default"===e){const e=r.attrs["Extension"],t=r.attrs["ContentType"];e&&t&&n.set(e,t)}else if("Override"===e){const e=r.attrs["PartName"],t=r.attrs["ContentType"];e&&t&&i.set(e,t)}}return{defaults:n,overrides:i}}function ky(e){const t=Bn(e),n=[];for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;"si"===e&&n.push(By(i))}return n}function By(e){const t=[];let n=null;for(const o of e.children){if("string"===typeof o)continue;const e=o.local||o.tag;"t"===e?n=Gy(o):"r"===e&&t.push(o)}if(0===t.length)return{text:En(n??"")};const i=[],r=[];for(const o of t){let e,t="";for(const i of o.children){if("string"===typeof i)continue;const n=i.local||i.tag;"t"===n?t=Gy(i):"rPr"===n&&(e=Vy(i))}const n=En(t);r.push(n),i.push(e?{text:n,font:e}:{text:n})}return{text:r.join(""),richText:i}}function Gy(e){return e.text??""}function Vy(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"b":t.bold="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"i":t.italic="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"u":{const e=n.attrs["val"];t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"sz":n.attrs["val"]&&(t.size=Number(n.attrs["val"]));break;case"rFont":n.attrs["val"]&&(t.name=n.attrs["val"]);break;case"color":if(t.color={},n.attrs["rgb"]){const e=n.attrs["rgb"];t.color.rgb=8===e.length?e.slice(2):e}n.attrs["theme"]&&(t.color.theme=Number(n.attrs["theme"])),n.attrs["tint"]&&(t.color.tint=Number(n.attrs["tint"])),n.attrs["indexed"]&&(t.color.indexed=Number(n.attrs["indexed"]));break;case"vertAlign":"superscript"!==n.attrs["val"]&&"subscript"!==n.attrs["val"]||(t.vertAlign=n.attrs["val"]);break;case"family":n.attrs["val"]&&(t.family=Number(n.attrs["val"]));break;case"charset":n.attrs["val"]&&(t.charset=Number(n.attrs["val"]));break;case"scheme":"major"!==n.attrs["val"]&&"minor"!==n.attrs["val"]&&"none"!==n.attrs["val"]||(t.scheme=n.attrs["val"]);break}}return t}function Hy(e){const t=new Map,n=[];let i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u=!1,c="",d="",h=-1,p="";return Rn(e,{onOpenTag(e,t){const n=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(n){case"authors":i=!0;break;case"author":i&&(r=!0,c="");break;case"commentList":o=!0;break;case"comment":o&&(s=!0,d=t["ref"]??"",h=t["authorId"]?Number(t["authorId"]):-1,p="");break;case"text":s&&(a=!0);break;case"r":a&&(l=!0);break;case"t":a&&(u=!0);break}},onText(e){r?c+=e:u&&(p+=e)},onCloseTag(e){const f=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(f){case"authors":i=!1;break;case"author":r&&(n.push(c),r=!1);break;case"commentList":o=!1;break;case"comment":if(s&&d){const e={text:p};if(h>=0&&h<n.length){const t=n[h];t&&(e.author=t)}t.set(d,e),s=!1}break;case"text":a=!1;break;case"r":l=!1;break;case"t":u=!1;break}}}),t}function zy(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;if(e===t){const e=n.children.filter(e=>"string"===typeof e).join("");return e||void 0}}}function Uy(e){if(e)return Nr(e)}function Wy(e){const t=Bn(e),n={};for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag,t=i.children.filter(e=>"string"===typeof e).join("");switch(e){case"title":t&&(n.title=t);break;case"subject":t&&(n.subject=t);break;case"creator":t&&(n.creator=t);break;case"keywords":t&&(n.keywords=t);break;case"description":t&&(n.description=t);break;case"lastModifiedBy":t&&(n.lastModifiedBy=t);break;case"category":t&&(n.category=t);break;case"created":if(t){const e=Uy(t);e&&(n.created=e)}break;case"modified":if(t){const e=Uy(t);e&&(n.modified=e)}break}}return n}function $y(e){const t=Bn(e),n={};for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("property"!==e)continue;const t=i.attrs["name"];if(t)for(const r of i.children){if("string"===typeof r)continue;const e=r.local||r.tag,i=r.children.filter(e=>"string"===typeof e).join("");switch(e){case"lpwstr":n[t]=i;break;case"i4":case"i8":case"int":i&&(n[t]=parseInt(i,10));break;case"r8":case"decimal":i&&(n[t]=parseFloat(i));break;case"bool":n[t]="true"===i||"1"===i;break;case"filetime":case"date":if(i){const e=new Date(i);Number.isNaN(e.getTime())||(n[t]=e)}break}break}}return n}function jy(e){const t=Bn(e),n={},i=zy(t,"Company");i&&(n.company=i);const r=zy(t,"Manager");return r&&(n.manager=r),n}const Xy=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Yy(e){const t=new Map;let n=!1,i="";return Rn(e,{onOpenTag(e,r){if("clrScheme"===e||"a:clrScheme"===e)return void(n=!0);if(!n)return;const o=e.includes(":")?e.split(":").pop():e;Xy.includes(o)?i=o:i&&("srgbClr"===o&&r["val"]?t.set(i,r["val"].toUpperCase()):"sysClr"===o&&r["lastClr"]&&t.set(i,r["lastClr"].toUpperCase()))},onCloseTag(e){const t=e.includes(":")?e.split(":").pop():e;"clrScheme"===t&&(n=!1),i&&Xy.includes(t)&&(i="")}}),Xy.map(e=>t.get(e)??"000000")}const Ky="http://schemas.openxmlformats.org/officeDocument/2006/relationships",qy="http://purl.oclc.org/ooxml/officeDocument/relationships";function Zy(e,t){return e===`${Ky}/${t}`||e===`${qy}/${t}`||e.endsWith("/"+t)}function Qy(e,t="(unknown)"){return Mv(e,t)}async function Jy(e,t,n,i){const r=e.declaredSize(t);if(void 0===r||r<=Av)try{return fo(Qy(await e.extract(t),t),n,i)}catch(o){if(!Ev(o))throw o}return go(e.extractStream(t),n,i)}async function eC(e,t){let n,i=await wy(e,t?.maxInputBytes);if(vy(i)){if(!t?.password)throw new bt("xlsx");i=await cg(i,t.password,t.maxSpinCount)}try{n=new Fy(i,t?.maxDecompressedBytes)}catch(K){if(K instanceof Ct)throw K;throw new yt("Failed to open XLSX file: not a valid ZIP archive",void 0,{cause:K})}if(!n.has("[Content_Types].xml"))throw new yt("Invalid XLSX: missing [Content_Types].xml");const r=Qy(await n.extract("[Content_Types].xml"),"[Content_Types].xml");if(Oy(r),!n.has("_rels/.rels"))throw new yt("Invalid XLSX: missing _rels/.rels");const o=Qy(await n.extract("_rels/.rels"),"_rels/.rels"),s=Lv(o),a=s.find(e=>Zy(e.type,"officeDocument"));if(!a)throw new yt("Invalid XLSX: cannot find workbook relationship in _rels/.rels");const l=a.target.startsWith("/")?a.target.slice(1):a.target,u=Nv(l),c=u?`${u}/_rels/${l.slice(u.length+1)}.rels`:`_rels/${l}.rels`;let d=[];if(n.has(c)){const e=Qy(await n.extract(c),c);d=Lv(e)}if(!n.has(l))throw new yt(`Invalid XLSX: missing workbook at ${l}`);const h=Qy(await n.extract(l),l),{sheets:p,dateSystem:f,namedRanges:g,workbookProtection:m,activeSheet:v,pivotCacheRefs:y}=xC(h,t);let C=[];const w=d.find(e=>Zy(e.type,"sharedStrings"));if(w){const e=Pv(u,w.target);if(n.has(e)){const t=Qy(await n.extract(e),e);C=ky(t)}}let x=null;const b=d.find(e=>Zy(e.type,"styles"));if(b){const e=Pv(u,b.target);if(n.has(e)){const t=Qy(await n.extract(e),e);x=kr(t)}}let _;const S=u?`${u}/theme/theme1.xml`:"theme/theme1.xml";if(n.has(S)){const e=Qy(await n.extract(S),S);_=Yy(e)}let A;const T=d.find(e=>Zy(e.type,"person"));if(T){const e=Pv(u,T.target);if(n.has(e)){const t=Qy(await n.extract(e),e);A=Iv(t)}}const E=d.filter(e=>Zy(e.type,"externalLink")).sort((e,t)=>nC(e.id)-nC(t.id)),D=[];for(const q of E){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=iC(e),r=n.has(i)?Qy(await n.extract(i),i):void 0;D.push(kv(t,r))}let M;const I=d.find(e=>e.type===zv);if(I){const e=Pv(u,I.target);if(n.has(e)){const t=Qy(await n.extract(e),e),i=Uv(t),r=iC(e),o=Nv(e),s=new Map;if(n.has(r)){const e=Qy(await n.extract(r),r);for(const t of Lv(e)){if(!Zy(t.type,"image"))continue;const e=Pv(o,t.target);if(!n.has(e))continue;const i=e.split(".").pop()?.toLowerCase()??"",r=rC[i];r&&s.set(t.id,{data:await n.extract(e),type:r})}}const a=Wv(i,s);a.length>0&&(M=a)}}const R=new Map,L=new Map;for(const q of y){const e=d.find(e=>e.id===q.rId);if(!e)continue;const t=Pv(u,e.target);if(!n.has(t))continue;const i=Qy(await n.extract(t),t),r=jv(i);if(!r)continue;r.cacheId=q.cacheId;const o=iC(t);if(n.has(o)){const e=Qy(await n.extract(o),o),t=Lv(e);t.some(e=>Zy(e.type,"pivotCacheRecords"))&&(r.hasRecords=!0)}R.set(q.cacheId,r),L.set(q.rId,r)}const P=y.map(e=>R.get(e.cacheId)).filter(e=>void 0!==e),N=d.filter(e=>Zy(e.type,"slicerCache")).sort((e,t)=>tC(e.target)-tC(t.target)),F=[];for(const q of N){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=Zv(t);i&&F.push(i)}const O=d.filter(e=>Zy(e.type,"timelineCache")).sort((e,t)=>tC(e.target)-tC(t.target)),k=[];for(const q of O){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=Jv(t);i&&k.push(i)}let B;const G=d.find(e=>Zy(e.type,"sheetMetadata"));if(G){const e=Pv(u,G.target);n.has(e)&&(B=Qn(Qy(await n.extract(e),e)))}const V=new Map,H=new Map;for(const q of d)Zy(q.type,"worksheet")?V.set(q.id,Pv(u,q.target)):Zy(q.type,"chartsheet")?H.set(q.id,"chartsheet"):Zy(q.type,"dialogsheet")&&H.set(q.id,"dialogsheet");const z=bC(p,t?.sheets),U=t?.readStyles??!1,W=[];for(const q of z){const e=H.get(q.rId);if(void 0!==e){const t={name:q.name,rows:[],kind:e};"hidden"===q.state&&(t.hidden=!0),"veryHidden"===q.state&&(t.veryHidden=!0),W.push(t);continue}const i=V.get(q.rId);if(!i||!n.has(i))throw new yt(`Invalid XLSX: missing worksheet file for sheet "${q.name}"`);const r=Nv(i),o=iC(i);let s;if(n.has(o)){const e=Qy(await n.extract(o),o);s=Lv(e)}const a={sharedStrings:C,styles:x,readStyles:U,dateSystem:f,worksheetRels:s,maxRows:t?.maxRows,range:t?.range,maxTotalCells:t?.maxTotalCells,sparse:t?.sparse,dynamicArrayCm:B,sheetName:q.name,onWarning:t?.onWarning},l=await Jy(n,i,q.name,a);if("hidden"===q.state&&(l.hidden=!0),"veryHidden"===q.state&&(l.veryHidden=!0),s){const e=s.find(e=>Zy(e.type,"drawing"));if(e){const t=Pv(r,e.target),i=await oC(n,t);if(i.images.length>0&&(l.images=i.images),i.textBoxes.length>0&&(l.textBoxes=i.textBoxes),i.chartRefs.length>0){const e=[];for(const t of i.chartRefs){if(!n.has(t.path))continue;const i=Qy(await n.extract(t.path),t.path),r=ry(i);r&&(t.anchor&&(r.anchor=t.anchor),t.altText&&(r.altText=t.altText),t.frameTitle&&(r.frameTitle=t.frameTitle),e.push(r))}e.length>0&&(l.charts=e)}}}if(s){const e=s.find(e=>Zy(e.type,"comments"));if(e){const t=Pv(r,e.target);if(n.has(t)){const e=Qy(await n.extract(t),t),i=Hy(e);if(i.size>0){l.cells||(l.cells=new Map);for(const[e,t]of i){const n=uo(e),i=`${n.row},${n.col}`;let r=l.cells.get(i);r||(r={value:(l.rows[n.row]&&l.rows[n.row][n.col])??null,type:"string"},l.cells.set(i,r)),r.comment=t}}}}const t=s.find(e=>Zy(e.type,"threadedComment"));if(t){const e=Pv(r,t.target);if(n.has(e)){const t=Qy(await n.extract(e),e),i=Rv(t);i.length>0&&(l.threadedComments=i)}}}if(s){const e=s.filter(e=>Zy(e.type,"table"));if(e.length>0){const t=[];for(const i of e){const e=Pv(r,i.target);if(n.has(e)){const i=Qy(await n.extract(e),e),r=_C(i);r&&t.push(r)}}t.length>0&&(l.tables=t)}}if(s){const e=s.find(e=>Zy(e.type,"image"));if(e){const t=Pv(r,e.target);n.has(t)&&(l.backgroundImage=await n.extract(t))}}if(s){const e=s.filter(e=>Zy(e.type,"pivotTable"));if(e.length>0){const t=[];for(const i of e){const e=Pv(r,i.target);if(!n.has(e))continue;const o=Qy(await n.extract(e),e),s=Xv(o);if(!s)continue;const a=iC(e);if(n.has(a)){const t=Qy(await n.extract(a),a),i=Lv(t),r=i.find(e=>Zy(e.type,"pivotCacheDefinition"));if(r){const t=Pv(Nv(e),r.target);for(const e of y){const n=d.find(t=>t.id===e.rId);if(!n)continue;const i=Pv(u,n.target);if(i===t){s.cacheId=e.cacheId;break}}}}const l=R.get(s.cacheId);l&&Yv(s,l),t.push(s)}t.length>0&&(l.pivotTables=t)}const t=s.filter(e=>Zy(e.type,"slicer"));if(t.length>0){const e=[];for(const i of t){const t=Pv(r,i.target);if(!n.has(t))continue;const o=Qy(await n.extract(t),t);for(const n of qv(o))e.push(n)}e.length>0&&(l.slicers=e)}const i=s.filter(e=>Zy(e.type,"timeline"));if(i.length>0){const e=[];for(const t of i){const i=Pv(r,t.target);if(!n.has(i))continue;const o=Qy(await n.extract(i),i);for(const t of Qv(o))e.push(t)}e.length>0&&(l.timelines=e)}}W.push(l)}let $;if(n.has("docProps/core.xml")){const e=Qy(await n.extract("docProps/core.xml"),"docProps/core.xml"),t=Wy(e);Object.keys(t).length>0&&($={...t})}if(n.has("docProps/app.xml")){const e=Qy(await n.extract("docProps/app.xml"),"docProps/app.xml"),t=jy(e);Object.keys(t).length>0&&($={...$,...t})}if(n.has("docProps/custom.xml")){const e=Qy(await n.extract("docProps/custom.xml"),"docProps/custom.xml"),t=$y(e);Object.keys(t).length>0&&($||($={}),$.custom=t)}const j={sheets:W,dateSystem:f},X=CC(W,g);X.length>0&&(j.namedRanges=X),$&&(j.properties=$),_&&(j.themeColors=_),m&&(j.workbookProtection=m),void 0!==v&&(j.activeSheet=v);const Y=x?.fonts[0];return Y&&Object.keys(Y).length>0&&(j.defaultFont=Y),A&&A.length>0&&(j.persons=A),D.length>0&&(j.externalLinks=D),M&&M.length>0&&(j.cellImages=M),P.length>0&&(j.pivotCaches=P),F.length>0&&(j.slicerCaches=F),k.length>0&&(j.timelineCaches=k),j}function tC(e){const t=e.match(/(\d+)\.xml$/i);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function nC(e){const t=e.match(/(\d+)$/);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function iC(e){const t=e.lastIndexOf("/");return-1===t?`_rels/${e}.rels`:`${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}const rC={png:"png",jpg:"jpeg",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"};async function oC(e,t){if(!e.has(t))return{images:[],textBoxes:[],chartRefs:[]};const n=Qy(await e.extract(t),t),i=Nv(t),r=iC(t),o=new Map,s=new Map;if(e.has(r)){const t=Qy(await e.extract(r),r),n=Lv(t);for(const e of n)Zy(e.type,"image")?o.set(e.id,Pv(i,e.target)):Zy(e.type,"chart")&&s.set(e.id,Pv(i,e.target))}const a=Bn(n),l=[],u=[],c=[];for(const d of a.children){if("string"===typeof d)continue;const t=d.local||d.tag;if("twoCellAnchor"===t||"oneCellAnchor"===t||"absoluteAnchor"===t){const e=aC(d);if(e){const n=s.get(e);if(n&&!c.some(e=>e.path===n)){const e="absoluteAnchor"===t?void 0:sC(d,t),i={path:n};e&&(i.anchor=e);const r=dC(d,"graphicFrame");if(r){const e=gC(r,"nvGraphicFramePr");e.altText&&(i.altText=e.altText),e.title&&(i.frameTitle=e.title)}c.push(i)}}}if("twoCellAnchor"===t){const t=cC(d);if(t){u.push(t);continue}const n=lC(d,o);if(n){const t=n.mediaPath;if(e.has(t)){const i=await e.extract(t),r={data:i,type:n.type,anchor:n.anchor};void 0!==n.width&&(r.width=n.width),void 0!==n.height&&(r.height=n.height),void 0!==n.altText&&(r.altText=n.altText),void 0!==n.title&&(r.title=n.title),l.push(r)}}}else if("oneCellAnchor"===t){const t=fC(d,o);if(t){const n=t.mediaPath;if(e.has(n)){const i=await e.extract(n),r={data:i,type:t.type,anchor:t.anchor};void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),void 0!==t.altText&&(r.altText=t.altText),void 0!==t.title&&(r.title=t.title),l.push(r)}}}}return{images:l,textBoxes:u,chartRefs:c}}function sC(e,t){let n,i;for(const r of e.children){if("string"===typeof r)continue;const e=r,t=e.local||e.tag;"from"===t?n=mC(e):"to"===t&&(i=mC(e))}if(n)return"twoCellAnchor"===t&&i?{from:n,to:i}:{from:n}}function aC(e){for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("chart"===n){const t=e.attrs["r:id"]??e.attrs["id"];if(t)return t}const i=aC(e);if(i)return i}}function lC(e,t){let n,i,r,o,s=0,a=0,l=0,u=0;for(const f of e.children){if("string"===typeof f)continue;const e=f,t=e.local||e.tag;if("from"===t){const t=mC(e);s=t.row,a=t.col}else if("to"===t){const t=mC(e);l=t.row,u=t.col}else if("pic"===t){n=vC(e);const t=gC(e,"nvPicPr");i=t.altText,r=t.title,o=uC(e)}}if(!n)return null;const c=t.get(n);if(!c)return null;const d=c.split(".").pop()?.toLowerCase()??"",h=rC[d]??"png",p={mediaPath:c,type:h,anchor:{from:{row:s,col:a},to:{row:l,col:u}}};return o&&(p.width=o.width,p.height=o.height),i&&(p.altText=i),r&&(p.title=r),p}function uC(e){const t=dC(e,"spPr");if(!t)return;const n=dC(t,"xfrm");if(!n)return;const i=dC(n,"ext");if(!i)return;const r=Number(i.attrs["cx"]),o=Number(i.attrs["cy"]);return r>0&&o>0?{width:Math.round(r/pC),height:Math.round(o/pC)}:void 0}function cC(e){let t=0,n=0,i=0,r=0,o=null;for(const C of e.children){if("string"===typeof C)continue;const e=C,s=e.local||e.tag;if("from"===s){const i=mC(e);t=i.row,n=i.col}else if("to"===s){const t=mC(e);i=t.row,r=t.col}else if("sp"===s){const t=dC(e,"nvSpPr");if(t){const n=dC(t,"cNvSpPr");!n||"1"!==n.attrs["txBox"]&&"true"!==n.attrs["txBox"]||(o=e)}}}if(!o)return null;const s=dC(o,"txBody");let a,l,u,c,d,h="";if(s){const e=[];for(const t of s.children){if("string"===typeof t)continue;const n=t.local||t.tag;if("p"===n){const n=hC(t);e.push(n.text),void 0!==n.fontSize&&void 0===a&&(a=n.fontSize),void 0!==n.bold&&void 0===l&&(l=n.bold),void 0!==n.color&&void 0===u&&(u=n.color)}}h=e.join("\n")}if(!h)return null;const p=dC(o,"spPr");if(p){const e=dC(p,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(c=t.attrs["val"])}const t=dC(p,"ln");if(t){const e=dC(t,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(d=t.attrs["val"])}}}const f={text:h,anchor:{from:{row:t,col:n},to:{row:i,col:r}}},g=uC(o);g&&(f.width=g.width,f.height=g.height);const m=gC(o,"nvSpPr");m.altText&&(f.altText=m.altText),m.title&&(f.title=m.title);const v={};let y=!1;return void 0!==a&&(v.fontSize=a,y=!0),void 0!==l&&(v.bold=l,y=!0),void 0!==u&&(v.color=u,y=!0),void 0!==c&&(v.fillColor=c,y=!0),void 0!==d&&(v.borderColor=d,y=!0),y&&(f.style=v),f}function dC(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n,i=e.local||e.tag;if(i===t)return e}return null}function hC(e){let t,n,i,r="";for(const o of e.children){if("string"===typeof o)continue;const e=o,s=e.local||e.tag;if("r"===s){const o=dC(e,"rPr");if(o){o.attrs["sz"]&&(t=Number(o.attrs["sz"])/100),"1"!==o.attrs["b"]&&"true"!==o.attrs["b"]||(n=!0);const e=dC(o,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(i=t.attrs["val"])}}const s=dC(e,"t");s&&(r+=s.children.filter(e=>"string"===typeof e).join(""))}}return{text:r,fontSize:t,bold:n,color:i}}const pC=9525;function fC(e,t){let n,i,r,o=0,s=0,a=0,l=0;for(const p of e.children){if("string"===typeof p)continue;const e=p,t=e.local||e.tag;if("from"===t){const t=mC(e);o=t.row,s=t.col}else if("ext"===t)a=Number(e.attrs["cx"])||0,l=Number(e.attrs["cy"])||0;else if("pic"===t){n=vC(e);const t=gC(e,"nvPicPr");i=t.altText,r=t.title}}if(!n)return null;const u=t.get(n);if(!u)return null;const c=u.split(".").pop()?.toLowerCase()??"",d=rC[c]??"png",h={mediaPath:u,type:d,anchor:{from:{row:o,col:s}}};return a>0&&(h.width=Math.round(a/pC)),l>0&&(h.height=Math.round(l/pC)),i&&(h.altText=i),r&&(h.title=r),h}function gC(e,t){const n=dC(e,t);if(!n)return{};const i=dC(n,"cNvPr");if(!i)return{};const r={};return i.attrs["descr"]&&(r.altText=i.attrs["descr"]),i.attrs["title"]&&(r.title=i.attrs["title"]),r}function mC(e){let t=0,n=0;for(const i of e.children){if("string"===typeof i)continue;const e=i,r=e.local||e.tag,o=e.children.filter(e=>"string"===typeof e).join("");"row"===r?t=Number(o)||0:"col"===r&&(n=Number(o)||0)}return{row:t,col:n}}function vC(e){for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("blipFill"===n)for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("blip"===n)return e.attrs["r:embed"]??e.attrs["R:embed"]??yC(e.attrs)}}}function yC(e){for(const t of Object.keys(e))if(t.endsWith(":embed")&&e[t].startsWith("rId"))return e[t]}function CC(e,t){if(0===t.length)return t;const n=new Map;for(const r of e)n.set(r.name,r);const i=[];for(const r of t){const e="_xlnm.Print_Area"===r.name,t="_xlnm.Print_Titles"===r.name,o=void 0!==r.scope?n.get(r.scope):void 0;if(!e&&!t||!o){i.push(r);continue}const s=o.pageSetup??(o.pageSetup={});if(e){const e=r.range.split(",").map(wC).filter(e=>e.length>0).join(",");e&&(s.printArea=e)}else for(const n of r.range.split(",")){const e=wC(n);e&&(/\d/.test(e)?s.printTitlesRow=e:s.printTitlesColumn=e)}}return i}function wC(e){const t=e.trim(),n=t.lastIndexOf("!");return-1===n?t:t.slice(n+1)}function xC(e,t){const n=Bn(e),i=[],r=[],o=[];let s,a,l="1900";"1904"===t?.dateSystem?l="1904":"1900"===t?.dateSystem&&(l="1900");for(const u of n.children){if("string"===typeof u)continue;const e=u.local||u.tag;if("workbookPr"===e&&("1"!==u.attrs["date1904"]&&"true"!==u.attrs["date1904"]||t?.dateSystem&&"auto"!==t.dateSystem||(l="1904")),"workbookProtection"===e){const e="1"===u.attrs["lockStructure"]||"true"===u.attrs["lockStructure"],t="1"===u.attrs["lockWindows"]||"true"===u.attrs["lockWindows"];(e||t)&&(s={},e&&(s.lockStructure=!0),t&&(s.lockWindows=!0))}if("bookViews"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("workbookView"!==e)continue;const n=Number(t.attrs["activeTab"]);Number.isInteger(n)&&n>0&&void 0===a&&(a=n)}if("sheets"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("sheet"===e){const e=t.attrs["name"]??"",n=Number(t.attrs["sheetId"]??"0"),r=t.attrs["r:id"]??t.attrs["R:id"]??Fv(t.attrs)??"",o=t.attrs["state"];let s="visible";"hidden"===o?s="hidden":"veryHidden"===o&&(s="veryHidden"),e&&r&&i.push({name:e,sheetId:n,rId:r,state:s})}}if("pivotCaches"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("pivotCache"===e){const e=t.attrs["cacheId"],n=void 0===e?NaN:Number(e),i=t.attrs["r:id"]??t.attrs["R:id"]??Fv(t.attrs)??"";i&&!Number.isNaN(n)&&o.push({cacheId:n,rId:i})}}}for(const u of n.children){if("string"===typeof u)continue;const e=u.local||u.tag;if("definedNames"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("definedName"===e){const e=t.attrs["name"]??"",n=t.children.filter(e=>"string"===typeof e).join("");if(e&&n){const o={name:e,range:n},s=t.attrs["localSheetId"];if(void 0!==s){const e=Number(s);e>=0&&e<i.length&&(o.scope=i[e].name)}t.attrs["comment"]&&(o.comment=t.attrs["comment"]),r.push(o)}}}}return{sheets:i,dateSystem:l,namedRanges:r,workbookProtection:s,activeSheet:a,pivotCacheRefs:o}}function bC(e,t){if(void 0===t)return e;if("function"===typeof t){const n=[];for(let i=0;i<e.length;i++){const r=e[i],o=t({name:r.name,index:i,hidden:"hidden"===r.state,veryHidden:"veryHidden"===r.state},i);o&&n.push(r)}return n}if(0===t.length)return e;const n=[];for(const i of t)if("number"===typeof i)i>=0&&i<e.length&&n.push(e[i]);else{const t=e.find(e=>e.name===i);t&&n.push(t)}return n}function _C(e){const t=Bn(e),n=t.attrs["name"]??"",i=t.attrs["displayName"]??n,r=t.attrs["ref"]??"";if(!n)return null;const o=t.attrs["totalsRowCount"],s=void 0!==o&&"0"!==o,a=[];let l,u,c,d=!1;for(const p of t.children){if("string"===typeof p)continue;const e=p.local||p.tag;if("autoFilter"===e)d=!0;else if("tableColumns"===e)for(const t of p.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("tableColumn"===e){const e={name:t.attrs["name"]??""};t.attrs["totalsRowFunction"]&&(e.totalFunction=t.attrs["totalsRowFunction"]),t.attrs["totalsRowLabel"]&&(e.totalLabel=t.attrs["totalsRowLabel"]);for(const n of t.children){if("string"===typeof n)continue;const t=n.local||n.tag;if("totalsRowFormula"===t){const t=n.children.filter(e=>"string"===typeof e).join("");t&&(e.totalFormula=t)}}a.push(e)}}else"tableStyleInfo"===e&&(l=p.attrs["name"],u="1"===p.attrs["showRowStripes"],c="1"===p.attrs["showColumnStripes"])}const h={name:n,columns:a};return i&&i!==n&&(h.displayName=i),r&&(h.range=r),l&&(h.style=l),void 0!==u&&(h.showRowStripes=u),void 0!==c&&(h.showColumnStripes=c),h.showAutoFilter=d,s&&(h.showTotalRow=!0),h}var SC=n(7417);function AC(e,t=!0){let n='"',i=t?"\ufeff":"";return(0,a.A)(e,e=>{let t=[];(0,a.A)(e,e=>{(0,Ie.A)(e)?(e=(0,SC.A)(e,"\r\n",""),e=(0,SC.A)(e,"\r",""),e=(0,SC.A)(e,"\n",""),e=`${n}${e}${n}`):e=(0,Ne.A)(e)?e?"true":"false":(0,Ge.A)(e),t.push(e)}),i+=(0,Y.A)(t,",")+"\r\n"}),i}function TC(e,t=!0){if(!(0,Me.A)(e)){let e="no data";return{error:e}}let n=null;try{n=AC(e,t)}catch(i){return{error:i}}return n}var EC=TC;function DC(e){return(0,Ne.A)(e)?e?"true":"false":(0,Ge.A)(e)}function MC(e,t){let n=[];return(0,a.A)(e,e=>{let i=(0,s.A)(e.rows,e=>(0,s.A)(e,e=>null===e?"":t?DC(e):e));n.push({sheetname:e.name,data:i})}),n}function IC(e,t){let n=[];return(0,a.A)(e,e=>{let i=e.rows,r=(0,s.A)((0,j.A)(i,0,[]),e=>null===e||""===e?null:DC(e)),o=[];for(let n=1;n<i.length;n++){let e=i[n],s=(0,st.A)(e,e=>null===e);if(s)continue;let a={};for(let n=0;n<r.length;n++){if(null===r[n])continue;let i=(0,j.A)(e,n,null);null!==i&&(t&&(i=DC(i)),a[r[n]]=i)}o.push(a)}n.push({sheetname:e.name,data:o})}),n}function RC(e,t){let n=MC(e,t),i=!1;return(0,a.A)(n,(e,t)=>{n[t].data=EC(e.data,i)}),n}async function LC(e,t){let n=(0,j.A)(t,"fmt","ltdt");if(!(0,ge.A)(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let i,r=(0,j.A)(t,"valueToString",!0);if(!(0,Ne.A)(r))return{error:"opt.valueToString is not a boolean"};try{i=await eC(e)}catch(s){return console.log("error: ",s),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=IC(i.sheets,r):"array"===n?o=MC(i.sheets,r):"csv"===n&&(o=RC(i.sheets,r))}catch(s){return console.log("error: ",s),{error:"can not convert data"}}return o}var PC=LC,NC=n(4636),FC=n(754),OC=n(9956);function kC(e,t=!1,n={}){let i=(0,j.A)(n,"returnWithStateAndMsg",null);(0,Ne.A)(i)||(i=!1);let r=e=>i?{state:"error",msg:e}:"";if(!(0,Re.A)(e))return r("invalid str");(0,Ne.A)(t)||(t=!1);let o="";try{let n=NC(e);o=t?n.toString(FC):n.toString(OC)}catch(s){return r(s.toString())}return i?{state:"success",msg:o}:o}var BC=kC,GC=n(3360),VC=n(9526),HC=n(7924),zC=n(455),UC=n(9068),WC=n(5059),$C=n(1262),jC=n(6607),XC=n(8490),YC=n(6489),KC=n(4575),qC=n(2632),ZC=n(6979),QC=n(5446),JC=n(7275),ew=n(9703),tw=n(6523),nw=n(4318),iw=n(1007),rw=n(4278),ow=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,nw.A)("number"!==typeof e?e:(0,iw.A)(e,rw.OM))};function sw(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=(0,qC.A)(n.placement),l=(0,ew.A)(a),u=[rw.kb,rw.pG].indexOf(a)>=0,c=u?"height":"width";if(o&&s){var d=ow(r.padding,n),h=(0,ZC.A)(o),p="y"===l?rw.Mn:rw.kb,f="y"===l?rw.sQ:rw.pG,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=(0,JC.A)(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,C=g/2-m/2,w=d[p],x=y-h[c]-d[f],b=y/2-h[c]/2+C,_=(0,tw.u)(w,b,x),S=l;n.modifiersData[i]=(t={},t[S]=_,t.centerOffset=_-b,t)}}function aw(e){var t=e.state,n=e.options,i=n.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r),r))&&(0,QC.A)(t.elements.popper,r)&&(t.elements.arrow=r)}var lw={name:"arrow",enabled:!0,phase:"main",fn:sw,effect:aw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},uw=n(9081),cw=[UC.A,WC.A,$C.A,jC.A,XC.A,YC.A,KC.A,lw,uw.A],dw=(0,zC.U)({defaultModifiers:cw}),hw="tippy-box",pw="tippy-content",fw="tippy-backdrop",gw="tippy-arrow",mw="tippy-svg-arrow",vw={passive:!0,capture:!0},yw=function(){return document.body};function Cw(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function ww(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function xw(e,t){return"function"===typeof e?e.apply(void 0,t):e}function bw(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function _w(e){return e.split(/\s+/).filter(Boolean)}function Sw(e){return[].concat(e)}function Aw(e,t){-1===e.indexOf(t)&&e.push(t)}function Tw(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Ew(e){return e.split("-")[0]}function Dw(e){return[].slice.call(e)}function Mw(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Iw(){return document.createElement("div")}function Rw(e){return["Element","Fragment"].some(function(t){return ww(e,t)})}function Lw(e){return ww(e,"NodeList")}function Pw(e){return ww(e,"MouseEvent")}function Nw(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Fw(e){return Rw(e)?[e]:Lw(e)?Dw(e):Array.isArray(e)?e:Dw(document.querySelectorAll(e))}function Ow(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function kw(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Bw(e){var t,n=Sw(e),i=n[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Gw(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props,s=o.interactiveBorder,a=Ew(r.placement),l=r.modifiersData.offset;if(!l)return!0;var u="bottom"===a?l.top.y:0,c="top"===a?l.bottom.y:0,d="right"===a?l.left.x:0,h="left"===a?l.right.x:0,p=t.top-i+u>s,f=i-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-h>s;return p||f||g||m})}function Vw(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Hw(e,t){var n=t;while(n){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var zw={isTouch:!1},Uw=0;function Ww(){zw.isTouch||(zw.isTouch=!0,window.performance&&document.addEventListener("mousemove",$w))}function $w(){var e=performance.now();e-Uw<20&&(zw.isTouch=!1,document.removeEventListener("mousemove",$w)),Uw=e}function jw(){var e=document.activeElement;if(Nw(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Xw(){document.addEventListener("touchstart",Ww,vw),window.addEventListener("blur",jw)}var Yw="undefined"!==typeof window&&"undefined"!==typeof document,Kw=!!Yw&&!!window.msCrypto;var qw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Zw={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Qw=Object.assign({appendTo:yw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},qw,Zw),Jw=Object.keys(Qw),ex=function(e){var t=Object.keys(e);t.forEach(function(t){Qw[t]=e[t]})};function tx(e){var t=e.plugins||[],n=t.reduce(function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Qw[r])?i:o);return t},{});return Object.assign({},e,n)}function nx(e,t){var n=t?Object.keys(tx(Object.assign({},Qw,{plugins:t}))):Jw,i=n.reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(r){t[n]=i}return t},{});return i}function ix(e,t){var n=Object.assign({},t,{content:xw(t.content,[e])},t.ignoreAttributes?{}:nx(e,t.plugins));return n.aria=Object.assign({},Qw.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var rx=function(){return"innerHTML"};function ox(e,t){e[rx()]=t}function sx(e){var t=Iw();return!0===e?t.className=gw:(t.className=mw,Rw(e)?t.appendChild(e):ox(t,e)),t}function ax(e,t){Rw(t.content)?(ox(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?ox(e,t.content):e.textContent=t.content)}function lx(e){var t=e.firstElementChild,n=Dw(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(pw)}),arrow:n.find(function(e){return e.classList.contains(gw)||e.classList.contains(mw)}),backdrop:n.find(function(e){return e.classList.contains(fw)})}}function ux(e){var t=Iw(),n=Iw();n.className=hw,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Iw();function r(n,i){var r=lx(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"===typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"===typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||ax(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(sx(i.arrow))):o.appendChild(sx(i.arrow)):a&&o.removeChild(a)}return i.className=pw,i.setAttribute("data-state","hidden"),ax(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}ux.$$tippy=!0;var cx=1,dx=[],hx=[];function px(e,t){var n,i,r,o,s,a,l,u=ix(e,Object.assign({},Qw,tx(Mw(t)))),c=!1,d=!1,h=!1,p=!1,f=[],g=bw(q,u.interactiveDebounce),m=cx++,v=null,y=Tw(u.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:Iw(),popperInstance:v,props:u,state:C,plugins:y,clearDelayTimeouts:le,setProps:ue,setContent:ce,show:de,hide:he,hideWithInteractivity:pe,enable:se,disable:ae,unmount:fe,destroy:ge};if(!u.render)return w;var x=u.render(w),b=x.popper,_=x.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+w.id,w.popper=b,e._tippy=w,b._tippy=w;var S=y.map(function(e){return e.fn(w)}),A=e.hasAttribute("aria-expanded");return X(),O(),P(),N("onCreate",[w]),u.showOnCreate&&re(),b.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),b.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",g)}),w;function T(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===T()[0]}function D(){var e;return!(null==(e=w.props.render)||!e.$$tippy)}function M(){return l||e}function I(){var e=M().parentNode;return e?Bw(e):document}function R(){return lx(b)}function L(e){return w.state.isMounted&&!w.state.isVisible||zw.isTouch||o&&"focus"===o.type?0:Cw(w.props.delay,e?0:1,Qw.delay)}function P(e){void 0===e&&(e=!1),b.style.pointerEvents=w.props.interactive&&!e?"":"none",b.style.zIndex=""+w.props.zIndex}function N(e,t,n){var i;(void 0===n&&(n=!0),S.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=w.props)[e].apply(i,t)}function F(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,i=b.id,r=Sw(w.props.triggerTarget||e);r.forEach(function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function O(){if(!A&&w.props.aria.expanded){var t=Sw(w.props.triggerTarget||e);t.forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}}function k(){I().removeEventListener("mousemove",g),dx=dx.filter(function(e){return e!==g})}function B(t){if(!zw.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!w.props.interactive||!Hw(b,n)){if(Sw(w.props.triggerTarget||e).some(function(e){return Hw(e,n)})){if(zw.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout(function(){d=!1}),w.state.isMounted||z())}}}function G(){h=!0}function V(){h=!1}function H(){var e=I();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vw),e.addEventListener("touchstart",V,vw),e.addEventListener("touchmove",G,vw)}function z(){var e=I();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vw),e.removeEventListener("touchstart",V,vw),e.removeEventListener("touchmove",G,vw)}function U(e,t){$(e,function(){!w.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()})}function W(e,t){$(e,t)}function $(e,t){var n=R().box;function i(e){e.target===n&&(Vw(n,"remove",i),t())}if(0===e)return t();Vw(n,"remove",s),Vw(n,"add",i),s=i}function j(t,n,i){void 0===i&&(i=!1);var r=Sw(w.props.triggerTarget||e);r.forEach(function(e){e.addEventListener(t,n,i),f.push({node:e,eventType:t,handler:n,options:i})})}function X(){E()&&(j("touchstart",K,{passive:!0}),j("touchend",Z,{passive:!0})),_w(w.props.trigger).forEach(function(e){if("manual"!==e)switch(j(e,K),e){case"mouseenter":j("mouseleave",Z);break;case"focus":j(Kw?"focusout":"blur",Q);break;case"focusin":j("focusout",Q);break}})}function Y(){f.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),f=[]}function K(e){var t,n=!1;if(w.state.isEnabled&&!J(e)&&!d){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,O(),!w.state.isVisible&&Pw(e)&&dx.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||c)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:re(e),"click"===e.type&&(c=!n),n&&!i&&oe(e)}}function q(e){var t=e.target,n=M().contains(t)||b.contains(t);if("mousemove"!==e.type||!n){var i=ie().concat(b).map(function(e){var t,n=e._tippy,i=null==(t=n.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:u}:null}).filter(Boolean);Gw(i,e)&&(k(),oe(e))}}function Z(e){var t=J(e)||w.props.trigger.indexOf("click")>=0&&c;t||(w.props.interactive?w.hideWithInteractivity(e):oe(e))}function Q(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||oe(e)}function J(e){return!!zw.isTouch&&E()!==e.type.indexOf("touch")>=0}function ee(){te();var t=w.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=D()?lx(b).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var n=R(),i=n.box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},c];D()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),w.popperInstance=dw(u,b,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function te(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ne(){var e,t=w.props.appendTo,n=M();e=w.props.interactive&&t===yw||"parent"===t?n.parentNode:xw(t,[n]),e.contains(b)||e.appendChild(b),w.state.isMounted=!0,ee()}function ie(){return Dw(b.querySelectorAll("[data-tippy-root]"))}function re(e){w.clearDelayTimeouts(),e&&N("onTrigger",[w,e]),H();var t=L(!0),i=T(),r=i[0],o=i[1];zw.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout(function(){w.show()},t):w.show()}function oe(e){if(w.clearDelayTimeouts(),N("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&c)){var t=L(!1);t?i=setTimeout(function(){w.state.isVisible&&w.hide()},t):r=requestAnimationFrame(function(){w.hide()})}}else z()}function se(){w.state.isEnabled=!0}function ae(){w.hide(),w.state.isEnabled=!1}function le(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)}function ue(t){if(!w.state.isDestroyed){N("onBeforeUpdate",[w,t]),Y();var n=w.props,i=ix(e,Object.assign({},n,Mw(t),{ignoreAttributes:!0}));w.props=i,X(),n.interactiveDebounce!==i.interactiveDebounce&&(k(),g=bw(q,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?Sw(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded"),O(),P(),_&&_(n,i),w.popperInstance&&(ee(),ie().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N("onAfterUpdate",[w,t])}}function ce(e){w.setProps({content:e})}function de(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=zw.isTouch&&!w.props.touch,r=Cw(w.props.duration,0,Qw.duration);if(!(e||t||n||i)&&!M().hasAttribute("disabled")&&(N("onShow",[w],!1),!1!==w.props.onShow(w))){if(w.state.isVisible=!0,D()&&(b.style.visibility="visible"),P(),H(),w.state.isMounted||(b.style.transition="none"),D()){var o=R(),s=o.box,l=o.content;Ow([s,l],0)}a=function(){var e;if(w.state.isVisible&&!p){if(p=!0,b.offsetHeight,b.style.transition=w.props.moveTransition,D()&&w.props.animation){var t=R(),n=t.box,i=t.content;Ow([n,i],r),kw([n,i],"visible")}F(),O(),Aw(hx,w),null==(e=w.popperInstance)||e.forceUpdate(),N("onMount",[w]),w.props.animation&&D()&&W(r,function(){w.state.isShown=!0,N("onShown",[w])})}},ne()}}function he(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=Cw(w.props.duration,1,Qw.duration);if(!(e||t||n)&&(N("onHide",[w],!1),!1!==w.props.onHide(w))){if(w.state.isVisible=!1,w.state.isShown=!1,p=!1,c=!1,D()&&(b.style.visibility="hidden"),k(),z(),P(!0),D()){var r=R(),o=r.box,s=r.content;w.props.animation&&(Ow([o,s],i),kw([o,s],"hidden"))}F(),O(),w.props.animation?D()&&U(i,w.unmount):w.unmount()}}function pe(e){I().addEventListener("mousemove",g),Aw(dx,g),g(e)}function fe(){w.state.isVisible&&w.hide(),w.state.isMounted&&(te(),ie().forEach(function(e){e._tippy.unmount()}),b.parentNode&&b.parentNode.removeChild(b),hx=hx.filter(function(e){return e!==w}),w.state.isMounted=!1,N("onHidden",[w]))}function ge(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Y(),delete e._tippy,w.state.isDestroyed=!0,N("onDestroy",[w]))}}function fx(e,t){void 0===t&&(t={});var n=Qw.plugins.concat(t.plugins||[]);Xw();var i=Object.assign({},t,{plugins:n}),r=Fw(e),o=r.reduce(function(e,t){var n=t&&px(t,i);return n&&e.push(n),e},[]);return Rw(e)?o[0]:o}fx.defaultProps=Qw,fx.setDefaultProps=ex,fx.currentInput=zw;Object.assign({},jC.A,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});fx.setDefaultProps({render:ux});var gx=fx;function mx(e,t,n={}){let i=null,r=null;function o(){null!==i&&i.destroy(!0),e.setAttribute("tippystate",""),clearInterval(r)}let s={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=(0,De.A)(n)?$(s,n):s;let a=t;t||(a=e.innerHTML);let l=e.getAttribute("tippystate"),u=(0,Le.A)(l);if(e.setAttribute("tippystate","5"),u)return;a=`<div style="text-align:left;">${a}</div>`;let c=gx;gx["default"]&&(c=gx["default"]),i=c(e,{...n,content:a,allowHTML:!0,onHidden(){o()},onDestroy(){i=null,o()}}),i.show(),r=setInterval(()=>{let t=e.getAttribute("tippystate");(0,Le.A)(t)?(t=(0,Ve.A)(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)}var vx=mx,yx=n(5471);
1
+ (self["webpackChunkw_web_perm"]=self["webpackChunkw_web_perm"]||[]).push([[504],{9165:function(e,t,n){"use strict";n.d(t,{$BT:function(){return C},BCx:function(){return m},BGS:function(){return b},Ec0:function(){return _},ExW:function(){return T},FhF:function(){return F},H9P:function(){return M},KsW:function(){return D},NG3:function(){return c},Ohs:function(){return S},SBy:function(){return p},Tfj:function(){return u},UOc:function(){return A},UkR:function(){return h},WyW:function(){return O},X2n:function(){return L},XHW:function(){return v},Za0:function(){return y},Znq:function(){return r},_Jj:function(){return f},aN1:function(){return R},biz:function(){return I},bmu:function(){return s},dgQ:function(){return i},e6K:function(){return l},hyP:function(){return g},jq2:function(){return w},sQ3:function(){return E},sX4:function(){return N},sw5:function(){return P},tGM:function(){return x},uHb:function(){return d},y6z:function(){return o},zoO:function(){return a}});var i="M12,5A3.5,3.5 0 0,0 8.5,8.5A3.5,3.5 0 0,0 12,12A3.5,3.5 0 0,0 15.5,8.5A3.5,3.5 0 0,0 12,5M12,7A1.5,1.5 0 0,1 13.5,8.5A1.5,1.5 0 0,1 12,10A1.5,1.5 0 0,1 10.5,8.5A1.5,1.5 0 0,1 12,7M5.5,8A2.5,2.5 0 0,0 3,10.5C3,11.44 3.53,12.25 4.29,12.68C4.65,12.88 5.06,13 5.5,13C5.94,13 6.35,12.88 6.71,12.68C7.08,12.47 7.39,12.17 7.62,11.81C6.89,10.86 6.5,9.7 6.5,8.5C6.5,8.41 6.5,8.31 6.5,8.22C6.2,8.08 5.86,8 5.5,8M18.5,8C18.14,8 17.8,8.08 17.5,8.22C17.5,8.31 17.5,8.41 17.5,8.5C17.5,9.7 17.11,10.86 16.38,11.81C16.5,12 16.63,12.15 16.78,12.3C16.94,12.45 17.1,12.58 17.29,12.68C17.65,12.88 18.06,13 18.5,13C18.94,13 19.35,12.88 19.71,12.68C20.47,12.25 21,11.44 21,10.5A2.5,2.5 0 0,0 18.5,8M12,14C9.66,14 5,15.17 5,17.5V19H19V17.5C19,15.17 14.34,14 12,14M4.71,14.55C2.78,14.78 0,15.76 0,17.5V19H3V17.07C3,16.06 3.69,15.22 4.71,14.55M19.29,14.55C20.31,15.22 21,16.06 21,17.07V19H24V17.5C24,15.76 21.22,14.78 19.29,14.55M12,16C13.53,16 15.24,16.5 16.23,17H7.77C8.76,16.5 10.47,16 12,16Z",r="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",o="M7,12L12,7V10H16V14H12V17L7,12M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L5,8.09V15.91L12,19.85L19,15.91V8.09L12,4.15Z",s="M17,12L12,17V14H8V10H12V7L17,12M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L5,8.09V15.91L12,19.85L19,15.91V8.09L12,4.15Z",a="M6,18V13H11V18H6M7,14V17H10V14H7M13,7.5H18V9.5H13V7.5M5,21A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V11.17C20.5,11.06 20,11 19.5,11H19V5H5V19H13.17C13.34,19.72 13.63,20.39 14,21H5M11,6V11H6V6H11M10,10V7H7V10H10M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23Z",l="M9 17H7V10H9V17M13 17H11V7H13V17M17 17H15V13H17V17M19 19H5V5H19V19.1M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z",u="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",c="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",d="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",h="M20,16V4H8V16H20M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16Z",p="M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16M13,14L20,7L18.59,5.59L13,11.17L9.91,8.09L8.5,9.5L13,14Z",f="M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z",g="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",m="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",v="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13Q12.18 20 11.59 19.41 11 18.83 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5Q19.55 18 20.27 17.27 21 16.55 21 15.5 21 14.45 20.27 13.73 19.55 13 18.5 13H17V11Q17 8.93 15.54 7.46 14.08 6 12 6 9.93 6 8.46 7.46 7 8.93 7 11H6.5Q5.05 11 4.03 12.03 3 13.05 3 14.5 3 15.95 4.03 17 5.05 18 6.5 18H9V20M12 13Z",y="M6.59,3.41L2,8L6.59,12.6L8,11.18L4.82,8L8,4.82L6.59,3.41M12.41,3.41L11,4.82L14.18,8L11,11.18L12.41,12.6L17,8L12.41,3.41M21.59,11.59L13.5,19.68L9.83,16L8.42,17.41L13.5,22.5L23,13L21.59,11.59Z",C="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",w="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",x="M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z",b="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",_="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",S="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",A="M5,8A4,4 0 0,1 9,12A4,4 0 0,1 5,16A4,4 0 0,1 1,12A4,4 0 0,1 5,8M12,1A4,4 0 0,1 16,5A4,4 0 0,1 12,9A4,4 0 0,1 8,5A4,4 0 0,1 12,1M12,15A4,4 0 0,1 16,19A4,4 0 0,1 12,23A4,4 0 0,1 8,19A4,4 0 0,1 12,15M19,8A4,4 0 0,1 23,12A4,4 0 0,1 19,16A4,4 0 0,1 15,12A4,4 0 0,1 19,8Z",T="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",E="M19 8L15 12H18C18 15.31 15.31 18 12 18C11 18 10.03 17.75 9.2 17.3L7.74 18.76C8.97 19.54 10.43 20 12 20C16.42 20 20 16.42 20 12H23M6 12C6 8.69 8.69 6 12 6C13 6 13.97 6.25 14.8 6.7L16.26 5.24C15.03 4.46 13.57 4 12 4C7.58 4 4 7.58 4 12H1L5 16L9 12M14 12C14 13.11 13.11 14 12 14S10 13.11 10 12 10.9 10 12 10 14 10.9 14 12Z",D="M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z",M="M8,5.14V19.14L19,12.14L8,5.14Z",I="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",R="M5 3A2 2 0 0 0 3 5H5M7 3V5H9V3M11 3V5H13V3M15 3V5H17V3M19 3V5H21A2 2 0 0 0 19 3M3 7V9H5V7M7 7V11H11V7M13 7V11H17V7M19 7V9H21V7M3 11V13H5V11M19 11V13H21V11M7 13V17H11V13M13 13V17H17V13M3 15V17H5V15M19 15V17H21V15M3 19A2 2 0 0 0 5 21V19M7 19V21H9V19M11 19V21H13V19M15 19V21H17V19M19 19V21A2 2 0 0 0 21 19Z",L="M17.36,20.2V14.82H19.15V22H3V14.82H4.8V20.2H17.36M6.77,14.32L7.14,12.56L15.93,14.41L15.56,16.17L6.77,14.32M7.93,10.11L8.69,8.5L16.83,12.28L16.07,13.9L7.93,10.11M10.19,6.12L11.34,4.74L18.24,10.5L17.09,11.87L10.19,6.12M14.64,1.87L20,9.08L18.56,10.15L13.2,2.94L14.64,1.87M6.59,18.41V16.61H15.57V18.41H6.59Z",P="M1 6V19A2 2 0 0 0 3 21H9V11H21V6A2 2 0 0 0 19 4H3A2 2 0 0 0 1 6M3 6H7V9H3M7 19H3V16H7M7 14H3V11H7M9 9V6H13V9M19 9H15V6H19M17 16A1 1 0 1 1 16 17A1 1 0 0 1 17 16M17 13A6.45 6.45 0 0 1 23 17A6.5 6.5 0 0 1 11 17A6.45 6.45 0 0 1 17 13M17 14.5A2.5 2.5 0 1 0 19.5 17A2.5 2.5 0 0 0 17 14.5",N="M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z",F="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",O="M2 3V9H4.95L6.95 15H6V21H12V16.41L17.41 11H22V5H16V9.57L10.59 15H9.06L7.06 9H8V3H2M4 5H6V7H4V5M18 7H20V9H18V7M18 15V18H15V20H18V23H20V20H23V18H20V15H18M8 17H10V19H8V17Z"},455:function(e,t,n){"use strict";n.d(t,{U:function(){return T}});var i=n(6354),r=n(222),o=n(8979),s=n(5581);function a(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function l(e){return e!==(0,o.A)(e)&&(0,s.sb)(e)?a(e):(0,r.A)(e)}var u=n(7604),c=n(793),d=n(9760),h=n(134),p=n(6906);function f(e){var t=e.getBoundingClientRect(),n=(0,p.LI)(t.width)/e.offsetWidth||1,i=(0,p.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function g(e,t,n){void 0===n&&(n=!1);var r=(0,s.sb)(t),o=(0,s.sb)(t)&&f(t),a=(0,d.A)(t),p=(0,i.A)(e,o,n),g={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(r||!r&&!n)&&(("body"!==(0,u.A)(t)||(0,h.A)(a))&&(g=l(t)),(0,s.sb)(t)?(m=(0,i.A)(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):a&&(m.x=(0,c.A)(a))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}}var m=n(6979),v=n(7579),y=n(7275),C=n(4278);function w(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}function x(e){var t=w(e);return C.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function b(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var S={placement:"bottom",modifiers:[],strategy:"absolute"};function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function T(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?S:r;return function(e,t,n){void 0===n&&(n=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},S,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:r,setOptions:function(n){var a="function"===typeof n?n(r.options):n;d(),r.options=Object.assign({},o,r.options,a),r.scrollParents={reference:(0,s.vq)(e)?(0,v.A)(e):e.contextElement?(0,v.A)(e.contextElement):[],popper:(0,v.A)(t)};var l=x(_([].concat(i,r.options.modifiers)));return r.orderedModifiers=l.filter(function(e){return e.enabled}),c(),u.update()},forceUpdate:function(){if(!l){var e=r.elements,t=e.reference,n=e.popper;if(A(t,n)){r.rects={reference:g(t,(0,y.A)(n),"fixed"===r.options.strategy),popper:(0,m.A)(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var o=r.orderedModifiers[i],s=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"===typeof s&&(r=s({state:r,options:c,name:d,instance:u})||r)}else r.reset=!1,i=-1}}},update:b(function(){return new Promise(function(e){u.forceUpdate(),e(r)})}),destroy:function(){d(),l=!0}};if(!A(e,t))return u;function c(){r.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:r,name:t,instance:u,options:i}),l=function(){};a.push(s||l)}})}function d(){a.forEach(function(e){return e()}),a=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}},5446:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(5581);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},6354:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(5581),r=n(6906),o=n(8979),s=n(2283);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,i.sb)(e)&&(l=e.offsetWidth>0&&(0,r.LI)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,r.LI)(a.height)/e.offsetHeight||1);var c=(0,i.vq)(e)?(0,o.A)(e):window,d=c.visualViewport,h=!(0,s.A)()&&n,p=(a.left+(h&&d?d.offsetLeft:0))/l,f=(a.top+(h&&d?d.offsetTop:0))/u,g=a.width/l,m=a.height/u;return{width:g,height:m,top:f,right:p+g,bottom:f+m,left:p,x:p,y:f}}},271:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(8979);function r(e){return(0,i.A)(e).getComputedStyle(e)}},9760:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(5581);function r(e){return(((0,i.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6979:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(6354);function r(e){var t=(0,i.A)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},7604:function(e,t,n){"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:function(){return i}})},7275:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(8979),r=n(7604),o=n(271),s=n(5581);function a(e){return["table","td","th"].indexOf((0,r.A)(e))>=0}var l=n(2083),u=n(2398);function c(e){return(0,s.sb)(e)&&"fixed"!==(0,o.A)(e).position?e.offsetParent:null}function d(e){var t=/firefox/i.test((0,u.A)()),n=/Trident/i.test((0,u.A)());if(n&&(0,s.sb)(e)){var i=(0,o.A)(e);if("fixed"===i.position)return null}var a=(0,l.A)(e);(0,s.Ng)(a)&&(a=a.host);while((0,s.sb)(a)&&["html","body"].indexOf((0,r.A)(a))<0){var c=(0,o.A)(a);if("none"!==c.transform||"none"!==c.perspective||"paint"===c.contain||-1!==["transform","perspective"].indexOf(c.willChange)||t&&"filter"===c.willChange||t&&c.filter&&"none"!==c.filter)return a;a=a.parentNode}return null}function h(e){var t=(0,i.A)(e),n=c(e);while(n&&a(n)&&"static"===(0,o.A)(n).position)n=c(n);return n&&("html"===(0,r.A)(n)||"body"===(0,r.A)(n)&&"static"===(0,o.A)(n).position)?t:n||d(e)||t}},2083:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(7604),r=n(9760),o=n(5581);function s(e){return"html"===(0,i.A)(e)?e:e.assignedSlot||e.parentNode||((0,o.Ng)(e)?e.host:null)||(0,r.A)(e)}},8979:function(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:function(){return i}})},222:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(8979);function r(e){var t=(0,i.A)(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}},793:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(6354),r=n(9760),o=n(222);function s(e){return(0,i.A)((0,r.A)(e)).left+(0,o.A)(e).scrollLeft}},5581:function(e,t,n){"use strict";n.d(t,{Ng:function(){return s},sb:function(){return o},vq:function(){return r}});var i=n(8979);function r(e){var t=(0,i.A)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,i.A)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function s(e){if("undefined"===typeof ShadowRoot)return!1;var t=(0,i.A)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},2283:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(2398);function r(){return!/^((?!chrome|android).)*safari/i.test((0,i.A)())}},134:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(271);function r(e){var t=(0,i.A)(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}},7579:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(2083),r=n(134),o=n(7604),s=n(5581);function a(e){return["html","body","#document"].indexOf((0,o.A)(e))>=0?e.ownerDocument.body:(0,s.sb)(e)&&(0,r.A)(e)?e:a((0,i.A)(e))}var l=n(8979);function u(e,t){var n;void 0===t&&(t=[]);var o=a(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),c=(0,l.A)(o),d=s?[c].concat(c.visualViewport||[],(0,r.A)(o)?o:[]):o,h=t.concat(d);return s?h:h.concat(u((0,i.A)(d)))}},4278:function(e,t,n){"use strict";n.d(t,{DD:function(){return m},GM:function(){return T},Mn:function(){return i},OM:function(){return l},Ol:function(){return g},R9:function(){return h},WY:function(){return d},_N:function(){return c},ir:function(){return f},kb:function(){return s},ni:function(){return u},pG:function(){return o},qZ:function(){return a},sQ:function(){return r},xf:function(){return p}});var i="top",r="bottom",o="right",s="left",a="auto",l=[i,r,o,s],u="start",c="end",d="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+c])},[]),m=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])},[]),v="beforeRead",y="read",C="afterRead",w="beforeMain",x="main",b="afterMain",_="beforeWrite",S="write",A="afterWrite",T=[v,y,C,w,x,b,_,S,A]},6607:function(e,t,n){"use strict";var i=n(7604),r=n(5581);function o(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},s=t.elements[e];(0,r.sb)(s)&&(0,i.A)(s)&&(Object.assign(s.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})}function s(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),l=a.reduce(function(e,t){return e[t]="",e},{});(0,r.sb)(o)&&(0,i.A)(o)&&(Object.assign(o.style,l),Object.keys(s).forEach(function(e){o.removeAttribute(e)}))})}}t.A={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:s,requires:["computeStyles"]}},1262:function(e,t,n){"use strict";var i=n(4278),r=n(7275),o=n(8979),s=n(9760),a=n(271),l=n(2632),u=n(8101),c=n(6906),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:(0,c.LI)(n*r)/r||0,y:(0,c.LI)(i*r)/r||0}}function p(e){var t,n=e.popper,l=e.popperRect,u=e.placement,c=e.variation,p=e.offsets,f=e.position,g=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,C=p.x,w=void 0===C?0:C,x=p.y,b=void 0===x?0:x,_="function"===typeof v?v({x:w,y:b}):{x:w,y:b};w=_.x,b=_.y;var S=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),T=i.kb,E=i.Mn,D=window;if(m){var M=(0,r.A)(n),I="clientHeight",R="clientWidth";if(M===(0,o.A)(n)&&(M=(0,s.A)(n),"static"!==(0,a.A)(M).position&&"absolute"===f&&(I="scrollHeight",R="scrollWidth")),u===i.Mn||(u===i.kb||u===i.pG)&&c===i._N){E=i.sQ;var L=y&&M===D&&D.visualViewport?D.visualViewport.height:M[I];b-=L-l.height,b*=g?1:-1}if(u===i.kb||(u===i.Mn||u===i.sQ)&&c===i._N){T=i.pG;var P=y&&M===D&&D.visualViewport?D.visualViewport.width:M[R];w-=P-l.width,w*=g?1:-1}}var N,F=Object.assign({position:f},m&&d),O=!0===v?h({x:w,y:b},(0,o.A)(n)):{x:w,y:b};return w=O.x,b=O.y,g?Object.assign({},F,(N={},N[E]=A?"0":"",N[T]=S?"0":"",N.transform=(D.devicePixelRatio||1)<=1?"translate("+w+"px, "+b+"px)":"translate3d("+w+"px, "+b+"px, 0)",N)):Object.assign({},F,(t={},t[E]=A?b+"px":"",t[T]=S?w+"px":"",t.transform="",t))}function f(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,d={placement:(0,l.A)(t.placement),variation:(0,u.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}t.A={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},9068:function(e,t,n){"use strict";var i=n(8979),r={passive:!0};function o(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,a=void 0===s||s,l=o.resize,u=void 0===l||l,c=(0,i.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(e){e.addEventListener("scroll",n.update,r)}),u&&c.addEventListener("resize",n.update,r),function(){a&&d.forEach(function(e){e.removeEventListener("scroll",n.update,r)}),u&&c.removeEventListener("resize",n.update,r)}}t.A={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o,data:{}}},6489:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,function(e){return i[e]})}var o=n(2632),s={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,function(e){return s[e]})}var l=n(6249),u=n(8101),c=n(4278);function d(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,p=void 0===h?c.DD:h,f=(0,u.A)(i),g=f?d?c.Ol:c.Ol.filter(function(e){return(0,u.A)(e)===f}):c.OM,m=g.filter(function(e){return p.indexOf(e)>=0});0===m.length&&(m=g);var v=m.reduce(function(t,n){return t[n]=(0,l.A)(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[(0,o.A)(n)],t},{});return Object.keys(v).sort(function(e,t){return v[e]-v[t]})}function h(e){if((0,o.A)(e)===c.qZ)return[];var t=r(e);return[a(e),t,a(t)]}function p(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,a=void 0===s||s,p=n.altAxis,f=void 0===p||p,g=n.fallbackPlacements,m=n.padding,v=n.boundary,y=n.rootBoundary,C=n.altBoundary,w=n.flipVariations,x=void 0===w||w,b=n.allowedAutoPlacements,_=t.options.placement,S=(0,o.A)(_),A=S===_,T=g||(A||!x?[r(_)]:h(_)),E=[_].concat(T).reduce(function(e,n){return e.concat((0,o.A)(n)===c.qZ?d(t,{placement:n,boundary:v,rootBoundary:y,padding:m,flipVariations:x,allowedAutoPlacements:b}):n)},[]),D=t.rects.reference,M=t.rects.popper,I=new Map,R=!0,L=E[0],P=0;P<E.length;P++){var N=E[P],F=(0,o.A)(N),O=(0,u.A)(N)===c.ni,k=[c.Mn,c.sQ].indexOf(F)>=0,B=k?"width":"height",G=(0,l.A)(t,{placement:N,boundary:v,rootBoundary:y,altBoundary:C,padding:m}),V=k?O?c.pG:c.kb:O?c.sQ:c.Mn;D[B]>M[B]&&(V=r(V));var H=r(V),z=[];if(a&&z.push(G[F]<=0),f&&z.push(G[V]<=0,G[H]<=0),z.every(function(e){return e})){L=N,R=!1;break}I.set(N,z)}if(R)for(var U=x?3:1,W=function(e){var t=E.find(function(t){var n=I.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},$=U;$>0;$--){var j=W($);if("break"===j)break}t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}}var f={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},9081:function(e,t,n){"use strict";var i=n(4278),r=n(6249);function o(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[i.Mn,i.pG,i.sQ,i.kb].some(function(t){return e[t]>=0})}function a(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=(0,r.A)(t,{elementContext:"reference"}),c=(0,r.A)(t,{altBoundary:!0}),d=o(u,i),h=o(c,a,l),p=s(d),f=s(h);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}t.A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:a}},8490:function(e,t,n){"use strict";var i=n(2632),r=n(4278);function o(e,t,n){var o=(0,i.A)(e),s=[r.kb,r.Mn].indexOf(o)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*s,[r.kb,r.pG].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function s(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,l=r.DD.reduce(function(e,n){return e[n]=o(n,t.rects,a),e},{}),u=l[t.placement],c=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=l}t.A={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s}},5059:function(e,t,n){"use strict";var i=n(1815);function r(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,i.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}t.A={name:"popperOffsets",enabled:!0,phase:"read",fn:r,data:{}}},4575:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var i=n(4278),r=n(2632),o=n(9703);function s(e){return"x"===e?"y":"x"}var a=n(6523),l=n(6979),u=n(7275),c=n(6249),d=n(8101),h=n(7364),p=n(6906);function f(e){var t=e.state,n=e.options,f=e.name,g=n.mainAxis,m=void 0===g||g,v=n.altAxis,y=void 0!==v&&v,C=n.boundary,w=n.rootBoundary,x=n.altBoundary,b=n.padding,_=n.tether,S=void 0===_||_,A=n.tetherOffset,T=void 0===A?0:A,E=(0,c.A)(t,{boundary:C,rootBoundary:w,padding:b,altBoundary:x}),D=(0,r.A)(t.placement),M=(0,d.A)(t.placement),I=!M,R=(0,o.A)(D),L=s(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,F=t.rects.popper,O="function"===typeof T?T(Object.assign({},t.rects,{placement:t.placement})):T,k="number"===typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(P){if(m){var V,H="y"===R?i.Mn:i.kb,z="y"===R?i.sQ:i.pG,U="y"===R?"height":"width",W=P[R],$=W+E[H],j=W-E[z],X=S?-F[U]/2:0,Y=M===i.ni?N[U]:F[U],K=M===i.ni?-F[U]:-N[U],q=t.elements.arrow,Z=S&&q?(0,l.A)(q):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.A)(),J=Q[H],ee=Q[z],te=(0,a.u)(0,N[U],Z[U]),ne=I?N[U]/2-X-te-J-k.mainAxis:Y-te-J-k.mainAxis,ie=I?-N[U]/2+X+te+ee+k.mainAxis:K+te+ee+k.mainAxis,re=t.elements.arrow&&(0,u.A)(t.elements.arrow),oe=re?"y"===R?re.clientTop||0:re.clientLeft||0:0,se=null!=(V=null==B?void 0:B[R])?V:0,ae=W+ne-se-oe,le=W+ie-se,ue=(0,a.u)(S?(0,p.jk)($,ae):$,W,S?(0,p.T9)(j,le):j);P[R]=ue,G[R]=ue-W}if(y){var ce,de="x"===R?i.Mn:i.kb,he="x"===R?i.sQ:i.pG,pe=P[L],fe="y"===L?"height":"width",ge=pe+E[de],me=pe-E[he],ve=-1!==[i.Mn,i.kb].indexOf(D),ye=null!=(ce=null==B?void 0:B[L])?ce:0,Ce=ve?ge:pe-N[fe]-F[fe]-ye+k.altAxis,we=ve?pe+N[fe]+F[fe]-ye-k.altAxis:me,xe=S&&ve?(0,a.P)(Ce,pe,we):(0,a.u)(S?Ce:ge,pe,S?we:me);P[L]=xe,G[L]=xe-pe}t.modifiersData[f]=G}}var g={name:"preventOverflow",enabled:!0,phase:"main",fn:f,requiresIfExists:["offset"]}},1815:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n(2632),r=n(8101),o=n(9703),s=n(4278);function a(e){var t,n=e.reference,a=e.element,l=e.placement,u=l?(0,i.A)(l):null,c=l?(0,r.A)(l):null,d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2;switch(u){case s.Mn:t={x:d,y:n.y-a.height};break;case s.sQ:t={x:d,y:n.y+n.height};break;case s.pG:t={x:n.x+n.width,y:h};break;case s.kb:t={x:n.x-a.width,y:h};break;default:t={x:n.x,y:n.y}}var p=u?(0,o.A)(u):null;if(null!=p){var f="y"===p?"height":"width";switch(c){case s.ni:t[p]=t[p]-(n[f]/2-a[f]/2);break;case s._N:t[p]=t[p]+(n[f]/2-a[f]/2);break;default:}}return t}},6249:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var i=n(4278),r=n(8979),o=n(9760),s=n(793),a=n(2283);function l(e,t){var n=(0,r.A)(e),i=(0,o.A)(e),l=n.visualViewport,u=i.clientWidth,c=i.clientHeight,d=0,h=0;if(l){u=l.width,c=l.height;var p=(0,a.A)();(p||!p&&"fixed"===t)&&(d=l.offsetLeft,h=l.offsetTop)}return{width:u,height:c,x:d+(0,s.A)(e),y:h}}var u=n(271),c=n(222),d=n(6906);function h(e){var t,n=(0,o.A)(e),i=(0,c.A)(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=(0,d.T9)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=(0,d.T9)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),h=-i.scrollLeft+(0,s.A)(e),p=-i.scrollTop;return"rtl"===(0,u.A)(r||n).direction&&(h+=(0,d.T9)(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:l,x:h,y:p}}var p=n(7579),f=n(7275),g=n(5581),m=n(6354),v=n(2083),y=n(5446),C=n(7604);function w(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function x(e,t){var n=(0,m.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function b(e,t,n){return t===i.R9?w(l(e,n)):(0,g.vq)(t)?x(t,n):w(h((0,o.A)(e)))}function _(e){var t=(0,p.A)((0,v.A)(e)),n=["absolute","fixed"].indexOf((0,u.A)(e).position)>=0,i=n&&(0,g.sb)(e)?(0,f.A)(e):e;return(0,g.vq)(i)?t.filter(function(e){return(0,g.vq)(e)&&(0,y.A)(e,i)&&"body"!==(0,C.A)(e)}):[]}function S(e,t,n,i){var r="clippingParents"===t?_(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(t,n){var r=b(e,n,i);return t.top=(0,d.T9)(r.top,t.top),t.right=(0,d.jk)(r.right,t.right),t.bottom=(0,d.jk)(r.bottom,t.bottom),t.left=(0,d.T9)(r.left,t.left),t},b(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var A=n(1815),T=n(4318),E=n(1007);function D(e,t){void 0===t&&(t={});var n=t,r=n.placement,s=void 0===r?e.placement:r,a=n.strategy,l=void 0===a?e.strategy:a,u=n.boundary,c=void 0===u?i.WY:u,d=n.rootBoundary,h=void 0===d?i.R9:d,p=n.elementContext,f=void 0===p?i.xf:p,v=n.altBoundary,y=void 0!==v&&v,C=n.padding,x=void 0===C?0:C,b=(0,T.A)("number"!==typeof x?x:(0,E.A)(x,i.OM)),_=f===i.xf?i.ir:i.xf,D=e.rects.popper,M=e.elements[y?_:f],I=S((0,g.vq)(M)?M:M.contextElement||(0,o.A)(e.elements.popper),c,h,l),R=(0,m.A)(e.elements.reference),L=(0,A.A)({reference:R,element:D,strategy:"absolute",placement:s}),P=w(Object.assign({},D,L)),N=f===i.xf?P:R,F={top:I.top-N.top+b.top,bottom:N.bottom-I.bottom+b.bottom,left:I.left-N.left+b.left,right:N.right-I.right+b.right},O=e.modifiersData.offset;if(f===i.xf&&O){var k=O[s];Object.keys(F).forEach(function(e){var t=[i.pG,i.sQ].indexOf(e)>=0?1:-1,n=[i.Mn,i.sQ].indexOf(e)>=0?"y":"x";F[e]+=k[n]*t})}return F}},1007:function(e,t,n){"use strict";function i(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:function(){return i}})},2632:function(e,t,n){"use strict";function i(e){return e.split("-")[0]}n.d(t,{A:function(){return i}})},7364:function(e,t,n){"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:function(){return i}})},9703:function(e,t,n){"use strict";function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:function(){return i}})},8101:function(e,t,n){"use strict";function i(e){return e.split("-")[1]}n.d(t,{A:function(){return i}})},6906:function(e,t,n){"use strict";n.d(t,{LI:function(){return o},T9:function(){return i},jk:function(){return r}});var i=Math.max,r=Math.min,o=Math.round},4318:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(7364);function r(e){return Object.assign({},(0,i.A)(),e)}},2398:function(e,t,n){"use strict";function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.d(t,{A:function(){return i}})},6523:function(e,t,n){"use strict";n.d(t,{P:function(){return o},u:function(){return r}});var i=n(6906);function r(e,t,n){return(0,i.T9)(e,(0,i.jk)(t,n))}function o(e,t,n){var i=r(e,t,n);return i>n?n:i}},1687:function(e,t,n){"use strict";n.d(t,{A:function(){return BF}});var i={};n.r(i),n.d(i,{AgGridVue:function(){return wF}});var r=function(){var e=this,t=e._self._c;return t("div",{ref:"shell",staticClass:"CompCssWAggridVue",attrs:{changeParam:e.changeParam,changeFilterall:e.changeFilterall}},[t("div",{style:`width:${e.width}%; height:${e.height}px; transition:all 0.5s; opacity:${e.opacity};`,on:{mouseleave:e.leaveTable}},[t("ag-grid-vue",{ref:"agv",staticClass:"ag-theme-balham",staticStyle:{width:"100%",height:"100%"},attrs:{columnDefs:e.columns,rowData:e.filterRows,rowStyle:e.getRowsStyle,rowSelection:"multiple",gridOptions:e.gridOptions,_enableRangeSelection:"true",_copyHeadersToClipboard:"true",_modules:"AllModules"},on:{selectionChanged:e.agRowSelect,cellClicked:e.agCellClick,cellDoubleClicked:e.agCellDbClick,cellValueChanged:e.agCellChange,cellMouseOver:e.agCellMouseEnter,cellMouseOut:e.agCellMouseLeave,cellKeyDown:e.agCellKeyDown,rowDragEnter:e.agRowDragEnter,rowDragEnd:e.agRowDragEnd,rowDragMove:e.agRowDragMove,rowDragLeave:e.agRowDragLeave,rowDataUpdated:e.agRowDataUpdated,filterChanged:e.agFilterChanged,gridReady:e.agReady}})],1)])},o=[],s=n(4722),a=n(6036),l=n(6902),u=n(1662),c=n(6996),d=n(6145),h=n(1754),p=n(2528),f=n(6984);function g(e,t,n){(void 0!==n&&!(0,f.A)(e[t],n)||void 0===n&&!(t in e))&&(0,p.A)(e,t,n)}var m=g,v=n(4574),y=n(154),C=n(1801),w=n(9759),x=n(8598),b=n(2274),_=n(2049),S=n(3533),A=n(9912),T=n(9610),E=n(3149),D=n(4963),M=n(3858);function I(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var R=I,L=n(2031),P=n(5615);function N(e){return(0,L.A)(e,(0,P.A)(e))}var F=N;function O(e,t,n,i,r,o,s){var a=R(e,n),l=R(t,n),u=s.get(l);if(u)m(e,n,u);else{var c=o?o(a,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var h=(0,_.A)(l),p=!h&&(0,A.A)(l),f=!h&&!p&&(0,M.A)(l);c=l,h||p||f?(0,_.A)(a)?c=a:(0,S.A)(a)?c=(0,w.A)(a):p?(d=!1,c=(0,y.A)(l,!0)):f?(d=!1,c=(0,C.A)(l,!0)):c=[]:(0,D.A)(l)||(0,b.A)(l)?(c=a,(0,b.A)(a)?c=F(a):(0,E.A)(a)&&!(0,T.A)(a)||(c=(0,x.A)(l))):d=!1}d&&(s.set(l,c),r(c,l,i,o,s),s["delete"](l)),m(e,n,c)}}var k=O;function B(e,t,n,i,r){e!==t&&(0,v.A)(t,function(o,s){if(r||(r=new h.A),(0,E.A)(o))k(e,t,s,n,B,i,r);else{var a=i?i(R(e,s),o,s+"",e,t,r):void 0;void 0===a&&(a=o),m(e,s,a)}},P.A)}var G=B,V=n(4326),H=n(6832);function z(e){return(0,V.A)(function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&(0,H.A)(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);while(++i<r){var a=n[i];a&&e(t,a,i,o)}return t})}var U=z,W=U(function(e,t,n){G(e,t,n)}),$=W,j=n(7500),X=n(8395),Y=n(4554),K=n(8351),q=n(8207),Z=n(903),Q=n(6912),J=n(3588);function ee(){var e=arguments.length;if(!e)return[];var t=Array(e-1),n=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return(0,Q.A)((0,_.A)(n)?(0,w.A)(n):[n],(0,J.A)(t,1))}var te=ee,ne=n(2062),ie=n(5530),re=n(7809),oe=n(5572),se=n(2789),ae=n(4099),le=200;function ue(e,t,n,i){var r=-1,o=ie.A,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=(0,oe.A)(t,(0,se.A)(n))),i?(o=re.A,s=!1):t.length>=le&&(o=ae.A,s=!1,t=new ne.A(t));e:while(++r<a){var c=e[r],d=null==n?c:n(c);if(c=i||0!==c?c:0,s&&d===d){var h=u;while(h--)if(t[h]===d)continue e;l.push(c)}else o(t,d,i)||l.push(c)}return l}var ce=ue,de=(0,V.A)(function(e,t){return(0,S.A)(e)?ce(e,(0,J.A)(t,1,S.A,!0)):[]}),he=de,pe=n(8621),fe=n(6702),ge=n(5040),me=n(545),ve=n(7688),ye=n(8593);function Ce(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:(0,ye.A)(t),(0,ve.A)(e,t<0?0:t,i)):[]}var we=Ce,xe=n(2942),be=n(6956),_e=n(1714),Se=n(106);function Ae(e,t){let n=(0,xe.A)();if(!(0,be.A)(e)&&!(0,_e.A)(e))return n.reject("rs is not an array or object"),n;let i=!1;if((0,_e.A)(e)){i=!0;let t=[];(0,a.A)(e,(e,n)=>{t.push({k:n,v:e})}),e=t}(0,Se.A)(t)||(t=function(e){return e});let r=-1,o=[];return e.reduce(function(e,n){return e.then(function(e){o.push(e),r+=1;let s=r,a=n;return i&&(s=n.k,a=n.v),(0,Se.A)(t)?t(a,s):a})},Promise.resolve()).then(function(e){o.push(e),o=we(o),n.resolve(o)}).catch(function(e){n.reject(e)}),n}var Te=Ae,Ee=n(3173),De=n(8135),Me=n(1969),Ie=n(9860),Re=n(5021),Le=n(4958),Pe=n(662),Ne=n(8842),Fe=n(6670),Oe=n(920),ke=n(3633),Be=n(6224),Ge=n(7517),Ve=n(1669),He=n(2363),ze=n(9651);function Ue(e,t,n=""){if(!(0,Me.A)(e))return[];if(!(0,Me.A)(t))return[];let i=(0,s.A)(e,e=>(0,ze.A)(e,t,n));return i}var We=Ue,$e=n(1510),je=n(7422),Xe=n(1285);function Ye(e){return e&&e.length?(0,Xe.A)(e):[]}var Ke=Ye;function qe(e){if(!(0,Me.A)(e))return[];let t=[];return(0,a.A)(e,function(e){let n=(0,je.A)(e);t=[...t,...n],t=Ke(t)}),t}var Ze=qe;function Qe(e,t=null,n={}){let i=(0,j.A)(n,"returnWithStateAndMsg",null);(0,Ne.A)(i)||(i=!1);let r=e=>i?{state:"error",msg:e}:[];if(!(0,Me.A)(e))return r("invalid ltdt");if((0,Me.A)(t)||(t=Ze(e)),0===(0,l.A)(t))return r("invalid keys, can not extract any key from ltdt");let o=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(o=!0)}),o)return r("invalid ltdt, every element must be an effective object");let u=(0,j.A)(n,"empty",""),c=[];return(0,a.A)(e,function(e){let n=(0,s.A)(t,function(t){return(0,fe.A)(e,t)?(0,Ne.A)(e[t])?e[t]?"true":"false":(0,Ie.A)(e[t])||(0,Le.A)(e[t])?e[t]:(0,$e.A)(e[t]):u});c.push(n)}),i?{state:"success",msg:c}:c}var Je=Qe,et=n(6515),tt=n(8409);function nt(e,t){window.navigator.msSaveOrOpenBlob(t,e)}function it(e,t){let n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}function rt(e,t){(0,et.A)()?(0,Re.A)(e)?(0,tt.A)()?nt(e,t):it(e,t):console.log("no filename"):console.log("no window")}var ot=rt,st=n(8817);function at(e,t=[],n={},i={}){let r=(0,j.A)(i,"returnWithStateAndMsg",null);(0,Ne.A)(r)||(r=!1);let o=e=>r?{state:"error",msg:e}:[];if(!(0,Me.A)(e))return o("invalid ltdt");(0,Me.A)(t)||(t=Ze(e)),(0,De.A)(n)||(n={},(0,a.A)(t,e=>{n[e]=e}));let l=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(l=!0)}),l)return o("invalid ltdt, every element must be an effective object");let u=(0,s.A)(t,function(e){return(0,j.A)(n,e)}),c=Je(e,t,{returnWithStateAndMsg:!0});if("error"===c.state)return o(`ltdtkeys2mat: ${c.msg}`);let d=c.msg,h=te([u],d);return r?{state:"success",msg:h}:h}var lt=at;function ut(e){if(!(0,be.A)(e))return{error:"data is not an array"};let t=null;try{let n=(0,st.A)(e,De.A);n&&(e=lt(e)),t={rows:e}}catch(n){return{error:n}}return t}var ct=ut;function dt(){let e={sheets:[]};return e}var ht=dt;function pt(e,t="data"){if(!(0,_e.A)(e))return{error:"sheet is not an object"};if(!(0,be.A)((0,j.A)(e,"rows")))return{error:"sheet.rows is not an array"};(0,Re.A)(t)||(t="data");let n=ht();return n.sheets.push({...e,name:t}),n}var ft=pt;function gt(e,t="data"){if(!(0,be.A)(e))return{error:"data is not an array"};(0,Re.A)(t)||(t="data");let n=null,i=ct(e);return(0,fe.A)(i,"error")?i:(n=ft(i,t),(0,fe.A)(n,"error"),n)}var mt=gt;class vt extends Error{name="HucreError";constructor(e,t){super(e,t)}}class yt extends vt{details;name="ParseError";constructor(e,t,n){super(e,n),this.details=t}}class Ct extends vt{name="ZipError"}class wt extends vt{name="XmlError"}class xt extends vt{name="InvalidArgumentError"}class bt extends vt{name="EncryptedFileError";format;constructor(e,t){super(t??(e?`File is password-protected (${e.toUpperCase()} encrypted with the OLE2/CFB container). Provide a password in options to decrypt it.`:"File is password-protected. Provide a password in options.")),this.format=e}}class _t extends vt{name="DecryptionError";constructor(e="Failed to decrypt: incorrect password or corrupt encryption data.",t){super(e,t)}}const St=2147483648,At=1073741824,Tt=1048575,Et=2e7,Dt=16777216,Mt=1e7,It=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})(),Rt=4294967295;function Lt(e,t){let n=e;for(let i=0;i<t.length;i++)n=It[255&(n^t[i])]^n>>>8;return n>>>0}function Pt(e){return(4294967295^e)>>>0}function Nt(e){return Pt(Lt(Rt,e))}class Ft{data;pos=0;bitBuf=0;bitCount=0;constructor(e){this.data=e}readBits(e){while(this.bitCount<e){if(this.pos>=this.data.length)throw new Ct("Unexpected end of DEFLATE data");this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}const t=this.bitBuf&(1<<e)-1;return this.bitBuf>>>=e,this.bitCount-=e,t}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new Ct("Unexpected end of DEFLATE data");return this.data[this.pos++]}readUint16LE(){const e=this.readByte(),t=this.readByte();return e|t<<8}get offset(){return this.pos}get available(){return this.pos<this.data.length||this.bitCount>0}}function Ot(e,t){const n=15,i=new Uint16Array(n+1);for(let a=0;a<t;a++)e[a]&&i[e[a]]++;const r=new Uint16Array(n+1);for(let a=1;a<n;a++)r[a+1]=r[a]+i[a];const o=r[n]+i[n],s=new Uint16Array(o);for(let a=0;a<t;a++)e[a]&&(s[r[e[a]]++]=a);return{counts:i,symbols:s}}function kt(e,t){let n=0,i=0,r=0;for(let o=1;o<=15;o++){n|=e.readBits(1);const s=t.counts[o];if(n<i+s)return t.symbols[r+(n-i)];r+=s,i=i+s<<1,n<<=1}throw new Ct("Invalid Huffman code")}const Bt=(()=>{const e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return Ot(e,288)})(),Gt=(()=>{const e=new Uint8Array(32);for(let t=0;t<32;t++)e[t]=5;return Ot(e,32)})(),Vt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Ht=[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],zt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Ut=[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],Wt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function $t(e,t=St){const n=new Ft(e);let i=new Uint8Array(3*e.length||1024),r=0;function o(e){if(r+e>t)throw new Ct(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`);if(r+e>i.length){let n=2*i.length;while(r+e>n)n*=2;n>t&&(n=t);const o=new Uint8Array(n);o.set(i),i=o}}function s(e){o(1),i[r++]=e}function a(e,t){o(t);let n=r-e;for(let o=0;o<t;o++)i[r++]=i[n++]}function l(e,t){for(;;){const i=kt(n,e);if(i<256)s(i);else{if(256===i)return;{const e=i-257,r=Vt[e]+n.readBits(Ht[e]),o=kt(n,t),s=zt[o]+n.readBits(Ut[o]);a(s,r)}}}}let u=0;do{u=n.readBits(1);const e=n.readBits(2);if(0===e){n.alignToByte();const e=n.readUint16LE();n.readUint16LE();o(e);for(let t=0;t<e;t++)i[r++]=n.readByte()}else if(1===e)l(Bt,Gt);else{if(2!==e)throw new Ct(`Invalid DEFLATE block type: ${e}`);{const e=n.readBits(5)+257,t=n.readBits(5)+1,i=n.readBits(4)+4,r=new Uint8Array(19);for(let l=0;l<i;l++)r[Wt[l]]=n.readBits(3);const o=Ot(r,19),s=e+t,a=new Uint8Array(s);let u=0;while(u<s){const e=kt(n,o);if(e<16)a[u++]=e;else if(16===e){const e=n.readBits(2)+3,t=u>0?a[u-1]:0;for(let n=0;n<e;n++)a[u++]=t}else if(17===e){const e=n.readBits(3)+3;for(let t=0;t<e;t++)a[u++]=0}else if(18===e){const e=n.readBits(7)+11;for(let t=0;t<e;t++)a[u++]=0}}const c=a.subarray(0,e),d=a.subarray(e,e+t),h=Ot(c,e),p=Ot(d,t);l(h,p)}}}while(0===u);return i.subarray(0,r)}function jt(e){return 0===e.length?new Uint8Array([3,0]):e.length<=64?Xt(e):Yt(e)}function Xt(e){const t=[];let n=0;while(n<e.length){const i=e.length-n,r=Math.min(i,65535),o=n+r>=e.length,s=new Uint8Array(5+r);s[0]=o?1:0,s[1]=255&r,s[2]=r>>8&255,s[3]=255&~r,s[4]=~r>>8&255,s.set(e.subarray(n,n+r),5),t.push(s),n+=r}const i=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}function Yt(e){let t=new Uint8Array(e.length+512),n=0,i=0,r=0;function o(e){if(n+e>t.length){let i=2*t.length;while(n+e>i)i*=2;const r=new Uint8Array(i);r.set(t),t=r}}function s(e,s){i|=e<<r,r+=s;while(r>=8)o(1),t[n++]=255&i,i>>>=8,r-=8}function a(){r>0&&(o(1),t[n++]=255&i,i=0,r=0)}function l(e){e<=143?s(Kt(48+e,8),8):e<=255?s(Kt(e-144+400,9),9):e<=279?s(Kt(e-256,7),7):s(Kt(e-280+192,8),8)}function u(e){s(Kt(e,5),5)}s(1,1),s(1,2);const c=32768,d=258,h=3,p=32768,f=p-1,g=new Int32Array(p).fill(-1),m=new Int32Array(c);function v(t){return t+2>=e.length?0:(e[t]<<10^e[t+1]<<5^e[t+2])&f}let y=0;while(y<e.length){if(y+h>e.length){l(e[y]),y++;continue}const t=v(y);let n=h-1,i=0,r=g[t],o=0;const a=128,p=Math.max(0,y-c);while(r>=p&&o<a){const t=y-r;if(t>0&&t<=c){let o=0;const s=Math.min(d,e.length-y);while(o<s&&e[r+o]===e[y+o])o++;if(o>n&&(n=o,i=t,o===d))break}r=m[r&c-1],o++}if(m[y&c-1]=g[t],g[t]=y,n>=h){const t=qt(n);l(t+257),s(n-Vt[t],Ht[t]);const r=Zt(i);u(r),s(i-zt[r],Ut[r]);for(let i=1;i<n;i++){const t=y+i;if(t+h<=e.length){const e=v(t);m[t&c-1]=g[e],g[e]=t}}y+=n}else l(e[y]),y++}return l(256),a(),t.subarray(0,n)}function Kt(e,t){let n=0;for(let i=0;i<t;i++)n=n<<1|1&e,e>>=1;return n}function qt(e){for(let t=Vt.length-1;t>=0;t--)if(e>=Vt[t])return t;return 0}function Zt(e){for(let t=zt.length-1;t>=0;t--)if(e>=zt[t])return t;return 0}let Qt,Jt;function en(){if(void 0===Qt)try{new CompressionStream("deflate-raw"),Qt="undefined"!==typeof ReadableStream}catch{Qt=!1}return Qt}function tn(){if(void 0===Jt)try{new DecompressionStream("deflate-raw"),Jt="undefined"!==typeof ReadableStream}catch{Jt=!1}return Jt}const nn=67324752,rn=33639248,on=101010256;async function sn(e){if(en())try{const t=new CompressionStream("deflate-raw"),n=t.writable.getWriter(),i=t.readable.getReader();n.write(e),n.close();const r=[];let o=0;for(;;){const{done:e,value:t}=await i.read();if(e)break;r.push(t),o+=t.length}const s=new Uint8Array(o);let a=0;for(const e of r)s.set(e,a),a+=e.length;return s}catch{}return jt(e)}class an{entries=[];paths=new Set;add(e,t,n){if(this.paths.has(e))throw new Ct(`Duplicate ZIP entry: "${e}"`);this.paths.add(e);const i=n?.compress??!0;this.entries.push({path:e,data:t,compress:i})}async build(){const e=[];for(const p of this.entries){const t=p.data.length>0?Nt(p.data):0;let n,i;p.compress&&p.data.length>0?(n=await sn(p.data),i=8,n.length>=p.data.length&&(n=p.data,i=0)):(n=p.data,i=0),e.push({path:p.path,data:p.data,compressedData:n,method:i,entryCrc32:t})}const t=new TextEncoder,n=e.map(e=>t.encode(e.path));let i=0;for(let p=0;p<e.length;p++)i+=30+n[p].length+e[p].compressedData.length;let r=0;for(let p=0;p<e.length;p++)r+=46+n[p].length;const o=22,s=i+r+o,a=new Uint8Array(s),l=new DataView(a.buffer);let u=0;const c=[];for(let p=0;p<e.length;p++){const t=e[p],i=n[p];c.push(u),l.setUint32(u,nn,!0),l.setUint16(u+4,20,!0),l.setUint16(u+6,0,!0),l.setUint16(u+8,t.method,!0),l.setUint16(u+10,0,!0),l.setUint16(u+12,33,!0),l.setUint32(u+14,t.entryCrc32,!0),l.setUint32(u+18,t.compressedData.length,!0),l.setUint32(u+22,t.data.length,!0),l.setUint16(u+26,i.length,!0),l.setUint16(u+28,0,!0),a.set(i,u+30),u+=30+i.length,a.set(t.compressedData,u),u+=t.compressedData.length}const d=u;for(let p=0;p<e.length;p++){const t=e[p],i=n[p];l.setUint32(u,rn,!0),l.setUint16(u+4,20,!0),l.setUint16(u+6,20,!0),l.setUint16(u+8,0,!0),l.setUint16(u+10,t.method,!0),l.setUint16(u+12,0,!0),l.setUint16(u+14,33,!0),l.setUint32(u+16,t.entryCrc32,!0),l.setUint32(u+20,t.compressedData.length,!0),l.setUint32(u+24,t.data.length,!0),l.setUint16(u+28,i.length,!0),l.setUint16(u+30,0,!0),l.setUint16(u+32,0,!0),l.setUint16(u+34,0,!0),l.setUint16(u+36,0,!0),l.setUint32(u+38,0,!0),l.setUint32(u+42,c[p],!0),a.set(i,u+46),u+=46+i.length}const h=u-d;return l.setUint32(u,on,!0),l.setUint16(u+4,0,!0),l.setUint16(u+6,0,!0),l.setUint16(u+8,e.length,!0),l.setUint16(u+10,e.length,!0),l.setUint32(u+12,h,!0),l.setUint32(u+16,d,!0),l.setUint16(u+20,0,!0),a}}function ln(e){return"object"===typeof e&&null!==e&&"string"===typeof e.hyperlink&&"string"===typeof e.text}function un(e){return ln(e)?e.text:e}function cn(e){return"object"===typeof e&&null!==e&&!(e instanceof Date)&&!Array.isArray(e)&&!ln(e)}function dn(e){return cn(e)?e.value??null:e}function hn(e){const t=e.rows;if(!t)return e;let n=!1;for(const o of t){for(const e of o)if(cn(e)){n=!0;break}if(n)break}if(!n)return e;const i=[],r=new Map;for(let o=0;o<t.length;o++){const e=t[o],n=[];for(let t=0;t<e.length;t++){const i=e[t];cn(i)?(r.set(`${o},${t}`,i),n.push(i.value??null)):n.push(i)}i[o]=n}if(e.cells)for(const[o,s]of e.cells)r.set(o,s);return{...e,rows:i,cells:r}}function pn(e){let t=!1;const n=e.map(e=>{const n=hn(e);return n!==e&&(t=!0),n});return t?n:e}function fn(e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}function gn(e){return e>=0&&e<=8||11===e||12===e||e>=14&&e<=31}function mn(e,t="ooxml"){let n="",i=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);let s;switch(o){case 38:s="&amp;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;case 13:s="charRef"===t?"&#13;":fn(13);break;default:gn(o)&&(s=fn(o))}s&&(n+=e.slice(i,r)+s,i=r+1)}return 0===i?e:n+e.slice(i)}function vn(e){let t="",n=0;for(let i=0;i<e.length;i++){let r;switch(e.charCodeAt(i)){case 38:r="&amp;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 34:r="&quot;";break;case 39:r="&apos;";break;case 9:r="&#9;";break;case 10:r="&#10;";break;case 13:r="&#13;";break;default:gn(e.charCodeAt(i))&&(r=fn(e.charCodeAt(i)))}r&&(t+=e.slice(n,i)+r,n=i+1)}return 0===n?e:t+e.slice(n)}function yn(e){if(!e)return"";let t="";const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i],o=e[r];void 0!==o&&null!==o&&(t+="boolean"===typeof o?` ${r}="${o?"true":"false"}"`:` ${r}="${vn(String(o))}"`)}return t}function Cn(e,t){return`<${e}${yn(t)}/>`}function wn(e){const t=mn(e),n=e.length>0&&(" "===e[0]||" "===e[e.length-1]||e.includes("\n")||e.includes("\t"));return n?`<t xml:space="preserve">${t}</t>`:xn("t",void 0,t)}function xn(e,t,n){const i=yn(t);if(void 0===n||null===n)return`<${e}${i}/>`;const r=Array.isArray(n)?n.join(""):n;return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}/>`}function bn(e){const t=e?.standalone??"yes";return`<?xml version="1.0" encoding="UTF-8" standalone="${t}"?>`}function _n(e,t,n,i){const r=[],o=!1!==i?.declaration;return o&&r.push(bn(i)),void 0===n||null===n?r.push(Cn(e,t)):r.push(xn(e,t,n)),r.join("")}const Sn={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};function An(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}function Tn(e){return-1===e.indexOf("&")?e:e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>{if(35===t.charCodeAt(0)){const n=120===t.charCodeAt(1)||88===t.charCodeAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isNaN(n)||(n<0||n>1114111)?e:String.fromCodePoint(n)}return Sn[t]??e})}function En(e){return-1===e.indexOf("_x")?e:e.replace(/_x([0-9A-Fa-f]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function Dn(e){const t={};let n=0;const i=e.length;while(n<i){while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i)break;const r=n;while(n<i&&61!==e.charCodeAt(n)&&!In(e.charCodeAt(n)))n++;const o=e.slice(r,n);if(!o)break;while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i||61!==e.charCodeAt(n)){t[o]="";continue}n++;while(n<i&&In(e.charCodeAt(n)))n++;if(n>=i)break;const s=e.charCodeAt(n);if(34===s||39===s){n++;const r=n;while(n<i&&e.charCodeAt(n)!==s)n++;t[o]=Tn(An(e.slice(r,n))),n++}else{const r=n;while(n<i&&!In(e.charCodeAt(n)))n++;t[o]=Tn(An(e.slice(r,n)))}}return t}function Mn(e){const t=e.indexOf(":");return-1===t?{local:e,prefix:""}:{prefix:e.slice(0,t),local:e.slice(t+1)}}function In(e){return 32===e||9===e||10===e||13===e}function Rn(e,t){const n=65279===e.charCodeAt(0)?e.slice(1):e,i=n.length;let r=0;function o(e){let t=1,o=1;for(let s=0;s<r&&s<i;s++)10===n.charCodeAt(s)?(t++,o=1):o++;throw new wt(`${e} at line ${t}, column ${o}`)}while(r<i){if(60===n.charCodeAt(r)){const e=r+1<i?n.charCodeAt(r+1):0;if(33===e){if("\x3c!--"===n.slice(r,r+4)){const e=n.indexOf("--\x3e",r+4);-1===e&&o("Unterminated comment"),r=e+3;continue}if("<![CDATA["===n.slice(r,r+9)){const e=n.indexOf("]]>",r+9);-1===e&&o("Unterminated CDATA section");const i=n.slice(r+9,e);t.onCData?.(i),t.onText?.(i),r=e+3;continue}const e=n.indexOf(">",r+2);-1===e&&o("Unterminated declaration"),r=e+1;continue}if(63===e){const e=n.indexOf("?>",r+2);-1===e&&o("Unterminated processing instruction"),r=e+2;continue}if(47===e){const e=n.indexOf(">",r+2);-1===e&&o("Unterminated closing tag");const i=n.slice(r+2,e).trim();t.onCloseTag?.(i),r=e+1;continue}let s=r+1,a=0;while(s<i){const e=n.charCodeAt(s);if(a)e===a&&(a=0);else if(34===e||39===e)a=e;else if(62===e)break;s++}s>=i&&o("Unterminated opening tag");const l=47===n.charCodeAt(s-1),u=n.slice(r+1,l?s-1:s);let c=0;const d=u.length;while(c<d&&!In(u.charCodeAt(c)))c++;const h=u.slice(0,c),p=c<d?u.slice(c+1):"",f=p?Dn(p):{};t.onOpenTag?.(h,f),l&&t.onCloseTag?.(h),r=s+1;continue}const e=r;while(r<i&&60!==n.charCodeAt(r))r++;const s=n.slice(e,r);if(s){const e=Tn(An(s));t.onText?.(e)}}}async function Ln(e,t,n){const i=n?.strict??!1,r=e.getReader(),o=new TextDecoder("utf-8");let s="",a=!1;try{for(;;){const{done:e,value:n}=await r.read();if(e)break;s+=o.decode(n,{stream:!0}),a||(65279===s.charCodeAt(0)&&(s=s.slice(1)),a=!0),s=kn(s,t,!1,i)}s+=o.decode(),s.length>0&&kn(s,t,!0,i)}finally{try{await r.cancel()}catch{}try{r.releaseLock()}catch{}}}const Pn=262144,Nn=64;function Fn(e,t,n){let i=n;const r=e.lastIndexOf("&",i-1);r>=t&&n-r<=Nn&&-1===e.indexOf(";",r)&&(i=r);const o=i>t?e.charCodeAt(i-1):0;return(o>=55296&&o<=56319||13===o)&&i--,i>t?i:t}function On(e,t,n,i){if(e)throw new wt(i);return t.slice(n)}function kn(e,t,n,i){let r=0;const o=e.length;while(r<o){if(60===e.charCodeAt(r)){const s=r+1<o?e.charCodeAt(r+1):-1;if(-1===s&&!n)return e.slice(r);if(33===s){if("\x3c!--"===e.slice(r,r+4)){const t=e.indexOf("--\x3e",r+4);if(-1===t)return On(n&&i,e,r,"Unterminated comment");r=t+3;continue}if("<![CDATA["===e.slice(r,r+9)){const o=e.indexOf("]]>",r+9);if(-1===o)return On(n&&i,e,r,"Unterminated CDATA section");const s=e.slice(r+9,o);t.onCData?.(s),t.onText?.(s),r=o+3;continue}if(!n&&o-r<9)return e.slice(r);const s=e.indexOf(">",r+2);if(-1===s)return On(n&&i,e,r,"Unterminated declaration");r=s+1;continue}if(63===s){const t=e.indexOf("?>",r+2);if(-1===t)return On(n&&i,e,r,"Unterminated processing instruction");r=t+2;continue}if(47===s){const o=e.indexOf(">",r+2);if(-1===o)return On(n&&i,e,r,"Unterminated closing tag");const s=e.slice(r+2,o).trim();t.onCloseTag?.(s),r=o+1;continue}let a=r+1,l=0;while(a<o){const t=e.charCodeAt(a);if(l)t===l&&(l=0);else if(34===t||39===t)l=t;else if(62===t)break;a++}if(a>=o)return On(n&&i,e,r,"Unterminated opening tag");const u=47===e.charCodeAt(a-1),c=e.slice(r+1,u?a-1:a);let d=0;const h=c.length;while(d<h&&!In(c.charCodeAt(d)))d++;const p=c.slice(0,d),f=d<h?c.slice(d+1):"",g=f?Dn(f):{};t.onOpenTag?.(p,g),u&&t.onCloseTag?.(p),r=a+1;continue}const s=r;while(r<o&&60!==e.charCodeAt(r))r++;if(r>=o&&!n){if(o-s>Pn){const n=Fn(e,s,o);if(n>s)return t.onText?.(Tn(An(e.slice(s,n)))),e.slice(n)}return e.slice(s)}const a=e.slice(s,r);if(a){const e=Tn(An(a));t.onText?.(e)}}return""}function Bn(e){const t={tag:"",local:"",prefix:"",attrs:{},children:[]},n=[t];if(Rn(e,{onOpenTag(e,t){const{local:i,prefix:r}=Mn(e),o={tag:e,local:i,prefix:r,attrs:t,children:[]};n[n.length-1].children.push(o),n.push(o)},onCloseTag(e){if(n.length<=1)throw new wt("Unexpected closing tag: no matching open tag");const t=n[n.length-1];if(t.tag!==e)throw new wt(`Mismatched closing tag: expected </${t.tag}> but found </${e}>`);if(n.pop(),t.children.length>0){const e=[];for(const n of t.children)"string"===typeof n&&e.push(n);e.length>0&&(t.text=e.join(""))}},onText(e){n[n.length-1].children.push(e)}}),n.length>1){const e=n[n.length-1].tag;throw new wt(`Unexpected end of document: unclosed element <${e}>`)}if(0===t.children.length)throw new wt("Empty document: no root element found");for(const i of t.children)if("string"!==typeof i)return i;throw new wt("No root element found in document")}function Gn(e,t){for(const n of e.children)if("string"!==typeof n&&n.local===t)return n}function Vn(e){const t=[];for(const n of e.children)"string"!==typeof n&&t.push(n);return t}function Hn(e,t){if(e.local===t)return e;for(const n of e.children){if("string"===typeof n)continue;const e=Hn(n,t);if(e)return e}}function zn(e,t){const n=Gn(e,t);if(!n)return"";let i="";for(const r of n.children)"string"===typeof r&&(i+=r);return i}function Un(e,t){if(void 0===e)return t;const n=parseInt(e,10);return Number.isNaN(n)?t:n}const Wn="http://schemas.openxmlformats.org/spreadsheetml/2006/main",$n="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",jn="XLDAPR",Xn="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}",Yn="xl/metadata.xml",Kn="application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",qn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";function Zn(){const e=Cn("metadataType",{name:jn,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1}),t=xn("bk",void 0,[xn("extLst",void 0,[xn("ext",{uri:Xn},[Cn("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0})])])]),n=xn("bk",void 0,[Cn("rc",{t:1,v:0})]);return _n("metadata",{xmlns:Wn,"xmlns:xda":$n},[xn("metadataTypes",{count:1},[e]),xn("futureMetadata",{name:jn,count:1},[t]),xn("cellMetadata",{count:1},[n])])}function Qn(e){const t=new Set,n=Bn(e),i="metadata"===n.local?n:Gn(n,"metadata");if(!i)return t;const r=[],o=Gn(i,"metadataTypes");if(o)for(const u of Vn(o))"metadataType"===u.local&&r.push(u.attrs["name"]??"");const s=new Map;for(const u of Vn(i)){if("futureMetadata"!==u.local)continue;const e=u.attrs["name"]??"",t=s.get(e)??[];for(const n of Vn(u))"bk"===n.local&&t.push(Jn(n));s.set(e,t)}const a=Gn(i,"cellMetadata");if(!a)return t;let l=0;for(const u of Vn(a))if("bk"===u.local){l++;for(const e of Vn(u)){if("rc"!==e.local)continue;if(r[Un(e.attrs["t"],0)-1]!==jn)continue;const n=s.get(jn),i=Un(e.attrs["v"],-1);(!n||i<0||i>=n.length||n[i])&&t.add(l)}}return t}function Jn(e){for(const t of Vn(e))if("extLst"===t.local)for(const e of Vn(t))if("ext"===e.local&&(e.attrs["uri"]??"").toLowerCase()===Xn)for(const t of Vn(e)){if("dynamicArrayProperties"!==t.local)continue;const e=t.attrs["fDynamic"];return"0"!==e&&"false"!==e}return!0}const ei="http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag",ti="{C7286773-470A-42A8-94C5-96B5CB345126}",ni="http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",ii="application/vnd.ms-excel.featurepropertybag+xml",ri="xl/featurePropertyBag/featurePropertyBag.xml";ri.toLowerCase();function oi(){const e=[Cn("bag",{type:"Checkbox"}),xn("bag",{type:"XFControls"},[xn("bagId",{k:"CellControl"},"0")]),xn("bag",{type:"XFComplement"},[xn("bagId",{k:"XFControls"},"1")]),xn("bag",{type:"XFComplements",extRef:"XFComplementsMapperExtRef"},[xn("a",{k:"MappedFeaturePropertyBags"},[xn("bagId",void 0,"2")])])];return _n("FeaturePropertyBags",{xmlns:ei},e)}const si="http://schemas.openxmlformats.org/package/2006/content-types",ai="application/vnd.openxmlformats-package.relationships+xml",li="application/xml",ui="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",ci="application/vnd.ms-excel.sheet.macroEnabled.main+xml",di="application/vnd.ms-office.vbaProject",hi="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",pi="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",fi="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",gi="application/vnd.openxmlformats-officedocument.drawing+xml",mi="application/vnd.openxmlformats-officedocument.drawingml.chart+xml",vi="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",yi="application/vnd.openxmlformats-officedocument.vmlDrawing",Ci="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",wi="application/vnd.openxmlformats-officedocument.theme+xml",xi="application/vnd.ms-excel.threadedcomments+xml",bi="application/vnd.ms-excel.person+xml",_i="application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Si="application/vnd.openxmlformats-officedocument.drawing+xml",Ai="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",Ti="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",Ei="application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",Di="application/vnd.ms-excel.slicer+xml",Mi="application/vnd.ms-excel.slicerCache+xml",Ii="application/vnd.ms-excel.timeline+xml",Ri="application/vnd.ms-excel.timelineCache+xml",Li="application/vnd.ms-office.chartstyle+xml",Pi="application/vnd.ms-office.chartcolorstyle+xml",Ni={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};function Fi(e,t){let n;n="number"===typeof e?{sheetCount:e,hasSharedStrings:t??!1}:e;const i=[];if(i.push(Cn("Default",{Extension:"rels",ContentType:ai})),i.push(Cn("Default",{Extension:"xml",ContentType:li})),n.hasMacros&&i.push(Cn("Default",{Extension:"bin",ContentType:di})),n.imageExtensions)for(const r of n.imageExtensions){const e=Ni[r];e&&i.push(Cn("Default",{Extension:r,ContentType:e}))}i.push(Cn("Override",{PartName:"/xl/workbook.xml",ContentType:n.hasMacros?ci:ui}));for(let r=1;r<=n.sheetCount;r++)i.push(Cn("Override",{PartName:`/xl/worksheets/sheet${r}.xml`,ContentType:hi}));if(i.push(Cn("Override",{PartName:"/xl/styles.xml",ContentType:pi})),i.push(Cn("Override",{PartName:"/xl/theme/theme1.xml",ContentType:wi})),n.hasSharedStrings&&i.push(Cn("Override",{PartName:"/xl/sharedStrings.xml",ContentType:fi})),n.drawingIndices)for(const r of n.drawingIndices)i.push(Cn("Override",{PartName:`/xl/drawings/drawing${r}.xml`,ContentType:gi}));if(n.chartIndices)for(const r of n.chartIndices)i.push(Cn("Override",{PartName:`/xl/charts/chart${r}.xml`,ContentType:mi}));if(n.commentIndices&&n.commentIndices.length>0&&i.push(Cn("Default",{Extension:"vml",ContentType:yi})),n.commentIndices)for(const r of n.commentIndices)i.push(Cn("Override",{PartName:`/xl/comments${r}.xml`,ContentType:vi}));if(n.tableIndices)for(const r of n.tableIndices)i.push(Cn("Override",{PartName:`/xl/tables/table${r}.xml`,ContentType:Ci}));if(n.threadedCommentSheetIndices)for(const r of n.threadedCommentSheetIndices)i.push(Cn("Override",{PartName:`/xl/threadedComments/threadedComment${r}.xml`,ContentType:xi}));if(n.hasPersons&&i.push(Cn("Override",{PartName:"/xl/persons/person.xml",ContentType:bi})),n.externalLinkIndices)for(const r of n.externalLinkIndices)i.push(Cn("Override",{PartName:`/xl/externalLinks/externalLink${r}.xml`,ContentType:_i}));if(n.hasCellImages&&i.push(Cn("Override",{PartName:"/xl/cellimages.xml",ContentType:Si})),n.pivotTableIndices)for(const r of n.pivotTableIndices)i.push(Cn("Override",{PartName:`/xl/pivotTables/pivotTable${r}.xml`,ContentType:Ai}));if(n.pivotCacheDefinitionIndices)for(const r of n.pivotCacheDefinitionIndices)i.push(Cn("Override",{PartName:`/xl/pivotCache/pivotCacheDefinition${r}.xml`,ContentType:Ti}));if(n.pivotCacheRecordIndices)for(const r of n.pivotCacheRecordIndices)i.push(Cn("Override",{PartName:`/xl/pivotCache/pivotCacheRecords${r}.xml`,ContentType:Ei}));if(n.slicerIndices)for(const r of n.slicerIndices)i.push(Cn("Override",{PartName:`/xl/slicers/slicer${r}.xml`,ContentType:Di}));if(n.slicerCacheIndices)for(const r of n.slicerCacheIndices)i.push(Cn("Override",{PartName:`/xl/slicerCaches/slicerCache${r}.xml`,ContentType:Mi}));if(n.timelineIndices)for(const r of n.timelineIndices)i.push(Cn("Override",{PartName:`/xl/timelines/timeline${r}.xml`,ContentType:Ii}));if(n.timelineCacheIndices)for(const r of n.timelineCacheIndices)i.push(Cn("Override",{PartName:`/xl/timelineCaches/timelineCache${r}.xml`,ContentType:Ri}));if(n.chartStyleIndices)for(const r of n.chartStyleIndices)i.push(Cn("Override",{PartName:`/xl/charts/style${r}.xml`,ContentType:Li}));if(n.chartColorsIndices)for(const r of n.chartColorsIndices)i.push(Cn("Override",{PartName:`/xl/charts/colors${r}.xml`,ContentType:Pi}));return n.hasMetadata&&i.push(Cn("Override",{PartName:`/${Yn}`,ContentType:Kn})),n.hasFeaturePropertyBag&&i.push(Cn("Override",{PartName:`/${ri}`,ContentType:ii})),n.hasCoreProps&&i.push(Cn("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"})),n.hasAppProps&&i.push(Cn("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"})),n.hasCustomProps&&i.push(Cn("Override",{PartName:"/docProps/custom.xml",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml"})),_n("Types",{xmlns:si},i)}function Oi(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e.charCodeAt(n);t=t>>14&1|t<<1&32767,t^=i}return t=t>>14&1|t<<1&32767,t^=e.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}const ki="http://schemas.openxmlformats.org/spreadsheetml/2006/main",Bi="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Gi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Vi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Hi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",zi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Ui="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Wi="http://schemas.openxmlformats.org/package/2006/relationships";function $i(e,t,n,i,r,o,s,a,l){const u=[];for(let p=0;p<e.length;p++){const t=e[p],n={name:t.name,sheetId:p+1,"r:id":`rId${p+1}`};t.hidden?n["state"]="hidden":t.veryHidden&&(n["state"]="veryHidden"),u.push(Cn("sheet",n))}const c=[];if("1904"===n&&c.push(Cn("workbookPr",{date1904:1})),r){const e={};r.lockStructure&&(e["lockStructure"]=1),r.lockWindows&&(e["lockWindows"]=1),r.password&&(e["workbookPassword"]=Oi(r.password)),c.push(Cn("workbookProtection",e))}const d=i??0;if(c.push(xn("bookViews",void 0,[Cn("workbookView",{xWindow:0,yWindow:0,windowWidth:16384,windowHeight:8192,activeTab:d})])),c.push(xn("sheets",void 0,u)),o&&o.length>0){const e=o.map(e=>Cn("externalReference",{"r:id":e.rId}));c.push(xn("externalReferences",void 0,e))}if(t&&t.length>0){const n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,t);const i=[];for(const e of t){const t={name:e.name};if(void 0!==e.scope){const i=n.get(e.scope);void 0!==i&&(t["localSheetId"]=i)}e.comment&&(t["comment"]=e.comment),i.push(xn("definedName",t,mn(e.range)))}c.push(xn("definedNames",void 0,i))}if(c.push(Cn("calcPr",{calcId:0,fullCalcOnLoad:1})),s&&s.length>0){const e=s.map(e=>Cn("pivotCache",{cacheId:e.cacheId,"r:id":e.rId}));c.push(xn("pivotCaches",void 0,e))}const h=[];if(a&&a.length>0){const e=a.map(e=>Cn("x14:slicerCache",{"r:id":e.rId})),t=xn("x14:slicerCaches",void 0,e);h.push(xn("ext",{uri:"{BBE1A952-AA13-448E-AADC-164F8A28A991}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},[t]))}if(l&&l.length>0){const e=l.map(e=>Cn("x15:timelineCachePivotCache",{"r:id":e.rId})),t=xn("x15:timelineCachePivotCaches",void 0,e);h.push(xn("ext",{uri:"{7E03D99C-DC04-49D9-9315-930204A7B6E9}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},[t]))}return h.length>0&&c.push(xn("extLst",void 0,h)),_n("workbook",{xmlns:ki,"xmlns:r":Bi},c)}const ji="http://schemas.microsoft.com/office/2006/relationships/vbaProject",Xi="http://schemas.microsoft.com/office/2017/10/relationships/person",Yi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",Ki="http://www.wps.cn/officeDocument/2017/relationships/cellimage",qi="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",Zi="http://schemas.microsoft.com/office/2007/relationships/slicerCache",Qi="http://schemas.microsoft.com/office/2011/relationships/timelineCache";function Ji(e,t,n,i,r,o,s,a,l,u,c){const d=[];for(let p=1;p<=e;p++)d.push(Cn("Relationship",{Id:`rId${p}`,Type:Gi,Target:`worksheets/sheet${p}.xml`}));let h=e+1;if(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Vi,Target:"styles.xml"})),h++,t&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Hi,Target:"sharedStrings.xml"})),h++),d.push(Cn("Relationship",{Id:`rId${h}`,Type:zi,Target:"theme/theme1.xml"})),h++,c&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:qn,Target:"metadata.xml"})),h++),n&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:ji,Target:"vbaProject.bin"})),h++),i&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:ni,Target:"featurePropertyBag/featurePropertyBag.xml"})),h++),r&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Xi,Target:"persons/person.xml"})),h++),o){for(const e of o)d.push(Cn("Relationship",{Id:e.rId,Type:Yi,Target:e.target}));h+=o.length}if(u&&(d.push(Cn("Relationship",{Id:`rId${h}`,Type:Ki,Target:"cellimages.xml"})),h++),s)for(const p of s)d.push(Cn("Relationship",{Id:p.rId,Type:qi,Target:p.target}));if(a)for(const p of a)d.push(Cn("Relationship",{Id:p.rId,Type:Zi,Target:p.target}));if(l)for(const p of l)d.push(Cn("Relationship",{Id:p.rId,Type:Qi,Target:p.target}));return _n("Relationships",{xmlns:Wi},d)}function er(e){const t=[];t.push(Cn("Relationship",{Id:"rId1",Type:Ui,Target:"xl/workbook.xml"}));let n=2;return e?.hasCoreProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"})),e?.hasAppProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Target:"docProps/app.xml"})),e?.hasCustomProps&&t.push(Cn("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Target:"docProps/custom.xml"})),_n("Relationships",{xmlns:Wi},t)}function tr(e){return void 0===e?void 0:{...e}}function nr(e){const t={...e};return e.color&&(t.color=tr(e.color)),t}function ir(e){if("gradient"===e.type)return{...e,stops:e.stops.map(e=>({...e,color:{...e.color}}))};const t={...e};return e.fgColor&&(t.fgColor=tr(e.fgColor)),e.bgColor&&(t.bgColor=tr(e.bgColor)),t}function rr(e){if(void 0===e)return;const t={...e};return e.color&&(t.color=tr(e.color)),t}function or(e){const t={...e};for(const n of["top","right","bottom","left","diagonal"])e[n]&&(t[n]=rr(e[n]));return t}function sr(e){const t={...e};return e.font&&(t.font=nr(e.font)),e.fill&&(t.fill=ir(e.fill)),e.border&&(t.border=or(e.border)),e.alignment&&(t.alignment={...e.alignment}),e.protection&&(t.protection={...e.protection}),t}const ar="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function lr(e,t){const n={};return void 0!==t.rgb&&(n["rgb"]=6===t.rgb.length?`FF${t.rgb}`:t.rgb),void 0!==t.theme&&(n["theme"]=t.theme),void 0!==t.tint&&(n["tint"]=t.tint),void 0!==t.indexed&&(n["indexed"]=t.indexed),Cn(e,n)}function ur(e){const t=[];return e.bold&&t.push(Cn("b")),e.italic&&t.push(Cn("i")),void 0!==e.underline&&!1!==e.underline&&(!0===e.underline||"single"===e.underline?t.push(Cn("u")):t.push(Cn("u",{val:e.underline}))),e.strikethrough&&t.push(Cn("strike")),void 0!==e.charset&&t.push(Cn("charset",{val:e.charset})),void 0!==e.family&&t.push(Cn("family",{val:e.family})),e.scheme&&t.push(Cn("scheme",{val:e.scheme})),e.color&&t.push(lr("color",e.color)),void 0!==e.size&&t.push(Cn("sz",{val:e.size})),e.name&&t.push(Cn("name",{val:e.name})),e.vertAlign&&t.push(Cn("vertAlign",{val:e.vertAlign})),xn("font",void 0,t)}function cr(e){if("pattern"===e.type){const t=[];e.fgColor&&t.push(lr("fgColor",e.fgColor)),e.bgColor&&t.push(lr("bgColor",e.bgColor));const n=xn("patternFill",{patternType:e.pattern},t.length>0?t:void 0);return xn("fill",void 0,[n])}const t=[];for(const r of e.stops)t.push(xn("stop",{position:r.position},[lr("color",r.color)]));const n={};void 0!==e.degree&&(n["degree"]=e.degree);const i=xn("gradientFill",n,t);return xn("fill",void 0,[i])}function dr(e,t){return t?t.color?xn(""+e,{style:t.style},[lr("color",t.color)]):Cn(e,{style:t.style}):Cn(e)}function hr(e){const t={};e.diagonalUp&&(t["diagonalUp"]=!0),e.diagonalDown&&(t["diagonalDown"]=!0);const n=[dr("left",e.left),dr("right",e.right),dr("top",e.top),dr("bottom",e.bottom),dr("diagonal",e.diagonal)];return xn("border",Object.keys(t).length>0?t:void 0,n)}function pr(e){if(!e)return"";const t=[];return void 0!==e.rgb&&t.push(`rgb:${e.rgb}`),void 0!==e.theme&&t.push(`th:${e.theme}`),void 0!==e.tint&&t.push(`tint:${e.tint}`),void 0!==e.indexed&&t.push(`idx:${e.indexed}`),t.join("|")}function fr(e){const t=[];return e.name&&t.push(`n:${e.name}`),void 0!==e.size&&t.push(`s:${e.size}`),e.bold&&t.push("b"),e.italic&&t.push("i"),void 0!==e.underline&&!1!==e.underline&&t.push(`u:${e.underline}`),e.strikethrough&&t.push("st"),e.color&&t.push(`c:${pr(e.color)}`),e.vertAlign&&t.push(`va:${e.vertAlign}`),void 0!==e.family&&t.push(`fam:${e.family}`),void 0!==e.charset&&t.push(`cs:${e.charset}`),e.scheme&&t.push(`sch:${e.scheme}`),t.join(",")}function gr(e){return"pattern"===e.type?`p:${e.pattern}|fg:${pr(e.fgColor)}|bg:${pr(e.bgColor)}`:`g:${e.degree??""}|${e.stops.map(e=>`${e.position}:${pr(e.color)}`).join(";")}`}function mr(e){return e?`${e.style}:${pr(e.color)}`:""}function vr(e){return[`l:${mr(e.left)}`,`r:${mr(e.right)}`,`t:${mr(e.top)}`,`b:${mr(e.bottom)}`,`d:${mr(e.diagonal)}`,e.diagonalUp?"du":"",e.diagonalDown?"dd":""].join("|")}function yr(e,t){const n=t?.reuseStyleIdentity??!1,i={name:e?.name??"Calibri",size:e?.size??11,...e},r=[{key:fr(i),font:i}],o=new Map([[r[0].key,0]]),s=[{key:"p:none|fg:|bg:",fill:{type:"pattern",pattern:"none"}},{key:"p:gray125|fg:|bg:",fill:{type:"pattern",pattern:"gray125"}}],a=new Map([[s[0].key,0],[s[1].key,1]]),l={},u=[{key:vr(l),border:l}],c=new Map([[u[0].key,0]]),d=[],h=new Map;let p=164;const f="nf:0|f:0|fl:0|b:0|a:|p:",g=[{key:f,numFmtId:0,fontId:0,fillId:0,borderId:0}],m=new Map([[f,0]]);function v(e){const t=fr(e),n=o.get(t);if(void 0!==n)return n;const i=r.length;return r.push({key:t,font:nr(e)}),o.set(t,i),i}function y(e){const t=gr(e),n=a.get(t);if(void 0!==n)return n;const i=s.length;return s.push({key:t,fill:ir(e)}),a.set(t,i),i}function C(e){const t=vr(e),n=c.get(t);if(void 0!==n)return n;const i=u.length;return u.push({key:t,border:or(e)}),c.set(t,i),i}function w(e){const t=h.get(e);if(void 0!==t)return t;const n=p++;return d.push({id:n,formatCode:e}),h.set(e,n),n}function x(e){if(!e)return"";const t=[];return e.horizontal&&t.push(`h:${e.horizontal}`),e.vertical&&t.push(`v:${e.vertical}`),e.wrapText&&t.push("w"),e.shrinkToFit&&t.push("sf"),void 0!==e.textRotation&&t.push(`r:${e.textRotation}`),void 0!==e.indent&&t.push(`i:${e.indent}`),e.readingOrder&&t.push(`ro:${e.readingOrder}`),t.join(",")}function b(e){if(!e)return"";const t=[];return void 0!==e.locked&&t.push(`l:${e.locked}`),void 0!==e.hidden&&t.push(`h:${e.hidden}`),t.join(",")}const _=[],S=new Map;function A(e){const t=[];return e.font&&t.push(`f:${fr(e.font)}`),e.fill&&t.push(`fl:${gr(e.fill)}`),e.border&&t.push(`b:${vr(e.border)}`),e.numFmt&&t.push(`nf:${e.numFmt}`),e.alignment&&t.push(`a:${x(e.alignment)}`),t.join("|")}function T(e){const t=A(e),n=S.get(t);if(void 0!==n)return n;const i=_.length;return _.push(e),S.set(t,i),i}function E(e){return I(e,!1)}function D(e){return I(e??{},!0)}const M=n?new WeakMap:void 0;function I(e,t){if(M&&!t){const t=M.get(e);if(void 0!==t)return t}const n=e.font?v(e.font):0,i=e.fill?y(e.fill):0,r=e.border?C(e.border):0,o=e.numFmt?w(e.numFmt):0,s=[`nf:${o}`,`f:${n}`,`fl:${i}`,`b:${r}`,`a:${x(e.alignment)}`,`p:${b(e.protection)}`,t?"cb:1":"cb:0"].join("|"),a=m.get(s);if(void 0!==a)return M&&!t&&M.set(e,a),a;const l=g.length;return g.push({key:s,numFmtId:o,fontId:n,fillId:i,borderId:r,alignment:e.alignment?{...e.alignment}:void 0,protection:e.protection?{...e.protection}:void 0,hasCheckboxFeature:t||void 0}),m.set(s,l),M&&!t&&M.set(e,l),l}function R(){for(const e of g)if(e.hasCheckboxFeature)return!0;return!1}function L(e){const t={};if(e.horizontal&&(t["horizontal"]=e.horizontal),e.vertical&&(t["vertical"]=e.vertical),e.wrapText&&(t["wrapText"]=!0),e.shrinkToFit&&(t["shrinkToFit"]=!0),void 0!==e.textRotation&&(t["textRotation"]=e.textRotation),void 0!==e.indent&&(t["indent"]=e.indent),e.readingOrder){const n={ltr:1,rtl:2,context:0};t["readingOrder"]=n[e.readingOrder]}return Cn("alignment",t)}function P(e){const t={};return void 0!==e.locked&&(t["locked"]=e.locked?1:0),void 0!==e.hidden&&(t["hidden"]=e.hidden?1:0),Cn("protection",t)}function N(){const e=[];if(d.length>0){const t=d.map(e=>Cn("numFmt",{numFmtId:e.id,formatCode:e.formatCode}));e.push(xn("numFmts",{count:d.length},t))}const t=r.map(e=>ur(e.font));e.push(xn("fonts",{count:r.length},t));const n=s.map(e=>cr(e.fill));e.push(xn("fills",{count:s.length},n));const i=u.map(e=>hr(e.border));e.push(xn("borders",{count:u.length},i)),e.push(xn("cellStyleXfs",{count:1},[Cn("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]));const o=g.map(e=>{const t={numFmtId:e.numFmtId,fontId:e.fontId,fillId:e.fillId,borderId:e.borderId,xfId:0};0!==e.numFmtId&&(t["applyNumberFormat"]=!0),0!==e.fontId&&(t["applyFont"]=!0),0!==e.fillId&&(t["applyFill"]=!0),0!==e.borderId&&(t["applyBorder"]=!0);const n=void 0!==e.alignment,i=void 0!==e.protection,r=!0===e.hasCheckboxFeature;if(n&&(t["applyAlignment"]=!0),i&&(t["applyProtection"]=!0),n||i||r){const o=[];return n&&o.push(L(e.alignment)),i&&o.push(P(e.protection)),r&&o.push(xn("extLst",void 0,xn("ext",{uri:ti,"xmlns:xfpb":ei},Cn("xfpb:xfComplement",{i:"0"})))),xn("xf",t,o)}return Cn("xf",t)});if(e.push(xn("cellXfs",{count:g.length},o)),e.push(xn("cellStyles",{count:1},[Cn("cellStyle",{name:"Normal",xfId:0,builtinId:0})])),_.length>0){const t=_.map(e=>{const t=[];if(e.font&&t.push(ur(e.font)),e.numFmt){const n=w(e.numFmt);t.push(Cn("numFmt",{numFmtId:n,formatCode:e.numFmt}))}return e.fill&&t.push(cr(e.fill)),e.border&&t.push(hr(e.border)),e.alignment&&t.push(L(e.alignment)),xn("dxf",void 0,t)});e.push(xn("dxfs",{count:_.length},t))}else e.push(Cn("dxfs",{count:0}));return e.push(Cn("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"})),_n("styleSheet",{xmlns:ar},e)}return{addStyle:E,addCheckboxStyle:D,addNumFmt:w,addDxf:T,hasCheckboxFeature:R,toXml:N}}const Cr=Date.UTC(1899,11,31),wr=Date.UTC(1904,0,1),xr=864e5,br=60;function _r(e,t){if(t){const t=wr+Math.round(e*xr);return new Date(t)}if(e===br)return new Date(Date.UTC(1900,1,28));let n=e;e>br&&(n=e-1);const i=Cr+Math.round(n*xr);return new Date(i)}function Sr(e,t){const n=e.getTime();if(t)return(n-wr)/xr;let i=(n-Cr)/xr;return i>=br&&(i+=1),Math.round(1e10*i)/1e10}const Ar=new Set([14,15,16,17,18,19,20,21,22,27,28,29,30,31,32,33,34,35,36,45,46,47,50,51,52,53,54,55,56,57,58]);function Tr(e){return Ar.has(e)}function Er(e){if(!e)return!1;const t=Number(e);if(!Number.isNaN(t)&&Number.isInteger(t)&&Ar.has(t))return!0;let n=e.replace(/\[[$\-\w]*\]/g,"");if(n=n.replace(/\\./g,""),n=n.replace(/"[^"]*"/g,""),n=n.replace(/[*_]./g,""),/^(General|@)$/i.test(n.trim()))return!1;const i=n.toLowerCase();if(/[hs]/.test(i)){if(/\bh{1,2}\b|(?:^|[^a-z])h{1,2}(?:[^a-z]|$)/i.test(i))return!0;if(/\bs{1,2}\b|(?:^|[^a-z])s{1,2}(?:[^a-z]|$)/i.test(i))return!0}return!!/am\/pm|a\/p/i.test(i)||(!!/\[h+\]|\[m+\]|\[s+\]/i.test(e)||(!!/y{1,4}/.test(i)||(!!/d{1,4}/.test(i)||!!/m{3,}/.test(i))))}const Dr=["January","February","March","April","May","June","July","August","September","October","November","December"],Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ir=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Rr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Lr(e,t,n){const i=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),s=e.getUTCDay();let a=e.getUTCHours();const l=e.getUTCMinutes(),u=e.getUTCSeconds(),c=e.getUTCMilliseconds(),d=/am\/pm|a\/p/i.test(t);let h="",p=a;d&&(h=a>=12?"PM":"AM",p=a%12,0===p&&(p=12));const f=Pr(t),g=void 0!==n&&n>0?n:0,m=Math.floor(24*g),v=Math.floor(24*g*60),y=Math.floor(24*g*60*60),C=Array.from({length:f.length},()=>!1);for(let x=0;x<f.length;x++){const e=f[x].toLowerCase();if("m"!==e&&"mm"!==e)continue;let t=!1;for(let i=x-1;i>=0;i--){const e=f[i].toLowerCase();if("h"===e||"hh"===e||/^\[h+\]$/.test(e)){t=!0;break}if(/^[ymdhs]+$/.test(e)||/^\[[ms]+\]$/.test(e)||"am/pm"===e||"a/p"===e)break}let n=!1;for(let i=x+1;i<f.length;i++){const e=f[i].toLowerCase();if("s"===e||"ss"===e){n=!0;break}if(/^[ymdh]+$/.test(e)||"am/pm"===e||"a/p"===e)break}C[x]=t||n}let w="";for(let x=0;x<f.length;x++){const e=f[x],t=e.toLowerCase();if(e.startsWith("[")&&e.endsWith("]")){const e=t.slice(1,-1);/^h+$/.test(e)?w+=String(m).padStart(e.length,"0"):/^m+$/.test(e)?w+=String(v).padStart(e.length,"0"):/^s+$/.test(e)&&(w+=String(y).padStart(e.length,"0"));continue}switch(t){case"yyyy":w+=String(i);break;case"yy":w+=String(i%100).padStart(2,"0");break;case"mmmm":w+=Dr[r];break;case"mmm":w+=Mr[r];break;case"mm":C[x]?w+=String(l).padStart(2,"0"):w+=String(r+1).padStart(2,"0");break;case"m":C[x]?w+=String(l):w+=String(r+1);break;case"dddd":w+=Ir[s];break;case"ddd":w+=Rr[s];break;case"dd":w+=String(o).padStart(2,"0");break;case"d":w+=String(o);break;case"hh":w+=String(p).padStart(2,"0");break;case"h":w+=String(p);break;case"ss":w+=String(u).padStart(2,"0");break;case"s":w+=String(u);break;case".0":case".00":case".000":{const e=t.length-1,n=String(c).padStart(3,"0").slice(0,e);w+="."+n}break;case"am/pm":w+=h;break;case"a/p":w+=h.charAt(0);break;default:w+=e;break}}return w}function Pr(e){const t=[];let n=0;while(n<e.length){if("["===e[n]&&"$"===e[n+1]){const t=e.indexOf("]",n);if(-1!==t){n=t+1;continue}}if("["===e[n]){const i=e.indexOf("]",n);if(-1!==i){const r=e.slice(n+1,i);if(/^h+$/i.test(r)||/^m+$/i.test(r)||/^s+$/i.test(r)){t.push(e.slice(n,i+1)),n=i+1;continue}n=i+1;continue}}if('"'===e[n]){let i="";n++;while(n<e.length&&'"'!==e[n])i+=e[n],n++;n++,t.push(i);continue}if("\\"===e[n]){n++,n<e.length&&(t.push(e[n]),n++);continue}if(/^am\/pm/i.test(e.slice(n))){t.push(e.slice(n,n+5)),n+=5;continue}if(/^a\/p/i.test(e.slice(n))){t.push(e.slice(n,n+3)),n+=3;continue}if("."===e[n]&&n+1<e.length&&"0"===e[n+1]){let i=".",r=n+1;while(r<e.length&&"0"===e[r])i+="0",r++;t.push(i),n=r;continue}const i=e[n].toLowerCase();if("ymdhsn".includes(i)){let r="";const o=i;while(n<e.length&&e[n].toLowerCase()===o)r+=e[n],n++;t.push(r);continue}t.push(e[n]),n++}return t}function Nr(e){const t=e.trim(),n=t.indexOf("T"),i=n>=0&&/(?:Z|[+-]\d{2}:?\d{2})$/.test(t.slice(n+1)),r=new Date(n>=0&&!i?`${t}Z`:t);return Number.isNaN(r.getTime())?void 0:r}const Fr=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"],Or={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:"m/d/yyyy",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/yyyy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};function kr(e){const t=Bn(e),n=new Map,i=[],r=[],o=[],s=[],a=[];for(const u of t.children){if("string"===typeof u)continue;const e=u.local||u.tag;switch(e){case"numFmts":Vr(u,n);break;case"fonts":Hr(u,i);break;case"fills":Wr(u,r);break;case"borders":Yr(u,o);break;case"cellXfs":Zr(u,s);break;case"dxfs":Jr(u,a);break}}const l=Br(t);for(const u of[i,r,o,a])Gr(u,l);return{numFmts:n,fonts:i,fills:r,borders:o,cellXfs:s,dxfs:a}}function Br(e){for(const t of e.children)if("string"!==typeof t&&"colors"===(t.local||t.tag))for(const e of t.children){if("string"===typeof e)continue;if("indexedColors"!==(e.local||e.tag))continue;const t=[];for(const n of e.children){if("string"===typeof n)continue;if("rgbColor"!==(n.local||n.tag))continue;const e=n.attrs["rgb"];e&&t.push(8===e.length?e.slice(2):e)}if(t.length>0)return t}return Fr}function Gr(e,t){if(null===e||"object"!==typeof e)return;if(Array.isArray(e)){for(const n of e)Gr(n,t);return}const n=e;if("number"===typeof n["indexed"]&&"string"!==typeof n["rgb"]){const e=t[n["indexed"]];e&&(n["rgb"]=e)}for(const i of Object.values(n))Gr(i,t)}function Vr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;if("numFmt"===e){const e=Number(n.attrs["numFmtId"]),i=n.attrs["formatCode"]??"";Number.isNaN(e)||t.set(e,i)}}}function Hr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"font"===e&&t.push(zr(n))}}function zr(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"b":t.bold="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"i":t.italic="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"u":{const e=n.attrs["val"];t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"sz":n.attrs["val"]&&(t.size=Number(n.attrs["val"]));break;case"name":n.attrs["val"]&&(t.name=n.attrs["val"]);break;case"color":t.color=Ur(n);break;case"vertAlign":"superscript"!==n.attrs["val"]&&"subscript"!==n.attrs["val"]||(t.vertAlign=n.attrs["val"]);break;case"family":n.attrs["val"]&&(t.family=Number(n.attrs["val"]));break;case"charset":n.attrs["val"]&&(t.charset=Number(n.attrs["val"]));break;case"scheme":"major"!==n.attrs["val"]&&"minor"!==n.attrs["val"]&&"none"!==n.attrs["val"]||(t.scheme=n.attrs["val"]);break}}return t}function Ur(e){const t={};if(e.attrs["rgb"]){const n=e.attrs["rgb"];t.rgb=8===n.length?n.slice(2):n}return e.attrs["theme"]&&(t.theme=Number(e.attrs["theme"])),e.attrs["tint"]&&(t.tint=Number(e.attrs["tint"])),e.attrs["indexed"]&&(t.indexed=Number(e.attrs["indexed"])),t}function Wr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"fill"===e&&t.push($r(n))}}function $r(e){for(const t of e.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("patternFill"===e)return jr(t);if("gradientFill"===e)return Xr(t)}return{type:"pattern",pattern:"none"}}function jr(e){const t=e.attrs["patternType"]??"none",n={type:"pattern",pattern:t};for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;"fgColor"===e?n.fgColor=Ur(i):"bgColor"===e&&(n.bgColor=Ur(i))}return n}function Xr(e){const t=e.attrs["degree"]?Number(e.attrs["degree"]):void 0,n=[];for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("stop"===e){const e=Number(i.attrs["position"]??"0");for(const t of i.children){if("string"===typeof t)continue;const i=t.local||t.tag;"color"===i&&n.push({position:e,color:Ur(t)})}}}return{type:"gradient",degree:t,stops:n}}function Yr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"border"===e&&t.push(Kr(n))}}function Kr(e){const t={},n=e.attrs["diagonalUp"],i=e.attrs["diagonalDown"];"1"!==n&&"true"!==n||(t.diagonalUp=!0),"1"!==i&&"true"!==i||(t.diagonalDown=!0);for(const r of e.children){if("string"===typeof r)continue;const e=r.local||r.tag,n=qr(r);if(n)switch(e){case"left":t.left=n;break;case"right":t.right=n;break;case"top":t.top=n;break;case"bottom":t.bottom=n;break;case"diagonal":t.diagonal=n;break}}return t}function qr(e){const t=e.attrs["style"];if(!t)return;const n={style:t};for(const i of e.children){if("string"===typeof i)continue;const e=i.local||i.tag;"color"===e&&(n.color=Ur(i))}return n}function Zr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"xf"===e&&t.push(Qr(n))}}function Qr(e){const t={numFmtId:Number(e.attrs["numFmtId"]??"0"),fontId:Number(e.attrs["fontId"]??"0"),fillId:Number(e.attrs["fillId"]??"0"),borderId:Number(e.attrs["borderId"]??"0")};"1"!==e.attrs["applyNumberFormat"]&&"true"!==e.attrs["applyNumberFormat"]||(t.applyNumberFormat=!0),"1"!==e.attrs["applyFont"]&&"true"!==e.attrs["applyFont"]||(t.applyFont=!0),"1"!==e.attrs["applyFill"]&&"true"!==e.attrs["applyFill"]||(t.applyFill=!0),"1"!==e.attrs["applyBorder"]&&"true"!==e.attrs["applyBorder"]||(t.applyBorder=!0),"1"!==e.attrs["applyAlignment"]&&"true"!==e.attrs["applyAlignment"]||(t.applyAlignment=!0),"1"!==e.attrs["applyProtection"]&&"true"!==e.attrs["applyProtection"]||(t.applyProtection=!0);for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"alignment"===e?t.alignment=io(n):"protection"===e?t.protection=no(n):"extLst"===e&&to(n)&&(t.hasCheckboxFeature=!0)}return t}function Jr(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;"dxf"===e&&t.push(eo(n))}}function eo(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"font":t.font=zr(n);break;case"numFmt":{const e=n.attrs["formatCode"];if(e)t.numFmt=e;else{const e=Number(n.attrs["numFmtId"]),i=Number.isNaN(e)?void 0:Or[e];i&&(t.numFmt=i)}break}case"fill":t.fill=$r(n);break;case"border":t.border=Kr(n);break;case"alignment":t.alignment=io(n);break}}return t}function to(e){for(const t of e.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("ext"===e&&t.attrs["uri"]===ti)return!0}return!1}function no(e){const t={},n=e.attrs["locked"];void 0!==n&&(t.locked="1"===n||"true"===n);const i=e.attrs["hidden"];return void 0!==i&&(t.hidden="1"===i||"true"===i),t}function io(e){const t={};if(e.attrs["horizontal"]&&(t.horizontal=e.attrs["horizontal"]),e.attrs["vertical"]&&(t.vertical=e.attrs["vertical"]),"1"!==e.attrs["wrapText"]&&"true"!==e.attrs["wrapText"]||(t.wrapText=!0),"1"!==e.attrs["shrinkToFit"]&&"true"!==e.attrs["shrinkToFit"]||(t.shrinkToFit=!0),e.attrs["textRotation"]&&(t.textRotation=Number(e.attrs["textRotation"])),e.attrs["indent"]&&(t.indent=Number(e.attrs["indent"])),e.attrs["readingOrder"]){const n=Number(e.attrs["readingOrder"]);t.readingOrder=1===n?"ltr":2===n?"rtl":"context"}return t}function ro(e,t){const n=e.cellXfs[t];if(!n)return{};const i={};if(0!==n.numFmtId){const t=e.numFmts.get(n.numFmtId)??Or[n.numFmtId];t&&(i.numFmt=t)}return n.fontId<e.fonts.length&&0!==n.fontId&&(i.font=e.fonts[n.fontId]),n.fillId<e.fills.length&&n.fillId>1&&(i.fill=e.fills[n.fillId]),n.borderId<e.borders.length&&0!==n.borderId&&(i.border=e.borders[n.borderId]),n.alignment&&(i.alignment=n.alignment),n.protection&&(i.protection=n.protection),i}function oo(e,t){const n=e.cellXfs[t];if(!n)return!1;const i=n.numFmtId,r=e.numFmts.get(i);if(r)return Er(r);if(Tr(i))return!0;const o=Or[i];return!!o&&Er(o)}function so(e,t,n,i,r,o){const s=i>0?100*r/i:100,a=r<=Dt;return`Sheet "${e}" spans ${t} rows x ${n} columns (${i} cells, ${s.toFixed(2)}% of them filled), over the ${o} limit.\n - streamXlsxRows(input) reads it a row at a time, whatever the box.\n`+(a?" - readXlsx(input, { sparse: true }) returns the cells and no grid.\n":` - \`sparse: true\` cannot help here: ${r} filled cells is past the ${Dt} a Map can hold.\n`)+" - `range` or `maxRows` bound the area, if you know where the data is.\n - `maxTotalCells` raises the bound, if the sheet really is this large."}function ao(e,t,n){if(!(e.size<Dt||e.has(t)))throw new yt(`Sheet "${n??"?"}" has more than ${Dt} filled cells, which is the most \`Sheet.cells\` can hold — a Map caps at 2^24 entries.\n - streamXlsxRows(input) reads it a row at a time and has no such bound.\nThe file is not damaged; it is larger than this model.`)}function lo(e,t){if(void 0===e)return!1;const n=Number(e);return!(!Number.isFinite(n)||n<=0)&&(!t.dynamicArrayCm||t.dynamicArrayCm.has(n))}function uo(e){let t=0,n=0;while(t<e.length){const i=e.charCodeAt(t);if(i>=65&&i<=90)n=26*n+(i-64),t++;else{if(!(i>=97&&i<=122))break;n=26*n+(i-96),t++}}n--;const i=Number(e.slice(t))-1;return{row:i,col:n}}function co(e,t){const n=Number(e??"");if(Number.isNaN(n))return t;const i=Math.trunc(n);return i<1?t:Math.min(i,16384)}function ho(e){const t=e.split(":"),n=uo(t[0]),i=t.length>1?uo(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:i.row,endCol:i.col}}function po(e,t){const n=[],i=new Map,r=[];let o,s=-1,a=-1,l=0,u=!1;t.range&&(o=ho(t.range));const c=[],d=[],h=[];let p,f,g,m,v,y,C,w,x,b=!1,_=-1,S=[],A=!1,T=!1;const E=[],D=[];let M=!1,I=!1;const R=[];let L=!1,P=!1,N=!1,F=!1,O=!1,k="",B="",G=!1,V="",H="",z=!1,U=!1,W=!1,$=!1,j=!1,X=!1,Y=!1,K="";const q=t.maxRows??0;let Z=0;const Q=new Map,J=[];let ee,te,ne,ie=!1,re=!1,oe=!1,se=!1,ae=!1,le=!1,ue=!1,ce=!1,de=!1,he=!1,pe=!1,fe=!1,ge=!1,me=!1,ve="",ye="",Ce={},we=!1,xe="",be=!1,_e={},Se=!1,Ae="",Te=[],Ee=!1,De=[],Me=[],Ie=!1,Re=[],Le="",Pe=!1,Ne={},Fe=[],Oe=!1,ke=!1,Be=!1,Ge="",Ve=0,He=0,ze="",Ue=-1,We="",$e="",je="",Xe=-1,Ye="",Ke=!1,qe="",Ze=[],Qe="",Je="";const et={onOpenTag(e,n){const i=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(i){case"cols":ie=!0;break;case"col":if(ie){const e=co(n["min"],1),i=co(n["max"],0),r=n["width"]?Number(n["width"]):void 0,o="1"===n["hidden"]||"true"===n["hidden"],s=n["outlineLevel"]?Number(n["outlineLevel"]):void 0,a="1"===n["collapsed"]||"true"===n["collapsed"],l="1"===n["bestFit"]||"true"===n["bestFit"],u=void 0!==n["style"]?Number(n["style"]):void 0,c=t.readStyles&&t.styles&&void 0!==u&&u>=0?ro(t.styles,u):void 0;for(let t=e;t<=i;t++){const e=t-1;while(J.length<=e)J.push({});const n={};void 0===r||Number.isNaN(r)||(n.width=r),o&&(n.hidden=!0),void 0!==s&&!Number.isNaN(s)&&s>0&&(n.outlineLevel=s),a&&(n.collapsed=!0),l&&(n.autoWidth=!0),c&&Object.keys(c).length>0&&(n.style=sr(c)),Object.keys(n).length>0&&(J[e]=n)}}break;case"sheetFormatPr":{const e=n["defaultRowHeight"],t=n["defaultColWidth"];if(void 0!==e){const t=Number(e);Number.isFinite(t)&&t>0&&15!==t&&(ee=t)}if(void 0!==t){const e=Number(t);Number.isFinite(e)&&e>0&&(te=e)}break}case"sheetData":re=!0;break;case"row":if(re){if(q>0&&Z>=q)break;if(oe=!0,Ve=Number(n["r"])||Ve+1,He=0,n["ht"]&&("1"===n["customHeight"]||"true"===n["customHeight"])){const e=Number(n["r"])-1,t=Number(n["ht"]);if(!Number.isNaN(e)&&!Number.isNaN(t)){const n=Q.get(e)??{};n.height=t,Q.set(e,n)}}if("1"===n["hidden"]||"true"===n["hidden"]){const e=Number(n["r"])-1;if(!Number.isNaN(e)){const t=Q.get(e)??{};t.hidden=!0,Q.set(e,t)}}if(n["outlineLevel"]){const e=Number(n["r"])-1,t=Number(n["outlineLevel"]);if(!Number.isNaN(e)&&!Number.isNaN(t)&&t>0){const n=Q.get(e)??{};n.outlineLevel=t,Q.set(e,n)}}if("1"===n["collapsed"]||"true"===n["collapsed"]){const e=Number(n["r"])-1;if(!Number.isNaN(e)){const t=Q.get(e)??{};t.collapsed=!0,Q.set(e,t)}}}break;case"c":oe&&(se=!0,Ge=n["r"]??"",ze=n["t"]??"",Ue=n["s"]?Number(n["s"]):-1,We="",$e="",je="",Xe=-1,Ye="",Ke=lo(n["cm"],t),qe="",Ze=[]);break;case"v":se&&(ae=!0);break;case"f":N?(F=!0,V=""):se&&(le=!0,je=n["t"]??"",void 0!==n["si"]&&(Xe=Number(n["si"])),n["ref"]&&(Ye=n["ref"]),void 0!==n["cm"]&&lo(n["cm"],t)&&(Ke=!0));break;case"is":se&&(ue=!0);break;case"t":ue&&!Oe?ce=!0:Oe&&(Be=!0);break;case"r":ue&&(Oe=!0,Qe="",ne=void 0);break;case"rPr":Oe&&(ke=!0,ne={});break;case"sheetPr":A=!0;break;case"outlinePr":if(A){const e={};void 0!==n["summaryBelow"]&&(e.summaryBelow="1"===n["summaryBelow"]||"true"===n["summaryBelow"]),void 0!==n["summaryRight"]&&(e.summaryRight="1"===n["summaryRight"]||"true"===n["summaryRight"]),Object.keys(e).length>0&&(m=e)}break;case"pageSetUpPr":A&&(T="1"===n["fitToPage"]||"true"===n["fitToPage"]);break;case"tabColor":A&&(g||(g={}),g.tabColor=Mo(n));break;case"sheetView":if(!re){if(g||(g={}),"0"!==n["showGridLines"]&&"false"!==n["showGridLines"]||(g.showGridLines=!1),"0"!==n["showRowColHeaders"]&&"false"!==n["showRowColHeaders"]||(g.showRowColHeaders=!1),n["zoomScale"]){const e=Number(n["zoomScale"]);Number.isNaN(e)||(g.zoomScale=e)}"1"!==n["rightToLeft"]&&"true"!==n["rightToLeft"]||(g.rightToLeft=!0)}break;case"pane":if(!re){const e=n["state"];if("frozen"===e||"frozenSplit"===e){const e=Number(n["xSplit"]||"0"),t=Number(n["ySplit"]||"0");(e>0||t>0)&&(v={},e>0&&(v.columns=e),t>0&&(v.rows=t))}else if("split"===e){const e=Number(n["xSplit"]||"0"),t=Number(n["ySplit"]||"0");(e>0||t>0)&&(y={},e>0&&(y.xSplit=e),t>0&&(y.ySplit=t))}}break;case"sheetProtection":f=mo(n);break;case"autoFilter":n["ref"]&&(p={range:n["ref"]},b=!0);break;case"filterColumn":b&&void 0!==n["colId"]&&(_=Number(n["colId"]),S=[]);break;case"filter":b&&_>=0&&void 0!==n["val"]&&S.push(n["val"]);break;case"mergeCells":de=!0;break;case"mergeCell":de&&n["ref"]&&r.push(ho(n["ref"]));break;case"hyperlinks":he=!0;break;case"hyperlink":if(he&&n["ref"]){const e={ref:n["ref"]},t=n["r:id"]??n["R:id"];t&&(e.rId=t),n["location"]&&(e.location=n["location"]),n["tooltip"]&&(e.tooltip=n["tooltip"]),n["display"]&&(e.display=n["display"]),c.push(e)}break;case"conditionalFormatting":we=!0,xe=n["sqref"]??"";break;case"cfRule":we&&(be=!0,_e={...n},Te=[],De=[],Me=[],Re=[],Le="",Fe=[],Ne={});break;case"colorScale":be&&(Ee=!0,De=[],Me=[]);break;case"cfvo":Ee?De.push({type:n["type"]??"min",value:n["val"]}):Ie?Re.push({type:n["type"]??"min",value:n["val"]}):Pe&&Fe.push({type:n["type"]??"min",value:n["val"]});break;case"dataBar":be&&(Ie=!0,Re=[],Le="");break;case"iconSet":be&&(Pe=!0,Ne={...n},Fe=[]);break;case"dataValidations":pe=!0;break;case"dataValidation":pe&&(fe=!0,Ce={...n},ve="",ye="");break;case"formula1":fe&&(ge=!0);break;case"formula2":fe&&(me=!0);break;case"pageMargins":w=So(n);break;case"pageSetup":C={...C,...To(n,t)};break;case"printOptions":C=Ao(C,n);break;case"headerFooter":z=!0,x={},"1"!==n["differentOddEven"]&&"true"!==n["differentOddEven"]||(x.differentOddEven=!0),"1"!==n["differentFirst"]&&"true"!==n["differentFirst"]||(x.differentFirst=!0);break;case"oddHeader":z&&(U=!0,K="");break;case"oddFooter":z&&(W=!0,K="");break;case"evenHeader":z&&($=!0,K="");break;case"evenFooter":z&&(j=!0,K="");break;case"firstHeader":z&&(X=!0,K="");break;case"firstFooter":z&&(Y=!0,K="");break;case"rowBreaks":M=!0;break;case"colBreaks":I=!0;break;case"brk":if(M||I){const e=n["id"];if(e){const t=Number(e)-1;M?E.push(t):D.push(t)}}break;case"color":Ee?Me.push(n["rgb"]??""):Ie?Le=n["rgb"]??"":ke&&ne&&_o(ne,i,n);break;case"formula":be&&!fe&&(Se=!0,Ae="");break;case"sparklineGroups":L=!0;break;case"sparklineGroup":L&&(P=!0,k=n["type"]??"line",B="",G="1"===n["markers"]||"true"===n["markers"]);break;case"colorSeries":if(P){const e=n["rgb"]??"";B=8===e.length?e.slice(2):e}break;case"sparkline":P&&(N=!0,V="",H="");break;default:if(N&&"sqref"===i){O=!0,H="";break}ke&&ne&&(Je=i,_o(ne,i,n));break}},onText(e){ae?We+=e:le?$e+=e:Se?Ae+=e:ce?qe+=e:Be?Qe+=e:ge?ve+=e:me?ye+=e:U||W||$||j||X||Y?K+=e:F?V+=e:O&&(H+=e)},onCloseTag(e){const r=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(r){case"cols":ie=!1;break;case"sheetData":re=!1;break;case"row":oe&&Z++,oe=!1;break;case"c":if(se){const e=Ge?uo(Ge).row:Ve-1,r=Ge?uo(Ge).col:He;He=r+1;let c=!1;o&&(e<o.startRow||e>o.endRow||r<o.startCol||r>o.endCol)&&(c=!0);const d=""!==We||""!==qe||Ze.length>0||""!==$e||"e"===ze||"inlineStr"===ze||t.readStyles&&Ue>=0||!!(t.styles&&Ue>=0)&&(t.styles.cellXfs[Ue]?.hasCheckboxFeature??!1);!c&&d&&(bo(Ge,ze,Ue,We,$e,qe,Ze.length>0?Ze:void 0,t,n,i,je,Xe,Ye,Ke,e,r),e>=0&&r>=0&&(r>s&&(s=r),e>a&&(a=e),u=!0,l++)),se=!1}break;case"v":ae=!1;break;case"f":F?F=!1:le=!1;break;case"is":ue=!1;break;case"t":Be?Be=!1:ce&&(ce=!1);break;case"r":if(Oe){const e=En(Qe);Ze.push(ne?{text:e,font:ne}:{text:e}),Oe=!1}break;case"rPr":ke=!1;break;case"sheetPr":A=!1;break;case"mergeCells":de=!1;break;case"autoFilter":b=!1;break;case"filterColumn":b&&p&&_>=0&&S.length>0&&(p.columns||(p.columns=[]),p.columns.push({colIndex:_,filters:S})),_=-1,S=[];break;case"hyperlinks":he=!1;break;case"conditionalFormatting":we=!1;break;case"cfRule":if(be){const e=xo(_e,xe,Te,De,Me,Re,Le,Fe,Ne,t.styles?.dxfs,t);e&&h.push(e),be=!1}break;case"colorScale":Ee=!1;break;case"dataBar":be&&(Ie=!1);break;case"iconSet":Pe=!1;break;case"formula":Se&&(Te.push(Ae),Se=!1);break;case"dataValidations":pe=!1;break;case"dataValidation":if(fe){const e=Co(Ce,ve,ye);e&&d.push(e),fe=!1}break;case"formula1":ge=!1;break;case"formula2":me=!1;break;case"headerFooter":z=!1;break;case"oddHeader":U&&x&&(x.oddHeader=K,U=!1);break;case"oddFooter":W&&x&&(x.oddFooter=K,W=!1);break;case"evenHeader":$&&x&&(x.evenHeader=K,$=!1);break;case"evenFooter":j&&x&&(x.evenFooter=K,j=!1);break;case"firstHeader":X&&x&&(x.firstHeader=K,X=!1);break;case"firstFooter":Y&&x&&(x.firstFooter=K,Y=!1);break;case"rowBreaks":M=!1;break;case"colBreaks":I=!1;break;case"sparklineGroups":L=!1;break;case"sparklineGroup":P=!1;break;case"sparkline":if(N&&H){const e={location:H,dataRange:V};k&&"line"!==k&&(e.type=k),B&&(e.color=B),G&&(e.markers=!0),R.push(e)}N=!1;break;default:if(N&&"sqref"===r){O=!1;break}ke&&(Je="");break}}};function tt(){if(u&&!t.sparse){const i=s+1,r=(a+1)*i,o=t.maxTotalCells??Et;if(r>o)throw new yt(so(e,a+1,i,r,l,o));for(let e=0;e<=a;e++)if(n[e])while(n[e].length<i)n[e].push(null);else n[e]=Array.from({length:i},()=>null)}const o=new Map;if(t.worksheetRels)for(const e of t.worksheetRels)o.set(e.id,e.target);for(const r of c){const s=uo(r.ref),a=`${s.row},${s.col}`;let l=i.get(a);l||(l={value:(n[s.row]&&n[s.row][s.col])??null,type:"string"},ao(i,a,e),i.set(a,l));const u={target:""};if(r.location)u.location=r.location,u.target=r.location;else if(r.rId){const e=o.get(r.rId);e?u.target=e:t.onWarning?.({code:"unresolved-hyperlink",message:`Cell ${r.ref} links through ${r.rId}, which the sheet's relationships do not define. Read with an empty target.`,sheet:t.sheetName,row:s.row,col:s.col})}r.tooltip&&(u.tooltip=r.tooltip),r.display&&(u.display=r.display),l.hyperlink=u}const b={name:e,rows:n};if(i.size>0&&(b.cells=i),void 0!==ee&&(b.defaultRowHeight=ee),void 0!==te&&(b.defaultColWidth=te),J.some(e=>Object.keys(e).length>0)&&(b.columns=J),r.length>0&&(b.merges=r),d.length>0&&(b.dataValidations=d),h.length>0&&(b.conditionalRules=h),p&&(b.autoFilter=p),v&&(b.freezePane=v),y&&(b.splitPane=y),f&&(b.protection=f),g&&Object.keys(g).length>0&&(b.view=g),C||w||T){const e=C??{};w&&(e.margins=w),T&&(e.fitToPage=!0),b.pageSetup=e}return x&&Object.keys(x).length>0&&(b.headerFooter=x),E.length>0&&(b.rowBreaks=E.sort((e,t)=>e-t)),D.length>0&&(b.colBreaks=D.sort((e,t)=>e-t)),Q.size>0&&(b.rowDefs=Q),R.length>0&&(b.sparklines=R),m&&(b.outlineProperties=m),b}return{handlers:et,finish:tt}}function fo(e,t,n){const{handlers:i,finish:r}=po(t,n);return Rn(e,i),r()}async function go(e,t,n){const{handlers:i,finish:r}=po(t,n);return await Ln(e,i,{strict:!0}),r()}function mo(e){const t={};"1"!==e["sheet"]&&"true"!==e["sheet"]||(t.sheet=!0),"1"!==e["objects"]&&"true"!==e["objects"]||(t.objects=!0),"1"!==e["scenarios"]&&"true"!==e["scenarios"]||(t.scenarios=!0);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[i,r]of n){const n=e[i];void 0!==n&&(t[r]=!("1"===n||"true"===n))}return t}const vo=new Set(["list","whole","decimal","date","time","textLength","custom"]),yo=new Set(["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]);function Co(e,t,n){const i=e["type"];if(!i||!vo.has(i))return null;const r=e["sqref"];if(!r)return null;const o={type:i,range:r},s=e["operator"];s&&yo.has(s)&&(o.operator=s),"1"!==e["allowBlank"]&&"true"!==e["allowBlank"]||(o.allowBlank=!0),"1"!==e["showInputMessage"]&&"true"!==e["showInputMessage"]||(o.showInputMessage=!0),"1"!==e["showErrorMessage"]&&"true"!==e["showErrorMessage"]||(o.showErrorMessage=!0);const a=e["errorStyle"];if("stop"!==a&&"warning"!==a&&"information"!==a||(o.errorStyle=a),e["promptTitle"]&&(o.inputTitle=e["promptTitle"]),e["prompt"]&&(o.inputMessage=e["prompt"]),e["errorTitle"]&&(o.errorTitle=e["errorTitle"]),e["error"]&&(o.errorMessage=e["error"]),t)if("list"===i){const e=t.trim();if(e.startsWith('"')&&e.endsWith('"')){const t=e.slice(1,-1);o.values=t.split(",")}else o.formula1=t}else o.formula1=t;return n&&(o.formula2=n),o}const wo=new Set(["cellIs","expression","colorScale","dataBar","iconSet","top10","aboveAverage","duplicateValues","uniqueValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks"]);function xo(e,t,n,i,r,o,s,a,l,u,c){const d=e["type"];if(!d||!wo.has(d))return null;if(!t)return null;const h={type:d,priority:Number(e["priority"]??"1"),range:t},p=e["operator"];p&&yo.has(p)&&(h.operator=p);const f=Number(e["dxfId"]);if(u&&!Number.isNaN(f)){const e=u[f];e&&Object.keys(e).length>0?h.style=e:e||c?.onWarning?.({code:"unresolved-dxf",message:`Conditional rule on ${t} asks for differential format ${f}, which the file does not have (${u.length} present). The rule keeps its condition and loses its formatting.`,sheet:c.sheetName})}return"1"!==e["stopIfTrue"]&&"true"!==e["stopIfTrue"]||(h.stopIfTrue=!0),void 0!==e["text"]&&(h.text=e["text"]),1===n.length?h.formula=n[0]:n.length>1&&(h.formula=n),"colorScale"===d&&i.length>0&&(h.colorScale={cfvo:i.map(e=>({type:e.type,value:e.value})),colors:r}),"dataBar"===d&&o.length>0&&(h.dataBar={cfvo:o.map(e=>({type:e.type,value:e.value})),color:s}),"iconSet"===d&&a.length>0&&(h.iconSet={iconSet:l["iconSet"]??"3TrafficLights1",cfvo:a.map(e=>({type:e.type,value:e.value}))},"1"!==l["reverse"]&&"true"!==l["reverse"]||(h.iconSet.reverse=!0),"0"!==l["showValue"]&&"false"!==l["showValue"]||(h.iconSet.showValue=!1)),h}function bo(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g){const m=""!==e?uo(e):void 0!==f&&void 0!==g?{row:f,col:g}:null;if(!m)return;const{row:v,col:y}=m;if(v>Tt||y>16383)throw new yt(`Cell reference "${e}" is outside the supported sheet bounds (max row ${Tt+1}, max col 16384)`);if(!Number.isInteger(v)||!Number.isInteger(y)||v<0||y<0)return void a.onWarning?.({code:"malformed-cell-ref",message:`Cell reference "${e}" is not a cell reference — a column needs a row number and rows are 1-based. The cell is dropped; the rest of the sheet is read.`,sheet:a.sheetName});if(!a.sparse){while(l.length<=v)l.push([]);while(l[v].length<=y)l[v].push(null)}let C,w,x,b=null,_="empty";switch(r?C=r:"shared"===c&&void 0!==d&&d>=0&&(C=""),t){case"s":{const t=Number(i);if(!Number.isNaN(t)&&t>=0&&t<a.sharedStrings.length){const e=a.sharedStrings[t];b=e.text,e.richText&&e.richText.length>0?(x=e.richText,_="richText"):_="string"}else a.onWarning?.({code:"unresolved-shared-string",message:`Cell ${e||`${v},${y}`} points at shared string ${i}, which the file does not have (${a.sharedStrings.length} present). Read as empty.`,sheet:a.sheetName,row:v,col:y}),b=null,_="empty";break}case"str":b=En(i),_=C?"formula":"string",C&&(w=b);break;case"inlineStr":s&&s.length>0?(b=s.map(e=>e.text).join(""),x=s,_="richText"):(b=En(o),_="string");break;case"b":b="1"===i||"true"===i.toLowerCase(),_=C?"formula":"boolean",C&&(w=b);break;case"e":b=i,_=C?"formula":"error",C&&(w=b);break;case"d":{const e=Io(i);e?(b=e,_="date"):""!==i?(b=i,_="string"):(b=null,_="empty"),C&&(w=b,_="formula");break}case"n":default:{if(""===i&&!C){b=null,_="empty";break}const e=Number(i);Number.isNaN(e)||""===i?""!==i&&(b=i,_="string"):a.styles&&n>=0&&oo(a.styles,n)?(b=_r(e,"1904"===a.dateSystem),_="date"):(b=e,_="number"),C&&(w=b,_="formula");break}}a.sparse||(l[v][y]=b);const S=!!(a.styles&&n>=0)&&(a.styles.cellXfs[n]?.hasCheckboxFeature??!1),A=a.sparse||void 0!==C||void 0!==x||a.readStyles&&a.styles&&n>=0||S||"error"===_||"formula"===_||"richText"===_;if(A){const t={value:b,type:_};if(S&&(t.checkbox=!0),void 0!==C&&(t.formula=C,void 0!==w&&(t.formulaResult=w),"shared"===c?(t.formulaType="shared",void 0!==d&&d>=0&&(t.formulaSharedIndex=d),h&&(t.formulaRef=h)):"array"===c&&(t.formulaType="array",h&&(t.formulaRef=h)),p&&(t.formulaDynamic=!0)),x&&(t.richText=x),a.readStyles&&a.styles&&n>=0){const i=ro(a.styles,n);Object.keys(i).length>0?t.style=i:n>=a.styles.cellXfs.length&&a.onWarning?.({code:"unresolved-style",message:`Cell ${e||`${v},${y}`} points at cell format ${n}, which the file does not have (${a.styles.cellXfs.length} present). Read unstyled.`,sheet:a.sheetName,row:v,col:y})}const i=`${v},${y}`;ao(u,i,a.sheetName),u.set(i,t)}}function _o(e,t,n){switch(t){case"b":e.bold="0"!==n["val"]&&"false"!==n["val"];break;case"i":e.italic="0"!==n["val"]&&"false"!==n["val"];break;case"u":{const t=n["val"];e.underline="double"!==t||"double";break}case"strike":e.strikethrough="0"!==n["val"]&&"false"!==n["val"];break;case"sz":n["val"]&&(e.size=Number(n["val"]));break;case"rFont":n["val"]&&(e.name=n["val"]);break;case"color":if(e.color={},n["rgb"]){const t=n["rgb"];e.color.rgb=8===t.length?t.slice(2):t}n["theme"]&&(e.color.theme=Number(n["theme"])),n["tint"]&&(e.color.tint=Number(n["tint"])),n["indexed"]&&(e.color.indexed=Number(n["indexed"]));break;case"vertAlign":"superscript"!==n["val"]&&"subscript"!==n["val"]||(e.vertAlign=n["val"]);break;case"family":n["val"]&&(e.family=Number(n["val"]));break;case"charset":n["val"]&&(e.charset=Number(n["val"]));break;case"scheme":"major"!==n["val"]&&"minor"!==n["val"]&&"none"!==n["val"]||(e.scheme=n["val"]);break}}function So(e){const t={};return e["left"]&&(t.left=Number(e["left"])),e["right"]&&(t.right=Number(e["right"])),e["top"]&&(t.top=Number(e["top"])),e["bottom"]&&(t.bottom=Number(e["bottom"])),e["header"]&&(t.header=Number(e["header"])),e["footer"]&&(t.footer=Number(e["footer"])),t}function Ao(e,t){const n=e??{},i=e=>"1"===e||"true"===e;return i(t["gridLines"])&&(n.showGridLines=!0),i(t["headings"])&&(n.showRowColHeaders=!0),i(t["horizontalCentered"])&&(n.horizontalCentered=!0),i(t["verticalCentered"])&&(n.verticalCentered=!0),n}function To(e,t){const n={};if(e["paperSize"]){const i=Number(e["paperSize"]);Number.isInteger(i)&&i>0?n.paperSize=_s[i]??i:t?.onWarning?.({code:"unusable-paper-size",message:`Page setup names paper size "${e["paperSize"]}", which is not a positive integer code. Dropped; the sheet reads with no paper size set.`,sheet:t.sheetName})}"landscape"!==e["orientation"]&&"portrait"!==e["orientation"]||(n.orientation=e["orientation"]),e["scale"]&&(n.scale=Number(e["scale"])),void 0===e["fitToWidth"]&&void 0===e["fitToHeight"]||(n.fitToPage=!0,e["fitToWidth"]&&(n.fitToWidth=Number(e["fitToWidth"])),e["fitToHeight"]&&(n.fitToHeight=Number(e["fitToHeight"]))),"1"!==e["horizontalCentered"]&&"true"!==e["horizontalCentered"]||(n.horizontalCentered=!0),"1"!==e["verticalCentered"]&&"true"!==e["verticalCentered"]||(n.verticalCentered=!0),e["paperWidth"]&&(n.paperWidth=e["paperWidth"]),e["paperHeight"]&&(n.paperHeight=e["paperHeight"]);const i=Do(e["firstPageNumber"]);void 0!==i&&(n.firstPageNumber=i),void 0!==e["useFirstPageNumber"]&&(n.useFirstPageNumber=Eo(e["useFirstPageNumber"])),"overThenDown"!==e["pageOrder"]&&"downThenOver"!==e["pageOrder"]||(n.pageOrder=e["pageOrder"]),Eo(e["blackAndWhite"])&&(n.blackAndWhite=!0),Eo(e["draft"])&&(n.draft=!0);const r=e["cellComments"];"none"!==r&&"asDisplayed"!==r&&"atEnd"!==r||(n.cellComments=r);const o=e["errors"];"displayed"!==o&&"blank"!==o&&"dash"!==o&&"NA"!==o||(n.errors=o);const s=Do(e["copies"]);void 0!==s&&(n.copies=s);const a=Do(e["horizontalDpi"]);void 0!==a&&(n.horizontalDpi=a);const l=Do(e["verticalDpi"]);return void 0!==l&&(n.verticalDpi=l),void 0!==e["usePrinterDefaults"]&&(n.usePrinterDefaults=Eo(e["usePrinterDefaults"])),n}function Eo(e){return"1"===e||"true"===e}function Do(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)&&t>=0?t:void 0}function Mo(e){const t={};if(e["rgb"]){const n=e["rgb"];t.rgb=8===n.length?n.slice(2):n}return e["theme"]&&(t.theme=Number(e["theme"])),e["tint"]&&(t.tint=Number(e["tint"])),e["indexed"]&&(t.indexed=Number(e["indexed"])),t}function Io(e){const t=e.trim();if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return;const n=/(?:Z|[+-]\d{2}:?\d{2})$/.test(t),i=/[T ]\d{2}:/.test(t),r=t.replace(" ","T"),o=new Date(i&&!n?`${r}Z`:r);return Number.isNaN(o.getTime())?void 0:o}const Ro="(?:\\$?(?:'(?:[^']|'')*'|[A-Za-z_][A-Za-z0-9_]*)[.!])?",Lo="\\$?[A-Z]{1,3}\\$?\\d+";new RegExp(`(?<![A-Za-z0-9_$.!])(${Ro})(${Lo})(?::(${Ro})(${Lo}))?(?![A-Za-z0-9_(])`,"g");function Po(e){const t=e.split(":"),n=uo(t[0]),i=t.length>1?uo(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:i.row,endCol:i.col}}function No(e){return"string"===typeof e?Po(e):e}function Fo(e){if(e)return e.some(e=>"string"===typeof e)?e.map(No):e}const Oo=8,ko=255,Bo=2,Go=1.1,Vo=1.05;function Ho(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=63744&&e<=64255||e>=44032&&e<=55215||e>=12448&&e<=12543||e>=12352&&e<=12447||e>=12288&&e<=12351||e>=65280&&e<=65376||e>=65504&&e<=65510}function zo(e,t){const n=t.trim(),i=n.split(";");let r;if(e>0?r=i[0]:e<0&&i.length>1?(r=i[1],e=Math.abs(e)):r=0===e&&i.length>2?i[2]:i[0],r=r.replace(/\[[^\]]*\]/g,""),r=r.replace(/\\./g,e=>e[1]),r=r.replace(/"([^"]*)"/g,"$1"),r.includes("%")){const t=r.replace(/%/g,""),n=Uo(t),i=(100*e).toFixed(n);return Wo(i,r)+"%"}const o=Uo(r),s=e.toFixed(o);return Wo(s,r)}function Uo(e){const t=e.indexOf(".");if(-1===t)return 0;let n=0;for(let i=t+1;i<e.length;i++){if("0"!==e[i]&&"#"!==e[i])break;n++}return n}function Wo(e,t){if(!t.includes(","))return e;const n=e.split(".");let i=n[0];const r=i.startsWith("-");r&&(i=i.slice(1));let o="";for(let s=0;s<i.length;s++)s>0&&(i.length-s)%3===0&&(o+=","),o+=i[s];return r&&(o="-"+o),void 0!==n[1]&&(o+="."+n[1]),o}function $o(e){let t=0;const n=e.split(";")[0],i=n.replace(/\[[^\]]*\]/g,"");for(let r=0;r<i.length;r++){const e=i[r];if('"'===e){r++;while(r<i.length&&'"'!==i[r])t++,r++}else"\\"===e?(t++,r++):"$"!==e&&"€"!==e&&"£"!==e&&"¥"!==e||t++}return t}function jo(e){let t=0;for(const n of e){const e=n.codePointAt(0);void 0!==e&&Ho(e)?t+=2:t+=1}return t}function Xo(e,t){if(null===e||void 0===e)return 0;if("boolean"===typeof e)return e?5:6;if("string"===typeof e){if(0===e.length)return 0;if(e.includes("\n")){const t=e.split("\n");let n=0;for(const e of t){const t=jo(e);t>n&&(n=t)}return n}return jo(e)}if("number"===typeof e){if(t){const n=zo(e,t),i=$o(t);return jo(n)+i}const n=String(e);return jo(n)}if(e instanceof Date){if(t){const n=Lr(e,t);return jo(n)}const n=e.getUTCFullYear(),i=String(e.getUTCMonth()+1).padStart(2,"0"),r=String(e.getUTCDate()).padStart(2,"0");return jo(`${n}-${i}-${r}`)}return 0}function Yo(e,t){const n=t?.minWidth??Oo,i=t?.maxWidth??ko,r=t?.padding??Bo,o=!0===t?.font?.bold;let s=0;for(const l of e){const e=Xo(l,t?.numFmt);e>s&&(s=e)}let a=s*Go;return o&&(a*=Vo),a+=r,a=Math.ceil(2*a)/2,a<n&&(a=n),a>i&&(a=i),a}const Ko=31,qo=/[[\]:*?/\\]/,Zo="history";function Qo(e,t){const n=`sheet ${t+1}`;if("string"!==typeof e||0===e.length)throw new xt(`Sheet name is empty (${n}); Excel requires a name`);if(e.length>Ko)throw new xt(`Sheet name "${e}" is ${e.length} characters (${n}); Excel allows at most ${Ko}`);const i=e.match(qo);if(i)throw new xt(`Sheet name "${e}" contains ${JSON.stringify(i[0])} (${n}); Excel forbids [ ] : * ? / \\ in sheet names`);if(e.startsWith("'")||e.endsWith("'"))throw new xt(`Sheet name "${e}" starts or ends with an apostrophe (${n}); Excel forbids it because it breaks quoted range references`);if(e.toLowerCase()===Zo)throw new xt(`Sheet name "${e}" is reserved by Excel for change tracking (${n})`)}function Jo(e){const t=new Map;for(let n=0;n<e.length;n++){const i=e[n].name;Qo(i,n);const r=i.toLowerCase(),o=t.get(r);if(void 0!==o)throw new xt(`Duplicate sheet name "${i}" (sheets ${o+1} and ${n+1}); Excel compares sheet names case-insensitively`);t.set(r,n)}}function es(e){if(!Number.isInteger(e)||e<0||e>16383)throw new xt(`Column index ${e} is not a valid 0-based column (Excel allows 0..16383)`)}const ts="http://schemas.openxmlformats.org/spreadsheetml/2006/main",ns="http://schemas.openxmlformats.org/officeDocument/2006/relationships";function is(e){es(e);let t="",n=e;do{t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26)-1}while(n>=0);return t}function rs(e,t){const n={r:e+1};return void 0!==t?.height&&(n["ht"]=t.height,n["customHeight"]=1),t?.hidden&&(n["hidden"]=1),t?.outlineLevel&&(n["outlineLevel"]=t.outlineLevel),t?.collapsed&&(n["collapsed"]=1),n}function os(e,t){return is(t)+(e+1)}function ss(e,t,n,i){return`${os(e,t)}:${os(n,i)}`}function as(){const e=[],t=new Map;function n(n){const i=t.get(n);if(void 0!==i)return i;const r=e.length;return e.push(n),t.set(n,r),r}function i(){return e}function r(){return e.length}return{add:n,getAll:i,count:r}}function ls(e){const t=e.getAll(),n=t.length;if(0===n)return _n("sst",{xmlns:ts,count:0,uniqueCount:0},"");const i=[];for(const r of t)i.push(xn("si",void 0,[wn(r)]));return _n("sst",{xmlns:ts,count:n,uniqueCount:n},i)}function us(e){const t=e.hyperlink.startsWith("#"),n=t?{target:"",location:e.hyperlink.slice(1),display:e.text}:{target:e.hyperlink,display:e.text};return void 0!==e.tooltip&&(n.tooltip=e.tooltip),n}const cs="yyyy-mm-dd",ds=Object.freeze({numFmt:cs}),hs=new WeakMap,ps=new Set(["#VALUE!","#REF!","#N/A","#NAME?","#NULL!","#DIV/0!","#NUM!","#GETTING_DATA","#SPILL!","#CALC!"]);function fs(e,t,n,i,r,o,s){const a="1904"===i,l=ms(e),u=l.length;let c=0;for(const N of l)N.length>c&&(c=N.length);e.columns&&e.columns.length>c&&(c=e.columns.length);const d=[];{const t=[];if(e.view?.tabColor&&t.push(Cn("tabColor",Is(e.view.tabColor))),e.outlineProperties){const n={};void 0!==e.outlineProperties.summaryBelow&&(n["summaryBelow"]=e.outlineProperties.summaryBelow?1:0),void 0!==e.outlineProperties.summaryRight&&(n["summaryRight"]=e.outlineProperties.summaryRight?1:0),t.push(Cn("outlinePr",n))}e.pageSetup?.fitToPage&&t.push(Cn("pageSetUpPr",{fitToPage:1})),t.length>0&&d.push(xn("sheetPr",void 0,t))}if(u>0||c>0){const e=u>0?u-1:0,t=c>0?c-1:0;d.push(Cn("dimension",{ref:ss(0,0,e,t)}))}const h=[];if(e.freezePane){const t=e.freezePane,n=os(t.rows??0,t.columns??0),i={};t.columns&&t.columns>0&&(i["xSplit"]=t.columns),t.rows&&t.rows>0&&(i["ySplit"]=t.rows),i["topLeftCell"]=n,i["state"]="frozen";const r=t.columns&&t.columns>0,o=t.rows&&t.rows>0;i["activePane"]=r&&o?"bottomRight":r?"topRight":"bottomLeft",h.push(Cn("pane",i))}else if(e.splitPane){const t=e.splitPane,n={},i=void 0!==t.xSplit&&t.xSplit>0,r=void 0!==t.ySplit&&t.ySplit>0;i&&(n["xSplit"]=t.xSplit),r&&(n["ySplit"]=t.ySplit),n["topLeftCell"]="A1",n["state"]="split",n["activePane"]=i&&r?"bottomRight":i?"topRight":"bottomLeft",h.push(Cn("pane",n))}const p={workbookViewId:0};e.view&&(!1===e.view.showGridLines&&(p["showGridLines"]=0),!1===e.view.showRowColHeaders&&(p["showRowColHeaders"]=0),void 0!==e.view.zoomScale&&(p["zoomScale"]=e.view.zoomScale),e.view.rightToLeft&&(p["rightToLeft"]=1)),d.push(xn("sheetViews",void 0,[h.length>0?xn("sheetView",p,h):Cn("sheetView",p)]));const f={defaultRowHeight:e.defaultRowHeight??15};if(void 0!==e.defaultRowHeight&&(f["customHeight"]=1),void 0!==e.defaultColWidth&&(f["defaultColWidth"]=e.defaultColWidth),d.push(Cn("sheetFormatPr",f)),e.columns&&e.columns.length>0){const n=[];for(let i=0;i<e.columns.length;i++){const r=e.columns[i];let o=r.width;if(r.autoWidth&&void 0===o){const e=[];for(const t of l)t&&i<t.length&&t[i]&&e.push(t[i].value);o=Yo(e,{font:r.style?.font,numFmt:r.numFmt??r.style?.numFmt})}const s=r.numFmt&&!r.style?.numFmt?{...r.style,numFmt:r.numFmt}:r.style??void 0,a=s?t.addStyle(s):0;if(void 0!==o||r.hidden||r.outlineLevel||r.collapsed||0!==a){const e={min:i+1,max:i+1};void 0!==o&&(e["width"]=o,e["customWidth"]=!0),0!==a&&(e["style"]=a),r.hidden&&(e["hidden"]=!0),r.outlineLevel&&(e["outlineLevel"]=r.outlineLevel),r.collapsed&&(e["collapsed"]=!0),n.push(Cn("col",e))}}n.length>0&&d.push(xn("cols",void 0,n))}const g=[];let m=!1;for(let N=0;N<u;N++){const i=l[N],r=e.rowDefs?.get(N),s=r&&(void 0!==r.height||r.hidden||r.outlineLevel||r.collapsed);if((!i||0===i.length)&&!s)continue;const u=[];let c=!1;if(i)for(let e=0;e<i.length;e++){const r=i[e];if(!r)continue;r.formulaDynamic&&void 0!==r.formula&&null!==r.formula&&(m=!0);const s=ys(N,e,r,t,n,a,o);s&&(u.push(s),c=!0)}if(c||s){const e=rs(N,r);c?g.push(xn("row",e,u)):g.push(Cn("row",e))}}if(d.push(xn("sheetData",void 0,g.length>0?g:"")),e.protection&&d.push(Cs(e.protection)),e.autoFilter)if(e.autoFilter.columns&&e.autoFilter.columns.length>0){const t=[];for(const n of e.autoFilter.columns)if(n.filters&&n.filters.length>0){const e=n.filters.map(e=>Cn("filter",{val:e}));t.push(xn("filterColumn",{colId:n.colIndex},[xn("filters",void 0,e)]))}d.push(xn("autoFilter",{ref:e.autoFilter.range},t))}else d.push(Cn("autoFilter",{ref:e.autoFilter.range}));const v=Fo(e.merges);if(v&&v.length>0){const e=v.map(e=>Cn("mergeCell",{ref:ss(e.startRow,e.startCol,e.endRow,e.endCol)}));d.push(xn("mergeCells",{count:v.length},e))}e.conditionalRules&&e.conditionalRules.length>0&&d.push(...Ps(e.conditionalRules,t)),e.dataValidations&&e.dataValidations.length>0&&d.push(ws(e.dataValidations));const{xml:y,relationships:C}=xs(e,l);y&&d.push(y);const w=Es(e.pageSetup);if(w&&d.push(w),d.push(Ts(e.pageSetup?.margins)),e.pageSetup&&d.push(Ds(e.pageSetup)),e.headerFooter&&d.push(Ms(e.headerFooter)),e.rowBreaks&&e.rowBreaks.length>0){const t=[...e.rowBreaks].sort((e,t)=>e-t),n=t.map(e=>Cn("brk",{id:e+1,max:16383,man:1}));d.push(xn("rowBreaks",{count:t.length,manualBreakCount:t.length},n))}if(e.colBreaks&&e.colBreaks.length>0){const t=[...e.colBreaks].sort((e,t)=>e-t),n=t.map(e=>Cn("brk",{id:e+1,max:1048575,man:1}));d.push(xn("colBreaks",{count:t.length,manualBreakCount:t.length},n))}let x=null,b=C.length+1;const _=e.images&&e.images.length>0,S=e.textBoxes&&e.textBoxes.length>0,A=e.charts&&e.charts.length>0,T=d.length;(_||S||A)&&(x=`rId${b}`,b++,d.push(Cn("drawing",{"r:id":x})));let E=null,D=null,M=!1;if(e.cells)for(const[,N]of e.cells)if(N.comment){M=!0;break}M&&(E=`rId${b}`,b++,D=`rId${b}`,b++,d.push(Cn("legacyDrawing",{"r:id":E})));let I=null;e.backgroundImage&&(I=`rId${b}`,b++,d.push(Cn("picture",{"r:id":I})));const R=[];if(e.tables&&e.tables.length>0&&void 0!==r){const t=[];for(let n=0;n<e.tables.length;n++){const e=`rId${b}`;b++;const i=r+n;R.push({rId:e,globalTableIndex:i}),t.push(Cn("tablePart",{"r:id":e}))}d.push(xn("tableParts",{count:e.tables.length},t))}e.sparklines&&e.sparklines.length>0&&d.push(Gs(e.sparklines));const L=[];if(e.pivotTables&&e.pivotTables.length>0&&void 0!==s)for(let N=0;N<e.pivotTables.length;N++){const e=`rId${b}`;b++,L.push({rId:e,globalPivotIndex:s+N})}const P=_n("worksheet",{xmlns:ts,"xmlns:r":ns},d);return{xml:P,drawingInsertOffset:Vs(P,d,T),hyperlinkRelationships:C,drawingRId:x,legacyDrawingRId:E,commentsRId:D,hasComments:M,tables:R,pictureRId:I,pivotTables:L,hasDynamicArray:m}}function gs(e){if(e)return e.numFmt&&!e.style?.numFmt?{...e.style,numFmt:e.numFmt}:e.style}function ms(e){const t=[];if(e.data&&e.columns){const n=e.columns.map(e=>e.key),i=e.columns.some(e=>e.header);if(i){const n=[];for(let t=0;t<e.columns.length;t++){const i=e.columns[t];n.push({value:i.header??i.key??null,style:i.style})}t.push(n)}for(const r of e.data){const i=[];for(let t=0;t<n.length;t++){const o=n[t],s=void 0!==o?r[o]??null:null,a={value:ln(s)?s.text:s,style:gs(e.columns[t])};ln(s)&&(a.hyperlink=us(s)),i.push(a)}t.push(i)}}else if(e.rows)for(const n of e.rows){const i=[];for(let t=0;t<n.length;t++){const r=dn(n[t]),o=e.columns?gs(e.columns[t]):void 0;i.push(o?{value:r,style:o}:{value:r})}t.push(i)}if(e.cells)for(const[n,i]of e.cells){const[e,r]=n.split(","),o=parseInt(e,10),s=parseInt(r,10);while(t.length<=o)t.push([]);const a=t[o];while(a.length<=s)a.push(null);const l=a[s];a[s]={value:i.value??l?.value??null,style:i.style??l?.style,checkbox:i.checkbox??l?.checkbox,formula:i.formula??l?.formula,formulaResult:i.formulaResult??l?.formulaResult,formulaType:i.formulaType??l?.formulaType,formulaSharedIndex:i.formulaSharedIndex??l?.formulaSharedIndex,formulaRef:i.formulaRef??l?.formulaRef,formulaDynamic:i.formulaDynamic??l?.formulaDynamic,richText:i.richText??l?.richText,hyperlink:i.hyperlink??l?.hyperlink}}return t}function vs(e,t,n,i){return 0===t?""===n?`<c r="${e}"><v>${i}</v></c>`:`<c r="${e}" t="${n}"><v>${i}</v></c>`:""===n?`<c r="${e}" s="${t}"><v>${i}</v></c>`:`<c r="${e}" t="${n}" s="${t}"><v>${i}</v></c>`}function ys(e,t,n,i,r,o,s){const{value:a,style:l,formula:u,formulaResult:c,formulaType:d,formulaSharedIndex:h,formulaRef:p,formulaDynamic:f,richText:g}=n;let m=0,v=l;if(a instanceof Date&&(!v||!v.numFmt))if(v){const e=hs.get(v);if(e)v=e;else{const e={...v,numFmt:cs};hs.set(v,e),v=e}}else v=ds;n.checkbox?m=i.addCheckboxStyle(v):v&&(m=i.addStyle(v));const y=os(e,t);if(g&&g.length>0){const e={r:y,t:"inlineStr"};0!==m&&(e["s"]=m);const t=Rs(g);return xn("c",e,[xn("is",void 0,t)])}if(void 0!==u&&null!==u){const e={r:y};let t;if(0!==m&&(e["s"]=m),f&&(e["cm"]=1),"shared"===d){const e={t:"shared"};void 0!==h&&(e["si"]=h),p&&(e["ref"]=p),t=""===u?Cn("f",e):xn("f",e,mn(u))}else if("array"===d){const e={t:"array"};p&&(e["ref"]=p),t=xn("f",e,mn(u))}else t=xn("f",void 0,mn(u));const n=[t];return void 0!==c&&null!==c&&("string"===typeof c?(e["t"]="str",n.push(xn("v",void 0,mn(c)))):"boolean"===typeof c?(e["t"]="b",n.push(xn("v",void 0,c?"1":"0"))):"number"===typeof c?Number.isFinite(c)&&n.push(xn("v",void 0,String(c))):c instanceof Date&&n.push(xn("v",void 0,String(Sr(c,o))))),xn("c",e,n)}if(null===a||void 0===a)return 0!==m?Cn("c",{r:y,s:m}):null;if("string"===typeof a&&ps.has(a))return vs(y,m,"e",a);if("string"===typeof a){if(s){const e=`<is>${wn(a)}</is>`;return 0===m?`<c r="${y}" t="inlineStr">${e}</c>`:`<c r="${y}" t="inlineStr" s="${m}">${e}</c>`}return vs(y,m,"s",String(r.add(a)))}return"number"===typeof a?Number.isFinite(a)?vs(y,m,"",String(a)):0!==m?Cn("c",{r:y,s:m}):null:"boolean"===typeof a?vs(y,m,"b",a?"1":"0"):a instanceof Date?vs(y,m,"",String(Sr(a,o))):null}function Cs(e){const t={};e.password&&(t["password"]=Oi(e.password)),!1!==e.sheet&&(t["sheet"]=1),e.objects&&(t["objects"]=1),e.scenarios&&(t["scenarios"]=1);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[i,r]of n){const n=e[i];void 0!==n&&"boolean"===typeof n&&(t[r]=n?0:1)}return Cn("sheetProtection",t)}function ws(e){const t=[];for(const n of e){const e={type:n.type,sqref:n.range};n.operator&&(e["operator"]=n.operator),n.allowBlank&&(e["allowBlank"]=1),n.showInputMessage&&(e["showInputMessage"]=1),n.showErrorMessage&&(e["showErrorMessage"]=1),n.errorStyle&&(e["errorStyle"]=n.errorStyle),n.inputTitle&&(e["promptTitle"]=n.inputTitle),n.inputMessage&&(e["prompt"]=n.inputMessage),n.errorTitle&&(e["errorTitle"]=n.errorTitle),n.errorMessage&&(e["error"]=n.errorMessage);const i=[];if("list"===n.type&&n.values&&n.values.length>0){const e=`"${n.values.join(",")}"`;i.push(xn("formula1",void 0,mn(e)))}else void 0!==n.formula1&&i.push(xn("formula1",void 0,mn(n.formula1)));void 0!==n.formula2&&i.push(xn("formula2",void 0,mn(n.formula2))),i.length>0?t.push(xn("dataValidation",e,i)):t.push(Cn("dataValidation",e))}return xn("dataValidations",{count:e.length},t)}function xs(e,t){const n=t??ms(e),i=[],r=[];let o=1;for(let s=0;s<n.length;s++){const e=n[s];for(let t=0;t<e.length;t++){const n=e[t]?.hyperlink;if(!n)continue;const a=os(s,t),l={ref:a};if(n.location)l["location"]=n.location;else if(n.target){const e="rId"+o++;l["r:id"]=e,r.push({id:e,target:n.target})}n.tooltip&&(l["tooltip"]=n.tooltip),n.display&&(l["display"]=n.display),i.push(Cn("hyperlink",l))}}return 0===i.length?{xml:"",relationships:[]}:{xml:xn("hyperlinks",void 0,i),relationships:r}}const bs={letter:1,letterSmall:2,tabloid:3,ledger:4,legal:5,statement:6,executive:7,a3:8,a4:9,a4Small:10,a5:11,b4:12,b5:13,folio:14,quarto:15,note:18,envelope9:19,envelope10:20,envelope11:21,envelope12:22,envelope14:23,cSheet:24,dSheet:25,eSheet:26,envelopeDL:27,envelopeC5:28,envelopeC3:29,envelopeC4:30,envelopeC6:31,envelopeC65:32,envelopeB4:33,envelopeB5:34,envelopeB6:35,envelopeItaly:36,envelopeMonarch:37,envelopePersonal:38,fanfoldUS:39,fanfoldGermanStd:40,fanfoldGermanLegal:41,a6:70,japanesePostcard:43,japaneseDoublePostcard:69},_s={};for(const[GF,VF]of Object.entries(bs))_s[VF]=GF;function Ss(e){return"number"===typeof e?Number.isInteger(e)&&e>0?e:void 0:bs[e]}const As={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3};function Ts(e){const t=e??{};return Cn("pageMargins",{left:t.left??As.left,right:t.right??As.right,top:t.top??As.top,bottom:t.bottom??As.bottom,header:t.header??As.header,footer:t.footer??As.footer})}function Es(e){if(!e)return"";const t={};return e.showGridLines&&(t["gridLines"]=1),e.showRowColHeaders&&(t["headings"]=1),e.horizontalCentered&&(t["horizontalCentered"]=1),e.verticalCentered&&(t["verticalCentered"]=1),0===Object.keys(t).length?"":Cn("printOptions",t)}function Ds(e){const t={};if(void 0!==e.paperSize){const n=Ss(e.paperSize);void 0!==n&&(t["paperSize"]=n)}e.orientation&&(t["orientation"]=e.orientation),void 0!==e.scale&&(t["scale"]=e.scale),e.fitToPage&&(void 0!==e.fitToWidth&&(t["fitToWidth"]=e.fitToWidth),void 0!==e.fitToHeight&&(t["fitToHeight"]=e.fitToHeight)),void 0!==e.paperWidth&&(t["paperWidth"]=e.paperWidth),void 0!==e.paperHeight&&(t["paperHeight"]=e.paperHeight),void 0!==e.firstPageNumber&&(t["firstPageNumber"]=e.firstPageNumber);const n=e.useFirstPageNumber??(void 0!==e.firstPageNumber||void 0);return void 0!==n&&(t["useFirstPageNumber"]=n?1:0),void 0!==e.pageOrder&&"downThenOver"!==e.pageOrder&&(t["pageOrder"]=e.pageOrder),e.blackAndWhite&&(t["blackAndWhite"]=1),e.draft&&(t["draft"]=1),void 0!==e.cellComments&&"none"!==e.cellComments&&(t["cellComments"]=e.cellComments),void 0!==e.errors&&"displayed"!==e.errors&&(t["errors"]=e.errors),void 0!==e.copies&&(t["copies"]=e.copies),void 0!==e.horizontalDpi&&(t["horizontalDpi"]=e.horizontalDpi),void 0!==e.verticalDpi&&(t["verticalDpi"]=e.verticalDpi),!1===e.usePrinterDefaults&&(t["usePrinterDefaults"]=0),0===Object.keys(t).length?"":Cn("pageSetup",t)}function Ms(e){const t={};e.differentOddEven&&(t["differentOddEven"]=1),e.differentFirst&&(t["differentFirst"]=1);const n=[];return e.oddHeader&&n.push(xn("oddHeader",void 0,mn(e.oddHeader))),e.oddFooter&&n.push(xn("oddFooter",void 0,mn(e.oddFooter))),e.evenHeader&&n.push(xn("evenHeader",void 0,mn(e.evenHeader))),e.evenFooter&&n.push(xn("evenFooter",void 0,mn(e.evenFooter))),e.firstHeader&&n.push(xn("firstHeader",void 0,mn(e.firstHeader))),e.firstFooter&&n.push(xn("firstFooter",void 0,mn(e.firstFooter))),0===n.length?"":xn("headerFooter",Object.keys(t).length>0?t:void 0,n)}function Is(e){const t={};if(void 0!==e.rgb){const n=e.rgb;t["rgb"]=6===n.length?`FF${n}`:n}return void 0!==e.theme&&(t["theme"]=e.theme),void 0!==e.tint&&(t["tint"]=e.tint),void 0!==e.indexed&&(t["indexed"]=e.indexed),t}function Rs(e){const t=[];for(const n of e){const e=[];if(n.font){const t=Ls(n.font);t.length>0&&e.push(xn("rPr",void 0,t))}e.push(wn(n.text)),t.push(xn("r",void 0,e))}return t}function Ls(e){const t=[];return e.bold&&t.push(Cn("b")),e.italic&&t.push(Cn("i")),e.underline&&(!0===e.underline||"single"===e.underline?t.push(Cn("u")):t.push(Cn("u",{val:e.underline}))),e.strikethrough&&t.push(Cn("strike")),e.vertAlign&&t.push(Cn("vertAlign",{val:e.vertAlign})),void 0!==e.size&&t.push(Cn("sz",{val:e.size})),e.color&&t.push(Cn("color",Is(e.color))),e.name&&t.push(Cn("rFont",{val:e.name})),void 0!==e.family&&t.push(Cn("family",{val:e.family})),void 0!==e.charset&&t.push(Cn("charset",{val:e.charset})),e.scheme&&t.push(Cn("scheme",{val:e.scheme})),t}function Ps(e,t){const n=new Map;for(const r of e){const e=n.get(r.range);e?e.push(r):n.set(r.range,[r])}const i=[];for(const[r,o]of n){const e=[];for(const n of o)e.push(Ns(n,t));i.push(xn("conditionalFormatting",{sqref:r},e))}return i}function Ns(e,t){const n={type:e.type,priority:e.priority};e.style&&(n["dxfId"]=t.addDxf(e.style)),e.operator&&(n["operator"]=e.operator),e.stopIfTrue&&(n["stopIfTrue"]=!0),void 0!==e.text&&(n["text"]=e.text);const i=[];if(void 0!==e.formula){const t=Array.isArray(e.formula)?e.formula:[e.formula];for(const e of t)i.push(xn("formula",void 0,mn(e)))}if("colorScale"===e.type&&e.colorScale){const t=[];for(const n of e.colorScale.cfvo){const e={type:n.type};void 0!==n.value&&(e["val"]=n.value),t.push(Cn("cfvo",e))}for(const n of e.colorScale.colors)t.push(Cn("color",{rgb:n}));i.push(xn("colorScale",void 0,t))}if("dataBar"===e.type&&e.dataBar){const t=[];for(const n of e.dataBar.cfvo){const e={type:n.type};void 0!==n.value&&(e["val"]=n.value),t.push(Cn("cfvo",e))}t.push(Cn("color",{rgb:e.dataBar.color})),i.push(xn("dataBar",void 0,t))}if("iconSet"===e.type&&e.iconSet){const t={iconSet:e.iconSet.iconSet};e.iconSet.reverse&&(t["reverse"]=!0),!1===e.iconSet.showValue&&(t["showValue"]=!1);const n=[];for(const i of e.iconSet.cfvo){const e={type:i.type};void 0!==i.value&&(e["val"]=i.value),n.push(Cn("cfvo",e))}i.push(xn("iconSet",t,n))}return i.length>0?xn("cfRule",n,i):Cn("cfRule",n)}const Fs="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",Os="http://schemas.microsoft.com/office/excel/2006/main",ks="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",Bs="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";function Gs(e){const t=[];let n=1;for(const o of e){const e={},i=o.type??"line";"line"!==i&&(e["type"]=i),e["displayEmptyCellsAs"]="gap";const r=`{00000000-0000-0000-0000-${String(n++).padStart(12,"0")}}`;e["xr2:uid"]=r,o.markers&&(e["markers"]="1");const s=[],a=o.color??"376092",l=6===a.length?`FF${a}`:a;s.push(Cn("x14:colorSeries",{rgb:l}));const u=xn("x14:sparkline",void 0,[xn("xm:f",void 0,o.dataRange),xn("xm:sqref",void 0,o.location)]);s.push(xn("x14:sparklines",void 0,[u])),t.push(xn("x14:sparklineGroup",e,s))}const i=xn("x14:sparklineGroups",{"xmlns:xm":Os},t),r=xn("ext",{uri:Bs,"xmlns:x14":Fs,"xmlns:xr2":ks},[i]);return xn("extLst",void 0,[r])}function Vs(e,t,n){const i=t.join(""),r=0===i.length?e.lastIndexOf("</worksheet>"):e.indexOf(i);if(r<0)return e.lastIndexOf("</worksheet>");let o=r;for(let s=0;s<n;s++)o+=t[s].length;return o}function Hs(e){const t=e;return t.length>=8&&137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?"png":t.length>=3&&255===t[0]&&216===t[1]&&255===t[2]?"jpeg":t.length>=6&&71===t[0]&&73===t[1]&&70===t[2]?"gif":t.length>=12&&82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?"webp":Us(t)?"svg":"png"}const zs=1024;function Us(e){const t=e.subarray(0,zs);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);const i=n.trimStart().replace(/^/,"");return!!i.startsWith("<")&&/<svg[\s>]/i.test(i)}function Ws(e,t,n){const i=[];let r=t;for(const o of e){if(!o.backgroundImage){i.push(null);continue}const e=Hs(o.backgroundImage);i.push(`xl/media/image${r}.${e}`),n.add(e),r++}return{paths:i,nextIndex:r}}const $s="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",js="http://schemas.openxmlformats.org/drawingml/2006/main",Xs="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Ys="http://schemas.openxmlformats.org/drawingml/2006/chart",Ks="http://schemas.openxmlformats.org/package/2006/relationships",qs="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Zs="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Qs=3e6,Js=2e6,ea=9525,ta={png:"png",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"},na={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"},ia=2e6,ra=5e5;function oa(e,t,n,i,r=1){const o=[],s=[],a=[];for(let d=0;d<e.length;d++){const n=e[d],i=t+d,r=`rId${d+1}`,l=ta[n.type]??"png",u=na[n.type]??"image/png",c=`xl/media/image${i}.${l}`,h=`../media/image${i}.${l}`;o.push({path:c,data:n.data,contentType:u}),s.push(Cn("Relationship",{Id:r,Type:qs,Target:h}));const p=n.width?n.width*ea:Qs,f=n.height?n.height*ea:Js,g=n.anchor.from.col,m=n.anchor.from.row,v=n.anchor.to?.col??g+3,y=n.anchor.to?.row??m+5,C=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(g)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(m)),xn("xdr:rowOff",void 0,"0")]),w=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(v)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(y)),xn("xdr:rowOff",void 0,"0")]),x={id:d+2,name:`Picture ${d+1}`};n.title&&(x.title=n.title),n.altText&&(x.descr=n.altText);const b=xn("xdr:nvPicPr",void 0,[Cn("xdr:cNvPr",x),xn("xdr:cNvPicPr",void 0,[Cn("a:picLocks",{noChangeAspect:1})])]),_=xn("xdr:blipFill",void 0,[Cn("a:blip",{"r:embed":r}),xn("a:stretch",void 0,[Cn("a:fillRect")])]),S=xn("xdr:spPr",void 0,[xn("a:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:p,cy:f})]),xn("a:prstGeom",{prst:"rect"},[Cn("a:avLst")])]),A=xn("xdr:pic",void 0,[b,_,S]),T=xn("xdr:twoCellAnchor",void 0,[C,w,A,Cn("xdr:clientData")]);a.push(T)}if(n&&n.length>0){let t=e.length+2;for(let e=0;e<n.length;e++){const i=n[e],r=i.anchor.from.col,o=i.anchor.from.row,s=i.anchor.to?.col??r+3,l=i.anchor.to?.row??o+3,u=i.width?i.width*ea:ia,c=i.height?i.height*ea:ra,d=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(r)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(o)),xn("xdr:rowOff",void 0,"0")]),h=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(s)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(l)),xn("xdr:rowOff",void 0,"0")]),p={id:t++,name:`TextBox ${e+1}`};i.title&&(p.title=i.title),i.altText&&(p.descr=i.altText);const f=xn("xdr:nvSpPr",void 0,[Cn("xdr:cNvPr",p),xn("xdr:cNvSpPr",{txBox:1},[])]),g=[xn("a:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:u,cy:c})]),xn("a:prstGeom",{prst:"rect"},[Cn("a:avLst")])],m=i.style?.fillColor??"FFFFFF";g.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:m})]));const v=i.style?.borderColor??"000000";g.push(xn("a:ln",void 0,[xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:v})])]));const y=xn("xdr:spPr",void 0,g),C=i.style?.fontSize??11,w=100*C,x={lang:"en-US",sz:w};i.style?.bold&&(x["b"]=1);const b=[];i.style?.color&&b.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:i.style.color})]));const _=b.length>0?xn("a:rPr",x,b):Cn("a:rPr",x),S=xn("xdr:txBody",void 0,[Cn("a:bodyPr",{wrap:"square"}),xn("a:p",void 0,[xn("a:r",void 0,[_,xn("a:t",void 0,mn(i.text))])])]),A=xn("xdr:sp",void 0,[f,y,S]),T=xn("xdr:twoCellAnchor",void 0,[d,h,A,Cn("xdr:clientData")]);a.push(T)}}const l=[];if(i&&i.length>0){let t=e.length+(n?.length??0)+2;for(let n=0;n<i.length;n++){const o=i[n],u=r+n,c=`rId${e.length+n+1}`;s.push(Cn("Relationship",{Id:c,Type:Zs,Target:`../charts/chart${u}.xml`}));const d=o.anchor.from.col,h=o.anchor.from.row,p=o.anchor.to?.col??d+8,f=o.anchor.to?.row??h+15,g=xn("xdr:from",void 0,[xn("xdr:col",void 0,String(d)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(h)),xn("xdr:rowOff",void 0,"0")]),m=xn("xdr:to",void 0,[xn("xdr:col",void 0,String(p)),xn("xdr:colOff",void 0,"0"),xn("xdr:row",void 0,String(f)),xn("xdr:rowOff",void 0,"0")]),v={id:t++,name:`Chart ${n+1}`};o.frameTitle&&(v.title=o.frameTitle),o.altText&&(v.descr=o.altText);const y=xn("xdr:nvGraphicFramePr",void 0,[Cn("xdr:cNvPr",v),xn("xdr:cNvGraphicFramePr",void 0,[])]),C=xn("xdr:xfrm",void 0,[Cn("a:off",{x:0,y:0}),Cn("a:ext",{cx:0,cy:0})]),w=xn("a:graphic",void 0,xn("a:graphicData",{uri:Ys},[Cn("c:chart",{"xmlns:c":Ys,"xmlns:r":Xs,"r:id":c})])),x=xn("xdr:graphicFrame",{macro:""},[y,C,w]),b=xn("xdr:twoCellAnchor",{editAs:"oneCell"},[g,m,x,Cn("xdr:clientData")]);a.push(b),l.push({globalChartIndex:u})}}const u=_n("xdr:wsDr",{"xmlns:xdr":$s,"xmlns:a":js,"xmlns:r":Xs},a),c=_n("Relationships",{xmlns:Ks},s);return{drawingXml:u,drawingRels:c,images:o,charts:l}}const sa=.25,aa=13.5,la=12700,ua=new Set(["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"]),ca=new Set(["solid","dash","dashDot","dot","lgDash","lgDashDot","lgDashDotDot","sysDash","sysDashDot","sysDashDotDot","sysDot"]),da=new Set(["rnd","sq","flat"]),ha=new Set(["sng","dbl","thickThin","thinThick","tri"]);function pa(e){if("string"===typeof e&&da.has(e)&&"flat"!==e)return e}function fa(e){if("string"===typeof e&&ha.has(e)&&"sng"!==e)return e}function ga(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.cap;if("string"!==typeof i)return;const r=i.trim();return da.has(r)&&"flat"!==r?r:void 0}function ma(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.cmpd;if("string"!==typeof i)return;const r=i.trim();return ha.has(r)&&"sng"!==r?r:void 0}const va=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),ya=0,Ca=1e5,wa=-1e5,xa=1e5;function ba(e,t,n,i){const r=Gn(e,t);if(!r)return;const o=r.attrs.val;if("string"!==typeof o)return;const s=Number.parseInt(o.trim(),10);return Number.isFinite(s)&&!(s<n||s>i)?s:void 0}function _a(e){const t=e.attrs.val;if("string"!==typeof t)return;const n=t.trim();if(!va.has(n))return;const i={theme:n},r=ba(e,"lumMod",ya,Ca);void 0!==r&&(i.lumMod=r);const o=ba(e,"lumOff",ya,Ca);void 0!==o&&(i.lumOff=o);const s=ba(e,"tint",wa,xa);void 0!==s&&(i.tint=s);const a=ba(e,"shade",wa,xa);void 0!==a&&(i.shade=a);const l=ba(e,"alpha",ya,Ca);return void 0!==l&&(i.alpha=l),i}function Sa(e){if(void 0===e||null===e)return;if("string"===typeof e){const t=Ta(e);return t}if("object"!==typeof e)return;const t=e.theme;if("string"!==typeof t||!va.has(t))return;const n={theme:t},i=(e,t,n)=>{if("number"!==typeof e||!Number.isFinite(e))return;const i=Math.round(e);return i<t||i>n?void 0:i},r=i(e.lumMod,ya,Ca);void 0!==r&&(n.lumMod=r);const o=i(e.lumOff,ya,Ca);void 0!==o&&(n.lumOff=o);const s=i(e.tint,wa,xa);void 0!==s&&(n.tint=s);const a=i(e.shade,wa,xa);void 0!==a&&(n.shade=a);const l=i(e.alpha,ya,Ca);return void 0!==l&&(n.alpha=l),n}function Aa(e){if("string"===typeof e)return Cn("a:srgbClr",{val:e});const t=[];return void 0!==e.tint&&t.push(Cn("a:tint",{val:e.tint})),void 0!==e.shade&&t.push(Cn("a:shade",{val:e.shade})),void 0!==e.alpha&&t.push(Cn("a:alpha",{val:e.alpha})),void 0!==e.lumMod&&t.push(Cn("a:lumMod",{val:e.lumMod})),void 0!==e.lumOff&&t.push(Cn("a:lumOff",{val:e.lumOff})),0===t.length?Cn("a:schemeClr",{val:e.theme}):xn("a:schemeClr",{val:e.theme},t)}function Ta(e){if("string"!==typeof e)return;const t=e.trim();if(0===t.length)return;const n=t.startsWith("#")?t.slice(1):t;return 6===n.length&&/^[0-9a-fA-F]{6}$/.test(n)?n.toUpperCase():void 0}function Ea(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Da(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");if(r)return Ta(r.attrs.val);const o=Gn(i,"schemeClr");return o?_a(o):void 0}function Ma(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.w;if("string"!==typeof i)return;const r=Number.parseFloat(i);if(!Number.isFinite(r)||r<=0)return;const o=Math.round(r/la*4)/4;return o<sa?sa:o>aa?aa:o}function Ia(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"prstDash");if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ca.has(o)&&"solid"!==o?o:void 0}function Ra(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(4*e)/4;return t<sa?sa:t>aa?aa:t}function La(e){if("string"===typeof e&&ca.has(e)&&"solid"!==e)return e}function Pa(e){const t=Gn(e,"view3D");if(!t)return;const n={},i=Na(t,"rotX",-90,90);void 0!==i&&(n.rotX=i);const r=Na(t,"hPercent",5,500);void 0!==r&&(n.hPercent=r);const o=Na(t,"rotY",0,360);void 0!==o&&(n.rotY=o);const s=Na(t,"depthPercent",20,2e3);void 0!==s&&(n.depthPercent=s);const a=Fa(t,"rAngAx");void 0!==a&&(n.rAngAx=a);const l=Na(t,"perspective",0,240);return void 0!==l&&(n.perspective=l),n}function Na(e,t,n,i){const r=Gn(e,t);if(!r)return;const o=r.attrs.val;if("string"!==typeof o)return;if(!/^-?\d+$/.test(o))return;const s=Number(o);return Number.isInteger(s)&&!(s<n||s>i)?s:void 0}function Fa(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function Oa(e){const t=Gn(e,"floor");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function ka(e){const t=Gn(e,"sideWall");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function Ba(e){const t=Gn(e,"backWall");if(!t)return;const n=Gn(t,"thickness");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;if(!/^\d+$/.test(i))return;const r=Number(i);return!Number.isInteger(r)||0===r||r>100?void 0:r}function Ga(e){if(void 0===e)return;const t=[],n=Va(e.rotX,-90,90);void 0!==n&&t.push(Cn("c:rotX",{val:n}));const i=Va(e.hPercent,5,500);void 0!==i&&t.push(Cn("c:hPercent",{val:i}));const r=Va(e.rotY,0,360);void 0!==r&&t.push(Cn("c:rotY",{val:r}));const o=Va(e.depthPercent,20,2e3);void 0!==o&&t.push(Cn("c:depthPercent",{val:o})),!0===e.rAngAx?t.push(Cn("c:rAngAx",{val:1})):!1===e.rAngAx&&t.push(Cn("c:rAngAx",{val:0}));const s=Va(e.perspective,0,240);return void 0!==s&&t.push(Cn("c:perspective",{val:s})),xn("c:view3D",void 0,t)}function Va(e,t,n){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<t||e>n))return e}function Ha(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:floor",void 0,[Cn("c:thickness",{val:e})])}function za(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:sideWall",void 0,[Cn("c:thickness",{val:e})])}function Ua(e){if("number"===typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0)&&!(e>100))return xn("c:backWall",void 0,[Cn("c:thickness",{val:e})])}function Wa(e){if(!e)return;const t=e.attrs.val;if("string"!==typeof t)return;const n=t.trim();if(0===n.length)return;const i=Number(n);return Number.isFinite(i)&&!(i<0||i>1)?i:void 0}function $a(e){const t=Gn(e,"layout");if(!t)return;const n=Gn(t,"manualLayout");if(!n)return;const i=Wa(Gn(n,"x")),r=Wa(Gn(n,"y")),o=Wa(Gn(n,"w")),s=Wa(Gn(n,"h"));if(void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};return void 0!==i&&(a.x=i),void 0!==r&&(a.y=r),void 0!==o&&(a.w=o),void 0!==s&&(a.h=s),a}function ja(e){if(!e||"object"!==typeof e)return;const t={},n=Xa(e.x);void 0!==n&&(t.x=n);const i=Xa(e.y);void 0!==i&&(t.y=i);const r=Xa(e.w);void 0!==r&&(t.w=r);const o=Xa(e.h);return void 0!==o&&(t.h=o),void 0!==t.x||void 0!==t.y||void 0!==t.w||void 0!==t.h?t:void 0}function Xa(e){if("number"===typeof e&&Number.isFinite(e)&&!(e<0||e>1))return e}function Ya(e){if(!e)return;const t=[];return void 0!==e.x&&t.push(Cn("c:xMode",{val:"edge"})),void 0!==e.y&&t.push(Cn("c:yMode",{val:"edge"})),void 0!==e.w&&t.push(Cn("c:wMode",{val:"edge"})),void 0!==e.h&&t.push(Cn("c:hMode",{val:"edge"})),void 0!==e.x&&t.push(Cn("c:x",{val:e.x})),void 0!==e.y&&t.push(Cn("c:y",{val:e.y})),void 0!==e.w&&t.push(Cn("c:w",{val:e.w})),void 0!==e.h&&t.push(Cn("c:h",{val:e.h})),0!==t.length?xn("c:layout",void 0,[xn("c:manualLayout",void 0,t)]):void 0}function Ka(e,t){for(const n of e.children)"string"!==typeof n&&("t"===n.local?t.push(qa(n)):Ka(n,t))}function qa(e){let t="";for(const n of e.children)t+="string"===typeof n?n:qa(n);return t}function Za(e){if("string"!==typeof e)return;const t=e.trim().toLowerCase();return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0}function Qa(e){const t=e.attrs.val;if("string"===typeof t)return"1"===t||"true"===t.toLowerCase()}function Ja(e){if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function el(e){if(!e)return;const t=Gn(e,"numRef")??Gn(e,"strRef");if(t){const e=Gn(t,"f");if(e){const t=qa(e).trim();if(t.length>0)return t}}const n=Gn(e,"f");if(n){const e=qa(n).trim();if(e.length>0)return e}}function tl(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number(r);return Number.isFinite(o)?o:void 0}function nl(e){const t=Gn(e,"txPr");if(t)return rl(t)}function il(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");return i?rl(i):void 0}function rl(e){const t=Gn(e,"p");if(!t)return;const n=Gn(t,"pPr");return n?Gn(n,"defRPr"):void 0}const ol=1,sl=400;function al(e,t){return n=>{if("number"!==typeof n||!Number.isFinite(n))return;const i=Math.round(2*n),r=i/2;return r<e?e:r>t?t:r}}al(ol,sl);const ll=6e4,ul=-90,cl=90,dl=100,hl=1,pl=400,fl=1400;function gl(e){const t=Gn(e,"title");if(t)return $a(t)}function ml(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function vl(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(!i)return;const r=Gn(i,"bodyPr");if(!r)return;const o=r.attrs.rot;if("string"!==typeof o)return;const s=o.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const l=Math.round(a/ll);return 0!==l?l<ul?ul:l>cl?cl:l:void 0}function yl(e){const t=il(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/dl*2),s=o/2;return s<hl||s>pl?void 0:s}function Cl(e){const t=il(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function wl(e){const t=il(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function xl(e){const t=il(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function bl(e){const t=Gn(e,"title");if(t)return Ea(t)}function _l(e){const t=Gn(e,"title");if(t)return Da(t)}function Sl(e){const t=Gn(e,"title");if(t)return Ma(t)}function Al(e){const t=Gn(e,"title");if(t)return Ia(t)}function Tl(e){const t=Gn(e,"title");if(t)return ga(t)}function El(e){const t=Gn(e,"title");if(t)return ma(t)}function Dl(e){const t=il(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Ml(e){const t=il(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function Il(e){const t=il(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Rl(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(i){const e=[];Ka(i,e);const t=e.join("").trim();return t.length>0?t:void 0}const r=Gn(n,"strRef");if(r){const e=Gn(r,"strCache");if(e)for(const t of Vn(e)){if("pt"!==t.local)continue;const e=Gn(t,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}}}function Ll(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=void 0===n?0:n*ll,y=void 0===i?fl:i*dl,C=r?1:0,w=!0===o?1:void 0,x=!0===a?"sngStrike":void 0,b=!0===l?"sng":void 0,_=void 0!==s?xn("a:solidFill",void 0,[Aa(s)]):void 0,S=u?Cn("a:latin",{typeface:u}):void 0,A=[];_&&A.push(_),S&&A.push(S);const T=A.length>0?xn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x}),E=A.length>0?xn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x}),D=Ya(c),M=[xn("c:tx",void 0,[xn("c:rich",void 0,[xn("a:bodyPr",{rot:v,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[T]),xn("a:r",void 0,[E,xn("a:t",void 0,mn(e))])])])])];void 0!==D&&M.push(D),M.push(Cn("c:overlay",{val:t?1:0}));const I=Pl(d,h,p,f,g,m);return void 0!==I&&M.push(I),xn("c:title",void 0,M)}function Pl(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function Nl(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<ul?t=ul:t>cl&&(t=cl),0!==t?t:void 0}function Fl(e){return Nl(e.titleRotation)}function Ol(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;const t=Math.round(2*e),n=t/2;return n<hl||n>pl?void 0:n}function kl(e){return Ol(e.titleFontSize)}function Bl(e){return!0===e||!1!==e&&void 0}function Gl(e){return Bl(e.titleBold)}function Vl(e){return!0===e||!1!==e&&void 0}function Hl(e){return Vl(e.titleItalic)}function zl(e){return"string"===typeof e?Ta(e):Sa(e)}function Ul(e){return zl(e.titleColor)}function Wl(e){return zl(e.titleFillColor)}function $l(e){return zl(e.titleBorderColor)}function jl(e){return Ra(e.titleBorderWidth)}function Xl(e){return La(e.titleBorderDash)}function Yl(e){return pa(e.titleBorderCap)}function Kl(e){return fa(e.titleBorderCompound)}function ql(e){return!0===e||!1!==e&&void 0}function Zl(e){return ql(e.titleStrike)}function Ql(e){return!0===e||!1!==e&&void 0}function Jl(e){return Ql(e.titleUnderline)}function eu(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function tu(e){return eu(e.titleFontFamily)}function nu(e){return!0===e.titleOverlay}function iu(e){return ja(e.titleLayout)}const ru=100,ou=1,su=400;function au(e){const t=Gn(e,"legend");if(!t)return;const n=Gn(t,"delete");if(n&&!0===Ja(n.attrs.val))return!1;const i=Gn(t,"legendPos");if(!i)return"right";const r=i.attrs.val;if("string"!==typeof r)return"right";switch(r){case"t":return"top";case"b":return"bottom";case"l":return"left";case"r":return"right";case"tr":return"topRight";default:return}}function lu(e){const t=Gn(e,"legend");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function uu(e){const t=Gn(e,"legend");if(!t)return;const n=new Set,i=[];for(const r of Vn(t)){if("legendEntry"!==r.local)continue;const e=Gn(r,"idx");if(!e)continue;const t=e.attrs.val;if("string"!==typeof t)continue;const o=Number.parseInt(t,10);if(!Number.isFinite(o)||o<0)continue;if(n.has(o))continue;n.add(o);const s=Gn(r,"delete"),a=void 0!==s&&!0===Ja(s.attrs.val),l={idx:o,delete:a},u=nl(r);if(u){const e=u.attrs.sz;if("string"===typeof e){const t=e.trim();if(t.length>0){const e=Number.parseInt(t,10);if(Number.isFinite(e)){const t=Math.round(e/ru*2),n=t/2;n>=ou&&n<=su&&(l.fontSize=n)}}}const t=u.attrs.b;if("string"===typeof t){const e=Ja(t);!0===e&&(l.bold=!0)}const n=u.attrs.i;if("string"===typeof n){const e=Ja(n);!0===e&&(l.italic=!0)}const i=u.attrs.u;"string"===typeof i&&"sng"===i&&(l.underline=!0);const r=u.attrs.strike;"string"===typeof r&&"sngStrike"===r&&(l.strikethrough=!0);const o=Gn(u,"solidFill");if(o){const e=Gn(o,"srgbClr");if(e){const t=e.attrs.val;if("string"===typeof t){const e=t.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(l.color=e)}}}const s=Gn(u,"latin");if(s){const e=s.attrs.typeface;if("string"===typeof e){const t=e.trim();t.length>0&&(l.fontFamily=t)}}}i.push(l)}return i.length>0?i:void 0}function cu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.sz;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const s=Math.round(o/ru*2),a=s/2;return a<ou||a>su?void 0:a}function du(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.b;return"1"===i||"true"===i||void 0}function hu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.i;return"1"===i||"true"===i||void 0}function pu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.u;return"sng"===i||void 0}function fu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=n.attrs.strike;return"sngStrike"===i||void 0}function gu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");if(r)return Ta(r.attrs.val);const o=Gn(i,"schemeClr");return o?_a(o):void 0}function mu(e){const t=Gn(e,"legend");if(!t)return;const n=nl(t);if(!n)return;const i=Gn(n,"latin");if(!i)return;const r=i.attrs.typeface;if("string"!==typeof r)return;const o=r.trim();return 0!==o.length?o:void 0}function vu(e){const t=Gn(e,"legend");if(t)return $a(t)}function yu(e){const t=Gn(e,"legend");if(t)return Ea(t)}function Cu(e){const t=Gn(e,"legend");if(t)return Da(t)}function wu(e){const t=Gn(e,"legend");if(t)return Ma(t)}function xu(e){const t=Gn(e,"legend");if(t)return Ia(t)}function bu(e){const t=Gn(e,"legend");if(t)return ga(t)}function _u(e){const t=Gn(e,"legend");if(t)return ma(t)}function Su(e){if(!1===e.legend)return null;if(void 0===e.legend)return"scatter"===e.type?"b":"r";switch(e.legend){case"top":return"t";case"bottom":return"b";case"left":return"l";case"right":return"r";case"topRight":return"tr"}}function Au(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=[Cn("c:legendPos",{val:e})];for(const x of n){const e=[Cn("c:idx",{val:x.idx}),Cn("c:delete",{val:x.delete?1:0})],t=Eu(x.fontSize,x.bold,x.italic,x.underline,x.strikethrough,x.color,x.fontFamily);void 0!==t&&e.push(t),v.push(xn("c:legendEntry",void 0,e))}const y=Ya(c);void 0!==y&&v.push(y),v.push(Cn("c:overlay",{val:t?1:0}));const C=Tu(d,h,p,f,g,m);void 0!==C&&v.push(C);const w=Eu(i,r,o,s,a,l,u);return void 0!==w&&v.push(w),xn("c:legend",void 0,v)}function Tu(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function Eu(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*ru),void 0!==t&&(a.b=t?1:0),void 0!==n&&(a.i=n?1:0),void 0!==i&&(a.u=i?"sng":"none"),!0===r&&(a.strike="sngStrike");const l=void 0!==o?xn("a:solidFill",void 0,[Aa(o)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}function Du(e){return Ol(e.legendFontSize)}function Mu(e){const t=e.legendBold;return!0===t||!1!==t&&void 0}function Iu(e){const t=e.legendItalic;return!0===t||!1!==t&&void 0}function Ru(e){const t=e.legendUnderline;return!0===t||!1!==t&&void 0}function Lu(e){if(!0===e.legendStrikethrough)return!0}function Pu(e){return zl(e.legendFontColor)}function Nu(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function Fu(e){return Nu(e.legendFontFamily)}function Ou(e){const t=e.legendEntries;if(!Array.isArray(t)||0===t.length)return[];const n=new Map;for(const i of t){if(!i||"object"!==typeof i)continue;const e=i.idx;if("number"!==typeof e||!Number.isFinite(e))continue;if(!Number.isInteger(e)||e<0)continue;const t={idx:e,delete:!0===i.delete};if("number"===typeof i.fontSize&&Number.isFinite(i.fontSize)){const e=Math.round(2*i.fontSize),n=e/2;n>=ou&&n<=su&&(t.fontSize=n)}if(!0===i.bold?t.bold=!0:!1===i.bold&&(t.bold=!1),!0===i.italic?t.italic=!0:!1===i.italic&&(t.italic=!1),!0===i.underline?t.underline=!0:!1===i.underline&&(t.underline=!1),!0===i.strikethrough?t.strikethrough=!0:!1===i.strikethrough&&(t.strikethrough=!1),void 0!==i.color){const e=Sa(i.color);void 0!==e&&(t.color=e)}if("string"===typeof i.fontFamily){const e=i.fontFamily.trim();e.length>0&&(t.fontFamily=e)}n.set(e,t)}return Array.from(n.values()).sort((e,t)=>e.idx-t.idx)}function ku(e){return!0===e.legendOverlay}function Bu(e){return ja(e.legendLayout)}function Gu(e){return zl(e.legendFillColor)}function Vu(e){return zl(e.legendBorderColor)}function Hu(e){return Ra(e.legendBorderWidth)}function zu(e){return La(e.legendBorderDash)}const Uu=100,Wu=1,$u=400,ju=new Set(["none","in","out","cross"]),Xu=new Set(["nextTo","low","high","none"]),Yu=new Set(["ctr","l","r"]),Ku=-90,qu=90,Zu=new Set(["autoZero","min","max"]),Qu=new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),Ju=new Set(["between","midCat"]);function ec(e,t){const n=Sc(e),i=Ac(e),r=Tc(e),o=Ec(e),s=Dc(e),a=Mc(e),l=Ic(e),u=Rc(e),c=Lc(e),d=Pc(e),h=Nc(e),p=Fc(e),f=Oc(e),g=kc(e),m=Bc(e),v=Gc(e),y=Vc(e),C=_c(e),w=xc(e),x=bc(e),b=tc(e,"majorTickMark","out"),_=tc(e,"minorTickMark","none"),S=nc(e),A=cc(e),T=dc(e),E=hc(e),D=pc(e),M=fc(e),I=gc(e),R=mc(e),L=vc(e),P=ic(e),N="catAx"===e.local||"dateAx"===e.local,F=N?rc(e,"tickLblSkip"):void 0,O=N?rc(e,"tickMarkSkip"):void 0,k=N?oc(e):void 0,B=N?sc(e):void 0,G="catAx"===e.local?ac(e):void 0,V="catAx"===e.local?lc(e):void 0,H=uc(e),z=yc(e),U=z.crosses,W=z.crossesAt,$="valAx"===e.local?Cc(e):void 0,j="valAx"===e.local?wc(e):void 0,X=j===t?void 0:j;if(void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s&&void 0===a&&void 0===l&&void 0===u&&void 0===c&&void 0===d&&void 0===h&&void 0===p&&void 0===f&&void 0===g&&void 0===m&&void 0===v&&void 0===y&&void 0===C&&void 0===w&&void 0===x&&void 0===b&&void 0===_&&void 0===S&&void 0===A&&void 0===T&&void 0===E&&void 0===D&&void 0===M&&void 0===L&&void 0===I&&void 0===R&&void 0===P&&void 0===F&&void 0===O&&void 0===k&&void 0===B&&void 0===G&&void 0===V&&void 0===H&&void 0===U&&void 0===W&&void 0===$&&void 0===X)return;const Y={};return void 0!==n&&(Y.title=n),void 0!==i&&(Y.axisTitleRotation=i),void 0!==r&&(Y.axisTitleFontSize=r),void 0!==o&&(Y.axisTitleBold=o),void 0!==s&&(Y.axisTitleItalic=s),void 0!==a&&(Y.axisTitleColor=a),void 0!==l&&(Y.axisTitleStrike=l),void 0!==u&&(Y.axisTitleUnderline=u),void 0!==c&&(Y.axisTitleFontFamily=c),void 0!==d&&(Y.axisTitleOverlay=d),void 0!==h&&(Y.axisTitleLayout=h),void 0!==p&&(Y.axisTitleFillColor=p),void 0!==f&&(Y.axisTitleBorderColor=f),void 0!==g&&(Y.axisTitleBorderWidth=g),void 0!==m&&(Y.axisTitleBorderDash=m),void 0!==v&&(Y.axisTitleBorderCap=v),void 0!==y&&(Y.axisTitleBorderCompound=y),void 0!==C&&(Y.gridlines=C),void 0!==w&&(Y.scale=w),void 0!==x&&(Y.numberFormat=x),void 0!==b&&(Y.majorTickMark=b),void 0!==_&&(Y.minorTickMark=_),void 0!==S&&(Y.tickLblPos=S),void 0!==A&&(Y.labelRotation=A),void 0!==T&&(Y.labelFontSize=T),void 0!==E&&(Y.labelBold=E),void 0!==D&&(Y.labelItalic=D),void 0!==M&&(Y.labelColor=M),void 0!==L&&(Y.labelFontFamily=L),void 0!==I&&(Y.labelUnderline=I),void 0!==R&&(Y.labelStrike=R),void 0!==P&&(Y.reverse=P),void 0!==F&&(Y.tickLblSkip=F),void 0!==O&&(Y.tickMarkSkip=O),void 0!==k&&(Y.lblOffset=k),void 0!==B&&(Y.lblAlgn=B),void 0!==G&&(Y.noMultiLvlLbl=G),void 0!==V&&(Y.auto=V),void 0!==H&&(Y.hidden=H),void 0!==U&&(Y.crosses=U),void 0!==W&&(Y.crossesAt=W),void 0!==$&&(Y.dispUnits=$),void 0!==X&&(Y.crossBetween=X),Y}function tc(e,t,n){const i=Gn(e,t);if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ju.has(o)?o===n?void 0:o:void 0}function nc(e){const t=Gn(e,"tickLblPos");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Xu.has(i)?"nextTo"===i?void 0:i:void 0}function ic(e){const t=Gn(e,"scaling");if(!t)return;const n=Gn(t,"orientation");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();return"maxMin"===r||void 0}function rc(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);return Number.isFinite(o)&&!(o<1||o>32767)&&1!==o?o:void 0}function oc(e){const t=Gn(e,"lblOffset");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);return Number.isFinite(r)&&!(r<0||r>1e3)&&100!==r?r:void 0}function sc(e){const t=Gn(e,"lblAlgn");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Yu.has(i)?"ctr"===i?void 0:i:void 0}function ac(e){const t=Gn(e,"noMultiLvlLbl");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"1":case"true":return!0;case"0":case"false":return;default:return}}function lc(e){const t=Gn(e,"auto");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"0":case"false":return!1;case"1":case"true":return;default:return}}function uc(e){const t=Gn(e,"delete");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n.trim()){case"1":case"true":return!0;case"0":case"false":return;default:return}}function cc(e){const t=Gn(e,"txPr");if(!t)return;const n=Gn(t,"bodyPr");if(!n)return;const i=n.attrs.rot;if("string"!==typeof i)return;const r=i.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const s=Math.round(o/6e4);return 0!==s?s<Ku?Ku:s>qu?qu:s:void 0}function dc(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Uu*2),s=o/2;return s<Wu||s>$u?void 0:s}function hc(e){const t=nl(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function pc(e){const t=nl(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function fc(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function gc(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function mc(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function vc(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function yc(e){const t=Gn(e,"crossesAt");if(t){const e=t.attrs.val;if("string"===typeof e){const t=e.trim();if(t.length>0){const e=Number.parseFloat(t);if(Number.isFinite(e))return{crossesAt:e}}}}const n=Gn(e,"crosses");if(!n)return{};const i=n.attrs.val;if("string"!==typeof i)return{};const r=i.trim();return Zu.has(r)?"autoZero"===r?{}:{crosses:r}:{}}function Cc(e){const t=Gn(e,"dispUnits");if(!t)return;const n={},i=Gn(t,"custUnit");if(i){const e=i.attrs.val;if("string"===typeof e){const t=Number.parseFloat(e.trim());Number.isFinite(t)&&t>0&&(n.custUnit=t)}}if(void 0===n.custUnit){const e=Gn(t,"builtInUnit");if(e){const t=e.attrs.val;if("string"===typeof t){const e=t.trim();Qu.has(e)&&(n.unit=e)}}}if(void 0===n.unit&&void 0===n.custUnit)return;const r=Gn(t,"dispUnitsLbl");if(r){n.showLabel=!0;const e=Gn(r,"tx");if(e){const t=Gn(e,"rich");if(t){const e=[];for(const n of t.children){if("string"===typeof n)continue;if("p"!==n.local)continue;const t=[];for(const e of n.children)if("string"!==typeof e&&"r"===e.local)for(const n of e.children){if("string"===typeof n)continue;if("t"!==n.local)continue;let e="";for(const t of n.children)"string"===typeof t&&(e+=t);t.push(e)}t.length>0&&e.push(t.join(""))}const i=e.join("\n").trim();i.length>0&&(n.customLabel=i)}}}return n}function wc(e){const t=Gn(e,"crossBetween");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Ju.has(i)?i:void 0}function xc(e){const t={},n=Gn(e,"scaling");if(n){const e=tl(n,"min");void 0!==e&&(t.min=e);const i=tl(n,"max");void 0!==i&&(t.max=i);const r=tl(n,"logBase");void 0!==r&&(t.logBase=r)}const i=tl(e,"majorUnit");void 0!==i&&i>0&&(t.majorUnit=i);const r=tl(e,"minorUnit");return void 0!==r&&r>0&&(t.minorUnit=r),Object.keys(t).length>0?t:void 0}function bc(e){const t=Gn(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!==typeof n||0===n.length)return;const i={formatCode:n},r=t.attrs.sourceLinked;return void 0!==r&&!0===Za(r)&&(i.sourceLinked=!0),i}function _c(e){const t=void 0!==Gn(e,"majorGridlines"),n=void 0!==Gn(e,"minorGridlines");if(!t&&!n)return;const i={};return t&&(i.major=!0),n&&(i.minor=!0),i}function Sc(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(i){const e=[];Ka(i,e);const t=e.join("").trim();return t.length>0?t:void 0}const r=Gn(n,"strRef");if(r){const e=Gn(r,"strCache");if(e)for(const t of Vn(e)){if("pt"!==t.local)continue;const e=Gn(t,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}}}function Ac(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"tx");if(!n)return;const i=Gn(n,"rich");if(!i)return;const r=Gn(i,"bodyPr");if(!r)return;const o=r.attrs.rot;if("string"!==typeof o)return;const s=o.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const l=Math.round(a/6e4);return 0!==l?l<Ku?Ku:l>qu?qu:l:void 0}function Tc(e){const t=il(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Uu*2),s=o/2;return s<Wu||s>$u?void 0:s}function Ec(e){const t=il(e);if(!t)return;const n=Za(t.attrs.b);return!0===n||void 0}function Dc(e){const t=il(e);if(!t)return;const n=Za(t.attrs.i);return!0===n||void 0}function Mc(e){const t=il(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Ic(e){const t=il(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Rc(e){const t=il(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function Lc(e){const t=il(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Pc(e){const t=Gn(e,"title");if(!t)return;const n=Gn(t,"overlay");if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return;default:return}}function Nc(e){const t=Gn(e,"title");if(t)return $a(t)}function Fc(e){const t=Gn(e,"title");if(t)return Ea(t)}function Oc(e){const t=Gn(e,"title");if(t)return Da(t)}function kc(e){const t=Gn(e,"title");if(t)return Ma(t)}function Bc(e){const t=Gn(e,"title");if(t)return Ia(t)}function Gc(e){const t=Gn(e,"title");if(t)return ga(t)}function Vc(e){const t=Gn(e,"title");if(t)return ma(t)}function Hc(e){const t=Gn(e,"autoTitleDeleted");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}const zc=new Set(["autoZero","min","max"]),Uc=111111111,Wc=222222222,$c=333333333,jc=444444444,Xc=1e3,Yc=6e4,Kc=new Set(["none","in","out","cross"]),qc=new Set(["nextTo","low","high","none"]);function Zc(e){if(!0===e.autoTitleDeleted)return!0;if(!1===e.autoTitleDeleted)return!1;const t=e.showTitle??Boolean(e.title);return!(t&&e.title)}function Qc(e){if("string"!==typeof e)return;const t=e.trim();return t.length>0?t:void 0}function Jc(e){if(!e)return;const t=!0===e.major,n=!0===e.minor;return t||n?{major:t,minor:n}:void 0}function ed(e){if(!e)return[];const t=[];return e.major&&t.push(xn("c:majorGridlines",void 0,[])),e.minor&&t.push(xn("c:minorGridlines",void 0,[])),t}function td(e){if(!e)return;const t={};return"number"===typeof e.min&&Number.isFinite(e.min)&&(t.min=e.min),"number"===typeof e.max&&Number.isFinite(e.max)&&(t.max=e.max),void 0!==t.min&&void 0!==t.max&&t.min>=t.max&&delete t.max,"number"===typeof e.majorUnit&&Number.isFinite(e.majorUnit)&&e.majorUnit>0&&(t.majorUnit=e.majorUnit),"number"===typeof e.minorUnit&&Number.isFinite(e.minorUnit)&&e.minorUnit>0&&(t.minorUnit=e.minorUnit),"number"===typeof e.logBase&&Number.isFinite(e.logBase)&&e.logBase>=2&&e.logBase<=1e3&&(t.logBase=e.logBase),Object.keys(t).length>0?t:void 0}function nd(e){if(!e)return;const t="string"===typeof e.formatCode?e.formatCode:"";if(0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function id(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<1||t>32767||1===t?void 0:t}function rd(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>1e3||100===t?void 0:t}function od(e){if(void 0!==e&&("ctr"===e||"l"===e||"r"===e)&&"ctr"!==e)return e}function sd(e){return!0===e}function ad(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<Ku?t=Ku:t>qu&&(t=qu),0!==t?t:void 0}function ld(e){if(void 0===e||"number"!==typeof e||!Number.isFinite(e))return;const t=Math.round(2*e),n=t/2;return n<Wu||n>$u?void 0:n}function ud(e){return Bl(e)}function cd(e){return Vl(e)}function dd(e){return zl(e)}function hd(e){return Ql(e)}function pd(e){return ql(e)}function fd(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function gd(e,t,n,i,r,o,s,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s&&void 0===a)return;const l=void 0===e?void 0:6e4*e,u=void 0===t?void 0:t*Uu,c=void 0===n?void 0:n?1:0,d=void 0===i?void 0:i?1:0,h=!0===o?"sng":void 0,p=!0===s?"sngStrike":void 0,f=void 0!==r?xn("a:solidFill",void 0,[Aa(r)]):void 0,g=a?Cn("a:latin",{typeface:a}):void 0,m=[];f&&m.push(f),g&&m.push(g);const v=m.length>0?xn("a:defRPr",{sz:u,b:c,i:d,u:h,strike:p},m):Cn("a:defRPr",{sz:u,b:c,i:d,u:h,strike:p});return xn("c:txPr",void 0,[Cn("a:bodyPr",{rot:l}),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[v]),Cn("a:endParaRPr",{lang:"en-US"})])])}function md(e,t){return"number"===typeof t&&Number.isFinite(t)?{kind:"numeric",value:t}:void 0!==e&&zc.has(e)&&"autoZero"!==e?{kind:"semantic",value:e}:{kind:"default"}}function vd(e){switch(e.kind){case"numeric":return Cn("c:crossesAt",{val:e.value});case"semantic":return Cn("c:crosses",{val:e.value});case"default":return Cn("c:crosses",{val:"autoZero"})}}function yd(e){if(!e)return{before:[],after:[]};const t=[],n=[];return void 0!==e.logBase&&t.push(Cn("c:logBase",{val:e.logBase})),void 0!==e.max&&n.push(Cn("c:max",{val:e.max})),void 0!==e.min&&n.push(Cn("c:min",{val:e.min})),{before:t,after:n}}function Cd(e,t=!1){const{before:n,after:i}=yd(e),r=[...n,Cn("c:orientation",{val:t?"maxMin":"minMax"}),...i];return xn("c:scaling",void 0,r)}function wd(e){if(!e)return[];const t=[];return void 0!==e.majorUnit&&t.push(Cn("c:majorUnit",{val:e.majorUnit})),void 0!==e.minorUnit&&t.push(Cn("c:minorUnit",{val:e.minorUnit})),t}function xd(e){if(void 0===e)return;if("string"===typeof e)return Qu.has(e)?{unit:e}:void 0;if("object"!==typeof e||null===e)return;const t={},n=e.unit;"string"===typeof n&&Qu.has(n)&&(t.unit=n);const i=e.custUnit;if("number"===typeof i&&Number.isFinite(i)&&i>0&&(t.custUnit=i),void 0!==t.unit||void 0!==t.custUnit){if(!0===e.showLabel&&(t.showLabel=!0),"string"===typeof e.customLabel){const n=e.customLabel.trim();n.length>0&&(t.customLabel=n)}return t}}function bd(e){if(!e)return[];const t=[];if(void 0!==e.custUnit)t.push(Cn("c:custUnit",{val:e.custUnit}));else{if(void 0===e.unit)return[];t.push(Cn("c:builtInUnit",{val:e.unit}))}if(!0===e.showLabel||"string"===typeof e.customLabel&&e.customLabel.trim().length>0){const n="string"===typeof e.customLabel?e.customLabel.trim():"";if(n.length>0){const e=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=xn("c:rich",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:r",void 0,[xn("a:t",void 0,e)])])]),r=xn("c:tx",void 0,[i]);t.push(xn("c:dispUnitsLbl",void 0,[r]))}else t.push(Cn("c:dispUnitsLbl"))}return[xn("c:dispUnits",void 0,t)]}function _d(e){if("string"===typeof e)return Ju.has(e)?e:void 0}function Sd(e){if(!e)return[];const t=!0===e.sourceLinked?1:0;return[Cn("c:numFmt",{formatCode:e.formatCode,sourceLinked:t})]}function Ad(e){if(void 0!==e)return Kc.has(e)?e:void 0}function Td(e){if(void 0!==e)return qc.has(e)?e:void 0}function Ed(e,t,n){const i=[];return void 0!==e&&i.push(Cn("c:majorTickMark",{val:e})),void 0!==t&&i.push(Cn("c:minorTickMark",{val:t})),void 0!==n&&i.push(Cn("c:tickLblPos",{val:n})),i}function Dd(e,t){const n=[];return void 0!==e&&n.push(Cn("c:tickLblSkip",{val:e})),void 0!==t&&n.push(Cn("c:tickMarkSkip",{val:t})),n}function Md(e,t){const n="column"===e?"b":"l",i="column"===e?"l":"b",r=[Cn("c:axId",{val:Uc}),Cd(t.xScale,t.xReverse),Cn("c:delete",{val:t.xHidden?1:0}),Cn("c:axPos",{val:n}),...ed(t.xGridlines)];t.xAxisTitle&&r.push(Rd(t.xAxisTitle,t.xAxisTitleRotation,t.xAxisTitleFontSize,t.xAxisTitleBold,t.xAxisTitleItalic,t.xAxisTitleColor,t.xAxisTitleStrike,t.xAxisTitleUnderline,t.xAxisTitleFontFamily,t.xAxisTitleOverlay,t.xAxisTitleLayout,t.xAxisTitleFillColor,t.xAxisTitleBorderColor,t.xAxisTitleBorderWidth,t.xAxisTitleBorderDash,t.xAxisTitleBorderCap,t.xAxisTitleBorderCompound)),r.push(...Sd(t.xNumFmt),...Ed(t.xMajorTickMark,t.xMinorTickMark,t.xTickLblPos));const o=gd(t.xLabelRotation,t.xLabelFontSize,t.xLabelBold,t.xLabelItalic,t.xLabelColor,t.xLabelUnderline,t.xLabelStrike,t.xLabelFontFamily);o&&r.push(o),r.push(Cn("c:crossAx",{val:Wc}),vd(t.xCrosses),Cn("c:auto",{val:t.xAuto?1:0}),Cn("c:lblAlgn",{val:t.xLblAlgn??"ctr"}),Cn("c:lblOffset",{val:t.xLblOffset??100}),...Dd(t.xTickLblSkip,t.xTickMarkSkip),Cn("c:noMultiLvlLbl",{val:t.xNoMultiLvlLbl?1:0}));const s=[Cn("c:axId",{val:Wc}),Cd(t.yScale,t.yReverse),Cn("c:delete",{val:t.yHidden?1:0}),Cn("c:axPos",{val:i}),...ed(t.yGridlines)];t.yAxisTitle&&s.push(Rd(t.yAxisTitle,t.yAxisTitleRotation,t.yAxisTitleFontSize,t.yAxisTitleBold,t.yAxisTitleItalic,t.yAxisTitleColor,t.yAxisTitleStrike,t.yAxisTitleUnderline,t.yAxisTitleFontFamily,t.yAxisTitleOverlay,t.yAxisTitleLayout,t.yAxisTitleFillColor,t.yAxisTitleBorderColor,t.yAxisTitleBorderWidth,t.yAxisTitleBorderDash,t.yAxisTitleBorderCap,t.yAxisTitleBorderCompound)),s.push(...Sd(t.yNumFmt),...Ed(t.yMajorTickMark,t.yMinorTickMark,t.yTickLblPos));const a=gd(t.yLabelRotation,t.yLabelFontSize,t.yLabelBold,t.yLabelItalic,t.yLabelColor,t.yLabelUnderline,t.yLabelStrike,t.yLabelFontFamily);return a&&s.push(a),s.push(Cn("c:crossAx",{val:Uc}),vd(t.yCrosses),Cn("c:crossBetween",{val:t.yCrossBetween??"between"}),...wd(t.yScale),...bd(t.yDispUnits)),[xn("c:catAx",void 0,r),xn("c:valAx",void 0,s)]}function Id(e){const t=[Cn("c:axId",{val:$c}),Cd(e.xScale,e.xReverse),Cn("c:delete",{val:e.xHidden?1:0}),Cn("c:axPos",{val:"b"}),...ed(e.xGridlines)];e.xAxisTitle&&t.push(Rd(e.xAxisTitle,e.xAxisTitleRotation,e.xAxisTitleFontSize,e.xAxisTitleBold,e.xAxisTitleItalic,e.xAxisTitleColor,e.xAxisTitleStrike,e.xAxisTitleUnderline,e.xAxisTitleFontFamily,e.xAxisTitleOverlay,e.xAxisTitleLayout,e.xAxisTitleFillColor,e.xAxisTitleBorderColor,e.xAxisTitleBorderWidth,e.xAxisTitleBorderDash,e.xAxisTitleBorderCap,e.xAxisTitleBorderCompound)),t.push(...Sd(e.xNumFmt),...Ed(e.xMajorTickMark,e.xMinorTickMark,e.xTickLblPos));const n=gd(e.xLabelRotation,e.xLabelFontSize,e.xLabelBold,e.xLabelItalic,e.xLabelColor,e.xLabelUnderline,e.xLabelStrike,e.xLabelFontFamily);n&&t.push(n),t.push(Cn("c:crossAx",{val:jc}),vd(e.xCrosses),Cn("c:crossBetween",{val:e.xCrossBetween??"midCat"}),...wd(e.xScale),...bd(e.xDispUnits));const i=[Cn("c:axId",{val:jc}),Cd(e.yScale,e.yReverse),Cn("c:delete",{val:e.yHidden?1:0}),Cn("c:axPos",{val:"l"}),...ed(e.yGridlines)];e.yAxisTitle&&i.push(Rd(e.yAxisTitle,e.yAxisTitleRotation,e.yAxisTitleFontSize,e.yAxisTitleBold,e.yAxisTitleItalic,e.yAxisTitleColor,e.yAxisTitleStrike,e.yAxisTitleUnderline,e.yAxisTitleFontFamily,e.yAxisTitleOverlay,e.yAxisTitleLayout,e.yAxisTitleFillColor,e.yAxisTitleBorderColor,e.yAxisTitleBorderWidth,e.yAxisTitleBorderDash,e.yAxisTitleBorderCap,e.yAxisTitleBorderCompound)),i.push(...Sd(e.yNumFmt),...Ed(e.yMajorTickMark,e.yMinorTickMark,e.yTickLblPos));const r=gd(e.yLabelRotation,e.yLabelFontSize,e.yLabelBold,e.yLabelItalic,e.yLabelColor,e.yLabelUnderline,e.yLabelStrike,e.yLabelFontFamily);return r&&i.push(r),i.push(Cn("c:crossAx",{val:$c}),vd(e.yCrosses),Cn("c:crossBetween",{val:e.yCrossBetween??"midCat"}),...wd(e.yScale),...bd(e.yDispUnits)),[xn("c:valAx",void 0,t),xn("c:valAx",void 0,i)]}function Rd(e,t,n,i,r,o,s,a,l,u,c,d,h,p,f,g,m){const v=void 0===t?0:t*Yc,y=void 0===n?Xc:n*Uu,C=i?1:0,w=!0===r?1:void 0,x=!0===s?"sngStrike":void 0,b=!0===a?"sng":void 0,_=void 0!==o?xn("a:solidFill",void 0,[Aa(o)]):void 0,S=l?Cn("a:latin",{typeface:l}):void 0,A=[];_&&A.push(_),S&&A.push(S);const T=A.length>0?xn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:defRPr",{sz:y,b:C,i:w,u:b,strike:x}),E=A.length>0?xn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x},A):Cn("a:rPr",{lang:"en-US",sz:y,b:C,i:w,u:b,strike:x}),D=Ya(c),M=[xn("c:tx",void 0,[xn("c:rich",void 0,[xn("a:bodyPr",{rot:v,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[T]),xn("a:r",void 0,[E,xn("a:t",void 0,mn(e))])])])])];D&&M.push(D),M.push(Cn("c:overlay",{val:u?1:0}));const I=Pl(d,h,p,f,g,m);return void 0!==I&&M.push(I),xn("c:title",void 0,M)}function Ld(e){return Nl(e)}function Pd(e){return Ol(e)}function Nd(e){return Bl(e)}function Fd(e){return Vl(e)}function Od(e){return zl(e)}function kd(e){return ql(e)}function Bd(e){return Ql(e)}function Gd(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}new Set(["none","in","out","cross"]),new Set(["nextTo","low","high","none"]),new Set(["autoZero","min","max"]),new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),new Set(["between","midCat"]);const Vd=100,Hd=1,zd=400;function Ud(e){const t=Gn(e,"dTable");if(!t)return;const n={},i=Jd(t,"showHorzBorder");void 0!==i&&(n.showHorzBorder=i);const r=Jd(t,"showVertBorder");void 0!==r&&(n.showVertBorder=r);const o=Jd(t,"showOutline");void 0!==o&&(n.showOutline=o);const s=Jd(t,"showKeys");void 0!==s&&(n.showKeys=s);const a=Qd(t);void 0!==a&&(n.fontSize=a);const l=Zd(t);void 0!==l&&(n.fontColor=l);const u=Wd(t);void 0!==u&&(n.bold=u);const c=$d(t);void 0!==c&&(n.italic=c);const d=jd(t);void 0!==d&&(n.underline=d);const h=Xd(t);void 0!==h&&(n.strikethrough=h);const p=Yd(t);void 0!==p&&(n.fontFamily=p);const f=Kd(t);void 0!==f&&(n.fillColor=f);const g=qd(t);void 0!==g&&(n.borderColor=g);const m=Ma(t);void 0!==m&&(n.borderWidth=m);const v=Ia(t);void 0!==v&&(n.borderDash=v);const y=ga(t);void 0!==y&&(n.borderCap=y);const C=ma(t);return void 0!==C&&(n.borderCompound=C),n}function Wd(e){const t=nl(e);if(!t)return;const n=t.attrs.b;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function $d(e){const t=nl(e);if(!t)return;const n=t.attrs.i;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function jd(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||"none"!==n&&void 0}function Xd(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Yd(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Kd(e){return Ea(e)}function qd(e){return Da(e)}function Zd(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Qd(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/Vd*2),s=o/2;return s<Hd||s>zd?void 0:s}function Jd(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function eh(e){if("pie"===e.type||"doughnut"===e.type)return;const t=e.dataTable;return void 0!==t&&!1!==t?!0===t?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0,fontSize:void 0,fontColor:void 0,bold:void 0,italic:void 0,underline:void 0,strikethrough:void 0,fontFamily:void 0,fillColor:void 0,borderColor:void 0,borderWidth:void 0,borderDash:void 0,borderCap:void 0,borderCompound:void 0}:{showHorzBorder:!1!==t.showHorzBorder,showVertBorder:!1!==t.showVertBorder,showOutline:!1!==t.showOutline,showKeys:!1!==t.showKeys,fontSize:th(t.fontSize),fontColor:nh(t.fontColor),bold:ih(t.bold),italic:rh(t.italic),underline:oh(t.underline),strikethrough:sh(t.strikethrough),fontFamily:ah(t.fontFamily),fillColor:lh(t.fillColor),borderColor:uh(t.borderColor),borderWidth:Ra(t.borderWidth),borderDash:La(t.borderDash),borderCap:pa(t.borderCap),borderCompound:fa(t.borderCompound)}:void 0}function th(e){return Ol(e)}function nh(e){return zl(e)}function ih(e){return!0===e||!1!==e&&void 0}function rh(e){return!0===e||!1!==e&&void 0}function oh(e){return!0===e||!1!==e&&void 0}function sh(e){if(!0===e)return!0}function ah(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function lh(e){return zl(e)}function uh(e){return zl(e)}function ch(e){const t=[Cn("c:showHorzBorder",{val:e.showHorzBorder?1:0}),Cn("c:showVertBorder",{val:e.showVertBorder?1:0}),Cn("c:showOutline",{val:e.showOutline?1:0}),Cn("c:showKeys",{val:e.showKeys?1:0})],n=dh(e.fillColor,e.borderColor,e.borderWidth,e.borderDash,e.borderCap,e.borderCompound);void 0!==n&&t.push(n);const i=hh(e.fontSize,e.fontColor,e.bold,e.italic,e.underline,e.strikethrough,e.fontFamily);return void 0!==i&&t.push(i),xn("c:dTable",void 0,t)}function dh(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function hh(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*Vd),void 0!==n&&(a.b=n?1:0),void 0!==i&&(a.i=i?1:0),void 0!==r&&(a.u=r?"sng":"none"),!0===o&&(a.strike="sngStrike");const l=void 0!==t?xn("a:solidFill",void 0,[Aa(t)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}const ph=100,fh=1,gh=400,mh=new Set(["t","b","l","r","ctr","inEnd","inBase","outEnd","bestFit"]);function vh(e){const t=Gn(e,"delete");if(t&&!0===Qa(t))return;const n={},i=Gn(e,"dLblPos");if(i){const e=i.attrs.val;"string"===typeof e&&mh.has(e)&&(n.position=e)}const r=Gn(e,"showLegendKey");r&&!0===Qa(r)&&(n.showLegendKey=!0);const o=Gn(e,"showVal");o&&!0===Qa(o)&&(n.showValue=!0);const s=Gn(e,"showCatName");s&&!0===Qa(s)&&(n.showCategoryName=!0);const a=Gn(e,"showSerName");a&&!0===Qa(a)&&(n.showSeriesName=!0);const l=Gn(e,"showPercent");l&&!0===Qa(l)&&(n.showPercent=!0);const u=Gn(e,"separator");if(u){const e=qa(u);e.length>0&&(n.separator=e)}const c=Eh(e);c&&(n.numberFormat=c);const d=Gn(e,"showLeaderLines");if(d){const e=d.attrs.val;"string"!==typeof e||"0"!==e&&"false"!==e.toLowerCase()||(n.showLeaderLines=!1)}const h=yh(e);void 0!==h&&(n.fontSize=h);const p=Ch(e);void 0!==p&&(n.fontColor=p);const f=wh(e);void 0!==f&&(n.bold=f);const g=xh(e);void 0!==g&&(n.italic=g);const m=bh(e);void 0!==m&&(n.underline=m);const v=_h(e);void 0!==v&&(n.strikethrough=v);const y=Sh(e);void 0!==y&&(n.fontFamily=y);const C=Ah(e);void 0!==C&&(n.fillColor=C);const w=Th(e);void 0!==w&&(n.borderColor=w);const x=Ma(e);void 0!==x&&(n.borderWidth=x);const b=Ia(e);void 0!==b&&(n.borderDash=b);const _=ga(e);void 0!==_&&(n.borderCap=_);const S=ma(e);return void 0!==S&&(n.borderCompound=S),void 0!==n.position||n.showValue||n.showCategoryName||n.showSeriesName||n.showPercent||n.showLegendKey||void 0!==n.separator||void 0!==n.numberFormat||void 0!==n.showLeaderLines||void 0!==n.fontSize||void 0!==n.fontColor||void 0!==n.bold||void 0!==n.italic||void 0!==n.underline||void 0!==n.strikethrough||void 0!==n.fontFamily||void 0!==n.fillColor||void 0!==n.borderColor||void 0!==n.borderWidth||void 0!==n.borderDash||void 0!==n.borderCap||void 0!==n.borderCompound?n:void 0}function yh(e){const t=nl(e);if(!t)return;const n=t.attrs.sz;if("string"!==typeof n)return;const i=n.trim();if(0===i.length)return;const r=Number.parseInt(i,10);if(!Number.isFinite(r))return;const o=Math.round(r/ph*2),s=o/2;return s<fh||s>gh?void 0:s}function Ch(e){const t=nl(e);if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i)return Ta(i.attrs.val);const r=Gn(n,"schemeClr");return r?_a(r):void 0}function wh(e){const t=nl(e);if(!t)return;const n=t.attrs.b;return"1"===n||"true"===n||void 0}function xh(e){const t=nl(e);if(!t)return;const n=t.attrs.i;return"1"===n||"true"===n||void 0}function bh(e){const t=nl(e);if(!t)return;const n=t.attrs.u;return"sng"===n||void 0}function _h(e){const t=nl(e);if(!t)return;const n=t.attrs.strike;return"sngStrike"===n||void 0}function Sh(e){const t=nl(e);if(!t)return;const n=Gn(t,"latin");if(!n)return;const i=n.attrs.typeface;if("string"!==typeof i)return;const r=i.trim();return 0!==r.length?r:void 0}function Ah(e){return Ea(e)}function Th(e){return Da(e)}function Eh(e){const t=Gn(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!==typeof n||0===n.length)return;const i={formatCode:n},r=t.attrs.sourceLinked;return"string"===typeof r&&("1"!==r&&"true"!==r.toLowerCase()||(i.sourceLinked=!0)),i}function Dh(e,t,n){return!1===e?xn("c:dLbls",void 0,[xn("c:dLbl",void 0,[Cn("c:idx",{val:0}),Cn("c:delete",{val:1})]),Cn("c:delete",{val:1})]):e?Ih(e,n):void 0}function Mh(e){if(e.dataLabels)return Ih(e.dataLabels,e.type)}function Ih(e,t){const n=[],i=Rh(e.numberFormat);i&&n.push(Cn("c:numFmt",{formatCode:i.formatCode,sourceLinked:!0===i.sourceLinked?1:0}));const r=Hh(Gh(e.fillColor),Vh(e.borderColor),Ra(e.borderWidth),La(e.borderDash),pa(e.borderCap),fa(e.borderCompound));void 0!==r&&n.push(r);const o=zh(Lh(e.fontSize),Ph(e.fontColor),Nh(e.bold),Fh(e.italic),Oh(e.underline),kh(e.strikethrough),Bh(e.fontFamily));return void 0!==o&&n.push(o),e.position&&n.push(Cn("c:dLblPos",{val:e.position})),n.push(Cn("c:showLegendKey",{val:!0===e.showLegendKey?1:0})),n.push(Cn("c:showVal",{val:e.showValue?1:0})),n.push(Cn("c:showCatName",{val:e.showCategoryName?1:0})),n.push(Cn("c:showSerName",{val:e.showSeriesName?1:0})),n.push(Cn("c:showPercent",{val:e.showPercent?1:0})),n.push(Cn("c:showBubbleSize",{val:0})),void 0!==e.separator&&n.push(xn("c:separator",void 0,mn(e.separator))),"pie"!==t&&"doughnut"!==t||!1!==e.showLeaderLines||n.push(Cn("c:showLeaderLines",{val:0})),xn("c:dLbls",void 0,n)}function Rh(e){if(!e)return;const t=e.formatCode;if("string"!==typeof t||0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function Lh(e){return Ol(e)}function Ph(e){return zl(e)}function Nh(e){return!0===e||!1!==e&&void 0}function Fh(e){return!0===e||!1!==e&&void 0}function Oh(e){return!0===e||!1!==e&&void 0}function kh(e){if(!0===e)return!0}function Bh(e){if("string"!==typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function Gh(e){return zl(e)}function Vh(e){return zl(e)}function Hh(e,t,n,i,r,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o)return;const s=[];if(void 0!==e&&s.push(xn("a:solidFill",void 0,[Aa(e)])),void 0!==t||void 0!==n||void 0!==i||void 0!==r||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(12700*n)),void 0!==r&&(e.cap=r),void 0!==o&&(e.cmpd=o);const a=[];void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==i&&a.push(Cn("a:prstDash",{val:i})),s.push(0===a.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,a))}return xn("c:spPr",void 0,s)}function zh(e,t,n,i,r,o,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*ph),void 0!==n&&(a.b=n?1:0),void 0!==i&&(a.i=i?1:0),void 0!==r&&(a.u=r?"sng":"none"),!0===o&&(a.strike="sngStrike");const l=void 0!==t?xn("a:solidFill",void 0,[Aa(t)]):void 0,u=s?Cn("a:latin",{typeface:s}):void 0,c=[];l&&c.push(l),u&&c.push(u);const d=c.length>0?xn("a:defRPr",a,c):Cn("a:defRPr",a);return xn("c:txPr",void 0,[Cn("a:bodyPr"),Cn("a:lstStyle"),xn("a:p",void 0,[xn("a:pPr",void 0,[d]),Cn("a:endParaRPr",{lang:"en-US"})])])}const Uh=new Set(["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"]),Wh=new Set(["linear","log","exp","power","poly","movingAvg"]),$h=new Set(["x","y"]),jh=new Set(["both","minus","plus"]),Xh=new Set(["cust","fixedVal","percentage","stdDev","stdErr"]),Yh=2,Kh=6,qh=2,Zh=100,Qh=400;function Jh(e){const t=Gn(e,"shape");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=n.trim();return Uh.has(i)?i:void 0}function ep(e){if("string"===typeof e)return Uh.has(e)?e:void 0}function tp(e){const t=ep(e);if(void 0!==t)return Cn("c:shape",{val:t})}function np(e){return el(Gn(e,"bubbleSize"))}function ip(e){const t=[];for(const n of Vn(e)){if("dPt"!==n.local)continue;const e=Gn(n,"idx");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=Number.parseInt(i,10);if(!Number.isFinite(r)||r<0)continue;const o={idx:r},s=Gn(n,"explosion");if(s){const e=s.attrs.val;if("string"===typeof e){const t=Number.parseFloat(e);if(Number.isFinite(t)&&t>0){const e=Math.round(t);e>0&&(o.explosion=e)}}}const a=Gn(n,"bubble3D");if(a){const e=Qa(a);!0===e&&(o.bubble3D=!0)}const l=rp(n);void 0!==l&&(o.fillColor=l);const u=op(n);void 0!==u&&(o.borderColor=u);const c=sp(n);void 0!==c&&(o.borderWidth=c);const d=ap(n);void 0!==d&&(o.borderDash=d);const h=Ep(n);void 0!==h&&(o.marker=h),t.push(o)}return t.length>0?t:void 0}function rp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");return i?Ta(i.attrs.val):void 0}function op(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"solidFill");if(!i)return;const r=Gn(i,"srgbClr");return r?Ta(r.attrs.val):void 0}function sp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=n.attrs.w;if("string"!==typeof i)return;const r=Number.parseFloat(i);if(!Number.isFinite(r)||r<=0)return;const o=Math.round(r/12700*4)/4;return o<.25?.25:o>13.5?13.5:o}function ap(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i=Gn(n,"prstDash");if(!i)return;const r=i.attrs.val;if("string"!==typeof r)return;const o=r.trim();return ca.has(o)&&"solid"!==o?o:void 0}function lp(e,t){if(!e||0===e.length)return[];const n="pie"===t||"doughnut"===t||"pie3D"===t,i=[];for(const r of e){if(!Number.isFinite(r.idx)||r.idx<0)continue;const e=Math.floor(r.idx),t=[];t.push(Cn("c:idx",{val:e}));const o=kp(r.marker);if(o&&t.push(o),t.push(Cn("c:bubble3D",{val:!0===r.bubble3D?1:0})),n&&void 0!==r.explosion&&Number.isFinite(r.explosion)){const e=Math.max(0,Math.min(Qh,Math.round(r.explosion)));e>0&&t.push(Cn("c:explosion",{val:e}))}const s=Ta(r.fillColor),a=Ta(r.borderColor),l=Ra(r.borderWidth),u=La(r.borderDash);if(s||a||void 0!==l||void 0!==u){const e=[];if(s&&e.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:s})])),a||void 0!==l||void 0!==u){const t={};void 0!==l&&(t.w=Math.round(12700*l));const n=[];a&&n.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:a})])),void 0!==u&&n.push(Cn("a:prstDash",{val:u})),e.push(0===n.length?Cn("a:ln",t):xn("a:ln",Object.keys(t).length>0?t:void 0,n))}t.push(xn("c:spPr",void 0,e))}i.push(xn("c:dPt",void 0,t))}return i}function up(e){const t=[];for(const n of Vn(e)){if("trendline"!==n.local)continue;const e=Gn(n,"trendlineType");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=i.trim();if(!Wh.has(r))continue;const o={type:r},s=Gn(n,"name");if(s){let e="";for(const n of s.children)"string"===typeof n&&(e+=n);const t=e.trim();t.length>0&&(o.name=t)}const a=Gn(n,"order");if(a){const e=parseFloat(String(a.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=Yh&&t<=Kh&&(o.order=t)}}const l=Gn(n,"period");if(l){const e=parseFloat(String(l.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=qh&&t<=Zh&&(o.period=t)}}const u=Gn(n,"forward");if(u){const e=parseFloat(String(u.attrs.val??""));Number.isFinite(e)&&(o.forward=e)}const c=Gn(n,"backward");if(c){const e=parseFloat(String(c.attrs.val??""));Number.isFinite(e)&&(o.backward=e)}const d=Gn(n,"intercept");if(d){const e=parseFloat(String(d.attrs.val??""));Number.isFinite(e)&&(o.intercept=e)}const h=Gn(n,"dispEq");if(h){const e=Qa(h);!0===e&&(o.dispEquation=!0)}const p=Gn(n,"dispRSqr");if(p){const e=Qa(p);!0===e&&(o.dispRSquared=!0)}const f=Gn(n,"spPr");if(f){const e=Gn(f,"ln");if(e){const t=Gn(e,"solidFill");if(t){const e=Gn(t,"srgbClr");if(e){const t=Ta(e.attrs.val);t&&(o.lineColor=t)}}const n=e.attrs.w;if("string"===typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;o.lineWidth=t>=.25&&t<=13.5?t:t<.25?.25:13.5}}const i=Gn(e,"prstDash");if(i){const e=i.attrs.val;if("string"===typeof e){const t=e.trim();ca.has(t)&&"solid"!==t&&(o.lineDash=t)}}}}t.push(o)}return t.length>0?t:void 0}function cp(e){const t="string"===typeof e.type&&Wh.has(e.type)?e.type:void 0;if(void 0===t)return;const n=[];"string"===typeof e.name&&e.name.trim().length>0&&n.push(xn("c:name",void 0,mp(e.name)));const i=dp(e);if(i&&n.push(i),n.push(Cn("c:trendlineType",{val:t})),"poly"===t&&"number"===typeof e.order&&Number.isFinite(e.order)){const t=Math.max(Yh,Math.min(Kh,Math.round(e.order)));n.push(Cn("c:order",{val:t}))}if("movingAvg"===t&&"number"===typeof e.period&&Number.isFinite(e.period)){const t=Math.max(qh,Math.min(Zh,Math.round(e.period)));n.push(Cn("c:period",{val:t}))}return"number"===typeof e.forward&&Number.isFinite(e.forward)&&n.push(Cn("c:forward",{val:e.forward})),"number"===typeof e.backward&&Number.isFinite(e.backward)&&n.push(Cn("c:backward",{val:e.backward})),"number"===typeof e.intercept&&Number.isFinite(e.intercept)&&n.push(Cn("c:intercept",{val:e.intercept})),!0===e.dispRSquared&&n.push(Cn("c:dispRSqr",{val:1})),!0===e.dispEquation&&n.push(Cn("c:dispEq",{val:1})),xn("c:trendline",void 0,n)}function dp(e){const t=Ta(e.lineColor),n=Ra(e.lineWidth),i=La(e.lineDash);if(!t&&void 0===n&&void 0===i)return;const r={};void 0!==n&&(r.w=Math.round(12700*n));const o=[];t&&o.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:t})])),void 0!==i&&o.push(Cn("a:prstDash",{val:i}));const s=0===o.length?Cn("a:ln",r):xn("a:ln",Object.keys(r).length>0?r:void 0,o);return xn("c:spPr",void 0,[s])}function hp(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=cp(n);e&&t.push(e)}return t}function pp(e){const t=[];for(const n of Vn(e)){if("errBars"!==n.local)continue;const e=Gn(n,"errDir");if(!e)continue;const i=e.attrs.val;if("string"!==typeof i)continue;const r=i.trim();if(!$h.has(r))continue;const o=Gn(n,"errBarType");if(!o)continue;const s=o.attrs.val;if("string"!==typeof s)continue;const a=s.trim();if(!jh.has(a))continue;const l=Gn(n,"errValType");if(!l)continue;const u=l.attrs.val;if("string"!==typeof u)continue;const c=u.trim();if(!Xh.has(c))continue;const d={direction:r,type:a,valType:c},h=Gn(n,"val");if(h){const e=parseFloat(String(h.attrs.val??""));Number.isFinite(e)&&(d.value=e)}const p=Gn(n,"noEndCap");if(p){const e=Qa(p);!0===e&&(d.noEndCap=!0)}const f=Gn(n,"spPr");if(f){const e=Gn(f,"ln");if(e){const t=Gn(e,"solidFill");if(t){const e=Gn(t,"srgbClr");if(e){const t=Ta(e.attrs.val);t&&(d.lineColor=t)}}const n=e.attrs.w;if("string"===typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;d.lineWidth=t<.25?.25:t>13.5?13.5:t}}const i=Gn(e,"prstDash");if(i){const e=i.attrs.val;if("string"===typeof e){const t=e.trim();ca.has(t)&&"solid"!==t&&(d.lineDash=t)}}}}t.push(d)}return t.length>0?t:void 0}function fp(e){if(!$h.has(e.direction))return;if(!jh.has(e.type))return;if(!Xh.has(e.valType))return;const t=[Cn("c:errDir",{val:e.direction}),Cn("c:errBarType",{val:e.type}),Cn("c:errValType",{val:e.valType})];!0===e.noEndCap&&t.push(Cn("c:noEndCap",{val:1})),"stdErr"!==e.valType&&"cust"!==e.valType&&"number"===typeof e.value&&Number.isFinite(e.value)&&t.push(Cn("c:val",{val:e.value}));const n=Ta(e.lineColor),i=Ra(e.lineWidth),r=La(e.lineDash);if(n||void 0!==i||void 0!==r){const e={};void 0!==i&&(e.w=Math.round(12700*i));const o=[];n&&o.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:n})])),void 0!==r&&o.push(Cn("a:prstDash",{val:r}));const s=0===o.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,o);t.push(xn("c:spPr",void 0,[s]))}return xn("c:errBars",void 0,t)}function gp(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=fp(n);e&&t.push(e)}return t}function mp(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const vp=400,yp=new Set(["none","auto","circle","square","diamond","triangle","x","star","dot","dash","plus"]),Cp=2,wp=72;function xp(e,t){return e.includes("!")?e:`${bp(t)}!${e}`}function bp(e){return/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)?e:`'${e.replace(/'/g,"''")}'`}function _p(e,t,n){const i={kind:t,index:n},r=Dp(e);void 0!==r&&(i.name=r);const o=el(Gn(e,"val"))??el(Gn(e,"yVal"));void 0!==o&&(i.valuesRef=o);const s=el(Gn(e,"cat"))??el(Gn(e,"xVal"));void 0!==s&&(i.categoriesRef=s);const a=Mp(e);void 0!==a&&(i.color=a);const l=Gn(e,"dLbls");if(l){const e=vh(l);e&&(i.dataLabels=e)}if("line"===t||"line3D"===t||"scatter"===t){const t=Sp(e);void 0!==t&&(i.smooth=t);const n=Ip(e);void 0!==n&&(i.stroke=n);const r=Ep(e);void 0!==r&&(i.marker=r)}if("bar"===t||"bar3D"===t){const t=Ap(e);void 0!==t&&(i.invertIfNegative=t)}if("pie"===t||"pie3D"===t||"doughnut"===t||"ofPie"===t){const t=Tp(e);void 0!==t&&(i.explosion=t)}const u=ip(e);if(void 0!==u&&(i.dataPoints=u),"bar"===t||"bar3D"===t||"line"===t||"line3D"===t||"area"===t||"area3D"===t||"scatter"===t||"bubble"===t){const t=up(e);void 0!==t&&(i.trendlines=t);const n=pp(e);void 0!==n&&(i.errorBars=n)}if("bubble"===t){const t=np(e);void 0!==t&&(i.bubbleSizeRef=t)}if("bar3D"===t){const t=Jh(e);void 0!==t&&(i.shape3D=t)}return i}function Sp(e){const t=Gn(e,"smooth");if(!t)return;const n=Qa(t);return!0===n||void 0}function Ap(e){const t=Gn(e,"invertIfNegative");if(!t)return;const n=Qa(t);return!0===n||void 0}function Tp(e){const t=Gn(e,"explosion");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseFloat(n);if(!Number.isFinite(i)||i<0)return;const r=Math.round(i);return 0!==r?r:void 0}function Ep(e){const t=Gn(e,"marker");if(!t)return;const n={},i=Gn(t,"symbol");if(i){const e=i.attrs.val;"string"===typeof e&&yp.has(e)&&(n.symbol=e)}const r=Gn(t,"size");if(r){const e=r.attrs.val;if("string"===typeof e){const t=Number.parseInt(e,10);Number.isFinite(t)&&(n.size=t<2?2:t>72?72:t)}}const o=Gn(t,"spPr");if(o){const e=Gn(o,"solidFill");if(e){const t=Gn(e,"srgbClr"),i=t?.attrs.val;if("string"===typeof i){const e=i.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.fill=e)}}const t=Gn(o,"ln");if(t){const e=Gn(t,"solidFill");if(e){const t=Gn(e,"srgbClr"),i=t?.attrs.val;if("string"===typeof i){const e=i.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.line=e)}}}}return void 0!==n.symbol||void 0!==n.size||void 0!==n.fill||void 0!==n.line?n:void 0}function Dp(e){const t=Gn(e,"tx");if(!t)return;const n=Gn(t,"v");if(n){const e=qa(n).trim();if(e.length>0)return e}const i=Gn(t,"strRef");if(i){const e=Gn(i,"strCache");if(e)for(const n of Vn(e)){if("pt"!==n.local)continue;const e=Gn(n,"v");if(e){const t=qa(e).trim();if(t.length>0)return t}}const t=el(i);if(t)return t}}function Mp(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"solidFill");if(!n)return;const i=Gn(n,"srgbClr");if(i){const e=i.attrs.val;if("string"!==typeof e)return;const t=e.replace(/^#/,"").toUpperCase();return/^[0-9A-F]{6}$/.test(t)?t:void 0}const r=Gn(n,"schemeClr");return r?_a(r):void 0}function Ip(e){const t=Gn(e,"spPr");if(!t)return;const n=Gn(t,"ln");if(!n)return;const i={},r=n.attrs.w;if("string"===typeof r){const e=Number.parseFloat(r);if(Number.isFinite(e)&&e>0){const t=Math.round(e/12700*4)/4;i.width=t<.25?.25:t>13.5?13.5:t}}const o=Gn(n,"prstDash");if(o){const e=o.attrs.val;"string"===typeof e&&ua.has(e)&&(i.dash=e)}const s=n.attrs.cap;if("string"===typeof s){const e=s.trim();da.has(e)&&"flat"!==e&&(i.cap=e)}const a=n.attrs.cmpd;if("string"===typeof a){const e=a.trim();ha.has(e)&&"sng"!==e&&(i.compound=e)}return void 0!==i.dash||void 0!==i.width||void 0!==i.cap||void 0!==i.compound?i:void 0}function Rp(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<=0?void 0:t>vp?vp:t}function Lp(e,t,n,i,r){const o=[Cn("c:idx",{val:t}),Cn("c:order",{val:t})];e.name&&o.push(xn("c:tx",void 0,[xn("c:v",void 0,mn(e.name))]));const s=Np(e.color,r?.stroke);s&&o.push(s);const a=kp(r?.marker);a&&o.push(a),!0===r?.invertIfNegative&&o.push(Cn("c:invertIfNegative",{val:1}));const l=Rp(r?.explosion);void 0!==l&&o.push(Cn("c:explosion",{val:l}));const u=lp(r.dataPoints,r.chartType);for(const h of u)o.push(h);const c=Dh(e.dataLabels,r.dataLabels,r.chartType);if(c&&o.push(c),r.trendlines&&r.trendlines.length>0){const e="pie"===r.chartType||"doughnut"===r.chartType;if(!e){const e=hp(r.trendlines);for(const t of e)o.push(t)}}if(r.errorBars&&r.errorBars.length>0){const e="pie"===r.chartType||"doughnut"===r.chartType;if(!e){const e=gp(r.errorBars);for(const t of e)o.push(t)}}if(e.categories){const t=xp(e.categories,n);i?o.push(xn("c:xVal",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(t))])])):o.push(xn("c:cat",void 0,[xn("c:strRef",void 0,[xn("c:f",void 0,mn(t))])]))}const d=xp(e.values,n);if(i?o.push(xn("c:yVal",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(d))])])):o.push(xn("c:val",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(d))])])),void 0!==r?.smooth&&o.push(Cn("c:smooth",{val:r.smooth?1:0})),void 0!==r.shape3D){const e=tp(r.shape3D);e&&o.push(e)}if("string"===typeof r.bubbleSize&&r.bubbleSize.length>0){const e=xp(r.bubbleSize,n);o.push(xn("c:bubbleSize",void 0,[xn("c:numRef",void 0,[xn("c:f",void 0,mn(e))])]))}return xn("c:ser",void 0,o)}function Pp(e){if(void 0!==e)return ua.has(e)?e:void 0}function Np(e,t){let n;if("string"===typeof e){const t=e.replace(/^#/,"").toUpperCase();n=/^[0-9A-F]{6}$/.test(t)?t:void 0}else void 0!==e&&(n=Sa(e));const i=Pp(t?.dash),r=Ra(t?.width),o=pa(t?.cap),s="flat"===o?void 0:o,a=fa(t?.compound),l="sng"===a?void 0:a;if(!n&&void 0===i&&void 0===r&&void 0===s&&void 0===l)return;const u=[];if(void 0!==n&&u.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==n||void 0!==i||void 0!==r||void 0!==s||void 0!==l){const e={};void 0!==r&&(e.w=Math.round(12700*r)),void 0!==s&&(e.cap=s),void 0!==l&&(e.cmpd=l);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==i&&t.push(Cn("a:prstDash",{val:i})),u.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,u)}function Fp(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<Cp?Cp:t>wp?wp:t}function Op(e){if(void 0!==e)return yp.has(e)?e:void 0}function kp(e){if(!e)return;const t=Op(e.symbol),n=Fp(e.size),i=Ta(e.fill),r=Ta(e.line);if(void 0===t&&void 0===n&&!i&&!r)return;const o=[];if(void 0!==t&&o.push(Cn("c:symbol",{val:t})),void 0!==n&&o.push(Cn("c:size",{val:n})),i||r){const e=[];i&&e.push(xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:i})])),r&&e.push(xn("a:ln",void 0,[xn("a:solidFill",void 0,[Cn("a:srgbClr",{val:r})])])),o.push(xn("c:spPr",void 0,e))}return xn("c:marker",void 0,o)}const Bp=new Set(["pie","pie3D","doughnut","ofPie"]),Gp=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]),Vp=50,Hp=10,zp=90,Up=new Set(["pie","doughnut"]),Wp=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]);function $p(e){return ja(e.plotAreaLayout)}function jp(e){let t;const n=[];for(const u of Vn(e))"catAx"===u.local?t??=u:"valAx"===u.local&&n.push(u);let i,r;t?(i=t,r=n[0]):(i=n[0],r=n[1]);const o=t?"between":"midCat",s=i?ec(i,o):void 0,a=r?ec(r,o):void 0;if(!s&&!a)return;const l={};return s&&(l.x=s),a&&(l.y=a),l}function Xp(e){return $a(e)}function Yp(e){return Ea(e)}function Kp(e){return Da(e)}function qp(e){return Ma(e)}function Zp(e,t){const n=Gn(e,"varyColors");if(!n)return;const i=n.attrs.val;if("string"!==typeof i)return;const r=Bp.has(t);let o;switch(i){case"1":case"true":o=!0;break;case"0":case"false":o=!1;break;default:return}return o!==r?o:void 0}function Qp(e){const t=Gn(e,"scatterStyle");if(!t)return;const n=t.attrs.val;return"string"===typeof n&&Gp.has(n)?n:void 0}function Jp(e){return!!Gn(e,"dropLines")||void 0}function ef(e){return!!Gn(e,"hiLowLines")||void 0}function tf(e){return!!Gn(e,"serLines")||void 0}function nf(e){const t=Gn(e,"marker");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function rf(e){const t=Gn(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"clustered":return"clustered";case"standard":return;default:return}}function of(e){const t=Gn(e,"holeSize");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<1||i>99)?i:void 0}function sf(e){const t=Gn(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>500)&&150!==i?i:void 0}function af(e){const t=Gn(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>500)&&150!==i?i:void 0}function lf(e){const t=Gn(e,"overlap");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<-100||i>100)&&0!==i?i:void 0}function uf(e){const t=Gn(e,"firstSliceAng");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;const i=Number.parseInt(n,10);return Number.isFinite(i)&&!(i<0||i>360)&&0!==i&&360!==i?i:void 0}function cf(e){const t=Gn(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"standard":return;default:return}}function df(e,t){const n=Ya($p(e)),i=[n??Cn("c:layout")],r={xAxisTitle:Qc(e.axes?.x?.title),yAxisTitle:Qc(e.axes?.y?.title),xAxisTitleRotation:Ld(e.axes?.x?.axisTitleRotation),yAxisTitleRotation:Ld(e.axes?.y?.axisTitleRotation),xAxisTitleFontSize:Pd(e.axes?.x?.axisTitleFontSize),yAxisTitleFontSize:Pd(e.axes?.y?.axisTitleFontSize),xAxisTitleBold:Nd(e.axes?.x?.axisTitleBold),yAxisTitleBold:Nd(e.axes?.y?.axisTitleBold),xAxisTitleItalic:Fd(e.axes?.x?.axisTitleItalic),yAxisTitleItalic:Fd(e.axes?.y?.axisTitleItalic),xAxisTitleColor:Od(e.axes?.x?.axisTitleColor),yAxisTitleColor:Od(e.axes?.y?.axisTitleColor),xAxisTitleStrike:kd(e.axes?.x?.axisTitleStrike),yAxisTitleStrike:kd(e.axes?.y?.axisTitleStrike),xAxisTitleUnderline:Bd(e.axes?.x?.axisTitleUnderline),yAxisTitleUnderline:Bd(e.axes?.y?.axisTitleUnderline),xAxisTitleFontFamily:Gd(e.axes?.x?.axisTitleFontFamily),yAxisTitleFontFamily:Gd(e.axes?.y?.axisTitleFontFamily),xAxisTitleOverlay:!0===e.axes?.x?.axisTitleOverlay,yAxisTitleOverlay:!0===e.axes?.y?.axisTitleOverlay,xAxisTitleLayout:ja(e.axes?.x?.axisTitleLayout),yAxisTitleLayout:ja(e.axes?.y?.axisTitleLayout),xAxisTitleFillColor:zl(e.axes?.x?.axisTitleFillColor),yAxisTitleFillColor:zl(e.axes?.y?.axisTitleFillColor),xAxisTitleBorderColor:zl(e.axes?.x?.axisTitleBorderColor),yAxisTitleBorderColor:zl(e.axes?.y?.axisTitleBorderColor),xAxisTitleBorderWidth:Ra(e.axes?.x?.axisTitleBorderWidth),yAxisTitleBorderWidth:Ra(e.axes?.y?.axisTitleBorderWidth),xAxisTitleBorderDash:La(e.axes?.x?.axisTitleBorderDash),yAxisTitleBorderDash:La(e.axes?.y?.axisTitleBorderDash),xAxisTitleBorderCap:pa(e.axes?.x?.axisTitleBorderCap),yAxisTitleBorderCap:pa(e.axes?.y?.axisTitleBorderCap),xAxisTitleBorderCompound:fa(e.axes?.x?.axisTitleBorderCompound),yAxisTitleBorderCompound:fa(e.axes?.y?.axisTitleBorderCompound),xGridlines:Jc(e.axes?.x?.gridlines),yGridlines:Jc(e.axes?.y?.gridlines),xScale:td(e.axes?.x?.scale),yScale:td(e.axes?.y?.scale),xNumFmt:nd(e.axes?.x?.numberFormat),yNumFmt:nd(e.axes?.y?.numberFormat),xMajorTickMark:Ad(e.axes?.x?.majorTickMark),yMajorTickMark:Ad(e.axes?.y?.majorTickMark),xMinorTickMark:Ad(e.axes?.x?.minorTickMark),yMinorTickMark:Ad(e.axes?.y?.minorTickMark),xTickLblPos:Td(e.axes?.x?.tickLblPos),yTickLblPos:Td(e.axes?.y?.tickLblPos),xLabelRotation:ad(e.axes?.x?.labelRotation),yLabelRotation:ad(e.axes?.y?.labelRotation),xLabelFontSize:ld(e.axes?.x?.labelFontSize),yLabelFontSize:ld(e.axes?.y?.labelFontSize),xLabelBold:ud(e.axes?.x?.labelBold),yLabelBold:ud(e.axes?.y?.labelBold),xLabelItalic:cd(e.axes?.x?.labelItalic),yLabelItalic:cd(e.axes?.y?.labelItalic),xLabelColor:dd(e.axes?.x?.labelColor),yLabelColor:dd(e.axes?.y?.labelColor),xLabelUnderline:hd(e.axes?.x?.labelUnderline),yLabelUnderline:hd(e.axes?.y?.labelUnderline),xLabelStrike:pd(e.axes?.x?.labelStrike),yLabelStrike:pd(e.axes?.y?.labelStrike),xLabelFontFamily:fd(e.axes?.x?.labelFontFamily),yLabelFontFamily:fd(e.axes?.y?.labelFontFamily),xReverse:!0===e.axes?.x?.reverse,yReverse:!0===e.axes?.y?.reverse,xTickLblSkip:id(e.axes?.x?.tickLblSkip),xTickMarkSkip:id(e.axes?.x?.tickMarkSkip),xLblOffset:rd(e.axes?.x?.lblOffset),xLblAlgn:od(e.axes?.x?.lblAlgn),xNoMultiLvlLbl:!0===e.axes?.x?.noMultiLvlLbl,xAuto:!1!==e.axes?.x?.auto,xHidden:sd(e.axes?.x?.hidden),yHidden:sd(e.axes?.y?.hidden),xCrosses:md(e.axes?.x?.crosses,e.axes?.x?.crossesAt),yCrosses:md(e.axes?.y?.crosses,e.axes?.y?.crossesAt),xDispUnits:xd(e.axes?.x?.dispUnits),yDispUnits:xd(e.axes?.y?.dispUnits),xCrossBetween:_d(e.axes?.x?.crossBetween),yCrossBetween:_d(e.axes?.y?.crossBetween)};switch(e.type){case"bar":case"column":i.push(gf(e,t)),i.push(...Md(e.type,r));break;case"line":i.push(yf(e,t)),i.push(...Md("column",r));break;case"area":i.push(xf(e,t)),i.push(...Md("column",r));break;case"pie":i.push(bf(e,t));break;case"doughnut":i.push(_f(e,t));break;case"scatter":i.push(Tf(e,t)),i.push(...Id(r));break;default:{const t=e.type;throw new Error(`Unsupported chart type: ${String(t)}`)}}const o=eh(e);void 0!==o&&i.push(ch(o));const s=hf(e);return void 0!==s&&i.push(s),xn("c:plotArea",void 0,i)}function hf(e){const t=pf(e.plotAreaFillColor),n=ff(e.plotAreaBorderColor),i=Ra(e.plotAreaBorderWidth),r=La(e.plotAreaBorderDash),o=pa(e.plotAreaBorderCap),s=fa(e.plotAreaBorderCompound);if(void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a=[];if(void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==n||void 0!==i||void 0!==r||void 0!==o||void 0!==s){const e={};void 0!==i&&(e.w=Math.round(12700*i)),void 0!==o&&(e.cap=o),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==r&&t.push(Cn("a:prstDash",{val:r})),a.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,a)}function pf(e){return zl(e)}function ff(e){return zl(e)}function gf(e,t){const n=e.barGrouping??"clustered",i="bar"===e.type?"bar":"col",r="percentStacked"===n||"stacked"===n,o=[Cn("c:barDir",{val:i}),Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let d=0;d<e.series.length;d++)o.push(Lp(e.series[d],d,t,!1,{chartType:e.type,dataLabels:e.dataLabels,invertIfNegative:!0===e.series[d].invertIfNegative,dataPoints:e.series[d].dataPoints,trendlines:e.series[d].trendlines,errorBars:e.series[d].errorBars}));const s=Mh(e);s&&o.push(s);const a=mf(e.gapWidth),l=vf(e.overlap),u=a??(r?void 0:150);void 0!==u&&o.push(Cn("c:gapWidth",{val:u}));const c=l??(r?100:void 0);return void 0!==c&&o.push(Cn("c:overlap",{val:c})),!0===e.serLines&&o.push(xn("c:serLines",void 0,[])),o.push(Cn("c:axId",{val:Uc})),o.push(Cn("c:axId",{val:Wc})),xn("c:barChart",void 0,o)}function mf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0?0:t>500?500:t}function vf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<-100?-100:t>100?100:t}function yf(e,t){const n=e.lineGrouping??"standard",i=[Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let o=0;o<e.series.length;o++){const n=Lp(e.series[o],o,t,!1,{chartType:e.type,smooth:!0===e.series[o].smooth,dataLabels:e.dataLabels,stroke:e.series[o].stroke,marker:e.series[o].marker,dataPoints:e.series[o].dataPoints,trendlines:e.series[o].trendlines,errorBars:e.series[o].errorBars});i.push(n)}const r=Mh(e);return r&&i.push(r),!0===e.dropLines&&i.push(xn("c:dropLines",void 0,[])),!0===e.hiLowLines&&i.push(xn("c:hiLowLines",void 0,[])),!0===e.upDownBars&&i.push(Cf(e.upDownBarsGapWidth)),i.push(Cn("c:marker",{val:!1===e.showLineMarkers?0:1})),i.push(Cn("c:axId",{val:Uc})),i.push(Cn("c:axId",{val:Wc})),xn("c:lineChart",void 0,i)}function Cf(e){const t=wf(e)??150;return xn("c:upDownBars",void 0,[Cn("c:gapWidth",{val:t})])}function wf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>500?void 0:t}function xf(e,t){const n=e.areaGrouping??"standard",i=[Cn("c:grouping",{val:n}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let o=0;o<e.series.length;o++)i.push(Lp(e.series[o],o,t,!1,{chartType:e.type,dataLabels:e.dataLabels,dataPoints:e.series[o].dataPoints,trendlines:e.series[o].trendlines,errorBars:e.series[o].errorBars}));const r=Mh(e);return r&&i.push(r),!0===e.dropLines&&i.push(xn("c:dropLines",void 0,[])),i.push(Cn("c:axId",{val:Uc})),i.push(Cn("c:axId",{val:Wc})),xn("c:areaChart",void 0,i)}function bf(e,t){const n=[Cn("c:varyColors",{val:Ef(e)?1:0})];e.series.length>0&&n.push(Lp(e.series[0],0,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[0].explosion,dataPoints:e.series[0].dataPoints}));const i=Mh(e);i&&n.push(i);const r=Sf(e.firstSliceAng);return void 0!==r&&n.push(Cn("c:firstSliceAng",{val:r})),xn("c:pieChart",void 0,n)}function _f(e,t){const n=[Cn("c:varyColors",{val:Ef(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Lp(e.series[r],r,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[r].explosion,dataPoints:e.series[r].dataPoints}));const i=Mh(e);return i&&n.push(i),n.push(Cn("c:firstSliceAng",{val:Sf(e.firstSliceAng)??0})),n.push(Cn("c:holeSize",{val:Af(e.holeSize)})),xn("c:doughnutChart",void 0,n)}function Sf(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);let n=t%360;return n<0&&(n+=360),0!==n?n:void 0}function Af(e){if(void 0===e||!Number.isFinite(e))return Vp;const t=Math.round(e);return t<Hp?Hp:t>zp?zp:t}function Tf(e,t){const n=[Cn("c:scatterStyle",{val:Df(e)}),Cn("c:varyColors",{val:Ef(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Lp(e.series[r],r,t,!0,{chartType:e.type,smooth:!0===e.series[r].smooth||void 0,dataLabels:e.dataLabels,stroke:e.series[r].stroke,marker:e.series[r].marker,dataPoints:e.series[r].dataPoints,trendlines:e.series[r].trendlines,errorBars:e.series[r].errorBars}));const i=Mh(e);return i&&n.push(i),n.push(Cn("c:axId",{val:$c})),n.push(Cn("c:axId",{val:jc})),xn("c:scatterChart",void 0,n)}function Ef(e){return"boolean"===typeof e.varyColors?e.varyColors:Up.has(e.type)}function Df(e){const t=e.scatterStyle;return t&&Wp.has(t)?t:"lineMarker"}const Mf="http://schemas.openxmlformats.org/drawingml/2006/chart",If="http://schemas.openxmlformats.org/drawingml/2006/main",Rf="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Lf="http://schemas.openxmlformats.org/package/2006/relationships";function Pf(e,t){const n=e.showTitle??Boolean(e.title),i=Su(e),r=[];n&&e.title&&r.push(Ll(e.title,nu(e),Fl(e),kl(e),Gl(e),Hl(e),Ul(e),Zl(e),Jl(e),tu(e),iu(e),Wl(e),$l(e),jl(e),Xl(e),Yl(e),Kl(e))),r.push(Cn("c:autoTitleDeleted",{val:Zc(e)?1:0}));const o=Ga(e.view3D);void 0!==o&&r.push(o);const s=Ha(e.floorThickness);void 0!==s&&r.push(s);const a=za(e.sideWallThickness);void 0!==a&&r.push(a);const l=Ua(e.backWallThickness);void 0!==l&&r.push(l),r.push(df(e,t)),i&&r.push(Au(i,ku(e),Ou(e),Du(e),Mu(e),Iu(e),Ru(e),Lu(e),Pu(e),Fu(e),Bu(e),Gu(e),Vu(e),Hu(e),zu(e),pa(e.legendBorderCap),fa(e.legendBorderCompound))),r.push(Cn("c:plotVisOnly",{val:Hf(e)?1:0})),r.push(Cn("c:dispBlanksAs",{val:Vf(e)})),r.push(Cn("c:showDLblsOverMax",{val:zf(e)?1:0}));const u=xn("c:chart",void 0,r),c=[];$f(e)&&c.push(Cn("c:date1904",{val:1}));const d=jf(e);void 0!==d&&c.push(Cn("c:lang",{val:d})),c.push(Cn("c:roundedCorners",{val:Uf(e)?1:0}));const h=Wf(e);void 0!==h&&c.push(Cn("c:style",{val:h}));const p=kf(e);void 0!==p&&c.push(Bf(p)),c.push(u);const f=Nf(e);void 0!==f&&c.push(f);const g=_n("c:chartSpace",{"xmlns:c":Mf,"xmlns:a":If,"xmlns:r":Rf},c),m=_n("Relationships",{xmlns:Lf},[]);return{chartXml:g,chartRels:m}}function Nf(e){const t=Ff(e.chartSpaceFillColor),n=Of(e.chartSpaceBorderColor),i=Ra(e.chartSpaceBorderWidth),r=La(e.chartSpaceBorderDash),o=pa(e.chartSpaceBorderCap),s=fa(e.chartSpaceBorderCompound);if(void 0===t&&void 0===n&&void 0===i&&void 0===r&&void 0===o&&void 0===s)return;const a=[];if(void 0!==t&&a.push(xn("a:solidFill",void 0,[Aa(t)])),void 0!==n||void 0!==i||void 0!==r||void 0!==o||void 0!==s){const e={};void 0!==i&&(e.w=Math.round(12700*i)),void 0!==o&&(e.cap=o),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(xn("a:solidFill",void 0,[Aa(n)])),void 0!==r&&t.push(Cn("a:prstDash",{val:r})),a.push(0===t.length?Cn("a:ln",e):xn("a:ln",Object.keys(e).length>0?e:void 0,t))}return xn("c:spPr",void 0,a)}function Ff(e){return zl(e)}function Of(e){return zl(e)}function kf(e){const t=e.protection;if(void 0!==t&&!1!==t)return!0===t?{chartObject:!1,data:!1,formatting:!1,selection:!1,userInterface:!1}:{chartObject:!0===t.chartObject,data:!0===t.data,formatting:!0===t.formatting,selection:!0===t.selection,userInterface:!0===t.userInterface}}function Bf(e){return xn("c:protection",void 0,[Cn("c:chartObject",{val:e.chartObject?1:0}),Cn("c:data",{val:e.data?1:0}),Cn("c:formatting",{val:e.formatting?1:0}),Cn("c:selection",{val:e.selection?1:0}),Cn("c:userInterface",{val:e.userInterface?1:0})])}const Gf=new Set(["gap","zero","span"]);function Vf(e){const t=e.dispBlanksAs;return t&&Gf.has(t)?t:"gap"}function Hf(e){return"boolean"!==typeof e.plotVisOnly||e.plotVisOnly}function zf(e){return"boolean"!==typeof e.showDLblsOverMax||e.showDLblsOverMax}function Uf(e){return"boolean"===typeof e.roundedCorners&&e.roundedCorners}function Wf(e){const t=e.style;if("number"===typeof t&&Number.isInteger(t)&&!(t<1||t>48))return t}function $f(e){return!0===e.date1904}function jf(e){const t=e.lang;if("string"===typeof t&&/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(t))return t}const Xf=[208,207,17,224,161,177,26,225],Yf=4294967294,Kf=4294967295,qf=4294967293,Zf=4096,Qf=64;function Jf(e){if(e.length<512)throw new yt("CFB: file too small");for(let R=0;R<Xf.length;R++)if(e[R]!==Xf[R])throw new yt("CFB: bad signature");const t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(30,!0),i=1<<n,r=t.getUint16(32,!0),o=1<<r,s=t.getUint32(44,!0),a=t.getUint32(48,!0),l=t.getUint32(56,!0),u=t.getUint32(60,!0),c=t.getUint32(64,!0),d=t.getUint32(68,!0),h=t.getUint32(72,!0),p=e=>(e+1)*i,f=t=>{const n=p(t);if(n+i>e.length)throw new yt("CFB: sector out of range");return e.subarray(n,n+i)},g=[];for(let R=0;R<109&&g.length<s;R++){const e=t.getUint32(76+4*R,!0);if(e===Kf||e===Yf)break;g.push(e)}const m=Math.floor(e.length/i)+1,v=Math.min(h,m);let y=d,C=0;while(y!==Yf&&y!==Kf&&v>0&&C++<v+1){const e=f(y),t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=i/4-1;for(let i=0;i<n&&g.length<s;i++){const e=t.getUint32(4*i,!0);e!==Kf&&e!==Yf&&g.push(e)}y=t.getUint32(i-4,!0)}const w=[];for(const R of g){const e=f(R),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<i/4;n++)w.push(t.getUint32(4*n,!0))}const x=e=>{const t=[];let n=e,i=0;while(n!==Yf&&n!==Kf&&i++<w.length+1)t.push(n),n=w[n]??Yf;return t},b=(e,t)=>{const n=x(e),r=new Uint8Array(n.length*i);let o=0;for(const s of n)r.set(f(s),o),o+=i;return t>=0?r.subarray(0,t):r},_=b(a,-1),S=new DataView(_.buffer,_.byteOffset,_.byteLength),A=[];for(let R=0;R+128<=_.length;R+=128){const e=_[R+66];if(0===e)continue;const t=S.getUint16(R+64,!0);let n="";for(let o=0;o+1<t;o+=2){const e=S.getUint16(R+o,!0);if(0===e)break;n+=String.fromCharCode(e)}const i=S.getUint32(R+116,!0),r=S.getUint32(R+120,!0);A.push({name:n,type:e,startSector:i,size:r})}const T=A.find(e=>5===e.type);if(!T)throw new yt("CFB: missing root entry");const E=b(T.startSector,T.size),D=[];if(c>0&&u!==Yf){const e=b(u,c*i),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<e.length/4;n++)D.push(t.getUint32(4*n,!0))}const M=(e,t)=>{if(t<0||t>E.length)throw new yt("CFB: mini stream size out of range");const n=new Uint8Array(t);let i=e,r=0,s=0;while(i!==Yf&&i!==Kf&&r<t&&s++<D.length+1){const e=i*o,s=Math.min(o,t-r);n.set(E.subarray(e,e+s),r),r+=s,i=D[i]??Yf}return n},I=new Map;for(const R of A){if(2!==R.type)continue;const e=l||Zf;I.set(R.name,R.size<e?M(R.startSector,R.size):b(R.startSector,R.size))}return I}function eg(e){const t=512,n=t/4,i=[],r=[],o=[],s=new Map;let a=0;for(const R of e)if(R.data.length<Zf){s.set(R.name,{mini:!0}),r.push(a);const e=tg(R.data,Qf);i.push(e),a+=e.length/Qf}else s.set(R.name,{mini:!1}),o.push({name:R.name,data:R.data});const l=ng(i);let u=0;const c=e=>{const n=Math.max(1,Math.ceil(e/t)),i=u;return u+=n,{startSector:i,sectorCount:n}},d=o.map(e=>({name:e.name,data:e.data,region:c(e.data.length)})),h=l.length>0?c(l.length):null,p=new Uint8Array(Math.ceil(Math.max(a,0)/n)*t);{const t=new DataView(p.buffer);for(let e=0;e<p.length/4;e++)t.setUint32(4*e,Kf,!0);let n=0,i=0;for(const o of e){if(o.data.length>=Zf)continue;const e=tg(o.data,Qf).length/Qf;for(let n=0;n<e;n++){const o=r[i]+n;t.setUint32(4*o,n===e-1?Yf:o+1,!0)}i++,n+=e}}const f=a>0?c(p.length):null,g=1+e.length,m=Math.ceil(g/(t/128))*t,v=c(m),y=u;let C=1;for(;;){const e=y+C,t=Math.ceil(e/n);if(t<=C)break;C=t}const w={startSector:u,sectorCount:C};u+=C;const x=u,b=new Uint32Array(C*n);b.fill(Kf);const _=e=>{for(let t=0;t<e.sectorCount;t++)b[e.startSector+t]=t===e.sectorCount-1?Yf:e.startSector+t+1};for(const R of d)_(R.region);h&&_(h),f&&_(f),_(v);for(let R=0;R<C;R++)b[w.startSector+R]=qf;const S=new Uint8Array(m),A=new DataView(S.buffer),T=(e,t,n,i,r,o,s,a,l)=>{const u=128*e;for(let c=0;c<t.length;c++)A.setUint16(u+2*c,t.charCodeAt(c),!0);A.setUint16(u+64,2*(t.length+1),!0),S[u+66]=n,S[u+67]=i,A.setUint32(u+68,r,!0),A.setUint32(u+72,o,!0),A.setUint32(u+76,s,!0),A.setUint32(u+116,a,!0),A.setUint32(u+120,l,!0)};for(let R=0;R<m/128;R++)A.setUint32(128*R+68,Kf,!0),A.setUint32(128*R+72,Kf,!0),A.setUint32(128*R+76,Kf,!0);T(0,"Root Entry",5,1,Kf,Kf,e.length>0?1:Kf,h?h.startSector:Yf,l.length);for(let R=0;R<e.length;R++){const t=e[R],n=s.get(t.name),i=R+1,r=R+1<e.length?i+1:Kf;let o;if(n.mini){let t=0;for(let n=0;n<R;n++){const i=e[n];i.data.length<Zf&&(t+=tg(i.data,Qf).length/Qf)}o=t}else{const e=d.find(e=>e.name===t.name);o=e.region.startSector}T(i,t.name,2,1,Kf,r,Kf,o,t.data.length)}const E=new Uint8Array((x+1)*t),D=new DataView(E.buffer);for(let R=0;R<Xf.length;R++)E[R]=Xf[R];D.setUint16(24,62,!0),D.setUint16(26,3,!0),D.setUint16(28,65534,!0),D.setUint16(30,9,!0),D.setUint16(32,6,!0),D.setUint32(44,C,!0),D.setUint32(48,v.startSector,!0),D.setUint32(56,Zf,!0),D.setUint32(60,f?f.startSector:Yf,!0),D.setUint32(64,f?f.sectorCount:0,!0),D.setUint32(68,Yf,!0),D.setUint32(72,0,!0);for(let R=0;R<109;R++)D.setUint32(76+4*R,R<C?w.startSector+R:Kf,!0);const M=e=>(e+1)*t,I=(e,t)=>{E.set(t,M(e.startSector))};for(const R of d)I(R.region,R.data);h&&I(h,l),f&&I(f,p),I(v,S);{const e=M(w.startSector),n=new DataView(E.buffer,e,C*t);for(let t=0;t<b.length;t++)n.setUint32(4*t,b[t],!0)}return E}function tg(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function ng(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}const ig=new Uint8Array([254,167,210,118,59,75,158,121]),rg=new Uint8Array([215,170,15,109,48,97,52,78]),og=new Uint8Array([20,110,11,231,171,172,208,214]),sg=new Uint8Array([95,178,173,1,12,185,225,246]),ag=new Uint8Array([160,103,127,2,178,44,132,51]),lg=4096,ug=new Uint8Array(16);async function cg(e,t,n=Mt){let i;try{i=Jf(e)}catch(h){throw new _t("Not a valid encrypted workbook container.",{cause:h})}const r=i.get("EncryptionInfo"),o=i.get("EncryptedPackage");if(!r||!o)throw new _t("Encrypted workbook missing EncryptionInfo/EncryptedPackage.");const s=r[0]|r[1]<<8,a=r[2]|r[3]<<8;if(4!==s||4!==a)throw new _t(`Unsupported encryption (version ${s}.${a}); only ECMA-376 Agile is supported.`);const l=new TextDecoder("utf-8").decode(r.subarray(8)),u=Og(l,n),c=Fg(l),d=await vg(t,u);if(!d)throw new _t("Incorrect password.");return await dg(l,o,d,c),wg(o,d,c)}async function dg(e,t,n,i){const r=Rg(e,"dataIntegrity");if(!r)return;if("SHA-512"!==i.hashAlgorithm)return;const o=Wg(Lg(r,"encryptedHmacKey")),s=Wg(Lg(r,"encryptedHmacValue"));if(0===o.length||0===s.length)return;const a=await yg(i.saltValue,sg,i.hashAlgorithm,i.blockSize),l=await yg(i.saltValue,ag,i.hashAlgorithm,i.blockSize),u=await Dg(n,a,o),c=await Dg(n,l,s),d=await Ig(u,t),h=Math.min(d.length,c.length);let p=0===d.length?1:0;for(let f=0;f<h;f++)p|=d[f]^c[f];if(0!==p)throw new _t("Encrypted package failed integrity check (HMAC mismatch).")}async function hg(e,t,n){const i=n?.spinCount??1e5,r="SHA-512",o=32,s=16,a=64,l=Bg(16),u=Bg(16),c=Bg(o),d=await fg(t,u,i,r),h=Bg(s),p=await _g(r,h),f=await gg(d,ig,o,r),g=await gg(d,rg,o,r),m=await gg(d,og,o,r),v=await Mg(f,u,h),y=await Mg(g,u,Gg(p,s)),C=await Mg(m,u,c),w=await xg(e,c,{saltValue:l,hashAlgorithm:r,keyBytes:o,blockSize:s}),x=Bg(a),b=await yg(l,sg,r,s),_=await Mg(c,b,Gg(x,s)),S=await Ig(x,w),A=await yg(l,ag,r,s),T=await Mg(c,A,Gg(S,s)),E=kg({keyDataSalt:l,pwSalt:u,spinCount:i,keyBits:8*o,hashSize:a,blockSize:s,encryptedVerifierHashInput:v,encryptedVerifierHashValue:y,encryptedKeyValue:C,encryptedHmacKey:_,encryptedHmacValue:T}),D=new Uint8Array(8),M=new DataView(D.buffer);M.setUint16(0,4,!0),M.setUint16(2,4,!0),M.setUint32(4,64,!0);const I=Hg([D,(new TextEncoder).encode(E)]);return eg([{name:"EncryptionInfo",data:I},{name:"EncryptedPackage",data:w}])}function pg(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer);for(let i=0;i<e.length;i++)n.setUint16(2*i,e.charCodeAt(i),!0);return t}async function fg(e,t,n,i){let r=await _g(i,Hg([t,pg(e)]));const o=new Uint8Array(4),s=new DataView(o.buffer);for(let a=0;a<n;a++)s.setUint32(0,a,!0),r=await _g(i,Hg([o,r]));return r}async function gg(e,t,n,i){const r=await _g(i,Hg([e,t]));return mg(r,n)}function mg(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}async function vg(e,t){const n=await fg(e,t.saltValue,t.spinCount,t.hashAlgorithm),i=await gg(n,ig,t.keyBytes,t.hashAlgorithm),r=await gg(n,rg,t.keyBytes,t.hashAlgorithm),o=await gg(n,og,t.keyBytes,t.hashAlgorithm),s=await Dg(i,t.saltValue,t.encryptedVerifierHashInput),a=await Dg(r,t.saltValue,t.encryptedVerifierHashValue),l=await _g(t.hashAlgorithm,s),u=Math.min(l.length,a.length);if(!Vg(l.subarray(0,u),a.subarray(0,u)))return null;const c=await Dg(o,t.saltValue,t.encryptedKeyValue);return c.subarray(0,t.keyBytes)}async function yg(e,t,n,i){const r=await _g(n,Hg([e,t]));return Cg(r,i)}function Cg(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}async function wg(e,t,n){const i=Number(new DataView(e.buffer,e.byteOffset,8).getBigUint64(0,!0)),r=e.subarray(8),o=new Uint8Array(Math.ceil(r.length/lg)*lg),s=new Uint8Array(4),a=new DataView(s.buffer);let l=0,u=0;while(l<r.length){const e=r.subarray(l,Math.min(l+lg,r.length));a.setUint32(0,u,!0);const i=Cg(await _g(n.hashAlgorithm,Hg([n.saltValue,s])),n.blockSize),c=await Dg(t,i,e);o.set(c,l),l+=lg,u++}return o.subarray(0,i)}async function xg(e,t,n){const i=new Uint8Array(8);new DataView(i.buffer).setBigUint64(0,BigInt(e.length),!0);const r=Gg(e,lg),o=new Uint8Array(r.length),s=new Uint8Array(4),a=new DataView(s.buffer);let l=0,u=0;while(l<r.length){const e=r.subarray(l,l+lg);a.setUint32(0,u,!0);const i=Cg(await _g(n.hashAlgorithm,Hg([n.saltValue,s])),n.blockSize),c=await Mg(t,i,e);o.set(c,l),l+=lg,u++}return Hg([i,o])}const bg=e=>e;async function _g(e,t){return new Uint8Array(await crypto.subtle.digest(e,bg(t)))}async function Sg(e){return crypto.subtle.importKey("raw",bg(e),{name:"AES-CBC"},!1,["encrypt","decrypt"])}async function Ag(e,t){const n=new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:bg(ug)},e,bg(t)));return n.subarray(0,16)}async function Tg(e,t,n){if(0===n.length)return new Uint8Array(0);const i=n.subarray(n.length-16),r=new Uint8Array(16);for(let l=0;l<16;l++)r[l]=16^i[l];const o=await Ag(e,r),s=Hg([n,o]),a=new Uint8Array(await crypto.subtle.decrypt({name:"AES-CBC",iv:bg(t)},e,bg(s)));return a.subarray(0,n.length)}async function Eg(e,t,n){if(0===n.length)return new Uint8Array(0);const i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:bg(t)},e,bg(n)));return i.subarray(0,n.length)}async function Dg(e,t,n){return Tg(await Sg(e),t,n)}async function Mg(e,t,n){return Eg(await Sg(e),t,n)}async function Ig(e,t){const n=await crypto.subtle.importKey("raw",bg(e),{name:"HMAC",hash:"SHA-512"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",n,bg(t)))}function Rg(e,t){const n=new RegExp(`<(?:\\w+:)?${t}\\b[^>]*?/?>`),i=n.exec(e);return i?i[0]:null}function Lg(e,t){const n=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return n?n[1]:""}const Pg={SHA512:"SHA-512",SHA384:"SHA-384",SHA256:"SHA-256",SHA1:"SHA-1"};function Ng(e){return Pg[e]??"SHA-512"}function Fg(e){const t=Rg(e,"keyData");if(!t)throw new _t("EncryptionInfo missing keyData.");return{saltValue:Wg(Lg(t,"saltValue")),hashAlgorithm:Ng(Lg(t,"hashAlgorithm")),keyBytes:parseInt(Lg(t,"keyBits"),10)/8,blockSize:parseInt(Lg(t,"blockSize"),10)}}function Og(e,t){const n=Rg(e,"encryptedKey");if(!n)throw new _t("EncryptionInfo missing encryptedKey.");const i=parseInt(Lg(n,"spinCount"),10);if(!Number.isFinite(i)||i<0)throw new _t("EncryptionInfo has an invalid spinCount.");if(i>t)throw new _t(`EncryptionInfo spinCount ${i} exceeds the maximum of ${t}. Raise \`maxSpinCount\` to agree to spend that time.`);return{saltValue:Wg(Lg(n,"saltValue")),hashAlgorithm:Ng(Lg(n,"hashAlgorithm")),keyBytes:parseInt(Lg(n,"keyBits"),10)/8,blockSize:parseInt(Lg(n,"blockSize"),10),spinCount:i,encryptedVerifierHashInput:Wg(Lg(n,"encryptedVerifierHashInput")),encryptedVerifierHashValue:Wg(Lg(n,"encryptedVerifierHashValue")),encryptedKeyValue:Wg(Lg(n,"encryptedKeyValue"))}}function kg(e){const t=Ug;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><keyData saltSize="${e.keyDataSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${t(e.encryptedHmacKey)}" encryptedHmacValue="${t(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" saltSize="${e.pwSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.pwSalt)}" encryptedVerifierHashInput="${t(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${t(e.encryptedVerifierHashValue)}" encryptedKeyValue="${t(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`}function Bg(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function Gg(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function Vg(e,t){if(e.length!==t.length)return!1;let n=0;for(let i=0;i<e.length;i++)n|=e[i]^t[i];return 0===n}function Hg(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}const zg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ug(e){let t="",n=0;for(;n+2<e.length;n+=3){const i=e[n]<<16|e[n+1]<<8|e[n+2];t+=zg[i>>18&63]+zg[i>>12&63]+zg[i>>6&63]+zg[63&i]}if(n<e.length){const i=e.length-n;if(1===i){const i=e[n]<<16;t+=zg[i>>18&63]+zg[i>>12&63]+"=="}else{const i=e[n]<<16|e[n+1]<<8;t+=zg[i>>18&63]+zg[i>>12&63]+zg[i>>6&63]+"="}}return t}function Wg(e){const t=e.replace(/[^A-Za-z0-9+/]/g,""),n=Math.floor(3*t.length/4),i=new Uint8Array(n);let r=0,o=0,s=0;for(let a=0;a<t.length;a++)o=o<<6|zg.indexOf(t[a]),r+=6,r>=8&&(r-=8,i[s++]=o>>r&255);return i.subarray(0,s)}const $g="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function jg(e,t){const n=[];for(const[s,a]of e){if(!a.comment)continue;const[e,t]=s.split(","),i=parseInt(e,10),r=parseInt(t,10),o=os(i,r),l=a.comment.author??"",u=a.comment.text;n.push({ref:o,row:i,col:r,author:l,text:u})}if(0===n.length)return null;n.sort((e,t)=>e.row-t.row||e.col-t.col);const i=new Map;for(const s of n)i.has(s.author)||i.set(s.author,i.size);const r=Xg(n,i),o=Yg(n,t);return{commentsXml:r,vmlXml:o,comments:n}}function Xg(e,t){const n=[];for(const[s]of t)n.push(xn("author",void 0,mn(s)));const i=xn("authors",void 0,n),r=[];for(const s of e){const e=t.get(s.author)??0,n=xn("text",void 0,[xn("r",void 0,[xn("t",void 0,mn(s.text))])]);r.push(xn("comment",{ref:s.ref,authorId:e},[n]))}const o=xn("commentList",void 0,r);return _n("comments",{xmlns:$g},[i,o])}function Yg(e,t){const n=[];n.push('<xml xmlns:v="urn:schemas-microsoft-com:vml"',' xmlns:o="urn:schemas-microsoft-com:office:office"',' xmlns:x="urn:schemas-microsoft-com:office:excel">'),n.push('<o:shapelayout v:ext="edit">',`<o:idmap v:ext="edit" data="${t+1}"/>`,"</o:shapelayout>"),n.push('<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>");const i=1024*(t+1)+1;for(let r=0;r<e.length;r++){const t=e[r],o=i+r,s=t.col+1,a=t.row,l=s+2,u=a+4,c=48*(t.col+1),d=15*t.row;n.push(`<v:shape id="_x0000_s${o}" type="#_x0000_t202"`,` style="position:absolute;margin-left:${c}pt;margin-top:${d}pt;`,`width:108pt;height:59.25pt;z-index:${r+1};visibility:hidden"`,' fillcolor="#ffffe1" o:insetmode="auto">','<v:fill color2="#ffffe1"/>','<v:shadow on="t" 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:Anchor>${s},15,${a},2,${l},31,${u},4</x:Anchor>`,"<x:AutoFill>False</x:AutoFill>",`<x:Row>${t.row}</x:Row>`,`<x:Column>${t.col}</x:Column>`,"</x:ClientData>","</v:shape>")}return n.push("</xml>"),n.join("")}const Kg="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function qg(e,t,n){const i=e.displayName??e.name,r=e.range??"",o=!1!==e.showAutoFilter,s=!0===e.showTotalRow,a={xmlns:Kg,id:t,name:e.name,displayName:i,ref:r};s?a["totalsRowCount"]=1:a["totalsRowShown"]=0;const l=[];if(o){const e=s?Zg(r):r;l.push(Cn("autoFilter",{ref:e}))}const u=[];for(let f=0;f<e.columns.length;f++){const t=e.columns[f],n={id:f+1,name:t.name};if(s&&t.totalFunction&&(n["totalsRowFunction"]=t.totalFunction),s&&t.totalLabel&&(n["totalsRowLabel"]=t.totalLabel),s&&"custom"===t.totalFunction&&t.totalFormula){const e=xn("totalsRowFormula",void 0,mn(t.totalFormula));u.push(xn("tableColumn",n,[e]))}else u.push(Cn("tableColumn",n))}l.push(xn("tableColumns",{count:e.columns.length},u));const c=e.style??"TableStyleMedium2",d=!1!==e.showRowStripes,h=!0===e.showColumnStripes;l.push(Cn("tableStyleInfo",{name:c,showFirstColumn:0,showLastColumn:0,showRowStripes:d?1:0,showColumnStripes:h?1:0}));const p=_n("table",a,l);return{tableXml:p,tableId:t}}function Zg(e){const t=e.indexOf(":");if(-1===t)return e;const n=e.slice(t+1);let i=n.length;while(i>0&&n.charCodeAt(i-1)>=48&&n.charCodeAt(i-1)<=57)i--;const r=n.slice(0,i),o=parseInt(n.slice(i),10);return isNaN(o)||o<=1?e:`${e.slice(0,t+1)}${r}${o-1}`}function Qg(e,t){const n=t?[...t]:[];for(const i of e){const e=i.pageSetup;if(!e)continue;e.printArea&&n.push({name:"_xlnm.Print_Area",range:`${i.name}!${e.printArea}`,scope:i.name});const t=[];e.printTitlesRow&&t.push(`${i.name}!${e.printTitlesRow}`),e.printTitlesColumn&&t.push(`${i.name}!${e.printTitlesColumn}`),t.length>0&&n.push({name:"_xlnm.Print_Titles",range:t.join(","),scope:i.name})}return n}function Jg(e,t){const n=e.columns.length;let i=0;if(t.rows)i=t.rows.length;else if(t.data){const e=t.columns?.some(e=>e.header);i=t.data.length+(e?1:0)}e.showTotalRow&&(i+=1),i<1&&(i=1);const r=is(0),o=is(n-1);return`${r}1:${o}${i}`}const em="http://schemas.openxmlformats.org/spreadsheetml/2006/main",tm="http://schemas.openxmlformats.org/officeDocument/2006/relationships",nm="http://schemas.openxmlformats.org/package/2006/relationships",im="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",rm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";function om(e,t,n,i=1){const r=am(e,t),o=um(t,r),s=dm(i),a=hm(t,r),l=fm(e,r,n),u=mm(i);return{cacheDefinitionXml:o,cacheDefinitionRels:s,cacheRecordsXml:a,pivotTableXml:l,pivotTableRels:u}}function sm(e,t,n){if(n.length<2)throw new Error(`Pivot "${e.name}" source sheet "${t}" needs at least a header row plus one data row (got ${n.length}).`);const i=n[0],r=[];for(let u=0;u<i.length;u++){const e=i[u];r.push(null===e||void 0===e?`Column${u+1}`:String(e))}const o=[];for(let u=1;u<n.length;u++){const e=n[u],t=[];for(let n=0;n<r.length;n++)t.push(n<e.length?e[n]:null);o.push(t)}const s=new Set(r),a=[...e.rows??[],...e.columns??[],...e.pages??[]];for(const u of e.values)a.push(u.field);for(const u of a)if(!s.has(u))throw new Error(`Pivot "${e.name}" references field "${u}" which is not in the source header (have: ${r.join(", ")}).`);const l=e.sourceRange??wm(r.length,n.length);return{sheetName:t,fieldNames:r,dataRows:o,ref:l}}function am(e,t){const n=t.fieldNames.map((e,n)=>({index:n,name:e,axis:"hidden",axisOrder:0,kind:lm(t.dataRows,n)})),i=(e,t)=>{if(e)for(let i=0;i<e.length;i++){const r=n.find(t=>t.name===e[i]);r&&(r.axis=t,r.axisOrder=i)}};i(e.rows,"row"),i(e.columns,"col"),i(e.pages,"page");const r=[];for(let o=0;o<e.values.length;o++){const i=e.values[o],s=t.fieldNames.indexOf(i.field);if(-1===s)continue;n[s].axis="data",n[s].axisOrder=o;const a=i.function??"sum",l=i.displayName??xm(a,i.field),u={fieldIndex:s,function:a,displayName:l};void 0!==i.numberFormat&&(u.numberFormat=i.numberFormat),r.push(u)}for(const o of n){if("data"===o.axis||"hidden"===o.axis)continue;if("string"!==o.kind)continue;const e=new Set,n=[];for(const i of t.dataRows){const t=i[o.index],r=null===t||void 0===t?"":String(t);e.has(r)||(e.add(r),n.push(r))}o.sharedStrings=n,o.sharedIndex=new Map(n.map((e,t)=>[e,t]))}return{fields:n,dataFieldDefs:r}}function lm(e,t){for(const n of e){const e=n[t];if(null!==e&&void 0!==e&&""!==e&&("number"!==typeof e||!Number.isFinite(e)))return"string"}return"number"}function um(e,t){const n=xn("cacheSource",{type:"worksheet"},[Cn("worksheetSource",{ref:e.ref,sheet:e.sheetName})]),i=[];for(const r of t.fields)i.push(cm(r,e.dataRows));return _n("pivotCacheDefinition",{xmlns:em,"xmlns:r":tm,"r:id":"rId1",refreshOnLoad:1,refreshedBy:"hucre",refreshedDate:0,createdVersion:6,refreshedVersion:6,minRefreshableVersion:3,recordCount:e.dataRows.length},[n,xn("cacheFields",{count:t.fields.length},i)])}function cm(e,t){if("string"===e.kind){const t=[];if(e.sharedStrings)for(const n of e.sharedStrings)t.push(Cn("s",{v:n}));return xn("cacheField",{name:e.name,numFmtId:0},[xn("sharedItems",{count:t.length},t)])}let n=1/0,i=-1/0,r=!1;for(const s of t){const t=s[e.index];null!==t&&void 0!==t&&""!==t?"number"===typeof t&&(t<n&&(n=t),t>i&&(i=t)):r=!0}const o={containsSemiMixedTypes:0,containsString:0,containsNumber:1,containsInteger:Number.isInteger(n)&&Number.isInteger(i)?1:0};return r&&(o.containsBlank=1),Number.isFinite(n)&&(o.minValue=n),Number.isFinite(i)&&(o.maxValue=i),xn("cacheField",{name:e.name,numFmtId:0},[Cn("sharedItems",o)])}function dm(e){return _n("Relationships",{xmlns:nm},[Cn("Relationship",{Id:"rId1",Type:im,Target:`pivotCacheRecords${e}.xml`})])}function hm(e,t){const n=[];for(const i of e.dataRows){const e=[];for(const n of t.fields)e.push(pm(i[n.index],n));n.push(xn("r",void 0,e))}return _n("pivotCacheRecords",{xmlns:em,"xmlns:r":tm,count:e.dataRows.length},n)}function pm(e,t){if(null===e||void 0===e||""===e)return Cn("m");if("string"===t.kind){const n=t.sharedIndex?.get(String(e));return void 0!==n?Cn("x",{v:n}):Cn("s",{v:String(e)})}return"number"===typeof e&&Number.isFinite(e)?Cn("n",{v:e}):"boolean"===typeof e?Cn("b",{v:e?1:0}):Cn("s",{v:String(e)})}function fm(e,t,n){const i=t.fields.filter(e=>"row"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),r=t.fields.filter(e=>"col"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),o=t.fields.filter(e=>"page"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),s=e.targetCell??"A1",a=e.styleName??"PivotStyleLight16",l=e.dataCaption??"Values",u=vm(s,i.length,r.length,t),c=[];c.push(Cn("location",u));const d=[];for(const h of t.fields)d.push(gm(h));if(c.push(xn("pivotFields",{count:t.fields.length},d)),i.length>0&&(c.push(xn("rowFields",{count:i.length},i.map(e=>Cn("field",{x:e.index})))),c.push(xn("rowItems",{count:1},[xn("i",void 0,[Cn("x")])]))),r.length>0)c.push(xn("colFields",{count:r.length},r.map(e=>Cn("field",{x:e.index})))),c.push(xn("colItems",{count:1},[xn("i",void 0,[Cn("x")])]));else if(t.dataFieldDefs.length>1){c.push(xn("colFields",{count:1},[Cn("field",{x:-2})]));const e=[];for(let n=0;n<t.dataFieldDefs.length;n++)e.push(xn("i",0===n?void 0:{i:n},[Cn("x",{v:n})]));c.push(xn("colItems",{count:t.dataFieldDefs.length},e))}if(o.length>0&&c.push(xn("pageFields",{count:o.length},o.map(e=>Cn("pageField",{fld:e.index,hier:-1})))),t.dataFieldDefs.length>0){const e=[];for(const n of t.dataFieldDefs){const t={name:n.displayName,fld:n.fieldIndex,baseField:0,baseItem:0};"sum"!==n.function&&(t.subtotal=n.function),void 0!==n.numberFormat&&(t.numFmtId=0),e.push(Cn("dataField",t))}c.push(xn("dataFields",{count:t.dataFieldDefs.length},e))}return c.push(Cn("pivotTableStyleInfo",{name:a,showRowHeaders:1,showColHeaders:1,showRowStripes:0,showColStripes:0,showLastColumn:1})),_n("pivotTableDefinition",{xmlns:em,"xmlns:r":tm,name:e.name,cacheId:n,applyNumberFormats:0,applyBorderFormats:0,applyFontFormats:0,applyPatternFormats:0,applyAlignmentFormats:0,applyWidthHeightFormats:1,dataCaption:l,updatedVersion:6,minRefreshableVersion:3,useAutoFormatting:1,itemPrintTitles:1,createdVersion:6,indent:0,outline:1,outlineData:1,multipleFieldFilters:0},c)}function gm(e){if("data"===e.axis)return Cn("pivotField",{dataField:1,showAll:0});if("hidden"===e.axis)return Cn("pivotField",{showAll:0});const t="row"===e.axis?"axisRow":"col"===e.axis?"axisCol":"axisPage",n=[];if(e.sharedStrings)for(let i=0;i<e.sharedStrings.length;i++)n.push(Cn("item",{x:i}));return n.push(Cn("item",{t:"default"})),xn("pivotField",{axis:t,showAll:0},[xn("items",{count:n.length},n)])}function mm(e){return _n("Relationships",{xmlns:nm},[Cn("Relationship",{Id:"rId1",Type:rm,Target:`../pivotCache/pivotCacheDefinition${e}.xml`})])}function vm(e,t,n,i){const{col:r,row:o}=ym(e),s=0,a=Math.max(1,n)+(i.dataFieldDefs.length>1?1:0),l=Math.max(1,t),u=Math.max(2,t+Math.max(1,i.dataFieldDefs.length)),c=a+2,d=Cm(o,r),h=Cm(o+c-1,r+u-1);return{ref:`${d}:${h}`,firstHeaderRow:s,firstDataRow:a,firstDataCol:l}}function ym(e){const t=/^([A-Z]+)(\d+)$/i.exec(e.trim());if(!t)throw new Error(`Invalid pivot targetCell "${e}" — expected an A1-style reference`);const n=t[1].toUpperCase();let i=0;for(let r=0;r<n.length;r++)i=26*i+(n.charCodeAt(r)-64);return{col:i-1,row:parseInt(t[2],10)-1}}function Cm(e,t){let n=t,i="";while(n>=0)i=String.fromCharCode(65+n%26)+i,n=Math.floor(n/26)-1;return`${i}${e+1}`}function wm(e,t){if(e<=0||t<=0)throw new Error("Pivot source range must contain at least one column and row");const n=Cm(0,0),i=Cm(t-1,e-1);return`${n}:${i}`}function xm(e,t){const n="sum"===e?"Sum":"count"===e?"Count":"average"===e?"Average":"max"===e?"Max":"min"===e?"Min":"product"===e?"Product":"countNums"===e?"Count Nums":"stdDev"===e?"StdDev":"stdDevp"===e?"StdDevp":"var"===e?"Var":"Varp";return`${n} of ${t}`}const bm="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",_m="http://purl.org/dc/elements/1.1/",Sm="http://purl.org/dc/terms/",Am="http://www.w3.org/2001/XMLSchema-instance",Tm="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";function Em(e){return e.toISOString().replace(/\.\d{3}Z$/,"Z")}function Dm(e){const t=[];e?.title&&t.push(xn("dc:title",void 0,mn(e.title))),e?.subject&&t.push(xn("dc:subject",void 0,mn(e.subject))),e?.creator&&t.push(xn("dc:creator",void 0,mn(e.creator))),e?.keywords&&t.push(xn("cp:keywords",void 0,mn(e.keywords))),e?.description&&t.push(xn("dc:description",void 0,mn(e.description))),e?.lastModifiedBy&&t.push(xn("cp:lastModifiedBy",void 0,mn(e.lastModifiedBy))),e?.category&&t.push(xn("cp:category",void 0,mn(e.category))),e?.created&&t.push(xn("dcterms:created",{"xsi:type":"dcterms:W3CDTF"},Em(e.created)));const n=e?.modified??new Date;return t.push(xn("dcterms:modified",{"xsi:type":"dcterms:W3CDTF"},Em(n))),_n("cp:coreProperties",{"xmlns:cp":bm,"xmlns:dc":_m,"xmlns:dcterms":Sm,"xmlns:xsi":Am},t)}const Mm="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Im="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Rm="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}";function Lm(e){if(!e?.custom)return null;const t=Object.entries(e.custom);if(0===t.length)return null;const n=[];let i=2;for(const[r,o]of t){let e;if("string"===typeof o)e=xn("vt:lpwstr",void 0,mn(o));else if("number"===typeof o)e=Number.isInteger(o)?xn("vt:i4",void 0,String(o)):xn("vt:r8",void 0,String(o));else if("boolean"===typeof o)e=xn("vt:bool",void 0,o?"true":"false");else{if(!(o instanceof Date))continue;e=xn("vt:filetime",void 0,Em(o))}n.push(xn("property",{fmtid:Rm,pid:i++,name:r},e))}return 0===n.length?null:_n("Properties",{xmlns:Mm,"xmlns:vt":Im},n)}function Pm(e){const t=[];return t.push(xn("Application",void 0,"hucre")),t.push(xn("DocSecurity",void 0,"0")),e?.company&&t.push(xn("Company",void 0,mn(e.company))),e?.manager&&t.push(xn("Manager",void 0,mn(e.manager))),_n("Properties",{xmlns:Tm},t)}function Nm(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="12700"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="19050"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>'}const Fm=new TextEncoder,Om="http://schemas.openxmlformats.org/package/2006/relationships",km="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Bm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Gm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Vm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Hm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",zm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Um="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";function Wm(e){const t=e.properties;if(t?.description)return t;for(const n of e.sheets){const e=n.a11y?.summary;if(e&&e.trim().length>0)return{...t,description:e}}return t}async function $m(e){const t=pn(e.sheets),{defaultFont:n,dateSystem:i,namedRanges:r,activeSheet:o,workbookProtection:s}=e;Jo(t);const a=Wm(e),l=yr(n,{reuseStyleIdentity:!0}),u=as();let c=1;const d=[];for(const z of t)z.tables&&z.tables.length>0?(d.push(c),c+=z.tables.length):d.push(void 0);let h=1;const p=[];for(const z of t)z.pivotTables&&z.pivotTables.length>0?(p.push(h),h+=z.pivotTables.length):p.push(void 0);const f=[];for(let z=0;z<t.length;z++){const n=t[z],r=fs(n,l,u,i,d[z],"inline"===e.stringMode,p[z]);f.push(r)}const g=u.count()>0,m=[],v=[],y=new Set;let C=1,w=1;const x=[],b=[];for(let z=0;z<t.length;z++){const e=t[z],n=e.images&&e.images.length>0,i=e.textBoxes&&e.textBoxes.length>0,r=e.charts&&e.charts.length>0;if(n||i||r){const t=oa(e.images??[],C,e.textBoxes,e.charts,w);m.push(t),v.push(z+1);for(const e of t.images){const t=e.path.split(".").pop();t&&y.add(t)}e.images&&(C+=e.images.length);const n=[];if(e.charts){for(let t=0;t<e.charts.length;t++){const i=Pf(e.charts[t],e.name),r=w+t;n.push({globalIndex:r,xml:i.chartXml,rels:i.chartRels}),b.push(r)}w+=e.charts.length}x.push(n)}else m.push(null),x.push([])}const{paths:_,nextIndex:S}=Ws(t,C,y);C=S;const A=[],T=[];for(let z=0;z<t.length;z++){const e=t[z];if(e.cells){const t=jg(e.cells,z);t?(A.push(t),T.push(z+1)):A.push(null)}else A.push(null)}const E=[];for(const z of f)for(const e of z.tables)E.push(e.globalTableIndex);const D=[];for(let z=0;z<t.length;z++){const e=t[z];if(!e.pivotTables||0===e.pivotTables.length)continue;const n=p[z];if(void 0!==n)for(let i=0;i<e.pivotTables.length;i++){const r=e.pivotTables[i],o=r.sourceSheet??e.name,s=t.find(e=>e.name===o);if(!s)throw new Error(`Pivot "${r.name}" sourceSheet "${o}" not found in workbook`);const a=jm(s),l=sm(r,o,a),u=n+i,c=u-1,d=om(r,l,c,u);D.push({parts:d,globalIndex:u})}}const M=D.map(e=>e.globalIndex),I=D.map(e=>({rId:`rIdPivot${e.globalIndex}`,target:`pivotCache/pivotCacheDefinition${e.globalIndex}.xml`})),R=D.map((e,t)=>({cacheId:e.globalIndex-1,rId:I[t].rId})),L=new an,P=Lm(a),N=null!==P,F=void 0!==e.vbaProject&&e.vbaProject.length>0,O=l.hasCheckboxFeature(),k=f.some(e=>e.hasDynamicArray),B={sheetCount:t.length,hasSharedStrings:g,drawingIndices:v.length>0?v:void 0,chartIndices:b.length>0?b:void 0,imageExtensions:y.size>0?y:void 0,commentIndices:T.length>0?T:void 0,tableIndices:E.length>0?E:void 0,pivotTableIndices:M.length>0?M:void 0,pivotCacheDefinitionIndices:M.length>0?M:void 0,pivotCacheRecordIndices:M.length>0?M:void 0,hasCoreProps:!0,hasAppProps:!0,hasCustomProps:N,hasMacros:F,hasFeaturePropertyBag:O,hasMetadata:k};L.add("[Content_Types].xml",Fm.encode(Fi(B))),L.add("_rels/.rels",Fm.encode(er({hasCoreProps:!0,hasAppProps:!0,hasCustomProps:N}))),L.add("docProps/core.xml",Fm.encode(Dm(a))),L.add("docProps/app.xml",Fm.encode(Pm(a))),P&&L.add("docProps/custom.xml",Fm.encode(P));const G=Qg(t,r);L.add("xl/workbook.xml",Fm.encode($i(t,G.length>0?G:void 0,i,o,s,void 0,R.length>0?R:void 0))),L.add("xl/_rels/workbook.xml.rels",Fm.encode(Ji(t.length,g,F,O,void 0,void 0,I.length>0?I:void 0,void 0,void 0,void 0,k))),L.add("xl/styles.xml",Fm.encode(l.toXml())),L.add("xl/theme/theme1.xml",Fm.encode(Nm())),g&&L.add("xl/sharedStrings.xml",Fm.encode(ls(u))),k&&L.add(Yn,Fm.encode(Zn())),O&&L.add(ri,Fm.encode(oi())),F&&L.add("xl/vbaProject.bin",e.vbaProject);for(let z=0;z<f.length;z++){const e=f[z],n=m[z],i=A[z];L.add(`xl/worksheets/sheet${z+1}.xml`,Fm.encode(e.xml));const r=e.hyperlinkRelationships.length>0,o=null!==n&&null!==e.drawingRId,s=null!==i&&null!==e.legacyDrawingRId,a=e.tables.length>0,l=null!==e.pictureRId&&null!==_[z],u=e.pivotTables.length>0;if(r||o||s||a||l||u){const t=[];for(const i of e.hyperlinkRelationships)t.push(Cn("Relationship",{Id:i.id,Type:km,Target:i.target,TargetMode:"External"}));o&&e.drawingRId&&t.push(Cn("Relationship",{Id:e.drawingRId,Type:Bm,Target:`../drawings/drawing${z+1}.xml`})),s&&e.legacyDrawingRId&&e.commentsRId&&(t.push(Cn("Relationship",{Id:e.legacyDrawingRId,Type:Vm,Target:`../drawings/vmlDrawing${z+1}.vml`})),t.push(Cn("Relationship",{Id:e.commentsRId,Type:Gm,Target:`../comments${z+1}.xml`})));for(const i of e.tables)t.push(Cn("Relationship",{Id:i.rId,Type:Hm,Target:`../tables/table${i.globalTableIndex}.xml`}));if(l&&e.pictureRId&&_[z]){const n=_[z],i=`../${n.slice(3)}`;t.push(Cn("Relationship",{Id:e.pictureRId,Type:zm,Target:i}))}for(const i of e.pivotTables)t.push(Cn("Relationship",{Id:i.rId,Type:Um,Target:`../pivotTables/pivotTable${i.globalPivotIndex}.xml`}));const n=_n("Relationships",{xmlns:Om},t);L.add(`xl/worksheets/_rels/sheet${z+1}.xml.rels`,Fm.encode(n))}if(n){L.add(`xl/drawings/drawing${z+1}.xml`,Fm.encode(n.drawingXml)),L.add(`xl/drawings/_rels/drawing${z+1}.xml.rels`,Fm.encode(n.drawingRels));for(const e of n.images)L.add(e.path,e.data,{compress:!1})}const c=x[z];if(c&&c.length>0)for(const t of c)L.add(`xl/charts/chart${t.globalIndex}.xml`,Fm.encode(t.xml)),L.add(`xl/charts/_rels/chart${t.globalIndex}.xml.rels`,Fm.encode(t.rels));l&&_[z]&&t[z].backgroundImage&&L.add(_[z],t[z].backgroundImage,{compress:!1}),i&&(L.add(`xl/comments${z+1}.xml`,Fm.encode(i.commentsXml)),L.add(`xl/drawings/vmlDrawing${z+1}.vml`,Fm.encode(i.vmlXml)));const d=t[z];if(d.tables&&d.tables.length>0)for(let t=0;t<d.tables.length;t++){const n=d.tables[t],i=e.tables[t],r=i.globalTableIndex;let o=n.range;o||(o=Jg(n,d));const s={...n,range:o},a=qg(s,r,r);L.add(`xl/tables/table${r}.xml`,Fm.encode(a.tableXml))}}for(const z of D){const e=z.globalIndex;L.add(`xl/pivotCache/pivotCacheDefinition${e}.xml`,Fm.encode(z.parts.cacheDefinitionXml)),L.add(`xl/pivotCache/_rels/pivotCacheDefinition${e}.xml.rels`,Fm.encode(z.parts.cacheDefinitionRels)),L.add(`xl/pivotCache/pivotCacheRecords${e}.xml`,Fm.encode(z.parts.cacheRecordsXml)),L.add(`xl/pivotTables/pivotTable${e}.xml`,Fm.encode(z.parts.pivotTableXml)),L.add(`xl/pivotTables/_rels/pivotTable${e}.xml.rels`,Fm.encode(z.parts.pivotTableRels))}const V=await L.build(),H=e.encryption;return H?.password?hg(V,H.password,{spinCount:H.spinCount}):V}function jm(e){if(e.rows&&e.rows.length>0)return e.rows.map(e=>e.map(dn));if(e.data&&e.data.length>0&&e.columns&&e.columns.length>0){const t=[],n=e.columns.map(e=>e.header??e.key??"");t.push(n);for(const i of e.data){const n=e.columns.map(e=>{if(!e.key)return null;const t=i[e.key];return void 0===t?null:un(t)});t.push(n)}return t}return[]}async function Xm(e){if(!(0,De.A)(e))return{error:"wb is not an effective object"};if(!(0,be.A)((0,j.A)(e,"sheets")))return{error:"wb.sheets is not an array"};let t=null;try{t=await $m(e)}catch(n){return{error:n}}return t}var Ym=Xm;async function Km(e,t="data",n){if(!(0,Re.A)(e)){let t="no filename";return console.log(t,e),{error:t}}if((0,Re.A)(t)||(t="data"),!(0,be.A)(n)){let e="data is not an array";return console.log(e,n),{error:e}}(0,be.A)(n)&&(0,De.A)((0,j.A)(n,0,null))&&(n=lt(n));let i=mt(n,t);if((0,fe.A)(i,"error"))return console.log(i.error),i;let r=await Ym(i);if((0,fe.A)(r,"error"))return console.log(r.error),r;if((0,et.A)())ot(e,new Blob([r]));else{let t="fs",n=await import(t);n.default.writeFileSync(e,r)}}var qm=Km,Zm=n(7120),Qm=n(7587);function Jm(e){return!(0,Ee.A)(e)}var ev=Jm;let tv=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function nv(e=""){let t=null;return(0,Re.A)(e)?(t=(0,d.A)(tv,{name:e}),(0,De.A)(t)||(t=null)):t=tv,t}var iv=nv;function rv(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=iv();if(""===e)return t;let n={};return(0,a.A)(t,function(t){let i=t[e];(0,fe.A)(n,i)||(n[i]=[]),n[i].push(t)}),n}var ov=rv;function sv(e="*"){if("*"===e)return e;if(!(0,Ie.A)(e)&&!(0,Me.A)(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=ov();function n(e){let n=(0,u.A)(t,{name:e});return r(n)}function i(e){let n=(0,u.A)(t,{group:e});return r(n)}function r(e){return Ke((0,s.A)(e,"acp"))}(0,Ie.A)(e)&&(e=[e]);let o="";if((0,Me.A)(e)){let t=(0,s.A)(e,function(e){return i(e)}),r=(0,s.A)(e,function(e){return n(e)}),a=te(t,r);a=(0,u.A)(a,ev),o=(0,Y.A)(a,",")}return o}var av=sv,lv=n(8332);function uv(e,t){if(!(0,lv.A)(e))return"invalid eleParent";if((0,Ie.A)(t))e.insertAdjacentHTML("beforeend",t);else{if(!(0,lv.A)(t))return"invalid itemChild";e.appendChild(t)}}var cv=uv;function dv(e){let t=document.querySelector(e);return t}var hv=dv;function pv(e,t=1e3){t=(0,Be.A)(t),t<=0&&(t=1e3);let n={},i=[];return(0,a.A)((0,j.A)(e,"files",[]),function(e,r){let o=e.size,s=o/1024/1024;s>t&&(n[r]=`file size[${s}]mb > ${t}mb`),i.push(e)}),{files:i,errs:n}}var fv=pv;function gv(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(t){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}function mv(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(0,et.A)()&&gv();var vv=mv;function yv(e={}){let t=(0,j.A)(e,"kind","*"),n=(0,j.A)(e,"multiple");(0,Ne.A)(n)||(n=!1);let i=(0,j.A)(e,"entireHierarchy");(0,Ne.A)(i)||(i=!1),i&&!n&&(n=!0);let r=(0,j.A)(e,"sizeMbLimit");(0,Le.A)(r)||(r=1e3),r=(0,Be.A)(r);let o=(0,xe.A)(),s="drf"+(0,Zm.A)(),a="GrpDomReadFile";(0,Qm.A)(`[name=${a}]`);let l=av(t),u=n?"multiple":"",c=i?"webkitdirectory":"",d=`<div name="${a}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${s}" type="file" accept="${l}" ${u} ${c} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;cv(document.querySelector("body"),d);let h=hv("#"+s),p=!1;function f(e){p=!0;let t=this,n=fv(t,r);o.resolve(n),h.removeEventListener("change",f,!0),h.removeEventListener("cancel",g,!0),i||window.removeEventListener("focus",m),(0,Qm.A)(`[name=${a}]`)}function g(e){p||f.call(h,e)}function m(e){setTimeout(()=>{p||f.call(h,e)},1500)}return h.addEventListener("change",f,!0),h.addEventListener("cancel",g,!0),i||window.addEventListener("focus",m),vv(h,"click"),o}var Cv=yv,wv=n(8441);function xv(e){if(!(0,be.A)(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=(0,s.A)(e,function(e){return(0,wv.A)(e)});return Promise.all(t)}var bv=xv;function _v(e={}){let t=(0,j.A)(e,"kind","*"),n=(0,j.A)(e,"multiple");(0,Ne.A)(n)||(n=!1);let i=(0,j.A)(e,"entireHierarchy");(0,Ne.A)(i)||(i=!1);let r=(0,j.A)(e,"sizeMbLimit");(0,Le.A)(r)||(r=1e3),r=(0,Be.A)(r);let o=(0,xe.A)(),s=[];return Cv({kind:t,multiple:n,entireHierarchy:i,sizeMbLimit:r}).then(function(e){let t=(0,xe.A)(),n=(0,j.A)(e,"errs",{}),i=(0,j.A)(e,"files",[]);return(0,De.A)(n)?t.reject(n):t.resolve(i),t}).then(function(e){return(0,a.A)(e,function(e){s.push({name:e.name,size:e.size,type:e.type})}),bv(e)}).then(function(e){(0,a.A)(e,function(e,t){s[t]["u8a"]=e}),o.resolve(s)}).catch(function(e){o.reject(e)}),o}var Sv=_v;const Av=536870888;class Tv extends yt{}function Ev(e){return e instanceof Tv}function Dv(e,t){return new Tv(`Part "${e}" is ${t.toLocaleString("en-US")} bytes, over the ${Av.toLocaleString("en-US")}-character maximum string length this runtime supports, so it cannot be read into memory whole.\n - streamXlsxRows(input) reads a worksheet of any size, a row at a time.\n - The workbook is not damaged; this is a limit of the buffered reader.`)}function Mv(e,t){try{return new TextDecoder("utf-8").decode(e)}catch(n){const i=n instanceof RangeError||"ERR_STRING_TOO_LONG"===n?.code||e.length>Av;if(i)throw Dv(t,e.length);throw n}}function Iv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("person"!==i.local)continue;const e=i.attrs.id,t=i.attrs.displayName;if(!e||void 0===t)continue;const r={id:e,displayName:t};i.attrs.userId&&(r.userId=i.attrs.userId),i.attrs.providerId&&(r.providerId=i.attrs.providerId),n.push(r)}return n}function Rv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("threadedComment"!==i.local)continue;const e=i.attrs.id,t=i.attrs.personId;if(!e||!t)continue;const r={id:e,personId:t,text:zn(i,"text")};i.attrs.ref&&(r.ref=i.attrs.ref),i.attrs.parentId&&(r.parentId=i.attrs.parentId),i.attrs.dT&&(r.date=i.attrs.dT),"1"!==i.attrs.done&&"true"!==i.attrs.done||(r.done=!0);const o=Gn(i,"mentions");if(o){const e=[];for(const t of Vn(o)){if("mention"!==t.local)continue;const n=t.attrs.mentionpersonId,i=t.attrs.mentionId;n&&i&&e.push({mentionPersonId:n,mentionId:i,startIndex:Un(t.attrs.startIndex,0),length:Un(t.attrs.length,0)})}e.length>0&&(r.mentions=e)}n.push(r)}return n}function Lv(e){const t=Bn(e),n=[];for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("Relationship"===e){const e=i.attrs["Id"]??"",t=i.attrs["Type"]??"",r=i.attrs["Target"]??"",o=i.attrs["TargetMode"];if(e&&t&&r){const i={id:e,type:t,target:r};o&&(i.targetMode=o),n.push(i)}}}return n}function Pv(e,t){if(t.startsWith("/"))return t.slice(1);const n=e.split("/").filter(Boolean),i=t.split("/").filter(Boolean);for(const r of i)".."===r?n.pop():"."!==r&&n.push(r);return n.join("/")}function Nv(e){const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function Fv(e){for(const t of Object.keys(e))if(t.endsWith(":id")&&e[t].startsWith("rId"))return e[t]}const Ov=new Set(["n","s","b","e","str"]);function kv(e,t){const n=Bn(e),i=Gn(n,"externalBook");let r,o="";if(i&&t){const e=Lv(t),n=i.attrs["r:id"]??i.attrs.id,s=n?e.find(e=>e.id===n):void 0;s&&(o=s.target,"External"!==s.targetMode&&"Internal"!==s.targetMode||(r=s.targetMode))}const s=Bv(i),a=Gv(i),l=Vv(i),u={target:o,sheetNames:s,sheetData:a};return r&&(u.targetMode=r),l&&l.length>0&&(u.definedNames=l),u}function Bv(e){const t=e?Gn(e,"sheetNames"):void 0;if(!t)return[];const n=[];for(const i of Vn(t))"sheetName"===i.local&&n.push(i.attrs.val??"");return n}function Gv(e){const t=e?Gn(e,"sheetDataSet"):void 0;if(!t)return[];const n=[];for(const i of Vn(t)){if("sheetData"!==i.local)continue;const e=Un(i.attrs.sheetId,0),t=[];for(const n of Vn(i))if("row"===n.local)for(const e of Vn(n)){if("cell"!==e.local)continue;const n=e.attrs.r??"";if(!n)continue;const i=e.attrs.t??"n",r=Ov.has(i)?i:"n",o=zn(e,"v");t.push({ref:n,type:r,value:Hv(r,o)})}n.push({sheetId:e,cells:t})}return n}function Vv(e){const t=e?Gn(e,"definedNames"):void 0;if(!t)return[];const n=[];for(const i of Vn(t)){if("definedName"!==i.local)continue;const e={name:i.attrs.name??""};if(i.attrs.refersTo&&(e.refersTo=i.attrs.refersTo),void 0!==i.attrs.sheetId){const t=Un(i.attrs.sheetId,NaN);Number.isNaN(t)||(e.sheetId=t)}e.name&&n.push(e)}return n}function Hv(e,t){switch(e){case"n":case"s":{const e=Number(t);return Number.isFinite(e)?e:0}case"b":return"1"===t||"true"===t;case"e":case"str":return t}}const zv="http://www.wps.cn/officeDocument/2017/relationships/cellimage";function Uv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("cellImage"!==i.local)continue;const e=$v(i);e&&n.push(e)}return n}function Wv(e,t){const n=[],i=new Set;for(const r of e){if(i.has(r.id))continue;const e=t.get(r.embedRId);if(!e)continue;const o={id:r.id,data:e.data,type:e.type};r.description&&(o.description=r.description),n.push(o),i.add(r.id)}return n}function $v(e){const t=Gn(e,"pic");if(!t)return;const n=Gn(t,"nvPicPr"),i=n?Gn(n,"cNvPr"):void 0,r=i?.attrs.name;if(!r)return;const o=Gn(t,"blipFill"),s=o?Gn(o,"blip"):void 0,a=s?.attrs["r:embed"]??s?.attrs.embed;if(!a)return;const l={id:r,embedRId:a},u=i?.attrs.descr;return u&&(l.description=u),l}function jv(e){const t=Bn(e),n="pivotCacheDefinition"===t.local?t:Gn(t,"pivotCacheDefinition");if(!n)return;const i={cacheId:0,fieldNames:[]},r=Gn(n,"cacheSource");if(r){const e=r.attrs.type;"worksheet"!==e&&"external"!==e&&"consolidation"!==e&&"scenario"!==e||(i.sourceType=e);const t=Gn(r,"worksheetSource");t&&(t.attrs.ref?i.sourceRef=t.attrs.ref:t.attrs.name&&(i.sourceRef=t.attrs.name),t.attrs.sheet&&(i.sourceSheet=t.attrs.sheet))}const o=Gn(n,"cacheFields");if(o)for(const s of Vn(o)){if("cacheField"!==s.local)continue;const e=s.attrs.name??"";i.fieldNames.push(e)}return i}function Xv(e){const t=Bn(e),n="pivotTableDefinition"===t.local?t:Gn(t,"pivotTableDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r=Un(n.attrs.cacheId,NaN),o={name:i,cacheId:Number.isNaN(r)?0:r,location:"",fields:[]},s=Gn(n,"location");if(s){s.attrs.ref&&(o.location=s.attrs.ref);const e=Un(s.attrs.firstHeaderRow,NaN);Number.isNaN(e)||(o.firstHeaderRow=e);const t=Un(s.attrs.firstDataRow,NaN);Number.isNaN(t)||(o.firstDataRow=t);const n=Un(s.attrs.firstDataCol,NaN);Number.isNaN(n)||(o.firstDataCol=n);const i=Un(s.attrs.rowPageCount,NaN);Number.isNaN(i)||(o.rowPageCount=i);const r=Un(s.attrs.colPageCount,NaN);Number.isNaN(r)||(o.colPageCount=r)}const a=Gn(n,"pivotFields"),l=[];if(a)for(const h of Vn(a)){if("pivotField"!==h.local)continue;const e=h.attrs.axis,t="1"===h.attrs.dataField||"true"===h.attrs.dataField;let n="hidden";"axisRow"===e?n="row":"axisCol"===e?n="col":"axisPage"===e?n="page":("axisValues"===e||t)&&(n="data"),l.push({axis:n,raw:h})}const u=Gn(n,"dataFields"),c=new Map;if(u)for(const h of Vn(u)){if("dataField"!==h.local)continue;const e=Un(h.attrs.fld,NaN);if(Number.isNaN(e))continue;const t={};h.attrs.name&&(t.name=h.attrs.name);const n=Kv(h.attrs.subtotal);n&&(t.subtotal=n),c.set(e,t)}for(let h=0;h<l.length;h++){const{axis:e}=l[h],t={name:`field${h+1}`,axis:e};if("data"===e){const e=c.get(h);t.function=e?.subtotal?e.subtotal:"sum",e?.name&&(t.displayName=e.name)}o.fields.push(t)}const d=Gn(n,"pivotTableStyleInfo");return d?.attrs.name&&(o.styleName=d.attrs.name),n.attrs.dataCaption&&(o.dataCaption=n.attrs.dataCaption),o}function Yv(e,t){for(let n=0;n<e.fields.length;n++){const i=t.fieldNames[n];i&&(e.fields[n].name=i)}}function Kv(e){if(e)switch(e){case"sum":case"count":case"average":case"max":case"min":case"product":case"countNums":case"stdDev":case"stdDevp":case"var":case"varp":return e;case"countA":return"count";default:return}}function qv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("slicer"!==i.local)continue;const e=i.attrs.name,t=i.attrs.cache;if(!e||!t)continue;const r={name:e,cache:t};if(i.attrs.caption&&(r.caption=i.attrs.caption),void 0!==i.attrs.columnCount){const e=Un(i.attrs.columnCount,NaN);Number.isNaN(e)||(r.columnCount=e)}if(i.attrs.style&&(r.style=i.attrs.style),i.attrs.sortOrder&&(r.sortOrder=i.attrs.sortOrder),void 0!==i.attrs.rowHeight){const e=Un(i.attrs.rowHeight,NaN);Number.isNaN(e)||(r.rowHeight=e)}n.push(r)}return n}function Zv(e){const t=Bn(e),n="slicerCacheDefinition"===t.local?t:Gn(t,"slicerCacheDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r={name:i};n.attrs.sourceName&&(r.sourceName=n.attrs.sourceName);const o=ey(n);o.length>0&&(r.pivotTables=o);const s=ty(n);return s&&(r.tableSource=s),r}function Qv(e){const t=Bn(e),n=[];for(const i of Vn(t)){if("timeline"!==i.local)continue;const e=i.attrs.name,t=i.attrs.cache;if(!e||!t)continue;const r={name:e,cache:t};i.attrs.caption&&(r.caption=i.attrs.caption),i.attrs.style&&(r.style=i.attrs.style),i.attrs.level&&(r.level=i.attrs.level),void 0!==i.attrs.showHeader&&(r.showHeader=ny(i.attrs.showHeader)),void 0!==i.attrs.showSelectionLabel&&(r.showSelectionLabel=ny(i.attrs.showSelectionLabel)),void 0!==i.attrs.showTimeLevel&&(r.showTimeLevel=ny(i.attrs.showTimeLevel)),void 0!==i.attrs.showHorizontalScrollbar&&(r.showHorizontalScrollbar=ny(i.attrs.showHorizontalScrollbar)),n.push(r)}return n}function Jv(e){const t=Bn(e),n="timelineCacheDefinition"===t.local?t:Gn(t,"timelineCacheDefinition");if(!n)return;const i=n.attrs.name;if(!i)return;const r={name:i};n.attrs.sourceName&&(r.sourceName=n.attrs.sourceName);const o=ey(n);return o.length>0&&(r.pivotTables=o),r}function ey(e){const t=Gn(e,"pivotTables");if(!t)return[];const n=[];for(const i of Vn(t)){if("pivotTable"!==i.local)continue;const e=i.attrs.name;if(!e)continue;const t=Un(i.attrs.tabId,NaN);Number.isNaN(t)||n.push({tabId:t,name:e})}return n}function ty(e){const t=Gn(e,"extLst");if(t)for(const n of Vn(t)){if("ext"!==n.local)continue;const e=Gn(n,"tableSlicerCache");if(!e)continue;const t=e.attrs.name??e.attrs.tableId;if(!t)continue;const i={name:t};return e.attrs.column&&(i.column=e.attrs.column),i}}function ny(e){return"1"===e||"true"===e}const iy=new Map([["barChart","bar"],["bar3DChart","bar3D"],["lineChart","line"],["line3DChart","line3D"],["pieChart","pie"],["pie3DChart","pie3D"],["doughnutChart","doughnut"],["areaChart","area"],["area3DChart","area3D"],["scatterChart","scatter"],["bubbleChart","bubble"],["radarChart","radar"],["surfaceChart","surface"],["surface3DChart","surface3D"],["stockChart","stock"],["ofPieChart","ofPie"]]);function ry(e){const t=Bn(e),n="chartSpace"===t.local?t:Hn(t,"chartSpace");if(!n)return;const i=Gn(n,"chart");if(!i)return{kinds:[],seriesCount:0};const r={kinds:[],seriesCount:0},o=Rl(i);void 0!==o&&(r.title=o);const s=ml(i);void 0!==s&&(r.titleOverlay=s);const a=vl(i);void 0!==a&&(r.titleRotation=a);const l=yl(i);void 0!==l&&(r.titleFontSize=l);const u=Cl(i);void 0!==u&&(r.titleBold=u);const c=wl(i);void 0!==c&&(r.titleItalic=c);const d=xl(i);void 0!==d&&(r.titleColor=d);const h=Dl(i);void 0!==h&&(r.titleStrike=h);const p=Ml(i);void 0!==p&&(r.titleUnderline=p);const f=Il(i);void 0!==f&&(r.titleFontFamily=f);const g=gl(i);void 0!==g&&(r.titleLayout=g);const m=bl(i);void 0!==m&&(r.titleFillColor=m);const v=_l(i);void 0!==v&&(r.titleBorderColor=v);const y=Sl(i);void 0!==y&&(r.titleBorderWidth=y);const C=Al(i);void 0!==C&&(r.titleBorderDash=C);const w=Tl(i);void 0!==w&&(r.titleBorderCap=w);const x=El(i);void 0!==x&&(r.titleBorderCompound=x);const b=Hc(i);void 0!==b&&(r.autoTitleDeleted=b);const _=Gn(i,"plotArea");if(_){let e=0;const t=[];let n,i,o,s,a,l,u,c,d,h,p,f,g,m,v,y;for(const M of Vn(_)){const C=iy.get(M.local);if(!C)continue;if(r.kinds.includes(C)||r.kinds.push(C),void 0===d&&(d=Zp(M,C)),void 0!==n||"bar"!==C&&"bar3D"!==C||(n=rf(M)),void 0!==l||"bar"!==C&&"bar3D"!==C||(l=sf(M)),void 0!==u||"bar"!==C&&"bar3D"!==C||(u=lf(M)),void 0!==i||"line"!==C&&"line3D"!==C||(i=cf(M)),void 0!==o||"area"!==C&&"area3D"!==C||(o=cf(M)),void 0===a&&"doughnut"===C&&(a=of(M)),void 0!==c||"pie"!==C&&"pie3D"!==C&&"doughnut"!==C&&"ofPie"!==C||(c=uf(M)),void 0===h&&"scatter"===C&&(h=Qp(M)),void 0!==p||"line"!==C&&"line3D"!==C&&"area"!==C&&"area3D"!==C||(p=Jp(M)),void 0!==f||"line"!==C&&"line3D"!==C&&"stock"!==C||(f=ef(M)),void 0!==g||"bar"!==C&&"ofPie"!==C||(g=tf(M)),void 0===m&&("line"===C||"line3D"===C||"stock"===C)){const e=Gn(M,"upDownBars");void 0!==e&&(m=!0,v=af(e))}void 0===y&&"line"===C&&(y=nf(M));let w=0;for(const n of Vn(M))"ser"===n.local&&(e++,t.push(_p(n,C,w)),w++);if(void 0===s){const e=Gn(M,"dLbls");if(e){const t=vh(e);t&&(s=t)}}}r.seriesCount=e,t.length>0&&(r.series=t),void 0!==n&&(r.barGrouping=n),void 0!==i&&(r.lineGrouping=i),void 0!==o&&(r.areaGrouping=o),s&&(r.dataLabels=s),void 0!==a&&(r.holeSize=a),void 0!==l&&(r.gapWidth=l),void 0!==u&&(r.overlap=u),void 0!==c&&(r.firstSliceAng=c),void 0!==d&&(r.varyColors=d),void 0!==h&&(r.scatterStyle=h),void 0!==p&&(r.dropLines=p),void 0!==f&&(r.hiLowLines=f),void 0!==g&&(r.serLines=g),void 0!==m&&(r.upDownBars=m),void 0!==v&&(r.upDownBarsGapWidth=v),void 0!==y&&(r.showLineMarkers=y);const C=jp(_);void 0!==C&&(r.axes=C);const w=Ud(_);void 0!==w&&(r.dataTable=w);const x=Xp(_);void 0!==x&&(r.plotAreaLayout=x);const b=Yp(_);void 0!==b&&(r.plotAreaFillColor=b);const S=Kp(_);void 0!==S&&(r.plotAreaBorderColor=S);const A=qp(_);void 0!==A&&(r.plotAreaBorderWidth=A);const T=Ia(_);void 0!==T&&(r.plotAreaBorderDash=T);const E=ga(_);void 0!==E&&(r.plotAreaBorderCap=E);const D=ma(_);void 0!==D&&(r.plotAreaBorderCompound=D)}const S=au(i);if(void 0!==S&&(r.legend=S),void 0!==S&&!1!==S){const e=lu(i);void 0!==e&&(r.legendOverlay=e);const t=uu(i);void 0!==t&&(r.legendEntries=t);const n=cu(i);void 0!==n&&(r.legendFontSize=n);const o=du(i);void 0!==o&&(r.legendBold=o);const s=hu(i);void 0!==s&&(r.legendItalic=s);const a=pu(i);void 0!==a&&(r.legendUnderline=a);const l=fu(i);void 0!==l&&(r.legendStrikethrough=l);const u=gu(i);void 0!==u&&(r.legendFontColor=u);const c=mu(i);void 0!==c&&(r.legendFontFamily=c);const d=vu(i);void 0!==d&&(r.legendLayout=d);const h=yu(i);void 0!==h&&(r.legendFillColor=h);const p=Cu(i);void 0!==p&&(r.legendBorderColor=p);const f=wu(i);void 0!==f&&(r.legendBorderWidth=f);const g=xu(i);void 0!==g&&(r.legendBorderDash=g);const m=bu(i);void 0!==m&&(r.legendBorderCap=m);const v=_u(i);void 0!==v&&(r.legendBorderCompound=v)}const A=ay(i);void 0!==A&&(r.dispBlanksAs=A);const T=ly(i);void 0!==T&&(r.plotVisOnly=T);const E=uy(i);void 0!==E&&(r.showDLblsOverMax=E);const D=cy(n);void 0!==D&&(r.roundedCorners=D);const M=dy(n);void 0!==M&&(r.style=M);const I=hy(n);void 0!==I&&(r.lang=I);const R=py(n);void 0!==R&&(r.date1904=R);const L=fy(n);void 0!==L&&(r.protection=L);const P=Pa(i);void 0!==P&&(r.view3D=P);const N=Oa(i);void 0!==N&&(r.floorThickness=N);const F=ka(i);void 0!==F&&(r.sideWallThickness=F);const O=Ba(i);void 0!==O&&(r.backWallThickness=O);const k=oy(n);void 0!==k&&(r.chartSpaceFillColor=k);const B=sy(n);void 0!==B&&(r.chartSpaceBorderColor=B);const G=Ma(n);void 0!==G&&(r.chartSpaceBorderWidth=G);const V=Ia(n);void 0!==V&&(r.chartSpaceBorderDash=V);const H=ga(n);void 0!==H&&(r.chartSpaceBorderCap=H);const z=ma(n);return void 0!==z&&(r.chartSpaceBorderCompound=z),r}function oy(e){return Ea(e)}function sy(e){return Da(e)}function ay(e){const t=Gn(e,"dispBlanksAs");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"zero":return"zero";case"span":return"span";case"gap":return;default:return}}function ly(e){const t=Gn(e,"plotVisOnly");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function uy(e){const t=Gn(e,"showDLblsOverMax");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"0":case"false":return!1;case"1":case"true":return;default:return}}function cy(e){const t=Gn(e,"roundedCorners");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}function dy(e){const t=Gn(e,"style");if(!t)return;const n=t.attrs.val;if("string"!==typeof n)return;if(!/^\d+$/.test(n))return;const i=Number(n);return Number.isInteger(i)&&!(i<1||i>48)?i:void 0}function hy(e){const t=Gn(e,"lang");if(!t)return;const n=t.attrs.val;return"string"===typeof n&&/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(n)?n:void 0}function py(e){const t=Gn(e,"date1904");if(!t)return;const n=t.attrs.val;if("string"===typeof n)switch(n){case"1":case"true":return!0;case"0":case"false":return;default:return}}function fy(e){const t=Gn(e,"protection");if(!t)return;const n={},i=gy(t,"chartObject");void 0!==i&&(n.chartObject=i);const r=gy(t,"data");void 0!==r&&(n.data=r);const o=gy(t,"formatting");void 0!==o&&(n.formatting=o);const s=gy(t,"selection");void 0!==s&&(n.selection=s);const a=gy(t,"userInterface");return void 0!==a&&(n.userInterface=a),n}function gy(e,t){const n=Gn(e,t);if(!n)return;const i=n.attrs.val;if("string"===typeof i)switch(i){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}const my=Object.freeze([208,207,17,224,161,177,26,225]);function vy(e){if(e.length<my.length)return!1;for(let t=0;t<my.length;t++)if(e[t]!==my[t])return!1;return!0}async function yy(e,t=At){const n=Number.isFinite(t)&&t>0?t:At,i=e.getReader(),r=[];let o=0;try{for(;;){const{done:e,value:t}=await i.read();if(e)break;if(t){if(o+=t.length,o>n)throw new yt(`Input stream exceeds the maximum of ${n} bytes. Raise \`maxInputBytes\` if the file really is this large.`);r.push(t)}}if(0===r.length)return new Uint8Array(0);if(1===r.length)return r[0];const e=new Uint8Array(o);let t=0;for(const n of r)e.set(n,t),t+=n.length;return e}finally{try{await i.cancel()}catch{}try{i.releaseLock()}catch{}}}function Cy(e){return"object"===typeof e&&null!==e&&"function"===typeof e.getReader}async function wy(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(Cy(e))return yy(e,t);throw new yt("Unsupported input type. Expected Uint8Array, ArrayBuffer, or ReadableStream<Uint8Array>.")}function xy(e){let t=0;return new TransformStream({transform(n,i){if(t+=n.length,t>e)throw new Ct(`Decompressed size exceeds limit of ${e} bytes (possible zip bomb)`);i.enqueue(n)}})}const by=1048576;function _y(e){let t=0;return new ReadableStream({pull(n){if(t>=e.length)return void n.close();const i=Math.min(t+by,e.length);n.enqueue(e.subarray(t,i)),t=i}})}const Sy=67324752,Ay=33639248,Ty=101010256,Ey=134695760,Dy=101075792,My=117853008,Iy=4294967295,Ry=65535,Ly=1032,Py=1;async function Ny(e,t=St){if(tn())try{const n=new DecompressionStream("deflate-raw"),i=n.writable.getWriter(),r=n.readable.getReader();i.write(e).catch(()=>{}),i.close().catch(()=>{});const o=[];let s=0;for(;;){const{done:e,value:n}=await r.read();if(e)break;if(s+=n.length,s>t){try{await r.cancel()}catch{}throw new Ct(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`)}o.push(n)}const a=new Uint8Array(s);let l=0;for(const e of o)a.set(e,l),l+=e.length;return a}catch(n){if(n instanceof Ct)throw n}return $t(e,t)}class Fy{data;view;centralDir=[];entryMap=new Map;maxDecompressedBytes;constructor(e,t=St){if(this.data=e,this.maxDecompressedBytes=t,e.length<22)throw new Ct("Data too small to be a valid ZIP archive");this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.readEndOfCentralDir()}entries(){return this.centralDir.map(e=>e.fileName)}has(e){return this.entryMap.has(e)}declaredSize(e){const t=this.entryMap.get(e);if(!t?.uncompressedSize)return;const n=0===t.compressionMethod?t.compressedSize:t.compressedSize*Ly;return t.compressedSize>0&&t.uncompressedSize>n?void 0:t.uncompressedSize}async extract(e){const t=this.entryMap.get(e);if(!t)throw new Ct(`Entry not found: ${e}`);return this.extractEntry(t)}extractStream(e){const t=this.entryMap.get(e);if(!t)throw new Ct(`Entry not found: ${e}`);return this.extractEntryStream(t)}async extractAll(){const e=new Map;for(const t of this.centralDir){if(t.fileName.endsWith("/"))continue;const n=await this.extractEntry(t);e.set(t.fileName,n)}return e}readEndOfCentralDir(){const e=Math.max(0,this.data.length-65557);let t=-1;for(let o=this.data.length-22;o>=e;o--)if(this.view.getUint32(o,!0)===Ty){t=o;break}if(-1===t)throw new Ct("End of Central Directory not found — not a valid ZIP file");let n=this.view.getUint32(t+12,!0),i=this.view.getUint32(t+16,!0),r=this.view.getUint16(t+10,!0);if(r===Ry||n===Iy||i===Iy){const e=this.readZip64EndOfCentralDir(t);r=e.entryCount,n=e.centralDirSize,i=e.centralDirOffset}this.readCentralDirectory(i,n,r)}readZip64EndOfCentralDir(e){const t=e-20;if(t<0||this.view.getUint32(t,!0)!==My)throw new Ct("ZIP64 End of Central Directory locator not found");const n=this.readUint64(t+8,"ZIP64 EOCD offset");if(n+56>this.data.length)throw new Ct("ZIP64 End of Central Directory record extends beyond file");if(this.view.getUint32(n,!0)!==Dy)throw new Ct("Invalid ZIP64 End of Central Directory signature");return{entryCount:this.readUint64(n+32,"ZIP64 entry count"),centralDirSize:this.readUint64(n+40,"ZIP64 central directory size"),centralDirOffset:this.readUint64(n+48,"ZIP64 central directory offset")}}readUint64(e,t){if(e+8>this.data.length)throw new Ct(`${t} extends beyond file`);const n=this.view.getBigUint64(e,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Ct(`${t} (${n}) exceeds the addressable range`);return Number(n)}readCentralDirectory(e,t,n){let i=e;for(let r=0;r<n;r++){if(i+46>this.data.length)throw new Ct("Central Directory entry extends beyond file");const e=this.view.getUint32(i,!0);if(e!==Ay)throw new Ct(`Invalid Central Directory signature at offset ${i}: 0x${e.toString(16)}`);const t=this.view.getUint16(i+8,!0),n=this.view.getUint16(i+10,!0),r=this.view.getUint32(i+16,!0);let o=this.view.getUint32(i+20,!0),s=this.view.getUint32(i+24,!0);const a=this.view.getUint16(i+28,!0),l=this.view.getUint16(i+30,!0),u=this.view.getUint16(i+32,!0);let c=this.view.getUint32(i+42,!0);const d=this.data.subarray(i+46,i+46+a),h=(new TextDecoder).decode(d);if(o===Iy||s===Iy||c===Iy){const e=this.readZip64Extra(i+46+a,l,s===Iy,o===Iy,c===Iy,h);void 0!==e.uncompressedSize&&(s=e.uncompressedSize),void 0!==e.compressedSize&&(o=e.compressedSize),void 0!==e.localHeaderOffset&&(c=e.localHeaderOffset)}const p=0!==(8&t),f={fileName:h,compressionMethod:n,compressedSize:o,uncompressedSize:s,crc32:r,localHeaderOffset:c,hasDataDescriptor:p};this.centralDir.push(f),this.entryMap.set(h,f),i+=46+a+l+u}}readZip64Extra(e,t,n,i,r,o){const s=Math.min(e+t,this.data.length);let a=e;while(a+4<=s){const e=this.view.getUint16(a,!0),t=this.view.getUint16(a+2,!0),s=a+4;if(e!==Py){a=s+t;continue}const l=s+t;let u=s;const c={},d=e=>{if(u+8>l)throw new Ct(`Truncated ZIP64 extra field for entry: ${o}`);const t=this.readUint64(u,e);return u+=8,t};return n&&(c.uncompressedSize=d("ZIP64 uncompressed size")),i&&(c.compressedSize=d("ZIP64 compressed size")),r&&(c.localHeaderOffset=d("ZIP64 local header offset")),c}throw new Ct(`Missing ZIP64 extra field for entry: ${o}`)}async extractEntry(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new Ct("Local file header extends beyond file");const n=this.view.getUint32(t,!0);if(n!==Sy)throw new Ct(`Invalid local file header signature at offset ${t}`);const i=this.view.getUint16(t+26,!0),r=this.view.getUint16(t+28,!0),o=t+30+i+r;let{compressedSize:s,uncompressedSize:a,crc32:l}=e;if(e.hasDataDescriptor&&0===s){const e=this.view.getUint32(t+18,!0);e>0&&e!==Iy&&(s=e);const n=this.view.getUint32(t+22,!0);if(n>0&&n!==Iy&&(a=n),0===s){const e=this.findDataDescriptor(o);e&&(l=e.crc,s=e.compressedSize,a=e.uncompressedSize)}}if(o+s>this.data.length)throw new Ct(`Compressed data extends beyond file for entry: ${e.fileName}`);const u=this.data.subarray(o,o+s);let c;if(0===e.compressionMethod)c=u;else{if(8!==e.compressionMethod)throw new Ct(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`);if(0===s&&0===a)c=new Uint8Array(0);else{const e=a>0?Math.min(a,this.maxDecompressedBytes):this.maxDecompressedBytes;c=await Ny(u,e)}}if(0!==l&&c.length>0){const t=Nt(c);if(t!==l)throw new Ct(`CRC-32 mismatch for ${e.fileName}: expected 0x${l.toString(16)}, got 0x${t.toString(16)}`)}return c}extractEntryStream(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new Ct("Local file header extends beyond file");const n=this.view.getUint32(t,!0);if(n!==Sy)throw new Ct(`Invalid local file header signature at offset ${t}`);const i=this.view.getUint16(t+26,!0),r=this.view.getUint16(t+28,!0),o=t+30+i+r;let{compressedSize:s}=e;if(e.hasDataDescriptor&&0===s){const e=this.view.getUint32(t+18,!0);if(e>0&&e!==Iy&&(s=e),0===s){const e=this.findDataDescriptor(o);e&&(s=e.compressedSize)}}if(o+s>this.data.length)throw new Ct(`Compressed data extends beyond file for entry: ${e.fileName}`);const a=this.data.subarray(o,o+s);if(0===e.compressionMethod)return _y(a);if(8===e.compressionMethod){if(0===s&&0===e.uncompressedSize)return new ReadableStream({start(e){e.close()}});const t=e.uncompressedSize>0?Math.min(e.uncompressedSize,this.maxDecompressedBytes):this.maxDecompressedBytes;if(tn()){const e=new ReadableStream({start(e){e.enqueue(a),e.close()}});return e.pipeThrough(new DecompressionStream("deflate-raw")).pipeThrough(xy(t))}return _y($t(a,t))}throw new Ct(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`)}findDataDescriptor(e){for(let t=e;t<this.data.length-16;t++)if(this.view.getUint32(t,!0)===Ey)return{crc:this.view.getUint32(t+4,!0),compressedSize:this.view.getUint32(t+8,!0),uncompressedSize:this.view.getUint32(t+12,!0)};return null}}function Oy(e){const t=Bn(e),n=new Map,i=new Map;for(const r of t.children){if("string"===typeof r)continue;const e=r.local||r.tag;if("Default"===e){const e=r.attrs["Extension"],t=r.attrs["ContentType"];e&&t&&n.set(e,t)}else if("Override"===e){const e=r.attrs["PartName"],t=r.attrs["ContentType"];e&&t&&i.set(e,t)}}return{defaults:n,overrides:i}}function ky(e){const t=Bn(e),n=[];for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;"si"===e&&n.push(By(i))}return n}function By(e){const t=[];let n=null;for(const o of e.children){if("string"===typeof o)continue;const e=o.local||o.tag;"t"===e?n=Gy(o):"r"===e&&t.push(o)}if(0===t.length)return{text:En(n??"")};const i=[],r=[];for(const o of t){let e,t="";for(const i of o.children){if("string"===typeof i)continue;const n=i.local||i.tag;"t"===n?t=Gy(i):"rPr"===n&&(e=Vy(i))}const n=En(t);r.push(n),i.push(e?{text:n,font:e}:{text:n})}return{text:r.join(""),richText:i}}function Gy(e){return e.text??""}function Vy(e){const t={};for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;switch(e){case"b":t.bold="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"i":t.italic="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"u":{const e=n.attrs["val"];t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs["val"]&&"false"!==n.attrs["val"];break;case"sz":n.attrs["val"]&&(t.size=Number(n.attrs["val"]));break;case"rFont":n.attrs["val"]&&(t.name=n.attrs["val"]);break;case"color":if(t.color={},n.attrs["rgb"]){const e=n.attrs["rgb"];t.color.rgb=8===e.length?e.slice(2):e}n.attrs["theme"]&&(t.color.theme=Number(n.attrs["theme"])),n.attrs["tint"]&&(t.color.tint=Number(n.attrs["tint"])),n.attrs["indexed"]&&(t.color.indexed=Number(n.attrs["indexed"]));break;case"vertAlign":"superscript"!==n.attrs["val"]&&"subscript"!==n.attrs["val"]||(t.vertAlign=n.attrs["val"]);break;case"family":n.attrs["val"]&&(t.family=Number(n.attrs["val"]));break;case"charset":n.attrs["val"]&&(t.charset=Number(n.attrs["val"]));break;case"scheme":"major"!==n.attrs["val"]&&"minor"!==n.attrs["val"]&&"none"!==n.attrs["val"]||(t.scheme=n.attrs["val"]);break}}return t}function Hy(e){const t=new Map,n=[];let i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u=!1,c="",d="",h=-1,p="";return Rn(e,{onOpenTag(e,t){const n=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(n){case"authors":i=!0;break;case"author":i&&(r=!0,c="");break;case"commentList":o=!0;break;case"comment":o&&(s=!0,d=t["ref"]??"",h=t["authorId"]?Number(t["authorId"]):-1,p="");break;case"text":s&&(a=!0);break;case"r":a&&(l=!0);break;case"t":a&&(u=!0);break}},onText(e){r?c+=e:u&&(p+=e)},onCloseTag(e){const f=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(f){case"authors":i=!1;break;case"author":r&&(n.push(c),r=!1);break;case"commentList":o=!1;break;case"comment":if(s&&d){const e={text:p};if(h>=0&&h<n.length){const t=n[h];t&&(e.author=t)}t.set(d,e),s=!1}break;case"text":a=!1;break;case"r":l=!1;break;case"t":u=!1;break}}}),t}function zy(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n.local||n.tag;if(e===t){const e=n.children.filter(e=>"string"===typeof e).join("");return e||void 0}}}function Uy(e){if(e)return Nr(e)}function Wy(e){const t=Bn(e),n={};for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag,t=i.children.filter(e=>"string"===typeof e).join("");switch(e){case"title":t&&(n.title=t);break;case"subject":t&&(n.subject=t);break;case"creator":t&&(n.creator=t);break;case"keywords":t&&(n.keywords=t);break;case"description":t&&(n.description=t);break;case"lastModifiedBy":t&&(n.lastModifiedBy=t);break;case"category":t&&(n.category=t);break;case"created":if(t){const e=Uy(t);e&&(n.created=e)}break;case"modified":if(t){const e=Uy(t);e&&(n.modified=e)}break}}return n}function $y(e){const t=Bn(e),n={};for(const i of t.children){if("string"===typeof i)continue;const e=i.local||i.tag;if("property"!==e)continue;const t=i.attrs["name"];if(t)for(const r of i.children){if("string"===typeof r)continue;const e=r.local||r.tag,i=r.children.filter(e=>"string"===typeof e).join("");switch(e){case"lpwstr":n[t]=i;break;case"i4":case"i8":case"int":i&&(n[t]=parseInt(i,10));break;case"r8":case"decimal":i&&(n[t]=parseFloat(i));break;case"bool":n[t]="true"===i||"1"===i;break;case"filetime":case"date":if(i){const e=new Date(i);Number.isNaN(e.getTime())||(n[t]=e)}break}break}}return n}function jy(e){const t=Bn(e),n={},i=zy(t,"Company");i&&(n.company=i);const r=zy(t,"Manager");return r&&(n.manager=r),n}const Xy=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Yy(e){const t=new Map;let n=!1,i="";return Rn(e,{onOpenTag(e,r){if("clrScheme"===e||"a:clrScheme"===e)return void(n=!0);if(!n)return;const o=e.includes(":")?e.split(":").pop():e;Xy.includes(o)?i=o:i&&("srgbClr"===o&&r["val"]?t.set(i,r["val"].toUpperCase()):"sysClr"===o&&r["lastClr"]&&t.set(i,r["lastClr"].toUpperCase()))},onCloseTag(e){const t=e.includes(":")?e.split(":").pop():e;"clrScheme"===t&&(n=!1),i&&Xy.includes(t)&&(i="")}}),Xy.map(e=>t.get(e)??"000000")}const Ky="http://schemas.openxmlformats.org/officeDocument/2006/relationships",qy="http://purl.oclc.org/ooxml/officeDocument/relationships";function Zy(e,t){return e===`${Ky}/${t}`||e===`${qy}/${t}`||e.endsWith("/"+t)}function Qy(e,t="(unknown)"){return Mv(e,t)}async function Jy(e,t,n,i){const r=e.declaredSize(t);if(void 0===r||r<=Av)try{return fo(Qy(await e.extract(t),t),n,i)}catch(o){if(!Ev(o))throw o}return go(e.extractStream(t),n,i)}async function eC(e,t){let n,i=await wy(e,t?.maxInputBytes);if(vy(i)){if(!t?.password)throw new bt("xlsx");i=await cg(i,t.password,t.maxSpinCount)}try{n=new Fy(i,t?.maxDecompressedBytes)}catch(K){if(K instanceof Ct)throw K;throw new yt("Failed to open XLSX file: not a valid ZIP archive",void 0,{cause:K})}if(!n.has("[Content_Types].xml"))throw new yt("Invalid XLSX: missing [Content_Types].xml");const r=Qy(await n.extract("[Content_Types].xml"),"[Content_Types].xml");if(Oy(r),!n.has("_rels/.rels"))throw new yt("Invalid XLSX: missing _rels/.rels");const o=Qy(await n.extract("_rels/.rels"),"_rels/.rels"),s=Lv(o),a=s.find(e=>Zy(e.type,"officeDocument"));if(!a)throw new yt("Invalid XLSX: cannot find workbook relationship in _rels/.rels");const l=a.target.startsWith("/")?a.target.slice(1):a.target,u=Nv(l),c=u?`${u}/_rels/${l.slice(u.length+1)}.rels`:`_rels/${l}.rels`;let d=[];if(n.has(c)){const e=Qy(await n.extract(c),c);d=Lv(e)}if(!n.has(l))throw new yt(`Invalid XLSX: missing workbook at ${l}`);const h=Qy(await n.extract(l),l),{sheets:p,dateSystem:f,namedRanges:g,workbookProtection:m,activeSheet:v,pivotCacheRefs:y}=xC(h,t);let C=[];const w=d.find(e=>Zy(e.type,"sharedStrings"));if(w){const e=Pv(u,w.target);if(n.has(e)){const t=Qy(await n.extract(e),e);C=ky(t)}}let x=null;const b=d.find(e=>Zy(e.type,"styles"));if(b){const e=Pv(u,b.target);if(n.has(e)){const t=Qy(await n.extract(e),e);x=kr(t)}}let _;const S=u?`${u}/theme/theme1.xml`:"theme/theme1.xml";if(n.has(S)){const e=Qy(await n.extract(S),S);_=Yy(e)}let A;const T=d.find(e=>Zy(e.type,"person"));if(T){const e=Pv(u,T.target);if(n.has(e)){const t=Qy(await n.extract(e),e);A=Iv(t)}}const E=d.filter(e=>Zy(e.type,"externalLink")).sort((e,t)=>nC(e.id)-nC(t.id)),D=[];for(const q of E){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=iC(e),r=n.has(i)?Qy(await n.extract(i),i):void 0;D.push(kv(t,r))}let M;const I=d.find(e=>e.type===zv);if(I){const e=Pv(u,I.target);if(n.has(e)){const t=Qy(await n.extract(e),e),i=Uv(t),r=iC(e),o=Nv(e),s=new Map;if(n.has(r)){const e=Qy(await n.extract(r),r);for(const t of Lv(e)){if(!Zy(t.type,"image"))continue;const e=Pv(o,t.target);if(!n.has(e))continue;const i=e.split(".").pop()?.toLowerCase()??"",r=rC[i];r&&s.set(t.id,{data:await n.extract(e),type:r})}}const a=Wv(i,s);a.length>0&&(M=a)}}const R=new Map,L=new Map;for(const q of y){const e=d.find(e=>e.id===q.rId);if(!e)continue;const t=Pv(u,e.target);if(!n.has(t))continue;const i=Qy(await n.extract(t),t),r=jv(i);if(!r)continue;r.cacheId=q.cacheId;const o=iC(t);if(n.has(o)){const e=Qy(await n.extract(o),o),t=Lv(e);t.some(e=>Zy(e.type,"pivotCacheRecords"))&&(r.hasRecords=!0)}R.set(q.cacheId,r),L.set(q.rId,r)}const P=y.map(e=>R.get(e.cacheId)).filter(e=>void 0!==e),N=d.filter(e=>Zy(e.type,"slicerCache")).sort((e,t)=>tC(e.target)-tC(t.target)),F=[];for(const q of N){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=Zv(t);i&&F.push(i)}const O=d.filter(e=>Zy(e.type,"timelineCache")).sort((e,t)=>tC(e.target)-tC(t.target)),k=[];for(const q of O){const e=Pv(u,q.target);if(!n.has(e))continue;const t=Qy(await n.extract(e),e),i=Jv(t);i&&k.push(i)}let B;const G=d.find(e=>Zy(e.type,"sheetMetadata"));if(G){const e=Pv(u,G.target);n.has(e)&&(B=Qn(Qy(await n.extract(e),e)))}const V=new Map,H=new Map;for(const q of d)Zy(q.type,"worksheet")?V.set(q.id,Pv(u,q.target)):Zy(q.type,"chartsheet")?H.set(q.id,"chartsheet"):Zy(q.type,"dialogsheet")&&H.set(q.id,"dialogsheet");const z=bC(p,t?.sheets),U=t?.readStyles??!1,W=[];for(const q of z){const e=H.get(q.rId);if(void 0!==e){const t={name:q.name,rows:[],kind:e};"hidden"===q.state&&(t.hidden=!0),"veryHidden"===q.state&&(t.veryHidden=!0),W.push(t);continue}const i=V.get(q.rId);if(!i||!n.has(i))throw new yt(`Invalid XLSX: missing worksheet file for sheet "${q.name}"`);const r=Nv(i),o=iC(i);let s;if(n.has(o)){const e=Qy(await n.extract(o),o);s=Lv(e)}const a={sharedStrings:C,styles:x,readStyles:U,dateSystem:f,worksheetRels:s,maxRows:t?.maxRows,range:t?.range,maxTotalCells:t?.maxTotalCells,sparse:t?.sparse,dynamicArrayCm:B,sheetName:q.name,onWarning:t?.onWarning},l=await Jy(n,i,q.name,a);if("hidden"===q.state&&(l.hidden=!0),"veryHidden"===q.state&&(l.veryHidden=!0),s){const e=s.find(e=>Zy(e.type,"drawing"));if(e){const t=Pv(r,e.target),i=await oC(n,t);if(i.images.length>0&&(l.images=i.images),i.textBoxes.length>0&&(l.textBoxes=i.textBoxes),i.chartRefs.length>0){const e=[];for(const t of i.chartRefs){if(!n.has(t.path))continue;const i=Qy(await n.extract(t.path),t.path),r=ry(i);r&&(t.anchor&&(r.anchor=t.anchor),t.altText&&(r.altText=t.altText),t.frameTitle&&(r.frameTitle=t.frameTitle),e.push(r))}e.length>0&&(l.charts=e)}}}if(s){const e=s.find(e=>Zy(e.type,"comments"));if(e){const t=Pv(r,e.target);if(n.has(t)){const e=Qy(await n.extract(t),t),i=Hy(e);if(i.size>0){l.cells||(l.cells=new Map);for(const[e,t]of i){const n=uo(e),i=`${n.row},${n.col}`;let r=l.cells.get(i);r||(r={value:(l.rows[n.row]&&l.rows[n.row][n.col])??null,type:"string"},l.cells.set(i,r)),r.comment=t}}}}const t=s.find(e=>Zy(e.type,"threadedComment"));if(t){const e=Pv(r,t.target);if(n.has(e)){const t=Qy(await n.extract(e),e),i=Rv(t);i.length>0&&(l.threadedComments=i)}}}if(s){const e=s.filter(e=>Zy(e.type,"table"));if(e.length>0){const t=[];for(const i of e){const e=Pv(r,i.target);if(n.has(e)){const i=Qy(await n.extract(e),e),r=_C(i);r&&t.push(r)}}t.length>0&&(l.tables=t)}}if(s){const e=s.find(e=>Zy(e.type,"image"));if(e){const t=Pv(r,e.target);n.has(t)&&(l.backgroundImage=await n.extract(t))}}if(s){const e=s.filter(e=>Zy(e.type,"pivotTable"));if(e.length>0){const t=[];for(const i of e){const e=Pv(r,i.target);if(!n.has(e))continue;const o=Qy(await n.extract(e),e),s=Xv(o);if(!s)continue;const a=iC(e);if(n.has(a)){const t=Qy(await n.extract(a),a),i=Lv(t),r=i.find(e=>Zy(e.type,"pivotCacheDefinition"));if(r){const t=Pv(Nv(e),r.target);for(const e of y){const n=d.find(t=>t.id===e.rId);if(!n)continue;const i=Pv(u,n.target);if(i===t){s.cacheId=e.cacheId;break}}}}const l=R.get(s.cacheId);l&&Yv(s,l),t.push(s)}t.length>0&&(l.pivotTables=t)}const t=s.filter(e=>Zy(e.type,"slicer"));if(t.length>0){const e=[];for(const i of t){const t=Pv(r,i.target);if(!n.has(t))continue;const o=Qy(await n.extract(t),t);for(const n of qv(o))e.push(n)}e.length>0&&(l.slicers=e)}const i=s.filter(e=>Zy(e.type,"timeline"));if(i.length>0){const e=[];for(const t of i){const i=Pv(r,t.target);if(!n.has(i))continue;const o=Qy(await n.extract(i),i);for(const t of Qv(o))e.push(t)}e.length>0&&(l.timelines=e)}}W.push(l)}let $;if(n.has("docProps/core.xml")){const e=Qy(await n.extract("docProps/core.xml"),"docProps/core.xml"),t=Wy(e);Object.keys(t).length>0&&($={...t})}if(n.has("docProps/app.xml")){const e=Qy(await n.extract("docProps/app.xml"),"docProps/app.xml"),t=jy(e);Object.keys(t).length>0&&($={...$,...t})}if(n.has("docProps/custom.xml")){const e=Qy(await n.extract("docProps/custom.xml"),"docProps/custom.xml"),t=$y(e);Object.keys(t).length>0&&($||($={}),$.custom=t)}const j={sheets:W,dateSystem:f},X=CC(W,g);X.length>0&&(j.namedRanges=X),$&&(j.properties=$),_&&(j.themeColors=_),m&&(j.workbookProtection=m),void 0!==v&&(j.activeSheet=v);const Y=x?.fonts[0];return Y&&Object.keys(Y).length>0&&(j.defaultFont=Y),A&&A.length>0&&(j.persons=A),D.length>0&&(j.externalLinks=D),M&&M.length>0&&(j.cellImages=M),P.length>0&&(j.pivotCaches=P),F.length>0&&(j.slicerCaches=F),k.length>0&&(j.timelineCaches=k),j}function tC(e){const t=e.match(/(\d+)\.xml$/i);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function nC(e){const t=e.match(/(\d+)$/);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function iC(e){const t=e.lastIndexOf("/");return-1===t?`_rels/${e}.rels`:`${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}const rC={png:"png",jpg:"jpeg",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"};async function oC(e,t){if(!e.has(t))return{images:[],textBoxes:[],chartRefs:[]};const n=Qy(await e.extract(t),t),i=Nv(t),r=iC(t),o=new Map,s=new Map;if(e.has(r)){const t=Qy(await e.extract(r),r),n=Lv(t);for(const e of n)Zy(e.type,"image")?o.set(e.id,Pv(i,e.target)):Zy(e.type,"chart")&&s.set(e.id,Pv(i,e.target))}const a=Bn(n),l=[],u=[],c=[];for(const d of a.children){if("string"===typeof d)continue;const t=d.local||d.tag;if("twoCellAnchor"===t||"oneCellAnchor"===t||"absoluteAnchor"===t){const e=aC(d);if(e){const n=s.get(e);if(n&&!c.some(e=>e.path===n)){const e="absoluteAnchor"===t?void 0:sC(d,t),i={path:n};e&&(i.anchor=e);const r=dC(d,"graphicFrame");if(r){const e=gC(r,"nvGraphicFramePr");e.altText&&(i.altText=e.altText),e.title&&(i.frameTitle=e.title)}c.push(i)}}}if("twoCellAnchor"===t){const t=cC(d);if(t){u.push(t);continue}const n=lC(d,o);if(n){const t=n.mediaPath;if(e.has(t)){const i=await e.extract(t),r={data:i,type:n.type,anchor:n.anchor};void 0!==n.width&&(r.width=n.width),void 0!==n.height&&(r.height=n.height),void 0!==n.altText&&(r.altText=n.altText),void 0!==n.title&&(r.title=n.title),l.push(r)}}}else if("oneCellAnchor"===t){const t=fC(d,o);if(t){const n=t.mediaPath;if(e.has(n)){const i=await e.extract(n),r={data:i,type:t.type,anchor:t.anchor};void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),void 0!==t.altText&&(r.altText=t.altText),void 0!==t.title&&(r.title=t.title),l.push(r)}}}}return{images:l,textBoxes:u,chartRefs:c}}function sC(e,t){let n,i;for(const r of e.children){if("string"===typeof r)continue;const e=r,t=e.local||e.tag;"from"===t?n=mC(e):"to"===t&&(i=mC(e))}if(n)return"twoCellAnchor"===t&&i?{from:n,to:i}:{from:n}}function aC(e){for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("chart"===n){const t=e.attrs["r:id"]??e.attrs["id"];if(t)return t}const i=aC(e);if(i)return i}}function lC(e,t){let n,i,r,o,s=0,a=0,l=0,u=0;for(const f of e.children){if("string"===typeof f)continue;const e=f,t=e.local||e.tag;if("from"===t){const t=mC(e);s=t.row,a=t.col}else if("to"===t){const t=mC(e);l=t.row,u=t.col}else if("pic"===t){n=vC(e);const t=gC(e,"nvPicPr");i=t.altText,r=t.title,o=uC(e)}}if(!n)return null;const c=t.get(n);if(!c)return null;const d=c.split(".").pop()?.toLowerCase()??"",h=rC[d]??"png",p={mediaPath:c,type:h,anchor:{from:{row:s,col:a},to:{row:l,col:u}}};return o&&(p.width=o.width,p.height=o.height),i&&(p.altText=i),r&&(p.title=r),p}function uC(e){const t=dC(e,"spPr");if(!t)return;const n=dC(t,"xfrm");if(!n)return;const i=dC(n,"ext");if(!i)return;const r=Number(i.attrs["cx"]),o=Number(i.attrs["cy"]);return r>0&&o>0?{width:Math.round(r/pC),height:Math.round(o/pC)}:void 0}function cC(e){let t=0,n=0,i=0,r=0,o=null;for(const C of e.children){if("string"===typeof C)continue;const e=C,s=e.local||e.tag;if("from"===s){const i=mC(e);t=i.row,n=i.col}else if("to"===s){const t=mC(e);i=t.row,r=t.col}else if("sp"===s){const t=dC(e,"nvSpPr");if(t){const n=dC(t,"cNvSpPr");!n||"1"!==n.attrs["txBox"]&&"true"!==n.attrs["txBox"]||(o=e)}}}if(!o)return null;const s=dC(o,"txBody");let a,l,u,c,d,h="";if(s){const e=[];for(const t of s.children){if("string"===typeof t)continue;const n=t.local||t.tag;if("p"===n){const n=hC(t);e.push(n.text),void 0!==n.fontSize&&void 0===a&&(a=n.fontSize),void 0!==n.bold&&void 0===l&&(l=n.bold),void 0!==n.color&&void 0===u&&(u=n.color)}}h=e.join("\n")}if(!h)return null;const p=dC(o,"spPr");if(p){const e=dC(p,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(c=t.attrs["val"])}const t=dC(p,"ln");if(t){const e=dC(t,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(d=t.attrs["val"])}}}const f={text:h,anchor:{from:{row:t,col:n},to:{row:i,col:r}}},g=uC(o);g&&(f.width=g.width,f.height=g.height);const m=gC(o,"nvSpPr");m.altText&&(f.altText=m.altText),m.title&&(f.title=m.title);const v={};let y=!1;return void 0!==a&&(v.fontSize=a,y=!0),void 0!==l&&(v.bold=l,y=!0),void 0!==u&&(v.color=u,y=!0),void 0!==c&&(v.fillColor=c,y=!0),void 0!==d&&(v.borderColor=d,y=!0),y&&(f.style=v),f}function dC(e,t){for(const n of e.children){if("string"===typeof n)continue;const e=n,i=e.local||e.tag;if(i===t)return e}return null}function hC(e){let t,n,i,r="";for(const o of e.children){if("string"===typeof o)continue;const e=o,s=e.local||e.tag;if("r"===s){const o=dC(e,"rPr");if(o){o.attrs["sz"]&&(t=Number(o.attrs["sz"])/100),"1"!==o.attrs["b"]&&"true"!==o.attrs["b"]||(n=!0);const e=dC(o,"solidFill");if(e){const t=dC(e,"srgbClr");t&&t.attrs["val"]&&(i=t.attrs["val"])}}const s=dC(e,"t");s&&(r+=s.children.filter(e=>"string"===typeof e).join(""))}}return{text:r,fontSize:t,bold:n,color:i}}const pC=9525;function fC(e,t){let n,i,r,o=0,s=0,a=0,l=0;for(const p of e.children){if("string"===typeof p)continue;const e=p,t=e.local||e.tag;if("from"===t){const t=mC(e);o=t.row,s=t.col}else if("ext"===t)a=Number(e.attrs["cx"])||0,l=Number(e.attrs["cy"])||0;else if("pic"===t){n=vC(e);const t=gC(e,"nvPicPr");i=t.altText,r=t.title}}if(!n)return null;const u=t.get(n);if(!u)return null;const c=u.split(".").pop()?.toLowerCase()??"",d=rC[c]??"png",h={mediaPath:u,type:d,anchor:{from:{row:o,col:s}}};return a>0&&(h.width=Math.round(a/pC)),l>0&&(h.height=Math.round(l/pC)),i&&(h.altText=i),r&&(h.title=r),h}function gC(e,t){const n=dC(e,t);if(!n)return{};const i=dC(n,"cNvPr");if(!i)return{};const r={};return i.attrs["descr"]&&(r.altText=i.attrs["descr"]),i.attrs["title"]&&(r.title=i.attrs["title"]),r}function mC(e){let t=0,n=0;for(const i of e.children){if("string"===typeof i)continue;const e=i,r=e.local||e.tag,o=e.children.filter(e=>"string"===typeof e).join("");"row"===r?t=Number(o)||0:"col"===r&&(n=Number(o)||0)}return{row:t,col:n}}function vC(e){for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("blipFill"===n)for(const t of e.children){if("string"===typeof t)continue;const e=t,n=e.local||e.tag;if("blip"===n)return e.attrs["r:embed"]??e.attrs["R:embed"]??yC(e.attrs)}}}function yC(e){for(const t of Object.keys(e))if(t.endsWith(":embed")&&e[t].startsWith("rId"))return e[t]}function CC(e,t){if(0===t.length)return t;const n=new Map;for(const r of e)n.set(r.name,r);const i=[];for(const r of t){const e="_xlnm.Print_Area"===r.name,t="_xlnm.Print_Titles"===r.name,o=void 0!==r.scope?n.get(r.scope):void 0;if(!e&&!t||!o){i.push(r);continue}const s=o.pageSetup??(o.pageSetup={});if(e){const e=r.range.split(",").map(wC).filter(e=>e.length>0).join(",");e&&(s.printArea=e)}else for(const n of r.range.split(",")){const e=wC(n);e&&(/\d/.test(e)?s.printTitlesRow=e:s.printTitlesColumn=e)}}return i}function wC(e){const t=e.trim(),n=t.lastIndexOf("!");return-1===n?t:t.slice(n+1)}function xC(e,t){const n=Bn(e),i=[],r=[],o=[];let s,a,l="1900";"1904"===t?.dateSystem?l="1904":"1900"===t?.dateSystem&&(l="1900");for(const u of n.children){if("string"===typeof u)continue;const e=u.local||u.tag;if("workbookPr"===e&&("1"!==u.attrs["date1904"]&&"true"!==u.attrs["date1904"]||t?.dateSystem&&"auto"!==t.dateSystem||(l="1904")),"workbookProtection"===e){const e="1"===u.attrs["lockStructure"]||"true"===u.attrs["lockStructure"],t="1"===u.attrs["lockWindows"]||"true"===u.attrs["lockWindows"];(e||t)&&(s={},e&&(s.lockStructure=!0),t&&(s.lockWindows=!0))}if("bookViews"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("workbookView"!==e)continue;const n=Number(t.attrs["activeTab"]);Number.isInteger(n)&&n>0&&void 0===a&&(a=n)}if("sheets"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("sheet"===e){const e=t.attrs["name"]??"",n=Number(t.attrs["sheetId"]??"0"),r=t.attrs["r:id"]??t.attrs["R:id"]??Fv(t.attrs)??"",o=t.attrs["state"];let s="visible";"hidden"===o?s="hidden":"veryHidden"===o&&(s="veryHidden"),e&&r&&i.push({name:e,sheetId:n,rId:r,state:s})}}if("pivotCaches"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("pivotCache"===e){const e=t.attrs["cacheId"],n=void 0===e?NaN:Number(e),i=t.attrs["r:id"]??t.attrs["R:id"]??Fv(t.attrs)??"";i&&!Number.isNaN(n)&&o.push({cacheId:n,rId:i})}}}for(const u of n.children){if("string"===typeof u)continue;const e=u.local||u.tag;if("definedNames"===e)for(const t of u.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("definedName"===e){const e=t.attrs["name"]??"",n=t.children.filter(e=>"string"===typeof e).join("");if(e&&n){const o={name:e,range:n},s=t.attrs["localSheetId"];if(void 0!==s){const e=Number(s);e>=0&&e<i.length&&(o.scope=i[e].name)}t.attrs["comment"]&&(o.comment=t.attrs["comment"]),r.push(o)}}}}return{sheets:i,dateSystem:l,namedRanges:r,workbookProtection:s,activeSheet:a,pivotCacheRefs:o}}function bC(e,t){if(void 0===t)return e;if("function"===typeof t){const n=[];for(let i=0;i<e.length;i++){const r=e[i],o=t({name:r.name,index:i,hidden:"hidden"===r.state,veryHidden:"veryHidden"===r.state},i);o&&n.push(r)}return n}if(0===t.length)return e;const n=[];for(const i of t)if("number"===typeof i)i>=0&&i<e.length&&n.push(e[i]);else{const t=e.find(e=>e.name===i);t&&n.push(t)}return n}function _C(e){const t=Bn(e),n=t.attrs["name"]??"",i=t.attrs["displayName"]??n,r=t.attrs["ref"]??"";if(!n)return null;const o=t.attrs["totalsRowCount"],s=void 0!==o&&"0"!==o,a=[];let l,u,c,d=!1;for(const p of t.children){if("string"===typeof p)continue;const e=p.local||p.tag;if("autoFilter"===e)d=!0;else if("tableColumns"===e)for(const t of p.children){if("string"===typeof t)continue;const e=t.local||t.tag;if("tableColumn"===e){const e={name:t.attrs["name"]??""};t.attrs["totalsRowFunction"]&&(e.totalFunction=t.attrs["totalsRowFunction"]),t.attrs["totalsRowLabel"]&&(e.totalLabel=t.attrs["totalsRowLabel"]);for(const n of t.children){if("string"===typeof n)continue;const t=n.local||n.tag;if("totalsRowFormula"===t){const t=n.children.filter(e=>"string"===typeof e).join("");t&&(e.totalFormula=t)}}a.push(e)}}else"tableStyleInfo"===e&&(l=p.attrs["name"],u="1"===p.attrs["showRowStripes"],c="1"===p.attrs["showColumnStripes"])}const h={name:n,columns:a};return i&&i!==n&&(h.displayName=i),r&&(h.range=r),l&&(h.style=l),void 0!==u&&(h.showRowStripes=u),void 0!==c&&(h.showColumnStripes=c),h.showAutoFilter=d,s&&(h.showTotalRow=!0),h}var SC=n(7417);function AC(e,t=!0){let n='"',i=t?"\ufeff":"";return(0,a.A)(e,e=>{let t=[];(0,a.A)(e,e=>{(0,Ie.A)(e)?(e=(0,SC.A)(e,"\r\n",""),e=(0,SC.A)(e,"\r",""),e=(0,SC.A)(e,"\n",""),e=`${n}${e}${n}`):e=(0,Ne.A)(e)?e?"true":"false":(0,Ge.A)(e),t.push(e)}),i+=(0,Y.A)(t,",")+"\r\n"}),i}function TC(e,t=!0){if(!(0,Me.A)(e)){let e="no data";return{error:e}}let n=null;try{n=AC(e,t)}catch(i){return{error:i}}return n}var EC=TC;function DC(e){return(0,Ne.A)(e)?e?"true":"false":(0,Ge.A)(e)}function MC(e,t){let n=[];return(0,a.A)(e,e=>{let i=(0,s.A)(e.rows,e=>(0,s.A)(e,e=>null===e?"":t?DC(e):e));n.push({sheetname:e.name,data:i})}),n}function IC(e,t){let n=[];return(0,a.A)(e,e=>{let i=e.rows,r=(0,s.A)((0,j.A)(i,0,[]),e=>null===e||""===e?null:DC(e)),o=[];for(let n=1;n<i.length;n++){let e=i[n],s=(0,st.A)(e,e=>null===e);if(s)continue;let a={};for(let n=0;n<r.length;n++){if(null===r[n])continue;let i=(0,j.A)(e,n,null);null!==i&&(t&&(i=DC(i)),a[r[n]]=i)}o.push(a)}n.push({sheetname:e.name,data:o})}),n}function RC(e,t){let n=MC(e,t),i=!1;return(0,a.A)(n,(e,t)=>{n[t].data=EC(e.data,i)}),n}async function LC(e,t){let n=(0,j.A)(t,"fmt","ltdt");if(!(0,ge.A)(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let i,r=(0,j.A)(t,"valueToString",!0);if(!(0,Ne.A)(r))return{error:"opt.valueToString is not a boolean"};try{i=await eC(e)}catch(s){return console.log("error: ",s),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=IC(i.sheets,r):"array"===n?o=MC(i.sheets,r):"csv"===n&&(o=RC(i.sheets,r))}catch(s){return console.log("error: ",s),{error:"can not convert data"}}return o}var PC=LC,NC=n(4636),FC=n(754),OC=n(9956);function kC(e,t=!1,n={}){let i=(0,j.A)(n,"returnWithStateAndMsg",null);(0,Ne.A)(i)||(i=!1);let r=e=>i?{state:"error",msg:e}:"";if(!(0,Re.A)(e))return r("invalid str");(0,Ne.A)(t)||(t=!1);let o="";try{let n=NC(e);o=t?n.toString(FC):n.toString(OC)}catch(s){return r(s.toString())}return i?{state:"success",msg:o}:o}var BC=kC,GC=n(3360),VC=n(9526),HC=n(7924),zC=n(455),UC=n(9068),WC=n(5059),$C=n(1262),jC=n(6607),XC=n(8490),YC=n(6489),KC=n(4575),qC=n(2632),ZC=n(6979),QC=n(5446),JC=n(7275),ew=n(9703),tw=n(6523),nw=n(4318),iw=n(1007),rw=n(4278),ow=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,nw.A)("number"!==typeof e?e:(0,iw.A)(e,rw.OM))};function sw(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=(0,qC.A)(n.placement),l=(0,ew.A)(a),u=[rw.kb,rw.pG].indexOf(a)>=0,c=u?"height":"width";if(o&&s){var d=ow(r.padding,n),h=(0,ZC.A)(o),p="y"===l?rw.Mn:rw.kb,f="y"===l?rw.sQ:rw.pG,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=(0,JC.A)(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,C=g/2-m/2,w=d[p],x=y-h[c]-d[f],b=y/2-h[c]/2+C,_=(0,tw.u)(w,b,x),S=l;n.modifiersData[i]=(t={},t[S]=_,t.centerOffset=_-b,t)}}function aw(e){var t=e.state,n=e.options,i=n.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r),r))&&(0,QC.A)(t.elements.popper,r)&&(t.elements.arrow=r)}var lw={name:"arrow",enabled:!0,phase:"main",fn:sw,effect:aw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},uw=n(9081),cw=[UC.A,WC.A,$C.A,jC.A,XC.A,YC.A,KC.A,lw,uw.A],dw=(0,zC.U)({defaultModifiers:cw}),hw="tippy-box",pw="tippy-content",fw="tippy-backdrop",gw="tippy-arrow",mw="tippy-svg-arrow",vw={passive:!0,capture:!0},yw=function(){return document.body};function Cw(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function ww(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function xw(e,t){return"function"===typeof e?e.apply(void 0,t):e}function bw(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function _w(e){return e.split(/\s+/).filter(Boolean)}function Sw(e){return[].concat(e)}function Aw(e,t){-1===e.indexOf(t)&&e.push(t)}function Tw(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Ew(e){return e.split("-")[0]}function Dw(e){return[].slice.call(e)}function Mw(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Iw(){return document.createElement("div")}function Rw(e){return["Element","Fragment"].some(function(t){return ww(e,t)})}function Lw(e){return ww(e,"NodeList")}function Pw(e){return ww(e,"MouseEvent")}function Nw(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Fw(e){return Rw(e)?[e]:Lw(e)?Dw(e):Array.isArray(e)?e:Dw(document.querySelectorAll(e))}function Ow(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function kw(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Bw(e){var t,n=Sw(e),i=n[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Gw(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props,s=o.interactiveBorder,a=Ew(r.placement),l=r.modifiersData.offset;if(!l)return!0;var u="bottom"===a?l.top.y:0,c="top"===a?l.bottom.y:0,d="right"===a?l.left.x:0,h="left"===a?l.right.x:0,p=t.top-i+u>s,f=i-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-h>s;return p||f||g||m})}function Vw(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Hw(e,t){var n=t;while(n){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var zw={isTouch:!1},Uw=0;function Ww(){zw.isTouch||(zw.isTouch=!0,window.performance&&document.addEventListener("mousemove",$w))}function $w(){var e=performance.now();e-Uw<20&&(zw.isTouch=!1,document.removeEventListener("mousemove",$w)),Uw=e}function jw(){var e=document.activeElement;if(Nw(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Xw(){document.addEventListener("touchstart",Ww,vw),window.addEventListener("blur",jw)}var Yw="undefined"!==typeof window&&"undefined"!==typeof document,Kw=!!Yw&&!!window.msCrypto;var qw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Zw={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Qw=Object.assign({appendTo:yw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},qw,Zw),Jw=Object.keys(Qw),ex=function(e){var t=Object.keys(e);t.forEach(function(t){Qw[t]=e[t]})};function tx(e){var t=e.plugins||[],n=t.reduce(function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Qw[r])?i:o);return t},{});return Object.assign({},e,n)}function nx(e,t){var n=t?Object.keys(tx(Object.assign({},Qw,{plugins:t}))):Jw,i=n.reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(r){t[n]=i}return t},{});return i}function ix(e,t){var n=Object.assign({},t,{content:xw(t.content,[e])},t.ignoreAttributes?{}:nx(e,t.plugins));return n.aria=Object.assign({},Qw.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var rx=function(){return"innerHTML"};function ox(e,t){e[rx()]=t}function sx(e){var t=Iw();return!0===e?t.className=gw:(t.className=mw,Rw(e)?t.appendChild(e):ox(t,e)),t}function ax(e,t){Rw(t.content)?(ox(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?ox(e,t.content):e.textContent=t.content)}function lx(e){var t=e.firstElementChild,n=Dw(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(pw)}),arrow:n.find(function(e){return e.classList.contains(gw)||e.classList.contains(mw)}),backdrop:n.find(function(e){return e.classList.contains(fw)})}}function ux(e){var t=Iw(),n=Iw();n.className=hw,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Iw();function r(n,i){var r=lx(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"===typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"===typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||ax(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(sx(i.arrow))):o.appendChild(sx(i.arrow)):a&&o.removeChild(a)}return i.className=pw,i.setAttribute("data-state","hidden"),ax(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}ux.$$tippy=!0;var cx=1,dx=[],hx=[];function px(e,t){var n,i,r,o,s,a,l,u=ix(e,Object.assign({},Qw,tx(Mw(t)))),c=!1,d=!1,h=!1,p=!1,f=[],g=bw(q,u.interactiveDebounce),m=cx++,v=null,y=Tw(u.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:Iw(),popperInstance:v,props:u,state:C,plugins:y,clearDelayTimeouts:le,setProps:ue,setContent:ce,show:de,hide:he,hideWithInteractivity:pe,enable:se,disable:ae,unmount:fe,destroy:ge};if(!u.render)return w;var x=u.render(w),b=x.popper,_=x.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+w.id,w.popper=b,e._tippy=w,b._tippy=w;var S=y.map(function(e){return e.fn(w)}),A=e.hasAttribute("aria-expanded");return X(),O(),P(),N("onCreate",[w]),u.showOnCreate&&re(),b.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),b.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",g)}),w;function T(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===T()[0]}function D(){var e;return!(null==(e=w.props.render)||!e.$$tippy)}function M(){return l||e}function I(){var e=M().parentNode;return e?Bw(e):document}function R(){return lx(b)}function L(e){return w.state.isMounted&&!w.state.isVisible||zw.isTouch||o&&"focus"===o.type?0:Cw(w.props.delay,e?0:1,Qw.delay)}function P(e){void 0===e&&(e=!1),b.style.pointerEvents=w.props.interactive&&!e?"":"none",b.style.zIndex=""+w.props.zIndex}function N(e,t,n){var i;(void 0===n&&(n=!0),S.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=w.props)[e].apply(i,t)}function F(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,i=b.id,r=Sw(w.props.triggerTarget||e);r.forEach(function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function O(){if(!A&&w.props.aria.expanded){var t=Sw(w.props.triggerTarget||e);t.forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}}function k(){I().removeEventListener("mousemove",g),dx=dx.filter(function(e){return e!==g})}function B(t){if(!zw.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!w.props.interactive||!Hw(b,n)){if(Sw(w.props.triggerTarget||e).some(function(e){return Hw(e,n)})){if(zw.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout(function(){d=!1}),w.state.isMounted||z())}}}function G(){h=!0}function V(){h=!1}function H(){var e=I();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vw),e.addEventListener("touchstart",V,vw),e.addEventListener("touchmove",G,vw)}function z(){var e=I();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vw),e.removeEventListener("touchstart",V,vw),e.removeEventListener("touchmove",G,vw)}function U(e,t){$(e,function(){!w.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()})}function W(e,t){$(e,t)}function $(e,t){var n=R().box;function i(e){e.target===n&&(Vw(n,"remove",i),t())}if(0===e)return t();Vw(n,"remove",s),Vw(n,"add",i),s=i}function j(t,n,i){void 0===i&&(i=!1);var r=Sw(w.props.triggerTarget||e);r.forEach(function(e){e.addEventListener(t,n,i),f.push({node:e,eventType:t,handler:n,options:i})})}function X(){E()&&(j("touchstart",K,{passive:!0}),j("touchend",Z,{passive:!0})),_w(w.props.trigger).forEach(function(e){if("manual"!==e)switch(j(e,K),e){case"mouseenter":j("mouseleave",Z);break;case"focus":j(Kw?"focusout":"blur",Q);break;case"focusin":j("focusout",Q);break}})}function Y(){f.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),f=[]}function K(e){var t,n=!1;if(w.state.isEnabled&&!J(e)&&!d){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,O(),!w.state.isVisible&&Pw(e)&&dx.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||c)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:re(e),"click"===e.type&&(c=!n),n&&!i&&oe(e)}}function q(e){var t=e.target,n=M().contains(t)||b.contains(t);if("mousemove"!==e.type||!n){var i=ie().concat(b).map(function(e){var t,n=e._tippy,i=null==(t=n.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:u}:null}).filter(Boolean);Gw(i,e)&&(k(),oe(e))}}function Z(e){var t=J(e)||w.props.trigger.indexOf("click")>=0&&c;t||(w.props.interactive?w.hideWithInteractivity(e):oe(e))}function Q(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||oe(e)}function J(e){return!!zw.isTouch&&E()!==e.type.indexOf("touch")>=0}function ee(){te();var t=w.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=D()?lx(b).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var n=R(),i=n.box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},c];D()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),w.popperInstance=dw(u,b,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function te(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ne(){var e,t=w.props.appendTo,n=M();e=w.props.interactive&&t===yw||"parent"===t?n.parentNode:xw(t,[n]),e.contains(b)||e.appendChild(b),w.state.isMounted=!0,ee()}function ie(){return Dw(b.querySelectorAll("[data-tippy-root]"))}function re(e){w.clearDelayTimeouts(),e&&N("onTrigger",[w,e]),H();var t=L(!0),i=T(),r=i[0],o=i[1];zw.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout(function(){w.show()},t):w.show()}function oe(e){if(w.clearDelayTimeouts(),N("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&c)){var t=L(!1);t?i=setTimeout(function(){w.state.isVisible&&w.hide()},t):r=requestAnimationFrame(function(){w.hide()})}}else z()}function se(){w.state.isEnabled=!0}function ae(){w.hide(),w.state.isEnabled=!1}function le(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)}function ue(t){if(!w.state.isDestroyed){N("onBeforeUpdate",[w,t]),Y();var n=w.props,i=ix(e,Object.assign({},n,Mw(t),{ignoreAttributes:!0}));w.props=i,X(),n.interactiveDebounce!==i.interactiveDebounce&&(k(),g=bw(q,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?Sw(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded"),O(),P(),_&&_(n,i),w.popperInstance&&(ee(),ie().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N("onAfterUpdate",[w,t])}}function ce(e){w.setProps({content:e})}function de(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=zw.isTouch&&!w.props.touch,r=Cw(w.props.duration,0,Qw.duration);if(!(e||t||n||i)&&!M().hasAttribute("disabled")&&(N("onShow",[w],!1),!1!==w.props.onShow(w))){if(w.state.isVisible=!0,D()&&(b.style.visibility="visible"),P(),H(),w.state.isMounted||(b.style.transition="none"),D()){var o=R(),s=o.box,l=o.content;Ow([s,l],0)}a=function(){var e;if(w.state.isVisible&&!p){if(p=!0,b.offsetHeight,b.style.transition=w.props.moveTransition,D()&&w.props.animation){var t=R(),n=t.box,i=t.content;Ow([n,i],r),kw([n,i],"visible")}F(),O(),Aw(hx,w),null==(e=w.popperInstance)||e.forceUpdate(),N("onMount",[w]),w.props.animation&&D()&&W(r,function(){w.state.isShown=!0,N("onShown",[w])})}},ne()}}function he(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=Cw(w.props.duration,1,Qw.duration);if(!(e||t||n)&&(N("onHide",[w],!1),!1!==w.props.onHide(w))){if(w.state.isVisible=!1,w.state.isShown=!1,p=!1,c=!1,D()&&(b.style.visibility="hidden"),k(),z(),P(!0),D()){var r=R(),o=r.box,s=r.content;w.props.animation&&(Ow([o,s],i),kw([o,s],"hidden"))}F(),O(),w.props.animation?D()&&U(i,w.unmount):w.unmount()}}function pe(e){I().addEventListener("mousemove",g),Aw(dx,g),g(e)}function fe(){w.state.isVisible&&w.hide(),w.state.isMounted&&(te(),ie().forEach(function(e){e._tippy.unmount()}),b.parentNode&&b.parentNode.removeChild(b),hx=hx.filter(function(e){return e!==w}),w.state.isMounted=!1,N("onHidden",[w]))}function ge(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Y(),delete e._tippy,w.state.isDestroyed=!0,N("onDestroy",[w]))}}function fx(e,t){void 0===t&&(t={});var n=Qw.plugins.concat(t.plugins||[]);Xw();var i=Object.assign({},t,{plugins:n}),r=Fw(e),o=r.reduce(function(e,t){var n=t&&px(t,i);return n&&e.push(n),e},[]);return Rw(e)?o[0]:o}fx.defaultProps=Qw,fx.setDefaultProps=ex,fx.currentInput=zw;Object.assign({},jC.A,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});fx.setDefaultProps({render:ux});var gx=fx;function mx(e,t,n={}){let i=null,r=null;function o(){null!==i&&i.destroy(!0),e.setAttribute("tippystate",""),clearInterval(r)}let s={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=(0,De.A)(n)?$(s,n):s;let a=t;t||(a=e.innerHTML);let l=e.getAttribute("tippystate"),u=(0,Le.A)(l);if(e.setAttribute("tippystate","5"),u)return;a=`<div style="text-align:left;">${a}</div>`;let c=gx;gx["default"]&&(c=gx["default"]),i=c(e,{...n,content:a,allowHTML:!0,onHidden(){o()},onDestroy(){i=null,o()}}),i.show(),r=setInterval(()=>{let t=e.getAttribute("tippystate");(0,Le.A)(t)?(t=(0,Ve.A)(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)}var vx=mx,yx=n(5471);
2
2
  /**
3
3
  * vue-class-component v7.2.6
4
4
  * (c) 2015-present Evan You