@sheetxl/studio-vanilla 0.4.21 → 0.4.22

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 (184) hide show
  1. package/browser/cjs/-AkvO2DXLOxJTxam.cjs +6 -0
  2. package/browser/cjs/3CSmmG7E8ziDB1mP.cjs +6 -0
  3. package/browser/cjs/7nEG2wj_Ohie6CwI.cjs +6 -0
  4. package/browser/cjs/{n6CXzSocLW_BCO8w.cjs → B0aLqzqegePPgpc2.cjs} +6 -6
  5. package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
  6. package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
  7. package/browser/cjs/BPODmSH7Z1MR1rHr.cjs +15 -0
  8. package/browser/cjs/BS0bGW4PmNinQUvL.cjs +42 -0
  9. package/browser/cjs/BY3tZiH_cfwBkpN8.cjs +6 -0
  10. package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
  11. package/browser/cjs/BZvC7PqILOVRl2ij.cjs +6 -0
  12. package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
  13. package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
  14. package/browser/cjs/Bi2-QXq5KvbsAXoB.cjs +6 -0
  15. package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
  16. package/browser/cjs/BlojFx4yQfY8ahEJ.cjs +12 -0
  17. package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
  18. package/browser/cjs/Bzntg1YSzOszdwLy.cjs +6 -0
  19. package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
  20. package/browser/cjs/C9xTKWx1tr6NZFC8.cjs +6 -0
  21. package/browser/cjs/CCu9cK1DUD4oa3Nj.cjs +6 -0
  22. package/browser/cjs/CIeiC9TKv80O2_fQ.cjs +6 -0
  23. package/browser/cjs/COuRf_8YbqEsDQOC.cjs +6 -0
  24. package/browser/cjs/CQRZm8lGq26oKY31.cjs +6 -0
  25. package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
  26. package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
  27. package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
  28. package/browser/cjs/CknjEH7DZBnqyPfk.cjs +6 -0
  29. package/browser/cjs/ClEc15AqSTFOf5zG.cjs +6 -0
  30. package/browser/cjs/CrUZUIz00uPDq4EA.cjs +6 -0
  31. package/browser/cjs/Cv1BFY5pqPtJd8qO.cjs +6 -0
  32. package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
  33. package/browser/cjs/Cvwrl86aXHFXJVZZ.cjs +6 -0
  34. package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
  35. package/browser/cjs/D3qzZXPgfAtKIAP9.cjs +11 -0
  36. package/browser/cjs/D7q2GFLhv9QRTZJe.cjs +6 -0
  37. package/browser/cjs/DB2WR3LaeOhkCAXY.cjs +6 -0
  38. package/browser/cjs/DFJ4dyRxiUF1XPPZ.cjs +15 -0
  39. package/browser/cjs/DJMpu6kYQUW3FWjs.cjs +6 -0
  40. package/browser/cjs/DL7DCFUaFkr2LYhZ.cjs +6 -0
  41. package/browser/cjs/DMMZr350oW-Zan7x.cjs +124 -0
  42. package/browser/cjs/DMfk3didwdGQLc0i.cjs +1501 -0
  43. package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
  44. package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
  45. package/browser/cjs/Df9S9eEGYxA_EcEr.cjs +6 -0
  46. package/browser/cjs/DgSAPPq-D_vlo9jE.cjs +6 -0
  47. package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
  48. package/browser/cjs/DqlFSswn_reXyFz8.cjs +6 -0
  49. package/browser/cjs/Dws_eDddoJKDPps_.cjs +6 -0
  50. package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
  51. package/browser/cjs/Iek_K8QW1doYx_eo.cjs +6 -0
  52. package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
  53. package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
  54. package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
  55. package/browser/cjs/index.cjs +2 -80
  56. package/browser/cjs/kQ8wVygFJMcxlUv-.cjs +6 -0
  57. package/browser/cjs/tVbeAmLkaH_1Jy7R.cjs +6 -0
  58. package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
  59. package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
  60. package/browser/esm/AVmCEk8Fmiw2k_yK.mjs +425 -0
  61. package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
  62. package/browser/esm/BBov1fpR61VyhE3Z.mjs +10 -0
  63. package/browser/esm/BJD32_Zv5gkabGc0.mjs +10 -0
  64. package/browser/esm/BJqIPJDvrhWpZc4S.mjs +10 -0
  65. package/browser/esm/BKYjPTKdwG8Dn1_Z.mjs +21 -0
  66. package/browser/esm/BQfnqD12mz41DOr_.mjs +10 -0
  67. package/browser/esm/BSdVpOzJ8SL3EBhP.mjs +10 -0
  68. package/browser/esm/BVuoKgnuqrUwY6Fv.mjs +44 -0
  69. package/browser/esm/Ba4SdTfCAvYS7a3O.mjs +29 -0
  70. package/browser/esm/BajFlIH_X_nvDNfp.mjs +2344 -0
  71. package/browser/esm/Bb0W3ByMVowTViNK.mjs +10 -0
  72. package/browser/esm/BmyjN5txj3iMw_DE.mjs +10 -0
  73. package/browser/esm/BpFA0UU_TF4JO3dh.mjs +10 -0
  74. package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
  75. package/browser/esm/Bzg-D_R4sXN-wyMx.mjs +10 -0
  76. package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
  77. package/browser/esm/CAal3t8F-VfdmgAH.mjs +10 -0
  78. package/browser/esm/CBPeZuyUIf9scEwn.mjs +2081 -0
  79. package/browser/esm/CCjuiVOyesh1IQpA.mjs +3936 -0
  80. package/browser/esm/CDnNRZ7jINT_Dr0K.mjs +46 -0
  81. package/browser/esm/CQaM4Ka20cP71fl0.mjs +10 -0
  82. package/browser/esm/CVlIOg6F8qrZdlQ1.mjs +10 -0
  83. package/browser/esm/Cbq2K4YGny5wwFEf.mjs +10 -0
  84. package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
  85. package/browser/esm/Ckb6l6osoWh90VXn.mjs +10 -0
  86. package/browser/esm/CkccSfJEU471_Sui.mjs +1702 -0
  87. package/browser/esm/Cl0mB61JgZYfTh4S.mjs +24 -0
  88. package/browser/esm/Cm7pnWH_xgLwX_lZ.mjs +10 -0
  89. package/browser/esm/Co_HyodT3prcEvNJ.mjs +10 -0
  90. package/browser/esm/CsBIABPdnqpcZcvJ.mjs +10 -0
  91. package/browser/esm/CslKfn0zxkGKrM4-.mjs +48 -0
  92. package/browser/esm/Cx0a1WWRvJgDg4qb.mjs +21 -0
  93. package/browser/esm/D-QFKqWRP5dKwynV.mjs +10 -0
  94. package/browser/esm/DWgbhx4Y4WzyAP3Z.mjs +1575 -0
  95. package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
  96. package/browser/esm/Dk_OZhcDLapTaNma.mjs +10 -0
  97. package/browser/esm/Dp--KMDeqecbq_Wc.mjs +10 -0
  98. package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
  99. package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
  100. package/browser/esm/Dxqx7qwqE6wbYSpB.mjs +147 -0
  101. package/browser/esm/ObudKUELIfmbm87W.mjs +10 -0
  102. package/browser/esm/SGprYj0-SzDtrM3y.mjs +56 -0
  103. package/browser/esm/SmC3rmOCw-Ynredz.mjs +1672 -0
  104. package/browser/esm/T263hpnj_sMd1bmD.mjs +84 -0
  105. package/browser/esm/Ys1OCodY6sXUkZ6-.mjs +424 -0
  106. package/browser/esm/aqvSzH4m6bf7ODc6.mjs +10 -0
  107. package/browser/esm/d49_A3euUkzKZure.mjs +633 -0
  108. package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
  109. package/browser/esm/fgXzhDR19HBK6PEW.mjs +20 -0
  110. package/browser/esm/g2unVUs-HBGBvXMs.mjs +12 -0
  111. package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
  112. package/browser/esm/index.mjs +4 -176
  113. package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
  114. package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
  115. package/browser/esm/{NBuS53B7u8hItiXf.mjs → oUl7lbkOPMCi30tO.mjs} +937 -933
  116. package/browser/esm/tAl8qMu6C0Vlq5p-.mjs +5585 -0
  117. package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
  118. package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
  119. package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
  120. package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
  121. package/cdn/assets/B44RkeFF8g1ncaGw.js +49 -0
  122. package/cdn/assets/BBov1fpR61VyhE3Z.js +10 -0
  123. package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
  124. package/cdn/assets/BERonPR_jlfR0j1B.js +46 -0
  125. package/cdn/assets/BJD32_Zv5gkabGc0.js +10 -0
  126. package/cdn/assets/BJqIPJDvrhWpZc4S.js +10 -0
  127. package/cdn/assets/BKYjPTKdwG8Dn1_Z.js +21 -0
  128. package/cdn/assets/BPQvYX3Tn3_XfM55.js +2346 -0
  129. package/cdn/assets/BQfnqD12mz41DOr_.js +10 -0
  130. package/cdn/assets/BSdVpOzJ8SL3EBhP.js +10 -0
  131. package/cdn/assets/BWHiFslK55rPiaTT.js +21 -0
  132. package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
  133. package/cdn/assets/B_gWDLoUXJ58kUTF.js +5585 -0
  134. package/cdn/assets/Bb0W3ByMVowTViNK.js +10 -0
  135. package/cdn/assets/Bk7mWQ4jJ591qT5U.js +1702 -0
  136. package/cdn/assets/BmyjN5txj3iMw_DE.js +10 -0
  137. package/cdn/assets/BnEb6t4xIVuW37yn.js +29 -0
  138. package/cdn/assets/BpFA0UU_TF4JO3dh.js +10 -0
  139. package/cdn/assets/Bzg-D_R4sXN-wyMx.js +10 -0
  140. package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
  141. package/cdn/assets/CAal3t8F-VfdmgAH.js +10 -0
  142. package/cdn/assets/CGImeT9zAECbU9zM.js +43 -0
  143. package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
  144. package/cdn/assets/CQaM4Ka20cP71fl0.js +10 -0
  145. package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
  146. package/cdn/assets/CVlIOg6F8qrZdlQ1.js +10 -0
  147. package/cdn/assets/Cbq2K4YGny5wwFEf.js +10 -0
  148. package/cdn/assets/CcE9nC_34k_5iKdO.js +425 -0
  149. package/cdn/assets/CcP-5SrDsnDeT6SQ.js +2083 -0
  150. package/cdn/assets/Ckb6l6osoWh90VXn.js +10 -0
  151. package/cdn/assets/Cl0mB61JgZYfTh4S.js +24 -0
  152. package/cdn/assets/Cm7pnWH_xgLwX_lZ.js +10 -0
  153. package/cdn/assets/Co_HyodT3prcEvNJ.js +10 -0
  154. package/cdn/assets/CsBIABPdnqpcZcvJ.js +10 -0
  155. package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
  156. package/cdn/assets/D-QFKqWRP5dKwynV.js +10 -0
  157. package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
  158. package/cdn/assets/DBzbchpZyNJVqFwJ.js +1575 -0
  159. package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
  160. package/cdn/assets/DKaNurhCUtSDI3-Y.js +3936 -0
  161. package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
  162. package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
  163. package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
  164. package/cdn/assets/Dk_OZhcDLapTaNma.js +10 -0
  165. package/cdn/assets/Dp--KMDeqecbq_Wc.js +10 -0
  166. package/cdn/assets/DqRiTlxxpGv8z6hB.js +392 -0
  167. package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
  168. package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
  169. package/cdn/assets/ObudKUELIfmbm87W.js +10 -0
  170. package/cdn/assets/QtHcsa9O7bxZgew4.js +12 -0
  171. package/cdn/assets/SmC3rmOCw-Ynredz.js +1672 -0
  172. package/cdn/assets/UBuQw1PVtmH3a9bE.js +84 -0
  173. package/cdn/assets/Ys1OCodY6sXUkZ6-.js +424 -0
  174. package/cdn/assets/aqvSzH4m6bf7ODc6.js +10 -0
  175. package/cdn/assets/d49_A3euUkzKZure.js +633 -0
  176. package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
  177. package/cdn/assets/g2unVUs-HBGBvXMs.js +12 -0
  178. package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
  179. package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
  180. package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
  181. package/cdn/index.js +2 -2
  182. package/cdn/loader.js +1 -1
  183. package/package.json +3 -3
  184. package/cdn/assets/CY8njwo06MWkoPz2.js +0 -21
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 c=require("./QxU4KIgsHZuVigdy.cjs");let i=null,r=null,t=null;const o=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(r&&c.Yt.deepEqual(r,e))return i;const l=await async function(){if(t)return t;const{TypeScriptCompiler:u}=await Promise.resolve().then(()=>require("./tVbeAmLkaH_1Jy7R.cjs"));return t=new u,t}(),n=await l.compileModule(e);return i=n,r=e,n}});exports.ScriptingUtils=o;
@@ -0,0 +1,15 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 yt=require("./QxU4KIgsHZuVigdy.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){_(t.transformHeader)&&(O=t.transformHeader(O,A)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(A[y]=A[y]||[],A[y].push(g)):A[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function L(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<D)&&1.99<D&&(d=F,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
7
+ `)).length&&c[0].length<E[0].length,E.length===1||h)return`
8
+ `;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
9
+ `&&f++;return f>=E.length/2?`\r
10
+ `:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
11
+ `&&i!=="\r"&&i!==`\r
12
+ `&&(i=`
13
+ `);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var A=u.split(i),b=0;b<A.length;b++){if(f=A[b],o+=f.length,b!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+L),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+L,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+L),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
14
+ `,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",L=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?p:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],b=0;b<E;b++){var y=z?p[b]:b;A.push(s[c][y])}f=A.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=L&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
15
+ `,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports);const kt=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:yt.kg(gt)},[gt]);exports.p=kt;
@@ -0,0 +1,42 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 w=require("./QxU4KIgsHZuVigdy.cjs"),yt=w.Tm(w.mn());function Xt(e){return(Xt=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 qu=/^\s+/,Ku=/\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(qu,"").replace(Ku,"").toLowerCase();var s,d=!1;if($t[c])c=$t[c],d=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=$.rgb.exec(c))?{r:s[1],g:s[2],b:s[3]}:(s=$.rgba.exec(c))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=$.hsl.exec(c))?{h:s[1],s:s[2],l:s[3]}:(s=$.hsla.exec(c))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=$.hsv.exec(c))?{h:s[1],s:s[2],v:s[3]}:(s=$.hsva.exec(c))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=$.hex8.exec(c))?{r:W(s[1]),g:W(s[2]),b:W(s[3]),a:de(s[4]),format:d?"name":"hex8"}:(s=$.hex6.exec(c))?{r:W(s[1]),g:W(s[2]),b:W(s[3]),format:d?"name":"hex"}:(s=$.hex4.exec(c))?{r:W(s[1]+""+s[1]),g:W(s[2]+""+s[2]),b:W(s[3]+""+s[3]),a:de(s[4]+""+s[4]),format:d?"name":"hex8"}:!!(s=$.hex3.exec(c))&&{r:W(s[1]+""+s[1]),g:W(s[2]+""+s[2]),b:W(s[3]+""+s[3]),format:d?"name":"hex"}}(t)),Xt(t)=="object"&&(G(t.r)&&G(t.g)&&G(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"):G(t.h)&&G(t.s)&&G(t.v)?(a=dt(t.s),l=dt(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,x=d*(1-s),m=d*(1-y*s),_=d*(1-(1-y)*s),A=v%6;return{r:255*[d,m,x,x,_,d][A],g:255*[_,d,d,m,x,x][A],b:255*[x,x,_,d,d,m][A]}}(t.h,a,l),b=!0,p="hsv"):G(t.h)&&G(t.s)&&G(t.l)&&(a=dt(t.s),h=dt(t.l),i=function(c,s,d){var v,y,x;function m(k,P,M){return M<0&&(M+=1),M>1&&(M-=1),M<1/6?k+6*(P-k)*M:M<.5?P:M<2/3?k+(P-k)*(2/3-M)*6:k}if(c=D(c,360),s=D(s,100),d=D(d,100),s===0)v=y=x=d;else{var _=d<.5?d*(1+s):d+s-d*s,A=2*d-_;v=m(A,_,c+1/3),y=m(A,_,c),x=m(A,_,c-1/3)}return{r:255*v,g:255*y,b:255*x}}(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 ce(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 fe(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 le(e,r,t,n){var o=[N(Math.round(e).toString(16)),N(Math.round(r).toString(16)),N(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 he(e,r,t,n){return[N(wu(n)),N(Math.round(e).toString(16)),N(Math.round(r).toString(16)),N(Math.round(t).toString(16))].join("")}function Gu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s-=r/100,t.s=Rt(t.s),O(t)}function Ju(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s+=r/100,t.s=Rt(t.s),O(t)}function Qu(e){return O(e).desaturate(100)}function Zu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l+=r/100,t.l=Rt(t.l),O(t)}function ts(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 es(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l-=r/100,t.l=Rt(t.l),O(t)}function rs(e,r){var t=O(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,O(t)}function ns(e){var r=O(e).toHsl();return r.h=(r.h+180)%360,O(r)}function pe(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 os(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 as(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 is(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=fe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=fe(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=ce(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ce(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 le(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=[N(Math.round(r).toString(16)),N(Math.round(t).toString(16)),N(Math.round(n).toString(16)),N(wu(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)&&(us[le(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+he(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=O(e);t="#"+he(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(Zu,arguments)},brighten:function(){return this._applyModification(ts,arguments)},darken:function(){return this._applyModification(es,arguments)},desaturate:function(){return this._applyModification(Gu,arguments)},saturate:function(){return this._applyModification(Ju,arguments)},greyscale:function(){return this._applyModification(Qu,arguments)},spin:function(){return this._applyModification(rs,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(as,arguments)},complement:function(){return this._applyCombination(ns,arguments)},monochromatic:function(){return this._applyCombination(is,arguments)},splitcomplement:function(){return this._applyCombination(os,arguments)},triad:function(){return this._applyCombination(pe,[3])},tetrad:function(){return this._applyCombination(pe,[4])}},O.fromRatio=function(e,r){if(Xt(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n==="a"?e[n]:dt(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 $t=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"},us=O.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}($t);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 Rt(e){return Math.min(1,Math.max(0,e))}function W(e){return parseInt(e,16)}function N(e){return e.length==1?"0"+e:""+e}function dt(e){return e<=1&&(e=100*e+"%"),e}function wu(e){return Math.round(255*parseFloat(e)).toString(16)}function de(e){return W(e)/255}var Z,mt,xt,$=(mt="[\\s|\\(]+("+(Z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",xt="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+mt),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+mt),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+mt),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 G(e){return!!$.CSS_UNIT.exec(e)}var be,ve,ge,ye,me,xe,we,_e,je,Oe,Me,Ee,Se,ke,Ae,Ce,Re,Pe,Te,Le,Ue,Fe,De,Be,ze,He,We,$e,H={},at={};function _u(){if(ve)return be;ve=1;var e=typeof w.vo=="object"&&w.vo&&w.vo.Object===Object&&w.vo;return be=e}function Y(){if(ye)return ge;ye=1;var e=_u(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return ge=t}function bt(){if(xe)return me;xe=1;var e=Y().Symbol;return me=e}function et(){if(Ee)return Me;Ee=1;var e=bt(),r=function(){if(_e)return we;_e=1;var o=bt(),f=Object.prototype,i=f.hasOwnProperty,u=f.toString,a=o?o.toStringTag:void 0;return we=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(Oe)return je;Oe=1;var o=Object.prototype.toString;return je=function(f){return o.call(f)}}(),n=e?e.toStringTag:void 0;return Me=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":n&&n in Object(o)?r(o):t(o)}}function I(){if(ke)return Se;ke=1;var e=Array.isArray;return Se=e}function J(){return Ce?Ae:(Ce=1,Ae=function(e){return e!=null&&typeof e=="object"})}function ju(){if($e)return We;$e=1;var e=function(){if(He)return ze;He=1;var i=et(),u=J();return ze=function(a){return u(a)&&i(a)=="[object Arguments]"}}(),r=J(),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 We=f}var Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,Pt={exports:{}};function Yt(){return Ve||(Ve=1,e=Pt,r=Pt.exports,t=Y(),n=Ie?Ne:(Ie=1,Ne=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),Pt.exports;var e,r,t,n,o,f,i,u}function Ou(){if(Ye)return Xe;Ye=1;var e=/^(?:0|[1-9]\d*)$/;return Xe=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 qt(){return Ke?qe:(Ke=1,qe=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})}function Nt(){return Ze?Qe:(Ze=1,Qe=function(e){return function(r){return e(r)}})}var tr,er,rr,nr,or,ar,ir,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,xr,wr,_r,jr,Or,Mr,Er,Sr,kr,Ar,Cr,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,xn,wn,_n,jn,On,Mn,En,Sn,kn,An,Cn,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,xo,wo,_o,jo,Oo,Mo,Eo,So,ko,Ao,Co,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,xa,wa,_a,ja,Oa,Ma,Ea,Sa,ka,Aa,Ca,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Tt={exports:{}};function It(){return tr||(tr=1,e=Tt,r=Tt.exports,t=_u(),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),Tt.exports;var e,r,t,n,o,f,i}function Mu(){if(rr)return er;rr=1;var e=function(){if(Je)return Ge;Je=1;var f=et(),i=qt(),u=J(),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,Ge=function(l){return u(l)&&i(l.length)&&!!a[f(l)]}}(),r=Nt(),t=It(),n=t&&t.isTypedArray,o=n?r(n):e;return er=o}function Eu(){if(or)return nr;or=1;var e=Be?De:(Be=1,De=function(u,a){for(var l=-1,h=Array(u);++l<u;)h[l]=a(l);return h}),r=ju(),t=I(),n=Yt(),o=Ou(),f=Mu(),i=Object.prototype.hasOwnProperty;return nr=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 Kt(){if(ir)return ar;ir=1;var e=Object.prototype;return ar=function(r){var t=r&&r.constructor;return r===(typeof t=="function"&&t.prototype||e)}}function Su(){return sr?ur:(sr=1,ur=function(e,r){return function(t){return e(r(t))}})}function ft(){return dr?pr:(dr=1,pr=function(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")})}function ku(){if(vr)return br;vr=1;var e=et(),r=ft();return br=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 St(){if(yr)return gr;yr=1;var e=ku(),r=qt();return gr=function(t){return t!=null&&r(t.length)&&!e(t)}}function vt(){if(xr)return mr;xr=1;var e=Eu(),r=function(){if(hr)return lr;hr=1;var n=Kt(),o=function(){if(fr)return cr;fr=1;var i=Su()(Object.keys,Object);return cr=i}(),f=Object.prototype.hasOwnProperty;return lr=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=St();return mr=function(n){return t(n)?e(n):r(n)}}function Au(){if(_r)return wr;_r=1;var e=function(){if(Fe)return Ue;Fe=1;var t=(Le?Te:(Le=1,Te=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 Ue=t}(),r=vt();return wr=function(t,n){return t&&e(t,n,r)}}function Cu(){return Or?jr:(Or=1,jr=function(e){return e})}function Lt(){if(kr)return Sr;kr=1;var e=Au(),r=function(){if(Er)return Mr;Er=1;var t=Cu();return Mr=function(n){return typeof n=="function"?n:t}}();return Sr=function(t,n){return t&&e(t,r(n))}}function Gt(){if(Cr)return Ar;Cr=1;var e=Su()(Object.getPrototypeOf,Object);return Ar=e}function Ru(){return Lr?Tr:(Lr=1,Tr=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 Jt(){return Br?Dr:(Br=1,Dr=function(e,r){return e===r||e!=e&&r!=r})}function wt(){if(Hr)return zr;Hr=1;var e=Jt();return zr=function(r,t){for(var n=r.length;n--;)if(e(r[n][0],t))return n;return-1}}function Mt(){if(Gr)return Kr;Gr=1;var e=Fr?Ur:(Fr=1,Ur=function(){this.__data__=[],this.size=0}),r=function(){if($r)return Wr;$r=1;var i=wt(),u=Array.prototype.splice;return Wr=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(Ir)return Nr;Ir=1;var i=wt();return Nr=function(u){var a=this.__data__,l=i(a,u);return l<0?void 0:a[l][1]}}(),n=function(){if(Xr)return Vr;Xr=1;var i=wt();return Vr=function(u){return i(this.__data__,u)>-1}}(),o=function(){if(qr)return Yr;qr=1;var i=wt();return Yr=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,Kr=f}function Pu(){if(ln)return fn;ln=1;var e=Function.prototype.toString;return fn=function(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}}function tt(){if(gn)return vn;gn=1;var e=function(){if(pn)return hn;pn=1;var t=ku(),n=function(){if(cn)return sn;cn=1;var p,g=function(){if(un)return an;un=1;var s=Y()["__core-js_shared__"];return an=s}(),c=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"";return sn=function(s){return!!c&&c in s}}(),o=ft(),f=Pu(),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 hn=function(p){return!(!o(p)||n(p))&&(t(p)?b:i).test(f(p))}}(),r=bn?dn:(bn=1,dn=function(t,n){return t?.[n]});return vn=function(t,n){var o=r(t,n);return e(o)?o:void 0}}function Qt(){if(mn)return yn;mn=1;var e=tt()(Y(),"Map");return yn=e}function _t(){if(wn)return xn;wn=1;var e=tt()(Object,"create");return xn=e}function jt(){if(zn)return Bn;zn=1;var e=Dn?Fn:(Dn=1,Fn=function(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null});return Bn=function(r,t){var n=r.__data__;return e(t)?n[typeof t=="string"?"string":"hash"]:n.map}}function Zt(){if(Kn)return qn;Kn=1;var e=function(){if(Un)return Ln;Un=1;var i=function(){if(Tn)return Pn;Tn=1;var l=function(){if(jn)return _n;jn=1;var s=_t();return _n=function(){this.__data__=s?s(null):{},this.size=0}}(),h=Mn?On:(Mn=1,On=function(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}),b=function(){if(Sn)return En;Sn=1;var s=_t(),d=Object.prototype.hasOwnProperty;return En=function(v){var y=this.__data__;if(s){var x=y[v];return x==="__lodash_hash_undefined__"?void 0:x}return d.call(y,v)?y[v]:void 0}}(),p=function(){if(An)return kn;An=1;var s=_t(),d=Object.prototype.hasOwnProperty;return kn=function(v){var y=this.__data__;return s?y[v]!==void 0:d.call(y,v)}}(),g=function(){if(Rn)return Cn;Rn=1;var s=_t();return Cn=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,Pn=c}(),u=Mt(),a=Qt();return Ln=function(){this.size=0,this.__data__={hash:new i,map:new(a||u),string:new i}}}(),r=function(){if(Wn)return Hn;Wn=1;var i=jt();return Hn=function(u){var a=i(this,u).delete(u);return this.size-=a?1:0,a}}(),t=function(){if(Nn)return $n;Nn=1;var i=jt();return $n=function(u){return i(this,u).get(u)}}(),n=function(){if(Vn)return In;Vn=1;var i=jt();return In=function(u){return i(this,u).has(u)}}(),o=function(){if(Yn)return Xn;Yn=1;var i=jt();return Xn=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,qn=f}function te(){if(Zn)return Qn;Zn=1;var e=Mt(),r=function(){if(Qr)return Jr;Qr=1;var u=Mt();return Jr=function(){this.__data__=new u,this.size=0}}(),t=tn?Zr:(tn=1,Zr=function(u){var a=this.__data__,l=a.delete(u);return this.size=a.size,l}),n=rn?en:(rn=1,en=function(u){return this.__data__.get(u)}),o=on?nn:(on=1,nn=function(u){return this.__data__.has(u)}),f=function(){if(Jn)return Gn;Jn=1;var u=Mt(),a=Qt(),l=Zt();return Gn=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,Qn=i}function Qa(){if(lo)return fo;lo=1;var e=function(){if(ao)return oo;ao=1;var n=Zt(),o=eo?to:(eo=1,to=function(u){return this.__data__.set(u,"__lodash_hash_undefined__"),this}),f=no?ro:(no=1,ro=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,oo=i}(),r=uo?io:(uo=1,io=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=co?so:(co=1,so=function(n,o){return n.has(o)});return fo=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 x=l?i(y,v,c,o,n,a):i(v,y,c,n,o,a);if(x!==void 0){if(x)continue;s=!1;break}if(d){if(!r(o,function(m,_){if(!t(d,_)&&(v===m||u(v,m,f,i,a)))return d.push(_)})){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 Tu(){if(po)return ho;po=1;var e=Y().Uint8Array;return ho=e}function Lu(){return _o?wo:(_o=1,wo=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e})}function Uu(){if(Oo)return jo;Oo=1;var e=Lu(),r=I();return jo=function(t,n,o){var f=n(t);return r(t)?f:e(f,o(t))}}function Fu(){return ko?So:(ko=1,So=function(){return[]})}function ee(){if(Co)return Ao;Co=1;var e=Eo?Mo:(Eo=1,Mo=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=Fu(),t=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Ao=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(f){return t.call(o,f)}))}:r}function Du(){if(Po)return Ro;Po=1;var e=Uu(),r=ee(),t=vt();return Ro=function(n){return e(n,t,r)}}function Et(){if(Io)return No;Io=1;var e=function(){if(Fo)return Uo;Fo=1;var y=tt()(Y(),"DataView");return Uo=y}(),r=Qt(),t=function(){if(Bo)return Do;Bo=1;var y=tt()(Y(),"Promise");return Do=y}(),n=function(){if(Ho)return zo;Ho=1;var y=tt()(Y(),"Set");return zo=y}(),o=function(){if($o)return Wo;$o=1;var y=tt()(Y(),"WeakMap");return Wo=y}(),f=et(),i=Pu(),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 x=f(y),m=x=="[object Object]"?y.constructor:void 0,_=m?i(m):"";if(_)switch(_){case p:return b;case g:return u;case c:return a;case s:return l;case d:return h}return x}),No=v}function ss(){if(Xo)return Vo;Xo=1;var e=te(),r=Qa(),t=function(){if(xo)return mo;xo=1;var p=bt(),g=Tu(),c=Jt(),s=Qa(),d=vo?bo:(vo=1,bo=function(m){var _=-1,A=Array(m.size);return m.forEach(function(k,P){A[++_]=[P,k]}),A}),v=yo?go:(yo=1,go=function(m){var _=-1,A=Array(m.size);return m.forEach(function(k){A[++_]=k}),A}),y=p?p.prototype:void 0,x=y?y.valueOf:void 0;return mo=function(m,_,A,k,P,M,F){switch(A){case"[object DataView]":if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(m.byteLength!=_.byteLength||!M(new g(m),new g(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+m,+_);case"[object Error]":return m.name==_.name&&m.message==_.message;case"[object RegExp]":case"[object String]":return m==_+"";case"[object Map]":var B=d;case"[object Set]":var q=1&k;if(B||(B=v),m.size!=_.size&&!q)return!1;var V=F.get(m);if(V)return V==_;k|=2,F.set(m,_);var K=s(B(m),B(_),k,P,M,F);return F.delete(m),K;case"[object Symbol]":if(x)return x.call(m)==x.call(_)}return!1}}(),n=function(){if(Lo)return To;Lo=1;var p=Du(),g=Object.prototype.hasOwnProperty;return To=function(c,s,d,v,y,x){var m=1&d,_=p(c),A=_.length;if(A!=p(s).length&&!m)return!1;for(var k=A;k--;){var P=_[k];if(!(m?P in s:g.call(s,P)))return!1}var M=x.get(c),F=x.get(s);if(M&&F)return M==s&&F==c;var B=!0;x.set(c,s),x.set(s,c);for(var q=m;++k<A;){var V=c[P=_[k]],K=s[P];if(v)var lt=m?v(K,V,P,s,c,x):v(V,K,P,c,s,x);if(!(lt===void 0?V===K||y(V,K,d,v,x):lt)){B=!1;break}q||(q=P=="constructor")}if(B&&!q){var L=c.constructor,C=s.constructor;L==C||!("constructor"in c)||!("constructor"in s)||typeof L=="function"&&L instanceof L&&typeof C=="function"&&C instanceof C||(B=!1)}return x.delete(c),x.delete(s),B}}(),o=Et(),f=I(),i=Yt(),u=Mu(),a="[object Arguments]",l="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;return Vo=function(p,g,c,s,d,v){var y=f(p),x=f(g),m=y?l:o(p),_=x?l:o(g),A=(m=m==a?h:m)==h,k=(_=_==a?h:_)==h,P=m==_;if(P&&i(p)){if(!i(g))return!1;y=!0,A=!1}if(P&&!A)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=A&&b.call(p,"__wrapped__"),F=k&&b.call(g,"__wrapped__");if(M||F){var B=M?p.value():p,q=F?g.value():g;return v||(v=new e),d(B,q,c,s,v)}}return!!P&&(v||(v=new e),n(p,g,c,s,d,v))}}function Bu(){if(qo)return Yo;qo=1;var e=ss(),r=J();return Yo=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 zu(){if(Qo)return Jo;Qo=1;var e=ft();return Jo=function(r){return r==r&&!e(r)}}function Hu(){return ra?ea:(ra=1,ea=function(e,r){return function(t){return t!=null&&t[e]===r&&(r!==void 0||e in Object(t))}})}function re(){if(ia)return aa;ia=1;var e=et(),r=J();return aa=function(t){return typeof t=="symbol"||r(t)&&e(t)=="[object Symbol]"}}function ne(){if(sa)return ua;sa=1;var e=I(),r=re(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ua=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 Wu(){if(xa)return ma;xa=1;var e=I(),r=ne(),t=function(){if(da)return pa;da=1;var o=function(){if(ha)return la;ha=1;var a=function(){if(fa)return ca;fa=1;var l=Zt();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,ca=h}();return la=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 pa=u}(),n=function(){if(ya)return ga;ya=1;var o=function(){if(va)return ba;va=1;var f=bt(),i=Ru(),u=I(),a=re(),l=f?f.prototype:void 0,h=l?l.toString:void 0;return ba=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 ga=function(f){return f==null?"":o(f)}}();return ma=function(o,f){return e(o)?o:r(o,f)?[o]:t(n(o))}}function kt(){if(_a)return wa;_a=1;var e=re();return wa=function(r){if(typeof r=="string"||e(r))return r;var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}}function $u(){if(Oa)return ja;Oa=1;var e=Wu(),r=kt();return ja=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 cs(){if(La)return Ta;La=1;var e=Bu(),r=function(){if(Ea)return Ma;Ea=1;var u=$u();return Ma=function(a,l,h){var b=a==null?void 0:u(a,l);return b===void 0?h:b}}(),t=function(){if(Pa)return Ra;Pa=1;var u=ka?Sa:(ka=1,Sa=function(l,h){return l!=null&&h in Object(l)}),a=function(){if(Ca)return Aa;Ca=1;var l=Wu(),h=ju(),b=I(),p=Ou(),g=qt(),c=kt();return Aa=function(s,d,v){for(var y=-1,x=(d=l(d,s)).length,m=!1;++y<x;){var _=c(d[y]);if(!(m=s!=null&&v(s,_)))break;s=s[_]}return m||++y!=x?m:!!(x=s==null?0:s.length)&&g(x)&&p(_,x)&&(b(s)||h(s))}}();return Ra=function(l,h){return l!=null&&a(l,h,u)}}(),n=ne(),o=zu(),f=Hu(),i=kt();return Ta=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 fs(){if(Ga)return Ka;Ga=1;var e=Ru(),r=function(){if($a)return Wa;$a=1;var o=function(){if(oa)return na;oa=1;var l=function(){if(Go)return Ko;Go=1;var p=te(),g=Bu();return Ko=function(c,s,d,v){var y=d.length,x=y,m=!v;if(c==null)return!x;for(c=Object(c);y--;){var _=d[y];if(m&&_[2]?_[1]!==c[_[0]]:!(_[0]in c))return!1}for(;++y<x;){var A=(_=d[y])[0],k=c[A],P=_[1];if(m&&_[2]){if(k===void 0&&!(A in c))return!1}else{var M=new p;if(v)var F=v(k,P,A,c,s,M);if(!(F===void 0?g(P,k,3,v,M):F))return!1}}return!0}}(),h=function(){if(ta)return Zo;ta=1;var p=zu(),g=vt();return Zo=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=Hu();return na=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=cs(),i=Cu(),u=I(),a=function(){if(Ha)return za;Ha=1;var l=Fa?Ua:(Fa=1,Ua=function(g){return function(c){return c?.[g]}}),h=function(){if(Ba)return Da;Ba=1;var g=$u();return Da=function(c){return function(s){return g(s,c)}}}(),b=ne(),p=kt();return za=function(g){return b(g)?l(p(g)):h(g)}}();return Wa=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(qa)return Ya;qa=1;var o=function(){if(Xa)return Va;Xa=1;var i=Au(),u=function(){if(Ia)return Na;Ia=1;var a=St();return Na=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 Va=u}(),f=St();return Ya=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=I();return Ka=function(o,f){return(n(o)?e:t)(o,r(f,3))}}var Za,ti,ei,ri,ni,oi,ai,ii,ui,si,ci,fi,li,hi,pi,di,bi,vi,gi,yi,it={};function Nu(){if(oi)return ni;oi=1;var e=function(){if(ri)return ei;ri=1;var r=tt(),t=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ei=t}();return ni=function(r,t,n){t=="__proto__"&&e?e(r,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[t]=n}}function Iu(){if(ii)return ai;ii=1;var e=Nu(),r=Jt(),t=Object.prototype.hasOwnProperty;return ai=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 Ot(){if(si)return ui;si=1;var e=Iu(),r=Nu();return ui=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 Ut(){if(vi)return bi;vi=1;var e=Eu(),r=function(){if(di)return pi;di=1;var n=ft(),o=Kt(),f=hi?li:(hi=1,li=function(u){var a=[];if(u!=null)for(var l in Object(u))a.push(l);return a}),i=Object.prototype.hasOwnProperty;return pi=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=St();return bi=function(n){return t(n)?e(n,!0):r(n)}}var mi,xi,wi,_i,ji,Oi,Mi,Ei,Si,ki,Ai,Ci,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,Ft,ru,nu,ou,au,Dt={exports:{}};function iu(){if(Mi)return Oi;Mi=1;var e=Lu(),r=Gt(),t=ee(),n=Fu(),o=Object.getOwnPropertySymbols;return Oi=o?function(f){for(var i=[];f;)e(i,t(f)),f=r(f);return i}:n}function Bt(){if(Ti)return Pi;Ti=1;var e=Tu();return Pi=function(r){var t=new r.constructor(r.byteLength);return new e(t).set(new e(r)),t}}function ls(){if(ru)return Ft;ru=1;var e,r,t,n,o,f,i,u=te(),a=ti?Za:(ti=1,Za=function(C,j){for(var E=-1,S=C==null?0:C.length;++E<S&&j(C[E],E,C)!==!1;);return C}),l=Iu(),h=function(){if(fi)return ci;fi=1;var C=Ot(),j=vt();return ci=function(E,S){return E&&C(S,j(S),E)}}(),b=function(){if(yi)return gi;yi=1;var C=Ot(),j=Ut();return gi=function(E,S){return E&&C(S,j(S),E)}}(),p=(mi||(mi=1,e=Dt,r=Dt.exports,t=Y(),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(C,j){if(j)return C.slice();var E=C.length,S=i?i(E):new C.constructor(E);return C.copy(S),S}),Dt.exports),g=wi?xi:(wi=1,xi=function(C,j){var E=-1,S=C.length;for(j||(j=Array(S));++E<S;)j[E]=C[E];return j}),c=function(){if(ji)return _i;ji=1;var C=Ot(),j=ee();return _i=function(E,S){return C(E,j(E),S)}}(),s=function(){if(Si)return Ei;Si=1;var C=Ot(),j=iu();return Ei=function(E,S){return C(E,j(E),S)}}(),d=Du(),v=function(){if(Ai)return ki;Ai=1;var C=Uu(),j=iu(),E=Ut();return ki=function(S){return C(S,E,j)}}(),y=Et(),x=function(){if(Ri)return Ci;Ri=1;var C=Object.prototype.hasOwnProperty;return Ci=function(j){var E=j.length,S=new j.constructor(E);return E&&typeof j[0]=="string"&&C.call(j,"index")&&(S.index=j.index,S.input=j.input),S}}(),m=function(){if(Ni)return $i;Ni=1;var C=Bt(),j=function(){if(Ui)return Li;Ui=1;var U=Bt();return Li=function(R,T){var z=T?U(R.buffer):R.buffer;return new R.constructor(z,R.byteOffset,R.byteLength)}}(),E=function(){if(Di)return Fi;Di=1;var U=/\w*$/;return Fi=function(R){var T=new R.constructor(R.source,U.exec(R));return T.lastIndex=R.lastIndex,T}}(),S=function(){if(zi)return Bi;zi=1;var U=bt(),R=U?U.prototype:void 0,T=R?R.valueOf:void 0;return Bi=function(z){return T?Object(T.call(z)):{}}}(),X=function(){if(Wi)return Hi;Wi=1;var U=Bt();return Hi=function(R,T){var z=T?U(R.buffer):R.buffer;return new R.constructor(z,R.byteOffset,R.length)}}();return $i=function(U,R,T){var z=U.constructor;switch(R){case"[object ArrayBuffer]":return C(U);case"[object Boolean]":case"[object Date]":return new z(+U);case"[object DataView]":return j(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 X(U,T);case"[object Map]":case"[object Set]":return new z;case"[object Number]":case"[object String]":return new z(U);case"[object RegExp]":return E(U);case"[object Symbol]":return S(U)}}}(),_=function(){if(Yi)return Xi;Yi=1;var C=function(){if(Vi)return Ii;Vi=1;var S=ft(),X=Object.create;return Ii=function(){function U(){}return function(R){if(!S(R))return{};if(X)return X(R);U.prototype=R;var T=new U;return U.prototype=void 0,T}}()}(),j=Gt(),E=Kt();return Xi=function(S){return typeof S.constructor!="function"||E(S)?{}:C(j(S))}}(),A=I(),k=Yt(),P=function(){if(Ji)return Gi;Ji=1;var C=function(){if(Ki)return qi;Ki=1;var U=Et(),R=J();return qi=function(T){return R(T)&&U(T)=="[object Map]"}}(),j=Nt(),E=It(),S=E&&E.isMap,X=S?j(S):C;return Gi=X}(),M=ft(),F=function(){if(eu)return tu;eu=1;var C=function(){if(Zi)return Qi;Zi=1;var U=Et(),R=J();return Qi=function(T){return R(T)&&U(T)=="[object Set]"}}(),j=Nt(),E=It(),S=E&&E.isSet,X=S?j(S):C;return tu=X}(),B=vt(),q=Ut(),V="[object Arguments]",K="[object Function]",lt="[object Object]",L={};return L[V]=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[lt]=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[K]=L["[object WeakMap]"]=!1,Ft=function C(j,E,S,X,U,R){var T,z=1&E,gt=2&E,Yu=4&E;if(S&&(T=U?S(j,X,U,R):S(j)),T!==void 0)return T;if(!M(j))return j;var ae=A(j);if(ae){if(T=x(j),!z)return g(j,T)}else{var nt=y(j),ie=nt==K||nt=="[object GeneratorFunction]";if(k(j))return p(j,z);if(nt==lt||nt==V||ie&&!U){if(T=gt||ie?{}:_(j),!z)return gt?s(j,b(T,j)):c(j,h(T,j))}else{if(!L[nt])return U?j:{};T=m(j,nt,z)}}R||(R=new u);var ue=R.get(j);if(ue)return ue;R.set(j,T),F(j)?j.forEach(function(Q){T.add(C(Q,E,S,Q,j,R))}):P(j)&&j.forEach(function(Q,ot){T.set(ot,C(Q,E,S,ot,j,R))});var se=ae?void 0:(Yu?gt?v:d:gt?q:B)(j);return a(se||j,function(Q,ot){se&&(Q=j[ot=Q]),l(T,ot,C(Q,E,S,ot,j,R))}),T},Ft}var uu,su,ut={},st={},cu,ct={},fu,lu,zt={},hs=function(){if(lu)return H;lu=1,Object.defineProperty(H,"__esModule",{value:!0}),H.ReactCSS=H.loop=H.handleActive=H.handleHover=H.hover=void 0;var e=u(function(){if(Ja)return at;Ja=1,Object.defineProperty(at,"__esModule",{value:!0}),at.flattenNames=void 0;var l=g(function(){if(Pe)return Re;Pe=1;var s=et(),d=I(),v=J();return Re=function(y){return typeof y=="string"||!d(y)&&v(y)&&s(y)=="[object String]"}}()),h=g(Lt()),b=g(function(){if(Pr)return Rr;Pr=1;var s=et(),d=Gt(),v=J(),y=Function.prototype,x=Object.prototype,m=y.toString,_=x.hasOwnProperty,A=m.call(Object);return Rr=function(k){if(!v(k)||s(k)!="[object Object]")return!1;var P=d(k);if(P===null)return!0;var M=_.call(P,"constructor")&&P.constructor;return typeof M=="function"&&M instanceof M&&m.call(M)==A}}()),p=g(fs());function g(s){return s&&s.__esModule?s:{default:s}}var c=at.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(x){return v.push(x)}):(0,b.default)(y)?(0,h.default)(y,function(x,m){x===!0&&v.push(m),v.push(m+"-"+x)}):(0,l.default)(y)&&v.push(y)}),v};return at.default=c,at}()),r=u(function(){if(au)return it;au=1,Object.defineProperty(it,"__esModule",{value:!0}),it.mergeClasses=void 0;var l=p(Lt()),h=p(function(){if(ou)return nu;ou=1;var c=ls();return nu=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=it.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(x,m){d[m]||(d[m]={}),d[m]=b({},d[m],y[m])}),v}),d};return it.default=g,it}()),t=function(){if(uu)return ut;uu=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.autoprefix=void 0;var l,h=(l=Lt())&&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=ut.autoprefix=function(c){var s={};return(0,h.default)(c,function(d,v){var y={};(0,h.default)(d,function(x,m){var _=p[m];_?y=b({},y,_(x)):y[m]=x}),s[v]=y}),s};return ut.default=g,ut}(),n=u(t),o=u(function(){if(su)return st;su=1,Object.defineProperty(st,"__esModule",{value:!0}),st.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=w.mt)&&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=st.hover=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,x,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var _=arguments.length,A=Array(_),k=0;k<_;k++)A[k]=arguments[k];return x=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(A))),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,x)}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}(v,d),v}(b.default.Component)};return st.default=g,st}()),f=u(function(){if(cu)return ct;cu=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.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=w.mt)&&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=ct.active=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,x,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var _=arguments.length,A=Array(_),k=0;k<_;k++)A[k]=arguments[k];return x=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(A))),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,x)}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}(v,d),v}(b.default.Component)};return ct.default=g,ct}()),i=u((fu||(fu=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.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}),zt));function u(l){return l&&l.__esModule?l:{default:l}}H.hover=o.default,H.handleHover=o.default,H.handleActive=f.default,H.loop=i.default;var a=H.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 H.default=a,H}();const rt=w.Tm(hs);var Ht={},ps=function(e,r,t,n){var o=e+"-"+r+"-"+t+(n?"-server":"");if(Ht[o])return Ht[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 Ht[o]=f,f},hu=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},oe=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=rt({default:{grid:{borderRadius:f,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+ps(r,t,n,o.canvas)+") center left"}}});return w.reactExports.isValidElement(u)?w.mt.cloneElement(u,hu({},u.props,{style:hu({},u.props.style,a.grid)})):w.mt.createElement("div",{style:a.grid})};oe.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ds=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},bs=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 pu(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 vs=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=pu(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),x=v-(g.getBoundingClientRect().top+window.pageYOffset);if(b==="vertical"){var m;if(m=x<0?0:x>s?1:Math.round(100*x/s)/100,h.a!==m)return{h:h.h,s:h.s,l:h.l,a:m,source:"rgb"}}else{var _;if(p!==(_=y<0?0:y>c?1:Math.round(100*y/c)/100))return{h:h.h,s:h.s,l:h.l,a:_,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)},pu(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,w.reactExports.PureComponent||w.reactExports.Component),bs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,t=this.props.rgb,n=rt({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:ds({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return w.mt.createElement("div",{style:n.alpha},w.mt.createElement("div",{style:n.checkboard},w.mt.createElement(oe,{renderers:this.props.renderers})),w.mt.createElement("div",{style:n.gradient}),w.mt.createElement("div",{style:n.container,ref:function(o){return r.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.mt.createElement("div",{style:n.pointer},this.props.pointer?w.mt.createElement(this.props.pointer,this.props):w.mt.createElement("div",{style:n.slider}))))}}]),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}}(),ys=[38,40],ms=1,ht=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,ys.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-"+ms++,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,w.reactExports.PureComponent||w.reactExports.Component),gs(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=rt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return w.mt.createElement("div",{style:t.wrap},w.mt.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?w.mt.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 du(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 ws=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=du(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 x;if(x=y<0?359:y>c?0:360*(-100*y/c+100)/100,b.h!==x)return{h:x,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()},du(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,w.reactExports.PureComponent||w.reactExports.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=rt({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 w.mt.createElement("div",{style:o.hue},w.mt.createElement("div",{className:"hue-"+n,style:o.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.mt.createElement("style",null,`
9
+ .hue-horizontal {
10
+ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
11
+ 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
12
+ background: -webkit-linear-gradient(to right, #f00 0%, #ff0
13
+ 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
14
+ }
15
+
16
+ .hue-vertical {
17
+ background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
18
+ #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
19
+ background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
20
+ #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
21
+ }
22
+ `),w.mt.createElement("div",{style:o.pointer},this.props.pointer?w.mt.createElement(this.props.pointer,this.props):w.mt.createElement("div",{style:o.slider}))))}}]),e}(),_s=typeof global=="object"&&global&&global.Object===Object&&global,js=typeof self=="object"&&self&&self.Object===Object&&self,Vu=_s||js||Function("return this")(),At=Vu.Symbol,Xu=Object.prototype,Os=Xu.hasOwnProperty,Ms=Xu.toString,pt=At?At.toStringTag:void 0,Es=Object.prototype.toString,bu=At?At.toStringTag:void 0;function Ct(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}yt.string,yt.oneOf([0,1,2,3,4,5]),yt.number,yt.object;var Wt=function(){return Vu.Date.now()},Ss=/\s/,ks=/^\s+/,As=/^[-+]0x[0-9a-f]+$/i,Cs=/^0b[01]+$/i,Rs=/^0o[0-7]+$/i,Ps=parseInt;function vu(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]":bu&&bu in Object(f)?function(u){var a=Os.call(u,pt),l=u[pt];try{u[pt]=void 0;var h=!0}catch{}var b=Ms.call(u);return h&&(a?u[pt]=l:delete u[pt]),b}(f):(i=f,Es.call(i));var i}(r)=="[object Symbol]")return NaN;var r,t;if(Ct(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ct(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--&&Ss.test(i.charAt(u)););return u}(f)+1).replace(ks,"")}(e);var o=Cs.test(e);return o||Rs.test(e)?Ps(e.slice(2),o?2:8):As.test(e)?NaN:+e}var Ts=Math.max,Ls=Math.min,Us=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,x=1-v/g;return{h:l.h,s:y,v:x,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,Ct(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,x=!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 _(M){var F=M-s;return s===void 0||F>=a||F<0||y&&M-d>=p}function A(){var M,F,B=Wt();if(_(B))return k(B);c=setTimeout(A,(F=a-((M=B)-s),y?Ls(F,p-(M-d)):F))}function k(M){return c=void 0,x&&h?m(M):(h=b=void 0,g)}function P(){var M,F=Wt(),B=_(F);if(h=arguments,b=this,s=F,B){if(c===void 0)return d=M=s,c=setTimeout(A,a),v?m(M):g;if(y)return clearTimeout(c),c=setTimeout(A,a),m(s)}return c===void 0&&(c=setTimeout(A,a)),g}return a=vu(a)||0,Ct(l)&&(v=!!l.leading,p=(y="maxWait"in l)?Ts(vu(l.maxWait)||0,a):p,x="trailing"in l?!!l.trailing:x),P.cancel=function(){c!==void 0&&clearTimeout(c),d=0,h=s=b=c=void 0},P.flush=function(){return c===void 0?g:k(Wt())},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,w.reactExports.PureComponent||w.reactExports.Component),Us(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=rt({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 w.mt.createElement("div",{style:a.color,ref:function(l){return r.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.mt.createElement("style",null,`
24
+ .saturation-white {
25
+ background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
26
+ background: linear-gradient(to right, #fff, rgba(255,255,255,0));
27
+ }
28
+ .saturation-black {
29
+ background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
30
+ background: linear-gradient(to top, #000, rgba(0,0,0,0));
31
+ }
32
+ `),w.mt.createElement("div",{style:a.white,className:"saturation-white"},w.mt.createElement("div",{style:a.black,className:"saturation-black"}),w.mt.createElement("div",{style:a.pointer},this.props.pointer?w.mt.createElement(this.props.pointer,this.props):w.mt.createElement("div",{style:a.circle}))))}}])})();var Fs=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},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 gu(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 yu=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=gu(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})},gu(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,w.mt.Component),Ds(t,[{key:"render",value:function(){return w.mt.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},w.mt.createElement(e,Fs({},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=rt({default:{swatch:yu({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)}),w.mt.createElement("div",yu({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&&w.mt.createElement(oe,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Bs=function(e){var r=e.onChange,t=e.rgb,n=e.hsl,o=e.hex,f=e.disableAlpha,i=rt({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 w.mt.createElement("div",{style:i.fields,className:"flexbox-fix"},w.mt.createElement("div",{style:i.double},w.mt.createElement(ht,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:u})),w.mt.createElement("div",{style:i.single},w.mt.createElement(ht,{style:{input:i.input,label:i.label},label:"r",value:t.r,onChange:u,dragLabel:"true",dragMax:"255"})),w.mt.createElement("div",{style:i.single},w.mt.createElement(ht,{style:{input:i.input,label:i.label},label:"g",value:t.g,onChange:u,dragLabel:"true",dragMax:"255"})),w.mt.createElement("div",{style:i.single},w.mt.createElement(ht,{style:{input:i.input,label:i.label},label:"b",value:t.b,onChange:u,dragLabel:"true",dragMax:"255"})),w.mt.createElement("div",{style:i.alpha},w.mt.createElement(ht,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*t.a),onChange:u,dragLabel:"true",dragMax:"100"})))};class zs extends(w.reactExports.PureComponent||w.reactExports.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 w.jsxRuntimeExports.jsxs("div",{style:u.color,ref:a=>this.container=a,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[w.jsxRuntimeExports.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
+ `}),w.jsxRuntimeExports.jsxs("div",{style:u.white,className:"saturation-white",children:[w.jsxRuntimeExports.jsx("div",{style:u.black,className:"saturation-black"}),w.jsxRuntimeExports.jsx("div",{style:u.pointer,children:this.props.pointer?w.jsxRuntimeExports.jsx(this.props.pointer,{...this.props}):w.jsxRuntimeExports.jsx("div",{style:u.circle})})]})]})}}const Vt=(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}},mu=w.reactExports.memo(e=>{const{selectedColor:r,onColorChange:t,renderers:n,disableAlpha:o=!1,style:f=w.ro.EmptyCssProperties,...i}=e,u=w.useTheme(),[a,l]=w.reactExports.useState(()=>Vt(r)),[h,b]=w.reactExports.useState(a.hsl.h??0),p=w.reactExports.useCallback(s=>{let d=Vt(s,h);return b(d.hsl.h??0),l(d),d},[h]),g=w.reactExports.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]);w.reactExports.useLayoutEffect(()=>{p(r)},[r,p]);const c=w.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:w.jsxRuntimeExports.jsx(vs,{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 w.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",...f},...i,children:[w.jsxRuntimeExports.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:w.jsxRuntimeExports.jsx(zs,{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})}),w.jsxRuntimeExports.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[w.jsxRuntimeExports.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[w.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:w.jsxRuntimeExports.jsx(ws,{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]}),w.jsxRuntimeExports.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[w.jsxRuntimeExports.jsx(w.sp,{grey:u.palette.text.icon??u.palette.action.active}),w.jsxRuntimeExports.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)"}})]})]}),w.jsxRuntimeExports.jsx(w.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:w.jsxRuntimeExports.jsx(Bs,{rgb:a.rgb,hsl:a.hsl,hex:a.hex,disableAlpha:o,onChange:g})})]})});exports.CustomColorPanel=mu,exports.default=mu,exports.toState=Vt;
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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"});exports.default={CONVERT:{s:"Converts a number from one measurement system to another",p:{number:{d:"is the value in from_unit to convert."},fromUnit:{d:"is the units for number."},toUnit:{d:"is the units for the result"}}}};
@@ -0,0 +1,7 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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"});var ce,ue,ne={},ee={},U={},oe={},H={};function Ne(){if(ue)return H;ue=1;var g=H&&H.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=H&&H.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([D,O])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.JsDelivrSourceResolver=void 0;var j=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return H.JsDelivrSourceResolver=j,H}var le,pe,he,N={},V={};function se(){if(pe)return le;function g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function x(e,t){for(var o,n="",r=0,s=-1,l=0,f=0;f<=e.length;++f){if(f<e.length)o=e.charCodeAt(f);else{if(o===47)break;o=47}if(o===47){if(s!==f-1&&l!==1)if(s!==f-1&&l===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var D=n.lastIndexOf("/");if(D!==n.length-1){D===-1?(n="",r=0):r=(n=n.slice(0,D)).length-1-n.lastIndexOf("/"),s=f,l=0;continue}}else if(n.length===2||n.length===1){n="",r=0,s=f,l=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(s+1,f):n=e.slice(s+1,f),r=f-s-1;s=f,l=0}else o===46&&l!==-1?++l:l=-1}return n}pe=1;var j={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(e===void 0&&(e=process.cwd()),r=e),g(r),r.length!==0&&(t=r+"/"+t,o=r.charCodeAt(0)===47)}return t=x(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(g(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return(e=x(e,!t)).length!==0||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return g(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];g(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":j.normalize(e)},relative:function(e,t){if(g(e),g(t),e===t||(e=j.resolve(e))===(t=j.resolve(t)))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var n=e.length,r=n-o,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var l=t.length-s,f=r<l?r:l,D=-1,O=0;O<=f;++O){if(O===f){if(l>f){if(t.charCodeAt(s+O)===47)return t.slice(s+O+1);if(O===0)return t.slice(s+O)}else r>f&&(e.charCodeAt(o+O)===47?D=O:O===0&&(D=0));break}var c=e.charCodeAt(o+O);if(c!==t.charCodeAt(s+O))break;c===47&&(D=O)}var i="";for(O=o+D+1;O<=n;++O)O!==n&&e.charCodeAt(O)!==47||(i.length===0?i+="..":i+="/..");return i.length>0?i+t.slice(s+D):(s+=D,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(g(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,n=-1,r=!0,s=e.length-1;s>=1;--s)if((t=e.charCodeAt(s))===47){if(!r){n=s;break}}else r=!1;return n===-1?o?"/":".":o&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');g(e);var o,n=0,r=-1,s=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,f=-1;for(o=e.length-1;o>=0;--o){var D=e.charCodeAt(o);if(D===47){if(!s){n=o+1;break}}else f===-1&&(s=!1,f=o+1),l>=0&&(D===t.charCodeAt(l)?--l===-1&&(r=o):(l=-1,r=f))}return n===r?r=f:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else r===-1&&(s=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){g(e);for(var t=-1,o=0,n=-1,r=!0,s=0,l=e.length-1;l>=0;--l){var f=e.charCodeAt(l);if(f!==47)n===-1&&(r=!1,n=l+1),f===46?t===-1?t=l:s!==1&&(s=1):t!==-1&&(s=-1);else if(!r){o=l+1;break}}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return o=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),o?o===t.root?o+n:o+"/"+n:n;var t,o,n},parse:function(e){g(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o,n=e.charCodeAt(0),r=n===47;r?(t.root="/",o=1):o=0;for(var s=-1,l=0,f=-1,D=!0,O=e.length-1,c=0;O>=o;--O)if((n=e.charCodeAt(O))!==47)f===-1&&(D=!1,f=O+1),n===46?s===-1?s=O:c!==1&&(c=1):s!==-1&&(c=-1);else if(!D){l=O+1;break}return s===-1||f===-1||c===0||c===1&&s===f-1&&s===l+1?f!==-1&&(t.base=t.name=l===0&&r?e.slice(1,f):e.slice(l,f)):(l===0&&r?(t.name=e.slice(1,s),t.base=e.slice(1,f)):(t.name=e.slice(l,s),t.base=e.slice(l,f)),t.ext=e.slice(s,f)),l>0?t.dir=e.slice(0,l-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return j.posix=j,le=j}var fe,te={};function Ie(){if(fe)return te;fe=1;var g=te&&te.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(te,"__esModule",{value:!0}),te.importResourcePathToString=void 0;var x=g(se());return te.importResourcePathToString=function(j){var e;switch(j.kind){case"package":return x.default.join(j.packageName,(e=j.importPath)!==null&&e!==void 0?e:"","package.json");case"relative":return x.default.join(j.sourcePath,j.importPath);case"relative-in-package":return x.default.join(j.packageName,j.sourcePath,j.importPath)}},te}var de,ie={};function ve(){return de||(de=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.invokeUpdate=void 0,ie.invokeUpdate=function(g,x){var j,e="".concat(g.type,": ");switch(g.type){case"CodeChanged":case"ResolveNewImports":e+="";break;case"LookedUpTypeFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":e+='package.json for package "'.concat(g.package,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up").concat(g.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":e+='"'.concat(g.importPath,'" was loaded from cache');break;case"StoredToCache":e+='"'.concat(g.importPath,'" was stored to cache')}e.endsWith(": ")&&(e=e.slice(void 0,-2)),(j=x.onUpdate)===null||j===void 0||j.call(x,g,e)}),ie}var ye,ge,me,be,ae={};function ke(){if(ye)return ae;ye=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.RecursionDepth=void 0;var g=function(){function x(j,e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.options=j,this.fileRecursionDepth=e,this.packageRecursionDepth=t}return x.prototype.nextPackage=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},x.prototype.nextFile=function(){return new x(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},x.prototype.same=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},x.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},x}();return ae.RecursionDepth=g,ae}function Le(){if(me)return U;me=1;var g=U&&U.__assign||function(){return g=Object.assign||function(i){for(var b,k=1,A=arguments.length;k<A;k++)for(var y in b=arguments[k])Object.prototype.hasOwnProperty.call(b,y)&&(i[y]=b[y]);return i},g.apply(this,arguments)},x=U&&U.__createBinding||(Object.create?function(i,b,k,A){A===void 0&&(A=k);var y=Object.getOwnPropertyDescriptor(b,k);y&&!("get"in y?!b.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return b[k]}}),Object.defineProperty(i,A,y)}:function(i,b,k,A){A===void 0&&(A=k),i[A]=b[k]}),j=U&&U.__setModuleDefault||(Object.create?function(i,b){Object.defineProperty(i,"default",{enumerable:!0,value:b})}:function(i,b){i.default=b}),e=U&&U.__importStar||function(i){if(i&&i.__esModule)return i;var b={};if(i!=null)for(var k in i)k!=="default"&&Object.prototype.hasOwnProperty.call(i,k)&&x(b,i,k);return j(b,i),b},t=U&&U.__awaiter||function(i,b,k,A){return new(k||(k=Promise))(function(y,T){function E(X){try{Z(A.next(X))}catch(R){T(R)}}function Y(X){try{Z(A.throw(X))}catch(R){T(R)}}function Z(X){var R;X.done?y(X.value):(R=X.value,R instanceof k?R:new k(function(G){G(R)})).then(E,Y)}Z((A=A.apply(i,b||[])).next())})},o=U&&U.__generator||function(i,b){var k,A,y,T,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function Y(Z){return function(X){return function(R){if(k)throw new TypeError("Generator is already executing.");for(;E;)try{if(k=1,A&&(y=2&R[0]?A.return:R[0]?A.throw||((y=A.return)&&y.call(A),0):A.next)&&!(y=y.call(A,R[1])).done)return y;switch(A=0,y&&(R=[2&R[0],y.value]),R[0]){case 0:case 1:y=R;break;case 4:return E.label++,{value:R[1],done:!1};case 5:E.label++,A=R[1],R=[0];continue;case 7:R=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||R[0]!==6&&R[0]!==2)){E=0;continue}if(R[0]===3&&(!y||R[1]>y[0]&&R[1]<y[3])){E.label=R[1];break}if(R[0]===6&&E.label<y[1]){E.label=y[1],y=R;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(R);break}y[2]&&E.ops.pop(),E.trys.pop();continue}R=b.call(i,E)}catch(G){R=[6,G],A=0}finally{k=y=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([Z,X])}}},n=U&&U.__values||function(i){var b=typeof Symbol=="function"&&Symbol.iterator,k=b&&i[b],A=0;if(k)return k.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&A>=i.length&&(i=void 0),{value:i&&i[A++],done:!i}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(U,"__esModule",{value:!0}),U.AutoTypingsCore=void 0;var r=function(){if(ce)return oe;ce=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.DummySourceCache=void 0;var i=function(){function b(){}return b.prototype.getFile=function(k){return Promise.resolve(void 0)},b.prototype.isFileAvailable=function(k){return Promise.resolve(!1)},b.prototype.storeFile=function(k,A){return Promise.resolve(void 0)},b.prototype.clear=function(){return Promise.resolve(void 0)},b}();return oe.DummySourceCache=i,oe}(),s=Ne(),l=function(){if(ge)return N;ge=1;var i=N&&N.__assign||function(){return i=Object.assign||function(_){for(var a,h=1,v=arguments.length;h<v;h++)for(var u in a=arguments[h])Object.prototype.hasOwnProperty.call(a,u)&&(_[u]=a[u]);return _},i.apply(this,arguments)},b=N&&N.__createBinding||(Object.create?function(_,a,h,v){v===void 0&&(v=h);var u=Object.getOwnPropertyDescriptor(a,h);u&&!("get"in u?!a.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return a[h]}}),Object.defineProperty(_,v,u)}:function(_,a,h,v){v===void 0&&(v=h),_[v]=a[h]}),k=N&&N.__setModuleDefault||(Object.create?function(_,a){Object.defineProperty(_,"default",{enumerable:!0,value:a})}:function(_,a){_.default=a}),A=N&&N.__importStar||function(_){if(_&&_.__esModule)return _;var a={};if(_!=null)for(var h in _)h!=="default"&&Object.prototype.hasOwnProperty.call(_,h)&&b(a,_,h);return k(a,_),a},y=N&&N.__awaiter||function(_,a,h,v){return new(h||(h=Promise))(function(u,S){function m(C){try{p(v.next(C))}catch(d){S(d)}}function w(C){try{p(v.throw(C))}catch(d){S(d)}}function p(C){var d;C.done?u(C.value):(d=C.value,d instanceof h?d:new h(function(P){P(d)})).then(m,w)}p((v=v.apply(_,a||[])).next())})},T=N&&N.__generator||function(_,a){var h,v,u,S,m={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return S={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function w(p){return function(C){return function(d){if(h)throw new TypeError("Generator is already executing.");for(;m;)try{if(h=1,v&&(u=2&d[0]?v.return:d[0]?v.throw||((u=v.return)&&u.call(v),0):v.next)&&!(u=u.call(v,d[1])).done)return u;switch(v=0,u&&(d=[2&d[0],u.value]),d[0]){case 0:case 1:u=d;break;case 4:return m.label++,{value:d[1],done:!1};case 5:m.label++,v=d[1],d=[0];continue;case 7:d=m.ops.pop(),m.trys.pop();continue;default:if(!((u=(u=m.trys).length>0&&u[u.length-1])||d[0]!==6&&d[0]!==2)){m=0;continue}if(d[0]===3&&(!u||d[1]>u[0]&&d[1]<u[3])){m.label=d[1];break}if(d[0]===6&&m.label<u[1]){m.label=u[1],u=d;break}if(u&&m.label<u[2]){m.label=u[2],m.ops.push(d);break}u[2]&&m.ops.pop(),m.trys.pop();continue}d=a.call(_,m)}catch(P){d=[6,P],v=0}finally{h=u=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([p,C])}}},E=N&&N.__values||function(_){var a=typeof Symbol=="function"&&Symbol.iterator,h=a&&_[a],v=0;if(h)return h.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&v>=_.length&&(_=void 0),{value:_&&_[v++],done:!_}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=N&&N.__read||function(_,a){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var v,u,S=h.call(_),m=[];try{for(;(a===void 0||a-- >0)&&!(v=S.next()).done;)m.push(v.value)}catch(w){u={error:w}}finally{try{v&&!v.done&&(h=S.return)&&h.call(S)}finally{if(u)throw u.error}}return m};Object.defineProperty(N,"__esModule",{value:!0}),N.ImportResolver=void 0;var Z=function(){if(he)return V;he=1;var _=V&&V.__createBinding||(Object.create?function(w,p,C,d){d===void 0&&(d=C);var P=Object.getOwnPropertyDescriptor(p,C);P&&!("get"in P?!p.__esModule:P.writable||P.configurable)||(P={enumerable:!0,get:function(){return p[C]}}),Object.defineProperty(w,d,P)}:function(w,p,C,d){d===void 0&&(d=C),w[d]=p[C]}),a=V&&V.__setModuleDefault||(Object.create?function(w,p){Object.defineProperty(w,"default",{enumerable:!0,value:p})}:function(w,p){w.default=p}),h=V&&V.__importStar||function(w){if(w&&w.__esModule)return w;var p={};if(w!=null)for(var C in w)C!=="default"&&Object.prototype.hasOwnProperty.call(w,C)&&_(p,w,C);return a(p,w),p},v=V&&V.__read||function(w,p){var C=typeof Symbol=="function"&&w[Symbol.iterator];if(!C)return w;var d,P,I=C.call(w),L=[];try{for(;(p===void 0||p-- >0)&&!(d=I.next()).done;)L.push(d.value)}catch(M){P={error:M}}finally{try{d&&!d.done&&(C=I.return)&&C.call(I)}finally{if(P)throw P.error}}return L},u=V&&V.__spreadArray||function(w,p,C){if(C||arguments.length===2)for(var d,P=0,I=p.length;P<I;P++)!d&&P in p||(d||(d=Array.prototype.slice.call(p,0,P)),d[P]=p[P]);return w.concat(d||Array.prototype.slice.call(p))};Object.defineProperty(V,"__esModule",{value:!0}),V.DependencyParser=void 0;var S=h(se()),m=function(){function w(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return w.prototype.parseDependencies=function(p,C){var d=this;return u([],v(p.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(P){var I,L;return(L=(I=P[1])!==null&&I!==void 0?I:P[2])!==null&&L!==void 0?L:P[3]}).filter(function(P){return!!P}).map(function(P){return d.resolvePath(P,C)})},w.prototype.resolvePath=function(p,C){var d=p.match(this.REGEX_NODE_MODULE);if(d)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(d[1],".d.ts"),sourcePath:""};if(typeof C=="string"){if(p.startsWith("."))return{kind:"relative",importPath:p,sourcePath:C};if(p.startsWith("@")){var P=p.split("/");return{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}}return{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}switch(C.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return p.startsWith(".")?{kind:"relative-in-package",packageName:C.packageName,sourcePath:S.join(C.sourcePath,C.importPath),importPath:p}:p.startsWith("@")?(P=p.split("/"),{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}):{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}},w}();return V.DependencyParser=m,V}(),X=Ie(),R=A(se()),G=ve(),Me=ke(),Ue=function(){function _(a){var h,v;if(this.options=a,this.loadedFiles=[],this.dependencyParser=new Z.DependencyParser,this.cache=a.sourceCache,this.sourceResolver=a.sourceResolver,this.newImportsResolved=!1,this.monaco=a.monaco,a.preloadPackages&&a.versions){this.versions=a.versions;try{for(var u=E(Object.entries(a.versions)),S=u.next();!S.done;S=u.next()){var m=Y(S.value,2),w=m[0];m[1],this.resolveImport({kind:"package",packageName:w,importPath:""},new Me.RecursionDepth(this.options)).catch(function(p){console.error(p)})}}catch(p){h={error:p}}finally{try{S&&!S.done&&(v=u.return)&&v.call(u)}finally{if(h)throw h.error}}}}return _.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},_.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},_.prototype.resolveImportsInFile=function(a,h,v){var u,S,m;return y(this,void 0,void 0,function(){var w,p,C,d,P,I,L,M;return T(this,function(F){switch(F.label){case 0:if(v.shouldStop())return[2];w=this.dependencyParser.parseDependencies(a,h),F.label=1;case 1:F.trys.push([1,8,9,10]),p=E(w),C=p.next(),F.label=2;case 2:if(C.done)return[3,7];d=C.value,F.label=3;case 3:return F.trys.push([3,5,,6]),[4,this.resolveImport(d,v)];case 4:return F.sent(),[3,6];case 5:return P=F.sent(),this.options.onError?(S=(u=this.options).onError)===null||S===void 0||S.call(u,(m=P.message)!==null&&m!==void 0?m:P):console.error(P),[3,6];case 6:return C=p.next(),[3,2];case 7:return[3,10];case 8:return I=F.sent(),L={error:I},[3,10];case 9:try{C&&!C.done&&(M=p.return)&&M.call(p)}finally{if(L)throw L.error}return[7];case 10:return[2]}})})},_.prototype.resolveImport=function(a,h){return y(this,void 0,void 0,function(){var v,u;return T(this,function(S){switch(S.label){case 0:if(v=this.hashImportResourcePath(a),this.loadedFiles.includes(v))return[2];switch(this.loadedFiles.push(v),a.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(a)];case 2:return(u=S.sent())?[4,this.resolveImportInPackage(u,h.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,S.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(a,h.nextFile())];case 8:return[2]}})})},_.prototype.resolveImportInPackage=function(a,h){return y(this,void 0,void 0,function(){var v,u,S;return T(this,function(m){switch(m.label){case 0:return[4,this.loadSourceFileContents(a)];case 1:return(v=m.sent())?(u=v.source,S=v.at,this.createModel(u,this.monaco.Uri.parse(this.options.fileRootPath+R.join("node_modules/".concat(a.packageName),S))),[4,this.resolveImportsInFile(u,{kind:"relative-in-package",packageName:a.packageName,sourcePath:R.dirname(S),importPath:""},h)]):[3,3];case 2:m.sent(),m.label=3;case 3:return[2]}})})},_.prototype.resolveImportFromPackageRoot=function(a){var h,v,u,S,m,w,p,C,d;return y(this,void 0,void 0,function(){var P,I,L,M,F,B,re,J,W;return T(this,function($){switch($.label){case 0:return P={type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(h=this.versions)!==null&&h!==void 0&&h[a.packageName]||(v=this.versions)!==null&&v!==void 0&&v["@types/"+a.packageName]?(I=(S=(u=a.importPath)===null||u===void 0?void 0:u.length)!==null&&S!==void 0&&S,L=I?"/".concat(a.importPath):"",[4,this.resolvePackageJson(a.packageName,(m=this.versions)===null||m===void 0?void 0:m[a.packageName],I?a.importPath:void 0)]):((0,G.invokeUpdate)(P,this.options),[2]);case 1:return(M=$.sent())||!I?[3,3]:[4,this.resolvePackageJson(a.packageName,(w=this.versions)===null||w===void 0?void 0:w[a.packageName])];case 2:M=$.sent(),L="",$.label=3;case 3:return M?(F=JSON.parse(M)).typings||F.types?(W=F.typings||F.types,this.createModel(M,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(a.packageName).concat(L,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(a.packageName,F.version),[2,{kind:"relative-in-package",packageName:a.packageName,sourcePath:"",importPath:R.join((p=a.importPath)!==null&&p!==void 0?p:"",W.startsWith("./")?W.slice(2):W)}]):[3,4]:[3,7];case 4:return B="@types/".concat(a.packageName.startsWith("@")?a.packageName.slice(1).replace(/\//,"__"):a.packageName),[4,this.resolvePackageJson(B,(C=this.versions)===null||C===void 0?void 0:C[B])];case 5:if(re=$.sent()){if((J=JSON.parse(re)).typings||J.types)return W=J.typings||J.types,this.createModel(re,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(B,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:B,definitelyTyped:!0,success:!0},this.options),this.setVersion(B,J.version),[2,{kind:"relative-in-package",packageName:B,sourcePath:"",importPath:R.join((d=a.importPath)!==null&&d!==void 0?d:"",W.startsWith("./")?W.slice(2):W)}];(0,G.invokeUpdate)(P,this.options)}else(0,G.invokeUpdate)(P,this.options);$.label=6;case 6:return[3,8];case 7:(0,G.invokeUpdate)(P,this.options),$.label=8;case 8:return[2]}})})},_.prototype.loadSourceFileContents=function(a){return y(this,void 0,void 0,function(){var h,v,u,S,m,w,p,C,d,P,I,L,M,F,B,re;return T(this,function(J){switch(J.label){case 0:return h=R.join(a.packageName,a.sourcePath,a.importPath),v={type:"LookedUpTypeFile",path:h,definitelyTyped:!1,success:!1},u=a.packageName,S=this.getVersion(a.packageName),(m=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(W){return a.importPath.endsWith(W)}).reduce(function(W,$){return W||$},!1)?[4,this.resolveSourceFile(u,S,R.join(a.sourcePath,a.importPath))]:[3,2];case 1:return(F=J.sent())?[2,{source:F,at:R.join(a.sourcePath,a.importPath)}]:[3,9];case 2:J.trys.push([2,7,8,9]),w=E(m),p=w.next(),J.label=3;case 3:return p.done?[3,6]:(C=p.value,d=R.join(a.sourcePath,a.importPath),M=(C===".d.ts"&&d.endsWith(".js")?d.slice(0,-3):d)+C,[4,this.resolveSourceFile(u,S,M)]);case 4:if(F=J.sent(),(0,G.invokeUpdate)({type:"AttemptedLookUpFile",path:R.join(u,M),success:!!F},this.options),F)return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=5;case 5:return p=w.next(),[3,3];case 6:return[3,9];case 7:return P=J.sent(),B={error:P},[3,9];case 8:try{p&&!p.done&&(re=w.return)&&re.call(w)}finally{if(B)throw B.error}return[7];case 9:return[4,this.resolvePackageJson(u,S,R.join(a.sourcePath,a.importPath))];case 10:return(I=J.sent())&&(L=JSON.parse(I).types)?(M=R.join(a.sourcePath,a.importPath,L),[4,this.resolveSourceFile(u,S,M)]):[3,12];case 11:if(F=J.sent())return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=12;case 12:return(0,G.invokeUpdate)(v,this.options),[2,null]}})})},_.prototype.getVersion=function(a){var h;return(h=this.versions)===null||h===void 0?void 0:h[a]},_.prototype.setVersions=function(a){var h,v;this.versions=a,(v=(h=this.options).onUpdateVersions)===null||v===void 0||v.call(h,a)},_.prototype.setVersion=function(a,h){var v;this.setVersions(i(i({},this.versions),((v={})[a]=h,v)))},_.prototype.createModel=function(a,h){h=h.with({path:h.path.replace("@types/","")}),this.monaco.editor.getModel(h)||(this.monaco.editor.createModel(a,"typescript",h),this.newImportsResolved=!0)},_.prototype.hashImportResourcePath=function(a){return(0,X.importResourcePathToString)(a)},_.prototype.resolvePackageJson=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v??"","package.json"),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?m==null?[3,5]:(w=m,[3,7]):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolvePackageJson(a,h,v)];case 9:return(m=p.sent())&&this.cache.storeFile(u,m),[2,m]}})})},_.prototype.resolveSourceFile=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?((0,G.invokeUpdate)({type:"LoadedFromCache",importPath:u},this.options),m==null?[3,5]:(w=m,[3,7])):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolveSourceFile(a,h,v)];case 9:return(m=p.sent())&&((0,G.invokeUpdate)({type:"StoredToCache",importPath:u},this.options),this.cache.storeFile(u,m)),[2,m]}})})},_}();return N.ImportResolver=Ue,N}(),f=e(se()),D=ve(),O=ke(),c=function(){function i(b,k){var A=this;this.editor=b,this.options=k,this.disposables=[],this.importResolver=new l.ImportResolver(k);var y=b.onDidChangeModelContent(function(T){A.debouncedResolveContents()});this.disposables.push(y),this.resolveContents(),k.dontAdaptEditorOptions||k.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(g(g({},k.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:k.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:k.fileRootPath}))}return i.create=function(b,k){var A,y;return t(this,void 0,void 0,function(){var T;return o(this,function(E){if(k?.shareCache&&k.sourceCache&&!i.sharedCache&&(i.sharedCache=k.sourceCache),!(T=k?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new i(b,g(g({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(A=i.sharedCache)!==null&&A!==void 0?A:new r.DummySourceCache,sourceResolver:(y=k?.sourceResolver)!==null&&y!==void 0?y:new s.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},k),{monaco:T}))]})})},i.prototype.dispose=function(){var b,k;try{for(var A=n(this.disposables),y=A.next();!y.done;y=A.next())y.value.dispose()}catch(T){b={error:T}}finally{try{y&&!y.done&&(k=A.return)&&k.call(A)}finally{if(b)throw b.error}}},i.prototype.setVersions=function(b){this.importResolver.setVersions(b),this.options.versions=b},i.prototype.clearCache=function(){return t(this,void 0,void 0,function(){return o(this,function(b){switch(b.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return b.sent(),[2]}})})},i.prototype.debouncedResolveContents=function(){var b=this;this.isResolving||((0,D.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return t(b,void 0,void 0,function(){return o(this,function(k){switch(k.label){case 0:return[4,this.resolveContents()];case 1:return k.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},i.prototype.resolveContents=function(){var b;return t(this,void 0,void 0,function(){var k,A,y,T;return o(this,function(E){switch(E.label){case 0:if(this.isResolving=!0,(0,D.invokeUpdate)({type:"ResolveNewImports"},this.options),!(k=this.editor.getModel()))throw Error("No model");A=k.getLinesContent(),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(A.join(`
7
+ `),f.dirname(k.uri.toString()),new O.RecursionDepth(this.options))];case 2:return E.sent(),[3,4];case 3:if(y=E.sent(),!this.options.onError)throw y;return this.options.onError((b=y.message)!==null&&b!==void 0?b:y),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(T=this.editor.getPosition(),k.setValue(k.getValue()),T&&this.editor.setPosition(T)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},i}();return U.AutoTypingsCore=c,U}var we,z={},_e,Pe,Oe,je,Re,Ce,Se,xe,Ae={},De={},Ee={},Te={},Q={};const Ge=function(g,x){for(var j=0;j<x.length;j++){const e=x[j];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in g)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(g,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[xe?Se:(xe=1,Ce||(Ce=1,q=ne,Fe=ne&&ne.__createBinding||(Object.create?function(g,x,j,e){e===void 0&&(e=j);var t=Object.getOwnPropertyDescriptor(x,j);t&&!("get"in t?!x.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return x[j]}}),Object.defineProperty(g,e,t)}:function(g,x,j,e){e===void 0&&(e=j),g[e]=x[j]}),K=ne&&ne.__exportStar||function(g,x){for(var j in g)j==="default"||Object.prototype.hasOwnProperty.call(x,j)||Fe(x,g,j)},Object.defineProperty(q,"__esModule",{value:!0}),K(function(){if(be)return ee;be=1;var g,x=ee&&ee.__extends||(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])})(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}g(e,t),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AutoTypings=void 0;var j=function(e){function t(o,n){return e.call(this,o,n)||this}return x(t,e),t}(Le().AutoTypingsCore);return ee.AutoTypings=j,ee}(),q),K(Ie(),q),K(function(){if(we)return z;we=1;var g=z&&z.__awaiter||function(t,o,n,r){return new(n||(n=Promise))(function(s,l){function f(c){try{O(r.next(c))}catch(i){l(i)}}function D(c){try{O(r.throw(c))}catch(i){l(i)}}function O(c){var i;c.done?s(c.value):(i=c.value,i instanceof n?i:new n(function(b){b(i)})).then(f,D)}O((r=r.apply(t,o||[])).next())})},x=z&&z.__generator||function(t,o){var n,r,s,l,f={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function D(O){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;f;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return f.label++,{value:i[1],done:!1};case 5:f.label++,r=i[1],i=[0];continue;case 7:i=f.ops.pop(),f.trys.pop();continue;default:if(!((s=(s=f.trys).length>0&&s[s.length-1])||i[0]!==6&&i[0]!==2)){f=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){f.label=i[1];break}if(i[0]===6&&f.label<s[1]){f.label=s[1],s=i;break}if(s&&f.label<s[2]){f.label=s[2],f.ops.push(i);break}s[2]&&f.ops.pop(),f.trys.pop();continue}i=o.call(t,f)}catch(b){i=[6,b],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([O,c])}}},j=z&&z.__values||function(t){var o=typeof Symbol=="function"&&Symbol.iterator,n=o&&t[o],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0}),z.LocalStorageCache=void 0;var e=function(){function t(){this.localCache={}}return t.prototype.getFile=function(o){var n;return g(this,void 0,void 0,function(){return x(this,function(r){try{return[2,(n=localStorage.getItem(t.LOCALSTORAGE_PREFIX+o))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[o]]}return[2]})})},t.prototype.storeFile=function(o,n){return g(this,void 0,void 0,function(){return x(this,function(r){this.localCache[o]=n;try{localStorage.setItem(t.LOCALSTORAGE_PREFIX+o,n)}catch{}return[2]})})},t.prototype.clear=function(){return g(this,void 0,void 0,function(){var o,n,r,s,l,f,D;return x(this,function(O){for(this.localCache={},o=[],n=0;n<localStorage.length;n++)(l=localStorage.key(n))!=null&&l.startsWith(t.LOCALSTORAGE_PREFIX)&&o.push(l);try{for(r=j(o),s=r.next();!s.done;s=r.next())l=s.value,localStorage.removeItem(l)}catch(c){f={error:c}}finally{try{s&&!s.done&&(D=r.return)&&D.call(r)}finally{if(f)throw f.error}}return[2]})})},t.LOCALSTORAGE_PREFIX="__autotyper_cache_",t}();return z.LocalStorageCache=e,z}(),q),K((_e||(_e=1,Object.defineProperty(Ae,"__esModule",{value:!0})),Ae),q),K((Pe||(Pe=1,Object.defineProperty(De,"__esModule",{value:!0})),De),q),K((Oe||(Oe=1,Object.defineProperty(Ee,"__esModule",{value:!0})),Ee),q),K((je||(je=1,Object.defineProperty(Te,"__esModule",{value:!0})),Te),q),K(function(){if(Re)return Q;Re=1;var g=Q&&Q.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=Q&&Q.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([D,O])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.UnpkgSourceResolver=void 0;var j=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Q.UnpkgSourceResolver=j,Q}(),q),K(Ne(),q)),Se=ne)]);var q,Fe,K;exports.c=Ge;
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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"});exports.default={ASC:{s:"Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},ARRAYTOTEXT:{s:"Returns a text representation of an array",p:{array:{d:"the array to represent as text"},format:{d:"0 for relaxed format, 1 for strict format",v:0}}},CHAR:{s:"Returns the character specified by the code number from the character set for your computer",p:{number:{d:"is a number between 1 and 255 specifying which character you want"}}},CLEAN:{s:"Removes all nonprintable characters from text",p:{text:{d:"is the text you want to clean"}}},CODE:{s:"Returns the Unicode value of the first character in a text string",p:{text:{d:"is the text string whose Unicode value you want"}}},CONCAT:{s:"Concatenates a list or range of text strings",p:{text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},CONCATENATE:{s:"Joins several text strings into one text string",p:{text:{d:"text1, text2,... are 1 to 252 text strings or ranges to be joined"}},c:"Compatibility"},DETECTLANGUAGE:{s:"Detects the language of a given text.",p:{text:{d:"is the text to detect the language of"}},h:"Unimplemented"},DBCS:{s:"Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},DOLLAR:{s:"Converts a number to text in currency format",p:{number:{d:"is the number to convert"},decimals:{d:"is the number of digits to the right of the decimal point",v:2}}},EXACT:{s:"Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive",p:{text1:{d:"is the first text string"},text2:{d:"is the second text string"}}},FIND:{s:"Returns the starting position of one text string within another text string. FIND is case-sensitive",p:{findText:{d:"Returns the starting position of one text string within another text string. FIND is case-sensitive"},withinText:{d:"is the text you want to search"},startNum:{d:"specifies the character at which to start the search. The first character in Within_text is character number 1",v:1}}},FINDB:{s:"Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.",p:{findText:{d:"is the text you want to find"},withinText:{d:"is the text you want to search"},startNum:{d:"is the position in within_text to start searching",v:1}},h:"DBCS"},FIXED:{s:"Rounds a number to the specified number of decimals and returns the result as text with or without commas",p:{number:{d:"is the number you want to round and convert to text"},decimals:{d:"is the number of digits to the right of the decimal point",v:2},noCommas:{d:"is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE",v:!1}}},LEFT:{s:"Returns the specified number of characters from the start of a text string",p:{text:{d:"is the text string from which you want to extract characters"},numChars:{d:"specifies how many characters you want LEFT to extract",v:1}}},LEFTB:{s:"Returns the leftmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}},h:"DBCS"},LEN:{s:"Returns the number of characters in a text string",p:{text:{d:"is the text whose length you want to find. Spaces count as characters"}}},LENB:{s:"Returns the number of bytes in a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"}}},LOWER:{s:"Converts all letters in a text string to lowercase",p:{text:{d:"is the text you want to convert to lowercase. Characters in Text that are not letters are not changed"}}},MID:{s:"Returns the characters from the middle of a text string, given a starting position and length",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numChars:{d:"specifies how many characters to return from Text"}}},MIDB:{s:"Returns characters from the middle of a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numBytes:{d:"is the number of bytes to extract"}},h:"DBCS"},NUMBERVALUE:{s:"Converts text to number in a locale-independent manner",p:{text:{d:"is the text string you want to convert"},decimalSeparator:{d:"is the character that separates the integer part from the decimal part of the number",v:"."},groupSeparator:{d:"is the character that separates groups of thousands",v:","}}},PERCENTOF:{s:"Returns the percentage of a subset of a given data set",p:{dataSubset:{d:"is the subset"},dataAll:{d:"is the data set"}},h:"Unimplemented"},PHONETIC:{s:"Returns the phonetic spelling of a text string",p:{reference:{d:"Text string or a reference to a single cell or a range of cells that contain a furigana text string"}},h:"Unimplemented"},PROPER:{s:"Converts the first letter of each word in a text string to uppercase",p:{text:{d:"is the text string you want to convert"}}},REGEXEXTRACT:{s:"Extracts substrings of 'text' based on the provided REGEX 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},returnMode:{d:"Specify which matches to return",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXREPLACE:{s:"Returns 'text', with 'replacement' in place of matches with 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},replacement:{d:"The replacement string"},occurrence:{d:"The occurrence of the match to replace",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXTEST:{s:"Checks whether the input matches the pattern, and returns TRUE or FALSE",p:{text:{d:"is the text string to be checked"},pattern:{d:"is the regular expression to be applied"},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REPLACE:{s:"Replaces part of a text string with a different text string",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numChars:{d:"is the number of characters to replace"},newText:{d:"is the text string that will replace old_text"}}},REPLACEB:{s:"Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numBytes:{d:"is the number of bytes to replace"},newText:{d:"is the text string that will replace old_text"}},h:"DBCS"},REPT:{s:"Repeats text a given number of times",p:{text:{d:"is the text you want to repeat"},numberTimes:{d:"is the number of times you want to repeat text"}}},RIGHT:{s:"Returns the specified number of characters from the end of a text string",p:{text:{d:"is the text string that contains the characters you want to extract"},numChars:{d:"specifies how many characters you want to extract",v:1}}},RIGHTB:{s:"Returns the rightmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}}},SEARCH:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startNum:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}}},SEARCHB:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startBytes:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}},h:"DBCS"},SUBSTITUTE:{s:"Replaces existing text with new text in a text string",p:{text:{d:"is the text or the reference to a cell containing text in which you want to substitute characters"},oldText:{d:"is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text"},newText:{d:"is the text you want to replace Old_text with"},instanceNum:{d:"specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced"}}},T:{s:"Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not",p:{value:{d:"is the value to test"}}},TEXT:{s:"Converts a value to text in a specific number format",p:{value:{d:"is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value"},formatText:{d:"is a text string that defines the number format to use"}}},TEXTAFTER:{s:"Returns text that's after delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Searches the text for a delimiter match. By default, a case-sensitive match is done.",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TEXTJOIN:{s:"Concatenates a list or range of text strings using a delimiter",p:{delimiter:{d:"Character or string to insert between each text item"},ignoreEmpty:{d:"if TRUE(default), ignores empty cells"},text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},TEXTSPLIT:{s:"Splits text into rows or columns using delimiters.",p:{text:{d:"The text to split"},colDelimiter:{d:"The column delimiter(s) - can be string or array of strings"},rowDelimiter:{d:"The row delimiter(s), null/undefined means no row splitting",v:null},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)",v:!1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)",v:"undefined"}}},TEXTBEFORE:{s:"Returns text that's before delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TRANSLATE:{s:"Translate a text string from one language to another using the Microsoft Translator service.",p:{text:{d:"The text to translate."},sourceLanguage:{d:"Specifiy the source language your text is currently in. Expressed as a two-letter language code."},targetLanguage:{d:"Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code."}},h:"Unimplemented"},TRIM:{s:"Removes all spaces from text except for single spaces between words.",p:{text:{d:"The text from which you want to remove extra spaces."}}},UNICHAR:{s:"Returns the Unicode character referenced by the given numeric value",p:{number:{d:"is the Unicode number representing a character"}}},UNICODE:{s:"Returns the number (code point) corresponding to the first character of the text",p:{text:{d:"is the character that you want the Unicode value of"}}},UPPER:{s:"Converts a text string to all uppercase letters",p:{text:{d:"is the text you want converted to uppercase, a reference or a text string"}}},VALUE:{s:"Converts a text string that represents a number to a number",p:{text:{d:"is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert"}}},VALUETOTEXT:{s:"Returns a text representation of a value",p:{value:{d:"the value to represent as text"},format:{d:"the format of the text",v:0}}}};
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 t=require("./QxU4KIgsHZuVigdy.cjs"),I=["Ok","Cancel"],j=t.reactExports.memo(E=>{const{initialValue:T,context:x,onOption:m,onValidateOption:p,onInputOption:d,onDone:l,options:g=I,defaultOption:r=g?.[0],cancelOption:i="Cancel",sx:b,...v}=E,[o,y]=t.reactExports.useState(T),[C,O]=t.reactExports.useState(!1),u=t.reactExports.useCallback(async(e,a)=>!0,[]),c=t.T(async e=>{d?.(o,e),m?.(e,e===i,e===r),l?.()},[o,d,l,m,i,r]),P=t.T(async e=>{e.keyCode===t.to.Enter&&await u?.(o,null)!==!1&&c(r)},[o,c]),k=t.T(e=>{y(e.target.value),u?.(e.target.value,null)},[p]),R=t.T(async e=>{let a=await Promise.resolve(p?.(e));try{a!==!1&&(a=await Promise.resolve(u?.(o,e))??!0)}catch{}return a??!0},[p]),[h,f]=t.reactExports.useState(t.Pt.Styles.lookupStyle(o).formatType??t.Pt.Type.Custom);t.reactExports.useEffect(()=>{f(t.Pt.Styles.lookupStyle(o).formatType??t.Pt.Type.Custom)},[o]);const S=t.reactExports.useMemo(()=>{const e=t.Pt.Styles.lookupPrimary(),a=n=>t.jsxRuntimeExports.jsx(t.MenuItem,{value:n,children:n},n),s=Object.keys(e).map(n=>a(e[n].formatType));return s.push(a(t.Pt.Type.Custom)),s},[]),F=t.reactExports.useCallback(e=>{const a=e.target.value;f(a);const s=t.Pt.Styles.lookupDefault(a);s&&y(s)},[]),w=t.reactExports.useMemo(()=>{const e=x();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:o}})},[h,o,x]);return t.jsxRuntimeExports.jsx(t.L3,{title:"Number Format",options:g,onDone:l,onOption:e=>c(e),onValidateOption:R,defaultOption:r,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"580px",...b},...v,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsxs(t.FormControl,{sx:{minWidth:135},size:"small",children:[t.jsxRuntimeExports.jsx(t.InputLabel,{children:"Category"}),t.jsxRuntimeExports.jsx(t.Select,{value:h,label:"Category",onChange:F,sx:{backgroundImage:`linear-gradient(${t.alpha("#fff",t.getOverlayAlpha(5))}, ${t.alpha("#fff",t.getOverlayAlpha(5))})`},children:S})]}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Code",onFocus:e=>{C||e.target?.select(),O(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.getOverlayAlpha(5))}, ${t.alpha("#fff",t.getOverlayAlpha(5))})`}}},value:o,onChange:k,onKeyDown:P,onContextMenu:e=>{e.stopPropagation()}})}),t.jsxRuntimeExports.jsxs(t.Box,{children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),t.jsxRuntimeExports.jsx(t.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:w.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=j,exports.default=j;
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 e=require("./QxU4KIgsHZuVigdy.cjs"),m=e.reactExports.memo(g=>{const{title:u,onHide:h,autoFocusSel:j=".range-input input",context:R,notifier:i=e.Bt,command:a,commands:r,...f}=g,[y,l]=e.reactExports.useState(!1),[x,c]=e.reactExports.useState(!1),p=e.reactExports.useRef(null),[B,E]=e.reactExports.useReducer(t=>t+1,0),[b,{width:N}]=e.Mo();e.go(a);const s=R??a.context(),o=s.table(),[w,S]=e.reactExports.useState(()=>o?s.getNames().getRanges(o.getRange()):null),C=e.reactExports.useMemo(()=>o?.getName()??"",[o]);e.ht(s.table(),{onAnchorCoordsChange(t){S(s.getNames().getRanges(t.getRange()))},onProtectedChange(t){E()}});const v=e.T(t=>{s?.table().setName(t)},[s]),T=e.T(t=>{s?.table().resize(t.at(0))},[s]);let d=null;return s.table()||(d=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.x8,{ref:p,title:u??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:h,onFocus:()=>l(!0),onBlur:t=>{p?.current?.contains(t.relatedTarget)||l(!1)},PaperProps:{elevation:y?3:1},...f,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:b,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:s.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:t=>t.spacing(2),paddingRight:t=>t.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.jp,{formName:"name",defaultInput:C,value:o?.getName()??"No table",onChangeInput:v,onValidate:t=>{o&&o.getName().toLowerCase()===t.toLowerCase()||s?.getNames().validateName(t)},disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}}),e.jsxRuntimeExports.jsx(e.Vp,{formName:"range",value:w,onChangeInput:T,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.p6,{orientation:"horizontal",sx:{marginTop:t=>t.spacing(1.5),marginBottom:t=>t.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.Cm,{disabled:o?.isProtected(),styleOptions:o?.getStyleOptions()??null,onStyleOptionsChange:t=>{o.updateStyleOptions(t)},showHeaderRow:o?.getShowHeaders(),onShowHeaderRowChange:t=>{try{o.setShowHeaders(t)}catch(n){i.showError(n)}},showTotalRow:o?.getShowTotals(),onShowTotalRowChange:t=>{try{o.setShowTotals(t)}catch(n){i.showError(n)}},showFilterButton:o?.getFilter()?o.getShowFilterButton():null,onShowFilterButtonChange:t=>{try{o.setShowFilterButton(t)}catch(n){i.showError(n)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:t=>t.spacing(2),marginBottom:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Np,{table:o,styles:s.styles(),bodyStyle:s.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.p6,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.q8,{variant:e.vo$1.Menuitem,command:r.getCommand("convertTableToRange"),commandState:o,icon:e.p2(e.jsxRuntimeExports.jsx(e.i4,{}))}),e.jsxRuntimeExports.jsx(e.q8,{variant:e.vo$1.Menuitem,commandState:o,command:r.getCommand("deleteTable"),icon:e.p2(e.jsxRuntimeExports.jsx(e.i4,{}))})]})]})]}),d]})})});exports.TableDetailsWindow=m,exports.default=m;
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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"});exports.default={COMPLEX:{s:"Converts real and imaginary coefficients into a complex number",p:{realNum:{d:"is the real coefficient of the complex number"},iNum:{d:"is the imaginary coefficient of the complex number"},suffix:{d:"is the suffix for the imaginary component of the complex number",v:"i"}}},IMABS:{s:"Returns the absolute value (modulus) of a complex number",p:{inumber:{d:"is a complex number for which you want the absolute value"}}},IMAGINARY:{s:"Returns the imaginary coefficient of a complex number",p:{inumber:{d:"is a complex number for which you want the imaginary coefficient"}}},IMARGUMENT:{s:"Returns the argument q, an angle expressed in radians",p:{inumber:{d:"is a complex number for which you want the argument"}}},IMCONJUGATE:{s:"Returns the complex conjugate of a complex number",p:{inumber:{d:"is a complex number for which you want the conjugate"}}},IMCOS:{s:"Returns the cosine of a complex number",p:{inumber:{d:"is a complex number for which you want the cosine"}}},IMCOSH:{s:"Returns the hyperbolic cosine of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic cosine"}}},IMCOT:{s:"Returns the cotangent of a complex number",p:{inumber:{d:"is a complex number for which you want the cotangent"}}},IMCSC:{s:"Returns the cosecant of a complex number",p:{inumber:{d:"is a complex number for which you want the cosecant"}}},IMCSCH:{s:"Returns the hyperbolic cosecant of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic cosecant"}}},IMDIV:{s:"Returns the quotient of two complex numbers",p:{inumber1:{d:"is the complex numerator or dividend"},inumber2:{d:"is the complex denominator or divisor"}}},IMEXP:{s:"Returns the exponential of a complex number",p:{inumber:{d:"is a complex number for which you want the exponential"}}},IMLN:{s:"Returns the exponential of a complex number",p:{inumber:{d:"is a complex number for which you want the exponential"}}},IMLOG10:{s:"Returns the base-10 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the common logarithm"}}},IMLOG2:{s:"Returns the base-2 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the base-2 logarithm"}}},IMPOWER:{s:"Returns the base-2 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the base-2 logarithm"},number:{}}},IMPRODUCT:{s:"Returns the product of 1 to 255 complex numbers",p:{inumber:{d:"inumber1,inumber2,... Inumber1, Inumber2,... are from 1 to 255 complex numbers to multiply."}}},IMREAL:{s:"Returns the real coefficient of a complex number",p:{inumber:{d:"is a complex number for which you want the real coefficient"}}},IMSEC:{s:"Returns the secant of a complex number",p:{inumber:{d:"is a complex number for which you want the secant"}}},IMSECH:{s:"Returns the hyperbolic secant of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic secant"}}},IMSIN:{s:"Returns the sine of a complex number",p:{inumber:{d:"is a complex number for which you want the sine"}}},IMSINH:{s:"Returns the hyperbolic sine of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic sine"}}},IMSQRT:{s:"Returns the square root of a complex number",p:{inumber:{d:"is a complex number for which you want the square root"}}},IMSUB:{s:"Returns the difference of two complex numbers",p:{inumber1:{d:"is the complex number from which to subtract inumber2"},inumber2:{d:"is the complex number to subtract from inumber1"}}},IMSUM:{s:"Returns the sum of complex numbers",p:{inumber:{d:"inumber1,inumber2,... are from 1 to 255 complex numbers to add"}}},IMTAN:{s:"Returns the tangent of a complex number",p:{inumber:{d:"is a complex number for which you want the tangent"}}}};
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 e=require("./QxU4KIgsHZuVigdy.cjs"),I=["Ok","Cancel"],y=e.reactExports.memo(T=>{const{initialHyperlink:o=null,initialDisplay:E=null,onUpdateHyperlink:c,context:s,onOption:d,onValidateOption:r,onDone:i,options:x=I,defaultOption:p=x?.[0],cancelOption:l="Cancel",sx:k,...C}=T,O=e.reactExports.useMemo(()=>(o??s?.()?.getHyperlink())!==null,[]),g=e.reactExports.useMemo(()=>{let t=null,n=null;o&&(typeof o=="string"?n=o:t=o);const f=t??s?.()?.getHyperlink();return{address:n??f?.getAddress()??"",textToDisplay:f?.getDisplayText()??""}},[o,s]),[a,j]=e.reactExports.useState(g.address),[u,b]=e.reactExports.useState(()=>{const t=s?.().toTextUnformatted()??E;return t===g.address?"":t}),[v,m]=e.reactExports.useState(!1),F=e.reactExports.useCallback(t=>{b(t.target.value)},[]),h=e.reactExports.useCallback(async(t,n)=>null,[]),P=e.T(async t=>{t!==l&&c?.(a===""?null:{address:a},u),d?.(t,t===l,t===p),i?.()},[a,u,c,i,d,p,l]),D=e.T(t=>{j(t.target.value),h(t.target.value,null)},[r]),H=e.T(async t=>{let n=await Promise.resolve(r?.(t));try{n!==!1&&(n=await h(a,t))}catch{}return n??!0},[r]);return e.jsxRuntimeExports.jsx(e.L3,{title:(O?"Edit":"Insert")+" Link",options:x,onDone:i,onOption:t=>P(t),onValidateOption:H,defaultOption:p,cancelOption:l,autoFocusSel:".autoFocus",sx:{width:"480px",...k},...C,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{v||t.target?.select(),m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:a,onChange:D,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Display Text",placeholder:a?.startsWith("#")?a.substring(1):a,onFocus:()=>{m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:u,onChange:F,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=y,exports.default=y;
@@ -0,0 +1,12 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
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 J=require("./QxU4KIgsHZuVigdy.cjs");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()}(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.createWorkbookOptions??{},json:g};return new J.Iy(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
7
+ `;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
8
+ `);return y+=`
9
+ `+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
10
+ `;m||(s=0);for(let c=0;c<d;c++){const y=B[c];S+=O+JSON.stringify(y)+": "+o(e[y],a+1,s,!1),c<d-1&&(S+=`,
11
+ `)}return S+=`
12
+ `+A+"}",S}(i,0,0,!1)}(u,b);let p=new TextEncoder().encode(g).buffer;const t=l?.compress??!0;return t&&(p=await async function(i,r="gzip"){let n;typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const f=new ReadableStream({start(a){a.enqueue(n),a.close()}}),o=new CompressionStream(r),e=f.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()}(p,typeof t=="string"?t:void 0)),p};