w-web-perm 1.0.78 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.85fce10c.js +1 -0
- package/dist/js/app.85fce10c.js +1 -0
- package/dist/js/{chunk-vendors-legacy.884ef407.js → chunk-vendors-legacy.b57e1cce.js} +2 -2
- package/dist/js/{chunk-vendors.884ef407.js → chunk-vendors.b57e1cce.js} +2 -2
- package/dist/w-web-perm.umd.js +2 -2
- package/dist/w-web-perm.umd.js.map +1 -1
- package/docs/WWebPerm.html +4 -4
- package/docs/global.html +610 -0
- package/docs/index.html +2 -2
- package/docs/{WWebPerm.mjs.html → server_WWebPerm.mjs.html} +84 -94
- package/docs/server_procCore.mjs.html +311 -0
- package/docs/src_fetchJson.mjs.html +113 -0
- package/package.json +18 -19
- package/server/WWebPerm.mjs +80 -90
- package/server/procCore.mjs +56 -4
- package/server/procLang.mjs +3 -3
- package/server/provideTabs.mjs +8 -9
- package/src/components/LayoutContentGrups.vue +5 -1
- package/src/components/LayoutContentPemis.vue +5 -1
- package/src/components/LayoutContentTargets.vue +5 -1
- package/src/components/LayoutContentUsers.vue +21 -8
- package/src/components/VeCgrups.vue +3 -3
- package/src/components/VeCpemis.vue +2 -2
- package/src/components/VeGrupBlngUsers.vue +2 -2
- package/src/components/VePemiBlngGrups.vue +2 -2
- package/src/fetchJson.mjs +41 -0
- package/src/getPerm.mjs +7 -7
- package/src/getPermUserInfor.mjs +7 -7
- package/src/main.js +1 -1
- package/src/perm.mjs +5 -4
- package/src/plugins/mUI.mjs +17 -0
- package/srv.mjs +8 -0
- package/tableTags-web-perm.json +1 -0
- package/dist/js/app-legacy.71fa8c3b.js +0 -1
- package/dist/js/app.71fa8c3b.js +0 -1
- package/tableTags.json +0 -1
|
@@ -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(4361),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={}){if(!(0,Me.A)(e))return[];if((0,Me.A)(t)||(t=Ze(e)),0===(0,l.A)(t))return[];let i=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(i=!0)}),i)return[];let r=(0,j.A)(n,"empty",""),o=[];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]):r});o.push(n)}),o}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={}){if(!(0,Me.A)(e))return[];(0,Me.A)(t)||(t=Ze(e)),(0,De.A)(n)||(n={},(0,a.A)(t,e=>{n[e]=e}));let i=!1;if((0,a.A)(e,function(e){(0,De.A)(e)||(i=!0)}),i)return[];let r=(0,s.A)(t,function(e){return(0,j.A)(n,e)}),o=Je(e,t),l=te([r],o);return l}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="&";break;case 60:s="<";break;case 62:s=">";break;case 13:s="charRef"===t?" ":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="&";break;case 60:r="<";break;case 62:r=">";break;case 34:r=""";break;case 39:r="'";break;case 9:r="	";break;case 10:r=" ";break;case 13:r=" ";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,"&").replace(/</g,"<").replace(/>/g,">"),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,"&").replace(/</g,"<").replace(/>/g,">")}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){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){if(!(0,Re.A)(e))return"";(0,Ne.A)(t)||(t=!1);let n=NC(e),i="";return i=t?n.toString(FC):n.toString(OC),i}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}},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="&";break;case 60:s="<";break;case 62:s=">";break;case 13:s="charRef"===t?" ":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="&";break;case 60:r="<";break;case 62:r=">";break;case 34:r=""";break;case 39:r="'";break;case 9:r="	";break;case 10:r=" ";break;case 13:r=" ";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,"&").replace(/</g,"<").replace(/>/g,">"),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,"&").replace(/</g,"<").replace(/>/g,">")}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
|
|
@@ -32,4 +32,4 @@ var i=Object.freeze({}),r=Array.isArray;function o(e){return void 0===e||null===
|
|
|
32
32
|
* @license MIT
|
|
33
33
|
*/function i(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){o.emit("vuex:mutation",e,t)},{prepend:!0}),e.subscribeAction(function(e,t){o.emit("vuex:action",e,t)},{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,function(t){return t.original===e});if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach(function(n){i[n]=l(e[n],t)}),i}function u(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function c(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function h(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){u(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}g.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")},"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new p(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&u(t.modules,function(t,r){i.register(e.concat(r),t,n)})},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&L(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,l=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var u=this._modules.root.state;_(this,u,[],this._modules.root),b(this,u),n.forEach(function(e){return e(t)});var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&s(this)},C={state:{configurable:!0}};function w(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),b(e,n,t)}function b(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};u(r,function(t,n){o[n]=h(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var s=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=s,e.strict&&M(e),i&&(n&&e._withCommit(function(){i._data.$$state=null}),v.nextTick(function(){return i.$destroy()}))}function _(e,t,n,i,r){var o=!n.length,s=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!o&&!r){var a=I(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){v.set(a,l,i.state)})}var u=i.context=S(e,s,n);i.forEachMutation(function(t,n){var i=s+n;T(e,i,t,u)}),i.forEachAction(function(t,n){var i=t.root?n:s+n,r=t.handler||t;E(e,i,r,u)}),i.forEachGetter(function(t,n){var i=s+n;D(e,i,t,u)}),i.forEachChild(function(i,o){_(e,t,n.concat(o),i,r)})}function S(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=R(n,i,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:i?e.commit:function(n,i,r){var o=R(n,i,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return A(e,t)}},state:{get:function(){return I(e.state,n)}}}),r}function A(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function T(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(t){n.call(e,i.state,t)})}function E(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return d(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):r})}function D(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function M(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function I(e,t){return t.reduce(function(e,t){return e[t]},e)}function R(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function L(e){v&&e===v||(v=e,i(v))}C.state.get=function(){return this._vm._data.$$state},C.state.set=function(e){0},y.prototype.commit=function(e,t,n){var i=this,r=R(e,t,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(e){e(s)})}),this._subscribers.slice().forEach(function(e){return e(a,i.state)}))},y.prototype.dispatch=function(e,t){var n=this,i=R(e,t),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(s,n.state)})}catch(u){0}var l=a.length>1?Promise.all(a.map(function(e){return e(o)})):a[0](o);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(s,n.state)})}catch(u){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(s,n.state,e)})}catch(u){0}t(e)})})}},y.prototype.subscribe=function(e,t){return w(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return w(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch(function(){return e(i.state,i.getters)},t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),b(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=I(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])}),x(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,C);var P=V(function(e,t){var n={};return B(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=H(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0}),n}),N=V(function(e,t){var n={};return B(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=H(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}}),n}),F=V(function(e,t){var n={};return B(t).forEach(function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||H(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0}),n}),O=V(function(e,t){var n={};return B(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=H(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}}),n}),k=function(e){return{mapState:P.bind(null,e),mapGetters:F.bind(null,e),mapMutations:N.bind(null,e),mapActions:O.bind(null,e)}};function B(e){return G(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function G(e){return Array.isArray(e)||c(e)}function V(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function H(e,t,n){var i=e._modulesNamespaceMap[n];return i}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=l(e.state);"undefined"!==typeof c&&(a&&e.subscribe(function(e,o){var s=l(o);if(n(e,d,s)){var a=$(),u=r(e),h="mutation "+e.type+a;U(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),W(c)}d=s}),u&&e.subscribeAction(function(e,n){if(o(e,n)){var i=$(),r=s(e),a="action "+e.type+i;U(c,a,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),W(c)}}))}}function U(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function $(){var e=new Date;return" @ "+X(e.getHours(),2)+":"+X(e.getMinutes(),2)+":"+X(e.getSeconds(),2)+"."+X(e.getMilliseconds(),3)}function j(e,t){return new Array(t+1).join(e)}function X(e,t){return j("0",t-e.toString().length)+e}var Y={Store:y,install:L,version:"3.6.2",mapState:P,mapMutations:N,mapGetters:F,mapActions:O,createNamespacedHelpers:k,createLogger:z};t.Ay=Y},5172:function(e){function t(e,t){this.v=e,this.k=t}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},9374:function(e,t,n){var i=n(5546);function r(){
|
|
34
34
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
35
|
-
var t,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(e,r,o,s){var a=r&&r.prototype instanceof c?r:c,l=Object.create(a.prototype);return i(l,"_invoke",function(e,i,r){var o,s,a,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,a=t,h.n=n,u}};function p(e,i){for(s=e,a=i,n=0;!d&&l&&!r&&n<c.length;n++){var r,o=c[n],p=h.p,f=o[2];e>3?(r=f===i)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=e<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=e<3||o[0]>i||i>f)&&(o[4]=e,o[5]=i,h.n=f,s=0))}if(r||e>1)return u;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,a=f;(n=s<2?t:a)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,a)):h.n=a:h.v=a);try{if(l=2,o){if(s||(r="next"),n=o[r]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=o["return"])&&n.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((n=(d=h.n<0)?a:e.call(i,h))!==u)break}catch(n){o=t,s=1,a=n}finally{l=1}}return{value:n,done:d}}}(e,o,s),!0),l}var u={};function c(){}function d(){}function h(){}n=Object.getPrototypeOf;var p=[][s]?n(n([][s]())):(i(n={},s,function(){return this}),n),f=h.prototype=c.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,i(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=h,i(f,"constructor",h),i(h,"constructor",d),d.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,s,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:g}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},5869:function(e,t,n){var i=n(887);function r(e,t,n,r,o){var s=i(e,t,n,r,o);return s.next().then(function(e){return e.done?e.value:s.next()})}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},887:function(e,t,n){var i=n(9374),r=n(1791);function o(e,t,n,o,s){return new r(i().w(e,t,n,o),s||Promise)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},1791:function(e,t,n){var i=n(5172),r=n(5546);function o(e,t){function n(r,o,s,a){try{var l=e[r](o),u=l.value;return u instanceof i?t.resolve(u.v).then(function(e){n("next",e,s,a)},function(e){n("throw",e,s,a)}):t.resolve(u).then(function(e){l.value=e,s(l)},function(e){return n("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(r(o.prototype),r(o.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,i,r){function o(){return new t(function(t,i){n(e,r,t,i)})}return s=s?s.then(o,o):o()},!0)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},5546:function(e){function t(n,i,r,o){var s=Object.defineProperty;try{s({},"",{})}catch(n){s=0}e.exports=t=function(e,n,i,r){function o(n,i){t(e,n,function(e){return this._invoke(n,i,e)})}n?s?s(e,n,{value:i,enumerable:!r,configurable:!r,writable:!r}):e[n]=i:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n,i,r,o)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4373:function(e){function t(e){var t=Object(e),n=[];for(var i in t)n.unshift(i);return function e(){for(;n.length;)if((i=n.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4633:function(e,t,n){var i=n(5172),r=n(9374),o=n(5869),s=n(887),a=n(1791),l=n(4373),u=n(579);function c(){"use strict";var t=r(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(i){t||(t={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return n(i.a,p[e],t)},delegateYield:function(e,r,o){return t.resultName=r,n(i.d,u(e),o)},finish:function(e){return n(i.f,e)}},n=function(e,n,r){i.p=t.prev,i.n=t.next;try{return e(n,r)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new i(e,t)},AsyncIterator:a,async:function(e,t,n,i,r){return(h(t)?s:o)(f(e),t,n,i,r)},keys:l,values:u}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports["default"]=e.exports},579:function(e,t,n){var i=n(3738)["default"];function r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(i(e)+" is not iterable")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},3738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4756:function(e,t,n){var i=n(4633)();e.exports=i;try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},3145:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{A:function(){return i}})},467:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,l,"next",e)}function l(e){i(s,r,o,a,l,"throw",e)}a(void 0)})}}n.d(t,{A:function(){return r}})},9842:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:function(){return s}})},6636:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(u)throw r}}return a}}n.d(t,{A:function(){return a}});var o=n(7800);function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||r(e,t)||(0,o.A)(e,t)||s()}},4241:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(3145);function r(e){if(Array.isArray(e))return(0,i.A)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var s=n(7800);function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||(0,s.A)(e)||a()}},7800:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(3145);function r(e,t){if(e){if("string"==typeof e)return(0,i.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.A)(e,t):void 0}}},5975:function(e,t,n){"use strict";n.d(t,{A:function(){return Kn}});var i={};function r(e,t){return function(){return e.apply(t,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:function(){return pt},hasStandardBrowserEnv:function(){return gt},hasStandardBrowserWebWorkerEnv:function(){return mt},navigator:function(){return ft},origin:function(){return vt}});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:l}=Symbol,u=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),c=(e,t)=>{let n=e;const i=[];while(null!=n&&n!==Object.prototype){if(-1!==i.indexOf(n))return!1;if(i.push(n),u(n,t))return!0;n=s(n)}return!1},d=(e,t)=>null!=e&&c(e,t)?e[t]:void 0,h=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>h(t)===e),f=e=>t=>typeof t===e,{isArray:g}=Array,m=f("undefined");function v(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y=p("ArrayBuffer");function C(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t}const w=f("string"),x=f("function"),b=f("number"),_=e=>null!==e&&"object"===typeof e,S=e=>!0===e||!1===e,A=e=>{if(!_(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===s(t))&&!c(e,l)&&!c(e,a)},T=e=>{if(!_(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},E=p("Date"),D=p("File"),M=e=>!(!e||"undefined"===typeof e.uri),I=e=>e&&"undefined"!==typeof e.getParts,R=p("Blob"),L=p("FileList"),P=e=>_(e)&&x(e.pipe);function N(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const F=N(),O="undefined"!==typeof F.FormData?F.FormData:void 0,k=e=>{if(!e)return!1;if(O&&e instanceof O)return!0;const t=s(e);if(!t||t===Object.prototype)return!1;if(!x(e.append))return!1;const n=h(e);return"formdata"===n||"object"===n&&x(e.toString)&&"[object FormData]"===e.toString()},B=p("URLSearchParams"),[G,V,H,z]=["ReadableStream","Request","Response","Headers"].map(p),U=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),g(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(v(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function $(e,t){if(v(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const j=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),X=e=>!m(e)&&e!==j;function Y(...e){const{caseless:t,skipUndefined:n}=X(this)&&this||{},i={},r=(e,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=t&&"string"===typeof r&&$(i,r)||r,s=u(i,o)?i[o]:void 0;A(s)&&A(e)?i[o]=Y(s,e):A(e)?i[o]=Y({},e):g(e)?i[o]=e.slice():n&&m(e)||(i[o]=e)};for(let o=0,s=e.length;o<s;o++){const t=e[o];if(!t||v(t))continue;if(W(t,r),"object"!==typeof t||g(t))continue;const n=Object.getOwnPropertySymbols(t);for(let e=0;e<n.length;e++){const i=n[e];se.call(t,i)&&r(t[i],i)}}return i}const K=(e,t,n,{allOwnKeys:i}={})=>(W(t,(t,i)=>{n&&x(t)?Object.defineProperty(e,i,{__proto__:null,value:r(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),q=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),Z=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Q=(e,t,n,i)=>{let r,o,a;const l={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),o=r.length;while(o-- >0)a=r[o],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},J=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},ee=e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},te=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),ne=(e,t)=>{const n=e&&e[a],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},ie=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},re=p("HTMLFormElement"),oe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:se}=Object.prototype,ae=p("RegExp"),le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};W(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)}),Object.defineProperties(e,i)},ue=e=>{le(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].includes(n))return!1;const i=e[n];x(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},ce=(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return g(e)?i(e):i(String(e).split(t)),n},de=()=>{},he=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function pe(e){return!!(e&&x(e.append)&&"FormData"===e[l]&&e[a])}const fe=e=>{const t=new WeakSet,n=e=>{if(_(e)){if(t.has(e))return;if(v(e))return e;if(!("toJSON"in e)){t.add(e);const i=g(e)?[]:{};return W(e,(e,t)=>{const r=n(e);!m(r)&&(i[t]=r)}),t.delete(e),i}}return e};return n(e)},ge=p("AsyncFunction"),me=e=>e&&(_(e)||x(e))&&x(e.then)&&x(e.catch),ve=((e,t)=>e?setImmediate:t?((e,t)=>(j.addEventListener("message",({source:n,data:i})=>{n===j&&i===e&&t.length&&t.shift()()},!1),n=>{t.push(n),j.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,x(j.postMessage)),ye="undefined"!==typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!==typeof process&&process.nextTick||ve,Ce=e=>null!=e&&x(e[a]),we=e=>null!=e&&c(e,a)&&Ce(e);var xe={isArray:g,isArrayBuffer:y,isBuffer:v,isFormData:k,isArrayBufferView:C,isString:w,isNumber:b,isBoolean:S,isObject:_,isPlainObject:A,isEmptyObject:T,isReadableStream:G,isRequest:V,isResponse:H,isHeaders:z,isUndefined:m,isDate:E,isFile:D,isReactNativeBlob:M,isReactNative:I,isBlob:R,isRegExp:ae,isFunction:x,isStream:P,isURLSearchParams:B,isTypedArray:te,isFileList:L,forEach:W,merge:Y,extend:K,trim:U,stripBOM:q,inherits:Z,toFlatObject:Q,kindOf:h,kindOfTest:p,endsWith:J,toArray:ee,forEachEntry:ne,matchAll:ie,isHTMLForm:re,hasOwnProperty:u,hasOwnProp:u,hasOwnInPrototypeChain:c,getSafeProp:d,reduceDescriptors:le,freezeMethods:ue,toObjectSet:ce,toCamelCase:oe,noop:de,toFiniteNumber:he,findKey:$,global:j,isContextDefined:X,isSpecCompliantForm:pe,toJSONObject:fe,isAsyncFn:ge,isThenable:me,setImmediate:ve,asap:ye,isIterable:Ce,isSafeIterable:we};const be=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var _e=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&be[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t};function Se(e){let t=0,n=e.length;while(t<n){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}while(n>t){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}n.dn(_e);const Ae=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ee(e,t){return xe.isArray(e)?e.map(e=>Ee(e,t)):Se(String(e).replace(t,""))}const De=e=>Ee(e,Ae),Me=e=>Ee(e,Te);function Ie(e){const t=Object.create(null);return xe.forEach(e.toJSON(),(e,n)=>{t[n]=Me(e)}),t}const Re=Symbol("internals");function Le(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:xe.isArray(e)?e.map(Pe):De(String(e))}function Ne(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const Fe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oe(e,t,n,i,r){return xe.isFunction(i)?i.call(this,t,n):(r&&(t=n),xe.isString(t)?xe.isString(i)?-1!==t.indexOf(i):xe.isRegExp(i)?i.test(t):void 0:void 0)}function ke(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Be(e,t){const n=xe.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{__proto__:null,value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}class Ge{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Le(t);if(!r)return;const o=xe.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Pe(e))}const o=(e,t)=>xe.forEach(e,(e,n)=>r(e,n,t));if(xe.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(xe.isString(e)&&(e=e.trim())&&!Fe(e))o(_e(e),t);else if(xe.isObject(e)&&xe.isSafeIterable(e)){let n,i,r=Object.create(null);for(const t of e){if(!xe.isArray(t))throw new TypeError("Object iterator must return a key-value pair");i=t[0],xe.hasOwnProp(r,i)?(n=r[i],r[i]=xe.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}o(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Le(e),e){const n=xe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Ne(e);if(xe.isFunction(t))return t.call(this,e,n);if(xe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Le(e),e){const n=xe.findKey(this,e);return!(!n||void 0===this[n]||t&&!Oe(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Le(e),e){const r=xe.findKey(n,e);!r||t&&!Oe(n,n[r],r,t)||(delete n[r],i=!0)}}return xe.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!Oe(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return xe.forEach(this,(i,r)=>{const o=xe.findKey(n,r);if(o)return t[o]=Pe(i),void delete t[r];const s=e?ke(r):String(r).trim();s!==r&&delete t[r],t[s]=Pe(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return xe.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&xe.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=this[Re]=this[Re]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=Le(e);n[t]||(Be(i,e),n[t]=!0)}return xe.isArray(e)?e.forEach(r):r(e),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(Ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),xe.freezeMethods(Ge);var Ve=Ge;const He="[REDACTED ****]";function ze(e){if(xe.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(xe.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ue(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),i=[],r=e=>{if(null===e||"object"!==typeof e)return e;if(xe.isBuffer(e))return e;if(-1!==i.indexOf(e))return;let t;if(e instanceof Ve&&(e=e.toJSON()),i.push(e),xe.isArray(e))t=[],e.forEach((e,n)=>{const i=r(e);xe.isUndefined(i)||(t[n]=i)});else{if(!xe.isPlainObject(e)&&ze(e))return i.pop(),e;t=Object.create(null);for(const[i,o]of Object.entries(e)){const e=n.has(i.toLowerCase())?He:r(o);xe.isUndefined(e)||(t[i]=e)}}return i.pop(),t};return r(e)}class We extends Error{static from(e,t,n,i,r,o){const s=new We(e.message,t||e.code,n,i,r);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,n,i,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&xe.hasOwnProp(e,"redact")?e.redact:void 0,n=xe.isArray(t)&&t.length>0?Ue(e,t):xe.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}We.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",We.ERR_BAD_OPTION="ERR_BAD_OPTION",We.ECONNABORTED="ECONNABORTED",We.ETIMEDOUT="ETIMEDOUT",We.ECONNREFUSED="ECONNREFUSED",We.ERR_NETWORK="ERR_NETWORK",We.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",We.ERR_DEPRECATED="ERR_DEPRECATED",We.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",We.ERR_BAD_REQUEST="ERR_BAD_REQUEST",We.ERR_CANCELED="ERR_CANCELED",We.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",We.ERR_INVALID_URL="ERR_INVALID_URL",We.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var $e=We;const je=100;function Xe(e){return xe.isPlainObject(e)||xe.isArray(e)}function Ye(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ye(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function qe(e){return xe.isArray(e)&&!e.some(Xe)}const Ze=xe.toFlatObject(xe,{},null,function(e){return/^is[A-Z]/.test(e)});function Qe(e,t,n){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!xe.isUndefined(t[e])});const i=n.metaTokens,r=n.visitor||f,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,l=void 0===n.maxDepth?je:n.maxDepth,u=a&&xe.isSpecCompliantForm(t),c=[];if(!xe.isFunction(r))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(xe.isDate(e))return e.toISOString();if(xe.isBoolean(e))return e.toString();if(!u&&xe.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(xe.isArrayBuffer(e)||xe.isTypedArray(e)){if(u&&"function"===typeof a)return new a([e]);if("undefined"!==typeof Buffer)return Buffer.from(e);throw new $e("Blob is not supported. Use a Buffer instead.",$e.ERR_NOT_SUPPORT)}return e}function h(e){if(e>l)throw new $e("Object is too deeply nested ("+e+" levels). Max depth: "+l,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,i){if(!xe.isObject(i))return i;while(n.length&&n[n.length-1]!==this)n.pop();return n.push(i),h(t+n.length-1),i})}function f(e,n,r){let a=e;if(xe.isReactNative(t)&&xe.isReactNativeBlob(e))return t.append(Ke(r,n,o),d(e)),!1;if(e&&!r&&"object"===typeof e)if(xe.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=p(e,1);else if(xe.isArray(e)&&qe(e)||(xe.isFileList(e)||xe.endsWith(n,"[]"))&&(a=xe.toArray(e)))return n=Ye(n),a.forEach(function(e,i){!xe.isUndefined(e)&&null!==e&&t.append(!0===s?Ke([n],i,o):null===s?n:n+"[]",d(e))}),!1;return!!Xe(e)||(t.append(Ke(r,n,o),d(e)),!1)}const g=Object.assign(Ze,{defaultVisitor:f,convertValue:d,isVisitable:Xe});function m(e,n,i=0){if(!xe.isUndefined(e)){if(h(i),-1!==c.indexOf(e))throw new Error("Circular reference detected in "+n.join("."));c.push(e),xe.forEach(e,function(e,o){const s=!(xe.isUndefined(e)||null===e)&&r.call(t,e,xe.isString(o)?o.trim():o,n,g);!0===s&&m(e,n?n.concat(o):[o],i+1)}),c.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return m(e),t}var Je=Qe;function et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function tt(e,t){this._pairs=[],e&&Je(e,this,t)}const nt=tt.prototype;nt.append=function(e,t){this._pairs.push([e,t])},nt.toString=function(e){const t=e?t=>e.call(this,t,et):et;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var it=tt;function rt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ot(e,t,n){if(!t)return e;e=e||"";const i=xe.isFunction(n)?{serialize:n}:n,r=xe.getSafeProp(i,"encode")||rt,o=xe.getSafeProp(i,"serialize");let s;if(s=o?o(t,i):xe.isURLSearchParams(t)?t.toString():new it(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class st{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xe.forEach(this.handlers,function(t){null!==t&&e(t)})}}var at=st,lt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ut="undefined"!==typeof URLSearchParams?URLSearchParams:it,ct="undefined"!==typeof FormData?FormData:null,dt="undefined"!==typeof Blob?Blob:null,ht={isBrowser:!0,classes:{URLSearchParams:ut,FormData:ct,Blob:dt},protocols:["http","https","file","blob","url","data"]};const pt="undefined"!==typeof window&&"undefined"!==typeof document,ft="object"===typeof navigator&&navigator||void 0,gt=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),mt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),vt=pt&&window.location.href||"http://localhost";var yt={...i,...ht};function Ct(e,t){return Je(e,new yt.classes.URLSearchParams,{visitor:function(e,t,n,i){return yt.isNode&&xe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const wt=100;function xt(e){if(e>wt)throw new $e("FormData field is too deeply nested ("+e+" levels). Max depth: "+wt,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function bt(e){const t=[],n=/\w+|\[(\w*)]/g;let i;while(null!==(i=n.exec(e)))xt(t.length),t.push("[]"===i[0]?"":i[1]||i[0]);return t}function _t(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}function St(e){function t(e,n,i,r){xt(r);let o=e[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=e.length;if(o=!o&&xe.isArray(i)?i.length:o,a)return xe.hasOwnProp(i,o)?i[o]=xe.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!s;xe.hasOwnProp(i,o)&&xe.isObject(i[o])||(i[o]=[]);const l=t(e,n,i[o],r);return l&&xe.isArray(i[o])&&(i[o]=_t(i[o])),!s}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,(e,i)=>{t(bt(e),i,n,0)}),n}return null}var At=St;const Tt=(e,t)=>null!=e&&xe.hasOwnProp(e,t)?e[t]:void 0;function Et(e,t,n){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const Dt={transitional:lt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=xe.isObject(e);r&&xe.isHTMLForm(e)&&(e=new FormData(e));const o=xe.isFormData(e);if(o)return i?JSON.stringify(At(e)):e;if(xe.isArrayBuffer(e)||xe.isBuffer(e)||xe.isStream(e)||xe.isFile(e)||xe.isBlob(e)||xe.isReadableStream(e))return e;if(xe.isArrayBufferView(e))return e.buffer;if(xe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){const t=Tt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ct(e,t).toString();if((s=xe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Tt(this,"env"),i=n&&n.FormData;return Je(s?{"files[]":e}:e,i&&new i,t)}}return r||i?(t.setContentType("application/json",!1),Et(e)):e}],transformResponse:[function(e){const t=Tt(this,"transitional")||Dt.transitional,n=t&&t.forcedJSONParsing,i=Tt(this,"responseType"),r="json"===i;if(xe.isResponse(e)||xe.isReadableStream(e))return e;if(e&&xe.isString(e)&&(n&&!i||r)){const n=t&&t.silentJSONParsing,i=!n&&r;try{return JSON.parse(e,Tt(this,"parseReviver"))}catch(o){if(i){if("SyntaxError"===o.name)throw $e.from(o,$e.ERR_BAD_RESPONSE,this,null,Tt(this,"response"));throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch","query"],e=>{Dt.headers[e]={}});var Mt=Dt;function It(e,t){const n=this||Mt,i=t||n,r=Ve.from(i.headers);let o=i.data;return xe.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Rt(e){return!(!e||!e.__CANCEL__)}class Lt extends $e{constructor(e,t,n){super(null==e?"canceled":e,$e.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}var Pt=Lt;function Nt(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new $e("Request failed with status code "+n.status,n.status>=400&&n.status<500?$e.ERR_BAD_REQUEST:$e.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}function Ft(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Ot(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=i[s];r||(r=l),n[o]=a,i[o]=l;let c=s,d=0;while(c!==o)d+=n[c++],c%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-r<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}var kt=Ot;function Bt(e,t){let n,i,r=0,o=1e3/t;const s=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e(...t)},a=(...e)=>{const t=Date.now(),a=t-r;a>=o?s(e,t):(n=e,i||(i=setTimeout(()=>{i=null,s(n)},o-a)))},l=()=>n&&s(n);return[a,l]}var Gt=Bt;const Vt=(e,t,n=3)=>{let i=0;const r=kt(50,250);return Gt(n=>{if(!n||"number"!==typeof n.loaded)return;const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=null!=s?Math.min(o,s):o,l=Math.max(0,a-i),u=r(l);i=Math.max(i,a);const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(c)},n)},Ht=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},zt=e=>(...t)=>xe.asap(()=>e(...t));var Ut=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Wt=yt.hasStandardBrowserEnv?{write(e,t,n,i,r,o,s){if("undefined"===typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];xe.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),xe.isString(i)&&a.push(`path=${i}`),xe.isString(r)&&a.push(`domain=${r}`),!0===o&&a.push("secure"),xe.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const r=t[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(n){return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $t(e){return"string"===typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Xt=/^https?:(?!\/\/)/i,Yt=/[\t\n\r]/g;function Kt(e){let t=0;while(t<e.length&&e.charCodeAt(t)<=32)t++;return e.slice(t)}function qt(e){return Kt(e).replace(Yt,"")}function Zt(e,t){if("string"===typeof e&&Xt.test(qt(e)))throw new $e('Invalid URL: missing "//" after protocol',$e.ERR_INVALID_URL,t)}function Qt(e,t,n,i){Zt(t,i);let r=!$t(t);return e&&(r||!1===n)?(Zt(e,i),jt(e,t)):t}const Jt=e=>e instanceof Ve?{...e}:e;function en(e,t){e=e||{},t=t||{};const n=Object.create(null);function i(e,t,n,i){return xe.isPlainObject(e)&&xe.isPlainObject(t)?xe.merge.call({caseless:i},e,t):xe.isPlainObject(t)?xe.merge({},t):xe.isArray(t)?t.slice():t}function r(e,t,n,r){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function o(e,t){if(!xe.isUndefined(t))return i(void 0,t)}function s(e,t){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n){const i=xe.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!xe.isUndefined(i)){if(!xe.isPlainObject(i))return;if(xe.hasOwnProp(i,n))return i[n]}const r=xe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(xe.isPlainObject(r)&&xe.hasOwnProp(r,n))return r[n]}function l(n,r,o){return xe.hasOwnProp(t,o)?i(n,r):xe.hasOwnProp(e,o)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>r(Jt(e),Jt(t),n,!0)};return xe.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=xe.hasOwnProp(u,i)?u[i]:r,s=xe.hasOwnProp(e,i)?e[i]:void 0,a=xe.hasOwnProp(t,i)?t[i]:void 0,c=o(s,a,i);xe.isUndefined(c)&&o!==l||(n[i]=c)}),xe.hasOwnProp(t,"validateStatus")&&xe.isUndefined(t.validateStatus)&&!1===a("validateStatusUndefinedResolves")&&(xe.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}const tn=["content-type","content-length"];function nn(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{tn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}const rn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function on(e){const t=en({},e),n=e=>xe.hasOwnProp(t,e)?t[e]:void 0,i=n("data");let r=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=Ve.from(a),t.url=ot(Qt(u,d,c,t),n("params"),n("paramsSerializer")),l){const t=xe.getSafeProp(l,"username")||"",n=xe.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(n?rn(n):"")))}catch(h){throw $e.from(h,$e.ERR_BAD_OPTION_VALUE,e)}}if(xe.isFormData(i)&&(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||xe.isReactNative(i)?a.setContentType(void 0):xe.isFunction(i.getHeaders)&&nn(a,i.getHeaders(),n("formDataHeaderPolicy"))),yt.hasStandardBrowserEnv){xe.isFunction(r)&&(r=r(t));const e=!0===r||null==r&&Ut(t.url);if(e){const e=o&&s&&Wt.read(s);e&&a.set(o,e)}}return t}var sn=on;const an="undefined"!==typeof XMLHttpRequest;var ln=an&&function(e){return new Promise(function(t,n){const i=sn(e);let r=i.data;const o=Ve.from(i.headers).normalize();let s,a,l,u,c,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=i;function f(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function m(){if(!g)return;const i=Ve.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),r=d&&"text"!==d&&"json"!==d?g.response:g.responseText,o={data:r,status:g.status,statusText:g.statusText,headers:i,config:e,request:g};Nt(function(e){t(e),f()},function(e){n(e),f()},o),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new $e("Request aborted",$e.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){const i=t&&t.message?t.message:"Network Error",r=new $e(i,$e.ERR_NETWORK,e,g);r.event=t||null,n(r),f(),g=null},g.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||lt;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new $e(t,r.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,g)),f(),g=null},void 0===r&&o.setContentType(null),"setRequestHeader"in g&&xe.forEach(Ie(o),function(e,t){g.setRequestHeader(t,e)}),xe.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),d&&"json"!==d&&(g.responseType=i.responseType),p&&([l,c]=Vt(p,!0),g.addEventListener("progress",l)),h&&g.upload&&([a,u]=Vt(h),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(s=t=>{g&&(n(!t||t.type?new Pt(null,e,g):t),g.abort(),f(),g=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=Ft(i.url);if(v&&!yt.protocols.includes(v))return n(new $e("Unsupported protocol "+v+":",$e.ERR_BAD_REQUEST,e)),void f();g.send(r||null)})};const un=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let i=!1;const r=function(e){if(!i){i=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $e?t:new Pt(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,r(new $e(`timeout of ${t}ms exceeded`,$e.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));const{signal:a}=n;return a.unsubscribe=()=>xe.asap(s),a};var cn=un;const dn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;while(r<n)i=r+t,yield e.slice(r,i),r=i},hn=async function*(e,t){for await(const n of pn(e))yield*dn(n,t)},pn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},fn=(e,t,n,i)=>{const r=hn(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let o=i.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),r.return()}},{highWaterMark:2})},gn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,mn=(e,t,n)=>t+2<n&&gn(e.charCodeAt(t+1))&&gn(e.charCodeAt(t+2));function vn(e){if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1),r=/;base64/i.test(n);if(r){let e=i.length;const t=i.length;for(let l=0;l<t;l++)if(37===i.charCodeAt(l)&&l+2<t){const t=i.charCodeAt(l+1),n=i.charCodeAt(l+2),r=gn(t)&&gn(n);r&&(e-=2,l+=2)}let n=0,r=t-1;const o=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));r>=0&&(61===i.charCodeAt(r)?(n++,r--):o(r)&&(n++,r-=3)),1===n&&r>=0&&(61===i.charCodeAt(r)||o(r))&&n++;const s=Math.floor(e/4),a=3*s-(n||0);return a>0?a:0}let o=0;for(let s=0,a=i.length;s<a;s++){const e=i.charCodeAt(s);if(37===e&&mn(i,s,a))o+=1,s+=2;else if(e<128)o+=1;else if(e<2048)o+=2;else if(e>=55296&&e<=56319&&s+1<a){const e=i.charCodeAt(s+1);e>=56320&&e<=57343?(o+=4,s++):o+=3}else o+=3}return o}const yn=65536,{isFunction:Cn}=xe,wn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),xn=e=>{if(!xe.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},bn=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},_n=e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Sn=e=>{const t=void 0!==xe.global&&null!==xe.global?xe.global:globalThis,{ReadableStream:n,TextEncoder:i}=t;e=xe.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:o,Response:s}=e,a=r?Cn(r):"function"===typeof fetch,l=Cn(o),u=Cn(s);if(!a)return!1;const c=a&&Cn(n),d=a&&("function"===typeof i?(e=>t=>e.encode(t))(new i):async e=>new Uint8Array(await new o(e).arrayBuffer())),h=l&&c&&bn(()=>{let e=!1;const t=new o(yt.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),i=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!i}),p=u&&c&&bn(()=>xe.isReadableStream(new s("").body)),f={stream:p&&(e=>e.body)};a&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,n)})})})();const g=async e=>{if(null==e)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e)){const t=new o(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return xe.isArrayBufferView(e)||xe.isArrayBuffer(e)?e.byteLength:(xe.isURLSearchParams(e)&&(e+=""),xe.isString(e)?(await d(e)).byteLength:void 0)},m=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return null==n?g(t):n};return async e=>{let{url:t,method:n,data:a,signal:u,cancelToken:d,timeout:v,onDownloadProgress:y,onUploadProgress:C,responseType:w,headers:x,withCredentials:b="same-origin",fetchOptions:_,maxContentLength:S,maxBodyLength:A}=sn(e);const T=xe.isNumber(S)&&S>-1,E=xe.isNumber(A)&&A>-1,D=t=>xe.hasOwnProp(e,t)?e[t]:void 0;let M=r||fetch;w=w?(w+"").toLowerCase():"text";let I=cn([u,d&&d.toAbortSignal()],v),R=null;const L=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let P,N=null;const F=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,R);try{let r;const u=D("auth");if(u){const e=xe.getSafeProp(u,"username")||"",t=xe.getSafeProp(u,"password")||"";r={username:e,password:t}}if(_n(t)){const e=new URL(t,yt.origin);if(!r&&(e.username||e.password)){const t=xn(e.username),n=xn(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(r&&(x.delete("authorization"),x.set("Authorization","Basic "+btoa(wn((r.username||"")+":"+(r.password||""))))),T&&"string"===typeof t&&t.startsWith("data:")){const n=vn(t);if(n>S)throw new $e("maxContentLength size of "+S+" exceeded",$e.ERR_BAD_RESPONSE,e,R)}if(E&&"get"!==n&&"head"!==n){const e=await g(a);if("number"===typeof e&&isFinite(e)&&(P=e,e>A))throw F()}const d=E&&(xe.isReadableStream(a)||xe.isStream(a)),v=(e,t,n)=>fn(e,yn,e=>{if(E&&e>A)throw N=F();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(C||d)){if(P=null==P?await m(x,a):P,0!==P||d){let e,n=new o(t,{method:"POST",body:a,duplex:"half"});if(xe.isFormData(a)&&(e=n.headers.get("content-type"))&&x.setContentType(e),n.body){const[e,t]=C&&Ht(P,Vt(zt(C)))||[];a=v(n.body,e,t)}}}else if(d&&!l&&c&&"get"!==n&&"head"!==n)a=v(a);else if(d&&l&&!h&&"get"!==n&&"head"!==n)throw new $e("Stream request bodies are not supported by the current fetch implementation",$e.ERR_NOT_SUPPORT,e,R);xe.isString(b)||(b=b?"include":"omit");const O=l&&"credentials"in o.prototype;if(xe.isFormData(a)){const e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.18.1",!1);const k={..._,signal:I,method:n.toUpperCase(),headers:Ie(x.normalize()),body:a,duplex:"half",credentials:O?b:void 0};R=l&&new o(t,k);let B=await(l?M(R,_):M(t,k));const G=Ve.from(B.headers);if(T){const t=xe.toFiniteNumber(G.getContentLength());if(null!=t&&t>S)throw new $e("maxContentLength size of "+S+" exceeded",$e.ERR_BAD_RESPONSE,e,R)}const V=p&&("stream"===w||"response"===w);if(p&&B.body&&(y||T||V&&L)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=B[e]});const n=xe.toFiniteNumber(G.getContentLength()),[i,r]=y&&Ht(n,Vt(zt(y),!0))||[];let o=0;const a=t=>{if(T&&(o=t,o>S))throw new $e("maxContentLength size of "+S+" exceeded",$e.ERR_BAD_RESPONSE,e,R);i&&i(t)};B=new s(fn(B.body,yn,a,()=>{r&&r(),L&&L()}),t)}w=w||"text";let H=await f[xe.findKey(f,w)||"text"](B,e);if(T&&!p&&!V){let t;if(null!=H&&("number"===typeof H.byteLength?t=H.byteLength:"number"===typeof H.size?t=H.size:"string"===typeof H&&(t="function"===typeof i?(new i).encode(H).byteLength:H.length)),"number"===typeof t&&t>S)throw new $e("maxContentLength size of "+S+" exceeded",$e.ERR_BAD_RESPONSE,e,R)}return!V&&L&&L(),await new Promise((t,n)=>{Nt(t,n,{data:H,headers:Ve.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:R})})}catch(O){if(L&&L(),I&&I.aborted&&I.reason instanceof $e){const t=I.reason;throw t.config=e,R&&(t.request=R),O!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:O,writable:!0,enumerable:!1,configurable:!0}),t}if(N)throw R&&!N.request&&(N.request=R),N;if(O instanceof $e)throw R&&!O.request&&(O.request=R),O;if(O&&"TypeError"===O.name&&/Load failed|fetch/i.test(O.message)){const t=new $e("Network Error",$e.ERR_NETWORK,e,R,O&&O.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:O.cause||O,writable:!0,enumerable:!1,configurable:!0}),t}throw $e.from(O,O&&O.code,e,R,O&&O.response)}}},An=new Map,Tn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:r}=t,o=[i,r,n];let s,a,l=o.length,u=l,c=An;while(u--)s=o[u],a=c.get(s),void 0===a&&c.set(s,a=u?new Map:Sn(t)),c=a;return a};Tn();const En={http:null,xhr:ln,fetch:{get:Tn}};xe.forEach(En,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Dn=e=>`- ${e}`,Mn=e=>xe.isFunction(e)||null===e||!1===e;function In(e,t){e=xe.isArray(e)?e:[e];const{length:n}=e;let i,r;const o={};for(let s=0;s<n;s++){let n;if(i=e[s],r=i,!Mn(i)&&(r=En[(n=String(i)).toLowerCase()],void 0===r))throw new $e(`Unknown adapter '${n}'`);if(r&&(xe.isFunction(r)||(r=r.get(t))))break;o[n||"#"+s]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Dn).join("\n"):" "+Dn(e[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+t,$e.ERR_NOT_SUPPORT)}return r}var Rn={getAdapter:In,adapters:En};function Ln(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pt(null,e)}function Pn(e){Ln(e),e.headers=Ve.from(e.headers),e.data=It.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Rn.getAdapter(e.adapter||Mt.adapter,e);return t(e).then(function(t){Ln(e),e.response=t;try{t.data=It.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Ve.from(t.headers),t},function(t){if(!Rt(t)&&(Ln(e),t&&t.response)){e.response=t.response;try{t.response.data=It.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Ve.from(t.response.headers)}return Promise.reject(t)})}const Nn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Fn={};function On(e,t,n){if("object"!==typeof e||null===e)throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const o=i[r],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new $e("option "+o+" must be "+n,$e.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new $e("Unknown option "+o,$e.ERR_BAD_OPTION)}}Nn.transitional=function(e,t,n){function i(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new $e(i(r," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!Fn[r]&&(Fn[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},Nn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var kn={assertOptions:On,validators:Nn};const Bn=kn.validators;class Gn{constructor(e){this.defaults=e||{},this.interceptors={request:new at,response:new at}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),i=-1===e?-1:t.indexOf("\n",e+1),r=-1===i?"":t.slice(i+1);String(n.stack).endsWith(r)||(n.stack+="\n"+t)}}else n.stack=t}catch(i){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=en(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&kn.assertOptions(n,{silentJSONParsing:Bn.transitional(Bn.boolean),forcedJSONParsing:Bn.transitional(Bn.boolean),clarifyTimeoutError:Bn.transitional(Bn.boolean),legacyInterceptorReqResOrdering:Bn.transitional(Bn.boolean),advertiseZstdAcceptEncoding:Bn.transitional(Bn.boolean),validateStatusUndefinedResolves:Bn.transitional(Bn.boolean)},!1),null!=i&&(xe.isFunction(i)?t.paramsSerializer={serialize:i}:kn.assertOptions(i,{encode:Bn.function,serialize:Bn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),kn.assertOptions(t,{baseUrl:Bn.spelling("baseURL"),withXsrfToken:Bn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&xe.merge(r.common,r[t.method]);r&&xe.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete r[e]}),t.headers=Ve.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||lt,i=n&&n.legacyInterceptorReqResOrdering;i?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[Pn.bind(this),void 0];e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);while(d<c)u=u.then(e[d++],e[d++]);return u}c=s.length;let h=t;while(d<c){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{u=Pn.call(this,h)}catch(p){return Promise.reject(p)}d=0,c=l.length;while(d<c)u=u.then(l[d++],l[d++]);return u}getUri(e){e=en(this.defaults,e);const t=Qt(e.baseURL,e.url,e.allowAbsoluteUrls,e);return ot(t,e.params,e.paramsSerializer)}}xe.forEach(["delete","get","head","options"],function(e){Gn.prototype[e]=function(t,n){return this.request(en(n||{},{method:e,url:t,data:n&&xe.hasOwnProp(n,"data")?n.data:void 0}))}}),xe.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,r){return this.request(en(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Gn.prototype[e]=t(),"query"!==e&&(Gn.prototype[e+"Form"]=t(!0))});var Vn=Gn;class Hn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,r){n.reason||(n.reason=new Pt(e,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Hn(function(t){e=t});return{token:t,cancel:e}}}var zn=Hn;function Un(e){return function(t){return e.apply(null,t)}}function Wn(e){return xe.isObject(e)&&!0===e.isAxiosError}const $n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($n).forEach(([e,t])=>{$n[t]=e});var jn=$n;function Xn(e){const t=new Vn(e),n=r(Vn.prototype.request,t);return xe.extend(n,Vn.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Xn(en(e,t))},n}const Yn=Xn(Mt);Yn.Axios=Vn,Yn.CanceledError=Pt,Yn.CancelToken=zn,Yn.isCancel=Rt,Yn.VERSION="1.18.1",Yn.toFormData=Je,Yn.AxiosError=$e,Yn.Cancel=Yn.CanceledError,Yn.all=function(e){return Promise.all(e)},Yn.spread=Un,Yn.isAxiosError=Wn,Yn.mergeConfig=en,Yn.AxiosHeaders=Ve,Yn.formToJSON=e=>At(xe.isHTMLForm(e)?new FormData(e):e),Yn.getAdapter=Rn.getAdapter,Yn.HttpStatusCode=jn,Yn.default=Yn;var Kn=Yn},127:function(e,t,n){"use strict";function i(){this.__data__=[],this.size=0}n.d(t,{A:function(){return C}});var r=i,o=n(6984);function s(e,t){var n=e.length;while(n--)if((0,o.A)(e[n][0],t))return n;return-1}var a=s,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=a(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():u.call(t,n,1),--this.size,!0}var d=c;function h(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}var p=h;function f(e){return a(this.__data__,e)>-1}var g=f;function m(e,t){var n=this.__data__,i=a(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var v=m;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}y.prototype.clear=r,y.prototype["delete"]=d,y.prototype.get=p,y.prototype.has=g,y.prototype.set=v;var C=y},8335:function(e,t,n){"use strict";var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"Map");t.A=o},9471:function(e,t,n){"use strict";n.d(t,{A:function(){return H}});var i=n(8744),r=(0,i.A)(Object,"create"),o=r;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=l,c="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function p(e){var t=this.__data__;if(o){var n=t[e];return n===c?void 0:n}return h.call(t,e)?t[e]:void 0}var f=p,g=Object.prototype,m=g.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:m.call(t,e)}var y=v,C="__lodash_hash_undefined__";function w(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?C:t,this}var x=w;function b(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}b.prototype.clear=a,b.prototype["delete"]=u,b.prototype.get=f,b.prototype.has=y,b.prototype.set=x;var _=b,S=n(127),A=n(8335);function T(){this.size=0,this.__data__={hash:new _,map:new(A.A||S.A),string:new _}}var E=T;function D(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var M=D;function I(e,t){var n=e.__data__;return M(t)?n["string"==typeof t?"string":"hash"]:n.map}var R=I;function L(e){var t=R(this,e)["delete"](e);return this.size-=t?1:0,t}var P=L;function N(e){return R(this,e).get(e)}var F=N;function O(e){return R(this,e).has(e)}var k=O;function B(e,t){var n=R(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var G=B;function V(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}V.prototype.clear=E,V.prototype["delete"]=P,V.prototype.get=F,V.prototype.has=k,V.prototype.set=G;var H=V},9857:function(e,t,n){"use strict";var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"Set");t.A=o},2062:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(9471),r="__lodash_hash_undefined__";function o(e){return this.__data__.set(e,r),this}var s=o;function a(e){return this.__data__.has(e)}var l=a;function u(e){var t=-1,n=null==e?0:e.length;this.__data__=new i.A;while(++t<n)this.add(e[t])}u.prototype.add=u.prototype.push=s,u.prototype.has=l;var c=u},1754:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(127);function r(){this.__data__=new i.A,this.size=0}var o=r;function s(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var a=s;function l(e){return this.__data__.get(e)}var u=l;function c(e){return this.__data__.has(e)}var d=c,h=n(8335),p=n(9471),f=200;function g(e,t){var n=this.__data__;if(n instanceof i.A){var r=n.__data__;if(!h.A||r.length<f-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new p.A(r)}return n.set(e,t),this.size=n.size,this}var m=g;function v(e){var t=this.__data__=new i.A(e);this.size=t.size}v.prototype.clear=o,v.prototype["delete"]=a,v.prototype.get=u,v.prototype.has=d,v.prototype.set=m;var y=v},241:function(e,t,n){"use strict";var i=n(1917),r=i.A.Symbol;t.A=r},3988:function(e,t,n){"use strict";var i=n(1917),r=i.A.Uint8Array;t.A=r},2641:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!1===t(e[n],n,e))break;return e}t.A=n},2634:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length,r=0,o=[];while(++n<i){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}t.A=n},5530:function(e,t,n){"use strict";var i=n(818);function r(e,t){var n=null==e?0:e.length;return!!n&&(0,i.A)(e,t,0)>-1}t.A=r},7809:function(e,t){"use strict";function n(e,t,n){var i=-1,r=null==e?0:e.length;while(++i<r)if(n(t,e[i]))return!0;return!1}t.A=n},3607:function(e,t,n){"use strict";function i(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}n.d(t,{A:function(){return p}});var r=i,o=n(2274),s=n(2049),a=n(9912),l=n(5353),u=n(3858),c=Object.prototype,d=c.hasOwnProperty;function h(e,t){var n=(0,s.A)(e),i=!n&&(0,o.A)(e),c=!n&&!i&&(0,a.A)(e),h=!n&&!i&&!c&&(0,u.A)(e),p=n||i||c||h,f=p?r(e.length,String):[],g=f.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,l.A)(m,g))||f.push(m);return f}var p=h},5572:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}t.A=n},6912:function(e,t){"use strict";function n(e,t){var n=-1,i=t.length,r=e.length;while(++n<i)e[r+n]=t[n];return e}t.A=n},2851:function(e,t,n){"use strict";var i=n(2528),r=n(6984),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,n){var o=e[t];s.call(e,t)&&(0,r.A)(o,n)&&(void 0!==n||t in e)||(0,i.A)(e,t,n)}t.A=a},2528:function(e,t,n){"use strict";var i=n(4171);function r(e,t,n){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=r},8675:function(e,t,n){"use strict";n.d(t,{A:function(){return it}});var i=n(1754),r=n(2641),o=n(2851),s=n(2031),a=n(7422);function l(e,t){return e&&(0,s.A)(t,(0,a.A)(t),e)}var u=l,c=n(5615);function d(e,t){return e&&(0,s.A)(t,(0,c.A)(t),e)}var h=d,p=n(154),f=n(9759),g=n(4792);function m(e,t){return(0,s.A)(e,(0,g.A)(e),t)}var v=m,y=n(3511);function C(e,t){return(0,s.A)(e,(0,y.A)(e),t)}var w=C,x=n(9042),b=n(3973),_=n(9779),S=Object.prototype,A=S.hasOwnProperty;function T(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&A.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var E=T,D=n(565);function M(e,t){var n=t?(0,D.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var I=M,R=/\w*$/;function L(e){var t=new e.constructor(e.source,R.exec(e));return t.lastIndex=e.lastIndex,t}var P=L,N=n(241),F=N.A?N.A.prototype:void 0,O=F?F.valueOf:void 0;function k(e){return O?Object(O.call(e)):{}}var B=k,G=n(1801),V="[object Boolean]",H="[object Date]",z="[object Map]",U="[object Number]",W="[object RegExp]",$="[object Set]",j="[object String]",X="[object Symbol]",Y="[object ArrayBuffer]",K="[object DataView]",q="[object Float32Array]",Z="[object Float64Array]",Q="[object Int8Array]",J="[object Int16Array]",ee="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ie="[object Uint16Array]",re="[object Uint32Array]";function oe(e,t,n){var i=e.constructor;switch(t){case Y:return(0,D.A)(e);case V:case H:return new i(+e);case K:return I(e,n);case q:case Z:case Q:case J:case ee:case te:case ne:case ie:case re:return(0,G.A)(e,n);case z:return new i;case U:case j:return new i(e);case W:return P(e);case $:return new i;case X:return B(e)}}var se=oe,ae=n(8598),le=n(2049),ue=n(9912),ce=n(3098),de="[object Map]";function he(e){return(0,ce.A)(e)&&(0,_.A)(e)==de}var pe=he,fe=n(2789),ge=n(4841),me=ge.A&&ge.A.isMap,ve=me?(0,fe.A)(me):pe,ye=ve,Ce=n(3149),we="[object Set]";function xe(e){return(0,ce.A)(e)&&(0,_.A)(e)==we}var be=xe,_e=ge.A&&ge.A.isSet,Se=_e?(0,fe.A)(_e):be,Ae=Se,Te=1,Ee=2,De=4,Me="[object Arguments]",Ie="[object Array]",Re="[object Boolean]",Le="[object Date]",Pe="[object Error]",Ne="[object Function]",Fe="[object GeneratorFunction]",Oe="[object Map]",ke="[object Number]",Be="[object Object]",Ge="[object RegExp]",Ve="[object Set]",He="[object String]",ze="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",$e="[object DataView]",je="[object Float32Array]",Xe="[object Float64Array]",Ye="[object Int8Array]",Ke="[object Int16Array]",qe="[object Int32Array]",Ze="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Je="[object Uint16Array]",et="[object Uint32Array]",tt={};function nt(e,t,n,s,l,d){var g,m=t&Te,y=t&Ee,C=t&De;if(n&&(g=l?n(e,s,l,d):n(e)),void 0!==g)return g;if(!(0,Ce.A)(e))return e;var S=(0,le.A)(e);if(S){if(g=E(e),!m)return(0,f.A)(e,g)}else{var A=(0,_.A)(e),T=A==Ne||A==Fe;if((0,ue.A)(e))return(0,p.A)(e,m);if(A==Be||A==Me||T&&!l){if(g=y||T?{}:(0,ae.A)(e),!m)return y?w(e,h(g,e)):v(e,u(g,e))}else{if(!tt[A])return l?e:{};g=se(e,A,m)}}d||(d=new i.A);var D=d.get(e);if(D)return D;d.set(e,g),Ae(e)?e.forEach(function(i){g.add(nt(i,t,n,i,e,d))}):ye(e)&&e.forEach(function(i,r){g.set(r,nt(i,t,n,r,e,d))});var M=C?y?b.A:x.A:y?c.A:a.A,I=S?void 0:M(e);return(0,r.A)(I||e,function(i,r){I&&(r=i,i=e[r]),(0,o.A)(g,r,nt(i,t,n,r,e,d))}),g}tt[Me]=tt[Ie]=tt[We]=tt[$e]=tt[Re]=tt[Le]=tt[je]=tt[Xe]=tt[Ye]=tt[Ke]=tt[qe]=tt[Oe]=tt[ke]=tt[Be]=tt[Ge]=tt[Ve]=tt[He]=tt[ze]=tt[Ze]=tt[Qe]=tt[Je]=tt[et]=!0,tt[Pe]=tt[Ne]=tt[Ue]=!1;var it=nt},1578:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(4574),r=n(7422);function o(e,t){return e&&(0,i.A)(e,t,r.A)}var s=o,a=n(8446);function l(e,t){return function(n,i){if(null==n)return n;if(!(0,a.A)(n))return e(n,i);var r=n.length,o=t?r:-1,s=Object(n);while(t?o--:++o<r)if(!1===i(s[o],o,s))break;return n}}var u=l,c=u(s),d=c},2559:function(e,t,n){"use strict";var i=n(1882);function r(e,t,n){var r=-1,o=e.length;while(++r<o){var s=e[r],a=t(s);if(null!=a&&(void 0===l?a===a&&!(0,i.A)(a):n(a,l)))var l=a,u=s}return u}t.A=r},5707:function(e,t){"use strict";function n(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o<r)if(t(e[o],o,e))return o;return-1}t.A=n},3588:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(6912),r=n(241),o=n(2274),s=n(2049),a=r.A?r.A.isConcatSpreadable:void 0;function l(e){return(0,s.A)(e)||(0,o.A)(e)||!!(a&&e&&e[a])}var u=l;function c(e,t,n,r,o){var s=-1,a=e.length;n||(n=u),o||(o=[]);while(++s<a){var l=e[s];t>0&&n(l)?t>1?c(l,t-1,n,r,o):(0,i.A)(o,l):r||(o[o.length]=l)}return o}var d=c},4574:function(e,t,n){"use strict";function i(e){return function(t,n,i){var r=-1,o=Object(t),s=i(t),a=s.length;while(a--){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}n.d(t,{A:function(){return s}});var r=i,o=r(),s=o},6318:function(e,t,n){"use strict";var i=n(3442),r=n(901);function o(e,t){t=(0,i.A)(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[(0,r.A)(t[n++])];return n&&n==o?e:void 0}t.A=o},3831:function(e,t,n){"use strict";var i=n(6912),r=n(2049);function o(e,t,n){var o=t(e);return(0,r.A)(e)?o:(0,i.A)(o,n(e))}t.A=o},8496:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(241),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i.A?i.A.toStringTag:void 0;function l(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(l){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}var u=l,c=Object.prototype,d=c.toString;function h(e){return d.call(e)}var p=h,f="[object Null]",g="[object Undefined]",m=i.A?i.A.toStringTag:void 0;function v(e){return null==e?void 0===e?g:f:m&&m in Object(e)?u(e):p(e)}var y=v},8951:function(e,t){"use strict";function n(e,t){return e>t}t.A=n},818:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(5707);function r(e){return e!==e}var o=r;function s(e,t,n){var i=n-1,r=e.length;while(++i<r)if(e[i]===t)return i;return-1}var a=s;function l(e,t,n){return t===t?a(e,t,n):(0,i.A)(e,o,n)}var u=l},6993:function(e,t,n){"use strict";n.d(t,{A:function(){return te}});var i=n(1754),r=n(2062);function o(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(t(e[n],n,e))return!0;return!1}var s=o,a=n(4099),l=1,u=2;function c(e,t,n,i,o,c){var d=n&l,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=c.get(e),g=c.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&u?new r.A:void 0;c.set(e,t),c.set(t,e);while(++m<h){var C=e[m],w=t[m];if(i)var x=d?i(w,C,m,t,e,c):i(C,w,m,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!s(t,function(e,t){if(!(0,a.A)(y,t)&&(C===e||o(C,e,n,i,c)))return y.push(t)})){v=!1;break}}else if(C!==w&&!o(C,w,n,i,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}var d=c,h=n(241),p=n(3988),f=n(6984);function g(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}var m=g,v=n(9959),y=1,C=2,w="[object Boolean]",x="[object Date]",b="[object Error]",_="[object Map]",S="[object Number]",A="[object RegExp]",T="[object Set]",E="[object String]",D="[object Symbol]",M="[object ArrayBuffer]",I="[object DataView]",R=h.A?h.A.prototype:void 0,L=R?R.valueOf:void 0;function P(e,t,n,i,r,o,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!o(new p.A(e),new p.A(t)));case w:case x:case S:return(0,f.A)(+e,+t);case b:return e.name==t.name&&e.message==t.message;case A:case E:return e==t+"";case _:var a=m;case T:var l=i&y;if(a||(a=v.A),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=C,s.set(e,t);var c=d(a(e),a(t),i,r,o,s);return s["delete"](e),c;case D:if(L)return L.call(e)==L.call(t)}return!1}var N=P,F=n(9042),O=1,k=Object.prototype,B=k.hasOwnProperty;function G(e,t,n,i,r,o){var s=n&O,a=(0,F.A)(e),l=a.length,u=(0,F.A)(t),c=u.length;if(l!=c&&!s)return!1;var d=l;while(d--){var h=a[d];if(!(s?h in t:B.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var g=!0;o.set(e,t),o.set(t,e);var m=s;while(++d<l){h=a[d];var v=e[h],y=t[h];if(i)var C=s?i(y,v,h,t,e,o):i(v,y,h,e,t,o);if(!(void 0===C?v===y||r(v,y,n,i,o):C)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return o["delete"](e),o["delete"](t),g}var V=G,H=n(9779),z=n(2049),U=n(9912),W=n(3858),$=1,j="[object Arguments]",X="[object Array]",Y="[object Object]",K=Object.prototype,q=K.hasOwnProperty;function Z(e,t,n,r,o,s){var a=(0,z.A)(e),l=(0,z.A)(t),u=a?X:(0,H.A)(e),c=l?X:(0,H.A)(t);u=u==j?Y:u,c=c==j?Y:c;var h=u==Y,p=c==Y,f=u==c;if(f&&(0,U.A)(e)){if(!(0,U.A)(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new i.A),a||(0,W.A)(e)?d(e,t,n,r,o,s):N(e,t,u,n,r,o,s);if(!(n&$)){var g=h&&q.call(e,"__wrapped__"),m=p&&q.call(t,"__wrapped__");if(g||m){var v=g?e.value():e,y=m?t.value():t;return s||(s=new i.A),o(v,y,n,r,s)}}return!!f&&(s||(s=new i.A),V(e,t,n,r,o,s))}var Q=Z,J=n(3098);function ee(e,t,n,i,r){return e===t||(null==e||null==t||!(0,J.A)(e)&&!(0,J.A)(t)?e!==e&&t!==t:Q(e,t,n,i,ee,r))}var te=ee},2816:function(e,t,n){"use strict";n.d(t,{A:function(){return $}});var i=n(1754),r=n(6993),o=1,s=2;function a(e,t,n,a){var l=n.length,u=l,c=!a;if(null==e)return!u;e=Object(e);while(l--){var d=n[l];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<u){d=n[l];var h=d[0],p=e[h],f=d[1];if(c&&d[2]){if(void 0===p&&!(h in e))return!1}else{var g=new i.A;if(a)var m=a(p,f,h,e,t,g);if(!(void 0===m?(0,r.A)(f,p,o|s,a,g):m))return!1}}return!0}var l=a,u=n(3149);function c(e){return e===e&&!(0,u.A)(e)}var d=c,h=n(7422);function p(e){var t=(0,h.A)(e),n=t.length;while(n--){var i=t[n],r=e[i];t[n]=[i,r,d(r)]}return t}var f=p;function g(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var m=g;function v(e){var t=f(e);return 1==t.length&&t[0][2]?m(t[0][0],t[0][1]):function(n){return n===e||l(n,e,t)}}var y=v,C=n(7500);function w(e,t){return null!=e&&t in Object(e)}var x=w,b=n(3442),_=n(2274),S=n(2049),A=n(5353),T=n(5254),E=n(901);function D(e,t,n){t=(0,b.A)(t,e);var i=-1,r=t.length,o=!1;while(++i<r){var s=(0,E.A)(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&(0,T.A)(r)&&(0,A.A)(s,r)&&((0,S.A)(e)||(0,_.A)(e)))}var M=D;function I(e,t){return null!=e&&M(e,t,x)}var R=I,L=n(6586),P=1,N=2;function F(e,t){return(0,L.A)(e)&&d(t)?m((0,E.A)(e),t):function(n){var i=(0,C.A)(n,e);return void 0===i&&i===t?R(n,e):(0,r.A)(t,i,P|N)}}var O=F,k=n(9008),B=n(805),G=n(6318);function V(e){return function(t){return(0,G.A)(t,e)}}var H=V;function z(e){return(0,L.A)(e)?(0,B.A)((0,E.A)(e)):H(e)}var U=z;function W(e){return"function"==typeof e?e:null==e?k.A:"object"==typeof e?(0,S.A)(e)?O(e[0],e[1]):y(e):U(e)}var $=W},1852:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(7271),r=n(367),o=(0,r.A)(Object.keys,Object),s=o,a=Object.prototype,l=a.hasOwnProperty;function u(e){if(!(0,i.A)(e))return s(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var c=u},2568:function(e,t,n){"use strict";var i=n(1578),r=n(8446);function o(e,t){var n=-1,o=(0,r.A)(e)?Array(e.length):[];return(0,i.A)(e,function(e,i,r){o[++n]=t(e,i,r)}),o}t.A=o},805:function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}t.A=n},4326:function(e,t,n){"use strict";var i=n(9008),r=n(6875),o=n(9727);function s(e,t){return(0,o.A)((0,r.A)(e,t,i.A),e+"")}t.A=s},7688:function(e,t){"use strict";function n(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;var o=Array(r);while(++i<r)o[i]=e[i+t];return o}t.A=n},52:function(e,t,n){"use strict";var i=n(241),r=n(5572),o=n(2049),s=n(1882),a=1/0,l=i.A?i.A.prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,r.A)(e,c)+"";if((0,s.A)(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}t.A=c},9489:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=/\s/;function r(e){var t=e.length;while(t--&&i.test(e.charAt(t)));return t}var o=r,s=/^\s+/;function a(e){return e?e.slice(0,o(e)+1).replace(s,""):e}var l=a},2789:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},1285:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i=n(2062),r=n(5530),o=n(7809),s=n(4099),a=n(9857);function l(){}var u=l,c=n(9959),d=1/0,h=a.A&&1/(0,c.A)(new a.A([,-0]))[1]==d?function(e){return new a.A(e)}:u,p=h,f=200;function g(e,t,n){var a=-1,l=r.A,u=e.length,d=!0,h=[],g=h;if(n)d=!1,l=o.A;else if(u>=f){var m=t?null:p(e);if(m)return(0,c.A)(m);d=!1,l=s.A,g=new i.A}else g=t?[]:h;e:while(++a<u){var v=e[a],y=t?t(v):v;if(v=n||0!==v?v:0,d&&y===y){var C=g.length;while(C--)if(g[C]===y)continue e;t&&g.push(y),h.push(v)}else l(g,y,n)||(g!==h&&g.push(y),h.push(v))}return h}var m=g},4099:function(e,t){"use strict";function n(e,t){return e.has(t)}t.A=n},3442:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(2049),r=n(6586),o=n(9471),s="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(a.Cache||o.A),n}a.Cache=o.A;var l=a,u=500;function c(e){var t=l(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}var d=c,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=d(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(h,function(e,n,i,r){t.push(i?r.replace(p,"$1"):n||e)}),t}),g=f,m=n(8182);function v(e,t){return(0,i.A)(e)?e:(0,r.A)(e,t)?[e]:g((0,m.A)(e))}var y=v},98:function(e,t,n){"use strict";var i=n(7688);function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:(0,i.A)(e,t,n)}t.A=r},565:function(e,t,n){"use strict";var i=n(3988);function r(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}t.A=r},154:function(e,t,n){"use strict";var i=n(1917),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r,a=s?i.A.Buffer:void 0,l=a?a.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,i=l?l(n):new e.constructor(n);return e.copy(i),i}t.A=u},1801:function(e,t,n){"use strict";var i=n(565);function r(e,t){var n=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t.A=r},9759:function(e,t){"use strict";function n(e,t){var n=-1,i=e.length;t||(t=Array(i));while(++n<i)t[n]=e[n];return t}t.A=n},2031:function(e,t,n){"use strict";var i=n(2851),r=n(2528);function o(e,t,n,o){var s=!n;n||(n={});var a=-1,l=t.length;while(++a<l){var u=t[a],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?(0,r.A)(n,u,c):(0,i.A)(n,u,c)}return n}t.A=o},4171:function(e,t,n){"use strict";var i=n(8744),r=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=r},2136:function(e,t,n){"use strict";var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.A=i},9042:function(e,t,n){"use strict";var i=n(3831),r=n(4792),o=n(7422);function s(e){return(0,i.A)(e,o.A,r.A)}t.A=s},3973:function(e,t,n){"use strict";var i=n(3831),r=n(3511),o=n(5615);function s(e){return(0,i.A)(e,o.A,r.A)}t.A=s},8744:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var i=n(9610),r=n(1917),o=r.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!a&&a in e}var u=l,c=n(3149),d=n(1121),h=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,m=f.toString,v=g.hasOwnProperty,y=RegExp("^"+m.call(v).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C(e){if(!(0,c.A)(e)||u(e))return!1;var t=(0,i.A)(e)?y:p;return t.test((0,d.A)(e))}var w=C;function x(e,t){return null==e?void 0:e[t]}var b=x;function _(e,t){var n=b(e,t);return w(n)?n:void 0}var S=_},5647:function(e,t,n){"use strict";var i=n(367),r=(0,i.A)(Object.getPrototypeOf,Object);t.A=r},4792:function(e,t,n){"use strict";var i=n(2634),r=n(3153),o=Object.prototype,s=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),(0,i.A)(a(e),function(t){return s.call(e,t)}))}:r.A;t.A=l},3511:function(e,t,n){"use strict";var i=n(6912),r=n(5647),o=n(4792),s=n(3153),a=Object.getOwnPropertySymbols,l=a?function(e){var t=[];while(e)(0,i.A)(t,(0,o.A)(e)),e=(0,r.A)(e);return t}:s.A;t.A=l},9779:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"DataView"),s=o,a=n(8335),l=(0,i.A)(r.A,"Promise"),u=l,c=n(9857),d=(0,i.A)(r.A,"WeakMap"),h=d,p=n(8496),f=n(1121),g="[object Map]",m="[object Object]",v="[object Promise]",y="[object Set]",C="[object WeakMap]",w="[object DataView]",x=(0,f.A)(s),b=(0,f.A)(a.A),_=(0,f.A)(u),S=(0,f.A)(c.A),A=(0,f.A)(h),T=p.A;(s&&T(new s(new ArrayBuffer(1)))!=w||a.A&&T(new a.A)!=g||u&&T(u.resolve())!=v||c.A&&T(new c.A)!=y||h&&T(new h)!=C)&&(T=function(e){var t=(0,p.A)(e),n=t==m?e.constructor:void 0,i=n?(0,f.A)(n):"";if(i)switch(i){case x:return w;case b:return g;case _:return v;case S:return y;case A:return C}return t});var E=T},898:function(e,t){"use strict";var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",s=i+r+o,a="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+n+s+a+"]");function c(e){return u.test(e)}t.A=c},8598:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(3149),r=Object.create,o=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),s=o,a=n(5647),l=n(7271);function u(e){return"function"!=typeof e.constructor||(0,l.A)(e)?{}:s((0,a.A)(e))}var c=u},5353:function(e,t){"use strict";var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t=null==t?n:t,!!t&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}t.A=r},6832:function(e,t,n){"use strict";var i=n(6984),r=n(8446),o=n(5353),s=n(3149);function a(e,t,n){if(!(0,s.A)(n))return!1;var a=typeof t;return!!("number"==a?(0,r.A)(n)&&(0,o.A)(t,n.length):"string"==a&&t in n)&&(0,i.A)(n[t],e)}t.A=a},6586:function(e,t,n){"use strict";var i=n(2049),r=n(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,i.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,r.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}t.A=a},7271:function(e,t){"use strict";var n=Object.prototype;function i(e){var t=e&&e.constructor,i="function"==typeof t&&t.prototype||n;return e===i}t.A=i},4841:function(e,t,n){"use strict";var i=n(2136),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r,a=s&&i.A.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();t.A=l},367:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},6875:function(e,t,n){"use strict";function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}n.d(t,{A:function(){return a}});var r=i,o=Math.max;function s(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,s=-1,a=o(i.length-t,0),l=Array(a);while(++s<a)l[s]=i[t+s];s=-1;var u=Array(t+1);while(++s<t)u[s]=i[s];return u[t]=n(l),r(e,this,u)}}var a=s},1917:function(e,t,n){"use strict";var i=n(2136),r="object"==typeof self&&self&&self.Object===Object&&self,o=i.A||r||Function("return this")();t.A=o},9959:function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.A=n},9727:function(e,t,n){"use strict";function i(e){return function(){return e}}n.d(t,{A:function(){return g}});var r=i,o=n(4171),s=n(9008),a=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:s.A,l=a,u=800,c=16,d=Date.now;function h(e){var t=0,n=0;return function(){var i=d(),r=c-(i-n);if(n=i,r>0){if(++t>=u)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p=h,f=p(l),g=f},4862:function(e,t,n){"use strict";function i(e){return e.split("")}n.d(t,{A:function(){return M}});var r=i,o=n(898),s="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",u="\\u20d0-\\u20ff",c=a+l+u,d="\\ufe0e\\ufe0f",h="["+s+"]",p="["+c+"]",f="\\ud83c[\\udffb-\\udfff]",g="(?:"+p+"|"+f+")",m="[^"+s+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",C="\\u200d",w=g+"?",x="["+d+"]?",b="(?:"+C+"(?:"+[m,v,y].join("|")+")"+x+w+")*",_=x+w+b,S="(?:"+[m+p+"?",p,v,y,h].join("|")+")",A=RegExp(f+"(?="+f+")|"+S+_,"g");function T(e){return e.match(A)||[]}var E=T;function D(e){return(0,o.A)(e)?E(e):r(e)}var M=D},901:function(e,t,n){"use strict";var i=n(1882),r=1/0;function o(e){if("string"==typeof e||(0,i.A)(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}t.A=o},1121:function(e,t){"use strict";var n=Function.prototype,i=n.toString;function r(e){if(null!=e){try{return i.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=r},903:function(e,t,n){"use strict";var i=n(8675),r=1,o=4;function s(e){return(0,i.A)(e,r|o)}t.A=s},6984:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},8817:function(e,t,n){"use strict";function i(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!t(e[n],n,e))return!1;return!0}n.d(t,{A:function(){return h}});var r=i,o=n(1578);function s(e,t){var n=!0;return(0,o.A)(e,function(e,i,r){return n=!!t(e,i,r),n}),n}var a=s,l=n(2816),u=n(2049),c=n(6832);function d(e,t,n){var i=(0,u.A)(e)?r:a;return n&&(0,c.A)(e,t,n)&&(t=void 0),i(e,(0,l.A)(t,3))}var h=d},1662:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(2634),r=n(1578);function o(e,t){var n=[];return(0,r.A)(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}var s=o,a=n(2816),l=n(2049);function u(e,t){var n=(0,l.A)(e)?i.A:s;return n(e,(0,a.A)(t,3))}var c=u},6145:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(2816),r=n(8446),o=n(7422);function s(e){return function(t,n,s){var a=Object(t);if(!(0,r.A)(t)){var l=(0,i.A)(n,3);t=(0,o.A)(t),n=function(e){return l(a[e],e,a)}}var u=e(t,n,s);return u>-1?a[l?t[u]:u]:void 0}}var a=s,l=n(5707),u=n(8593),c=Math.max;function d(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:(0,u.A)(n);return o<0&&(o=c(r+o,0)),(0,l.A)(e,(0,i.A)(t,3),o)}var h=d,p=a(h),f=p},6036:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(2641),r=n(1578),o=n(9008);function s(e){return"function"==typeof e?e:o.A}var a=s,l=n(2049);function u(e,t){var n=(0,l.A)(e)?i.A:r.A;return n(e,a(t))}var c=u},7500:function(e,t,n){"use strict";var i=n(6318);function r(e,t,n){var r=null==e?void 0:(0,i.A)(e,t);return void 0===r?n:r}t.A=r},9008:function(e,t){"use strict";function n(e){return e}t.A=n},2274:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(8496),r=n(3098),o="[object Arguments]";function s(e){return(0,r.A)(e)&&(0,i.A)(e)==o}var a=s,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,d=a(function(){return arguments}())?a:function(e){return(0,r.A)(e)&&u.call(e,"callee")&&!c.call(e,"callee")},h=d},2049:function(e,t){"use strict";var n=Array.isArray;t.A=n},8446:function(e,t,n){"use strict";var i=n(9610),r=n(5254);function o(e){return null!=e&&(0,r.A)(e.length)&&!(0,i.A)(e)}t.A=o},3533:function(e,t,n){"use strict";var i=n(8446),r=n(3098);function o(e){return(0,r.A)(e)&&(0,i.A)(e)}t.A=o},8916:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Boolean]";function s(e){return!0===e||!1===e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},9912:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(1917);function r(){return!1}var o=r,s="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=s&&"object"==typeof module&&module&&!module.nodeType&&module,l=a&&a.exports===s,u=l?i.A.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||o,h=d},6996:function(e,t,n){"use strict";var i=n(6993);function r(e,t){return(0,i.A)(e,t)}t.A=r},9610:function(e,t,n){"use strict";var i=n(8496),r=n(3149),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!(0,r.A)(e))return!1;var t=(0,i.A)(e);return t==s||t==a||t==o||t==l}t.A=u},5254:function(e,t){"use strict";var n=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=i},1879:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Number]";function s(e){return"number"==typeof e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},3149:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},3098:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},4963:function(e,t,n){"use strict";var i=n(8496),r=n(5647),o=n(3098),s="[object Object]",a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,d=u.call(Object);function h(e){if(!(0,o.A)(e)||(0,i.A)(e)!=s)return!1;var t=(0,r.A)(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}t.A=h},1882:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},3858:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var i=n(8496),r=n(5254),o=n(3098),s="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",E="[object Uint8ClampedArray]",D="[object Uint16Array]",M="[object Uint32Array]",I={};function R(e){return(0,o.A)(e)&&(0,r.A)(e.length)&&!!I[(0,i.A)(e)]}I[x]=I[b]=I[_]=I[S]=I[A]=I[T]=I[E]=I[D]=I[M]=!0,I[s]=I[a]=I[C]=I[l]=I[w]=I[u]=I[c]=I[d]=I[h]=I[p]=I[f]=I[g]=I[m]=I[v]=I[y]=!1;var L=R,P=n(2789),N=n(4841),F=N.A&&N.A.isTypedArray,O=F?(0,P.A)(F):L,k=O},4554:function(e,t){"use strict";var n=Array.prototype,i=n.join;function r(e,t){return null==e?"":i.call(e,t)}t.A=r},7422:function(e,t,n){"use strict";var i=n(3607),r=n(1852),o=n(8446);function s(e){return(0,o.A)(e)?(0,i.A)(e):(0,r.A)(e)}t.A=s},5615:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(3607),r=n(3149),o=n(7271);function s(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var a=s,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!(0,r.A)(e))return a(e);var t=(0,o.A)(e),n=[];for(var i in e)("constructor"!=i||!t&&u.call(e,i))&&n.push(i);return n}var d=c,h=n(8446);function p(e){return(0,h.A)(e)?(0,i.A)(e,!0):d(e)}var f=p},6666:function(e,t){"use strict";function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.A=n},4722:function(e,t,n){"use strict";var i=n(5572),r=n(2816),o=n(2568),s=n(2049);function a(e,t){var n=(0,s.A)(e)?i.A:o.A;return n(e,(0,r.A)(t,3))}t.A=a},8024:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});var i=n(5572),r=n(8675),o=n(3442),s=n(6666),a=n(6318),l=n(7688);function u(e,t){return t.length<2?e:(0,a.A)(e,(0,l.A)(t,0,-1))}var c=u,d=n(901),h=Object.prototype,p=h.hasOwnProperty;function f(e,t){t=(0,o.A)(t,e);var n=-1,i=t.length;if(!i)return!0;while(++n<i){var r=(0,d.A)(t[n]);if("__proto__"===r&&!p.call(e,"__proto__"))return!1;if(("constructor"===r||"prototype"===r)&&n<i-1)return!1}var a=c(e,t);return null==a||delete a[(0,d.A)((0,s.A)(t))]}var g=f,m=n(2031),v=n(4963);function y(e){return(0,v.A)(e)?void 0:e}var C=y,w=n(3588);function x(e){var t=null==e?0:e.length;return t?(0,w.A)(e,1):[]}var b=x,_=n(6875),S=n(9727);function A(e){return(0,S.A)((0,_.A)(e,void 0,b),e+"")}var T=A,E=n(3973),D=1,M=2,I=4,R=T(function(e,t){var n={};if(null==e)return n;var s=!1;t=(0,i.A)(t,function(t){return t=(0,o.A)(t,e),s||(s=t.length>1),t}),(0,m.A)(e,(0,E.A)(e),n),s&&(n=(0,r.A)(n,D|M|I,C));var a=t.length;while(a--)g(n,t[a]);return n}),L=R},2608:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(5572),r=n(818);function o(e,t,n,i){var r=n-1,o=e.length;while(++r<o)if(i(e[r],t))return r;return-1}var s=o,a=n(2789),l=n(9759),u=Array.prototype,c=u.splice;function d(e,t,n,o){var u=o?s:r.A,d=-1,h=t.length,p=e;e===t&&(t=(0,l.A)(t)),n&&(p=(0,i.A)(e,(0,a.A)(n)));while(++d<h){var f=0,g=t[d],m=n?n(g):g;while((f=u(p,m,f,o))>-1)p!==e&&c.call(p,f,1),c.call(e,f,1)}return e}var h=d;function p(e,t){return e&&e.length&&t&&t.length?h(e,t):e}var f=p},694:function(e,t){"use strict";var n=Array.prototype,i=n.reverse;function r(e){return null==e?e:i.call(e)}t.A=r},1898:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(1917),r=n(8593),o=n(1694),s=n(8182),a=i.A.isFinite,l=Math.min;function u(e){var t=Math[e];return function(e,n){if(e=(0,o.A)(e),n=null==n?0:l((0,r.A)(n),292),n&&a(e)){var i=((0,s.A)(e)+"e").split("e"),u=t(i[0]+"e"+(+i[1]+n));return i=((0,s.A)(u)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var c=u,d=c("round"),h=d},8395:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(2851),r=n(3442),o=n(5353),s=n(3149),a=n(901);function l(e,t,n,l){if(!(0,s.A)(e))return e;t=(0,r.A)(t,e);var u=-1,c=t.length,d=c-1,h=e;while(null!=h&&++u<c){var p=(0,a.A)(t[u]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var g=h[p];f=l?l(g,p,h):void 0,void 0===f&&(f=(0,s.A)(g)?g:(0,o.A)(t[u+1])?[]:{})}(0,i.A)(h,p,f),h=h[p]}return e}var u=l;function c(e,t,n){return null==e?e:u(e,t,n)}var d=c},6902:function(e,t,n){"use strict";n.d(t,{A:function(){return U}});var i=n(1852),r=n(9779),o=n(8446),s=n(8496),a=n(2049),l=n(3098),u="[object String]";function c(e){return"string"==typeof e||!(0,a.A)(e)&&(0,l.A)(e)&&(0,s.A)(e)==u}var d=c,h=n(805),p=(0,h.A)("length"),f=p,g=n(898),m="\\ud800-\\udfff",v="\\u0300-\\u036f",y="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",w=v+y+C,x="\\ufe0e\\ufe0f",b="["+m+"]",_="["+w+"]",S="\\ud83c[\\udffb-\\udfff]",A="(?:"+_+"|"+S+")",T="[^"+m+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",M="\\u200d",I=A+"?",R="["+x+"]?",L="(?:"+M+"(?:"+[T,E,D].join("|")+")"+R+I+")*",P=R+I+L,N="(?:"+[T+_+"?",_,E,D,b].join("|")+")",F=RegExp(S+"(?="+S+")|"+N+P,"g");function O(e){var t=F.lastIndex=0;while(F.test(e))++t;return t}var k=O;function B(e){return(0,g.A)(e)?k(e):f(e)}var G=B,V="[object Map]",H="[object Set]";function z(e){if(null==e)return 0;if((0,o.A)(e))return d(e)?G(e):e.length;var t=(0,r.A)(e);return t==V||t==H?e.size:(0,i.A)(e).length}var U=z},1244:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var i=n(3588),r=n(5572),o=n(6318),s=n(2816),a=n(2568);function l(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}var u=l,c=n(2789),d=n(1882);function h(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e===e,o=(0,d.A)(e),s=void 0!==t,a=null===t,l=t===t,u=(0,d.A)(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||i&&s&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||a&&n&&r||!s&&r||!l)return-1}return 0}var p=h;function f(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;while(++i<s){var l=p(r[i],o[i]);if(l){if(i>=a)return l;var u=n[i];return l*("desc"==u?-1:1)}}return e.index-t.index}var g=f,m=n(9008),v=n(2049);function y(e,t,n){t=t.length?(0,r.A)(t,function(e){return(0,v.A)(e)?function(t){return(0,o.A)(t,1===e.length?e[0]:e)}:e}):[m.A];var i=-1;t=(0,r.A)(t,(0,c.A)(s.A));var l=(0,a.A)(e,function(e,n,o){var s=(0,r.A)(t,function(t){return t(e)});return{criteria:s,index:++i,value:e}});return u(l,function(e,t){return g(e,t,n)})}var C=y,w=n(4326),x=n(6832),b=(0,w.A)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,x.A)(e,t[0],t[1])?t=[]:n>2&&(0,x.A)(t[0],t[1],t[2])&&(t=[t[0]]),C(e,(0,i.A)(t,1),[])}),_=b},8351:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var i=n(52),r=n(98),o=n(898),s=n(6832),a=n(8496),l=n(3098),u="[object RegExp]";function c(e){return(0,l.A)(e)&&(0,a.A)(e)==u}var d=c,h=n(2789),p=n(4841),f=p.A&&p.A.isRegExp,g=f?(0,h.A)(f):d,m=g,v=n(4862),y=n(8182),C=4294967295;function w(e,t,n){return n&&"number"!=typeof n&&(0,s.A)(e,t,n)&&(t=n=void 0),n=void 0===n?C:n>>>0,n?(e=(0,y.A)(e),e&&("string"==typeof t||null!=t&&!m(t))&&(t=(0,i.A)(t),!t&&(0,o.A)(e))?(0,r.A)((0,v.A)(e),0,n):e.split(t,n)):[]}var x=w},3153:function(e,t){"use strict";function n(){return[]}t.A=n},8776:function(e,t,n){"use strict";var i=n(1694),r=1/0,o=17976931348623157e292;function s(e){if(!e)return 0===e?e:0;if(e=(0,i.A)(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}t.A=s},8593:function(e,t,n){"use strict";var i=n(8776);function r(e){var t=(0,i.A)(e),n=t%1;return t===t?n?t-n:t:0}t.A=r},1694:function(e,t,n){"use strict";var i=n(9489),r=n(3149),o=n(1882),s=NaN,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if((0,o.A)(e))return s;if((0,r.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,r.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,i.A)(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?s:+e}t.A=d},8182:function(e,t,n){"use strict";var i=n(52);function r(e){return null==e?"":(0,i.A)(e)}t.A=r},8621:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(52),r=n(9489),o=n(98),s=n(818);function a(e,t){var n=e.length;while(n--&&(0,s.A)(t,e[n],0)>-1);return n}var l=a;function u(e,t){var n=-1,i=e.length;while(++n<i&&(0,s.A)(t,e[n],0)>-1);return n}var c=u,d=n(4862),h=n(8182);function p(e,t,n){if(e=(0,h.A)(e),e&&(n||void 0===t))return(0,r.A)(e);if(!e||!(t=(0,i.A)(t)))return e;var s=(0,d.A)(e),a=(0,d.A)(t),u=c(s,a),p=l(s,a)+1;return(0,o.A)(s,u,p).join("")}var f=p},9115:function(e,t,n){"use strict";var i=n(3588),r=n(4326),o=n(1285),s=n(3533),a=(0,r.A)(function(e){return(0,o.A)((0,i.A)(e,1,s.A,!0))});t.A=a},8207:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(5572);function r(e,t){return(0,i.A)(t,function(t){return e[t]})}var o=r,s=n(7422);function a(e){return null==e?[]:o(e,(0,s.A)(e))}var l=a},7738:function(e,t,n){"use strict";n.d(t,{A:function(){return B}});var i=n(1879),r=n(6036),o=n(7500),s=n(1662),a=n(1244),l=n(1388),u=n(7120),c=n(2942),d=n(5021),h=n(8135),p=n(7417),f=n(6702),g=n(6224),m=n(8332),v=n(4958);function y(e,t={}){if(!(0,m.A)(e))return;let n=(0,o.A)(t,"duration",500);n=(0,g.A)(n),n<0&&(n=1e3);let i=(0,o.A)(t,"delay",0);i=(0,g.A)(i),i<0&&(i=0);let r=(0,o.A)(t,"opacityIni",0);r=(0,g.A)(r),r=Math.min(Math.max(r,0),1),(0,v.A)(e.style.opacity)&&(r=(0,g.A)(e.style.opacity));let s=10,a=s/n,l=`tag-${(0,u.A)()}`;e.setAttribute("dom-fade-tag",l),setTimeout(()=>{let t=setInterval(()=>{try{let n=e.getAttribute("dom-fade-tag");n!==l&&clearInterval(t),e.style.opacity=r,r>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),r+=a,r>1&&(r=1)}catch(n){console.log(n),clearInterval(t)}},s)},i)}var C=y;function w(e,t={}){if(!(0,m.A)(e))return;let n=(0,o.A)(t,"duration",500);n=(0,g.A)(n),n<0&&(n=1e3);let i=(0,o.A)(t,"delay",0);i=(0,g.A)(i),i<0&&(i=0);let r=(0,o.A)(t,"opacityIni",1);r=(0,g.A)(r),r=Math.min(Math.max(r,0),1),(0,v.A)(e.style.opacity)&&(r=(0,g.A)(e.style.opacity));let s=10,a=s/n,l=`tag-${(0,u.A)()}`;e.setAttribute("dom-fade-tag",l),setTimeout(()=>{let t=setInterval(()=>{try{let n=e.getAttribute("dom-fade-tag");n!==l&&clearInterval(t),e.style.opacity=r,r<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),r-=a,r<0&&(r=0)}catch(n){console.log(n),clearInterval(t)}},s)},i)}var x=w;let b='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',_='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',S='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',A='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',T='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',E={success:b,error:_,warning:S,infor:A,cancel:T},D={},M=null,I=(0,l.A)();function R(e){let t=(0,s.A)(D,{position:e});t=(0,a.A)(t,"timeStart");let n=16,i=16,o=i;(0,r.A)(t,e=>{D[e.id].ele||(D[e.id].ele=document.querySelector(`#${e.id}`)),D[e.id].loc.top=o,D[e.id].loc.height=D[e.id].ele.offsetHeight,o+=D[e.id].loc.height+i}),(0,r.A)(t,t=>{e.indexOf("bottom-")>=0?(D[t.id].ele.style.bottom=`${D[t.id].loc.top}px`,D[t.id].loc.bottom=D[t.id].loc.top):D[t.id].ele.style.top=`${D[t.id].loc.top}px`,e.indexOf("-left")>=0?(D[t.id].ele.style.left=`${n}px`,D[t.id].loc.left=n):(D[t.id].ele.style.right=`${n}px`,D[t.id].loc.right=n),D[t.id].ele.style.zIndex=2e5,D[t.id].ele.style.opacity=1,D[t.id].ele.style.transform="",D[t.id].ele.style.transform=null})}function L(){let e=["top-right","top-left","bottom-right","bottom-left"];(0,r.A)(e,e=>{R(e)})}function P(e){D[e].ele&&D[e].ele.parentNode.removeChild(D[e].ele),D[e]&&delete D[e],L()}function N({id:e,position:t,time:n,pm:i}){D[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:i},L(),null===M&&(M=setInterval(()=>{(0,r.A)(D,e=>{let t=Date.now()-e.timeStart;t>e.timeShow&&(e.pm.resolve(),P(e.id))}),(0,h.A)(D)||(clearInterval(M),M=null)},50))}function F(e,t={}){if(!(0,d.A)(e))return;let n=(0,o.A)(t,"type","success");(0,f.A)(E,n)||(n="success");let r=(0,o.A)(t,"icon",null);(0,d.A)(r)||(r=E[n]);let s="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(s=t.position);let a=(0,o.A)(t,"time");(0,i.A)(a)||(a=4e3),a<0&&(a=4e3);let l=(0,o.A)(t,"paddingStyle",null);null===l&&(l={top:14,right:26,bottom:14,left:14});let h="";{let e=(0,o.A)(l,"top",0),t=(0,o.A)(l,"bottom",0),n=(0,o.A)(l,"left",0),i=(0,o.A)(l,"right",0);h=`padding:${e}px ${i}px ${t}px ${n}px;`}let g=(0,o.A)(t,"textColor","#000");g=(0,p.A)(g,";","");let m=(0,o.A)(t,"backgroundColor","#fff");m=(0,p.A)(m,";","");let v=(0,o.A)(t,"borderWidth",1),y=(0,o.A)(t,"borderColor","#ebeef5");y=(0,p.A)(y,";","");let C=(0,o.A)(t,"borderRadius",8),w=(0,o.A)(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");w=(0,p.A)(w,";","");let x=(0,o.A)(t,"closeIconShift",null);null===x&&(x={top:10,right:10});let b="";{let e=(0,o.A)(x,"top",""),t=(0,o.A)(x,"bottom",""),n=(0,o.A)(x,"left",""),r=(0,o.A)(x,"right","");(0,i.A)(e)&&(e=`top:${e}px;`),(0,i.A)(t)&&(t=`bottom:${t}px;`),(0,i.A)(n)&&(n=`left:${n}px;`),(0,i.A)(r)&&(r=`right:${r}px;`),b=`position:absolute; ${e} ${r} ${t} ${n}`}let _=`alt-${(0,u.A)()}`,S=`alt-${(0,u.A)()}`,A=`\n <div \n style="display:inline-block; color:${g}; background:${m}; border:${v}px solid ${y}; border-radius:${C}px; box-shadow:${w};"\n onmouseenter="ttWAlertFadeIn('${S}')"\n onmouseleave="ttWAlertFadeOut('${S}')"\n >\n <div style="position:relative; ${h}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${b}">\n <div \n id="${S}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${_}')"\n >\n ${T}\n </div>\n </div>\n\n </div>\n </div>\n `,D=document.createElement("div");D.id=_,D.style.position="fixed",D.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",D.style.zIndex=-1,D.style.opacity=.001,s.indexOf("-left")>=0?D.style.transform="translateX(-100%)":D.style.transform="translateX(100%)",D.innerHTML=A;let M=document.querySelector("body");M.appendChild(D);let I=(0,c.A)();return N({id:_,position:s,time:a,pm:I}),I}I.ttWAlertCancel=function(e){P(e)},I.ttWAlertFadeIn=function(e){C(document.querySelector(`#${e}`))},I.ttWAlertFadeOut=function(e){x(document.querySelector(`#${e}`))};var O=F;let k=O;var B=k},702:function(e,t,n){"use strict";n.d(t,{A:function(){return He}});var i=n(8182),r=n(98),o=n(898),s=n(4862);function a(e){return function(t){t=(0,i.A)(t);var n=(0,o.A)(t)?(0,s.A)(t):void 0,a=n?n[0]:t.charAt(0),l=n?(0,r.A)(n,1).join(""):t.slice(1);return a[e]()+l}}var l=a,u=l("toUpperCase"),c=u;function d(e){return c((0,i.A)(e).toLowerCase())}var h=d;function p(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r<o)n=t(n,e[r],r,e);return n}var f=p;function g(e){return function(t){return null==e?void 0:e[t]}}var m=g,v={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},y=m(v),C=y,w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x="\\u0300-\\u036f",b="\\ufe20-\\ufe2f",_="\\u20d0-\\u20ff",S=x+b+_,A="["+S+"]",T=RegExp(A,"g");function E(e){return e=(0,i.A)(e),e&&e.replace(w,C).replace(T,"")}var D=E,M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function I(e){return e.match(M)||[]}var R=I,L=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function P(e){return L.test(e)}var N=P,F="\\ud800-\\udfff",O="\\u0300-\\u036f",k="\\ufe20-\\ufe2f",B="\\u20d0-\\u20ff",G=O+k+B,V="\\u2700-\\u27bf",H="a-z\\xdf-\\xf6\\xf8-\\xff",z="\\xac\\xb1\\xd7\\xf7",U="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",W="\\u2000-\\u206f",$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",j="A-Z\\xc0-\\xd6\\xd8-\\xde",X="\\ufe0e\\ufe0f",Y=z+U+W+$,K="['’]",q="["+Y+"]",Z="["+G+"]",Q="\\d+",J="["+V+"]",ee="["+H+"]",te="[^"+F+Y+Q+V+H+j+"]",ne="\\ud83c[\\udffb-\\udfff]",ie="(?:"+Z+"|"+ne+")",re="[^"+F+"]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",se="[\\ud800-\\udbff][\\udc00-\\udfff]",ae="["+j+"]",le="\\u200d",ue="(?:"+ee+"|"+te+")",ce="(?:"+ae+"|"+te+")",de="(?:"+K+"(?:d|ll|m|re|s|t|ve))?",he="(?:"+K+"(?:D|LL|M|RE|S|T|VE))?",pe=ie+"?",fe="["+X+"]?",ge="(?:"+le+"(?:"+[re,oe,se].join("|")+")"+fe+pe+")*",me="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ye=fe+pe+ge,Ce="(?:"+[J,oe,se].join("|")+")"+ye,we=RegExp([ae+"?"+ee+"+"+de+"(?="+[q,ae,"$"].join("|")+")",ce+"+"+he+"(?="+[q,ae+ue,"$"].join("|")+")",ae+"?"+ue+"+"+de,ae+"+"+he,ve,me,Q,Ce].join("|"),"g");function xe(e){return e.match(we)||[]}var be=xe;function _e(e,t,n){return e=(0,i.A)(e),t=n?void 0:t,void 0===t?N(e)?be(e):R(e):e.match(t)||[]}var Se=_e,Ae="['’]",Te=RegExp(Ae,"g");function Ee(e){return function(t){return f(Se(D(t).replace(Te,"")),e,"")}}var De=Ee,Me=De(function(e,t,n){return t=t.toLowerCase(),e+(n?h(t):t)}),Ie=Me,Re=n(8351),Le=n(6902),Pe=n(7500),Ne=n(5021);let Fe={default:{red:{base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink:{base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple:{base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo:{base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue:{base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue:{base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan:{base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal:{base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green:{base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen:{base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime:{base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow:{base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber:{base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange:{base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange:{base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown:{base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey:{base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey:{base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades:{black:"#000000",white:"#ffffff",transparent:"transparent"}}};function Oe(e){let t=(0,Re.A)(e," ");return 1===(0,Le.A)(t)&&(t[1]=null),t}function ke(e){let t=e.trim();return t=Ie(t),t}function Be(e){(0,Ne.A)(e)||(e="base");let t=e.trim();return t=t.replace("-","").trim(),t}function Ge(e,t,n){let i=(0,Pe.A)(Fe,`default.${e}.${t}`,null);return null===i&&(i=n),i}function Ve(e){if("white"===e)return"#fff";if("black"===e)return"#000";if("transparent"===e)return"rgba(0,0,0,0)";let t=Oe(e),n=ke(t[0]),i=Be(t[1]),r=Ge(n,i,e);return r}var He=Ve},7582:function(e,t,n){"use strict";var i=n(7120),r=n(7924);function o(){let e={};function t(e,t,n){let i=e.data&&e.data.on||e.componentOptions&&e.componentOptions.listeners;i&&i[t]&&i[t].fns(n)}function n(n,o,s){let a=`r${(0,i.A)()}`;n.setAttribute("ev-resize",a);let l=(0,r.A)(()=>n);l.on("resizeWithWindow",e=>{t(s,"domresize",e)}),e[a]=l}function o(t){let n=t.getAttribute("ev-resize");t.setAttribute("ev-resize",null),e[n]&&(e[n].clear(),e[n]=null,delete e[n])}return{bind:n,unbind:o}}t.A=o},6192:function(e,t,n){"use strict";var i=n(7500),r=n(5021),o=n(4958),s=n(8135),a=n(6224),l=n(7120),u=n(8559),c=n(702);function d(e={}){let t={};function n(e,t,n){let i=`r${(0,l.A)()}`;e.setAttribute("ev-ripple",i),h(e,t)}function d(e){p(e),e.setAttribute("ev-ripple",null)}function h(e,n){let l=e.getAttribute("ev-ripple"),d=(0,i.A)(n,"value");if(d=(0,s.A)(d),!d)return;let h=(0,i.A)(n,"value.color");if(!(0,r.A)(h))return;h=(0,c.A)(h);let p=(0,i.A)(n,"value.timeDuration");function f(e){(0,u.A)(e.currentTarget,e,{color:h,timeDuration:p})}(0,o.A)(p)||(p=1e3),p=(0,a.A)(p),e.addEventListener("click",f,!1),t[l]=f}function p(e){let n=e.getAttribute("ev-ripple");if(t[n]){let i=t[n];e.removeEventListener("click",i,!1),delete t[n]}}return{bind:n,unbind:d}}t.A=d},5524:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var i=n(7500),r=n(1879),o=n(8207),s=n(6902),a=n(2559),l=n(8951),u=n(9008);function c(e){return e&&e.length?(0,a.A)(e,u.A,l.A):void 0}var d=c,h=n(6702);let p={};function f(e,t){(0,h.A)(p,e)||(p[e]={});let n=(0,i.A)(p,e,{}),a=(0,i.A)(n,t,null);if((0,r.A)(a))return a;let l=(0,o.A)(p[e]);return 0===(0,s.A)(l)?(a=1,p[e][t]=a,a):(a=d(l)+1,p[e][t]=a,a)}function g(e,t){(0,h.A)(p,e)&&delete p[e][t]}let m={getLevel:f,destroyLevel:g};var v=m},3665:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(7500),r=n(8842),o=n(8135),s=n(1879),a=n(9860);function l(e,t={}){let n,r=(0,i.A)(t,"def",""),o=(0,i.A)(t,"type","");"num"!==o&&"text"!==o&&(o="num"),"num"===o?n=s.A:"text"===o&&(n=a.A);let l=r,u=r,c=r,d=r;n((0,i.A)(e,"h"))&&(l=(0,i.A)(e,"h"),u=l),n((0,i.A)(e,"v"))&&(c=(0,i.A)(e,"v"),d=c),n((0,i.A)(e,"left"))&&(l=(0,i.A)(e,"left")),n((0,i.A)(e,"right"))&&(u=(0,i.A)(e,"right")),n((0,i.A)(e,"top"))&&(c=(0,i.A)(e,"top")),n((0,i.A)(e,"bottom"))&&(d=(0,i.A)(e,"bottom"));let h={left:l,right:u,top:c,bottom:d};return h}var u=l;function c(e,t={}){let n=(0,i.A)(t,"parse");(0,r.A)(n)||(n=!0);let s=(0,i.A)(t,"ext");(0,o.A)(s)||(s={});let a=(0,i.A)(t,"semicolon");(0,r.A)(a)||(a=!0);let l=(0,i.A)(t,"returnObj");(0,r.A)(l)||(l=!1);let c=0,d=0,h=0,p=0;if(n){let t=u(e);c=t.left,d=t.right,h=t.top,p=t.bottom}c+=(0,i.A)(s,"left",0),d+=(0,i.A)(s,"right",0),h+=(0,i.A)(s,"top",0),p+=(0,i.A)(s,"bottom",0);let f=null;return l?f={left:c,right:d,top:h,bottom:p}:(f=`${h}px ${d}px ${p}px ${c}px`,a&&(f=`${f};`)),f}var d=c},3422:function(e,t,n){"use strict";var i=n(6036),r=n(7422),o=n(7500),s=n(6902),a=n(6702),l=n(5021),u=n(8135),c=n(106),d=n(8842),h=n(662);function p(e,t={}){let n=(0,o.A)(t,"useCreateStorage");(0,d.A)(n)||(n=!1);let{keyTable:p,tableNameCht:f,tableNameEng:g,settings:m,parser:v,funNew:y,funTest:C,ext:w}=e;if(!(0,l.A)(p))throw new Error(`invalid keyTable[${p}]`);if((0,l.A)(f)||(f=p),(0,l.A)(g)||(g=p),!(0,u.A)(m))throw new Error("invalid settings");(0,u.A)(w)||(w=null),(0,u.A)(v)||(v=null),(0,c.A)(y)||(y=null);let x=null;(0,c.A)(C)&&(x=async e=>{if(!(0,u.A)(e))throw new Error("invalid wo");if(!(0,a.A)(e,p))throw console.log(e),new Error(`keyTable[${p}] is not in wo`);let t=[];try{t=C(),(0,h.A)(t)&&(t=await t)}catch(i){throw console.log(`keyTable[${p}] funTest catch`,i),new Error(i)}if(0!==(0,s.A)(t))return n&&await e[p].createStorage(),await e[p].save(t),t});let b={},_={};(0,i.A)((0,r.A)(m),e=>{let t=(0,o.A)(m,`${e}.name`,"");(0,l.A)(t)&&(b[e]=t);let n=(0,o.A)(m,`${e}.type`,"");(0,l.A)(n)&&(_[e]=n)});let S={...e,keyTable:p,tableNameCht:f,tableNameEng:g,settings:m,keys:(0,r.A)(m),kpType:_,kpHead:b,parser:v,funNew:y,funTest:C,funTestAndSave:x,ext:w};return S}t.A=p},1154:function(e,t,n){"use strict";n.d(t,{A:function(){return Qe}});var i=n(7500),r=n(5021),o=n(106),s=n(8842),a=n(6670),l=n(5940),u=n(662),c=n(6515),d=n(6035),h=n(5975),p=n(6902),f=n(724),g=n(2942),m=n(6702),v=n(1714),y=n(8135),C=n(1669),w=n(125),x=n(6262),b=n(5178),_=n(754);function S(e){if(!(0,r.A)(e))return"";let t=_.parse(e),n=t.toString(b);return n}var A=S,T=n(8441),E=n(6036),D=n(1969);function M(e){let t=Object.prototype.toString.call(e);return"[object ArrayBuffer]"===t}var I=M;function R(e){let t=Object.prototype.toString.call(e);return"[object Blob]"===t}var L=R;function P(e){let t=Object.prototype.toString.call(e);return"[object Uint8Array]"===t}var N=P;function F(e){let t=Object.prototype.toString.call(e);return"[object Uint16Array]"===t}var O=F;function k(e){if(!(I(e)||L(e)||N(e)||O(e)))return null;try{if(e.byteLength)return e.byteLength}catch(t){}try{if(e.length)return e.length}catch(t){}try{if(e.size)return e.size}catch(t){}return null}var B=k,G=n(8496),V=n(3098),H=n(4963),z="[object DOMException]",U="[object Error]";function W(e){if(!(0,V.A)(e))return!1;var t=(0,G.A)(e);return t==U||t==z||"string"==typeof e.message&&"string"==typeof e.name&&!(0,H.A)(e)}var $=W,j=n(8170);function X(e){if(!(0,v.A)(e))return{results:"",binarys:[]};if((0,j.A)(e))return{results:"",binarys:[]};let t="",n=[];try{let i=-1;t=JSON.stringify(e,function(e,t){if(N(t)){i+=1;let e=`[Uint8Array]::${i}`;return n.push(t),e}if(O(t)){i+=1;let e=`[Uint16Array]::${i}`;return n.push(t),e}if(I(t)){i+=1;let e=`[ArrayBuffer]::${i}`;return n.push(t),e}return $(t)&&(t=t.toString()),t})}catch(i){}return{results:t,binarys:n}}var Y=X;function K(e){if(!(0,r.A)(e))return"";let t=b.parse(e),n=_.stringify(t);return n}var q=K,Z=n(9860);function Q(e){if(!(0,Z.A)(e))return new Uint8Array;let t=_.parse(e),n=t.words,i=t.sigBytes,r=new Uint8Array(i);for(let o=0;o<i;o++){let e=n[o>>>2]>>>24-o%4*8&255;r[o]=e}return r}var J=Q;function ee(e){if(!(0,r.A)(e))return new Uint8Array;let t;try{t=J(q(e))}catch(n){return new Uint8Array}return t}var te=ee,ne=n(4958),ie=n(6989),re=n(6224);function oe(e,t,n,i,r,o){if(!(0,ne.A)(e))return null;if(!N(t))return null;if(!(0,ie.A)(n))return null;if(!(0,s.A)(i))return null;if(!(0,ie.A)(r))return null;if(!(0,ie.A)(o))return null;let a,l,u;e=(0,re.A)(e);let c=8*o-r-1,d=(1<<c)-1,h=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?o-1:0,g=i?-1:1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=d?(l=0,a=d):a+h>=1?(l=(e*u-1)*Math.pow(2,r),a+=h):(l=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&l,f+=g,l/=256,r-=8);for(a=a<<r|l,c+=r;c>0;t[n+f]=255&a,f+=g,a/=256,c-=8);return t[n+f-g]|=128*m,null}var se=oe;function ae(e,t,n=0,i=!0,r=52,o=8){return se(e,t,n,i,r,o)}var le=ae;function ue(e,t){let n=B(e),i=B(t),r=new Uint8Array(n+i);return r.set(new Uint8Array(e),0),r.set(new Uint8Array(t),n),r}function ce(e){let t=[],n=[];if(!(0,D.A)(e)&&!(0,y.A)(e))return null;let i=[],r=[];function o(e){i.push(B(e)),r.push(e)}try{let s=Y(e),a=te(s.results);o(a),(0,E.A)(s.binarys,e=>{o(e)});let l=i,u=te(JSON.stringify(l)),c=8,d=new Uint8Array(c);le(B(u),d),t.push(d),t.push(u),(0,E.A)(r,e=>{t.push(e)}),(0,E.A)(t,e=>{n=ue(n,e)})}catch(s){return null}return n}var de=ce;function he(e,t,n,i,r){if(!N(e))return null;if(!(0,ie.A)(t))return null;if(!(0,s.A)(n))return null;if(!(0,ie.A)(i))return null;if(!(0,ie.A)(r))return null;let o,a,l=8*r-i-1,u=(1<<l)-1,c=u>>1,d=-7,h=n?0:r-1,p=n?1:-1,f=e[t+h];for(h+=p,o=f&(1<<-d)-1,f>>=-d,d+=l;d>0;o=256*o+e[t+h],h+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=i;d>0;a=256*a+e[t+h],h+=p,d-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)}var pe=he;function fe(e,t=0,n=!0,i=52,r=8){return pe(e,t,n,i,r)}var ge=fe,me=n(6440);function ve(e){if(!N(e))return"";let t=me.create(e),n=t.toString(_);return n}var ye=ve;function Ce(e){if(!N(e))return"";let t;try{t=A(ye(e))}catch(n){return""}return t}var we=Ce,xe=n(6956);function be(e){if(!(0,y.A)(e))return{};let{results:t,binarys:n}=e;if(!(0,r.A)(t))return{};if(!(0,xe.A)(n))return{};let i={};try{i=JSON.parse(t,function(e,t){if((0,r.A)(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=(0,C.A)(t.replace("[Uint8Array]::",""));return n[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=(0,C.A)(t.replace("[Uint16Array]::",""));return n[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=(0,C.A)(t.replace("[ArrayBuffer]::",""));return n[e]}}return t})}catch(o){}return i}var _e=be;function Se(e,t){let n=0,i=0,r=[];return(0,E.A)(t,t=>{i=n+t;let o=e.slice(n,i);n=i,r.push(o)}),r}function Ae(e){let t=null;if(!N(e))return null;try{let n=8,i=e.slice(0,n),r=e.slice(n,B(e)),o=ge(i),s=r.slice(0,o),a=r.slice(o,B(r)),l=we(s),u=JSON.parse(l),c=Se(a,u),d=c.shift(),h=we(d),p=c;t=_e({results:h,binarys:p})}catch(n){}return t}var Te=Ae,Ee=n(2561),De=n(3360);const Me=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function Ie(){return function(e){const{exports:{mem:t,xxh32:n,xxh64:i,init32:r,update32:o,digest32:s,init64:a,update64:l,digest64:u}}=e;let c=new Uint8Array(t.buffer);function d(e,n){if(t.buffer.byteLength<e+n){const i=Math.ceil((e+n-t.buffer.byteLength)/65536);t.grow(i),c=new Uint8Array(t.buffer)}}function h(e,t,n,i,r,o){d(e);const s=new Uint8Array(e);return c.set(s),n(0,t),s.set(c.subarray(0,e)),{update(t){let n;return c.set(s),"string"==typeof t?(d(3*t.length,e),n=m.encodeInto(t,c.subarray(e)).written):(d(t.byteLength,e),c.set(t,e),n=t.byteLength),i(0,e,n),s.set(c.subarray(0,e)),this},digest:()=>(c.set(s),o(r(0)))}}function p(e){return e>>>0}const f=2n**64n-1n;function g(e){return e&f}const m=new TextEncoder,v=0,y=0n;function C(e,t=v){return d(3*e.length,0),p(n(0,m.encodeInto(e,c).written,t))}function w(e,t=y){return d(3*e.length,0),g(i(0,m.encodeInto(e,c).written,t))}return{h32:C,h32ToString:(e,t=v)=>C(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=v)=>(d(e.byteLength,0),c.set(e),p(n(0,e.byteLength,t))),create32:(e=v)=>h(48,e,r,o,s,p),h64:w,h64ToString:(e,t=y)=>w(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=y)=>(d(e.byteLength,0),c.set(e),g(i(0,e.byteLength,t))),create64:(e=y)=>h(88,e,a,l,u,g)}}((await WebAssembly.instantiate(Me)).instance)}function Re(e){let t=Object.prototype.toString.call(e);return"[object File]"===t}var Le=Re;async function Pe(e,t={}){if(!L(e)&&!Le(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=(0,i.A)(t,"chunkSize");(0,ne.A)(n)||(n=67108864),n=(0,re.A)(n);let{create64:r}=await Ie(),o=r(),s=0;while(s<e.size){let t=e.slice(s,s+n),i=await t.arrayBuffer();o.update(new Uint8Array(i)),s+=n}let a=o.digest().toString(16).padStart(16,"0");return a}var Ne=Pe;function Fe(e){let t=(0,i.A)(e,"url");(0,r.A)(t)||(t="http://localhost:8080");let d=(0,i.A)(e,"apiName");(0,r.A)(d)||(d="api");let b="";b="/"===(0,x.A)(t,1)?t+d:t+"/"+d;let _=(0,i.A)(e,"getToken",null);(0,o.A)(_)||(_=()=>"");let S=(0,i.A)(e,"tokenType");(0,r.A)(S)||(S="Bearer");let E=(0,i.A)(e,"sizeSlice");(0,l.A)(E)||(E=1048576);let D=(0,i.A)(e,"timeout");(0,a.A)(D)||(D=3e5);let M=(0,i.A)(e,"retryMain");(0,a.A)(M)||(M=3);let I=(0,i.A)(e,"retryUpload");(0,a.A)(I)||(I=10);let R=(0,i.A)(e,"retryDownload");(0,a.A)(R)||(R=2);let L=(0,c.A)()?"browser":"nodejs",P=(0,f.A)(),N=(e,...t)=>{setTimeout(()=>{P.emit(e,...t)},1)},F=e=>{let t="";if("basic"===e)t=`${b}/main`;else if("upload-controller"===e)t=`${b}/ulctr`;else if("slice"===e)t=`${b}/slc`;else if("download-get-filename"===e)t=`${b}/dwgfn`;else if("download-get"===e)t=`${b}/dwgf`;else{if("download"!==e)throw new Error(`invalid type[${e}]`);t=`${b}/dw`}return t},O=async e=>{let t;return t="browser"===L?await(0,T.A)(e):new Uint8Array(e),t},k=e=>{let t;return t="browser"===L?new Blob([e.buffer]):Buffer.from(e),t},B=async(e,t,r={})=>{let s=(0,i.A)(r,"headers");(0,v.A)(s)||(s={});let c=(0,i.A)(r,"dataType","");"blob"!==c&&"fmd"!==c&&"json"!==c&&(c="blob");let d=(0,i.A)(r,"cbProgress");(0,o.A)(d)||(d=()=>{});let p=(0,i.A)(r,"retry");(0,a.A)(p)||(p=1);let f=F(e),C=(0,g.A)(),x=null,b={};if("blob"===c)b={"Content-Type":"application/octet-stream"},x=t;else if("fmd"===c){let e;if("browser"===L)e=new FormData;else{if(!(0,o.A)(r.FormData))throw N("error","invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");e=new r.FormData({maxDataSize:1099511627776})}e.append("bb",t),"nodejs"===L&&(b={"Content-Type":`multipart/form-data; boundary=${e.getBoundary()}`}),x=e}else"json"===c&&(b={"Content-Type":"application/json"},x=JSON.stringify(t));let T=null;T="nodejs"===L?"download"===e?"stream":"arraybuffer":"blob";let E=_();(0,u.A)(E)&&(E=await E);let M=e=>{let t="unknow";try{let n=/filename="(.+?)"/,i=n.exec(e);t=i?i[1]:"unknown"}catch(n){}return t},I=async e=>{let t=(0,g.A)(),o=(0,i.A)(e,"headers['return-type']",""),s=(0,i.A)(e,"headers['return-msg']","");if("error"===o)return t.reject(s),t;let a=(0,i.A)(e,"headers['content-disposition']",""),l=M(a);l=A(l);let u=(0,i.A)(e,"data");if("browser"===L)t.resolve({filename:l,bb:u});else try{let e="path",o="fs",s=await n(643)(e),a=await n(80)(o),c=(0,i.A)(r,"fdDownload","");a.mkdirSync(c,{recursive:!0});let d=s.resolve(c,l),h=a.createWriteStream(d);u.pipe(h),h.on("finish",()=>{t.resolve(d)}),h.on("error",e=>{t.reject(e)})}catch(c){t.reject(c)}return t},R={method:"POST",url:f,data:x,headers:{Authorization:`${S} ${E}`,...b,...s},timeout:D,maxContentLength:1/0,maxBodyLength:1/0,responseType:T,onUploadProgress:function(e){let t=0,n=e.loaded,i=e.total;(0,l.A)(i)&&(t=100*n/i),d({prog:Math.floor(t),p:n,m:"upload"})},onDownloadProgress:function(e){let t=0,n=e.loaded,i=e.total;(0,l.A)(i)&&(t=100*n/i),d({prog:Math.floor(t),p:n,m:"download"})}},P=async()=>{let t=await(0,h.A)(R);if("download"===e)return await I(t);let n=(0,i.A)(t,"data"),r=await O(n),o=Te(r);return(0,y.A)(o)?(0,m.A)(o,"success")?Promise.resolve(o.success):(0,m.A)(o,"error")?(N("error",o.error),Promise.reject(o.error)):(N("error","data does not contain success or error"),Promise.reject("data does not contain success or error")):(N("error","data is not an effective object"),Promise.reject("data is not an effective object"))},k=async()=>{let e=(0,Ee.A)(P),t=await e(R),n=10,i=1e3,r=Math.pow(18e4/i,1/(n-1)),o=0;while("error"===t.state){if(o+=1,o>p)break;let n=Math.round(i*Math.pow(r,o-1));console.log(`wait ${(0,w.A)(n/1e3,1)}(second) to retry...`),await(0,De.A)(n),console.log(`retry n=${o}...`),t=await e(R)}return"success"===t.state?t.msg:Promise.reject(t.msg)};return await k().then(e=>{C.resolve(e)}).catch(async e=>{let t=null,n=(0,i.A)(e,"response.statusText")||(0,i.A)(e,"message"),r=(0,i.A)(e,"response.data")||(0,i.A)(e,"stack");if(n)t=n;else if(r)t=r;else{try{e=e.toJSON()}catch(r){}N("error",e),t="Can not connect to server."}"Network Error"===t&&(t="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),C.reject(t)}),C},G=async(e,t,n)=>{let i=null;try{let e=de(t);i=k(e)}catch(o){return Promise.reject(o)}let r=await B(e,i,{dataType:"blob",retry:M,cbProgress:n});return r},V=async e=>{let t=null;t="browser"===L?e:new Blob([e]);let n=await Ne(t);return n},H=async(e,t,n)=>{let i=0;if(0===i)try{i=t.size,i=(0,C.A)(i)}catch(y){}if(0===i)try{i=t.length,i=(0,C.A)(i)}catch(y){}0===i&&(i=1);let r=i,o=Math.ceil(r/E),s=0,a=.99,l=()=>{s++;let e=s/o,t=e*a*100,i=e*r;n({prog:t,p:i,m:"upload"})},u=e=>{let t=e.prog,i=e.m;"download"===i&&100===t&&n({prog:100,p:r,m:"upload"})},c=await V(t),d=await B("upload-controller",{mode:"check-total-hash",fileHash:c,filename:e,fileSize:r},{dataType:"json",retry:I});if(d.bAllHash){u({prog:100,m:"download"});let e=d.msg;return e}if(d.bSls){let e=[];for(let i=0;i<(0,p.A)(d.slks);i++){let n=d.slks[i],o=n*E,s=Math.min(o+E,r),a=t.slice(o,s),l=await V(a);e.push({i:n,h:l})}let n=await B("upload-controller",{mode:"check-slices-hash",fileHash:c,fileSliceHashs:e},{dataType:"json",retry:I});d.slks=n.slks}let h=c;for(let p=0;p<o;p++){if(d.slks.indexOf(p)>=0){l();continue}let e=p*E,n=Math.min(e+E,r),i=t.slice(e,n),s={"chunk-index":p,"chunk-total":o,"package-id":h};await B("slice",i,{headers:s,dataType:"blob",cbProgress:e=>{},retry:I}),l()}let f=await B("upload-controller",{mode:"merge-slices-push",fileHash:c,chunkTotal:o},{dataType:"json",retry:I}),m=()=>{let t=(0,g.A)(),n=f.queueId,i=setInterval(()=>{B("upload-controller",{mode:"merge-slices-get",fileHash:c,filename:e,queueId:n},{dataType:"json",retry:I}).then(e=>{"success"===e.state?(clearInterval(i),u({prog:100,m:"download"}),t.resolve(e.msg)):"error"===e.state&&(console.log("merge-slices-get error",e),clearInterval(i),t.resolve(e.msg))}).catch(e=>{console.log("merge-slices-get catch",e)})},2e3);return t},v=await m();return v},z=async(e,t,n)=>{let i={func:e,input:t},o="",s=null;return await G("basic",i,n).then(e=>(0,r.A)(e)?(o="error",void(s=e)):(0,y.A)(e)?(0,m.A)(e,"output")?(o="success",void(s=e.output)):(console.log("invalid msg.output",e),o="error",void(s="invalid msg.output")):(console.log("msg is not an effective object",e),o="error",void(s="msg is not an effective object"))).catch(e=>{o="error",s=e}),""===o?(N("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(s):s},U=(e,t,n)=>{let i=t;return H(e,i,n)},W=async(e,t,n={})=>{let i={fileId:e},r=await B("download",i,{...n,dataType:"json",retry:R,cbProgress:t});return r},$=async(e,t,n={})=>{let r=(0,i.A)(n,"downloadByManager");if((0,s.A)(r)||(r=!0),r){let t=_();(0,u.A)(t)&&(t=await t);let n={fileId:e},r=await B("download-get-filename",n,{dataType:"json",retry:R}),o=(0,i.A)(r,"filename",""),s=F("download-get"),a=`${s}?fileId=${e}&token=${t}`,l=document.createElement("a");return l.href=a,l.download=o,l.click(),o}{let i={fileId:e},r=await B("download",i,{...n,dataType:"json",retry:R,cbProgress:t});return r}},j=async(e,t,n={})=>"browser"===L?$(e,t,n):W(e,t,n);return P.execute=z,P.upload=U,P.download=j,P}var Oe=Fe,ke=n(8395),Be=n(6666),Ge=n(7688),Ve=n(8593);function He(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:(0,Ve.A)(t),t=i-t,(0,Ge.A)(e,0,t<0?0:t)):[]}var ze=He,Ue=n(903);function We(e,t={}){let n={},r=!1;if((0,y.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,m.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let o=(0,i.A)(t,"autoPollingTableTagsForActive");(0,s.A)(o)||(o=!1);let a=(0,i.A)(t,"pollingDelayTime");(0,l.A)(a)||(a=2e3),a=(0,C.A)(a);let u=(t,...n)=>{setTimeout(()=>{e.emit(t,...n)},1)};function d(e={}){n=e}async function h(e={}){let t=[];u("beforeUpdateTableTags",{oldTableTags:(0,Ue.A)(n),newTableTags:(0,Ue.A)(e)});let i=!1;(0,E.A)(e,(e,t)=>{let r=n[t];r!==e&&(i=!0)}),u("refreshState",{needToRefresh:i,oldTableTags:(0,Ue.A)(n),newTableTags:(0,Ue.A)(e)}),(0,E.A)(e,(e,i)=>{let r=n[i];if(r!==e){let r=(0,g.A)(),o={tableName:i,timeTag:e,pm:r};t.push(r),u("refreshTable",o),r.then(t=>{n[i]=e,u("getData",{tableName:i,timeTag:e,data:t})}).catch(e=>{u("error",{msg:"can not get table data: "+i,err:e})})}}),await Promise.all(t),u("afterUpdateTableTags",{oldTableTags:(0,Ue.A)(n),newTableTags:(0,Ue.A)(e)})}async function p(){if(r)return;r=!0;let e=(0,g.A)();u("refreshTags",{pm:e});let t=await e.catch(e=>{u("error",{msg:"can not get tags data",err:e})});t&&await h(t),await(0,De.A)(a),r=!1}return o&&(0,c.A)()&&(window.addEventListener("mouseover",e=>{p()},!1),window.addEventListener("touchmove",e=>{p()},!1)),e.setTableTags=d,e.updateTableTags=h,e.pollingTableTags=p,e}var $e=We,je=n(7120);function Xe(e,t={}){if((0,y.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,m.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let n=(0,i.A)(t,"timePolling");(0,a.A)(n)||(n=2e3),n=(0,C.A)(n);let o=(0,i.A)(e,"clientId");(0,r.A)(o)||(o=(0,je.A)());let s=(t,...n)=>{setTimeout(()=>{e.emit(t,...n)},1)},l=!1,u=!1,c=!1,d=setInterval(()=>{c||(c=!0,e.execute("[sys:polling]",{clientId:o},function({prog:e,p:t,m:n}){}).then(function(e){!1===l&&(l=!0,s("openOnce")),!1===u&&s("open"),u=!0,(0,D.A)(e)&&(0,E.A)(e,e=>{let t=(0,i.A)(e,"data",null);s("broadcast",t)})}).catch(function(e){u=!1,s("error",e)}).finally(()=>{c=!1}))},n),h=()=>{clearInterval(d)};return e.clearBroadcast=h,e}var Ye=Xe;function Ke(e,t={}){let n={};if((0,y.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,m.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let s=(0,i.A)(t,"getToken",null);(0,o.A)(s)||(s=()=>"");let a=(0,i.A)(t,"getServerMethods",null);if(!(0,o.A)(a))return e.emit("error","invalid opt.getServerMethods"),e;let l=(0,i.A)(t,"recvData",null);if(!(0,o.A)(l))return e.emit("error","invalid opt.recvData"),e;let c=(0,i.A)(t,"getRefreshState",null),d=(0,i.A)(t,"getRefreshTable",null),h=(0,i.A)(t,"getBeforeUpdateTableTags",null),p=(0,i.A)(t,"getAfterUpdateTableTags",null);function v(t){async function n(){let n=(0,g.A)(),i=[...arguments],a=()=>{},l=(0,Be.A)(i);(0,o.A)(l)&&(a=l,i=ze(i));let c=s();(0,u.A)(c)&&(c=await c),(0,r.A)(c)||(c="");let d={__sysInputArgs__:i,__sysToken__:c};return await e.execute(t,d,a).then(e=>{let t=e.msg;"success"===e.state?n.resolve(t):n.reject(t)}).catch(e=>{n.reject(e)}),n}return n}function C(e){n={},(0,E.A)(e,e=>{(0,ke.A)(n,e,v(e))}),a(n)}function w(t){"syncKpTable"===(0,i.A)(t,"mode")&&e.updateTableTags((0,i.A)(t,"data"))}return e=new $e(e),e=new Ye(e),e.on("openOnce",function(){let t=async()=>{let e=await v("[sys:getFuncList]")();C(e);let t=await v("[sys:getTableTags]")();w(t)};t().catch(t=>{e.emit("error",t)})}),e.on("broadcast",function(e){w(e)}),e.on("refreshState",e=>{(0,o.A)(c)&&c(e)}),e.on("refreshTable",t=>{if(!(0,y.A)(n[t.tableName]))return void e.emit("error",`invalid kpExec[${t.tableName}]`);(0,o.A)(d)&&d(t);let r=(0,i.A)(n,t.tableName);if(!(0,y.A)(r))return void console.log(`kpExec[${t.tableName}] is not an effective object`);let s=(0,i.A)(r,"select");(0,o.A)(s)?s().then(e=>{t.pm.resolve(e)}).catch(e=>{console.log(`${t.tableName}.select: catch`,e),t.pm.resolve([])}):console.log(`kpExec[${t.tableName}].select is not a function`)}),e.on("getData",e=>{l(e)}),e.on("beforeUpdateTableTags",e=>{(0,o.A)(h)&&h(e)}),e.on("afterUpdateTableTags",e=>{(0,o.A)(p)&&p(e)}),e}var qe=Ke;function Ze(e={}){let t=null,n=(0,c.A)()?"browser":"nodejs";async function h(){let c=(0,i.A)(e,"FormData");"browser"===n&&(c=void 0);let h=(0,i.A)(e,"url");(0,r.A)(h)||(h="http://localhost:8080");let p=(0,i.A)(e,"apiName");(0,r.A)(p)||(p="api");let f=(0,i.A)(e,"useWaitToken",null);(0,s.A)(f)||(f=!1);let g=(0,i.A)(e,"getToken");if(!(0,o.A)(g)){if(f)throw new Error("invalid opt.getToken when opt.useWaitToken=true");g=()=>""}let m=(0,i.A)(e,"tokenType");(0,r.A)(m)||(m="Bearer");let v=(0,i.A)(e,"sizeSlice");(0,l.A)(v)||(v=1048576);let y=(0,i.A)(e,"timeout");(0,a.A)(y)||(y=3e5);let C=(0,i.A)(e,"retryMain");(0,a.A)(C)||(C=3);let w=(0,i.A)(e,"retryUpload");(0,a.A)(w)||(w=10);let x=(0,i.A)(e,"retryDownload");(0,a.A)(x)||(x=2);let b=(0,i.A)(e,"getServerMethods");(0,o.A)(b)||(b=()=>{});let _=(0,i.A)(e,"recvData");(0,o.A)(_)||(_=()=>{});let S=(0,i.A)(e,"getRefreshState"),A=(0,i.A)(e,"getRefreshTable"),T=(0,i.A)(e,"getBeforeUpdateTableTags"),E=(0,i.A)(e,"getAfterUpdateTableTags"),D=(0,i.A)(e,"showLog");(0,s.A)(D)||(D=!0),f&&(D&&console.log("waiting token..."),await(0,d.A)(async()=>{let e=g();return(0,u.A)(e)&&(e=await e),(0,r.A)(e)},{timeInterval:100}),D&&console.log("get token")),t=new Oe({FormData:c,url:h,apiName:p,getToken:g,tokenType:m,sizeSlice:v,timeout:y,retryMain:C,retryUpload:w,retryDownload:x}),t=new qe(t,{getToken:g,getServerMethods:b,recvData:_,getRefreshState:S,getRefreshTable:A,getBeforeUpdateTableTags:T,getAfterUpdateTableTags:E})}return h().catch(e=>{try{t.emit("error",e)}catch(e){throw new Error(e)}}),t}var Qe=Ze},7534:function(e,t,n){"use strict";var i=n(5975),r=n(7500),o=n(5788),s=n(5021),a=n(5940),l=n(8135),u=n(6670),c=n(106),d=n(662),h=n(1669),p=n(3360),f=n(2561);function g(e,t={}){if(!(0,s.A)(e))throw new Error("invalid site");let n=(0,r.A)(t,"params",{}),g=(0,r.A)(t,"keyGlobal","");(0,s.A)(g)||(g="___params___");let m=(0,r.A)(t,"timeWaitAnimation");(0,a.A)(m)||(m=0);let v=(0,r.A)(t,"defToken","");(0,s.A)(v)||(v="sys");let y=(0,r.A)(t,"apiName","");(0,s.A)(y)||(y="api");let C=(0,r.A)(t,"apiNameForVerify","");(0,s.A)(C)||(C="getUserByToken");let w=(0,r.A)(t,"urlForVerify","");(0,s.A)(w)||(w="");let x=(0,r.A)(t,"retry");(0,u.A)(x)||(x=3);let b=window.location.origin,_=window.location.origin+window.location.pathname,S=b,A=_;if((0,s.A)(window.location.port)){let e=`:${window.location.port}`;S=S.replace(e,""),A=A.replace(e,"")}window[g]={...n,site:e,origin:b,originNoPort:S,base:_,baseNoPort:A};let T=()=>{let e=new URLSearchParams(window.location.search),t={};return e.forEach((e,n)=>{t[n]=e}),t},E=()=>{let e=T(),t=(0,r.A)(e,"token","");return t},D=()=>{let t="";return(0,s.A)(t)||(t=E()),(0,s.A)(t)||(t=localStorage.getItem(`${e}:userToken`)),t},M=e=>{let t=(0,r.A)(window,`${g}.${e}`,"");return t},I=e=>{let t=D(),n=(0,r.A)(window,`${g}.origin`,""),i=(0,r.A)(window,`${g}.originNoPort`,""),o=(0,r.A)(window,`${g}.base`,""),s=(0,r.A)(window,`${g}.baseNoPort`,""),a=M(e);return a=a.replace("{token}",t),a=a.replace("{origin}",n),a=a.replace("{originNoPort}",i),a=a.replace("{base}",o),a=a.replace("{baseNoPort}",s),a},R=async e=>{let t,n=null;return await(0,i.A)({method:"GET",url:e}).then(e=>{t=e.data}).catch(e=>{n=e.toString()}),null!==n?Promise.reject(n):t},L=async e=>{let t=M("base"),n=`${t}${y}/${e}`,i=R(n);return i},P=async(e={})=>{let t,n,i=(0,r.A)(e,"afterGetUser"),a=(0,r.A)(e,"afterLogin"),u=(0,r.A)(e,"loginError"),h=(0,r.A)(e,"loginSuccess"),f=M("site");async function g(){let e=null;if(await(0,p.A)(m),!(0,s.A)(f))throw console.log("site",f),new Error("invalid site");let t="";if((0,s.A)(t)||(t=E()),(0,s.A)(t)||(t=localStorage.getItem(`${f}:userToken`)),(0,o.A)()){if((0,s.A)(t)||(t=v),"error"===t)return e={text:"登入時無效令牌",msg:"invalid token"},Promise.reject(e)}else if(!(0,s.A)(t))return e={text:"登入時無效令牌",msg:"invalid token"},Promise.reject(e);let n=null;n=(0,s.A)(w)?R(`${w}?token=${t}`):L(`${C}?token=${t}`);let a=await n.catch(t=>{e={text:"登入時無法連線",msg:t}});if(null!==e)return Promise.reject(e);if("error"===(0,r.A)(a,"state"))return e={text:"登入時驗證失敗",msg:(0,r.A)(a,"msg")},Promise.reject(e);let u=(0,r.A)(a,"msg");if(!(0,l.A)(u))return console.log("data",a),e={text:"登入時無法取得使用者資訊",msg:"invalid user"},Promise.reject(e);if((0,c.A)(i)){let e=i(u);(0,d.A)(e)&&(e=await e)}return{token:t,user:u}}await g().then(e=>{t=!0,n=e,localStorage.setItem(`${f}:userToken`,e.token)}).catch(e=>{t=!1,n=e,localStorage.setItem(`${f}:userToken`,"")});let y={state:t,data:n};if((0,c.A)(a)){let e=a(y);(0,d.A)(e)&&(e=await e)}if(t){if((0,c.A)(h)){let e=h(n);(0,d.A)(e)&&(e=await e)}}else if((0,c.A)(u)){let e=u(n);(0,d.A)(e)&&(e=await e)}return y},N=async(e={})=>{let t=(0,r.A)(e,"timePeriod");(0,a.A)(t)||(t=2e3),t=(0,h.A)(t);let n=(0,r.A)(e,"procCheckToken"),o=(0,r.A)(e,"procLogout"),l=M("site"),u=I("checkToken"),p=async()=>{let e=null,t=await(0,i.A)({method:"GET",url:u}).catch(t=>{e={text:"驗證令牌時遭遇錯誤",msg:t}});return null!==e?Promise.reject(e):t},g=async()=>{let e=(0,f.A)(p),t=await e(),n=0;while("error"===t.state){if(n+=1,n>x)break;console.log(`retry n=${n}`),t=await e()}return"success"===t.state?t.msg:Promise.reject(t.msg)},m=!1;async function v(){let e=null;if(m)return;m=!0;let t=localStorage.getItem(`${l}:userToken`);if(!(0,s.A)(t))return e={text:"令牌已清除",msg:"invalid token"},Promise.reject(e);let i=await g().catch(t=>{e=t});if(null!==e)return Promise.reject(e);if((0,c.A)(n)){let t=n(i);(0,d.A)(t)&&(t=await t),t||(e={text:"驗證令牌失敗",msg:i})}if(null!==e)return Promise.reject(e);m=!1}let y=setInterval(()=>{v().catch(e=>{clearInterval(y),(0,c.A)(o)&&o(e)})},t);return null},F=async(e={})=>{let t,n,o=(0,r.A)(e,"procLogout"),a=(0,r.A)(e,"afterLogout"),l=(0,r.A)(e,"logoutError"),u=(0,r.A)(e,"logoutSuccess"),h=M("site");async function p(){let e=null,t=D();if(!(0,s.A)(t))return e={text:"無法取得登出用token",msg:"invalid token"},Promise.reject(e);let n=I("logOut");if(!(0,s.A)(n))return e={text:"無法取得登出用設定資訊",msg:"invalid urlLogOut"},Promise.reject(e);let r=await(0,i.A)({method:"GET",url:n}).catch(t=>{e={text:"登出時遭遇錯誤",msg:t}});if(null!==e)return Promise.reject(e);if((0,c.A)(o)){let t=o(r);(0,d.A)(t)&&(t=await t),t||(e={text:"登出失敗",msg:r})}return null!==e?Promise.reject(e):{token:t}}await p().then(e=>{t=!0,n=e}).catch(e=>{t=!1,n=e});let f={state:t,data:n};if(localStorage.setItem(`${h}:userToken`,""),(0,c.A)(a)){let e=a(f);(0,d.A)(e)&&(e=await e)}if(t){if((0,c.A)(u)){let e=u(n);(0,d.A)(e)&&(e=await e)}}else if((0,c.A)(l)){let e=l(n);(0,d.A)(e)&&(e=await e)}return f},O={parseUrl:T,getTokenFromUrl:E,getToken:D,getValue:M,getUrl:I,getApi:L,login:P,detect:N,logout:F};return O}t.A=g},5040:function(e,t,n){"use strict";var i=n(6996),r=n(6956),o=n(4361);function s(e,t){function n(e){return(0,r.A)(e)?e:[e]}if((0,o.A)(e))return!1;if(e=n(e),0===e.length)return!1;if((0,o.A)(e))return!1;if(t=n(t),0===t.length)return!1;for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)if((0,i.A)(e[r],t[n]))return!0;return!1}t.A=s},9045:function(e,t,n){"use strict";var i=n(2608),r=n(903),o=n(1969),s=n(9860),a=n(8842),l=n(4958),u=n(1714);function c(e,t){if(!(0,o.A)(e))return[];if(((0,u.A)(t)||(0,l.A)(t)||(0,s.A)(t)||(0,a.A)(t))&&(t=[t]),!(0,o.A)(t))return e;let n=(0,r.A)(e);return(0,i.A)(n,t),n}t.A=c},2363:function(e,t,n){"use strict";var i=n(6036),r=n(9860),o=n(5021),s=n(1969);function a(e,t,n="anyone"){if(!(0,o.A)(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if((0,r.A)(t)){if(!(0,o.A)(t))return!1;t=[t]}if(!(0,s.A)(t))return!1;let a=!1;if((0,i.A)(t,function(e){(0,o.A)(e)||(a=!0)}),a)return!1;function l(e,t){return e.indexOf(t)}let u=0;return(0,i.A)(t,function(t){-1!==l(e,t)&&u++}),"anyone"===n?u>0:"all"===n&&u===t.length}t.A=a},8441:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(2942),r=n(6515);function o(e){let t=(0,i.A)(),n=new FileReader;return n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e),t}function s(e){return e.arrayBuffer()}function a(e){if(!(0,r.A)())return Promise.reject("no window");try{return s(e)}catch(t){return o(e)}}var l=a;function u(e){let t=(0,i.A)();return l(e).then(e=>{let n=new Uint8Array(e);t.resolve(n)}).catch(e=>{t.reject(e)}),t}var c=u},6224:function(e,t,n){"use strict";var i=n(8776),r=n(4958);function o(e){if(!(0,r.A)(e))return 0;let t=(0,i.A)(e);return t}t.A=o},1669:function(e,t,n){"use strict";var i=n(1898),r=n(4958),o=n(6224);function s(e){if(!(0,r.A)(e))return 0;e=(0,o.A)(e);let t=(0,i.A)(e);return"0"===String(t)?0:t}t.A=s},6077:function(e,t,n){"use strict";n.d(t,{A:function(){return lt}});var i=n(8621),r=n(7500),o=n(4722),s=n(6036),a=n(6902),l=n(7422),u=n(1898),c=n(1244),d=n(8182);function h(e){return(0,d.A)(e).toLowerCase()}var p=h;function f(e){return(0,d.A)(e).toUpperCase()}var g=f,m=n(5021),v=n(8135),y=n(4958),C=n(6956),w=n(6989),x=n(483),b=n(6024),_=n(7417),S=n(545),A=n(6224),T=n(7517),E=n(1669),D=n(6702),M=n(6670),I=n(5940);function R(e,t,n=1){return(0,m.A)(e)&&(0,M.A)(t)?(n=(0,I.A)(n)?(0,E.A)(n):1,e.substring(t,t+n)):""}var L=R;let P={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function N(e){if("#"!==(0,x.A)(e,1))return!1;let t=/[0-9A-Fa-f]{2}/g,n=t.test(e);if(n)return!0;let i=/[0-9A-Fa-f]{3}/g,r=i.test(e);if(r)return!0;let o=/[0-9A-Fa-f]{6}/g,s=o.test(e);if(s)return!0;let a=/[0-9A-Fa-f]{8}/g,l=a.test(e);return!!l}function F(e){return(0,D.A)(P,e)}function O(e){return"rgb"===(0,x.A)(e,3)||"rgba"===(0,x.A)(e,4)}function k(e){return"hsl"===(0,x.A)(e,3)||"hsla"===(0,x.A)(e,4)}function B(e){return"hsv"===(0,x.A)(e,3)||"hsva"===(0,x.A)(e,4)}function G(e){let t=P[e];return`#${t}`}function V(e){return U(e,1)}function H(e){return U(e,255)}function z(e){return U(e,360)}function U(e,t=1){if(e.indexOf("%")>=0){if(e=(0,_.A)(e,"%",""),!(0,y.A)(e))throw new Error("invalid color: value is not a number");e=(0,A.A)(e)/100}else{if(!(0,y.A)(e))throw new Error("invalid color: value is not a number");e=(0,A.A)(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function W(e){if(!(0,y.A)(e))throw new Error("invalid color: value is not a number");if(e=(0,A.A)(e),e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function $(e,t="rgba"){if(!(0,C.A)(e))throw new Error("invalid colors array");let n=(0,r.A)(e,0,0),i=(0,r.A)(e,1,0),o=(0,r.A)(e,2,0),s=(0,r.A)(e,3,1);if(t=t.split(""),4!==(0,a.A)(t))throw new Error("tar.length !== 4");let l=(0,r.A)(t,0),u=(0,r.A)(t,1),c=(0,r.A)(t,2),d=(0,r.A)(t,3);return{[l]:n,[u]:i,[c]:o,[d]:s}}function j(e){e=(0,b.A)(e,1);let t=e.length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=L(e,0,1),n=L(e,1,1),i=L(e,2,1);e=`${t}${t}${n}${n}${i}${i}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(e=parseInt(e,16),!(0,y.A)(e))throw new Error("invalid hex of color");return e=(0,A.A)(e),e/255}let i=n(L(e,0,2)),r=n(L(e,2,2)),o=n(L(e,4,2)),s=n(L(e,6,2));return{r:i,g:r,b:o,a:s}}function X(e){e=(0,_.A)(e,"rgba",""),e=(0,_.A)(e,"rgb",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return Y(t)}function Y(e){return e=(0,o.A)(e,(e,t)=>t<=2?H(e):3===t?W(e):null),e=$(e,"rgba"),e}function K(e){e=(0,_.A)(e,"hsla",""),e=(0,_.A)(e,"hsl",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return q(t)}function q(e){return e=(0,o.A)(e,(e,t)=>0===t?z(e):1===t||2===t?V(e):3===t?W(e):null),e=$(e,"hsla"),e=pe(e),e}function Z(e){e=(0,_.A)(e,"hsva",""),e=(0,_.A)(e,"hsv",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return Q(t)}function Q(e){return e=(0,o.A)(e,(e,t)=>0===t?z(e):1===t||2===t?V(e):3===t?W(e):null),e=$(e,"hsva"),e=fe(e),e}function J(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(F(e))return e=G(e),j(e);if(N(e))return j(e);if(O(e))return X(e);if(k(e))return K(e);if(B(e))return Z(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function ee(e,t){t=p(t);let n=(0,D.A)(e,t);if(n)return!0;t=g(t);let i=(0,D.A)(e,t);return!!i}function te(e){let t=ee(e,"r"),n=ee(e,"g"),i=ee(e,"b");return t&&n&&i}function ne(e){let t=ee(e,"h"),n=ee(e,"s"),i=ee(e,"l");return t&&n&&i}function ie(e){let t=ee(e,"h"),n=ee(e,"s"),i=ee(e,"v");return t&&n&&i}function re(e,t,n){let i;return i=(0,r.A)(e,t,null),null!==i?i:(t=g(t),i=(0,r.A)(e,t,null),null!==i?i:n)}function oe(e){let t=re(e,"r",null),n=re(e,"g",null),i=re(e,"b",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),Y(s)}function se(e){let t=re(e,"h",null),n=re(e,"s",null),i=re(e,"l",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),q(s)}function ae(e){let t=re(e,"h",null),n=re(e,"s",null),i=re(e,"v",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),Q(s)}function le(e){if(te(e))return oe(e);if(ne(e))return se(e);if(ie(e))return ae(e);throw new Error("color object is not one of rgba, hsla, hsva")}function ue(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}function ce(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,i,r=e.r,o=e.g,s=e.b;return t=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*i}function de(e){let t,n,i=e.r,r=e.g,o=e.b,s=Math.max(i,r,o),a=Math.min(i,r,o),l=(s+a)/2;if(s===a)t=n=0;else{let e=s-a;switch(n=l>.5?e/(2-s-a):e/(s+a),s){case i:t=(r-o)/e+(r<o?6:0);break;case r:t=(o-i)/e+2;break;case o:t=(i-r)/e+4;break}t/=6}return{h:t,s:n,l:l,a:e.a}}function he(e){let t,n,i=e.r,r=e.g,o=e.b,s=Math.max(i,r,o),a=Math.min(i,r,o),l=s,u=s-a;if(n=0===s?0:u/s,s===a)t=0;else{switch(s){case i:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-i)/u+2;break;case o:t=(i-r)/u+4;break}t/=6}return{h:t,s:n,v:l,a:e.a}}function pe(e){let t,n,i,r=e.h,o=e.s,s=e.l;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=i=s;else{let e=s<.5?s*(1+o):s+o-s*o,l=2*s-e;t=a(l,e,r+1/3),n=a(l,e,r),i=a(l,e,r-1/3)}return{r:t,g:n,b:i,a:e.a}}function fe(e){let t,n,i,r=e.h,o=e.s,s=e.v,a=Math.floor(6*r),l=6*r-a,u=s*(1-o),c=s*(1-l*o),d=s*(1-(1-l)*o);switch(a%6){case 0:t=s,n=d,i=u;break;case 1:t=c,n=s,i=u;break;case 2:t=u,n=s,i=d;break;case 3:t=u,n=c,i=s;break;case 4:t=d,n=u,i=s;break;case 5:t=s,n=u,i=c;break}return{r:t,g:n,b:i,a:e.a}}function ge(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function me(e){return ve(e,!1)}function ve(e,t=!0){let n=e.r,i=e.g,r=e.b,o=e.a,s=`${ge(n)}${ge(i)}${ge(r)}`;return t&&(s=`${s}${ge(o)}`),s}function ye(e){return Math.min(1,Math.max(0,e))}function Ce(e,t){if(!(0,m.A)(t))throw new Error("fmtOutput is not a string");if(!st[t])throw console.log(`fmtOutput must be [${(0,l.A)(st)}]`),new Error("invalid fmtOutput");return e=st[t](e),e}function we(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.s+=t,i.s=ye(i.s);let r=pe(i);return Ce(r,n)}function xe(e,t="toRgbString"){let n=de(e);n.s=0;let i=pe(n);return Ce(i,t)}function be(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.l+=t,i.l=ye(i.l);let r=pe(i);return Ce(r,n)}function _e(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");e.r+=t,e.r=ye(e.r),e.g+=t,e.g=ye(e.g),e.b+=t,e.b=ye(e.b);let i=e;return Ce(i,n)}function Se(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.h+=t,i.h=i.h%1;let r=pe(i);return Ce(r,n)}function Ae(e,t="toRgbString"){return Se(e,.5,t)}function Te(e,t,n="toRgbString"){if(!(0,w.A)(t))throw new Error("num is not an integer");if(t=(0,E.A)(t),t<=1)return[e];let i=de(e),r=1/t,o=[];for(let s=0;s<t;s++)o.push(Ce(pe(i),n)),i.h+=r,i.h=i.h%1;return o}function Ee(e,t,n="toRgbString"){if(!(0,w.A)(t))throw new Error("num is not an integer");if(t=(0,E.A)(t),t<=1)return[e];let i=he(e);i.s=1,i.l=1;let r=1/t,o=[];for(let s=0;s<t;s++)o.push(Ce(fe(i),n)),i.h-=r,i.l-=r;return o}function De(e,t,n,i,r="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(i<0||i>1)throw new Error("w1 < 0 or > 1");let o={r:e.r*t+n.r*i,g:e.g*t+n.g*i,b:e.b*t+n.b*i,a:e.a*t+n.a*i};return Ce(o,r)}function Me(e){return`${(0,u.A)(100*e,1)}%`}function Ie(e){return(0,u.A)(e,0)}function Re(e){return(0,u.A)(e,3)}function Le(e){return{r:Ie(255*e.r),g:Ie(255*e.g),b:Ie(255*e.b)}}function Pe(e){return`rgb(${Ie(255*e.r)}, ${Ie(255*e.g)}, ${Ie(255*e.b)})`}function Ne(e){return{r:Ie(255*e.r),g:Ie(255*e.g),b:Ie(255*e.b),a:Re(e.a)}}function Fe(e){return`rgba(${Ie(255*e.r)}, ${Ie(255*e.g)}, ${Ie(255*e.b)}, ${Re(e.a)})`}function Oe(e){let t=de(e);return{h:Ie(360*t.h),s:Re(t.s),l:Re(t.l)}}function ke(e){let t=de(e);return`hsl(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.l)})`}function Be(e){let t=de(e);return{h:Ie(360*t.h),s:Re(t.s),l:Re(t.l),a:Re(t.a)}}function Ge(e){let t=de(e);return`hsla(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.l)}, ${Re(t.a)})`}function Ve(e){let t=he(e);return{h:Ie(360*t.h),s:Re(t.s),v:Re(t.v)}}function He(e){let t=he(e);return`hsv(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.v)})`}function ze(e){let t=he(e);return{h:Ie(360*t.h),s:Re(t.s),v:Re(t.v),a:Re(t.a)}}function Ue(e){let t=he(e);return`hsva(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.v)}, ${Re(t.a)})`}function We(e){return{r:Me(e.r),g:Me(e.g),b:Me(e.b)}}function $e(e){return`rgb(${Me(e.r)}, ${Me(e.g)}, ${Me(e.b)})`}function je(e){return{r:Me(e.r),g:Me(e.g),b:Me(e.b),a:Re(e.a)}}function Xe(e){return`rgba(${Me(e.r)}, ${Me(e.g)}, ${Me(e.b)}, ${Re(e.a)})`}function Ye(e){let t=de(e);return{h:Ie(360*t.h),s:Me(t.s),l:Me(t.l)}}function Ke(e){let t=de(e);return`hsl(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.l)})`}function qe(e){let t=de(e);return{h:Ie(360*t.h),s:Me(t.s),l:Me(t.l),a:Re(t.a)}}function Ze(e){let t=de(e);return`hsla(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.l)}, ${Re(t.a)})`}function Qe(e){let t=he(e);return{h:Ie(360*t.h),s:Me(t.s),v:Me(t.v)}}function Je(e){let t=he(e);return`hsv(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.v)})`}function et(e){let t=he(e);return{h:Ie(360*t.h),s:Me(t.s),v:Me(t.v),a:Re(t.a)}}function tt(e){let t=he(e);return`hsva(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.v)}, ${Re(t.a)})`}function nt(e){let t=me(e);return`#${t}`}function it(e){let t=ve(e);return`#${t}`}function rt(e){let t=null,n=null,r=null;if((0,m.A)(e))t=p((0,i.A)(e));else{if(!(0,v.A)(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=J(t)}catch(o){throw console.log(o),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=le(n)}catch(o){throw console.log(o),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function ot(e){if(!(0,v.A)(e))return console.log("gradient is not an effective object"),e=>(e=Math.min(Math.max(e,0),1),`rgb(${255*e},${255*e},${255*e})`);let t=[];function n(e){let n=null;for(let i=1;i<t.length;i++){let r=t[i-1][0],o=t[i-1][1],s=t[i][0],a=t[i][1];if(r<=e&&s>=e){let t=(s-e)/(s-r),i=(e-r)/(s-r);n=De(rt(o),t,rt(a),i,"toRgbaString");break}}return n}return(0,s.A)(e,(e,n)=>{t.push([(0,A.A)(n),Ne(rt(e)),e])}),t=(0,c.A)(t,0),n}let st={toRgb:Le,toRgbString:Pe,toRgba:Ne,toRgbaString:Fe,toHsl:Oe,toHslString:ke,toHsla:Be,toHslaString:Ge,toHsv:Ve,toHsvString:He,toHsva:ze,toHsvaString:Ue,toRgbP:We,toRgbPString:$e,toRgbaP:je,toRgbaPString:Xe,toHslP:Ye,toHslPString:Ke,toHslaP:qe,toHslaPString:Ze,toHsvP:Qe,toHsvPString:Je,toHsvaP:et,toHsvaPString:tt,toHexString:nt,toHex8String:it};function at(){let e={toRgb:e=>Le(rt(e)),toRgbString:e=>Pe(rt(e)),toRgba:e=>Ne(rt(e)),toRgbaString:e=>Fe(rt(e)),toHsl:e=>Oe(rt(e)),toHslString:e=>ke(rt(e)),toHsla:e=>Be(rt(e)),toHslaString:e=>Ge(rt(e)),toHsv:e=>Ve(rt(e)),toHsvString:e=>He(rt(e)),toHsva:e=>ze(rt(e)),toHsvaString:e=>Ue(rt(e)),toRgbP:e=>We(rt(e)),toRgbPString:e=>$e(rt(e)),toRgbaP:e=>je(rt(e)),toRgbaPString:e=>Xe(rt(e)),toHslP:e=>Ye(rt(e)),toHslPString:e=>Ke(rt(e)),toHslaP:e=>qe(rt(e)),toHslaPString:e=>Ze(rt(e)),toHsvP:e=>Qe(rt(e)),toHsvPString:e=>Je(rt(e)),toHsvaP:e=>et(rt(e)),toHsvaPString:e=>tt(rt(e)),toHexString:e=>nt(rt(e)),toHex8String:e=>it(rt(e)),modSaturate:(e,t,n)=>we(rt(e),t,n),modGrey:(e,t)=>xe(rt(e),t),modLighten:(e,t,n)=>be(rt(e),t,n),modBrighten:(e,t,n)=>_e(rt(e),t,n),modHue:(e,t,n)=>Se(rt(e),t,n),modComplement:(e,t)=>Ae(rt(e),t),spreadHue:(e,t,n)=>Te(rt(e),t,n),spreadMonochromatic:(e,t,n)=>Ee(rt(e),t,n),mix:(e,t,n,i,r)=>De(rt(e),t,rt(n),i,r),getBrightness:e=>ue(rt(e)),getLuminance:e=>ce(rt(e)),interp:ot};return e}var lt=at()},7517:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(1882),r=n(5021),o=n(4958);function s(e){let t=Object.prototype.toString.call(e);return"[object BigInt]"===t}var a=s;function l(e){if(!(0,r.A)(e)&&!(0,o.A)(e)&&!(0,i.A)(e)&&!a(e))return"";let t="";try{t=String(e)}catch(n){}try{t=e.toString()}catch(n){}return t}var u=l},9526:function(e,t,n){"use strict";var i=n(6902),r=n(106),o=n(5940),s=n(1669);function a(e=300){function t(e){let t=[],n=null,a=Date.now();function l(){null===n&&(n=setInterval(()=>{if(0===(0,i.A)(t))return clearInterval(n),void(n=null);let r=Date.now()-a;if(r>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(o){console.log("m.func catch",o)}}},10))}function u(e,...n){(0,r.A)(e)?(a=Date.now(),t.push({func:e,input:n}),l()):console.log("func is not a function")}return(0,o.A)(e)||(e=300),e=(0,s.A)(e),u}return new t(e)}t.A=a},3360:function(e,t,n){"use strict";var i=n(2942),r=n(4958);function o(e=10){(0,r.A)(e)||(e=10);let t=(0,i.A)();return setTimeout(function(){t.resolve()},e),t}t.A=o},125:function(e,t,n){"use strict";var i=n(1898),r=n(4958),o=n(6670),s=n(6224);function a(e,t=0){if(!(0,r.A)(e))return"";if(!(0,o.A)(t))return"";e=(0,s.A)(e);let n=(0,i.A)(e,t).toFixed(t);return n}t.A=a},4417:function(e,t,n){"use strict";var i=n(8409);function r(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{(0,i.A)()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(t){}}t.A=r},7924:function(e,t,n){"use strict";var i=n(7500),r=n(903),o=n(5940),s=n(724),a=n(106);function l(e,t={}){let n=(0,i.A)(t,"timeInterval",null);(0,o.A)(n)||(n=20);let l=(0,i.A)(t,"tolerancePixel",null);(0,o.A)(l)||(l=1);let u,c=(0,s.A)(),d={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},h=(0,r.A)(d),p={width:"",height:""};if(!(0,a.A)(e))return console.log("invalid f",e),null;u=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},n=h.offsetWidth-e.offsetWidth,i=h.offsetHeight-e.offsetHeight,r=Math.abs(n)>l,o=Math.abs(i)>l,s="";n>0?s="smaller":n<0&&(s="larger");let a="";if(i>0?a="smaller":i<0&&(a="larger"),p={width:s,height:a},r||o){let n={...h};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(c.emit("resize",{sold:n,snew:e,smode:p,ele:t}),c.emit("resizeWithWindow",{sold:n,snew:e,smode:p,ele:t,from:"dom"}))},1)}d=h,h=e}},n);let f=e=>{c.emit("resizeWithWindow",{sold:d,snew:h,smode:p,from:"window"})};return window.addEventListener("resize",f),c.clear=()=>{clearInterval(u),window.removeEventListener("resize",f)},c}t.A=l},1236:function(e,t,n){"use strict";var i=n(1879),r=n(8332);function o(e,t,n){if(!(0,i.A)(e))return void console.log("clientX is not a number",e);if(!(0,i.A)(t))return void console.log("clientY is not a number",t);if(!(0,r.A)(n))return void console.log("ele is not a HTMLElement",n);let o;try{o=n.getBoundingClientRect()}catch(a){return void console.log("invalid ele for getBoundingClientRect",a)}let s=!1;try{s=e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom}catch(a){console.log("catch when calculating page information of element",a)}return s}t.A=o},7587:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(6036),r=n(8332),o=n(5021);function s(e){let t=document.querySelectorAll(e);return t}var a=s;function l(e){function t(e){e.parentNode.removeChild(e)}if((0,r.A)(e)){let n=e;return void t(n)}if(!(0,o.A)(e))return;let n=e,s=a(n);(0,i.A)(s,function(e){t(e)})}var u=l},8559:function(e,t,n){"use strict";var i=n(7500),r=n(5940),o=n(5021),s=n(8332),a=n(7587);function l(e,t,n={}){let l=(0,i.A)(n,"timeDuration",null);(0,r.A)(l)||(l=1e3);let u=(0,i.A)(n,"color",null);if((0,o.A)(u)||(u="rgba(255, 255, 255, 0.5)"),!(0,s.A)(e))return;e.style.position="relative",e.style.overflow="hidden";let c=e.getBoundingClientRect(),d=t.clientX-c.left,h=t.clientY-c.top,p=2*Math.max(e.clientWidth,e.clientHeight),f=document.createElement("div");f.style.width=`${p}px`,f.style.height=`${p}px`,f.style.transition=`all ${l/1e3}s linear`,f.style.position="absolute",f.style.zIndex=1,f.style.left=`${d}px`,f.style.top=`${h}px`,f.style.borderRadius="50%",f.style.transformOrigin="center",f.style.transform="translate(-50%,-50%) scale(0)",f.style.background=u,f.style.userSelect="none",f.style.pointerEvents="none",e.appendChild(f),setTimeout(()=>{f.style.transform="translate(-50%,-50%) scale(2)",f.style.opacity=0},1),setTimeout(()=>{(0,a.A)(f)},l)}t.A=l},9651:function(e,t,n){"use strict";var i=n(6036),r=n(7500),o=n(1969);function s(e,t,n=""){if(!(0,o.A)(t))return{};let s={};return(0,i.A)(t,function(t){s[t]=(0,r.A)(e,t,n)}),s}t.A=s},6780:function(e,t,n){"use strict";var i=n(6036),r=n(7500),o=n(1714),s=n(1969),a=n(6702);function l(e,t){if(!(0,o.A)(e))return{};if(!(0,s.A)(t))return{};let n={};return(0,i.A)(t,function(t){(0,a.A)(e,t)&&(n[t]=(0,r.A)(e,t))}),n}t.A=l},724:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var a=new o(n,r||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||r&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l}),r=i;function o(){return new r}var s=o},7120:function(e,t,n){"use strict";var i=n(5940),r=n(1669);let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=o.length;function a(e=32){let t=[];e=(0,i.A)(e)?(0,r.A)(e):32;for(let i=0;i<e;i++)t[i]=o[0|Math.random()*s];let n=t.join("");return n}t.A=a},5140:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});const i=new Uint8Array(16);function r(){return crypto.getRandomValues(i)}const o=[];for(let g=0;g<256;++g)o.push((g+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}const a={};function l(e,t,n){let i;if(e)i=c(e.random??e.rng?.()??r(),e.msecs,e.seq,t,n);else{const e=Date.now(),o=r();u(a,e,o),i=c(o,a.msecs,a.seq,t,n)}return t??s(i)}function u(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=d(n),e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function c(e,t,n,i,r=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(r<0||r+16>i.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`)}else i=new Uint8Array(16),r=0;return t??=Date.now(),n??=d(e),i[r++]=t/1099511627776&255,i[r++]=t/4294967296&255,i[r++]=t/16777216&255,i[r++]=t/65536&255,i[r++]=t/256&255,i[r++]=255&t,i[r++]=112|n>>>28&15,i[r++]=n>>>20&255,i[r++]=128|n>>>14&63,i[r++]=n>>>6&255,i[r++]=n<<2&255|3&e[10],i[r++]=e[11],i[r++]=e[12],i[r++]=e[13],i[r++]=e[14],i[r++]=e[15],i}function d(e){return(127&e[6])<<24|e[7]<<16|e[8]<<8|e[9]}var h=l;function p(){let e=h();return e}var f=p},2942:function(e,t){"use strict";function n(){let e,t,n=new Promise(function(){e=arguments[0],t=arguments[1]});return n.resolve=e,n.reject=t,n}t.A=n},1388:function(e,t,n){"use strict";var i=n(6515);function r(){return"undefined"!==typeof self?self:(0,i.A)()?window:"undefined"!==typeof n.g?n.g:null}t.A=r},6702:function(e,t,n){"use strict";var i=n(1714),r=n(5021),o=n(4958);function s(e,t){return!!(0,i.A)(e)&&(!(!(0,r.A)(t)&&!(0,o.A)(t))&&t in e)}t.A=s},5788:function(e,t,n){"use strict";var i=n(2363);function r(){return!!location&&(0,i.A)(location.href,"localhost")}t.A=r},8332:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(3098),r=n(4963);function o(e){return(0,i.A)(e)&&1===e.nodeType&&!(0,r.A)(e)}var s=o;function a(e){return s(e)}var l=a},4625:function(e,t,n){"use strict";var i=n(5021);function r(e){return!!(0,i.A)(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)}t.A=r},8409:function(e,t){"use strict";function n(){let e=null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/);return e}t.A=n},6515:function(e,t){"use strict";function n(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}t.A=n},6956:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t}t.A=n},8842:function(e,t,n){"use strict";var i=n(8916);function r(e){return(0,i.A)(e)}t.A=r},1969:function(e,t,n){"use strict";var i=n(6956),r=n(4361);function o(e){return!!(0,i.A)(e)&&(0!==e.length&&(1!==e.length||!(0,r.A)(e[0])))}t.A=o},8135:function(e,t,n){"use strict";var i=n(1714);function r(e){if((0,i.A)(e)){for(let t in e)return!0;return!1}return!1}t.A=r},4361:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(3633),r=n(920),o=n(8170),s=n(9860);function a(e){return!(!(0,s.A)(e)||""!==e)}var l=a,u=n(6956);function c(e){return!!(0,u.A)(e)&&0===e.length}var d=c,h=n(590);function p(e){return!!(0,i.A)(e)||(!!(0,r.A)(e)||(!!(0,o.A)(e)||(!!l(e)||(!!d(e)||!!(0,h.A)(e)))))}var f=p},5021:function(e,t,n){"use strict";var i=n(9860);function r(e){return!(!(0,i.A)(e)||""===e)}t.A=r},106:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}t.A=n},6989:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(8593);function r(e){return"number"==typeof e&&e==(0,i.A)(e)}var o=r,s=n(4958),a=n(6224);function l(e){return!!(0,s.A)(e)&&(e=(0,a.A)(e),o(e))}var u=l},590:function(e,t){"use strict";function n(e){return e!==e}t.A=n},920:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Null]"===t}t.A=n},4958:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(5021);function r(e){let t=Object.prototype.toString.call(e);return"[object Number]"===t}var o=r,s=n(590);function a(e){let t=!1;if((0,i.A)(e))t=!isNaN(Number(e));else if(o(e)){if((0,s.A)(e))return!1;t=!0}return t}var l=a},1714:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Object]"===t}t.A=n},8170:function(e,t,n){"use strict";var i=n(1714);function r(e){if((0,i.A)(e)){for(let t in e)return!1;return!0}return!1}t.A=r},6670:function(e,t,n){"use strict";var i=n(6989),r=n(1669);function o(e){if(!(0,i.A)(e))return!1;let t=(0,r.A)(e)>=0;return t}t.A=o},5940:function(e,t,n){"use strict";var i=n(6989),r=n(1669);function o(e){if(!(0,i.A)(e))return!1;let t=(0,r.A)(e)>0;return t}t.A=o},662:function(e,t){"use strict";function n(e){let t,n=Object.prototype.toString.call(e);if(t="[object Promise]"===n,t)return!0;if("[object Function]"!==n)return!1;try{t="function"!==typeof e.subscribe&&"function"===typeof e.then}catch(i){}return t}t.A=n},9860:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object String]"===t}t.A=n},3633:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Undefined]"===t}t.A=n},7106:function(e,t,n){"use strict";var i=n(4353),r=n(106);function o(){if(!(0,r.A)(i))throw new Error("invalid dayjs");let e=i(),t=e.format("YYYY-MM-DDTHH:mm:ss.SSSZ");return t}t.A=o},1510:function(e,t,n){"use strict";var i=n(3633);function r(e,t=!1){if((0,i.A)(e))return"";let n="";try{n=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(r){n=""}return n}t.A=r},2561:function(e,t,n){"use strict";var i=n(7500),r=n(2942),o=n(106),s=n(662);function a(e){if(!(0,o.A)(e))throw new Error("fn is not a function");return function(){let t=(0,r.A)(),n=null,o=null;try{n=e.apply(this,arguments)}catch(a){o=a}return null!==o?t.resolve({state:"error",msg:o}):(0,s.A)(n)?n.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===(0,i.A)(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:n}),t}}t.A=a},7417:function(e,t,n){"use strict";var i=n(5021),r=n(9860);function o(e,t,n){if(!(0,i.A)(e))return"";if(!(0,i.A)(t))return"";if(!(0,r.A)(n))return"";let o=String(e).replaceAll(t,n);return o}t.A=o},545:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(6036),r=n(4722),o=n(8621),s=n(5021);function a(e,t){if(!(0,s.A)(e))return[];if(!(0,s.A)(t))return[];let n=e.split(t);return n}var l=a;function u(e,t){if(!(0,s.A)(e))return[];if(!(0,s.A)(t))return[];let n=l(e,t);n=(0,r.A)(n,o.A);let a=[];return(0,i.A)(n,function(e){(0,s.A)(e)&&a.push(e)}),a}var c=u},6024:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(6262),s=n(1669);function a(e,t){return(0,i.A)(e)&&(0,r.A)(t)?(t=(0,s.A)(t),0===t?e:(0,o.A)(e,e.length-t)):""}t.A=a},483:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(1669);function s(e,t){return(0,i.A)(e)&&(0,r.A)(t)?(t=(0,o.A)(t),0===t?"":e.substring(0,t)):""}t.A=s},6262:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(1669);function s(e,t){if(!(0,i.A)(e))return"";if(!(0,r.A)(t))return"";if(t=(0,o.A)(t),0===t)return"";let n=e.length-t;return n<0&&(n=0),e.substring(n,n+t)}t.A=s},6035:function(e,t,n){"use strict";var i=n(7500),r=n(2942),o=n(106),s=n(5940),a=n(662);async function l(e,t={}){let n=null,l=(0,r.A)();if(!(0,o.A)(e))return l.reject("waitfunction需輸入函數f"),l;let u=async()=>{let t=e();return(0,a.A)(t)&&(t=await t),t};if(n=await u(),!0===n)return l.resolve(),l;let c=(0,i.A)(t,"attemptNum",null);(0,s.A)(c)||(c=200);let d=(0,i.A)(t,"timeInterval",null);(0,s.A)(d)||(d=1e3);let h=0,p=setInterval(async()=>{h+=1,n=await u(),!0===n&&(clearInterval(p),l.resolve()),h>c&&(clearInterval(p),l.reject(`exceeded attemptNum[${c}]`))},d);return l}t.A=l}}]);
|
|
35
|
+
var t,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(e,r,o,s){var a=r&&r.prototype instanceof c?r:c,l=Object.create(a.prototype);return i(l,"_invoke",function(e,i,r){var o,s,a,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,a=t,h.n=n,u}};function p(e,i){for(s=e,a=i,n=0;!d&&l&&!r&&n<c.length;n++){var r,o=c[n],p=h.p,f=o[2];e>3?(r=f===i)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=e<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=e<3||o[0]>i||i>f)&&(o[4]=e,o[5]=i,h.n=f,s=0))}if(r||e>1)return u;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,a=f;(n=s<2?t:a)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,a)):h.n=a:h.v=a);try{if(l=2,o){if(s||(r="next"),n=o[r]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=o["return"])&&n.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((n=(d=h.n<0)?a:e.call(i,h))!==u)break}catch(n){o=t,s=1,a=n}finally{l=1}}return{value:n,done:d}}}(e,o,s),!0),l}var u={};function c(){}function d(){}function h(){}n=Object.getPrototypeOf;var p=[][s]?n(n([][s]())):(i(n={},s,function(){return this}),n),f=h.prototype=c.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,i(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=h,i(f,"constructor",h),i(h,"constructor",d),d.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,s,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:g}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},5869:function(e,t,n){var i=n(887);function r(e,t,n,r,o){var s=i(e,t,n,r,o);return s.next().then(function(e){return e.done?e.value:s.next()})}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},887:function(e,t,n){var i=n(9374),r=n(1791);function o(e,t,n,o,s){return new r(i().w(e,t,n,o),s||Promise)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},1791:function(e,t,n){var i=n(5172),r=n(5546);function o(e,t){function n(r,o,s,a){try{var l=e[r](o),u=l.value;return u instanceof i?t.resolve(u.v).then(function(e){n("next",e,s,a)},function(e){n("throw",e,s,a)}):t.resolve(u).then(function(e){l.value=e,s(l)},function(e){return n("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(r(o.prototype),r(o.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,i,r){function o(){return new t(function(t,i){n(e,r,t,i)})}return s=s?s.then(o,o):o()},!0)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},5546:function(e){function t(n,i,r,o){var s=Object.defineProperty;try{s({},"",{})}catch(n){s=0}e.exports=t=function(e,n,i,r){function o(n,i){t(e,n,function(e){return this._invoke(n,i,e)})}n?s?s(e,n,{value:i,enumerable:!r,configurable:!r,writable:!r}):e[n]=i:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n,i,r,o)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4373:function(e){function t(e){var t=Object(e),n=[];for(var i in t)n.unshift(i);return function e(){for(;n.length;)if((i=n.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4633:function(e,t,n){var i=n(5172),r=n(9374),o=n(5869),s=n(887),a=n(1791),l=n(4373),u=n(579);function c(){"use strict";var t=r(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(i){t||(t={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return n(i.a,p[e],t)},delegateYield:function(e,r,o){return t.resultName=r,n(i.d,u(e),o)},finish:function(e){return n(i.f,e)}},n=function(e,n,r){i.p=t.prev,i.n=t.next;try{return e(n,r)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new i(e,t)},AsyncIterator:a,async:function(e,t,n,i,r){return(h(t)?s:o)(f(e),t,n,i,r)},keys:l,values:u}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports["default"]=e.exports},579:function(e,t,n){var i=n(3738)["default"];function r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(i(e)+" is not iterable")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},3738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},4756:function(e,t,n){var i=n(4633)();e.exports=i;try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},3145:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{A:function(){return i}})},467:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,l,"next",e)}function l(e){i(s,r,o,a,l,"throw",e)}a(void 0)})}}n.d(t,{A:function(){return r}})},9842:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:function(){return s}})},6636:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(u)throw r}}return a}}n.d(t,{A:function(){return a}});var o=n(7800);function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||r(e,t)||(0,o.A)(e,t)||s()}},4241:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(3145);function r(e){if(Array.isArray(e))return(0,i.A)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var s=n(7800);function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||(0,s.A)(e)||a()}},7800:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(3145);function r(e,t){if(e){if("string"==typeof e)return(0,i.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.A)(e,t):void 0}}},7819:function(e,t,n){"use strict";n.d(t,{A:function(){return bi}});var i={};function r(e,t){return function(){return e.apply(t,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:function(){return Dt},hasStandardBrowserEnv:function(){return It},hasStandardBrowserWebWorkerEnv:function(){return Rt},navigator:function(){return Mt},origin:function(){return Lt}});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:l}=Symbol,u=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),c=e=>"string"===typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),d=(e,t,n)=>e===Object.prototype||!n&&null===t,h=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(c(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})},p=(e,t)=>{let n=e;const i=[];while(null!=n){if(-1!==i.indexOf(n))return!1;i.push(n);const r=s(n);if(d(n,r,n===e))return!1;if(u(n,t))return!0;n=r}return!1},f=(e,t)=>null!=e&&p(e,t)?e[t]:void 0,g=e=>{if(null==e||"object"!==typeof e&&"function"!==typeof e)return e;const t=s(e);if(null===t&&h(e))return e;const n=Object.create(null),i=Object.create(null),r=[];let o=e;while(null!=o){if(-1!==r.indexOf(o))break;r.push(o);const a=o===e?t:s(o);if(d(o,a,o===e))break;const l=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(o));for(const t of l)c(t)||u(i,t)||(n[t]=e[t],i[t]=!0);o=a}return n},m=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),v=e=>(e=e.toLowerCase(),t=>m(t)===e),y=e=>t=>typeof t===e,{isArray:C}=Array,w=y("undefined");function x(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b=v("ArrayBuffer");function _(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t}const S=y("string"),A=y("function"),T=y("number"),E=e=>null!==e&&"object"===typeof e,D=e=>!0===e||!1===e,M=e=>{if(!E(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===s(t))&&!p(e,l)&&!p(e,a)},I=e=>{if(!E(e)||x(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},R=v("Date"),L=v("File"),P=e=>!(!e||"undefined"===typeof e.uri),N=e=>e&&"undefined"!==typeof e.getParts,F=v("Blob"),O=v("FileList"),k=v("Set"),B=e=>E(e)&&A(e.pipe);function G(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const V=G(),H="undefined"!==typeof V.FormData?V.FormData:void 0,z=e=>{if(!e)return!1;if(H&&e instanceof H)return!0;const t=s(e);if(!t||t===Object.prototype)return!1;if(!A(e.append))return!1;const n=m(e);return"formdata"===n||"object"===n&&A(e.toString)&&"[object FormData]"===e.toString()},U=v("URLSearchParams"),[W,$,j,X]=["ReadableStream","Request","Response","Headers"].map(v),Y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),C(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(x(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function q(e,t){if(x(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const Z=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),Q=e=>!w(e)&&e!==Z;function J(...e){const{caseless:t,skipUndefined:n}=Q(this)&&this||{},i={},r=(e,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=t&&"string"===typeof r&&q(i,r)||r,s=u(i,o)?i[o]:void 0;M(s)&&M(e)?i[o]=J(s,e):M(e)?i[o]=J({},e):C(e)?i[o]=e.slice():n&&w(e)||(i[o]=e)};for(let o=0,s=e.length;o<s;o++){const t=e[o];if(!t||x(t))continue;if(K(t,r),"object"!==typeof t||C(t))continue;const n=Object.getOwnPropertySymbols(t);for(let e=0;e<n.length;e++){const i=n[e];de.call(t,i)&&r(t[i],i)}}return i}const ee=(e,t,n,{allOwnKeys:i}={})=>(K(t,(t,i)=>{n&&A(t)?Object.defineProperty(e,i,{__proto__:null,value:r(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),te=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),ne=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ie=(e,t,n,i)=>{let r,o,a;const l={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),o=r.length;while(o-- >0)a=r[o],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},re=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},oe=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!T(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},se=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),ae=(e,t)=>{const n=e&&e[a],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},le=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},ue=v("HTMLFormElement"),ce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:de}=Object.prototype,he=v("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};K(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)}),Object.defineProperties(e,i)},fe=e=>{pe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].includes(n))return!1;const i=e[n];A(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},ge=(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return C(e)?i(e):i(String(e).split(t)),n},me=()=>{},ve=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function ye(e){return!!(e&&A(e.append)&&"FormData"===e[l]&&e[a])}const Ce=e=>{const t=new WeakSet,n=e=>{if(E(e)){if(t.has(e))return;if(x(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),k(e)){i=[];for(const t of e){const e=n(t);!w(e)&&i.push(e)}}else i=C(e)?[]:{},K(e,(e,t)=>{const r=n(e);!w(r)&&(i[t]=r)});return t.delete(e),i}}return e};return n(e)},we=v("AsyncFunction"),xe=e=>e&&(E(e)||A(e))&&A(e.then)&&A(e.catch),be=((e,t)=>e?setImmediate:t?((e,t)=>(Z.addEventListener("message",({source:n,data:i})=>{n===Z&&i===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Z.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,A(Z.postMessage)),_e="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Z):"undefined"!==typeof process&&process.nextTick||be,Se=e=>null!=e&&A(e[a]),Ae=e=>null!=e&&p(e,a)&&Se(e);var Te={isArray:C,isArrayBuffer:b,isBuffer:x,isFormData:z,isArrayBufferView:_,isString:S,isNumber:T,isBoolean:D,isObject:E,isPlainObject:M,isEmptyObject:I,isReadableStream:W,isRequest:$,isResponse:j,isHeaders:X,isUndefined:w,isDate:R,isFile:L,isReactNativeBlob:P,isReactNative:N,isBlob:F,isRegExp:he,isFunction:A,isStream:B,isURLSearchParams:U,isTypedArray:se,isFileList:O,forEach:K,merge:J,extend:ee,trim:Y,stripBOM:te,inherits:ne,toFlatObject:ie,kindOf:m,kindOfTest:v,endsWith:re,toArray:oe,forEachEntry:ae,matchAll:le,isHTMLForm:ue,hasOwnProperty:u,hasOwnProp:u,hasOwnInPrototypeChain:p,getSafeProp:f,toSafeFlatObject:g,reduceDescriptors:pe,freezeMethods:fe,toObjectSet:ge,toCamelCase:ce,noop:me,toFiniteNumber:ve,findKey:q,global:Z,isContextDefined:Q,isSpecCompliantForm:ye,toJSONObject:Ce,isAsyncFn:we,isThenable:xe,setImmediate:be,asap:_e,isIterable:Se,isSafeIterable:Ae};const Ee=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var De=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim();const o=Te.hasOwnProp(t,n);!n||o&&Te.hasOwnProp(Ee,n)||("set-cookie"===n?o?t[n].push(i):t[n]=[i]:t[n]=o?t[n]+", "+i:i)}),t};function Me(e){let t=0,n=e.length;while(t<n){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}while(n>t){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}n.dn(De);const Ie=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Re=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Le(e,t){return Te.isArray(e)?e.map(e=>Le(e,t)):Me(String(e).replace(t,""))}const Pe=e=>Le(e,Ie),Ne=e=>Le(e,Re);function Fe(e){const t=Object.create(null);return Te.forEach(e.toJSON(),(e,n)=>{t[n]=Ne(e)}),t}const Oe=Symbol("internals");function ke(e){return e&&String(e).trim().toLowerCase()}function Be(e){return!1===e||null==e?e:Te.isArray(e)?e.map(Be):Pe(String(e))}function Ge(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const Ve=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function He(e){let t=0,n=e.length;while(t<n){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}while(n>t){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function ze(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let i=1;i<t;i++){const r=e.charCodeAt(i);if(34===r)return e;if(92===r&&(i+=1,i>=t))return e;n+=e[i]}return n}function Ue(e){const t=Object.create(null),n=String(e);let i=0,r=!1,o=!1;function s(e){const r=He(n.slice(i,e)),o=r.indexOf("=");if(o<1)return;const s=He(r.slice(0,o));if(!Ve.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const l=He(r.slice(o+1));t[a]=ze(l)}for(let a=0;a<n.length;a++){const e=n.charCodeAt(a);r?o?o=!1:92===e?o=!0:34===e&&(r=!1):34===e?r=!0:44!==e&&59!==e||(s(a),i=a+1)}return s(n.length),t}const We=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $e(e,t,n,i,r){return Te.isFunction(i)?i.call(this,t,n):(r&&(t=n),Te.isString(t)?Te.isString(i)?-1!==t.indexOf(i):Te.isRegExp(i)?i.test(t):void 0:void 0)}function je(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Xe(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{__proto__:null,value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}class Ye{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=ke(t);if(!r)return;const o=Te.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Be(e))}const o=(e,t)=>Te.forEach(e,(e,n)=>r(e,n,t));if(Te.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Te.isString(e)&&(e=e.trim())&&!We(e))o(De(e),t);else if(Te.isObject(e)&&Te.isSafeIterable(e)){let n,i,r=Object.create(null);for(const t of e){if(!Te.isArray(t))throw new TypeError("Object iterator must return a key-value pair");i=t[0],Te.hasOwnProp(r,i)?(n=r[i],r[i]=Te.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}o(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=ke(e),e){const n=Te.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Ge(e);if(Te.isFunction(t))return t.call(this,e,n);if(Te.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ke(e),e){const n=Te.findKey(this,e);return!(!n||void 0===this[n]||t&&!$e(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=ke(e),e){const r=Te.findKey(n,e);!r||t&&!$e(n,n[r],r,t)||(delete n[r],i=!0)}}return Te.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!$e(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return Te.forEach(this,(i,r)=>{const o=Te.findKey(n,r);if(o)return t[o]=Be(i),void delete t[r];const s=e?je(r):String(r).trim();s!==r&&delete t[r],t[s]=Be(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Te.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Te.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Te.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Ue(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=this[Oe]=this[Oe]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=ke(e);n[t]||(Xe(i,e),n[t]=!0)}return Te.isArray(e)?e.forEach(r):r(e),this}}Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Te.reduceDescriptors(Ye.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Te.freezeMethods(Ye);var Ke=Ye;const qe="[REDACTED ****]";function Ze(e){if(Te.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(Te.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Qe(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),i=[],r=e=>{if(null===e||"object"!==typeof e)return e;if(Te.isBuffer(e))return e;if(-1!==i.indexOf(e))return;let t;if(e instanceof Ke&&(e=e.toJSON()),i.push(e),Te.isArray(e))t=[],e.forEach((e,n)=>{const i=r(e);Te.isUndefined(i)||(t[n]=i)});else{if(!Te.isPlainObject(e)&&Ze(e))return i.pop(),e;t=Object.create(null);for(const[i,o]of Object.entries(e)){const e=n.has(i.toLowerCase())?qe:r(o);Te.isUndefined(e)||(t[i]=e)}}return i.pop(),t};return r(e)}function Je(e){try{return String(e)}catch(t){return""}}function et(e){const t=e.errors.map(e=>{try{return e&&e.message?Je(e.message):Je(e)}catch(t){return""}}).filter(Boolean).join("; ");return t||e.name||"AggregateError"}class tt extends Error{static from(e,t,n,i,r,o){let s=e.message;!s&&Te.isArray(e.errors)&&e.errors.length&&(s=et(e));const a=new tt(s,t||e.code,n,i,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,n,i,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&Te.hasOwnProp(e,"redact")?e.redact:void 0,n=Te.isArray(t)&&t.length>0?Qe(e,t):Te.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}tt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",tt.ERR_BAD_OPTION="ERR_BAD_OPTION",tt.ECONNABORTED="ECONNABORTED",tt.ETIMEDOUT="ETIMEDOUT",tt.ECONNREFUSED="ECONNREFUSED",tt.ERR_NETWORK="ERR_NETWORK",tt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",tt.ERR_DEPRECATED="ERR_DEPRECATED",tt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",tt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",tt.ERR_CANCELED="ERR_CANCELED",tt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",tt.ERR_INVALID_URL="ERR_INVALID_URL",tt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var nt=tt;const it=100;function rt(e){return Te.isPlainObject(e)||Te.isArray(e)}function ot(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function st(e,t,n){return e?e.concat(t).map(function(e,t){return e=ot(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function at(e){return Te.isArray(e)&&!e.some(rt)}const lt=Te.toFlatObject(Te,{},null,function(e){return/^is[A-Z]/.test(e)});function ut(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(e,t)=>{const i=Te.getSafeProp(n,e);return Te.isUndefined(i)?t:i},r=i("metaTokens",!0),o=i("visitor")||g,s=i("dots",!1),a=i("indexes",!1),l=i("Blob")||"undefined"!==typeof Blob&&Blob,u=i("maxDepth",it),c=l&&Te.isSpecCompliantForm(t),d=[];if(!Te.isFunction(o))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(Te.isDate(e))return e.toISOString();if(Te.isBoolean(e))return e.toString();if(!c&&Te.isBlob(e))throw new nt("Blob is not supported. Use a Buffer instead.");if(Te.isArrayBuffer(e)||Te.isTypedArray(e)){if(c&&"function"===typeof l)return new l([e]);throw new nt("Blob is not supported. Use a Buffer instead.",nt.ERR_NOT_SUPPORT)}return e}function p(e){if(e>u)throw new nt("Object is too deeply nested ("+e+" levels). Max depth: "+u,nt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,t){if(u===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,i){if(!Te.isObject(i))return i;while(n.length&&n[n.length-1]!==this)n.pop();return n.push(i),p(t+n.length-1),i})}function g(e,n,i){let o=e;if(Te.isReactNative(t)&&Te.isReactNativeBlob(e))return t.append(st(i,n,s),h(e)),!1;if(e&&!i&&"object"===typeof e)if(Te.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=f(e,1);else if(Te.isArray(e)&&at(e)||(Te.isFileList(e)||Te.endsWith(n,"[]"))&&(o=Te.toArray(e)))return n=ot(n),o.forEach(function(e,i){!Te.isUndefined(e)&&null!==e&&t.append(!0===a?st([n],i,s):null===a?n:n+"[]",h(e))}),!1;return!!rt(e)||(t.append(st(i,n,s),h(e)),!1)}const m=Object.assign(lt,{defaultVisitor:g,convertValue:h,isVisitable:rt});function v(e,n,i=0){if(!Te.isUndefined(e)){if(p(i),-1!==d.indexOf(e))throw new Error("Circular reference detected in "+n.join("."));d.push(e),Te.forEach(e,function(e,r){const s=!(Te.isUndefined(e)||null===e)&&o.call(t,e,Te.isString(r)?r.trim():r,n,m);!0===s&&v(e,n?n.concat(r):[r],i+1)}),d.pop()}}if(!Te.isObject(e))throw new TypeError("data must be an object");return v(e),t}var ct=ut;function dt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ht(e,t){this._pairs=[],e&&ct(e,this,t)}const pt=ht.prototype;pt.append=function(e,t){this._pairs.push([e,t])},pt.toString=function(e){const t=e?t=>e.call(this,t,dt):dt;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ft=ht;function gt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mt(e,t,n){if(!t)return e;e=e||"";const i=Te.isFunction(n)?{serialize:n}:n,r=Te.getSafeProp(i,"encode")||gt,o=Te.getSafeProp(i,"serialize");let s;if(s=o?o(t,i):Te.isURLSearchParams(t)?t.toString():new ft(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const vt=Symbol("internals");function yt(e){return e?e.length:0}function Ct(e){if(e)while(e.length&&null===e[e.length-1])e.pop()}function wt(e,t){const n=e.handlers,i=yt(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){n[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}class xt{constructor(){this.handlers=[],this[vt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const i={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},r=this[vt];null==this.handlers&&(this.handlers=[]),wt(this,r);const o=r.nextId++;return this.handlers.push(i),r.handlerEntries.set(o,{handler:i,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,o}eject(e){const t=this[vt];wt(this,t);const n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Ct(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],wt(this,this[vt]))}forEach(e){const t=this[vt];wt(this,t),t.iterationDepth++;try{Te.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(wt(this,t),Ct(this.handlers),t.handlersLength=yt(this.handlers))}}}var bt=xt,_t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},St="undefined"!==typeof URLSearchParams?URLSearchParams:ft,At="undefined"!==typeof FormData?FormData:null,Tt="undefined"!==typeof Blob?Blob:null,Et={isBrowser:!0,classes:{URLSearchParams:St,FormData:At,Blob:Tt},protocols:["http","https","file","blob","url","data"]};const Dt="undefined"!==typeof window&&"undefined"!==typeof document,Mt="object"===typeof navigator&&navigator||void 0,It=Dt&&(!Mt||["ReactNative","NativeScript","NS"].indexOf(Mt.product)<0),Rt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Lt=Dt&&window.location.href||"http://localhost";var Pt={...i,...Et};function Nt(e,t){return ct(e,new Pt.classes.URLSearchParams,{visitor:function(e,t,n,i){return Pt.isNode&&Te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const Ft=100;function Ot(e){if(e>Ft)throw new nt("FormData field is too deeply nested ("+e+" levels). Max depth: "+Ft,nt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kt(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let i;while(null!==(i=n.exec(e)))Ot(t.length),t.push("[]"===i[0]?"":i[1]||i[0]);return t}function Bt(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}function Gt(e){function t(e,n,i,r){Ot(r);let o=e[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=e.length;if(o=!o&&Te.isArray(i)?i.length:o,a)return Te.hasOwnProp(i,o)?i[o]=Te.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!s;Te.hasOwnProp(i,o)&&Te.isObject(i[o])||(i[o]=[]);const l=t(e,n,i[o],r);return l&&Te.isArray(i[o])&&(i[o]=Bt(i[o])),!s}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,(e,i)=>{t(kt(e),i,n,0)}),n}return null}var Vt=Gt;const Ht=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]);var zt=Ht;const Ut=(e,t)=>null!=e&&Te.hasOwnProp(e,t)?e[t]:void 0;function Wt(e,t,n){if(Te.isString(e))try{return(t||JSON.parse)(e),Te.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const $t={transitional:_t,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=Te.isObject(e);r&&Te.isHTMLForm(e)&&(e=new FormData(e));const o=Te.isFormData(e);if(o)return i?JSON.stringify(Vt(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){const t=Ut(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Nt(e,t).toString();if((s=Te.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Ut(this,"env"),i=n&&n.FormData;return ct(s?{"files[]":e}:e,i&&new i,t)}}return r||i?(t.setContentType("application/json",!1),Wt(e)):e}],transformResponse:[function(e){const t=Ut(this,"transitional")||$t.transitional,n=t&&t.forcedJSONParsing,i=Ut(this,"responseType"),r="json"===i;if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(n&&!i||r)){const n=t&&t.silentJSONParsing,i=!n&&r;try{return JSON.parse(e,Ut(this,"parseReviver"))}catch(o){if(i){if("SyntaxError"===o.name)throw nt.from(o,nt.ERR_BAD_RESPONSE,this,null,Ut(this,"response"));throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(zt,e=>{$t.headers[e]={}});var jt=$t;function Xt(e,t){const n=this||jt,i=t||n,r=Ke.from(i.headers);let o=i.data;return Te.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Yt(e){return!(!e||!e.__CANCEL__)}class Kt extends nt{constructor(e,t,n){super(null==e?"canceled":e,nt.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}var qt=Kt;function Zt(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new nt("Request failed with status code "+n.status,n.status>=400&&n.status<500?nt.ERR_BAD_REQUEST:nt.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Qt=/[\t\n\r]/g;function Jt(e){if("string"!==typeof e)return e;let t=0;while(t<e.length&&e.charCodeAt(t)<=32)t++;return e.slice(t).replace(Qt,"")}function en(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function tn(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=i[s];r||(r=l),n[o]=a,i[o]=l;let c=s,d=0;while(c!==o)d+=n[c++],c%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-r<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}var nn=tn;function rn(e,t){let n,i,r=0,o=1e3/t;const s=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e(...t)},a=(...e)=>{const t=Date.now(),a=t-r;a>=o?s(e,t):(n=e,i||(i=setTimeout(()=>{i=null,s(n)},o-a)))},l=()=>n&&s(n),u=(...e)=>s(e);return[a,l,u]}var on=rn;const sn=(e,t,n=3)=>{let i=0;const r=nn(50,250);return on(n=>{if(!n||!Te.isNumber(n.loaded))return;const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=s?Math.min(o,s):o),l=Math.max(0,a-i),u=r(l);i=Math.max(i,a);const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(c)},n)},an=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},ln=(e,t=Te.asap)=>(...n)=>t(()=>e(...n));var un=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,cn=Pt.hasStandardBrowserEnv?{write(e,t,n,i,r,o,s){if("undefined"===typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Te.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Te.isString(i)&&a.push(`path=${i}`),Te.isString(r)&&a.push(`domain=${r}`),!0===o&&a.push("secure"),Te.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const r=t[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(n){return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dn(e){return"string"===typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hn(e,t){if(!t)return e;let n=e.length;while(n>0&&47===e.charCodeAt(n-1))n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const pn=/^https?:(?!\/\/)/i;function fn(e){return e?e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${qe}`):e}function gn(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qe}@`),n=t.indexOf("#"),i=-1===n?t:t.slice(0,n),r=i.replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qe}`);return-1===n?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if("string"===typeof e){const n=Jt(e);if(pn.test(n))throw new nt(`Invalid URL ${JSON.stringify(gn(n))}: missing "//" after protocol`,nt.ERR_INVALID_URL,t)}}function vn(e,t,n,i){mn(t,i);let r=!dn(t);return e&&(r||!1===n)?(mn(e,i),hn(e,t)):t}const yn=e=>e instanceof Ke?{...e}:e,Cn=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function wn(e,t){e=e||{},t=t||{};const n=Object.create(null);function i(e,t,n,i){return Te.isPlainObject(e)&&Te.isPlainObject(t)?Te.merge.call({caseless:i},e,t):Te.isPlainObject(t)?Te.merge({},t):Te.isArray(t)?t.slice():t}function r(e,t,n,r){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function o(e,t){if(!Te.isUndefined(t))return i(void 0,t)}function s(e,t){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n){const i=Te.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Te.isUndefined(i)){if(!Te.isPlainObject(i))return;if(Te.hasOwnProp(i,n))return i[n]}const r=Te.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Te.isPlainObject(r)&&Te.hasOwnProp(r,n))return r[n]}function l(n,r,o){return Te.hasOwnProp(t,o)?i(n,r):Te.hasOwnProp(e,o)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>r(yn(e),yn(t),n,!0)};return Te.forEach(Cn({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=Te.hasOwnProp(u,i)?u[i]:r,s=Te.hasOwnProp(e,i)?e[i]:void 0,a=Te.hasOwnProp(t,i)?t[i]:void 0,c=o(s,a,i);Te.isUndefined(c)&&o!==l||(n[i]=c)}),Te.hasOwnProp(t,"validateStatus")&&Te.isUndefined(t.validateStatus)&&!1===a("validateStatusUndefinedResolves")&&(Te.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}const xn=["content-type","content-length"];function bn(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{xn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}const _n=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Sn(e){const t=wn({},e),n=e=>Te.hasOwnProp(t,e)?t[e]:void 0,i=n("data");let r=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=Ke.from(a),t.url=mt(vn(u,d,c,t),n("params"),n("paramsSerializer")),l){const t=Te.getSafeProp(l,"username")||"",n=Te.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(n?_n(n):"")))}catch(h){throw nt.from(h,nt.ERR_BAD_OPTION_VALUE,e)}}if(Te.isFormData(i)){const e=Te.getSafeProp(i,"getHeaders");Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv||Te.isReactNative(i)?a.setContentType(void 0):Te.isFunction(e)&&bn(a,e.call(i),n("formDataHeaderPolicy"))}if(Pt.hasStandardBrowserEnv){Te.isFunction(r)&&(r=r(t));const e=!0===r||null==r&&un(t.url);if(e){const e=o&&s&&cn.read(s);e&&a.set(o,e)}}return t}var An=Sn;const Tn="undefined"!==typeof XMLHttpRequest;var En=Tn&&function(e){return new Promise(function(t,n){const i=An(e);let r=i.data;const o=Ke.from(i.headers).normalize();let s,a,l,u,c,d,{responseType:h,onUploadProgress:p,onDownloadProgress:f}=i;function g(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(r){if(!m)return;if(0===m.status&&"file"!==(en(Jt(i.url))||en(Pt.origin))&&(!m.responseURL||!m.responseURL.startsWith("file:")))return n(new nt("Request aborted",nt.ECONNABORTED,e,m)),g(),void(m=null);try{r?d&&d(r):c&&c()}catch(l){setTimeout(()=>{throw l})}if(!m)return;const o=Ke.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),s=h&&"text"!==h&&"json"!==h?m.response:m.responseText,a={data:s,status:m.status,statusText:m.statusText,headers:o,config:e,request:m};Zt(function(e){t(e),g()},function(e){n(e),g()},a),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new nt("Request aborted",nt.ECONNABORTED,e,m)),g(),m=null)},m.onerror=function(t){const i=t&&t.message?t.message:"Network Error",r=new nt(i,nt.ERR_NETWORK,e,m);r.event=t||null,n(r),g(),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||_t;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new nt(t,r.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,m)),g(),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&Te.forEach(Fe(o),function(e,t){m.setRequestHeader(t,e)}),Te.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),h&&"json"!==h&&(m.responseType=i.responseType),f&&([l,c,d]=sn(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,u]=sn(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(s=t=>{m&&(n(!t||t.type?new qt(null,e,m):t),m.abort(),g(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const y=en(i.url);if(y&&!Pt.protocols.includes(y))return n(new nt("Unsupported protocol "+y+":",nt.ERR_BAD_REQUEST,e)),void g();m.send(r||null)})};const Dn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let i=!1;const r=function(e){if(!i){i=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof nt?t:new qt(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,r(new nt(`timeout of ${t}ms exceeded`,nt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>{i||(e.aborted?r.call(e):e.addEventListener("abort",r,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>Te.asap(s),a};var Mn=Dn;const In=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;while(r<n)i=r+t,yield e.slice(r,i),r=i},Rn=async function*(e,t){for await(const n of Ln(e))yield*In(n,t)},Ln=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Pn=(e,t,n,i)=>{const r=Rn(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let o=i.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),r.return()}},{highWaterMark:2})},Nn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Fn=(e,t,n)=>t+2<n&&Nn(e.charCodeAt(t+1))&&Nn(e.charCodeAt(t+2)),On=e=>e<=57?e-48:(223&e)-55,kn=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Bn=e=>9===e||10===e||12===e||13===e||32===e,Gn=e=>{const t=Math.floor(e/4),n=e%4;return 3*t+(2===n?1:3===n?2:0)},Vn=e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},Hn=e=>{const t=e.length;let n=0,i=0,r=!1;for(let o=0;o<t;o++){let s=e.charCodeAt(o);37===s&&Fn(e,o,t)&&(s=16*On(e.charCodeAt(o+1))+On(e.charCodeAt(o+2)),o+=2),Bn(s)||(61!==s?!kn(s)||i>0?r=!0:n++:i++)}return r||i>2||i>0&&(n+i)%4!==0||n%4===1?Vn(e):Gn(n)},zn=(e,t)=>{if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const i=e.slice(5,n),r=e.slice(n+1),o=/;base64/i.test(i);if(o)return t(r);let s=0;for(let a=0,l=r.length;a<l;a++){const e=r.charCodeAt(a);if(37===e&&Fn(r,a,l))s+=1,a+=2;else if(e<128)s+=1;else if(e<2048)s+=2;else if(e>=55296&&e<=56319&&a+1<l){const e=r.charCodeAt(a+1);e>=56320&&e<=57343?(s+=4,a++):s+=3}else s+=3}return s};function Un(e){const t="string"===typeof e?e.indexOf("#"):-1;return zn(-1===t?e:e.slice(0,t),Hn)}const Wn=65536,$n={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:jn}=Te,Xn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Yn=e=>{if(!Te.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Kn=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qn=e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Zn=e=>{const t=void 0!==Te.global&&null!==Te.global?Te.global:globalThis,{ReadableStream:n,TextEncoder:i}=t;e=Te.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:o,Response:s}=e,a=r?jn(r):"function"===typeof fetch,l=jn(o),u=jn(s);if(!a)return!1;const c=a&&jn(n),d=a&&("function"===typeof i?(e=>t=>e.encode(t))(new i):async e=>new Uint8Array(await new o(e).arrayBuffer())),h=l&&c&&Kn(()=>{let e=!1;const t=new o(Pt.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),i=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!i}),p=u&&c&&Kn(()=>Te.isReadableStream(new s("").body)),f={stream:p&&(e=>e.body)};a&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new nt(`Response type '${e}' is not supported`,nt.ERR_NOT_SUPPORT,n)})})})();const g=async e=>{if(null==e)return 0;if(Te.isBlob(e))return e.size;if(Te.isSpecCompliantForm(e)){const t=new o(Pt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Te.isArrayBufferView(e)||Te.isArrayBuffer(e)?e.byteLength:(Te.isURLSearchParams(e)&&(e+=""),Te.isString(e)?(await d(e)).byteLength:void 0)},m=async(e,t)=>{const n=Te.toFiniteNumber(e.getContentLength());return null==n?g(t):n};return async e=>{let{url:t,method:n,data:a,signal:u,cancelToken:d,timeout:v,onDownloadProgress:y,onUploadProgress:C,responseType:w,headers:x,withCredentials:b="same-origin",fetchOptions:_,maxContentLength:S,maxBodyLength:A,maxRedirects:T}=An(e);const E=Te.isNumber(S)&&S>-1,D=Te.isNumber(A)&&A>-1,M=t=>Te.hasOwnProp(e,t)?e[t]:void 0;let I=r||fetch;w=w?(w+"").toLowerCase():"text";let R=Mn([u,d&&d.toAbortSignal()],v),L=null;const P=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let N,F=null;const O=()=>new nt("Request body larger than maxBodyLength limit",nt.ERR_BAD_REQUEST,e,L);try{let r;const u=M("auth");if(u){const e=Te.getSafeProp(u,"username")||"",t=Te.getSafeProp(u,"password")||"";r={username:e,password:t}}if(qn(t)){const e=new URL(t,Pt.origin);if(!r&&(e.username||e.password)){const t=Yn(e.username),n=Yn(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(r&&(x.delete("authorization"),x.set("Authorization","Basic "+btoa(Xn((r.username||"")+":"+(r.password||""))))),E&&"string"===typeof t&&t.startsWith("data:")){const n=Un(t);if(n>S)throw new nt("maxContentLength size of "+S+" exceeded",nt.ERR_BAD_RESPONSE,e,L)}if(D&&"get"!==n&&"head"!==n){const e=await g(a);if("number"===typeof e&&isFinite(e)&&(N=e,e>A))throw O()}const d=D&&(Te.isReadableStream(a)||Te.isStream(a)),v=(e,t,n)=>Pn(e,Wn,e=>{if(D&&e>A)throw F=O();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(C||d)){if(N=null==N?await m(x,a):N,0!==N||d){let e,n=new o(t,{method:"POST",body:a,duplex:"half"});if(Te.isFormData(a)&&(e=n.headers.get("content-type"))&&x.setContentType(e),n.body){const[e,t]=C&&an(N,sn(ln(C)))||[];a=v(n.body,e,t)}}}else if(d&&!l&&c&&"get"!==n&&"head"!==n)a=v(a);else if(d&&l&&!h&&"get"!==n&&"head"!==n)throw new nt("Stream request bodies are not supported by the current fetch implementation",nt.ERR_NOT_SUPPORT,e,L);Te.isString(b)||(b=b?"include":"omit");const k=l&&"credentials"in o.prototype;if(Te.isFormData(a)){const e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.20.0",!1);const B=null==_?_:Object.assign(Object.create(null),_);B&&(delete B.body,delete B.headers,delete B.method,delete B.signal,delete B.duplex,delete B.credentials);const G=Object.assign(Object.create(null),B,{signal:R,method:n.toUpperCase(),headers:Fe(x.normalize()),body:a,duplex:"half",credentials:k?b:void 0});l&&(Te.forEach($n,(e,t)=>{void 0===G[t]&&(G[t]=e)}),void 0===G.signal&&(G.signal=null),void 0===G.body&&(G.body=null)),0===T&&(G.redirect="manual",B&&(B.redirect="manual")),L=l&&new o(t,G);let V=await(l?I(L,B):I(t,G));const H=Ke.from(V.headers);if(E){const t=Te.toFiniteNumber(H.getContentLength());if(null!=t&&t>S)throw new nt("maxContentLength size of "+S+" exceeded",nt.ERR_BAD_RESPONSE,e,L)}const z=p&&("stream"===w||"response"===w);if(p&&V.body&&(y||E||z&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=V[e]});const n=Te.toFiniteNumber(H.getContentLength()),[i,r]=y&&an(n,sn(ln(y),!0))||[];let o=0;const a=t=>{if(E&&(o=t,o>S))throw new nt("maxContentLength size of "+S+" exceeded",nt.ERR_BAD_RESPONSE,e,L);i&&i(t)};V=new s(Pn(V.body,Wn,a,()=>{r&&r(),P&&P()}),t)}w=w||"text";let U=await f[Te.findKey(f,w)||"text"](V,e);if(E&&!p&&!z){let t;if(null!=U&&("number"===typeof U.byteLength?t=U.byteLength:"number"===typeof U.size?t=U.size:"string"===typeof U&&(t="function"===typeof i?(new i).encode(U).byteLength:U.length)),"number"===typeof t&&t>S)throw new nt("maxContentLength size of "+S+" exceeded",nt.ERR_BAD_RESPONSE,e,L)}return!z&&P&&P(),await new Promise((t,n)=>{Zt(t,n,{data:U,headers:Ke.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:L})})}catch(k){if(P&&P(),R&&R.aborted&&R.reason instanceof nt){const t=R.reason;throw t.config=e,L&&(t.request=L),k!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:k,writable:!0,enumerable:!1,configurable:!0}),t}if(F)throw L&&!F.request&&(F.request=L),F;if(k instanceof nt)throw L&&!k.request&&(k.request=L),k;if(k&&"TypeError"===k.name&&/Load failed|fetch/i.test(k.message)){const t=new nt("Network Error",nt.ERR_NETWORK,e,L,k&&k.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:k.cause||k,writable:!0,enumerable:!1,configurable:!0}),t}throw nt.from(k,k&&k.code,e,L,k&&k.response)}}},Qn=new Map,Jn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:r}=t,o=[i,r,n];let s,a,l=o.length,u=l,c=Qn;while(u--)s=o[u],a=c.get(s),void 0===a&&c.set(s,a=u?new Map:Zn(t)),c=a;return a};Jn();const ei={http:null,xhr:En,fetch:{get:Jn}};Te.forEach(ei,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ti=e=>`- ${e}`,ni=e=>Te.isFunction(e)||null===e||!1===e;function ii(e,t){e=Te.isArray(e)?e:[e];const{length:n}=e;let i,r;const o={};for(let s=0;s<n;s++){let n;if(i=e[s],r=i,!ni(i)&&(r=ei[(n=String(i)).toLowerCase()],void 0===r))throw new nt(`Unknown adapter '${n}'`);if(r&&(Te.isFunction(r)||(r=r.get(t))))break;o[n||"#"+s]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(ti).join("\n"):" "+ti(e[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+t,nt.ERR_NOT_SUPPORT)}return r}var ri={getAdapter:ii,adapters:ei};function oi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qt(null,e)}function si(e){const t=Te.toSafeFlatObject(e);oi(t),t.headers=Ke.from(Te.getSafeProp(t,"headers")),t.data=Xt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=ri.getAdapter(t.adapter||jt.adapter,t);return n(t).then(function(e){oi(t),t.response=e;try{e.data=Xt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Ke.from(e.headers),e},function(e){if(!Yt(e)&&(oi(t),e&&e.response)){t.response=e.response;try{e.response.data=Xt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Ke.from(e.response.headers)}return Promise.reject(e)})}const ai={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ai[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const li={};function ui(e,t,n){if("object"!==typeof e||null===e)throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const o=i[r],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new nt("option "+o+" must be "+n,nt.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new nt("Unknown option "+o,nt.ERR_BAD_OPTION)}}ai.transitional=function(e,t,n){function i(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new nt(i(r," has been removed"+(t?" in "+t:"")),nt.ERR_DEPRECATED);return t&&!li[r]&&(li[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},ai.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ci={assertOptions:ui,validators:ai};const di=ci.validators;class hi{constructor(e){this.defaults=e||{},this.interceptors={request:new bt,response:new bt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error)try{let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack;let i="";if("string"===typeof t){const e=t.indexOf("\n");i=-1===e?"":t.slice(e+1)}if(n.stack){if(i){const e=i.indexOf("\n"),t=-1===e?-1:i.indexOf("\n",e+1),r=-1===t?"":i.slice(t+1);String(n.stack).endsWith(r)||(n.stack+="\n"+i)}}else n.stack=i}catch(i){}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=wn(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&ci.assertOptions(n,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean),legacyInterceptorReqResOrdering:di.transitional(di.boolean),advertiseZstdAcceptEncoding:di.transitional(di.boolean),validateStatusUndefinedResolves:di.transitional(di.boolean)},!1),null!=i&&(Te.isFunction(i)?t.paramsSerializer={serialize:i}:ci.assertOptions(i,{encode:di.function,serialize:di.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ci.assertOptions(t,{baseUrl:di.spelling("baseURL"),withXsrfToken:di.spelling("withXSRFToken")},!0),t.method=(Te.getSafeProp(t,"method")||Te.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=r&&Te.merge(r.common,r[t.method]);r&&Te.forEach(zt.concat("common"),e=>{delete r[e]}),t.headers=Ke.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||_t,i=n&&n.legacyInterceptorReqResOrdering;i?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[si.bind(this),void 0];e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);while(d<c)u=u.then(e[d++],e[d++]);return u}c=s.length;let h=t;while(d<c){const e=s[d++],t=s[d++];try{h=e?e(h):h}catch(p){if(!t){u=Promise.reject(p);break}try{const e=t.call(this,p);Te.isThenable(e)&&(u=Promise.resolve(e).then(()=>si.call(this,h)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=si.call(this,h)}catch(p){u=Promise.reject(p)}d=0,c=l.length;while(d<c)u=u.then(l[d++],l[d++]);return u}getUri(e){e=wn(this.defaults,e);const t=vn(e.baseURL,e.url,e.allowAbsoluteUrls,e);return mt(t,e.params,e.paramsSerializer)}}Te.forEach(["delete","get","head","options"],function(e){hi.prototype[e]=function(t,n){return this.request(wn(n||{},{method:e,url:t,data:n&&Te.hasOwnProp(n,"data")?n.data:void 0}))}}),Te.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,r){return this.request(wn(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}hi.prototype[e]=t(),"query"!==e&&(hi.prototype[e+"Form"]=t(!0))});var pi=hi;class fi{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,r){n.reason||(n.reason=new qt(e,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new fi(function(t){e=t});return{token:t,cancel:e}}}var gi=fi;function mi(e){return function(t){return e.apply(null,t)}}function vi(e){return Te.isObject(e)&&!0===e.isAxiosError}const yi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yi).forEach(([e,t])=>{void 0===yi[t]&&(yi[t]=e)});var Ci=yi;function wi(e){const t=new pi(e),n=r(pi.prototype.request,t);return Te.extend(n,pi.prototype,t,{allOwnKeys:!0}),Te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return wi(wn(e,t))},n}const xi=wi(jt);xi.Axios=pi,xi.CanceledError=qt,xi.CancelToken=gi,xi.isCancel=Yt,xi.VERSION="1.20.0",xi.toFormData=ct,xi.AxiosError=nt,xi.Cancel=xi.CanceledError,xi.all=function(e){return Promise.all(e)},xi.spread=mi,xi.isAxiosError=vi,xi.mergeConfig=wn,xi.AxiosHeaders=Ke,xi.formToJSON=e=>Vt(Te.isHTMLForm(e)?new FormData(e):e),xi.getAdapter=ri.getAdapter,xi.HttpStatusCode=Ci,xi.default=xi;var bi=xi},127:function(e,t,n){"use strict";function i(){this.__data__=[],this.size=0}n.d(t,{A:function(){return C}});var r=i,o=n(6984);function s(e,t){var n=e.length;while(n--)if((0,o.A)(e[n][0],t))return n;return-1}var a=s,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=a(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():u.call(t,n,1),--this.size,!0}var d=c;function h(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}var p=h;function f(e){return a(this.__data__,e)>-1}var g=f;function m(e,t){var n=this.__data__,i=a(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var v=m;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}y.prototype.clear=r,y.prototype["delete"]=d,y.prototype.get=p,y.prototype.has=g,y.prototype.set=v;var C=y},8335:function(e,t,n){"use strict";var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"Map");t.A=o},9471:function(e,t,n){"use strict";n.d(t,{A:function(){return H}});var i=n(8744),r=(0,i.A)(Object,"create"),o=r;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=l,c="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function p(e){var t=this.__data__;if(o){var n=t[e];return n===c?void 0:n}return h.call(t,e)?t[e]:void 0}var f=p,g=Object.prototype,m=g.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:m.call(t,e)}var y=v,C="__lodash_hash_undefined__";function w(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?C:t,this}var x=w;function b(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}b.prototype.clear=a,b.prototype["delete"]=u,b.prototype.get=f,b.prototype.has=y,b.prototype.set=x;var _=b,S=n(127),A=n(8335);function T(){this.size=0,this.__data__={hash:new _,map:new(A.A||S.A),string:new _}}var E=T;function D(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var M=D;function I(e,t){var n=e.__data__;return M(t)?n["string"==typeof t?"string":"hash"]:n.map}var R=I;function L(e){var t=R(this,e)["delete"](e);return this.size-=t?1:0,t}var P=L;function N(e){return R(this,e).get(e)}var F=N;function O(e){return R(this,e).has(e)}var k=O;function B(e,t){var n=R(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var G=B;function V(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}V.prototype.clear=E,V.prototype["delete"]=P,V.prototype.get=F,V.prototype.has=k,V.prototype.set=G;var H=V},9857:function(e,t,n){"use strict";var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"Set");t.A=o},2062:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(9471),r="__lodash_hash_undefined__";function o(e){return this.__data__.set(e,r),this}var s=o;function a(e){return this.__data__.has(e)}var l=a;function u(e){var t=-1,n=null==e?0:e.length;this.__data__=new i.A;while(++t<n)this.add(e[t])}u.prototype.add=u.prototype.push=s,u.prototype.has=l;var c=u},1754:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(127);function r(){this.__data__=new i.A,this.size=0}var o=r;function s(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var a=s;function l(e){return this.__data__.get(e)}var u=l;function c(e){return this.__data__.has(e)}var d=c,h=n(8335),p=n(9471),f=200;function g(e,t){var n=this.__data__;if(n instanceof i.A){var r=n.__data__;if(!h.A||r.length<f-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new p.A(r)}return n.set(e,t),this.size=n.size,this}var m=g;function v(e){var t=this.__data__=new i.A(e);this.size=t.size}v.prototype.clear=o,v.prototype["delete"]=a,v.prototype.get=u,v.prototype.has=d,v.prototype.set=m;var y=v},241:function(e,t,n){"use strict";var i=n(1917),r=i.A.Symbol;t.A=r},3988:function(e,t,n){"use strict";var i=n(1917),r=i.A.Uint8Array;t.A=r},2641:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!1===t(e[n],n,e))break;return e}t.A=n},2634:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length,r=0,o=[];while(++n<i){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}t.A=n},5530:function(e,t,n){"use strict";var i=n(818);function r(e,t){var n=null==e?0:e.length;return!!n&&(0,i.A)(e,t,0)>-1}t.A=r},7809:function(e,t){"use strict";function n(e,t,n){var i=-1,r=null==e?0:e.length;while(++i<r)if(n(t,e[i]))return!0;return!1}t.A=n},3607:function(e,t,n){"use strict";function i(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}n.d(t,{A:function(){return p}});var r=i,o=n(2274),s=n(2049),a=n(9912),l=n(5353),u=n(3858),c=Object.prototype,d=c.hasOwnProperty;function h(e,t){var n=(0,s.A)(e),i=!n&&(0,o.A)(e),c=!n&&!i&&(0,a.A)(e),h=!n&&!i&&!c&&(0,u.A)(e),p=n||i||c||h,f=p?r(e.length,String):[],g=f.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,l.A)(m,g))||f.push(m);return f}var p=h},5572:function(e,t){"use strict";function n(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}t.A=n},6912:function(e,t){"use strict";function n(e,t){var n=-1,i=t.length,r=e.length;while(++n<i)e[r+n]=t[n];return e}t.A=n},2851:function(e,t,n){"use strict";var i=n(2528),r=n(6984),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,n){var o=e[t];s.call(e,t)&&(0,r.A)(o,n)&&(void 0!==n||t in e)||(0,i.A)(e,t,n)}t.A=a},2528:function(e,t,n){"use strict";var i=n(4171);function r(e,t,n){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=r},8675:function(e,t,n){"use strict";n.d(t,{A:function(){return it}});var i=n(1754),r=n(2641),o=n(2851),s=n(2031),a=n(7422);function l(e,t){return e&&(0,s.A)(t,(0,a.A)(t),e)}var u=l,c=n(5615);function d(e,t){return e&&(0,s.A)(t,(0,c.A)(t),e)}var h=d,p=n(154),f=n(9759),g=n(4792);function m(e,t){return(0,s.A)(e,(0,g.A)(e),t)}var v=m,y=n(3511);function C(e,t){return(0,s.A)(e,(0,y.A)(e),t)}var w=C,x=n(9042),b=n(3973),_=n(9779),S=Object.prototype,A=S.hasOwnProperty;function T(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&A.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var E=T,D=n(565);function M(e,t){var n=t?(0,D.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var I=M,R=/\w*$/;function L(e){var t=new e.constructor(e.source,R.exec(e));return t.lastIndex=e.lastIndex,t}var P=L,N=n(241),F=N.A?N.A.prototype:void 0,O=F?F.valueOf:void 0;function k(e){return O?Object(O.call(e)):{}}var B=k,G=n(1801),V="[object Boolean]",H="[object Date]",z="[object Map]",U="[object Number]",W="[object RegExp]",$="[object Set]",j="[object String]",X="[object Symbol]",Y="[object ArrayBuffer]",K="[object DataView]",q="[object Float32Array]",Z="[object Float64Array]",Q="[object Int8Array]",J="[object Int16Array]",ee="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ie="[object Uint16Array]",re="[object Uint32Array]";function oe(e,t,n){var i=e.constructor;switch(t){case Y:return(0,D.A)(e);case V:case H:return new i(+e);case K:return I(e,n);case q:case Z:case Q:case J:case ee:case te:case ne:case ie:case re:return(0,G.A)(e,n);case z:return new i;case U:case j:return new i(e);case W:return P(e);case $:return new i;case X:return B(e)}}var se=oe,ae=n(8598),le=n(2049),ue=n(9912),ce=n(3098),de="[object Map]";function he(e){return(0,ce.A)(e)&&(0,_.A)(e)==de}var pe=he,fe=n(2789),ge=n(4841),me=ge.A&&ge.A.isMap,ve=me?(0,fe.A)(me):pe,ye=ve,Ce=n(3149),we="[object Set]";function xe(e){return(0,ce.A)(e)&&(0,_.A)(e)==we}var be=xe,_e=ge.A&&ge.A.isSet,Se=_e?(0,fe.A)(_e):be,Ae=Se,Te=1,Ee=2,De=4,Me="[object Arguments]",Ie="[object Array]",Re="[object Boolean]",Le="[object Date]",Pe="[object Error]",Ne="[object Function]",Fe="[object GeneratorFunction]",Oe="[object Map]",ke="[object Number]",Be="[object Object]",Ge="[object RegExp]",Ve="[object Set]",He="[object String]",ze="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",$e="[object DataView]",je="[object Float32Array]",Xe="[object Float64Array]",Ye="[object Int8Array]",Ke="[object Int16Array]",qe="[object Int32Array]",Ze="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Je="[object Uint16Array]",et="[object Uint32Array]",tt={};function nt(e,t,n,s,l,d){var g,m=t&Te,y=t&Ee,C=t&De;if(n&&(g=l?n(e,s,l,d):n(e)),void 0!==g)return g;if(!(0,Ce.A)(e))return e;var S=(0,le.A)(e);if(S){if(g=E(e),!m)return(0,f.A)(e,g)}else{var A=(0,_.A)(e),T=A==Ne||A==Fe;if((0,ue.A)(e))return(0,p.A)(e,m);if(A==Be||A==Me||T&&!l){if(g=y||T?{}:(0,ae.A)(e),!m)return y?w(e,h(g,e)):v(e,u(g,e))}else{if(!tt[A])return l?e:{};g=se(e,A,m)}}d||(d=new i.A);var D=d.get(e);if(D)return D;d.set(e,g),Ae(e)?e.forEach(function(i){g.add(nt(i,t,n,i,e,d))}):ye(e)&&e.forEach(function(i,r){g.set(r,nt(i,t,n,r,e,d))});var M=C?y?b.A:x.A:y?c.A:a.A,I=S?void 0:M(e);return(0,r.A)(I||e,function(i,r){I&&(r=i,i=e[r]),(0,o.A)(g,r,nt(i,t,n,r,e,d))}),g}tt[Me]=tt[Ie]=tt[We]=tt[$e]=tt[Re]=tt[Le]=tt[je]=tt[Xe]=tt[Ye]=tt[Ke]=tt[qe]=tt[Oe]=tt[ke]=tt[Be]=tt[Ge]=tt[Ve]=tt[He]=tt[ze]=tt[Ze]=tt[Qe]=tt[Je]=tt[et]=!0,tt[Pe]=tt[Ne]=tt[Ue]=!1;var it=nt},1578:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(4574),r=n(7422);function o(e,t){return e&&(0,i.A)(e,t,r.A)}var s=o,a=n(8446);function l(e,t){return function(n,i){if(null==n)return n;if(!(0,a.A)(n))return e(n,i);var r=n.length,o=t?r:-1,s=Object(n);while(t?o--:++o<r)if(!1===i(s[o],o,s))break;return n}}var u=l,c=u(s),d=c},2559:function(e,t,n){"use strict";var i=n(1882);function r(e,t,n){var r=-1,o=e.length;while(++r<o){var s=e[r],a=t(s);if(null!=a&&(void 0===l?a===a&&!(0,i.A)(a):n(a,l)))var l=a,u=s}return u}t.A=r},5707:function(e,t){"use strict";function n(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o<r)if(t(e[o],o,e))return o;return-1}t.A=n},3588:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(6912),r=n(241),o=n(2274),s=n(2049),a=r.A?r.A.isConcatSpreadable:void 0;function l(e){return(0,s.A)(e)||(0,o.A)(e)||!!(a&&e&&e[a])}var u=l;function c(e,t,n,r,o){var s=-1,a=e.length;n||(n=u),o||(o=[]);while(++s<a){var l=e[s];t>0&&n(l)?t>1?c(l,t-1,n,r,o):(0,i.A)(o,l):r||(o[o.length]=l)}return o}var d=c},4574:function(e,t,n){"use strict";function i(e){return function(t,n,i){var r=-1,o=Object(t),s=i(t),a=s.length;while(a--){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}n.d(t,{A:function(){return s}});var r=i,o=r(),s=o},6318:function(e,t,n){"use strict";var i=n(3442),r=n(901);function o(e,t){t=(0,i.A)(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[(0,r.A)(t[n++])];return n&&n==o?e:void 0}t.A=o},3831:function(e,t,n){"use strict";var i=n(6912),r=n(2049);function o(e,t,n){var o=t(e);return(0,r.A)(e)?o:(0,i.A)(o,n(e))}t.A=o},8496:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(241),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i.A?i.A.toStringTag:void 0;function l(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(l){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}var u=l,c=Object.prototype,d=c.toString;function h(e){return d.call(e)}var p=h,f="[object Null]",g="[object Undefined]",m=i.A?i.A.toStringTag:void 0;function v(e){return null==e?void 0===e?g:f:m&&m in Object(e)?u(e):p(e)}var y=v},8951:function(e,t){"use strict";function n(e,t){return e>t}t.A=n},818:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(5707);function r(e){return e!==e}var o=r;function s(e,t,n){var i=n-1,r=e.length;while(++i<r)if(e[i]===t)return i;return-1}var a=s;function l(e,t,n){return t===t?a(e,t,n):(0,i.A)(e,o,n)}var u=l},6993:function(e,t,n){"use strict";n.d(t,{A:function(){return te}});var i=n(1754),r=n(2062);function o(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(t(e[n],n,e))return!0;return!1}var s=o,a=n(4099),l=1,u=2;function c(e,t,n,i,o,c){var d=n&l,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=c.get(e),g=c.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&u?new r.A:void 0;c.set(e,t),c.set(t,e);while(++m<h){var C=e[m],w=t[m];if(i)var x=d?i(w,C,m,t,e,c):i(C,w,m,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!s(t,function(e,t){if(!(0,a.A)(y,t)&&(C===e||o(C,e,n,i,c)))return y.push(t)})){v=!1;break}}else if(C!==w&&!o(C,w,n,i,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}var d=c,h=n(241),p=n(3988),f=n(6984);function g(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}var m=g,v=n(9959),y=1,C=2,w="[object Boolean]",x="[object Date]",b="[object Error]",_="[object Map]",S="[object Number]",A="[object RegExp]",T="[object Set]",E="[object String]",D="[object Symbol]",M="[object ArrayBuffer]",I="[object DataView]",R=h.A?h.A.prototype:void 0,L=R?R.valueOf:void 0;function P(e,t,n,i,r,o,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!o(new p.A(e),new p.A(t)));case w:case x:case S:return(0,f.A)(+e,+t);case b:return e.name==t.name&&e.message==t.message;case A:case E:return e==t+"";case _:var a=m;case T:var l=i&y;if(a||(a=v.A),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=C,s.set(e,t);var c=d(a(e),a(t),i,r,o,s);return s["delete"](e),c;case D:if(L)return L.call(e)==L.call(t)}return!1}var N=P,F=n(9042),O=1,k=Object.prototype,B=k.hasOwnProperty;function G(e,t,n,i,r,o){var s=n&O,a=(0,F.A)(e),l=a.length,u=(0,F.A)(t),c=u.length;if(l!=c&&!s)return!1;var d=l;while(d--){var h=a[d];if(!(s?h in t:B.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var g=!0;o.set(e,t),o.set(t,e);var m=s;while(++d<l){h=a[d];var v=e[h],y=t[h];if(i)var C=s?i(y,v,h,t,e,o):i(v,y,h,e,t,o);if(!(void 0===C?v===y||r(v,y,n,i,o):C)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return o["delete"](e),o["delete"](t),g}var V=G,H=n(9779),z=n(2049),U=n(9912),W=n(3858),$=1,j="[object Arguments]",X="[object Array]",Y="[object Object]",K=Object.prototype,q=K.hasOwnProperty;function Z(e,t,n,r,o,s){var a=(0,z.A)(e),l=(0,z.A)(t),u=a?X:(0,H.A)(e),c=l?X:(0,H.A)(t);u=u==j?Y:u,c=c==j?Y:c;var h=u==Y,p=c==Y,f=u==c;if(f&&(0,U.A)(e)){if(!(0,U.A)(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new i.A),a||(0,W.A)(e)?d(e,t,n,r,o,s):N(e,t,u,n,r,o,s);if(!(n&$)){var g=h&&q.call(e,"__wrapped__"),m=p&&q.call(t,"__wrapped__");if(g||m){var v=g?e.value():e,y=m?t.value():t;return s||(s=new i.A),o(v,y,n,r,s)}}return!!f&&(s||(s=new i.A),V(e,t,n,r,o,s))}var Q=Z,J=n(3098);function ee(e,t,n,i,r){return e===t||(null==e||null==t||!(0,J.A)(e)&&!(0,J.A)(t)?e!==e&&t!==t:Q(e,t,n,i,ee,r))}var te=ee},2816:function(e,t,n){"use strict";n.d(t,{A:function(){return $}});var i=n(1754),r=n(6993),o=1,s=2;function a(e,t,n,a){var l=n.length,u=l,c=!a;if(null==e)return!u;e=Object(e);while(l--){var d=n[l];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<u){d=n[l];var h=d[0],p=e[h],f=d[1];if(c&&d[2]){if(void 0===p&&!(h in e))return!1}else{var g=new i.A;if(a)var m=a(p,f,h,e,t,g);if(!(void 0===m?(0,r.A)(f,p,o|s,a,g):m))return!1}}return!0}var l=a,u=n(3149);function c(e){return e===e&&!(0,u.A)(e)}var d=c,h=n(7422);function p(e){var t=(0,h.A)(e),n=t.length;while(n--){var i=t[n],r=e[i];t[n]=[i,r,d(r)]}return t}var f=p;function g(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var m=g;function v(e){var t=f(e);return 1==t.length&&t[0][2]?m(t[0][0],t[0][1]):function(n){return n===e||l(n,e,t)}}var y=v,C=n(7500);function w(e,t){return null!=e&&t in Object(e)}var x=w,b=n(3442),_=n(2274),S=n(2049),A=n(5353),T=n(5254),E=n(901);function D(e,t,n){t=(0,b.A)(t,e);var i=-1,r=t.length,o=!1;while(++i<r){var s=(0,E.A)(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&(0,T.A)(r)&&(0,A.A)(s,r)&&((0,S.A)(e)||(0,_.A)(e)))}var M=D;function I(e,t){return null!=e&&M(e,t,x)}var R=I,L=n(6586),P=1,N=2;function F(e,t){return(0,L.A)(e)&&d(t)?m((0,E.A)(e),t):function(n){var i=(0,C.A)(n,e);return void 0===i&&i===t?R(n,e):(0,r.A)(t,i,P|N)}}var O=F,k=n(9008),B=n(805),G=n(6318);function V(e){return function(t){return(0,G.A)(t,e)}}var H=V;function z(e){return(0,L.A)(e)?(0,B.A)((0,E.A)(e)):H(e)}var U=z;function W(e){return"function"==typeof e?e:null==e?k.A:"object"==typeof e?(0,S.A)(e)?O(e[0],e[1]):y(e):U(e)}var $=W},1852:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(7271),r=n(367),o=(0,r.A)(Object.keys,Object),s=o,a=Object.prototype,l=a.hasOwnProperty;function u(e){if(!(0,i.A)(e))return s(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var c=u},2568:function(e,t,n){"use strict";var i=n(1578),r=n(8446);function o(e,t){var n=-1,o=(0,r.A)(e)?Array(e.length):[];return(0,i.A)(e,function(e,i,r){o[++n]=t(e,i,r)}),o}t.A=o},805:function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}t.A=n},4326:function(e,t,n){"use strict";var i=n(9008),r=n(6875),o=n(9727);function s(e,t){return(0,o.A)((0,r.A)(e,t,i.A),e+"")}t.A=s},7688:function(e,t){"use strict";function n(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;var o=Array(r);while(++i<r)o[i]=e[i+t];return o}t.A=n},52:function(e,t,n){"use strict";var i=n(241),r=n(5572),o=n(2049),s=n(1882),a=1/0,l=i.A?i.A.prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,r.A)(e,c)+"";if((0,s.A)(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}t.A=c},9489:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=/\s/;function r(e){var t=e.length;while(t--&&i.test(e.charAt(t)));return t}var o=r,s=/^\s+/;function a(e){return e?e.slice(0,o(e)+1).replace(s,""):e}var l=a},2789:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},1285:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i=n(2062),r=n(5530),o=n(7809),s=n(4099),a=n(9857);function l(){}var u=l,c=n(9959),d=1/0,h=a.A&&1/(0,c.A)(new a.A([,-0]))[1]==d?function(e){return new a.A(e)}:u,p=h,f=200;function g(e,t,n){var a=-1,l=r.A,u=e.length,d=!0,h=[],g=h;if(n)d=!1,l=o.A;else if(u>=f){var m=t?null:p(e);if(m)return(0,c.A)(m);d=!1,l=s.A,g=new i.A}else g=t?[]:h;e:while(++a<u){var v=e[a],y=t?t(v):v;if(v=n||0!==v?v:0,d&&y===y){var C=g.length;while(C--)if(g[C]===y)continue e;t&&g.push(y),h.push(v)}else l(g,y,n)||(g!==h&&g.push(y),h.push(v))}return h}var m=g},4099:function(e,t){"use strict";function n(e,t){return e.has(t)}t.A=n},3442:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i=n(2049),r=n(6586),o=n(9471),s="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(a.Cache||o.A),n}a.Cache=o.A;var l=a,u=500;function c(e){var t=l(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}var d=c,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=d(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(h,function(e,n,i,r){t.push(i?r.replace(p,"$1"):n||e)}),t}),g=f,m=n(8182);function v(e,t){return(0,i.A)(e)?e:(0,r.A)(e,t)?[e]:g((0,m.A)(e))}var y=v},98:function(e,t,n){"use strict";var i=n(7688);function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:(0,i.A)(e,t,n)}t.A=r},565:function(e,t,n){"use strict";var i=n(3988);function r(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}t.A=r},154:function(e,t,n){"use strict";var i=n(1917),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r,a=s?i.A.Buffer:void 0,l=a?a.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,i=l?l(n):new e.constructor(n);return e.copy(i),i}t.A=u},1801:function(e,t,n){"use strict";var i=n(565);function r(e,t){var n=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t.A=r},9759:function(e,t){"use strict";function n(e,t){var n=-1,i=e.length;t||(t=Array(i));while(++n<i)t[n]=e[n];return t}t.A=n},2031:function(e,t,n){"use strict";var i=n(2851),r=n(2528);function o(e,t,n,o){var s=!n;n||(n={});var a=-1,l=t.length;while(++a<l){var u=t[a],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?(0,r.A)(n,u,c):(0,i.A)(n,u,c)}return n}t.A=o},4171:function(e,t,n){"use strict";var i=n(8744),r=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=r},2136:function(e,t,n){"use strict";var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.A=i},9042:function(e,t,n){"use strict";var i=n(3831),r=n(4792),o=n(7422);function s(e){return(0,i.A)(e,o.A,r.A)}t.A=s},3973:function(e,t,n){"use strict";var i=n(3831),r=n(3511),o=n(5615);function s(e){return(0,i.A)(e,o.A,r.A)}t.A=s},8744:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var i=n(9610),r=n(1917),o=r.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!a&&a in e}var u=l,c=n(3149),d=n(1121),h=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,m=f.toString,v=g.hasOwnProperty,y=RegExp("^"+m.call(v).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C(e){if(!(0,c.A)(e)||u(e))return!1;var t=(0,i.A)(e)?y:p;return t.test((0,d.A)(e))}var w=C;function x(e,t){return null==e?void 0:e[t]}var b=x;function _(e,t){var n=b(e,t);return w(n)?n:void 0}var S=_},5647:function(e,t,n){"use strict";var i=n(367),r=(0,i.A)(Object.getPrototypeOf,Object);t.A=r},4792:function(e,t,n){"use strict";var i=n(2634),r=n(3153),o=Object.prototype,s=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),(0,i.A)(a(e),function(t){return s.call(e,t)}))}:r.A;t.A=l},3511:function(e,t,n){"use strict";var i=n(6912),r=n(5647),o=n(4792),s=n(3153),a=Object.getOwnPropertySymbols,l=a?function(e){var t=[];while(e)(0,i.A)(t,(0,o.A)(e)),e=(0,r.A)(e);return t}:s.A;t.A=l},9779:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var i=n(8744),r=n(1917),o=(0,i.A)(r.A,"DataView"),s=o,a=n(8335),l=(0,i.A)(r.A,"Promise"),u=l,c=n(9857),d=(0,i.A)(r.A,"WeakMap"),h=d,p=n(8496),f=n(1121),g="[object Map]",m="[object Object]",v="[object Promise]",y="[object Set]",C="[object WeakMap]",w="[object DataView]",x=(0,f.A)(s),b=(0,f.A)(a.A),_=(0,f.A)(u),S=(0,f.A)(c.A),A=(0,f.A)(h),T=p.A;(s&&T(new s(new ArrayBuffer(1)))!=w||a.A&&T(new a.A)!=g||u&&T(u.resolve())!=v||c.A&&T(new c.A)!=y||h&&T(new h)!=C)&&(T=function(e){var t=(0,p.A)(e),n=t==m?e.constructor:void 0,i=n?(0,f.A)(n):"";if(i)switch(i){case x:return w;case b:return g;case _:return v;case S:return y;case A:return C}return t});var E=T},898:function(e,t){"use strict";var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",s=i+r+o,a="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+n+s+a+"]");function c(e){return u.test(e)}t.A=c},8598:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(3149),r=Object.create,o=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),s=o,a=n(5647),l=n(7271);function u(e){return"function"!=typeof e.constructor||(0,l.A)(e)?{}:s((0,a.A)(e))}var c=u},5353:function(e,t){"use strict";var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t=null==t?n:t,!!t&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}t.A=r},6832:function(e,t,n){"use strict";var i=n(6984),r=n(8446),o=n(5353),s=n(3149);function a(e,t,n){if(!(0,s.A)(n))return!1;var a=typeof t;return!!("number"==a?(0,r.A)(n)&&(0,o.A)(t,n.length):"string"==a&&t in n)&&(0,i.A)(n[t],e)}t.A=a},6586:function(e,t,n){"use strict";var i=n(2049),r=n(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,i.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,r.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}t.A=a},7271:function(e,t){"use strict";var n=Object.prototype;function i(e){var t=e&&e.constructor,i="function"==typeof t&&t.prototype||n;return e===i}t.A=i},4841:function(e,t,n){"use strict";var i=n(2136),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r,a=s&&i.A.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();t.A=l},367:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},6875:function(e,t,n){"use strict";function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}n.d(t,{A:function(){return a}});var r=i,o=Math.max;function s(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,s=-1,a=o(i.length-t,0),l=Array(a);while(++s<a)l[s]=i[t+s];s=-1;var u=Array(t+1);while(++s<t)u[s]=i[s];return u[t]=n(l),r(e,this,u)}}var a=s},1917:function(e,t,n){"use strict";var i=n(2136),r="object"==typeof self&&self&&self.Object===Object&&self,o=i.A||r||Function("return this")();t.A=o},9959:function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.A=n},9727:function(e,t,n){"use strict";function i(e){return function(){return e}}n.d(t,{A:function(){return g}});var r=i,o=n(4171),s=n(9008),a=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:s.A,l=a,u=800,c=16,d=Date.now;function h(e){var t=0,n=0;return function(){var i=d(),r=c-(i-n);if(n=i,r>0){if(++t>=u)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p=h,f=p(l),g=f},4862:function(e,t,n){"use strict";function i(e){return e.split("")}n.d(t,{A:function(){return M}});var r=i,o=n(898),s="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",u="\\u20d0-\\u20ff",c=a+l+u,d="\\ufe0e\\ufe0f",h="["+s+"]",p="["+c+"]",f="\\ud83c[\\udffb-\\udfff]",g="(?:"+p+"|"+f+")",m="[^"+s+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",C="\\u200d",w=g+"?",x="["+d+"]?",b="(?:"+C+"(?:"+[m,v,y].join("|")+")"+x+w+")*",_=x+w+b,S="(?:"+[m+p+"?",p,v,y,h].join("|")+")",A=RegExp(f+"(?="+f+")|"+S+_,"g");function T(e){return e.match(A)||[]}var E=T;function D(e){return(0,o.A)(e)?E(e):r(e)}var M=D},901:function(e,t,n){"use strict";var i=n(1882),r=1/0;function o(e){if("string"==typeof e||(0,i.A)(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}t.A=o},1121:function(e,t){"use strict";var n=Function.prototype,i=n.toString;function r(e){if(null!=e){try{return i.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=r},903:function(e,t,n){"use strict";var i=n(8675),r=1,o=4;function s(e){return(0,i.A)(e,r|o)}t.A=s},6984:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},8817:function(e,t,n){"use strict";function i(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!t(e[n],n,e))return!1;return!0}n.d(t,{A:function(){return h}});var r=i,o=n(1578);function s(e,t){var n=!0;return(0,o.A)(e,function(e,i,r){return n=!!t(e,i,r),n}),n}var a=s,l=n(2816),u=n(2049),c=n(6832);function d(e,t,n){var i=(0,u.A)(e)?r:a;return n&&(0,c.A)(e,t,n)&&(t=void 0),i(e,(0,l.A)(t,3))}var h=d},1662:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(2634),r=n(1578);function o(e,t){var n=[];return(0,r.A)(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}var s=o,a=n(2816),l=n(2049);function u(e,t){var n=(0,l.A)(e)?i.A:s;return n(e,(0,a.A)(t,3))}var c=u},6145:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(2816),r=n(8446),o=n(7422);function s(e){return function(t,n,s){var a=Object(t);if(!(0,r.A)(t)){var l=(0,i.A)(n,3);t=(0,o.A)(t),n=function(e){return l(a[e],e,a)}}var u=e(t,n,s);return u>-1?a[l?t[u]:u]:void 0}}var a=s,l=n(5707),u=n(8593),c=Math.max;function d(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:(0,u.A)(n);return o<0&&(o=c(r+o,0)),(0,l.A)(e,(0,i.A)(t,3),o)}var h=d,p=a(h),f=p},6036:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(2641),r=n(1578),o=n(9008);function s(e){return"function"==typeof e?e:o.A}var a=s,l=n(2049);function u(e,t){var n=(0,l.A)(e)?i.A:r.A;return n(e,a(t))}var c=u},7500:function(e,t,n){"use strict";var i=n(6318);function r(e,t,n){var r=null==e?void 0:(0,i.A)(e,t);return void 0===r?n:r}t.A=r},9008:function(e,t){"use strict";function n(e){return e}t.A=n},2274:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(8496),r=n(3098),o="[object Arguments]";function s(e){return(0,r.A)(e)&&(0,i.A)(e)==o}var a=s,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,d=a(function(){return arguments}())?a:function(e){return(0,r.A)(e)&&u.call(e,"callee")&&!c.call(e,"callee")},h=d},2049:function(e,t){"use strict";var n=Array.isArray;t.A=n},8446:function(e,t,n){"use strict";var i=n(9610),r=n(5254);function o(e){return null!=e&&(0,r.A)(e.length)&&!(0,i.A)(e)}t.A=o},3533:function(e,t,n){"use strict";var i=n(8446),r=n(3098);function o(e){return(0,r.A)(e)&&(0,i.A)(e)}t.A=o},8916:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Boolean]";function s(e){return!0===e||!1===e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},9912:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(1917);function r(){return!1}var o=r,s="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=s&&"object"==typeof module&&module&&!module.nodeType&&module,l=a&&a.exports===s,u=l?i.A.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||o,h=d},6996:function(e,t,n){"use strict";var i=n(6993);function r(e,t){return(0,i.A)(e,t)}t.A=r},9610:function(e,t,n){"use strict";var i=n(8496),r=n(3149),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!(0,r.A)(e))return!1;var t=(0,i.A)(e);return t==s||t==a||t==o||t==l}t.A=u},5254:function(e,t){"use strict";var n=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=i},1879:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Number]";function s(e){return"number"==typeof e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},3149:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},3098:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},4963:function(e,t,n){"use strict";var i=n(8496),r=n(5647),o=n(3098),s="[object Object]",a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,d=u.call(Object);function h(e){if(!(0,o.A)(e)||(0,i.A)(e)!=s)return!1;var t=(0,r.A)(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}t.A=h},1882:function(e,t,n){"use strict";var i=n(8496),r=n(3098),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,r.A)(e)&&(0,i.A)(e)==o}t.A=s},3858:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var i=n(8496),r=n(5254),o=n(3098),s="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",E="[object Uint8ClampedArray]",D="[object Uint16Array]",M="[object Uint32Array]",I={};function R(e){return(0,o.A)(e)&&(0,r.A)(e.length)&&!!I[(0,i.A)(e)]}I[x]=I[b]=I[_]=I[S]=I[A]=I[T]=I[E]=I[D]=I[M]=!0,I[s]=I[a]=I[C]=I[l]=I[w]=I[u]=I[c]=I[d]=I[h]=I[p]=I[f]=I[g]=I[m]=I[v]=I[y]=!1;var L=R,P=n(2789),N=n(4841),F=N.A&&N.A.isTypedArray,O=F?(0,P.A)(F):L,k=O},4554:function(e,t){"use strict";var n=Array.prototype,i=n.join;function r(e,t){return null==e?"":i.call(e,t)}t.A=r},7422:function(e,t,n){"use strict";var i=n(3607),r=n(1852),o=n(8446);function s(e){return(0,o.A)(e)?(0,i.A)(e):(0,r.A)(e)}t.A=s},5615:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(3607),r=n(3149),o=n(7271);function s(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var a=s,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!(0,r.A)(e))return a(e);var t=(0,o.A)(e),n=[];for(var i in e)("constructor"!=i||!t&&u.call(e,i))&&n.push(i);return n}var d=c,h=n(8446);function p(e){return(0,h.A)(e)?(0,i.A)(e,!0):d(e)}var f=p},6666:function(e,t){"use strict";function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.A=n},4722:function(e,t,n){"use strict";var i=n(5572),r=n(2816),o=n(2568),s=n(2049);function a(e,t){var n=(0,s.A)(e)?i.A:o.A;return n(e,(0,r.A)(t,3))}t.A=a},8024:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});var i=n(5572),r=n(8675),o=n(3442),s=n(6666),a=n(6318),l=n(7688);function u(e,t){return t.length<2?e:(0,a.A)(e,(0,l.A)(t,0,-1))}var c=u,d=n(901),h=Object.prototype,p=h.hasOwnProperty;function f(e,t){t=(0,o.A)(t,e);var n=-1,i=t.length;if(!i)return!0;while(++n<i){var r=(0,d.A)(t[n]);if("__proto__"===r&&!p.call(e,"__proto__"))return!1;if(("constructor"===r||"prototype"===r)&&n<i-1)return!1}var a=c(e,t);return null==a||delete a[(0,d.A)((0,s.A)(t))]}var g=f,m=n(2031),v=n(4963);function y(e){return(0,v.A)(e)?void 0:e}var C=y,w=n(3588);function x(e){var t=null==e?0:e.length;return t?(0,w.A)(e,1):[]}var b=x,_=n(6875),S=n(9727);function A(e){return(0,S.A)((0,_.A)(e,void 0,b),e+"")}var T=A,E=n(3973),D=1,M=2,I=4,R=T(function(e,t){var n={};if(null==e)return n;var s=!1;t=(0,i.A)(t,function(t){return t=(0,o.A)(t,e),s||(s=t.length>1),t}),(0,m.A)(e,(0,E.A)(e),n),s&&(n=(0,r.A)(n,D|M|I,C));var a=t.length;while(a--)g(n,t[a]);return n}),L=R},2608:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(5572),r=n(818);function o(e,t,n,i){var r=n-1,o=e.length;while(++r<o)if(i(e[r],t))return r;return-1}var s=o,a=n(2789),l=n(9759),u=Array.prototype,c=u.splice;function d(e,t,n,o){var u=o?s:r.A,d=-1,h=t.length,p=e;e===t&&(t=(0,l.A)(t)),n&&(p=(0,i.A)(e,(0,a.A)(n)));while(++d<h){var f=0,g=t[d],m=n?n(g):g;while((f=u(p,m,f,o))>-1)p!==e&&c.call(p,f,1),c.call(e,f,1)}return e}var h=d;function p(e,t){return e&&e.length&&t&&t.length?h(e,t):e}var f=p},694:function(e,t){"use strict";var n=Array.prototype,i=n.reverse;function r(e){return null==e?e:i.call(e)}t.A=r},1898:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(1917),r=n(8593),o=n(1694),s=n(8182),a=i.A.isFinite,l=Math.min;function u(e){var t=Math[e];return function(e,n){if(e=(0,o.A)(e),n=null==n?0:l((0,r.A)(n),292),n&&a(e)){var i=((0,s.A)(e)+"e").split("e"),u=t(i[0]+"e"+(+i[1]+n));return i=((0,s.A)(u)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var c=u,d=c("round"),h=d},8395:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(2851),r=n(3442),o=n(5353),s=n(3149),a=n(901);function l(e,t,n,l){if(!(0,s.A)(e))return e;t=(0,r.A)(t,e);var u=-1,c=t.length,d=c-1,h=e;while(null!=h&&++u<c){var p=(0,a.A)(t[u]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var g=h[p];f=l?l(g,p,h):void 0,void 0===f&&(f=(0,s.A)(g)?g:(0,o.A)(t[u+1])?[]:{})}(0,i.A)(h,p,f),h=h[p]}return e}var u=l;function c(e,t,n){return null==e?e:u(e,t,n)}var d=c},6902:function(e,t,n){"use strict";n.d(t,{A:function(){return U}});var i=n(1852),r=n(9779),o=n(8446),s=n(8496),a=n(2049),l=n(3098),u="[object String]";function c(e){return"string"==typeof e||!(0,a.A)(e)&&(0,l.A)(e)&&(0,s.A)(e)==u}var d=c,h=n(805),p=(0,h.A)("length"),f=p,g=n(898),m="\\ud800-\\udfff",v="\\u0300-\\u036f",y="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",w=v+y+C,x="\\ufe0e\\ufe0f",b="["+m+"]",_="["+w+"]",S="\\ud83c[\\udffb-\\udfff]",A="(?:"+_+"|"+S+")",T="[^"+m+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",M="\\u200d",I=A+"?",R="["+x+"]?",L="(?:"+M+"(?:"+[T,E,D].join("|")+")"+R+I+")*",P=R+I+L,N="(?:"+[T+_+"?",_,E,D,b].join("|")+")",F=RegExp(S+"(?="+S+")|"+N+P,"g");function O(e){var t=F.lastIndex=0;while(F.test(e))++t;return t}var k=O;function B(e){return(0,g.A)(e)?k(e):f(e)}var G=B,V="[object Map]",H="[object Set]";function z(e){if(null==e)return 0;if((0,o.A)(e))return d(e)?G(e):e.length;var t=(0,r.A)(e);return t==V||t==H?e.size:(0,i.A)(e).length}var U=z},1244:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var i=n(3588),r=n(5572),o=n(6318),s=n(2816),a=n(2568);function l(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}var u=l,c=n(2789),d=n(1882);function h(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e===e,o=(0,d.A)(e),s=void 0!==t,a=null===t,l=t===t,u=(0,d.A)(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||i&&s&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||a&&n&&r||!s&&r||!l)return-1}return 0}var p=h;function f(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;while(++i<s){var l=p(r[i],o[i]);if(l){if(i>=a)return l;var u=n[i];return l*("desc"==u?-1:1)}}return e.index-t.index}var g=f,m=n(9008),v=n(2049);function y(e,t,n){t=t.length?(0,r.A)(t,function(e){return(0,v.A)(e)?function(t){return(0,o.A)(t,1===e.length?e[0]:e)}:e}):[m.A];var i=-1;t=(0,r.A)(t,(0,c.A)(s.A));var l=(0,a.A)(e,function(e,n,o){var s=(0,r.A)(t,function(t){return t(e)});return{criteria:s,index:++i,value:e}});return u(l,function(e,t){return g(e,t,n)})}var C=y,w=n(4326),x=n(6832),b=(0,w.A)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,x.A)(e,t[0],t[1])?t=[]:n>2&&(0,x.A)(t[0],t[1],t[2])&&(t=[t[0]]),C(e,(0,i.A)(t,1),[])}),_=b},8351:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var i=n(52),r=n(98),o=n(898),s=n(6832),a=n(8496),l=n(3098),u="[object RegExp]";function c(e){return(0,l.A)(e)&&(0,a.A)(e)==u}var d=c,h=n(2789),p=n(4841),f=p.A&&p.A.isRegExp,g=f?(0,h.A)(f):d,m=g,v=n(4862),y=n(8182),C=4294967295;function w(e,t,n){return n&&"number"!=typeof n&&(0,s.A)(e,t,n)&&(t=n=void 0),n=void 0===n?C:n>>>0,n?(e=(0,y.A)(e),e&&("string"==typeof t||null!=t&&!m(t))&&(t=(0,i.A)(t),!t&&(0,o.A)(e))?(0,r.A)((0,v.A)(e),0,n):e.split(t,n)):[]}var x=w},3153:function(e,t){"use strict";function n(){return[]}t.A=n},8776:function(e,t,n){"use strict";var i=n(1694),r=1/0,o=17976931348623157e292;function s(e){if(!e)return 0===e?e:0;if(e=(0,i.A)(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}t.A=s},8593:function(e,t,n){"use strict";var i=n(8776);function r(e){var t=(0,i.A)(e),n=t%1;return t===t?n?t-n:t:0}t.A=r},1694:function(e,t,n){"use strict";var i=n(9489),r=n(3149),o=n(1882),s=NaN,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if((0,o.A)(e))return s;if((0,r.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,r.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,i.A)(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?s:+e}t.A=d},8182:function(e,t,n){"use strict";var i=n(52);function r(e){return null==e?"":(0,i.A)(e)}t.A=r},8621:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var i=n(52),r=n(9489),o=n(98),s=n(818);function a(e,t){var n=e.length;while(n--&&(0,s.A)(t,e[n],0)>-1);return n}var l=a;function u(e,t){var n=-1,i=e.length;while(++n<i&&(0,s.A)(t,e[n],0)>-1);return n}var c=u,d=n(4862),h=n(8182);function p(e,t,n){if(e=(0,h.A)(e),e&&(n||void 0===t))return(0,r.A)(e);if(!e||!(t=(0,i.A)(t)))return e;var s=(0,d.A)(e),a=(0,d.A)(t),u=c(s,a),p=l(s,a)+1;return(0,o.A)(s,u,p).join("")}var f=p},9115:function(e,t,n){"use strict";var i=n(3588),r=n(4326),o=n(1285),s=n(3533),a=(0,r.A)(function(e){return(0,o.A)((0,i.A)(e,1,s.A,!0))});t.A=a},8207:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(5572);function r(e,t){return(0,i.A)(t,function(t){return e[t]})}var o=r,s=n(7422);function a(e){return null==e?[]:o(e,(0,s.A)(e))}var l=a},7738:function(e,t,n){"use strict";n.d(t,{A:function(){return B}});var i=n(1879),r=n(6036),o=n(7500),s=n(1662),a=n(1244),l=n(1388),u=n(7120),c=n(2942),d=n(5021),h=n(8135),p=n(7417),f=n(6702),g=n(6224),m=n(8332),v=n(4958);function y(e,t={}){if(!(0,m.A)(e))return;let n=(0,o.A)(t,"duration",500);n=(0,g.A)(n),n<0&&(n=1e3);let i=(0,o.A)(t,"delay",0);i=(0,g.A)(i),i<0&&(i=0);let r=(0,o.A)(t,"opacityIni",0);r=(0,g.A)(r),r=Math.min(Math.max(r,0),1),(0,v.A)(e.style.opacity)&&(r=(0,g.A)(e.style.opacity));let s=10,a=s/n,l=`tag-${(0,u.A)()}`;e.setAttribute("dom-fade-tag",l),setTimeout(()=>{let t=setInterval(()=>{try{let n=e.getAttribute("dom-fade-tag");n!==l&&clearInterval(t),e.style.opacity=r,r>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),r+=a,r>1&&(r=1)}catch(n){console.log(n),clearInterval(t)}},s)},i)}var C=y;function w(e,t={}){if(!(0,m.A)(e))return;let n=(0,o.A)(t,"duration",500);n=(0,g.A)(n),n<0&&(n=1e3);let i=(0,o.A)(t,"delay",0);i=(0,g.A)(i),i<0&&(i=0);let r=(0,o.A)(t,"opacityIni",1);r=(0,g.A)(r),r=Math.min(Math.max(r,0),1),(0,v.A)(e.style.opacity)&&(r=(0,g.A)(e.style.opacity));let s=10,a=s/n,l=`tag-${(0,u.A)()}`;e.setAttribute("dom-fade-tag",l),setTimeout(()=>{let t=setInterval(()=>{try{let n=e.getAttribute("dom-fade-tag");n!==l&&clearInterval(t),e.style.opacity=r,r<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),r-=a,r<0&&(r=0)}catch(n){console.log(n),clearInterval(t)}},s)},i)}var x=w;let b='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',_='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',S='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',A='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',T='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',E={success:b,error:_,warning:S,infor:A,cancel:T},D={},M=null,I=(0,l.A)();function R(e){let t=(0,s.A)(D,{position:e});t=(0,a.A)(t,"timeStart");let n=16,i=16,o=i;(0,r.A)(t,e=>{D[e.id].ele||(D[e.id].ele=document.querySelector(`#${e.id}`)),D[e.id].loc.top=o,D[e.id].loc.height=D[e.id].ele.offsetHeight,o+=D[e.id].loc.height+i}),(0,r.A)(t,t=>{e.indexOf("bottom-")>=0?(D[t.id].ele.style.bottom=`${D[t.id].loc.top}px`,D[t.id].loc.bottom=D[t.id].loc.top):D[t.id].ele.style.top=`${D[t.id].loc.top}px`,e.indexOf("-left")>=0?(D[t.id].ele.style.left=`${n}px`,D[t.id].loc.left=n):(D[t.id].ele.style.right=`${n}px`,D[t.id].loc.right=n),D[t.id].ele.style.zIndex=2e5,D[t.id].ele.style.opacity=1,D[t.id].ele.style.transform="",D[t.id].ele.style.transform=null})}function L(){let e=["top-right","top-left","bottom-right","bottom-left"];(0,r.A)(e,e=>{R(e)})}function P(e){D[e].ele&&D[e].ele.parentNode.removeChild(D[e].ele),D[e]&&delete D[e],L()}function N({id:e,position:t,time:n,pm:i}){D[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:i},L(),null===M&&(M=setInterval(()=>{(0,r.A)(D,e=>{let t=Date.now()-e.timeStart;t>e.timeShow&&(e.pm.resolve(),P(e.id))}),(0,h.A)(D)||(clearInterval(M),M=null)},50))}function F(e,t={}){if(!(0,d.A)(e))return;let n=(0,o.A)(t,"type","success");(0,f.A)(E,n)||(n="success");let r=(0,o.A)(t,"icon",null);(0,d.A)(r)||(r=E[n]);let s="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(s=t.position);let a=(0,o.A)(t,"time");(0,i.A)(a)||(a=4e3),a<0&&(a=4e3);let l=(0,o.A)(t,"paddingStyle",null);null===l&&(l={top:14,right:26,bottom:14,left:14});let h="";{let e=(0,o.A)(l,"top",0),t=(0,o.A)(l,"bottom",0),n=(0,o.A)(l,"left",0),i=(0,o.A)(l,"right",0);h=`padding:${e}px ${i}px ${t}px ${n}px;`}let g=(0,o.A)(t,"textColor","#000");g=(0,p.A)(g,";","");let m=(0,o.A)(t,"backgroundColor","#fff");m=(0,p.A)(m,";","");let v=(0,o.A)(t,"borderWidth",1),y=(0,o.A)(t,"borderColor","#ebeef5");y=(0,p.A)(y,";","");let C=(0,o.A)(t,"borderRadius",8),w=(0,o.A)(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");w=(0,p.A)(w,";","");let x=(0,o.A)(t,"closeIconShift",null);null===x&&(x={top:10,right:10});let b="";{let e=(0,o.A)(x,"top",""),t=(0,o.A)(x,"bottom",""),n=(0,o.A)(x,"left",""),r=(0,o.A)(x,"right","");(0,i.A)(e)&&(e=`top:${e}px;`),(0,i.A)(t)&&(t=`bottom:${t}px;`),(0,i.A)(n)&&(n=`left:${n}px;`),(0,i.A)(r)&&(r=`right:${r}px;`),b=`position:absolute; ${e} ${r} ${t} ${n}`}let _=`alt-${(0,u.A)()}`,S=`alt-${(0,u.A)()}`,A=`\n <div \n style="display:inline-block; color:${g}; background:${m}; border:${v}px solid ${y}; border-radius:${C}px; box-shadow:${w};"\n onmouseenter="ttWAlertFadeIn('${S}')"\n onmouseleave="ttWAlertFadeOut('${S}')"\n >\n <div style="position:relative; ${h}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${b}">\n <div \n id="${S}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${_}')"\n >\n ${T}\n </div>\n </div>\n\n </div>\n </div>\n `,D=document.createElement("div");D.id=_,D.style.position="fixed",D.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",D.style.zIndex=-1,D.style.opacity=.001,s.indexOf("-left")>=0?D.style.transform="translateX(-100%)":D.style.transform="translateX(100%)",D.innerHTML=A;let M=document.querySelector("body");M.appendChild(D);let I=(0,c.A)();return N({id:_,position:s,time:a,pm:I}),I}I.ttWAlertCancel=function(e){P(e)},I.ttWAlertFadeIn=function(e){C(document.querySelector(`#${e}`))},I.ttWAlertFadeOut=function(e){x(document.querySelector(`#${e}`))};var O=F;let k=O;var B=k},702:function(e,t,n){"use strict";n.d(t,{A:function(){return He}});var i=n(8182),r=n(98),o=n(898),s=n(4862);function a(e){return function(t){t=(0,i.A)(t);var n=(0,o.A)(t)?(0,s.A)(t):void 0,a=n?n[0]:t.charAt(0),l=n?(0,r.A)(n,1).join(""):t.slice(1);return a[e]()+l}}var l=a,u=l("toUpperCase"),c=u;function d(e){return c((0,i.A)(e).toLowerCase())}var h=d;function p(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r<o)n=t(n,e[r],r,e);return n}var f=p;function g(e){return function(t){return null==e?void 0:e[t]}}var m=g,v={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},y=m(v),C=y,w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x="\\u0300-\\u036f",b="\\ufe20-\\ufe2f",_="\\u20d0-\\u20ff",S=x+b+_,A="["+S+"]",T=RegExp(A,"g");function E(e){return e=(0,i.A)(e),e&&e.replace(w,C).replace(T,"")}var D=E,M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function I(e){return e.match(M)||[]}var R=I,L=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function P(e){return L.test(e)}var N=P,F="\\ud800-\\udfff",O="\\u0300-\\u036f",k="\\ufe20-\\ufe2f",B="\\u20d0-\\u20ff",G=O+k+B,V="\\u2700-\\u27bf",H="a-z\\xdf-\\xf6\\xf8-\\xff",z="\\xac\\xb1\\xd7\\xf7",U="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",W="\\u2000-\\u206f",$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",j="A-Z\\xc0-\\xd6\\xd8-\\xde",X="\\ufe0e\\ufe0f",Y=z+U+W+$,K="['’]",q="["+Y+"]",Z="["+G+"]",Q="\\d+",J="["+V+"]",ee="["+H+"]",te="[^"+F+Y+Q+V+H+j+"]",ne="\\ud83c[\\udffb-\\udfff]",ie="(?:"+Z+"|"+ne+")",re="[^"+F+"]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",se="[\\ud800-\\udbff][\\udc00-\\udfff]",ae="["+j+"]",le="\\u200d",ue="(?:"+ee+"|"+te+")",ce="(?:"+ae+"|"+te+")",de="(?:"+K+"(?:d|ll|m|re|s|t|ve))?",he="(?:"+K+"(?:D|LL|M|RE|S|T|VE))?",pe=ie+"?",fe="["+X+"]?",ge="(?:"+le+"(?:"+[re,oe,se].join("|")+")"+fe+pe+")*",me="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ye=fe+pe+ge,Ce="(?:"+[J,oe,se].join("|")+")"+ye,we=RegExp([ae+"?"+ee+"+"+de+"(?="+[q,ae,"$"].join("|")+")",ce+"+"+he+"(?="+[q,ae+ue,"$"].join("|")+")",ae+"?"+ue+"+"+de,ae+"+"+he,ve,me,Q,Ce].join("|"),"g");function xe(e){return e.match(we)||[]}var be=xe;function _e(e,t,n){return e=(0,i.A)(e),t=n?void 0:t,void 0===t?N(e)?be(e):R(e):e.match(t)||[]}var Se=_e,Ae="['’]",Te=RegExp(Ae,"g");function Ee(e){return function(t){return f(Se(D(t).replace(Te,"")),e,"")}}var De=Ee,Me=De(function(e,t,n){return t=t.toLowerCase(),e+(n?h(t):t)}),Ie=Me,Re=n(8351),Le=n(6902),Pe=n(7500),Ne=n(5021);let Fe={default:{red:{base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink:{base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple:{base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo:{base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue:{base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue:{base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan:{base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal:{base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green:{base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen:{base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime:{base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow:{base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber:{base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange:{base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange:{base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown:{base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey:{base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey:{base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades:{black:"#000000",white:"#ffffff",transparent:"transparent"}}};function Oe(e){let t=(0,Re.A)(e," ");return 1===(0,Le.A)(t)&&(t[1]=null),t}function ke(e){let t=e.trim();return t=Ie(t),t}function Be(e){(0,Ne.A)(e)||(e="base");let t=e.trim();return t=t.replace("-","").trim(),t}function Ge(e,t,n){let i=(0,Pe.A)(Fe,`default.${e}.${t}`,null);return null===i&&(i=n),i}function Ve(e){if("white"===e)return"#fff";if("black"===e)return"#000";if("transparent"===e)return"rgba(0,0,0,0)";let t=Oe(e),n=ke(t[0]),i=Be(t[1]),r=Ge(n,i,e);return r}var He=Ve},7582:function(e,t,n){"use strict";var i=n(7120),r=n(7924);function o(){let e={};function t(e,t,n){let i=e.data&&e.data.on||e.componentOptions&&e.componentOptions.listeners;i&&i[t]&&i[t].fns(n)}function n(n,o,s){let a=`r${(0,i.A)()}`;n.setAttribute("ev-resize",a);let l=(0,r.A)(()=>n);l.on("resizeWithWindow",e=>{t(s,"domresize",e)}),e[a]=l}function o(t){let n=t.getAttribute("ev-resize");t.setAttribute("ev-resize",null),e[n]&&(e[n].clear(),e[n]=null,delete e[n])}return{bind:n,unbind:o}}t.A=o},6192:function(e,t,n){"use strict";var i=n(7500),r=n(5021),o=n(4958),s=n(8135),a=n(6224),l=n(7120),u=n(8559),c=n(702);function d(e={}){let t={};function n(e,t,n){let i=`r${(0,l.A)()}`;e.setAttribute("ev-ripple",i),h(e,t)}function d(e){p(e),e.setAttribute("ev-ripple",null)}function h(e,n){let l=e.getAttribute("ev-ripple"),d=(0,i.A)(n,"value");if(d=(0,s.A)(d),!d)return;let h=(0,i.A)(n,"value.color");if(!(0,r.A)(h))return;h=(0,c.A)(h);let p=(0,i.A)(n,"value.timeDuration");function f(e){(0,u.A)(e.currentTarget,e,{color:h,timeDuration:p})}(0,o.A)(p)||(p=1e3),p=(0,a.A)(p),e.addEventListener("click",f,!1),t[l]=f}function p(e){let n=e.getAttribute("ev-ripple");if(t[n]){let i=t[n];e.removeEventListener("click",i,!1),delete t[n]}}return{bind:n,unbind:d}}t.A=d},5524:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var i=n(7500),r=n(1879),o=n(8207),s=n(6902),a=n(2559),l=n(8951),u=n(9008);function c(e){return e&&e.length?(0,a.A)(e,u.A,l.A):void 0}var d=c,h=n(6702);let p={};function f(e,t){(0,h.A)(p,e)||(p[e]={});let n=(0,i.A)(p,e,{}),a=(0,i.A)(n,t,null);if((0,r.A)(a))return a;let l=(0,o.A)(p[e]);return 0===(0,s.A)(l)?(a=1,p[e][t]=a,a):(a=d(l)+1,p[e][t]=a,a)}function g(e,t){(0,h.A)(p,e)&&delete p[e][t]}let m={getLevel:f,destroyLevel:g};var v=m},3665:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(7500),r=n(8842),o=n(8135),s=n(1879),a=n(9860);function l(e,t={}){let n,r=(0,i.A)(t,"def",""),o=(0,i.A)(t,"type","");"num"!==o&&"text"!==o&&(o="num"),"num"===o?n=s.A:"text"===o&&(n=a.A);let l=r,u=r,c=r,d=r;n((0,i.A)(e,"h"))&&(l=(0,i.A)(e,"h"),u=l),n((0,i.A)(e,"v"))&&(c=(0,i.A)(e,"v"),d=c),n((0,i.A)(e,"left"))&&(l=(0,i.A)(e,"left")),n((0,i.A)(e,"right"))&&(u=(0,i.A)(e,"right")),n((0,i.A)(e,"top"))&&(c=(0,i.A)(e,"top")),n((0,i.A)(e,"bottom"))&&(d=(0,i.A)(e,"bottom"));let h={left:l,right:u,top:c,bottom:d};return h}var u=l;function c(e,t={}){let n=(0,i.A)(t,"parse");(0,r.A)(n)||(n=!0);let s=(0,i.A)(t,"ext");(0,o.A)(s)||(s={});let a=(0,i.A)(t,"semicolon");(0,r.A)(a)||(a=!0);let l=(0,i.A)(t,"returnObj");(0,r.A)(l)||(l=!1);let c=0,d=0,h=0,p=0;if(n){let t=u(e);c=t.left,d=t.right,h=t.top,p=t.bottom}c+=(0,i.A)(s,"left",0),d+=(0,i.A)(s,"right",0),h+=(0,i.A)(s,"top",0),p+=(0,i.A)(s,"bottom",0);let f=null;return l?f={left:c,right:d,top:h,bottom:p}:(f=`${h}px ${d}px ${p}px ${c}px`,a&&(f=`${f};`)),f}var d=c},3422:function(e,t,n){"use strict";var i=n(6036),r=n(7422),o=n(7500),s=n(6902),a=n(6702),l=n(5021),u=n(8135),c=n(106),d=n(8842),h=n(662);function p(e,t={}){let n=(0,o.A)(t,"useCreateStorage");(0,d.A)(n)||(n=!1);let{keyTable:p,tableNameCht:f,tableNameEng:g,settings:m,parser:v,funNew:y,funTest:C,ext:w}=e;if(!(0,l.A)(p))throw new Error(`invalid keyTable[${p}]`);if((0,l.A)(f)||(f=p),(0,l.A)(g)||(g=p),!(0,u.A)(m))throw new Error("invalid settings");(0,u.A)(w)||(w=null),(0,u.A)(v)||(v=null),(0,c.A)(y)||(y=null);let x=null;(0,c.A)(C)&&(x=async e=>{if(!(0,u.A)(e))throw new Error("invalid wo");if(!(0,a.A)(e,p))throw console.log(e),new Error(`keyTable[${p}] is not in wo`);let t=[];try{t=C(),(0,h.A)(t)&&(t=await t)}catch(i){throw console.log(`keyTable[${p}] funTest catch`,i),new Error(i)}if(0!==(0,s.A)(t))return n&&await e[p].createStorage(),await e[p].save(t),t});let b={},_={};(0,i.A)((0,r.A)(m),e=>{let t=(0,o.A)(m,`${e}.name`,"");(0,l.A)(t)&&(b[e]=t);let n=(0,o.A)(m,`${e}.type`,"");(0,l.A)(n)&&(_[e]=n)});let S={...e,keyTable:p,tableNameCht:f,tableNameEng:g,settings:m,keys:(0,r.A)(m),kpType:_,kpHead:b,parser:v,funNew:y,funTest:C,funTestAndSave:x,ext:w};return S}t.A=p},7015:function(e,t,n){"use strict";n.d(t,{A:function(){return Rt}});var i=n(7500),r=n(5021),o=n(106),s=n(8842),a=n(6670),l=n(5940),u=n(662),c=n(6035),d=n(7819),h=n(6902),p=n(6515),f=n(724);function g(e,t,n=[],i={}){let r=i.funSettle,s=i.tag||"evem",a=(t,...n)=>e.emit(t,...n);(0,o.A)(i.funEmit)&&(a=i.funEmit);try{return a(t,...n)}catch(l){if((0,o.A)(r))try{r(l)}catch(u){}try{"error"!==t&&e.listenerCount("error")>0?a("error",{fun:"listener",name:t,msg:l,args:n}):console.error(`[wsemi ${s}] listener of '${String(t)}' threw:`,l)}catch(u){try{console.error(`[wsemi ${s}] listener of '${String(t)}' threw, and reporting it also threw:`,u,l)}catch(c){}}return!1}}var m=g,v=n(2942),y=n(1669);function C(e){let t=typeof e;return"string"===t?e:null===e||void 0===e?"":"number"===t||"boolean"===t||"bigint"===t||"symbol"===t?String(e):""}function w(e){try{let t=e();return"string"===typeof t?t:""}catch(t){return""}}function x(e,t){try{let n=new WeakSet,i=[],r=JSON.stringify(e,function(e,r){while(i.length>0&&i[i.length-1]!==this)i.pop();if(i.length>=t)return"[Deep]";if("bigint"===typeof r)return String(r);if(null!==r&&"object"===typeof r){if(n.has(r))return"[Circular]";n.add(r),i.push(r)}return r});return"string"===typeof r?r:""}catch(n){return""}}function b(e){if(e.length>=2&&'"'===e[0]&&'"'===e[e.length-1]){let t=w(()=>JSON.parse(e));if(""!==t)return t}return e}function _(e,t){if(void 0===e)return"";if(null===e)return"null";let n=C(e);if(""!==n)return n;let i=x(e,t);if(""!==i&&"{}"!==i)return b(i);let r=w(()=>String(e));return""!==r&&"[object Object]"!==r?r:i}function S(e,t){let n=new WeakSet;null===e||"object"!==typeof e&&"function"!==typeof e||n.add(e);let i=e,r=[];for(let s=0;s<t.levelCauseMax;s++){let e=null;try{e=i.cause}catch(o){break}if(null===e||void 0===e)break;if("object"===typeof e||"function"===typeof e){if(n.has(e))break;n.add(e)}let s=T(e,{...t,useCause:!1,useAggregate:!1});""!==s&&r.push(s),i=e}return r.join(" <- ")}function A(e,t){let n=null;try{n=e.errors}catch(r){return""}if(!Array.isArray(n)||0===n.length)return"";let i=[];for(let o=0;o<n.length&&o<t.levelCauseMax;o++){if(n[o]===e)continue;let r=T(n[o],{...t,useCause:!1,useAggregate:!1});""!==r&&i.push(r)}return i.join("; ")}function T(e,t){if("string"===typeof e)return e;if(null===e||void 0===e)return"";if("number"===typeof e)return Number.isNaN(e)?"":String(e);if("boolean"===typeof e||"bigint"===typeof e||"symbol"===typeof e)return String(e);let n=null,i=!1;try{n=e.message,i=!0}catch(u){i=!1}if(i&&"string"===typeof n){if(""!==n){let i=n;if(t.useCause){let n=S(e,t);""!==n&&(i=`${i} <- ${n}`)}if(t.useAggregate){let n=A(e,t);""!==n&&(i=`${i} [${n}]`)}return i}let i=S(e,t);return""!==i?i:""}if(i){let e=_(n,t.levelJsonMax);if(""!==e)return e}let r=S(e,t);if(""!==r)return r;if(t.useAggregate){let n=A(e,t);if(""!==n)return n}let o=x(e,t.levelJsonMax),s=b(o);if(""!==s&&"{}"!==s)return s;let a=w(()=>String(e));if(""!==a&&"[object Object]"!==a)return a;let l=w(()=>Object.prototype.toString.call(e));return""!==l&&"[object Object]"!==l?l:""!==o?o:""}function E(e,t={}){let n=(0,i.A)(t,"useCause",null);(0,s.A)(n)||(n=!1);let o=(0,i.A)(t,"useAggregate",null);(0,s.A)(o)||(o=!1);let a=(0,i.A)(t,"levelCauseMax",null);(0,l.A)(a,{useLimitSafe:!0})||(a=8),a=(0,y.A)(a);let u=(0,i.A)(t,"levelJsonMax",null);(0,l.A)(u,{useLimitSafe:!0})||(u=6),u=(0,y.A)(u);let c=(0,i.A)(t,"lengthMessageMax",null);(0,l.A)(c,{useLimitSafe:!0})||(c=0),c=(0,y.A)(c);let d={useCause:n,useAggregate:o,levelCauseMax:a,levelJsonMax:u,lengthMessageMax:c},h="";try{h=T(e,d)}catch(p){return h="",h}return(0,r.A)(h)?(d.lengthMessageMax>0&&h.length>d.lengthMessageMax&&(h=d.lengthMessageMax>3?h.slice(0,d.lengthMessageMax-3)+"...":h.slice(0,d.lengthMessageMax)),h):(h="",h)}var D=E,M=n(6702),I=n(1714),R=n(8135),L=n(125),P=n(6262),N=n(5178),F=n(754);function O(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let o=e=>n?{state:"error",msg:e}:"";if(!(0,r.A)(e))return o("invalid b64");let a="";try{let t=F.parse(e);a=t.toString(N)}catch(l){return o(l.toString())}return n?{state:"success",msg:a}:a}var k=O,B=n(8441),G=n(6036),V=n(6956);function H(e){return!!(0,V.A)(e)&&e.length>=1}var z=H;function U(e){let t=Object.prototype.toString.call(e);return"[object ArrayBuffer]"===t}var W=U,$=n(4958),j=n(8270);function X(e){let t=Object.prototype.toString.call(e);return"[object Uint8Array]"===t}var Y=X;function K(e){let t=Object.prototype.toString.call(e);return"[object Uint16Array]"===t}var q=K;function Z(e){if(!(W(e)||(0,j.A)(e)||Y(e)||q(e)))return null;try{if((0,$.A)(e.byteLength))return e.byteLength}catch(t){}try{if((0,$.A)(e.length))return e.length}catch(t){}try{if((0,$.A)(e.size))return e.size}catch(t){}return null}var Q=Z,J=n(8496),ee=n(3098),te=n(4963),ne="[object DOMException]",ie="[object Error]";function re(e){if(!(0,ee.A)(e))return!1;var t=(0,J.A)(e);return t==ie||t==ne||"string"==typeof e.message&&"string"==typeof e.name&&!(0,te.A)(e)}var oe=re,se=n(8170),ae=n(6656);function le(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let o=()=>({results:"",binarys:[]}),a=e=>n?{state:"error",msg:e}:o();if(!(0,I.A)(e)&&!(0,V.A)(e))return a("invalid data, data is not an object or array");if((0,se.A)(e)||(0,ae.A)(e))return a("invalid data, data is an empty object or empty array");let l="[BlazeForPreventEscape]",u=/^(?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,c="",d=[];try{let t=-1;c=JSON.stringify(e,function(e,n){if(Y(n)){t+=1;let e=`[BlazeForUint8Array]::${t}`;return d.push(n),e}if(q(n)){t+=1;let e=`[BlazeForUint16Array]::${t}`;return d.push(n),e}if(W(n)){t+=1;let e=`[BlazeForArrayBuffer]::${t}`;return d.push(n),e}return oe(n)&&(n=n.toString()),(0,r.A)(n)&&91===n.charCodeAt(0)&&u.test(n)?l+n:n})}catch(h){return a(h.toString())}return n?{state:"success",msg:{results:c,binarys:d}}:{results:c,binarys:d}}var ue=le;function ce(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let o=e=>n?{state:"error",msg:e}:"";if(!(0,r.A)(e))return o("invalid str");let a="";try{let t=N.parse(e);a=F.stringify(t)}catch(l){return o(l.toString())}return n?{state:"success",msg:a}:a}var de=ce,he=n(9860);let pe=/[\t\n\f\r ]/g,fe=/^[A-Za-z0-9+/]*={0,2}$/,ge=/=+$/;function me(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!(0,he.A)(e))return r("invalid b64");let o=e.replace(pe,"");if(!fe.test(o))return r("invalid b64, contains characters outside the base64 alphabet or misplaced padding");let a=o.length-o.replace(ge,"").length,l=o.length-a,u=l%4;if(0===a&&1===u)return r(`invalid b64, the last chunk has only 1 character[${o.length}]`);if(1===a&&3!==u)return r("invalid b64, malformed padding, 1 padding requires the last chunk to have 3 characters");if(2===a&&2!==u)return r("invalid b64, malformed padding, 2 paddings require the last chunk to have 2 characters");let c=null;try{let e=F.parse(o),t=e.words,n=e.sigBytes;c=new Uint8Array(n);for(let i=0;i<n;i++){let e=t[i>>>2]>>>24-i%4*8&255;c[i]=e}}catch(d){return r(d.toString())}return n?{state:"success",msg:c}:c}var ve=me;function ye(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let o=e=>n?{state:"error",msg:e}:new Uint8Array;if(!(0,r.A)(e))return o("invalid str");let a=null;try{let t=de(e,{returnWithStateAndMsg:!0});if("error"===t.state)return o(`str2b64: ${t.msg}`);let n=ve(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return o(`b642u8arr: ${n.msg}`);a=n.msg}catch(l){return o(l.toString())}return n?{state:"success",msg:a}:a}var Ce=ye,we=n(6989),xe=n(6224);function be(e,t,n,i,r,o){if(!(0,$.A)(e))return null;if(!Y(t))return null;if(!(0,we.A)(n))return null;if(!(0,s.A)(i))return null;if(!(0,we.A)(r))return null;if(!(0,we.A)(o))return null;let a,l,u;e=(0,xe.A)(e);let c=8*o-r-1,d=(1<<c)-1,h=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?o-1:0,g=i?-1:1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=d?(l=0,a=d):a+h>=1?(l=(e*u-1)*Math.pow(2,r),a+=h):(l=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&l,f+=g,l/=256,r-=8);for(a=a<<r|l,c+=r;c>0;t[n+f]=255&a,f+=g,a/=256,c-=8);return t[n+f-g]|=128*m,null}var _e=be;function Se(e,t,n=0,i=!0,r=52,o=8){return _e(e,t,n,i,r,o)}var Ae=Se;function Te(e){return W(e)?new Uint8Array(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0)}function Ee(e){let t=0;(0,G.A)(e,e=>{t+=Q(e)});let n=new Uint8Array(t),i=0;return(0,G.A)(e,e=>{let t=Te(e);n.set(t,i),i+=t.length}),n}function De(e,t={}){let n=[],r=new Uint8Array,o=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(o)||(o=!1);let a=e=>o?{state:"error",msg:e}:new Uint8Array;if(!z(e)&&!(0,R.A)(e))return a("invalid data, data is not an effective object or a non-empty array");let l=[],u=[];function c(e){l.push(Q(e)),u.push(e)}try{let t=ue(e,{returnWithStateAndMsg:!0});if("error"===t.state)return a(`obj2stru8arr: ${t.msg}`);let i=t.msg,o=Ce(i.results);c(o),(0,G.A)(i.binarys,e=>{c(e)});let s=l,d=Ce(JSON.stringify(s)),h=8,p=new Uint8Array(h);Ae(Q(d),p),n.push(p),n.push(d),(0,G.A)(u,e=>{n.push(e)}),r=Ee(n)}catch(d){return a(d.toString())}return o?{state:"success",msg:r}:r}var Me=De;function Ie(e,t,n,i,r){if(!Y(e))return null;if(!(0,we.A)(t))return null;if(!(0,s.A)(n))return null;if(!(0,we.A)(i))return null;if(!(0,we.A)(r))return null;let o,a,l=8*r-i-1,u=(1<<l)-1,c=u>>1,d=-7,h=n?0:r-1,p=n?1:-1,f=e[t+h];for(h+=p,o=f&(1<<-d)-1,f>>=-d,d+=l;d>0;o=256*o+e[t+h],h+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=i;d>0;a=256*a+e[t+h],h+=p,d-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)}var Re=Ie;function Le(e,t=0,n=!0,i=52,r=8){return Re(e,t,n,i,r)}var Pe=Le,Ne=n(6440);function Fe(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Y(e))return r("invalid u8a");let o="";try{let t=Ne.create(e);o=t.toString(F)}catch(a){return r(a.toString())}return n?{state:"success",msg:o}:o}var Oe=Fe;function ke(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Y(e))return r("invalid u8a");let o="";try{let t=Oe(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);o=k(t.msg)}catch(a){return r(a.toString())}return n?{state:"success",msg:o}:o}var Be=ke;function Ge(e,t={}){let n=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(n)||(n=!1);let o=e=>n?{state:"error",msg:e}:{};if(!(0,R.A)(e))return o("invalid data");let a=null,l=null;try{a=e.results,l=e.binarys}catch(f){return o(f.toString())}if(!(0,r.A)(a))return o("invalid results");if(!(0,V.A)(l))return o("invalid binarys");let u=/^\[BlazeFor(Uint8Array|Uint16Array|ArrayBuffer)\]::(\d+)$/,c=(e,t,n)=>{if("Uint16Array"===e&&!q(n)){if(!Y(n))throw new Error(`binarys[${t}] can not be restored to Uint16Array`);if(n.byteLength%2!==0)throw new Error(`binarys[${t}] byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let e=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);return new Uint16Array(e.buffer)}if("ArrayBuffer"===e&&!W(n)){if(!Y(n))throw new Error(`binarys[${t}] can not be restored to ArrayBuffer`);return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return n},d="[BlazeForPreventEscape]",h=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,p={};try{p=JSON.parse(a,function(e,t){if(!(0,r.A)(t)||91!==t.charCodeAt(0))return t;let n=u.exec(t);if(null===n)return h.test(t)?t.slice(d.length):t;let i=Number(n[2]);if(i>=l.length)throw new Error(`binary index out of range[${i}], binarys.length[${l.length}]`);return c(n[1],i,l[i])})}catch(f){return o(f.toString())}return n?{state:"success",msg:p}:p}var Ve=Ge;function He(e,t){let n=0,i=0,r=[];return(0,G.A)(t,t=>{i=n+t;let o=e.slice(n,i);n=i,r.push(o)}),r}function ze(e,t={}){let n={},r=(0,i.A)(t,"returnWithStateAndMsg",null);(0,s.A)(r)||(r=!1);let o=e=>r?{state:"error",msg:e}:{};if(!Y(e))return o("invalid u8a");try{let t=8,i=e.slice(0,t),r=e.slice(t,Q(e)),s=Pe(i),a=r.slice(0,s),l=r.slice(s,Q(r)),u=Be(a,{returnWithStateAndMsg:!0});if("error"===u.state)return o(`u8arr2str: ${u.msg}`);let c=u.msg,d=JSON.parse(c),h=He(l,d),p=h.shift(),f=Be(p,{returnWithStateAndMsg:!0});if("error"===f.state)return o(`u8arr2str: ${f.msg}`);let g=f.msg,m=h,v=Ve({results:g,binarys:m},{returnWithStateAndMsg:!0});if("error"===v.state)return o(`stru8arr2obj: ${v.msg}`);n=v.msg}catch(a){return o(a.toString())}return r?{state:"success",msg:n}:n}var Ue=ze,We=n(2561),$e=n(3360);const je=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function Xe(){return function(e){const{exports:{mem:t,xxh32:n,xxh64:i,init32:r,update32:o,digest32:s,init64:a,update64:l,digest64:u}}=e;let c=new Uint8Array(t.buffer);function d(e,n){if(t.buffer.byteLength<e+n){const i=Math.ceil((e+n-t.buffer.byteLength)/65536);t.grow(i),c=new Uint8Array(t.buffer)}}function h(e,t,n,i,r,o){d(e);const s=new Uint8Array(e);return c.set(s),n(0,t),s.set(c.subarray(0,e)),{update(t){let n;return c.set(s),"string"==typeof t?(d(3*t.length,e),n=m.encodeInto(t,c.subarray(e)).written):(d(t.byteLength,e),c.set(t,e),n=t.byteLength),i(0,e,n),s.set(c.subarray(0,e)),this},digest:()=>(c.set(s),o(r(0)))}}function p(e){return e>>>0}const f=2n**64n-1n;function g(e){return e&f}const m=new TextEncoder,v=0,y=0n;function C(e,t=v){return d(3*e.length,0),p(n(0,m.encodeInto(e,c).written,t))}function w(e,t=y){return d(3*e.length,0),g(i(0,m.encodeInto(e,c).written,t))}return{h32:C,h32ToString:(e,t=v)=>C(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=v)=>(d(e.byteLength,0),c.set(e),p(n(0,e.byteLength,t))),create32:(e=v)=>h(48,e,r,o,s,p),h64:w,h64ToString:(e,t=y)=>w(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=y)=>(d(e.byteLength,0),c.set(e),g(i(0,e.byteLength,t))),create64:(e=y)=>h(88,e,a,l,u,g)}}((await WebAssembly.instantiate(je)).instance)}function Ye(e){let t=Object.prototype.toString.call(e);return"[object File]"===t}var Ke=Ye;async function qe(e,t={}){if(!(0,j.A)(e)&&!Ke(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=(0,i.A)(t,"chunkSize");(0,$.A)(n)||(n=67108864),n=(0,xe.A)(n);let{create64:r}=await Xe(),o=r(),s=0;while(s<e.size){let t=e.slice(s,s+n),i=await t.arrayBuffer();o.update(new Uint8Array(i)),s+=n}let a=o.digest().toString(16).padStart(16,"0");return a}var Ze=qe;function Qe(e,t="unknown"){if(!(0,r.A)(e))return t;let n=e.replace(/\\/g,"/").split("/").filter(e=>""!==e&&"."!==e&&".."!==e).pop()||"";return n=n.replace(/[\x00-\x1f\x7f<>:"|?*]/g,"_"),n=n.replace(/[. ]+$/g,""),/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(\..*)?$/i.test(n)&&(n=`_${n}`),""===n?t:n}var Je=Qe;function et(e,t,n){let i=n.relative(n.resolve(e),n.resolve(t));return""!==i&&(".."!==i&&!i.startsWith(`..${n.sep}`)&&!n.isAbsolute(i))}var tt=et;let nt=18e4,it=10,rt=1e3,ot=Math.pow(nt/rt,1/(it-1));function st(e){return!Number.isFinite(e)||e<1?rt:Math.min(Math.round(rt*Math.pow(ot,e-1)),nt)}var at=st;function lt(e){try{if("undefined"!==typeof Blob&&e instanceof Blob)return e;if("undefined"!==typeof Buffer&&Buffer.isBuffer(e))return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if("string"===typeof e)return(new TextEncoder).encode(e)}catch(t){}return null}function ut(e){let t="unknown";try{let n=/filename="(.+?)"/.exec(e);t=n?n[1]:"unknown"}catch(n){}return Je(k(t))}function ct(e){try{let t=(0,i.A)(e,"data");t&&(0,o.A)(t.resume)&&t.resume()}catch(t){}}async function dt(e,t,i){let r="path",o="fs",s="stream",a=await n(9315)(r),l=await n(5725)(o),u=await n(8931)(s);l.mkdirSync(t,{recursive:!0});let c=l.realpathSync(t),d=a.resolve(c,i);if(!tt(c,d,a))throw new Error("invalid filename from server");let h=null;try{h=l.lstatSync(d)}catch(f){}if(null!==h&&h.isSymbolicLink())throw new Error("invalid filename from server");let p=l.createWriteStream(d);return new Promise((t,n)=>{u.pipeline(e,p,e=>{if(e){try{l.unlinkSync(d)}catch(Xe){}n(e)}else t(d)})})}function ht(e){if(!(e instanceof Error))return e;let t=(0,i.A)(e,"response.statusText"),n=(0,r.A)(t)?t:D(e);return(0,r.A)(n)||(n="Can not connect to server."),"Network Error"===n&&(n="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),n}function pt(e){let t=(0,i.A)(e,"url");(0,r.A)(t)||(t="http://localhost:8080");let n=(0,i.A)(e,"apiName");(0,r.A)(n)||(n="api");let c="";c="/"===(0,P.A)(t,1)?t+n:t+"/"+n;let g=(0,i.A)(e,"getToken",null);(0,o.A)(g)||(g=()=>"");let C=(0,i.A)(e,"tokenType");(0,r.A)(C)||(C="Bearer");let w=2147483647,x=20,b={useLimitSafe:!0},_=(0,i.A)(e,"sizeSlice");(0,l.A)(_,b)||(_=1048576),_=(0,y.A)(_);let S=(0,i.A)(e,"timeout");(!(0,a.A)(S,b)||(0,y.A)(S)>w)&&(S=3e5),S=(0,y.A)(S);let A=(0,i.A)(e,"retryMain");(0,a.A)(A,b)||(A=3),A=Math.min((0,y.A)(A),x);let T=(0,i.A)(e,"retryUpload");(0,a.A)(T,b)||(T=10),T=Math.min((0,y.A)(T),x);let E=(0,i.A)(e,"retryDownload");(0,a.A)(E,b)||(E=2),E=Math.min((0,y.A)(E),x);let N=(0,p.A)()?"browser":"nodejs",F=(0,f.A)(),O=(e,...t)=>m(F,e,t,{tag:"w-converhp-client"}),k=Symbol("noRetry"),G=e=>(0,I.A)(e)&&!0===e[k]||413===(0,i.A)(e,"response.status"),V=e=>(0,I.A)(e)&&!0===e[k]?e.msg:e,H=async()=>{let e=g();return(0,u.A)(e)&&(e=await e),void 0!==e&&null!==e||(e=""),e},z=(e,t)=>!1===t?{[k]:!0,msg:e}:e,U=e=>{O("error",ht(V(e)))},W=e=>{let t="";if("basic"===e)t=`${c}/main`;else if("upload-controller"===e)t=`${c}/ulctr`;else if("slice"===e)t=`${c}/slc`;else if("download-get-filename"===e)t=`${c}/dwgfn`;else if("download-get"===e)t=`${c}/dwgf`;else{if("download"!==e)throw new Error(`invalid type[${e}]`);t=`${c}/dw`}return t},$=async e=>{let t;return t="browser"===N?await(0,B.A)(e):new Uint8Array(e),t},j=e=>{let t;return t="browser"===N?new Blob([e.buffer]):Buffer.from(e),t},X=async(e,t,n={})=>{let r=(0,i.A)(n,"headers");(0,I.A)(r)||(r={});let s=(0,i.A)(n,"dataType","");"blob"!==s&&"json"!==s&&(s="blob");let u=(0,i.A)(n,"cbProgress");(0,o.A)(u)||(u=()=>{});let c=!1,h=e=>{try{u(e)}catch(t){c||(c=!0,O("error",`cbProgress error: ${D(t)}`))}},p=(0,i.A)(n,"retry");(0,a.A)(p)||(p=1);let f=W(e),g=(0,v.A)(),m=null,y={};if("blob"===s)y={"Content-Type":"application/octet-stream"},m=t;else if("json"===s){y={"Content-Type":"application/json"};try{m=JSON.stringify(t)}catch(T){let e=`input can not be serialized: ${D(T)}`;return O("error",e),Promise.reject(e)}}let w=null;w="nodejs"===N?"download"===e?"stream":"arraybuffer":"blob";let x=async e=>{let t=(0,i.A)(e,"headers['return-type']",""),r=(0,i.A)(e,"headers['return-msg']","");if("error"===t){ct(e);let t=(0,i.A)(e,"headers['return-retryable']","");return Promise.reject(z(r,"false"!==t))}let o=ut((0,i.A)(e,"headers['content-disposition']","")),s=(0,i.A)(e,"data");if("browser"===N)return{filename:o,bb:s};try{return await dt(s,(0,i.A)(n,"fdDownload",""),o)}catch(T){throw ct(e),T}},b={method:"POST",url:f,data:m,headers:{},timeout:S,maxContentLength:1/0,maxBodyLength:1/0,responseType:w,onUploadProgress:function(e){let t=0,n=e.loaded,i=e.total;(0,l.A)(i)&&(t=100*n/i),h({prog:Math.floor(t),p:n,m:"upload"})},onDownloadProgress:function(e){let t=0,n=e.loaded,i=e.total;(0,l.A)(i)&&(t=100*n/i),h({prog:Math.floor(t),p:n,m:"download"})}},_=async()=>{let t=await H();b.headers={Authorization:`${C} ${t}`,...y,...r};let n=await(0,d.A)(b);if("download"===e)return await x(n);let o=(0,i.A)(n,"data"),s=await $(o),a=Ue(s,{returnWithStateAndMsg:!0});if("success"!==(0,i.A)(a,"state"))return Promise.reject(`invalid packet from server: ${(0,i.A)(a,"msg","unknown error")}`);let l=a.msg;return(0,R.A)(l)?(0,M.A)(l,"success")?Promise.resolve(l.success):(0,M.A)(l,"error")?Promise.reject(z(l.error,l.retryable)):Promise.reject("data does not contain success or error"):Promise.reject("data is not an effective object")},A=async()=>{let e=(0,We.A)(_),t=await e(b),n=0;while("error"===t.state){if(U(t.msg),G(t.msg))break;if(n+=1,n>p)break;let i=at(n);console.log(`wait ${(0,L.A)(i/1e3,1)}(second) to retry...`),await(0,$e.A)(i),console.log(`retry n=${n}...`),t=await e(b)}return"success"===t.state?t.msg:Promise.reject(V(t.msg))};return await A().then(e=>{g.resolve(e)}).catch(e=>{g.reject(ht(e))}),g},Y=async(e,t,n)=>{let r=null;try{let e=Me(t,{returnWithStateAndMsg:!0});if("success"!==(0,i.A)(e,"state")){let t=`input can not be serialized: ${(0,i.A)(e,"msg","unknown error")}`;return O("error",t),Promise.reject(t)}let n=e.msg;r=j(n)}catch(s){return Promise.reject(s)}let o=await X(e,r,{dataType:"blob",retry:A,cbProgress:n});return o},K=async e=>{let t=new Blob([e]),n=await Ze(t);return n},q=async(e,t,n)=>{(0,o.A)(n)||(n=()=>{});let i=!1,r=n;n=e=>{try{r(e)}catch(t){i||(i=!0,O("error",`cbProgress error: ${D(t)}`))}};let s=(0,y.A)(void 0!==t.byteLength?t.byteLength:t.size),a=s,u=Math.max(1,Math.ceil(a/_)),c=0,d=.99,p=()=>{c++;let e=c/u,t=e*d*100,i=e*a;n({prog:t,p:i,m:"upload"})},f=e=>{let t=e.prog,i=e.m;"download"===i&&100===t&&n({prog:100,p:a,m:"upload"})},g=await K(t),m=await X("upload-controller",{mode:"check-total-hash",fileHash:g,filename:e,fileSize:a},{dataType:"json",retry:T});if(m.bAllHash){f({prog:100,m:"download"});let e=m.msg;return e}if((0,l.A)(m.sizeSlice)&&m.sizeSlice!==_){let e=`sizeSlice mismatch: client[${_}] and server[${m.sizeSlice}] must be equal`;return O("error",e),Promise.reject(e)}if(m.bSls){let e=[];for(let i=0;i<(0,h.A)(m.slks);i++){let n=m.slks[i],r=n*_,o=Math.min(r+_,a),s=t.slice(r,o),l=await K(s);e.push({i:n,h:l})}let n=await X("upload-controller",{mode:"check-slices-hash",fileHash:g,fileSliceHashs:e},{dataType:"json",retry:T});m.slks=n.slks}let C=g;for(let o=0;o<u;o++){if(m.slks.indexOf(o)>=0){p();continue}let e=o*_,n=Math.min(e+_,a),i=t.slice(e,n),r={"chunk-index":o,"chunk-total":u,"package-id":C};await X("slice",i,{headers:r,dataType:"blob",cbProgress:e=>{},retry:T}),p()}let w=await X("upload-controller",{mode:"merge-slices-push",fileHash:g,chunkTotal:u},{dataType:"json",retry:T}),x=()=>{let t=(0,v.A)(),n=w.queueId,i=!1,r=setInterval(()=>{i||(i=!0,X("upload-controller",{mode:"merge-slices-get",fileHash:g,filename:e,queueId:n},{dataType:"json",retry:T}).then(e=>{"success"===e.state?(clearInterval(r),t.resolve(e.msg),f({prog:100,m:"download"})):"error"===e.state&&(clearInterval(r),U(e.msg),t.reject(e.msg))}).catch(()=>{}).finally(()=>{i=!1}))},2e3);return t},b=await x();return b},Z=async(e,t,n)=>{let i={func:e,input:t},o="",s=null;return await Y("basic",i,n).then(e=>(0,r.A)(e)?(o="error",void(s=e)):(0,R.A)(e)?(0,M.A)(e,"output")?(o="success",void(s=e.output)):(console.log("invalid msg.output",e),o="error",void(s="invalid msg.output")):(console.log("msg is not an effective object",e),o="error",void(s="msg is not an effective object"))).catch(e=>{o="error",s=e}),""===o?(O("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(s):s},Q=async(e,t,n)=>{let i=lt(t);if(null===i){let e="invalid input for upload: must be a Blob, File, ArrayBuffer, ArrayBufferView or string";return O("error",e),Promise.reject(e)}return q(e,i,n)},J=async(e,t,n={})=>{let o=(0,i.A)(n,"fdDownload","");if(!(0,r.A)(o)){let e="invalid fdDownload for download in nodejs";return O("error",e),Promise.reject(e)}let s={fileId:e},a=await X("download",s,{...n,dataType:"json",retry:E,cbProgress:t});return a},ee=async(e,t,n={})=>{let r=(0,i.A)(n,"downloadByManager");if((0,s.A)(r)||(r=!0),r){let t={fileId:e},n=await X("download-get-filename",t,{dataType:"json",retry:E}),r=(0,i.A)(n,"filename",""),s="";try{s=await H()}catch(o){let e=`getToken error: ${D(o)}`;return O("error",e),Promise.reject(e)}let a=W("download-get"),l=`${a}?fileId=${encodeURIComponent(e)}&token=${encodeURIComponent(s)}`,u=document.createElement("a");return u.href=l,u.download=r,u.click(),r}{let i={fileId:e},r=await X("download",i,{...n,dataType:"json",retry:E,cbProgress:t});return r}},te=async(e,t,n={})=>"browser"===N?ee(e,t,n):J(e,t,n);return F.execute=Z,F.upload=Q,F.download=te,F}var ft=pt,gt=n(8395),mt=n(6666),vt=n(7688),yt=n(8593);function Ct(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:(0,yt.A)(t),t=i-t,(0,vt.A)(e,0,t<0?0:t)):[]}var wt=Ct,xt=n(903);function bt(e,t={}){let n={},r=!1;if((0,R.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,M.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let o=(0,i.A)(t,"autoPollingTableTagsForActive");(0,s.A)(o)||(o=!1);let a=(0,i.A)(t,"pollingDelayTime");(0,l.A)(a)||(a=2e3),a=(0,y.A)(a);let u=(t,...n)=>{setTimeout(()=>{e.emit(t,...n)},1)};function c(e={}){n=e}async function d(e={}){let t=[];u("beforeUpdateTableTags",{oldTableTags:(0,xt.A)(n),newTableTags:(0,xt.A)(e)});let i=!1;(0,G.A)(e,(e,t)=>{let r=n[t];r!==e&&(i=!0)}),u("refreshState",{needToRefresh:i,oldTableTags:(0,xt.A)(n),newTableTags:(0,xt.A)(e)}),(0,G.A)(e,(e,i)=>{let r=n[i];if(r!==e){let r=(0,v.A)(),o={tableName:i,timeTag:e,pm:r};t.push(r),u("refreshTable",o),r.then(t=>{n[i]=e,u("getData",{tableName:i,timeTag:e,data:t})}).catch(e=>{u("error",{msg:"can not get table data: "+i,err:e})})}}),await Promise.all(t),u("afterUpdateTableTags",{oldTableTags:(0,xt.A)(n),newTableTags:(0,xt.A)(e)})}async function h(){if(r)return;r=!0;let e=(0,v.A)();u("refreshTags",{pm:e});let t=await e.catch(e=>{u("error",{msg:"can not get tags data",err:e})});t&&await d(t),await(0,$e.A)(a),r=!1}return o&&(0,p.A)()&&(window.addEventListener("mouseover",e=>{h()},!1),window.addEventListener("touchmove",e=>{h()},!1)),e.setTableTags=c,e.updateTableTags=d,e.pollingTableTags=h,e}var _t=bt,St=n(7120),At=n(1969);function Tt(e,t={}){if((0,R.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,M.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let n=(0,i.A)(t,"timePolling");(0,a.A)(n)||(n=2e3),n=(0,y.A)(n);let o=(0,i.A)(e,"clientId");(0,r.A)(o)||(o=(0,St.A)());let s=(t,...n)=>{setTimeout(()=>{e.emit(t,...n)},1)},l=!1,u=!1,c=!1,d=setInterval(()=>{c||(c=!0,e.execute("[sys:polling]",{clientId:o},function({prog:e,p:t,m:n}){}).then(function(e){!1===l&&(l=!0,s("openOnce")),!1===u&&s("open"),u=!0,(0,At.A)(e)&&(0,G.A)(e,e=>{let t=(0,i.A)(e,"data",null);s("broadcast",t)})}).catch(function(e){u=!1,s("error",e)}).finally(()=>{c=!1}))},n),h=()=>{clearInterval(d)};return e.clearBroadcast=h,e}var Et=Tt;function Dt(e,t={}){let n={};if((0,R.A)(e)||(console.log("instWConverClient is not an effective object, and set instWConverClient to an EventEmitter"),e=(0,f.A)()),!(0,M.A)(e,"emit"))throw new Error("instWConverClient is not an EventEmitter");let s=(0,i.A)(t,"getToken",null);(0,o.A)(s)||(s=()=>"");let a=(0,i.A)(t,"getServerMethods",null);if(!(0,o.A)(a))return e.emit("error","invalid opt.getServerMethods"),e;let l=(0,i.A)(t,"recvData",null);if(!(0,o.A)(l))return e.emit("error","invalid opt.recvData"),e;let c=(0,i.A)(t,"getRefreshState",null),d=(0,i.A)(t,"getRefreshTable",null),h=(0,i.A)(t,"getBeforeUpdateTableTags",null),p=(0,i.A)(t,"getAfterUpdateTableTags",null);function g(t){async function n(){let n=(0,v.A)(),i=[...arguments],a=()=>{},l=(0,mt.A)(i);(0,o.A)(l)&&(a=l,i=wt(i));let c=s();(0,u.A)(c)&&(c=await c),(0,r.A)(c)||(c="");let d={__sysInputArgs__:i,__sysToken__:c};return await e.execute(t,d,a).then(e=>{let t=e.msg;"success"===e.state?n.resolve(t):n.reject(t)}).catch(e=>{n.reject(e)}),n}return n}function m(e){n={},(0,G.A)(e,e=>{(0,gt.A)(n,e,g(e))}),a(n)}function y(t){"syncKpTable"===(0,i.A)(t,"mode")&&e.updateTableTags((0,i.A)(t,"data"))}return e=new _t(e),e=new Et(e),e.on("openOnce",function(){let t=async()=>{let e=await g("[sys:getFuncList]")();m(e);let t=await g("[sys:getTableTags]")();y(t)};t().catch(t=>{e.emit("error",t)})}),e.on("broadcast",function(e){y(e)}),e.on("refreshState",e=>{(0,o.A)(c)&&c(e)}),e.on("refreshTable",t=>{if(!(0,R.A)(n[t.tableName]))return void e.emit("error",`invalid kpExec[${t.tableName}]`);(0,o.A)(d)&&d(t);let r=(0,i.A)(n,t.tableName);if(!(0,R.A)(r))return void console.log(`kpExec[${t.tableName}] is not an effective object`);let s=(0,i.A)(r,"select");(0,o.A)(s)?s().then(e=>{t.pm.resolve(e)}).catch(e=>{console.log(`${t.tableName}.select: catch`,e),t.pm.resolve([])}):console.log(`kpExec[${t.tableName}].select is not a function`)}),e.on("getData",e=>{l(e)}),e.on("beforeUpdateTableTags",e=>{(0,o.A)(h)&&h(e)}),e.on("afterUpdateTableTags",e=>{(0,o.A)(p)&&p(e)}),e}var Mt=Dt;function It(e={}){let t=null;async function n(){let n=(0,i.A)(e,"url");(0,r.A)(n)||(n="http://localhost:8080");let d=(0,i.A)(e,"apiName");(0,r.A)(d)||(d="api");let h=(0,i.A)(e,"useWaitToken",null);(0,s.A)(h)||(h=!1);let p=(0,i.A)(e,"getToken");if(!(0,o.A)(p)){if(h)throw new Error("invalid opt.getToken when opt.useWaitToken=true");p=()=>""}let f=(0,i.A)(e,"tokenType");(0,r.A)(f)||(f="Bearer");let g=(0,i.A)(e,"sizeSlice");(0,l.A)(g)||(g=1048576);let m=(0,i.A)(e,"timeout");(0,a.A)(m)||(m=3e5);let v=(0,i.A)(e,"retryMain");(0,a.A)(v)||(v=3);let y=(0,i.A)(e,"retryUpload");(0,a.A)(y)||(y=10);let C=(0,i.A)(e,"retryDownload");(0,a.A)(C)||(C=2);let w=(0,i.A)(e,"getServerMethods");(0,o.A)(w)||(w=()=>{});let x=(0,i.A)(e,"recvData");(0,o.A)(x)||(x=()=>{});let b=(0,i.A)(e,"getRefreshState"),_=(0,i.A)(e,"getRefreshTable"),S=(0,i.A)(e,"getBeforeUpdateTableTags"),A=(0,i.A)(e,"getAfterUpdateTableTags"),T=(0,i.A)(e,"useShowLog");(0,s.A)(T)||(T=!0),h&&(T&&console.log("waiting token..."),await(0,c.A)(async()=>{let e=p();return(0,u.A)(e)&&(e=await e),(0,r.A)(e)},{timeInterval:100}),T&&console.log("get token")),t=new ft({url:n,apiName:d,getToken:p,tokenType:f,sizeSlice:g,timeout:m,retryMain:v,retryUpload:y,retryDownload:C}),t=new Mt(t,{getToken:p,getServerMethods:w,recvData:x,getRefreshState:b,getRefreshTable:_,getBeforeUpdateTableTags:S,getAfterUpdateTableTags:A})}return n().catch(e=>{try{t.emit("error",e)}catch(e){throw new Error(e)}}),t}var Rt=It},7534:function(e,t,n){"use strict";var i=n(7819),r=n(7500),o=n(5788),s=n(5021),a=n(5940),l=n(8135),u=n(6670),c=n(106),d=n(662),h=n(1669),p=n(3360),f=n(2561);function g(e,t={}){if(!(0,s.A)(e))throw new Error("invalid site");let n=(0,r.A)(t,"params",{}),g=(0,r.A)(t,"keyGlobal","");(0,s.A)(g)||(g="___params___");let m=(0,r.A)(t,"timeWaitAnimation");(0,a.A)(m)||(m=0);let v=(0,r.A)(t,"defToken","");(0,s.A)(v)||(v="sys");let y=(0,r.A)(t,"apiName","");(0,s.A)(y)||(y="api");let C=(0,r.A)(t,"apiNameForVerify","");(0,s.A)(C)||(C="getUserByToken");let w=(0,r.A)(t,"urlForVerify","");(0,s.A)(w)||(w="");let x=(0,r.A)(t,"retry");(0,u.A)(x)||(x=3);let b=window.location.origin,_=window.location.origin+window.location.pathname,S=b,A=_;if((0,s.A)(window.location.port)){let e=`:${window.location.port}`;S=S.replace(e,""),A=A.replace(e,"")}window[g]={...n,site:e,origin:b,originNoPort:S,base:_,baseNoPort:A};let T=()=>{let e=new URLSearchParams(window.location.search),t={};return e.forEach((e,n)=>{t[n]=e}),t},E=()=>{let e=T(),t=(0,r.A)(e,"token","");return t},D=()=>{let t="";return(0,s.A)(t)||(t=E()),(0,s.A)(t)||(t=localStorage.getItem(`${e}:userToken`)),t},M=e=>{let t=(0,r.A)(window,`${g}.${e}`,"");return t},I=e=>{let t=D(),n=(0,r.A)(window,`${g}.origin`,""),i=(0,r.A)(window,`${g}.originNoPort`,""),o=(0,r.A)(window,`${g}.base`,""),s=(0,r.A)(window,`${g}.baseNoPort`,""),a=M(e);return a=a.replace("{token}",t),a=a.replace("{origin}",n),a=a.replace("{originNoPort}",i),a=a.replace("{base}",o),a=a.replace("{baseNoPort}",s),a},R=async e=>{let t,n=null;return await(0,i.A)({method:"GET",url:e}).then(e=>{t=e.data}).catch(e=>{n=e.toString()}),null!==n?Promise.reject(n):t},L=async e=>{let t=M("base"),n=`${t}${y}/${e}`,i=R(n);return i},P=async(e={})=>{let t,n,i=(0,r.A)(e,"afterGetUser"),a=(0,r.A)(e,"afterLogin"),u=(0,r.A)(e,"loginError"),h=(0,r.A)(e,"loginSuccess"),f=M("site");async function g(){let e=null;if(await(0,p.A)(m),!(0,s.A)(f))throw console.log("site",f),new Error("invalid site");let t="";if((0,s.A)(t)||(t=E()),(0,s.A)(t)||(t=localStorage.getItem(`${f}:userToken`)),(0,o.A)()){if((0,s.A)(t)||(t=v),"error"===t)return e={text:"登入時無效令牌",msg:"invalid token"},Promise.reject(e)}else if(!(0,s.A)(t))return e={text:"登入時無效令牌",msg:"invalid token"},Promise.reject(e);let n=null;n=(0,s.A)(w)?R(`${w}?token=${t}`):L(`${C}?token=${t}`);let a=await n.catch(t=>{e={text:"登入時無法連線",msg:t}});if(null!==e)return Promise.reject(e);if("error"===(0,r.A)(a,"state"))return e={text:"登入時驗證失敗",msg:(0,r.A)(a,"msg")},Promise.reject(e);let u=(0,r.A)(a,"msg");if(!(0,l.A)(u))return console.log("data",a),e={text:"登入時無法取得使用者資訊",msg:"invalid user"},Promise.reject(e);if((0,c.A)(i)){let e=i(u);(0,d.A)(e)&&(e=await e)}return{token:t,user:u}}await g().then(e=>{t=!0,n=e,localStorage.setItem(`${f}:userToken`,e.token)}).catch(e=>{t=!1,n=e,localStorage.setItem(`${f}:userToken`,"")});let y={state:t,data:n};if((0,c.A)(a)){let e=a(y);(0,d.A)(e)&&(e=await e)}if(t){if((0,c.A)(h)){let e=h(n);(0,d.A)(e)&&(e=await e)}}else if((0,c.A)(u)){let e=u(n);(0,d.A)(e)&&(e=await e)}return y},N=async(e={})=>{let t=(0,r.A)(e,"timePeriod");(0,a.A)(t)||(t=2e3),t=(0,h.A)(t);let n=(0,r.A)(e,"procCheckToken"),o=(0,r.A)(e,"procLogout"),l=M("site"),u=I("checkToken"),p=async()=>{let e=null,t=await(0,i.A)({method:"GET",url:u}).catch(t=>{e={text:"驗證令牌時遭遇錯誤",msg:t}});return null!==e?Promise.reject(e):t},g=async()=>{let e=(0,f.A)(p),t=await e(),n=0;while("error"===t.state){if(n+=1,n>x)break;console.log(`retry n=${n}`),t=await e()}return"success"===t.state?t.msg:Promise.reject(t.msg)},m=!1;async function v(){let e=null;if(m)return;m=!0;let t=localStorage.getItem(`${l}:userToken`);if(!(0,s.A)(t))return e={text:"令牌已清除",msg:"invalid token"},Promise.reject(e);let i=await g().catch(t=>{e=t});if(null!==e)return Promise.reject(e);if((0,c.A)(n)){let t=n(i);(0,d.A)(t)&&(t=await t),t||(e={text:"驗證令牌失敗",msg:i})}if(null!==e)return Promise.reject(e);m=!1}let y=setInterval(()=>{v().catch(e=>{clearInterval(y),(0,c.A)(o)&&o(e)})},t);return null},F=async(e={})=>{let t,n,o=(0,r.A)(e,"procLogout"),a=(0,r.A)(e,"afterLogout"),l=(0,r.A)(e,"logoutError"),u=(0,r.A)(e,"logoutSuccess"),h=M("site");async function p(){let e=null,t=D();if(!(0,s.A)(t))return e={text:"無法取得登出用token",msg:"invalid token"},Promise.reject(e);let n=I("logOut");if(!(0,s.A)(n))return e={text:"無法取得登出用設定資訊",msg:"invalid urlLogOut"},Promise.reject(e);let r=await(0,i.A)({method:"GET",url:n}).catch(t=>{e={text:"登出時遭遇錯誤",msg:t}});if(null!==e)return Promise.reject(e);if((0,c.A)(o)){let t=o(r);(0,d.A)(t)&&(t=await t),t||(e={text:"登出失敗",msg:r})}return null!==e?Promise.reject(e):{token:t}}await p().then(e=>{t=!0,n=e}).catch(e=>{t=!1,n=e});let f={state:t,data:n};if(localStorage.setItem(`${h}:userToken`,""),(0,c.A)(a)){let e=a(f);(0,d.A)(e)&&(e=await e)}if(t){if((0,c.A)(u)){let e=u(n);(0,d.A)(e)&&(e=await e)}}else if((0,c.A)(l)){let e=l(n);(0,d.A)(e)&&(e=await e)}return f},O={parseUrl:T,getTokenFromUrl:E,getToken:D,getValue:M,getUrl:I,getApi:L,login:P,detect:N,logout:F};return O}t.A=g},2291:function(e,t){"use strict";let n=2147483647,i={TIMER_TIME_MAX:n};t.A=i},5040:function(e,t,n){"use strict";var i=n(6996),r=n(6956),o=n(3173);function s(e,t){function n(e){return(0,r.A)(e)?e:[e]}if((0,o.A)(e))return!1;if(e=n(e),0===e.length)return!1;if((0,o.A)(e))return!1;if(t=n(t),0===t.length)return!1;for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)if((0,i.A)(e[r],t[n]))return!0;return!1}t.A=s},9045:function(e,t,n){"use strict";var i=n(2608),r=n(903),o=n(1969),s=n(9860),a=n(8842),l=n(4958),u=n(1714);function c(e,t){if(!(0,o.A)(e))return[];if(((0,u.A)(t)||(0,l.A)(t)||(0,s.A)(t)||(0,a.A)(t))&&(t=[t]),!(0,o.A)(t))return e;let n=(0,r.A)(e);return(0,i.A)(n,t),n}t.A=c},2363:function(e,t,n){"use strict";var i=n(6036),r=n(9860),o=n(5021),s=n(1969);function a(e,t,n="anyone"){if(!(0,o.A)(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if((0,r.A)(t)){if(!(0,o.A)(t))return!1;t=[t]}if(!(0,s.A)(t))return!1;let a=!1;if((0,i.A)(t,function(e){(0,o.A)(e)||(a=!0)}),a)return!1;function l(e,t){return e.indexOf(t)}let u=0;return(0,i.A)(t,function(t){-1!==l(e,t)&&u++}),"anyone"===n?u>0:"all"===n&&u===t.length}t.A=a},8441:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(2942),r=n(8270),o=n(6515);function s(e){let t=(0,i.A)();try{let n=new FileReader;n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e)}catch(n){t.reject(n)}return t}function a(e){return e.arrayBuffer()}function l(e){if(!(0,r.A)(e))return Promise.reject("invalid bb");if(!(0,o.A)())return Promise.reject("no window");try{return a(e)}catch(t){return s(e)}}var u=l;function c(e){let t=(0,i.A)();return u(e).then(e=>{let n=new Uint8Array(e);t.resolve(n)}).catch(e=>{t.reject(e)}),t}var d=c},6224:function(e,t,n){"use strict";var i=n(8776),r=n(4958);function o(e){if(!(0,r.A)(e))return 0;let t=(0,i.A)(e);return t}t.A=o},1669:function(e,t,n){"use strict";var i=n(7500),r=n(1898),o=n(8842),s=n(4958),a=n(6224);function l(e,t={}){let n=(0,i.A)(t,"useClampSafe",null);(0,o.A)(n)||(n=!1);let l=(0,i.A)(t,"useLimitSafe",null);(0,o.A)(l)||(l=!1);let u=(0,i.A)(t,"returnWithStateAndMsg",null);(0,o.A)(u)||(u=!1);let c=e=>u?{state:"success",msg:e}:e,d=e=>{if(u)return{state:"error",msg:e};throw new Error(e)};if(!(0,s.A)(e))return c(0);let h=null;try{e=(0,a.A)(e),h=(0,r.A)(e),n&&(h>Number.MAX_SAFE_INTEGER?h=Number.MAX_SAFE_INTEGER:h<Number.MIN_SAFE_INTEGER&&(h=Number.MIN_SAFE_INTEGER))}catch(p){return d(p.toString())}return l&&!Number.isSafeInteger(Number(h))?d(`v[${e}] is not a safe integer`):("0"===String(h)&&(h=0),c(h))}t.A=l},6077:function(e,t,n){"use strict";n.d(t,{A:function(){return lt}});var i=n(8621),r=n(7500),o=n(4722),s=n(6036),a=n(6902),l=n(7422),u=n(1898),c=n(1244),d=n(8182);function h(e){return(0,d.A)(e).toLowerCase()}var p=h;function f(e){return(0,d.A)(e).toUpperCase()}var g=f,m=n(5021),v=n(8135),y=n(4958),C=n(6956),w=n(6989),x=n(483),b=n(6024),_=n(7417),S=n(545),A=n(6224),T=n(7517),E=n(1669),D=n(6702),M=n(6670),I=n(5940);function R(e,t,n=1){return(0,m.A)(e)&&(0,M.A)(t)?(n=(0,I.A)(n)?(0,E.A)(n):1,e.substring(t,t+n)):""}var L=R;let P={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function N(e){if("#"!==(0,x.A)(e,1))return!1;let t=/[0-9A-Fa-f]{2}/g,n=t.test(e);if(n)return!0;let i=/[0-9A-Fa-f]{3}/g,r=i.test(e);if(r)return!0;let o=/[0-9A-Fa-f]{6}/g,s=o.test(e);if(s)return!0;let a=/[0-9A-Fa-f]{8}/g,l=a.test(e);return!!l}function F(e){return(0,D.A)(P,e)}function O(e){return"rgb"===(0,x.A)(e,3)||"rgba"===(0,x.A)(e,4)}function k(e){return"hsl"===(0,x.A)(e,3)||"hsla"===(0,x.A)(e,4)}function B(e){return"hsv"===(0,x.A)(e,3)||"hsva"===(0,x.A)(e,4)}function G(e){let t=P[e];return`#${t}`}function V(e){return U(e,1)}function H(e){return U(e,255)}function z(e){return U(e,360)}function U(e,t=1){if(e.indexOf("%")>=0){if(e=(0,_.A)(e,"%",""),!(0,y.A)(e))throw new Error("invalid color: value is not a number");e=(0,A.A)(e)/100}else{if(!(0,y.A)(e))throw new Error("invalid color: value is not a number");e=(0,A.A)(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function W(e){if(!(0,y.A)(e))throw new Error("invalid color: value is not a number");if(e=(0,A.A)(e),e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function $(e,t="rgba"){if(!(0,C.A)(e))throw new Error("invalid colors array");let n=(0,r.A)(e,0,0),i=(0,r.A)(e,1,0),o=(0,r.A)(e,2,0),s=(0,r.A)(e,3,1);if(t=t.split(""),4!==(0,a.A)(t))throw new Error("tar.length !== 4");let l=(0,r.A)(t,0),u=(0,r.A)(t,1),c=(0,r.A)(t,2),d=(0,r.A)(t,3);return{[l]:n,[u]:i,[c]:o,[d]:s}}function j(e){e=(0,b.A)(e,1);let t=e.length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=L(e,0,1),n=L(e,1,1),i=L(e,2,1);e=`${t}${t}${n}${n}${i}${i}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(e=parseInt(e,16),!(0,y.A)(e))throw new Error("invalid hex of color");return e=(0,A.A)(e),e/255}let i=n(L(e,0,2)),r=n(L(e,2,2)),o=n(L(e,4,2)),s=n(L(e,6,2));return{r:i,g:r,b:o,a:s}}function X(e){e=(0,_.A)(e,"rgba",""),e=(0,_.A)(e,"rgb",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return Y(t)}function Y(e){return e=(0,o.A)(e,(e,t)=>t<=2?H(e):3===t?W(e):null),e=$(e,"rgba"),e}function K(e){e=(0,_.A)(e,"hsla",""),e=(0,_.A)(e,"hsl",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return q(t)}function q(e){return e=(0,o.A)(e,(e,t)=>0===t?z(e):1===t||2===t?V(e):3===t?W(e):null),e=$(e,"hsla"),e=pe(e),e}function Z(e){e=(0,_.A)(e,"hsva",""),e=(0,_.A)(e,"hsv",""),e=e.replace(/[()]/g,""),e=(0,_.A)(e,","," ");let t=(0,S.A)(e," ");return Q(t)}function Q(e){return e=(0,o.A)(e,(e,t)=>0===t?z(e):1===t||2===t?V(e):3===t?W(e):null),e=$(e,"hsva"),e=fe(e),e}function J(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(F(e))return e=G(e),j(e);if(N(e))return j(e);if(O(e))return X(e);if(k(e))return K(e);if(B(e))return Z(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function ee(e,t){t=p(t);let n=(0,D.A)(e,t);if(n)return!0;t=g(t);let i=(0,D.A)(e,t);return!!i}function te(e){let t=ee(e,"r"),n=ee(e,"g"),i=ee(e,"b");return t&&n&&i}function ne(e){let t=ee(e,"h"),n=ee(e,"s"),i=ee(e,"l");return t&&n&&i}function ie(e){let t=ee(e,"h"),n=ee(e,"s"),i=ee(e,"v");return t&&n&&i}function re(e,t,n){let i;return i=(0,r.A)(e,t,null),null!==i?i:(t=g(t),i=(0,r.A)(e,t,null),null!==i?i:n)}function oe(e){let t=re(e,"r",null),n=re(e,"g",null),i=re(e,"b",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),Y(s)}function se(e){let t=re(e,"h",null),n=re(e,"s",null),i=re(e,"l",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),q(s)}function ae(e){let t=re(e,"h",null),n=re(e,"s",null),i=re(e,"v",null),r=re(e,"a",1),s=[t,n,i,r];return s=(0,o.A)(s,T.A),Q(s)}function le(e){if(te(e))return oe(e);if(ne(e))return se(e);if(ie(e))return ae(e);throw new Error("color object is not one of rgba, hsla, hsva")}function ue(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}function ce(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,i,r=e.r,o=e.g,s=e.b;return t=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*i}function de(e){let t,n,i=e.r,r=e.g,o=e.b,s=Math.max(i,r,o),a=Math.min(i,r,o),l=(s+a)/2;if(s===a)t=n=0;else{let e=s-a;switch(n=l>.5?e/(2-s-a):e/(s+a),s){case i:t=(r-o)/e+(r<o?6:0);break;case r:t=(o-i)/e+2;break;case o:t=(i-r)/e+4;break}t/=6}return{h:t,s:n,l:l,a:e.a}}function he(e){let t,n,i=e.r,r=e.g,o=e.b,s=Math.max(i,r,o),a=Math.min(i,r,o),l=s,u=s-a;if(n=0===s?0:u/s,s===a)t=0;else{switch(s){case i:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-i)/u+2;break;case o:t=(i-r)/u+4;break}t/=6}return{h:t,s:n,v:l,a:e.a}}function pe(e){let t,n,i,r=e.h,o=e.s,s=e.l;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=i=s;else{let e=s<.5?s*(1+o):s+o-s*o,l=2*s-e;t=a(l,e,r+1/3),n=a(l,e,r),i=a(l,e,r-1/3)}return{r:t,g:n,b:i,a:e.a}}function fe(e){let t,n,i,r=e.h,o=e.s,s=e.v,a=Math.floor(6*r),l=6*r-a,u=s*(1-o),c=s*(1-l*o),d=s*(1-(1-l)*o);switch(a%6){case 0:t=s,n=d,i=u;break;case 1:t=c,n=s,i=u;break;case 2:t=u,n=s,i=d;break;case 3:t=u,n=c,i=s;break;case 4:t=d,n=u,i=s;break;case 5:t=s,n=u,i=c;break}return{r:t,g:n,b:i,a:e.a}}function ge(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function me(e){return ve(e,!1)}function ve(e,t=!0){let n=e.r,i=e.g,r=e.b,o=e.a,s=`${ge(n)}${ge(i)}${ge(r)}`;return t&&(s=`${s}${ge(o)}`),s}function ye(e){return Math.min(1,Math.max(0,e))}function Ce(e,t){if(!(0,m.A)(t))throw new Error("fmtOutput is not a string");if(!st[t])throw console.log(`fmtOutput must be [${(0,l.A)(st)}]`),new Error("invalid fmtOutput");return e=st[t](e),e}function we(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.s+=t,i.s=ye(i.s);let r=pe(i);return Ce(r,n)}function xe(e,t="toRgbString"){let n=de(e);n.s=0;let i=pe(n);return Ce(i,t)}function be(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.l+=t,i.l=ye(i.l);let r=pe(i);return Ce(r,n)}function _e(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");e.r+=t,e.r=ye(e.r),e.g+=t,e.g=ye(e.g),e.b+=t,e.b=ye(e.b);let i=e;return Ce(i,n)}function Se(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let i=de(e);i.h+=t,i.h=i.h%1;let r=pe(i);return Ce(r,n)}function Ae(e,t="toRgbString"){return Se(e,.5,t)}function Te(e,t,n="toRgbString"){if(!(0,w.A)(t))throw new Error("num is not an integer");if(t=(0,E.A)(t),t<=1)return[e];let i=de(e),r=1/t,o=[];for(let s=0;s<t;s++)o.push(Ce(pe(i),n)),i.h+=r,i.h=i.h%1;return o}function Ee(e,t,n="toRgbString"){if(!(0,w.A)(t))throw new Error("num is not an integer");if(t=(0,E.A)(t),t<=1)return[e];let i=he(e);i.s=1,i.l=1;let r=1/t,o=[];for(let s=0;s<t;s++)o.push(Ce(fe(i),n)),i.h-=r,i.l-=r;return o}function De(e,t,n,i,r="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(i<0||i>1)throw new Error("w1 < 0 or > 1");let o={r:e.r*t+n.r*i,g:e.g*t+n.g*i,b:e.b*t+n.b*i,a:e.a*t+n.a*i};return Ce(o,r)}function Me(e){return`${(0,u.A)(100*e,1)}%`}function Ie(e){return(0,u.A)(e,0)}function Re(e){return(0,u.A)(e,3)}function Le(e){return{r:Ie(255*e.r),g:Ie(255*e.g),b:Ie(255*e.b)}}function Pe(e){return`rgb(${Ie(255*e.r)}, ${Ie(255*e.g)}, ${Ie(255*e.b)})`}function Ne(e){return{r:Ie(255*e.r),g:Ie(255*e.g),b:Ie(255*e.b),a:Re(e.a)}}function Fe(e){return`rgba(${Ie(255*e.r)}, ${Ie(255*e.g)}, ${Ie(255*e.b)}, ${Re(e.a)})`}function Oe(e){let t=de(e);return{h:Ie(360*t.h),s:Re(t.s),l:Re(t.l)}}function ke(e){let t=de(e);return`hsl(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.l)})`}function Be(e){let t=de(e);return{h:Ie(360*t.h),s:Re(t.s),l:Re(t.l),a:Re(t.a)}}function Ge(e){let t=de(e);return`hsla(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.l)}, ${Re(t.a)})`}function Ve(e){let t=he(e);return{h:Ie(360*t.h),s:Re(t.s),v:Re(t.v)}}function He(e){let t=he(e);return`hsv(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.v)})`}function ze(e){let t=he(e);return{h:Ie(360*t.h),s:Re(t.s),v:Re(t.v),a:Re(t.a)}}function Ue(e){let t=he(e);return`hsva(${Ie(360*t.h)}, ${Re(t.s)}, ${Re(t.v)}, ${Re(t.a)})`}function We(e){return{r:Me(e.r),g:Me(e.g),b:Me(e.b)}}function $e(e){return`rgb(${Me(e.r)}, ${Me(e.g)}, ${Me(e.b)})`}function je(e){return{r:Me(e.r),g:Me(e.g),b:Me(e.b),a:Re(e.a)}}function Xe(e){return`rgba(${Me(e.r)}, ${Me(e.g)}, ${Me(e.b)}, ${Re(e.a)})`}function Ye(e){let t=de(e);return{h:Ie(360*t.h),s:Me(t.s),l:Me(t.l)}}function Ke(e){let t=de(e);return`hsl(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.l)})`}function qe(e){let t=de(e);return{h:Ie(360*t.h),s:Me(t.s),l:Me(t.l),a:Re(t.a)}}function Ze(e){let t=de(e);return`hsla(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.l)}, ${Re(t.a)})`}function Qe(e){let t=he(e);return{h:Ie(360*t.h),s:Me(t.s),v:Me(t.v)}}function Je(e){let t=he(e);return`hsv(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.v)})`}function et(e){let t=he(e);return{h:Ie(360*t.h),s:Me(t.s),v:Me(t.v),a:Re(t.a)}}function tt(e){let t=he(e);return`hsva(${Ie(360*t.h)}, ${Me(t.s)}, ${Me(t.v)}, ${Re(t.a)})`}function nt(e){let t=me(e);return`#${t}`}function it(e){let t=ve(e);return`#${t}`}function rt(e){let t=null,n=null,r=null;if((0,m.A)(e))t=p((0,i.A)(e));else{if(!(0,v.A)(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=J(t)}catch(o){throw console.log(o),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=le(n)}catch(o){throw console.log(o),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function ot(e){if(!(0,v.A)(e))return console.log("gradient is not an effective object"),e=>(e=Math.min(Math.max(e,0),1),`rgb(${255*e},${255*e},${255*e})`);let t=[];function n(e){let n=null;for(let i=1;i<t.length;i++){let r=t[i-1][0],o=t[i-1][1],s=t[i][0],a=t[i][1];if(r<=e&&s>=e){let t=(s-e)/(s-r),i=(e-r)/(s-r);n=De(rt(o),t,rt(a),i,"toRgbaString");break}}return n}return(0,s.A)(e,(e,n)=>{t.push([(0,A.A)(n),Ne(rt(e)),e])}),t=(0,c.A)(t,0),n}let st={toRgb:Le,toRgbString:Pe,toRgba:Ne,toRgbaString:Fe,toHsl:Oe,toHslString:ke,toHsla:Be,toHslaString:Ge,toHsv:Ve,toHsvString:He,toHsva:ze,toHsvaString:Ue,toRgbP:We,toRgbPString:$e,toRgbaP:je,toRgbaPString:Xe,toHslP:Ye,toHslPString:Ke,toHslaP:qe,toHslaPString:Ze,toHsvP:Qe,toHsvPString:Je,toHsvaP:et,toHsvaPString:tt,toHexString:nt,toHex8String:it};function at(){let e={toRgb:e=>Le(rt(e)),toRgbString:e=>Pe(rt(e)),toRgba:e=>Ne(rt(e)),toRgbaString:e=>Fe(rt(e)),toHsl:e=>Oe(rt(e)),toHslString:e=>ke(rt(e)),toHsla:e=>Be(rt(e)),toHslaString:e=>Ge(rt(e)),toHsv:e=>Ve(rt(e)),toHsvString:e=>He(rt(e)),toHsva:e=>ze(rt(e)),toHsvaString:e=>Ue(rt(e)),toRgbP:e=>We(rt(e)),toRgbPString:e=>$e(rt(e)),toRgbaP:e=>je(rt(e)),toRgbaPString:e=>Xe(rt(e)),toHslP:e=>Ye(rt(e)),toHslPString:e=>Ke(rt(e)),toHslaP:e=>qe(rt(e)),toHslaPString:e=>Ze(rt(e)),toHsvP:e=>Qe(rt(e)),toHsvPString:e=>Je(rt(e)),toHsvaP:e=>et(rt(e)),toHsvaPString:e=>tt(rt(e)),toHexString:e=>nt(rt(e)),toHex8String:e=>it(rt(e)),modSaturate:(e,t,n)=>we(rt(e),t,n),modGrey:(e,t)=>xe(rt(e),t),modLighten:(e,t,n)=>be(rt(e),t,n),modBrighten:(e,t,n)=>_e(rt(e),t,n),modHue:(e,t,n)=>Se(rt(e),t,n),modComplement:(e,t)=>Ae(rt(e),t),spreadHue:(e,t,n)=>Te(rt(e),t,n),spreadMonochromatic:(e,t,n)=>Ee(rt(e),t,n),mix:(e,t,n,i,r)=>De(rt(e),t,rt(n),i,r),getBrightness:e=>ue(rt(e)),getLuminance:e=>ce(rt(e)),interp:ot};return e}var lt=at()},7517:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(1882),r=n(5021),o=n(4958);function s(e){let t=Object.prototype.toString.call(e);return"[object BigInt]"===t}var a=s;function l(e){if(!(0,r.A)(e)&&!(0,o.A)(e)&&!(0,i.A)(e)&&!a(e))return"";let t="";try{t=String(e)}catch(n){}try{t=e.toString()}catch(n){}return t}var u=l},9526:function(e,t,n){"use strict";var i=n(6902),r=n(106),o=n(5940),s=n(1669);function a(e=300){function t(e){let t=[],n=null,a=Date.now();function l(){null===n&&(n=setInterval(()=>{if(0===(0,i.A)(t))return clearInterval(n),void(n=null);let r=Date.now()-a;if(r>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(o){console.log("m.func catch",o)}}},10))}function u(e,...n){(0,r.A)(e)?(a=Date.now(),t.push({func:e,input:n}),l()):console.log("func is not a function")}return(0,o.A)(e)||(e=300),e=(0,s.A)(e),u}return new t(e)}t.A=a},3360:function(e,t,n){"use strict";var i=n(2291),r=n(2942),o=n(4958);function s(e=10){(0,o.A)(e)||(e=10),e=Math.min(e,i.A.TIMER_TIME_MAX);let t=(0,r.A)();return setTimeout(function(){t.resolve()},e),t}t.A=s},125:function(e,t,n){"use strict";var i=n(1898),r=n(4958),o=n(6670),s=n(6224);function a(e,t=0){if(!(0,r.A)(e))return"";if(!(0,o.A)(t))return"";e=(0,s.A)(e);let n=(0,i.A)(e,t).toFixed(t);return n}t.A=a},4417:function(e,t,n){"use strict";var i=n(8409);function r(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{(0,i.A)()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(t){}}t.A=r},7924:function(e,t,n){"use strict";var i=n(7500),r=n(903),o=n(5940),s=n(724),a=n(106);function l(e,t={}){let n=(0,i.A)(t,"timeInterval",null);(0,o.A)(n)||(n=20);let l=(0,i.A)(t,"tolerancePixel",null);(0,o.A)(l)||(l=1);let u,c=(0,s.A)(),d={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},h=(0,r.A)(d),p={width:"",height:""};if(!(0,a.A)(e))return console.log("invalid f",e),null;u=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},n=h.offsetWidth-e.offsetWidth,i=h.offsetHeight-e.offsetHeight,r=Math.abs(n)>l,o=Math.abs(i)>l,s="";n>0?s="smaller":n<0&&(s="larger");let a="";if(i>0?a="smaller":i<0&&(a="larger"),p={width:s,height:a},r||o){let n={...h};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(c.emit("resize",{sold:n,snew:e,smode:p,ele:t}),c.emit("resizeWithWindow",{sold:n,snew:e,smode:p,ele:t,from:"dom"}))},1)}d=h,h=e}},n);let f=e=>{c.emit("resizeWithWindow",{sold:d,snew:h,smode:p,from:"window"})};return window.addEventListener("resize",f),c.clear=()=>{clearInterval(u),window.removeEventListener("resize",f)},c}t.A=l},1236:function(e,t,n){"use strict";var i=n(1879),r=n(8332);function o(e,t,n){if(!(0,i.A)(e))return void console.log("clientX is not a number",e);if(!(0,i.A)(t))return void console.log("clientY is not a number",t);if(!(0,r.A)(n))return void console.log("ele is not a HTMLElement",n);let o;try{o=n.getBoundingClientRect()}catch(a){return void console.log("invalid ele for getBoundingClientRect",a)}let s=!1;try{s=e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom}catch(a){console.log("catch when calculating page information of element",a)}return s}t.A=o},7587:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(6036),r=n(8332),o=n(5021);function s(e){let t=document.querySelectorAll(e);return t}var a=s;function l(e){function t(e){e.parentNode.removeChild(e)}if((0,r.A)(e)){let n=e;return void t(n)}if(!(0,o.A)(e))return;let n=e,s=a(n);(0,i.A)(s,function(e){t(e)})}var u=l},8559:function(e,t,n){"use strict";var i=n(7500),r=n(5940),o=n(5021),s=n(8332),a=n(7587);function l(e,t,n={}){let l=(0,i.A)(n,"timeDuration",null);(0,r.A)(l)||(l=1e3);let u=(0,i.A)(n,"color",null);if((0,o.A)(u)||(u="rgba(255, 255, 255, 0.5)"),!(0,s.A)(e))return;e.style.position="relative",e.style.overflow="hidden";let c=e.getBoundingClientRect(),d=t.clientX-c.left,h=t.clientY-c.top,p=2*Math.max(e.clientWidth,e.clientHeight),f=document.createElement("div");f.style.width=`${p}px`,f.style.height=`${p}px`,f.style.transition=`all ${l/1e3}s linear`,f.style.position="absolute",f.style.zIndex=1,f.style.left=`${d}px`,f.style.top=`${h}px`,f.style.borderRadius="50%",f.style.transformOrigin="center",f.style.transform="translate(-50%,-50%) scale(0)",f.style.background=u,f.style.userSelect="none",f.style.pointerEvents="none",e.appendChild(f),setTimeout(()=>{f.style.transform="translate(-50%,-50%) scale(2)",f.style.opacity=0},1),setTimeout(()=>{(0,a.A)(f)},l)}t.A=l},9651:function(e,t,n){"use strict";var i=n(6036),r=n(7500),o=n(1969);function s(e,t,n=""){if(!(0,o.A)(t))return{};let s={};return(0,i.A)(t,function(t){s[t]=(0,r.A)(e,t,n)}),s}t.A=s},6780:function(e,t,n){"use strict";var i=n(6036),r=n(7500),o=n(1714),s=n(1969),a=n(6702);function l(e,t){if(!(0,o.A)(e))return{};if(!(0,s.A)(t))return{};let n={};return(0,i.A)(t,function(t){(0,a.A)(e,t)&&(n[t]=(0,r.A)(e,t))}),n}t.A=l},724:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var a=new o(n,r||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||r&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l}),r=i;function o(){return new r}var s=o},7120:function(e,t,n){"use strict";var i=n(5940),r=n(1669);let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=o.length;function a(e=32){let t=[];e=(0,i.A)(e)?(0,r.A)(e):32;for(let i=0;i<e;i++)t[i]=o[0|Math.random()*s];let n=t.join("");return n}t.A=a},5140:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});const i=new Uint8Array(16);function r(){return crypto.getRandomValues(i)}const o=[];for(let g=0;g<256;++g)o.push((g+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}const a={};function l(e,t,n){let i;if(e)i=c(e.random??e.rng?.()??r(),e.msecs,e.seq,t,n);else{const e=Date.now(),o=r();u(a,e,o),i=c(o,a.msecs,a.seq,t,n)}return t??s(i)}function u(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=d(n),e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function c(e,t,n,i,r=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(r<0||r+16>i.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`)}else i=new Uint8Array(16),r=0;return t??=Date.now(),n??=d(e),i[r++]=t/1099511627776&255,i[r++]=t/4294967296&255,i[r++]=t/16777216&255,i[r++]=t/65536&255,i[r++]=t/256&255,i[r++]=255&t,i[r++]=112|n>>>28&15,i[r++]=n>>>20&255,i[r++]=128|n>>>14&63,i[r++]=n>>>6&255,i[r++]=n<<2&255|3&e[10],i[r++]=e[11],i[r++]=e[12],i[r++]=e[13],i[r++]=e[14],i[r++]=e[15],i}function d(e){return(127&e[6])<<24|e[7]<<16|e[8]<<8|e[9]}var h=l;function p(){let e=h();return e}var f=p},2942:function(e,t){"use strict";function n(){let e,t,n=new Promise(function(){e=arguments[0],t=arguments[1]});return n.resolve=e,n.reject=t,n}t.A=n},1388:function(e,t,n){"use strict";var i=n(6515);function r(){return"undefined"!==typeof self?self:(0,i.A)()?window:"undefined"!==typeof n.g?n.g:null}t.A=r},6702:function(e,t,n){"use strict";var i=n(1714),r=n(5021),o=n(4958);function s(e,t){return!!(0,i.A)(e)&&(!(!(0,r.A)(t)&&!(0,o.A)(t))&&t in e)}t.A=s},5788:function(e,t,n){"use strict";var i=n(2363);function r(){return!!location&&(0,i.A)(location.href,"localhost")}t.A=r},8332:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(3098),r=n(4963);function o(e){return(0,i.A)(e)&&1===e.nodeType&&!(0,r.A)(e)}var s=o;function a(e){return s(e)}var l=a},4625:function(e,t,n){"use strict";var i=n(5021);function r(e){return!!(0,i.A)(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)}t.A=r},8409:function(e,t){"use strict";function n(){let e=null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/);return e}t.A=n},6515:function(e,t){"use strict";function n(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}t.A=n},6956:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t}t.A=n},6656:function(e,t,n){"use strict";var i=n(6956);function r(e){return!!(0,i.A)(e)&&0===e.length}t.A=r},8270:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Blob]"===t}t.A=n},8842:function(e,t,n){"use strict";var i=n(8916);function r(e){return(0,i.A)(e)}t.A=r},1969:function(e,t,n){"use strict";var i=n(6956),r=n(3173);function o(e){return!!(0,i.A)(e)&&(0!==e.length&&(1!==e.length||!(0,r.A)(e[0])))}t.A=o},8135:function(e,t,n){"use strict";var i=n(1714);function r(e){if((0,i.A)(e)){for(let t in e)return!0;return!1}return!1}t.A=r},3173:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var i=n(3633),r=n(920),o=n(8170),s=n(9860);function a(e){return!(!(0,s.A)(e)||""!==e)}var l=a,u=n(6656),c=n(590);function d(e){return!!(0,i.A)(e)||(!!(0,r.A)(e)||(!!(0,o.A)(e)||(!!l(e)||(!!(0,u.A)(e)||!!(0,c.A)(e)))))}var h=d},5021:function(e,t,n){"use strict";var i=n(9860);function r(e){return!(!(0,i.A)(e)||""===e)}t.A=r},106:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}t.A=n},6989:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(7500),r=n(8593);function o(e){return"number"==typeof e&&e==(0,r.A)(e)}var s=o,a=n(8842),l=n(4958),u=n(6224);function c(e,t={}){let n=(0,i.A)(t,"useLimitSafe",null);return(0,a.A)(n)||(n=!1),!!(0,l.A)(e)&&(e=(0,u.A)(e),n?Number.isSafeInteger(e):s(e))}var d=c},590:function(e,t){"use strict";function n(e){return e!==e}t.A=n},920:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Null]"===t}t.A=n},4958:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(5021);function r(e){let t=Object.prototype.toString.call(e);return"[object Number]"===t}var o=r,s=n(590);function a(e){let t=!1;if((0,i.A)(e))t=!isNaN(Number(e));else if(o(e)){if((0,s.A)(e))return!1;t=!0}return t}var l=a},1714:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Object]"===t}t.A=n},8170:function(e,t,n){"use strict";var i=n(1714);function r(e){if((0,i.A)(e)){for(let t in e)return!1;return!0}return!1}t.A=r},6670:function(e,t,n){"use strict";var i=n(6989),r=n(1669);function o(e,t={}){if(!(0,i.A)(e,t))return!1;let n=(0,r.A)(e)>=0;return n}t.A=o},5940:function(e,t,n){"use strict";var i=n(6989),r=n(1669);function o(e,t={}){if(!(0,i.A)(e,t))return!1;let n=(0,r.A)(e)>0;return n}t.A=o},662:function(e,t){"use strict";function n(e){let t,n=Object.prototype.toString.call(e);if(t="[object Promise]"===n,t)return!0;if("[object Function]"!==n)return!1;try{t="function"!==typeof e.subscribe&&"function"===typeof e.then}catch(i){}return t}t.A=n},9860:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object String]"===t}t.A=n},3633:function(e,t){"use strict";function n(e){let t=Object.prototype.toString.call(e);return"[object Undefined]"===t}t.A=n},7106:function(e,t,n){"use strict";var i=n(4353),r=n(106);function o(){if(!(0,r.A)(i))throw new Error("invalid dayjs");let e=i(),t=e.format("YYYY-MM-DDTHH:mm:ss.SSSZ");return t}t.A=o},1510:function(e,t,n){"use strict";var i=n(7500),r=n(8842),o=n(3633);function s(e,t=!1,n={}){let s=(0,i.A)(n,"returnWithStateAndMsg",null);(0,r.A)(s)||(s=!1);let a=e=>s?{state:"error",msg:e}:"";if((0,o.A)(e))return a("invalid v");let l="";try{l=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(u){return a(u.toString())}return s?{state:"success",msg:l}:l}t.A=s},2561:function(e,t,n){"use strict";var i=n(7500),r=n(2942),o=n(106),s=n(662);function a(e){if(!(0,o.A)(e))throw new Error("fn is not a function");return function(){let t=(0,r.A)(),n=null,o=null;try{n=e.apply(this,arguments)}catch(a){o=a}return null!==o?t.resolve({state:"error",msg:o}):(0,s.A)(n)?n.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===(0,i.A)(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:n}),t}}t.A=a},7417:function(e,t,n){"use strict";var i=n(5021),r=n(9860);function o(e,t,n){if(!(0,i.A)(e))return"";if(!(0,i.A)(t))return"";if(!(0,r.A)(n))return"";let o=String(e).replaceAll(t,n);return o}t.A=o},545:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(6036),r=n(4722),o=n(8621),s=n(5021);function a(e,t){if(!(0,s.A)(e))return[];if(!(0,s.A)(t))return[];let n=e.split(t);return n}var l=a;function u(e,t){if(!(0,s.A)(e))return[];if(!(0,s.A)(t))return[];let n=l(e,t);n=(0,r.A)(n,o.A);let a=[];return(0,i.A)(n,function(e){(0,s.A)(e)&&a.push(e)}),a}var c=u},6024:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(6262),s=n(1669);function a(e,t){return(0,i.A)(e)&&(0,r.A)(t)?(t=(0,s.A)(t),0===t?e:(0,o.A)(e,e.length-t)):""}t.A=a},483:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(1669);function s(e,t){return(0,i.A)(e)&&(0,r.A)(t)?(t=(0,o.A)(t),0===t?"":e.substring(0,t)):""}t.A=s},6262:function(e,t,n){"use strict";var i=n(5021),r=n(6670),o=n(1669);function s(e,t){if(!(0,i.A)(e))return"";if(!(0,r.A)(t))return"";if(t=(0,o.A)(t),0===t)return"";let n=e.length-t;return n<0&&(n=0),e.substring(n,n+t)}t.A=s},6035:function(e,t,n){"use strict";var i=n(2291),r=n(7500),o=n(2942),s=n(106),a=n(5940),l=n(662);async function u(e,t={}){let n=null,u=(0,o.A)();if(!(0,s.A)(e))return u.reject("waitfunction需輸入函數f"),u;let c=async()=>{let t=e();return(0,l.A)(t)&&(t=await t),t};if(n=await c(),!0===n)return u.resolve(),u;let d=(0,r.A)(t,"attemptNum",null);(0,a.A)(d)||(d=200);let h=(0,r.A)(t,"timeInterval",null);(0,a.A)(h)||(h=1e3),h=Math.min(h,i.A.TIMER_TIME_MAX);let p=0,f=setInterval(async()=>{p+=1,n=await c(),!0===n&&(clearInterval(f),u.resolve()),p>d&&(clearInterval(f),u.reject(`exceeded attemptNum[${d}]`))},h);return u}t.A=u}}]);
|