@sheetxl/studio-vanilla 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +1 -1
  2. package/browser/cjs/B0rdyyttE2Aibsag.cjs +7 -0
  3. package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +107 -0
  4. package/browser/cjs/BAyEOOtO-9sHQQRW.cjs +7 -0
  5. package/browser/cjs/BPTHTRDvNOVkUJGa.cjs +7 -0
  6. package/browser/cjs/BlSFY6zLlebuejdV.cjs +7 -0
  7. package/browser/cjs/BplA5pDzOJpfTZuA.cjs +7 -0
  8. package/browser/cjs/BshvMtUxTJHj3JQN.cjs +7 -0
  9. package/browser/cjs/BuWtGFX0HiBezGjw.cjs +7 -0
  10. package/browser/cjs/C5FXOMLhAu_KTjVe.cjs +7 -0
  11. package/browser/cjs/C7EZCTczsC-gkRcq.cjs +7 -0
  12. package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +7 -0
  13. package/browser/cjs/CjZbhk41S1qO_74G.cjs +7 -0
  14. package/browser/cjs/CuTW2Pt-L5n-hNxV.cjs +7 -0
  15. package/browser/cjs/D3iOk-Q2tRdUeTcn.cjs +7 -0
  16. package/browser/cjs/DFspSkki779xN-Ey.cjs +7 -0
  17. package/browser/cjs/DFtyXc7YFh9dIp74.cjs +7 -0
  18. package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +7 -0
  19. package/browser/cjs/DgBn3aW39yjgm0X_.cjs +7 -0
  20. package/browser/cjs/DiBy6-IxLscyMW2y.cjs +7 -0
  21. package/browser/cjs/DrlS1oz9Nea8Pm3j.cjs +7 -0
  22. package/browser/cjs/Dx-jp_LJxWbAScyA.cjs +7 -0
  23. package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +7 -0
  24. package/browser/cjs/T4SHYo66xDT3l9JN.cjs +7 -0
  25. package/browser/cjs/index.cjs +4 -3
  26. package/browser/cjs/vfUix5Di0Ro8tEID.cjs +7 -0
  27. package/browser/esm/B5kkStdEkTczERyM.mjs +7 -0
  28. package/browser/esm/B905wKzTtod-jbsD.mjs +7 -0
  29. package/browser/esm/BALnKy2Fp7fyk-lc.mjs +7 -0
  30. package/browser/esm/BDVJ7eOPpW5FnEAP.mjs +7 -0
  31. package/browser/esm/BGpv6Kq7eBlJy43T.mjs +7 -0
  32. package/browser/esm/BUSR_OK5Qi6hRPfw.mjs +7 -0
  33. package/browser/esm/BXUGsC1Mo3FP8vnW.mjs +7 -0
  34. package/browser/esm/BlGoi1_x9rUMpWMd.mjs +7 -0
  35. package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +7 -0
  36. package/browser/esm/BuURCm92KsyGHG9e.mjs +7 -0
  37. package/browser/esm/CFFC0SNc24a0Dxnh.mjs +7 -0
  38. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +7 -0
  39. package/browser/esm/Cc_VWd0wF5-39LsI.mjs +7 -0
  40. package/browser/esm/Cq8D_M0jeHLcnRjg.mjs +7 -0
  41. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +7 -0
  42. package/browser/esm/De6RPxc4p_jXLlT5.mjs +7 -0
  43. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +7 -0
  44. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +7 -0
  45. package/browser/esm/DtmE60AvstK9u0Ta.mjs +107 -0
  46. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +7 -0
  47. package/browser/esm/PS0cqYnlMVEGOQpI.mjs +7 -0
  48. package/browser/esm/QBGUD1XS5_pysBLL.mjs +7 -0
  49. package/browser/esm/index.mjs +2 -8
  50. package/browser/esm/tFhROdVSw9KLQfUN.mjs +7 -0
  51. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +7 -0
  52. package/cdn/index.js +40 -44
  53. package/cdn/loader.js +1 -1
  54. package/package.json +5 -5
  55. package/types/index.d.ts +9 -9
  56. package/browser/cjs/3GhIDU8JK1oBJrCA.cjs +0 -6
  57. package/browser/cjs/5hPVyVAXmITQCRAG.cjs +0 -6
  58. package/browser/cjs/7PlrLPQx1lct0mdN.cjs +0 -6
  59. package/browser/cjs/B4K6KuggSdXj-V8g.cjs +0 -6
  60. package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +0 -12
  61. package/browser/cjs/B7eW1GQgFvphlLGY.cjs +0 -6
  62. package/browser/cjs/BQPFxJ77OaD_sBIX.cjs +0 -6
  63. package/browser/cjs/Ba3O1f0NYbzEwNAd.cjs +0 -6
  64. package/browser/cjs/BoojmbbjqixMVu2H.cjs +0 -6
  65. package/browser/cjs/CSGVl8EBCRhxcFm1.cjs +0 -15
  66. package/browser/cjs/CalnqtYH48_x2rcI.cjs +0 -301
  67. package/browser/cjs/CjDsO4sQWUHbIX1N.cjs +0 -6
  68. package/browser/cjs/CsCaFaiySArzEfdH.cjs +0 -7
  69. package/browser/cjs/D6AUUY9awlTRjjqd.cjs +0 -11
  70. package/browser/cjs/D8lN5Mv3J4SwSpLP.cjs +0 -161
  71. package/browser/cjs/D9RQ5oYv7U38wSI7.cjs +0 -11
  72. package/browser/cjs/DCd2rPNFkSHDaRcM.cjs +0 -7
  73. package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +0 -6
  74. package/browser/cjs/DIXyMJKaeCGuWxjZ.cjs +0 -12
  75. package/browser/cjs/Dmw7xaaV85s72QZe.cjs +0 -145
  76. package/browser/cjs/DzCXPcqV1oKbCcLO.cjs +0 -16
  77. package/browser/cjs/EoaX6dPoS-Mb-ITO.cjs +0 -42
  78. package/browser/cjs/Y6OgkWqbIB761o5q.cjs +0 -6
  79. package/browser/cjs/gbABnN2zW1kHo3_I.cjs +0 -19
  80. package/browser/cjs/kfV5Cli9oE9IsCtx.cjs +0 -6
  81. package/browser/cjs/nURb18uhj9rScsHa.cjs +0 -6
  82. package/browser/esm/2NQDbhor1Nuzndgq.mjs +0 -3756
  83. package/browser/esm/4aC35Q2XPOwifBRR.mjs +0 -1365
  84. package/browser/esm/5zFDFBAgT-aPgQQ0.mjs +0 -1665
  85. package/browser/esm/B3I_TrFN_pAK5Mdh.mjs +0 -2346
  86. package/browser/esm/BD9GKsR-k4aEK2tx.mjs +0 -421
  87. package/browser/esm/BQpsMTJvguy6LMIq.mjs +0 -43
  88. package/browser/esm/BfCWogOnq8R-c3dD.mjs +0 -21
  89. package/browser/esm/BkGQPKMRPIVUVTLO.mjs +0 -944
  90. package/browser/esm/C81J50HcankGTOIj.mjs +0 -390
  91. package/browser/esm/CO_s27056nua6qzN.mjs +0 -1346
  92. package/browser/esm/CPEjlDUTxckVS1rp.mjs +0 -50
  93. package/browser/esm/CY7astxzrfb7uZqy.mjs +0 -2178
  94. package/browser/esm/CZVzRhflTpwAAl1o.mjs +0 -22
  95. package/browser/esm/CaWZXQsmKl4hTNq5.mjs +0 -46
  96. package/browser/esm/CxcLNXXaxyFyUzyb.mjs +0 -633
  97. package/browser/esm/D0icxW0WVNoeVRLH.mjs +0 -58
  98. package/browser/esm/DFQvqk5r1uf_z0h_.mjs +0 -24994
  99. package/browser/esm/DRL5s4S0fIXi1aU7.mjs +0 -84
  100. package/browser/esm/DRmeb1VC4YCzKKWd.mjs +0 -13208
  101. package/browser/esm/DTwhl4v5YnZrUSgI.mjs +0 -24
  102. package/browser/esm/DmpPAs6w-XNWGTIN.mjs +0 -1703
  103. package/browser/esm/Dx-GS3XDBkRaMNG-.mjs +0 -151
  104. package/browser/esm/V5CA7xqGOB7-Qx4Y.mjs +0 -1467
  105. package/browser/esm/gsfI5CGYr7LCQxRx.mjs +0 -41
  106. package/browser/esm/tOBqasyBAnd7O4qE.mjs +0 -46
  107. package/browser/esm/tPrnEcHW_czJDZOT.mjs +0 -50
  108. package/cdn/assets/2NQDbhor1Nuzndgq.js +0 -3756
  109. package/cdn/assets/4aC35Q2XPOwifBRR.js +0 -1365
  110. package/cdn/assets/5zFDFBAgT-aPgQQ0.js +0 -1665
  111. package/cdn/assets/B0w_moB3pDJd-a6V.js +0 -24
  112. package/cdn/assets/BD9GKsR-k4aEK2tx.js +0 -421
  113. package/cdn/assets/BJVOhUH_XL03H6ZD.js +0 -22
  114. package/cdn/assets/BWJOkXXB6Tr-jYUS.js +0 -46
  115. package/cdn/assets/BapFqJyAb3cblvJM.js +0 -50
  116. package/cdn/assets/Bg88bG-JM9EHeyYX.js +0 -41
  117. package/cdn/assets/C81J50HcankGTOIj.js +0 -390
  118. package/cdn/assets/CO_s27056nua6qzN.js +0 -1346
  119. package/cdn/assets/CXa9u-7w14dyPYxk.js +0 -1703
  120. package/cdn/assets/CkcETdiKdTsZAzma.js +0 -1467
  121. package/cdn/assets/CxcLNXXaxyFyUzyb.js +0 -633
  122. package/cdn/assets/D0PaU6F-TNaTWj-a.js +0 -43
  123. package/cdn/assets/D4hoypx6_sZbvrC_.js +0 -2346
  124. package/cdn/assets/D5exf1RvCqvUoJ3X.js +0 -2178
  125. package/cdn/assets/DKLitAhDj5Ibh2cc.js +0 -24841
  126. package/cdn/assets/DRL5s4S0fIXi1aU7.js +0 -84
  127. package/cdn/assets/DRmeb1VC4YCzKKWd.js +0 -13208
  128. package/cdn/assets/DYkBvlMlZjOASUJs.js +0 -58
  129. package/cdn/assets/ON5--a75QdEU99y_.js +0 -151
  130. package/cdn/assets/PIZDjyqIbvmHXs1T.js +0 -46
  131. package/cdn/assets/TOkIJFYhNg78FdJa.js +0 -21
  132. package/cdn/assets/b9dlFmoFz8tJhV0Z.js +0 -50
  133. package/cdn/assets/d1PG-QPA1GcQ_RuH.js +0 -944
@@ -1,16 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){me(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(n){ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,c=new Array(a),s=0;s<a;s++)c[s]=arguments[s];return t.apply(r,[].concat(o,c))}}}function U(e){return{}.toString.call(e).includes("Object")}function V(e){return typeof e=="function"}var S=D(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ve=function(e,t){return U(t)||S("changeType"),Object.keys(t).some(function(r){return n=e,o=r,!Object.prototype.hasOwnProperty.call(n,o);var n,o})&&S("changeField"),t};function be(e,t){return V(t)?t(e.current):t}function Oe(e,t){return e.current=ue(ue({},e.current),t),t}function we(e,t,r){return V(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var K,le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
7
- You are using deprecated way of configuration.
8
-
9
- Instead of using
10
- monaco.config({ urls: { monacoBase: '...' } })
11
- use
12
- monaco.config({ paths: { vs: '...' } })
13
-
14
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
15
- `},ce=(K=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=K.length?K.apply(this,n):function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e.apply(t,[].concat(n,a))}})(le);function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ne(ne({},e),t)}var je={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(je):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var W,fe=function(e){if(Array.isArray(e))return e}(W=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(c){var s;c||S("initialIsRequired"),U(c)||S("initialType"),s=c,Object.keys(s).length||S("initialContent")})(e),function(c){V(c)||U(c)||S("handlerType"),U(c)&&Object.values(c).some(function(s){return!V(s)})&&S("handlersType")}(t);var r={current:e},n=D(we)(r,t),o=D(Oe)(r),i=D(ve)(e),a=D(be)(r);return[function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(s){return s};return function(s){V(s)||S("selectorType")}(c),c(r.current)},function(c){(function(){for(var s=arguments.length,p=new Array(s),w=0;w<s;w++)p[w]=arguments[w];return function(b){return p.reduceRight(function(E,P){return P(E)},b)}})(n,o,i,a)(c)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(t.push(i.value),t.length!==2);r=!0);}catch(c){n=!0,o=c}finally{try{r||a.return==null||a.return()}finally{if(n)throw o}}return t}}(W)||function(e){if(e){if(typeof e=="string")return oe(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,2):void 0}}(W)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),z=fe[0],B=fe[1];function Me(e){return document.body.appendChild(e)}function Ee(e){var t,r,n=z(function(i){return{config:i.config,reject:i.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function Pe(){var e=z(function(r){return{config:r.config,resolve:r.resolve,reject:r.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){de(r),e.resolve(r)},function(r){e.reject(r)})}function de(e){z().monaco||B({monaco:e})}var X=new Promise(function(e,t){return B({resolve:e,reject:t})}),L={config:function(e){var t=function(o){var i;return o||ce("configIsRequired"),i=o,{}.toString.call(i).includes("Object")||ce("configType"),o.urls?(console.warn(le.deprecation),{paths:{vs:o.urls.monacoBase}}):o}(e),r=t.monaco,n=function(o,i){if(o==null)return{};var a,c,s=function(w,b){if(w==null)return{};var E,P,R={},k=Object.keys(w);for(P=0;P<k.length;P++)E=k[P],b.indexOf(E)>=0||(R[E]=w[E]);return R}(o,i);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(o);for(c=0;c<p.length;c++)a=p[c],i.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(o,a)&&(s[a]=o[a])}return s}(t,["monaco"]);B(function(o){return{config:se(o.config,n),monaco:r}})},init:function(){var e=z(function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}});if(!e.isInitialized){if(B({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}})(Me,Ee)(Pe)}return Q(X)},__getMonacoInstance:function(){return z(function(e){return e.monaco})}},Se={display:"flex",position:"relative",textAlign:"initial"},Re={width:"100%"},ke={display:"none"},Te={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xe=function({children:e}){return u.createElement("div",{style:Te.container},e)},ge=u.memo(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return u.createElement("section",{style:{...Se,width:e,height:t},...a},!r&&u.createElement(xe,null,n),u.createElement("div",{ref:o,style:{...Re,...!r&&ke},className:i}))}),Z=function(e){u.useEffect(e,[])},j=function(e,t,r=!0){let n=u.useRef(!0);u.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function q(){}function x(e,t,r,n){return p=n,(s=e).editor.getModel(ae(s,p))||(i=t,a=r,c=n,(o=e).editor.createModel(i,a,c?ae(o,c):void 0));var o,i,a,c,s,p}function ae(e,t){return e.Uri.parse(t)}var Ie=u.memo(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:s=!1,theme:p="light",loading:w="Loading...",options:b={},height:E="100%",width:P="100%",className:R,wrapperProps:k={},beforeMount:Y=q,onMount:$=q}){let[O,I]=u.useState(!1),[C,m]=u.useState(!0),y=u.useRef(null),d=u.useRef(null),A=u.useRef(null),v=u.useRef($),l=u.useRef(Y),T=u.useRef(!1);Z(()=>{let f=L.init();return f.then(g=>(d.current=g)&&m(!1)).catch(g=>g?.type!=="cancelation"&&console.error("Monaco initialization: error:",g)),()=>y.current?function(){let g=y.current?.getModel();c||g?.original?.dispose(),s||g?.modified?.dispose(),y.current?.dispose()}():f.cancel()}),j(()=>{if(y.current&&d.current){let f=y.current.getOriginalEditor(),g=x(d.current,e||"",n||r||"text",i||"");g!==f.getModel()&&f.setModel(g)}},[i],O),j(()=>{if(y.current&&d.current){let f=y.current.getModifiedEditor(),g=x(d.current,t||"",o||r||"text",a||"");g!==f.getModel()&&f.setModel(g)}},[a],O),j(()=>{let f=y.current.getModifiedEditor();f.getOption(d.current.editor.EditorOption.readOnly)?f.setValue(t||""):t!==f.getValue()&&(f.executeEdits("",[{range:f.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),f.pushUndoStop())},[t],O),j(()=>{y.current?.getModel()?.original.setValue(e||"")},[e],O),j(()=>{let{original:f,modified:g}=y.current.getModel();d.current.editor.setModelLanguage(f,n||r||"text"),d.current.editor.setModelLanguage(g,o||r||"text")},[r,n,o],O),j(()=>{d.current?.editor.setTheme(p)},[p],O),j(()=>{y.current?.updateOptions(b)},[b],O);let _=u.useCallback(()=>{if(!d.current)return;l.current(d.current);let f=x(d.current,e||"",n||r||"text",i||""),g=x(d.current,t||"",o||r||"text",a||"");y.current?.setModel({original:f,modified:g})},[r,t,o,e,n,i,a]),N=u.useCallback(()=>{!T.current&&A.current&&(y.current=d.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...b}),_(),d.current?.editor.setTheme(p),I(!0),T.current=!0)},[b,p,_]);return u.useEffect(()=>{O&&v.current(y.current,d.current)},[O]),u.useEffect(()=>{!C&&!O&&N()},[C,O,N]),u.createElement(ge,{width:P,height:E,isEditorReady:O,loading:w,_ref:A,className:R,wrapperProps:k})}),F=new Map,pe=u.memo(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:c,loading:s="Loading...",options:p={},overrideServices:w={},saveViewState:b=!0,keepCurrentModel:E=!1,width:P="100%",height:R="100%",className:k,wrapperProps:Y={},beforeMount:$=q,onMount:O=q,onChange:I,onValidate:C=q}){let[m,y]=u.useState(!1),[d,A]=u.useState(!0),v=u.useRef(null),l=u.useRef(null),T=u.useRef(null),_=u.useRef(O),N=u.useRef($),f=u.useRef(),g=u.useRef(n),he=function(h){let M=u.useRef();return u.useEffect(()=>{M.current=h},[h]),M.current}(i),ee=u.useRef(!1),G=u.useRef(!1);Z(()=>{let h=L.init();return h.then(M=>(v.current=M)&&A(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>l.current?(f.current?.dispose(),E?b&&F.set(i,l.current.saveViewState()):l.current.getModel()?.dispose(),void l.current.dispose()):h.cancel()}),j(()=>{let h=x(v.current,e||n||"",t||o||"",i||r||"");h!==l.current?.getModel()&&(b&&F.set(he,l.current?.saveViewState()),l.current?.setModel(h),b&&l.current?.restoreViewState(F.get(i)))},[i],m),j(()=>{l.current?.updateOptions(p)},[p],m),j(()=>{!l.current||n===void 0||(l.current.getOption(v.current.editor.EditorOption.readOnly)?l.current.setValue(n):n!==l.current.getValue()&&(G.current=!0,l.current.executeEdits("",[{range:l.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),l.current.pushUndoStop(),G.current=!1))},[n],m),j(()=>{let h=l.current?.getModel();h&&o&&v.current?.editor.setModelLanguage(h,o)},[o],m),j(()=>{c!==void 0&&l.current?.revealLine(c)},[c],m),j(()=>{v.current?.editor.setTheme(a)},[a],m);let te=u.useCallback(()=>{if(T.current&&v.current&&!ee.current){N.current(v.current);let h=i||r,M=x(v.current,n||e||"",t||o||"",h||"");l.current=v.current?.editor.create(T.current,{model:M,automaticLayout:!0,...p},w),b&&l.current.restoreViewState(F.get(h)),v.current.editor.setTheme(a),c!==void 0&&l.current.revealLine(c),y(!0),ee.current=!0}},[e,t,r,n,o,i,p,w,b,a,c]);return u.useEffect(()=>{m&&_.current(l.current,v.current)},[m]),u.useEffect(()=>{!d&&!m&&te()},[d,m,te]),g.current=n,u.useEffect(()=>{m&&I&&(f.current?.dispose(),f.current=l.current?.onDidChangeModelContent(h=>{G.current||I(l.current.getValue(),h)}))},[m,I]),u.useEffect(()=>{if(m){let h=v.current.editor.onDidChangeMarkers(M=>{let H=l.current.getModel()?.uri;if(H&&M.find(J=>J.path===H.path)){let J=v.current.editor.getModelMarkers({resource:H});C?.(J)}});return()=>{h?.dispose()}}return()=>{}},[m,C]),u.createElement(ge,{width:P,height:R,isEditorReady:m,loading:s,_ref:T,className:k,wrapperProps:Y})}),Ce=pe;exports.DiffEditor=Ie,exports.Editor=pe,exports.default=Ce,exports.loader=L,exports.useMonaco=function(){let[e,t]=u.useState(L.__getMonacoInstance());return Z(()=>{let r;return e||(r=L.init(),r.then(n=>{t(n)})),()=>r?.cancel()}),e};
@@ -1,42 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),j=require("react"),I=require("./CalnqtYH48_x2rcI.cjs"),_t=I.PR(I.Rc());function qt(e){return(qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}var Gu=/^\s+/,Ju=/\s+$/;function O(e,r){if(r=r||{},(e=e||"")instanceof O)return e;if(!(this instanceof O))return new O(e,r);var t,n,o,f,i,u,a,l,h,b,p,g=(i={r:0,g:0,b:0},u=1,a=null,l=null,h=null,b=!1,p=!1,typeof(t=e)=="string"&&(t=function(c){c=c.replace(Gu,"").replace(Ju,"").toLowerCase();var s,d=!1;if(It[c])c=It[c],d=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=N.rgb.exec(c))?{r:s[1],g:s[2],b:s[3]}:(s=N.rgba.exec(c))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=N.hsl.exec(c))?{h:s[1],s:s[2],l:s[3]}:(s=N.hsla.exec(c))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=N.hsv.exec(c))?{h:s[1],s:s[2],v:s[3]}:(s=N.hsva.exec(c))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=N.hex8.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),a:ve(s[4]),format:d?"name":"hex8"}:(s=N.hex6.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),format:d?"name":"hex"}:(s=N.hex4.exec(c))?{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),a:ve(s[4]+""+s[4]),format:d?"name":"hex8"}:!!(s=N.hex3.exec(c))&&{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),format:d?"name":"hex"}}(t)),qt(t)=="object"&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(n=t.r,o=t.g,f=t.b,i={r:255*D(n,255),g:255*D(o,255),b:255*D(f,255)},b=!0,p=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(a=vt(t.s),l=vt(t.v),i=function(c,s,d){c=6*D(c,360),s=D(s,100),d=D(d,100);var v=Math.floor(c),y=c-v,_=d*(1-s),m=d*(1-y*s),w=d*(1-(1-y)*s),C=v%6;return{r:255*[d,m,_,_,w,d][C],g:255*[w,d,d,m,_,_][C],b:255*[_,_,w,d,d,m][C]}}(t.h,a,l),b=!0,p="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(a=vt(t.s),h=vt(t.l),i=function(c,s,d){var v,y,_;function m(A,P,M){return M<0&&(M+=1),M>1&&(M-=1),M<1/6?A+6*(P-A)*M:M<.5?P:M<2/3?A+(P-A)*(2/3-M)*6:A}if(c=D(c,360),s=D(s,100),d=D(d,100),s===0)v=y=_=d;else{var w=d<.5?d*(1+s):d+s-d*s,C=2*d-w;v=m(C,w,c+1/3),y=m(C,w,c),_=m(C,w,c-1/3)}return{r:255*v,g:255*y,b:255*_}}(t.h,a,h),b=!0,p="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=xu(u),{ok:b,format:t.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:u});this._originalInput=e,this._r=g.r,this._g=g.g,this._b=g.b,this._a=g.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||g.format,this._gradientType=r.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=g.ok}function le(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=(f+i)/2;if(f==i)n=o=0;else{var a=f-i;switch(o=u>.5?a/(2-f-i):a/(f+i),f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,l:u}}function he(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=f,a=f-i;if(o=f===0?0:a/f,f==i)n=0;else{switch(f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,v:u}}function pe(e,r,t,n){var o=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).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 de(e,r,t,n){return[V(ju(n)),V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).toString(16))].join("")}function Qu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s-=r/100,t.s=Tt(t.s),O(t)}function Zu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s+=r/100,t.s=Tt(t.s),O(t)}function ts(e){return O(e).desaturate(100)}function es(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l+=r/100,t.l=Tt(t.l),O(t)}function rs(e,r){r=r===0?0:r||10;var t=O(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),O(t)}function ns(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l-=r/100,t.l=Tt(t.l),O(t)}function os(e,r){var t=O(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,O(t)}function as(e){var r=O(e).toHsl();return r.h=(r.h+180)%360,O(r)}function be(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=O(e).toHsl(),n=[O(e)],o=360/r,f=1;f<r;f++)n.push(O({h:(t.h+f*o)%360,s:t.s,l:t.l}));return n}function is(e){var r=O(e).toHsl(),t=r.h;return[O(e),O({h:(t+72)%360,s:r.s,l:r.l}),O({h:(t+216)%360,s:r.s,l:r.l})]}function us(e,r,t){r=r||6,t=t||30;var n=O(e).toHsl(),o=360/t,f=[O(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,f.push(O(n));return f}function ss(e,r){r=r||6;for(var t=O(e).toHsv(),n=t.h,o=t.s,f=t.v,i=[],u=1/r;r--;)i.push(O({h:n,s:o,v:f})),f=(f+u)%1;return i}O.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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=xu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=he(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=he(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return this._a==1?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=le(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=le(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return this._a==1?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return pe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return r=this._r,t=this._g,n=this._b,o=this._a,f=e,i=[V(Math.round(r).toString(16)),V(Math.round(t).toString(16)),V(Math.round(n).toString(16)),V(ju(o))],f&&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("");var r,t,n,o,f,i},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*D(this._r,255))+"%",g:Math.round(100*D(this._g,255))+"%",b:Math.round(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%)":"rgba("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(cs[pe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+de(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=O(e);t="#"+de(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||e!=="hex"&&e!=="hex6"&&e!=="hex3"&&e!=="hex4"&&e!=="hex8"&&e!=="name"?(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),e!=="hex"&&e!=="hex6"||(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString()):e==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(es,arguments)},brighten:function(){return this._applyModification(rs,arguments)},darken:function(){return this._applyModification(ns,arguments)},desaturate:function(){return this._applyModification(Qu,arguments)},saturate:function(){return this._applyModification(Zu,arguments)},greyscale:function(){return this._applyModification(ts,arguments)},spin:function(){return this._applyModification(os,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(us,arguments)},complement:function(){return this._applyCombination(as,arguments)},monochromatic:function(){return this._applyCombination(ss,arguments)},splitcomplement:function(){return this._applyCombination(is,arguments)},triad:function(){return this._applyCombination(be,[3])},tetrad:function(){return this._applyCombination(be,[4])}},O.fromRatio=function(e,r){if(qt(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n==="a"?e[n]:vt(e[n]));e=t}return O(e,r)},O.equals=function(e,r){return!(!e||!r)&&O(e).toRgbString()==O(r).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},O.mix=function(e,r,t){t=t===0?0:t||50;var n=O(e).toRgb(),o=O(r).toRgb(),f=t/100;return O({r:(o.r-n.r)*f+n.r,g:(o.g-n.g)*f+n.g,b:(o.b-n.b)*f+n.b,a:(o.a-n.a)*f+n.a})},O.readability=function(e,r){var t=O(e),n=O(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,r,t){var n,o,f,i,u,a=O.readability(e,r);switch(o=!1,(f=t,(i=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&i!=="AAA"&&(i="AA"),(u=(f.size||"small").toLowerCase())!=="small"&&u!=="large"&&(u="small"),n={level:i,size:u}).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},O.mostReadable=function(e,r,t){var n,o,f,i,u=null,a=0;o=(t=t||{}).includeFallbackColors,f=t.level,i=t.size;for(var l=0;l<r.length;l++)(n=O.readability(e,r[l]))>a&&(a=n,u=O(r[l]));return O.isReadable(e,u,{level:f,size:i})||!o?u:(t.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],t))};var It=O.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"},cs=O.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(It);function xu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,r){var t;typeof(t=e)=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1&&(e="100%");var n=function(o){return typeof o=="string"&&o.indexOf("%")!=-1}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Tt(e){return Math.min(1,Math.max(0,e))}function $(e){return parseInt(e,16)}function V(e){return e.length==1?"0"+e:""+e}function vt(e){return e<=1&&(e=100*e+"%"),e}function ju(e){return Math.round(255*parseFloat(e)).toString(16)}function ve(e){return $(e)/255}var et,wt,xt,N=(wt="[\\s|\\(]+("+(et="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",xt="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",{CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+wt),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+wt),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+wt),hsva:new RegExp("hsva"+xt),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 Q(e){return!!N.CSS_UNIT.exec(e)}var ge,ye,me,_e,we,xe,je,Oe,Me,ke,Se,Ae,Ce,Ee,Re,Pe,Te,Le,Ue,Fe,De,Be,ze,He,We,$e,Ne,Ie,W={},ut={};function Ou(){if(ye)return ge;ye=1;var e=typeof I.ka=="object"&&I.ka&&I.ka.Object===Object&&I.ka;return ge=e}function K(){if(_e)return me;_e=1;var e=Ou(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return me=t}function gt(){if(xe)return we;xe=1;var e=K().Symbol;return we=e}function nt(){if(Ae)return Se;Ae=1;var e=gt(),r=function(){if(Oe)return je;Oe=1;var o=gt(),f=Object.prototype,i=f.hasOwnProperty,u=f.toString,a=o?o.toStringTag:void 0;return je=function(l){var h=i.call(l,a),b=l[a];try{l[a]=void 0;var p=!0}catch{}var g=u.call(l);return p&&(h?l[a]=b:delete l[a]),g}}(),t=function(){if(ke)return Me;ke=1;var o=Object.prototype.toString;return Me=function(f){return o.call(f)}}(),n=e?e.toStringTag:void 0;return Se=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":n&&n in Object(o)?r(o):t(o)}}function X(){if(Ee)return Ce;Ee=1;var e=Array.isArray;return Ce=e}function Z(){return Pe?Re:(Pe=1,Re=function(e){return e!=null&&typeof e=="object"})}function Mu(){if(Ie)return Ne;Ie=1;var e=function(){if($e)return We;$e=1;var i=nt(),u=Z();return We=function(a){return u(a)&&i(a)=="[object Arguments]"}}(),r=Z(),t=Object.prototype,n=t.hasOwnProperty,o=t.propertyIsEnumerable,f=e(function(){return arguments}())?e:function(i){return r(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Ne=f}var Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,Lt={exports:{}};function Kt(){return Ye||(Ye=1,e=Lt,r=Lt.exports,t=K(),n=Xe?Ve:(Xe=1,Ve=function(){return!1}),o=r&&!r.nodeType&&r,f=o&&e&&!e.nodeType&&e,i=f&&f.exports===o?t.Buffer:void 0,u=(i?i.isBuffer:void 0)||n,e.exports=u),Lt.exports;var e,r,t,n,o,f,i,u}function ku(){if(Ke)return qe;Ke=1;var e=/^(?:0|[1-9]\d*)$/;return qe=function(r,t){var n=typeof r;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<t}}function Gt(){return Je?Ge:(Je=1,Ge=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})}function Vt(){return er?tr:(er=1,tr=function(e){return function(r){return e(r)}})}var rr,nr,or,ar,ir,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,_r,wr,xr,jr,Or,Mr,kr,Sr,Ar,Cr,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,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,_n,wn,xn,jn,On,Mn,kn,Sn,An,Cn,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,ao,io,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,_o,wo,xo,jo,Oo,Mo,ko,So,Ao,Co,Eo,Ro,Po,To,Lo,Uo,Fo,Do,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,Yo,qo,Ko,Go,Jo,Qo,Zo,ta,ea,ra,na,oa,aa,ia,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,_a,wa,xa,ja,Oa,Ma,ka,Sa,Aa,Ca,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Qa,Za,Ut={exports:{}};function Xt(){return rr||(rr=1,e=Ut,r=Ut.exports,t=Ou(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n&&t.process,i=function(){try{return o&&o.require&&o.require("util").types||f&&f.binding&&f.binding("util")}catch{}}(),e.exports=i),Ut.exports;var e,r,t,n,o,f,i}function Su(){if(or)return nr;or=1;var e=function(){if(Ze)return Qe;Ze=1;var f=nt(),i=Gt(),u=Z(),a={};return a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,Qe=function(l){return u(l)&&i(l.length)&&!!a[f(l)]}}(),r=Vt(),t=Xt(),n=t&&t.isTypedArray,o=n?r(n):e;return nr=o}function Au(){if(ir)return ar;ir=1;var e=He?ze:(He=1,ze=function(u,a){for(var l=-1,h=Array(u);++l<u;)h[l]=a(l);return h}),r=Mu(),t=X(),n=Kt(),o=ku(),f=Su(),i=Object.prototype.hasOwnProperty;return ar=function(u,a){var l=t(u),h=!l&&r(u),b=!l&&!h&&n(u),p=!l&&!h&&!b&&f(u),g=l||h||b||p,c=g?e(u.length,String):[],s=c.length;for(var d in u)!a&&!i.call(u,d)||g&&(d=="length"||b&&(d=="offset"||d=="parent")||p&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||o(d,s))||c.push(d);return c}}function Jt(){if(sr)return ur;sr=1;var e=Object.prototype;return ur=function(r){var t=r&&r.constructor;return r===(typeof t=="function"&&t.prototype||e)}}function Cu(){return fr?cr:(fr=1,cr=function(e,r){return function(t){return e(r(t))}})}function ht(){return vr?br:(vr=1,br=function(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")})}function Eu(){if(yr)return gr;yr=1;var e=nt(),r=ht();return gr=function(t){if(!r(t))return!1;var n=e(t);return n=="[object Function]"||n=="[object GeneratorFunction]"||n=="[object AsyncFunction]"||n=="[object Proxy]"}}function Ct(){if(_r)return mr;_r=1;var e=Eu(),r=Gt();return mr=function(t){return t!=null&&r(t.length)&&!e(t)}}function yt(){if(xr)return wr;xr=1;var e=Au(),r=function(){if(dr)return pr;dr=1;var n=Jt(),o=function(){if(hr)return lr;hr=1;var i=Cu()(Object.keys,Object);return lr=i}(),f=Object.prototype.hasOwnProperty;return pr=function(i){if(!n(i))return o(i);var u=[];for(var a in Object(i))f.call(i,a)&&a!="constructor"&&u.push(a);return u}}(),t=Ct();return wr=function(n){return t(n)?e(n):r(n)}}function Ru(){if(Or)return jr;Or=1;var e=function(){if(Be)return De;Be=1;var t=(Fe?Ue:(Fe=1,Ue=function(n){return function(o,f,i){for(var u=-1,a=Object(o),l=i(o),h=l.length;h--;){var b=l[n?h:++u];if(f(a[b],b,a)===!1)break}return o}}))();return De=t}(),r=yt();return jr=function(t,n){return t&&e(t,n,r)}}function Pu(){return kr?Mr:(kr=1,Mr=function(e){return e})}function Ft(){if(Er)return Cr;Er=1;var e=Ru(),r=function(){if(Ar)return Sr;Ar=1;var t=Pu();return Sr=function(n){return typeof n=="function"?n:t}}();return Cr=function(t,n){return t&&e(t,r(n))}}function Qt(){if(Pr)return Rr;Pr=1;var e=Cu()(Object.getPrototypeOf,Object);return Rr=e}function Tu(){return Fr?Ur:(Fr=1,Ur=function(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o})}function Zt(){return Hr?zr:(Hr=1,zr=function(e,r){return e===r||e!=e&&r!=r})}function jt(){if($r)return Wr;$r=1;var e=Zt();return Wr=function(r,t){for(var n=r.length;n--;)if(e(r[n][0],t))return n;return-1}}function St(){if(Qr)return Jr;Qr=1;var e=Br?Dr:(Br=1,Dr=function(){this.__data__=[],this.size=0}),r=function(){if(Ir)return Nr;Ir=1;var i=jt(),u=Array.prototype.splice;return Nr=function(a){var l=this.__data__,h=i(l,a);return!(h<0||(h==l.length-1?l.pop():u.call(l,h,1),--this.size,0))}}(),t=function(){if(Xr)return Vr;Xr=1;var i=jt();return Vr=function(u){var a=this.__data__,l=i(a,u);return l<0?void 0:a[l][1]}}(),n=function(){if(qr)return Yr;qr=1;var i=jt();return Yr=function(u){return i(this.__data__,u)>-1}}(),o=function(){if(Gr)return Kr;Gr=1;var i=jt();return Kr=function(u,a){var l=this.__data__,h=i(l,u);return h<0?(++this.size,l.push([u,a])):l[h][1]=a,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Jr=f}function Lu(){if(pn)return hn;pn=1;var e=Function.prototype.toString;return hn=function(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}}function rt(){if(mn)return yn;mn=1;var e=function(){if(bn)return dn;bn=1;var t=Eu(),n=function(){if(ln)return fn;ln=1;var p,g=function(){if(cn)return sn;cn=1;var s=K()["__core-js_shared__"];return sn=s}(),c=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"";return fn=function(s){return!!c&&c in s}}(),o=ht(),f=Lu(),i=/^\[object .+?Constructor\]$/,u=Function.prototype,a=Object.prototype,l=u.toString,h=a.hasOwnProperty,b=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return dn=function(p){return!(!o(p)||n(p))&&(t(p)?b:i).test(f(p))}}(),r=gn?vn:(gn=1,vn=function(t,n){return t?.[n]});return yn=function(t,n){var o=r(t,n);return e(o)?o:void 0}}function te(){if(wn)return _n;wn=1;var e=rt()(K(),"Map");return _n=e}function Ot(){if(jn)return xn;jn=1;var e=rt()(Object,"create");return xn=e}function Mt(){if(Wn)return Hn;Wn=1;var e=zn?Bn:(zn=1,Bn=function(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null});return Hn=function(r,t){var n=r.__data__;return e(t)?n[typeof t=="string"?"string":"hash"]:n.map}}function ee(){if(Jn)return Gn;Jn=1;var e=function(){if(Dn)return Fn;Dn=1;var i=function(){if(Un)return Ln;Un=1;var l=function(){if(Mn)return On;Mn=1;var s=Ot();return On=function(){this.__data__=s?s(null):{},this.size=0}}(),h=Sn?kn:(Sn=1,kn=function(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}),b=function(){if(Cn)return An;Cn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return An=function(v){var y=this.__data__;if(s){var _=y[v];return _==="__lodash_hash_undefined__"?void 0:_}return d.call(y,v)?y[v]:void 0}}(),p=function(){if(Rn)return En;Rn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return En=function(v){var y=this.__data__;return s?y[v]!==void 0:d.call(y,v)}}(),g=function(){if(Tn)return Pn;Tn=1;var s=Ot();return Pn=function(d,v){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=s&&v===void 0?"__lodash_hash_undefined__":v,this}}();function c(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var y=s[d];this.set(y[0],y[1])}}return c.prototype.clear=l,c.prototype.delete=h,c.prototype.get=b,c.prototype.has=p,c.prototype.set=g,Ln=c}(),u=St(),a=te();return Fn=function(){this.size=0,this.__data__={hash:new i,map:new(a||u),string:new i}}}(),r=function(){if(Nn)return $n;Nn=1;var i=Mt();return $n=function(u){var a=i(this,u).delete(u);return this.size-=a?1:0,a}}(),t=function(){if(Vn)return In;Vn=1;var i=Mt();return In=function(u){return i(this,u).get(u)}}(),n=function(){if(Yn)return Xn;Yn=1;var i=Mt();return Xn=function(u){return i(this,u).has(u)}}(),o=function(){if(Kn)return qn;Kn=1;var i=Mt();return qn=function(u,a){var l=i(this,u),h=l.size;return l.set(u,a),this.size+=l.size==h?0:1,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Gn=f}function re(){if(eo)return to;eo=1;var e=St(),r=function(){if(tn)return Zr;tn=1;var u=St();return Zr=function(){this.__data__=new u,this.size=0}}(),t=rn?en:(rn=1,en=function(u){var a=this.__data__,l=a.delete(u);return this.size=a.size,l}),n=on?nn:(on=1,nn=function(u){return this.__data__.get(u)}),o=un?an:(un=1,an=function(u){return this.__data__.has(u)}),f=function(){if(Zn)return Qn;Zn=1;var u=St(),a=te(),l=ee();return Qn=function(h,b){var p=this.__data__;if(p instanceof u){var g=p.__data__;if(!a||g.length<199)return g.push([h,b]),this.size=++p.size,this;p=this.__data__=new l(g)}return p.set(h,b),this.size=p.size,this}}();function i(u){var a=this.__data__=new e(u);this.size=a.size}return i.prototype.clear=r,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=f,to=i}function ti(){if(po)return ho;po=1;var e=function(){if(uo)return io;uo=1;var n=ee(),o=no?ro:(no=1,ro=function(u){return this.__data__.set(u,"__lodash_hash_undefined__"),this}),f=ao?oo:(ao=1,oo=function(u){return this.__data__.has(u)});function i(u){var a=-1,l=u==null?0:u.length;for(this.__data__=new n;++a<l;)this.add(u[a])}return i.prototype.add=i.prototype.push=o,i.prototype.has=f,io=i}(),r=co?so:(co=1,so=function(n,o){for(var f=-1,i=n==null?0:n.length;++f<i;)if(o(n[f],f,n))return!0;return!1}),t=lo?fo:(lo=1,fo=function(n,o){return n.has(o)});return ho=function(n,o,f,i,u,a){var l=1&f,h=n.length,b=o.length;if(h!=b&&!(l&&b>h))return!1;var p=a.get(n),g=a.get(o);if(p&&g)return p==o&&g==n;var c=-1,s=!0,d=2&f?new e:void 0;for(a.set(n,o),a.set(o,n);++c<h;){var v=n[c],y=o[c];if(i)var _=l?i(y,v,c,o,n,a):i(v,y,c,n,o,a);if(_!==void 0){if(_)continue;s=!1;break}if(d){if(!r(o,function(m,w){if(!t(d,w)&&(v===m||u(v,m,f,i,a)))return d.push(w)})){s=!1;break}}else if(v!==y&&!u(v,y,f,i,a)){s=!1;break}}return a.delete(n),a.delete(o),s}}function Uu(){if(vo)return bo;vo=1;var e=K().Uint8Array;return bo=e}function Fu(){return Oo?jo:(Oo=1,jo=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e})}function Du(){if(ko)return Mo;ko=1;var e=Fu(),r=X();return Mo=function(t,n,o){var f=n(t);return r(t)?f:e(f,o(t))}}function Bu(){return Eo?Co:(Eo=1,Co=function(){return[]})}function ne(){if(Po)return Ro;Po=1;var e=Ao?So:(Ao=1,So=function(o,f){for(var i=-1,u=o==null?0:o.length,a=0,l=[];++i<u;){var h=o[i];f(h,i,o)&&(l[a++]=h)}return l}),r=Bu(),t=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Ro=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(f){return t.call(o,f)}))}:r}function zu(){if(Lo)return To;Lo=1;var e=Du(),r=ne(),t=yt();return To=function(n){return e(n,t,r)}}function At(){if(Xo)return Vo;Xo=1;var e=function(){if(Bo)return Do;Bo=1;var y=rt()(K(),"DataView");return Do=y}(),r=te(),t=function(){if(Ho)return zo;Ho=1;var y=rt()(K(),"Promise");return zo=y}(),n=function(){if($o)return Wo;$o=1;var y=rt()(K(),"Set");return Wo=y}(),o=function(){if(Io)return No;Io=1;var y=rt()(K(),"WeakMap");return No=y}(),f=nt(),i=Lu(),u="[object Map]",a="[object Promise]",l="[object Set]",h="[object WeakMap]",b="[object DataView]",p=i(e),g=i(r),c=i(t),s=i(n),d=i(o),v=f;return(e&&v(new e(new ArrayBuffer(1)))!=b||r&&v(new r)!=u||t&&v(t.resolve())!=a||n&&v(new n)!=l||o&&v(new o)!=h)&&(v=function(y){var _=f(y),m=_=="[object Object]"?y.constructor:void 0,w=m?i(m):"";if(w)switch(w){case p:return b;case g:return u;case c:return a;case s:return l;case d:return h}return _}),Vo=v}function fs(){if(qo)return Yo;qo=1;var e=re(),r=ti(),t=function(){if(xo)return wo;xo=1;var p=gt(),g=Uu(),c=Zt(),s=ti(),d=yo?go:(yo=1,go=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A,P){C[++w]=[P,A]}),C}),v=_o?mo:(_o=1,mo=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A){C[++w]=A}),C}),y=p?p.prototype:void 0,_=y?y.valueOf:void 0;return wo=function(m,w,C,A,P,M,F){switch(C){case"[object DataView]":if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case"[object ArrayBuffer]":return!(m.byteLength!=w.byteLength||!M(new g(m),new g(w)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+m,+w);case"[object Error]":return m.name==w.name&&m.message==w.message;case"[object RegExp]":case"[object String]":return m==w+"";case"[object Map]":var B=d;case"[object Set]":var G=1&A;if(B||(B=v),m.size!=w.size&&!G)return!1;var Y=F.get(m);if(Y)return Y==w;A|=2,F.set(m,w);var J=s(B(m),B(w),A,P,M,F);return F.delete(m),J;case"[object Symbol]":if(_)return _.call(m)==_.call(w)}return!1}}(),n=function(){if(Fo)return Uo;Fo=1;var p=zu(),g=Object.prototype.hasOwnProperty;return Uo=function(c,s,d,v,y,_){var m=1&d,w=p(c),C=w.length;if(C!=p(s).length&&!m)return!1;for(var A=C;A--;){var P=w[A];if(!(m?P in s:g.call(s,P)))return!1}var M=_.get(c),F=_.get(s);if(M&&F)return M==s&&F==c;var B=!0;_.set(c,s),_.set(s,c);for(var G=m;++A<C;){var Y=c[P=w[A]],J=s[P];if(v)var pt=m?v(J,Y,P,s,c,_):v(Y,J,P,c,s,_);if(!(pt===void 0?Y===J||y(Y,J,d,v,_):pt)){B=!1;break}G||(G=P=="constructor")}if(B&&!G){var L=c.constructor,E=s.constructor;L==E||!("constructor"in c)||!("constructor"in s)||typeof L=="function"&&L instanceof L&&typeof E=="function"&&E instanceof E||(B=!1)}return _.delete(c),_.delete(s),B}}(),o=At(),f=X(),i=Kt(),u=Su(),a="[object Arguments]",l="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;return Yo=function(p,g,c,s,d,v){var y=f(p),_=f(g),m=y?l:o(p),w=_?l:o(g),C=(m=m==a?h:m)==h,A=(w=w==a?h:w)==h,P=m==w;if(P&&i(p)){if(!i(g))return!1;y=!0,C=!1}if(P&&!C)return v||(v=new e),y||u(p)?r(p,g,c,s,d,v):t(p,g,m,c,s,d,v);if(!(1&c)){var M=C&&b.call(p,"__wrapped__"),F=A&&b.call(g,"__wrapped__");if(M||F){var B=M?p.value():p,G=F?g.value():g;return v||(v=new e),d(B,G,c,s,v)}}return!!P&&(v||(v=new e),n(p,g,c,s,d,v))}}function Hu(){if(Go)return Ko;Go=1;var e=fs(),r=Z();return Ko=function t(n,o,f,i,u){return n===o||(n==null||o==null||!r(n)&&!r(o)?n!=n&&o!=o:e(n,o,f,i,t,u))}}function Wu(){if(ta)return Zo;ta=1;var e=ht();return Zo=function(r){return r==r&&!e(r)}}function $u(){return oa?na:(oa=1,na=function(e,r){return function(t){return t!=null&&t[e]===r&&(r!==void 0||e in Object(t))}})}function oe(){if(sa)return ua;sa=1;var e=nt(),r=Z();return ua=function(t){return typeof t=="symbol"||r(t)&&e(t)=="[object Symbol]"}}function ae(){if(fa)return ca;fa=1;var e=X(),r=oe(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ca=function(o,f){if(e(o))return!1;var i=typeof o;return!(i!="number"&&i!="symbol"&&i!="boolean"&&o!=null&&!r(o))||n.test(o)||!t.test(o)||f!=null&&o in Object(f)}}function Nu(){if(xa)return wa;xa=1;var e=X(),r=ae(),t=function(){if(va)return ba;va=1;var o=function(){if(da)return pa;da=1;var a=function(){if(ha)return la;ha=1;var l=ee();function h(b,p){if(typeof b!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var g=function(){var c=arguments,s=p?p.apply(this,c):c[0],d=g.cache;if(d.has(s))return d.get(s);var v=b.apply(this,c);return g.cache=d.set(s,v)||d,v};return g.cache=new(h.Cache||l),g}return h.Cache=l,la=h}();return pa=function(l){var h=a(l,function(p){return b.size===500&&b.clear(),p}),b=h.cache;return h}}(),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=o(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(f,function(h,b,p,g){l.push(p?g.replace(i,"$1"):b||h)}),l});return ba=u}(),n=function(){if(_a)return ma;_a=1;var o=function(){if(ya)return ga;ya=1;var f=gt(),i=Tu(),u=X(),a=oe(),l=f?f.prototype:void 0,h=l?l.toString:void 0;return ga=function b(p){if(typeof p=="string")return p;if(u(p))return i(p,b)+"";if(a(p))return h?h.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}}();return ma=function(f){return f==null?"":o(f)}}();return wa=function(o,f){return e(o)?o:r(o,f)?[o]:t(n(o))}}function Et(){if(Oa)return ja;Oa=1;var e=oe();return ja=function(r){if(typeof r=="string"||e(r))return r;var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}}function Iu(){if(ka)return Ma;ka=1;var e=Nu(),r=Et();return Ma=function(t,n){for(var o=0,f=(n=e(n,t)).length;t!=null&&o<f;)t=t[r(n[o++])];return o&&o==f?t:void 0}}function ls(){if(Fa)return Ua;Fa=1;var e=Hu(),r=function(){if(Aa)return Sa;Aa=1;var u=Iu();return Sa=function(a,l,h){var b=a==null?void 0:u(a,l);return b===void 0?h:b}}(),t=function(){if(La)return Ta;La=1;var u=Ea?Ca:(Ea=1,Ca=function(l,h){return l!=null&&h in Object(l)}),a=function(){if(Pa)return Ra;Pa=1;var l=Nu(),h=Mu(),b=X(),p=ku(),g=Gt(),c=Et();return Ra=function(s,d,v){for(var y=-1,_=(d=l(d,s)).length,m=!1;++y<_;){var w=c(d[y]);if(!(m=s!=null&&v(s,w)))break;s=s[w]}return m||++y!=_?m:!!(_=s==null?0:s.length)&&g(_)&&p(w,_)&&(b(s)||h(s))}}();return Ta=function(l,h){return l!=null&&a(l,h,u)}}(),n=ae(),o=Wu(),f=$u(),i=Et();return Ua=function(u,a){return n(u)&&o(a)?f(i(u),a):function(l){var h=r(l,u);return h===void 0&&h===a?t(l,u):e(a,h,3)}}}function hs(){if(Qa)return Ja;Qa=1;var e=Tu(),r=function(){if(Ia)return Na;Ia=1;var o=function(){if(ia)return aa;ia=1;var l=function(){if(Qo)return Jo;Qo=1;var p=re(),g=Hu();return Jo=function(c,s,d,v){var y=d.length,_=y,m=!v;if(c==null)return!_;for(c=Object(c);y--;){var w=d[y];if(m&&w[2]?w[1]!==c[w[0]]:!(w[0]in c))return!1}for(;++y<_;){var C=(w=d[y])[0],A=c[C],P=w[1];if(m&&w[2]){if(A===void 0&&!(C in c))return!1}else{var M=new p;if(v)var F=v(A,P,C,c,s,M);if(!(F===void 0?g(P,A,3,v,M):F))return!1}}return!0}}(),h=function(){if(ra)return ea;ra=1;var p=Wu(),g=yt();return ea=function(c){for(var s=g(c),d=s.length;d--;){var v=s[d],y=c[v];s[d]=[v,y,p(y)]}return s}}(),b=$u();return aa=function(p){var g=h(p);return g.length==1&&g[0][2]?b(g[0][0],g[0][1]):function(c){return c===p||l(c,p,g)}}}(),f=ls(),i=Pu(),u=X(),a=function(){if($a)return Wa;$a=1;var l=Ba?Da:(Ba=1,Da=function(g){return function(c){return c?.[g]}}),h=function(){if(Ha)return za;Ha=1;var g=Iu();return za=function(c){return function(s){return g(s,c)}}}(),b=ae(),p=Et();return Wa=function(g){return b(g)?l(p(g)):h(g)}}();return Na=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?u(l)?f(l[0],l[1]):o(l):a(l)}}(),t=function(){if(Ga)return Ka;Ga=1;var o=function(){if(qa)return Ya;qa=1;var i=Ru(),u=function(){if(Xa)return Va;Xa=1;var a=Ct();return Va=function(l,h){return function(b,p){if(b==null)return b;if(!a(b))return l(b,p);for(var g=b.length,c=h?g:-1,s=Object(b);(h?c--:++c<g)&&p(s[c],c,s)!==!1;);return b}}}()(i);return Ya=u}(),f=Ct();return Ka=function(i,u){var a=-1,l=f(i)?Array(i.length):[];return o(i,function(h,b,p){l[++a]=u(h,b,p)}),l}}(),n=X();return Ja=function(o,f){return(n(o)?e:t)(o,r(f,3))}}var ei,ri,ni,oi,ai,ii,ui,si,ci,fi,li,hi,pi,di,bi,vi,gi,yi,mi,_i,st={};function Vu(){if(ii)return ai;ii=1;var e=function(){if(oi)return ni;oi=1;var r=rt(),t=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ni=t}();return ai=function(r,t,n){t=="__proto__"&&e?e(r,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[t]=n}}function Xu(){if(si)return ui;si=1;var e=Vu(),r=Zt(),t=Object.prototype.hasOwnProperty;return ui=function(n,o,f){var i=n[o];t.call(n,o)&&r(i,f)&&(f!==void 0||o in n)||e(n,o,f)}}function kt(){if(fi)return ci;fi=1;var e=Xu(),r=Vu();return ci=function(t,n,o,f){var i=!o;o||(o={});for(var u=-1,a=n.length;++u<a;){var l=n[u],h=f?f(o[l],t[l],l,o,t):void 0;h===void 0&&(h=t[l]),i?r(o,l,h):e(o,l,h)}return o}}function Dt(){if(yi)return gi;yi=1;var e=Au(),r=function(){if(vi)return bi;vi=1;var n=ht(),o=Jt(),f=di?pi:(di=1,pi=function(u){var a=[];if(u!=null)for(var l in Object(u))a.push(l);return a}),i=Object.prototype.hasOwnProperty;return bi=function(u){if(!n(u))return f(u);var a=o(u),l=[];for(var h in u)(h!="constructor"||!a&&i.call(u,h))&&l.push(h);return l}}(),t=Ct();return gi=function(n){return t(n)?e(n,!0):r(n)}}var wi,xi,ji,Oi,Mi,ki,Si,Ai,Ci,Ei,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$i,Ni,Ii,Vi,Xi,Yi,qi,Ki,Gi,Ji,Qi,Zi,tu,eu,ru,nu,Bt,ou,au,iu,uu,zt={exports:{}};function su(){if(Si)return ki;Si=1;var e=Fu(),r=Qt(),t=ne(),n=Bu(),o=Object.getOwnPropertySymbols;return ki=o?function(f){for(var i=[];f;)e(i,t(f)),f=r(f);return i}:n}function Ht(){if(Ui)return Li;Ui=1;var e=Uu();return Li=function(r){var t=new r.constructor(r.byteLength);return new e(t).set(new e(r)),t}}function ps(){if(ou)return Bt;ou=1;var e,r,t,n,o,f,i,u=re(),a=ri?ei:(ri=1,ei=function(E,x){for(var k=-1,S=E==null?0:E.length;++k<S&&x(E[k],k,E)!==!1;);return E}),l=Xu(),h=function(){if(hi)return li;hi=1;var E=kt(),x=yt();return li=function(k,S){return k&&E(S,x(S),k)}}(),b=function(){if(_i)return mi;_i=1;var E=kt(),x=Dt();return mi=function(k,S){return k&&E(S,x(S),k)}}(),p=(wi||(wi=1,e=zt,r=zt.exports,t=K(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n?t.Buffer:void 0,i=f?f.allocUnsafe:void 0,e.exports=function(E,x){if(x)return E.slice();var k=E.length,S=i?i(k):new E.constructor(k);return E.copy(S),S}),zt.exports),g=ji?xi:(ji=1,xi=function(E,x){var k=-1,S=E.length;for(x||(x=Array(S));++k<S;)x[k]=E[k];return x}),c=function(){if(Mi)return Oi;Mi=1;var E=kt(),x=ne();return Oi=function(k,S){return E(k,x(k),S)}}(),s=function(){if(Ci)return Ai;Ci=1;var E=kt(),x=su();return Ai=function(k,S){return E(k,x(k),S)}}(),d=zu(),v=function(){if(Ri)return Ei;Ri=1;var E=Du(),x=su(),k=Dt();return Ei=function(S){return E(S,k,x)}}(),y=At(),_=function(){if(Ti)return Pi;Ti=1;var E=Object.prototype.hasOwnProperty;return Pi=function(x){var k=x.length,S=new x.constructor(k);return k&&typeof x[0]=="string"&&E.call(x,"index")&&(S.index=x.index,S.input=x.input),S}}(),m=function(){if(Vi)return Ii;Vi=1;var E=Ht(),x=function(){if(Di)return Fi;Di=1;var U=Ht();return Fi=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.byteLength)}}(),k=function(){if(zi)return Bi;zi=1;var U=/\w*$/;return Bi=function(R){var T=new R.constructor(R.source,U.exec(R));return T.lastIndex=R.lastIndex,T}}(),S=function(){if(Wi)return Hi;Wi=1;var U=gt(),R=U?U.prototype:void 0,T=R?R.valueOf:void 0;return Hi=function(H){return T?Object(T.call(H)):{}}}(),q=function(){if(Ni)return $i;Ni=1;var U=Ht();return $i=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.length)}}();return Ii=function(U,R,T){var H=U.constructor;switch(R){case"[object ArrayBuffer]":return E(U);case"[object Boolean]":case"[object Date]":return new H(+U);case"[object DataView]":return x(U,T);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 q(U,T);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(U);case"[object RegExp]":return k(U);case"[object Symbol]":return S(U)}}}(),w=function(){if(Ki)return qi;Ki=1;var E=function(){if(Yi)return Xi;Yi=1;var S=ht(),q=Object.create;return Xi=function(){function U(){}return function(R){if(!S(R))return{};if(q)return q(R);U.prototype=R;var T=new U;return U.prototype=void 0,T}}()}(),x=Qt(),k=Jt();return qi=function(S){return typeof S.constructor!="function"||k(S)?{}:E(x(S))}}(),C=X(),A=Kt(),P=function(){if(Zi)return Qi;Zi=1;var E=function(){if(Ji)return Gi;Ji=1;var U=At(),R=Z();return Gi=function(T){return R(T)&&U(T)=="[object Map]"}}(),x=Vt(),k=Xt(),S=k&&k.isMap,q=S?x(S):E;return Qi=q}(),M=ht(),F=function(){if(nu)return ru;nu=1;var E=function(){if(eu)return tu;eu=1;var U=At(),R=Z();return tu=function(T){return R(T)&&U(T)=="[object Set]"}}(),x=Vt(),k=Xt(),S=k&&k.isSet,q=S?x(S):E;return ru=q}(),B=yt(),G=Dt(),Y="[object Arguments]",J="[object Function]",pt="[object Object]",L={};return L[Y]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[pt]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[J]=L["[object WeakMap]"]=!1,Bt=function E(x,k,S,q,U,R){var T,H=1&k,mt=2&k,Ku=4&k;if(S&&(T=U?S(x,q,U,R):S(x)),T!==void 0)return T;if(!M(x))return x;var ue=C(x);if(ue){if(T=_(x),!H)return g(x,T)}else{var at=y(x),se=at==J||at=="[object GeneratorFunction]";if(A(x))return p(x,H);if(at==pt||at==Y||se&&!U){if(T=mt||se?{}:w(x),!H)return mt?s(x,b(T,x)):c(x,h(T,x))}else{if(!L[at])return U?x:{};T=m(x,at,H)}}R||(R=new u);var ce=R.get(x);if(ce)return ce;R.set(x,T),F(x)?x.forEach(function(tt){T.add(E(tt,k,S,tt,x,R))}):P(x)&&x.forEach(function(tt,it){T.set(it,E(tt,k,S,it,x,R))});var fe=ue?void 0:(Ku?mt?v:d:mt?G:B)(x);return a(fe||x,function(tt,it){fe&&(tt=x[it=tt]),l(T,it,E(tt,k,S,it,x,R))}),T},Bt}var cu,fu,ct={},ft={},lu,lt={},hu,pu,Wt={},ds=function(){if(pu)return W;pu=1,Object.defineProperty(W,"__esModule",{value:!0}),W.ReactCSS=W.loop=W.handleActive=W.handleHover=W.hover=void 0;var e=u(function(){if(Za)return ut;Za=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.flattenNames=void 0;var l=g(function(){if(Le)return Te;Le=1;var s=nt(),d=X(),v=Z();return Te=function(y){return typeof y=="string"||!d(y)&&v(y)&&s(y)=="[object String]"}}()),h=g(Ft()),b=g(function(){if(Lr)return Tr;Lr=1;var s=nt(),d=Qt(),v=Z(),y=Function.prototype,_=Object.prototype,m=y.toString,w=_.hasOwnProperty,C=m.call(Object);return Tr=function(A){if(!v(A)||s(A)!="[object Object]")return!1;var P=d(A);if(P===null)return!0;var M=w.call(P,"constructor")&&P.constructor;return typeof M=="function"&&M instanceof M&&m.call(M)==C}}()),p=g(hs());function g(s){return s&&s.__esModule?s:{default:s}}var c=ut.flattenNames=function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=[];return(0,p.default)(d,function(y){Array.isArray(y)?s(y).map(function(_){return v.push(_)}):(0,b.default)(y)?(0,h.default)(y,function(_,m){_===!0&&v.push(m),v.push(m+"-"+_)}):(0,l.default)(y)&&v.push(y)}),v};return ut.default=c,ut}()),r=u(function(){if(uu)return st;uu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.mergeClasses=void 0;var l=p(Ft()),h=p(function(){if(iu)return au;iu=1;var c=ps();return au=function(s){return c(s,5)}}()),b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c};function p(c){return c&&c.__esModule?c:{default:c}}var g=st.mergeClasses=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,h.default)(c.default)||{};return s.map(function(v){var y=c[v];return y&&(0,l.default)(y,function(_,m){d[m]||(d[m]={}),d[m]=b({},d[m],y[m])}),v}),d};return st.default=g,st}()),t=function(){if(cu)return ct;cu=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.autoprefix=void 0;var l,h=(l=Ft())&&l.__esModule?l:{default:l},b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},p={borderRadius:function(c){return{msBorderRadius:c,MozBorderRadius:c,OBorderRadius:c,WebkitBorderRadius:c,borderRadius:c}},boxShadow:function(c){return{msBoxShadow:c,MozBoxShadow:c,OBoxShadow:c,WebkitBoxShadow:c,boxShadow:c}},userSelect:function(c){return{WebkitTouchCallout:c,KhtmlUserSelect:c,MozUserSelect:c,msUserSelect:c,WebkitUserSelect:c,userSelect:c}},flex:function(c){return{WebkitBoxFlex:c,MozBoxFlex:c,WebkitFlex:c,msFlex:c,flex:c}},flexBasis:function(c){return{WebkitFlexBasis:c,flexBasis:c}},justifyContent:function(c){return{WebkitJustifyContent:c,justifyContent:c}},transition:function(c){return{msTransition:c,MozTransition:c,OTransition:c,WebkitTransition:c,transition:c}},transform:function(c){return{msTransform:c,MozTransform:c,OTransform:c,WebkitTransform:c,transform:c}},absolute:function(c){var s=c&&c.split(" ");return{position:"absolute",top:s&&s[0],right:s&&s[1],bottom:s&&s[2],left:s&&s[3]}},extend:function(c,s){return s[c]||{extend:c}}},g=ct.autoprefix=function(c){var s={};return(0,h.default)(c,function(d,v){var y={};(0,h.default)(d,function(_,m){var w=p[m];w?y=b({},y,w(_)):y[m]=_}),s[v]=y}),s};return ct.default=g,ct}(),n=u(t),o=u(function(){if(fu)return ft;fu=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.hover=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=ft.hover=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={hover:!1},m.handleMouseOver=function(){return m.setState({hover:!0})},m.handleMouseOut=function(){return m.setState({hover:!1})},m.render=function(){return b.default.createElement(s,{onMouseOver:m.handleMouseOver,onMouseOut:m.handleMouseOut},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return ft.default=g,ft}()),f=u(function(){if(lu)return lt;lu=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.active=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=lt.active=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={active:!1},m.handleMouseDown=function(){return m.setState({active:!0})},m.handleMouseUp=function(){return m.setState({active:!1})},m.render=function(){return b.default.createElement(s,{onMouseDown:m.handleMouseDown,onMouseUp:m.handleMouseUp},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return lt.default=g,lt}()),i=u((hu||(hu=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=function(l,h){var b={},p=function(g){var c=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];b[g]=c};return l===0&&p("first-child"),l===h-1&&p("last-child"),(l===0||l%2==0)&&p("even"),Math.abs(l%2)===1&&p("odd"),p("nth-child",l),b}),Wt));function u(l){return l&&l.__esModule?l:{default:l}}W.hover=o.default,W.handleHover=o.default,W.handleActive=f.default,W.loop=i.default;var a=W.ReactCSS=function(l){for(var h=arguments.length,b=Array(h>1?h-1:0),p=1;p<h;p++)b[p-1]=arguments[p];var g=(0,e.default)(b),c=(0,r.default)(l,g);return(0,n.default)(c)};return W.default=a,W}();const ot=I.PR(ds);var $t={},bs=function(e,r,t,n){var o=e+"-"+r+"-"+t+(n?"-server":"");if($t[o])return $t[o];var f=function(i,u,a,l){if(typeof document>"u"&&!l)return null;var h=l?new l:document.createElement("canvas");h.width=2*a,h.height=2*a;var b=h.getContext("2d");return b?(b.fillStyle=i,b.fillRect(0,0,h.width,h.height),b.fillStyle=u,b.fillRect(0,0,a,a),b.translate(a,a),b.fillRect(0,0,a,a),h.toDataURL()):null}(e,r,t,n);return $t[o]=f,f},du=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ie=function(e){var r=e.white,t=e.grey,n=e.size,o=e.renderers,f=e.borderRadius,i=e.boxShadow,u=e.children,a=ot({default:{grid:{borderRadius:f,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+bs(r,t,n,o.canvas)+") center left"}}});return j.isValidElement(u)?j.cloneElement(u,du({},u.props,{style:du({},u.props.style,a.grid)})):j.createElement("div",{style:a.grid})};ie.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var vs=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},gs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function bu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var ys=function(){function e(){var r,t,n;(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);for(var o=arguments.length,f=Array(o),i=0;i<o;i++)f[i]=arguments[i];return t=n=bu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(f))),n.handleChange=function(u){var a=function(l,h,b,p,g){var c=g.clientWidth,s=g.clientHeight,d=typeof l.pageX=="number"?l.pageX:l.touches[0].pageX,v=typeof l.pageY=="number"?l.pageY:l.touches[0].pageY,y=d-(g.getBoundingClientRect().left+window.pageXOffset),_=v-(g.getBoundingClientRect().top+window.pageYOffset);if(b==="vertical"){var m;if(m=_<0?0:_>s?1:Math.round(100*_/s)/100,h.a!==m)return{h:h.h,s:h.s,l:h.l,a:m,source:"rgb"}}else{var w;if(p!==(w=y<0?0:y>c?1:Math.round(100*y/c)/100))return{h:h.h,s:h.s,l:h.l,a:w,source:"rgb"}}return null}(u,n.props.hsl,n.props.direction,n.props.a,n.container);a&&typeof n.props.onChange=="function"&&n.props.onChange(a,u)},n.handleMouseDown=function(u){n.handleChange(u),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)},bu(n,t)}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),gs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,t=this.props.rgb,n=ot({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("+t.r+","+t.g+","+t.b+`, 0) 0%,
7
- rgba(`+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.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("+t.r+","+t.g+","+t.b+`, 0) 0%,
8
- rgba(`+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:vs({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return j.createElement("div",{style:n.alpha},j.createElement("div",{style:n.checkboard},j.createElement(ie,{renderers:this.props.renderers})),j.createElement("div",{style:n.gradient}),j.createElement("div",{style:n.container,ref:function(o){return r.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},j.createElement("div",{style:n.pointer},this.props.pointer?j.createElement(this.props.pointer,this.props):j.createElement("div",{style:n.slider}))))}}]),e}(),ms=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),_s=[38,40],ws=1,dt=function(){function e(r){(function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")})(this,e);var t=function(n,o){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?n:o}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.handleBlur=function(){t.state.blurValue&&t.setState({value:t.state.blurValue,blurValue:null})},t.handleChange=function(n){t.setUpdatedValue(n.target.value,n)},t.handleKeyDown=function(n){var o,f,i=(f=n.target.value,Number(String(f).replace(/%/g,"")));if(!isNaN(i)&&(o=n.keyCode,_s.indexOf(o)>-1)){var u=t.getArrowOffset(),a=n.keyCode===38?i+u:i-u;t.setUpdatedValue(a,n)}},t.handleDrag=function(n){if(t.props.dragLabel){var o=Math.round(t.props.value+n.movementX);o>=0&&o<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(o),n)}},t.handleMouseDown=function(n){t.props.dragLabel&&(n.preventDefault(),t.handleDrag(n),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},t.inputId="rc-editable-input-"+ws++,t}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),ms(e,[{key:"componentDidUpdate",value:function(r,t){this.props.value===this.state.value||r.value===this.props.value&&t.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(r){return t={},n=this.props.label,o=r,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t;var t,n,o}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(r,t){var n=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(n,t),this.setState({value:r})}},{key:"render",value:function(){var r=this,t=ot({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 j.createElement("div",{style:t.wrap},j.createElement("input",{id:this.inputId,style:t.input,ref:function(n){return r.input=n},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?j.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),xs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function vu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var js=function(){function e(){var r,t,n;(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);for(var o=arguments.length,f=Array(o),i=0;i<o;i++)f[i]=arguments[i];return t=n=vu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(f))),n.handleChange=function(u){var a=function(l,h,b,p){var g=p.clientWidth,c=p.clientHeight,s=typeof l.pageX=="number"?l.pageX:l.touches[0].pageX,d=typeof l.pageY=="number"?l.pageY:l.touches[0].pageY,v=s-(p.getBoundingClientRect().left+window.pageXOffset),y=d-(p.getBoundingClientRect().top+window.pageYOffset);if(h==="vertical"){var _;if(_=y<0?359:y>c?0:360*(-100*y/c+100)/100,b.h!==_)return{h:_,s:b.s,l:b.l,a:b.a,source:"hsl"}}else{var m;if(m=v<0?0:v>g?359:100*v/g*360/100,b.h!==m)return{h:m,s:b.s,l:b.l,a:b.a,source:"hsl"}}return null}(u,n.props.direction,n.props.hsl,n.container);a&&typeof n.props.onChange=="function"&&n.props.onChange(a,u)},n.handleMouseDown=function(u){n.handleChange(u),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},vu(n,t)}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),xs(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 r=this,t=this.props.direction,n=t===void 0?"horizontal":t,o=ot({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:n==="vertical"});return j.createElement("div",{style:o.hue},j.createElement("div",{className:"hue-"+n,style:o.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},j.createElement("style",null,`
9
- .hue-horizontal {
10
- background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
11
- 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
12
- background: -webkit-linear-gradient(to right, #f00 0%, #ff0
13
- 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
14
- }
15
-
16
- .hue-vertical {
17
- background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
18
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
19
- background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
20
- #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
21
- }
22
- `),j.createElement("div",{style:o.pointer},this.props.pointer?j.createElement(this.props.pointer,this.props):j.createElement("div",{style:o.slider}))))}}]),e}(),Os=typeof global=="object"&&global&&global.Object===Object&&global,Ms=typeof self=="object"&&self&&self.Object===Object&&self,Yu=Os||Ms||Function("return this")(),Rt=Yu.Symbol,qu=Object.prototype,ks=qu.hasOwnProperty,Ss=qu.toString,bt=Rt?Rt.toStringTag:void 0,As=Object.prototype.toString,gu=Rt?Rt.toStringTag:void 0;function Pt(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}_t.string,_t.oneOf([0,1,2,3,4,5]),_t.number,_t.object;var Nt=function(){return Yu.Date.now()},Cs=/\s/,Es=/^\s+/,Rs=/^[-+]0x[0-9a-f]+$/i,Ps=/^0b[01]+$/i,Ts=/^0o[0-7]+$/i,Ls=parseInt;function yu(e){if(typeof e=="number")return e;if(typeof(r=e)=="symbol"||(t=r)!=null&&typeof t=="object"&&function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":gu&&gu in Object(f)?function(u){var a=ks.call(u,bt),l=u[bt];try{u[bt]=void 0;var h=!0}catch{}var b=Ss.call(u);return h&&(a?u[bt]=l:delete u[bt]),b}(f):(i=f,As.call(i));var i}(r)=="[object Symbol]")return NaN;var r,t;if(Pt(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Pt(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=function(f){return f&&f.slice(0,function(i){for(var u=i.length;u--&&Cs.test(i.charAt(u)););return u}(f)+1).replace(Es,"")}(e);var o=Ps.test(e);return o||Ts.test(e)?Ls(e.slice(2),o?2:8):Rs.test(e)?NaN:+e}var Us=Math.max,Fs=Math.min,Ds=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();(function(){function e(r){(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);var t,n,o,f,i=function(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return i.handleChange=function(u){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,function(a,l,h){var b=h.getBoundingClientRect(),p=b.width,g=b.height,c=typeof a.pageX=="number"?a.pageX:a.touches[0].pageX,s=typeof a.pageY=="number"?a.pageY:a.touches[0].pageY,d=c-(h.getBoundingClientRect().left+window.pageXOffset),v=s-(h.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>p&&(d=p),v<0?v=0:v>g&&(v=g);var y=d/p,_=1-v/g;return{h:l.h,s:y,v:_,a:l.a,source:"hsv"}}(u,i.props.hsl,i.container),u)},i.handleMouseDown=function(u){i.handleChange(u);var a=i.getContainerRenderWindow();a.addEventListener("mousemove",i.handleChange),a.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=(t=function(u,a,l){u(a,l)},o=!0,f=!0,Pt(n)&&(o="leading"in n?!!n.leading:o,f="trailing"in n?!!n.trailing:f),function(u,a,l){var h,b,p,g,c,s,d=0,v=!1,y=!1,_=!0;if(typeof u!="function")throw new TypeError("Expected a function");function m(M){var F=h,B=b;return h=b=void 0,d=M,g=u.apply(B,F)}function w(M){var F=M-s;return s===void 0||F>=a||F<0||y&&M-d>=p}function C(){var M,F,B=Nt();if(w(B))return A(B);c=setTimeout(C,(F=a-((M=B)-s),y?Fs(F,p-(M-d)):F))}function A(M){return c=void 0,_&&h?m(M):(h=b=void 0,g)}function P(){var M,F=Nt(),B=w(F);if(h=arguments,b=this,s=F,B){if(c===void 0)return d=M=s,c=setTimeout(C,a),v?m(M):g;if(y)return clearTimeout(c),c=setTimeout(C,a),m(s)}return c===void 0&&(c=setTimeout(C,a)),g}return a=yu(a)||0,Pt(l)&&(v=!!l.leading,p=(y="maxWait"in l)?Us(yu(l.maxWait)||0,a):p,_="trailing"in l?!!l.trailing:_),P.cancel=function(){c!==void 0&&clearTimeout(c),d=0,h=s=b=c=void 0},P.flush=function(){return c===void 0?g:A(Nt())},P}(t,50,{leading:o,maxWait:50,trailing:f})),i}(function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)})(e,j.PureComponent||j.Component),Ds(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var r=this.container,t=window;!t.document.contains(r)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,t=this.props.style||{},n=t.color,o=t.white,f=t.black,i=t.pointer,u=t.circle,a=ot({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
23
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:f,pointer:i,circle:u}},{custom:!!this.props.style});return j.createElement("div",{style:a.color,ref:function(l){return r.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},j.createElement("style",null,`
24
- .saturation-white {
25
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
26
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
27
- }
28
- .saturation-black {
29
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
30
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
31
- }
32
- `),j.createElement("div",{style:a.white,className:"saturation-white"},j.createElement("div",{style:a.black,className:"saturation-black"}),j.createElement("div",{style:a.pointer},this.props.pointer?j.createElement(this.props.pointer,this.props):j.createElement("div",{style:a.circle}))))}}])})();var Bs=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},zs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function mu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var _u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";(function(){function t(){var n,o,f;(function(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")})(this,t);for(var i=arguments.length,u=Array(i),a=0;a<i;a++)u[a]=arguments[a];return o=f=mu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),f.state={focus:!1},f.handleFocus=function(){return f.setState({focus:!0})},f.handleBlur=function(){return f.setState({focus:!1})},mu(f,o)}(function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(n,o):n.__proto__=o)})(t,j.Component),zs(t,[{key:"render",value:function(){return j.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},j.createElement(e,Bs({},this.props,this.state)))}}])})()})(function(e){var r=e.color,t=e.style,n=e.onClick,o=n===void 0?function(){}:n,f=e.onHover,i=e.title,u=i===void 0?r:i,a=e.children,l=e.focus,h=e.focusStyle,b=r==="transparent",p=ot({default:{swatch:_u({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},t,l?h===void 0?{}:h:{})}}),g={};return f&&(g.onMouseOver=function(c){return f(r,c)}),j.createElement("div",_u({style:p.swatch,onClick:function(c){return o(r,c)},title:u,tabIndex:0,onKeyDown:function(c){return c.keyCode===13&&o(r,c)}},g),a,b&&j.createElement(ie,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Hs=function(e){var r=e.onChange,t=e.rgb,n=e.hsl,o=e.hex,f=e.disableAlpha,i=ot({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:f}),u=function(a,l){a.hex?function(h){if(h==="transparent")return!0;var b=String(h).charAt(0)==="#"?1:0;return h.length!==4+b&&h.length<7+b&&O(h).isValid()}(a.hex)&&r({hex:a.hex,source:"hex"},l):a.r||a.g||a.b?r({r:a.r||t.r,g:a.g||t.g,b:a.b||t.b,a:t.a,source:"rgb"},l):a.a&&(a.a<0?a.a=0:a.a>100&&(a.a=100),a.a/=100,r({h:n.h,s:n.s,l:n.l,a:a.a,source:"rgb"},l))};return j.createElement("div",{style:i.fields,className:"flexbox-fix"},j.createElement("div",{style:i.double},j.createElement(dt,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:u})),j.createElement("div",{style:i.single},j.createElement(dt,{style:{input:i.input,label:i.label},label:"r",value:t.r,onChange:u,dragLabel:"true",dragMax:"255"})),j.createElement("div",{style:i.single},j.createElement(dt,{style:{input:i.input,label:i.label},label:"g",value:t.g,onChange:u,dragLabel:"true",dragMax:"255"})),j.createElement("div",{style:i.single},j.createElement(dt,{style:{input:i.input,label:i.label},label:"b",value:t.b,onChange:u,dragLabel:"true",dragMax:"255"})),j.createElement("div",{style:i.alpha},j.createElement(dt,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*t.a),onChange:u,dragLabel:"true",dragMax:"100"})))};class Ws extends(j.PureComponent||j.Component){constructor(r){super(r),this.handleChange=t=>{typeof this.props.onChange=="function"&&this.throttle(this.props.onChange,((n,o,f)=>{var i=f.getBoundingClientRect(),u=i.width,a=i.height,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,h=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,b=l-(f.getBoundingClientRect().left+window.pageXOffset),p=h-(f.getBoundingClientRect().top+window.pageYOffset);b<0?b=0:b>u&&(b=u),p<0?p=0:p>a&&(p=a);var g=b/u,c=1-p/a;return{h:o.h,s:g,v:c,a:o.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const n=this.getContainerRenderWindow();n.addEventListener("mousemove",this.handleChange),n.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,n,o){let f,i,u,a;var l=0;o||(o={});let h=function(){l=o.leading===!1?0:Date.now(),f=null,a=t.apply(i,u),f||(i=u=null)},b=function(){var p=Date.now();l||o.leading!==!1||(l=p);var g=50-(p-l);return i=this,u=arguments,g<=0||g>50?(f&&(clearTimeout(f),f=null),l=p,a=t.apply(i,u),f||(i=u=null)):f||o.trailing===!1||(f=setTimeout(h,g)),a};return b.cancel=function(){clearTimeout(f),l=0,f=i=u=null},b}((t,n,o)=>{t(n,o)})}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:r}=this;let t=window;for(;!t.document.contains(r)&&t.parent!==t;)t=t.parent;return t}unbindEventListeners(){const r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:r,white:t,black:n,pointer:o,circle:f}=this.props||{},i={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={color:{...i,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...i,borderRadius:this.props.style?.borderRadius},black:{...i,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...i,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
33
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return z.jsxs("div",{style:u.color,ref:a=>this.container=a,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[z.jsx("style",{children:`
34
- .saturation-white {
35
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
36
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
37
- }
38
- .saturation-black {
39
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
40
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
41
- }
42
- `}),z.jsxs("div",{style:u.white,className:"saturation-white",children:[z.jsx("div",{style:u.black,className:"saturation-black"}),z.jsx("div",{style:u.pointer,children:this.props.pointer?z.jsx(this.props.pointer,{...this.props}):z.jsx("div",{style:u.circle})})]})]})}}const Yt=(e,r=null)=>{const t=e.hex?O(e.hex):O(e||"transparent"),n=t.toHsl(),o=t.toHsv(),f=t.toRgb(),i=t.toHex();return n.s===0&&(n.h=r??0,o.h=r??0),{hsl:n,hex:"#"+i,rgb:f,hsv:o,source:e.source}},wu=j.memo(e=>{const{selectedColor:r,onColorChange:t,renderers:n,disableAlpha:o=!1,style:f=I.Mn.EmptyCssProperties,...i}=e,u=I.T0(),[a,l]=j.useState(()=>Yt(r)),[h,b]=j.useState(a.hsl.h??0),p=j.useCallback(s=>{let d=Yt(s,h);return b(d.hsl.h??0),l(d),d},[h]),g=j.useCallback(s=>{const d=p(s),v=`rgba(${d.rgb.r},${d.rgb.g},${d.rgb.b},${o?1:d.rgb.a})`;t?.(v)},[t,p,o]);j.useLayoutEffect(()=>{p(r)},[r,p]);const c=z.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:z.jsx(ys,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:a.rgb,hsl:a.hsl,renderers:n,onChange:g})});return z.jsxs("div",{style:{display:"flex",flexDirection:"column",...f},...i,children:[z.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:z.jsx(Ws,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:a.hsl,hsv:a.hsv,onChange:g})}),z.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[z.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[z.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:z.jsx(js,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:a.hsl,onChange:g})}),o?null:c]}),z.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[z.jsx(I.IT,{grey:u.palette.text.icon??u.palette.action.active}),z.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${a.rgb.r},${a.rgb.g},${a.rgb.b},${o?1:a.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),z.jsx(I.Box,{sx:{marginBottom:"4px","& label":{fontFamily:s=>`${s.typography.fontFamily} !important`,color:s=>`${s.palette.text.secondary} !important`},"& *":{fontFamily:s=>`${s.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:s=>`${s.spacing(.5)} !important`,paddingRight:s=>`${s.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:z.jsx(Hs,{rgb:a.rgb,hsl:a.hsl,hex:a.hex,disableAlpha:o,onChange:g})})]})});exports.CustomColorPanel=wu,exports.default=wu,exports.toState=Yt;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react"),r=require("@sheetxl/sdk"),n=require("./CalnqtYH48_x2rcI.cjs"),W=require("./B5Qc3gXLEhscRsFm.cjs"),Y=n.createSvgIcon(o.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Z=n.createSvgIcon(o.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),ee=n.createSvgIcon(o.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ne=n.createSvgIcon(o.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),w=s.memo(O=>{const{label:m,value:d,options:a,onSelect:u,tabIndex:h=0,...y}=O,[b,C]=s.useState(()=>N(d,a));s.useEffect(()=>{C(N(d,a))},[d,a]);const I=n.fe(f=>{C(f.target.value),u?.(a[f.target.value])},[u,a]),c=s.useMemo(()=>Object.keys(a).map(f=>o.jsx(n.MenuItem,{value:f,children:f},f)),[a]);return o.jsxs(n.FormControl,{sx:{minWidth:135},size:"small",children:[o.jsx(n.InputLabel,{children:m}),o.jsx(n.Select,{inputProps:{tabIndex:h},value:b,label:m,onChange:I,sx:{backgroundImage:`linear-gradient(${n.alpha("#fff",n.$n(5))}, ${n.alpha("#fff",n.$n(5))})`},...y,children:c})]})}),E={Workbook:"workbook",Sheet:"sheet"},q={enter:140,exit:140},G={Formulas:r.ICell.Content.Formulas,Values:r.ICell.Content.Values,Notes:r.ICell.Content.Notes,Comments:r.ICell.Content.Comments},X={...G};delete X.Values;const te={"By Rows":!0,"By Columns":!1},N=(O,m)=>{const d=Object.keys(m);for(let a=0;a<d.length;a++){const u=d[a];if(m[u]===O)return u}},U=s.memo(O=>{const{replace:m=!1,findText:d,replaceText:a,findOptions:u,replaceOptions:h,title:y,onHide:b,onFindOrReplace:C,...I}=O,c=s.useRef(null),f=s.useRef(null),D=s.useRef(null),F=s.useRef(null),P=s.useRef(null),L=s.useRef(null),B=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[$,R]=s.useState(!1),[T,_]=s.useState(!1),[x,S]=s.useState(m),[A,k]=s.useState(!1),[K,M]=s.useState(!1),[l,p]=s.useState({findText:null,replaceText:null,replace:m,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:r.IRange.Orientation.Row,fields:[r.ICell.Content.Formulas]},scope:E.Sheet}),j=n.fe(async(e,t,i,v)=>{if(!C)return;const g={...l};g.replaceOptions={...g.replaceOptions},g.findOptions={...g.findOptions},g.replaceOptions.maxCount=i?void 0:1,g.replace=t,t&&l.findOptions.fields?.[0]===r.ICell.Content.Values&&(g.findOptions.fields=[r.ICell.Content.Formulas]),g.findOptions.reverse=!e;const Q=await C({autoFocus:v,...g});k(Q===0)},[l,C]);s.useEffect(()=>{k(!1)},[l,T,x]);const V=n.fe((e,t)=>{if(e.keyCode===n.rn.Enter){if(!l.findText)return;let i=!0,v=!1;e.shiftKey&&(i=!1),t?(e.ctrlKey&&e.altKey&&(v=!0),B(e,v?L.current:P.current)):B(e,i?F.current:D.current),j(i,t,v,!1)}},[l]),z=s.useRef(null);s.useLayoutEffect(()=>{p(e=>{const t={...e};t.findText=d&&d.length>0?d:e.findText??"",R(!0),a!==void 0&&(t.replaceText=a),u&&(t.findOptions={...t.findOptions,...u}),t.replaceText||(t.replaceText=""),t.replaceOptions&&(t.replaceOptions={...t.replaceOptions}),h&&(t.replaceOptions={...t.replaceOptions,...h}),l.findOptions.fields?.[0]||(l.findOptions.fields=[r.ICell.Content.Formulas]);const i=!(!h&&a===void 0);return i&&S(i),t}),K||z.current?.focus()},[d,a,u,h]),s.useEffect(()=>{x?(l.findOptions.fields[0],r.ICell.Content.Values):R(!0)},[x]),s.useEffect(()=>{if($&&c.current&&l.findText===c.current.value)return c.current===document.activeElement||c.current.contains(document.activeElement)?(c.current?.select(),void R(!1)):void c.current.addEventListener("focus",()=>{c.current?.select(),R(!1)},{once:!0})},[$,l]);const[J,{width:H}]=n.gc();return o.jsx(n.lS,{ref:z,title:y??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:b,onFocus:()=>M(!0),onBlur:()=>{M(!1),k(!1)},PaperProps:{elevation:K?3:1},...I,children:o.jsxs(n.DialogContent,{dividers:!0,ref:J,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)S(!0),c.current?.contains(document.activeElement)&&f.current?.focus();else if(e.key==="f"&&e.ctrlKey)c.current?.focus();else if(e.key==="c"&&e.altKey)p(t=>{const i={...t};return i.findOptions.matchCase=!t.findOptions.matchCase,i});else if(e.key==="e"&&e.altKey)p(t=>{const i={...t};return i.findOptions.matchEntireCell=!t.findOptions.matchEntireCell,i});else{if(e.key!=="r"||!e.altKey)return;p(t=>{const i={...t};return i.findOptions.useRegex=!t.findOptions.useRegex,i})}e.preventDefault()},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[o.jsx(n.Px,{selected:T,onSelectToggle:e=>{_(e)},preventFocus:!0,label:"Toggle Additional Options",icon:n.ve(o.jsx(n.CR,{}))}),o.jsx(n.Px,{selected:x,onSelectToggle:e=>{S(e)},preventFocus:!0,label:"Toggle Replace",icon:n.ve(o.jsx(n.SR,{})),shortcut:{key:x?"F":"H",modifiers:[n.De.Ctrl]}})]}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[o.jsx(n.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:H>460?"20em":void 0,backgroundImage:`linear-gradient(${n.alpha("#fff",n.$n(5))}, ${n.alpha("#fff",n.$n(5))})`},inputProps:{draggable:!1,ref:c,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:o.jsx(n.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:o.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[o.jsx(n.Px,{selected:l.findOptions.matchCase,onSelectToggle:e=>{p(t=>{const i={...t};return i.findOptions.matchCase=e,i})},label:"Match Case",shortcut:{key:"C",modifiers:[n.De.Alt]},icon:n.ve(o.jsx(n.kR,{}))}),o.jsx(n.Px,{selected:l.findOptions.matchEntireCell,onSelectToggle:e=>{p(t=>{const i={...t};return i.findOptions.matchEntireCell=e,i})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[n.De.Alt]},icon:n.ve(o.jsx(n._R,{}))}),o.jsx(n.Px,{selected:l.findOptions.useRegex,onSelectToggle:e=>{p(t=>{const i={...t};return i.findOptions.useRegex=e,i})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[n.De.Alt]},icon:n.ve(o.jsx(n.TR,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>A?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>A?`${e.palette.error.main} !important`:void 0}},value:l.findText??"",onChange:e=>{p(t=>{const i={...t};return i.findText=e.target.value,i})},onKeyDown:e=>V(e,!1),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.Px,{selected:l.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:D,label:"",shortcut:{key:"Enter",modifiers:[n.De.Shift]},icon:n.ve(l.findOptions.orientation!==r.IRange.Orientation.Column?o.jsx(Y,{}):o.jsx(ne,{})),disabled:!l.findText}),o.jsx(n.Px,{selected:!l.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:F,label:"Next Match",shortcut:{key:"Enter"},icon:n.ve(l.findOptions.orientation!==r.IRange.Orientation.Column?o.jsx(ee,{}):o.jsx(Z,{})),disabled:!l.findText})]}),o.jsx(W.Collapse,{in:x,timeout:q,onExit:()=>{c.current?.focus()},children:o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[o.jsx(n.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${n.alpha("#fff",n.$n(5))}, ${n.alpha("#fff",n.$n(5))})`},inputProps:{ref:f,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:l.replaceText??"",onChange:e=>{p(t=>{const i={...t};return i.replaceText=e.target.value,i})},onKeyDown:e=>V(e,!0),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.Px,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:P,label:"Replace",shortcut:{key:"Enter"},icon:n.ve(o.jsx(n.zv,{})),disabled:!l.findText}),o.jsx(n.Px,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:L,label:"Replace All",shortcut:{key:"Enter",modifiers:[n.De.Ctrl,n.De.Alt]},icon:n.ve(o.jsx(n.ER,{})),disabled:!l.findText})]})})]})]}),o.jsx(W.Collapse,{in:T,timeout:q,onExit:()=>{c.current?.focus()},children:o.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.$t,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:H>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[o.jsx(w,{label:"Within",value:l.scope,options:E,onSelect:e=>{p(t=>{const i={...t};return i.scope=e,i})}}),o.jsx(w,{label:"Search",value:l.findOptions.orientation!==r.IRange.Orientation.Column,options:te,onSelect:e=>{p(t=>{const i={...t};return i.findOptions.orientation=e?r.IRange.Orientation.Row:r.IRange.Orientation.Column,i})}}),o.jsx(w,{label:"Look in",value:x&&l.findOptions.fields?.[0]===r.ICell.Content.Values?r.ICell.Content.Formulas:l.findOptions.fields?.[0],options:x?X:G,onSelect:e=>{p(t=>{const i={...t};return i.findOptions.fields=[e],i})}})]})]})})]})})});exports.FindReplaceWindow=U,exports.ScopeOptions=E,exports.default=U;