@sheetxl/studio-mui 0.4.9 → 0.4.11

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.
Files changed (127) hide show
  1. package/browser/cjs/B29yIlf_FSHx9q3M.cjs +7 -0
  2. package/browser/cjs/B783moVfFT70yQuK.cjs +7 -0
  3. package/browser/cjs/BCtVyhxIZSUPH_Z4.cjs +7 -0
  4. package/browser/cjs/BE6O6K7i1mHBC3et.cjs +7 -0
  5. package/browser/cjs/BQ-G2ABc3FYN-D50.cjs +7 -0
  6. package/browser/cjs/BabvaPi1dUIPt5AG.cjs +7 -0
  7. package/browser/cjs/BbvcxaJzfy7H6xfa.cjs +7 -0
  8. package/browser/cjs/Bhh0dqxUzzOzHWMc.cjs +7 -0
  9. package/browser/cjs/CH50hiw_7LBSC6dR.cjs +7 -0
  10. package/browser/cjs/Cfb0T6htsh82UPK-.cjs +7 -0
  11. package/browser/cjs/CisYglNTHGrj9oMH.cjs +7 -0
  12. package/browser/cjs/Clbakb5VUTDTlofM.cjs +7 -0
  13. package/browser/cjs/D7xmeRe-f7IifEKc.cjs +7 -0
  14. package/browser/cjs/DCV-6w2JGk_faE3x.cjs +7 -0
  15. package/browser/cjs/DY2PuDSgw0TrB5-_.cjs +7 -0
  16. package/browser/cjs/Df5v6knUJ4dqHmmo.cjs +7 -0
  17. package/browser/cjs/DyzVC_iq7ceqC2fj.cjs +7 -0
  18. package/browser/cjs/QB_8kWYEsfOH_HwK.cjs +7 -0
  19. package/browser/cjs/aOmlMJRAkQEF59EX.cjs +7 -0
  20. package/browser/cjs/index.cjs +10 -4
  21. package/browser/cjs/li-J7BWV6WUzY5aq.cjs +7 -0
  22. package/browser/cjs/u0WmWLGlCwhnhL9i.cjs +7 -0
  23. package/browser/cjs/uoBAuXnlUz8scSA1.cjs +7 -0
  24. package/browser/cjs/xp2ZII-PuLk9tHK3.cjs +7 -0
  25. package/browser/cjs/xq-CJbsvm7BQO8lK.cjs +7 -0
  26. package/browser/esm/12Ttun7hzbiInyVr.mjs +7 -0
  27. package/browser/esm/7jSMnphGrNRPUa_S.mjs +7 -0
  28. package/browser/esm/AnCmK-idMDJ2vI8H.mjs +7 -0
  29. package/browser/esm/B-Ut_yUCD9THCz0T.mjs +7 -0
  30. package/browser/esm/BTD5k7gtFcqDwslB.mjs +7 -0
  31. package/browser/esm/BVRUNnRvnt7aVCDD.mjs +7 -0
  32. package/browser/esm/BauTkiamxm0HDt6M.mjs +7 -0
  33. package/browser/esm/BcIp2mxLBfjUBE0q.mjs +7 -0
  34. package/browser/esm/Bi_0z0hyhFuz5Ta3.mjs +7 -0
  35. package/browser/esm/BkDEdK7zOlsoUKCZ.mjs +7 -0
  36. package/browser/esm/BpGexBYtmHbTIJz2.mjs +7 -0
  37. package/browser/esm/CJawFB555VEY-Vge.mjs +7 -0
  38. package/browser/esm/CWogLlWYHiL4W6CH.mjs +7 -0
  39. package/browser/esm/Cr46Bo9bGoz0LbWq.mjs +7 -0
  40. package/browser/esm/Csk8rXNpaXmf5g7O.mjs +7 -0
  41. package/browser/esm/Cu-5HDPN8B0qE77-.mjs +7 -0
  42. package/browser/esm/CzgR8PxJ_89IC4Mr.mjs +7 -0
  43. package/browser/esm/DMUXpRbV3ahdB1lN.mjs +7 -0
  44. package/browser/esm/DiIX5KzrWnbDWjGE.mjs +7 -0
  45. package/browser/esm/Djo2IS-ivmVSrO3v.mjs +7 -0
  46. package/browser/esm/Hy95ExHvIFgzxQb-.mjs +7 -0
  47. package/browser/esm/Z1_72ZY8rW2Mc3g_.mjs +7 -0
  48. package/browser/esm/_ZR9nT54xwy-C6ow.mjs +7 -0
  49. package/browser/esm/csxyptiqbJZO0pQA.mjs +7 -0
  50. package/browser/esm/index.mjs +8 -82
  51. package/licenses/dependencies.txt +145 -145
  52. package/node/esm/{CsbP0EYKOHobzZCu.mjs → 8THCZRGNmI2nPqMR.mjs} +2 -2
  53. package/node/esm/{CGiJgZJFY-YsXWCX.mjs → BDm0y2dv7wLZhYj1.mjs} +1 -1
  54. package/node/esm/{CijBL1IDWaxPgQ_E.mjs → BPylexVHXa-t0sqJ.mjs} +6 -6
  55. package/node/esm/{B7xzqWxB07TdXnmo.mjs → BQYQg7lfqFbWaf8x.mjs} +2 -2
  56. package/node/esm/{BUVA6vYXyFFnBCMg.mjs → BSUbQzac78SXiAJe.mjs} +1 -1
  57. package/node/esm/{qewbqty13W1sKrMC.mjs → BeNXnrWMr5S34Oxb.mjs} +1 -1
  58. package/node/esm/{BfuG4JD3t3n1uOci.mjs → C6jxZQrvMLctjLZM.mjs} +4 -4
  59. package/node/esm/{Dn38s6pH3QNvdk-x.mjs → CCZepFZNn1pIXrnd.mjs} +1 -1
  60. package/node/esm/{9iDXWtTOWeDVslQL.mjs → CXSwyUs6BuNGCic0.mjs} +13 -13
  61. package/node/esm/{Dq49h62ihEYk_8VR.mjs → CaV6SH-PMyHlXUhx.mjs} +1 -1
  62. package/node/esm/{B18g9zjzyR9YL3Mv.mjs → D481dAOp77EZbV5s.mjs} +2 -2
  63. package/node/esm/{DWKLdf_rn5dajRBA.mjs → DHj9iDuBImdwscIb.mjs} +25 -25
  64. package/node/esm/{uY021f9cZSWYX0--.mjs → DIGsHHDexzj0uG_T.mjs} +5 -5
  65. package/node/esm/{Cr5l_3AqPbv4mke9.mjs → DLiw-2C_tqGgJIQ6.mjs} +2 -2
  66. package/node/esm/{CG1T0Z1roNRSVlal.mjs → DNJVdt9TbBsUE8Jm.mjs} +1 -1
  67. package/node/esm/{DGTK2YeARR5cTnft.mjs → DaCmut490aSCGvX8.mjs} +1 -1
  68. package/node/esm/{C7t1ZHhSDgJnZ4Da.mjs → Dd2OFQJQyYp6bAeP.mjs} +1 -1
  69. package/node/esm/{DHmVr6jRLzt6lD1x.mjs → DkpAjhQeaZn_Ipxg.mjs} +2 -2
  70. package/node/esm/{DODhKM0Qeycx3Hvp.mjs → DyMCnCG9LzH5Mgw0.mjs} +2 -2
  71. package/node/esm/{v4fR5lIq2IqY_Clq.mjs → RV-AvxVzzFKWjYFM.mjs} +38 -38
  72. package/node/esm/{tur4cwLbnCn69JK-.mjs → Ui3_6RhrEZQDOXwg.mjs} +8 -8
  73. package/node/esm/index.mjs +5373 -5075
  74. package/node/esm/{CILOMzOF30-XSZqR.mjs → qI75rORek8T0-Kpf.mjs} +2 -2
  75. package/package.json +8 -8
  76. package/types/index.d.ts +24 -0
  77. package/browser/cjs/02LSJ7jnb-ovS7ex.cjs +0 -15
  78. package/browser/cjs/BDDJIe6JwgEYEtda.cjs +0 -6
  79. package/browser/cjs/BGh6tEDK_1MFKfMU.cjs +0 -145
  80. package/browser/cjs/BSRDKlVOTYHfOAF_.cjs +0 -11
  81. package/browser/cjs/Bn0BSzVk_S-rvDwk.cjs +0 -6
  82. package/browser/cjs/Bzf8jKmmZl374mof.cjs +0 -6
  83. package/browser/cjs/C20NTPRE5_ExESDZ.cjs +0 -6
  84. package/browser/cjs/C5i9hklL-WNb8J_q.cjs +0 -42
  85. package/browser/cjs/CLxYxjd0yz1LCTB-.cjs +0 -6
  86. package/browser/cjs/CUo2iW5IL6UZJNWT.cjs +0 -6
  87. package/browser/cjs/C_QWbWVBVc6YJ4Q3.cjs +0 -16
  88. package/browser/cjs/CeeZxww7wpF45vvp.cjs +0 -6
  89. package/browser/cjs/CekKZCV1J1HUFIqO.cjs +0 -6
  90. package/browser/cjs/CgD0b2zJD8zElhuz.cjs +0 -6
  91. package/browser/cjs/CqwEnIUDMxWw5DX1.cjs +0 -87
  92. package/browser/cjs/CwOKyPq_H2afJacv.cjs +0 -7
  93. package/browser/cjs/D32t9wiFoNX7WVEo.cjs +0 -161
  94. package/browser/cjs/DILF3GzsMdg-Y2wu.cjs +0 -11
  95. package/browser/cjs/Dr-PR7J1T91UjrPL.cjs +0 -12
  96. package/browser/cjs/DyR0_iZAINpjodWL.cjs +0 -12
  97. package/browser/cjs/LWuNxqu9MyiniH_g.cjs +0 -18
  98. package/browser/cjs/O8r9K4Qh6Pgd6rXU.cjs +0 -7
  99. package/browser/cjs/jbTHHxJODyD10jVH.cjs +0 -6
  100. package/browser/cjs/n-4XaX3pkXUEEQ5u.cjs +0 -6
  101. package/browser/cjs/qQGaIq5VhlZJU-xf.cjs +0 -6
  102. package/browser/esm/AmErN6xXU01K_bEs.mjs +0 -3803
  103. package/browser/esm/B08nVBuOXar7x7in.mjs +0 -1703
  104. package/browser/esm/B8xKZIF9fvamlvW5.mjs +0 -1467
  105. package/browser/esm/BGWd79IfMfoHoO6g.mjs +0 -392
  106. package/browser/esm/BT8vduOS21nsJ6EQ.mjs +0 -1366
  107. package/browser/esm/Bz6NqTbktTH8Df6_.mjs +0 -2251
  108. package/browser/esm/CDRALHzsBIsRPM5g.mjs +0 -153
  109. package/browser/esm/CIH1rBtL9lK5ku-N.mjs +0 -13391
  110. package/browser/esm/CVJee4uHPTdpZGEH.mjs +0 -46
  111. package/browser/esm/CXUv64T9mbQbJGgM.mjs +0 -48
  112. package/browser/esm/Ca5nvvpeuP6Wsv5P.mjs +0 -43
  113. package/browser/esm/CelDYTh0f7McDj4o.mjs +0 -44
  114. package/browser/esm/DHlS6l8ZPDMN2cwP.mjs +0 -1672
  115. package/browser/esm/DXKQ9TZdaT7ytR1S.mjs +0 -640
  116. package/browser/esm/D_FJwwe-bsDiDGBV.mjs +0 -2410
  117. package/browser/esm/DduyjhwDREaxXNzm.mjs +0 -59
  118. package/browser/esm/DffuCp_514AjqJLT.mjs +0 -864
  119. package/browser/esm/DgC_oaBYpwh1mBi_.mjs +0 -25
  120. package/browser/esm/Dl-SlJoaP7EFX-GR.mjs +0 -52
  121. package/browser/esm/DpTSO921EQ7L_abP.mjs +0 -52
  122. package/browser/esm/Dr5y4zmj1js9FjzE.mjs +0 -1352
  123. package/browser/esm/DuoEo0hJBssfAmB4.mjs +0 -84
  124. package/browser/esm/jIv4VNLAAFANZjhN.mjs +0 -424
  125. package/browser/esm/wysWhT4-jO-uukUH.mjs +0 -23
  126. package/browser/esm/zZaxvhjZK5N3yZkw.mjs +0 -19947
  127. package/node/esm/BBWRiJSBxt6O1CfK.mjs +0 -312
@@ -1,42 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),w=require("react"),Nu=require("@mui/material"),$=require("./CqwEnIUDMxWw5DX1.cjs");var Iu=$.requirePropTypes();const de=$.getDefaultExportFromCjs(Iu);function xe(t){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(t)}var Vu=/^\s+/,Xu=/\s+$/;function _(t,n){if(n=n||{},(t=t||"")instanceof _)return t;if(!(this instanceof _))return new _(t,n);var e=function(r){var o={r:0,g:0,b:0},u=1,a=null,s=null,i=null,c=!1,l=!1;typeof r=="string"&&(r=function(d){d=d.replace(Vu,"").replace(Xu,"").toLowerCase();var f,b=!1;if(Ze[d])d=Ze[d],b=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(f=B.rgb.exec(d))?{r:f[1],g:f[2],b:f[3]}:(f=B.rgba.exec(d))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=B.hsl.exec(d))?{h:f[1],s:f[2],l:f[3]}:(f=B.hsla.exec(d))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=B.hsv.exec(d))?{h:f[1],s:f[2],v:f[3]}:(f=B.hsva.exec(d))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=B.hex8.exec(d))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),a:Mt(f[4]),format:b?"name":"hex8"}:(f=B.hex6.exec(d))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),format:b?"name":"hex"}:(f=B.hex4.exec(d))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),a:Mt(f[4]+""+f[4]),format:b?"name":"hex8"}:(f=B.hex3.exec(d))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),format:b?"name":"hex"}:!1}(r)),xe(r)=="object"&&(V(r.r)&&V(r.g)&&V(r.b)?(h=r.r,p=r.g,v=r.b,o={r:255*k(h,255),g:255*k(p,255),b:255*k(v,255)},c=!0,l=String(r.r).substr(-1)==="%"?"prgb":"rgb"):V(r.h)&&V(r.s)&&V(r.v)?(a=fe(r.s),s=fe(r.v),o=function(d,f,b){d=6*k(d,360),f=k(f,100),b=k(b,100);var g=Math.floor(d),y=d-g,x=b*(1-f),j=b*(1-y*f),C=b*(1-(1-y)*f),R=g%6,L=[b,j,x,x,C,b][R],T=[C,b,b,j,x,x][R],O=[x,x,C,b,b,j][R];return{r:255*L,g:255*T,b:255*O}}(r.h,a,s),c=!0,l="hsv"):V(r.h)&&V(r.s)&&V(r.l)&&(a=fe(r.s),i=fe(r.l),o=function(d,f,b){var g,y,x;function j(L,T,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?L+6*(T-L)*O:O<.5?T:O<2/3?L+(T-L)*(2/3-O)*6:L}if(d=k(d,360),f=k(f,100),b=k(b,100),f===0)g=y=x=b;else{var C=b<.5?b*(1+f):b+f-b*f,R=2*b-C;g=j(R,C,d+1/3),y=j(R,C,d),x=j(R,C,d-1/3)}return{r:255*g,g:255*y,b:255*x}}(r.h,a,i),c=!0,l="hsl"),r.hasOwnProperty("a")&&(u=r.a));var h,p,v;return u=bu(u),{ok:c,format:r.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:u}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||e.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}function wt(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=(u+a)/2;if(u==a)r=o=0;else{var i=u-a;switch(o=s>.5?i/(2-u-a):i/(u+a),u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,l:s}}function _t(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=u,i=u-a;if(o=u===0?0:i/u,u==a)r=0;else{switch(u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,v:s}}function xt(t,n,e,r){var o=[z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jt(t,n,e,r){return[z(vu(r)),z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))].join("")}function qu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s-=n/100,e.s=Me(e.s),_(e)}function Yu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s+=n/100,e.s=Me(e.s),_(e)}function Gu(t){return _(t).desaturate(100)}function Ku(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l+=n/100,e.l=Me(e.l),_(e)}function Ju(t,n){n=n===0?0:n||10;var e=_(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-n/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-n/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-n/100*255))),_(e)}function Qu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l-=n/100,e.l=Me(e.l),_(e)}function Zu(t,n){var e=_(t).toHsl(),r=(e.h+n)%360;return e.h=r<0?360+r:r,_(e)}function es(t){var n=_(t).toHsl();return n.h=(n.h+180)%360,_(n)}function Ot(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var e=_(t).toHsl(),r=[_(t)],o=360/n,u=1;u<n;u++)r.push(_({h:(e.h+u*o)%360,s:e.s,l:e.l}));return r}function ts(t){var n=_(t).toHsl(),e=n.h;return[_(t),_({h:(e+72)%360,s:n.s,l:n.l}),_({h:(e+216)%360,s:n.s,l:n.l})]}function rs(t,n,e){n=n||6,e=e||30;var r=_(t).toHsl(),o=360/e,u=[_(t)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,u.push(_(r));return u}function ns(t,n){n=n||6;for(var e=_(t).toHsv(),r=e.h,o=e.s,u=e.v,a=[],s=1/n;n--;)a.push(_({h:r,s:o,v:u})),u=(u+s)%1;return a}_.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,n,e,r=this.toRgb();return t=r.r/255,n=r.g/255,e=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=bu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_t(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_t(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.v);return this._a==1?"hsv("+n+", "+e+"%, "+r+"%)":"hsva("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=wt(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wt(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.l);return this._a==1?"hsl("+n+", "+e+"%, "+r+"%)":"hsla("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return xt(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(n,e,r,o,u){var a=[z(Math.round(n).toString(16)),z(Math.round(e).toString(16)),z(Math.round(r).toString(16)),z(vu(o))];return u&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(os[xt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n="#"+jt(this._r,this._g,this._b,this._a),e=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=_(t);e="#"+jt(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+e+")"},toString:function(t){var n=!!t;t=t||this._format;var e=!1,r=this._a<1&&this._a>=0;return n||!r||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return _(this.toString())},_applyModification:function(t,n){var e=t.apply(null,[this].concat([].slice.call(n)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Ku,arguments)},brighten:function(){return this._applyModification(Ju,arguments)},darken:function(){return this._applyModification(Qu,arguments)},desaturate:function(){return this._applyModification(qu,arguments)},saturate:function(){return this._applyModification(Yu,arguments)},greyscale:function(){return this._applyModification(Gu,arguments)},spin:function(){return this._applyModification(Zu,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(rs,arguments)},complement:function(){return this._applyCombination(es,arguments)},monochromatic:function(){return this._applyCombination(ns,arguments)},splitcomplement:function(){return this._applyCombination(ts,arguments)},triad:function(){return this._applyCombination(Ot,[3])},tetrad:function(){return this._applyCombination(Ot,[4])}},_.fromRatio=function(t,n){if(xe(t)=="object"){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=r==="a"?t[r]:fe(t[r]));t=e}return _(t,n)},_.equals=function(t,n){return!(!t||!n)&&_(t).toRgbString()==_(n).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,n,e){e=e===0?0:e||50;var r=_(t).toRgb(),o=_(n).toRgb(),u=e/100;return _({r:(o.r-r.r)*u+r.r,g:(o.g-r.g)*u+r.g,b:(o.b-r.b)*u+r.b,a:(o.a-r.a)*u+r.a})},_.readability=function(t,n){var e=_(t),r=_(n);return(Math.max(e.getLuminance(),r.getLuminance())+.05)/(Math.min(e.getLuminance(),r.getLuminance())+.05)},_.isReadable=function(t,n,e){var r,o,u=_.readability(t,n);switch(o=!1,(r=function(a){var s,i;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),i=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:s,size:i}}(e)).level+r.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},_.mostReadable=function(t,n,e){var r,o,u,a,s=null,i=0;o=(e=e||{}).includeFallbackColors,u=e.level,a=e.size;for(var c=0;c<n.length;c++)(r=_.readability(t,n[c]))>i&&(i=r,s=_(n[c]));return _.isReadable(t,s,{level:u,size:a})||!o?s:(e.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],e))};var Ze=_.names={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"},os=_.hexNames=function(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}(Ze);function bu(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(t,n){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(t)&&(t="100%");var e=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(t);return t=Math.min(n,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function Me(t){return Math.min(1,Math.max(0,t))}function D(t){return parseInt(t,16)}function z(t){return t.length==1?"0"+t:""+t}function fe(t){return t<=1&&(t=100*t+"%"),t}function vu(t){return Math.round(255*parseFloat(t)).toString(16)}function Mt(t){return D(t)/255}var Y,be,ve,B=(be="[\\s|\\(]+("+(Y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",ve="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+ve),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!B.CSS_UNIT.exec(t)}var St,Et,Ct,At,kt,Rt,Pt,Tt,Lt,Ut,Ft,Dt,Bt,zt,Ht,Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,F={},re={};function gu(){if(Et)return St;Et=1;var t=typeof $.commonjsGlobal=="object"&&$.commonjsGlobal&&$.commonjsGlobal.Object===Object&&$.commonjsGlobal;return St=t}function N(){if(At)return Ct;At=1;var t=gu(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return Ct=e}function le(){if(Rt)return kt;Rt=1;var t=N().Symbol;return kt=t}function J(){if(Dt)return Ft;Dt=1;var t=le(),n=function(){if(Tt)return Pt;Tt=1;var o=le(),u=Object.prototype,a=u.hasOwnProperty,s=u.toString,i=o?o.toStringTag:void 0;return Pt=function(c){var l=a.call(c,i),h=c[i];try{c[i]=void 0;var p=!0}catch{}var v=s.call(c);return p&&(l?c[i]=h:delete c[i]),v}}(),e=function(){if(Ut)return Lt;Ut=1;var o=Object.prototype.toString;return Lt=function(u){return o.call(u)}}(),r=t?t.toStringTag:void 0;return Ft=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":r&&r in Object(o)?n(o):e(o)}}function H(){if(zt)return Bt;zt=1;var t=Array.isArray;return Bt=t}function X(){return Wt?Ht:(Wt=1,Ht=function(t){return t!=null&&typeof t=="object"})}function is(){if(qt)return Xt;qt=1;var t=(Vt||(Vt=1,It=function(e){return function(r,o,u){for(var a=-1,s=Object(r),i=u(r),c=i.length;c--;){var l=i[e?c:++a];if(o(s[l],l,s)===!1)break}return r}}),It),n=t();return Xt=n}function yu(){if(Zt)return Qt;Zt=1;var t=function(){if(Jt)return Kt;Jt=1;var a=J(),s=X();return Kt=function(i){return s(i)&&a(i)=="[object Arguments]"}}(),n=X(),e=Object.prototype,r=e.hasOwnProperty,o=e.propertyIsEnumerable,u=t(function(){return arguments}())?t:function(a){return n(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return Qt=u}var er,tr,rr,nr,or,ir,ar,ur,sr,cr,fr,Ae={exports:{}};function tt(){return rr||(rr=1,function(t,n){var e=N(),r=tr?er:(tr=1,er=function(){return!1}),o=n&&!n.nodeType&&n,u=o&&t&&!t.nodeType&&t,a=u&&u.exports===o?e.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}(Ae,Ae.exports)),Ae.exports}function mu(){if(or)return nr;or=1;var t=/^(?:0|[1-9]\d*)$/;return nr=function(n,e){var r=typeof n;return!!(e=e??9007199254740991)&&(r=="number"||r!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<e}}function rt(){return ar?ir:(ar=1,ir=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})}function nt(){return fr?cr:(fr=1,cr=function(t){return function(n){return t(n)}})}var lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,Er,Cr,Ar,kr,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,Hr,Wr,$r,Nr,ke,Ir,Vr,Xr,qr,Yr,Gr,Kr,Re,Jr,Pe,Qr,Zr,en,Te,tn,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,En,Cn,An,kn,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,eo,to,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,Le,yo,mo,wo,_o,xo,jo,Oo,Mo,So,Ue,Eo,Co,Ao,ko,Ro,Po,To,Lo,Uo,Fo,Do,Fe,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,qo,Yo,Go,Ko,De,Jo,Be,Qo,Zo,ei,ti,ri,ni,oi,ii,ai,ui,si,ci,fi,li,hi,pi,di,bi,vi,ze,gi,yi,mi,wi,_i,xi,ji,He,Oi,Mi,Si,Ei,Ci,We,Ai,ki,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$e,$i,Ni,Ii,Ne,Vi,Xi,qi,Yi,Ie={exports:{}};function ot(){return lr||(lr=1,function(t,n){var e=gu(),r=n&&!n.nodeType&&n,o=r&&t&&!t.nodeType&&t,u=o&&o.exports===r&&e.process,a=function(){try{var s=o&&o.require&&o.require("util").types;return s||u&&u.binding&&u.binding("util")}catch{}}();t.exports=a}(Ie,Ie.exports)),Ie.exports}function wu(){if(pr)return hr;pr=1;var t=function(){if(sr)return ur;sr=1;var u=J(),a=rt(),s=X(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,ur=function(c){return s(c)&&a(c.length)&&!!i[u(c)]}}(),n=nt(),e=ot(),r=e&&e.isTypedArray,o=r?n(r):t;return hr=o}function _u(){if(br)return dr;br=1;var t=(Gt||(Gt=1,Yt=function(s,i){for(var c=-1,l=Array(s);++c<s;)l[c]=i(c);return l}),Yt),n=yu(),e=H(),r=tt(),o=mu(),u=wu(),a=Object.prototype.hasOwnProperty;return dr=function(s,i){var c=e(s),l=!c&&n(s),h=!c&&!l&&r(s),p=!c&&!l&&!h&&u(s),v=c||l||h||p,d=v?t(s.length,String):[],f=d.length;for(var b in s)!i&&!a.call(s,b)||v&&(b=="length"||h&&(b=="offset"||b=="parent")||p&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||o(b,f))||d.push(b);return d}}function it(){if(gr)return vr;gr=1;var t=Object.prototype;return vr=function(n){var e=n&&n.constructor;return n===(typeof e=="function"&&e.prototype||t)}}function xu(){return mr?yr:(mr=1,yr=function(t,n){return function(e){return t(n(e))}})}function as(){if(jr)return xr;jr=1;var t=it(),n=function(){if(_r)return wr;_r=1;var r=xu()(Object.keys,Object);return wr=r}(),e=Object.prototype.hasOwnProperty;return xr=function(r){if(!t(r))return n(r);var o=[];for(var u in Object(r))e.call(r,u)&&u!="constructor"&&o.push(u);return o}}function ue(){return Mr?Or:(Mr=1,Or=function(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")})}function ju(){if(Er)return Sr;Er=1;var t=J(),n=ue();return Sr=function(e){if(!n(e))return!1;var r=t(e);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"}}function Se(){if(Ar)return Cr;Ar=1;var t=ju(),n=rt();return Cr=function(e){return e!=null&&n(e.length)&&!t(e)}}function he(){if(Rr)return kr;Rr=1;var t=_u(),n=as(),e=Se();return kr=function(r){return e(r)?t(r):n(r)}}function Ou(){if(Tr)return Pr;Tr=1;var t=is(),n=he();return Pr=function(e,r){return e&&t(e,r,n)}}function Mu(){return Ur?Lr:(Ur=1,Lr=function(t){return t})}function at(){if(zr)return Br;zr=1;var t=Ou(),n=function(){if(Dr)return Fr;Dr=1;var e=Mu();return Fr=function(r){return typeof r=="function"?r:e}}();return Br=function(e,r){return e&&t(e,n(r))}}function ut(){if(Wr)return Hr;Wr=1;var t=xu()(Object.getPrototypeOf,Object);return Hr=t}function Su(){return Ir||(Ir=1,ke=function(t,n){for(var e=-1,r=t==null?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}),ke}function st(){return Yr?qr:(Yr=1,qr=function(t,n){return t===n||t!=t&&n!=n})}function ge(){if(Kr)return Gr;Kr=1;var t=st();return Gr=function(n,e){for(var r=n.length;r--;)if(t(n[r][0],e))return r;return-1}}function _e(){if(nn)return rn;nn=1;var t=Xr?Vr:(Xr=1,Vr=function(){this.__data__=[],this.size=0}),n=function(){if(Jr)return Re;Jr=1;var a=ge(),s=Array.prototype.splice;return Re=function(i){var c=this.__data__,l=a(c,i);return!(l<0||(l==c.length-1?c.pop():s.call(c,l,1),--this.size,0))},Re}(),e=function(){if(Qr)return Pe;Qr=1;var a=ge();return Pe=function(s){var i=this.__data__,c=a(i,s);return c<0?void 0:i[c][1]},Pe}(),r=function(){if(en)return Zr;en=1;var a=ge();return Zr=function(s){return a(this.__data__,s)>-1}}(),o=function(){if(tn)return Te;tn=1;var a=ge();return Te=function(s,i){var c=this.__data__,l=a(c,s);return l<0?(++this.size,c.push([s,i])):c[l][1]=i,this},Te}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,rn=u}function us(){if(vn)return bn;vn=1;var t,n=function(){if(dn)return pn;dn=1;var r=N()["__core-js_shared__"];return pn=r}(),e=(t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return bn=function(r){return!!e&&e in r}}function Eu(){if(yn)return gn;yn=1;var t=Function.prototype.toString;return gn=function(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}}function K(){if(On)return jn;On=1;var t=function(){if(wn)return mn;wn=1;var e=ju(),r=us(),o=ue(),u=Eu(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,i=Object.prototype,c=s.toString,l=i.hasOwnProperty,h=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return mn=function(p){return!(!o(p)||r(p))&&(e(p)?h:a).test(u(p))}}(),n=xn?_n:(xn=1,_n=function(e,r){return e?.[r]});return jn=function(e,r){var o=n(e,r);return t(o)?o:void 0}}function ct(){if(Sn)return Mn;Sn=1;var t=K()(N(),"Map");return Mn=t}function ye(){if(Cn)return En;Cn=1;var t=K()(Object,"create");return En=t}function ss(){if(Hn)return zn;Hn=1;var t=function(){if(kn)return An;kn=1;var a=ye();return An=function(){this.__data__=a?a(null):{},this.size=0}}(),n=Pn?Rn:(Pn=1,Rn=function(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}),e=function(){if(Ln)return Tn;Ln=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Tn=function(i){var c=this.__data__;if(a){var l=c[i];return l==="__lodash_hash_undefined__"?void 0:l}return s.call(c,i)?c[i]:void 0}}(),r=function(){if(Fn)return Un;Fn=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Un=function(i){var c=this.__data__;return a?c[i]!==void 0:s.call(c,i)}}(),o=function(){if(Bn)return Dn;Bn=1;var a=ye();return Dn=function(s,i){var c=this.__data__;return this.size+=this.has(s)?0:1,c[s]=a&&i===void 0?"__lodash_hash_undefined__":i,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,zn=u}function me(){if(Xn)return Vn;Xn=1;var t=In?Nn:(In=1,Nn=function(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null});return Vn=function(n,e){var r=n.__data__;return t(e)?r[typeof e=="string"?"string":"hash"]:r.map}}function ft(){if(ro)return to;ro=1;var t=function(){if($n)return Wn;$n=1;var a=ss(),s=_e(),i=ct();return Wn=function(){this.size=0,this.__data__={hash:new a,map:new(i||s),string:new a}}}(),n=function(){if(Yn)return qn;Yn=1;var a=me();return qn=function(s){var i=a(this,s).delete(s);return this.size-=i?1:0,i}}(),e=function(){if(Kn)return Gn;Kn=1;var a=me();return Gn=function(s){return a(this,s).get(s)}}(),r=function(){if(Qn)return Jn;Qn=1;var a=me();return Jn=function(s){return a(this,s).has(s)}}(),o=function(){if(eo)return Zn;eo=1;var a=me();return Zn=function(s,i){var c=a(this,s),l=c.size;return c.set(s,i),this.size+=c.size==l?0:1,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,to=u}function lt(){if(ao)return io;ao=1;var t=_e(),n=function(){if(an)return on;an=1;var s=_e();return on=function(){this.__data__=new s,this.size=0}}(),e=sn?un:(sn=1,un=function(s){var i=this.__data__,c=i.delete(s);return this.size=i.size,c}),r=fn?cn:(fn=1,cn=function(s){return this.__data__.get(s)}),o=hn?ln:(hn=1,ln=function(s){return this.__data__.has(s)}),u=function(){if(oo)return no;oo=1;var s=_e(),i=ct(),c=ft();return no=function(l,h){var p=this.__data__;if(p instanceof s){var v=p.__data__;if(!i||v.length<199)return v.push([l,h]),this.size=++p.size,this;p=this.__data__=new c(v)}return p.set(l,h),this.size=p.size,this}}();function a(s){var i=this.__data__=new t(s);this.size=i.size}return a.prototype.clear=n,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=o,a.prototype.set=u,io=a}function cs(){if(ho)return lo;ho=1;var t=ft(),n=so?uo:(so=1,uo=function(o){return this.__data__.set(o,"__lodash_hash_undefined__"),this}),e=fo?co:(fo=1,co=function(o){return this.__data__.has(o)});function r(o){var u=-1,a=o==null?0:o.length;for(this.__data__=new t;++u<a;)this.add(o[u])}return r.prototype.add=r.prototype.push=n,r.prototype.has=e,lo=r}function Cu(){if(yo)return Le;yo=1;var t=cs(),n=(bo||(bo=1,po=function(r,o){for(var u=-1,a=r==null?0:r.length;++u<a;)if(o(r[u],u,r))return!0;return!1}),po),e=go?vo:(go=1,vo=function(r,o){return r.has(o)});return Le=function(r,o,u,a,s,i){var c=1&u,l=r.length,h=o.length;if(l!=h&&!(c&&h>l))return!1;var p=i.get(r),v=i.get(o);if(p&&v)return p==o&&v==r;var d=-1,f=!0,b=2&u?new t:void 0;for(i.set(r,o),i.set(o,r);++d<l;){var g=r[d],y=o[d];if(a)var x=c?a(y,g,d,o,r,i):a(g,y,d,r,o,i);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!n(o,function(j,C){if(!e(b,C)&&(g===j||s(g,j,u,a,i)))return b.push(C)})){f=!1;break}}else if(g!==y&&!s(g,y,u,a,i)){f=!1;break}}return i.delete(r),i.delete(o),f},Le}function Au(){if(wo)return mo;wo=1;var t=N().Uint8Array;return mo=t}function fs(){if(So)return Mo;So=1;var t=le(),n=Au(),e=st(),r=Cu(),o=(xo||(xo=1,_o=function(i){var c=-1,l=Array(i.size);return i.forEach(function(h,p){l[++c]=[p,h]}),l}),_o),u=(Oo||(Oo=1,jo=function(i){var c=-1,l=Array(i.size);return i.forEach(function(h){l[++c]=h}),l}),jo),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return Mo=function(i,c,l,h,p,v,d){switch(l){case"[object DataView]":if(i.byteLength!=c.byteLength||i.byteOffset!=c.byteOffset)return!1;i=i.buffer,c=c.buffer;case"[object ArrayBuffer]":return!(i.byteLength!=c.byteLength||!v(new n(i),new n(c)));case"[object Boolean]":case"[object Date]":case"[object Number]":return e(+i,+c);case"[object Error]":return i.name==c.name&&i.message==c.message;case"[object RegExp]":case"[object String]":return i==c+"";case"[object Map]":var f=o;case"[object Set]":var b=1&h;if(f||(f=u),i.size!=c.size&&!b)return!1;var g=d.get(i);if(g)return g==c;h|=2,d.set(i,c);var y=r(f(i),f(c),h,p,v,d);return d.delete(i),y;case"[object Symbol]":if(s)return s.call(i)==s.call(c)}return!1}}function ku(){return Eo||(Eo=1,Ue=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}),Ue}function Ru(){if(Ao)return Co;Ao=1;var t=ku(),n=H();return Co=function(e,r,o){var u=r(e);return n(e)?u:t(u,o(e))}}function Pu(){return To?Po:(To=1,Po=function(){return[]})}function ht(){if(Uo)return Lo;Uo=1;var t=(Ro||(Ro=1,ko=function(o,u){for(var a=-1,s=o==null?0:o.length,i=0,c=[];++a<s;){var l=o[a];u(l,a,o)&&(c[i++]=l)}return c}),ko),n=Pu(),e=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Lo=r?function(o){return o==null?[]:(o=Object(o),t(r(o),function(u){return e.call(o,u)}))}:n}function Tu(){if(Do)return Fo;Do=1;var t=Ru(),n=ht(),e=he();return Fo=function(r){return t(r,e,n)}}function Ee(){if(Yo)return qo;Yo=1;var t=function(){if(Ho)return zo;Ho=1;var y=K()(N(),"DataView");return zo=y}(),n=ct(),e=function(){if($o)return Wo;$o=1;var y=K()(N(),"Promise");return Wo=y}(),r=function(){if(Io)return No;Io=1;var y=K()(N(),"Set");return No=y}(),o=function(){if(Xo)return Vo;Xo=1;var y=K()(N(),"WeakMap");return Vo=y}(),u=J(),a=Eu(),s="[object Map]",i="[object Promise]",c="[object Set]",l="[object WeakMap]",h="[object DataView]",p=a(t),v=a(n),d=a(e),f=a(r),b=a(o),g=u;return(t&&g(new t(new ArrayBuffer(1)))!=h||n&&g(new n)!=s||e&&g(e.resolve())!=i||r&&g(new r)!=c||o&&g(new o)!=l)&&(g=function(y){var x=u(y),j=x=="[object Object]"?y.constructor:void 0,C=j?a(j):"";if(C)switch(C){case p:return h;case v:return s;case d:return i;case f:return c;case b:return l}return x}),qo=g}function ls(){if(Ko)return Go;Ko=1;var t=lt(),n=Cu(),e=fs(),r=function(){if(Bo)return Fe;Bo=1;var p=Tu(),v=Object.prototype.hasOwnProperty;return Fe=function(d,f,b,g,y,x){var j=1&b,C=p(d),R=C.length;if(R!=p(f).length&&!j)return!1;for(var L=R;L--;){var T=C[L];if(!(j?T in f:v.call(f,T)))return!1}var O=x.get(d),S=x.get(f);if(O&&S)return O==f&&S==d;var m=!0;x.set(d,f),x.set(f,d);for(var M=j;++L<R;){var E=d[T=C[L]],I=f[T];if(g)var W=j?g(I,E,T,f,d,x):g(E,I,T,d,f,x);if(!(W===void 0?E===I||y(E,I,b,g,x):W)){m=!1;break}M||(M=T=="constructor")}if(m&&!M){var U=d.constructor,A=f.constructor;U==A||!("constructor"in d)||!("constructor"in f)||typeof U=="function"&&U instanceof U&&typeof A=="function"&&A instanceof A||(m=!1)}return x.delete(d),x.delete(f),m},Fe}(),o=Ee(),u=H(),a=tt(),s=wu(),i="[object Arguments]",c="[object Array]",l="[object Object]",h=Object.prototype.hasOwnProperty;return Go=function(p,v,d,f,b,g){var y=u(p),x=u(v),j=y?c:o(p),C=x?c:o(v),R=(j=j==i?l:j)==l,L=(C=C==i?l:C)==l,T=j==C;if(T&&a(p)){if(!a(v))return!1;y=!0,R=!1}if(T&&!R)return g||(g=new t),y||s(p)?n(p,v,d,f,b,g):e(p,v,j,d,f,b,g);if(!(1&d)){var O=R&&h.call(p,"__wrapped__"),S=L&&h.call(v,"__wrapped__");if(O||S){var m=O?p.value():p,M=S?v.value():v;return g||(g=new t),b(m,M,d,f,g)}}return!!T&&(g||(g=new t),r(p,v,d,f,b,g))}}function Lu(){if(Jo)return De;Jo=1;var t=ls(),n=X();return De=function e(r,o,u,a,s){return r===o||(r==null||o==null||!n(r)&&!n(o)?r!=r&&o!=o:t(r,o,u,a,e,s))},De}function Uu(){if(ei)return Zo;ei=1;var t=ue();return Zo=function(n){return n==n&&!t(n)}}function Fu(){return oi?ni:(oi=1,ni=function(t,n){return function(e){return e!=null&&e[t]===n&&(n!==void 0||t in Object(e))}})}function hs(){if(ai)return ii;ai=1;var t=function(){if(Qo)return Be;Qo=1;var r=lt(),o=Lu();return Be=function(u,a,s,i){var c=s.length,l=c,h=!i;if(u==null)return!l;for(u=Object(u);c--;){var p=s[c];if(h&&p[2]?p[1]!==u[p[0]]:!(p[0]in u))return!1}for(;++c<l;){var v=(p=s[c])[0],d=u[v],f=p[1];if(h&&p[2]){if(d===void 0&&!(v in u))return!1}else{var b=new r;if(i)var g=i(d,f,v,u,a,b);if(!(g===void 0?o(f,d,3,i,b):g))return!1}}return!0},Be}(),n=function(){if(ri)return ti;ri=1;var r=Uu(),o=he();return ti=function(u){for(var a=o(u),s=a.length;s--;){var i=a[s],c=u[i];a[s]=[i,c,r(c)]}return a}}(),e=Fu();return ii=function(r){var o=n(r);return o.length==1&&o[0][2]?e(o[0][0],o[0][1]):function(u){return u===r||t(u,r,o)}}}function pt(){if(si)return ui;si=1;var t=J(),n=X();return ui=function(e){return typeof e=="symbol"||n(e)&&t(e)=="[object Symbol]"}}function dt(){if(fi)return ci;fi=1;var t=H(),n=pt(),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return ci=function(o,u){if(t(o))return!1;var a=typeof o;return!(a!="number"&&a!="symbol"&&a!="boolean"&&o!=null&&!n(o))||r.test(o)||!e.test(o)||u!=null&&o in Object(u)}}function ps(){if(di)return pi;di=1;var t=function(){if(hi)return li;hi=1;var n=ft();function e(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError("Expected a function");var u=function(){var a=arguments,s=o?o.apply(this,a):a[0],i=u.cache;if(i.has(s))return i.get(s);var c=r.apply(this,a);return u.cache=i.set(s,c)||i,c};return u.cache=new(e.Cache||n),u}return e.Cache=n,li=e}();return pi=function(n){var e=t(n,function(o){return r.size===500&&r.clear(),o}),r=e.cache;return e}}function ds(){if(mi)return yi;mi=1;var t=function(){if(gi)return ze;gi=1;var n=le(),e=Su(),r=H(),o=pt(),u=n?n.prototype:void 0,a=u?u.toString:void 0;return ze=function s(i){if(typeof i=="string")return i;if(r(i))return e(i,s)+"";if(o(i))return a?a.call(i):"";var c=i+"";return c=="0"&&1/i==-1/0?"-0":c},ze}();return yi=function(n){return n==null?"":t(n)}}function Du(){if(_i)return wi;_i=1;var t=H(),n=dt(),e=function(){if(vi)return bi;vi=1;var o=ps(),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o(function(i){var c=[];return i.charCodeAt(0)===46&&c.push(""),i.replace(u,function(l,h,p,v){c.push(p?v.replace(a,"$1"):h||l)}),c});return bi=s}(),r=ds();return wi=function(o,u){return t(o)?o:n(o,u)?[o]:e(r(o))}}function Ce(){if(ji)return xi;ji=1;var t=pt();return xi=function(n){if(typeof n=="string"||t(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}}function Bu(){if(Oi)return He;Oi=1;var t=Du(),n=Ce();return He=function(e,r){for(var o=0,u=(r=t(r,e)).length;e!=null&&o<u;)e=e[n(r[o++])];return o&&o==u?e:void 0},He}function bs(){if(Ri)return ki;Ri=1;var t=Ci?Ei:(Ci=1,Ei=function(e,r){return e!=null&&r in Object(e)}),n=function(){if(Ai)return We;Ai=1;var e=Du(),r=yu(),o=H(),u=mu(),a=rt(),s=Ce();return We=function(i,c,l){for(var h=-1,p=(c=e(c,i)).length,v=!1;++h<p;){var d=s(c[h]);if(!(v=i!=null&&l(i,d)))break;i=i[d]}return v||++h!=p?v:!!(p=i==null?0:i.length)&&a(p)&&u(d,p)&&(o(i)||r(i))},We}();return ki=function(e,r){return e!=null&&n(e,r,t)}}function vs(){if(Ti)return Pi;Ti=1;var t=Lu(),n=function(){if(Si)return Mi;Si=1;var s=Bu();return Mi=function(i,c,l){var h=i==null?void 0:s(i,c);return h===void 0?l:h}}(),e=bs(),r=dt(),o=Uu(),u=Fu(),a=Ce();return Pi=function(s,i){return r(s)&&o(i)?u(a(s),i):function(c){var l=n(c,s);return l===void 0&&l===i?e(c,s):t(i,l,3)}}}function gs(){if(zi)return Bi;zi=1;var t=Ui?Li:(Ui=1,Li=function(o){return function(u){return u?.[o]}}),n=function(){if(Di)return Fi;Di=1;var o=Bu();return Fi=function(u){return function(a){return o(a,u)}}}(),e=dt(),r=Ce();return Bi=function(o){return e(o)?t(r(o)):n(o)}}function ys(){if(Ii)return Ni;Ii=1;var t=Ou(),n=function(){if($i)return $e;$i=1;var r=Se();return $e=function(o,u){return function(a,s){if(a==null)return a;if(!r(a))return o(a,s);for(var i=a.length,c=u?i:-1,l=Object(a);(u?c--:++c<i)&&s(l[c],c,l)!==!1;);return a}},$e}(),e=n(t);return Ni=e}function ms(){if(qi)return Xi;qi=1;var t=Su(),n=function(){if(Wi)return Hi;Wi=1;var o=hs(),u=vs(),a=Mu(),s=H(),i=gs();return Hi=function(c){return typeof c=="function"?c:c==null?a:typeof c=="object"?s(c)?u(c[0],c[1]):o(c):i(c)}}(),e=function(){if(Vi)return Ne;Vi=1;var o=ys(),u=Se();return Ne=function(a,s){var i=-1,c=u(a)?Array(a.length):[];return o(a,function(l,h,p){c[++i]=s(l,h,p)}),c},Ne}(),r=H();return Xi=function(o,u){return(r(o)?t:e)(o,n(u,3))}}function ws(){if(Yi)return re;Yi=1,Object.defineProperty(re,"__esModule",{value:!0}),re.flattenNames=void 0;var t=function(){if(Nt)return $t;Nt=1;var i=J(),c=H(),l=X();return $t=function(h){return typeof h=="string"||!c(h)&&l(h)&&i(h)=="[object String]"}}(),n=a(t),e=a(at()),r=function(){if(Nr)return $r;Nr=1;var i=J(),c=ut(),l=X(),h=Function.prototype,p=Object.prototype,v=h.toString,d=p.hasOwnProperty,f=v.call(Object);return $r=function(b){if(!l(b)||i(b)!="[object Object]")return!1;var g=c(b);if(g===null)return!0;var y=d.call(g,"constructor")&&g.constructor;return typeof y=="function"&&y instanceof y&&v.call(y)==f}}(),o=a(r),u=a(ms());function a(i){return i&&i.__esModule?i:{default:i}}var s=re.flattenNames=function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=[];return(0,u.default)(c,function(h){Array.isArray(h)?i(h).map(function(p){return l.push(p)}):(0,o.default)(h)?(0,e.default)(h,function(p,v){p===!0&&l.push(v),l.push(v+"-"+p)}):(0,n.default)(h)&&l.push(h)}),l};return re.default=s,re}var Gi,Ki,Ji,Qi,Zi,ea,ta,ra,Ve,na,oa,ia,aa,ua,sa,ca,fa,la,ha,pa,ne={};function zu(){if(ea)return Zi;ea=1;var t=function(){if(Qi)return Ji;Qi=1;var n=K(),e=function(){try{var r=n(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ji=e}();return Zi=function(n,e,r){e=="__proto__"&&t?t(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}}function Hu(){if(ra)return ta;ra=1;var t=zu(),n=st(),e=Object.prototype.hasOwnProperty;return ta=function(r,o,u){var a=r[o];e.call(r,o)&&n(a,u)&&(u!==void 0||o in r)||t(r,o,u)}}function we(){if(na)return Ve;na=1;var t=Hu(),n=zu();return Ve=function(e,r,o,u){var a=!o;o||(o={});for(var s=-1,i=r.length;++s<i;){var c=r[s],l=u?u(o[c],e[c],c,o,e):void 0;l===void 0&&(l=e[c]),a?n(o,c,l):t(o,c,l)}return o},Ve}function _s(){if(ca)return sa;ca=1;var t=ue(),n=it(),e=ua?aa:(ua=1,aa=function(o){var u=[];if(o!=null)for(var a in Object(o))u.push(a);return u}),r=Object.prototype.hasOwnProperty;return sa=function(o){if(!t(o))return e(o);var u=n(o),a=[];for(var s in o)(s!="constructor"||!u&&r.call(o,s))&&a.push(s);return a}}function Xe(){if(la)return fa;la=1;var t=_u(),n=_s(),e=Se();return fa=function(r){return e(r)?t(r,!0):n(r)}}var da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,Ea,Ca,Aa,ka,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,qe,Ja,Qa,Za,eu,Ye={exports:{}};function tu(){if(wa)return ma;wa=1;var t=ku(),n=ut(),e=ht(),r=Pu(),o=Object.getOwnPropertySymbols;return ma=o?function(u){for(var a=[];u;)t(a,e(u)),u=n(u);return a}:r}function Ge(){if(Ca)return Ea;Ca=1;var t=Au();return Ea=function(n){var e=new n.constructor(n.byteLength);return new t(e).set(new t(n)),e}}function xs(){if(Ba)return Da;Ba=1;var t=Ge(),n=function(){if(ka)return Aa;ka=1;var u=Ge();return Aa=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.byteLength)}}(),e=function(){if(Pa)return Ra;Pa=1;var u=/\w*$/;return Ra=function(a){var s=new a.constructor(a.source,u.exec(a));return s.lastIndex=a.lastIndex,s}}(),r=function(){if(La)return Ta;La=1;var u=le(),a=u?u.prototype:void 0,s=a?a.valueOf:void 0;return Ta=function(i){return s?Object(s.call(i)):{}}}(),o=function(){if(Fa)return Ua;Fa=1;var u=Ge();return Ua=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.length)}}();return Da=function(u,a,s){var i=u.constructor;switch(a){case"[object ArrayBuffer]":return t(u);case"[object Boolean]":case"[object Date]":return new i(+u);case"[object DataView]":return n(u,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(u,s);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(u);case"[object RegExp]":return e(u);case"[object Symbol]":return r(u)}}}function js(){if($a)return Wa;$a=1;var t=function(){if(Ha)return za;Ha=1;var r=ue(),o=Object.create,u=function(){function a(){}return function(s){if(!r(s))return{};if(o)return o(s);a.prototype=s;var i=new a;return a.prototype=void 0,i}}();return za=u}(),n=ut(),e=it();return Wa=function(r){return typeof r.constructor!="function"||e(r)?{}:t(n(r))}}function Os(){if(Xa)return Va;Xa=1;var t=function(){if(Ia)return Na;Ia=1;var u=Ee(),a=X();return Na=function(s){return a(s)&&u(s)=="[object Map]"}}(),n=nt(),e=ot(),r=e&&e.isMap,o=r?n(r):t;return Va=o}function Ms(){if(Ka)return Ga;Ka=1;var t=function(){if(Ya)return qa;Ya=1;var u=Ee(),a=X();return qa=function(s){return a(s)&&u(s)=="[object Set]"}}(),n=nt(),e=ot(),r=e&&e.isSet,o=r?n(r):t;return Ga=o}function Ss(){if(Ja)return qe;Ja=1;var t=lt(),n=(Ki||(Ki=1,Gi=function(S,m){for(var M=-1,E=S==null?0:S.length;++M<E&&m(S[M],M,S)!==!1;);return S}),Gi),e=Hu(),r=function(){if(ia)return oa;ia=1;var S=we(),m=he();return oa=function(M,E){return M&&S(E,m(E),M)}}(),o=function(){if(pa)return ha;pa=1;var S=we(),m=Xe();return ha=function(M,E){return M&&S(E,m(E),M)}}(),u=(da||(da=1,function(S,m){var M=N(),E=m&&!m.nodeType&&m,I=E&&S&&!S.nodeType&&S,W=I&&I.exports===E?M.Buffer:void 0,U=W?W.allocUnsafe:void 0;S.exports=function(A,Z){if(Z)return A.slice();var G=A.length,pe=U?U(G):new A.constructor(G);return A.copy(pe),pe}}(Ye,Ye.exports)),Ye.exports),a=(va||(va=1,ba=function(S,m){var M=-1,E=S.length;for(m||(m=Array(E));++M<E;)m[M]=S[M];return m}),ba),s=function(){if(ya)return ga;ya=1;var S=we(),m=ht();return ga=function(M,E){return S(M,m(M),E)}}(),i=function(){if(xa)return _a;xa=1;var S=we(),m=tu();return _a=function(M,E){return S(M,m(M),E)}}(),c=Tu(),l=function(){if(Oa)return ja;Oa=1;var S=Ru(),m=tu(),M=Xe();return ja=function(E){return S(E,M,m)}}(),h=Ee(),p=function(){if(Sa)return Ma;Sa=1;var S=Object.prototype.hasOwnProperty;return Ma=function(m){var M=m.length,E=new m.constructor(M);return M&&typeof m[0]=="string"&&S.call(m,"index")&&(E.index=m.index,E.input=m.input),E}}(),v=xs(),d=js(),f=H(),b=tt(),g=Os(),y=ue(),x=Ms(),j=he(),C=Xe(),R="[object Arguments]",L="[object Function]",T="[object Object]",O={};return O[R]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[L]=O["[object WeakMap]"]=!1,qe=function S(m,M,E,I,W,U){var A,Z=1&M,G=2&M,pe=4&M;if(E&&(A=W?E(m,I,W,U):E(m)),A!==void 0)return A;if(!y(m))return m;var vt=f(m);if(vt){if(A=p(m),!Z)return a(m,A)}else{var ee=h(m),gt=ee==L||ee=="[object GeneratorFunction]";if(b(m))return u(m,Z);if(ee==T||ee==R||gt&&!W){if(A=G||gt?{}:d(m),!Z)return G?i(m,o(A,m)):s(m,r(A,m))}else{if(!O[ee])return W?m:{};A=v(m,ee,Z)}}U||(U=new t);var yt=U.get(m);if(yt)return yt;U.set(m,A),x(m)?m.forEach(function(q){A.add(S(q,M,E,q,m,U))}):g(m)&&m.forEach(function(q,te){A.set(te,S(q,M,E,te,m,U))});var mt=vt?void 0:(pe?G?l:c:G?C:j)(m);return n(mt||m,function(q,te){mt&&(q=m[te=q]),e(A,te,S(q,M,E,te,m,U))}),A},qe}function Es(){if(eu)return ne;eu=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.mergeClasses=void 0;var t=r(at()),n=r(function(){if(Za)return Qa;Za=1;var u=Ss();return Qa=function(a){return u(a,5)}}()),e=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u};function r(u){return u&&u.__esModule?u:{default:u}}var o=ne.mergeClasses=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=u.default&&(0,n.default)(u.default)||{};return a.map(function(i){var c=u[i];return c&&(0,t.default)(c,function(l,h){s[h]||(s[h]={}),s[h]=e({},s[h],c[h])}),i}),s};return ne.default=o,ne}var ru,oe={},nu,ie={};function Cs(){if(nu)return ie;nu=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.hover=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ie.hover=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var c,l,h;(function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(c=i.__proto__||Object.getPrototypeOf(i)).call.apply(c,[this].concat(v))),h.state={hover:!1},h.handleMouseOver=function(){return h.setState({hover:!0})},h.handleMouseOut=function(){return h.setState({hover:!1})},h.render=function(){return e.default.createElement(a,{onMouseOver:h.handleMouseOver,onMouseOut:h.handleMouseOut},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}(i,s),i}(e.default.Component)};return ie.default=o,ie}var ou,ae={};function As(){if(ou)return ae;ou=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.active=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ae.active=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var c,l,h;(function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(c=i.__proto__||Object.getPrototypeOf(i)).call.apply(c,[this].concat(v))),h.state={active:!1},h.handleMouseDown=function(){return h.setState({active:!0})},h.handleMouseUp=function(){return h.setState({active:!1})},h.render=function(){return e.default.createElement(a,{onMouseDown:h.handleMouseDown,onMouseUp:h.handleMouseUp},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}(i,s),i}(e.default.Component)};return ae.default=o,ae}var iu,au,Ke={},ks=function(){if(au)return F;au=1,Object.defineProperty(F,"__esModule",{value:!0}),F.ReactCSS=F.loop=F.handleActive=F.handleHover=F.hover=void 0;var t=s(ws()),n=s(Es()),e=function(){if(ru)return oe;ru=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.autoprefix=void 0;var c,l=at(),h=(c=l)&&c.__esModule?c:{default:c},p=Object.assign||function(f){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(f[y]=g[y])}return f},v={borderRadius:function(f){return{msBorderRadius:f,MozBorderRadius:f,OBorderRadius:f,WebkitBorderRadius:f,borderRadius:f}},boxShadow:function(f){return{msBoxShadow:f,MozBoxShadow:f,OBoxShadow:f,WebkitBoxShadow:f,boxShadow:f}},userSelect:function(f){return{WebkitTouchCallout:f,KhtmlUserSelect:f,MozUserSelect:f,msUserSelect:f,WebkitUserSelect:f,userSelect:f}},flex:function(f){return{WebkitBoxFlex:f,MozBoxFlex:f,WebkitFlex:f,msFlex:f,flex:f}},flexBasis:function(f){return{WebkitFlexBasis:f,flexBasis:f}},justifyContent:function(f){return{WebkitJustifyContent:f,justifyContent:f}},transition:function(f){return{msTransition:f,MozTransition:f,OTransition:f,WebkitTransition:f,transition:f}},transform:function(f){return{msTransform:f,MozTransform:f,OTransform:f,WebkitTransform:f,transform:f}},absolute:function(f){var b=f&&f.split(" ");return{position:"absolute",top:b&&b[0],right:b&&b[1],bottom:b&&b[2],left:b&&b[3]}},extend:function(f,b){return b[f]||{extend:f}}},d=oe.autoprefix=function(f){var b={};return(0,h.default)(f,function(g,y){var x={};(0,h.default)(g,function(j,C){var R=v[C];R?x=p({},x,R(j)):x[C]=j}),b[y]=x}),b};return oe.default=d,oe}(),r=s(e),o=s(Cs()),u=s(As()),a=s((iu||(iu=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=function(c,l){var h={},p=function(v){var d=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];h[v]=d};return c===0&&p("first-child"),c===l-1&&p("last-child"),(c===0||c%2==0)&&p("even"),Math.abs(c%2)===1&&p("odd"),p("nth-child",c),h}),Ke));function s(c){return c&&c.__esModule?c:{default:c}}F.hover=o.default,F.handleHover=o.default,F.handleActive=u.default,F.loop=a.default;var i=F.ReactCSS=function(c){for(var l=arguments.length,h=Array(l>1?l-1:0),p=1;p<l;p++)h[p-1]=arguments[p];var v=(0,t.default)(h),d=(0,n.default)(c,v);return(0,r.default)(d)};return F.default=i,F}();const Q=$.getDefaultExportFromCjs(ks);var Je={},Rs=function(t,n,e,r){var o=t+"-"+n+"-"+e+(r?"-server":"");if(Je[o])return Je[o];var u=function(a,s,i,c){if(typeof document>"u"&&!c)return null;var l=c?new c:document.createElement("canvas");l.width=2*i,l.height=2*i;var h=l.getContext("2d");return h?(h.fillStyle=a,h.fillRect(0,0,l.width,l.height),h.fillStyle=s,h.fillRect(0,0,i,i),h.translate(i,i),h.fillRect(0,0,i,i),l.toDataURL()):null}(t,n,e,r);return Je[o]=u,u},uu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},bt=function(t){var n=t.white,e=t.grey,r=t.size,o=t.renderers,u=t.borderRadius,a=t.boxShadow,s=t.children,i=Q({default:{grid:{borderRadius:u,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+Rs(n,e,r,o.canvas)+") center left"}}});return w.isValidElement(s)?w.cloneElement(s,uu({},s.props,{style:uu({},s.props.style,i.grid)})):w.createElement("div",{style:i.grid})};bt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Ps=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ts=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function su(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var Ls=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=su(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(c,l,h,p,v){var d=v.clientWidth,f=v.clientHeight,b=typeof c.pageX=="number"?c.pageX:c.touches[0].pageX,g=typeof c.pageY=="number"?c.pageY:c.touches[0].pageY,y=b-(v.getBoundingClientRect().left+window.pageXOffset),x=g-(v.getBoundingClientRect().top+window.pageYOffset);if(h==="vertical"){var j=void 0;if(j=x<0?0:x>f?1:Math.round(100*x/f)/100,l.a!==j)return{h:l.h,s:l.s,l:l.l,a:j,source:"rgb"}}else{var C=void 0;if(p!==(C=y<0?0:y>d?1:Math.round(100*y/d)/100))return{h:l.h,s:l.s,l:l.l,a:C,source:"rgb"}}return null}(s,r.props.hsl,r.props.direction,r.props.a,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},su(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Ts(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,e=this.props.rgb,r=Q({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
7
- rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
8
- rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:Ps({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return w.createElement("div",{style:r.alpha},w.createElement("div",{style:r.checkboard},w.createElement(bt,{renderers:this.props.renderers})),w.createElement("div",{style:r.gradient}),w.createElement("div",{style:r.container,ref:function(o){return n.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("div",{style:r.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:r.slider}))))}}]),t}(),Us=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),Fs=[38,40],Ds=1,se=function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleBlur=function(){e.state.blurValue&&e.setState({value:e.state.blurValue,blurValue:null})},e.handleChange=function(r){e.setUpdatedValue(r.target.value,r)},e.handleKeyDown=function(r){var o,u=function(i){return Number(String(i).replace(/%/g,""))}(r.target.value);if(!isNaN(u)&&(o=r.keyCode,Fs.indexOf(o)>-1)){var a=e.getArrowOffset(),s=r.keyCode===38?u+a:u-a;e.setUpdatedValue(s,r)}},e.handleDrag=function(r){if(e.props.dragLabel){var o=Math.round(e.props.value+r.movementX);o>=0&&o<=e.props.dragMax&&e.props.onChange&&e.props.onChange(e.getValueObjectWithLabel(o),r)}},e.handleMouseDown=function(r){e.props.dragLabel&&(r.preventDefault(),e.handleDrag(r),window.addEventListener("mousemove",e.handleDrag),window.addEventListener("mouseup",e.handleMouseUp))},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleDrag),window.removeEventListener("mouseup",e.handleMouseUp)},e.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},e.inputId="rc-editable-input-"+Ds++,e}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Us(t,[{key:"componentDidUpdate",value:function(n,e){this.props.value===this.state.value||n.value===this.props.value&&e.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return function(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(n,e){var r=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(r,e),this.setState({value:n})}},{key:"render",value:function(){var n=this,e=Q({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return w.createElement("div",{style:e.wrap},w.createElement("input",{id:this.inputId,style:e.input,ref:function(r){return n.input=r},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?w.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Bs=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function cu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var zs=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=cu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(c,l,h,p){var v=p.clientWidth,d=p.clientHeight,f=typeof c.pageX=="number"?c.pageX:c.touches[0].pageX,b=typeof c.pageY=="number"?c.pageY:c.touches[0].pageY,g=f-(p.getBoundingClientRect().left+window.pageXOffset),y=b-(p.getBoundingClientRect().top+window.pageYOffset);if(l==="vertical"){var x=void 0;if(x=y<0?359:y>d?0:360*(-100*y/d+100)/100,h.h!==x)return{h:x,s:h.s,l:h.l,a:h.a,source:"hsl"}}else{var j=void 0;if(j=g<0?0:g>v?359:100*g/v*360/100,h.h!==j)return{h:j,s:h.s,l:h.l,a:h.a,source:"hsl"}}return null}(s,r.props.direction,r.props.hsl,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},cu(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Bs(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.direction,r=e===void 0?"horizontal":e,o=Q({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:r==="vertical"});return w.createElement("div",{style:o.hue},w.createElement("div",{className:"hue-"+r,style:o.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
9
- .hue-horizontal {
10
- background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
11
- 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
12
- background: -webkit-linear-gradient(to right, #f00 0%, #ff0
13
- 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
14
- }
15
-
16
- .hue-vertical {
17
- background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
18
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
19
- background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
20
- #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
21
- }
22
- `),w.createElement("div",{style:o.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:o.slider}))))}}]),t}(),Hs=typeof global=="object"&&global&&global.Object===Object&&global,Ws=typeof self=="object"&&self&&self.Object===Object&&self,Wu=Hs||Ws||Function("return this")(),je=Wu.Symbol,$u=Object.prototype,$s=$u.hasOwnProperty,Ns=$u.toString,ce=je?je.toStringTag:void 0,Is=Object.prototype.toString,fu=je?je.toStringTag:void 0;function Vs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":fu&&fu in Object(t)?function(n){var e=$s.call(n,ce),r=n[ce];try{n[ce]=void 0;var o=!0}catch{}var u=Ns.call(n);return o&&(e?n[ce]=r:delete n[ce]),u}(t):function(n){return Is.call(n)}(t)}function Oe(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}de.string,de.oneOf([0,1,2,3,4,5]),de.number,de.object;var Qe=function(){return Wu.Date.now()},Xs=/\s/,qs=/^\s+/;function Ys(t){return t&&t.slice(0,function(n){for(var e=n.length;e--&&Xs.test(n.charAt(e)););return e}(t)+1).replace(qs,"")}var Gs=/^[-+]0x[0-9a-f]+$/i,Ks=/^0b[01]+$/i,Js=/^0o[0-7]+$/i,Qs=parseInt;function lu(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return o!=null&&typeof o=="object"}(r)&&Vs(r)=="[object Symbol]"}(t))return NaN;if(Oe(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Oe(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=Ys(t);var e=Ks.test(t);return e||Js.test(t)?Qs(t.slice(2),e?2:8):Gs.test(t)?NaN:+t}var Zs=Math.max,ec=Math.min;function tc(t,n,e){var r,o,u,a,s,i,c=0,l=!1,h=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function v(y){var x=r,j=o;return r=o=void 0,c=y,a=t.apply(j,x)}function d(y){var x=y-i;return i===void 0||x>=n||x<0||h&&y-c>=u}function f(){var y=Qe();if(d(y))return b(y);s=setTimeout(f,function(x){var j=n-(x-i);return h?ec(j,u-(x-c)):j}(y))}function b(y){return s=void 0,p&&r?v(y):(r=o=void 0,a)}function g(){var y=Qe(),x=d(y);if(r=arguments,o=this,i=y,x){if(s===void 0)return function(j){return c=j,s=setTimeout(f,n),l?v(j):a}(i);if(h)return clearTimeout(s),s=setTimeout(f,n),v(i)}return s===void 0&&(s=setTimeout(f,n)),a}return n=lu(n)||0,Oe(e)&&(l=!!e.leading,u=(h="maxWait"in e)?Zs(lu(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),g.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0},g.flush=function(){return s===void 0?a:b(Qe())},g}var rc=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();(function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return e.handleChange=function(r){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,function(o,u,a){var s=a.getBoundingClientRect(),i=s.width,c=s.height,l=typeof o.pageX=="number"?o.pageX:o.touches[0].pageX,h=typeof o.pageY=="number"?o.pageY:o.touches[0].pageY,p=l-(a.getBoundingClientRect().left+window.pageXOffset),v=h-(a.getBoundingClientRect().top+window.pageYOffset);p<0?p=0:p>i&&(p=i),v<0?v=0:v>c&&(v=c);var d=p/i,f=1-v/c;return{h:u.h,s:d,v:f,a:u.a,source:"hsv"}}(r,e.props.hsl,e.container),r)},e.handleMouseDown=function(r){e.handleChange(r);var o=e.getContainerRenderWindow();o.addEventListener("mousemove",e.handleChange),o.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=function(r,o,u){var a=!0,s=!0;if(typeof r!="function")throw new TypeError("Expected a function");return Oe(u)&&(a="leading"in u?!!u.leading:a,s="trailing"in u?!!u.trailing:s),tc(r,o,{leading:a,maxWait:o,trailing:s})}(function(r,o,u){r(o,u)},50),e}(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)})(t,w.PureComponent||w.Component),rc(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,e=window;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.style||{},r=e.color,o=e.white,u=e.black,a=e.pointer,s=e.circle,i=Q({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
23
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:o,black:u,pointer:a,circle:s}},{custom:!!this.props.style});return w.createElement("div",{style:i.color,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
24
- .saturation-white {
25
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
26
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
27
- }
28
- .saturation-black {
29
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
30
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
31
- }
32
- `),w.createElement("div",{style:i.white,className:"saturation-white"},w.createElement("div",{style:i.black,className:"saturation-black"}),w.createElement("div",{style:i.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:i.circle}))))}}])})();var nc=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},oc=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function hu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var pu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};(function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";(function(){function e(){var r,o,u;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e);for(var a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];return o=u=hu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(s))),u.state={focus:!1},u.handleFocus=function(){return u.setState({focus:!0})},u.handleBlur=function(){return u.setState({focus:!1})},hu(u,o)}(function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)})(e,w.Component),oc(e,[{key:"render",value:function(){return w.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},w.createElement(t,nc({},this.props,this.state)))}}])})()})(function(t){var n=t.color,e=t.style,r=t.onClick,o=r===void 0?function(){}:r,u=t.onHover,a=t.title,s=a===void 0?n:a,i=t.children,c=t.focus,l=t.focusStyle,h=n==="transparent",p=Q({default:{swatch:pu({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},e,c?l===void 0?{}:l:{})}}),v={};return u&&(v.onMouseOver=function(d){return u(n,d)}),w.createElement("div",pu({style:p.swatch,onClick:function(d){return o(n,d)},title:s,tabIndex:0,onKeyDown:function(d){return d.keyCode===13&&o(n,d)}},v),i,h&&w.createElement(bt,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var ic=function(t){var n=t.onChange,e=t.rgb,r=t.hsl,o=t.hex,u=t.disableAlpha,a=Q({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),s=function(i,c){i.hex?function(l){if(l==="transparent")return!0;var h=String(l).charAt(0)==="#"?1:0;return l.length!==4+h&&l.length<7+h&&_(l).isValid()}(i.hex)&&n({hex:i.hex,source:"hex"},c):i.r||i.g||i.b?n({r:i.r||e.r,g:i.g||e.g,b:i.b||e.b,a:e.a,source:"rgb"},c):i.a&&(i.a<0?i.a=0:i.a>100&&(i.a=100),i.a/=100,n({h:r.h,s:r.s,l:r.l,a:i.a,source:"rgb"},c))};return w.createElement("div",{style:a.fields,className:"flexbox-fix"},w.createElement("div",{style:a.double},w.createElement(se,{style:{input:a.input,label:a.label},label:"hex",value:o.replace("#",""),onChange:s})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"r",value:e.r,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"g",value:e.g,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"b",value:e.b,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.alpha},w.createElement(se,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*e.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ac extends(w.PureComponent||w.Component){constructor(n){super(n),this.handleChange=e=>{typeof this.props.onChange=="function"&&this.throttle(this.props.onChange,((r,o,u)=>{var a=u.getBoundingClientRect(),s=a.width,i=a.height,c=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,l=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,h=c-(u.getBoundingClientRect().left+window.pageXOffset),p=l-(u.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>s&&(h=s),p<0?p=0:p>i&&(p=i);var v=h/s,d=1-p/i;return{h:o.h,s:v,v:d,a:o.a,source:"hsv"}})(e,this.props.hsl,this.container),e),e.preventDefault()},this.handleMouseDown=e=>{this.handleChange(e);const r=this.getContainerRenderWindow();r.addEventListener("mousemove",this.handleChange),r.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=e=>{e.preventDefault(),this.unbindEventListeners()},this.throttle=function(e,r,o){let u,a,s,i;var c=0;o||(o={});let l=function(){c=o.leading===!1?0:Date.now(),u=null,i=e.apply(a,s),u||(a=s=null)},h=function(){var p=Date.now();c||o.leading!==!1||(c=p);var v=r-(p-c);return a=this,s=arguments,v<=0||v>r?(u&&(clearTimeout(u),u=null),c=p,i=e.apply(a,s),u||(a=s=null)):u||o.trailing===!1||(u=setTimeout(l,v)),i};return h.cancel=function(){clearTimeout(u),c=0,u=a=s=null},h}((e,r,o)=>{e(r,o)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:n}=this;let e=window;for(;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:n,white:e,black:r,pointer:o,circle:u}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},s={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
33
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return P.jsxs("div",{style:s.color,ref:i=>this.container=i,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[P.jsx("style",{children:`
34
- .saturation-white {
35
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
36
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
37
- }
38
- .saturation-black {
39
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
40
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
41
- }
42
- `}),P.jsxs("div",{style:s.white,className:"saturation-white",children:[P.jsx("div",{style:s.black,className:"saturation-black"}),P.jsx("div",{style:s.pointer,children:this.props.pointer?P.jsx(this.props.pointer,{...this.props}):P.jsx("div",{style:s.circle})})]})]})}}const et=(t,n=null)=>{const e=t.hex?_(t.hex):_(t||"transparent"),r=e.toHsl(),o=e.toHsv(),u=e.toRgb(),a=e.toHex();return r.s===0&&(r.h=n??0,o.h=n??0),{hsl:r,hex:"#"+a,rgb:u,hsv:o,source:t.source}},du=w.memo(t=>{const{selectedColor:n,onColorChange:e,renderers:r,disableAlpha:o=!1,style:u=$.io.EmptyCssProperties,...a}=t,s=$.useTheme(),[i,c]=w.useState(()=>et(n)),[l,h]=w.useState(i.hsl.h??0),p=w.useCallback(f=>{let b=et(f,l);return h(b.hsl.h??0),c(b),b},[l]),v=w.useCallback(f=>{const b=p(f),g=`rgba(${b.rgb.r},${b.rgb.g},${b.rgb.b},${o?1:b.rgb.a})`;e?.(g)},[e,p,o]);w.useLayoutEffect(()=>{p(n)},[n,p]);const d=P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(Ls,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:i.rgb,hsl:i.hsl,renderers:r,onChange:v})});return P.jsxs("div",{style:{display:"flex",flexDirection:"column",...u},...a,children:[P.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:P.jsx(ac,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,hsv:i.hsv,onChange:v})}),P.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[P.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(zs,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,onChange:v})}),o?null:d]}),P.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[P.jsx($.Checkboard,{grey:s.palette.text.icon??s.palette.action.active}),P.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${i.rgb.r},${i.rgb.g},${i.rgb.b},${o?1:i.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),P.jsx(Nu.Box,{sx:{marginBottom:"4px","& label":{fontFamily:f=>`${f.typography.fontFamily} !important`,color:f=>`${f.palette.text.secondary} !important`},"& *":{fontFamily:f=>`${f.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:f=>`${f.spacing(.5)} !important`,paddingRight:f=>`${f.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:P.jsx(ic,{rgb:i.rgb,hsl:i.hsl,hex:i.hex,disableAlpha:o,onChange:v})})]})});exports.CustomColorPanel=du,exports.default=du,exports.toState=et;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */function Pe(){}function R(e){return typeof e=="object"&&e!==null||typeof e=="function"}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tr=Pe;function m(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch{}}const St=Promise,eo=Promise.resolve.bind(St),to=Promise.prototype.then,ro=Promise.reject.bind(St),oo=eo;function C(e){return new St(e)}function v(e){return C(t=>t(e))}function c(e){return ro(e)}function B(e,t,r){return to.call(e,t,r)}function W(e,t,r){B(B(e,t,r),void 0,tr)}function nt(e,t){W(e,t)}function bt(e,t){W(e,void 0,t)}function se(e,t,r){return B(e,t,r)}function Ae(e){B(e,void 0,tr)}let le=e=>{if(typeof queueMicrotask=="function")le=queueMicrotask;else{const t=v(void 0);le=r=>B(t,r)}return le(e)};function me(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function ge(e,t,r){try{return v(me(e,t,r))}catch(o){return c(o)}}class A{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(t){const r=this._back;let o=r;r._elements.length===16383&&(o={_elements:[],_next:void 0}),r._elements.push(t),o!==r&&(this._back=o,r._next=o),++this._size}shift(){const t=this._front;let r=t;const o=this._cursor;let i=o+1;const n=t._elements,s=n[o];return i===16384&&(r=t._next,i=0),--this._size,this._cursor=i,t!==r&&(this._front=r),n[o]=void 0,s}forEach(t){let r=this._cursor,o=this._front,i=o._elements;for(;!(r===i.length&&o._next===void 0||r===i.length&&(o=o._next,i=o._elements,r=0,i.length===0));)t(i[r]),++r}peek(){const t=this._front,r=this._cursor;return t._elements[r]}}const rr=Symbol("[[AbortSteps]]"),or=Symbol("[[ErrorSteps]]"),Rt=Symbol("[[CancelSteps]]"),Tt=Symbol("[[PullSteps]]"),qt=Symbol("[[ReleaseSteps]]");function nr(e,t){var r;e._ownerReadableStream=t,t._reader=e,t._state==="readable"?ht(e):t._state==="closed"?(ht(r=e),ar(r)):ir(e,t._storedError)}function Et(e,t){return k(e._ownerReadableStream,t)}function M(e){const t=e._ownerReadableStream;t._state==="readable"?Pt(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ir(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._readableStreamController[qt](),t._reader=void 0,e._ownerReadableStream=void 0}function Ge(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function ht(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function ir(e,t){ht(e),Pt(e,t)}function Pt(e,t){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function ar(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const xt=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},no=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function H(e,t){if(e!==void 0&&typeof(r=e)!="object"&&typeof r!="function")throw new TypeError(`${t} is not an object.`);var r}function K(e,t){if(typeof e!="function")throw new TypeError(`${t} is not a function.`)}function sr(e,t){if(!function(r){return typeof r=="object"&&r!==null||typeof r=="function"}(e))throw new TypeError(`${t} is not an object.`)}function ue(e,t,r){if(e===void 0)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function Nt(e,t,r){if(e===void 0)throw new TypeError(`${t} is required in '${r}'.`)}function lr(e){return Number(e)}function Yt(e){return e===0?0:e}function Ct(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=Yt(o),!xt(o))throw new TypeError(`${t} is not a finite number`);if(o=Yt(no(o)),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return xt(o)&&o!==0?o:0}function Ot(e,t){if(!Y(e))throw new TypeError(`${t} is not a ReadableStream.`)}function be(e){return new V(e)}function ur(e,t){e._reader._readRequests.push(t)}function jt(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function Ze(e){return e._reader._readRequests.length}function cr(e){const t=e._reader;return t!==void 0&&!!G(t)}class V{constructor(t){if(ue(t,1,"ReadableStreamDefaultReader"),Ot(t,"First parameter"),X(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");nr(this,t),this._readRequests=new A}get closed(){return G(this)?this._closedPromise:c(ze("closed"))}cancel(t=void 0){return G(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):Et(this,t):c(ze("cancel"))}read(){if(!G(this))return c(ze("read"));if(this._ownerReadableStream===void 0)return c(Ge("read from"));let t,r;const o=C((i,n)=>{t=i,r=n});return Ce(this,{_chunkSteps:i=>t({value:i,done:!1}),_closeSteps:()=>t({value:void 0,done:!0}),_errorSteps:i=>r(i)}),o}releaseLock(){if(!G(this))throw ze("releaseLock");var t;this._ownerReadableStream!==void 0&&(M(t=this),dr(t,new TypeError("Reader was released")))}}function G(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof V}function Ce(e,t){const r=e._ownerReadableStream;r._disturbed=!0,r._state==="closed"?t._closeSteps():r._state==="errored"?t._errorSteps(r._storedError):r._readableStreamController[Tt](t)}function dr(e,t){const r=e._readRequests;e._readRequests=new A,r.forEach(o=>{o._errorSteps(t)})}function ze(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var it,at,st;function Se(e){return e.slice()}function fr(e,t,r,o,i){new Uint8Array(e).set(new Uint8Array(r,o,i),t)}Object.defineProperties(V.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),m(V.prototype.cancel,"cancel"),m(V.prototype.read,"read"),m(V.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(V.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let ce=e=>(ce=typeof e.transfer=="function"?t=>t.transfer():typeof structuredClone=="function"?t=>structuredClone(t,{transfer:[t]}):t=>t,ce(e)),de=e=>(de=typeof e.detached=="boolean"?t=>t.detached:t=>t.byteLength===0,de(e));function br(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,i=new ArrayBuffer(o);return fr(i,0,e,t,o),i}function Te(e,t){const r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(`${String(t)} is not a function`);return r}}function Vt(e){try{const t=e.done,r=e.value;return B(oo(r),o=>({done:t,value:o}))}catch(t){return c(t)}}const ke=(st=(it=Symbol.asyncIterator)!==null&&it!==void 0?it:(at=Symbol.for)===null||at===void 0?void 0:at.call(Symbol,"Symbol.asyncIterator"))!==null&&st!==void 0?st:"@@asyncIterator";function hr(e,t="sync",r){if(r===void 0)if(t==="async"){if((r=Te(e,ke))===void 0)return function(i){const n={next(){let s;try{s=_r(i)}catch(a){return c(a)}return Vt(s)},return(s){let a;try{const l=Te(i.iterator,"return");if(l===void 0)return v({done:!0,value:s});a=me(l,i.iterator,[s])}catch(l){return c(l)}return R(a)?Vt(a):c(new TypeError("The iterator.return() method must return an object"))}};return{iterator:n,nextMethod:n.next,done:!1}}(hr(e,"sync",Te(e,Symbol.iterator)))}else r=Te(e,Symbol.iterator);if(r===void 0)throw new TypeError("The object is not iterable");const o=me(r,e,[]);if(!R(o))throw new TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1}}function _r(e){const t=me(e.nextMethod,e.iterator,[]);if(!R(t))throw new TypeError("The iterator.next() method must return an object");return t}class pr{constructor(t,r){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=t,this._preventCancel=r}next(){const t=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?se(this._ongoingPromise,t,t):t(),this._ongoingPromise}return(t){const r=()=>this._returnSteps(t);return this._ongoingPromise=this._ongoingPromise?se(this._ongoingPromise,r,r):r(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const t=this._reader;let r,o;const i=C((n,s)=>{r=n,o=s});return Ce(t,{_chunkSteps:n=>{this._ongoingPromise=void 0,le(()=>r({value:n,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),r({value:void 0,done:!0})},_errorSteps:n=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),o(n)}}),i}_returnSteps(t){if(this._isFinished)return Promise.resolve({value:t,done:!0});this._isFinished=!0;const r=this._reader;if(!this._preventCancel){const o=Et(r,t);return M(r),se(o,()=>({value:t,done:!0}))}return M(r),v({value:t,done:!0})}}const mr={next(){return Ut(this)?this._asyncIteratorImpl.next():c(Ht("next"))},return(e){return Ut(this)?this._asyncIteratorImpl.return(e):c(Ht("return"))},[ke](){return this}};function Ut(e){if(!R(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof pr}catch{return!1}}function Ht(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(mr,ke,{enumerable:!1});const yr=Number.isNaN||function(e){return e!=e};function Gt(e){const t=br(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function _t(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function At(e,t,r){if(typeof(o=r)!="number"||yr(o)||o<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Q(e){e._queue=new A,e._queueTotalSize=0}function vr(e){return e===DataView}class ie{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!lt(this))throw ut("view");return this._view}respond(t){if(!lt(this))throw ut("respond");if(ue(t,1,"respond"),t=Ct(t,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(de(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ve(this._associatedReadableByteStreamController,t)}respondWithNewView(t){if(!lt(this))throw ut("respondWithNewView");if(ue(t,1,"respondWithNewView"),!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(de(t.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Ue(this._associatedReadableByteStreamController,t)}}Object.defineProperties(ie.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),m(ie.prototype.respond,"respond"),m(ie.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ie.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class ${constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!oe(this))throw Re("byobRequest");return mt(this)}get desiredSize(){if(!oe(this))throw Re("desiredSize");return jr(this)}close(){if(!oe(this))throw Re("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const t=this._controlledReadableByteStream._state;if(t!=="readable")throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);qe(this)}enqueue(t){if(!oe(this))throw Re("enqueue");if(ue(t,1,"enqueue"),!ArrayBuffer.isView(t))throw new TypeError("chunk must be an array buffer view");if(t.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(t.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const r=this._controlledReadableByteStream._state;if(r!=="readable")throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);Ye(this,t)}error(t=void 0){if(!oe(this))throw Re("error");j(this,t)}[Rt](t){wr(this),Q(this);const r=this._cancelAlgorithm(t);return et(this),r}[Tt](t){const r=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Or(this,t);const o=this._autoAllocateChunkSize;if(o!==void 0){let i;try{i=new ArrayBuffer(o)}catch(s){return void t._errorSteps(s)}const n={buffer:i,bufferByteLength:o,byteOffset:0,byteLength:o,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}ur(r,t),fe(this)}[qt](){if(this._pendingPullIntos.length>0){const t=this._pendingPullIntos.peek();t.readerType="none",this._pendingPullIntos=new A,this._pendingPullIntos.push(t)}}}function oe(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof $}function lt(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ie}function fe(e){(function(t){const r=t._controlledReadableByteStream;return!(r._state!=="readable"||t._closeRequested||!t._started)&&(!!(cr(r)&&Ze(r)>0||Wt(r)&&kr(r)>0)||jr(t)>0)})(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,W(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,fe(e)),null),t=>(j(e,t),null))))}function wr(e){kt(e),e._pendingPullIntos=new A}function gr(e,t){let r=!1;e._state==="closed"&&(r=!0);const o=Sr(t);t.readerType==="default"?jt(e,o,r):function(i,n,s){const a=i._reader._readIntoRequests.shift();s?a._closeSteps(n):a._chunkSteps(n)}(e,o,r)}function xe(e,t){for(let r=0;r<t.length;++r)gr(e,t[r])}function Sr(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Ne(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Rr(e,t,r,o){let i;try{i=br(t,r,r+o)}catch(n){throw j(e,n),n}Ne(e,i,0,o)}function Tr(e,t){t.bytesFilled>0&&Rr(e,t.buffer,t.byteOffset,t.bytesFilled),_e(e)}function qr(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let i=r,n=!1;const s=o-o%t.elementSize;s>=t.minimumFill&&(i=s-t.bytesFilled,n=!0);const a=e._queue;for(;i>0;){const l=a.peek(),u=Math.min(i,l.byteLength),h=t.byteOffset+t.bytesFilled;fr(t.buffer,h,l.buffer,l.byteOffset,u),l.byteLength===u?a.shift():(l.byteOffset+=u,l.byteLength-=u),e._queueTotalSize-=u,Er(e,u,t),i-=u}return n}function Er(e,t,r){r.bytesFilled+=t}function Pr(e){e._queueTotalSize===0&&e._closeRequested?(et(e),We(e._controlledReadableByteStream)):fe(e)}function kt(e){e._byobRequest!==null&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function pt(e){const t=[];for(;e._pendingPullIntos.length>0&&e._queueTotalSize!==0;){const r=e._pendingPullIntos.peek();qr(e,r)&&(_e(e),t.push(r))}return t}function Cr(e,t){const r=e._pendingPullIntos.peek();kt(e),e._controlledReadableByteStream._state==="closed"?function(o,i){i.readerType==="none"&&_e(o);const n=o._controlledReadableByteStream;if(Wt(n)){const s=[];for(let a=0;a<kr(n);++a)s.push(_e(o));xe(n,s)}}(e,r):function(o,i,n){if(Er(0,i,n),n.readerType==="none"){Tr(o,n);const l=pt(o);return void xe(o._controlledReadableByteStream,l)}if(n.bytesFilled<n.minimumFill)return;_e(o);const s=n.bytesFilled%n.elementSize;if(s>0){const l=n.byteOffset+n.bytesFilled;Rr(o,n.buffer,l-s,s)}n.bytesFilled-=s;const a=pt(o);gr(o._controlledReadableByteStream,n),xe(o._controlledReadableByteStream,a)}(e,t,r),fe(e)}function _e(e){return e._pendingPullIntos.shift()}function et(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function qe(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&t._state==="readable")if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const r=e._pendingPullIntos.peek();if(r.bytesFilled%r.elementSize!=0){const o=new TypeError("Insufficient bytes to fill elements in the given buffer");throw j(e,o),o}}et(e),We(t)}}function Ye(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||r._state!=="readable")return;const{buffer:o,byteOffset:i,byteLength:n}=t;if(de(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const s=ce(o);if(e._pendingPullIntos.length>0){const a=e._pendingPullIntos.peek();if(de(a.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");kt(e),a.buffer=ce(a.buffer),a.readerType==="none"&&Tr(e,a)}if(cr(r))(function(a){const l=a._controlledReadableByteStream._reader;for(;l._readRequests.length>0;){if(a._queueTotalSize===0)return;Or(a,l._readRequests.shift())}})(e),Ze(r)===0?Ne(e,s,i,n):(e._pendingPullIntos.length>0&&_e(e),jt(r,new Uint8Array(s,i,n),!1));else if(Wt(r)){Ne(e,s,i,n);const a=pt(e);xe(e._controlledReadableByteStream,a)}else Ne(e,s,i,n);fe(e)}function j(e,t){const r=e._controlledReadableByteStream;r._state==="readable"&&(wr(e),Q(e),et(e),Qr(r,t))}function Or(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,Pr(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function mt(e){if(e._byobRequest===null&&e._pendingPullIntos.length>0){const i=e._pendingPullIntos.peek(),n=new Uint8Array(i.buffer,i.byteOffset+i.bytesFilled,i.byteLength-i.bytesFilled),s=Object.create(ie.prototype);r=e,o=n,(t=s)._associatedReadableByteStreamController=r,t._view=o,e._byobRequest=s}var t,r,o;return e._byobRequest}function jr(e){const t=e._controlledReadableByteStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function Ve(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(t===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=ce(r.buffer),Cr(e,t)}function Ue(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(t.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const o=t.byteLength;r.buffer=ce(t.buffer),Cr(e,o)}function Ar(e,t,r,o,i,n,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Q(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=n,t._pullAlgorithm=o,t._cancelAlgorithm=i,t._autoAllocateChunkSize=s,t._pendingPullIntos=new A,e._readableStreamController=t,W(v(r()),()=>(t._started=!0,fe(t),null),a=>(j(t,a),null))}function ut(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Re(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function io(e,t){if((e=`${e}`)!="byob")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function Xt(e){return new U(e)}function Jt(e,t){e._reader._readIntoRequests.push(t)}function kr(e){return e._reader._readIntoRequests.length}function Wt(e){const t=e._reader;return t!==void 0&&!!ae(t)}Object.defineProperties($.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),m($.prototype.close,"close"),m($.prototype.enqueue,"enqueue"),m($.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty($.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class U{constructor(t){if(ue(t,1,"ReadableStreamBYOBReader"),Ot(t,"First parameter"),X(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!oe(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");nr(this,t),this._readIntoRequests=new A}get closed(){return ae(this)?this._closedPromise:c(Be("closed"))}cancel(t=void 0){return ae(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):Et(this,t):c(Be("cancel"))}read(t,r={}){if(!ae(this))return c(Be("read"));if(!ArrayBuffer.isView(t))return c(new TypeError("view must be an array buffer view"));if(t.byteLength===0)return c(new TypeError("view must have non-zero byteLength"));if(t.buffer.byteLength===0)return c(new TypeError("view's buffer must have non-zero byteLength"));if(de(t.buffer))return c(new TypeError("view's buffer has been detached"));let o;try{H(i=r,n="options"),o={min:Ct((s=i?.min)!==null&&s!==void 0?s:1,`${n} has member 'min' that`)}}catch(f){return c(f)}var i,n,s;const a=o.min;if(a===0)return c(new TypeError("options.min must be greater than 0"));if(function(f){return vr(f.constructor)}(t)){if(a>t.byteLength)return c(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(a>t.length)return c(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return c(Ge("read from"));let l,u;const h=C((f,b)=>{l=f,u=b});return Wr(this,t,a,{_chunkSteps:f=>l({value:f,done:!1}),_closeSteps:f=>l({value:f,done:!0}),_errorSteps:f=>u(f)}),h}releaseLock(){if(!ae(this))throw Be("releaseLock");var t;this._ownerReadableStream!==void 0&&(M(t=this),zr(t,new TypeError("Reader was released")))}}function ae(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof U}function Wr(e,t,r,o){const i=e._ownerReadableStream;i._disturbed=!0,i._state==="errored"?o._errorSteps(i._storedError):function(n,s,a,l){const u=n._controlledReadableByteStream,h=s.constructor,f=vr(q=h)?1:q.BYTES_PER_ELEMENT,{byteOffset:b,byteLength:w}=s,T=a*f;var q;let y;try{y=ce(s.buffer)}catch(g){return void l._errorSteps(g)}const _={buffer:y,bufferByteLength:y.byteLength,byteOffset:b,byteLength:w,bytesFilled:0,minimumFill:T,elementSize:f,viewConstructor:h,readerType:"byob"};if(n._pendingPullIntos.length>0)return n._pendingPullIntos.push(_),void Jt(u,l);if(u._state!=="closed"){if(n._queueTotalSize>0){if(qr(n,_)){const g=Sr(_);return Pr(n),void l._chunkSteps(g)}if(n._closeRequested){const g=new TypeError("Insufficient bytes to fill elements in the given buffer");return j(n,g),void l._errorSteps(g)}}n._pendingPullIntos.push(_),Jt(u,l),fe(n)}else{const g=new h(_.buffer,_.byteOffset,0);l._closeSteps(g)}}(i._readableStreamController,t,r,o)}function zr(e,t){const r=e._readIntoRequests;e._readIntoRequests=new A,r.forEach(o=>{o._errorSteps(t)})}function Be(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function yt(e,t){const{highWaterMark:r}=e;if(r===void 0)return t;if(yr(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function Br(e){const{size:t}=e;return t||(()=>1)}function Fr(e,t){H(e,t);const r=e?.highWaterMark,o=e?.size;return{highWaterMark:r===void 0?void 0:lr(r),size:o===void 0?void 0:ao(o,`${t} has member 'size' that`)}}function ao(e,t){return K(e,t),r=>lr(e(r))}function so(e,t,r){return K(e,r),o=>ge(e,t,[o])}function lo(e,t,r){return K(e,r),()=>ge(e,t,[])}function uo(e,t,r){return K(e,r),o=>me(e,t,[o])}function co(e,t,r){return K(e,r),(o,i)=>ge(e,t,[o,i])}function Ir(e,t){if(!he(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(U.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),m(U.prototype.cancel,"cancel"),m(U.prototype.read,"read"),m(U.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(U.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class ne{constructor(t={},r={}){t===void 0?t=null:sr(t,"First parameter");const o=Fr(r,"Second parameter"),i=function(a,l){H(a,l);const u=a?.abort,h=a?.close,f=a?.start,b=a?.type,w=a?.write;return{abort:u===void 0?void 0:so(u,a,`${l} has member 'abort' that`),close:h===void 0?void 0:lo(h,a,`${l} has member 'close' that`),start:f===void 0?void 0:uo(f,a,`${l} has member 'start' that`),write:w===void 0?void 0:co(w,a,`${l} has member 'write' that`),type:b}}(t,"First parameter");if((n=this)._state="writable",n._storedError=void 0,n._writer=void 0,n._writableStreamController=void 0,n._writeRequests=new A,n._inFlightWriteRequest=void 0,n._closeRequest=void 0,n._inFlightCloseRequest=void 0,n._pendingAbortRequest=void 0,n._backpressure=!1,i.type!==void 0)throw new RangeError("Invalid type is specified");var n;const s=Br(o);(function(a,l,u,h){const f=Object.create(Oe.prototype);let b,w,T,q;b=l.start!==void 0?()=>l.start(f):()=>{},w=l.write!==void 0?y=>l.write(y,f):()=>v(void 0),T=l.close!==void 0?()=>l.close():()=>v(void 0),q=l.abort!==void 0?y=>l.abort(y):()=>v(void 0),function(y,_,g,z,I,d,p,S){_._controlledWritableStream=y,y._writableStreamController=_,_._queue=void 0,_._queueTotalSize=void 0,Q(_),_._abortReason=void 0,_._abortController=function(){if(typeof AbortController=="function")return new AbortController}(),_._started=!1,_._strategySizeAlgorithm=S,_._strategyHWM=p,_._writeAlgorithm=z,_._closeAlgorithm=I,_._abortAlgorithm=d;const E=It(_);Ft(y,E),W(v(g()),()=>(_._started=!0,tt(_),null),O=>(_._started=!0,vt(y,O),null))}(a,f,b,w,T,q,u,h)})(this,i,yt(o,1),s)}get locked(){if(!he(this))throw Ie("locked");return pe(this)}abort(t=void 0){return he(this)?pe(this)?c(new TypeError("Cannot abort a stream that already has a writer")):Xe(this,t):c(Ie("abort"))}close(){return he(this)?pe(this)?c(new TypeError("Cannot close a stream that already has a writer")):F(this)?c(new TypeError("Cannot close an already-closing stream")):$r(this):c(Ie("close"))}getWriter(){if(!he(this))throw Ie("getWriter");return Lr(this)}}function Lr(e){return new L(e)}function he(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof ne}function pe(e){return e._writer!==void 0}function Xe(e,t){var r;if(e._state==="closed"||e._state==="errored")return v(void 0);e._writableStreamController._abortReason=t,(r=e._writableStreamController._abortController)===null||r===void 0||r.abort(t);const o=e._state;if(o==="closed"||o==="errored")return v(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;let i=!1;o==="erroring"&&(i=!0,t=void 0);const n=C((s,a)=>{e._pendingAbortRequest={_promise:void 0,_resolve:s,_reject:a,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=n,i||zt(e,t),n}function $r(e){const t=e._state;if(t==="closed"||t==="errored")return c(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=C((n,s)=>{const a={_resolve:n,_reject:s};e._closeRequest=a}),o=e._writer;var i;return o!==void 0&&e._backpressure&&t==="writable"&&$t(o),At(i=e._writableStreamController,Yr,0),tt(i),r}function vt(e,t){e._state!=="writable"?Bt(e):zt(e,t)}function zt(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;var i;o!==void 0&&Mr(o,t),(i=e)._inFlightWriteRequest===void 0&&i._inFlightCloseRequest===void 0&&r._started&&Bt(e)}function Bt(e){e._state="errored",e._writableStreamController[or]();const t=e._storedError;if(e._writeRequests.forEach(o=>{o._reject(t)}),e._writeRequests=new A,e._pendingAbortRequest===void 0)return void Fe(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void Fe(e);W(e._writableStreamController[rr](r._reason),()=>(r._resolve(),Fe(e),null),o=>(r._reject(o),Fe(e),null))}function F(e){return e._closeRequest!==void 0||e._inFlightCloseRequest!==void 0}function Fe(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;t!==void 0&&Lt(t,e._storedError)}function Ft(e,t){const r=e._writer;r!==void 0&&t!==e._backpressure&&(t?rt(r):$t(r)),e._backpressure=t}Object.defineProperties(ne.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),m(ne.prototype.abort,"abort"),m(ne.prototype.close,"close"),m(ne.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ne.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class L{constructor(t){if(ue(t,1,"WritableStreamDefaultWriter"),Ir(t,"First parameter"),pe(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;const r=t._state;if(r==="writable")!F(t)&&t._backpressure?rt(this):Kt(this),He(this);else if(r==="erroring")gt(this,t._storedError),He(this);else if(r==="closed")Kt(this),He(this),Gr(this);else{const o=t._storedError;gt(this,o),Hr(this,o)}}get closed(){return Z(this)?this._closedPromise:c(ee("closed"))}get desiredSize(){if(!Z(this))throw ee("desiredSize");if(this._ownerWritableStream===void 0)throw Ee("desiredSize");return function(t){const r=t._ownerWritableStream,o=r._state;return o==="errored"||o==="erroring"?null:o==="closed"?0:Vr(r._writableStreamController)}(this)}get ready(){return Z(this)?this._readyPromise:c(ee("ready"))}abort(t=void 0){return Z(this)?this._ownerWritableStream===void 0?c(Ee("abort")):(r=t,Xe(this._ownerWritableStream,r)):c(ee("abort"));var r}close(){if(!Z(this))return c(ee("close"));const t=this._ownerWritableStream;return t===void 0?c(Ee("close")):F(t)?c(new TypeError("Cannot close an already-closing stream")):Dr(this)}releaseLock(){if(!Z(this))throw ee("releaseLock");this._ownerWritableStream!==void 0&&xr(this)}write(t=void 0){return Z(this)?this._ownerWritableStream===void 0?c(Ee("write to")):Nr(this,t):c(ee("write"))}}function Z(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof L}function Dr(e){return $r(e._ownerWritableStream)}function Mr(e,t){e._readyPromiseState==="pending"?Xr(e,t):gt(e,t)}function xr(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");var o,i;Mr(e,r),i=r,(o=e)._closedPromiseState==="pending"?Lt(o,i):Hr(o,i),t._writer=void 0,e._ownerWritableStream=void 0}function Nr(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,i=function(l,u){if(l._strategySizeAlgorithm===void 0)return 1;try{return l._strategySizeAlgorithm(u)}catch(h){return wt(l,h),1}}(o,t);if(r!==e._ownerWritableStream)return c(Ee("write to"));const n=r._state;if(n==="errored")return c(r._storedError);if(F(r)||n==="closed")return c(new TypeError("The stream is closing or closed and cannot be written to"));if(n==="erroring")return c(r._storedError);const s=(a=r,C((l,u)=>{const h={_resolve:l,_reject:u};a._writeRequests.push(h)}));var a;return function(l,u,h){try{At(l,u,h)}catch(b){return void wt(l,b)}const f=l._controlledWritableStream;F(f)||f._state!=="writable"||Ft(f,It(l)),tt(l)}(o,t,i),s}Object.defineProperties(L.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),m(L.prototype.abort,"abort"),m(L.prototype.close,"close"),m(L.prototype.releaseLock,"releaseLock"),m(L.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(L.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const Yr={};class Oe{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!ct(this))throw dt("abortReason");return this._abortReason}get signal(){if(!ct(this))throw dt("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(t=void 0){if(!ct(this))throw dt("error");this._controlledWritableStream._state==="writable"&&Ur(this,t)}[rr](t){const r=this._abortAlgorithm(t);return Je(this),r}[or](){Q(this)}}function ct(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof Oe}function Je(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Vr(e){return e._strategyHWM-e._queueTotalSize}function tt(e){const t=e._controlledWritableStream;if(!e._started||t._inFlightWriteRequest!==void 0)return;if(t._state==="erroring")return void Bt(t);if(e._queue.length===0)return;const r=e._queue.peek().value;r===Yr?function(o){const i=o._controlledWritableStream;var n;(n=i)._inFlightCloseRequest=n._closeRequest,n._closeRequest=void 0,_t(o);const s=o._closeAlgorithm();Je(o),W(s,()=>(function(a){a._inFlightCloseRequest._resolve(void 0),a._inFlightCloseRequest=void 0,a._state==="erroring"&&(a._storedError=void 0,a._pendingAbortRequest!==void 0&&(a._pendingAbortRequest._resolve(),a._pendingAbortRequest=void 0)),a._state="closed";const l=a._writer;l!==void 0&&Gr(l)}(i),null),a=>{return u=a,(l=i)._inFlightCloseRequest._reject(u),l._inFlightCloseRequest=void 0,l._pendingAbortRequest!==void 0&&(l._pendingAbortRequest._reject(u),l._pendingAbortRequest=void 0),vt(l,u),null;var l,u})}(e):function(o,i){const n=o._controlledWritableStream;var s;(s=n)._inFlightWriteRequest=s._writeRequests.shift(),W(o._writeAlgorithm(i),()=>{var a;(a=n)._inFlightWriteRequest._resolve(void 0),a._inFlightWriteRequest=void 0;const l=n._state;if(_t(o),!F(n)&&l==="writable"){const u=It(o);Ft(n,u)}return tt(o),null},a=>{return n._state==="writable"&&Je(o),u=a,(l=n)._inFlightWriteRequest._reject(u),l._inFlightWriteRequest=void 0,vt(l,u),null;var l,u})}(e,r)}function wt(e,t){e._controlledWritableStream._state==="writable"&&Ur(e,t)}function It(e){return Vr(e)<=0}function Ur(e,t){const r=e._controlledWritableStream;Je(e),zt(r,t)}function Ie(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function dt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function ee(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Ee(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function He(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Hr(e,t){He(e),Lt(e,t)}function Lt(e,t){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Gr(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rt(e){e._readyPromise=C((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function gt(e,t){rt(e),Xr(e,t)}function Kt(e){rt(e),$t(e)}function Xr(e,t){e._readyPromise_reject!==void 0&&(Ae(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function $t(e){e._readyPromise_resolve!==void 0&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Oe.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Oe.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:void 0,bo=function(){const e=fo?.DOMException;return function(t){if(typeof t!="function"&&typeof t!="object"||t.name!=="DOMException")return!1;try{return new t,!0}catch{return!1}}(e)?e:void 0}()||function(){const e=function(t,r){this.message=t||"",this.name=r||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return m(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function Qt(e,t,r,o,i,n){const s=be(e),a=Lr(t);e._disturbed=!0;let l=!1,u=v(void 0);return C((h,f)=>{let b;if(n!==void 0){if(b=()=>{const d=n.reason!==void 0?n.reason:new bo("Aborted","AbortError"),p=[];o||p.push(()=>t._state==="writable"?Xe(t,d):v(void 0)),i||p.push(()=>e._state==="readable"?k(e,d):v(void 0)),g(()=>Promise.all(p.map(S=>S())),!0,d)},n.aborted)return void b();n.addEventListener("abort",b)}var w,T,q;if(_(e,s._closedPromise,d=>(o?z(!0,d):g(()=>Xe(t,d),!0,d),null)),_(t,a._closedPromise,d=>(i?z(!0,d):g(()=>k(e,d),!0,d),null)),w=e,T=s._closedPromise,q=()=>(r?z():g(()=>function(d){const p=d._ownerWritableStream,S=p._state;return F(p)||S==="closed"?v(void 0):S==="errored"?c(p._storedError):Dr(d)}(a)),null),w._state==="closed"?q():nt(T,q),F(t)||t._state==="closed"){const d=new TypeError("the destination writable stream closed before all data could be piped to it");i?z(!0,d):g(()=>k(e,d),!0,d)}function y(){const d=u;return B(u,()=>d!==u?y():void 0)}function _(d,p,S){d._state==="errored"?S(d._storedError):bt(p,S)}function g(d,p,S){function E(){return W(d(),()=>I(p,S),O=>I(!0,O)),null}l||(l=!0,t._state!=="writable"||F(t)?E():nt(y(),E))}function z(d,p){l||(l=!0,t._state!=="writable"||F(t)?I(d,p):nt(y(),()=>I(d,p)))}function I(d,p){return xr(a),M(s),n!==void 0&&n.removeEventListener("abort",b),d?f(p):h(void 0),null}Ae(C((d,p)=>{(function S(E){E?d():B(l?v(!0):B(a._readyPromise,()=>C((O,x)=>{Ce(s,{_chunkSteps:N=>{u=B(Nr(a,N),void 0,Pe),O(!1)},_closeSteps:()=>O(!0),_errorSteps:x})})),S,p)})(!1)}))})}class D{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Le(this))throw $e("desiredSize");return Dt(this)}close(){if(!Le(this))throw $e("close");if(!we(this))throw new TypeError("The stream is not in a state that permits close");ye(this)}enqueue(t=void 0){if(!Le(this))throw $e("enqueue");if(!we(this))throw new TypeError("The stream is not in a state that permits enqueue");return ve(this,t)}error(t=void 0){if(!Le(this))throw $e("error");J(this,t)}[Rt](t){Q(this);const r=this._cancelAlgorithm(t);return Ke(this),r}[Tt](t){const r=this._controlledReadableStream;if(this._queue.length>0){const o=_t(this);this._closeRequested&&this._queue.length===0?(Ke(this),We(r)):je(this),t._chunkSteps(o)}else ur(r,t),je(this)}[qt](){}}function Le(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof D}function je(e){Jr(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,W(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,je(e)),null),t=>(J(e,t),null))))}function Jr(e){const t=e._controlledReadableStream;return!!we(e)&&!!e._started&&(!!(X(t)&&Ze(t)>0)||Dt(e)>0)}function Ke(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ye(e){if(!we(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(Ke(e),We(t))}function ve(e,t){if(!we(e))return;const r=e._controlledReadableStream;if(X(r)&&Ze(r)>0)jt(r,t,!1);else{let o;try{o=e._strategySizeAlgorithm(t)}catch(i){throw J(e,i),i}try{At(e,t,o)}catch(i){throw J(e,i),i}}je(e)}function J(e,t){const r=e._controlledReadableStream;r._state==="readable"&&(Q(e),Ke(e),Qr(r,t))}function Dt(e){const t=e._controlledReadableStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function we(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&t==="readable"}function Kr(e,t,r,o,i,n,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Q(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=s,t._strategyHWM=n,t._pullAlgorithm=o,t._cancelAlgorithm=i,e._readableStreamController=t,W(v(r()),()=>(t._started=!0,je(t),null),a=>(J(t,a),null))}function $e(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function ho(e){return R(t=e)&&t.getReader!==void 0?function(r){let o;return o=Qe(Pe,function(){let i;try{i=r.read()}catch(n){return c(n)}return se(i,n=>{if(!R(n))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(n.done)ye(o._readableStreamController);else{const s=n.value;ve(o._readableStreamController,s)}})},function(i){try{return v(r.cancel(i))}catch(n){return c(n)}},0),o}(e.getReader()):function(r){let o;const i=hr(r,"async");return o=Qe(Pe,function(){let n;try{n=_r(i)}catch(s){return c(s)}return se(v(n),s=>{if(!R(s))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(s.done)ye(o._readableStreamController);else{const a=s.value;ve(o._readableStreamController,a)}})},function(n){const s=i.iterator;let a;try{a=Te(s,"return")}catch(l){return c(l)}return a===void 0?v(void 0):se(ge(a,s,[n]),l=>{if(!R(l))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(e);var t}function _o(e,t,r){return K(e,r),o=>ge(e,t,[o])}function po(e,t,r){return K(e,r),o=>ge(e,t,[o])}function mo(e,t,r){return K(e,r),o=>me(e,t,[o])}function yo(e,t){if((e=`${e}`)!="bytes")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Zt(e,t){H(e,t);const r=e?.preventAbort,o=e?.preventCancel,i=e?.preventClose,n=e?.signal;return n!==void 0&&function(s,a){if(!function(l){if(typeof l!="object"||l===null)return!1;try{return typeof l.aborted=="boolean"}catch{return!1}}(s))throw new TypeError(`${a} is not an AbortSignal.`)}(n,`${t} has member 'signal' that`),{preventAbort:!!r,preventCancel:!!o,preventClose:!!i,signal:n}}Object.defineProperties(D.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),m(D.prototype.close,"close"),m(D.prototype.enqueue,"enqueue"),m(D.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(D.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class P{constructor(t={},r={}){t===void 0?t=null:sr(t,"First parameter");const o=Fr(r,"Second parameter"),i=function(n,s){H(n,s);const a=n,l=a?.autoAllocateChunkSize,u=a?.cancel,h=a?.pull,f=a?.start,b=a?.type;return{autoAllocateChunkSize:l===void 0?void 0:Ct(l,`${s} has member 'autoAllocateChunkSize' that`),cancel:u===void 0?void 0:_o(u,a,`${s} has member 'cancel' that`),pull:h===void 0?void 0:po(h,a,`${s} has member 'pull' that`),start:f===void 0?void 0:mo(f,a,`${s} has member 'start' that`),type:b===void 0?void 0:yo(b,`${s} has member 'type' that`)}}(t,"First parameter");if(Mt(this),i.type==="bytes"){if(o.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");(function(n,s,a){const l=Object.create($.prototype);let u,h,f;u=s.start!==void 0?()=>s.start(l):()=>{},h=s.pull!==void 0?()=>s.pull(l):()=>v(void 0),f=s.cancel!==void 0?w=>s.cancel(w):()=>v(void 0);const b=s.autoAllocateChunkSize;if(b===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ar(n,l,u,h,f,a,b)})(this,i,yt(o,0))}else{const n=Br(o);(function(s,a,l,u){const h=Object.create(D.prototype);let f,b,w;f=a.start!==void 0?()=>a.start(h):()=>{},b=a.pull!==void 0?()=>a.pull(h):()=>v(void 0),w=a.cancel!==void 0?T=>a.cancel(T):()=>v(void 0),Kr(s,h,f,b,w,l,u)})(this,i,yt(o,1),n)}}get locked(){if(!Y(this))throw te("locked");return X(this)}cancel(t=void 0){return Y(this)?X(this)?c(new TypeError("Cannot cancel a stream that already has a reader")):k(this,t):c(te("cancel"))}getReader(t=void 0){if(!Y(this))throw te("getReader");return function(r,o){H(r,o);const i=r?.mode;return{mode:i===void 0?void 0:io(i,`${o} has member 'mode' that`)}}(t,"First parameter").mode===void 0?be(this):Xt(this)}pipeThrough(t,r={}){if(!Y(this))throw te("pipeThrough");ue(t,1,"pipeThrough");const o=function(n,s){H(n,s);const a=n?.readable;Nt(a,"readable","ReadableWritablePair"),Ot(a,`${s} has member 'readable' that`);const l=n?.writable;return Nt(l,"writable","ReadableWritablePair"),Ir(l,`${s} has member 'writable' that`),{readable:a,writable:l}}(t,"First parameter"),i=Zt(r,"Second parameter");if(X(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(pe(o.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Ae(Qt(this,o.writable,i.preventClose,i.preventAbort,i.preventCancel,i.signal)),o.readable}pipeTo(t,r={}){if(!Y(this))return c(te("pipeTo"));if(t===void 0)return c("Parameter 1 is required in 'pipeTo'.");if(!he(t))return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let o;try{o=Zt(r,"Second parameter")}catch(i){return c(i)}return X(this)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):pe(t)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Qt(this,t,o.preventClose,o.preventAbort,o.preventCancel,o.signal)}tee(){if(!Y(this))throw te("tee");return Se(oe((t=this)._readableStreamController)?function(r){let o,i,n,s,a,l=be(r),u=!1,h=!1,f=!1,b=!1,w=!1;const T=C(d=>{a=d});function q(d){bt(d._closedPromise,p=>(d!==l||(j(n._readableStreamController,p),j(s._readableStreamController,p),b&&w||a(void 0)),null))}function y(){ae(l)&&(M(l),l=be(r),q(l)),Ce(l,{_chunkSteps:d=>{le(()=>{h=!1,f=!1;const p=d;let S=d;if(!b&&!w)try{S=Gt(d)}catch(E){return j(n._readableStreamController,E),j(s._readableStreamController,E),void a(k(r,E))}b||Ye(n._readableStreamController,p),w||Ye(s._readableStreamController,S),u=!1,h?g():f&&z()})},_closeSteps:()=>{u=!1,b||qe(n._readableStreamController),w||qe(s._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&Ve(n._readableStreamController,0),s._readableStreamController._pendingPullIntos.length>0&&Ve(s._readableStreamController,0),b&&w||a(void 0)},_errorSteps:()=>{u=!1}})}function _(d,p){G(l)&&(M(l),l=Xt(r),q(l));const S=p?s:n,E=p?n:s;Wr(l,d,1,{_chunkSteps:O=>{le(()=>{h=!1,f=!1;const x=p?w:b;if(p?b:w)x||Ue(S._readableStreamController,O);else{let N;try{N=Gt(O)}catch(ot){return j(S._readableStreamController,ot),j(E._readableStreamController,ot),void a(k(r,ot))}x||Ue(S._readableStreamController,O),Ye(E._readableStreamController,N)}u=!1,h?g():f&&z()})},_closeSteps:O=>{u=!1;const x=p?w:b,N=p?b:w;x||qe(S._readableStreamController),N||qe(E._readableStreamController),O!==void 0&&(x||Ue(S._readableStreamController,O),!N&&E._readableStreamController._pendingPullIntos.length>0&&Ve(E._readableStreamController,0)),x&&N||a(void 0)},_errorSteps:()=>{u=!1}})}function g(){if(u)return h=!0,v(void 0);u=!0;const d=mt(n._readableStreamController);return d===null?y():_(d._view,!1),v(void 0)}function z(){if(u)return f=!0,v(void 0);u=!0;const d=mt(s._readableStreamController);return d===null?y():_(d._view,!0),v(void 0)}function I(){}return n=er(I,g,function(d){if(b=!0,o=d,w){const p=Se([o,i]),S=k(r,p);a(S)}return T}),s=er(I,z,function(d){if(w=!0,i=d,b){const p=Se([o,i]),S=k(r,p);a(S)}return T}),q(l),[n,s]}(t):function(r){const o=be(r);let i,n,s,a,l,u=!1,h=!1,f=!1,b=!1;const w=C(y=>{l=y});function T(){return u?(h=!0,v(void 0)):(u=!0,Ce(o,{_chunkSteps:y=>{le(()=>{h=!1;const _=y,g=y;f||ve(s._readableStreamController,_),b||ve(a._readableStreamController,g),u=!1,h&&T()})},_closeSteps:()=>{u=!1,f||ye(s._readableStreamController),b||ye(a._readableStreamController),f&&b||l(void 0)},_errorSteps:()=>{u=!1}}),v(void 0))}function q(){}return s=Qe(q,T,function(y){if(f=!0,i=y,b){const _=Se([i,n]),g=k(r,_);l(g)}return w}),a=Qe(q,T,function(y){if(b=!0,n=y,f){const _=Se([i,n]),g=k(r,_);l(g)}return w}),bt(o._closedPromise,y=>(J(s._readableStreamController,y),J(a._readableStreamController,y),f&&b||l(void 0),null)),[s,a]}(t));var t}values(t=void 0){if(!Y(this))throw te("values");return function(o,i){const n=be(o),s=new pr(n,i),a=Object.create(mr);return a._asyncIteratorImpl=s,a}(this,(r=t,H(r,"First parameter"),{preventCancel:!!r?.preventCancel}).preventCancel);var r}[ke](t){return this.values(t)}static from(t){return ho(t)}}function Qe(e,t,r,o=1,i=()=>1){const n=Object.create(P.prototype);return Mt(n),Kr(n,Object.create(D.prototype),e,t,r,o,i),n}function er(e,t,r){const o=Object.create(P.prototype);return Mt(o),Ar(o,Object.create($.prototype),e,t,r,0,void 0),o}function Mt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Y(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof P}function X(e){return e._reader!==void 0}function k(e,t){if(e._disturbed=!0,e._state==="closed")return v(void 0);if(e._state==="errored")return c(e._storedError);We(e);const r=e._reader;if(r!==void 0&&ae(r)){const o=r._readIntoRequests;r._readIntoRequests=new A,o.forEach(i=>{i._closeSteps(void 0)})}return se(e._readableStreamController[Rt](t),Pe)}function We(e){e._state="closed";const t=e._reader;if(t!==void 0&&(ar(t),G(t))){const r=t._readRequests;t._readRequests=new A,r.forEach(o=>{o._closeSteps()})}}function Qr(e,t){e._state="errored",e._storedError=t;const r=e._reader;r!==void 0&&(Pt(r,t),G(r)?dr(r,t):zr(r,t))}function te(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function ft(e,t){var r;(r=e._transformStreamController)._transformAlgorithm=void 0,r._flushAlgorithm=void 0,r._cancelAlgorithm=void 0,wt(e._writable._writableStreamController,t),function(o){o._backpressure&&Zr(o,!1)}(e)}function Zr(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=C(r=>{e._backpressureChangePromise_resolve=r}),e._backpressure=t}Object.defineProperties(P,{from:{enumerable:!0}}),Object.defineProperties(P.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),m(P.from,"from"),m(P.prototype.cancel,"cancel"),m(P.prototype.getReader,"getReader"),m(P.prototype.pipeThrough,"pipeThrough"),m(P.prototype.pipeTo,"pipeTo"),m(P.prototype.tee,"tee"),m(P.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(P.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(P.prototype,ke,{value:P.prototype.values,writable:!0,configurable:!0}),m(e=>e.byteLength,"size"),m(()=>1,"size");class re{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!De(this))throw Me("desiredSize");return Dt(this._controlledTransformStream._readable._readableStreamController)}enqueue(t=void 0){if(!De(this))throw Me("enqueue");(function(r,o){const i=r._controlledTransformStream,n=i._readable._readableStreamController;if(!we(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ve(n,o)}catch(a){throw ft(i,a),i._readable._storedError}var s;!Jr(s=n)!==i._backpressure&&Zr(i,!0)})(this,t)}error(t=void 0){if(!De(this))throw Me("error");var r,o,i;r=t,o=this._controlledTransformStream,i=r,J(o._readable._readableStreamController,i),ft(o,i)}terminate(){if(!De(this))throw Me("terminate");(function(t){const r=t._controlledTransformStream;ye(r._readable._readableStreamController),ft(r,new TypeError("TransformStream terminated"))})(this)}}function De(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof re}function Me(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(re.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),m(re.prototype.enqueue,"enqueue"),m(re.prototype.error,"error"),m(re.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(re.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),exports.ReadableByteStreamController=$,exports.ReadableStream=P,exports.ReadableStreamBYOBReader=U,exports.ReadableStreamBYOBRequest=ie,exports.ReadableStreamDefaultController=D,exports.ReadableStreamDefaultReader=V,exports.TransformStreamDefaultController=re,exports.WritableStream=ne,exports.WritableStreamDefaultController=Oe,exports.WritableStreamDefaultWriter=L;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("react"),s=require("@mui/material"),o=require("./CqwEnIUDMxWw5DX1.cjs"),u=require("@mui/system"),q=["Ok","Cancel"],O=n.memo(b=>{const{initialHyperlink:l=null,initialDisplay:v=null,onUpdateHyperlink:m,context:r,onOption:f,onValidateOption:d,onDone:c,options:y=q,defaultOption:g=y?.[0],cancelOption:p="Cancel",sx:F,...P}=b,D=n.useMemo(()=>(l??r?.()?.getHyperlink())!==null,[]),T=n.useMemo(()=>{let e=null,a=null;l&&(typeof l=="string"?a=l:e=l);const h=e??r?.()?.getHyperlink();return{address:a??h?.getAddress()??"",textToDisplay:h?.getDisplayText()??""}},[l,r]),[t,j]=n.useState(T.address),[x,H]=n.useState(()=>{const e=r?.().toTextUnformatted()??v;return e===T.address?"":e}),[I,k]=n.useState(!1),M=n.useCallback(e=>{H(e.target.value)},[]),C=n.useCallback(async(e,a)=>null,[]),w=o.T(async e=>{e!==p&&m?.(t===""?null:{address:t},x),f?.(e,e===p,e===g),c?.()},[t,x,m,c,f,g,p]),A=o.T(e=>{j(e.target.value),C(e.target.value,null)},[d]),S=o.T(async e=>{let a=await Promise.resolve(d?.(e));try{a!==!1&&(a=await C(t,e))}catch{}return a??!0},[d]);return i.jsx(o.D8,{title:(D?"Edit":"Insert")+" Link",options:y,onDone:c,onOption:e=>w(e),onValidateOption:S,defaultOption:g,cancelOption:p,autoFocusSel:".autoFocus",sx:{width:"480px",...F},...P,children:i.jsxs(s.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[i.jsx(s.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:i.jsx(s.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:e=>{I||e.target?.select(),k(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${u.alpha("#fff",o.getOverlayAlpha(5))}, ${u.alpha("#fff",o.getOverlayAlpha(5))})`}}},value:t,onChange:A,onContextMenu:e=>{e.stopPropagation()}})}),i.jsx(s.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:i.jsx(s.TextField,{label:"Display Text",placeholder:t?.startsWith("#")?t.substring(1):t,onFocus:()=>{k(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${u.alpha("#fff",o.getOverlayAlpha(5))}, ${u.alpha("#fff",o.getOverlayAlpha(5))})`}}},value:x,onChange:M,onContextMenu:e=>{e.stopPropagation()}})})]})})});exports.HyperlinkDialog=O,exports.default=O;
@@ -1,16 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){me(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(n){ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,a=new Array(c),g=0;g<c;g++)a[g]=arguments[g];return t.apply(r,[].concat(o,a))}}}function U(e){return{}.toString.call(e).includes("Object")}function q(e){return typeof e=="function"}var S=D(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ve=function(e,t){return U(t)||S("changeType"),Object.keys(t).some(function(r){return n=e,o=r,!Object.prototype.hasOwnProperty.call(n,o);var n,o})&&S("changeField"),t},be=function(e){q(e)||S("selectorType")},Oe=function(e){q(e)||U(e)||S("handlerType"),U(e)&&Object.values(e).some(function(t){return!q(t)})&&S("handlersType")},we=function(e){var t;e||S("initialIsRequired"),U(e)||S("initialType"),t=e,Object.keys(t).length||S("initialContent")};function je(e,t){return q(t)?t(e.current):t}function Me(e,t){return e.current=ue(ue({},e.current),t),t}function Ee(e,t,r){return q(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var K,Pe=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};we(e),Oe(t);var r={current:e},n=D(Ee)(r,t),o=D(Me)(r),u=D(ve)(e),c=D(je)(r);return[function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return be(a),a(r.current)},function(a){(function(){for(var g=arguments.length,p=new Array(g),w=0;w<g;w++)p[w]=arguments[w];return function(b){return p.reduceRight(function(E,P){return P(E)},b)}})(n,o,u,c)(a)}]},le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
7
- You are using deprecated way of configuration.
8
-
9
- Instead of using
10
- monaco.config({ urls: { monacoBase: '...' } })
11
- use
12
- monaco.config({ paths: { vs: '...' } })
13
-
14
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
15
- `},ce=(K=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=K.length?K.apply(this,n):function(){for(var u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];return e.apply(t,[].concat(n,c))}})(le),Se=function(e){var t;return e||ce("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||ce("configType"),e.urls?(console.warn(le.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ne(ne({},e),t)}var Re={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(u){return t?o(Re):n(u)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var W,fe=function(e){if(Array.isArray(e))return e}(W=Pe({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(t.push(u.value),t.length!==2);r=!0);}catch(a){n=!0,o=a}finally{try{r||c.return==null||c.return()}finally{if(n)throw o}}return t}}(W)||function(e){if(e){if(typeof e=="string")return oe(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,2):void 0}}(W)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),z=fe[0],B=fe[1];function ke(e){return document.body.appendChild(e)}function Te(e){var t,r,n=z(function(u){return{config:u.config,reject:u.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function xe(){var e=z(function(r){return{config:r.config,resolve:r.resolve,reject:r.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){de(r),e.resolve(r)},function(r){e.reject(r)})}function de(e){z().monaco||B({monaco:e})}var X=new Promise(function(e,t){return B({resolve:e,reject:t})}),V={config:function(e){var t=Se(e),r=t.monaco,n=function(o,u){if(o==null)return{};var c,a,g=function(w,b){if(w==null)return{};var E,P,R={},k=Object.keys(w);for(P=0;P<k.length;P++)E=k[P],b.indexOf(E)>=0||(R[E]=w[E]);return R}(o,u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(o);for(a=0;a<p.length;a++)c=p[a],u.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(o,c)&&(g[c]=o[c])}return g}(t,["monaco"]);B(function(o){return{config:se(o.config,n),monaco:r}})},init:function(){var e=z(function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}});if(!e.isInitialized){if(B({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(u,c){return c(u)},o)}})(ke,Te)(xe)}return Q(X)},__getMonacoInstance:function(){return z(function(e){return e.monaco})}},Ie={display:"flex",position:"relative",textAlign:"initial"},Ce={width:"100%"},Ae={display:"none"},De={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ve=function({children:e}){return i.createElement("div",{style:De.container},e)},ge=i.memo(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:u,wrapperProps:c}){return i.createElement("section",{style:{...Ie,width:e,height:t},...c},!r&&i.createElement(Ve,null,n),i.createElement("div",{ref:o,style:{...Ce,...!r&&Ae},className:u}))}),Z=function(e){i.useEffect(e,[])},j=function(e,t,r=!0){let n=i.useRef(!0);i.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function L(){}function x(e,t,r,n){return u=n,(o=e).editor.getModel(ae(o,u))||function(c,a,g,p){return c.editor.createModel(a,g,p?ae(c,p):void 0)}(e,t,r,n);var o,u}function ae(e,t){return e.Uri.parse(t)}var Le=i.memo(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:u,modifiedModelPath:c,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:g=!1,theme:p="light",loading:w="Loading...",options:b={},height:E="100%",width:P="100%",className:R,wrapperProps:k={},beforeMount:Y=L,onMount:$=L}){let[O,I]=i.useState(!1),[C,m]=i.useState(!0),y=i.useRef(null),f=i.useRef(null),A=i.useRef(null),v=i.useRef($),l=i.useRef(Y),T=i.useRef(!1);Z(()=>{let s=V.init();return s.then(d=>(f.current=d)&&m(!1)).catch(d=>d?.type!=="cancelation"&&console.error("Monaco initialization: error:",d)),()=>y.current?function(){let d=y.current?.getModel();a||d?.original?.dispose(),g||d?.modified?.dispose(),y.current?.dispose()}():s.cancel()}),j(()=>{if(y.current&&f.current){let s=y.current.getOriginalEditor(),d=x(f.current,e||"",n||r||"text",u||"");d!==s.getModel()&&s.setModel(d)}},[u],O),j(()=>{if(y.current&&f.current){let s=y.current.getModifiedEditor(),d=x(f.current,t||"",o||r||"text",c||"");d!==s.getModel()&&s.setModel(d)}},[c],O),j(()=>{let s=y.current.getModifiedEditor();s.getOption(f.current.editor.EditorOption.readOnly)?s.setValue(t||""):t!==s.getValue()&&(s.executeEdits("",[{range:s.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),s.pushUndoStop())},[t],O),j(()=>{y.current?.getModel()?.original.setValue(e||"")},[e],O),j(()=>{let{original:s,modified:d}=y.current.getModel();f.current.editor.setModelLanguage(s,n||r||"text"),f.current.editor.setModelLanguage(d,o||r||"text")},[r,n,o],O),j(()=>{f.current?.editor.setTheme(p)},[p],O),j(()=>{y.current?.updateOptions(b)},[b],O);let _=i.useCallback(()=>{if(!f.current)return;l.current(f.current);let s=x(f.current,e||"",n||r||"text",u||""),d=x(f.current,t||"",o||r||"text",c||"");y.current?.setModel({original:s,modified:d})},[r,t,o,e,n,u,c]),N=i.useCallback(()=>{!T.current&&A.current&&(y.current=f.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...b}),_(),f.current?.editor.setTheme(p),I(!0),T.current=!0)},[b,p,_]);return i.useEffect(()=>{O&&v.current(y.current,f.current)},[O]),i.useEffect(()=>{!C&&!O&&N()},[C,O,N]),i.createElement(ge,{width:P,height:E,isEditorReady:O,loading:w,_ref:A,className:R,wrapperProps:k})}),F=new Map,pe=i.memo(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:u,theme:c="light",line:a,loading:g="Loading...",options:p={},overrideServices:w={},saveViewState:b=!0,keepCurrentModel:E=!1,width:P="100%",height:R="100%",className:k,wrapperProps:Y={},beforeMount:$=L,onMount:O=L,onChange:I,onValidate:C=L}){let[m,y]=i.useState(!1),[f,A]=i.useState(!0),v=i.useRef(null),l=i.useRef(null),T=i.useRef(null),_=i.useRef(O),N=i.useRef($),s=i.useRef(),d=i.useRef(n),he=function(h){let M=i.useRef();return i.useEffect(()=>{M.current=h},[h]),M.current}(u),ee=i.useRef(!1),G=i.useRef(!1);Z(()=>{let h=V.init();return h.then(M=>(v.current=M)&&A(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>l.current?(s.current?.dispose(),E?b&&F.set(u,l.current.saveViewState()):l.current.getModel()?.dispose(),void l.current.dispose()):h.cancel()}),j(()=>{let h=x(v.current,e||n||"",t||o||"",u||r||"");h!==l.current?.getModel()&&(b&&F.set(he,l.current?.saveViewState()),l.current?.setModel(h),b&&l.current?.restoreViewState(F.get(u)))},[u],m),j(()=>{l.current?.updateOptions(p)},[p],m),j(()=>{!l.current||n===void 0||(l.current.getOption(v.current.editor.EditorOption.readOnly)?l.current.setValue(n):n!==l.current.getValue()&&(G.current=!0,l.current.executeEdits("",[{range:l.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),l.current.pushUndoStop(),G.current=!1))},[n],m),j(()=>{let h=l.current?.getModel();h&&o&&v.current?.editor.setModelLanguage(h,o)},[o],m),j(()=>{a!==void 0&&l.current?.revealLine(a)},[a],m),j(()=>{v.current?.editor.setTheme(c)},[c],m);let te=i.useCallback(()=>{if(T.current&&v.current&&!ee.current){N.current(v.current);let h=u||r,M=x(v.current,n||e||"",t||o||"",h||"");l.current=v.current?.editor.create(T.current,{model:M,automaticLayout:!0,...p},w),b&&l.current.restoreViewState(F.get(h)),v.current.editor.setTheme(c),a!==void 0&&l.current.revealLine(a),y(!0),ee.current=!0}},[e,t,r,n,o,u,p,w,b,c,a]);return i.useEffect(()=>{m&&_.current(l.current,v.current)},[m]),i.useEffect(()=>{!f&&!m&&te()},[f,m,te]),d.current=n,i.useEffect(()=>{m&&I&&(s.current?.dispose(),s.current=l.current?.onDidChangeModelContent(h=>{G.current||I(l.current.getValue(),h)}))},[m,I]),i.useEffect(()=>{if(m){let h=v.current.editor.onDidChangeMarkers(M=>{let H=l.current.getModel()?.uri;if(H&&M.find(J=>J.path===H.path)){let J=v.current.editor.getModelMarkers({resource:H});C?.(J)}});return()=>{h?.dispose()}}return()=>{}},[m,C]),i.createElement(ge,{width:P,height:R,isEditorReady:m,loading:g,_ref:T,className:k,wrapperProps:Y})}),qe=pe;exports.DiffEditor=Le,exports.Editor=pe,exports.default=qe,exports.loader=V,exports.useMonaco=function(){let[e,t]=i.useState(V.__getMonacoInstance());return Z(()=>{let r;return e||(r=V.init(),r.then(n=>{t(n)})),()=>r?.cancel()}),e};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),c=require("./CqwEnIUDMxWw5DX1.cjs"),k=["Ok","Cancel"],b=t.memo(h=>{const{tableOptions:a,context:p,onOption:u,onValidateOption:q,onDone:d,options:g=k,defaultOption:l=g?.[0],cancelOption:s="Cancel",sx:m,...O}=h,[f,C]=t.useState(!1),[o,j]=t.useState(()=>a?.hasHeader??!1),[i,S]=t.useState(()=>a?.ranges??null),T=c.T(e=>{const x={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),d?.({option:e,tableOptions:x})},[d,u,l,s,o,i,a]),D=t.useCallback(async(e,x)=>null,[]);return n.jsx(c.D8,{title:"Insert Table",options:g,onDone:T,onValidateOption:D,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...m},...O,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(c.RangeInput,{formName:"range",value:i,onChangeInput:e=>S(e),resolvedAddress:p.getNames().getRanges.bind(p.getNames()),onFocus:e=>{f||e.target?.select(),C(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>j(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("react"),w=require("@mui/material"),o=require("./CqwEnIUDMxWw5DX1.cjs"),F=["Ok","Cancel"],V=n.memo(C=>{const{value:a=null,context:t,onOption:c,onValidateOption:k,onDone:g,onUpdate:m,options:x=F,defaultOption:T=x?.[0],cancelOption:f="Cancel",sx:R,...h}=C,N=n.useMemo(()=>t?.getNames().findValidName("Range1"),[]),d=n.useMemo(()=>{if(!a)return!0},[]),[l,v]=n.useState({displayText:a?.getName()??N,errorText:null}),[s,S]=n.useState({displayValue:a?.getRanges()??t?.selection()??null,errorText:null}),[y,O]=n.useState(!1),b=n.useCallback(async e=>!l.errorText&&!s.errorText,[t]),j=o.T((e,i,p)=>{if(!i){let r=null;d?r=t?.getNames().addReference(l?.displayText,s?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(l?.displayText),a.setReference(s?.displayValue)},`Edit Named '${l?.displayText}'`),r=a),r&&(r.select(),m(r,d))}c?.(e,i,p),g?.()},[t,l,s,g,c,T,f,m]),D=o.T(e=>{let i=null;try{t?.getNames().validateName(e)}catch(p){i=p.message}v({displayText:e,errorText:i})},[]),I=o.T(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),q=n.useCallback(e=>{S({displayValue:e??null,errorText:null})},[]);return u.jsx(o.D8,{title:(d?"Define":"Edit")+" Range",options:x,onOption:j,onValidateOption:b,defaultOption:T,cancelOption:f,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...h,children:u.jsxs(w.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[u.jsx(o.NamedInput,{formName:"name",defaultInput:N,value:l.displayText,onChangeInput:D,onValidate:I,onFocus:e=>{y||e.target?.select(),O(!0)}}),u.jsx(o.RangeInput,{formName:"range",value:s.displayValue,onChangeInput:q,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{y||e.target?.select(),O(!0)}})]})})});exports.NamedReferenceDialog=V,exports.default=V;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react"),i=require("@mui/material"),n=require("./CqwEnIUDMxWw5DX1.cjs"),h=s.memo(y=>{const{title:f,onHide:b,autoFocusSel:w=".range-input input",context:j,notifier:r=n.At,command:c,commands:d,...S}=y,[T,g]=s.useState(!1),[x,u]=s.useState(!1),m=s.useRef(null),[F,v]=s.useReducer(e=>e+1,0),[C,{width:I}]=n.useMeasure();n.fo(c);const a=j??c.context(),t=a.table(),[N,R]=s.useState(()=>t?a.getNames().getRanges(t.getRange()):null),B=s.useMemo(()=>t?.getName()??"",[t]);n.ht(a.table(),{onAnchorCoordsChange(e){R(a.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const P=n.T(e=>{a?.table().setName(e)},[a]),D=n.T(e=>{a?.table().resize(e.at(0))},[a]);let p=null;return a.table()||(p=o.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:o.jsx("div",{children:"No table selected"})})),o.jsx(n.jn,{ref:m,title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:w,onHide:b,onFocus:()=>g(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||g(!1)},PaperProps:{elevation:T?3:1},...S,children:o.jsxs(i.DialogContent,{dividers:!0,ref:C,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[o.jsxs(i.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:a.table()?1:0},children:[o.jsx(i.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:o.jsx(i.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:o.jsxs(i.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(n.NamedInput,{formName:"name",defaultInput:B,value:t?.getName()??"No table",onChangeInput:P,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||a?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}}),o.jsx(n.RangeInput,{formName:"range",value:N,onChangeInput:D,resolvedAddress:a.getNames().getRanges.bind(a.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}})]})})}),o.jsxs(i.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.Pt,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),o.jsx(n.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(l){r.showError(l)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(l){r.showError(l)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(l){r.showError(l)}}}),o.jsx(i.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:o.jsx(n.TableStylePreview,{table:t,styles:a.styles(),bodyStyle:a.bodyStyle(),cellHeight:30,isLive:!0})}),o.jsx(n.Pt,{orientation:"horizontal"}),o.jsxs(i.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[o.jsx(n.vr,{variant:n.yo.Menuitem,command:d.getCommand("convertTableToRange"),commandState:t,icon:n.w5(o.jsx(n.Lo,{}))}),o.jsx(n.vr,{variant:n.yo.Menuitem,commandState:t,command:d.getCommand("deleteTable"),icon:n.w5(o.jsx(n.Lo,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=h,exports.default=h;