@sheetxl/studio-mui 0.4.12 → 0.4.14

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/-zKDSjn55SCvCwk8.cjs +6 -0
  2. package/browser/cjs/AoLA7tfyPshG_mKt.cjs +6 -0
  3. package/browser/cjs/As7uhSEgY8VJ3I6f.cjs +90 -0
  4. package/browser/cjs/B1Eaz6PFZAmrWiyY.cjs +6 -0
  5. package/browser/cjs/B8ZfZXhvW4sSKKZs.cjs +42 -0
  6. package/browser/cjs/BAfNSJo7fktzFVJd.cjs +11 -0
  7. package/browser/cjs/BH0v7IIykugrFxaT.cjs +6 -0
  8. package/browser/cjs/BUwmvmcdC0xBQ97L.cjs +145 -0
  9. package/browser/cjs/BiBEmbWoJHdOB1li.cjs +12 -0
  10. package/browser/cjs/BkVtS9FZxWYNmrbU.cjs +6 -0
  11. package/browser/cjs/Bmifo5y7ZMJolUTY.cjs +15 -0
  12. package/browser/cjs/BpLu9-spCLcAFdwd.cjs +6 -0
  13. package/browser/cjs/BqOg0z4HGrbNaL1k.cjs +6 -0
  14. package/browser/cjs/C6Fk0jGWAOED60yf.cjs +161 -0
  15. package/browser/cjs/CRvxop0QcZL23Akb.cjs +6 -0
  16. package/browser/cjs/CS5USjyVh8DwPSri.cjs +7 -0
  17. package/browser/cjs/Chz3K3Qt8M2FNJwI.cjs +12 -0
  18. package/browser/cjs/D2gy3JDrJyGAMqsl.cjs +7 -0
  19. package/browser/cjs/DD8-ZSDUkRqk7l6y.cjs +11 -0
  20. package/browser/cjs/DNL88d5PGwk92LeD.cjs +6 -0
  21. package/browser/cjs/DTHMIHonHaHeJ0o1.cjs +18 -0
  22. package/browser/cjs/DZ8WTAzF6V2Tw1tW.cjs +6 -0
  23. package/browser/cjs/W7LR70ajtjR9Lmvl.cjs +6 -0
  24. package/browser/cjs/XGmQ2kUHM2qQkG1r.cjs +16 -0
  25. package/browser/cjs/d2jsgbPdf35xArnn.cjs +6 -0
  26. package/browser/cjs/index.cjs +4 -10
  27. package/browser/esm/4fzdzYhVH9eIXv-E.mjs +2410 -0
  28. package/browser/esm/B-rZWEIXFvB2W_mP.mjs +84 -0
  29. package/browser/esm/C4ORm_Up6Zxt92F_.mjs +1672 -0
  30. package/browser/esm/C5OCdRxcYIZViFzN.mjs +13391 -0
  31. package/browser/esm/C8po4rRYJ8127Rgb.mjs +44 -0
  32. package/browser/esm/CB7vnn7AtsGma4R6.mjs +3803 -0
  33. package/browser/esm/CBQZHZlKIiEz186r.mjs +2251 -0
  34. package/browser/esm/CCwOCTrf9Bira1-Y.mjs +424 -0
  35. package/browser/esm/CHovQU_R4AuKULmT.mjs +392 -0
  36. package/browser/esm/CIH3ADFJJmUiyA8p.mjs +864 -0
  37. package/browser/esm/CQiALmsycGGLFj1o.mjs +25 -0
  38. package/browser/esm/CS6uJp7phBvUmos6.mjs +1467 -0
  39. package/browser/esm/CSKgHJSTMvOEe2RH.mjs +19981 -0
  40. package/browser/esm/CYG1vk4AMMwqsul7.mjs +1366 -0
  41. package/browser/esm/ClmlhDf-0RC5GFV3.mjs +52 -0
  42. package/browser/esm/CmAnpd_SOxQuTQRL.mjs +1703 -0
  43. package/browser/esm/DWy4L2usallW0WdU.mjs +153 -0
  44. package/browser/esm/Dc1PmtvbeqsIQHq6.mjs +48 -0
  45. package/browser/esm/DgKsUQMTThBdEQds.mjs +59 -0
  46. package/browser/esm/Dk00kGaRJxiitO5-.mjs +23 -0
  47. package/browser/esm/FdSIHwC_mNRZpcgJ.mjs +43 -0
  48. package/browser/esm/Ks946bL2vmd4m743.mjs +52 -0
  49. package/browser/esm/TlZOl3Gt-d0Nc2a8.mjs +46 -0
  50. package/browser/esm/_FvE2-K7MOW_qWVS.mjs +1352 -0
  51. package/browser/esm/index.mjs +83 -8
  52. package/browser/esm/vgS9ixFRuZrPx6vq.mjs +640 -0
  53. package/licenses/dependencies.txt +134 -134
  54. package/node/esm/{B3M2CzPvK2oKOfg5.mjs → 762kbapO408ejsVC.mjs} +2 -2
  55. package/node/esm/{CryVonGjJnmo2dE_.mjs → B0gJGF9-J3L5yBEW.mjs} +5 -5
  56. package/node/esm/{CBGAl2mih9mHDt5w.mjs → BR9YJuwMP9nTMBE-.mjs} +1 -1
  57. package/node/esm/{D1xD8cOQDGcbjIlG.mjs → BTNBRzW8ZZbJY4GL.mjs} +1 -1
  58. package/node/esm/{C2P_M1JNT_WZZN3H.mjs → Bgtg4I8EL4M776SY.mjs} +8 -8
  59. package/node/esm/{DUfB1ollhqU-JIk5.mjs → Bi5br6yrYZqhLEiY.mjs} +4 -4
  60. package/node/esm/{M3UB6IrhVERZziiJ.mjs → CCygt4zw40-jO57G.mjs} +2 -2
  61. package/node/esm/{m8fyd2BoYkTOJlc1.mjs → CTpkd2r1aBS5d0yl.mjs} +1 -1
  62. package/node/esm/{kHsChOtl8GUkzj5Q.mjs → CY1qC_sXGD6av4yO.mjs} +2 -2
  63. package/node/esm/{Dx2vq1Hdt4pqmOF-.mjs → CZoMFCKJudiTl_Tf.mjs} +2 -2
  64. package/node/esm/{kIQFLB3nmEJdn_OT.mjs → CzWLA_IQgFbENkMq.mjs} +1 -1
  65. package/node/esm/{BJY8yNMmN_yyRtIG.mjs → D1GfRQ1jyFg-wmLD.mjs} +1 -1
  66. package/node/esm/{D1C8ifsmXsypL6pp.mjs → DC2dPUCWVgxEKzaS.mjs} +13 -13
  67. package/node/esm/{Bj8uU2shfkvN4LnE.mjs → DOUP6ynjlQE-UEJs.mjs} +6 -6
  68. package/node/esm/{BIRLX0-9t62Lqats.mjs → DUqIYzvmrCd67Dpx.mjs} +2 -2
  69. package/node/esm/{CVGxETc4rIE1gNAH.mjs → DWCxF-chq5dVi363.mjs} +38 -38
  70. package/node/esm/{Bt5y5wVaVAVjwHBl.mjs → DghPySv_2Ts78czJ.mjs} +1 -1
  71. package/node/esm/{PF5CCBvapZxEzc7k.mjs → DrujinnhlNDCosqb.mjs} +1 -1
  72. package/node/esm/DsD7O5j2cXyaECkB.mjs +313 -0
  73. package/node/esm/{wdtYNTNCynMMS4_P.mjs → VHY56h6xqQcPba6u.mjs} +1 -1
  74. package/node/esm/{h1y2hBFecTqRgUa-.mjs → dlEq3vDkIERtTn7Y.mjs} +25 -25
  75. package/node/esm/index.mjs +4999 -5264
  76. package/node/esm/{CKtVB9hMCfabQMxC.mjs → yB8OTWhDomxUy_SX.mjs} +2 -2
  77. package/node/esm/{bv_GA6NGCT0sJaXy.mjs → yP0whgIwVZApluLw.mjs} +2 -2
  78. package/package.json +8 -8
  79. package/types/index.d.ts +0 -11
  80. package/browser/cjs/B7qLzxylqOaybl3H.cjs +0 -7
  81. package/browser/cjs/BNGixOiIsu8jZlvn.cjs +0 -7
  82. package/browser/cjs/BUYxt7KgFkIIIMyc.cjs +0 -7
  83. package/browser/cjs/Bk6VhhWsnCRyBu2F.cjs +0 -7
  84. package/browser/cjs/BpiMMYip132x0r1O.cjs +0 -7
  85. package/browser/cjs/ByZ_Q-J7jgF7AoWR.cjs +0 -7
  86. package/browser/cjs/BzD7LV8VmFKLAJyW.cjs +0 -7
  87. package/browser/cjs/C6_zcNM0Efa11KEE.cjs +0 -7
  88. package/browser/cjs/C8Azx_ZaQa4WvAtR.cjs +0 -7
  89. package/browser/cjs/CITvaW7L_iZfIyAN.cjs +0 -7
  90. package/browser/cjs/CNDDYOoLCrGsUMYL.cjs +0 -7
  91. package/browser/cjs/CYbeY5OVZDqHGSOm.cjs +0 -7
  92. package/browser/cjs/C_SgucbRn-v9IkNO.cjs +0 -7
  93. package/browser/cjs/CeTd2nFbE5yFzf7T.cjs +0 -7
  94. package/browser/cjs/Cfe7IbPNI8-CgoDI.cjs +0 -7
  95. package/browser/cjs/Ctyk-ajkSsTDJuvY.cjs +0 -7
  96. package/browser/cjs/DBhTQLbjAtU-A1YA.cjs +0 -7
  97. package/browser/cjs/Dc2rbOjtcmSIm8D4.cjs +0 -7
  98. package/browser/cjs/DcsvUmoS8zGG5GB8.cjs +0 -7
  99. package/browser/cjs/DqAlQQIZIyF7HMib.cjs +0 -7
  100. package/browser/cjs/DuwawlAm4aRBNTBm.cjs +0 -7
  101. package/browser/cjs/Dx9UUJj-yeubDjm4.cjs +0 -7
  102. package/browser/cjs/IC19hB4Ntvw1158j.cjs +0 -7
  103. package/browser/cjs/reQ9miE5C5qMfbRJ.cjs +0 -7
  104. package/browser/esm/B1Ey4ZP8BHUzHW7G.mjs +0 -7
  105. package/browser/esm/B8dJHVZJta8QbNKG.mjs +0 -7
  106. package/browser/esm/BThbC01mtb7qq8_A.mjs +0 -7
  107. package/browser/esm/Bnt1M91BRyMvXrc4.mjs +0 -7
  108. package/browser/esm/BqN0SYrEO0RZQtv-.mjs +0 -7
  109. package/browser/esm/CHPXsEre3jry2-jF.mjs +0 -7
  110. package/browser/esm/CMCOU0nDlymDFS9l.mjs +0 -7
  111. package/browser/esm/Cc7y1nMDr5J8jWx-.mjs +0 -7
  112. package/browser/esm/CesL-3BNbMB1f_if.mjs +0 -7
  113. package/browser/esm/CfvNSnuQLa1SPbNL.mjs +0 -7
  114. package/browser/esm/CloqVDbJmTL4oFek.mjs +0 -7
  115. package/browser/esm/Cta0yn5UIrP2UoT4.mjs +0 -7
  116. package/browser/esm/CwRyQHiDoBLx5_1g.mjs +0 -7
  117. package/browser/esm/DI-ZGstUJFwkx4H6.mjs +0 -7
  118. package/browser/esm/DQTfmweCXjuIlITn.mjs +0 -7
  119. package/browser/esm/DUIfOO25d1fqtJzn.mjs +0 -7
  120. package/browser/esm/DhOXsRr8c7bDS1jM.mjs +0 -7
  121. package/browser/esm/JPwh2m5-pXkdPVzF.mjs +0 -7
  122. package/browser/esm/UkNAvQj0NVgeMpUl.mjs +0 -7
  123. package/browser/esm/ZUfck_LDsQb9gpvU.mjs +0 -7
  124. package/browser/esm/gHhqkr52cxXkga0T.mjs +0 -7
  125. package/browser/esm/obM68UOvA5HV7Lt1.mjs +0 -7
  126. package/browser/esm/x9MyDRdLE47dI9dF.mjs +0 -7
  127. package/browser/esm/yW9jxnamUqAhVQkJ.mjs +0 -7
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),r=require("@mui/material"),n=require("./BzD7LV8VmFKLAJyW.cjs");var o=n.requirePropTypes();const i=n.getDefaultExportFromCjs(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var u=/^\s+/,s=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,c=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(s,"").toLowerCase();var e,r=!1;if(S[t])t=S[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=B.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=B.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=B.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=B.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=B.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=B.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=B.hex8.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:U(e[4]),format:r?"name":"hex8"};if(e=B.hex6.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:r?"name":"hex"};if(e=B.hex4.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:U(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=B.hex3.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==a(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(l=t.r,h=t.g,p=t.b,e={r:255*A(l,255),g:255*A(h,255),b:255*A(p,255)},c=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(n=T(t.s),o=T(t.v),e=function(t,e,r){t=6*A(t,360),e=A(e,100),r=A(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6,c=[r,a,i,i,u,r][s],f=[u,r,r,a,i,i][s],l=[i,i,u,r,r,a][s];return{r:255*c,g:255*f,b:255*l}}(t.h,n,o),c=!0,f="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(n=T(t.s),i=T(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=A(t,360),e=A(e,100),r=A(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,i),c=!0,f="hsl"),t.hasOwnProperty("a")&&(r=t.a));var l,h,p;return r=C(r),{ok:c,format:t.format||f,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok}function f(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function l(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function h(t,e,r,n){var o=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))];return n&&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 p(t,e,r,n){return[P(L(n)),P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))].join("")}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=E(r.s),c(r)}function b(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=E(r.s),c(r)}function v(t){return c(t).desaturate(100)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=E(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=E(r.l),c(r)}function w(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=c(t).toHsl(),n=[c(t)],o=360/e,i=1;i<e;i++)n.push(c({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function j(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function O(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),o=360/r,i=[c(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(c(n));return i}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(c({h:n,s:o,v:i})),i=(i+u)%1;return a}c.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,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16)),P(L(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.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 1==this._a?"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*A(this._r,255))+"%",g:Math.round(100*A(this._g,255))+"%",b:Math.round(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%)":"rgba("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=c(t);r="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(t,e){if("object"==a(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:T(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),o=c(e).toRgb(),i=r/100;return c({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},c.readability=function(t,e){var r=c(t),n=c(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,o,i=c.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},c.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var f=0;f<e.length;f++)(n=c.readability(t,e[f]))>s&&(s=n,u=c(e[f]));return c.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],r))};var S=c.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"},k=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return Math.min(1,Math.max(0,t))}function R(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function U(t){return R(t)/255}var F,D,z,B=(D="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",z="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+z),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 H(t){return!!B.CSS_UNIT.exec(t)}var W,$,N,I,V,X,q,Y,G,K,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt,ht,pt,dt,bt={},vt={};function gt(){if($)return W;$=1;var t="object"==typeof n.commonjsGlobal&&n.commonjsGlobal&&n.commonjsGlobal.Object===Object&&n.commonjsGlobal;return W=t}function yt(){if(I)return N;I=1;var t=gt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return N=r}function mt(){if(X)return V;X=1;var t=yt().Symbol;return V=t}function wt(){if(Q)return J;Q=1;var t=mt(),e=function(){if(Y)return q;Y=1;var t=mt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return q=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(K)return G;K=1;var t=Object.prototype.toString;return G=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return J=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function _t(){if(tt)return Z;tt=1;var t=Array.isArray;return Z=t}function xt(){if(rt)return et;return rt=1,et=function(t){return null!=t&&"object"==typeof t}}function jt(){if(st)return ut;st=1;var t=(at||(at=1,it=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}),it),e=t();return ut=e}function Ot(){if(dt)return pt;dt=1;var t=function(){if(ht)return lt;ht=1;var t=wt(),e=xt();return lt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=xt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return pt=i}var Mt,St,kt,Ct,At,Et,Rt,Pt,Tt,Lt,Ut,Ft={exports:{}};function Dt(){return kt||(kt=1,function(t,e){var r=yt(),n=St?Mt:(St=1,Mt=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(Ft,Ft.exports)),Ft.exports}function zt(){if(At)return Ct;At=1;var t=/^(?:0|[1-9]\d*)$/;return Ct=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Bt(){if(Rt)return Et;Rt=1;return Et=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ht(){if(Ut)return Lt;return Ut=1,Lt=function(t){return function(e){return t(e)}}}var Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,we,_e,xe,je,Oe,Me,Se,ke,Ce,Ae,Ee,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,qe,Ye,Ge,Ke,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,kr,Cr,Ar,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,qr,Yr,Gr,Kr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,kn,Cn,An,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,wo,_o,xo,jo,Oo,Mo,So,ko,Co,Ao,Eo,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo={exports:{}};function Ho(){return Wt||(Wt=1,function(t,e){var r=gt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(Bo,Bo.exports)),Bo.exports}function Wo(){if(Nt)return $t;Nt=1;var t=function(){if(Tt)return Pt;Tt=1;var t=wt(),e=Bt(),r=xt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Pt=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Ht(),r=Ho(),n=r&&r.isTypedArray,o=n?e(n):t;return $t=o}function $o(){if(Vt)return It;Vt=1;var t=(ft||(ft=1,ct=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),ct),e=Ot(),r=_t(),n=Dt(),o=zt(),i=Wo(),a=Object.prototype.hasOwnProperty;return It=function(u,s){var c=r(u),f=!c&&e(u),l=!c&&!f&&n(u),h=!c&&!f&&!l&&i(u),p=c||f||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function No(){if(qt)return Xt;qt=1;var t=Object.prototype;return Xt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function Io(){if(Gt)return Yt;return Gt=1,Yt=function(t,e){return function(r){return t(e(r))}}}function Vo(){if(Zt)return Qt;Zt=1;var t=No(),e=function(){if(Jt)return Kt;Jt=1;var t=Io()(Object.keys,Object);return Kt=t}(),r=Object.prototype.hasOwnProperty;return Qt=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function Xo(){if(ee)return te;return ee=1,te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function qo(){if(ne)return re;ne=1;var t=wt(),e=Xo();return re=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Yo(){if(ie)return oe;ie=1;var t=qo(),e=Bt();return oe=function(r){return null!=r&&e(r.length)&&!t(r)}}function Go(){if(ue)return ae;ue=1;var t=$o(),e=Vo(),r=Yo();return ae=function(n){return r(n)?t(n):e(n)}}function Ko(){if(ce)return se;ce=1;var t=jt(),e=Go();return se=function(r,n){return r&&t(r,n,e)}}function Jo(){if(le)return fe;return le=1,fe=function(t){return t}}function Qo(){if(be)return de;be=1;var t=Ko(),e=function(){if(pe)return he;pe=1;var t=Jo();return he=function(e){return"function"==typeof e?e:t}}();return de=function(r,n){return r&&t(r,e(n))}}function Zo(){if(ge)return ve;ge=1;var t=Io()(Object.getPrototypeOf,Object);return ve=t}function ti(){if(_e)return we;return _e=1,we=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},we}function ei(){if(Me)return Oe;return Me=1,Oe=function(t,e){return t===e||t!=t&&e!=e}}function ri(){if(ke)return Se;ke=1;var t=ei();return Se=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function ni(){if(De)return Fe;De=1;var t=je?xe:(je=1,xe=function(){this.__data__=[],this.size=0}),e=function(){if(Ae)return Ce;Ae=1;var t=ri(),e=Array.prototype.splice;return Ce=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))},Ce}(),r=function(){if(Re)return Ee;Re=1;var t=ri();return Ee=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]},Ee}(),n=function(){if(Te)return Pe;Te=1;var t=ri();return Pe=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ue)return Le;Ue=1;var t=ri();return Le=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this},Le}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Fe=i}function oi(){if(Ge)return Ye;Ge=1;var t,e=function(){if(qe)return Xe;qe=1;var t=yt()["__core-js_shared__"];return Xe=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Ye=function(t){return!!r&&r in t}}function ii(){if(Je)return Ke;Je=1;var t=Function.prototype.toString;return Ke=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ai(){if(nr)return rr;nr=1;var t=function(){if(Ze)return Qe;Ze=1;var t=qo(),e=oi(),r=Xo(),n=ii(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,c=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Qe=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=er?tr:(er=1,tr=function(t,e){return null==t?void 0:t[e]});return rr=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ui(){if(ir)return or;ir=1;var t=ai()(yt(),"Map");return or=t}function si(){if(ur)return ar;ur=1;var t=ai()(Object,"create");return ar=t}function ci(){if(mr)return yr;mr=1;var t=function(){if(cr)return sr;cr=1;var t=si();return sr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=lr?fr:(lr=1,fr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(pr)return hr;pr=1;var t=si(),e=Object.prototype.hasOwnProperty;return hr=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(br)return dr;br=1;var t=si(),e=Object.prototype.hasOwnProperty;return dr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(gr)return vr;gr=1;var t=si();return vr=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,yr=i}function fi(){if(Mr)return Or;Mr=1;var t=jr?xr:(jr=1,xr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Or=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function li(){if(Ur)return Lr;Ur=1;var t=function(){if(_r)return wr;_r=1;var t=ci(),e=ni(),r=ui();return wr=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(kr)return Sr;kr=1;var t=fi();return Sr=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Ar)return Cr;Ar=1;var t=fi();return Cr=function(e){return t(this,e).get(e)}}(),n=function(){if(Rr)return Er;Rr=1;var t=fi();return Er=function(e){return t(this,e).has(e)}}(),o=function(){if(Tr)return Pr;Tr=1;var t=fi();return Pr=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Lr=i}function hi(){if(Br)return zr;Br=1;var t=ni(),e=function(){if(Be)return ze;Be=1;var t=ni();return ze=function(){this.__data__=new t,this.size=0}}(),r=We?He:(We=1,He=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=Ne?$e:(Ne=1,$e=function(t){return this.__data__.get(t)}),o=Ve?Ie:(Ve=1,Ie=function(t){return this.__data__.has(t)}),i=function(){if(Dr)return Fr;Dr=1;var t=ni(),e=ui(),r=li();return Fr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,zr=a}function pi(){if(Vr)return Ir;Vr=1;var t=li(),e=Wr?Hr:(Wr=1,Hr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Nr?$r:(Nr=1,$r=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Ir=n}function di(){if(Jr)return Kr;Jr=1;var t=pi(),e=(qr||(qr=1,Xr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),Xr),r=Gr?Yr:(Gr=1,Yr=function(t,e){return t.has(e)});return Kr=function(n,o,i,a,u,s){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<f;){var g=n[d],y=o[d];if(a)var m=c?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b},Kr}function bi(){if(Zr)return Qr;Zr=1;var t=yt().Uint8Array;return Qr=t}function vi(){if(an)return on;an=1;var t=mt(),e=bi(),r=ei(),n=di(),o=(en||(en=1,tn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),tn),i=(nn||(nn=1,rn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),rn),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return on=function(t,a,s,c,f,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&c;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;c|=2,h.set(t,a);var v=n(p(t),p(a),c,f,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function gi(){if(sn)return un;return sn=1,un=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},un}function yi(){if(fn)return cn;fn=1;var t=gi(),e=_t();return cn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function mi(){if(dn)return pn;return dn=1,pn=function(){return[]}}function wi(){if(vn)return bn;vn=1;var t=(hn||(hn=1,ln=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),ln),e=mi(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return bn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function _i(){if(yn)return gn;yn=1;var t=yi(),e=wi(),r=Go();return gn=function(n){return t(n,r,e)}}function xi(){if(En)return An;En=1;var t=function(){if(xn)return _n;xn=1;var t=ai()(yt(),"DataView");return _n=t}(),e=ui(),r=function(){if(On)return jn;On=1;var t=ai()(yt(),"Promise");return jn=t}(),n=function(){if(Sn)return Mn;Sn=1;var t=ai()(yt(),"Set");return Mn=t}(),o=function(){if(Cn)return kn;Cn=1;var t=ai()(yt(),"WeakMap");return kn=t}(),i=wt(),a=ii(),u="[object Map]",s="[object Promise]",c="[object Set]",f="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=c||o&&g(new o)!=f)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return c;case v:return f}return e}),An=g}function ji(){if(Pn)return Rn;Pn=1;var t=hi(),e=di(),r=vi(),n=function(){if(wn)return mn;wn=1;var t=_i(),e=Object.prototype.hasOwnProperty;return mn=function(r,n,o,i,a,u){var s=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<f;){var g=r[h=c[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b},mn}(),o=xi(),i=_t(),a=Dt(),u=Wo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Rn=function(h,p,d,b,v,g){var y=i(h),m=i(p),w=y?c:o(h),_=m?c:o(p),x=(w=w==s?f:w)==f,j=(_=_==s?f:_)==f,O=w==_;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,w,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,C=S?p.value():p;return g||(g=new t),v(k,C,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function Oi(){if(Ln)return Tn;Ln=1;var t=ji(),e=xt();return Tn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))},Tn}function Mi(){if(zn)return Dn;zn=1;var t=Xo();return Dn=function(e){return e==e&&!t(e)}}function Si(){if($n)return Wn;return $n=1,Wn=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function ki(){if(In)return Nn;In=1;var t=function(){if(Fn)return Un;Fn=1;var t=hi(),e=Oi();return Un=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var c=o[a];if(s&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++a<u;){var f=(c=o[a])[0],l=r[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in r))return!1}else{var p=new t;if(i)var d=i(l,h,f,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0},Un}(),e=function(){if(Hn)return Bn;Hn=1;var t=Mi(),e=Go();return Bn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=Si();return Nn=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function Ci(){if(Xn)return Vn;Xn=1;var t=wt(),e=xt();return Vn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Ai(){if(Yn)return qn;Yn=1;var t=_t(),e=Ci(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return qn=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))}}function Ei(){if(Qn)return Jn;Qn=1;var t=function(){if(Kn)return Gn;Kn=1;var t=li();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,Gn=e}();return Jn=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}function Ri(){if(oo)return no;oo=1;var t=function(){if(ro)return eo;ro=1;var t=mt(),e=ti(),r=_t(),n=Ci(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return eo=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},eo}();return no=function(e){return null==e?"":t(e)}}function Pi(){if(ao)return io;ao=1;var t=_t(),e=Ai(),r=function(){if(to)return Zn;to=1;var t=Ei(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return Zn=n}(),n=Ri();return io=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Ti(){if(so)return uo;so=1;var t=Ci();return uo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Li(){if(fo)return co;fo=1;var t=Pi(),e=Ti();return co=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0},co}function Ui(){if(mo)return yo;mo=1;var t=bo?po:(bo=1,po=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(go)return vo;go=1;var t=Pi(),e=Ot(),r=_t(),n=zt(),o=Bt(),i=Ti();return vo=function(a,u,s){for(var c=-1,f=(u=t(u,a)).length,l=!1;++c<f;){var h=i(u[c]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++c!=f?l:!!(f=null==a?0:a.length)&&o(f)&&n(h,f)&&(r(a)||e(a))},vo}();return yo=function(r,n){return null!=r&&e(r,n,t)}}function Fi(){if(_o)return wo;_o=1;var t=Oi(),e=function(){if(ho)return lo;ho=1;var t=Li();return lo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=Ui(),n=Ai(),o=Mi(),i=Si(),a=Ti();return wo=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Di(){if(ko)return So;ko=1;var t=jo?xo:(jo=1,xo=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Mo)return Oo;Mo=1;var t=Li();return Oo=function(e){return function(r){return t(r,e)}}}(),r=Ai(),n=Ti();return So=function(o){return r(o)?t(n(o)):e(o)}}function zi(){if(To)return Po;To=1;var t=Ko(),e=function(){if(Ro)return Eo;Ro=1;var t=Yo();return Eo=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}},Eo}(),r=e(t);return Po=r}function Bi(){if(Do)return Fo;Do=1;var t=ti(),e=function(){if(Ao)return Co;Ao=1;var t=ki(),e=Fi(),r=Jo(),n=_t(),o=Di();return Co=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Uo)return Lo;Uo=1;var t=zi(),e=Yo();return Lo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i},Lo}(),n=_t();return Fo=function(o,i){return(n(o)?t:r)(o,e(i,3))}}function Hi(){if(zo)return vt;zo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.flattenNames=void 0;var t=function(){if(ot)return nt;ot=1;var t=wt(),e=_t(),r=xt();return nt=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(Qo()),n=function(){if(me)return ye;me=1;var t=wt(),e=Zo(),r=xt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return ye=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Bi());function a(t){return t&&t.__esModule?t:{default:t}}var u=vt.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return vt.default=u,vt}var Wi,$i,Ni,Ii,Vi,Xi,qi,Yi,Gi,Ki,Ji,Qi,Zi,ta,ea,ra,na,oa,ia,aa,ua={};function sa(){if(Xi)return Vi;Xi=1;var t=function(){if(Ii)return Ni;Ii=1;var t=ai(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ni=e}();return Vi=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function ca(){if(Yi)return qi;Yi=1;var t=sa(),e=ei(),r=Object.prototype.hasOwnProperty;return qi=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function fa(){if(Ki)return Gi;Ki=1;var t=ca(),e=sa();return Gi=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var c=n[u],f=i?i(o[c],r[c],c,o,r):void 0;void 0===f&&(f=r[c]),a?e(o,c,f):t(o,c,f)}return o},Gi}function la(){if(ra)return ea;ra=1;var t=Xo(),e=No(),r=ta?Zi:(ta=1,Zi=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return ea=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}function ha(){if(oa)return na;oa=1;var t=$o(),e=la(),r=Yo();return na=function(n){return r(n)?t(n,!0):e(n)}}var pa,da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,ka,Ca,Aa,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,Ja,Qa,Za,tu,eu={exports:{}};function ru(){if(ma)return ya;ma=1;var t=gi(),e=Zo(),r=wi(),n=mi(),o=Object.getOwnPropertySymbols;return ya=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function nu(){if(ka)return Sa;ka=1;var t=bi();return Sa=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function ou(){if(Da)return Fa;Da=1;var t=nu(),e=function(){if(Aa)return Ca;Aa=1;var t=nu();return Ca=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Ra)return Ea;Ra=1;var t=/\w*$/;return Ea=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Ta)return Pa;Ta=1;var t=mt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Pa=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Ua)return La;Ua=1;var t=nu();return La=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return Fa=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);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(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}function iu(){if(Wa)return Ha;Wa=1;var t=function(){if(Ba)return za;Ba=1;var t=Xo(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return za=r}(),e=Zo(),r=No();return Ha=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function au(){if(Va)return Ia;Va=1;var t=function(){if(Na)return $a;Na=1;var t=xi(),e=xt();return $a=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isMap,o=n?e(n):t;return Ia=o}function uu(){if(Ga)return Ya;Ga=1;var t=function(){if(qa)return Xa;qa=1;var t=xi(),e=xt();return Xa=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isSet,o=n?e(n):t;return Ya=o}function su(){if(Ja)return Ka;Ja=1;var t=hi(),e=($i||($i=1,Wi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),Wi),r=ca(),n=function(){if(Qi)return Ji;Qi=1;var t=fa(),e=Go();return Ji=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(aa)return ia;aa=1;var t=fa(),e=ha();return ia=function(r,n){return r&&t(n,e(n),r)}}(),i=(pa||(pa=1,function(t,e){var r=yt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(eu,eu.exports)),eu.exports),a=(ba||(ba=1,da=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),da),u=function(){if(ga)return va;ga=1;var t=fa(),e=wi();return va=function(r,n){return t(r,e(r),n)}}(),s=function(){if(_a)return wa;_a=1;var t=fa(),e=ru();return wa=function(r,n){return t(r,e(r),n)}}(),c=_i(),f=function(){if(ja)return xa;ja=1;var t=yi(),e=ru(),r=ha();return xa=function(n){return t(n,r,e)}}(),l=xi(),h=function(){if(Ma)return Oa;Ma=1;var t=Object.prototype.hasOwnProperty;return Oa=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=ou(),d=iu(),b=_t(),v=Dt(),g=au(),y=Xo(),m=uu(),w=Go(),_=ha(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,Ka=function S(k,C,A,E,R,P){var T,L=1&C,U=2&C,F=4&C;if(A&&(T=R?A(k,E,R,P):A(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,C,A,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,C,A,e,k,P))});var W=D?void 0:(F?U?f:c:U?_:w)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,C,A,e,k,P))}),T},Ka}function cu(){if(tu)return ua;tu=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.mergeClasses=void 0;var t=n(Qo()),e=n(function(){if(Za)return Qa;Za=1;var t=su();return Qa=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=ua.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return ua.default=o,ua}var fu,lu={};var hu,pu={};function du(){if(hu)return pu;hu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.hover=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=pu.hover=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return n.default.createElement(e,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return pu.default=i,pu}var bu,vu={};function gu(){if(bu)return vu;bu=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.active=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=vu.active=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return n.default.createElement(e,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return vu.default=i,vu}var yu,mu,wu={};var _u=function(){if(mu)return bt;mu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.ReactCSS=bt.loop=bt.handleActive=bt.handleHover=bt.hover=void 0;var t=u(Hi()),e=u(cu()),r=function(){if(fu)return lu;fu=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.autoprefix=void 0;var t,e=Qo(),r=(t=e)&&t.__esModule?t:{default:t},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},i=lu.autoprefix=function(t){var e={};return(0,r.default)(t,function(t,i){var a={};(0,r.default)(t,function(t,e){var r=o[e];r?a=n({},a,r(t)):a[e]=t}),e[i]=a}),e};return lu.default=i,lu}(),n=u(r),o=u(du()),i=u(gu()),a=u((yu||(yu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),wu));function u(t){return t&&t.__esModule?t:{default:t}}bt.hover=o.default,bt.handleHover=o.default,bt.handleActive=i.default,bt.loop=a.default;var s=bt.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return bt.default=s,bt}();const xu=n.getDefaultExportFromCjs(_u);var ju={},Ou=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(ju[o])return ju[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return ju[o]=i,i},Mu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Su=function(t){var r=t.white,n=t.grey,o=t.size,i=t.renderers,a=t.borderRadius,u=t.boxShadow,s=t.children,c=xu({default:{grid:{borderRadius:a,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+Ou(r,n,o,i.canvas)+") center left"}}});return e.isValidElement(s)?e.cloneElement(s,Mu({},s.props,{style:Mu({},s.props.style,c.grid)})):e.createElement("div",{style:c.grid})};Su.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ku=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Au(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Eu=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Au(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l=void 0;if(l=f<0?0:f>a?1:Math.round(100*f/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h=void 0;if(n!==(h=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Au(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e.PureComponent||e.Component),Cu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,r=this.props.rgb,n=xu({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("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*r.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("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)"},pointer:{left:0,top:100*r.a+"%"}},overwrite:ku({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return e.createElement("div",{style:n.alpha},e.createElement("div",{style:n.checkboard},e.createElement(Su,{renderers:this.props.renderers})),e.createElement("div",{style:n.gradient}),e.createElement("div",{style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("div",{style:n.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:n.slider}))))}}]),t}(),Ru=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var Pu=[38,40],Tu=1,Lu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,Pu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+Tu++,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e.PureComponent||e.Component),Ru(t,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.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(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,r=xu({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 e.createElement("div",{style:r.wrap},e.createElement("input",{id:this.inputId,style:r.input,ref:function(e){return t.input=e},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?e.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Uu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Fu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Du=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Fu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var f=void 0;if(f=c<0?359:c>i?0:360*(-100*c/i+100)/100,r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l=void 0;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},Fu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e.PureComponent||e.Component),Uu(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 t=this,r=this.props.direction,n=void 0===r?"horizontal":r,o=xu({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:"vertical"===n});return e.createElement("div",{style:o.hue},e.createElement("div",{className:"hue-"+n,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),e.createElement("div",{style:o.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:o.slider}))))}}]),t}(),zu="object"==typeof global&&global&&global.Object===Object&&global,Bu="object"==typeof self&&self&&self.Object===Object&&self,Hu=zu||Bu||Function("return this")(),Wu=Hu.Symbol,$u=Object.prototype,Nu=$u.hasOwnProperty,Iu=$u.toString,Vu=Wu?Wu.toStringTag:void 0;var Xu=Object.prototype.toString;var qu=Wu?Wu.toStringTag:void 0;function Yu(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qu&&qu in Object(t)?function(t){var e=Nu.call(t,Vu),r=t[Vu];try{t[Vu]=void 0;var n=!0}catch(t){}var o=Iu.call(t);return n&&(e?t[Vu]=r:delete t[Vu]),o}(t):function(t){return Xu.call(t)}(t)}function Gu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}i.string,i.oneOf([0,1,2,3,4,5]),i.number,i.object;var Ku=function(){return Hu.Date.now()},Ju=/\s/;var Qu=/^\s+/;function Zu(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ju.test(t.charAt(e)););return e}(t)+1).replace(Qu,""):t}var ts=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,rs=/^0o[0-7]+$/i,ns=parseInt;function os(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==Yu(t)}(t))return NaN;if(Gu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Gu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Zu(t);var r=es.test(t);return r||rs.test(t)?ns(t.slice(2),r?2:8):ts.test(t)?NaN:+t}var is=Math.max,as=Math.min;function us(t,e,r){var n,o,i,a,u,s,c=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,c=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-c>=i}function b(){var t=Ku();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?as(r,i-(t-c)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=Ku(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return c=t,u=setTimeout(b,e),f?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=os(e)||0,Gu(r)&&(f=!!r.leading,i=(l="maxWait"in r)?is(os(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(Ku())},g}var ss=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Gu(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),us(t,e,{leading:n,maxWait:e,trailing:o})}(function(t,e,r){t(e,r)},50),r}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(t,e.PureComponent||e.Component),ss(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,r=this.props.style||{},n=r.color,o=r.white,i=r.black,a=r.pointer,u=r.circle,s=xu({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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:u}},{custom:!!this.props.style});return e.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),e.createElement("div",{style:s.white,className:"saturation-white"},e.createElement("div",{style:s.black,className:"saturation-black"}),e.createElement("div",{style:s.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:s.circle}))))}}])}();var cs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fs=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function ls(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var hs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";(function(){function n(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=ls(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},ls(r,e)}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(n,e.Component),fs(n,[{key:"render",value:function(){return e.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},e.createElement(t,cs({},this.props,this.state)))}}])})()}(function(t){var r=t.color,n=t.style,o=t.onClick,i=void 0===o?function(){}:o,a=t.onHover,u=t.title,s=void 0===u?r:u,c=t.children,f=t.focus,l=t.focusStyle,h="transparent"===r,p=xu({default:{swatch:hs({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,f?void 0===l?{}:l:{})}}),d={};return a&&(d.onMouseOver=function(t){return a(r,t)}),e.createElement("div",hs({style:p.swatch,onClick:function(t){return i(r,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&i(r,t)}},d),c,h&&e.createElement(Su,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var ps=function(t){var r=t.onChange,n=t.rgb,o=t.hsl,i=t.hex,a=t.disableAlpha,u=xu({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:a}),s=function(t,e){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&c(t).isValid()}(t.hex)&&r({hex:t.hex,source:"hex"},e):t.r||t.g||t.b?r({r:t.r||n.r,g:t.g||n.g,b:t.b||n.b,a:n.a,source:"rgb"},e):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,r({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},e))};return e.createElement("div",{style:u.fields,className:"flexbox-fix"},e.createElement("div",{style:u.double},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.alpha},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ds extends(e.PureComponent||e.Component){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var c=Date.now();u||!1!==r.leading||(u=c);var f=e-(c-u);return o=this,i=arguments,f<=0||f>e?(n&&(clearTimeout(n),n=null),u=c,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:e,white:r,black:n,pointer:o,circle:i}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return t.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[t.jsx("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),t.jsxs("div",{style:u.white,className:"saturation-white",children:[t.jsx("div",{style:u.black,className:"saturation-black"}),t.jsx("div",{style:u.pointer,children:this.props.pointer?t.jsx(this.props.pointer,{...this.props}):t.jsx("div",{style:u.circle})})]})]})}}const bs=(t,e=null)=>{const r=t.hex?c(t.hex):c(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},vs=e.memo(o=>{const{selectedColor:i,onColorChange:a,renderers:u,disableAlpha:s=!1,style:c=n.yt.EmptyCssProperties,...f}=o,l=n.useTheme(),[h,p]=e.useState(()=>bs(i)),[d,b]=e.useState(h.hsl.h??0),v=e.useCallback(t=>{let e=bs(t,d);return b(e.hsl.h??0),p(e),e},[d]),g=e.useCallback(t=>{const e=v(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${s?1:e.rgb.a})`;a?.(r)},[a,v,s]);e.useLayoutEffect(()=>{v(i)},[i,v]);const y=t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Eu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:h.rgb,hsl:h.hsl,renderers:u,onChange:g})});return t.jsxs("div",{style:{display:"flex",flexDirection:"column",...c},...f,children:[t.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:t.jsx(ds,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,hsv:h.hsv,onChange:g})}),t.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:s?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Du,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,onChange:g})}),s?null:y]}),t.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[t.jsx(n.Checkboard,{grey:l.palette.text.icon??l.palette.action.active}),t.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${h.rgb.r},${h.rgb.g},${h.rgb.b},${s?1:h.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),t.jsx(r.Box,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:t.jsx(ps,{rgb:h.rgb,hsl:h.hsl,hex:h.hex,disableAlpha:s,onChange:g})})]})});exports.CustomColorPanel=vs,exports.default=vs,exports.toState=bs;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sheetxl/sdk");exports.fromBufferCSV=async(t,r)=>{const{papaParseConfig:o,setValuesOptions:n,createWorkbookOptions:s}=r??{},a=await Promise.resolve().then(()=>require("./Dc2rbOjtcmSIm8D4.cjs")).then(e=>e.p),l=(new TextDecoder).decode(t);let i=-1;const c=new e.Workbook(s),d=c.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:e.IRange.Orientation.Row}),u=r?.onProgress;let p=0;const f={...o,transform:(e,t)=>{o?.transform&&(e=o.transform(e,t));const r=t;0===r&&i++;let n=e??"";return d.pushAt(i,r,n),p++,p%1e5==0&&u?.(p),e}};return a.parse(l,f).data,d.apply({textParser:!0,...n}),c},exports.toBufferCSV=async(e,t)=>{const{trimLeadingBlankRow:r=!0,trimLeadingBlankColumn:o=!0,excludeHidden:n=!1,sheetKey:s=null,papaParseConfig:a={}}=t||{},l=await Promise.resolve().then(()=>require("./Dc2rbOjtcmSIm8D4.cjs")).then(e=>e.p);if(!e)throw new Error("workbook must be specified");let i=null;if(null===s?i=e.getSelectedSheet():"number"==typeof s?i=e.getSheets().search()[s]:"string"==typeof s&&(i=e.getSheets().getByName(s)),!i)throw new Error("invalid sheetKey specified");let c=null;const d=[];let u=null,p=i.getUsedRange({excludeHidden:n});if(!p)throw new Error("Nothing to export");if(!r||!o){const e=r?p.getRowStart():0,t=o?p.getColumnStart():0;p=p.getOffsetTo(e,t)}p.forEach((e,t)=>{const r=t.getCoords(),o=t.getCell();c!==r.rowIndex&&(u&&d.push(u),u=[],c=r.rowIndex);const n=o.toTextUnformatted()??"";u.push(n)},{includeEmpty:!0,address:null}),u&&d.push(u);const f={...a},g=l.unparse(d,f);return(new TextEncoder).encode(g).buffer};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),a=require("./BzD7LV8VmFKLAJyW.cjs"),o=["Ok","Cancel"],s=t.memo(s=>{const{tableOptions:l,context:i,onOption:r,onValidateOption:c,onDone:p,options:u=o,defaultOption:d=u?.[0],cancelOption:g="Cancel",sx:x,...m}=s,[b,h]=t.useState(!1),[O,j]=t.useState(()=>l?.hasHeader??!1),[f,C]=t.useState(()=>l?.ranges??null),S=a.B(e=>{const t={...l,hasHeader:O,ranges:f};r?.(e,e===g,e===d),p?.({option:e,tableOptions:t})},[p,r,d,g,O,f,l]),T=t.useCallback(async(e,t)=>null,[]);return e.jsx(a.pm,{title:"Insert Table",options:u,onDone:S,onValidateOption:T,defaultOption:d,cancelOption:g,autoFocusSel:".range-input input",sx:{width:"360px",...x},...m,children:e.jsxs(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsx(a.RangeInput,{formName:"range",value:f,onChangeInput:e=>C(e),resolvedAddress:i.getNames().getRanges.bind(i.getNames()),onFocus:e=>{b||e.target?.select(),h(!0)}}),e.jsx(n.FormControlLabel,{control:e.jsx(n.Checkbox,{checked:O,onChange:()=>j(!O)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=s,exports.default=s;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,t={exports:{}};const i=function(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[(e||(e=1,t.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),E()){if(y)if(Array.isArray(y.data[0])){for(var t=0;E()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function E(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,E()?w():(w(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),w(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,w=v(n),E=[],R=[],C=[],S=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var O=o.split(i),x=0;x<O.length;x++){if(C=O[x],l+=C.length,x!==O.length-1)l+=i.length;else if(_)return P();if(!r||C.substring(0,b)!==r){if(w){if(E=[],F(C.split(t)),U(),c)return P()}else F(C.split(t));if(s&&s<=x)return E=E.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:l}),M();if(D===m-1)return M(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){C.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(C.push(o.substring(l,D).replace(T,d)),z(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0);break}R.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:l}),D++}}else if(r&&0===C.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))C.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(C.push(o.substring(l,I)),z(I+k),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0)}return M();function F(e){E.push(e),S=l}function j(e){return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:0}function M(e){return _||(void 0===e&&(e=o.substring(l)),C.push(e),l=m,F(C),w&&U()),P()}function z(e){l=e,F(C),C=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&E.length&&!u){var n=E[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:E,errors:R,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:S+(g||0),renamedHeaders:h}}}function U(){n(P()),E=[],R=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h=n[0];if(v(e.before)){var u=e.before(h.file,h.inputElem);if("object"==typeof u){if("abort"===u.action)return i=h.file,r=h.inputElem,s=u.reason,void(v(e.error)&&e.error({name:"AbortError"},i,r,s));if("skip"===u.action)return void a();"object"==typeof u.config&&(h.instanceConfig=t.extend(h.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=h.instanceConfig.complete;h.instanceConfig.complete=function(e){v(d)&&d(e,h.file,h.inputElem),a()},o.parse(h.file,h.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),t.exports)]);exports.p=i;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";function t(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function e(t){return"string"==typeof t}function n(t){return"number"==typeof t}function s(t){return!0===t||!1===t||function(t){return i(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}function i(t){return"object"==typeof t}function r(t){return null!=t}function u(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=Object.prototype.hasOwnProperty;class h{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=a(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function a(n){let s=null,i=null,r=null,u=1,c=null;if(e(n)||t(n))r=n,s=l(n),i=d(n);else{if(!o.call(n,"name"))throw new Error((t=>`Missing ${t} property in key`)("name"));const t=n.name;if(r=t,o.call(n,"weight")&&(u=n.weight,u<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(t));s=l(t),i=d(t),c=n.getFn}return{path:s,id:i,weight:u,src:r,getFn:c}}function l(e){return t(e)?e:e.split(".")}function d(e){return t(e)?e.join("."):e}var g={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(i,u){let c=[],o=!1;const h=(i,u,a)=>{if(r(i))if(u[a]){const l=i[u[a]];if(!r(l))return;if(a===u.length-1&&(e(l)||n(l)||s(l)))c.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(l));else if(t(l)){o=!0;for(let t=0,e=l.length;t<e;t+=1)h(l[t],u,a+1)}else u.length&&h(l,u,a+1)}else c.push(i)};return h(i,e(u)?u.split("."):u,0),o?c:c[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const f=/[^ ]+/g;class A{constructor({getFn:t=g.getFn,fieldNormWeight:e=g.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(e){const i=e.match(f).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*t),u=parseFloat(Math.round(r*s)/s);return n.set(i,u),u},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,e(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const n=this.size();e(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!r(t)||u(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(n,s){let i={i:s,$:{}};this.keys.forEach((s,c)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(r(o))if(t(o)){let n=[];const s=[{nestedArrIndex:-1,value:o}];for(;s.length;){const{nestedArrIndex:i,value:c}=s.pop();if(r(c))if(e(c)&&!u(c)){let t={v:c,i:i,n:this.norm.get(c)};n.push(t)}else t(c)&&c.forEach((t,e)=>{s.push({nestedArrIndex:e,value:t})})}i.$[c]=n}else if(e(o)&&!u(o)){let t={v:o,n:this.norm.get(o)};i.$[c]=t}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function p(t,e,{getFn:n=g.getFn,fieldNormWeight:s=g.fieldNormWeight}={}){const i=new A({getFn:n,fieldNormWeight:s});return i.setKeys(t.map(a)),i.setSources(e),i.create(),i}function C(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:i=g.distance,ignoreLocation:r=g.ignoreLocation}={}){const u=e/t.length;if(r)return u;const c=Math.abs(s-n);return i?u+c/i:c?1:u}const m=32;function M(t,e,n,{location:s=g.location,distance:i=g.distance,threshold:r=g.threshold,findAllMatches:u=g.findAllMatches,minMatchCharLength:c=g.minMatchCharLength,includeMatches:o=g.includeMatches,ignoreLocation:h=g.ignoreLocation}={}){if(e.length>m)throw new Error(`Pattern length exceeds max of ${m}.`);const a=e.length,l=t.length,d=Math.max(0,Math.min(s,l));let f=r,A=d;const p=c>1||o,M=p?Array(l):[];let F;for(;(F=t.indexOf(e,A))>-1;){let t=C(e,{currentLocation:F,expectedLocation:d,distance:i,ignoreLocation:h});if(f=Math.min(t,f),A=F+a,p){let t=0;for(;t<a;)M[F+t]=1,t+=1}}A=-1;let E=[],y=1,D=a+l;const x=1<<a-1;for(let s=0;s<a;s+=1){let r=0,c=D;for(;r<c;){C(e,{errors:s,currentLocation:d+c,expectedLocation:d,distance:i,ignoreLocation:h})<=f?r=c:D=c,c=Math.floor((D-r)/2+r)}D=c;let o=Math.max(1,d-c+1),g=u?l:Math.min(d+c,l)+a,m=Array(g+2);m[g+1]=(1<<s)-1;for(let r=g;r>=o;r-=1){let u=r-1,c=n[t.charAt(u)];if(p&&(M[u]=+!!c),m[r]=(m[r+1]<<1|1)&c,s&&(m[r]|=(E[r+1]|E[r])<<1|1|E[r+1]),m[r]&x&&(y=C(e,{errors:s,currentLocation:u,expectedLocation:d,distance:i,ignoreLocation:h}),y<=f)){if(f=y,A=u,A<=d)break;o=Math.max(1,2*d-A)}}if(C(e,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:h})>f)break;E=m}const B={isMatch:A>=0,score:Math.max(.001,y)};if(p){const t=function(t=[],e=g.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let u=t.length;r<u;r+=1){let u=t[r];u&&-1===s?s=r:u||-1===s||(i=r-1,i-s+1>=e&&n.push([s,i]),s=-1)}return t[r-1]&&r-s>=e&&n.push([s,r-1]),n}(M,c);t.length?o&&(B.indices=t):B.isMatch=!1}return B}function F(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const i=t.charAt(n);e[i]=(e[i]||0)|1<<s-n-1}return e}const E=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class y{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h},t=c?t:t.toLowerCase(),t=o?E(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const a=(t,e)=>{this.chunks.push({pattern:t,alphabet:F(t),startIndex:e})},l=this.pattern.length;if(l>m){let t=0;const e=l%m,n=l-e;for(;t<n;)a(this.pattern.substr(t,m),t),t+=m;if(e){const t=l-m;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern===t){let e={isMatch:!0,score:0};return s&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,ignoreLocation:h}=this.options;let a=[],l=0,d=!1;this.chunks.forEach(({pattern:e,alphabet:n,startIndex:g})=>{const{isMatch:f,score:A,indices:p}=M(t,e,n,{location:i+g,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,includeMatches:s,ignoreLocation:h});f&&(d=!0),l+=A,f&&p&&(a=[...a,...p])});let g={isMatch:d,score:d?l/this.chunks.length:1};return d&&s&&(g.indices=a),g}}class D{constructor(t){this.pattern=t}static isMultiMatch(t){return x(t,this.multiRegex)}static isSingleMatch(t){return x(t,this.singleRegex)}search(){}}function x(t,e){const n=t.match(e);return n?n[1]:null}class B extends D{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){super(t),this._bitapSearch=new y(t,{location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class L extends D{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,s.push([e,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const k=[class extends D{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},L,class extends D{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends D{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends D{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends D{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends D{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},B],_=k.length,v=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const S=new Set([B.type,L.type]);class I{constructor(t,{isCaseSensitive:e=g.isCaseSensitive,ignoreDiacritics:n=g.ignoreDiacritics,includeMatches:s=g.includeMatches,minMatchCharLength:i=g.minMatchCharLength,ignoreLocation:r=g.ignoreLocation,findAllMatches:u=g.findAllMatches,location:c=g.location,threshold:o=g.threshold,distance:h=g.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:i,findAllMatches:u,ignoreLocation:r,location:c,threshold:o,distance:h},t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(v).filter(t=>t&&!!t.trim()),s=[];for(let t=0,i=n.length;t<i;t+=1){const i=n[t];let r=!1,u=-1;for(;!r&&++u<_;){const t=k[u];let n=t.isMultiMatch(i);n&&(s.push(new t(n,e)),r=!0)}if(!r)for(u=-1;++u<_;){const t=k[u];let n=t.isSingleMatch(i);if(n){s.push(new t(n,e));break}}}return s})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:i}=this.options;t=s?t:t.toLowerCase(),t=i?E(t):t;let r=0,u=[],c=0;for(let s=0,i=e.length;s<i;s+=1){const i=e[s];u.length=0,r=0;for(let e=0,s=i.length;e<s;e+=1){const s=i[e],{isMatch:o,indices:h,score:a}=s.search(t);if(!o){c=0,r=0,u.length=0;break}if(r+=1,c+=a,n){const t=s.constructor.type;S.has(t)?u=[...u,...h]:u.push(h)}}if(r){let t={isMatch:!0,score:c/r};return n&&(t.indices=u),t}}return{isMatch:!1,score:1}}}const w=[];function $(t,e){for(let n=0,s=w.length;n<s;n+=1){let s=w[n];if(s.condition(t,e))return new s(t,e)}return new y(t,e)}const b="$and",N="$or",R="$path",O="$val",j=t=>!(!t[b]&&!t[N]),W=t=>({[b]:Object.keys(t).map(e=>({[e]:t[e]}))});function z(n,s,{auto:r=!0}={}){const u=n=>{let c=Object.keys(n);const o=(t=>!!t[R])(n);if(!o&&c.length>1&&!j(n))return u(W(n));if((e=>!t(e)&&i(e)&&!j(e))(n)){const t=o?n[R]:c[0],i=o?n[O]:n[t];if(!e(i))throw new Error((t=>`Invalid value for key ${t}`)(t));const u={keyId:d(t),pattern:i};return r&&(u.searcher=$(i,s)),u}let h={children:[],operator:c[0]};return c.forEach(e=>{const s=n[e];t(s)&&s.forEach(t=>{h.children.push(u(t))})}),h};return j(n)||(n=W(n)),u(n)}function K(t,e){const n=t.matches;e.matches=[],r(n)&&n.forEach(t=>{if(!r(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let i={indices:n,value:s};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)})}function P(t,e){e.score=t.score}class q{constructor(t,e={},n){this.options={...g,...e},this.options.useExtendedSearch,this._keyStore=new h(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof A))throw new Error("Incorrect 'index' type");this._myIndex=e||p(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){r(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let n=0,s=this._docs.length;n<s;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,s-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:i,includeScore:r,shouldSort:u,sortFn:c,ignoreFieldNorm:o}=this.options;let h=e(t)?e(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=g.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:s,score:i})=>{const r=t?t.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:s))}),t.score=n})}(h,{ignoreFieldNorm:o}),u&&h.sort(c),n(s)&&s>-1&&(h=h.slice(0,s)),function(t,e,{includeMatches:n=g.includeMatches,includeScore:s=g.includeScore}={}){const i=[];return n&&i.push(K),s&&i.push(P),t.map(t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return i.length&&i.forEach(e=>{e(t,s)}),s})}(h,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(t){const e=$(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:t,i:n,n:i})=>{if(!r(t))return;const{isMatch:u,score:c,indices:o}=e.searchIn(t);u&&s.push({item:t,idx:n,matches:[{score:c,value:t,norm:i,indices:o}]})}),s}_searchLogical(t){const e=z(t,this.options),n=(t,e,s)=>{if(!t.children){const{keyId:n,searcher:i}=t,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const i=[];for(let r=0,u=t.children.length;r<u;r+=1){const u=t.children[r],c=n(u,e,s);if(c.length)i.push(...c);else if(t.operator===b)return[]}return i},s=this._myIndex.records,i={},u=[];return s.forEach(({$:t,i:s})=>{if(r(t)){let r=n(e,t,s);r.length&&(i[s]||(i[s]={idx:s,item:t,matches:[]},u.push(i[s])),r.forEach(({matches:t})=>{i[s].matches.push(...t)}))}}),u}_searchObjectList(t){const e=$(t,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach(({$:t,i:s})=>{if(!r(t))return;let u=[];n.forEach((n,s)=>{u.push(...this._findMatches({key:n,value:t[s],searcher:e}))}),u.length&&i.push({idx:s,item:t,matches:u})}),i}_findMatches({key:e,value:n,searcher:s}){if(!r(n))return[];let i=[];if(t(n))n.forEach(({v:t,i:n,n:u})=>{if(!r(t))return;const{isMatch:c,score:o,indices:h}=s.searchIn(t);c&&i.push({score:o,key:e,value:t,idx:n,norm:u,indices:h})});else{const{v:t,n:r}=n,{isMatch:u,score:c,indices:o}=s.searchIn(t);u&&i.push({score:c,key:e,value:t,norm:r,indices:o})}return i}}q.version="7.1.0",q.createIndex=p,q.parseIndex=function(t,{getFn:e=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){const{keys:s,records:i}=t,r=new A({getFn:e,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},q.config=g,q.parseQuery=z,function(...t){w.push(...t)}(I),exports.default=q;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";function e(){}function t(e){return"object"==typeof e&&null!==e||"function"==typeof e}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e;function o(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const n=Promise,i=Promise.resolve.bind(n),a=Promise.prototype.then,s=Promise.reject.bind(n),l=i;function u(e){return new n(e)}function c(e){return u(t=>t(e))}function d(e){return s(e)}function f(e,t,r){return a.call(e,t,r)}function b(e,t,o){f(f(e,t,o),void 0,r)}function h(e,t){b(e,t)}function _(e,t){b(e,void 0,t)}function p(e,t,r){return f(e,t,r)}function m(e){f(e,void 0,r)}let y=e=>{if("function"==typeof queueMicrotask)y=queueMicrotask;else{const e=c(void 0);y=t=>f(e,t)}return y(e)};function v(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function w(e,t,r){try{return c(v(e,t,r))}catch(e){return d(e)}}class g{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(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;const n=e._elements,i=n[r];return 16384===o&&(t=e._next,o=0),--this._size,this._cursor=o,e!==t&&(this._front=t),n[r]=void 0,i}forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o.length&&void 0===r._next||t===o.length&&(r=r._next,o=r._elements,t=0,0===o.length));)e(o[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const S=Symbol("[[AbortSteps]]"),R=Symbol("[[ErrorSteps]]"),T=Symbol("[[CancelSteps]]"),q=Symbol("[[PullSteps]]"),E=Symbol("[[ReleaseSteps]]");function P(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?A(e):"closed"===t._state?function(e){A(e),z(e)}(e):k(e,t._storedError)}function C(e,t){return zr(e._ownerReadableStream,t)}function O(e){const t=e._ownerReadableStream;"readable"===t._state?W(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){k(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),t._readableStreamController[E](),t._reader=void 0,e._ownerReadableStream=void 0}function j(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function A(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function k(e,t){A(e),W(e,t)}function W(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function z(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const B=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},F=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function I(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(`${t} is not an object.`);var r}function L(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function $(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function x(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function D(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function M(e){return Number(e)}function N(e){return 0===e?0:e}function Y(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=N(o),!B(o))throw new TypeError(`${t} is not a finite number`);if(o=function(e){return N(F(e))}(o),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return B(o)&&0!==o?o:0}function V(e,t){if(!kr(e))throw new TypeError(`${t} is not a ReadableStream.`)}function U(e){return new K(e)}function H(e,t){e._reader._readRequests.push(t)}function G(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function X(e){return e._reader._readRequests.length}function J(e){const t=e._reader;return void 0!==t&&!!Q(t)}class K{constructor(e){if(x(e,1,"ReadableStreamDefaultReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");P(this,e),this._readRequests=new g}get closed(){return Q(this)?this._closedPromise:d(te("closed"))}cancel(e=void 0){return Q(this)?void 0===this._ownerReadableStream?d(j("cancel")):C(this,e):d(te("cancel"))}read(){if(!Q(this))return d(te("read"));if(void 0===this._ownerReadableStream)return d(j("read from"));let e,t;const r=u((r,o)=>{e=r,t=o});return Z(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!Q(this))throw te("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ee(e,new TypeError("Reader was released"))}(this)}}function Q(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof K}function Z(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[q](t)}function ee(e,t){const r=e._readRequests;e._readRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function te(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var re,oe,ne;function ie(e){return e.slice()}function ae(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}Object.defineProperties(K.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(K.prototype.cancel,"cancel"),o(K.prototype.read,"read"),o(K.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(K.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let se=e=>(se="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,se(e)),le=e=>(le="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,le(e));function ue(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,n=new ArrayBuffer(o);return ae(n,0,e,t,o),n}function ce(e,t){const r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(`${String(t)} is not a function`);return r}}function de(e){try{const t=e.done,r=e.value;return f(l(r),e=>({done:t,value:e}))}catch(e){return d(e)}}const fe=null!==(ne=null!==(re=Symbol.asyncIterator)&&void 0!==re?re:null===(oe=Symbol.for)||void 0===oe?void 0:oe.call(Symbol,"Symbol.asyncIterator"))&&void 0!==ne?ne:"@@asyncIterator";function be(e,r="sync",o){if(void 0===o)if("async"===r){if(void 0===(o=ce(e,fe)))return function(e){const r={next(){let t;try{t=he(e)}catch(e){return d(e)}return de(t)},return(r){let o;try{const t=ce(e.iterator,"return");if(void 0===t)return c({done:!0,value:r});o=v(t,e.iterator,[r])}catch(e){return d(e)}return t(o)?de(o):d(new TypeError("The iterator.return() method must return an object"))}};return{iterator:r,nextMethod:r.next,done:!1}}(be(e,"sync",ce(e,Symbol.iterator)))}else o=ce(e,Symbol.iterator);if(void 0===o)throw new TypeError("The object is not iterable");const n=v(o,e,[]);if(!t(n))throw new TypeError("The iterator method must return an object");return{iterator:n,nextMethod:n.next,done:!1}}function he(e){const r=v(e.nextMethod,e.iterator,[]);if(!t(r))throw new TypeError("The iterator.next() method must return an object");return r}class _e{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,r;const o=u((e,o)=>{t=e,r=o});return Z(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,y(()=>t({value:e,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),r(t)}}),o}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const r=C(t,e);return O(t),p(r,()=>({value:e,done:!0}))}return O(t),c({value:e,done:!0})}}const pe={next(){return me(this)?this._asyncIteratorImpl.next():d(ye("next"))},return(e){return me(this)?this._asyncIteratorImpl.return(e):d(ye("return"))},[fe](){return this}};function me(e){if(!t(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof _e}catch(e){return!1}}function ye(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(pe,fe,{enumerable:!1});const ve=Number.isNaN||function(e){return e!=e};function we(e){const t=ue(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function ge(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Se(e,t,r){if("number"!=typeof(o=r)||ve(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 Re(e){e._queue=new g,e._queueTotalSize=0}function Te(e){return e===DataView}class qe{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Ce(this))throw et("view");return this._view}respond(e){if(!Ce(this))throw et("respond");if(x(e,1,"respond"),e=Y(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ke(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Ce(this))throw et("respondWithNewView");if(x(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(e.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Qe(this._associatedReadableByteStreamController,e)}}Object.defineProperties(qe.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),o(qe.prototype.respond,"respond"),o(qe.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(qe.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Ee{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Pe(this))throw tt("byobRequest");return Xe(this)}get desiredSize(){if(!Pe(this))throw tt("desiredSize");return Je(this)}close(){if(!Pe(this))throw tt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ve(this)}enqueue(e){if(!Pe(this))throw tt("enqueue");if(x(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Ue(this,e)}error(e=void 0){if(!Pe(this))throw tt("error");He(this,e)}[T](e){je(this),Re(this);const t=this._cancelAlgorithm(e);return Ye(this),t}[q](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Ge(this,e);const r=this._autoAllocateChunkSize;if(void 0!==r){let o;try{o=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const n={buffer:o,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}H(t,e),Oe(this)}[E](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new g,this._pendingPullIntos.push(e)}}}function Pe(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Ee}function Ce(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof qe}function Oe(e){const t=function(e){const t=e._controlledReadableByteStream;return"readable"===t._state&&(!e._closeRequested&&(!!e._started&&(!!(J(t)&&X(t)>0)||(!!(at(t)&&it(t)>0)||Je(e)>0))))}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Oe(e)),null),t=>(He(e,t),null))))}function je(e){xe(e),e._pendingPullIntos=new g}function Ae(e,t){let r=!1;"closed"===e._state&&(r=!0);const o=We(t);"default"===t.readerType?G(e,o,r):function(e,t,r){const o=e._reader._readIntoRequests.shift();r?o._closeSteps(t):o._chunkSteps(t)}(e,o,r)}function ke(e,t){for(let r=0;r<t.length;++r)Ae(e,t[r])}function We(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function ze(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Be(e,t,r,o){let n;try{n=ue(t,r,r+o)}catch(t){throw He(e,t),t}ze(e,n,0,o)}function Fe(e,t){t.bytesFilled>0&&Be(e,t.buffer,t.byteOffset,t.bytesFilled),Ne(e)}function Ie(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let n=r,i=!1;const a=o-o%t.elementSize;a>=t.minimumFill&&(n=a-t.bytesFilled,i=!0);const s=e._queue;for(;n>0;){const r=s.peek(),o=Math.min(n,r.byteLength),i=t.byteOffset+t.bytesFilled;ae(t.buffer,i,r.buffer,r.byteOffset,o),r.byteLength===o?s.shift():(r.byteOffset+=o,r.byteLength-=o),e._queueTotalSize-=o,Le(e,o,t),n-=o}return i}function Le(e,t,r){r.bytesFilled+=t}function $e(e){0===e._queueTotalSize&&e._closeRequested?(Ye(e),Br(e._controlledReadableByteStream)):Oe(e)}function xe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function De(e){const t=[];for(;e._pendingPullIntos.length>0&&0!==e._queueTotalSize;){const r=e._pendingPullIntos.peek();Ie(e,r)&&(Ne(e),t.push(r))}return t}function Me(e,t){const r=e._pendingPullIntos.peek();xe(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&Ne(e);const r=e._controlledReadableByteStream;if(at(r)){const t=[];for(let o=0;o<it(r);++o)t.push(Ne(e));ke(r,t)}}(e,r):function(e,t,r){if(Le(0,t,r),"none"===r.readerType){Fe(e,r);const t=De(e);return void ke(e._controlledReadableByteStream,t)}if(r.bytesFilled<r.minimumFill)return;Ne(e);const o=r.bytesFilled%r.elementSize;if(o>0){const t=r.byteOffset+r.bytesFilled;Be(e,r.buffer,t-o,o)}r.bytesFilled-=o;const n=De(e);Ae(e._controlledReadableByteStream,r),ke(e._controlledReadableByteStream,n)}(e,t,r),Oe(e)}function Ne(e){return e._pendingPullIntos.shift()}function Ye(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ve(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!=0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw He(e,t),t}}Ye(e),Br(t)}}function Ue(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const{buffer:o,byteOffset:n,byteLength:i}=t;if(le(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const a=se(o);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(le(t.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");xe(e),t.buffer=se(t.buffer),"none"===t.readerType&&Fe(e,t)}if(J(r))(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Ge(e,t._readRequests.shift())}})(e),0===X(r)?ze(e,a,n,i):(e._pendingPullIntos.length>0&&Ne(e),G(r,new Uint8Array(a,n,i),!1));else if(at(r)){ze(e,a,n,i);const t=De(e);ke(e._controlledReadableByteStream,t)}else ze(e,a,n,i);Oe(e)}function He(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(je(e),Re(e),Ye(e),Fr(r,t))}function Ge(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,$e(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function Xe(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(qe.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(o,e,r),e._byobRequest=o}return e._byobRequest}function Je(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ke(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)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=se(r.buffer),Me(e,t)}function Qe(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)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=se(t.buffer),Me(e,o)}function Ze(e,t,r,o,n,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Re(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,t._autoAllocateChunkSize=a,t._pendingPullIntos=new g,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,Oe(t),null),e=>(He(t,e),null))}function et(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function tt(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function rt(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function ot(e){return new st(e)}function nt(e,t){e._reader._readIntoRequests.push(t)}function it(e){return e._reader._readIntoRequests.length}function at(e){const t=e._reader;return void 0!==t&&!!lt(t)}Object.defineProperties(Ee.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),o(Ee.prototype.close,"close"),o(Ee.prototype.enqueue,"enqueue"),o(Ee.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ee.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class st{constructor(e){if(x(e,1,"ReadableStreamBYOBReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Pe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");P(this,e),this._readIntoRequests=new g}get closed(){return lt(this)?this._closedPromise:d(dt("closed"))}cancel(e=void 0){return lt(this)?void 0===this._ownerReadableStream?d(j("cancel")):C(this,e):d(dt("cancel"))}read(e,t={}){if(!lt(this))return d(dt("read"));if(!ArrayBuffer.isView(e))return d(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return d(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return d(new TypeError("view's buffer must have non-zero byteLength"));if(le(e.buffer))return d(new TypeError("view's buffer has been detached"));let r;try{r=function(e,t){var r;return I(e,t),{min:Y(null!==(r=null==e?void 0:e.min)&&void 0!==r?r:1,`${t} has member 'min' that`)}}(t,"options")}catch(e){return d(e)}const o=r.min;if(0===o)return d(new TypeError("options.min must be greater than 0"));if(function(e){return Te(e.constructor)}(e)){if(o>e.byteLength)return d(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(o>e.length)return d(new RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return d(j("read from"));let n,i;const a=u((e,t)=>{n=e,i=t});return ut(this,e,o,{_chunkSteps:e=>n({value:e,done:!1}),_closeSteps:e=>n({value:e,done:!0}),_errorSteps:e=>i(e)}),a}releaseLock(){if(!lt(this))throw dt("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ct(e,new TypeError("Reader was released"))}(this)}}function lt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof st}function ut(e,t,r,o){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?o._errorSteps(n._storedError):function(e,t,r,o){const n=e._controlledReadableByteStream,i=t.constructor,a=function(e){return Te(e)?1:e.BYTES_PER_ELEMENT}(i),{byteOffset:s,byteLength:l}=t,u=r*a;let c;try{c=se(t.buffer)}catch(e){return void o._errorSteps(e)}const d={buffer:c,bufferByteLength:c.byteLength,byteOffset:s,byteLength:l,bytesFilled:0,minimumFill:u,elementSize:a,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void nt(n,o);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ie(e,d)){const t=We(d);return $e(e),void o._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return He(e,t),void o._errorSteps(t)}}e._pendingPullIntos.push(d),nt(n,o),Oe(e)}else{const e=new i(d.buffer,d.byteOffset,0);o._closeSteps(e)}}(n._readableStreamController,t,r,o)}function ct(e,t){const r=e._readIntoRequests;e._readIntoRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function dt(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function ft(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ve(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function bt(e){const{size:t}=e;return t||(()=>1)}function ht(e,t){I(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:M(r),size:void 0===o?void 0:_t(o,`${t} has member 'size' that`)}}function _t(e,t){return L(e,t),t=>M(e(t))}function pt(e,t,r){return L(e,r),r=>w(e,t,[r])}function mt(e,t,r){return L(e,r),()=>w(e,t,[])}function yt(e,t,r){return L(e,r),r=>v(e,t,[r])}function vt(e,t,r){return L(e,r),(r,o)=>w(e,t,[r,o])}function wt(e,t){if(!Rt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(st.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(st.prototype.cancel,"cancel"),o(st.prototype.read,"read"),o(st.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(st.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class gt{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=null==e?void 0:e.abort,o=null==e?void 0:e.close,n=null==e?void 0:e.start,i=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:pt(r,e,`${t} has member 'abort' that`),close:void 0===o?void 0:mt(o,e,`${t} has member 'close' that`),start:void 0===n?void 0:yt(n,e,`${t} has member 'start' that`),write:void 0===a?void 0:vt(a,e,`${t} has member 'write' that`),type:i}}(e,"First parameter");if(function(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new g,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}(this),void 0!==o.type)throw new RangeError("Invalid type is specified");const n=bt(r);!function(e,t,r,o){const n=Object.create(xt.prototype);let i,a,s,l;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.write?e=>t.write(e,n):()=>c(void 0),s=void 0!==t.close?()=>t.close():()=>c(void 0),l=void 0!==t.abort?e=>t.abort(e):()=>c(void 0),function(e,t,r,o,n,i,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._abortReason=void 0,t._abortController=function(){if("function"==typeof AbortController)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=o,t._closeAlgorithm=n,t._abortAlgorithm=i;const l=Ut(t);kt(e,l),b(c(r()),()=>(t._started=!0,Yt(t),null),r=>(t._started=!0,Pt(e,r),null))}(e,n,i,a,s,l,r,o)}(this,o,ft(r,1),n)}get locked(){if(!Rt(this))throw Gt("locked");return Tt(this)}abort(e=void 0){return Rt(this)?Tt(this)?d(new TypeError("Cannot abort a stream that already has a writer")):qt(this,e):d(Gt("abort"))}close(){return Rt(this)?Tt(this)?d(new TypeError("Cannot close a stream that already has a writer")):jt(this)?d(new TypeError("Cannot close an already-closing stream")):Et(this):d(Gt("close"))}getWriter(){if(!Rt(this))throw Gt("getWriter");return St(this)}}function St(e){return new Wt(e)}function Rt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof gt}function Tt(e){return void 0!==e._writer}function qt(e,t){var r;if("closed"===e._state||"errored"===e._state)return c(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort(t);const o=e._state;if("closed"===o||"errored"===o)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===o&&(n=!0,t=void 0);const i=u((r,o)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n||Ct(e,t),i}function Et(e){const t=e._state;if("closed"===t||"errored"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u((t,r)=>{const o={_resolve:t,_reject:r};e._closeRequest=o}),o=e._writer;var n;return void 0!==o&&e._backpressure&&"writable"===t&&ar(o),Se(n=e._writableStreamController,$t,0),Yt(n),r}function Pt(e,t){"writable"!==e._state?Ot(e):Ct(e,t)}function Ct(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;void 0!==o&&Ft(o,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&Ot(e)}function Ot(e){e._state="errored",e._writableStreamController[R]();const t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new g,void 0===e._pendingAbortRequest)return void At(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void At(e);b(e._writableStreamController[S](r._reason),()=>(r._resolve(),At(e),null),t=>(r._reject(t),At(e),null))}function jt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function At(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&er(t,e._storedError)}function kt(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){rr(e)}(r):ar(r)),e._backpressure=t}Object.defineProperties(gt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),o(gt.prototype.abort,"abort"),o(gt.prototype.close,"close"),o(gt.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class Wt{constructor(e){if(x(e,1,"WritableStreamDefaultWriter"),wt(e,"First parameter"),Tt(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!jt(e)&&e._backpressure?rr(this):nr(this),Qt(this);else if("erroring"===t)or(this,e._storedError),Qt(this);else if("closed"===t)nr(this),Qt(this),tr(this);else{const t=e._storedError;or(this,t),Zt(this,t)}}get closed(){return zt(this)?this._closedPromise:d(Jt("closed"))}get desiredSize(){if(!zt(this))throw Jt("desiredSize");if(void 0===this._ownerWritableStream)throw Kt("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Nt(t._writableStreamController)}(this)}get ready(){return zt(this)?this._readyPromise:d(Jt("ready"))}abort(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("abort")):function(e,t){return qt(e._ownerWritableStream,t)}(this,e):d(Jt("abort"))}close(){if(!zt(this))return d(Jt("close"));const e=this._ownerWritableStream;return void 0===e?d(Kt("close")):jt(e)?d(new TypeError("Cannot close an already-closing stream")):Bt(this)}releaseLock(){if(!zt(this))throw Jt("releaseLock");void 0!==this._ownerWritableStream&&It(this)}write(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("write to")):Lt(this,e):d(Jt("write"))}}function zt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Wt}function Bt(e){return Et(e._ownerWritableStream)}function Ft(e,t){"pending"===e._readyPromiseState?ir(e,t):function(e,t){or(e,t)}(e,t)}function It(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ft(e,r),function(e,t){"pending"===e._closedPromiseState?er(e,t):function(e,t){Zt(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function Lt(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,n=function(e,t){if(void 0===e._strategySizeAlgorithm)return 1;try{return e._strategySizeAlgorithm(t)}catch(t){return Vt(e,t),1}}(o,t);if(r!==e._ownerWritableStream)return d(Kt("write to"));const i=r._state;if("errored"===i)return d(r._storedError);if(jt(r)||"closed"===i)return d(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return d(r._storedError);const a=function(e){return u((t,r)=>{const o={_resolve:t,_reject:r};e._writeRequests.push(o)})}(r);return function(e,t,r){try{Se(e,t,r)}catch(t){return void Vt(e,t)}const o=e._controlledWritableStream;jt(o)||"writable"!==o._state||kt(o,Ut(e)),Yt(e)}(o,t,n),a}Object.defineProperties(Wt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),o(Wt.prototype.abort,"abort"),o(Wt.prototype.close,"close"),o(Wt.prototype.releaseLock,"releaseLock"),o(Wt.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Wt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const $t={};class xt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Dt(this))throw Xt("abortReason");return this._abortReason}get signal(){if(!Dt(this))throw Xt("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!Dt(this))throw Xt("error");"writable"===this._controlledWritableStream._state&&Ht(this,e)}[S](e){const t=this._abortAlgorithm(e);return Mt(this),t}[R](){Re(this)}}function Dt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof xt}function Mt(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Nt(e){return e._strategyHWM-e._queueTotalSize}function Yt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Ot(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===$t?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ge(e);const r=e._closeAlgorithm();Mt(e),b(r,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&tr(t)}(t),null),e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Pt(e,t)}(t,e),null))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r),b(e._writeAlgorithm(t),()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(ge(e),!jt(r)&&"writable"===t){const t=Ut(e);kt(r,t)}return Yt(e),null},t=>("writable"===r._state&&Mt(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Pt(e,t)}(r,t),null))}(e,r)}function Vt(e,t){"writable"===e._controlledWritableStream._state&&Ht(e,t)}function Ut(e){return Nt(e)<=0}function Ht(e,t){const r=e._controlledWritableStream;Mt(e),Ct(r,t)}function Gt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Xt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Jt(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Kt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Qt(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Zt(e,t){Qt(e),er(e,t)}function er(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tr(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rr(e){e._readyPromise=u((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function or(e,t){rr(e),ir(e,t)}function nr(e){rr(e),ar(e)}function ir(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function ar(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(xt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const sr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof global?global:void 0,lr=function(){const e=null==sr?void 0:sr.DOMException;return function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;if("DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return o(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function ur(t,r,o,n,i,a){const s=U(t),l=St(r);t._disturbed=!0;let p=!1,y=c(void 0);return u((v,w)=>{let g;if(void 0!==a){if(g=()=>{const e=void 0!==a.reason?a.reason:new lr("Aborted","AbortError"),o=[];n||o.push(()=>"writable"===r._state?qt(r,e):c(void 0)),i||o.push(()=>"readable"===t._state?zr(t,e):c(void 0)),P(()=>Promise.all(o.map(e=>e())),!0,e)},a.aborted)return void g();a.addEventListener("abort",g)}var S,R,T;if(E(t,s._closedPromise,e=>(n?C(!0,e):P(()=>qt(r,e),!0,e),null)),E(r,l._closedPromise,e=>(i?C(!0,e):P(()=>zr(t,e),!0,e),null)),S=t,R=s._closedPromise,T=()=>(o?C():P(()=>function(e){const t=e._ownerWritableStream,r=t._state;return jt(t)||"closed"===r?c(void 0):"errored"===r?d(t._storedError):Bt(e)}(l)),null),"closed"===S._state?T():h(R,T),jt(r)||"closed"===r._state){const e=new TypeError("the destination writable stream closed before all data could be piped to it");i?C(!0,e):P(()=>zr(t,e),!0,e)}function q(){const e=y;return f(y,()=>e!==y?q():void 0)}function E(e,t,r){"errored"===e._state?r(e._storedError):_(t,r)}function P(e,t,o){function n(){return b(e(),()=>j(t,o),e=>j(!0,e)),null}p||(p=!0,"writable"!==r._state||jt(r)?n():h(q(),n))}function C(e,t){p||(p=!0,"writable"!==r._state||jt(r)?j(e,t):h(q(),()=>j(e,t)))}function j(e,t){return It(l),O(s),void 0!==a&&a.removeEventListener("abort",g),e?w(t):v(void 0),null}m(u((t,r)=>{!function o(n){n?t():f(p?c(!0):f(l._readyPromise,()=>u((t,r)=>{Z(s,{_chunkSteps:r=>{y=f(Lt(l,r),void 0,e),t(!1)},_closeSteps:()=>t(!0),_errorSteps:r})})),o,r)}(!1)}))})}class cr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!dr(this))throw gr("desiredSize");return yr(this)}close(){if(!dr(this))throw gr("close");if(!vr(this))throw new TypeError("The stream is not in a state that permits close");_r(this)}enqueue(e=void 0){if(!dr(this))throw gr("enqueue");if(!vr(this))throw new TypeError("The stream is not in a state that permits enqueue");return pr(this,e)}error(e=void 0){if(!dr(this))throw gr("error");mr(this,e)}[T](e){Re(this);const t=this._cancelAlgorithm(e);return hr(this),t}[q](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=ge(this);this._closeRequested&&0===this._queue.length?(hr(this),Br(t)):fr(this),e._chunkSteps(r)}else H(t,e),fr(this)}[E](){}}function dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof cr}function fr(e){br(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,fr(e)),null),t=>(mr(e,t),null))))}function br(e){const t=e._controlledReadableStream;return!!vr(e)&&!!e._started&&(!!(Wr(t)&&X(t)>0)||yr(e)>0)}function hr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function _r(e){if(!vr(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(hr(e),Br(t))}function pr(e,t){if(!vr(e))return;const r=e._controlledReadableStream;if(Wr(r)&&X(r)>0)G(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw mr(e,t),t}try{Se(e,t,r)}catch(t){throw mr(e,t),t}}fr(e)}function mr(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(Re(e),hr(e),Fr(r,t))}function yr(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function vr(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function wr(e,t,r,o,n,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,fr(t),null),e=>(mr(t,e),null))}function gr(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function Sr(r){return t(o=r)&&void 0!==o.getReader?function(r){let o;return o=Or(e,function(){let e;try{e=r.read()}catch(e){return d(e)}return p(e,e=>{if(!t(e))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){try{return c(r.cancel(e))}catch(e){return d(e)}},0),o}(r.getReader()):function(r){let o;const n=be(r,"async");return o=Or(e,function(){let e;try{e=he(n)}catch(e){return d(e)}return p(c(e),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){const r=n.iterator;let o;try{o=ce(r,"return")}catch(e){return d(e)}return void 0===o?c(void 0):p(w(o,r,[e]),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(r);var o}function Rr(e,t,r){return L(e,r),r=>w(e,t,[r])}function Tr(e,t,r){return L(e,r),r=>w(e,t,[r])}function qr(e,t,r){return L(e,r),r=>v(e,t,[r])}function Er(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Pr(e,t){I(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(i,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(o),preventClose:Boolean(n),signal:i}}Object.defineProperties(cr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),o(cr.prototype.close,"close"),o(cr.prototype.enqueue,"enqueue"),o(cr.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(cr.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Cr{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=e,o=null==r?void 0:r.autoAllocateChunkSize,n=null==r?void 0:r.cancel,i=null==r?void 0:r.pull,a=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===o?void 0:Y(o,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:Rr(n,r,`${t} has member 'cancel' that`),pull:void 0===i?void 0:Tr(i,r,`${t} has member 'pull' that`),start:void 0===a?void 0:qr(a,r,`${t} has member 'start' that`),type:void 0===s?void 0:Er(s,`${t} has member 'type' that`)}}(e,"First parameter");if(Ar(this),"bytes"===o.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const o=Object.create(Ee.prototype);let n,i,a;n=void 0!==t.start?()=>t.start(o):()=>{},i=void 0!==t.pull?()=>t.pull(o):()=>c(void 0),a=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0);const s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ze(e,o,n,i,a,r,s)}(this,o,ft(r,0))}else{const e=bt(r);!function(e,t,r,o){const n=Object.create(cr.prototype);let i,a,s;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.pull?()=>t.pull(n):()=>c(void 0),s=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0),wr(e,n,i,a,s,r,o)}(this,o,ft(r,1),e)}}get locked(){if(!kr(this))throw Ir("locked");return Wr(this)}cancel(e=void 0){return kr(this)?Wr(this)?d(new TypeError("Cannot cancel a stream that already has a reader")):zr(this,e):d(Ir("cancel"))}getReader(e=void 0){if(!kr(this))throw Ir("getReader");return void 0===function(e,t){I(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:rt(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):ot(this)}pipeThrough(e,t={}){if(!kr(this))throw Ir("pipeThrough");x(e,1,"pipeThrough");const r=function(e,t){I(e,t);const r=null==e?void 0:e.readable;D(r,"readable","ReadableWritablePair"),V(r,`${t} has member 'readable' that`);const o=null==e?void 0:e.writable;return D(o,"writable","ReadableWritablePair"),wt(o,`${t} has member 'writable' that`),{readable:r,writable:o}}(e,"First parameter"),o=Pr(t,"Second parameter");if(Wr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Tt(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(ur(this,r.writable,o.preventClose,o.preventAbort,o.preventCancel,o.signal)),r.readable}pipeTo(e,t={}){if(!kr(this))return d(Ir("pipeTo"));if(void 0===e)return d("Parameter 1 is required in 'pipeTo'.");if(!Rt(e))return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=Pr(t,"Second parameter")}catch(e){return d(e)}return Wr(this)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Tt(e)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ur(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!kr(this))throw Ir("tee");return ie(function(e){return Pe(e._readableStreamController)?function(e){let t,r,o,n,i,a=U(e),s=!1,l=!1,d=!1,f=!1,b=!1;const h=u(e=>{i=e});function p(e){_(e._closedPromise,t=>(e!==a||(He(o._readableStreamController,t),He(n._readableStreamController,t),f&&b||i(void 0)),null))}function m(){lt(a)&&(O(a),a=U(e),p(a)),Z(a,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const r=t;let a=t;if(!f&&!b)try{a=we(t)}catch(t){return He(o._readableStreamController,t),He(n._readableStreamController,t),void i(zr(e,t))}f||Ue(o._readableStreamController,r),b||Ue(n._readableStreamController,a),s=!1,l?w():d&&g()})},_closeSteps:()=>{s=!1,f||Ve(o._readableStreamController),b||Ve(n._readableStreamController),o._readableStreamController._pendingPullIntos.length>0&&Ke(o._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Ke(n._readableStreamController,0),f&&b||i(void 0)},_errorSteps:()=>{s=!1}})}function v(t,r){Q(a)&&(O(a),a=ot(e),p(a));const u=r?n:o,c=r?o:n;ut(a,t,1,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const o=r?b:f;if(r?f:b)o||Qe(u._readableStreamController,t);else{let r;try{r=we(t)}catch(t){return He(u._readableStreamController,t),He(c._readableStreamController,t),void i(zr(e,t))}o||Qe(u._readableStreamController,t),Ue(c._readableStreamController,r)}s=!1,l?w():d&&g()})},_closeSteps:e=>{s=!1;const t=r?b:f,o=r?f:b;t||Ve(u._readableStreamController),o||Ve(c._readableStreamController),void 0!==e&&(t||Qe(u._readableStreamController,e),!o&&c._readableStreamController._pendingPullIntos.length>0&&Ke(c._readableStreamController,0)),t&&o||i(void 0)},_errorSteps:()=>{s=!1}})}function w(){if(s)return l=!0,c(void 0);s=!0;const e=Xe(o._readableStreamController);return null===e?m():v(e._view,!1),c(void 0)}function g(){if(s)return d=!0,c(void 0);s=!0;const e=Xe(n._readableStreamController);return null===e?m():v(e._view,!0),c(void 0)}function S(){}return o=jr(S,w,function(o){if(f=!0,t=o,b){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),n=jr(S,g,function(o){if(b=!0,r=o,f){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),p(a),[o,n]}(e):function(e){const t=U(e);let r,o,n,i,a,s=!1,l=!1,d=!1,f=!1;const b=u(e=>{a=e});function h(){return s?(l=!0,c(void 0)):(s=!0,Z(t,{_chunkSteps:e=>{y(()=>{l=!1;const t=e,r=e;d||pr(n._readableStreamController,t),f||pr(i._readableStreamController,r),s=!1,l&&h()})},_closeSteps:()=>{s=!1,d||_r(n._readableStreamController),f||_r(i._readableStreamController),d&&f||a(void 0)},_errorSteps:()=>{s=!1}}),c(void 0))}function p(){}return n=Or(p,h,function(t){if(d=!0,r=t,f){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),i=Or(p,h,function(t){if(f=!0,o=t,d){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),_(t._closedPromise,e=>(mr(n._readableStreamController,e),mr(i._readableStreamController,e),d&&f||a(void 0),null)),[n,i]}(e)}(this))}values(e=void 0){if(!kr(this))throw Ir("values");return function(e,t){const r=U(e),o=new _e(r,t),n=Object.create(pe);return n._asyncIteratorImpl=o,n}(this,function(e){I(e,"First parameter");const t=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(t)}}(e).preventCancel)}[fe](e){return this.values(e)}static from(e){return Sr(e)}}function Or(e,t,r,o=1,n=()=>1){const i=Object.create(Cr.prototype);return Ar(i),wr(i,Object.create(cr.prototype),e,t,r,o,n),i}function jr(e,t,r){const o=Object.create(Cr.prototype);return Ar(o),Ze(o,Object.create(Ee.prototype),e,t,r,0,void 0),o}function Ar(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function kr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof Cr}function Wr(e){return void 0!==e._reader}function zr(t,r){if(t._disturbed=!0,"closed"===t._state)return c(void 0);if("errored"===t._state)return d(t._storedError);Br(t);const o=t._reader;if(void 0!==o&&lt(o)){const e=o._readIntoRequests;o._readIntoRequests=new g,e.forEach(e=>{e._closeSteps(void 0)})}return p(t._readableStreamController[T](r),e)}function Br(e){e._state="closed";const t=e._reader;if(void 0!==t&&(z(t),Q(t))){const e=t._readRequests;t._readRequests=new g,e.forEach(e=>{e._closeSteps()})}}function Fr(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(W(r,t),Q(r)?ee(r,t):ct(r,t))}function Ir(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Lr(e,t){(function(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0})(e._transformStreamController),Vt(e._writable._writableStreamController,t),function(e){e._backpressure&&$r(e,!1)}(e)}function $r(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(Cr,{from:{enumerable:!0}}),Object.defineProperties(Cr.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),o(Cr.from,"from"),o(Cr.prototype.cancel,"cancel"),o(Cr.prototype.getReader,"getReader"),o(Cr.prototype.pipeThrough,"pipeThrough"),o(Cr.prototype.pipeTo,"pipeTo"),o(Cr.prototype.tee,"tee"),o(Cr.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Cr.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Cr.prototype,fe,{value:Cr.prototype.values,writable:!0,configurable:!0}),o(e=>e.byteLength,"size"),o(()=>1,"size");class xr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Dr(this))throw Mr("desiredSize");return yr(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Dr(this))throw Mr("enqueue");!function(e,t){const r=e._controlledTransformStream,o=r._readable._readableStreamController;if(!vr(o))throw new TypeError("Readable side is not in a state that permits enqueue");try{pr(o,t)}catch(e){throw Lr(r,e),r._readable._storedError}const n=function(e){return!br(e)}(o);n!==r._backpressure&&$r(r,!0)}(this,e)}error(e=void 0){if(!Dr(this))throw Mr("error");var t;t=e,function(e,t){mr(e._readable._readableStreamController,t),Lr(e,t)}(this._controlledTransformStream,t)}terminate(){if(!Dr(this))throw Mr("terminate");!function(e){const t=e._controlledTransformStream;_r(t._readable._readableStreamController),Lr(t,new TypeError("TransformStream terminated"))}(this)}}function Dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof xr}function Mr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(xr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),o(xr.prototype.enqueue,"enqueue"),o(xr.prototype.error,"error"),o(xr.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xr.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),exports.ReadableByteStreamController=Ee,exports.ReadableStream=Cr,exports.ReadableStreamBYOBReader=st,exports.ReadableStreamBYOBRequest=qe,exports.ReadableStreamDefaultController=cr,exports.ReadableStreamDefaultReader=K,exports.TransformStreamDefaultController=xr,exports.WritableStream=gt,exports.WritableStreamDefaultController=xt,exports.WritableStreamDefaultWriter=Wt;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),t=require("@sheetxl/sdk"),r=require("./BzD7LV8VmFKLAJyW.cjs"),i=({range:i,options:l,cell:s,onDone:a,...c})=>{const[d,x]=n.useState(l??t.Sort.DefaultRangeOptions),u=r.B(e=>{let n=null;"Sort"===e&&(n={...l,options:d}),a?.(n)},[d,a,l]);return e.jsx(r.pm,{title:"Sort",options:["Sort","Cancel"],onDone:u,...c,children:e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:!d.reverse,onChange:()=>x(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.hasHeader,onChange:()=>x(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>x(e=>({...e,collatorOptions:d.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.orientation===t.IRange.Orientation.Row,onChange:()=>x(e=>{const n=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...i.getDefaultSortCriteria(n,s).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:n}})}),label:"Row Sort",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.includeHidden,onChange:()=>x(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=i,exports.default=i;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@mui/material"),n=require("./BzD7LV8VmFKLAJyW.cjs"),o=require("@mui/system"),l=["Ok","Cancel"],s=t.memo(s=>{const{initialHyperlink:i=null,initialDisplay:r=null,onUpdateHyperlink:p,context:u,onOption:c,onValidateOption:d,onDone:g,options:x=l,defaultOption:m=x?.[0],cancelOption:h="Cancel",sx:f,...y}=s,T=t.useMemo(()=>null!==(i??u?.()?.getHyperlink()),[]),k=t.useMemo(()=>{let e=null,t=null;i&&("string"==typeof i?t=i:e=i);const a=e??u?.()?.getHyperlink();return{address:t??a?.getAddress()??"",textToDisplay:a?.getDisplayText()??""}},[i,u]),[C,O]=t.useState(k.address),[b,v]=t.useState(()=>{const e=u?.().toTextUnformatted()??r;return e===k.address?"":e}),[F,P]=t.useState(!1),j=t.useCallback(e=>{v(e.target.value)},[]),D=t.useCallback(async(e,t)=>null,[]),B=n.B(async e=>{const t=""===C?null:{address:C};e!==h&&p?.(t,b),c?.(e,e===h,e===m),g?.()},[C,b,p,g,c,m,h]),H=n.B(e=>{O(e.target.value),D(e.target.value,null)},[d]),I=n.B(async e=>{let t=await Promise.resolve(d?.(e));try{!1!==t&&(t=await D(C,e))}catch(e){}return t??!0},[d]);return e.jsx(n.pm,{title:(T?"Edit":"Insert")+" Link",options:x,onDone:g,onOption:e=>B(e),onValidateOption:I,defaultOption:m,cancelOption:h,autoFocusSel:".autoFocus",sx:{width:"480px",...f},...y,children:e.jsxs(a.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsx(a.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsx(a.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:e=>{F||e.target?.select(),P(!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(${o.alpha("#fff",n.getOverlayAlpha(5))}, ${o.alpha("#fff",n.getOverlayAlpha(5))})`}}},value:C,onChange:H,onContextMenu:e=>{e.stopPropagation()}})}),e.jsx(a.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsx(a.TextField,{label:"Display Text",placeholder:C?.startsWith("#")?C.substring(1):C,onFocus:()=>{P(!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(${o.alpha("#fff",n.getOverlayAlpha(5))}, ${o.alpha("#fff",n.getOverlayAlpha(5))})`}}},value:b,onChange:j,onContextMenu:e=>{e.stopPropagation()}})})]})})});exports.HyperlinkDialog=s,exports.default=s;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),i=require("@mui/icons-material"),o=require("@sheetxl/sdk"),s=require("./BzD7LV8VmFKLAJyW.cjs"),l=require("@mui/system"),r=t.memo(i=>{const{label:o,value:r,options:a,onSelect:c,tabIndex:u=0,...p}=i,[d,x]=t.useState(()=>f(r,a));t.useEffect(()=>{x(f(r,a))},[r,a]);const g=s.B(e=>{x(e.target.value),c?.(a[e.target.value])},[c,a]),m=t.useMemo(()=>Object.keys(a).map(t=>e.jsx(n.MenuItem,{value:t,children:t},t)),[a]);return e.jsxs(n.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsx(n.InputLabel,{children:o}),e.jsx(n.Select,{inputProps:{tabIndex:u},value:d,label:o,onChange:g,sx:{backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},...p,children:m})]})}),a={Workbook:"workbook",Sheet:"sheet"},c={enter:140,exit:140},u={Formulas:o.ICell.Content.Formulas,Values:o.ICell.Content.Values,Notes:o.ICell.Content.Notes,Comments:o.ICell.Content.Comments},p={...u};delete p.Values;const d={"By Rows":!0,"By Columns":!1},f=(e,t)=>{const n=Object.keys(t);for(let i=0;i<n.length;i++){const o=n[i];if(t[o]===e)return o}},x=t.memo(f=>{const{replace:x=!1,findText:g,replaceText:m,findOptions:h,replaceOptions:O,title:C,onHide:y,onFindOrReplace:j,...R}=f,b=t.useRef(null),v=t.useRef(null),T=t.useRef(null),I=t.useRef(null),S=t.useRef(null),k=t.useRef(null),w=(e,t)=>{if(!t)return;t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180)},[E,F]=t.useState(!1),[A,B]=t.useState(!1),[D,P]=t.useState(x),[K,M]=t.useState(!1),[U,L]=t.useState(!1),[q,$]=t.useState({findText:null,replaceText:null,replace:x,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:o.IRange.Orientation.Row,fields:[o.ICell.Content.Formulas]},scope:a.Sheet}),V=s.B(async(e,t,n,i)=>{if(!j)return;const s={...q};s.replaceOptions={...s.replaceOptions},s.findOptions={...s.findOptions},s.replaceOptions.maxCount=n?void 0:1,s.replace=t,t&&q.findOptions.fields?.[0]===o.ICell.Content.Values&&(s.findOptions.fields=[o.ICell.Content.Formulas]),s.findOptions.reverse=!e;const l=await j({autoFocus:i,...s});M(0===l)},[q,j]);t.useEffect(()=>{M(!1)},[q,A,D]);const W=s.B((e,t)=>{if(e.keyCode===s.L.Enter){if(!q.findText)return;let n=!0,i=!1;e.shiftKey&&(n=!1),t?(e.ctrlKey&&e.altKey&&(i=!0),w(e,i?k.current:S.current)):w(e,n?I.current:T.current),V(n,t,i,!1)}},[q]),N=t.useRef(null);t.useLayoutEffect(()=>{$(e=>{const t={...e};t.findText=g&&g.length>0?g:e.findText??"",F(!0),void 0!==m&&(t.replaceText=m),h&&(t.findOptions={...t.findOptions,...h}),t.replaceText||(t.replaceText=""),t.replaceOptions&&(t.replaceOptions={...t.replaceOptions}),O&&(t.replaceOptions={...t.replaceOptions,...O}),q.findOptions.fields?.[0]||(q.findOptions.fields=[o.ICell.Content.Formulas]);const n=!(!O&&void 0===m);return n&&P(n),t}),U||N.current?.focus()},[g,m,h,O]),t.useEffect(()=>{D?(q.findOptions.fields[0],o.ICell.Content.Values):F(!0)},[D]),t.useEffect(()=>{if(E&&b.current&&q.findText===b.current.value)return b.current===document.activeElement||b.current.contains(document.activeElement)?(b.current?.select(),void F(!1)):void b.current.addEventListener("focus",()=>{b.current?.select(),F(!1)},{once:!0})},[E,q]);const[H,{width:z}]=s.useMeasure();return e.jsx(s.Op,{ref:N,title:C??(D?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:y,onFocus:()=>L(!0),onBlur:()=>{L(!1),M(!1)},PaperProps:{elevation:U?3:1},...R,children:e.jsxs(n.DialogContent,{dividers:!0,ref:H,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)P(!0),b.current?.contains(document.activeElement)&&v.current?.focus();else if("f"===e.key&&e.ctrlKey)b.current?.focus();else if("c"===e.key&&e.altKey)$(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)$(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;$(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsx(s.Uu,{selected:A,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:s.ui(e.jsx(s.Xs,{}))}),e.jsx(s.Uu,{selected:D,onSelectToggle:e=>{P(e)},preventFocus:!0,label:"Toggle Replace",icon:s.ui(e.jsx(s.qs,{})),shortcut:{key:D?"F":"H",modifiers:[s.S.Ctrl]}})]}),e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsx(n.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:z>460?"20em":void 0,backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:b,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsx(n.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsx(s.Uu,{selected:q.findOptions.matchCase,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.Gs,{}))}),e.jsx(s.Uu,{selected:q.findOptions.matchEntireCell,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.Ks,{}))}),e.jsx(s.Uu,{selected:q.findOptions.useRegex,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.ec,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>K?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>K?`${e.palette.error.main} !important`:void 0}},value:q.findText??"",onChange:e=>{$(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>W(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsx(s.Uu,{selected:q.findOptions.reverse,onSelectToggle:e=>{V(!1,!1)},touchRippleRef:T,label:"",shortcut:{key:"Enter",modifiers:[s.S.Shift]},icon:s.ui(q.findOptions.orientation!==o.IRange.Orientation.Column?e.jsx(i.ArrowBack,{}):e.jsx(i.ArrowUpward,{})),disabled:!q.findText}),e.jsx(s.Uu,{selected:!q.findOptions.reverse,onSelectToggle:e=>{V(!0,!1)},touchRippleRef:I,label:"Next Match",shortcut:{key:"Enter"},icon:s.ui(q.findOptions.orientation!==o.IRange.Orientation.Column?e.jsx(i.ArrowForward,{}):e.jsx(i.ArrowDownward,{})),disabled:!q.findText})]}),e.jsx(n.Collapse,{in:D,timeout:c,onExit:()=>{b.current?.focus()},children:e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsx(n.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},inputProps:{ref:v,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:q.replaceText??"",onChange:e=>{$(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>W(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsx(s.Uu,{onSelectToggle:e=>{V(!0,!0)},touchRippleRef:S,label:"Replace",shortcut:{key:"Enter"},icon:s.ui(e.jsx(s.Qs,{})),disabled:!q.findText}),e.jsx(s.Uu,{onSelectToggle:e=>{V(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.S.Ctrl,s.S.Alt]},icon:s.ui(e.jsx(s.Js,{})),disabled:!q.findText})]})})]})]}),e.jsx(n.Collapse,{in:A,timeout:c,onExit:()=>{b.current?.focus()},children:e.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsx(s.nd,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxs(n.Box,{sx:{display:"flex",flexDirection:z>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsx(r,{label:"Within",value:q.scope,options:a,onSelect:e=>{$(t=>{const n={...t};return n.scope=e,n})}}),e.jsx(r,{label:"Search",value:q.findOptions.orientation!==o.IRange.Orientation.Column,options:d,onSelect:e=>{$(t=>{const n={...t};return n.findOptions.orientation=e?o.IRange.Orientation.Row:o.IRange.Orientation.Column,n})}}),e.jsx(r,{label:"Look in",value:D&&q.findOptions.fields?.[0]===o.ICell.Content.Values?o.ICell.Content.Formulas:q.findOptions.fields?.[0],options:D?p:u,onSelect:e=>{$(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=x,exports.ScopeOptions=a,exports.default=x;