@sheetxl/studio-vanilla 0.4.11 → 0.4.12

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 (96) hide show
  1. package/browser/cjs/{BlSFY6zLlebuejdV.cjs → B35OZ0mE8aINQPP9.cjs} +2 -2
  2. package/browser/cjs/{DiBy6-IxLscyMW2y.cjs → BPzEQNENF-gEBkg9.cjs} +2 -2
  3. package/browser/cjs/{C7EZCTczsC-gkRcq.cjs → BUokV6yuzE-_8MyK.cjs} +2 -2
  4. package/browser/cjs/{T4SHYo66xDT3l9JN.cjs → BeZHmOKfa37mFNAu.cjs} +2 -2
  5. package/browser/cjs/{BplA5pDzOJpfTZuA.cjs → BflJ_0gT9lQtDvY_.cjs} +2 -2
  6. package/browser/cjs/{DFspSkki779xN-Ey.cjs → BwN8vKi5o3-PbIMo.cjs} +2 -2
  7. package/browser/cjs/{D3iOk-Q2tRdUeTcn.cjs → C3OizZPVuxO2fjSG.cjs} +1 -1
  8. package/browser/cjs/{BshvMtUxTJHj3JQN.cjs → CBL6KkiWI2RPflEN.cjs} +2 -2
  9. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
  10. package/browser/cjs/{vfUix5Di0Ro8tEID.cjs → CTrEV_UpxC0W6cZZ.cjs} +2 -2
  11. package/browser/cjs/{CFcjX5-nVsgzdZ4F.cjs → CU30GVjjFXl44vEU.cjs} +1 -1
  12. package/browser/cjs/{DgBn3aW39yjgm0X_.cjs → CZWBxvUXzfpn_zmc.cjs} +2 -2
  13. package/browser/cjs/{DrlS1oz9Nea8Pm3j.cjs → Ccs2ouvlLekaLGH0.cjs} +2 -2
  14. package/browser/cjs/{B0rdyyttE2Aibsag.cjs → Ce-8L4Viq3I_6j0i.cjs} +2 -2
  15. package/browser/cjs/{SzxJv7OUs5ojl8gx.cjs → CtNjLzIHB8WX63Bl.cjs} +2 -2
  16. package/browser/cjs/{Dx-jp_LJxWbAScyA.cjs → DAHpsyykuPBkoh-Z.cjs} +1 -1
  17. package/browser/cjs/{B2e7dDI-zKoqXpIW.cjs → DJbKKxeeTEHHA1gR.cjs} +20 -20
  18. package/browser/cjs/{CjZbhk41S1qO_74G.cjs → D_VQzwC1zzTJyKtG.cjs} +1 -1
  19. package/browser/cjs/{Db_Ew1r6yOMYylvA.cjs → GrsZZ_mEdsM5dEMA.cjs} +2 -2
  20. package/browser/cjs/{BPTHTRDvNOVkUJGa.cjs → JKEGlXjMwGnXk_Gv.cjs} +2 -2
  21. package/browser/cjs/{C5FXOMLhAu_KTjVe.cjs → L1iE_VcelYZIy0wI.cjs} +1 -1
  22. package/browser/cjs/{DFtyXc7YFh9dIp74.cjs → Q_VvA-yUQx3xFKiJ.cjs} +1 -1
  23. package/browser/cjs/{BAyEOOtO-9sHQQRW.cjs → fTGpiXzFm3K_u2Fm.cjs} +2 -2
  24. package/browser/cjs/{CuTW2Pt-L5n-hNxV.cjs → hwDUzorB6aCvH1eL.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{BuWtGFX0HiBezGjw.cjs → no5c2H18QD2qmOH6.cjs} +2 -2
  27. package/browser/esm/{BALnKy2Fp7fyk-lc.mjs → B4Mm5gczpI_k2zzN.mjs} +2 -2
  28. package/browser/esm/{BXUGsC1Mo3FP8vnW.mjs → B8ISUdOxsJMYWzNN.mjs} +2 -2
  29. package/browser/esm/{BGpv6Kq7eBlJy43T.mjs → BnJiF38TGudjoHzT.mjs} +1 -1
  30. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
  31. package/browser/esm/{DtmE60AvstK9u0Ta.mjs → C3cyAbIH8Qc8MIFN.mjs} +20 -20
  32. package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
  33. package/browser/esm/{CFFC0SNc24a0Dxnh.mjs → CYIhGb86r-kKOrP5.mjs} +2 -2
  34. package/browser/esm/{B905wKzTtod-jbsD.mjs → CcpskguvlvemArQn.mjs} +2 -2
  35. package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
  36. package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
  37. package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
  38. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
  39. package/browser/esm/{Cc_VWd0wF5-39LsI.mjs → D3KNxvnrwR6_fTJE.mjs} +1 -1
  40. package/browser/esm/{Bo_ZPRrOQrqOVHAF.mjs → DIJyH94oCzUnlcNZ.mjs} +2 -2
  41. package/browser/esm/{De6RPxc4p_jXLlT5.mjs → DVAG1NxFe3cMjLE1.mjs} +1 -1
  42. package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
  43. package/browser/esm/{PS0cqYnlMVEGOQpI.mjs → DcX8yGEBX6qi9RCe.mjs} +2 -2
  44. package/browser/esm/{BUSR_OK5Qi6hRPfw.mjs → DeXfOSxGE_Ez7DZq.mjs} +1 -1
  45. package/browser/esm/{Cq8D_M0jeHLcnRjg.mjs → DzgM_rkwyIHsCb6I.mjs} +1 -1
  46. package/browser/esm/{BDVJ7eOPpW5FnEAP.mjs → M4hZ25330e96seUM.mjs} +1 -1
  47. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
  48. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
  49. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
  50. package/browser/esm/{BlGoi1_x9rUMpWMd.mjs → dpdy0BU4GGI5lZrX.mjs} +1 -1
  51. package/browser/esm/index.mjs +2 -2
  52. package/browser/esm/{tFhROdVSw9KLQfUN.mjs → oLCocGFRAwsVsOSE.mjs} +2 -2
  53. package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
  54. package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
  55. package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
  56. package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
  57. package/cdn/assets/BSAH88RG1oubICau.js +84 -0
  58. package/cdn/assets/BT5EcMEFBsphczwC.js +1469 -0
  59. package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
  60. package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
  61. package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
  62. package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
  63. package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
  64. package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
  65. package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
  66. package/cdn/assets/CfObTzh8pGdd8D23.js +2183 -0
  67. package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
  68. package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
  69. package/cdn/assets/Cq94woVmlxhjWVRI.js +21 -0
  70. package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
  71. package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
  72. package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
  73. package/cdn/assets/DJQOS9qxVAlpgDMt.js +1704 -0
  74. package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
  75. package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
  76. package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
  77. package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
  78. package/cdn/assets/DkS6quwH1okWaho6.js +46 -0
  79. package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
  80. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
  81. package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
  82. package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
  83. package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
  84. package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
  85. package/cdn/index.js +41 -37
  86. package/cdn/loader.js +1 -1
  87. package/package.json +3 -3
  88. package/browser/esm/B5kkStdEkTczERyM.mjs +0 -7
  89. package/browser/esm/BuURCm92KsyGHG9e.mjs +0 -7
  90. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +0 -7
  91. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +0 -7
  92. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +0 -7
  93. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +0 -7
  94. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +0 -7
  95. package/browser/esm/QBGUD1XS5_pysBLL.mjs +0 -7
  96. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +0 -7
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B2e7dDI-zKoqXpIW.cjs"),e=t.Mb(t.Uw());function r(t){return r="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},r(t)}var n=/^\s+/,o=/\s+$/;function i(t,e){if(e=e||{},(t=t||"")instanceof i)return t;if(!(this instanceof i))return new i(t,e);var a=function(t){var e,i,a,u={r:0,g:0,b:0},s=1,c=null,f=null,l=null,h=!1,p=!1;return"string"==typeof t&&(t=function(t){t=t.replace(n,"").replace(o,"").toLowerCase();var e,r=!1;if(w[t])t=w[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=L.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=L.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=L.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=L.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=L.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=L.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=L.hex8.exec(t))?{r:S(e[1]),g:S(e[2]),b:S(e[3]),a:R(e[4]),format:r?"name":"hex8"}:(e=L.hex6.exec(t))?{r:S(e[1]),g:S(e[2]),b:S(e[3]),format:r?"name":"hex"}:(e=L.hex4.exec(t))?{r:S(e[1]+""+e[1]),g:S(e[2]+""+e[2]),b:S(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=L.hex3.exec(t))&&{r:S(e[1]+""+e[1]),g:S(e[2]+""+e[2]),b:S(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==r(t)&&(U(t.r)&&U(t.g)&&U(t.b)?(e=t.r,i=t.g,a=t.b,u={r:255*M(e,255),g:255*M(i,255),b:255*M(a,255)},h=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):U(t.h)&&U(t.s)&&U(t.v)?(c=A(t.s),f=A(t.v),u=function(t,e,r){t=6*M(t,360),e=M(e,100),r=M(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;return{r:255*[r,a,i,i,u,r][s],g:255*[u,r,r,a,i,i][s],b:255*[i,i,u,r,r,a][s]}}(t.h,c,f),h=!0,p="hsv"):U(t.h)&&U(t.s)&&U(t.l)&&(c=A(t.s),l=A(t.l),u=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=M(t,360),e=M(e,100),r=M(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,c,l),h=!0,p="hsl"),t.hasOwnProperty("a")&&(s=t.a)),s=O(s),{ok:h,format:t.format||p,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:s}}(t);this._originalInput=t,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||a.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=a.ok}function a(t,e,r){t=M(t,255),e=M(e,255),r=M(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 u(t,e,r){t=M(t,255),e=M(e,255),r=M(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 s(t,e,r,n){var o=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(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 c(t,e,r,n){return[k(C(n)),k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16))].join("")}function f(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.s-=e/100,r.s=E(r.s),i(r)}function l(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.s+=e/100,r.s=E(r.s),i(r)}function h(t){return i(t).desaturate(100)}function p(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.l+=e/100,r.l=E(r.l),i(r)}function d(t,e){e=0===e?0:e||10;var r=i(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))),i(r)}function b(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.l-=e/100,r.l=E(r.l),i(r)}function v(t,e){var r=i(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,i(r)}function g(t){var e=i(t).toHsl();return e.h=(e.h+180)%360,i(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=i(t).toHsl(),n=[i(t)],o=360/e,a=1;a<e;a++)n.push(i({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function m(t){var e=i(t).toHsl(),r=e.h;return[i(t),i({h:(r+72)%360,s:e.s,l:e.l}),i({h:(r+216)%360,s:e.s,l:e.l})]}function x(t,e,r){e=e||6,r=r||30;var n=i(t).toHsl(),o=360/r,a=[i(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(i(n));return a}function _(t,e){e=e||6;for(var r=i(t).toHsv(),n=r.h,o=r.s,a=r.v,u=[],s=1/e;e--;)u.push(i({h:n,s:o,v:a})),a=(a+s)%1;return u}i.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=O(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(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=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(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 s(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=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16)),k(C(n))];return 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)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):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*M(this._r,255))+"%",g:Math.round(100*M(this._g,255))+"%",b:Math.round(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%)":"rgba("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[s(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+c(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=i(t);r="#"+c(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 i(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(p,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},i.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]="a"===o?t[o]:A(t[o]));t=n}return i(t,e)},i.equals=function(t,e){return!(!t||!e)&&i(t).toRgbString()==i(e).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},i.mix=function(t,e,r){r=0===r?0:r||50;var n=i(t).toRgb(),o=i(e).toRgb(),a=r/100;return i({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},i.readability=function(t,e){var r=i(t),n=i(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},i.isReadable=function(t,e,r){var n,o,a=i.readability(t,e);switch(o=!1,(n=function(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},i.mostReadable=function(t,e,r){var n,o,a,u,s=null,c=0;o=(r=r||{}).includeFallbackColors,a=r.level,u=r.size;for(var f=0;f<e.length;f++)(n=i.readability(t,e[f]))>c&&(c=n,s=i(e[f]));return i.isReadable(t,s,{level:a,size:u})||!o?s:(r.includeFallbackColors=!1,i.mostReadable(t,["#fff","#000"],r))};var w=i.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"},j=i.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function O(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function M(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 S(t){return parseInt(t,16)}function k(t){return 1==t.length?"0"+t:""+t}function A(t){return t<=1&&(t=100*t+"%"),t}function C(t){return Math.round(255*parseFloat(t)).toString(16)}function R(t){return S(t)/255}var z,P,T,L=(P="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",T="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+P),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+P),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+P),hsva:new RegExp("hsva"+T),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 U(t){return!!L.CSS_UNIT.exec(t)}var F,D,B,H,W,$,N,I,V,X,Y,q,K,G,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt={},ht={};function pt(){if(D)return F;D=1;var e="object"==typeof t.Tb&&t.Tb&&t.Tb.Object===Object&&t.Tb;return F=e}function dt(){if(H)return B;H=1;var t=pt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return B=r}function bt(){if($)return W;$=1;var t=dt().Symbol;return W=t}function vt(){if(q)return Y;q=1;var t=bt(),e=function(){if(I)return N;I=1;var t=bt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return N=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(X)return V;X=1;var t=Object.prototype.toString;return V=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return Y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function gt(){if(G)return K;G=1;var t=Array.isArray;return K=t}function yt(){return Q?J:(Q=1,J=function(t){return null!=t&&"object"==typeof t})}function mt(){if(ft)return ct;ft=1;var t=function(){if(st)return ut;st=1;var t=vt(),e=yt();return ut=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=yt(),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 ct=i}var xt,_t,wt,jt,Ot,Mt,Et,St,kt,At,Ct,Rt={exports:{}};function zt(){return wt||(wt=1,t=Rt,e=Rt.exports,r=dt(),n=_t?xt:(_t=1,xt=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),Rt.exports;var t,e,r,n,o,i,a,u}function Pt(){if(Ot)return jt;Ot=1;var t=/^(?:0|[1-9]\d*)$/;return jt=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 Tt(){return Et?Mt:(Et=1,Mt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991})}function Lt(){return Ct?At:(Ct=1,At=function(t){return function(e){return t(e)}})}var Ut,Ft,Dt,Bt,Ht,Wt,$t,Nt,It,Vt,Xt,Yt,qt,Kt,Gt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,xe,_e,we,je,Oe,Me,Ee,Se,ke,Ae,Ce,Re,ze,Pe,Te,Le,Ue,Fe,De,Be,He,We,$e,Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,xr,_r,wr,jr,Or,Mr,Er,Sr,kr,Ar,Cr,Rr,zr,Pr,Tr,Lr,Ur,Fr,Dr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,xn,_n,wn,jn,On,Mn,En,Sn,kn,An,Cn,Rn,zn,Pn,Tn,Ln,Un,Fn,Dn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,xo,_o,wo,jo,Oo,Mo,Eo,So,ko,Ao,Co,Ro,zo,Po,To={exports:{}};function Lo(){return Ut||(Ut=1,t=To,e=To.exports,r=pt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=a),To.exports;var t,e,r,n,o,i,a}function Uo(){if(Dt)return Ft;Dt=1;var t=function(){if(kt)return St;kt=1;var t=vt(),e=Tt(),r=yt(),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,St=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Lt(),r=Lo(),n=r&&r.isTypedArray,o=n?e(n):t;return Ft=o}function Fo(){if(Ht)return Bt;Ht=1;var t=at?it:(at=1,it=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=mt(),r=gt(),n=zt(),o=Pt(),i=Uo(),a=Object.prototype.hasOwnProperty;return Bt=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 Do(){if($t)return Wt;$t=1;var t=Object.prototype;return Wt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function Bo(){return It?Nt:(It=1,Nt=function(t,e){return function(r){return t(e(r))}})}function Ho(){return Gt?Kt:(Gt=1,Kt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)})}function Wo(){if(Qt)return Jt;Qt=1;var t=vt(),e=Ho();return Jt=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 $o(){if(te)return Zt;te=1;var t=Wo(),e=Tt();return Zt=function(r){return null!=r&&e(r.length)&&!t(r)}}function No(){if(re)return ee;re=1;var t=Fo(),e=function(){if(qt)return Yt;qt=1;var t=Do(),e=function(){if(Xt)return Vt;Xt=1;var t=Bo()(Object.keys,Object);return Vt=t}(),r=Object.prototype.hasOwnProperty;return Yt=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}}(),r=$o();return ee=function(n){return r(n)?t(n):e(n)}}function Io(){if(oe)return ne;oe=1;var t=function(){if(ot)return nt;ot=1;var t=(rt?et:(rt=1,et=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}}))();return nt=t}(),e=No();return ne=function(r,n){return r&&t(r,n,e)}}function Vo(){return ae?ie:(ae=1,ie=function(t){return t})}function Xo(){if(fe)return ce;fe=1;var t=Io(),e=function(){if(se)return ue;se=1;var t=Vo();return ue=function(e){return"function"==typeof e?e:t}}();return ce=function(r,n){return r&&t(r,e(n))}}function Yo(){if(he)return le;he=1;var t=Bo()(Object.getPrototypeOf,Object);return le=t}function qo(){return ve?be:(ve=1,be=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})}function Ko(){return xe?me:(xe=1,me=function(t,e){return t===e||t!=t&&e!=e})}function Go(){if(we)return _e;we=1;var t=Ko();return _e=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function Jo(){if(ze)return Re;ze=1;var t=ye?ge:(ye=1,ge=function(){this.__data__=[],this.size=0}),e=function(){if(Oe)return je;Oe=1;var t=Go(),e=Array.prototype.splice;return je=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))}}(),r=function(){if(Ee)return Me;Ee=1;var t=Go();return Me=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(ke)return Se;ke=1;var t=Go();return Se=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ce)return Ae;Ce=1;var t=Go();return Ae=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}}();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,Re=i}function Qo(){if(Xe)return Ve;Xe=1;var t=Function.prototype.toString;return Ve=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function Zo(){if(Qe)return Je;Qe=1;var t=function(){if(qe)return Ye;qe=1;var t=Wo(),e=function(){if(Ie)return Ne;Ie=1;var t,e=function(){if($e)return We;$e=1;var t=dt()["__core-js_shared__"];return We=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Ne=function(t){return!!r&&r in t}}(),r=Ho(),n=Qo(),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 Ye=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=Ge?Ke:(Ge=1,Ke=function(t,e){return null==t?void 0:t[e]});return Je=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ti(){if(tr)return Ze;tr=1;var t=Zo()(dt(),"Map");return Ze=t}function ei(){if(rr)return er;rr=1;var t=Zo()(Object,"create");return er=t}function ri(){if(xr)return mr;xr=1;var t=yr?gr:(yr=1,gr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return mr=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function ni(){if(Cr)return Ar;Cr=1;var t=function(){if(vr)return br;vr=1;var t=function(){if(dr)return pr;dr=1;var t=function(){if(or)return nr;or=1;var t=ei();return nr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=ar?ir:(ar=1,ir=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(sr)return ur;sr=1;var t=ei(),e=Object.prototype.hasOwnProperty;return ur=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(fr)return cr;fr=1;var t=ei(),e=Object.prototype.hasOwnProperty;return cr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(hr)return lr;hr=1;var t=ei();return lr=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,pr=i}(),e=Jo(),r=ti();return br=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(wr)return _r;wr=1;var t=ri();return _r=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Or)return jr;Or=1;var t=ri();return jr=function(e){return t(this,e).get(e)}}(),n=function(){if(Er)return Mr;Er=1;var t=ri();return Mr=function(e){return t(this,e).has(e)}}(),o=function(){if(kr)return Sr;kr=1;var t=ri();return Sr=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,Ar=i}function oi(){if(Tr)return Pr;Tr=1;var t=Jo(),e=function(){if(Te)return Pe;Te=1;var t=Jo();return Pe=function(){this.__data__=new t,this.size=0}}(),r=Ue?Le:(Ue=1,Le=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=De?Fe:(De=1,Fe=function(t){return this.__data__.get(t)}),o=He?Be:(He=1,Be=function(t){return this.__data__.has(t)}),i=function(){if(zr)return Rr;zr=1;var t=Jo(),e=ti(),r=ni();return Rr=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,Pr=a}function ii(){if(Xr)return Vr;Xr=1;var t=function(){if(Hr)return Br;Hr=1;var t=ni(),e=Ur?Lr:(Ur=1,Lr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Dr?Fr:(Dr=1,Fr=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,Br=n}(),e=$r?Wr:($r=1,Wr=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}),r=Ir?Nr:(Ir=1,Nr=function(t,e){return t.has(e)});return Vr=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}}function ai(){if(qr)return Yr;qr=1;var t=dt().Uint8Array;return Yr=t}function ui(){return rn?en:(rn=1,en=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t})}function si(){if(on)return nn;on=1;var t=ui(),e=gt();return nn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function ci(){return cn?sn:(cn=1,sn=function(){return[]})}function fi(){if(ln)return fn;ln=1;var t=un?an:(un=1,an=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}),e=ci(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return fn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function li(){if(pn)return hn;pn=1;var t=si(),e=fi(),r=No();return hn=function(n){return t(n,r,e)}}function hi(){if(Mn)return On;Mn=1;var t=function(){if(gn)return vn;gn=1;var t=Zo()(dt(),"DataView");return vn=t}(),e=ti(),r=function(){if(mn)return yn;mn=1;var t=Zo()(dt(),"Promise");return yn=t}(),n=function(){if(_n)return xn;_n=1;var t=Zo()(dt(),"Set");return xn=t}(),o=function(){if(jn)return wn;jn=1;var t=Zo()(dt(),"WeakMap");return wn=t}(),i=vt(),a=Qo(),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}),On=g}function pi(){if(Sn)return En;Sn=1;var t=oi(),e=ii(),r=function(){if(tn)return Zr;tn=1;var t=bt(),e=ai(),r=Ko(),n=ii(),o=Gr?Kr:(Gr=1,Kr=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=Qr?Jr:(Qr=1,Jr=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return Zr=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}}(),n=function(){if(bn)return dn;bn=1;var t=li(),e=Object.prototype.hasOwnProperty;return dn=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 x=r.constructor,_=n.constructor;x==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b}}(),o=hi(),i=gt(),a=zt(),u=Uo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return En=function(h,p,d,b,v,g){var y=i(h),m=i(p),x=y?c:o(h),_=m?c:o(p),w=(x=x==s?f:x)==f,j=(_=_==s?f:_)==f,O=x==_;if(O&&a(h)){if(!a(p))return!1;y=!0,w=!1}if(O&&!w)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,x,d,b,v,g);if(!(1&d)){var M=w&&l.call(h,"__wrapped__"),E=j&&l.call(p,"__wrapped__");if(M||E){var S=M?h.value():h,k=E?p.value():p;return g||(g=new t),v(S,k,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function di(){if(An)return kn;An=1;var t=pi(),e=yt();return kn=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))}}function bi(){if(Pn)return zn;Pn=1;var t=Ho();return zn=function(e){return e==e&&!t(e)}}function vi(){return Fn?Un:(Fn=1,Un=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}})}function gi(){if(Wn)return Hn;Wn=1;var t=vt(),e=yt();return Hn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function yi(){if(Nn)return $n;Nn=1;var t=gt(),e=gi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return $n=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 mi(){if(eo)return to;eo=1;var t=gt(),e=yi(),r=function(){if(Kn)return qn;Kn=1;var t=function(){if(Yn)return Xn;Yn=1;var t=function(){if(Vn)return In;Vn=1;var t=ni();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,In=e}();return Xn=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}(),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 qn=n}(),n=function(){if(Zn)return Qn;Zn=1;var t=function(){if(Jn)return Gn;Jn=1;var t=bt(),e=qo(),r=gt(),n=gi(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return Gn=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},Gn}();return Qn=function(e){return null==e?"":t(e)}}();return to=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function xi(){if(no)return ro;no=1;var t=gi();return ro=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function _i(){if(io)return oo;io=1;var t=mi(),e=xi();return oo=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}}function wi(){if(vo)return bo;vo=1;var t=di(),e=function(){if(uo)return ao;uo=1;var t=_i();return ao=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=function(){if(po)return ho;po=1;var t=co?so:(co=1,so=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(lo)return fo;lo=1;var t=mi(),e=mt(),r=gt(),n=Pt(),o=Tt(),i=xi();return fo=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))}}();return ho=function(r,n){return null!=r&&e(r,n,t)}}(),n=yi(),o=bi(),i=vi(),a=xi();return bo=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 ji(){if(zo)return Ro;zo=1;var t=qo(),e=function(){if(Oo)return jo;Oo=1;var t=function(){if(Bn)return Dn;Bn=1;var t=function(){if(Rn)return Cn;Rn=1;var t=oi(),e=di();return Cn=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}}(),e=function(){if(Ln)return Tn;Ln=1;var t=bi(),e=No();return Tn=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=vi();return Dn=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)}}}(),e=wi(),r=Vo(),n=gt(),o=function(){if(wo)return _o;wo=1;var t=yo?go:(yo=1,go=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(xo)return mo;xo=1;var t=_i();return mo=function(e){return function(r){return t(r,e)}}}(),r=yi(),n=xi();return _o=function(o){return r(o)?t(n(o)):e(o)}}();return jo=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(Co)return Ao;Co=1;var t=function(){if(ko)return So;ko=1;var t=Io(),e=function(){if(Eo)return Mo;Eo=1;var t=$o();return Mo=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}}}()(t);return So=e}(),e=$o();return Ao=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}}(),n=gt();return Ro=function(o,i){return(n(o)?t:r)(o,e(i,3))}}var Oi,Mi,Ei,Si,ki,Ai,Ci,Ri,zi,Pi,Ti,Li,Ui,Fi,Di,Bi,Hi,Wi,$i,Ni,Ii={};function Vi(){if(Ai)return ki;Ai=1;var t=function(){if(Si)return Ei;Si=1;var t=Zo(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ei=e}();return ki=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function Xi(){if(Ri)return Ci;Ri=1;var t=Vi(),e=Ko(),r=Object.prototype.hasOwnProperty;return Ci=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 Yi(){if(Pi)return zi;Pi=1;var t=Xi(),e=Vi();return zi=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}}function qi(){if(Wi)return Hi;Wi=1;var t=Fo(),e=function(){if(Bi)return Di;Bi=1;var t=Ho(),e=Do(),r=Fi?Ui:(Fi=1,Ui=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return Di=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}}(),r=$o();return Hi=function(n){return r(n)?t(n,!0):e(n)}}var Ki,Gi,Ji,Qi,Zi,ta,ea,ra,na,oa,ia,aa,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,xa,_a,wa,ja,Oa,Ma,Ea,Sa,ka,Aa,Ca,Ra,za,Pa,Ta,La,Ua,Fa={exports:{}};function Da(){if(ea)return ta;ea=1;var t=ui(),e=Yo(),r=fi(),n=ci(),o=Object.getOwnPropertySymbols;return ta=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function Ba(){if(ca)return sa;ca=1;var t=ai();return sa=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function Ha(){if(Pa)return za;Pa=1;var t=oi(),e=Mi?Oi:(Mi=1,Oi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),r=Xi(),n=function(){if(Li)return Ti;Li=1;var t=Yi(),e=No();return Ti=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(Ni)return $i;Ni=1;var t=Yi(),e=qi();return $i=function(r,n){return r&&t(n,e(n),r)}}(),i=(Ki||(Ki=1,function(t,e){var r=dt(),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}}(Fa,Fa.exports)),Fa.exports),a=Ji?Gi:(Ji=1,Gi=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),u=function(){if(Zi)return Qi;Zi=1;var t=Yi(),e=fi();return Qi=function(r,n){return t(r,e(r),n)}}(),s=function(){if(na)return ra;na=1;var t=Yi(),e=Da();return ra=function(r,n){return t(r,e(r),n)}}(),c=li(),f=function(){if(ia)return oa;ia=1;var t=si(),e=Da(),r=qi();return oa=function(n){return t(n,r,e)}}(),l=hi(),h=function(){if(ua)return aa;ua=1;var t=Object.prototype.hasOwnProperty;return aa=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=function(){if(ma)return ya;ma=1;var t=Ba(),e=function(){if(la)return fa;la=1;var t=Ba();return fa=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(pa)return ha;pa=1;var t=/\w*$/;return ha=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(ba)return da;ba=1;var t=bt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return da=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(ga)return va;ga=1;var t=Ba();return va=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return ya=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)}}}(),d=function(){if(ja)return wa;ja=1;var t=function(){if(_a)return xa;_a=1;var t=Ho(),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 xa=r}(),e=Yo(),r=Do();return wa=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}(),b=gt(),v=zt(),g=function(){if(Sa)return Ea;Sa=1;var t=function(){if(Ma)return Oa;Ma=1;var t=hi(),e=yt();return Oa=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Lt(),r=Lo(),n=r&&r.isMap,o=n?e(n):t;return Ea=o}(),y=Ho(),m=function(){if(Ra)return Ca;Ra=1;var t=function(){if(Aa)return ka;Aa=1;var t=hi(),e=yt();return ka=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Lt(),r=Lo(),n=r&&r.isSet,o=n?e(n):t;return Ca=o}(),x=No(),_=qi(),w="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[w]=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,za=function E(S,k,A,C,R,z){var P,T=1&k,L=2&k,U=4&k;if(A&&(P=R?A(S,C,R,z):A(S)),void 0!==P)return P;if(!y(S))return S;var F=b(S);if(F){if(P=h(S),!T)return a(S,P)}else{var D=l(S),B=D==j||"[object GeneratorFunction]"==D;if(v(S))return i(S,T);if(D==O||D==w||B&&!R){if(P=L||B?{}:d(S),!T)return L?s(S,o(P,S)):u(S,n(P,S))}else{if(!M[D])return R?S:{};P=p(S,D,T)}}z||(z=new t);var H=z.get(S);if(H)return H;z.set(S,P),m(S)?S.forEach(function(t){P.add(E(t,k,A,t,S,z))}):g(S)&&S.forEach(function(t,e){P.set(e,E(t,k,A,e,S,z))});var W=F?void 0:(U?L?f:c:L?_:x)(S);return e(W||S,function(t,e){W&&(t=S[e=t]),r(P,e,E(t,k,A,e,S,z))}),P},za}var Wa,$a,Na={},Ia={};var Va,Xa={};var Ya,qa,Ka={},Ga=function(){if(qa)return lt;qa=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.ReactCSS=lt.loop=lt.handleActive=lt.handleHover=lt.hover=void 0;var e=s(function(){if(Po)return ht;Po=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.flattenNames=void 0;var t=function(){if(tt)return Z;tt=1;var t=vt(),e=gt(),r=yt();return Z=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(Xo()),n=function(){if(de)return pe;de=1;var t=vt(),e=Yo(),r=yt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return pe=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(ji());function a(t){return t&&t.__esModule?t:{default:t}}var u=ht.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 ht.default=u,ht}()),r=s(function(){if(Ua)return Ii;Ua=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.mergeClasses=void 0;var t=n(Xo()),e=n(function(){if(La)return Ta;La=1;var t=Ha();return Ta=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=Ii.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 Ii.default=o,Ii}()),n=function(){if(Wa)return Na;Wa=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.autoprefix=void 0;var t,e=(t=Xo())&&t.__esModule?t:{default: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={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}}},o=Na.autoprefix=function(t){var o={};return(0,e.default)(t,function(t,i){var a={};(0,e.default)(t,function(t,e){var o=n[e];o?a=r({},a,o(t)):a[e]=t}),o[i]=a}),o};return Na.default=o,Na}(),o=s(n),i=s(function(){if($a)return Ia;$a=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.hover=void 0;var e,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=(e=t.z)&&e.__esModule?e:{default:e};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=Ia.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 Ia.default=i,Ia}()),a=s(function(){if(Va)return Xa;Va=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.active=void 0;var e,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=(e=t.z)&&e.__esModule?e:{default:e};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=Xa.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 Xa.default=i,Xa}()),u=s((Ya||(Ya=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.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}),Ka));function s(t){return t&&t.__esModule?t:{default:t}}lt.hover=i.default,lt.handleHover=i.default,lt.handleActive=a.default,lt.loop=u.default;var c=lt.ReactCSS=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var u=(0,e.default)(i),s=(0,r.default)(t,u);return(0,o.default)(s)};return lt.default=c,lt}();const Ja=t.Mb(Ga);var Qa={},Za=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(Qa[o])return Qa[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 Qa[o]=i,i},tu=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},eu=function(e){var r=e.white,n=e.grey,o=e.size,i=e.renderers,a=e.borderRadius,u=e.boxShadow,s=e.children,c=Ja({default:{grid:{borderRadius:a,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+Za(r,n,o,i.canvas)+") center left"}}});return t.reactExports.isValidElement(s)?t.z.cloneElement(s,tu({},s.props,{style:tu({},s.props.style,c.grid)})):t.z.createElement("div",{style:c.grid})};eu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ru=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},nu=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 ou(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 iu=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=ou(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[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;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;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)},ou(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)}(e,t.reactExports.PureComponent||t.reactExports.Component),nu(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,r=this.props.rgb,n=Ja({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:ru({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return t.z.createElement("div",{style:n.alpha},t.z.createElement("div",{style:n.checkboard},t.z.createElement(eu,{renderers:this.props.renderers})),t.z.createElement("div",{style:n.gradient}),t.z.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.createElement("div",{style:n.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:n.slider}))))}}]),e}(),au=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}}(),uu=[38,40],su=1,cu=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).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,uu.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(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+su++,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)}(e,t.reactExports.PureComponent||t.reactExports.Component),au(e,[{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 e=this,r=Ja({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 t.z.createElement("div",{style:r.wrap},t.z.createElement("input",{id:this.inputId,style:r.input,ref:function(t){return e.input=t},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?t.z.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),fu=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 lu(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 hu=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=lu(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[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;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;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()},lu(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)}(e,t.reactExports.PureComponent||t.reactExports.Component),fu(e,[{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 e=this,r=this.props.direction,n=void 0===r?"horizontal":r,o=Ja({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 t.z.createElement("div",{style:o.hue},t.z.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.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 "),t.z.createElement("div",{style:o.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:o.slider}))))}}]),e}(),pu="object"==typeof global&&global&&global.Object===Object&&global,du="object"==typeof self&&self&&self.Object===Object&&self,bu=pu||du||Function("return this")(),vu=bu.Symbol,gu=Object.prototype,yu=gu.hasOwnProperty,mu=gu.toString,xu=vu?vu.toStringTag:void 0,_u=Object.prototype.toString,wu=vu?vu.toStringTag:void 0;function ju(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}e.string,e.oneOf([0,1,2,3,4,5]),e.number,e.object;var Ou=function(){return bu.Date.now()},Mu=/\s/,Eu=/^\s+/;var Su=/^[-+]0x[0-9a-f]+$/i,ku=/^0b[01]+$/i,Au=/^0o[0-7]+$/i,Cu=parseInt;function Ru(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]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":wu&&wu in Object(t)?function(t){var e=yu.call(t,xu),r=t[xu];try{t[xu]=void 0;var n=!0}catch(t){}var o=mu.call(t);return n&&(e?t[xu]=r:delete t[xu]),o}(t):function(t){return _u.call(t)}(t)}(t)}(t))return NaN;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Mu.test(t.charAt(e)););return e}(t)+1).replace(Eu,""):t}(t);var r=ku.test(t);return r||Au.test(t)?Cu(t.slice(2),r?2:8):Su.test(t)?NaN:+t}var zu=Math.max,Pu=Math.min;var Tu=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 e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));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;return ju(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),function(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=Ou();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?Pu(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=Ou(),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=Ru(e)||0,ju(r)&&(f=!!r.leading,i=(l="maxWait"in r)?zu(Ru(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(Ou())},g}(t,50,{leading:n,maxWait:50,trailing:o})}(function(t,e,r){t(e,r)}),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)})(e,t.reactExports.PureComponent||t.reactExports.Component),Tu(e,[{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 e=this,r=this.props.style||{},n=r.color,o=r.white,i=r.black,a=r.pointer,u=r.circle,s=Ja({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 t.z.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.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 "),t.z.createElement("div",{style:s.white,className:"saturation-white"},t.z.createElement("div",{style:s.black,className:"saturation-black"}),t.z.createElement("div",{style:s.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:s.circle}))))}}])}();var Lu=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},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=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(e){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=Fu(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})},Fu(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,t.z.Component),Uu(n,[{key:"render",value:function(){return t.z.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},t.z.createElement(e,Lu({},this.props,this.state)))}}])}()}(function(e){var r=e.color,n=e.style,o=e.onClick,i=void 0===o?function(){}:o,a=e.onHover,u=e.title,s=void 0===u?r:u,c=e.children,f=e.focus,l=e.focusStyle,h="transparent"===r,p=Ja({default:{swatch:Du({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)}),t.z.createElement("div",Du({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&&t.z.createElement(eu,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Bu=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,u=e.disableAlpha,s=Ja({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),c=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&&i(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 t.z.createElement("div",{style:s.fields,className:"flexbox-fix"},t.z.createElement("div",{style:s.double},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:c})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.alpha},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:c,dragLabel:"true",dragMax:"100"})))};class Hu extends(t.reactExports.PureComponent||t.reactExports.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 e=Date.now();u||!1!==r.leading||(u=e);var c=50-(e-u);return o=this,i=arguments,c<=0||c>50?(n&&(clearTimeout(n),n=null),u=e,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,c)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)})}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.jsxRuntimeExports.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[t.jsxRuntimeExports.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.jsxRuntimeExports.jsxs("div",{style:u.white,className:"saturation-white",children:[t.jsxRuntimeExports.jsx("div",{style:u.black,className:"saturation-black"}),t.jsxRuntimeExports.jsx("div",{style:u.pointer,children:this.props.pointer?t.jsxRuntimeExports.jsx(this.props.pointer,{...this.props}):t.jsxRuntimeExports.jsx("div",{style:u.circle})})]})]})}}const Wu=(t,e=null)=>{const r=t.hex?i(t.hex):i(t||"transparent"),n=r.toHsl(),o=r.toHsv(),a=r.toRgb(),u=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+u,rgb:a,hsv:o,source:t.source}},$u=t.reactExports.memo(e=>{const{selectedColor:r,onColorChange:n,renderers:o,disableAlpha:i=!1,style:a=t.Jo.EmptyCssProperties,...u}=e,s=t.Tx(),[c,f]=t.reactExports.useState(()=>Wu(r)),[l,h]=t.reactExports.useState(c.hsl.h??0),p=t.reactExports.useCallback(t=>{let e=Wu(t,l);return h(e.hsl.h??0),f(e),e},[l]),d=t.reactExports.useCallback(t=>{const e=p(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${i?1:e.rgb.a})`;n?.(r)},[n,p,i]);t.reactExports.useLayoutEffect(()=>{p(r)},[r,p]);const b=t.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsxRuntimeExports.jsx(iu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:c.rgb,hsl:c.hsl,renderers:o,onChange:d})});return t.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",...a},...u,children:[t.jsxRuntimeExports.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:t.jsxRuntimeExports.jsx(Hu,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:c.hsl,hsv:c.hsv,onChange:d})}),t.jsxRuntimeExports.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t.jsxRuntimeExports.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:i?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[t.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsxRuntimeExports.jsx(hu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:c.hsl,onChange:d})}),i?null:b]}),t.jsxRuntimeExports.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[t.jsxRuntimeExports.jsx(t.cO,{grey:s.palette.text.icon??s.palette.action.active}),t.jsxRuntimeExports.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${c.rgb.r},${c.rgb.g},${c.rgb.b},${i?1:c.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),t.jsxRuntimeExports.jsx(t.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.jsxRuntimeExports.jsx(Bu,{rgb:c.rgb,hsl:c.hsl,hex:c.hex,disableAlpha:i,onChange:d})})]})});exports.CustomColorPanel=$u,exports.default=$u,exports.toState=Wu;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DJbKKxeeTEHHA1gR.cjs"),e=t.Mb(t.Uw());function r(t){return r="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},r(t)}var n=/^\s+/,o=/\s+$/;function i(t,e){if(e=e||{},(t=t||"")instanceof i)return t;if(!(this instanceof i))return new i(t,e);var a=function(t){var e,i,a,u={r:0,g:0,b:0},s=1,c=null,f=null,l=null,h=!1,p=!1;return"string"==typeof t&&(t=function(t){t=t.replace(n,"").replace(o,"").toLowerCase();var e,r=!1;if(w[t])t=w[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=L.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=L.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=L.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=L.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=L.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=L.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=L.hex8.exec(t))?{r:S(e[1]),g:S(e[2]),b:S(e[3]),a:R(e[4]),format:r?"name":"hex8"}:(e=L.hex6.exec(t))?{r:S(e[1]),g:S(e[2]),b:S(e[3]),format:r?"name":"hex"}:(e=L.hex4.exec(t))?{r:S(e[1]+""+e[1]),g:S(e[2]+""+e[2]),b:S(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=L.hex3.exec(t))&&{r:S(e[1]+""+e[1]),g:S(e[2]+""+e[2]),b:S(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==r(t)&&(U(t.r)&&U(t.g)&&U(t.b)?(e=t.r,i=t.g,a=t.b,u={r:255*M(e,255),g:255*M(i,255),b:255*M(a,255)},h=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):U(t.h)&&U(t.s)&&U(t.v)?(c=A(t.s),f=A(t.v),u=function(t,e,r){t=6*M(t,360),e=M(e,100),r=M(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;return{r:255*[r,a,i,i,u,r][s],g:255*[u,r,r,a,i,i][s],b:255*[i,i,u,r,r,a][s]}}(t.h,c,f),h=!0,p="hsv"):U(t.h)&&U(t.s)&&U(t.l)&&(c=A(t.s),l=A(t.l),u=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=M(t,360),e=M(e,100),r=M(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,c,l),h=!0,p="hsl"),t.hasOwnProperty("a")&&(s=t.a)),s=O(s),{ok:h,format:t.format||p,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:s}}(t);this._originalInput=t,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||a.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=a.ok}function a(t,e,r){t=M(t,255),e=M(e,255),r=M(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 u(t,e,r){t=M(t,255),e=M(e,255),r=M(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 s(t,e,r,n){var o=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(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 c(t,e,r,n){return[k(C(n)),k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16))].join("")}function f(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.s-=e/100,r.s=E(r.s),i(r)}function l(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.s+=e/100,r.s=E(r.s),i(r)}function h(t){return i(t).desaturate(100)}function p(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.l+=e/100,r.l=E(r.l),i(r)}function d(t,e){e=0===e?0:e||10;var r=i(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))),i(r)}function b(t,e){e=0===e?0:e||10;var r=i(t).toHsl();return r.l-=e/100,r.l=E(r.l),i(r)}function v(t,e){var r=i(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,i(r)}function g(t){var e=i(t).toHsl();return e.h=(e.h+180)%360,i(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=i(t).toHsl(),n=[i(t)],o=360/e,a=1;a<e;a++)n.push(i({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function m(t){var e=i(t).toHsl(),r=e.h;return[i(t),i({h:(r+72)%360,s:e.s,l:e.l}),i({h:(r+216)%360,s:e.s,l:e.l})]}function x(t,e,r){e=e||6,r=r||30;var n=i(t).toHsl(),o=360/r,a=[i(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(i(n));return a}function _(t,e){e=e||6;for(var r=i(t).toHsv(),n=r.h,o=r.s,a=r.v,u=[],s=1/e;e--;)u.push(i({h:n,s:o,v:a})),a=(a+s)%1;return u}i.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=O(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(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=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(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 s(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=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16)),k(C(n))];return 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)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):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*M(this._r,255))+"%",g:Math.round(100*M(this._g,255))+"%",b:Math.round(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%)":"rgba("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[s(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+c(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=i(t);r="#"+c(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 i(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(p,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},i.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]="a"===o?t[o]:A(t[o]));t=n}return i(t,e)},i.equals=function(t,e){return!(!t||!e)&&i(t).toRgbString()==i(e).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},i.mix=function(t,e,r){r=0===r?0:r||50;var n=i(t).toRgb(),o=i(e).toRgb(),a=r/100;return i({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},i.readability=function(t,e){var r=i(t),n=i(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},i.isReadable=function(t,e,r){var n,o,a=i.readability(t,e);switch(o=!1,(n=function(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},i.mostReadable=function(t,e,r){var n,o,a,u,s=null,c=0;o=(r=r||{}).includeFallbackColors,a=r.level,u=r.size;for(var f=0;f<e.length;f++)(n=i.readability(t,e[f]))>c&&(c=n,s=i(e[f]));return i.isReadable(t,s,{level:a,size:u})||!o?s:(r.includeFallbackColors=!1,i.mostReadable(t,["#fff","#000"],r))};var w=i.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"},j=i.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function O(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function M(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 S(t){return parseInt(t,16)}function k(t){return 1==t.length?"0"+t:""+t}function A(t){return t<=1&&(t=100*t+"%"),t}function C(t){return Math.round(255*parseFloat(t)).toString(16)}function R(t){return S(t)/255}var z,P,T,L=(P="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",T="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+P),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+P),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+P),hsva:new RegExp("hsva"+T),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 U(t){return!!L.CSS_UNIT.exec(t)}var F,D,B,H,W,$,N,I,V,X,Y,q,K,G,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt={},ht={};function pt(){if(D)return F;D=1;var e="object"==typeof t.Tb&&t.Tb&&t.Tb.Object===Object&&t.Tb;return F=e}function dt(){if(H)return B;H=1;var t=pt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return B=r}function bt(){if($)return W;$=1;var t=dt().Symbol;return W=t}function vt(){if(q)return Y;q=1;var t=bt(),e=function(){if(I)return N;I=1;var t=bt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return N=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(X)return V;X=1;var t=Object.prototype.toString;return V=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return Y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function gt(){if(G)return K;G=1;var t=Array.isArray;return K=t}function yt(){return Q?J:(Q=1,J=function(t){return null!=t&&"object"==typeof t})}function mt(){if(ft)return ct;ft=1;var t=function(){if(st)return ut;st=1;var t=vt(),e=yt();return ut=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=yt(),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 ct=i}var xt,_t,wt,jt,Ot,Mt,Et,St,kt,At,Ct,Rt={exports:{}};function zt(){return wt||(wt=1,t=Rt,e=Rt.exports,r=dt(),n=_t?xt:(_t=1,xt=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),Rt.exports;var t,e,r,n,o,i,a,u}function Pt(){if(Ot)return jt;Ot=1;var t=/^(?:0|[1-9]\d*)$/;return jt=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 Tt(){return Et?Mt:(Et=1,Mt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991})}function Lt(){return Ct?At:(Ct=1,At=function(t){return function(e){return t(e)}})}var Ut,Ft,Dt,Bt,Ht,Wt,$t,Nt,It,Vt,Xt,Yt,qt,Kt,Gt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,xe,_e,we,je,Oe,Me,Ee,Se,ke,Ae,Ce,Re,ze,Pe,Te,Le,Ue,Fe,De,Be,He,We,$e,Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,xr,_r,wr,jr,Or,Mr,Er,Sr,kr,Ar,Cr,Rr,zr,Pr,Tr,Lr,Ur,Fr,Dr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,xn,_n,wn,jn,On,Mn,En,Sn,kn,An,Cn,Rn,zn,Pn,Tn,Ln,Un,Fn,Dn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,xo,_o,wo,jo,Oo,Mo,Eo,So,ko,Ao,Co,Ro,zo,Po,To={exports:{}};function Lo(){return Ut||(Ut=1,t=To,e=To.exports,r=pt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=a),To.exports;var t,e,r,n,o,i,a}function Uo(){if(Dt)return Ft;Dt=1;var t=function(){if(kt)return St;kt=1;var t=vt(),e=Tt(),r=yt(),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,St=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Lt(),r=Lo(),n=r&&r.isTypedArray,o=n?e(n):t;return Ft=o}function Fo(){if(Ht)return Bt;Ht=1;var t=at?it:(at=1,it=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=mt(),r=gt(),n=zt(),o=Pt(),i=Uo(),a=Object.prototype.hasOwnProperty;return Bt=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 Do(){if($t)return Wt;$t=1;var t=Object.prototype;return Wt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function Bo(){return It?Nt:(It=1,Nt=function(t,e){return function(r){return t(e(r))}})}function Ho(){return Gt?Kt:(Gt=1,Kt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)})}function Wo(){if(Qt)return Jt;Qt=1;var t=vt(),e=Ho();return Jt=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 $o(){if(te)return Zt;te=1;var t=Wo(),e=Tt();return Zt=function(r){return null!=r&&e(r.length)&&!t(r)}}function No(){if(re)return ee;re=1;var t=Fo(),e=function(){if(qt)return Yt;qt=1;var t=Do(),e=function(){if(Xt)return Vt;Xt=1;var t=Bo()(Object.keys,Object);return Vt=t}(),r=Object.prototype.hasOwnProperty;return Yt=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}}(),r=$o();return ee=function(n){return r(n)?t(n):e(n)}}function Io(){if(oe)return ne;oe=1;var t=function(){if(ot)return nt;ot=1;var t=(rt?et:(rt=1,et=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}}))();return nt=t}(),e=No();return ne=function(r,n){return r&&t(r,n,e)}}function Vo(){return ae?ie:(ae=1,ie=function(t){return t})}function Xo(){if(fe)return ce;fe=1;var t=Io(),e=function(){if(se)return ue;se=1;var t=Vo();return ue=function(e){return"function"==typeof e?e:t}}();return ce=function(r,n){return r&&t(r,e(n))}}function Yo(){if(he)return le;he=1;var t=Bo()(Object.getPrototypeOf,Object);return le=t}function qo(){return ve?be:(ve=1,be=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})}function Ko(){return xe?me:(xe=1,me=function(t,e){return t===e||t!=t&&e!=e})}function Go(){if(we)return _e;we=1;var t=Ko();return _e=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function Jo(){if(ze)return Re;ze=1;var t=ye?ge:(ye=1,ge=function(){this.__data__=[],this.size=0}),e=function(){if(Oe)return je;Oe=1;var t=Go(),e=Array.prototype.splice;return je=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))}}(),r=function(){if(Ee)return Me;Ee=1;var t=Go();return Me=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(ke)return Se;ke=1;var t=Go();return Se=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ce)return Ae;Ce=1;var t=Go();return Ae=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}}();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,Re=i}function Qo(){if(Xe)return Ve;Xe=1;var t=Function.prototype.toString;return Ve=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function Zo(){if(Qe)return Je;Qe=1;var t=function(){if(qe)return Ye;qe=1;var t=Wo(),e=function(){if(Ie)return Ne;Ie=1;var t,e=function(){if($e)return We;$e=1;var t=dt()["__core-js_shared__"];return We=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Ne=function(t){return!!r&&r in t}}(),r=Ho(),n=Qo(),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 Ye=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=Ge?Ke:(Ge=1,Ke=function(t,e){return null==t?void 0:t[e]});return Je=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ti(){if(tr)return Ze;tr=1;var t=Zo()(dt(),"Map");return Ze=t}function ei(){if(rr)return er;rr=1;var t=Zo()(Object,"create");return er=t}function ri(){if(xr)return mr;xr=1;var t=yr?gr:(yr=1,gr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return mr=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function ni(){if(Cr)return Ar;Cr=1;var t=function(){if(vr)return br;vr=1;var t=function(){if(dr)return pr;dr=1;var t=function(){if(or)return nr;or=1;var t=ei();return nr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=ar?ir:(ar=1,ir=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(sr)return ur;sr=1;var t=ei(),e=Object.prototype.hasOwnProperty;return ur=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(fr)return cr;fr=1;var t=ei(),e=Object.prototype.hasOwnProperty;return cr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(hr)return lr;hr=1;var t=ei();return lr=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,pr=i}(),e=Jo(),r=ti();return br=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(wr)return _r;wr=1;var t=ri();return _r=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Or)return jr;Or=1;var t=ri();return jr=function(e){return t(this,e).get(e)}}(),n=function(){if(Er)return Mr;Er=1;var t=ri();return Mr=function(e){return t(this,e).has(e)}}(),o=function(){if(kr)return Sr;kr=1;var t=ri();return Sr=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,Ar=i}function oi(){if(Tr)return Pr;Tr=1;var t=Jo(),e=function(){if(Te)return Pe;Te=1;var t=Jo();return Pe=function(){this.__data__=new t,this.size=0}}(),r=Ue?Le:(Ue=1,Le=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=De?Fe:(De=1,Fe=function(t){return this.__data__.get(t)}),o=He?Be:(He=1,Be=function(t){return this.__data__.has(t)}),i=function(){if(zr)return Rr;zr=1;var t=Jo(),e=ti(),r=ni();return Rr=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,Pr=a}function ii(){if(Xr)return Vr;Xr=1;var t=function(){if(Hr)return Br;Hr=1;var t=ni(),e=Ur?Lr:(Ur=1,Lr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Dr?Fr:(Dr=1,Fr=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,Br=n}(),e=$r?Wr:($r=1,Wr=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}),r=Ir?Nr:(Ir=1,Nr=function(t,e){return t.has(e)});return Vr=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}}function ai(){if(qr)return Yr;qr=1;var t=dt().Uint8Array;return Yr=t}function ui(){return rn?en:(rn=1,en=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t})}function si(){if(on)return nn;on=1;var t=ui(),e=gt();return nn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function ci(){return cn?sn:(cn=1,sn=function(){return[]})}function fi(){if(ln)return fn;ln=1;var t=un?an:(un=1,an=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}),e=ci(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return fn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function li(){if(pn)return hn;pn=1;var t=si(),e=fi(),r=No();return hn=function(n){return t(n,r,e)}}function hi(){if(Mn)return On;Mn=1;var t=function(){if(gn)return vn;gn=1;var t=Zo()(dt(),"DataView");return vn=t}(),e=ti(),r=function(){if(mn)return yn;mn=1;var t=Zo()(dt(),"Promise");return yn=t}(),n=function(){if(_n)return xn;_n=1;var t=Zo()(dt(),"Set");return xn=t}(),o=function(){if(jn)return wn;jn=1;var t=Zo()(dt(),"WeakMap");return wn=t}(),i=vt(),a=Qo(),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}),On=g}function pi(){if(Sn)return En;Sn=1;var t=oi(),e=ii(),r=function(){if(tn)return Zr;tn=1;var t=bt(),e=ai(),r=Ko(),n=ii(),o=Gr?Kr:(Gr=1,Kr=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=Qr?Jr:(Qr=1,Jr=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return Zr=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}}(),n=function(){if(bn)return dn;bn=1;var t=li(),e=Object.prototype.hasOwnProperty;return dn=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 x=r.constructor,_=n.constructor;x==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b}}(),o=hi(),i=gt(),a=zt(),u=Uo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return En=function(h,p,d,b,v,g){var y=i(h),m=i(p),x=y?c:o(h),_=m?c:o(p),w=(x=x==s?f:x)==f,j=(_=_==s?f:_)==f,O=x==_;if(O&&a(h)){if(!a(p))return!1;y=!0,w=!1}if(O&&!w)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,x,d,b,v,g);if(!(1&d)){var M=w&&l.call(h,"__wrapped__"),E=j&&l.call(p,"__wrapped__");if(M||E){var S=M?h.value():h,k=E?p.value():p;return g||(g=new t),v(S,k,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function di(){if(An)return kn;An=1;var t=pi(),e=yt();return kn=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))}}function bi(){if(Pn)return zn;Pn=1;var t=Ho();return zn=function(e){return e==e&&!t(e)}}function vi(){return Fn?Un:(Fn=1,Un=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}})}function gi(){if(Wn)return Hn;Wn=1;var t=vt(),e=yt();return Hn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function yi(){if(Nn)return $n;Nn=1;var t=gt(),e=gi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return $n=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 mi(){if(eo)return to;eo=1;var t=gt(),e=yi(),r=function(){if(Kn)return qn;Kn=1;var t=function(){if(Yn)return Xn;Yn=1;var t=function(){if(Vn)return In;Vn=1;var t=ni();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,In=e}();return Xn=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}(),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 qn=n}(),n=function(){if(Zn)return Qn;Zn=1;var t=function(){if(Jn)return Gn;Jn=1;var t=bt(),e=qo(),r=gt(),n=gi(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return Gn=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},Gn}();return Qn=function(e){return null==e?"":t(e)}}();return to=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function xi(){if(no)return ro;no=1;var t=gi();return ro=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function _i(){if(io)return oo;io=1;var t=mi(),e=xi();return oo=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}}function wi(){if(vo)return bo;vo=1;var t=di(),e=function(){if(uo)return ao;uo=1;var t=_i();return ao=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=function(){if(po)return ho;po=1;var t=co?so:(co=1,so=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(lo)return fo;lo=1;var t=mi(),e=mt(),r=gt(),n=Pt(),o=Tt(),i=xi();return fo=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))}}();return ho=function(r,n){return null!=r&&e(r,n,t)}}(),n=yi(),o=bi(),i=vi(),a=xi();return bo=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 ji(){if(zo)return Ro;zo=1;var t=qo(),e=function(){if(Oo)return jo;Oo=1;var t=function(){if(Bn)return Dn;Bn=1;var t=function(){if(Rn)return Cn;Rn=1;var t=oi(),e=di();return Cn=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}}(),e=function(){if(Ln)return Tn;Ln=1;var t=bi(),e=No();return Tn=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=vi();return Dn=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)}}}(),e=wi(),r=Vo(),n=gt(),o=function(){if(wo)return _o;wo=1;var t=yo?go:(yo=1,go=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(xo)return mo;xo=1;var t=_i();return mo=function(e){return function(r){return t(r,e)}}}(),r=yi(),n=xi();return _o=function(o){return r(o)?t(n(o)):e(o)}}();return jo=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(Co)return Ao;Co=1;var t=function(){if(ko)return So;ko=1;var t=Io(),e=function(){if(Eo)return Mo;Eo=1;var t=$o();return Mo=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}}}()(t);return So=e}(),e=$o();return Ao=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}}(),n=gt();return Ro=function(o,i){return(n(o)?t:r)(o,e(i,3))}}var Oi,Mi,Ei,Si,ki,Ai,Ci,Ri,zi,Pi,Ti,Li,Ui,Fi,Di,Bi,Hi,Wi,$i,Ni,Ii={};function Vi(){if(Ai)return ki;Ai=1;var t=function(){if(Si)return Ei;Si=1;var t=Zo(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ei=e}();return ki=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function Xi(){if(Ri)return Ci;Ri=1;var t=Vi(),e=Ko(),r=Object.prototype.hasOwnProperty;return Ci=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 Yi(){if(Pi)return zi;Pi=1;var t=Xi(),e=Vi();return zi=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}}function qi(){if(Wi)return Hi;Wi=1;var t=Fo(),e=function(){if(Bi)return Di;Bi=1;var t=Ho(),e=Do(),r=Fi?Ui:(Fi=1,Ui=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return Di=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}}(),r=$o();return Hi=function(n){return r(n)?t(n,!0):e(n)}}var Ki,Gi,Ji,Qi,Zi,ta,ea,ra,na,oa,ia,aa,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,xa,_a,wa,ja,Oa,Ma,Ea,Sa,ka,Aa,Ca,Ra,za,Pa,Ta,La,Ua,Fa={exports:{}};function Da(){if(ea)return ta;ea=1;var t=ui(),e=Yo(),r=fi(),n=ci(),o=Object.getOwnPropertySymbols;return ta=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function Ba(){if(ca)return sa;ca=1;var t=ai();return sa=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function Ha(){if(Pa)return za;Pa=1;var t=oi(),e=Mi?Oi:(Mi=1,Oi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),r=Xi(),n=function(){if(Li)return Ti;Li=1;var t=Yi(),e=No();return Ti=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(Ni)return $i;Ni=1;var t=Yi(),e=qi();return $i=function(r,n){return r&&t(n,e(n),r)}}(),i=(Ki||(Ki=1,function(t,e){var r=dt(),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}}(Fa,Fa.exports)),Fa.exports),a=Ji?Gi:(Ji=1,Gi=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),u=function(){if(Zi)return Qi;Zi=1;var t=Yi(),e=fi();return Qi=function(r,n){return t(r,e(r),n)}}(),s=function(){if(na)return ra;na=1;var t=Yi(),e=Da();return ra=function(r,n){return t(r,e(r),n)}}(),c=li(),f=function(){if(ia)return oa;ia=1;var t=si(),e=Da(),r=qi();return oa=function(n){return t(n,r,e)}}(),l=hi(),h=function(){if(ua)return aa;ua=1;var t=Object.prototype.hasOwnProperty;return aa=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=function(){if(ma)return ya;ma=1;var t=Ba(),e=function(){if(la)return fa;la=1;var t=Ba();return fa=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(pa)return ha;pa=1;var t=/\w*$/;return ha=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(ba)return da;ba=1;var t=bt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return da=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(ga)return va;ga=1;var t=Ba();return va=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return ya=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)}}}(),d=function(){if(ja)return wa;ja=1;var t=function(){if(_a)return xa;_a=1;var t=Ho(),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 xa=r}(),e=Yo(),r=Do();return wa=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}(),b=gt(),v=zt(),g=function(){if(Sa)return Ea;Sa=1;var t=function(){if(Ma)return Oa;Ma=1;var t=hi(),e=yt();return Oa=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Lt(),r=Lo(),n=r&&r.isMap,o=n?e(n):t;return Ea=o}(),y=Ho(),m=function(){if(Ra)return Ca;Ra=1;var t=function(){if(Aa)return ka;Aa=1;var t=hi(),e=yt();return ka=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Lt(),r=Lo(),n=r&&r.isSet,o=n?e(n):t;return Ca=o}(),x=No(),_=qi(),w="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[w]=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,za=function E(S,k,A,C,R,z){var P,T=1&k,L=2&k,U=4&k;if(A&&(P=R?A(S,C,R,z):A(S)),void 0!==P)return P;if(!y(S))return S;var F=b(S);if(F){if(P=h(S),!T)return a(S,P)}else{var D=l(S),B=D==j||"[object GeneratorFunction]"==D;if(v(S))return i(S,T);if(D==O||D==w||B&&!R){if(P=L||B?{}:d(S),!T)return L?s(S,o(P,S)):u(S,n(P,S))}else{if(!M[D])return R?S:{};P=p(S,D,T)}}z||(z=new t);var H=z.get(S);if(H)return H;z.set(S,P),m(S)?S.forEach(function(t){P.add(E(t,k,A,t,S,z))}):g(S)&&S.forEach(function(t,e){P.set(e,E(t,k,A,e,S,z))});var W=F?void 0:(U?L?f:c:L?_:x)(S);return e(W||S,function(t,e){W&&(t=S[e=t]),r(P,e,E(t,k,A,e,S,z))}),P},za}var Wa,$a,Na={},Ia={};var Va,Xa={};var Ya,qa,Ka={},Ga=function(){if(qa)return lt;qa=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.ReactCSS=lt.loop=lt.handleActive=lt.handleHover=lt.hover=void 0;var e=s(function(){if(Po)return ht;Po=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.flattenNames=void 0;var t=function(){if(tt)return Z;tt=1;var t=vt(),e=gt(),r=yt();return Z=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(Xo()),n=function(){if(de)return pe;de=1;var t=vt(),e=Yo(),r=yt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return pe=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(ji());function a(t){return t&&t.__esModule?t:{default:t}}var u=ht.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 ht.default=u,ht}()),r=s(function(){if(Ua)return Ii;Ua=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.mergeClasses=void 0;var t=n(Xo()),e=n(function(){if(La)return Ta;La=1;var t=Ha();return Ta=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=Ii.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 Ii.default=o,Ii}()),n=function(){if(Wa)return Na;Wa=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.autoprefix=void 0;var t,e=(t=Xo())&&t.__esModule?t:{default: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={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}}},o=Na.autoprefix=function(t){var o={};return(0,e.default)(t,function(t,i){var a={};(0,e.default)(t,function(t,e){var o=n[e];o?a=r({},a,o(t)):a[e]=t}),o[i]=a}),o};return Na.default=o,Na}(),o=s(n),i=s(function(){if($a)return Ia;$a=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.hover=void 0;var e,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=(e=t.z)&&e.__esModule?e:{default:e};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=Ia.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 Ia.default=i,Ia}()),a=s(function(){if(Va)return Xa;Va=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.active=void 0;var e,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=(e=t.z)&&e.__esModule?e:{default:e};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=Xa.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 Xa.default=i,Xa}()),u=s((Ya||(Ya=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.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}),Ka));function s(t){return t&&t.__esModule?t:{default:t}}lt.hover=i.default,lt.handleHover=i.default,lt.handleActive=a.default,lt.loop=u.default;var c=lt.ReactCSS=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var u=(0,e.default)(i),s=(0,r.default)(t,u);return(0,o.default)(s)};return lt.default=c,lt}();const Ja=t.Mb(Ga);var Qa={},Za=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(Qa[o])return Qa[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 Qa[o]=i,i},tu=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},eu=function(e){var r=e.white,n=e.grey,o=e.size,i=e.renderers,a=e.borderRadius,u=e.boxShadow,s=e.children,c=Ja({default:{grid:{borderRadius:a,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+Za(r,n,o,i.canvas)+") center left"}}});return t.reactExports.isValidElement(s)?t.z.cloneElement(s,tu({},s.props,{style:tu({},s.props.style,c.grid)})):t.z.createElement("div",{style:c.grid})};eu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ru=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},nu=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 ou(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 iu=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=ou(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[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;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;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)},ou(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)}(e,t.reactExports.PureComponent||t.reactExports.Component),nu(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,r=this.props.rgb,n=Ja({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:ru({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return t.z.createElement("div",{style:n.alpha},t.z.createElement("div",{style:n.checkboard},t.z.createElement(eu,{renderers:this.props.renderers})),t.z.createElement("div",{style:n.gradient}),t.z.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.createElement("div",{style:n.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:n.slider}))))}}]),e}(),au=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}}(),uu=[38,40],su=1,cu=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).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,uu.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(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+su++,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)}(e,t.reactExports.PureComponent||t.reactExports.Component),au(e,[{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 e=this,r=Ja({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 t.z.createElement("div",{style:r.wrap},t.z.createElement("input",{id:this.inputId,style:r.input,ref:function(t){return e.input=t},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?t.z.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),fu=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 lu(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 hu=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=lu(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[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;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;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()},lu(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)}(e,t.reactExports.PureComponent||t.reactExports.Component),fu(e,[{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 e=this,r=this.props.direction,n=void 0===r?"horizontal":r,o=Ja({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 t.z.createElement("div",{style:o.hue},t.z.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.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 "),t.z.createElement("div",{style:o.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:o.slider}))))}}]),e}(),pu="object"==typeof global&&global&&global.Object===Object&&global,du="object"==typeof self&&self&&self.Object===Object&&self,bu=pu||du||Function("return this")(),vu=bu.Symbol,gu=Object.prototype,yu=gu.hasOwnProperty,mu=gu.toString,xu=vu?vu.toStringTag:void 0,_u=Object.prototype.toString,wu=vu?vu.toStringTag:void 0;function ju(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}e.string,e.oneOf([0,1,2,3,4,5]),e.number,e.object;var Ou=function(){return bu.Date.now()},Mu=/\s/,Eu=/^\s+/;var Su=/^[-+]0x[0-9a-f]+$/i,ku=/^0b[01]+$/i,Au=/^0o[0-7]+$/i,Cu=parseInt;function Ru(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]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":wu&&wu in Object(t)?function(t){var e=yu.call(t,xu),r=t[xu];try{t[xu]=void 0;var n=!0}catch(t){}var o=mu.call(t);return n&&(e?t[xu]=r:delete t[xu]),o}(t):function(t){return _u.call(t)}(t)}(t)}(t))return NaN;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Mu.test(t.charAt(e)););return e}(t)+1).replace(Eu,""):t}(t);var r=ku.test(t);return r||Au.test(t)?Cu(t.slice(2),r?2:8):Su.test(t)?NaN:+t}var zu=Math.max,Pu=Math.min;var Tu=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 e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));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;return ju(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),function(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=Ou();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?Pu(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=Ou(),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=Ru(e)||0,ju(r)&&(f=!!r.leading,i=(l="maxWait"in r)?zu(Ru(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(Ou())},g}(t,50,{leading:n,maxWait:50,trailing:o})}(function(t,e,r){t(e,r)}),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)})(e,t.reactExports.PureComponent||t.reactExports.Component),Tu(e,[{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 e=this,r=this.props.style||{},n=r.color,o=r.white,i=r.black,a=r.pointer,u=r.circle,s=Ja({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 t.z.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.z.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 "),t.z.createElement("div",{style:s.white,className:"saturation-white"},t.z.createElement("div",{style:s.black,className:"saturation-black"}),t.z.createElement("div",{style:s.pointer},this.props.pointer?t.z.createElement(this.props.pointer,this.props):t.z.createElement("div",{style:s.circle}))))}}])}();var Lu=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},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=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(e){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=Fu(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})},Fu(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,t.z.Component),Uu(n,[{key:"render",value:function(){return t.z.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},t.z.createElement(e,Lu({},this.props,this.state)))}}])}()}(function(e){var r=e.color,n=e.style,o=e.onClick,i=void 0===o?function(){}:o,a=e.onHover,u=e.title,s=void 0===u?r:u,c=e.children,f=e.focus,l=e.focusStyle,h="transparent"===r,p=Ja({default:{swatch:Du({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)}),t.z.createElement("div",Du({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&&t.z.createElement(eu,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Bu=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,u=e.disableAlpha,s=Ja({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),c=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&&i(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 t.z.createElement("div",{style:s.fields,className:"flexbox-fix"},t.z.createElement("div",{style:s.double},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:c})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.single},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),t.z.createElement("div",{style:s.alpha},t.z.createElement(cu,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:c,dragLabel:"true",dragMax:"100"})))};class Hu extends(t.reactExports.PureComponent||t.reactExports.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 e=Date.now();u||!1!==r.leading||(u=e);var c=50-(e-u);return o=this,i=arguments,c<=0||c>50?(n&&(clearTimeout(n),n=null),u=e,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,c)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)})}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.jsxRuntimeExports.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[t.jsxRuntimeExports.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.jsxRuntimeExports.jsxs("div",{style:u.white,className:"saturation-white",children:[t.jsxRuntimeExports.jsx("div",{style:u.black,className:"saturation-black"}),t.jsxRuntimeExports.jsx("div",{style:u.pointer,children:this.props.pointer?t.jsxRuntimeExports.jsx(this.props.pointer,{...this.props}):t.jsxRuntimeExports.jsx("div",{style:u.circle})})]})]})}}const Wu=(t,e=null)=>{const r=t.hex?i(t.hex):i(t||"transparent"),n=r.toHsl(),o=r.toHsv(),a=r.toRgb(),u=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+u,rgb:a,hsv:o,source:t.source}},$u=t.reactExports.memo(e=>{const{selectedColor:r,onColorChange:n,renderers:o,disableAlpha:i=!1,style:a=t.Jo.EmptyCssProperties,...u}=e,s=t.Tx(),[c,f]=t.reactExports.useState(()=>Wu(r)),[l,h]=t.reactExports.useState(c.hsl.h??0),p=t.reactExports.useCallback(t=>{let e=Wu(t,l);return h(e.hsl.h??0),f(e),e},[l]),d=t.reactExports.useCallback(t=>{const e=p(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${i?1:e.rgb.a})`;n?.(r)},[n,p,i]);t.reactExports.useLayoutEffect(()=>{p(r)},[r,p]);const b=t.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsxRuntimeExports.jsx(iu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:c.rgb,hsl:c.hsl,renderers:o,onChange:d})});return t.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",...a},...u,children:[t.jsxRuntimeExports.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:t.jsxRuntimeExports.jsx(Hu,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:c.hsl,hsv:c.hsv,onChange:d})}),t.jsxRuntimeExports.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t.jsxRuntimeExports.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:i?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[t.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsxRuntimeExports.jsx(hu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:c.hsl,onChange:d})}),i?null:b]}),t.jsxRuntimeExports.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[t.jsxRuntimeExports.jsx(t.cO,{grey:s.palette.text.icon??s.palette.action.active}),t.jsxRuntimeExports.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${c.rgb.r},${c.rgb.g},${c.rgb.b},${i?1:c.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),t.jsxRuntimeExports.jsx(t.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.jsxRuntimeExports.jsx(Bu,{rgb:c.rgb,hsl:c.hsl,hex:c.hex,disableAlpha:i,onChange:d})})]})});exports.CustomColorPanel=$u,exports.default=$u,exports.toState=Wu;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
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("./CuTW2Pt-L5n-hNxV.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("./CuTW2Pt-L5n-hNxV.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};
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("./hwDUzorB6aCvH1eL.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("./hwDUzorB6aCvH1eL.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 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=["Ok","Cancel"],a=e.reactExports.memo(a=>{const{value:s=null,context:o,onOption:n,onValidateOption:l,onDone:r,onUpdate:i,options:p=t,defaultOption:u=p?.[0],cancelOption:c="Cancel",sx:d,...x}=a,g=e.reactExports.useMemo(()=>o?.getNames().findValidName("Range1"),[]),m=e.reactExports.useMemo(()=>{if(!s)return!0},[]),[f,y]=e.reactExports.useState({displayText:s?.getName()??g,errorText:null}),[N,T]=e.reactExports.useState({displayValue:s?.getRanges()??o?.selection()??null,errorText:null}),[E,R]=e.reactExports.useState(!1),j=e.reactExports.useCallback(async e=>!f.errorText&&!N.errorText,[o]),O=e.go((e,t,a)=>{if(!t){let e=null;m?e=o?.getNames().addReference(f?.displayText,N?.displayValue,!1):("reference"===s.getType()&&s.doBatch(()=>{s.setName(f?.displayText),s.setReference(N?.displayValue)},`Edit Named '${f?.displayText}'`),e=s),e&&(e.select(),i(e,m))}n?.(e,t,a),r?.()},[o,f,N,r,n,u,c,i]),V=e.go(e=>{let t=null;try{o?.getNames().validateName(e)}catch(e){t=e.message}y({displayText:e,errorText:t})},[]),C=e.go(e=>{s&&s.getName().toLowerCase()===e.toLowerCase()||o?.getNames().validateName(e)},[o,s]),b=e.reactExports.useCallback(e=>{T({displayValue:e??null,errorText:null})},[]);return e.jsxRuntimeExports.jsx(e.sb,{title:(m?"Define":"Edit")+" Range",options:p,onOption:O,onValidateOption:j,defaultOption:u,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"460px",...d},...x,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.gL,{formName:"name",defaultInput:g,value:f.displayText,onChangeInput:V,onValidate:C,onFocus:e=>{E||e.target?.select(),R(!0)}}),e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:N.displayValue,onChangeInput:b,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),onFocus:e=>{E||e.target?.select(),R(!0)}})]})})});exports.NamedReferenceDialog=a,exports.default=a;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=["Ok","Cancel"],a=e.reactExports.memo(a=>{const{value:s=null,context:o,onOption:n,onValidateOption:l,onDone:r,onUpdate:i,options:p=t,defaultOption:u=p?.[0],cancelOption:c="Cancel",sx:d,...x}=a,g=e.reactExports.useMemo(()=>o?.getNames().findValidName("Range1"),[]),m=e.reactExports.useMemo(()=>{if(!s)return!0},[]),[f,y]=e.reactExports.useState({displayText:s?.getName()??g,errorText:null}),[N,T]=e.reactExports.useState({displayValue:s?.getRanges()??o?.selection()??null,errorText:null}),[E,R]=e.reactExports.useState(!1),j=e.reactExports.useCallback(async e=>!f.errorText&&!N.errorText,[o]),O=e.go((e,t,a)=>{if(!t){let e=null;m?e=o?.getNames().addReference(f?.displayText,N?.displayValue,!1):("reference"===s.getType()&&s.doBatch(()=>{s.setName(f?.displayText),s.setReference(N?.displayValue)},`Edit Named '${f?.displayText}'`),e=s),e&&(e.select(),i(e,m))}n?.(e,t,a),r?.()},[o,f,N,r,n,u,c,i]),V=e.go(e=>{let t=null;try{o?.getNames().validateName(e)}catch(e){t=e.message}y({displayText:e,errorText:t})},[]),C=e.go(e=>{s&&s.getName().toLowerCase()===e.toLowerCase()||o?.getNames().validateName(e)},[o,s]),b=e.reactExports.useCallback(e=>{T({displayValue:e??null,errorText:null})},[]);return e.jsxRuntimeExports.jsx(e.sb,{title:(m?"Define":"Edit")+" Range",options:p,onOption:O,onValidateOption:j,defaultOption:u,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"460px",...d},...x,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.gL,{formName:"name",defaultInput:g,value:f.displayText,onChangeInput:V,onValidate:C,onFocus:e=>{E||e.target?.select(),R(!0)}}),e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:N.displayValue,onChangeInput:b,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),onFocus:e=>{E||e.target?.select(),R(!0)}})]})})});exports.NamedReferenceDialog=a,exports.default=a;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=e.reactExports.memo(t=>{const{title:o,onHide:s,autoFocusSel:n=".range-input input",context:i,notifier:a=e.sr,command:r,commands:l,...x}=t,[c,p]=e.reactExports.useState(!1),[d,m]=e.reactExports.useState(!1),g=e.reactExports.useRef(null),[u,h]=e.reactExports.useReducer(e=>e+1,0),[j,{width:R}]=e._I();e.Jr(r);const f=i??r.context(),y=f.table(),[b,E]=e.reactExports.useState(()=>y?f.getNames().getRanges(y.getRange()):null),w=e.reactExports.useMemo(()=>y?.getName()??"",[y]);e.j_(f.table(),{onAnchorCoordsChange(e){E(f.getNames().getRanges(e.getRange()))},onProtectedChange(e){h()}});const S=e.go(e=>{f?.table().setName(e)},[f]),C=e.go(e=>{f?.table().resize(e.at(0))},[f]);let v=null;return f.table()||(v=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.Vg,{ref:g,title:o??"Table Details",initialPosition:{y:"35"},autoFocusSel:n,onHide:s,onFocus:()=>p(!0),onBlur:e=>{g?.current?.contains(e.relatedTarget)||p(!1)},PaperProps:{elevation:c?3:1},...x,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:j,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:f.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.gL,{formName:"name",defaultInput:w,value:y?.getName()??"No table",onChangeInput:S,onValidate:e=>{y&&y.getName().toLowerCase()===e.toLowerCase()||f?.getNames().validateName(e)},disabled:y?.isProtected()??!0,onFocus:e=>{d||e.target?.select(),m(!0)}}),e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:b,onChangeInput:C,resolvedAddress:f.getNames().getRanges.bind(f.getNames()),disabled:y?.isProtected()??!0,onFocus:e=>{d||e.target?.select(),m(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.tL,{disabled:y?.isProtected(),styleOptions:y?.getStyleOptions()??null,onStyleOptionsChange:e=>{y.updateStyleOptions(e)},showHeaderRow:y?.getShowHeaders(),onShowHeaderRowChange:e=>{try{y.setShowHeaders(e)}catch(e){a.showError(e)}},showTotalRow:y?.getShowTotals(),onShowTotalRowChange:e=>{try{y.setShowTotals(e)}catch(e){a.showError(e)}},showFilterButton:y?.getFilter()?y.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{y.setShowFilterButton(e)}catch(e){a.showError(e)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:e.jsxRuntimeExports.jsx(e.JO,{table:y,styles:f.styles(),bodyStyle:f.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.pb,{variant:e.ti.Menuitem,command:l.getCommand("convertTableToRange"),commandState:y,icon:e.kc(e.jsxRuntimeExports.jsx(e.$u,{}))}),e.jsxRuntimeExports.jsx(e.pb,{variant:e.ti.Menuitem,commandState:y,command:l.getCommand("deleteTable"),icon:e.kc(e.jsxRuntimeExports.jsx(e.$u,{}))})]})]})]}),v]})})});exports.TableDetailsWindow=t,exports.default=t;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=e.reactExports.memo(t=>{const{title:o,onHide:s,autoFocusSel:n=".range-input input",context:i,notifier:a=e.sr,command:r,commands:l,...x}=t,[c,p]=e.reactExports.useState(!1),[d,m]=e.reactExports.useState(!1),g=e.reactExports.useRef(null),[u,h]=e.reactExports.useReducer(e=>e+1,0),[j,{width:R}]=e._I();e.Jr(r);const f=i??r.context(),y=f.table(),[b,E]=e.reactExports.useState(()=>y?f.getNames().getRanges(y.getRange()):null),w=e.reactExports.useMemo(()=>y?.getName()??"",[y]);e.j_(f.table(),{onAnchorCoordsChange(e){E(f.getNames().getRanges(e.getRange()))},onProtectedChange(e){h()}});const S=e.go(e=>{f?.table().setName(e)},[f]),C=e.go(e=>{f?.table().resize(e.at(0))},[f]);let v=null;return f.table()||(v=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.Vg,{ref:g,title:o??"Table Details",initialPosition:{y:"35"},autoFocusSel:n,onHide:s,onFocus:()=>p(!0),onBlur:e=>{g?.current?.contains(e.relatedTarget)||p(!1)},PaperProps:{elevation:c?3:1},...x,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:j,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:f.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.gL,{formName:"name",defaultInput:w,value:y?.getName()??"No table",onChangeInput:S,onValidate:e=>{y&&y.getName().toLowerCase()===e.toLowerCase()||f?.getNames().validateName(e)},disabled:y?.isProtected()??!0,onFocus:e=>{d||e.target?.select(),m(!0)}}),e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:b,onChangeInput:C,resolvedAddress:f.getNames().getRanges.bind(f.getNames()),disabled:y?.isProtected()??!0,onFocus:e=>{d||e.target?.select(),m(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.tL,{disabled:y?.isProtected(),styleOptions:y?.getStyleOptions()??null,onStyleOptionsChange:e=>{y.updateStyleOptions(e)},showHeaderRow:y?.getShowHeaders(),onShowHeaderRowChange:e=>{try{y.setShowHeaders(e)}catch(e){a.showError(e)}},showTotalRow:y?.getShowTotals(),onShowTotalRowChange:e=>{try{y.setShowTotals(e)}catch(e){a.showError(e)}},showFilterButton:y?.getFilter()?y.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{y.setShowFilterButton(e)}catch(e){a.showError(e)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:e.jsxRuntimeExports.jsx(e.JO,{table:y,styles:f.styles(),bodyStyle:f.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.pb,{variant:e.ti.Menuitem,command:l.getCommand("convertTableToRange"),commandState:y,icon:e.kc(e.jsxRuntimeExports.jsx(e.$u,{}))}),e.jsxRuntimeExports.jsx(e.pb,{variant:e.ti.Menuitem,commandState:y,command:l.getCommand("deleteTable"),icon:e.kc(e.jsxRuntimeExports.jsx(e.$u,{}))})]})]})]}),v]})})});exports.TableDetailsWindow=t,exports.default=t;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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"});let e=null;const t={reactUrl:"https://esm.sh/react@19.1.0",reactJsxTransform:"https://esm.sh/react@19.1.0/jsx-runtime",reactDomUrl:"https://esm.sh/react-dom@19.1.0",reactDomUrlClient:"https://esm.sh/react-dom@19.1.0/client"};exports.resolveDependencies=r=>(r={...r,...t},e||(console.log("SheetXL: Resolving dependencies with:",r),e=(async()=>{const e=r.reactUrl,t=r.reactDomUrl,s=r.reactDomUrlClient,o=r.reactJsxTransform;if(document.querySelector('script[type="importmap"]'))console.warn("SheetXL: Import map already exists. Skipping injection.");else{const r=document.createElement("script");r.type="importmap",r.textContent=JSON.stringify({imports:{react:e,"react/jsx-runtime":o,"react-dom":t,"react-dom/client":s}}),document.head.appendChild(r),console.log("SheetXL: Import map injected:",r.textContent)}await new Promise(e=>setTimeout(e,0));const n=await Promise.all([Promise.resolve().then(()=>require("./DJbKKxeeTEHHA1gR.cjs")).then(e=>e.React),Promise.resolve().then(()=>require("./DJbKKxeeTEHHA1gR.cjs")).then(e=>e.ReactJSXTransform),Promise.resolve().then(()=>require("./DJbKKxeeTEHHA1gR.cjs")).then(e=>e.index),Promise.resolve().then(()=>require("./DJbKKxeeTEHHA1gR.cjs")).then(e=>e.ReactDOMClient),Promise.resolve().then(()=>require("./DJbKKxeeTEHHA1gR.cjs")).then(e=>e.StudioMUI)]);return console.log("SheetXL: Dependencies resolved:",n),{React:n[0],ReactJSXTransform:n[1],ReactDOM:n[2],ReactDOMClient:n[3],StudioMUI:n[4]}})(),e));
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=require("@sheetxl/sdk"),o=["Ok","Cancel"],a=e.reactExports.memo(a=>{const{initialValue:r,context:s,onOption:n,onValidateOption:p,onInputOption:i,onDone:l,options:u=o,defaultOption:x=u?.[0],cancelOption:c="Cancel",sx:m,...d}=a,[g,y]=e.reactExports.useState(r),[h,b]=e.reactExports.useState(!1),f=e.reactExports.useCallback(async(e,t)=>!0,[]),j=e.go(async e=>{i?.(g,e),n?.(e,e===c,e===x),l?.()},[g,i,l,n,c,x]),E=e.go(async t=>{t.keyCode===e.io.Enter&&!1!==await(f?.(g,null))&&j(x)},[g,j]),C=e.go(e=>{y(e.target.value),f?.(e.target.value,null)},[p]),F=e.go(async e=>{let t=await Promise.resolve(p?.(e));try{!1!==t&&(t=await Promise.resolve(f?.(g,e))??!0)}catch(e){}return t??!0},[p]),[T,v]=e.reactExports.useState(t.NumberFormat.Styles.lookupStyle(g).formatType??t.NumberFormat.Type.Custom);e.reactExports.useEffect(()=>{v(t.NumberFormat.Styles.lookupStyle(g).formatType??t.NumberFormat.Type.Custom)},[g]);const k=e.reactExports.useMemo(()=>{const o=t.NumberFormat.Styles.lookupPrimary(),a=t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t),r=Object.keys(o).map(e=>a(o[e].formatType));return r.push(a(t.NumberFormat.Type.Custom)),r},[]),R=e.reactExports.useCallback(e=>{const o=e.target.value;v(o);const a=t.NumberFormat.Styles.lookupDefault(o);a&&y(a)},[]),S=e.reactExports.useMemo(()=>{const e=s();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:g}})},[T,g,s]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Number Format",options:u,onDone:l,onOption:e=>j(e),onValidateOption:F,defaultOption:x,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"580px",...m},...d,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:"Category"}),e.jsxRuntimeExports.jsx(e.Select,{value:T,label:"Category",onChange:R,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},children:k})]}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Code",onFocus:e=>{h||e.target?.select(),b(!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(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`}}},value:g,onChange:C,onKeyDown:E,onContextMenu:e=>{e.stopPropagation()}})}),e.jsxRuntimeExports.jsxs(e.Box,{children:[e.jsxRuntimeExports.jsx(e.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),e.jsxRuntimeExports.jsx(e.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:S.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=a,exports.default=a;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=require("@sheetxl/sdk"),o=["Ok","Cancel"],a=e.reactExports.memo(a=>{const{initialValue:r,context:s,onOption:n,onValidateOption:p,onInputOption:i,onDone:l,options:u=o,defaultOption:x=u?.[0],cancelOption:c="Cancel",sx:m,...d}=a,[g,y]=e.reactExports.useState(r),[h,b]=e.reactExports.useState(!1),f=e.reactExports.useCallback(async(e,t)=>!0,[]),j=e.go(async e=>{i?.(g,e),n?.(e,e===c,e===x),l?.()},[g,i,l,n,c,x]),E=e.go(async t=>{t.keyCode===e.io.Enter&&!1!==await(f?.(g,null))&&j(x)},[g,j]),C=e.go(e=>{y(e.target.value),f?.(e.target.value,null)},[p]),F=e.go(async e=>{let t=await Promise.resolve(p?.(e));try{!1!==t&&(t=await Promise.resolve(f?.(g,e))??!0)}catch(e){}return t??!0},[p]),[T,v]=e.reactExports.useState(t.NumberFormat.Styles.lookupStyle(g).formatType??t.NumberFormat.Type.Custom);e.reactExports.useEffect(()=>{v(t.NumberFormat.Styles.lookupStyle(g).formatType??t.NumberFormat.Type.Custom)},[g]);const k=e.reactExports.useMemo(()=>{const o=t.NumberFormat.Styles.lookupPrimary(),a=t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t),r=Object.keys(o).map(e=>a(o[e].formatType));return r.push(a(t.NumberFormat.Type.Custom)),r},[]),R=e.reactExports.useCallback(e=>{const o=e.target.value;v(o);const a=t.NumberFormat.Styles.lookupDefault(o);a&&y(a)},[]),S=e.reactExports.useMemo(()=>{const e=s();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:g}})},[T,g,s]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Number Format",options:u,onDone:l,onOption:e=>j(e),onValidateOption:F,defaultOption:x,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"580px",...m},...d,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:"Category"}),e.jsxRuntimeExports.jsx(e.Select,{value:T,label:"Category",onChange:R,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},children:k})]}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Code",onFocus:e=>{h||e.target?.select(),b(!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(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`}}},value:g,onChange:C,onKeyDown:E,onContextMenu:e=>{e.stopPropagation()}})}),e.jsxRuntimeExports.jsxs(e.Box,{children:[e.jsxRuntimeExports.jsx(e.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),e.jsxRuntimeExports.jsx(e.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:S.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=a,exports.default=a;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=require("@sheetxl/sdk"),n=({range:n,options:o,cell:s,onDone:i,...r})=>{const[l,a]=e.reactExports.useState(o??t.Sort.DefaultRangeOptions),x=e.go(e=>{let t=null;"Sort"===e&&(t={...o,options:l}),i?.(t)},[l,i,o]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Sort",options:["Sort","Cancel"],onDone:x,...r,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:!l.reverse,onChange:()=>a(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.hasHeader,onChange:()=>a(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>a(e=>({...e,collatorOptions:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.orientation===t.IRange.Orientation.Row,onChange:()=>a(e=>{const o=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...n.getDefaultSortCriteria(o,s).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:o}})}),label:"Row Sort",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.includeHidden,onChange:()=>a(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=n,exports.default=n;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=require("@sheetxl/sdk"),n=({range:n,options:o,cell:s,onDone:i,...r})=>{const[l,a]=e.reactExports.useState(o??t.Sort.DefaultRangeOptions),x=e.go(e=>{let t=null;"Sort"===e&&(t={...o,options:l}),i?.(t)},[l,i,o]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Sort",options:["Sort","Cancel"],onDone:x,...r,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:!l.reverse,onChange:()=>a(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.hasHeader,onChange:()=>a(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>a(e=>({...e,collatorOptions:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.orientation===t.IRange.Orientation.Row,onChange:()=>a(e=>{const o=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...n.getDefaultSortCriteria(o,s).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:o}})}),label:"Row Sort",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.includeHidden,onChange:()=>a(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=n,exports.default=n;